Você está na página 1de 6

.....

J 24

Automao Industrial Prova 1 2015/2 1) Altere (escreva por cima) o programa CLP ao lado para : a) sinal PWM na sada QO.O,
base de tempo em microsegundos, ciclo de 20.000 se razo cclica de 50% (demais
parmetros permanecem iguais); b) que evento deve ocorrer e qual a alterao no
programa para alt erar a razo cclica para 25%? Dado:
LAO ao.o 00.1 Control Brts
MAIN 081
S,.,167 O St.177 O PTO/PWtJ updilte cyde time value o =no update; 1 =update cyde time
Net\'rork 1 sr..1s1 1 Sf1r177 1 =
PWM update ?Use Widrh time vatue O no updlte; 1 = update pulse \vldth
SM0.1
1
Q<l. l St.167 2 SM772 PTO updlte pulse counl value =
O no updlte: 1 = update pulse count
1 R )
l St.167.3 SM77 3 PTO/Pl/""1 time base seted O~tlck; 1 = 1msroc1<

Ner.vof'M 2
-----i~---'
E?l
SBRO
St.167 4 sr.111 4 PWf'1 update ~thocS:
O - asynchronous upda1e, 1 =synchronous update
-
o =stngle segment operaLon 1 =muJtJple segment operation
. . . . . .'io 1p H EllSBR.l 1
St.167.5
S,..167 6
Sl'v177 5
St.177 6
PTO operation
PTO!P'lll\.1 mOde select =
O selects PTO; 1 =selects PNr..1

SM67.7 SM777 PTOIPW1v1 enable O = disables PTO/PW~1;
1 = enabtt:s PTO/PWrv1
iUBROUTINE O
ao.o 00.1 Other PTO/PWM Reg1sters
Neti.vom 1 SMW68 s r.tW78 PTO/PWf<.1 cyde time vaJue (range 2 to 65535)
t .( t J ' () SMO O
1
HOV B
- Sf\fW70 SMWSO PV'Vf\1 putse Y11dth value (range o to 65535)
i--.--- - -E.t'1 E!G -

t2#' .JJ.oJ)..J..!-"i--t--' ~ ,. .. ~ Itl


S,.,1072
Sl'.18166
s1~1082

S~~1B176
PTO puJse count value (range 1 to 4294967295)
Number of segment 1n progress (used onty 1n mulUple segmenl PTO operat1on)
HOV W
vo (used only 1n
~;e- ~ -A\ Wt\
SMW l 68 SMVV178 Startlng locatoo or profle table. expressed as a byte otrset rrom
i - - - - - - iElJ mulbple segment PTO operation)
.> 1
- --+-r-1 '.:1>006 _ = =_ u- ~ sMti9:
zi __o__,
.....

2) Altere (escreva por cima) o programa CLP abaixo para: a) contador rpido HSCO, clock
1 - - - - - 4EN
fases A/B, contagem si mples, reset externo, valor inicial O e preset de 500.000; b) quando
--- PLS
CV=PV ligar a sada QO. l . Dados:
~-:J
1---4~ ENO - HSCO
(} ~ 00 .X Mode Oescription 10.0 10.1 10.2
o S1ngle prose upld01.11 coumervJith intemal direcilon contrai
s
'----~ E!l-1
llOV B
-:m:o,_
1
SP.137.3 =O. coont daNn
SM37 .3 = 1, count up
Clock
Reset
16#DA - !N ou_ SMB77
3 S1ngle phase up/da.... n counter w1th externai direcboo control
SUBROUTINE 1 =
10.1 O count down Clock o..
4 10.1 = t, count up Reset

