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

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

Advertisement

Serial Communications Instructions
1004
Communications Settings
The communications settings of the Code Reader as given in the following
table. These are the default settings.
Item
Communications mode
Baud rate
Data bit length
Parity
Stop bits
Start code
End code
Set the PLC communications settings to the same values in the PLC Setup.
Only the end code needs to be set.
Programming Example
If CIO 000002 turns ON while the RS-232C Port Send Ready Flag (A39205)
is ON, the number of bytes of reading results specified in the RS-232C Port
Reception Counter (A393) are read from the Code Reader connected to the
CPU Unit's built-in RS-232C port and stored starting from the upper byte of
D00100.
00001
A39205
RS-232C Port Send
Ready Flag
00002
A39206
RS-232C Port Receive
Ready Flag
30
36
2F
30
38
2F
="06/08/11
15
12
11
8
C: D00020
0
0
Always #0.
Setting
No-protocol
38,400 bps
8 bits
None
1
None
#000D (CR)
TXD
D00010
D00020
&3
RXD
S
D00100
C
D00020
RS-232C Port
N
A393
Reception Counter
Received
S: D00100
31
31
D00101
D00102
D00103
D00104
7
4
3
0
0
0
Byte Order
#0: Most significant bytes first
RS and ER Signal Control
#0: No RS and ER signal control .
Serial Port Specifier
#0: CPU Unit's built-in RS-232C port
Section 3-24
Upper byte
Lower byte
15
12
11
8
7
4
3
0
3
0
3
6
2
F
3
0
31
31
20
4F
4D
52
4F
37
37
37
36

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents