Serial Communications Instructions
Item
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 000001 turns ON while the RS-232C Port Send Ready Flag (A39205)
is ON, three bytes of data starting from the upper byte of D00010 are sent
without conversion to the Code Reader connected to the CPU Unit's built-in
RS-232C port. These three bytes contain "@GL", which is the normal read
command used as a trigger input to the Code Reader from the RS-232C line.
00001
A39205
RS-232C Port Send
Ready Flag
00002
A39206
RS-232C Port Receive
Ready Flag
Upper byte
15
12
S: D00010
4
D00011
4
15
12
C: D00020
0
Always #0.
Setting
8 bits
None
1
None
#000D (CR)
@TXD
S
D00010
C
D00020
N
&3
@RXD
D00100
D00020
A393
Lower byte
11
8
7
4
3
0
Sent
0
5
3
E
0
0
11
8
7
4
3
0
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
RS-232C Port
Reception Counter
@ G L
40 53 4E
ED
Three bytes
991
Need help?
Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 08-2008 and is the answer not in the manual?
Questions and answers