SPEED
(Statement)
Specifies the internal composite speed of joints included in a currently held arm group.
SPEED <Movement speed>
The <SpeedRatio> should be the target ratio (%) of the maximum internal composite speed of joints in a currently held arm group. The entry range is from 0.1 to 100 of a real number.
If less than 0.1 is specified, no error will occur, but the actual speed may differ from the specification. If 0 or less is specified, an error will result.
The actual speed value is (external × internal / 100).
If SPEED is set, then ACCEL and DECEL are also changed.
CP control
|
PTP control
|
|
Speed setting
|
SPEED
|
JSPEED
|
Acceleration setting
|
ACCEL
|
JACCEL
|
Deceleration setting
|
DECEL
|
JDECEL
|
Current speed obtain
|
CURSPD
|
CURJSPD
|
Current acceleration obtain
|
CURACC
|
CURJACC
|
Current deceleration obtain
|
CURDEC
|
CURJDEC
|
Example: If you write SPEED 50, the following will be set automatically:
JSPEED 50 (same value as SPEED)
ACCEL 25 (SPEED*SPEED / 100)
JACCEL 25 (SPEED*SPEED / 100)
DECEL 25 (SPEED*SPEED / 100)
JDECEL 25 (SPEED*SPEED / 100)
If you write SPEED without getting any arm group beforehand, an error will result.
Ex1
DIM li1 As Integer
|
|
SPEED 100
|
'Sets the movement speed of the hand to 100.
|
SPEED li1/100
|
'Sets the movement speed of the hand to a value of (li1/100).
|
Ex2(extended-joint)
PROGRAM PRO1
|
|
TAKEARM 1
|
'Get Arm Group 1 (including 7th and 8th joints).
|
SPEED 100
|
'Specify composite speed of joints (7th and 8th)
'involved in Arm Group 1.
|
END
|
|