Professional Documents
Culture Documents
STL PDF
STL PDF
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:-Write a programme in STL such
that when a switch is made ON,
the motor gets OFF.
0001 AN "START"
0002 = "MOTOR"
0003
0004
Network 2:
EXAMPLE 2:-
Write a STL programme for panel
board door control system, when
the door is open the cooling fan
gets off and a lamp gets on.
0001 A "Tag_1"
0002 NOT
0003 = "Tag_2"
0004
0005
0006
0007
Network 3:
EXAMPLE 2:- 2
0001 A "Tag_1"
0002 = "Tag_3"
0003
Network 4:
EXAMPLE 3:-Write a STL programme for two
motors such that both have
common stop and start switch
with individual start switch.
The condition for starting the
motor that first switch on the
common start switch, then switch
on the motors using individual
switches. To stop the motor
presses the stop switch.
0001 AN "Tag_4"
0002 A "Tag_5"
Totally Integrated
Automation Portal
0003 = %L20.0
0004 A %L20.0
0005 A "Tag_6"
0006 = "MOTOR1"
0007 A %L20.0
0008 A "Tag_8"
0009 = "MOTOR2"
0010
0011
0012
0013
Network 5:
EXAMPLE 4:-Write a STL programme for a
heater of the boiler such that the
air valve should be closed, the
water valve should open and the
heater switch should make on.
0001 A "Tag_10"
0002 = %L20.0
0003 A %L20.0
0004 = "WATER"
0005 A %L20.0
0006 NOT
0007 = "AIR"
0008
0009
0010
0011
0012
Network 6:
EXAMPLE 5:-Write a STL programme for a five
directional conveyor system such
that when any of the sensor from
the conveyors senses metal ores
then the inlet valve of the blast
furnace opens.
0001 O "Tag_7"
0002 O "Tag_9"
0003 O "Tag_11"
0004 O "Tag_12"
0005 O "Tag_13"
0006 = "Tag_14"
0007
0008
Network 7:
EXAMPLE 6:-
Write the equivalent STL
programme for the given ladder
logic
0001 A "Tag_15"
0002 = "Tag_16"
0003
0004
Network 8:
EXAMPLE 7:-Write the equivalent STL programme
for the given ladder logic.
0001 A "Tag_17"
0002 = %L20.0
Totally Integrated
Automation Portal
0003 A %L20.0
0004 = "Tag_18"
0005 A %L20.0
0006 = "Tag_19"
0007
0008
Network 9:
EXAMPLE 8:-
Write the STL programme of the
given ladder logic.
0001 A "Tag_20"
0002 = %L20.0
0003 A %L20.0
0004 = "Tag_21"
0005 A %L20.0
0006 A "Tag_22"
0007 = "Tag_21"
0008
0009
Network 10:
EXAMPLE 9:-
Write the STL programme of the
given ladder logic.
0001 A "Tag_23"
0002 = %L20.0
0003 A %L20.0
0004 A "Tag_24"
0005 = "Tag_25"
0006 A %L20.0
0007 A "Tag_26"
0008 = "Tag_27"
0009
0010
Network 11:
EXAMPLE 10:-
Write the STL programme of the
given ladder logic.
0001 A "Tag_28"
0002 = %L20.0
0003 A %L20.0
0004 A "Tag_29"
0005 = "Tag_30"
0006 A %L20.0
0007 A "Tag_31"
0008 = "Tag_32"
0009 A %L20.0
0010 = "Tag_33"
0011 A %L20.0
0012 A "Tag_34"
0013 = "Tag_35"
0014
0015
Network 12:
TASK ON INCHING/LATCHING:-
EXAMPLE 11:-When a push button is pressed the
3Ф motor gets on and gets off
when released. (Inching Circuit).
Totally Integrated
Automation Portal
0001 A "Tag_36"
0002 = "Tag_37"
0003
0004
Network 13:
EXAMPLE 12:-When a start push button is
pressed the 3Ф motor gets on and
remains in on condition after
release of push button. The motor
can be stopped by stop push
button.
0001 AN "Tag_38"
0002 A(
0003 O "Tag_39"
0004 O "Tag_40"
0005 )
0006 = "Tag_40"
0007
0008
0009
0010
Network 14:
TASK ON SPDT AND XOR/XNOR
:-EXAMPLE 13:-Write a STL programme for two
toggle switches such that when
any of the switch is made on the
out put gets on. When both the
switches are made on or off the
output gets off.
0001 A(
0002 A "Tag_41"
0003 AN "Tag_42"
0004 )
0005 O
0006 A(
0007 AN "Tag_41"
0008 A "Tag_42"
0009 )
0010 = "Tag_43"
0011
Network 15:
EXAMPLE 14:-Write a STL programme for two
toggle switches such that when
both the switches are made off/on
the output gets on. If any of the
switch is made on the output gets
off.
0001 A(
0002 A "Tag_44"
0003 A "Tag_45"
0004 )
0005 O
0006 A(
0007 AN "Tag_44"
0008 AN "Tag_45"
0009 )
0010 = "Tag_46"
0011
0012
Network 16:
TASK ON MOVE AND COMPARATOR:-
EXAMPLE 15:-Write a programme on STL such
that when input byte 0 gets a
value of 10 it switch on a motor,
when the value of byte 0 exceeds
Totally Integrated
Automation Portal
Network 17:
COMPARATOR:- 15
0001 L "Tag_49"
0002 L 10
0003 ==I
0004 = "Tag_50"
0005
Network 18:
COMPARATOR:- 15
0001 L "Tag_49"
0002 L 10
0003 >I
0004 = "Tag_51"
0005
0006
0007
Network 19:
COMPARATOR:- 15
0001 L "Tag_49"
0002 L 10
0003 <I
0004 = "Tag_52"
0005
0006
0007
Network 20:
EXAMPLE 16:-Write a programme on STL such
that when input byte1 does not
gets the value of 64 it will make a
lamp on; the lamp should remains
on if value of byte 1 is in between
the 32 and 96.
0001 L "Tag_53"
0002 T "Tag_54"
0003
0004
Network 21:
COMPARATOR:- 16
0001 L "Tag_54"
0002 L 32
0003 >I
0004 L "Tag_54"
0005 L 64
0006 <>I
0007 L "Tag_54"
0008 L 96
0009 <I
0010 = "Tag_55"
0011
0012
Network 22:
TASK ON TIMER:-
EXAMPLE 17:-Develop the STL programme such
that an output light will turn on, 15
seconds after switch A has been
turned on.
0001 A "Tag_59"
0002 L S5T#15S
0003 SD "Tag_57"
0004 A "Tag_57"
0005 = "Tag_58"
0006
Network 23:
EXAMPLE 18:-Write a programme on STL such
that when we press the start push
button the star contactor starts
immediately and the delta
contactor starts after 15 second.
When delta contactor gets on the
star contactor gets off. To stop
the process press stop push
button.
0001 AN "Tag_60"
0002 A "Tag_61"
0003 = %L20.0
0004 A %L20.0
0005 AN "Tag_62"
0006 = "Tag_63"
0007 A %L20.0
0008 L S5T#15S
0009 SD "Tag_62"
0010 A "Tag_62"
0011 = "Tag_64"
0012
0013
Network 24:
TASK ON COUNTER:-
EXAMPLE 19:-Develop the STL programme for a
light that will turn on , after switch
A has been closed 10 times. Push
button B will stop the light.
0001 A "Tag_66"
0002 CU "Tag_67"
0003 A "Tag_68"
0004 R "Tag_67"
0005 L "Tag_67"
0006 T "Tag_71"
0007 A "Tag_67"
0008
0009
Network 25:
EXAMPLE 19
0001 L "Tag_71"
0002 L 10
0003 ==I
0004 = "Tag_70"
0005
0006
Network 26:
EXAMPLE 20:-Develop the STL programme such
Totally Integrated
Automation Portal
Network 27:
EXAMPLE 20
0001 L "Tag_75"
0002 L 1
0003 ==I
0004 AN "Tag_76"
0005 = "Tag_77"
0006
0007
Network 28:
0001 L "Tag_75"
0002 L 2
0003 ==I
0004 = "Tag_76"
0005
0006
0007