Omron E5*D Series Connection Manual page 41

General-purpose serial. rs-485 compoway/f. machine automation controller,
Hide thumbs Also See for E5*D Series:
Table of Contents

Advertisement

[CmdDat[] array: Command array (send data)]
With this program, the command data (send data), after being set with the STRING array
variable (Local_cmdCWFdata), is converted and stored in the BYTE array variable
(Local_cmddata), and then transferred to the command array (CmdDat[]).
Command array
[0]
[1]
[2]
28
03
AA
BB
CompoWay/F
Node No.
command
The CompoWay/F command (16#2803) is a command that can be executed when using
CompoWay/F with the Serial Gateway function of the SCU.
The shaded areas of the command data (from AA onwards) are expressed in ASCII codes.
[RespDat[] array: Response storage array (receive data)]
With this program, the response data (receive data), after being received in the response
storage array (RespDat[]), is stored in the BYTE array variable (Local_recvdata).
The data is then converted into the STRING array variable (Output_recvCWFdata) and is
checked.
Response storage array
[0]
[1]
[2]
[3]
[4]
28
03
aa
bb
AA
CompoWay/F
Comm-
Node
command
and end
No.
code
The shaded areas of the response data (from AA onwards) are expressed in ASCII codes.
The response data that are not boxed with thick lines such as AA will be the same values as
those of the command code.
The response data boxed with thick lines (cc, dd, ee to hh) will be stored in the following
variables as Destination Device error codes when a Destination Device error occurs.
For details, refer to 9.7.2. Destination Device Error.
Ouitput_CWFErrCode1: End code
Ouitput_CWFErrCode2: Response (MRES, SRES)
"aa" and "bb" command end codes are not used in this guide or this program.
[3]
[4]
[5]
[6]
CC
DD
EE
Subaddress
SID
[9] [10] [11] [12] [13] [14] [15] [16] [17] ・・
[5]
[6]
[7]
[8]
BB
CC DD
cc
dd
Sub
End code
address
[7]
[8]
[9]
[10]
FF
GG
HH
II
Command
MRC
SRC
FF
GG
HH
II
ee
Command
MRC
SRC
MRES
9.Program
[11]・・・・・・
**
**
**
Text
ff
gg
hh
**
Response
Text
SRES
38

Advertisement

Table of Contents
loading

Table of Contents