382
G Language Overview
Section 7-2
Indirect Addressing of
Position Data
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.
Direct Addressing of
Registers
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.
7-2-4
Declaring Program Numbers and Axes
The program number and axes being used must be declared at the beginning
of the program.
Format
<program number_axes...>
Operands
The following table shows the program numbers and axes that can be
declared for main programs and subroutines.
Usage
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
Register
N010
G60
E02 = E00 + E01
Register
Program block
1000
1
1001
E00
E01
E02
+
Programs
Program numbers
Axes
Main programs
P000 through P499
X, Y, Z, U
Subroutines
P500 through P999
Содержание CS1W-MC221 -
Страница 1: ...Motion Control Units Cat No W359 E1 04 CS1W MC221 V1 421 V1 OPERATION MANUAL ...
Страница 2: ...CS1W MC221 V1 421 V1 Motion Control Units Operation Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 11: ...xii ...
Страница 15: ...xvi ...
Страница 19: ...xx ...
Страница 27: ...xxviii Conformance to EC Directives 6 ...
Страница 133: ...106 Installation Section 2 2 2 2 4 Dimensions CS1W MC421 CS1W MC221 ...
Страница 173: ...146 Connecting Peripheral Devices Section 2 7 ...
Страница 227: ...200 Command Area Section 3 6 ...
Страница 351: ...324 Interface Specifics Section 5 4 ...
Страница 513: ...486 Absolute Encoder Interface Specifications Section 9 7 ...
Страница 575: ...548 Error Log Section 12 6 ...
Страница 589: ...562 Performance Appendix A ...
Страница 655: ...628 Control Bit Flag Timing Charts Appendix E ...
Страница 683: ...656 Origin Search Patterns Appendix F ...
Страница 685: ...658 Encoder Divider Rate and Rotation Speed for OMRON Servo Drivers Appendix G ...