Code: |
AS + 316 |
Symbolic: |
bccSafeReadVar |
This command will read value for a variable in a safe way. Request parameters are the following:
Offset |
Type |
Label |
Description |
---|---|---|---|
0 |
U32 |
VARSETID |
Variable set identification |
4 |
VARID |
Variable identification |
On success, a bccAck is received with following data:
Type |
Label |
Description |
---|---|---|
U8[] |
DATA |
Variable data, according VARID field. |
On failure, a bccNack is received. Specific errors:
NACK code |
Description |
Extra data |
---|---|---|
nackReadError |
Error reading variable |
|
nackIllegalArgs |
Illegal parameter |
U16 What illegal: 1=Type 2=Index 3=Address 4=Repeat counter 5=Bit index 6=Size |
nackDataOverflow |
Variable data too long (exceed 255) |
|
nackWriteOnly |
Variable is write only, cannot read |
|
nackIllegaleVarsetId |
Illegal variable set indetification |
|
nackNotInitialized |
Variable is not initialized |
|
For more information about variable types, see table of standard variables.