215
IOWR and IORD Specifications
Section 4-2
Ladder Programming Examples
Refer to the following examples of actual data read using an MC Unit with the
unit number 0 mounted in a CS. In these examples, the IORD operands are
assumed to be correct.
When debugging, write ladder code that will check the Error Flag and bit 14 of
word n + 10/n + 18.
Example 1
Reading Position Data from A0456 to A0459 to D0100 to D0111.
Settings
DM
A0456=
A0457=
A0458=
A0459=
D00100 to D00102
Position data
Position data address
345678.90
123456.78
−
387654.32
123.456
D00103 to D00105
D00106 to D00108
D00109 to D00111
DIFU
R1
Work bit
IORD
#01C8
#000C0000
D00100
R3
R2
R3
R1
R2
(=)
Execution condition
OUT (Work bit)
Set the first address in the MC Unit
position data to 0456 (01C8 Hex
corresponds to A0456).
Set the source unit number (0) and a total
of 15 words to be transmitted (i.e., 3 words
x 5 positions).
Set the address of the first word of the
destination to store the position data.
OUT (Work bit)
0002
76D2
020F
0002
614E
00BC
0002
7C88
FDB0
0003
E240
0001
D0100
D0101
D0102
D0103
D0104
D0105
D0106
D0107
D0108
D0109
D0110
D0111
345678.90.
123456.78.
−
387654.32.
123.456.
Three words are required for each position.
Refer to for details.
3-4 Position Data
Summary of Contents for CS1W-MC221 -
Page 1: ...Motion Control Units Cat No W359 E1 04 CS1W MC221 V1 421 V1 OPERATION MANUAL ...
Page 2: ...CS1W MC221 V1 421 V1 Motion Control Units Operation Manual Revised February 2008 ...
Page 3: ...iv ...
Page 5: ...vi ...
Page 11: ...xii ...
Page 15: ...xvi ...
Page 19: ...xx ...
Page 27: ...xxviii Conformance to EC Directives 6 ...
Page 133: ...106 Installation Section 2 2 2 2 4 Dimensions CS1W MC421 CS1W MC221 ...
Page 173: ...146 Connecting Peripheral Devices Section 2 7 ...
Page 227: ...200 Command Area Section 3 6 ...
Page 351: ...324 Interface Specifics Section 5 4 ...
Page 513: ...486 Absolute Encoder Interface Specifications Section 9 7 ...
Page 575: ...548 Error Log Section 12 6 ...
Page 589: ...562 Performance Appendix A ...
Page 655: ...628 Control Bit Flag Timing Charts Appendix E ...
Page 683: ...656 Origin Search Patterns Appendix F ...
Page 685: ...658 Encoder Divider Rate and Rotation Speed for OMRON Servo Drivers Appendix G ...