Function description
- Report the status of the muck truck: weight, lifting, closing, opening (closing), loading percentage
scheme 1. muck truck docking (ttx agreement)
SDK version requirements
For versions of "V6.1.52 20190803" (inclusive) and later, please contact us for SDK.
Definition of status of muck truck
typedef struct tagTTXSlagStatus
{
unsigned int uiWeight; // weight, can be scale, percentage, converted by the background. If the weight is true, the unit is kilogram.
unsigned char ucLift; // Lift (1)
unsigned char ucClose; // Open (1)/Close (0)
unsigned char ucLoadPersent;//Loading percentage, displayed when it is not 0
unsigned char ucValid; //Please fill in 1 to indicate that the status of the muck truck is valid.
char cReserve[8]; // reserved field
} TTXSlagStatus_S, * LPTTXSlagStatus_S;
Docking sample code
Programme I:
TTXSlagStatus_S slag = {0};
slag.uiWeight = 20000;
slag.ucClose = 1;
slag.ucLift = 0;
slag.ucLoadPersent = 50;
slag.ucValid = 1;
TTXNetIns()- >SetSlagStatus (flag); // Proactive update status
Programme II:
or overload GetSlagStatus return status
virtual TTXSlagStatus_S GetSlagStatus() { return m_SlagStatus;}
Note: please configure the flag. ucValid to 1
Scheme 2. muck truck docking (808 agreement)
Extended ID 0xFC BYTE[12] Status of the muck truck
| Start byte | Field | Data type | Description and requirements |
|---|---|---|---|
| 0 | Weight | DWORD | True Weight in kg 'Note 1 ' |
| 4 | Lift | BYTE | 1 Lift, 0 Lay Flat |
| 5 | CLOSED | BYTE | 1 Closing, 0 Closing |
| 6 | Load Percentage | BYTE | Temporarily invalid |
| 7 | Reserved | BYTE | 0 |
| 8 | Alarm status bit | DWORD | 0 bit: overload alarm 1 bit: unloading alarm 2 bit: loading alarm 3~31: reserved |
Precautions
- Platform weight support range is (0- 262143) kg