Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 1050

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Serial Communications Instructions
Setup Area word
Bit
Port 1
Port 2
m+4
m+14
8 to 15
0 to 7
m+5
m+15
12 to 15 No-protocol Mode Start
8 to 11
Auxiliary Area
Name
Address
Communications
A20200
Port Enabled
to
Flags
A20207
Communications
A203 to
Port Completion
A210
Codes
Communications
A219
Port Error Flags
Completion Codes
Code
0205 hex
Response timeout (This error can occur when the communications
mode is set to host link mode.)
0401 hex
Undefined command (This error can occur when the communications
mode is set to protocol macro, NT Link, echoback test, or serial gate-
way 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 dis-
abled because Unit is busy sending.)
2202 hex
Operation could not be performed when stopped. (Operation dis-
abled because Unit is switching protocols.)
Name
No-protocol Mode Start
Code
No-protocol Mode End
Code
Code Specifier
No-protocol Mode End
Code Specifier
Description
ON when a communications instruction (including
TXDU(256) can be executed with the corresponding
port number. Bits 00 to 07 correspond to communica-
tions ports 0 to 7.
The flag is OFF when a communications instruction is
being executed and ON when the execution is com-
pleted (normal end or error end).
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 opera-
tion starts.
ON when an error occurred during execution of a
communications instruction. When a flag is ON,
check the completion code in A203 to A210 to trou-
bleshoot 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 communica-
tions 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.
Meaning
Section 3-24
Settings
00 to FF hex
00 to FF hex
0: None
1: Use start code.
0: None
1: Use end code.
2: Use CR+LF.
1011

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents