xdSPLPASSNUM
(Library)
[Version 2.3 or later]

Obtains the viapoint through which the free line has passed.

xdSPLPASSNUM (<Viapoint number>)

For free curve motion in progress, the robot sets the viapoint number through which the command value has passed to the <Viapoint number>.

PROGRAM PRO1
|
|
TAKEARM
|
|
CLRSPLINEPOINT 5
|
'Clears all viapoints for the free curve with trajectory 5.
|
SETSPLINEPOINT 5, P4
|
'Sets P4 as the first viapoint for the free
'curve with trajectory 5.
|
SETSPLINEPOINT 5, P1
|
'Sets P1 as the second viapoint for the free
'curve with trajectory 5.
|
SETSPLINEPOINT 5, J5
|
'Sets J5 as the third viapoint for the free
'curve with trajectory 5.
|
MOVE S, 5, NEXT
|
'Executes free curve motion to move to J5
'through P4 and P1.
|
DELAY 500
|
|
CALL xdSPLPASSNUM(I1)
|
'Sets the passed viapoint number to I1.
|