Overview of the Protocol Macro Functions
Standard System Protocol Example
Level
Sequence
Steps
Send message
SD (00) _1
Receive message
RV (00) _1
DM Area Settings for
Standard System Protocol
Board
(CS Series only)
(CS/CJ Series)
Port 1
Port 2
Port 1
D32000
D32010
m
Process Value Read Sequence for E5@K Controller Read Protocol
Item
Link words
---
Transmission control
Modem control
parameters
Response notification
Scan
method
Reception wait time Tr
3 s
Reception finished wait
3 s
time Tfr
Send finished wait time
3 s
Tfs
Step number
00
Repeat counter
Reset/001
Command
SEND&RECV
Retry count
3
Send wait time
---
Send message
SD (00) _1
Receive message
RV (00) _1
Response write enable
Write
Next process
End
Error process
Abort
Header <h>
"@"
Terminator <t>
[2A0D]
Error check code <c>
LRC (horizontal parity) (0) (2 bytes of ASCII)
Length <l>
---
Address <a>
$ (R (1) ) ,2)
Message edited
<h> + <a> + "1" + "00" + "0000" + <c> + <t>
Header <h>
"@"
Terminator <t>
[2A0D]
Error check code <c>
LRC (horizontal parity) (0) (2 bytes of ASCII)
Length <l>
---
Address <a>
& (R (1) ) ,2)
Message edited
<h> + <a> + "00" + "00" + & (W (1) ,4) + <c> + <t>
The following data is set in the Setup Area in the DM Area for a standard sys-
tem protocol.
Unit
Port 2
m + 10
Bits 00 to 04: Communications
parameters
Bits 08 to 11: Serial communica-
tions mode
Data
Data
Contents
Setting for a standard system protocol
Set to match the parameters of the external
device.
Set to 6 Hex to specify Protocol Macro Mode.
Section 5-1
Setting
m = D30000 + 100 × unit number
151