24
ATIM_ACW-TMxP_UG_EN_V1.0
In the case of ACW-TMxP,
the
type of measurement
can take three values:
•
1 in decimal (0x01 in hexadecimal) for the input state.
•
4 in decimal (0x04 in hexadecimal) for a counting channel.
•
8 in decimal (0x08 in hexadecimal) for a temperature channel.
A temperature measurement will be expressed in hundredths of ° C on 2 bytes (encoding in
Big Endian
, MSB first)
Type of measure
Units
Data size
Type of the data
Descriptions
0x01
Bit
1 byte
Bit field
State of 8 inputs
0x04
Impulsions
4 bytes (
Big
Endian
–
MSB)
Unsigned
integer
Meter value
0x08
c°C
2 bytes (
Big
Endian
- MSB)
Signed integer
Temperature in
hundredth
of a degree Celsius
➢
Resolution: 0.05°C
➢
Max value: 327.67°C
➢
Min value: -327.68°C
Then follow the data of the measurement sample (s) (depending on the configuration of the product). The number of
bytes sent can be determined as follows:
(Size in bytes of the measurement) * (number of samples) * (history depth)
Example:
For example, for measurement type 0x08 (the size of a value is two bytes) with a history depth of
2 and 3 samples, the size of the data to be read would be 12 bytes (2x2x3).
WARNING:
a received temperature of 0x8000 corresponds to a measurement error. This is often due to an improperly
connected cable.
Alert frame
If the Timestamp is activated, 4 bytes with the Timestamp value will be preceded by the header (byte 1).
For each of the channels in alert, a header is inserted and is constituted as follows:
Byte 1 - Header
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
New
generation= 1
Timestamp
Measuring
frame= 0
Reserved= 0
Alert frame
= 0x0d
Channel header
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Alert type
Number of the channel
Type of measure