9
.
Program
38
[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]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[10]
[11]
・・・・・・
28
03
AA
BB
CC
DD
EE
FF
GG
HH
II
**
**
**
CompoWay/F
command
Node No.
Subaddress
SID
Command
Text
MRC
SRC
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]
[5]
[6]
[7]
[8]
[9] [10] [11] [12] [13] [14] [15] [16] [17]
・・
28
03
aa
bb
AA BB CC DD
cc
dd
FF GG HH
II
ee
ff
gg hh
**
CompoWay/F
command
Comm-
and end
code
Node
No.
Sub
address
End code
Command
Response
Text
MRC
SRC
MRES
SRES
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.
Содержание E5*D series
Страница 51: ...9 Program 48 2 Initialization processing ...
Страница 52: ...9 Program 49 3 CompoWay F communications processing ...
Страница 53: ...9 Program 50 4 Processing number error process ...
Страница 60: ...2013 2018 0618 0113 P E1 0 ...