BCC communication protocol conventions, related to the manual itself.
Primitive data types
Here a list of the primitive data types used by this manual, referring a Intel386 hardware system.
Label |
Size |
Description |
---|---|---|
U8 |
1 |
Unsigned 8bit value |
U16 |
2 |
Unsigned 16bit value |
I16 |
2 |
Signed 16bit value |
U32 |
4 |
Unsigned 32bit value |
I32 |
4 |
Signed 32bit value |
U64 |
8 |
Unsigned 64bit value |
I64 |
8 |
Signed 64bit value |
FLT |
4 |
Floating point (C float format, IEEE) |
DBL |
8 |
Floating point (C double format, IEEE) |
B |
1 |
Byte (or character), like U8 |
VAR |
10 |
BCC3 variable |
STRZ |
? |
ASCII string, zero termined |
When using a data type, the following symbol [n] means a linear array of N items of that data type: if N is omitted, means a dynamic array.
BCC3 variable type
A BCC3 variable is a 10 byte structure that identify one or more value of the same type on device: the variable can be used either to read value and to write value.
Type (2byte) |
IdData, (8byte) |
Where:
•Type identify a unique variable type
•IdData contains information for identifying a specific (or group of) variable of that type.
The IdData has no a specific format and will depend from Type value, that have the following mapping standard
From |
To |
Description |
---|---|---|
0x0000 |
0x0063 |
Reserved |
0x0064 |
0x4FFF |
|
0x5000 |
0x7FFF |
Reserved |
0x8000 |
0x9FFF |
User defined variables |
0xA000 |
0xFFFF |
Reserved |