You are on page 1of 5

Totally Integrated

Automation Portal

ex 3 tp / PLC_1 [CPU 314C-2 DP] / 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 Offset Default value Comment
Temp
OB1_EV_CLASS Byte 0.0 Bits 0-3 = 1 (Coming event), Bits 4-7 = 1 (Event class 1)
OB1_SCAN_1 Byte 1.0 1 (Cold restart scan 1 of OB 1), 3 (Scan 2-n of OB 1)
OB1_PRIORITY Byte 2.0 Priority of OB Execution
OB1_OB_NUMBR Byte 3.0 1 (Organization block 1, OB1)
OB1_RESERVED_1 Byte 4.0 Reserved for system
OB1_RESERVED_2 Byte 5.0 Reserved for system
OB1_PREV_CYCLE Int 6.0 Cycle time of previous OB1 scan (milliseconds)
OB1_MIN_CYCLE Int 8.0 Minimum cycle time of OB1 (milliseconds)
OB1_MAX_CYCLE Int 10.0 Maximum cycle time of OB1 (milliseconds)
OB1_DATE_TIME Date_And_Time 12.0 Date and time OB1 started
Constant

Network 1:

SCALE
EN ENO
%IW752 %MW4
"Tag_2" IN RET_VAL "Tag_4"
1000.0 HI_LIM %MD6
0.0 LO_LIM OUT "Tag_1"
%M1.0
"Tag_3" BIPOLAR

Symbol Address Type Comment


"Tag_1" %MD6 Real
"Tag_2" %IW752 Int
"Tag_3" %M1.0 Bool
"Tag_4" %MW4 Word

Network 2:

%MD6 %MD6
%M1.1
"Tag_1" "Tag_1" "X"
>= <=
Real Real
0.0 100.0

Symbol Address Type Comment


"Tag_1" %MD6 Real
"X" %M1.1 Bool

Network 3:

%M1.1 %Q0.1
"X" "v2"

Symbol Address Type Comment


"v2" %Q0.1 Bool
"X" %M1.1 Bool

Network 4:

%M1.1
"X" MOVE
EN ENO
100.0 IN %MD9
OUT1 "EV1"
Totally Integrated
Automation Portal

Symbol Address Type Comment


"EV1" %MD9 Real
"X" %M1.1 Bool

Network 5:

%M1.1
"X" MOVE
EN ENO
100.0 IN %MD12
OUT1 "EV2"

Symbol Address Type Comment


"EV2" %MD12 Real
"X" %M1.1 Bool

Network 6:

%MD6 %MD6
%M0.2
"Tag_1" "Tag_1" "Y"
> <=
Real Real
100.0 200.0

Symbol Address Type Comment


"Tag_1" %MD6 Real
"Y" %M0.2 Bool

Network 7:

%M0.2 %Q0.0
"Y" "v1"

Symbol Address Type Comment


"v1" %Q0.0 Bool
"Y" %M0.2 Bool

Network 8:

%M0.2
"Y" MOVE
EN ENO
70.0 IN %MD9
OUT1 "EV1"

Symbol Address Type Comment


"EV1" %MD9 Real
"Y" %M0.2 Bool

Network 9:

%M0.2
"Y" MOVE
EN ENO
90.0 IN %MD12
OUT1 "EV2"

Symbol Address Type Comment


"EV2" %MD12 Real
"Y" %M0.2 Bool

Network 10:

%MD6 %MD6
%M0.3
"Tag_1" "Tag_1" "ZZ"
> <=
Real Real
200.0 400.0

Symbol Address Type Comment


"Tag_1" %MD6 Real
"ZZ" %M0.3 Bool
Totally Integrated
Automation Portal

Network 11:

%M0.3 %Q0.0
"ZZ" "v1"

Symbol Address Type Comment


"v1" %Q0.0 Bool
"ZZ" %M0.3 Bool

Network 12:

%M0.3
"ZZ" MOVE
EN ENO
50.0 IN %MD9
OUT1 "EV1"

Symbol Address Type Comment


"EV1" %MD9 Real
"ZZ" %M0.3 Bool

Network 13:

%M0.3
"ZZ" MOVE
EN ENO
60.0 IN %MD12
OUT1 "EV2"

Symbol Address Type Comment


"EV2" %MD12 Real
"ZZ" %M0.3 Bool

Network 14:

%MD6 %MD6
%M0.4
"Tag_1" "Tag_1" "A"
> <=
Real Real
400.0 800.0

Symbol Address Type Comment


"A" %M0.4 Bool
"Tag_1" %MD6 Real

Network 15:

%M0.4 %Q0.0
"A" "v1"

%Q0.1
"v2"

Symbol Address Type Comment


"A" %M0.4 Bool
"v1" %Q0.0 Bool
"v2" %Q0.1 Bool

Network 16:

%M0.4
"A" MOVE
EN ENO
30.0 IN %MD9
OUT1 "EV1"

Symbol Address Type Comment


"A" %M0.4 Bool
"EV1" %MD9 Real

Network 17:
Totally Integrated
Automation Portal

%M0.4
"A" MOVE
EN ENO
10.0 IN %MD12
OUT1 "EV2"

Symbol Address Type Comment


"A" %M0.4 Bool
"EV2" %MD12 Real

Network 18:

%MD6 %MD6
%M0.5
"Tag_1" "Tag_1" "b"
> <=
Real Real
800.0 1000.0

Symbol Address Type Comment


"b" %M0.5 Bool
"Tag_1" %MD6 Real

Network 19:

%M0.5 %Q0.0
"b" "v1"

%Q0.1
"v2"

Symbol Address Type Comment


"b" %M0.5 Bool
"v1" %Q0.0 Bool
"v2" %Q0.1 Bool

Network 20:

%M0.5
"b" MOVE
EN ENO
5.0 IN %MD9
OUT1 "EV1"

Symbol Address Type Comment


"b" %M0.5 Bool
"EV1" %MD9 Real

Network 21:

%M0.5
"b" MOVE
EN ENO
10.0 IN %MD12
OUT1 "EV2"

Symbol Address Type Comment


"b" %M0.5 Bool
"EV2" %MD12 Real

Network 22:

UNSCALE
EN ENO
%MD9 %MW3
"EV1" IN RET_VAL "Tag_7"
100.0 HI_LIM %QW752
0.0 LO_LIM OUT "Tag_8"
%M2.0
"Tag_6" BIPOLAR

Symbol Address Type Comment


"EV1" %MD9 Real
"Tag_6" %M2.0 Bool
"Tag_7" %MW3 Word
"Tag_8" %QW752 Int
Totally Integrated
Automation Portal

Network 23:

UNSCALE
EN ENO
%MD12 %MW2
"EV2" IN RET_VAL "Tag_10"
100.0 HI_LIM %QW753
0.0 LO_LIM OUT "Tag_11"
%M2.1
"Tag_9" BIPOLAR

Symbol Address Type Comment


"EV2" %MD12 Real
"Tag_9" %M2.1 Bool
"Tag_10" %MW2 Word
"Tag_11" %QW753 Int

You might also like