Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 880

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

Flags
Name
Error Flag
DM Setup Area Settings
(m = D30000 + 100
Setup Area word
Port 1
Port 2
m+4
m+14
m+5
m+15
Related Auxiliary Area Words and Bits
Name
Communications Port Enabled
Flags
Communications Port Completion
Codes
Communications Port Error Flags
Completion Codes
Code
0205 hex
Response timeout (This error can occur when the communications mode is set to host link mode.)
Undefined command (This error can occur when the communications mode is set to protocol macro, NT Link, echoback test, or
0401 hex
serial gateway mode.)
1001 hex
The command is too long.
1002 hex
The command is too short.
1003 hex
The specified number of data elements does not match the actual amount of send data.
1004 hex
The command format is incorrect.
110C hex
Other parameter error
2201 hex
Operation could not be performed during operation. (Operation disabled because Unit is busy sending.)
2202 hex
Operation could not be performed when stopped. (Operation disabled because Unit is switching protocols.)
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Label
ER
• ON if all of the logical ports are being used or the Communications Port Enabled Flag (A202.00 to
A202.07) for the specified logical port is OFF when the instruction is executed.
• ON if the value of C is not within range.
• ON if the value for N is not between 0000 and 0100 hex.
• ON if RXDU(255) is executed in an interrupt task for a CJ2 CPU Unit with high-speed interrupt func-
tion enabled.
• OFF in all other cases.
unit number)
Bit
8 to 15
No-protocol Mode Start Code
0 to 7
No-protocol Mode End Code
No-protocol Mode Start Code Specifier
12 to 15
No-protocol Mode End Code Specifier
8 to 11
Size of receive data
0 to 7
Address
A202.00 to
ON when a communications instruction (including RXDU(255)) can be executed with the
A202.07
corresponding port number.
Bits 00 to 07 correspond to communications ports 0 to 7.
The flag is OFF when a communications instruction is being executed and ON when the execution is
completed (normal end or error end).
A203 to A210
These words contain the completion codes for the corresponding port numbers when
communications instructions have been executed.
Words A203 to A210 correspond to communications ports 0 to 7.
The code is 00 while the instruction is being executed and contains the relevant code when execution
is completed.
These words are cleared to 0000 when PLC operation starts.
A219.00 to
ON when an error occurred during execution of a communications instruction. When a flag is ON,
A219.07
check the completion code in A203 to A210 to troubleshoot the error.
OFF when execution has been finished normally.
Bits 00 to 07 correspond to communications ports 0 to 7.
The flag status is retained until the next communications instruction is executed. Even if an error has
occurred, a flag will be reset to 0 the next time that a communications instruction is executed for that
port.
Operation
Name
00 to FF hex
00 to FF hex
0: None
1: Use start code.
0: None
1: Use end code.
2: Use CR+LF.
#00 hex (default value): 256 bytes
#01 to FF hex: 1 to 256 bytes
Description
Meaning
3. Instructions
Settings
843
3

Advertisement

Table of Contents
loading

Table of Contents