You are on page 1of 4

Totally Integrated

Automation Portal

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

Name Data type Default value


Input
Initial_Call Bool
Remanence Bool
Temp
Constant

Network 1:

%FC9000
"MHJ-PLC-Lab-Function-S71200"
EN ENO

Network 2:

%I0.0 %M0.0
"start" "Tag_4"
S

%DB1
"IEC_Timer_0_DB"
%M0.0 TON
"Tag_4" Time
IN Q
T#4s PT ET T#0ms

"IEC_Timer_0_ %I0.0 %Q0.0


DB".Q "start" "Alarm sirene"

%Q0.0 %Q0.2
"Alarm sirene" "warn light"

Network 3:

"IEC_Timer_0_ %Q0.1
DB".Q "feeder conveyer"
P S
%M0.5
"Tag_3"
%Q0.4
"emitter"
S

%M0.0 %Q0.5
"Tag_4" "on pilot lamp"

%M0.0 %Q0.6
"Tag_4" "off pilot lamp"

Network 4:

%I0.5 %Q0.7
"at turntable "turntable
entry" forward roll"
S

Network 5:
Totally Integrated
Automation Portal

%I0.4 %Q0.1
"front limit" "feeder conveyer"
R

%Q0.4
"emitter"
R

%Q0.7
"turntable
forward roll"
R

Network 6:
low box control

%I0.6 %I0.7 %M0.1


"high box" "low box" "Tag_1"
S

%M0.1 %I0.4 %Q1.0


"Tag_1" "front limit" "turntable left"
S

%Q0.7
%I1.0 %M0.1 "turntable
"table limit 90" "Tag_1" forward roll"
S

%Q1.1
"left conveyer"
S

%I1.1 %M0.6
"at left entry" "Tag_7"
N S
%M1.2
"Tag_11"

%M0.6 %Q1.0
"Tag_7" "turntable left"
R

%Q0.7
"turntable
forward roll"
R

%M0.1
"Tag_1"
R

%I1.2 %M0.6 %M0.3


"table at 0" "Tag_7" "Tag_6"
S

%M0.6
"Tag_7"
R

%M0.3 %Q0.1
"Tag_6" "feeder conveyer"
S

%M1.6
"Tag_16"
S

%M0.3
"Tag_6"
R

%DB4
"IEC_Timer_0_
DB_3"

%M1.6 TON %Q0.4


"Tag_16" Time "emitter"
IN Q S
T#7s PT ET T#0ms
%M1.6
"Tag_16"
R

Network 7:
high box control
Totally Integrated
Automation Portal

%I0.6 %M0.2
"high box" "Tag_12"
S

%M0.2 %I0.4 %Q1.0


"Tag_12" "front limit" "turntable left"
S

%I1.0 %M0.2 %Q1.3


"table limit 90" "Tag_12" "roll back"
S

%Q1.4
"right conveyer"
S

%Q0.7
"turntable
forward roll"
R

%I1.3 %M1.0
"at right entry" "Tag_9"
N S
%M1.1
"Tag_10"

%M1.0 %Q1.0
"Tag_9" "turntable left"
R

%Q1.3
"roll back"
R

%M0.2
"Tag_12"
R

%I1.2 %M1.0 %M0.4


"table at 0" "Tag_9" "Tag_5"
S

%M1.0
"Tag_9"
R

%M0.4 %Q0.1
"Tag_5" "feeder conveyer"
S

%M1.4
"tagg"
S

%M0.4
"Tag_5"
R

%DB2
"IEC_Timer_0_
DB_1"

%M1.4 TON %Q0.4


"tagg" Time "emitter"
IN Q S
T#7s PT ET T#0ms
%M1.4
"tagg"
R

Network 8:
pass to another stage or reject
Totally Integrated
Automation Portal

%I0.2 %M1.3
"pass" "Tag_13"
S

%I1.4
"pass2"

%I0.5
%I1.6 "at turntable %M1.3
"pass or not" entry" "Tag_13"
R

%I0.4 %M1.3 %M0.1 %M0.2 %Q1.2


"front limit" "Tag_13" "Tag_1" "Tag_12" "roller"
S

%Q0.3
"remover"
S

%Q0.7
"turntable
forward roll"
S

%I1.5 %Q1.2
"at pass" "roller"
N R
%M1.5
"Tag_15"
%M1.3
"Tag_13"
R

%Q0.7
"turntable
forward roll"
R

%M0.7
"Tag_8"
S

%Q0.1
"feeder conveyer"
S

%DB3
"IEC_Timer_0_
DB_2"

%M0.7 TON %Q0.4


"Tag_8" Time "emitter"
IN Q S
T#7s PT ET T#0ms
%M0.7
"Tag_8"
R

You might also like