438
M Code Outputs
Section 7-4
Example 1
The following program outputs M code 100 during linear interpolation (N001).
The CPU Unit turns the M Code Reset Flag ON and OFF to reset the M code
while N001 is executing. When that happens, the next positioning operation
(in N002) is performed after the axis has moved 100 mm on the X axis.
Example 2
The following program outputs M code 100 during linear interpolation (N001).
The Unit will wait for the M Code Reset Bit to turn ON after positioning has
been completed because the Bit was not input while N001 was executing. The
CPU Unit turns the M Code Reset Bit ON and OFF to reset the M code. When
that happens, the next positioning operation (N002) is performed.
M500 to M999
The M code is reset with the same timing used to output M code in Pass
Mode.
Note
Refer to
7-4-7 M Code Outputs in Pass Mode in Pass Mode
for more details.
7-4-9
D Code Outputs
D Codes
A D code is a preset code that is output after positioning has been completed.
The D code (0 to 255) is output to the CPU Unit as an interrupt task number to
executed the interrupt task in the CPU Unit. It can also be output during oper-
ation without stopping operation by using the Stopover Function. Refer to
6-10
Stopover Function
for details on the function.
!Caution
D code outputs can only be used when an MC Unit is mounted on the CPU
Backplane. They cannot be used if the Unit is mounted on an Expansion
Backplane.
Outputs M code 100 after the axis has moved 30 mm from the present position.
X-axis operation
MC Unit
M strobe
M code
M Code Reset
CPU Unit
N000 P000 X
N001 G01 X100 F100 M100/X30
N002 G01 X200 F200
B003 G79
Outputs M code 100 after the axis has moved 30 mm from the present position.
X-axis operation
MC Unit
M strobe
M code
M Code Reset
CPU Unit
N000 P000 X
N001 G01 X100 F100 M100/X30
N002 G01 X200 F200
B003 G79
Содержание 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 ...