D Code Outputs - Omron CS1W-MC221 - 02-2008 Operation Manual

Motion control units
Table of Contents

Advertisement

M Code Outputs
Example 1
N000 P000 X
N001 G01 X100 F100 M100/X30
N002 G01 X200 F200
B003 G79
MC Unit
CPU Unit
Example 2
N000 P000 X
N001 G01 X100 F100 M100/X30
N002 G01 X200 F200
B003 G79
MC Unit
CPU Unit
M500 to M999
7-4-9

D Code Outputs

D Codes
!Caution D code outputs can only be used when an MC Unit is mounted on the CPU
438
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.
Outputs M code 100 after the axis has moved 30 mm from the present position.
X-axis operation
M strobe
M code
M Code Reset
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.
Outputs M code 100 after the axis has moved 30 mm from the present position.
X-axis operation
M strobe
M code
M Code Reset
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.
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.
Backplane. They cannot be used if the Unit is mounted on an Expansion
Backplane.
Section 7-4

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents