SetExtForceDetect [Ver. 2.61 or later]


Enable/disable detection of external force.


SetExtForceDetect(<value>)


This library enables or disables detection of external force if <value> is "1" (default) or "0," respectively.


Requires file <pacman.h>



  • <value> should be "0" or "1." Any other value results in an error.
  • The default of <value> is "1" (Enable). Even if <value> is set to "0" (Disable), it will revert to "1" by switching between Manual and Auto modes or by restarting the robot controller.
  • Unlike SetCollisionJoint or ResetCollisionJoint, this library does not enable or disable collision detection. Disabling detection of external force with this library does not update maximum external forces stored even if the robot detects greater external force than the one stored. Use this library when checking the maximum external force in a particular zone.
  • The collision detection function works with the corresponding controller software versions.
    When using project data older than the controller versions below, see "collision detection functions" in the PROGRAMMER'S MANUAL I.
    • VS-G series: Version 2.61 or later
    • VS-*** series: Version 3.20 or later
    • VM-G, VP-G series: Version 2.70 or later
    • HM-G, HS-G series: Version 2.80 or later
  • The collision detection function does not work on an old engine board.


TAKEARM
'Get robot control priority
CALL SetExtForceDetect(0)
'Disable detection of external forces
CALL ClearCollisionForce
'Initialize the maximum external force
CALL SetCollisionJnt(3)
'Enable collision detection for joint 3
MOVE P, P1, P2
'Move from point P1 to P2 in PTP motion
CALL SetExtForceDetect(1)
'Enable detection of external forces
MOVE P, P2, P3
'Move from point P2 to P3 in PTP motion
CALL GetCollisionForce(J2)
'Assign maximum external force calculated
'during move from P2 to P3 to variable J2


Top