
User Manual
Chapter 7
GFK-1742F
Jan 2020
Programmed Motion
175
•
The program to be executed must be a valid program stored in the DSM314
7.6
Conditions That Stop a Motion Program
A motion program will immediately cease when one of the following conditions occurs:
•
The Abort All Moves %Q bit turns ON
•
The Enable Drive %Q bit turns OFF
•
An Overtravel Limit Switch turns OFF when OT Limit Switch is ENABLED via
configuration.
•
The next programmed move, either PMOVE or CMOVE, will pass a Software EOT
Limit (unless the Software End of Travel mode is configured as Disabled)
•
A Stop Normal or Stop Fast Response Method Error occurs. See App
endix A, “Error
Reporting.”
7.7
Motion Program Basics
Number of Programs, Subroutines, and Statements
The DSM314 supports 10 motion programs, 40 subroutines, and a maximum total of 1000
motion program statements.
Format
•
Motion programs and subroutines are written using ASCII text.
•
Only one motion language statement is permitted per line, and a motion language
statement may not span more than one line. Normal comments may span multiple
lines.
•
White space and blank lines may be used to improve readability and to separate
certain items.
•
The Motion Editor is not case sensitive.
•
All motion programs and subroutines must be contained in a single file.
Single-axis and multi-axis programs and subroutines
A given single-axis program must have the capability to be run on any one axis specified in
the Program definition statement. Therefore, motion language commands in single-axis
programs and subroutines will not specify an axis. Rather, the axis specified in the PROGRAM
statement is used for all motion commands in the program. Multi-axis programs and
subroutines can only call multi-axis subroutines. Likewise, single-axis programs and
subroutines can only call single-axis subroutines.
Program and subroutine definition statements
The Motion Editor requires “Program” and” Subr
outine
” definition statements that specify
program/subroutine number and axis configuration (PROGRAM 1 AXIS2 or SUBROUTINE 2
MULTI-AXIS). These statements are placed on the first line of the program or subroutine.
Programs are terminated with an ENDPROG statement, subroutines are terminated with
and ENDSUB statement. These statements serve as separators between programs and