Professional Documents
Culture Documents
Automation Portal
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:
Example 1: Develop a LAD programme such
that the lamp L1 should glow when the switch
S1 is made ON and the lamp gets OFF when
switch S1 is made OFF
%Q0.1
%I0.1 "departmental
"Tag_1" light"
Network 2:
Example 2: Develop a LAD programme such
that the Lamp L2 should not glow when switch
S2 is made ON Lamp should glow when switch
S2 is made OFF.
%I0.2 %Q0.2
"Tag_4" "green"
Network 3:
Example 3: The lamp L3 should glow when both
the switch S1 & S2 are ON.
Network 4:
Example 4: The lamp L4 should glow when any
one of the switch S1 or S2 is ON.
%I0.5 %Q0.4
"Tag_8" "Tag_10"
%I0.6
"Tag_9"
Totally Integrated
Automation Portal
Network 5:
Example 5: Develop Ladder Logic for a car
door/seat belt safety system. When the car
door is open, or the seat belt is not done up,
the ignition power must not be applied. If all is
safe then the key will start the engine.
%I1.1 %Q1.1
"Tag_11" "Tag_14"
%I1.2
"Tag_12"
%I1.3
"Tag_13"
Network 6:
Example 6: The lamp should glow when either
the switch (S1 & S2) or S3 is ON.
%I1.6
"Tag_17"
Network 7:
Example 7: The lamp should glow when the
switch (S1 & S2) or (S3 & S4) is pressed.
Example 8: The lamp should glow when the
switch (S1 or S2) & (S3 or S4) is pressed
%I2.2 %I2.3
"Tag_21" "Tag_22"
Network 8:
8
%I2.5 %I2.7
"Tag_25" "Tag_27"
Network 9:
Example 9: Develop ladder logic for a car door
and inside light system. If any of the car door,
out of four doors is opened or a switch S1
inside the car is made ON a lamp L1 inside the
car gets ON .When all the four doors are closed
and switch S1 is kept open the lamp inside the
car gets OFF. If all the 4 doors are opened and
switch S1 is made ON the lamp inside the car
can be made OFF by pressing another switch
S2. If all the car doors are closed, then the
inside lamp can be made ON by switch S1 and
can be made OFF by switch S2
%I3.1
"Tag_30"
%I3.2
"Tag_31"
%I3.3
"Tag_32"
%I3.4
"Tag_33"
Network 10:
Example 10: The lamp should glow when the
switch (S1 or S2 or S3) & (S4 or S5) & S6 are
pressed.
%I4.1 %I4.4
"Tag_38" "Tag_41"
%I4.2
"Tag_39"
Network 11:
Example 11: The lamp should glow when the
switch (S1 & S2 & S3) or (S4 & S5) or S6 is
pressed.
%I5.3 %I5.4
"Tag_46" "Tag_47"
%I5.5
"Tag_48"
Network 12:
Example 12: The lamp should glow when the
switch S1 & (S2 or S3) & (S4 or S5) are made
ON.
%I6.2 %I6.4
"Tag_52" "Tag_54"
Network 13:
Example 13: A fan is to run when all the
following conditions are met:
a) Switch S1is kept OFF.
b) Switch S2 or S3 is made ON.
c) Switch S4 & S5 are made ON
d) Switch S6 or S7 or S8 is made ON
%I7.2 %I7.6
"Tag_58" "Tag_62"
%I7.7
"Tag_63"
Network 14:
Example 14: There are three fans in a room
are controlled individually by toggle switches
there is a panel board outside the room. Draw
logic in LAD such that when the following
condition satisfied the indicator light should
glow in panel board.
a) If all the three fans are running the RED lamp L1 glows in
panel board at that time L2 and L3 should off.
b) If any two fans are running the YELLOW lamp L2 glows
at that time L1 and L3 should off.
c) If any one fan is running the GREEN lamp L3 glows at
that time L1 and L2 should off.
Totally Integrated
Automation Portal
%Q0.1
%I0.1 %I0.2 %Q0.2 %Q0.0 "departmental
"Tag_1" "Tag_4" "green" "red(1)" light"
%I0.2 %I0.3
"Tag_4" "Tag_5"
%I0.3 %I0.1
"Tag_5" "Tag_1"
%Q0.1
%I0.1 %Q0.0 "departmental %Q0.2
"Tag_1" "red(1)" light" "green"
%I0.2
"Tag_4"
%I0.3
"Tag_5"
Network 15:
Example 15: In a factory there is a switch at
the entry gate when it is pressed a main
contractor is on when the main contractor is
on it makes five light off which was running
last night in a corridor loaded on a separate
contactor when the corridor lights are off main
office building light and other office rooms ten
numbers of lights gets on which is loaded on
another contactor.
Totally Integrated
Automation Portal
%Q10.0 %Q10.1
"main con" "sec con"
%Q10.1
"sec con"
%Q10.1
"sec con"
%Q10.1
"sec con"
%Q10.1
"sec con"
%Q10.1 %Q10.2
"sec con" "thrd con"
%Q10.2
"thrd con"
%Q10.2
"thrd con"
%Q10.2
"thrd con"
%Q10.2
"thrd con"
%Q10.2
"thrd con"
%Q10.2
"thrd con"
%Q10.2
"thrd con"
%Q10.2
"thrd con"
Network 16:
Example 16: When the switch is made ON it
makes a lamp L1 OFF which is previously ON.
When L1 gets OFF another lamp L2 gets ON
which is previously OFF.
%Q0.1
%Q0.0 "departmental
"red(1)" light"
Network 17:
Example 17: Lamp L2 is glowing previously.
Another lamp L1 should glow when any of the
switches S1, S2, S3, S4, and S5 is pressed.
Lamp L2 gets OFF when the lamp L1 glows.
Totally Integrated
Automation Portal
%I1.2
"Tag_12"
%I1.3
"Tag_13"
%I1.4
"Tag_15"
%I1.5
"Tag_16"
%Q1.1 %Q1.2
"Tag_14" "Tag_18"
Network 18:
Example 18: There are four hazard inputs to the
alarm system which get ON when the following
logics occurs:
a) If one input is ON, nothing happens to alarm.
b) If any two inputs are ON, a pilot light glows.
c) If any three inputs are ON, the pilot light goes OFF & an
alarm siren blows.
d) If all the four inputs are ON the fire department light
glows with this the alarm siren goes ON as well as the pilot
light also glows.
%Q0.1
%I0.0 %I0.1 %I0.2 %I0.3 %I0.4 "departmental
"Tag_75" "Tag_1" "Tag_4" "Tag_5" "Tag_6" light"
<??.?> <??.?>
<??.?> <??.?>
<??.?> <??.?>
<??.?> <??.?>
<??.?> <??.?>