![background image](http://html1.mh-extra.com/html/omron/cj1w-c113-rev-02-2008/cj1w-c113-rev-02-2008_operation-manual_742339161.webp)
134
Writing Data with IOWR
Section 5-4
5-4-3
Error Code Treatment for IOWR
The following operation will occur when data is correctly set in the Position
Control Unit using the IOWR instruction.
• If pulse output from the Position Control Unit is being prohibited, none of
the current error codes will be changed and the operation will end.
• In all other cases, the error codes for all axes will be cleared to all zeros
and the operation will end.
If the settings could not be made in the Position Control Unit because illegal
data was written by IOWR, the error codes for all axes will be cleared to all
zeros, errors codes will be output to the relevant axes, and the operation will
end. If an IOWR format error (8701) occurs when IOWR is executed, however,
the 8701 error code will be output for the X axis only.
As described above, if IOWR is executed when error codes already exist, the
error codes will be cleared, so care is required if error codes are being used
by the program, e.g., for interlocks.
5-4-4
Flags
When data is transferred using IOWR, the Error Flag (word n+8, bit 12), the
ER Flag, and the Equals Flag can be used to check whether the transfer has
been completed successfully. If the Error Flag (word n+8, bit 12) is ON, an
error code will be output to word n+10 in the operating memory area. Check
this error code to determine the cause of the error and correct it.
Flag
ON Condition
OFF Condition
ER
• The number of transfer words set in
W is outside the range 0001 to
0080 Hex.
• The unit number set in W is outside
the range 0000 to 005F Hex.
• A Special I/O Unit that is not com-
patible with the IOWR instruction
has been specified.
• A Special I/O Unit for which a set-
ting error has been made or an
error is being generated has been
specified.
Anything else.
=
The transfer has been completed
without error.
• The address set in C, or the area specified with this address and the
number of write words setting, corresponds to only some, and not all,
of the words used to store an item of data. For example, the Equals
Flag would turn ON if the destination address set for a speed, which
is stored in 2 words, was set to an address that corresponded to only
the second word.
• The address set in C, or the area specified with this address and the
number of transfer words setting, is outside the range of PCU
addresses.
• The number of transfer words is set to 0.
• Another write process is being executed.
(Data is being written for a Data Transfer Bit, data is being written
from the CX-Position, or data is being written using IOWR method 2.)
• Data is being saved to flash memory.
(Data is being saved for a SAVE DATA bit or data is being saved from
the CX-Position.)
• The has just been turned ON or restarted and is still performing ini-
tial processing.
Содержание CJ1W-C113 - REV 02-2008
Страница 1: ...Position Control Units Cat No W397 E1 07 SYSMAC CJ1W NC113 213 413 133 233 433 OPERATION MANUAL ...
Страница 2: ...CJ1W NC113 213 413 133 233 433 Position Control Units Operation Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 13: ...xiv ...
Страница 15: ...xvi ...
Страница 19: ...xx ...
Страница 27: ...xxviii Conformance to EC Directives 6 ...
Страница 43: ...16 Control System Principles Section 1 7 ...
Страница 47: ...20 Basic Procedures Section 2 ...
Страница 139: ...112 Examples of Parameter Settings Section 4 9 ...
Страница 173: ...146 Transferring Data with CX Position Section 5 7 ...
Страница 223: ...196 Sample Program Section 7 7 ...
Страница 259: ...232 Sample Program Section 8 10 ...
Страница 293: ...266 Easy Backup Function Ver 2 0 or later Section 9 11 ...
Страница 369: ...342 Reading Error Information with CX Position Section 11 8 ...
Страница 385: ...358 Common Parameter Area Appendix C ...
Страница 399: ...372 Parameter Coding Sheets Appendix E ...