You are on page 1of 7
) White short moles on Pre vtimer [counter .lrstrections.. Timer instruction » ’ |}: Je moaseeres fhe ormoumt of time elapsed follwing an event - | Timers are of too types ) On- clelay timers (10N) % Or TIMER ON DELAY | Timer Hid Time base bo Preset is Acceemabited 2. Timmer snumbex + The ‘mer File mame | Tame base + Which is shown in seconds | fwiet value 2 Numeric value, seb 2s th ding negated“ | Accumabited velit The vahus ave counting is Gisplaged| frm 200. Valu. becomes 2eso wl ver the fir is rwset- Working [0 As tte timer is. initialized ba che input xic, it stands 4 count: D a the “timer counts, the -EN-omd the “TT bits axe sets & HIGH. 0 As the timer fimishk counting the “TT bit ig set ~& low and DN bit {5 set to HGH. / « [f the input bit is set to Lon) while the timer is coursing » the fecurrulnted ts back 0. The EN, *TT omd- DN bids ang set to hon. mn 2) OFE Delo Timer (10F) OF TIMER OFF DELAY Tiere 14:3 Time base to Preset ited Accumulated « TOF instruction ts used to torn om oulput on or off | adder its Aung has been off for 4 preseé time intervd- auction beans to coumt time base intervals when TOF inst | 4he Aung makes a Thue t Fale tromsrhon- cals dong ab Aung conditons aemairy FAKSE, the timer increments tks accumulated value is reset cohen “4 conditions ge TROE regrodless of coheodhar the timer has ty out - Counter [nshruclions Counter instruction, ave output instructons used count false & True remy tromaction - © These tramsitions -are usually caused y events Oeceeving at on input - o PRO Rin Counter Instruchon ore ‘of “fue types ) Imerementing covmb ers IC Uwumter ve)/Ctv instruchiny. wo CoenTER UP GT] erable bik counter + cli | - Preset 5 ae (on) Ace. ; * Done bi CTU instruction is used in pair with Cotter cooctuet “count thx number OF Low Te HIGH tromvition 4 the | ay degie- 0 TH will increment the “Accum? yolus each stim the bee which Lac int it is st b& TRIE: This Pprgrscrming allows “Ihe Preyroimmer to Keep track of how mang Preducts heave passed a certain sensor, how many revolutions have been smade by a certain motor, hous nan Aimes a certain alarm wos set ome so on. |. This imsluction is extrernely versedile amd Cae to work with | | | Aceumulrlor value CAce) + This ts the current mumber of the counker. The imitial value is 2e0- |, Paeset_volue (PR) + Predetermined value set bag toe Preyer | hen the acunulmtor value tc gual % 07 qveater “then the | past valur, a stots bit is set This bit com be control | om output dlevice - ee I Counter _Rneble brL Cen): This bit is seb evhtn a False —to- true meng condvbion & the (et of We covmter inctouction alrtectect - “Dom bit (ons) 1 Ths bit set whan-che accumulated i is equal tb the preset volue- Jb is reset ewhen The 1s | conelihen pecomes fale After & aneotimum count \'s A0ached, | | The courters cyeset amd stat courting trom 200. ~ oe 0 ft is uted to Aecaement the Vole of the coumter axoiutd with it. YE wil) decrement Accumuledor value rs q . SxMB Soo igh lel alan B30 Fe +e is Neate | OT . C52 3s # (tif level oan 1 E t } ue cle PN gaz) (High lenaf shuldoson 6 - JE Ackmebw leelye_) egub aes) -{ END} covmbey c5t2 has a Preset value -s- The numb a yo + Here S represents te emaximum number-of time Ane aleam cm be | toiggered before mogul ong on cocdemtodeg occkino wleelseman From the Operarr - When the bit 83% ofis gots HIGH, tie CTD instruction is energized omd the coumter cpciements the Preset value - + bohen B32 Or goes LON, followed by HIG, he CTD intouchen one The counter dvenernent axe F continue to increment until Accum=S. (S12 covmtes equals -5, tu (542 is enesgizod + The counter 1!) » When Accun of DN Git fs HIGH- bit is Used ® Sek om intemal biF B3:l/o | + The ¢CS:2 “DN ic gt HIGH unt) a buon Hel f& te The 6351/0 bit | bit earth is This achen aillocos the ¢ | PrOCess - see HIGH - a venter ew eee armel resume Tos 2) Real time application _of PRE Prograrmmi ong Ss | Xo ko Yo | Start of | fa | me tert pap ¥e oll anoles | > Stop ei purp moby | aie [b> Gilpaenp motor Ea Le ea nmi 4/1 ! Xt stort man le aay VII kb y | : nt AiO] stepain —cilencto \ ead Shep srain mobor n Mi Hao emotor \ main motor Description of fhe Programme. ON cohen Oil pump START bull is pressed « When Yor provide lube for the ge” box There fore the ai( pump start to of amin motor CY) - |. Under the precondition of the operating Melt, of cil peep, the | amain anotor (yi) will be OA! cohen re main motor START | hukon is pressed: Ce During the opexection of «main meloy (Ww), oil pump (ye) | onoods “ proviole Aube continuous. | + The cif pump will stoped ohn cil pump stop ballon Ko is activated , omd the emain amotor all be stopped whan Hain motos STOP button Xg ts activated -

You might also like