Escolar Documentos
Profissional Documentos
Cultura Documentos
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:
Draw the LAD logic for a latching circuit.
%Q0.0
"Tag_3"
Network 2:
Example 2:
Three conveyors are to be started and stopped
in different sequences with help of two set of
push buttons each (One START/NO and One
STOP/NC). If conveyors are to be stopped while
STARTING, that must be done with EMERGENCY
STOP. Same thing is true while STOP sequence
is going on.
%Q0.1
"Tag_6"
%Q0.2
"Tag_7"
%Q0.3
"Tag_8"
Network 3:
Example 3:
A conveyer ’C’ is to run when any of the four
push button is pressed. The conveyer is to stop
when any one of the four feed back comes to the
plc from the physical site.
%I0.2
"Tag_4"
%I0.3
"Tag_5"
%I0.4
"Tag_9"
%Q0.0
"Tag_3"
Network 4:
Example 4:
Develop LAD logic for sequential control of two
motors.
Two motors (M
1
, M2) are to be separately
started and stop from individual start stop push
button stations. Motor M
2
can only be started
when Motor M1
starts. Once motor M2
starts it
can be separately stopped but if the stop push
button for motor M1
is pressed then both the
motor M1& M2
gets OFF. While running Motor M1
& M2
both if a common stop switch is pressed it
makes both the motor OFF.
%Q0.1
"Tag_6"
%Q0.2
"Tag_7"
%Q0.1
"Tag_6"
Network 5:
Example 5:
Design and draw the schematic for a
conventional hardwired circuit that will
perform the following circuit functions using
Totally Integrated
Automation Portal
%Q0.1
"Tag_6"
%Q0.0
"Tag_3"
Network 6:
Example 6:
Draw LAD logic for motor forward-reverse.
%I0.2 %I0.1
"Tag_4" "Tag_2"
%Q0.1
"Tag_6"
Network 7:
Example 7:
Four pushbutton station controls a fan each
station has a start stop push buttons .Two door
must be closed before the fan runs.
When start Push Button is pressed from any
push button station the fan runs and the fan can
be stopped from any push button station by
pressing stop push button.
%I0.5
"Tag_12"
%I0.6
"Tag_13"
%I0.7
"Tag_14"
%Q0.1
"Tag_6"
Network 8:
-PLC PROGRAMMES ON LADDER LOGICS—
Programme Examples on Comparator.
Example 1: The output is ON only if a value
of 5 comes from the byte 1.
%MW0
%Q0.1
"Tag_16" "Tag_6"
MOVE
==
EN ENO
Int
%IB1 %MW0 5
"Tag_17" IN OUT1 "Tag_16"
Network 9:
Example 2: The output is ON only if a value
of 127 comes from the byte 0.
%MW0
%Q0.1
"Tag_16" "Tag_6"
MOVE
==
EN ENO
Int
%IB0 %MW0 127
"Tag_15" IN OUT1 "Tag_16"
Network 10:
Example 3: The output is ON only if a value
of 65 comes from the byte 1.
%MW0
%Q0.2
"Tag_16" "Tag_7"
MOVE
==
EN ENO
Int
%IB1 %MW0 65
"Tag_17" IN OUT1 "Tag_16"
Network 11:
Example 4: The output is ON only if a value
of 36 comes from the byte 0.
%MW0
%Q1.1
"Tag_16" "Tag_19"
MOVE
==
EN ENO
Int
%IB0 %MW0 36
"Tag_15" IN OUT1 "Tag_16"
Network 12:
Example 5: The lamp should glow only if
the byte 0 and byte 1 is equal.
%MW0
%Q0.1
"Tag_16" "Tag_6"
MOVE MOVE
==
EN ENO EN ENO
Word
%IB0 %MW0 %IB1 %MW1 %MW1
"Tag_15" IN OUT1 "Tag_16" "Tag_17" IN OUT1 "Tag_20" "Tag_20"
Totally Integrated
Automation Portal
Network 13:
Example 6: The lamp should glow only if
byte 0 & byte 1 is not equal.
%MW0
%Q0.2
"Tag_16" "Tag_7"
MOVE MOVE
<>
EN ENO EN ENO
Word
%IB0 %MW0 %IB1 %MW1 %MW1
"Tag_15" IN OUT1 "Tag_16" "Tag_17" IN OUT1 "Tag_20" "Tag_20"
Network 14:
Example 7: The lamp should glow only if
the byte 0 is greater than byte 1.
%MW2
%Q1.1
"Tag_21" "Tag_19"
MOVE MOVE
>
EN ENO EN ENO
Int
%IB0 %MW2 %IB1 %MW3 %MW3
"Tag_15" IN OUT1 "Tag_21" "Tag_17" IN OUT1 "Tag_22" "Tag_22"
Network 15:
Example 8: The lamp should glow only if
the byte 0 is greater than or equal to byte
1.
%MW4
%Q0.2
"Tag_23" "Tag_7"
MOVE MOVE
>=
EN ENO EN ENO
Int
%IB0 %MW4 %IB1 %MW5 %MW5
"Tag_15" IN OUT1 "Tag_23" "Tag_17" IN OUT1 "Tag_24" "Tag_24"
Network 16:
Example 9: The lamp should glow only if
the byte 0 is less than byte 1.
%MW6
%Q0.6
"Tag_25" "Tag_27"
MOVE MOVE
<
EN ENO EN ENO
Int
%IB0 %MW6 %IB1 %MW7 %MW7
"Tag_15" IN OUT1 "Tag_25" "Tag_17" IN OUT1 "Tag_26" "Tag_26"
Network 17:
Example 10: The lamp should glow only if
Totally Integrated
Automation Portal
%MW8
%Q1.5
"Tag_29" "Tag_32"
MOVE MOVE
<=
EN ENO EN ENO
Int
%IB2 %MW8 %IB3 %MW9 %MW9
"Tag_28" IN OUT1 "Tag_29" "Tag_30" IN OUT1 "Tag_31" "Tag_31"
Network 18:
Example 11: A motor M1 should run when
there is a signal from bit no 7 and bit no 0
of an input byte 0 of a plc.
%MW10
%Q1.5
"Tag_34" "Tag_32"
MOVE
==
EN ENO
Word
%IB4 %MW10 129
"Tag_33" IN OUT1 "Tag_34"
Network 19:
Example 12: A motor M2 should run when
there is a signal from bit no 4 and bit no 2
of an input byte 0.
%MW11
%Q1.6
"Tag_36" "Tag_37"
MOVE
==
EN ENO
Word
%IB5 %MW11 20
"Tag_35" IN OUT1 "Tag_36"
Network 20:
Example 13: A motor M1 should run when
there is a signal from bit no 7 and bit no 0
of an input byte 0 of a plc. A motor M2
should run when there is a signal from bit
no 4 and bit no 2 of an input byte 0 when
M2 starts it makes motor M1 off. Even if
only bit no 5 and bit no 7 gives the signal
to PLC from byte 1 Motor M2 also starts
individually.
Network 21:
--PLC PROGRAMMES ON LADDER LOGICS—
Programme Examples on Timer.
%T1
%I0.0 "Tag_38" %Q0.1
"Tag_1" S_PULSE "Tag_6"
S Q
S5T#15s TV %MW0
%I0.1 BI "Tag_16"
"Tag_2" R %MW1
BCD "Tag_20"
Network 22:
Example 2: When a push button is pressed
and released the lamp should glow and
gets off automatically after 25 second. If
before the expiring of 25 second if a reset
switch is made on the lamp goes off
immediately.
%T2
%I0.1 "Tag_39" %Q0.1
"Tag_2" S_PEXT "Tag_6"
S Q
S5T#25s TV %MW2
%I0.2 BI "Tag_21"
"Tag_4" R %MW3
BCD "Tag_22"
Network 23:
Example 3: The lamp should glow after a
delay of 15 second when start switch s1 is
made on. The lamp should remain in
glowing condition till the start switch s1 is
INDO GERMAN TOOL ROOM, AURANGABAD
Government of India Society, Ministry of Micro, Small & Medium Enterprises
An ISO 9001:2008 & ISO 140001:2004 Tool Room & Training Centre
made on .The lamp should go immediately
off when start switch s1 is made 0ff.
%T3
%I0.3 "Tag_40" %Q0.4
"Tag_5" S_ODT "Tag_41"
S Q
S5T#15S TV %MW5
%I0.4 BI "Tag_24"
"Tag_9" R %MW6
BCD "Tag_25"
Network 24:
Example 4: Lamp should glow after a delay
of 25 second when start switch S1 is made
ON and should remain ON in glowing
condition even the switch is made OFF.
Lamp should go OFF immediately when a
reset switch is S2 is made ON.
%T4
%I0.5 "Tag_42" %Q0.6
"Tag_12" S_ODTS "Tag_27"
S Q
S5T#25S TV %MW6
%I0.6 BI "Tag_25"
"Tag_13" R %MW7
BCD "Tag_26"
Totally Integrated
Automation Portal
Network 25:
Example 5: The lamp should glow
immediately when a start switch S1 is
made ON.The lamp should remain in ON
condition as long as S1 is ON.
The lamp should go OFF after a delay of 15
second when the start switch S1 is made
OFF.
%T5
%I1.0 "Tag_43" %Q1.0
"Tag_10" S_OFFDT "Tag_44"
S Q
S5T#15S TV %MW9
%I1.1 BI "Tag_31"
"Tag_11" R %MW10
BCD "Tag_34"
Network 26:
Example 7: When the switch is turned ON
(i) A lamp goes ON immediately and then
(ii) A fan goes ON 9 sec later.
When the switch turned OFF The lamp &
the fan both should go OFF.
%I1.0 %Q1.0
"Tag_10" "Tag_44"
%T7
"Tag_45" %Q1.1
S_ODT "Tag_19"
S Q
S5T#9s TV %MW0
%I1.1 BI "Tag_16"
"Tag_11" R %MW1
BCD "Tag_20"
Network 27:
Example 8: When a switch is turned ON
(i)A Light & A Fan are turned ON.
When the switch is turned OFF
(i)The Fan goes OFF immediately but
(ii)The Lamp remains ON for another 7 sec
& then goes OFF.
%I1.2 %Q1.3
"Tag_46" "Tag_49"
%T8
"Tag_47" %Q1.1
S_OFFDT "Tag_19"
S Q
S5T#7s TV %MW5
%I1.3 BI "Tag_24"
"Tag_48" R %MW6
BCD "Tag_25"
Network 28:
Example 9: When a switch is turned ON A
Lamp & a Fan both are ON. The Fan turns
OFF after 4 sec but the Lamp continues
running until the input is made OFF.
When the switch is turned OFF at any time
turn both output OFF.
%I1.4 %Q1.2
"Tag_50" "Tag_51"
%T9
"Tag_52" %Q1.4
S_PULSE "Tag_54"
S Q
S5T#4s TV %MW5
%I1.5 BI "Tag_24"
"Tag_53" R %MW6
BCD "Tag_25"
Network 29:
Example 10: When Switch is turned ON, A
Lamp ‘P’ glows immediately Another Lamp
’M’ glows 11 sec later. The same Lamp ’M’
goes OFF after 11 sec, No matter how long
the Switch is turned ON
%I1.0 %Q1.5
"Tag_10" "Tag_32"
%T11 %T12
"Tag_57" "Tag_59" %Q1.6
S_ODT S_PULSE "Tag_37"
S Q S Q
S5T#11s TV %MW11 S5T#11s TV %MW15
%I1.2 BI "Tag_36" %I1.3 BI "Tag_62"
"Tag_46" R %MW12 "Tag_48" R %MW16
BCD "Tag_58" BCD "Tag_63"
Network 30:
Example 11: There are four Lamps
connected in a circuit and one Switch.
When Switch is turned ON
(i)Lamp 1 starts immediately.
(ii)Lamp 2 starts 4 sec later.
(iii)Lamp 3 starts 5 sec after Lamp 2.
(iv)Lamp 4 goes ON 1.9 sec after Lamp 2.
When Switch is turned OFF all the outputs
turns OFF.
Totally Integrated
Automation Portal
%I1.0 %Q1.0
"Tag_10" "Tag_44"
%T14
"Tag_64" %Q1.1
S_ODT "Tag_19"
S Q
S5T#4s TV BI ...
%I1.1 BCD ...
"Tag_11" R
%T15
"Tag_65" %Q1.2
S_ODT "Tag_51"
S Q
S5T#9s TV BI ...
%I1.2 BCD ...
"Tag_46" R
%T16
"Tag_66" %Q1.3
S_ODT "Tag_49"
S Q
S5T#5.9s TV BI ...
%I1.3 BCD ...
"Tag_48" R
Network 31:
Example 12: When a switch is made ON
bulb B1 gets ON after 3.5 Second and
remains ON for the next 7.5 Second and
gets off. Same bulb B1 automatically once
again get ON after a delay of 10 Second
and remains ON for the next 15 Second
and gets OFF to repeat the above step
%T17 %T18
%I1.0 "Tag_67" "Tag_68" %Q1.0
"Tag_10" S_ODT S_PULSE "Tag_44"
S Q S Q
S5T#3.5s TV BI ... S5T#7.5s TV BI ...
%I1.1 BCD ... %I1.2 BCD ...
"Tag_11" R "Tag_46" R
%T19 %T20
"Tag_69" "Tag_70" %Q1.1
S_ODT S_PULSE "Tag_19"
S Q S Q
S5T#10s TV BI ... S5T#15s TV BI ...
%I1.3 BCD ... %I1.4 BCD ...
"Tag_48" R "Tag_50" R
%T18 %Q1.2
"Tag_68" "Tag_51"
%T20
"Tag_70"