210
IOWR and IORD Specifications
Section 4-2
Flags
Ladder Programming Examples
Refer to the following examples of actual data transfer using an MC Unit with
the unit number 0 mounted to a CS. In these examples, the IOWR operands
and transfer data are all assumed to be correct.
When debugging, write ladder code that will check the status of the Error Flag
and bit 14 of word n + 10/n + 18.
D
Specify the destination unit number to which data will be transferred and the
total number of words to transfer.
Total number of words to transfer: 0002 to 000C hex (1 to 112)
Position data:
0003 (1 position), 0006 (2 positions), 0009 (3 positions),
000C (4 positions) hex
Command Area: 0002, 0006 hex
System parameters and monitor data:
0002 hex
Destination unit number:
CS1W-MC421: 0000 to 005B hex (unit No. 0 to 91)
CS1W-MC221: 0000 to 005D hex (unit No. 0 to 93)
Example: Transferring 9 words of data to unit number 3
#000900003 (total number of words to transfer: 0009 (9 words), unit num-
ber: 0003 (No. 3))
Oper-
and
Description
Total number of words transferred (Hex)
Destination unit number (Hex)
D+1
D
Name
Symbol
ON
OFF
Error
Flag ER
• The total number of
words transferred for D
is not between 0000 and
0080 hex.
• The unit number for D is
not between 0000 and
005F hex.
• The specified Special
I/O Unit does not sup-
port the IOWR instruc-
tion
• The specified Special
I/O Unit has a setting
error or Unit error.
None of the conditions on the left exists.
Equals
Flag
=
• The write command was
not completed normally.
• The following error has
occurred, in which case
bit 14 of word n + 10/n +
18 will be ON: Position
data was in the wrong
format or not within
acceptable ranges.
• The write command was not completed normally.
• A previous transfer has not been completed.
• The address specified in the MC Unit does not exist.
• The specified MC Unit address is read-only.
• The number of position data words transferred was not a multiple of
three.
• The number of system parameter words transferred was not two.
• The value of the MC Unit address plus the number of words trans-
ferred divided by 3 exceeded 07CF hex (upper position data limit
1999), the last address for position data.
• More than 12 words were specified for position data transfer.
• The Teaching Box is in Enabled or Priority Mode.
Negative
Flag
N
---
Always OFF
Содержание 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 ...