ID : 9148
Dps
Function
Convert the rotation speed (deg/s) of the designated axial number to the ratio (%) relative to the maximum internal speed in PTP motion.
If the axis number is not specified, the rotation speed (deg/s) will be converted to the ratio (%) relative to the maximum internal speed in CP motion.
Syntax
Dps([Axis number, ]Rotation speed)
Guaranteed entry
- Axis number
- Designate an axis number by Integer Type data within the range of 1 to 8. This is an optional value. When this is omitted, the internal speed value (%) in CP motion is returned.
- Rotation speed
- Designate the rotation speed (unit: deg/s) by single precision real number type data.
Return value
Return the internal speed value (%) by single precision real number type data.
Description
Convert the rotation speed (deg/s) of the designated axial number to the ratio (%) relative to the maximum internal speed in PTP motion.
If the axis number is not specified, the rotation speed (deg/s) will be converted to the ratio (%) relative to the maximum internal speed in CP motion.
| For a rotary axis | This value shows the percentage between 0 to 100. |
|---|
Calculation is on the assumption that the external speed is 100%.
The rotation speed of a rotary axis means the speed of the output stage.
This function cannot be executed to an axis registered as a linear axis because this will cause an error.
Related Terms
Attention
-
Example
Sub Sample_DPS
TakeArm Keep = 1
'Move by 50 degrees per second (when in the rotary motion)
Move L, P[10], Speed = Dps( 50 )
'Move the first axis by 50 degrees per second
DriveA ( 1, F[10] ), Speed = Dps( 1, 50 )
End SubID : 9148

