SetPVal

Scales a TwinCAT process value of type: LREAL and writes the attribute value to the attribute of "i" or "f" of "AnalogValue" (analog value as integer or floating point number).

METHOD SetPVal : BOOL
VAR_INPUT
    fProcess : LREAL; 
    ipUnit   : I_AcsiDATypeUnit;
    ipSVC    : I_AcsiDATypeScaledValueConfig;
END_VAR