A2C-SG2-M12
WWW.LILLIESYSTEMS.COM
31 of 44
scaling value is 10. This means that if the actual value is 8.76, then this value is multiplied by 10 and truncated, thus the value sent
on the CAN bus will be 87. There is no rounding, so a sufficient high scaling factor must be used.
Command
Sub Command
Data[0]
Data[1]
Data[2]
Data[3]
Data[4]
Data[5]
0x1E
Channel
Scaling MSB Scaling
Scaling
Scaling LSB
DLC = 0x06 (values above 0x06 are also valid, but Data bytes are not used)
Channel:
is the channel number that is requested and must be one of the following values
0x00 = channel 1
0x01 = channel 2
Scaling:
unsigned int – 4 bytes representing the scaling.
Example 1
Set scaling to 1000 for channel 1 - send the following command
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
Byte 7
0x1E
0 (channel 1) 0x00
0x00
0x03
0xE8
DLC = 0x06
As with all other parameters, the parameters must be saved if they are to be used automatically at startup.
12.1.6
Command: Get Integer Scaling
Command
Sub Command Data[0]
Data[1]
Data[2]
Data[3]
Data[4]
Data[5]
0x1F
Channel
DLC = 0x01 (values above 1 are also valid, but Data bytes are not used)
Reply
Command
Sub Command
Data[0]
Data[1]
Data[2]
Data[3]
Data[4]
Data[5]
0x1F
Channel
Scaling MSB
Scaling
Scaling
Scaling LSB
DLC = 0x06
Channel:
is the channel number that is requested and must be one of the following values
0x00 = channel 1
0x01 = channel 2
Scaling:
unsigned int – 4 bytes representing the scaling.
12.1.7
Command: Set CAN timeout
This setting only applies to FFT sending
Command
Sub Command Data[0]
Data[1]
Data[2]
Data[3]
Data[4]
Data[5]
0x66
TO
DLC = 0x02 (values above 2 are also valid, but Data bytes are not used)
TO:
Timeout in ms. Default [0x20 = 32ms]
0x00 – 0xFF = timeout in ms that the sensor tries to send a message on the CAN Bus when sending the FFT. The timeout
is independent of the baud rate. The timeout is also independent of the CAN bus fault system which will go off bus if the
Transmit error counter reaches 255.
12.1.8
Command: Get CAN timeout
Command
Sub Command Data[0]
Data[1]
Data[2]
Data[3]
Data[4]
Data[5]
0xE6
DLC = 0x01 (values above 1 are also valid, but Data bytes are not used)
Reply
Command
Sub Command Data[0]
Data[1]
Data[2]
Data[3]
Data[4]
Data[5]
0xE6
TO
DLC = 0x02
TO:
[0x00 – 0xFF] = Timeout in milliseconds
12.1.9
Command: Set wait period between CAN messages
This setting only applies to FFT sending