The program is designed to receive data from the axle load sensor AXISLOAD from PROFITECHCIFRA LLC.
Main:
Additional:
The program listens to the RS-485 interface and parses data from the axle load sensor.
Total Load
This is the total load on all axles (taken "as is" from the sensor)
"Overload"/"Normal" Status
Global overload flag (taken "as is" from the sensor)
Data Validity Flag
A flag that allows validating data on the monitoring server
Since the AXISLOAD system can work with a variable number of axles, for the universality of the implementation, the program does not save data on the load for each axle. Instead, a parameter "Maximum load value on one of the axles" is formed.
Number of Axles
Maximum Load Value on One of the Axles
When receiving data for the axles, the program compares all loads and saves the maximum value in this parameter
"Raised"/"Lowered" Statuses for Each Axle
A flag field containing the operating modes of all axles
"Overload"/"Normal" Statuses for Each Axle
A flag field containing the overload statuses of all axles
On the RS-485 interface, select:
| Setting | Value |
|---|---|
| Device 1 | Complex Events (asynchronous) |
| Baud Rate | 57600 |
| Parity | None |
| Stop Bits | 1 |


An example of loading a program into a device is described in this article

none
| Associated Variable | total_weight |
| Description | Total load in kilograms |
| Transmit as | 2 or 4 byte parameter |
| Variable Type | U32 |
| Associated Variable | total_overload |
| Description | Global overload flag: 0 - Normal 1 - Overload |
| Transmit as | 1 byte parameter |
| Variable Type | Bool |
| Associated Variable | axis_count |
| Description | Number of axles for which AXISLOAD transmits data |
| Transmit as | 1 byte parameter |
| Variable Type | U8 |
| Associated Variable | axis_weight_max |
| Description | Maximum load value recorded when reading axle loads, in kilograms |
| Transmit as | 2 or 4 byte parameter |
| Variable Type | U32 |
| Associated Variable | mode_mask |
| Description | Status flags for each axle. The parameter is a bit field where each bit corresponds to its own axle: bit0 - axle 1 bit1 - axle 2 ... bit31 - axle 32 Bit values: 0 - Lowered 1 - Raised |
| Transmit as | Depending on the number of axles: 1 byte - 2..8 axles 2 byte - 9..16 axles 4 byte - 17..32 axles |
| Variable Type | Bits |
| Associated Variable | overload_mask |
| Description | Overload flags for each axle. The parameter is a bit field where each bit corresponds to its own axle: bit0 - axle 1 bit1 - axle 2 ... bit31 - axle 32 Bit values: 0 - Normal 1 - Overload |
| Transmit as | Depending on the number of axles: 1 byte - 2..8 axles 2 byte - 9..16 axles 4 byte - 17..32 axles |
| Variable Type | Bits |
| Associated Variable | data_ok |
| Description | Data validity flag from the sensor 0 - Data is not correct 1 - OK |
| Transmit as | 1 byte parameter |
| Variable Type | Bool |
| Code | Description |
|---|---|
41046 |
Data validity flag changed |
none