5MO.O K OV II
6 T'Ao-phase counter N1th count up <ind count do1Wn clock
1 1 - - E?l iKc S LM. 1).)/ mputs Clodt Ck>ck
7 lUp) (On) Reset
SOQO- :N OU": - sNWSCf
9 AIB phase quadrature counter.
phase A leads B b190 degrees for doclc1.ise rotaton, Clock Clock
to phase B leads A by 90 degrees for counterclockwtse Phase Phase Re$8t
PLB rotaoon A B
' - - - - - t EN ENO -

1 - 00 .X
LAO 1 De c1i11tio11
f\t.\IN 061
'
1 CO f f C1 1f C2 tfSC1
(11 ccl only wh c11 fiOEF i ox ct1l <f)
Netv. 00.. 1
M37 .O SM4 7 O SM57 O SM 14 7.0 Acllvo levei cf1trol ~t tor Res "'
H;l EN
SBRO =
O Res t 1 :Jch a htgh, 1 = Reset rs Cll\i e low
- SM17 1 Sf\157 1 - ActJvo 1 ef cont1ol bit for Start.
O= Slnrt 1s :id1 e h1gh; 1 = Start rs .. Cll\I low
SM37 2 SM<17 2 SM57 2 SM 147.2 Count1n9 rnte saloctson ror Quadralure counters
SUBROUTl~E O
O=4X counting rnto; 1 f X counting r:ite =
~~\l)\ 1
H CO HSC1 H C2 H CJ H C4 H C5 Deser iJJlio11
S!i!O. 0
r.r,
NO\' B
E.~O
- - .;!- S ~..137 3 St.147 3 SM57 3 St.1137 3 SM 147.3 S'-11 57.3 Counttng dlftlct1on control bit
- O = count down; 1= count up
l ' t PEt - !l~ OUT -SHB47

'
i , ~Jf'!I

' SMJ74 S t,i47 4 SM57 4 SM137 4 SM 147 4 S~1 157 4 Writo tho counting directton to tho HSC
HDE.P

~- ! - \:S .......
,:--
.:..
..
~~
- St.137.5 StM75 St-157.5 s .1 137.5
O= no update; t = update drrecoon
Stv1147 5 St.1 157 5 'A'nt the new praset v lue to lhe HSC
'1 11- P.:0::>:: O= no updat.:; 1= update preset
SM37.6 SfM76 S,.157 6 St.~ 137 6 SM147.6 S,.11 57 6 Wnte Otc new current value to lhe HSC
HO\ ' I>N
-
_,.
o- -
_, .
::_, ~
,..,-
- -5MD~ S
~1 O= no upcJate, 1 = update current 1J31ue
SM37.7 SP.t47.7 St.157 7 s .1137.7 SM147.7 St.1157 7 Enable lhe HSC O= d1S3bla lhe HSC.
> 1 =cn bte lhe HSC
.!f.:)
,...,..
_, -E..D1-'
..'-:- qJ.
- - - -
l ) . -
"1

,..1
se -x - '--- -Sle'S:?
Vtllue to be loaded HSCO H C1 HSl 2 H CJ H C4 H CS
~C3'
~ ~o 1- Nt:..., current S ',1038 St. D-!8 Sl.1058 SM0138 SMD: -l8 Slo10!58
o- -
'!" -
'evt preset s ;1042 St.ID52 s ~062 St.10142 St.10152 SM012
J .3
~ "". - .:..._.. ..
.::.. ,._~-

~
~'t-)
::.. - 3) Supor a configurao da entrada analgica do CLP para {O - 20 mAJ, converso A/ D 12
;:;.:
.,...... bits armazenada num regist ro 16 bits de {O - 32.760). Para um valor lido no CLP
:.... ~-u
:.... ~ -
01- ~ AIW0=25.000, qual a temp era tura {C] lida pelo sensor PTlOO com as caracter1st1 cas
,,
abaixo (indicar todos os clculos}?
IN'iffiRL ;:,- C

1t.t:A'- 1
!AAVOJ [mA]
.5:!lO . e MJV IM 32.70 20-- - - - - - - - - - -
1
1
1
t
li
e
1::N
-~"'O
- j\
, --- _, .
'--- ! Ah C'l -).4 i
1
1
1 &> "_3.
~ :n.~r J 1 1
-= :r.
!

