Industrielle styresystemer - Wiki
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