mbboDirect Records

Normal Operation

Depending on the format type, different record fields are used for output and input. The variable x stands for the written or read value.

DOUBLE format (e.g. %f):
Not allowed.
LONG or ENUM format (e.g. %i):
If MASK==0 (because NOBT is not set):
Output: x=RVAL
Input: RAL=x, VAL=RVAL>>SHFT
If MASK!=0:
Output: x=RVAL&MASK
Input: RBV=RVAL=x&MASK, VAL=RVAL>>SHFT
MASK is initialized to NOBT 1-bits shifted left by SHFT (((2^NOBT)-1)<<SHFT). The record calculates RVAL=VAL<<SHFT.
STRING format (e.g. %s):
Not allowed.

Initialization

During initialization, the @init handler is executed, if present.