s:1
ac=-r sva-1;
~= -15 fT '
1

. 1'~
n ;,:: - 1
- 1~
,. f
1

100 (cC)
' 1
cz;e=
,.

Automao Industrial Prova 1 2016/1 LAD


MAJNOB1
Aluno: Netwom 1
~:l EN
SBRO

Ql: Para o programa CLP em Ladder ao lado explique:

i) o funcionamento do bloco "ATCH" (interrupo);


SUBROUTINE O

-.tet-.vork 1
sx
1
.o
1 .
llOV B
- -
.....
1 1 Ef:O
16f P8- ~
o,7 -sM:M7
ii) o que um contador rpido "HSC" e para que utilizado?
HDZP
"'"'.
e...
1- HoJ....
~iO
-
11- 14 DE

HOV ITli
- -
~ .:...
~o

o- -~ C:::' -SMD49
iii) o que contagem qudrupla?
MOV D'N
-'C'"'"o -
~;

50- - ,.
.....
-
O:' -SMD52

AICJI
J:"'J EXO -
o- -......
~!..

13- E"lEl;T
QO.O Q0.1 Control Bits
SM67.0 SM77.0 PTO/PWM upate cyde tune vatue o = no update: 1= upate cyde time E!lI'

s ~.167 1 SM77.1 ~1 upate pulse \\idth tlme value o = no update: 1 = update pulse \Vldth HSC
1
EN ..::.....
. . . -
s~.1612 SJ..177.2 PTO update pulse count value o = no update, 1 =update pulse count
1. ~

St.167 3 Sf\177 3 PTOJPWt..1 time base seled o = 1 s'tlck: 1 = 1msJlJck

St.167.4 Sf\177.4 PWt..1 update method. INTERRU?T O


o = asynchronous update. 1 = synchronous update
1
St.167 5 SM77.5 PTO operatJon O= S1ngle segment operation 1 =mult.iple segment operaoon 1 Ner...'Ofk 1
Stw167 6 Sl\177 6 PTOIPWM mOde select o =selects PTO. 1 = seteds PVVt.1
~ 1 . HOV IM
-
s ~.1s1.1 PTO/PW'M enable o = dJsables PTOIPWM; 1 E..\r 'ENO -
st..1111
1 = enables PTOIPW?.1
_,.
o- -.. Ou.' - S!049
HOV B
ao.o Q0.1 Othtr PTO/PWM Rtg1sters
-
....... -o
Stw1Vl68 S~1W7 8 PT01PWr..1 cycle tJJne value (range: 2 to 65535) - - V

16ci> O. - sKa47
1 = ~-
sr..tvno Sll.1W80 P\Vf\1 pulse v.1dt.ll vatue (range. O to 65535)
HSC
St.1072 St.1082 PTO pulse counl value (range 1 to 4294967295) EN E!.C -
s~.10166 Sll.18176 Number of segment 1n progress (used onty 1n muJtJple segment PTO operauon) l . tl

St.1\"1168 St.1\f/178 Starting locat.IOO of proflle tabte. ~xpressed as a byte orrset from VO (used onJy tn
muJtJple ~t PTO operatlOO)
Q2: i) Indique no programa CLP em Ladder ao lado o bloco responsvel por: LAD
MAIN 081
a) especificar a razo cclica; b) parametrizar o PWM e c) especificar as caractersticas do
Ner.1ork 1
PWM. SMO.l QO.l
.___ _ _ __.r p )
\ 1
ii) O que aconteceria caso "SMO.O" fosse substitudo por "SM0.1" na Subrotina O 7 SBRO
._____ fill
i . = ; __ ___J

Netv1or1< 2

i
i--tMO O 1 p 1 1E?lSBRl 1
iii) Qual a funo de "-IPI- " na Network 2?

: UBROUTINE O

NeMor1s. 1
SMO.O NDV B
-
Q3: Supor a configurao da entrada analgica do CLP como bipolar [-10 at +10 V], 1 6#DB- l ?1 OL"':.._ SMB7 7

converso A/D 12 bits armazenada num registro 16 bit s de [-32752 at+ 32.752]. Para um JIOV W
-
valor lido no CLP AIW0=-15.000, qual a temperatura [C] lida pelo sensor com as 1 - - - - - - 11:""
~'

caractersticas abaixo (indicar todos os clculos)? 1 0000- :.:1 01:": - SMW7 8

llOV
-w
(AIWO]
+ 3 2 7 5 2 ' - - - - - - - - -- --- iooo- :?1 OL""': ..... SMWSO

PLS
1 - - - - - - tE?J ENv

1- 00. X
1
K OV B
1 '------i R!'~
-E?:c ~
1
1 6iDA - I !l OU.-. SMB77
1
-100 SUBROUTlNE 1
o +100 [CC]
1 SMO.O JIOV 1'i
-
1
-i 1 - - - EN ENC
5000- '!?l OC": - SMWBO

PLS
" - - --tElr m;o ._
1 - 00 .X
1 e ~ "' , ., \)
G l ~ t 0 l i:l C\ l 9 l ~ l 3 1.
Automao Industrial Prova 1 2015/2 1) Altere (escreva por cima) o programa CLP ao lado para : a) sinal PWM na sada QO o,
base de tempo em microsegundos, ciclo de 20.000 se razo cclica de 50% (demais
parmetros permanecem iguais}; b) que evento deve ocorrer e qual a alterao no
programa para alterar a razo cclica para 25%7 Dado:
LAO
~ ao.o ! Q0.1 Control Btts
MAIN 081 '-

, sMG7.o St.,77 O
~
PTO/PWM update cyde time value o = no update. 1 = update cycle time
Net\vork 1 .
Sf~7. 1 SM77 1 PWM update pulse width Ume vnlue O= no upd<lte; 1 = update pulse v.1dth
SMO.l QO .i e:> SM67 2 SM772 PTO update pulse count value O=no update. 1 = update pulse c:ount
\ R )
l SM67.3 SM77 3 PTO/PWM time base seled o = 1 sitJck: 1 = lmsJtrck
SBRO
01 SM67 4 SM774 PWM update method:
Network 2 O= asynchronous update. 1 = synchronous update

t--IMO i 0
1p HENSBRl 1 SM675 $~177. 5 o=slngle segment operatoo 1 = multiple segment operation
PTO operatJOn
SM67.6 $~177 .6 PTO/PWM mode select o=selects PTO: 1 = selects PWM

SM677 Sti.177.7 PTOIPWM enable o =d1sables PTO/PWf\-1;
iUBROUTINE O 1 = enables PTO/PWM
QO.O Q0.1 Other PTO/PWM Reglsttrs
Networi< 1 SMW68 SMW78 PTO/PWM cye lime value (range 2 to 65535)
sxo.o llOV B
-Et;;04-
1--T------IE!J
SMW70 SMW80 PWM pulse vlldth value (range o to 65535)
lU S>m77
SMD72 SM082 PTO pulse c:ount value (range 1 to 4294967295)
SMB166 SMB176 Number of segment ln progress (used onty n multiple segment PTO operatlon)

t-----4ElJ
ld'OV Pi
-EKc+- SMW168 S~1W 178 starting tocatlon or pronle table expressed as a byte otrset rrom vo (used onty ln
multJple segment PTO operatlon)
..1.000lJ _....:_11_o_u__,- "S_MJQ~ 5./'111 'v.j G>J>
NOV W
- 2) Altere (escreva por cima) o programa CLP abaixo para: a) contador rpido HSCO, clock
1----01 El\CJ+-

~e ecr ---':S""'..::.i-...__~
=!1:..;_1 S"/V' \/v ~ () fa ses A/ B, contagem simples, reset externo, valor inicial O e preset de 500.000; b) quando
J ") (9..L'.1,----....., CV=PV ligar a sada QO.l . Dados:
PLS
1----EN ENO
HSCO
~ 1
1
oo ~x Mode Oe5crlptlon 10.0 10 1 10.2
o Single ph3se up/dCMn counter with ntem31 diredt00 control

NOV B
~
- o =
SM37 3 O. count down Clock
1 SM37 3 = 1. count up Reset
SHB77
3 Single phase up/doNn counter with extGmal direction control
SUBROUTINE 1 10 1 : o count down Cloc.k o..
4 =
10 1 1 count up Reset
SXO O llOV_ Pf ,
1 1 - - - EIJ El\
li
/ - G
7
T\\'0-phase counter v.11h count up <ind count doNn clock
)puts Clock
(Up)
Clock
(On) Reset
.....
~ AJB phase quadr3ture counter
phase A leads B bf 90 degrees for dock'Aise rot.abon, Clock Clock
10 phase B leads A by 90 degrees for counterclockwise Phase Prose Reset
PLS A B
robtion
'- - - EU EN -

tJ V/
O. X
1 LAO Description
MAJNOB1 HSCO HSC1 HSC2 HSC4
(used only when HDEF is exeasted)

e SM37.0 SM470 SM57 O SM147 O Acbve leve control blt for Reset
O= Reset as acbve high, 1 = Reset is active low

- SM47. I SM57.1 - Acb"e level contrai bit for Start:


O= Start is acti\le high; 1 = Start as acbve lo:.v
SM37.2 SM47.2 SM57.2 SM147.2 Counting rate selection for Quadratura counters:
SUBROlJ"l~E O
l O= 4X counbng rate; 1 = IX counting rate

!'NOr1< 1
SMO. O MOV B
HSCO HSC1 HSC2 HSC3 HSC4 HSC5 Oescrlptlon
- SM37 3 SM473 SM57.3 SM137.3 SM147.3 SM157 3 Counting directJon control bit:
l O = count do.vn 1 = count up
_.,.-
HDBP SM37.4 SM474 SM57 4 SM137.4 SM147.4 SM157 4 Write the counbng directJon to lhe HSC:
t----=-----1~ D>O O = no update, t = update direcbon
0 ........., HSC SM37.5 SM475 SM57.5 Stl1137 5 SM147.5 SM157.5 Wnte the new preset value to the HSC:
-=r l.,OD~

-
H OV DN
O = no update; 1 = update preset
SM37.6 SM476 SM576 SM137.6 SM147 6 SM157 6 Wnte the new current value to the HSC
1 - - - - - - 1 E':J ENO
~ ~~ 5A1>>3
O = no update 1 = update current value
:N
O .____ _ ____. SM37 7 SM477 SM57 7 SM137 7 SM147 7 SM157 7 Enable the HSC O d153bfe the HSC: =
HOV DN 1 = enable the HSC
i - - - - - - 1 E.~ e~

Value to be Loaded HSCO H C1 HSC2 HSC3 H C4 H C5


Ne-N current SMD38 SM048 SM058 SMOl38 SMD148 SMOl58
NeN preset SM042 SM052 St.1062 SM01 42 SM0152 SM0162

3) Supor a configurao da entrada analgica do CLP para [O - 20 mA], converso A/D 12


bit s armazenada num registro 16 bits de [O - 32.760). Para um valor lido no CLP
AI W0=25.000, qual a temperatura [C] lida pelo sensor PTlOO com as caractersticas
abaixo (Indicar todos os clculos)?

(AlWO) (mA)
O D 37 760 20-------------
StW48

JJJU7

o.o o
o 100 f CJ