You are on page 1of 2

Totally Integrated

Automation Portal

DieuKhien3DongCo / Linh [CPU 1214C DC/DC/DC] / Program blocks


Main [OB1]
Main Properties
General
Name Main Number 1 Type OB Language LAD
Numbering Automatic
Information
Title "Main Program Sweep (Cy‐ Author Comment Family
cle)"
Version 0.1 User-defined ID

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

Network 1: Press Start, Run motor 1 and on timer ON 15s

%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"

Network 2: After motor 1 run 10s, run motor 2

%MD2
%M0.2
"TimeCount_ON_ "Bit_Stop_ %Q0.1
15s" Motor_2" "Motor_2"
>=
Time
T#10s

Network 3: After motor 2 run 5s, run motor 3

%MD2 %M0.3
"TimeCount_ON_ "Bit_Stop_ %Q0.2
15s" Motor_3" "Motor_3"
>=
Time
T#15s

Network 4: Press Stop, stop motor 3 and on timer OFF 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"

Network 5: After motor 3 stop, count 5s top motor 2


Totally Integrated
Automation Portal

%MD6
%M0.2
"TimeCount_ "Bit_Stop_
OFF_15s" Motor_2"
>=
Time
T#5s

Network 6: After motor 2 stop, count 10s top motor 1

%MD6 %M0.1
"TimeCount_ "Bit_Stop_
OFF_15s" Motor_1"
>=
Time
T#15s

Network 7: Error_On Timer 7s

%DB3
"Timer_Err_7s"
%I0.2 TON
"Error" "Timer_Err_7s".Q Time
IN Q
T#7s PT
%MD10
"TimeCount_Err_
ET 7s"

Network 8: On Lamp Error 3.5s

%MD10
"TimeCount_Err_ %Q0.3
7s"
"Lamp_Error"
>
Time
T#3.5s

You might also like