JointAccuracy Function
Displays the joint accuracy offset values.
Syntax
JointAccuracy(jointNumber, paramNumber)
Parameters
- jointNumber
- Specify the joint number.
- paramNumber
- Specify the offset value to display with following constants or integer (1 to 4).
Constant Value Description JAC_PARAM1 1 First Parameter Value JAC_PARAM2 2 Second Parameter Value JAC_PARAM3 3 Third Parameter Value JAC_PARAM4 4 Fourth Parameter Value
Return Values
Returns offset values (integer) of the joint accuracy corresponding to the specified joint parameter number.
Description
JointAccuracy
JointAccuracy Function Example
The example below displays the program using JointAccuracy function.
Function main
'Set the accuracy offset value of the Joint #2.
JointAccuracy 2, 32, 873, 6, 437
'Display the accuracy offset value of the specified joint.
DisplayJointAccuracy(2)
Fend
Function DisplayJointAccuracy(numJoint As Integer)
Integer i
Print "Joint =", numJoint, ", JointAccuracy settings:"
For i = 1 To 4
Print " Param ", i, " = ", JointAccuracy(numJoint, i)
Next i
Fend
[Output]
Joint = 2, JointAccuracy settings:
Param 1 = 32
Param 2 = 873
Param 3 = 6
Param 4 = 437