Omron SYSMAC CS Series Instruction & Reference Manual page 860

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

Advertisement

3. Instructions
Note PMCR2(264) is used to start a communications sequence. Use the Sequence End Completion Flag in the
CIO Area words that are allocated to the Serial Communications Unit to determine when execution of the
communications sequence has ended normally.
Protocol Macro
Execution Flag
0.00
A202.08
Start bit
CJ2 Instructions
Enabled Flag
W10.01
Execution completed
W10.00
Executing
W10.00
2.00
Execution
Executing
completed
Protocol Macro
Execution Flag
Completion Flag
Sequence Abort
Completion Flag
 Timing Chart
Start bit
CIO 0.00
Executing
W10.00
Execution
completed
CIO 2.00
Execution
completed
W10.01
Protocol Macro
Execution Flag (See note.)
1519.15
Sequence End Completion
Flag (See note.)
1519.11
Note Refer to the SYSMAC CS/CJ-series Serial Communications Boards and
Serial Communications Units Operation Manual (Cat. No. W336) for
details on the CIO Area words that are allocated to the Serial
Communications Unit.
826
KEEP
W10.00
PMCR2
#0210
C1
C2
&101
S
D100
D1
D200
2
D2
2.01
Processing for when
the sequence starts
normally
Error end
2.01
Processing for when
an error occurs in
starting the sequence
Error end
Sequence End
Normal
end
Error end
W10.01
Execution completed
1
0
1
0
Communications in progress
Communications completed
PMCR2 started.
1
0
1
0
1
0
1
0
15
12
11
8
7
4
C1
0
2
1
Serial port number (physical port)
2 hex: Port 2
Always 0.
15
C2
& 1 0 1
Communications sequence number
0065 hex: 101 decimal
D100
0
0
0
3
D101
0
1
0
0
Used as
2 word
D102
0
0
0
3
send area
D200
0
0
0
2
D201
0
2
0
0
1 word
Data received
from external
device
Note As shown above, the symbol read option, R( ), in the
send message or the symbol write option, W( ), in the
receive message, actually sends/receives data
CS/CJ/NSJ Series Instructions Reference Manual (W474)
3
0
0
Unit address of communications partner
#10: CPU Bus Unit with unit number 0
0
0
1
0
0
Sent
R(1),2: 2 bytes sent from
D101
0
2
0
0
Received
W(1),2: 2 bytes received
starting from D201

Advertisement

Table of Contents
loading

Table of Contents