EasyManuals Logo

Emerson DSM314 User Manual

Emerson DSM314
519 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #198 background imageLoading...
Page #198 background image
User Manual Chapter 7
GFK-1742F Jan 2020
Programmed Motion 187
7.7.3 Program and Subroutine Structure
Single-axis Program Structure
PROGRAM definition statement. It must be the first line of the program. It must
identify the program number and axis number. The program number has a space
between the PROGRAM keyword and the number. In contrast, the axis number must
not have a space within it. For example:
PROGRAM 1 AXIS3
Body. The program body contains the actual program commands. Note that in a
single-axis program, you must not specify an axis number in any of the commands.
Doing so will generate an error. An example of correct syntax for a single-axis
program is:
ACCEL 50000
End of Program. Uses the ENDPROG statement. This statement clearly identifies the
end of the program and helps separate one program or subroutine from another.
The ENDPROG should be the only thing on the last line of any program:
ENDPROG
Single-Axis Program Example
Note that the axis number is specified in the first line and is not specified in the program
body. Note also, that there is no space in the term AXIS1.
PROGRAM 2 AXIS1
ACCEL 50000
VELOC 5000
PMOVE 10000, ABS, LINEAR
DWELL 6000
PMOVE 5000, ABS, LINEAR
ENDPROG
Multi-Axis Program Structure
PROGRAM definition statement. Must be the first line of the program. It must
identify the program number and the fact that this is a multi-axis program by using
the MULTI-AXIS term. For example:
PROGRAM 3 MULTI-AXIS
Body. Contains the actual program commands. Note that in a multi-axis program,
you must specify an axis number in many of the commands. Failure to do so will
generate an error. The axis number term, such as AXIS1, must not have a space
within it. An example of correct syntax for a multi-axis program command is:
ACCEL AXIS1 50000

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Emerson DSM314 and is the answer not in the manual?

Emerson DSM314 Specifications

General IconGeneral
BrandEmerson
ModelDSM314
CategoryController
LanguageEnglish

Related product manuals