Omron SYSMAC CS1W-SCB41-V1 Operation Manual page 221

Sysmac cs series; sysmac cj series. serial communications boards and serial communications units
Table of Contents

Advertisement

Enhanced Protocol Macro Functions
192
CPU Unit
Ladder program
PMCR
I/O memory
Receive data
Send data
Therefore, when a send command is executed in a step, the send message is
compiled immediately based on data read from the Board/Unit, and the actual
message is sent. Therefore, the actual message transmission is performed
immediately when the send command is executed (there is no need to wait
until the next I/O refresh with the CPU Unit). The receive command operation
is similar. When the receive data is stored in the Board/Unit, receive com-
mand execution is completed. The actual received data is stored in I/O mem-
ory at the next I/O refresh with the CPU Unit.
• Setup Area Allocated in the DM Area
Board
Port 1
Port 2
D32008
D32018
Note When "continuous I/O refreshing" is specified for the link word specification
data exchange timing, the normal I/O refresh will be executed with the CPU
Unit while protocol macros are being executed without syncing with execution
of the send and receive commands. You must therefore be careful of the data
exchange timing at the start and end of protocol macros.
1. The new data may not be sent by the send command in a protocol macro
that is executed immediately after the send data in memory in the CPU Unit
is updated. The send data must be read to the SCU/SCB in the I/O refresh
period before it will be sent by the send command.
2. Data received by a receive command in a protocol macro may not be re-
freshed in the CPU Unit if execution of the protocol macro is completed im-
mediately after the receive command. If the protocol macro is still being
executed during the I/O refresh period after the data is received by the re-
ceive command, the receive data will be refreshed in memory in the CPU
Unit.
The "continuous I/O refreshing" setting is suitable for applications in which
send/receive commands are executed repeatedly in the same protocol macro
(i.e., the same PMCR). If data in the CPU Unit is to be sent with a send com-
mand in the next protocol macro or receive data for a receive command is to
be refreshed in the CPU Unit and then the protocol macro ended, use the "on-
request I/O refreshing" setting.
Board/Unit
Communications
sequence
(1)
Step 0
Send message according
Step 1 (send)
to send command
Link word 1
I1
(2)
Receive data
IN
O1
OUT
Send data
The refresh timing continuously refreshes I/O regardless of
the any request from the Board/Unit (using send/receive
commands in the communications sequence).
Words
Unit
Port 1
Port 2
m+8
m+18
Section 5-6
(1) to (4) are performed in
order for the processing
within this dotted line.
(3) Send
R (O1, 2)
Read, compile message
m = D30000 + 100 × unit number
Bit
Setting
02
Link word specification data
exchange timing
0: On-request I/O refreshing
1: Continuous I/O refreshing

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents