
4-7
4 Using Protocol Macros
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
4-1
Over
vie
w
of t
h
e Pr
o
to
c
ol Mac
ro F
unc
tion
4
4-1-3 Protoco
l Str
ucture
Example: Variable Area Read (Sequence No. 610) Sequence for CompoWay/F Master Protocol
Standard System Protocol Example
Level
Item
Setting
Sequence
Link words
---
Transmission control
parameters
Modem control
Response notification
method
Scan
Receive Wait Monitoring
Time Tr
3s
Receive Finished Monitor-
ing Time Tfr
3s
Send Finished Monitoring
Time Tfs
3s
Steps
Step number
00
Repeat counter
Reset/001
Command
Send&Recv
Retry count
3
Send wait time
---
Send message
SD MEM_R
Receive message
RV MEM_R
Response write enable
Write
Next process
End
Error process
Abort
Send message
SD MEM_R
Header <h>
STX
Terminator <t>
ETX
Error check code <c>
LRC (horizontal parity) (0) (1 byte of BIN)
Length <l>
---
Address <a>
$ (R (1), 2)
Message edited
* Refer to A) outside the
table for the message
structure after
MRC/SRC.
<h> + <a> + "00" + "0" + "0101" + $ ~ (R (2), 2)
+ $ (R (2), 2) + $ ~ (R (3), 4) + $ ~ (R (4), 4) + <t> + <c>
Receive message
RV MEM_R
Header <h>
STX
Terminator <t>
ETX
Error check code <c>
LRC (horizontal parity) (0) (1 byte of BIN)
Length <l>
---
Address <a>
$ (R (1), 2)
Message edited
* Refer to B) outside the
table for the message
structure after
MRC/SRC.
<h> + <a> + "00" + (*, 2) + "0101" + & (W (1), 4)
+ & (W (2), *) + <t> + <c>
Node No.
SID
MRC/SRC
Variable type
Subaddress
Read start address
Number of elements
Bit number
Node No.
End code
MRC/SRC
Response code
Subaddress
Read data (for number of elements)
Содержание CJ1W-SCU22
Страница 192: ...4 Using Protocol Macros 4 56 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 250: ...6 No protocol Mode 6 22 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 460: ...A Standard System Protocol R 126 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494...
Страница 473: ...Index 1 CJ series Serial Communications Units Operation Manual for NJ series CPU Unit W494 I Index...