11/38
PKP2500SI_CANopenUM_REV1.0
17.
Object 2001h: Digital output module.
This module sets and reads the LED Outputs States. Each bit position represents the corresponding
LED. A one indicates the LED is ON a zero indicates the LED is OFF.
a)
Set LED ON
•
PKP 2500SI
Identifier
600h + current CAN ID
Default 615h
Byte 0
2Bh
Set Device Register
Byte 1
01h
CAN Object 2001h
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 5,7
00h
Not used
Examples:
Direction
Identifier
Format
Message
Data
To Keypad
615
Std
2B 01 20 01 10 00 00 00
Set red LED #5 ON
Keypad reply
595
Std
60 01 20 01 00 00 00 00
Command accepted
To Keypad
615
Std
2B 01 20 03 00 02 00 00
Set blue LED #10 ON
Keypad reply
595
Std
60 01 20 03 00 00 00 00
Command accepted
b)
Read LED ON
The LED have the same mapping of Set LED ON message
•
PKP 2500SI
Identifier
600h + current CAN ID
Default 615h
Byte 0
40h
Read Device Register
Byte 1
01h
CAN Object 2001h
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 01 20 01 00 00 00 00
Read red LED
Keypad reply
595
Std
4B 01 20 01 08 00 00 00
Only red LED #4 ON
To Keypad
615
Std
40 01 20 02 00 00 00 00
Read green LED
Keypad reply
595
Std
4B 01 20 02 80 00 00 00
Only green LED #8 ON
To Keypad
615
Std
40 01 20 03 00 00 00 00
Read blue LED
Keypad reply
595
Std
4B 01 20 03 04 00 00 00
Only blue LED #3 ON