![Omron CS1W-MCH71 - Скачать руководство пользователя страница 268](http://html1.mh-extra.com/html/omron/cs1w-mch71/cs1w-mch71_operation-manual_742367268.webp)
223
IOWR Instruction to Transfer Data
Section 5-2
5-2-3
Flags
5-2-4
Precautions When Using IOWR
When transferring data by IOWR instruction, be sure to transfer the data with
the total number of transferred words (2 to 8 words). Do not start or end trans-
ferring in the middle of the data. Doing so will turn ON the ER flag.
When performing continuous transfer of data by IOWR instruction, make sure
that the Equals Flag is ON before executing the next IOWR instruction. For
details, refer to
5-2-5
IOWR Program Example
This section provides a detailed example of data transfer when the MC Unit is
mounted on a CJ-series PLC and the unit number is set to zero. In this exam-
ple, it is assumed that operands in the IOWR and the transferred data are cor-
rect.
When debugging, create a ladder program that refers to the ER flag or the
[Alarm] bit (n+12 words bit 00).
Example 1) Transfer four of position data to the data addresses PL0456 Hex
to PL0459 Hex in the MC Unit.
Position data to be transferred
Destination addresses
34567890
→
PL0456
12345678
→
PL0457
−
38765432
→
PL0458
123456
→
PL0459
Name Symbol
ON
OFF
Error Flag
ER
• The total No. of words transferred in D is not
between 0000 and 0008 Hex.
• The unit No. in D is not between 8000 and
800F Hex.
• The specified CPU Bus Unit does not support
the IOWR instruction.
• The specified CPU Bus Unit has a setting error
or Unit error.
• An error has occurred.
• Position data to be transferred was not in the
specified format or not within acceptable range.
• The specified address does not exist in the MC
Unit.
• Data in the specified MC Unit address is read-
only data.
• The specified No. of position data words to be
transferred was not a multiple of two.
• The No. of system parameter words to be
transferred was not two.
• The value of the MC Unit address plus the
number of words transferred divided by 2
exceeded 27FFHex (upper position data limit
10240).
• More than 8 words were specified for position
data transfer.
• The conditions other than the ones
described on the left
Equals Flag
=
• The IOWR was completed successfully.
• The IOWR was not completed nor-
mally.
• A previous transfer has not been com-
pleted.
Содержание CS1W-MCH71 -
Страница 2: ...CS1W MCH71 CJ1W MCH71 Motion Control Unit Operation Manual Revised June 2008 ...
Страница 3: ...iv ...
Страница 29: ...xxx ...
Страница 33: ...xxxiv ...
Страница 35: ...xxxvi ...
Страница 39: ...xl ...
Страница 69: ...24 Performance Section 1 7 ...
Страница 99: ...54 Connecting MECHATROLINK Devices Section 3 5 ...
Страница 283: ...238 Saving Data Section 5 4 ...
Страница 417: ...372 Command Details Section 6 3 ...