
Chapter 12 Robot Control Statements
12-73
ST_SetGravity (Statement) [Ver.1.9 or later]
Function
Compensates for the static load (gravity torque) applied to each joint and attains
balance with gravity torque.
Format
ST_SetGravity
Explanation
Each joint of the robot undergoes downward static load (gravity torque) due to earth
gravity. The effects of the gravity torque will vary depending upon the mass of
payload (tool and workpiece), the payload center of gravity, and robot figures.
If you limit the motor output torque by setting its drive current limit so that the limited
torque becomes lower than the gravity torque, then the robot will move down towards
the earth. To prevent it, this statement compensates the limited torque for the gravity
torque, keeping the balance of torque.
Related Terms
ST_SetCurLmt, ST_ResetGravity, ST_SetGrvOffset
Notes
(1) Execute this command in a TAKEARMed task that has obtained arm-
semaphore. If this command is executed without arm-semaphore obtained, Error
"21F7 Cannot take arm semaphore" will result.
(2) Set the mass of payload and the payload center of gravity accurately. Otherwise,
the robot may move down due to gravity if you set a low current limit value (e.g.,
less than 30). For the entry procedure of the mass of payload and the payload
center of gravity, refer to the PROGRAMMER'S MANUAL "4.7 Setting the
Master Control Parameters in User Preferences."
(3) f you do not know the accurate mass of payload or its center of gravity or if the
robot moves down in spite of accurate settings, then use the gravity offset
function (ST_SetGrvOffset) that compensates for the gravity compensation
value.
(4) If you set the gravity offset setting to "1" on the teach pendant, the gravity offset
function becomes enabled. The setting made on the teach pendant will take
effect immediately following the completion of calibration after the robot
controller is turned on.
Example
ST_SetGravity 'Enable the gravity compensation function.
Delay 100 'Wait for gravity compensation to go into
'effect.
ST_SetCurLmt 2,30 'Set the current limit value of the 2nd axis
'to 30%.
Commentaires sur ces manuels