9
.
Program
41
[CmdDat[ ]: Command array]
Variable
Setting item
Data type
Setting value
CmdDat
Command array
ARRAY[0..255
] OF BYTE
-
Element
number
0
CompoWay/F
command
BYTE
16#28
Fixed
1
BYTE
16#03
2
Node No.
BYTE
16#30
"01": Unit No. of Destination
Device
3
BYTE
16#31
4
Subaddress
BYTE
16#30
"00": Fixed (Not used)
5
BYTE
16#30
6
SID
BYTE
16#30
"0": Fixed (Not used)
7
Command
MRC
BYTE
16#30
"0503": "Read Controller
Attributes" command
8
BYTE
16#35
9
SRC
BYTE
16#30
10
BYTE
16#33
:
Text
BYTE
・・・
16#00
" ": The setting is not required for
this command.
After the data boxed in red above is set with the following STRING array variable, it is
transferred to the command array (CmsDat[]).
Variable
Data type
Data
Local_cmdCWFdata
STRING[256]
CONCAT(NodeNo, SubAddress,SID,
MRCSRC, SendText);
●SendC
md instruction receive data
[RespDat[ ]: Response storage array]
Variable
Storing item
Data type
Storing value
RespDat
Response storage
array
ARRAY[0..255
] OF BYTE
-
Element
number
0
CompoWay/F
command
BYTE
16#28
Fixed: Same as CmdDat[0]
1
BYTE
16#03
Fixed: Same as CmdDat[1]
2
Command end code
BYTE
16#**
End code of CompoWay/F
command
3
BYTE
16#**
4
Node No.
BYTE
16#30
"01": Unit No. of Destination
Device
5
BYTE
16#31
6
Subaddress
BYTE
16#30
"00": Fixed (Not used)
7
BYTE
16#30
8
End code
BYTE
16#**
"xx": End code
("00": Normal end)
9
BYTE
16#**
10
Command
MRC
BYTE
16#30
"0503": "Read Controller
Attributes" command
11
BYTE
16#35
12
SRC
BYTE
16#30
13
BYTE
16#33
14
Response
MRES
BYTE
16#**
"xxxx"
("0000": Normal end)
15
BYTE
16#**
16
SRES
BYTE
16#**
17
BYTE
16#**
:
Text
BYTE
・・・
16#**
・・
"xxxx
・・・
"