You are on page 1of 47

Project 2.

1 (Programming Hardwareconfiguration)
Please define the PLC-hardware used within your station with the STEP 7 software.
After the configuration, please download it into the PLC.
Screen shots of the hardwareconfiguration, the bold words are coands to clic! on, the " #
are only coents "E$TE%# eans clic! left ouse button once or press E$TE%, "double
clic!# eans double clic! the left ouse button&
File New "type $ae& P'()*# OK Insert tation I!"#I$ %&& tation
' P2(&1 I!"#I$ %&&(1) Hardware
"double clic!#
' I!"#I$ %&& ' )"$K*%&& )ail
"double clic!#
* )"$K %&& ' $P+*%&& ' $P+ %1,
' -./ %1,*1".&,*&"0& "depends on the
CP+ you use , chec! the order no. on the
front left below corner of the CP+# 11.2
"depends on the CP+ you use , open the flap
of the CP+ and you will find the right -ersion
nuber on the left below corner# "double
clic!#
*
$P+ %1, "at the Slot ' , double clic!#
$2cle3$loc4 !emor2 $loc4 !emor2
1&& ".eory /yte , free definition#
)etenti5e !emor2 & "$uber of .eory
/ytes Starting with ./)# & "$uber of S7
Tiers Starting with T)# & $uber of S7
Counters Starting with C)# OK
$P+*%&& ' !*%&& ' 6I36O*%&& !
%2% 6I1-36O1-72,13&89" "depends on the
input0output odule you use , refer to the left
below corner of the odule to find the right
nuber# "double clic!#
* I!"#I$ %&& tation a5e and $om:ile
P;$ 6ownload "follow the instructions on
the screen to download the
hardwareconfiguration#
"after download without an error essage switch
the CP+ to %+$ - no red light S1 - -switch the
CP+ to ST2P again# tation .7it
'
Project 2.2 (Programming 0asics in 6igital #ec<nolog2 "N6)
Please edit the PLC-progra concerning the following description&
as long as a Start-button A$3 a %eset-button are pressed, the piston rod of the cylinder
o-e. The cylinder is actuated by a 40'-way single solenoid -al-e. Please find out in the
pneuatic plan which cylinder you gonna use
File New "type nae P'()'# OK I!"#I$ %&&(1) "clic! on station of the pro5ect
P'()* with the right ouse button# $o:2
6
P2(&2 "right ouse button on the pro5ect P'()'#
Paste
= "close the pro5ect P'()*#
P2(&2 Insert Program / Program ' / Program (2) 0loc4s Insert /
0loc4 Function
F06 "change prograing language of
1C* to 1/3 7 1unction /loc! 3iagra#
OK
8
.7ecution36ocumentation
Edit the 2rganisation /loc! * first by double clic! on 2/*.
Progra 2/*&
After editing# File a5e "no error
essage# File .7it
This procedure is always the sae after
editing a progra it9s not entioned
anyore:::
Progra 1C*&
0loc4 P;$ 6ownload "follow
the instructions on the screen#
4
Project 2.% (Programming 0asics in 6igital #ec<nolog2 O))
Please edit the PLC-progra concerning the following description&
as long as a Start-button 2% a Auto0.anu-switch is acti-ated, the piston rod of the
cylinder o-e. The cylinder is actuated by a 40'-way single solenoid -al-e.
"after insertation of the S;.AT;C 6))"*#
station, copy of the <ardwareconfiguration,
insertation of a S7 Progra"'# please open
the Sybol Editor# ' P2(&%
/ Program(2) 2m>ols "double clic!#
"edit the sybols, the adresses and the
coents and sa-e the file# 2m>ol #a>le
a5e = "close the window of the
Sybol Editor#
=
.7ecution36ocumentation
Progra 2/*
Progra 1C4&
7
Project 2., (Programming 0asics in 6igital #ec<nolog2 )*Fli:*Flo:) ?
Please edit the PLC-progra concerning the following description&
if a Start-button is pressed shortly, the piston rod of the cylinder with single solenoid
shall o-e as long as a %eset button is pressed shortly. ;f the Start- and the %eset button
are pressed at the sae tie, the piston rod shall not o-e out.
.7ecution36ocumentation
Progra 2/* Progra 1C*
>
Project 2.9 (Programming 0asics in 6igital #ec<nolog2 "N6 NO#)
Please edit the PLC-progra concerning the following description&
as long as a Start-button is pressed A$3 a Auto0.anu-switch is $2T acti-ated, the
piston rod of the cylinder with single solenoid shall o-e.
.7ecution36ocumentation
Progra 2/ *
Progra 1C*)
?
Project 2.- (Programming 0asics in 6igital #ec<nolog2 I6.N#I#@)
Please edit the PLC-progra concerning the following Truth table. %educe the logic as
uch as possible. +se the Start-button "S# and the %eset-button "%# and the cylinder
with single solenoid -al-e "<*#.
.7ecution36ocumentation
Progra 2/*
Progra 1C*
*)
Project 2./ (Programming $ondition $all of a Program)
After a short actuation of a Start-button, the piston rod of the cylinder with single
solenoid shall o-e as long as a %eset- or a Stop-button is pressed shortly. The progra
shall be acti-ated by the Auto0.anu switch, the progra 1C> is not running if the
Auto0.anu switch is off.
.7ecution36ocumentation
Progra 2/*
Progra 1C>
**
Project 2.A (Programming $ondition $all of a Program e7:anded)
E@pand the Pro5ect '.7 "P'()7#
after a short actuation of a Start-button, the piston rod of the cylinder with solenoid
-al-e shall o-e as long as a %eset- or a Stop-button is pressed shortly. The progra
shall be acti-ated by the Auto0.anu switch, this eans, the progra is not running if
the switch is off with the additional function the piston rod o-e to the starting
condition if the Auto0.anu switch is off.
Sa-e an open pro5ect with a new nae&
File a5e "s P2(&A "type in the new
nae# OK
Copy the contents of the S7 Progra"'#&
/ Program(2) "right ouse button# $o:2
3elete the S7 Progra"'#
$P+ %1, "right ouse button# Paste / Program(2) "right ouse button# 6elete
"follow the instructions on the screen#
*'
%enae 1C> to 1C* $ew structure of the pro5ect
' $P+ %1, ' / Program(2) 0loc4s
F$A "right ouse button# )ename
"renae 1C> to 1C*# OK
.7ecution36ocumentation
Progra 2/*
*6
Progra 1C*
*8
Project 2.B (Programming On*6ela2*#imer function)
;f a Start-button is pressed and hold, the Start-light "<*# shall be on after 4,) seconds
and stay on until the button is pressed. The tier is only running while the Start-button
is pressed. ;f the Start-button will be released before 4 seconds, the tier start new.
2pen the <ardwarecatalog&
"if the <ardwarecatalog is not open "window in the right corner AProgra eleentsB#, please
open it in the 1C*#
<elp function for an 2n-3elay-Tier
1iew $atalog "the window Progra
eleents opens#
' #imers (O6# "clic! on the C and you
see a description of the function#
.7ecution36ocumentation
*4
Project 2.1& (Programming Off*6ela2*#imer function)
;f a Start-button is pressed, the Start-light "<*# shall be on as long as the Start-button is
pressed. ;f you release the Start-button, the light will be on for another
6 seconds
*=
Project 2.11 (Programming $ounter 6own function)
;f a Start-button is pressed, the piston rod of the cylinder o-e until reaching the sensor
for the front0bac! position depending on the hardware and then o-e bac! to starting
condition autoatically. After starting 4 ties, the Start-light ust be on and the piston
rod can not o-e again. Set the counter by pressing the %eset-button once.
.7ecution36ocumentation (6istri>ution tation)
Progra 1C*, the progra 2/* is the sae than for the pro5ect before
The logic odule P ".*).)# is an edge eory this eans, e-en you hold Start-button down,
only a short pulse will coe through to the input. Soe contact shatter or bounce e-en you
press the only once.
.7ecution36ocumentation (#esting tation)
Progra 1C*, the progra 2/* is the sae than for the pro5ect before
*7
.7ecution36ocumentation (Handling tation)
Progra 1C*, the progra 2/* is the sae than for the pro5ect before
.7ecution36ocumentation (orting tation)
*>
.7ecution36ocumentation (") tation)
*?
Project 2.12 (Programming Programming of a Flas<lig<t)
As long as a Start-button is pressed, a Start-light "<*# flash with 4)) s on and
4)) s off. The progra of 1C* should be done with only one $etwor!.
.*)).) 7 ),* sec.
.*)).* 7 ),' sec.
.*)).' 7 ),8 sec.
.*)).6 7 ),4 sec.
.*)).8 7 ),> sec.
.*)).4 7 *,) sec.
.*)).= 7 *,= sec.
.*)).7 7 ',) sec
.7ecution36ocumentation
Progra 1C*, the progra 2/* is the sae than for the pro5ect before
')
Project 2.1% (Programming Programming of a "uto3!anu seCuence)
The starting condition for this pro5ect is to press the Start-button shortly. After the Start-
button was pressed shortly, the Start-light is on for * second. After the Start-light is off,
the %eset-light is on for 6 seconds cycle end. To newstart the cycle, either press Start-
button again ".anu-cycle#, or switch the Auto0.anu-switch to on.
.7ecution36ocumentation
Progra 1C*, the progra 2/* is the sae than for the pro5ect before
'*
Project 2.1, (Programming !o5e to tarting Position)
.o-e your station autoatically to the starting position "hoe position#, this eans,
this is the position where a aterial flow starts. Press the %eset-button shortly to start
the seDuence. Station is not in starting position, the %eset-light shall flash with 4)) s,
Station is in starting position, the %eset-light is on.
$onditions of 6istri>ution tation?
C* 1acuum sensor is off (not I&.%)
C' wi5el arm is in magaDin :osition (I&.,)
C6 Eor4:iece sensor is off (not I&.-)
C8 !agaDine is in >ac4 :osition (I&.1)
Actions&
the actions ha-e to be done if the corresponding condition is not fulfilled.
A* remo5e t<e wor4:iece >2 <and using t<e ti::*>utton on t<e 5al5e
A' mo5e t<e swi5el arm to magaDin :osition
A6 fill u: t<e feeder wit< wor4:ieces*remo5e a wor4:iece if it is in t<e magaDin
A8 no action :ossi>le*c<ec4 t<e :iston rod and t<e adjustment of t<e sensor
.7ecution36ocumentation
Progra 1C*, the progra 2/* is the sae than for the pro5ect before
''
$onditions of #esting tation ?
C* 1isual control no wor4:ieces are on t<e c<utes
C' No wor4:iece is a5aila>le (not I&.&)
C6 No wor4:iece >etween t<e safet2 lig<t >arrier (not I&.2)
C8 ;ifting c2linder is down (I&.9)
C4 Pus<ing c2linder is >ac4 (I&.-)
Actions&
the actions ha-e to be done if the corresponding condition is not fulfilled.
A* )emo5e t<e wor4:iece >2 <and from t<e c<utes
A' )emo5e t<e wor4:iece from t<e wor4:iece mounting >2 <and
A6 !o5e t<e lifting c2linder down
A8 c<ec4 t<e :iston rod of :us<ing c2linder and adjustment of t<e sensor
.7ecution36ocumentation
Progra 1C*, the progra 2/* is the sae than for the pro5ect before
'6
$onditions of Handling tation ?
C* 1isual control no wor4:ieces are on t<e c<utes (slides)
C' No wor4:iece is a5aila>le (not I&.&)
C6 No wor4:iece inside t<e gri::er (not I&.-)
C8 ;ifting c2linder is u: (I&.9)
C4 Handling at t<e following station (I&.2)
Actions&
the actions ha-e to be done if the corresponding condition is not fulfilled.
A* )emo5e t<e wor4:iece >2 <and from t<e c<utes (slides)
A' )emo5e t<e wor4:iece from t<e wor4:iece mounting >2 <and
A6 !o5e t<e <andling to t<e following station
.7ecution36ocumentation
Progra 1C*, the progra 2/* is the sae than for the pro5ect before

'8
$onditions of orting tation ?
C* witc< 1 is in front :osition (I&.9)
C' witc< 2 is in >ac4 :osition (I&.-)
C6 no wor4:iece at t<e front end of t<e con5e2or (not I&.&)
C8 t<e slides are not full (not I&.%)
C4 con5e2or motor is off (not F&.&)
C= sto::er is in front :osition (no sensor a5aila>le)
Actions&
the actions ha-e to be done if the corresponding condition is not fulfilled.
A* remo5e t<e wor4:iece >2 <and from t<e con5e2or
A' mo5e t<e switc< 1 to front :osition
A6 mo5e t<e sto::er c2linder to front :osition
.7ecution36ocumentation
Progra 1C*, the progra 2/* is the sae than for the pro5ect before
'4
$onditions of ") tation ?
C* 1isual control no wor4:ieces are on t<e storing :laces
C' 1isual control no wor4:iece inside t<e gri::er
C6 #<e gri::er is closed (I12,.-)
C8 #<e @*a7es is in >ac4 :osition (I12,.,)
C4 #<e =*a7es is in t<e rig<t :osition (I12,.%)
C= #<e G*a7es is in down :osition (I12,.1)
Actions&
the actions ha-e to be done if the corresponding condition is not fulfilled.
A* )emo5e t<e wor4:iece >2 <and from t<e storage :laces
A' )emo5e t<e wor4:iece >2 <and from t<e gri::er
A6 !o5e t<e =*a7es to t<e rig<t :osition
A8 !o5e t<e G*a7es to t<e down :osition
.7ecution36ocumentation
Progra 1C*, the progra 2/* is the sae than for the pro5ect before
'=
'7
Project 2.19 (Programming .7:anded mo5ement to tarting Position)
E@pand the Pro5ect before, that the %eset-button ha-e to be pressed shortly in any case to
a!e sure, the -isual chec! is done already. 1ollow the steps&
1. Reset-button not pressed shortly Reset-light fash with 500 ms
2. Reset-button was pressed shortly and Station is in home position
Reset-light is on
2. Reset-button was pressed shortly and Station is not in home position
Reset-light fash with 200 ms as long as the actuator (actuators mo!e to
home position"
a#ter reaching the home position" the Reset-light is on.
$. %ress Start-button shortly Reset-light is o&" Start-light is on
The whole process "<oing and Start# can be interrupted by pressing the Stop-button shortly
or push the Eergency switch "if Eergency Stop !it is a-ailable# and the process start at the
first "*.# step again.
The Start process can not be acti-ated while the hoing process is acti-e and the hoing
process can not be acti-ated while the Start process is acti-e "as long the %eset-light flash or
is on the Start-button ha-e no function, as long the Start-light is on, the %eset-button ha-e no
function#.
Information
Please edit the progra 1C* in 1/3 which starts without any condition. Edit with sybols.
+se the list of inputs and outputs fro Pro5ect *.6 to find necessary inforations. The 2/* is
in STL.
Instructor: Please explain very clearly what you want to have if home-position
is running its not able to Start, if Start-condition is running its not able to run
the home-position seuence!
Planning
Please plan your pro5ect step by step first within the whole tea for one station first. +se your
progra fro Pro5ect '.*8 as a base for this progra. The tie to finish this pro5ect should be
around 6,) hour.
.7ecution36ocumentation ( 6istri>ution tation )
Progra 1C*, the progra 2/* is the sae than for the pro5ect before
'>
'?
6)
.7ecution36ocumentation ( #esting tation )
Progra 1C*, the progra 2/* is the sae than for the pro5ect before
6*
6'
.7ecution36ocumentation ( Handling tation )
Progra 1C*, the progra 2/* is the sae than for the pro5ect before
66
68
.7ecution36ocumentation ( orting tation )
Progra 1C*, the progra 2/* is the sae than for the pro5ect before
64
6=
.7ecution36ocumentation ( ") tation )
Progra 1C*, the progra 2/* is the sae than for the pro5ect before
67
6>
2.1- Project 0asics of I3O communication
Please coplete the following graphics according the description.
.7ecution36ocumentation
Please define a * /it bidirectional counication networ!&
2 4 V D C 0 V I n p u t O u t p u t
P N P
2 4 V D C
I n p u t :
0 - 1 2 V D C = 0 - S i g .
1 2 - 3 0 V D C = 1 - S i g .
O u t p u t :
1 - S i g . = 2 4 V D C
P L C
2 4 V D C 0 V I n p u t O u t p u t
P N P
2 4 V D C
I n p u t :
0 - 1 2 V D C = 0 - S i g .
1 2 - 3 0 V D C = 1 - S i g .
O u t p u t :
1 - S i g . = 2 4 V D C
P L C
Please define a * /it unidirectional counication networ! fro PLC to %obot-Controller&
2 4 V D C 0 V I n p u t O u t p u t
P N P
2 4 V D C
I n p u t :
0 - 1 2 V D C = 0 - S i g .
1 2 - 3 0 V D C = 1 - S i g .
O u t p u t :
1 - S i g . = 2 4 V D C
P L C
1 2 V D C 0 V I n p u t O u t p u t
P N P
1 2 V D C
I n p u t :
0 - 6 V D C = 0 - S i g .
6 - 1 2 V D C = 1 - S i g .
m a x . v o t . 3 0 V D C
O u t p u t :
1 - S i g . = 1 2 V D C
! o " o t - C o n t # o $ #
6?
Please define a * /it bidirectional counication networ!&
2 4 V D C 0 V I n p u t O u t p u t
P N P
2 4 V D C
I n p u t :
0 - 1 2 V D C = 0 - S i g .
1 2 - 3 0 V D C = 1 - S i g .
O u t p u t :
1 - S i g . = 2 4 V D C
P L C
1 2 V D C 0 V I n p u t O u t p u t
P N P
1 2 V D C
I n p u t :
0 - 6 V D C = 0 - S i g .
6 - 1 2 V D C = 1 - S i g .
m a x . v o t . 3 0 V D C
O u t p u t :
1 - S i g . = 1 2 V D C
! o " o t - C o n t # o $ #
% 1
& 1
1
Please define a * /it bidirectional counication networ!&
2 4 V D C 0 V I n p u t O u t p u t
P N P
2 4 V D C
I n p u t :
0 - 1 2 V D C = 0 - S i g .
1 2 - 3 0 V D C = 1 - S i g .
O u t p u t :
1 - S i g . = 2 4 V D C
P L C
1 2 V D C 0 V I n p u t O u t p u t
N P N
1 2 V D C
I n p u t :
0 - 6 V D C = 1 - S i g .
6 - 1 2 V D C = 0 - S i g .
O u t p u t :
1 - S i g . = 0 V D C
! o " o t - C o n t # o $ #
% 1
& 1
1
% 2
& 2
1
8)
2.1/ Project #est t<e I3O communication
Please test the input0output-counication with a progra. Coplete the drawing shown in
the E@ecution step first.
.7ecution36ocumentation
Progra 1C*, 2/* is the sae than in the pro5ect before "3istribution Station#
8*
Progra 1C*, 2/* is the sae than in the pro5ect before "Testing Station#
8'
2.1A Project !aterial*flow t<roug< t<e F!
2ne Duality chec!ed aluiniu wor!piece shall be ta!en out of the feeder and o-e to the
following station. /efore starting, the station ha-e to be in hoe position "use Pro5ect '.*4#.
The hoing position process can only be started, if the following station is in place "light
barrier signal#. After pressed the Start-button shortly at each station, the cycle starts, but only
if the following station ha-e been started already.
.7ecution36ocumentation
Progra 1C*, the 2/* is the sae than at the pro5ect before&
86
88
84
8=
87

You might also like