Totally Integrated
Automation Portal
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 Comment
Input
Initial_Call Bool Initial call of this OB
Remanence Bool =True, if remanent data are available
Temp
Constant
Network 1:
%M0.1
%M0.3 %M0.2 %M0.0 "product detect %M100.1 %M100.0
"EM" "stop pb" "start pb" sensor 1" "FM 1" "SM1"
%M100.0
"SM1"
Network 2:
%M0.6
%M100.0 "Chip1 VFD run %M100.3 %Q0.0
"SM1" sts" "FM 2" "chipper motor1"
%M0.4
"jog chip 1"
Network 3:
%M0.7
%M100.0 "Chip 2 VFD run %M100.3 %Q0.1
"SM1" sts" "FM 2" "chipper motor2"
%M0.5
"jog chip 2"
Network 4:
%DB1
"TIMER 1"
%Q0.0 %Q0.1 TON
"chipper motor1" "chipper motor2" Time
IN Q
T#10s PT ET T#0ms
Network 5:
%Q0.2
"TIMER 1".Q "conveyor belt 1"
Network 6:
Totally Integrated
Automation Portal
%Q0.3
"TIMER 1".Q "conveyor belt 2"
Network 7:
%M1.0
"Belt control %M100.1
sensor" "FM 1"
%M1.1
"overload sensor"
Network 8:
%DB2
"TIMER 2"
%Q0.0 %Q0.1 TON
"chipper motor1" "chipper motor2" Time
IN Q
T#2m PT ET T#0ms
Network 9:
%M1.4
"chip 3 VFD run %M100.3 %Q0.4
"TIMER 2".Q sts" "FM 2" "chipper motor3"
%M1.2
"jog chip 3"
Network 10:
%DB3
"TIMER 3"
%Q0.4 TON
"chipper motor3" Time
IN Q
T#10s PT ET T#0ms
Network 11:
%Q0.5
"TIMER 3".Q "conveyor belt 3"
%M1.3
"jog cv 3"
Network 12: Temperature Sensor
NORM_X SCALE_X
Int to Real Real to Real
EN ENO EN ENO
0 MIN %MD200 0.0 MIN %MD204
%MW40 OUT "Tag_2" %MD200 OUT "Tag_3"
"Tag_1" VALUE "Tag_2" VALUE
27648 MAX 100.0 MAX
Network 13:
Totally Integrated
Automation Portal
%MD204 %Q0.6
"Tag_3" "BLOWER FAN 1"
>=
Real
30.0
%Q0.7
"BLOWER FAN 2"
Network 14:
%MD204 %MD204 %Q1.0
"Tag_3" "Tag_3" "10 Hz"
>= <=
Real Real
30.0 34.0
Network 15:
%MD204 %MD204 %Q1.1
"Tag_3" "Tag_3" "20 HZ"
>= <=
Real Real
35.0 39.0
Network 16:
%MD204 %Q1.2
"Tag_3" "40 Hz"
>=
Real
40.0
Network 17: DPT-1
NORM_X SCALE_X
Int to Real Real to Real
EN ENO EN ENO
0 MIN %MD208 0.0 MIN %MD212
%MW42 OUT "Tag_6" %MD208 OUT "dpt1"
"Tag_5" VALUE "Tag_6" VALUE
27648 MAX 10.0 MAX
Network 18: Tank 1 level
NORM_X SCALE_X
Int to Real Real to Real
EN ENO EN ENO
0 MIN %MD216 0.0 MIN %MD220
%MW44 OUT "Tag_9" %MD216 OUT "tank 1 level"
"Tag_8" VALUE "Tag_9" VALUE
27648 MAX 100.0 MAX
Network 19:
%M100.2
%MD212 %MD220 "System memory
"dpt1" "tank 1 level" 2"
>= >=
Real Real
1.0 90.0
Network 20:
Totally Integrated
Automation Portal
%M100.2 %Q1.3
"System memory "Solenoid valve
2" 1"
Network 21:
%M100.2
"System memory %Q1.4
2" "pump motor 1"
Network 22:
%MD220 %M100.3
"tank 1 level" "FM 2"
>=
Real
90.0
Network 23: Tank 2 level
NORM_X SCALE_X
Int to Real Real to Real
EN ENO EN ENO
0 MIN %MD224 0.0 MIN %MD228
%MW46 OUT "Tag_10" %MD224 OUT "Tank 2 level"
"Tag_7" VALUE "Tag_10" VALUE
27648 MAX 100.0 MAX
Network 24:
%M100.4
%MD228 "System memory
"Tank 2 level" 3"
>=
Real
90.0
Network 25:
%M100.4 %Q1.5
"System memory "Solenoid valve
3" 2"
Network 26:
%M100.4
"System memory %Q1.6
3" "pump motor 2"
Network 27: Tank 3 level
NORM_X SCALE_X
Int to Real Real to Real
EN ENO EN ENO
0 MIN %MD232 0.0 MIN %MD236
%MW48 OUT "Tag_12" %MD232 OUT "tank 3 level"
"Tag_11" VALUE "Tag_12" VALUE
27648 MAX 100.0 MAX
Network 28:
Totally Integrated
Automation Portal
%M100.5
%M1.6 %M1.5 %MD236 "System memory
"stop 2" "Start 2" "tank 3 level" 4"
>=
Real
90.0
%M100.5
"System memory
4"
Network 29:
%M100.5
"System memory %Q2.0
4" "pump motor 3"
Network 30:
%M100.5 %Q2.2
"System memory %M2.0 "Solenoid valve %Q1.7
4" "Plastic Detector" 3" "Conveyor 4"
%M1.7
"Jog CV 4"
Network 31:
%M100.6
%M2.0 "System memory
"Plastic Detector" 5"
%M100.6
"System memory
5"
Network 32:
%M100.6 %M100.7 %Q2.1
"System memory "System memory "Hydraulic
5" 6" Pressure"
Network 33:
%M100.6 %M100.7 %Q2.2
"System memory "System memory "Solenoid valve
5" 6" 3"
Network 34: Load cell 1
NORM_X SCALE_X
Int to Real Real to Real
EN ENO EN ENO
0 MIN %MD240 0.0 MIN %MD244
%MW50 OUT "Tag_15" %MD240 OUT "Load Cell 1"
"Tag_14" VALUE "Tag_15" VALUE
27648 MAX 10.0 MAX
Network 35:
Totally Integrated
Automation Portal
%M100.7
%MD244 "System memory
"Load Cell 1" 6"
==
Real
1.0
Network 36:
%DB4
"TIMER 4"
%Q1.7 TON
"Conveyor 4" Time
IN Q
T#1m PT %MD404
ET "Tag_16"
Network 37:
DIV
DInt
EN ENO
%MD404 %MD408
"Tag_16" IN1 OUT "timer-36"
1000.0 IN2
Network 38:
%Q2.3
"TIMER 4".Q "Conveyor belt 5"
Network 39:
%DB5
"Counter2"
%M2.0 CTU
"Plastic Detector" Int
CU Q
false R %MD400
20 PV CV "Counting value"