Code: |
AS + 205 |
Symbolic: |
bccSetOW16 |
NOTE: this command is not supported in RTE firmware.
This command will set value for multiple 16 bit output word. Request parameters are the following:
Offset |
Type |
Label |
Description |
---|---|---|---|
0 |
U8 |
REP |
No. of consecutive output words (#1) |
1 |
U16 |
INDEX |
Index of first output word required (see your hardware documentation for valid index values) |
3 |
U16 |
MASK0 |
Mask of settable bits for output word 0 |
5 |
U16 |
VAL0 |
Value for output word 0 |
7 |
U16 |
MASK1 |
Mask of settable bits for output word 1 |
9 |
U16 |
VAL1 |
Value for output word 1 |
11 |
... |
... |
... |
Note (#1): maximum value for REP in BCC3 is 63.
NotE (#2): data size is calulated as 3 bytes + (4 bytes * REP).
When setting a value for output word X, the effective value is written as (considering ACT_VALUE as current output word value):
// Pseudo code with C syntax VALUE = (ACT_VALUE & ~MASKx) | (VALx & MASKx) |
On success, a bccAck will received with no data.
On failure, a bccNack is received. Specific errors:
NACK code |
Description |
Extra data |
---|---|---|
nackIllegalArgs |
Illegal arguments |
U16 What illegal 1=No. of output words 2=Output word first index 3=Value U16 Bad value index, from 0 to REP-1 |
nackReadOnly |
Output word is not writable |
U16 Index of output word in error |