A2C-SG2-M12
WWW.LILLIESYSTEMS.COM
29 of 44
12
Getting measurement values
The measurements from the amplifier can be sent in different formats, either as 24bit integers, 32bit integers or 32 bit
floating point.
There are currently 7 types of data available for each channel:
Current value
RMS value
Mean value
Minimum value
Maximum value
Sync value
Sync RMS value
All types are continuously available. The mean, minimum and maximum values are calculated since startup or since the command: "
Reset Global Minimum, Maximum and Mean values" is received - see section: 12.1.4.
12.1.1
Command: Get both
Send this command:
Command
Sub Command
Data[0]
Data[1]
Data[2]
Data[3]
Data[4]
Data[5]
0x0A
RET
DLC = 0x02 (values above 0x02 are also valid, but Data bytes are not used)
RET:
determines if current values or a previous synced value is used
0x00 = Get current values, which are continuously updated
0x01 = Get a previously synced value. Please see the Sync command in section
0x02 = Get the minimum values
0x03 = Get the maximum values
0x04 = Get the mean values
0x05 = Get the RMS values
0x06 = Get the previously synced RMS values
0x10
After the 0x0A and a sub command have been received, the sensor will return the measurements for both channels as two 24bit
signed integers. The RET value applies to both channels at the same time.
Reply:
Command
Sub Command
Data[0]
Data[1]
Data[2]
Data[3]
Data[4]
Data[5]
0x0A
Value sent is
returned
Ch1 MSB
Ch1
Ch1 LSB
Ch2 MSB
Ch2
Ch2 LSB
DLC = 0x08
12.1.2
Command: Get configurable channel measurements
Send this command:
Command
Sub Command
Data[0]
Data[1]
Data[2]
Data[3]
Data[4]
Data[5]
0x0B
Channel
Return type
Value type
DLC = 0x04
Channel:
is the channel number that is requested and must be one of the following values
0x00 = channel 1
0x01 = channel 2
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