User`s manual
7-20 Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual
–
January 2001 GFK-1742A
7
•
End of Subroutine
. Uses the ENDSUB statement. This statement clearly identifies the end
of the subroutine and helps separate one subroutine or program from another. The
ENDSUB should be the only thing on the last line of any subroutine:
ENDSUB
Multi-Axis Subroutine Example
SUBROUTINE 2 MULTI-AXIS
ACCEL AXIS2 P100
VELOC AXIS2 P105
2: SYNC
CMOVE AXIS2 P001, INCR, S-CURVE
DWELL AXIS2 P001
JUMP CTL01, 2
PMOVE AXIS2 P214, ABS, LINEAR
ENDSUB