DESTTRN
(System Variable)
Obtains the current movement instruction destination position with type T.
When the robot stops, the current position (instruction value) is obtained.
DESTTRN
The destination position of the previous movement instruction is stored using a type T data format. Because the data can be obtained with a system variable, it does not require to transfer the data to another program with variables such as local variables or global variables.
Use CURTRN to obtain positions detected with each axis encoder.
When the movement stop instruction (refer to Part 2 "12.3 INTERRUPT ON/OFF") is entered and the movement stops, the stop position is stored.
(Example)
INTERRUPT ON
MOVE P, T1 ← An interrupt signal turns ON during movement.
INTERRUT OFF
T2=DESTTRN
T1=T2 is not satisfied. T2 is a stop position.
DEFPOS lp1, lp2
|
|
MOVE P, @P lp1, NEXT
|
|
lp2 = DESTTRN+(100, 10, 10)
|
'In this case, DESTTRN = lp1.
|