Code: |
AS + 201 |
Symbolic: |
bccGetIW16 |
NOTE: this command is not supported in RTE firmware.
This command will get value for multiple 16 bit input word. Request parameters are the following:
Offset |
Type |
Label |
Description |
---|---|---|---|
0 |
U8 |
REP |
No. of consecutive input words (#1) |
1 |
U16 |
INDEX |
Index of first input word required (see your hardware documentation for valid index values) |
Note (#1): maximum value for REP in BCC/31 is 63.
On success, a bccAck is received with following data:
Offset |
Type |
Label |
Description |
---|---|---|---|
0 |
U16 |
PSTATE0 |
Physical state of input word 0 |
2 |
U16 |
LSTATE0 |
Logical state of input word 0 |
4 |
U16 |
PSTATE1 |
Physical state of input word 1 |
6 |
U16 |
LSTATE1 |
Logical state of input word 1 |
8 |
... |
... |
... |
Notes:
•data size is calulated as 4 bytes * REP.
On failure, a bccNack is received. Specific errors:
NACK code |
Description |
Extra data |
---|---|---|
nackIllegalArgs |
Illegal arguments |
U16 What illegal 1=No. of input words 2=Input words first index |
nackWriteOnly |
Input word is not readable |
U16 Index of input word in error |
nackNotAuhorized |
|
|