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

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

Advertisement

Serial Communications Instructions
Related Flags and Words
1000
• One of the Serial Communications Board's serial ports is specified, but
the Board does not support no-protocol mode (the Board does not have a
version number).
• The value of C is not within range.
• The value for N is not between 0000 and 0100 hex.
• TXD(236) or RXD(235) was being executed for the Serial Communica-
tions Board in the cyclic task, the cyclic task was interrupted, and another
TXD(236) or RXD(235) instruction was executed for the Serial Communi-
cations Board in the interrupt task.
• When RXD(235) is used to read data that was received at the CPU Unit's
RS-232C port, the remaining data in the port's reception buffer is not
cleared, so RXD(235) can be executed repeatedly to read a block of data
in parts.
In contrast, when RXD(235) is used to read data that was received at one
of the Serial Communications Board's ports (Serial Communications
Board version 1.2 or later), the port's reception buffer is cleared after
RXD(235) is executed. Consequently, RXD(235) can not be executed
repeatedly to read a block of data in parts.
• If an overrun error, framing error, or parity error occurs on the CPU Unit's
built-in serial port, serial port reception will stop. The serial port must be
restarted to begin reception again.
The following PLC Setup settings and Auxiliary Area flag can be used as
required when executing RXD(235).
PLC Setup Settings for CPU Unit's RS-232C Port
Programming
Console address
Word
Bit
162
0 to 15
No-protocol Mode Send
Delay
164
8 to 15
No-protocol Mode Start Code 00 to FF hex
0 to 7
No-protocol Mode End Code
165
12
No-protocol Mode Start Code
Specifier
8 and 9
No-protocol Mode End Code
Specifier
0 to 7
No-protocol Mode Number of
bytes of Data
DM Setup Area Settings for Serial Communication Board's Ports
Setup Area word
Bit
Port 1
Port 2
D32004 D32014 8 to 15
0 to 7
D32005 D32015 12 to 15 No-protocol Mode Start
8 to 11
Name
0000 to 210F hex,
0 to 99,990 ms decimal (in 10-
ms units)
00 to FF hex
0: None
1: Use start code.
0: None
1: Use end code.
2: Use CR+LF.
00: 256 bytes
01 to FF: 1 to 255 bytes
Name
No-protocol Mode Start
Code
No-protocol Mode End
Code
Code Specifier
No-protocol Mode End
Code Specifier
Section 3-24
Settings
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.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents