Transcript of Vedran Plc & Instrukcije 2
August 2
.
Adress!ereiche "33-SPSen
)r+eitsmerker
)r+eitsmerker
'in#()us*!n*e, )r+eitsmerker ort# z.B.-1- oder
Bitadresse z.B.1412-
&*-S(eicher!ereich - "-Serie
/
%&stemmerker#Bereich %R: enth!lt %ekunden#P31s,
Minutentakt+its /P31min, 0mmer#'in#Merker /P35n 1. ort#
z.B.-2.- oder Bitadresse z.B.20242- mit s2ez. 3unktionen
nicht +ele*te )dressen als )r+eitsmerker +enutz+ar
S*-S(eicher!ereich - "-Serie
zus!tzlicher %&stemmerker#Bereich )R:
%&stemmerker+ereich enth!lt Merker zur 4+erwachun* und
%teuerun* des %5%#Betrie+s: 3ehlermerker,
&kluszeit#Merker, 'chtzeit#Merker 1. ort# z.B.-A*10- oder
Bitadresse z.B.A*12410-
A*-S(eicher!ereich - "-Serie
H*-S(eicher!ereich - "-Serie
1
%chnittstellen+ereich $R für 8:8#%5%#9ommunikation:
enth!lt remanente 6s2annun*sausfallsichere7 Merker
ort# z.B.-8*10- oder Bitadresse z.B.8*1040- mit s2ez.
3unktionen nicht +ele*te )dressen als )r+eitsmerker
+enutz+ar
8*-S(eicher!ereich - "-Serie
11
eit*e+er(!hler#Bereich T": +ei "#%teuerun*en müssen
eit*e+er und !hler unterschiedliche Nummern ha+en, da sie im
*leichen Bereich T" lie*en, +ei "%8 sind *leiche Nr. zul!ssi*
Timeristwert# z.B. ort -T"20.-, ;eit
a+*elaufen<#Bitadresse T&920.- !hleristwert# z.B. ort
-"+T200-, ;!hler a+*elaufen<#Bitadresse "+T200-
!hler#0stwerte sind remanent 6s2annun*sausfallsicher7
T"-S(eicher!ereich - "-Serie
12
Datenmerker#Bereich D9 für Daten, 5arameter, erte:
nur wortweiser Datenzu*riff, z.B. D92.
%chrei+($ese#Bereich 6DM====#17, nur $ese#Bereich
6DM>8??#DM>@AA7, Daten om 5ro*ramm nur les+ar %5%#%etu2
#Bereich 6DM>>==#DM>>@@7 s2eichert %teuer2arameter des
%5%#Betrie+ DM sind remanent 6s2annun*sausfallsicher7
D9-S(eicher!ereich - "-Serie
1
Bereich #9 ist nur +ei "CM8H#"5>8, "E==HF, "E==HG orhanden:
Bereich #9 für Daten, 5arameter, erte nur wortweiser
Datenzu*riff, z.B. #9/1. für die Bank #9 #9 sind
remanent 6s2annun*sausfallsicher7
#r:eiterter Datenmerker-S(eicher!ereich - "- Serie
Timer
Datenre*ister Task#Merker
10
%&stemmerker+ereich A enth!lt Merker zur 4+erwachun*
und %teuerun* des %5%#Betrie+s: 3ehlermerker,
&kluszeit#Merker, 'chtzeit#Merker 1. ort# z.B.-A2/.- oder
Bitadresse z.B.A2411- nur les+ar )=== +is )??I,
les+ar(schrei++ar )??J +is )A@A
S7stemmerker-S(eicher!ereich "S1
Haftmerker H und Ar!eitsmerker ; - "S1
Haftmerker#Bereich H: enth!lt remanente
6s2annun*sausfallsichere7 )r+eitsmerker ort# z.B.-H011-
oder Bitadresse z.B.H011410-
1
eit*e+er#Bereich T: em2fehlenswert ist,
unterschiedliche Nummern unterschiedlichen eit*e+erarten zu *e+en
Timeristwert# z.B. ort -T.0- , ;eit a+*elaufen<#Bitadresse
T.0-
<eitge!er T und <=hler " - "S1
16
Bereich #9 ist nur +ei "%8F#"5??, #"5?@, "%8H#"5>? und
hKher orhanden: Bereich #9 für Daten, 5arameter, erte
nur wortweiser Datenzu*riff, z.B. #232/ für die Bank #2
#9 sind remanent 6s2annun*sausfallsicher7
Datenmerker D und #r:eiterte Datenmerker #- "S1
1
mit &* werden 'in#()us*an*sworte indirekt
adressiert, &* stellt den ei*er dar nur
wortweiser Datenzu*riff, z.B. &*1.
&nde>-*egister &* und Daten?5ffset@- *egister D*
Taskmerker#Bereich T: Taskmerker aktiieren(deaktiieren Tasks
#5ro*rammteile Taskmerker +enutzen 9onstanten == +is 8, z.B.
T1
Taskmerker-S(eicher!ereich - "S1
21
'in#()us*!n*e, )r+eitsmerker ort# z.B.-1- oder
Bitadresse z.B.1411-
"&5-S(eicher!ereich - "S1
"P)-Bus-Baugr4
frei
• 3 Typen von Baugruppen bei der CS1 .
– CS1 - C!bu" - #au$%u&&en
– S&e'ial - * - #au$%u&&en
– #a"i" - * - #au$%u&&en
(W339 S. 66)
6DE====#DEA@AA7
( W339 S. 12+)
"5 Rack
"S1 #r:eiterungs- Baugru((entr=ger
Baugru((en- tr=ger E
When CS1 i i" nece""a%y o c%eae he %e$i"e%ed 5 able
5 able %e&%e"en" he ma&&in$ o he 7oni$u%auon in
C5 *%ea
&en he 5 able 0ih double clic in he 5 able %o:ec
#$A-Ta!elle ffnen
Slo +2
Sa% add%e"" 2+;+
C<-%o$%amme% di"&lay" he add%e"" a""i$nmen o he module" in
he =C coni$u%aion
ae% he 5 able in he &%o$%am-"o& online mode 0a"
c%eaed.
#$A-Ta!elle erstellen
BCD data in the result ord !
through the points "#s$ #d% and "Bs$ Bd%
linear function defined.
PrimCer skaliranCa Let us assume that a pressure sensor on analog
input
connected$ and hich measures a pressure of &'' mbar to
(&''.
The folloing values must be set)
"#s$ #d% and "Bs$ Bd%
"'.&''% and "*#' he+ , -''' BCD$ (&''%.
5arameter )dresse ert
Bd, B"D D==8=E E@==
Bs, He D==8= =3)=
.
PrimeCr skaliranCa The measured voltage at the analog input ' to 1'
is correct
be displayed in hundredths of volts. alues range '''' to 1'''
/nsert the values)
0se C/'''& address as the display of the voltage.
/n order for the assembly 2#D-- "0nit '%
D('''' and D('''1 ''** , must , be &&'' "' to 1' %
5arameter )dresse ert
Bs, He D==8= ====
0
Scaling e+ercise resolution /n order for the assembly 2#D-- "0nit
'%
D('''' and D('''1 ''** , must , be &&'' "' to 1' %
/f you ant to see the correct voltage ' to 1' as ''''41'''
one must specify the folloing values)
"#d$ #s% and "Bd$ Bs%
"'.'% and "1'''$ *#' he+ , -''' BCD%.
Bd, B"D D==8=E 8===
Bs, He D==8= =3)=
/
F -F $F F Arithmetik
SI*T P;* ?>J7@ #P ?eJ>@ 85K ?e@ *AD D#K Trigonometrie
S&+ "5S TA+ AS&+ A"5S ATA+
*LT
for e+ample) 7 * 1''''
8ound up 9 * '.&
BCD
"8ange ' ... -'''%
be correctly displayed in hundredths of a volt.
alues range '''' to 1'''
0se C/'''- address as the display of the voltage.
*or the calculation of intermediate results$ you can
Data memory ords from D'''-' to D'''-; use.
"/n order for the assembly 2#D-- "0nit '%
D('''' and D('''1 ''** , must , be &&'' "' to 1'
%%
.
Calculation e.g.) 6 * 9-
BCD
/t can be a complete program for
all possible plant parts ritten
be. The parts that the end customer is not
mit=auft be in the program only
sitched off so that hen retrofitting
again only the relevant part
must be unloc=ed.
previous e+ample can be sitched off
ith >2? commands.
Turning the calculation.
..
>umps 4 !+ercise solution Sitch the input to the
#4()''
Turning the calculation.
This is usually undesirable.
can not be reset.
part of the sitch position Sitch1 , **%
The cycle time improvement is usually
irrelevant$ and the calculation can also
off contact ith the front of the command
are$ therefore$ that umps in
Case hardly needed at mron.
specified subroutine
?rogram.
./
Data is to be e+ecuted
in subroutines
.
L!ung - )nter(rogramme Set the floating4point calculation of the
e+ercise in
a subroutine and run it once for input 1$ from one
display$ and once for input ($ display (.
The subroutine is its input data
get ord in D''''$ D'''1$ and return the
result.
/t is the value of analog input 1 "C/(''1% and (
"C/(''(% are changed.
oltage value to 1 and the second C/'''& alue
are displayed.
Step chains are in
program control
?rogrammed se<uence.
ne+t cycle started.
There is no restriction in
of use.
•?rogram a traffic light ith the steps)
8!D
( s to come G8!!5
& sec to come F!LL@
Light red , .''
8S!T
ST!? 6 S5:T •?rogram a traffic light ith the steps)
8!D
( s to come G8!!5
& sec to come F!LL@
Light red , .''
S5:T
indirect addressing Commands ill usually or= ith fi+ed
addresses.
/f you use tables "eg recipes% ould for any address in the
Table and a command to be present$ hich processes the address in
the table.
?LC =upi vried iA dm1$ a=o e vriednost 1111$ onda ce uAeti
vriednosti iA D21111$ i
prenieti e u L8''
06
!+ample) recipe management >able 0ih b%ead %eci&e" in he
=C
+r4 ;asser *oggen ;ei%en Tem(4 Back%eit +ame D1 D11 D12 D1 D1.
D104441
1 2 1 1 5!erl=nder D11 D111 D112 D11 D11. D110O11
1 6 1 2 2 1 Berliner D12 D121 D122 D12 D12. D120OD12
2 12 2. 12 #ifeler D1 D11 D12 D1 D1. D10OD1
16 Sch:ei%er
D12
D11
D1.
.4
D
D1
D1
ta=e to ords$ and the
table is to begin in D('.
/