You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

As the program contains a lot of settings (10+) the need for a function block that collectively parses all parameters and provides the output settings.


IF xTrig THEN
    SettingsParser.jsonString := jsonString;
    PHSettings := THIS^.GetSettings('PH');
    ECSettings := THIS^.GetSettings('EC');
    WaterTempSettings := THIS^.GetSettings('WaterTemp');
    CO2Settings := THIS^.GetSettings('CO2');
    AirTempSettings := THIS^.GetSettings('AirTemp');
    HumiditySettings := THIS^.GetSettings('Humidity');
    xTrig := FALSE;
END_IF

  • No labels