ASCII Protocol
Transmission Sequence These commands are supported by the q.bloxx-modules with the TRION 35 CPU. All functions are tested with the APP-version greater "a04.95". Before this version the read and write variable value functions should be supported. There was a firmware failure so these functions did not work either.
Read variable value command with CRC
| Start | Addr | Command | Variable | CRC | End |
|---|---|---|---|---|---|
| Sign | Module | Number | Sign | ||
| "#" | "00".."15" | "R" | "00".."15" | CRC | "\r" |
Read variable intermediate values with CRC
| Start | Addr | Command | Variable | Selection | CRC | End |
|---|---|---|---|---|---|---|
| Sign | Module | Number | Subtype | Sign | ||
| "$" | "00"..."15" | "R" | "00"..."15" | "(0)"..."(4)" | CRC | "\r" |
Subtype options (value of the corresponding signal-conditioning-function):
- 0 ... netto-value (selnet() )
- 1 ... tare-value
- 2 ... brutto-value (selgro() )
- 3 ... null-value
- 4 ... raw-value (selunb() )
Read variable configuration with CRC
| Start | Addr | Command | Variable | CRC | End |
|---|---|---|---|---|---|
| Sign | Module | Number | Sign | ||
| "#" | "00".."15" | "B" | "00".."15" | CRC | "\r" |
| Start | Addr | Command | Variable | CRC | End |
|---|---|---|---|---|---|
| Sign | Module | Number | Sign | ||
| 1 byte | 2 bytes | 1 byte | 2 bytes | 1 byte | 1 byte |
Read variable value without CRC
| Start | Addr | Command | Variable | End |
|---|---|---|---|---|
| Sign | Module | Number | Sign | |
| "$" | "00".."15" | "R" | "00".."15" | "\r" |
Read variable intermediate values without CRC
| Start | Addr | Command | Variable | Selection | End |
|---|---|---|---|---|---|
| Sign | Module | Number | Subtype | Sign | |
| "$" | "00".."15" | "R" | "00".."15" | "(0)".."(4)" | "\r" |
Subtype options:
- 0 ... netto-value
- 1 ... tare-value
- 2 ... brutto-value
- 3 ... null-value
- 4 ... raw-value
Read variable configuration without CRC
| Start | Addr | Command | Variable | End |
|---|---|---|---|---|
| Sign | Module | Number | Sign | |
| "$" | "00".."15" | "B" | "00".."15" | "\r" |
| Start | Addr | Command | Variable | CRC | End |
|---|---|---|---|---|---|
| Sign | Module | Number | Sign | ||
| 1 byte | 2 bytes | 1 byte | 2 bytes | 1 byte | 1 byte |
The return value is a string of the addressed variable as a float number. The format is defined in the variable configuration.
Write Command with CRC
| Start | Addr | Command | Variable | Value | CRC | End |
|---|---|---|---|---|---|---|
| Sign | Module | Number | Sign | |||
| "#" | "00".."15" | "W" | "00".."15" | e.g. 1.0 | CRC | "\r" |
| Start | Addr | Command | Variable | Value | CRC | End |
|---|---|---|---|---|---|---|
| Sign | Module | Number | Sign | |||
| 1 byte | 2 bytes | 1 byte | 2 bytes | length of string | 1 byte | 1 byte |
Write Command without CRC
| Start | Addr | Command | Variable | Value | End |
|---|---|---|---|---|---|
| Sign | Module | Number | Sign | ||
| "$" | "00".."15" | "W" | "00".."15" | e.g. 2.0 | "\r" |
| Start | Addr | Command | Variable | Value | End |
|---|---|---|---|---|---|
| Sign | Module | Number | Sign | ||
| 1 byte | 2 bytes | 1 byte | 2 bytes | length of string | 1 byte |
The return value is a positive acknowledge 0x06 when the write was successful
- the variable has an output part
- the variable number exists
If the write access is not possible the return value is a negative acknowledge 0x15.
Supported Baudrates
| baudrate |
|---|
| adjustable |
| 19200 bps |
| 38400 bps |
| 57600 bps |
| 115200 bps |
The following commands can be used with or without the CRC
The determintation is done by the start sign "$"-without CRC and "#"-with CRC
Command without CRC
| Start | Addr | Command | End |
|---|---|---|---|
| Sign | Module | Sign | |
| 1 byte | 2 bytes | 1 byte | 1 byte |
command with CRC
| Start | Addr | Command | CRC | End |
|---|---|---|---|---|
| Sign | Module | Sign | ||
| 1 byte | 2 bytes | 1 byte | 1 byte | 1 byte |
The following 1 character commands are supported:
| Command | Description |
| "S" | returns the location, serial-number and number-of-variables |
| "V" | returns the Vendor-, Modul-name and the FPGA- OS- and APP-Version |
| "Z" | returns the module error word 2-byte and the variable error word 4-bytes |
| "R" | returns the results of all configured variables |
Link to GanTerm Configuration Files in a ZIP File
These Ganterm configuration files can be used for testing the upper functionality.
