
5-33
5 Serial Gateway
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
5-6 Co
mm
u
n
ication
s Fram
es
5
5-6-1 C
ompoW
a
y
/F
5-6
Communications Frames
z
Command Frame
Note
CompoWay/F commands use ASCII code as the transmission code. Therefore, be sure to use
ASCII code for the CompoWay/F command after the command code 2803 hex (from node number
to text) when using SendCmd or another instruction.
Example: If the CompoWay/F command MRC SRC is "01" or "02" (where the quotation marks (" ")
indicate ASCII characters), treat 0, 1, 0, and 2 as ASCII characters. Therefore, set "01" as 3031
hex (not 01 hex), and "02" as 3032 hex (not 02 hex).
Further, to write the CompoWay/F command to the command storage area by using SendCmd in
frame order (without creating empty bytes), the SID component of the CompoWay/F command
requires 1 byte of ASCII as 30 hex, so set the subsequent components in one byte each.
5-6-1
CompoWay/F
Frame before Conversion
Header
Command
CompoWay/F
(See note.)
MRC
SRC
00 hex
28
03
Node No.
(
×
101)
(
×
102)
(ASCII code
2 bytes)
Sub-
address
"00"
(ASCII code
3030 hex)
etc.
SID
"0"
(ASCII
code
30 hex)
Command
(MRC, SRC)
(ASCII code
4 bytes)
Text
(ASCII code)
CompoWay/F
STX
(02 hex)
Node No.
(
×
101)
(
×
102)
(ASCII code
2 bytes)
Sub-
address
"00"
(ASCII code
3030 hex)
etc.
BCC
ETX
(03 hex)
Text
(ASCII code)
Command
(MRC, SRC)
(ASCII code
4 bytes)
SID
"0"
(ASCII
code
30 hex)
Frame after Conversion
Etc.
Remote
network
address
(DNA)
Remote
node
address
(DA1)
Remote
unit
address
(DA2)
Serial port
allocated
address
or local
network
address
or local
network
node
address
Serial
port unit
address
Содержание 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...