GWY-01-PBS-01
30
4
4.5.2 CBx - Controller Response Example
Below is a controller’s response after successfully completing the
Read Data
command (as
issued in the previous example).
Word #
Packet Element
MSB
LSB
01
Overall Length of Response
(
in
"
words
") 0x00
0x08
02
0xAA
in MSB
Command Echo
in LSB: (
0x05
-
Read
Data)
0xAA 0x05
03
Instance Counter
in MSB
Node ID Echo
in LSB
<IC> 0x01
04
Month and Day Timestamp
(
March 19
th
) 0x03
0x13
05
Hour and Minute Timestamp
(
10:11: AM
) 0x0A 0x0B
06
Seconds Timestamp
in MSB: (
36
seconds
)
Additional Data Length
in LSB (
4 bytes
)
0x24 0x04
07
Retrieved Data
(
bytes 1 and 2
)
0x01
0x02
08
Retrieved Data
(
bytes 3 and 4
) 0x03
0x04
Table 7: Controller Response Example
4.5.3 CBx - Gateway Command Example
In this example, the host issues Command 0x13 (
Get Node Status List),
which retrieves from
the Gateway, a list that indicates the operating status of the 16 Nodes.
Word #
Packet Element
MSB
LSB
01
Overall Length of Command
(
in
“
words
”) 0x00
0x06
02
0xAA
in MSB
Command ID
in LSB: (
0x13
-
Get Node
Status List
)
0xAA 0x13
03
0x00
in MSB
Node ID
in LSB: (
0x20 = Gateway Node
32
)
0x00 0x20
04
Not Used
: 0x00, 0x00 (
default
) 0x00
0x00
05
Not Used
: 0x00, 0x00 (
default
) 0x00
0x00
06
Not Used
: 0x00, 0x00 (
default
) 0x00
0x00
Table 8: Gateway Command Example
Note that even though the last three words (6 bytes) of this command are not used, these
parameters still require zero’s (
0x00, 0x00
) and are to be included when calculating
Overall
Length
.
Содержание GWY-01-PBS-01
Страница 1: ...GWY 01 PBS 01 Reference Manual ...
Страница 5: ...v C ASCII CHART 92 ...
Страница 101: ...www automation datalogic com ...