Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Totally Integrated

Automation Portal

HeThongDieuKhienMayKhoan / PLC_1 [CPU 1212C AC/DC/Rly] / Program


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

Main
Name Data type Default value Supervi‐ Comment
sion
Input
Initial_Call Bool Initial call of this OB
Remanence Bool =True, if remanent data are available
Temp
Constant

Network 1:

RD_SYS_T T_CONV
DTL DTL TO Time_Of_Day
EN ENO EN ENO
%MW1 "Real_Time_ "Real_Time_
RET_VAL "False_Check" Clock".Real_ Clock".Real_
Time IN OUT Time_TOD
"Real_Time_
Clock".Real_
OUT Time

Network 2:

"Real_Time_
Clock".Real_
%I0.0 %I0.1 %M0.1
Time_TOD
"START" "STOP" "Khoi_Dong"
<=
Time_Of_Day
TOD#17:30:00
%M0.1
"Khoi_Dong"

Network 3:
Totally Integrated
Automation Portal

%M0.1 %I0.3 %M3.2 %Q0.0


"Khoi_Dong" "a1" "Nap_Vat" "PA_U"

Network 4:

%M0.1 %I0.3 %I0.5 %Q0.2


"Khoi_Dong" "a1" "b1" "PB_U"

%Q0.4
"R_F"

Network 5:

%DB2
"IEC_Timer_0_DB"
%M0.1 %I0.5 %M3.1 TON %M3.0
"Khoi_Dong" "b1" "Timer_Nap_Vat" Time "Timer_Khoan"
IN Q
T#55S PT ET ...
%M3.0
"Timer_Khoan"

Network 6:

%M0.1 %I0.4 %M3.0 %Q0.2


"Khoi_Dong" "b0" "Timer_Khoan" "PB_U"

%Q0.5
"R_R"

Network 7:

%M0.1 %I0.4 %I0.2 %Q0.1


"Khoi_Dong" "b0" "a0" "PA_D"

Network 8:
Totally Integrated
Automation Portal

%DB3
"IEC_Timer_0_
DB_1"

%M0.1 %I0.2 %M3.0 TON %M3.1


"Khoi_Dong" "a0" "Timer_Khoan" Time "Timer_Nap_Vat"
IN Q
T#1M_6S PT %MD4
"Thoi_Gian_
ET Nap_Vat"

Network 9:

%MD4 %MD4
%M0.1 "Thoi_Gian_ "Thoi_Gian_ %M3.2
Nap_Vat" Nap_Vat"
"Khoi_Dong" "Nap_Vat"
> <
Time Time
T#0MS T#1M_6S

You might also like