5-6
Communications Frames
5-6-1
CompoWay/F
Command Frame
Frame before Conversion
Header
Remote
Remote
network
node
address
address
(DNA)
(DA1)
Serial port
00 hex
allocated
address
or local
or local
network
network
address
node
address
Frame after Conversion
STX
Node No.
(× 10 1 )
(02 hex)
(× 10 2 )
(ASCII code
2 bytes)
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.
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
Command
Remote
Etc.
MRC
SRC
unit
address
(DA2)
Serial
28
03
port unit
address
CompoWay/F
Sub-
SID
Command
address
"0"
(MRC, SRC)
"00"
(ASCII
(ASCII code
(ASCII code
code
4 bytes)
3030 hex)
30 hex)
etc.
CompoWay/F
(See note.)
Node No.
Sub-
SID
(× 10 1 )
address
"0"
(× 10 2 )
"00"
(ASCII
(ASCII code
(ASCII code
code
2 bytes)
3030 hex)
30 hex)
etc.
Text
ETX
(ASCII code)
(03 hex)
5 Serial Gateway
Command
Text
(MRC, SRC)
(ASCII code)
(ASCII code
4 bytes)
BCC
5-33
5