![background image](http://html1.mh-extra.com/html/ls/a2c-sg2-m12/a2c-sg2-m12_manual_1943703030.webp)
A2C-SG2-M12
WWW.LILLIESYSTEMS.COM
30 of 44
0x04 = mean value
0x05 = RMS value
0x06 = synced RMS value
Reply:
Command
Sub Command
Data[0]
Data[1]
Data[2]
Data[3]
Data[4]
Data[5]
0x0B
Channel
Return type
Value type
Channel X
MSB
Channel X
Channel X
Channel X
LSB
DLC = 0x08
12.1.3
Command: Get current channel measurements with math functions
Send this command:
Command
Sub Command
Data[0]
Data[1]
Data[2]
Data[3]
Data[4]
Data[5]
0x0C
Return type
Value type
MATH
DLC = 0x04 (values above 0x04 are also valid, but Data bytes are not used)
Return type:
is the data type returned:
0x00 = signed int - 4 bytes
0x01 = float - 4 bytes
Value type:
is the requested value and must be one of the following values
0x00 = current measurement
0x01 = synced measurement
0x02 = minimum value
0x03 = maximum value
0x04 = mean value
0x05 = RMS value
0x06 = synced RMS value
MATH:
is the requested math operation and must be one of the following values
0x00 = No math is performed
0x01 = Add channel 1 to channel 2
0x02 = Subtract channel 2 from channel 1
0x03 = Divide channel 2 with channel 1
0x04 = Multiply channel 1 with channel 2
0x05 = Subtract channel 1 from channel 2
0x06 = Divide channel 1 with channel 2
Reply:
Command
Sub Command
Data[0]
Data[1]
Data[2]
Data[3]
Data[4]
Data[5]
0x0C
Return type
Value type
MATH
Math Result
MSB
Math Result
Math Result
Math Result
LSB
DLC = 0x08
12.1.4
Command: Reset Global Minimum, Maximum and Mean values
The global minimum, maximum and mean values are continuously updated. They can be set to the current value i.e. reset by
sending the following message:
Command
Sub Command
Data[0]
Data[1]
Data[2]
Data[3]
Data[4]
Data[5]
0x0F
VAL
DLC = 0x02 (values above 0x02 are also valid, but Data bytes are not used)
VAL:
0x01 = Reset minimum, maximum and mean values for both input channels
0x02 = Reset minimum, maximum and mean values for input 1
0x03 = Reset minimum, maximum and mean values for input 2
12.1.5
Command: Set Integer Scaling
Since the calibration and all internal data types use floating point data types, getting integers requires scaling. The scaling can be
any integer value, which is then multiplied to the internal floating point, truncated and eventually sent on the CAN bus. The default