The system can automatically convert most of the data types from your message. The following types are possible:
Code |
Type |
Length (byte) |
uchar |
unsigned char |
1 |
char |
signed char |
1 |
usint |
unsigned short int |
2 |
sint |
signed short int |
2 |
uint |
unsigned int |
4 |
int |
signed int |
4 |
float |
floating point number |
4 |
chars |
return char array |
Length of message |
string |
read and convert the message into HEX string format |
Length of message * 2 |
IMPORTANT: By default, all data are represented in Little Endian format, typical for embedded devices. If you want to represent data in Big Endian format, add “be” before the data type.
Example
reading integer from devices message
- In little endian format int (or C3896.leint)
- In big endian format C3896.beint