code plc
code plc
Automation Portal
Main
Name Data type Default value Comment
Input
Initial_Call Bool Initial call of this OB
Remanence Bool =True, if remanent data are available
Temp
Constant
%M1.0
%I11.0 "System_ON"
"Start_PB" SR
S Q
%M11.0
"Start_HMI"
%I11.1
"Stop_PB"
R1
%M11.1
"Stop_HMI"
%M1.5
"Cooling"
N
%M19.3
"Tag_23"
%M1.1
%M3.0 "Auto_Mode"
"Auto_HMI" SR
S Q
%M3.1
"Manual_HMI"
R1
%M1.2
%M1.1 %M1.0 "Filling" %Q4.1
"Auto_Mode" "System_ON" SR "Pump"
S Q
%Q4.5 %DB1
"Cooler_Fan" "IEC_Timer_0_DB"
TON %M2.0
Time "Pump_Off"
%M2.0 IN Q
"Pump_Off" ET T#0ms
%MD34
R1
"Pump_
Circulation_
Time" PT
%Q4.5 %MD52
"Temp_Scaled"
"Cooler_Fan"
<=
Real
%MD28
"Cooling_Temp_
Setpoint"
%M1.3
"Heating_Start"
%M1.4
"Mixer"
%M1.3
%M1.0 %M1.1 %M1.2 "Heating_Start" %Q4.0
"System_ON" "Auto_Mode" "Filling" SR "Heater_Power"
N S Q
%M19.0
"Tag_20"
MOVE
EN ENO
13824 IN %QW0
%MD52 %M1.1 %M2.1 OUT1 "heating_scale"
"Temp_Scaled" "Auto_Mode" "Temp_Reached"
>=
Real R1 MOVE
%MD24 NOT EN ENO
"Heating_Temp_ 0 IN %QW0
Setpoint" "heating_scale"
OUT1
%M1.0
"System_ON"
%M1.4
%M1.3 %M1.1 %M1.0 "Mixer" %Q4.3
"Heating_Start" "Auto_Mode" "System_ON" SR "Mixer_Motor"
N S Q
%M19.1
"Tag_21"
%DB3
"IEC_Timer_0_
%M1.5 %M1.1 DB_1"
"Cooling" "Auto_Mode" TON %M2.3
R1 Time "Cooling_En"
IN Q
%MD30 ET T#0ms
"Mixer_Time" PT
%M1.5
%M2.3 %M1.1 %M1.0 "Cooling" %Q4.5
"Cooling_En" "Auto_Mode" "System_ON" SR "Cooler_Fan"
S Q
%MD52 %M1.1
"Temp_Scaled" "Auto_Mode"
<=
Real R1
%MD28
"Cooling_Temp_
Setpoint"
Network 7:
Totally Integrated
Automation Portal
SCALE
EN ENO
%IW0 %MW50
"Temp_Raw" IN RET_VAL "Tag_13"
100.0 HI_LIM %MD52
0.0 LO_LIM OUT "Temp_Scaled"
%M0.0
"Tag_12" BIPOLAR
Network 8: