19/31
PowerTrackCANopenUM_REV1.4
b)
Sub 2 - Encoder direction counter
This module contains the Encoder direction counter. The keypad must be enabled, see keypad
activation message
Identifier
615h (600h + current CAN ID)
Byte 0
40h
Read Device Register
Byte 1
00h
CAN Object 2000h
Byte 2
20h
Byte 3
02h
Sub index
Byte 4,7
00h
Not used
Keypad Reply:
Identifier
595h (580h + current CAN ID)
Byte 0
4Fh
Byte 1
00h
CAN Object 2000h
Byte 2
20h
Byte 3
02h
Sub index
Byte 4
XXh
Bit 7: encoder direction
0: Clockwise
1: Counterclockwise
Bit 0…6: Number of ticks
Byte 5,7
00h
Not used
The number of ticks are counted from the last Encoder State message sent.
The counter is reset after the message is sent out.
Examples:
c)
Sub 3 - Encoder tick counter
The Tick counter is a two bytes counter incremented each clockwise tick and decremented each
counterclockwise tick.
Identifier
615h (600h + current CAN ID)
Byte 0
40h
Read Device Register
Byte 1
00h
CAN Object 2000h
Byte 2
20h
Byte 3
03h
Sub index
Byte 4,7
00h
Not used
Keypad Reply:
Identifier
595h (580h + current CAN ID)
Byte 0
4Bh
Byte 1
00h
CAN Object 2000h
Byte 2
20h
Byte 3
03h
Sub index
Byte 4,5
XXXXh
Tick counter
Byte 6,7
00h
Not used
Direction
Identifier
Format
Message
Data
To Keypad
615
Std
40 00 20 02 00 00 00 00
Keypad reply
595
Std
4F 00 20 02 00 00 00 00
No ticks completed
4F 00 20 02 01 00 00 00
One tick clockwise
4F 00 20 02 81 00 00 00
One tick
counterclockwise
4F 00 20 02 02 00 00 00
Two tick clockwise