0% found this document useful (0 votes)
13 views3 pages

Pdan

The document outlines the structure and programming of a PLC (Programmable Logic Controller) project using Totally Integrated Automation Portal. It includes details on the main program block, input variables, and multiple networks that control various outputs and timers. The program is designed to manage operations such as valve control and motor activation based on specific conditions and counters.

Uploaded by

tuannguyen100804
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views3 pages

Pdan

The document outlines the structure and programming of a PLC (Programmable Logic Controller) project using Totally Integrated Automation Portal. It includes details on the main program block, input variables, and multiple networks that control various outputs and timers. The program is designed to manage operations such as valve control and motor activation based on specific conditions and counters.

Uploaded by

tuannguyen100804
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Totally Integrated

Automation Portal

HE_THONG_TRON_SON_VER_2 / PLC_1 [CPU 1214C 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 (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:

%M5.0 %Q0.0
"START" "Q_VALVE_1"
S

%M20.3
"Tag_6"
R

%M20.4
"Tag_7"
R

%Q0.1
"Q_VALVE_2"
S

%M5.6
"M_GIU"
S

%M5.3 %M5.6 %Q0.0


"C2".QU "S2" "M_GIU" "Q_VALVE_1"
S

%Q0.1
"Q_VALVE_2"
S

%M5.1 %M5.6
"STOP" "M_GIU"
R

%Q0.0
"Q_VALVE_1"
RESET_BF
5

Network 2:
Totally Integrated
Automation Portal

%DB1
"IEC_Counter_
0_DB"

%M5.6 %Q0.0 %Q0.1 %M0.0 %MW120 CTUD


"M_GIU" "Q_VALVE_1" "Q_VALVE_2" "Clock_10Hz" "MUC_SON" Int
<=
Int CU QU
100 QD false
%MW120
CV "MUC_SON"

%M5.6 %Q0.4 %M0.0 %MW120


"MUC_SON"
"M_GIU" "Q_VALVE_XA" "Clock_10Hz"
>
Int CD
0 false R
false LD
100 PV

%MW120 %M5.6 %Q0.0


"MUC_SON"
"M_GIU" "Q_VALVE_1"
>
RESET_BF
Int
2
100

%Q0.2
"Q_MOTOR_
P_TRIG THUAN"
CLK Q S
%M15.0
"Tag_5"

"IEC_Counter_
%M5.2
0_DB".CV
"S1"
==
S
Int
100

"IEC_Counter_ %M5.2
0_DB".CV
"S1"
<
R
Int
100

"IEC_Counter_ %M5.3
0_DB".CV
"S2"
==
S
Int
0

%M5.3 %Q0.4
"S2" "Q_VALVE_XA"
R

"IEC_Counter_ %M5.3
0_DB".CV
"S2"
>
R
Int
0

%M5.6 %M5.2 %Q0.0


"M_GIU" "S1" "Q_VALVE_1"
P RESET_BF
%M10.0 2
"Tag_1"

%Q0.2
"Q_MOTOR_
THUAN"
S

Network 3:
Totally Integrated
Automation Portal

%DB3
"T2"
%Q0.2 %Q0.3 %Q0.2
%M5.6 "Q_MOTOR_ TON "Q_MOTOR_ "Q_MOTOR_
"M_GIU" THUAN" Time NGUOC" THUAN"
IN Q S R
T#2S PT ET T#0ms

%DB5
"T3"
%Q0.3 %Q0.3
%M5.6 "Q_MOTOR_ TON %M5.7 "Q_MOTOR_
"M_GIU" NGUOC" Time "M_TG1" NGUOC"
IN Q S R
T#2S PT ET T#0ms

%DB6
"C1"
%M5.6 %M5.7 CTU %M15.2
"M_GIU" "M_TG1" Int P_TRIG "Tag_2"
P CU Q CLK Q S
%I0.1 %M15.3 %M6.0
%MW140
"P2" "Tag_3" "M_TG_2"
R "HIEN_THI_SL_
CV QUAY_MOTOR"
%MW138
"NHAP_SL_
QUAY_MOTOR" PV

%Q0.2
"Q_MOTOR_
"C1".QU THUAN"
S

%M5.7
"M_TG1"
R

%DB2
"T4"
%M15.2 TON %Q0.4 %M15.3
"Tag_2" Time "Q_VALVE_XA" "Tag_3"
IN Q S
T#1S PT ET T#0ms

%M15.2
"T4".Q "Tag_2"
R

%DB4
"C2"
%M5.3 CTU %M5.6
"S2" P_TRIG Int "M_GIU"
CLK Q CU Q R
%M12.4 %M5.4 %MW1130
"Tag_4" "RESET" R CV "HIEN_THI_SL_ME"
%MW134
"NHAP_SL_ME" PV

%Q0.2 %Q0.3
"Q_MOTOR_ "Q_MOTOR_ %Q0.6
THUAN" NGUOC" "Q_MOTOR"

Network 4:

%M5.5 %M20.3
"ERROR" "Tag_6"
S

%Q0.0
"Q_VALVE_1"
RESET_BF
%DB7 5
"T5"
%M20.3 TON
"Tag_6" "T5".Q Time
IN Q
T#2S PT ET T#0ms

%M20.3 %M20.4
"Tag_6" "T5".ET "Tag_7"
<=
S
Time
T#1S

%M20.3 %M20.4
"Tag_6" "T5".ET "Tag_7"
>
R
Time
T#1S

Network 5:

You might also like