![CityGrow CG102RS232 Скачать руководство пользователя страница 15](http://html1.mh-extra.com/html/citygrow/cg102rs232/cg102rs232_user-manual_2611503015.webp)
13
6.2.1
Device ON/OFF Control
To control device ON, following PDU is required send to CG102RS232:
Cmd
DeviceID
1 byte
3 bytes
Device
Type
1 byte
Control
Cmd
1 byte
0x01
0x01
Figure 6-3 Request PDU of control device ON
If the control device ON is accomplished, following PDU is expected to be returned from
CG102RS232:
Cmd
DeviceID
1 byte
3 bytes
Device
Type
1 byte
Control
Cmd
1 byte
0x02
0x01
Control
Result
1 byte
0x00
Figure 6-4 Response PDU of control device ON
If the target device cannot be reach during the control process, following PDU is expected
to be returned from CG102RS232:
Cmd
DeviceID
1 byte
3 bytes
Device
Type
1 byte
Control
Cmd
1 byte
0x02
0x01
Control
Result
1 byte
0x01
Figure 6-5 Response PDU of device not found
To control device OFF, following PDU is required send to CG102RS232:
Cmd
DeviceID
1 byte
3 bytes
Device
Type
1 byte
Control
Cmd
1 byte
0x01
0x02
Figure 6-6 Request PDU of control device OFF
If the control device OFF is accomplished, following PDU is expected to be returned from
CG102RS232:
Cmd
DeviceID
1 byte
3 bytes
Device
Type
1 byte
Control
Cmd
1 byte
0x02
0x02
Control
Result
1 byte
0x00
Figure 6-7 Response PDU of control device OFF
If the target device cannot be reach during the control process, following PDU is expected
to be returned from CG102RS232:
Cmd
DeviceID
1 byte
3 bytes
Device
Type
1 byte
Control
Cmd
1 byte
0x02
0x02
Control
Result
1 byte
0x01
Figure 6-8 Response PDU of device not found
Содержание CG102RS232
Страница 5: ...3 2 Understanding of the product...
Страница 6: ...4 3 Dimension...