Installation guide
86 Programming Commands
DELTACAPPOS Miscellaneous Command
ACTION: Returns the difference between the current captured position and the
previously captured position.
PROGRAM SYNTAX: DELTACAPPOS(axis) – used in an expression
REMARK: The axis specifies the number of the axis (1-8).
The current captured position can be read with the CAPPOS function.
The value returned by DELTACAPPOS is not valid until at least two
captures have occurred.
EXAMPLE: POSMODE(1)=1 ‘set absolute position mode
ABSPOS(1)=0 ‘set absolute position to zero
CAPTURE(1)=0 ‘ set trigger to EVENT 1 active
JOG(1)=1 ‘start Jog cycle
DO
LOOP UNTIL CAPTURE(1)=1 ‘wait for capture trigger
STOP(1) ‘stop Jog cycle
WAITDONE(1) ‘wait for motion to be completed
CAPTURE(1)=0 ‘ set trigger to EVENT 1 active
JOG(1)=1 ‘start Jog cycle
DO
LOOP UNTIL CAPTURE(1)=1 ‘wait for capture trigger
STOP(1) ‘stop Jog cycle
WAITDONE(1) ‘wait for motion to be completed
PRINT#1,”Delta capture position”, DELTACAPPOS(1)
‘print the difference between captured positions
END










