andrebrandt - 18 hours ago

Hi all.
I have a FB written in ST.

FUNCTION_BLOCK NTC10k
VAR_INPUT
    Syst:STRING;
    In:REAL;
END_VAR
VAR_OUTPUT
    Out:REAL;
    OTag:STRING;
    Out_St:Struct_NTC10K;
END_VAR

VAR
    Tag:STRING;
    InstanceName: STRING;
    Structure:Struct_NTC10K;
END_VAR

What i'm trying to do, is to pass data to structure. In structure i want to add a tag with systemnumber and sensorname.
'320.001-RT401'

In pou i use this RT401: NTC10k;, and tried this RT401: NTC10k(Tag:='RT401');

Anyone done this?