Professional Documents
Culture Documents
Điều khiển 3 bơm
Điều khiển 3 bơm
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
%DB1
"Timer_ON_15s"
%I0.0 %I0.2 TON
"Start" "Error" Time
IN Q
T#15s PT
%MD2
%Q0.0 "TimeCount_ON_
"Motor_1" ET 15s"
%M0.1
"Bit_Stop_ %Q0.0
Motor_1" "Motor_1"
%MD2
%M0.2
"TimeCount_ON_ "Bit_Stop_ %Q0.1
15s" Motor_2" "Motor_2"
>=
Time
T#10s
%MD2 %M0.3
"TimeCount_ON_ "Bit_Stop_ %Q0.2
15s" Motor_3" "Motor_3"
>=
Time
T#15s
%DB2
"Timer_OFF_15s"
%I0.1 %I0.2 TON
"Stop" "Error" Time
IN Q
T#15s PT %MD6
%M0.3 "TimeCount_
"Bit_Stop_ ET OFF_15s"
Motor_3"
%M0.3
"Bit_Stop_
Motor_3"
%MD6
%M0.2
"TimeCount_ "Bit_Stop_
OFF_15s" Motor_2"
>=
Time
T#5s
%MD6 %M0.1
"TimeCount_ "Bit_Stop_
OFF_15s" Motor_1"
>=
Time
T#15s
%DB3
"Timer_Err_7s"
%I0.2 TON
"Error" "Timer_Err_7s".Q Time
IN Q
T#7s PT
%MD10
"TimeCount_Err_
ET 7s"
%MD10
"TimeCount_Err_ %Q0.3
7s"
"Lamp_Error"
>
Time
T#3.5s