User`s manual

Programmed Motion
GFK-1742A Chapter 7 Programmed Motion 7-13
7
PROGRAM
The PROGRAM statement is the first statement in a motion program. The program statement
identifies the program number (1-10) and the axis configuration. Program definitions cannot
nest.
There are two types of motion programs, single-axis in which all commands are directed to the
same axis, and multi-axis, which may contain commands for axis 1 and axis 2. The program type
is specified by the PROGRAM statement. A single-axis program is identified by specifying the
target axis following the program number (for example, PROGRAM 3 AXIS1). A multi-axis
program is identified by the word MULTI-AXIS following the program number (for example,
PROGRAM 4 MULTI-AXIS).
The program axis configuration is used to enforce whether or not the axis parameter must be
supplied in the programs motion commands. It also restricts multi-axis programs to calling
multi-axis subroutines, and single-axis programs to calling single-axis subroutines. The axis
specified in a single-axis program is used by any subroutine it calls; therefore, an axis number
should not be specified anywhere within a single-axis subroutine.
Syntax:
PROGRAM <program number> <axis configuration>
Parameter Description
<program number> The program number must be a decimal value in the range of 1 10.
Within a source file, each PROGRAM defined must have a unique
number.
<axis configuration> The axis configuration must have a value of MULTI-AXIS for multi-axis
programs, or axis designation (for example, AXIS1) for single-axis
programs. Axes may be specified using the AXISx keywords or constants,
where x = 1-4.
Aliases:
PROG