Omron CS1W-MC221 - 02-2008 Operation Manual page 242

Motion control units
Table of Contents

Advertisement

IOWR and IORD Specifications
Ladder Programming Examples
Example 1
Execution condition
R1
R3
R2
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.
Reading Position Data from A0456 to A0459 to D0100 to D0111.
Position data
A0456=
345678.90
A0457=
123456.78
A0458=
387654.32
A0459=
123.456
DIFU
IORD
(=)
Settings
DM
D0100
0002
D0101
76D2
D0102
020F
D0103
0002
D0104
614E
D0105
00BC
D0106
0002
D0107
7C88
D0108
FDB0
D0109
0003
D0110
E240
D0111
0001
Three words are required for each position.
Refer to
3-4 Position Data
Position data address
D00100 to D00102
D00103 to D00105
D00106 to D00108
D00109 to D00111
Work bit
R1
Set the first address in the MC Unit
position data to 0456 (01C8 Hex
corresponds to A0456).
#01C8
Set the source unit number (0) and a total
#000C0000
of 15 words to be transmitted (i.e., 3 words
x 5 positions).
D00100
Set the address of the first word of the
destination to store the position data.
R3
OUT (Work bit)
R2
OUT (Work bit)
345678.90.
123456.78.
387654.32.
123.456.
for details.
Section 4-2
215

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents