Switch Module

blue

The switch module offers a versatile solution with 24 inputs specifically designed to accommodate a wide range of switches, whether they are mechanical or electronic in nature. This module supports various types of switches, including toggles, pushbuttons, rotational switches, and any other electrical contact-based switches or opto-coupler outputs.

The switch module is equipped with a convenient built-in pull-up and debounce circuit, eliminating the need for complex wiring. With this feature, a simple contact to ground is all that is required for seamless operation.

Each time a switch input is connected to ground, a "switch close" event is signaled, generating a corresponding message. Conversely, when the ground connection is removed, a "switch open" message is generated, indicating the change in the switch's status.

The structure of the CAN bus data field sent by a switch module is as follows:

Byte Description Values
0 Node ID 1-255
1 Data Type BCHAR (11)
2 Service Code <switch num>
3 Message Code <message num>
4 Data Byte 1 <Switch State>
5 Data Byte 2 0
6 Data Byte 3 0
7 Data Byte 4 0

The bitfield in Data Byte 1 is as follows:

Bit Description Values
0 Switch ON Set to 1 in the case of a switch close event
1 Switch OFF Set to 1 in the case of a switch open event
2-7 unused 0

Switch modules use CAN Identifiers in the range of 0x710 - 0x717.