Omron SYSMAC CS Series Instruction & Reference Manual page 822

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

3. Instructions
Programming Example
If CIO 0.02 turns ON while the RS-232C Port Send Ready Flag (A392.05) 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
D100.
0.01
0.02
30
36
="06/08/11
Controlling Signals
788
A392.05
TXD
RS-232C Port Send
Ready Flag
A392.06
RXD
S
RS-232C Port Receive
C
Ready Flag
N
2F
30
38
2F
31
31
15
12
11
8
7
4
3
0
C: D20
0
0
0
0
RS and ER Signal Control
#0: No RS and ER signal control .
Serial Port Specifier
#0: CPU Unit's built-in RS-232C port
Always #0.
0.00
RXD
D
D100
C
D200
N
15
14
13
D: D100
1
0
0
15
12
11
8
7
C: D200
0
0
Serial Port Specifier
#0: CPU Unit's built-in RS-232C port
Always #0.
D10
D20
&3
D100
D20
RS-232C Port
A393
Reception Counter
Upper byte
15
12
11
Received
S: D100
3
D101
2
D102
3
D103
3
Byte Order
#0: Most significant bytes first
When CIO 0.00 turns ON, the
status of the CS signal is output
to bit 15 of D100 and the status
of the DR signal is output to bit
14 of D100.
&10
12
0
DR signal: 0
CS signal: 1
4
3
0
3
0
Byte Order
#0: Most significant bytes first
CS and DR Signal Monitor
#3: CS and DR signal monitor
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Lower byte
8
7
4
3
0
0
3
6
F
3
0
8
2
F
1
3
1

Advertisement

Table of Contents
loading

Table of Contents