Depending on the format type, different record fields are used
for output and input. The variable x
stands for the
written or read value.
%f
):%i
):ZRVL
... FFVL
is set
(is not 0
):x=RVAL&MASK
RVAL
by choosing one of
ZRVL
... FFVL
depending on VAL
and by shifting it left by SHFT
bits.RBV=x&MASK
MASK
is initialized to NOBT
1-bits shifted
left by SHFT
. If MASK==0
(because
NOBT
was not set) it is ignored, i.e.
x=RVAL
and RBV=x
.
ZRVL
... FFVL
is set
(all are 0
):x=VAL
VAL=x
%{
):x=VAL
VAL=x
%s
):VAL
, one of ZRST
... FFST
is written. VAL
must be in the
range 0 ... 15.ZRST
...
FFST
, VAL
is set accordingly.
Other input strings are not accepted.
During initialization, the @init
handler is executed, if
present. In contrast to normal operation, LONG input is put to
RVAL
as well as to RBV
and converted by the
record.
aai aao ai ao bi bo mbbi mbbiDirect mbboDirect longin longout stringin stringout waveform calcout scalcout
Dirk Zimoch, 2005