as follows: VAR_INPUT Belt [...] _TYPE PROGRAM PLC_PRG VAR r [...] Base.DepictorFrame; END_VAR rCount := r