GetCollisionForce
[Ver. 2.61 or later]
Get the maximum external force.
GetCollisionForce(<joint variable>)
This library assigns the maximum external force detected to a joint variable specified by <joint variable>.
-
The maximum external force can be calculated only for joints whose collision detection is enabled when the corresponding motors are ON, in each of Manual and Auto modes.
-
In Auto mode, this library assigns the maximum external force calculated in Auto mode; in Manual or Teach check mode, it assigns the one calculated in Manual mode.
-
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 ClearCollisionForce
|
'Initialize maximum external force stored
|
CALL SetCollisionJnt(2)
|
'Enable collision detection for joint 2
|
MOVE P, P1, P2
|
'Move from point P1 to P2 in PTP motion
|
CALL GetCollisionForce(J1)
|
'Assign maximum external force calculated
'during move from P1 to P2 to variable J1
|
CALL ClearCollisionForce
|
'Initialize maximum external force stored
|
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
|