PKP2500SI_CANopenUM_REV1.0
12/38
18.
Object 2002h: Digital output module.
This module sets and reads the LED Blink States.
Each bit position represents the corresponding LED. A one indicates the LED is blinking a zero
indicates the LED is not blinking. If the blink message is sent when the LED is already ON, the LED
blinks in alternate mode.
a)
Set LED blink
•
PKP 2500SI
Identifier
600h + current CAN ID
Default 615h
Byte 0
2Bh
Set Device Register
Byte 1
02h
CAN Object 2002h
Byte 2
20h
Byte 3
XXh
XX: Sub index
01h: Red LED
02h: Green LED
03h: Blue LED
Byte 4
YYh
L8 L7 L6 L5 L4 L3 L2 L1 LED position
Byte 5
ZZh
0 0 0 0 0 0 0 L10 L9 LED position
Byte 6,7
00h
Not used
Examples:
Direction
Identifier
Format
Message
Data
To Keypad
615
Std
2B 02 20 01 02 00 00 00
Set red LED #2 blink
Keypad reply
595
Std
60 02 20 01 00 00 00 00
Command accepted
To Keypad
615
Std
2B 02 20 03 00 01 00 00
Set blue LED #9 blink
Keypad reply
595
Std
60 02 20 03 00 00 00 00
Command accepted
b)
Read LED blink
•
PKP 2500SI
Identifier
600h + current CAN ID
Default 615h
Byte 0
40h
Read Device Register
Byte 1
02h
CAN Object 2002h
Byte 2
20h
Byte 3
XXh
XX: Sub index
01h: Red LED
02h: Green LED
03h: Blue LED
Byte 4,7
00h
Not used
Examples:
Direction
Identifier Format
Message
Data
To Keypad
615
Std
40 02 20 01 00 00 00 00
Read red LED blink
Keypad reply
595
Std
4B 02 20 01 FF 03 00 00
All red LED blink
To Keypad
615
Std
40 02 20 02 00 00 00 00
Read green LED blink
Keypad reply
595
Std
4B 02 20 02 10 00 00 00
Only green LED #6 blinks
To Keypad
615
Std
40 02 20 03 00 00 00 00
Read blue LED blink
Keypad reply
595
Std
4B 02 20 03 00 00 00 00
No blue LED blinks