ACM1252U-Y3
– Reference Manual
Version 1.03
www.acs.com.hk
Page 86 of 92
www.acs.com
.hk
5.6. ACR122U Compatible Commands
5.6.1.
Bi-color LED and Buzzer Control
This command is used to control the states of the Bi-Color LED and the Buzzer.
Bi-Color LED and Buzzer Control Command Format (9 bytes)
Command
Class
INS
P1
P2
Lc
Data In (4 Bytes)
Bi-Color LED and
Buzzer Control
FFh
00h
40h
LED State
Control
04h
Blinking Duration
Control
P2:
LED State Control
Bi-color LED and Buzzer Control Format (1 byte)
CMD
Item
Description
Bit 0
Final Red LED State
1 = On; 0 = Off
Bit 1
Final Green LED State
1 = On; 0 = Off
Bit 2
Red LED State Mask
1 = Update the State
0 = No change
Bit 3
Green LED State Mask
1 = Update the State
0 = No change
Bit 4
Initial Red LED Blinking State
1 = On; 0 = Off
Bit 5
Initial Green LED Blinking State
1 = On; 0 = Off
Bit 6
Red LED Blinking Mask
1 = Blink
0 = Not Blink
Bit 7
Green LED Blinking Mask
1 = Blink
0 = Not Blink
Data In:
Blinking Duration Control
Bi-color LED Blinking Duration Control Format (4 bytes)
Byte 0
Byte 1
Byte 2
Byte 3
T1 Duration
Initial Blinking State
(Unit = 100 ms)
T2 Duration
Toggle Blinking State
(Unit = 100 ms)
Number of
repetition
Link to Buzzer
Where:
Byte 3
Link to Buzzer. Control the buzzer state during the LED Blinking.
00h = The buzzer will not turn on.
01h = The buzzer will turn on during the T1 Duration.
02h = The buzzer will turn on during the T2 Duration.
03h = The buzzer will turn on during the T1 and T2 Duration.