-
Code: |
AS + 406 |
Symbolic: |
bccMonQuick |
This command will query monitor data quickly, only one-shoot request. Request parameters are the following:
Offset |
Type |
Label |
Description |
---|---|---|---|
0 |
U8 |
N |
Number of variables (1-25) |
1 |
VAR0 |
Variable def 0 |
|
... |
VAR1 |
Variable def 1 |
|
... |
... |
.... |
.... |
... |
VAR{N-1} |
Variable def N-1 |
Notes:
•maximum value for N have to be calculate dynamically (maximum 25 var BCC3) . For BCC3 you should calculate that sum of resulting variables sizes is less or equal to 255 bytes.
On success, a bccAck is received containing request data, acccording monitor variable definition.
On failure, a bccNack is received. Specific errors:
NACK code |
Description |
Extra data |
---|---|---|
nackDataOverflow |
Data for monitor is exceeding the maximum limit (for BCC3 is 255 bytes) |
|
nackIllegalArgs |
Illegal arguments |
U16 What illegal 1=(unused) 2=Number of variable 10+N=Bad variable {N} U16 Variable error code 1=Unkown type 2=Bad index 3=Bad address 4=Bad repeat counter 5=Variable data too long |
Notes:
•quick monitor can use not initialized variables in reading, but they always have conventional 0 value.