A2C-SG2-M12
WWW.LILLIESYSTEMS.COM
34 of 44
13.1.2
Command: Set Periodic Messages Follow ADC
Command
Sub Command
Data[0]
Data[1]
Data[2]
Data[3]
Data[4]
Data[5]
0x57
VAL
DLC = 0x02 (values above 0x02 are also valid, but Data bytes are not used)
VAL:
Turns individual channels on/off:
0x00 = Turn off these periodic messages
0x01 = send a CAN message using a 32bit floating point type every time channel 1 finishes a conversion
0x02 = send a CAN message using a 32bit floating point type every time channel 2 finishes a conversion
0x03 = send a CAN message using a 32bit floating point type every time channel 1 or channel 2 finishes a conversion
0x04 = send a CAN message using a signed 32bit integer type every time channel 1 finishes a conversion
0x08 = send a CAN message using a signed 32bit integer type every time channel 2 finishes a conversion
0x0C = send a CAN message using a signed 32bit integer type every time channel 1 or channel 2 finishes a conversion
0x10 = send raw ADC data using a signed 32bit integer type every time channel 1 finishes a conversion
0x20 = send raw ADC data using a signed 32bit integer type every time channel 2 finishes a conversion
0x30 = send raw ADC data using a signed 32bit integer type every time channel 1 or channel 2 finishes a conversion
The returned data corresponds to data sent with command 0x0B - see section 12.1.2.
For single channel measurement with the lowest filter value of 1, the maximum number of messages is capped at 2400
messages per second, whereas the actual sample rate of the ADC is 4800 messages per second. This is to prevent CAN
bus overload.
Note: Command 0x10, 0x20, 0x30 available from firmware version 0x00000118.
13.2
J1939 type CAN Messages (only for 2 active channels)
In this mode, each channel will have its own ID. Channel 1 will always be the same as the CAN Standard ID as set in 7.1.1, and
channel 2 will always be one value higher. So if the CAN Standard ID is set to 293, then channel 1 will output using this ID, and
channel 2 will use 294.
Enabling J1939 type messages will override and the normal periiodic messages that follows the ADC (command 0x57)
Only integer values are supported in this mode. The integer scaling is used as described in 12.1.5
13.2.1
Command: Set Periodic Messages to follow ADC - J1939 style
Command
Sub Command
Data[0]
Data[1]
Data[2]
Data[3]
Data[4]
Data[5]
0x6E
MODE
DLC = 0x02 (values above 0x02 are also valid, but Data bytes are not used)
MODE:
0x00 = turn off J1939 type messages
0x01 = send a single CAN message containing the normal value of the ADC, using a signed 32bit integer type every time
channel 1 or 2 finishes a conversion
0x02 = send 3 CAN messages using a signed 32bit integer type every time channel 1 or 2 finishes a conversion. The first
message contains the normal values, the second contains the minimum value, and the third contains the maximum value
0x03 =
Output:
Data[0]
Data[1]
Data[2]
Data[3]
Data[4]
Ch1 MSB
Ch1
Ch1
Ch1 LSB
Value type
DLC = 0x05
Value type:
is the requested value and must be one of the following values
0x00 = current measurement
0x02 = minimum value
0x03 = maximum value