Professional Documents
Culture Documents
Project Light Control
Project Light Control
Totally Integrated
Automation Portal
Table of contents
Main [OB1] 3-1
Totally Integrated
Automation Portal
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
%DB4
"Control__DB"
%FB1
"Control_"
EN ENO
%M1.0 %M0.7
"Start" Start Control "Control"
%M1.1
"Stop" Stop
%M1.2 %FC2
"Accept" "Scale_time"
P EN ENO
#Accept_0 %MD54 %MD6
"Time_XA" Time_XA S_XA "Time_XA_1"
%MD62 %MD10
"Time_XB" Time_XB S_XB "Time_XB_1"
%MD58 %MD74
"Time_VA" Time_VA S_VA "Time_VA_1"
%MD66 %MD14
"Time_VB" Time_VB S_VB "Time_VB_1"
%MD78
S_DA "Time_DA"
%MD2
S_DB "Time_DB"
%MD70
Time_tru "Time_tru"
%M1.2 T_CONV
"Accept" DInt TO Time
P EN ENO
#Accept_1 %MD70 %MD18
"Time_tru" IN OUT "Time_FOR_Timer"
%DB1
"IEC_Timer_0_DB"
%M0.7 "IEC_Timer_0_ TON
"Control" DB".Q Time
IN Q
%MD18 ET ...
"Time_FOR_Timer" PT
SUB
Auto (DInt)
EN ENO
%MD70 %MD46
"Time_tru" IN1 OUT "Time_TEMP"
"IEC_Timer_0_
DB".ET IN2
T_CONV
Time TO DInt
EN ENO
%MD46 %MD28
"Time_TEMP" IN OUT "Time_Dint"
ADD
Auto (DInt)
EN ENO
%MD74 %MD82
"Time_VA_1" IN1 OUT "Temp_1"
%MD78
"Time_DA" IN2
%MD28 %MD28
%M0.7 %M1.5
"Control" "Time_Dint" "Time_Dint" "DEN_VA"
<= >=
DInt DInt
%MD82 %MD78
"Temp_1" "Time_DA"
DIV MOD
Auto (DInt) Auto (DInt)
1 EN ENO EN ENO
%MD106 %MD90 %MD106 %MD38
"XA_temp" IN1 OUT "chucA" "XA_temp" IN1 OUT "donviA"
10 IN2 10 IN2
DIV MOD
Auto (DInt) Auto (DInt)
2 EN ENO EN ENO
%MD110 %MD90 %MD110 %MD38
"VA_temp" IN1 OUT "chucA" "VA_temp" IN1 OUT "donviA"
10 IN2 10 IN2
MOD
Auto (DInt)
3 EN ENO
%MD114 %MD38
"DA_temp" IN1 OUT "donviA"
10 IN2
%MD28
%M0.7 %M36.1
"Control" "Time_Dint" "DEN_DB"
>=
DInt
%MD78
"Time_DA"
%MD28
%M0.7 %M36.0
"Control" "Time_Dint" "DEN_VB"
<=
DInt
%MD10
"Time_XB_1"
DIV MOD
Auto (DInt) Auto (DInt)
1 EN ENO EN ENO
%MD122 %MD42 %MD122 %MD98
"DB_temp" IN1 OUT "chucB" "DB_temp" IN1 OUT "donviB"
10 IN2 10 IN2
DIV MOD
Auto (DInt) Auto (DInt)
2 EN ENO EN ENO
%MD118 %MD42 %MD118 %MD98
"XB_temp" IN1 OUT "chucB" "XB_temp" IN1 OUT "donviB"
10 IN2 10 IN2
MOD
Auto (DInt)
3 EN ENO
%MD126 %MD98
"VB_temp" IN1 OUT "donviB"
10 IN2