0% found this document useful (0 votes)
11 views2 pages

Bai19bs / PLC - 1 (CPU 1212C AC/DC/Rly) / Program Blocks: Main (OB1)

This document summarizes the main program for a PLC that controls an automation process. The program contains 7 networks that: 1) initialize tags, 2) scale sensor values, 3) map scaled values to outputs, 4) trigger outputs based on sensor thresholds, 5) implement timer functions to sequence the outputs, 6) reset tags and outputs after the cycle, and 7) end the program cycle.

Uploaded by

thuythang147
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)
11 views2 pages

Bai19bs / PLC - 1 (CPU 1212C AC/DC/Rly) / Program Blocks: Main (OB1)

This document summarizes the main program for a PLC that controls an automation process. The program contains 7 networks that: 1) initialize tags, 2) scale sensor values, 3) map scaled values to outputs, 4) trigger outputs based on sensor thresholds, 5) implement timer functions to sequence the outputs, 6) reset tags and outputs after the cycle, and 7) end the program cycle.

Uploaded by

thuythang147
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/ 2

Totally Integrated

Automation Portal

bai19bs / 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 (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:

%M0.0 %M1.1
"ON" "TAG_1"
S

Network 2:

%M1.1 NORM_X SCALE_X


"TAG_1" Int to Real Real to Real
EN ENO EN ENO
0 MIN %MD350 0.0 MIN %MD306
%IW64 OUT "Tag_2" %MD350 OUT "NĐMT"
"NĐ" VALUE "Tag_2" VALUE
27648 MAX 100.0 MAX

Network 3:

%M1.1 %Q0.0 %Q0.1 %Q0.2 %Q0.3 %Q0.4 %Q0.5


"TAG_1" "ĐC1" "ĐC2" "ĐC3" "ĐC4" "ĐC5" "ĐC6"
S S S S S S

Network 4:

%M1.1 %MD306 %MD306 %M0.1


"TAG_1" "NĐMT" "NĐMT" "Tag_3"
>= <=
S
Real Real
30.0 35.0

%MD306 %M0.1
"NĐMT" "Tag_3"
>
R
Real
35.1

Network 5:
Totally Integrated
Automation Portal

%DB2
"IEC_Timer_0_DB"
%M0.1 "IEC_Timer_0_ TON
"Tag_3" DB".Q Time
IN Q
T#9S PT ET T#0ms

"IEC_Timer_0_ %Q0.0 %Q0.1


DB".ET
"ĐC1" "ĐC2"
<=
S S
Time
T#3S
%Q0.2
"ĐC3"
RESET_BF
4

"IEC_Timer_0_ "IEC_Timer_0_ %Q0.2 %Q0.3


DB".ET DB".ET
"ĐC3" "ĐC4"
> <=
S S
Time Time
T#3.5S T#6S
%Q0.0 %Q0.1 %Q0.4 %Q0.5
"ĐC1" "ĐC2" "ĐC5" "ĐC6"
R R R R

"IEC_Timer_0_ "IEC_Timer_0_ %Q0.4 %Q0.5


DB".ET DB".ET
"ĐC5" "ĐC6"
> <=
S S
Time Time
T#6S T#9S
%Q0.0
"ĐC1"
RESET_BF
4

Network 6:

%M0.2 %M1.1
"OFF" "TAG_1"
R

%M0.1
"Tag_3"
R

%Q0.0
"ĐC1"
RESET_BF
6

Network 7:

You might also like