An instance of this Function Block type stores and retrieves data as
(KEY,VALUE)
pairs of
WSTRING
s in an encapsulated instance of the Java™ Hashtable class.
- As shown in the init_table
service sequence, an
INITevent will clear the table and then initialize it from theIVALinput, which contains a comma-separated sequence of(KEY,VALUE)pairs, e.g.,"KEY1,VALUE1,KEY2,VALUE2", etc. - As shown in the normal_read
sequence, a READ event will cause the data (if any) corresponding
to the
KEYinput to be written toOUT, followed by aCNF+event, i.e., aCNFevent withQO = TRUE. - As shown in the read_no_match
sequence, if there is no data associated with the
KEY, an empty string will be written toOUT, followed by aCNF-event, i.e., aCNFevent withQO = FALSE. - As shown in the write sequence, a
WRITEevent will write theVALUEdata into a location in the table corresponding to theKEYinput and also toOUT, followed by aCNF+event.- This will over-write any previous data in the table
associated with the
KEYvalue.
- This will over-write any previous data in the table
associated with the