Motec appendices 33, Typical can input channel application – MoTeC PDM30 User Manual

Page 36

Advertising
background image

MoTeC

Appendices

33

Offset

Data Size

Alignment

Mask

Divisor

Byte 6

16bit (unsigned)

Normal

FFFF

100

Resulting channel: (0xCC8A masked with 0x0FFF) / 100 = 523 so channel is
clamped to 255

Typical CAN input channel application

A CAN message contains a 16 bit RPM value with resolution of 1 RPM.

Using a 16bit unsigned data type and a divider of 100 gives a resulting
channel with a resolution of 100 RPM. The maximum channel value of 255
will be equivalent to 25500 RPM.

The resulting channel can be used in conditions to turn outputs on when the
RPM is above or below preset limits.

Advertising
This manual is related to the following products: