EasyManua.ls Logo

Omron CJ - PROGRAMMING MANUAL 12-2009 - Page 346

Omron CJ - PROGRAMMING MANUAL 12-2009
448 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
306
Serial Communications Section 6-3
Communications Frames
Command Frame
Note CompoWay/F commands use ASCII as the transmission code. Therefore, be
sure to use ASCII for the CompoWay/F command after the FINS command
code 2803 hex (from node number to text) using CMND(490) or other instruc-
tion.
Example: If the CompoWay/F command MRC SRC is “01” “02” (where the
quotation marks (“”) indicate ASCII characters), 0, 1, 0, 2 must be treated 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
using CMND(490) in frame order (without creating empty bytes), the SID com-
ponent of the CompoWay/F command requires 1 byte of ASCII as 30 hex, so
the subsequent components (s+3 and afterwards) must be set in one byte
each.
Frame before Conversion
FINS header FINS command
CompoWay/F
(See note.)
MRC SRC
00 hex 28 03
Node No.
(× 10
1
)
(× 10
2
)
(2 bytes
ASCII)
Sub-
address
"00"
(ASCII
3030 hex)
etc.
SID
"0"
(ASCII
30 hex)
Command
(MRC, SRC)
(4 bytes ASCII)
Text
(ASCII)
CompoWay/F
STX
(02 hex)
Node No.
(× 10
1
)
(× 10
2
)
(2 bytes
ASCII)
Sub-
address
"00"
(ASCII
3030 hex)
etc.
BCCETX
(03 hex)
Text
(ASCII)
Command
(MRC, SRC)
(4 bytes ASCII)
SID
"0"
(ASCII
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
Frame before Conversion
CompoWay/F
(See note.)
FINS end codeFINS commandFINS header
Frame after Conversion
CompoWay/F
STX
(02 hex)
Node No.
(× 10
1
)
(× 10
2
)
(2 bytes
ASCII)
Remote
network
address
(DNA)
Remote
node
address
(DA1)
SRCMRC MRES SRES
Serial
port
allocated
address
00 hex Serial
port unit
address
03
28
Node No.
(× 10
1
)
(× 10
2
)
(2 bytes ASCII)
Sub-
address
"00"
(ASCII
3030 hex)
etc.
Command
(MRC,
SRC)
(4 bytes
ASCII)
End code
(2 bytes
ASCII)
Response
(MRES,
SRES)
(4 bytes
ASCII)
Text
(ASCII)
Sub-
address
"00"
(ASCII
3030
hex) etc.
Command
(MRC,
SRC)
(4 bytes
ASCII)
Text
(ASCII)
Response
(MRES,
SRES)
(4 bytes
ASCII)
ETX
(03 hex)
BCCEnd code
(2 bytes
ASCII)
Remote
unit ad-
dress
(DA2)
etc.
User-
speci-
fied
User-
speci-
fied

Table of Contents

Related product manuals