This example is a full working configuration that configures all the I/O on the CXM110 to be read and controlled from the CAN bus using proprietary J1939 messages. The CXM110 is an I/O module based on the MPC20 hardware minus the LCD display and keypad.
Analog input values and digital input status is broadcast over the data bus at regular intervals defined in the J1939 Library. The analog inputs are configured in the I/O library definitions and can be changed as needed. An example of each type is given.
Digital outputs and Relay outputs are controlled by a J1939 message which also contains a safety heart beat. The heart beat is a single bit that alternates on/off with each message and is used to reset an internal timer. If the timer does not get reset and it counts down to "0", then a "lost Com" message is generated and the outputs are all driven off.
No control logic is used in this example other than verifying communications with the transmitting device.
This was last verified in Powervision 2.9.23029.