Via Montefeltro, 6 – 20156 Milano (MI) – Italy
- 21 -
Tel. +39 (02) 3088583 – Fax +39 (02) 33406697
www.blinkmarine.com
–
PowerTruck_CANOpen_UM_REV1.5
b)
Sub 2 - Encoder direction counter
This module contains the Encoder direction counter. The command works only in the pre-
operational state.
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 is 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.
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
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