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
):x=RVAL
RVAL=x&MASK
MASK
can be set be set in the record definition. Stream
Device does not set it. If MASK==0
, it is ignored
(i.e. RVAL=x
). The record sets
VAL=(RVAL!=0)
, i.e. 1
if RVAL!=0
and 0
if RVAL==0
.
%{
):x=VAL
VAL=(x!=0)
%s
):VAL
, ZNAM
or
ONAM
is written, i.e. x=VAL?ONAM:ZNAM
.ZNAM
or ONAM
,
VAL
is set accordingly. Other input strings are not accepted.
During initialization, the @init
handler is executed, if
present. All format converters work like in normal operation.
aai aao ai ao bo mbbi mbbo mbbiDirect mbboDirect longin longout stringin stringout waveform calcout scalcout
Dirk Zimoch, 2005