![CityGrow CG102RS232 Скачать руководство пользователя страница 14](http://html1.mh-extra.com/html/citygrow/cg102rs232/cg102rs232_user-manual_2611503014.webp)
12
6.2
Device Control
In the device Control, 1 byte of Control Command (ControlCmd) is required in the parameter
field of PDU to identify the control function. The different types of ControlCmd are shown
in Table 4-4
Table 6-4 Device control command
ControlCmd
Description
Name
Code
DEVICE_ON
0x01
Control device ON
DEVICE_OFF
0x02
Control device OFF
DIM_UP_START
0x11
Start to dim-up (Dimmer only)
DIM_UP_STOP
0x12
Stop to dim-up (Dimmer only)
DIM_DOWN_START
0x13
Start to dim-down (Dimmer only)
DIM_DOWN_STOP
0x14
Stop to dim-down (Dimmer only)
DIM_TO_LEVEL
0x15
Dim to a provided dimming level (Dimmer
only)
CURTAIN_UP
0x21
Control curtain to move up when curtain is
stopped
Control curtain stop when curtain is moving
CURTAIN_DOWN
0x22
Control curtain to move down when curtain is
stopped
Control curtain stop when curtain is moving
SEND_IR_CODE
0x31
Control CG102IR to send infrared signal
according to the provided IR signal code
When the device control PDU is sent to CG102RS232, a device control response with control
result (ControlResult) is expect to be returned from CG102RS232 after the device control is
accomplished. The ControlResult is used to indicate the result of the control. Table 4-5
shows the format of the ControlResult.
Table 6-5 Format of ControlResult
ControlResult
Description
Name
Code
SUCCESS
0x00
Control device success
FAILURE
0x01
Control device failure
Содержание CG102RS232
Страница 5: ...3 2 Understanding of the product...
Страница 6: ...4 3 Dimension...