Declaring Program Numbers And Axes - Omron CS1W-MC221 - 02-2008 Operation Manual

Motion control units
Table of Contents

Advertisement

G Language Overview
Indirect Addressing of
Position Data
Direct Addressing of
Registers
7-2-4

Declaring Program Numbers and Axes

Format
Operands
Usage
382
If the register name is in parentheses, i.e. (E00), the content of register will be
treated as a position data address.
For example, when the following program is executed, the contents of A1000
(123.45) will be used for the X-axis data and the contents of A1001 (50) will
be used for the M code.
Register
If the register name is not in parentheses, i.e. E00, the command will operate
directly on the content that register. In the following example, the content of
E00 and E01 are added and the result is placed in E02.
Program block
N010
G60
The program number and axes being used must be declared at the beginning
of the program.
<program number_axes...>
The following table shows the program numbers and axes that can be
declared for main programs and subroutines.
Programs
Main programs
P000 through P499
Subroutines
P500 through P999
There are two kinds of MC Unit programs, main programs and subroutines.
Main programs are assigned program numbers P000 through P499 and sub-
routines are assigned program numbers P500 through P999.
Every program must begin with a declaration of the program number and the
axes being used. Main programs end with a PROGRAM END command
(G79) and subroutines end with a SUBROUTINE END command (G73). This
declaration is made at the beginning of the program (block number N000); an
error (determined by CX-Motion) will occur if the declaration is made in a later
block.
The MC Unit can contain up to 100 programs.
Position data
E02 = E00 + E01
Program numbers
Section 7-2
Register
E00
1000
+
E01
1
E02
1001
Axes
X, Y, Z, U

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1w-mc221Cs1w-mc221-v1Cs1w-mc421Cs1w-mc421-v1

Table of Contents