
User Manual
Chapter 7
GFK-1742F
Jan 2020
Programmed Motion
201
If Conditional Jump testing is active when the DSM314 command processor encounters a
CALL SUBROUTINE command, the axis will stop and terminate jump testing before the CALL
is executed.
If Conditional Jump testing is active when the DSM314 command processor encounters an
END SUBROUTINE command, the axis will stop and terminate jump testing before the END
SUBROUTINE is executed.
Jump Testing
Conditional jumps perform jump testing. If the CTL bit is ON, the jump is immediately
performed. If the CTL bit is OFF, the DSM314 watches the CTL bit and keeps track of the
JUMP destination. This monitoring of the CTL bit is called jump testing. If during jump
testing the CTL bit turns ON before a BLOCK command, another JUMP command, or a CALL
command is encountered, the jump is performed. These commands will end jump testing.
Example 7: Jump Testing
Consider the following two single-axis program section examples. In Example 1, the move
to position 2000 is completed before jump testing begins. The block number occurring
immediately after the JUMP command ends jumps testing. Thus, the duration for which the
CTL bit is monitored is very short. However, in Example 2, the JUMP command is
encountered before the CMOVE command. This starts the jump testing before motion
begins, and jump testing continues as long as the move lasts. If the CTL bit turns ON while
the move is being performed, the jump will be performed. After the move completes, the
next block number is encountered, which ends jump testing, and program execution
continues normally. If additional moves were programmed ahead of the next block number,
jump testing would continue during those moves until the next block number was
encountered.
Example 1
Example 2
ACCEL 5000
VELOC 1000
ACCEL 5000
VELOC 1000
1:
CMOVE 2000, ABS, LINEAR
JUMP CTL01, 3
2:
1:
JUMP CTL01, 3
CMOVE 2000, ABS, LINEAR
2: