Please enable JavaScript to view this site.

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

N. of consecutive output words

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

...

...

...

Notes:

maximum value for REP in BCC3 is 63.

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 Param ID

1 = Bad REP field

2 = Bad INDEX field

3 = Bad VALUE

 

U16 Bad value index, from 0 to REP-1

nackReadOnly

Output word is not writable

U16 Error OW relative index

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC