

An instance of this function block type models the operation of a conveyor for a single workpiece.
A workpiece specified by the
STYLE
and
WKPC
inputs may be loaded at any position
LPOS
(0-100%) on the conveyor by an event at the
LOAD
input, and unloaded by an event at the
UNLD
input. Normal operation of the conveyor is defined in the
CLK
algorithm.
Instances of this type are used as components of the composite CNV_MDLL
and CNVG_MDLL
types.
The operation of an instance of this type is modeled by the Execution Control Chart (ECC) shown above and the algorithms listed below. In the FBDK, this is implemented in optimized Java™ code.
ALGORITHM LOAD IN Java : POS.value = Math.min(100,LPOS.value); END.value = (POS.value==100)&&(STYLE.value != VSTYLE.NONE); STYLO.value = STYLE.value; WKPO.value = WKPC.value; EMPTY.value = (STYLE.value == VSTYLE.NONE); END_ALGORITHM ALGORITHM UNLD IN Java : STYLO.value=VSTYLE.NONE; END.value = false; EMPTY.value = true; END_ALGORITHM ALGORITHM CLK IN Java : POS.value += VF.value; if(POS.value>=100){ POS.value=100; END.value=true;} END_ALGORITHM