12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712 |
- DATA_BLOCK DB 1
- TITLE =Yalanci632yahoo.com
- VERSION : 0.1
- STRUCT
- Emergency_Stop_73 : BOOL ;
- Speed_Switch_73 : BOOL ;
- Contactor_FB_73 : BOOL ;
- Circuit_Breaker_73 : BOOL ;
- Emergency_Stop_71 : BOOL ;
- Speed_Switch_71 : BOOL ;
- Contactor_FB_71 : BOOL ;
- Circuit_Breaker_71 : BOOL ;
- Emergency_Stop_72 : BOOL ;
- Speed_Switch_72 : BOOL ;
- Contactor_FB_72 : BOOL ;
- Circuit_Breaker_72 : BOOL ;
- Emergency_Stop_81 : BOOL ;
- Speed_Switch_81 : BOOL ;
- Contactor_FB_81 : BOOL ;
- Circuit_Breaker_81 : BOOL ;
- Emergency_Stop_82 : BOOL ;
- Speed_Switch_82 : BOOL ;
- Contactor_FB_82 : BOOL ;
- Circuit_Breaker_82 : BOOL ;
- Emergency_Stop_87 : BOOL ;
- Speed_Switch_87 : BOOL ;
- Contactor_FB_87 : BOOL ;
- Circuit_Breaker_87 : BOOL ;
- Emergency_Stop_83 : BOOL ;
- Speed_Switch_83 : BOOL ;
- Contactor_FB_83 : BOOL ;
- Circuit_Breaker_83 : BOOL ;
- Emergency_Stop_84 : BOOL ;
- Speed_Switch_84 : BOOL ;
- Contactor_FB_84 : BOOL ;
- Circuit_Breaker_84 : BOOL ;
- Emergency_Stop_85 : BOOL ;
- Speed_Switch_85 : BOOL ;
- Contactor_FB_85 : BOOL ;
- Circuit_Breaker_85 : BOOL ;
- Emergency_Stop_86 : BOOL ;
- Speed_Switch_86 : BOOL ;
- Contactor_FB_86 : BOOL ;
- Circuit_Breaker_86 : BOOL ;
- Level_Switch_high : BOOL ;
- Level_Switch_High_High : BOOL ;
- Circuit_Breaker_20 : BOOL ;
- OPEN_ALARM_JACK1 : BOOL ;
- CLOSE_ALARM_JACK1 : BOOL ;
- OPEN_ALARM_JACK2 : BOOL ;
- CLOSE_ALARM_JACK2 : BOOL ;
- OPEN_ALARM_JACK3 : BOOL ;
- CLOSE_ALARM_JACK3 : BOOL ;
- OPEN_ALARM_JACK4 : BOOL ;
- CLOSE_ALARM_JACK4 : BOOL ;
- OPEN_ALARM_JACK5 : BOOL ;
- CLOSE_ALARM_JACK5 : BOOL ;
- OPEN_ALARM_JACK6 : BOOL ;
- CLOSE_ALARM_JACK6 : BOOL ;
- OPEN_ALARM_JACK7 : BOOL ;
- CLOSE_ALARM_JACK7 : BOOL ;
- OPEN_ALARM_JACK8 : BOOL ;
- CLOSE_ALARM_JACK8 : BOOL ;
- Circuit_Breaker_C3_Alarm : BOOL ;
- Circuit_Breaker_C5_Alarm : BOOL ;
- Circuit_Breaker_C4_Alarm : BOOL ;
- Delta_P_High : BOOL ;
- PROFIBUS_ALARM : BOOL ;
- END_STRUCT ;
- BEGIN
- Emergency_Stop_73 := FALSE;
- Speed_Switch_73 := FALSE;
- Contactor_FB_73 := FALSE;
- Circuit_Breaker_73 := FALSE;
- Emergency_Stop_71 := FALSE;
- Speed_Switch_71 := FALSE;
- Contactor_FB_71 := FALSE;
- Circuit_Breaker_71 := FALSE;
- Emergency_Stop_72 := FALSE;
- Speed_Switch_72 := FALSE;
- Contactor_FB_72 := FALSE;
- Circuit_Breaker_72 := FALSE;
- Emergency_Stop_81 := FALSE;
- Speed_Switch_81 := FALSE;
- Contactor_FB_81 := FALSE;
- Circuit_Breaker_81 := FALSE;
- Emergency_Stop_82 := FALSE;
- Speed_Switch_82 := FALSE;
- Contactor_FB_82 := FALSE;
- Circuit_Breaker_82 := FALSE;
- Emergency_Stop_87 := FALSE;
- Speed_Switch_87 := FALSE;
- Contactor_FB_87 := FALSE;
- Circuit_Breaker_87 := FALSE;
- Emergency_Stop_83 := FALSE;
- Speed_Switch_83 := FALSE;
- Contactor_FB_83 := FALSE;
- Circuit_Breaker_83 := FALSE;
- Emergency_Stop_84 := FALSE;
- Speed_Switch_84 := FALSE;
- Contactor_FB_84 := FALSE;
- Circuit_Breaker_84 := FALSE;
- Emergency_Stop_85 := FALSE;
- Speed_Switch_85 := FALSE;
- Contactor_FB_85 := FALSE;
- Circuit_Breaker_85 := FALSE;
- Emergency_Stop_86 := FALSE;
- Speed_Switch_86 := FALSE;
- Contactor_FB_86 := FALSE;
- Circuit_Breaker_86 := FALSE;
- Level_Switch_high := FALSE;
- Level_Switch_High_High := FALSE;
- Circuit_Breaker_20 := FALSE;
- OPEN_ALARM_JACK1 := FALSE;
- CLOSE_ALARM_JACK1 := FALSE;
- OPEN_ALARM_JACK2 := FALSE;
- CLOSE_ALARM_JACK2 := FALSE;
- OPEN_ALARM_JACK3 := FALSE;
- CLOSE_ALARM_JACK3 := FALSE;
- OPEN_ALARM_JACK4 := FALSE;
- CLOSE_ALARM_JACK4 := FALSE;
- OPEN_ALARM_JACK5 := FALSE;
- CLOSE_ALARM_JACK5 := FALSE;
- OPEN_ALARM_JACK6 := FALSE;
- CLOSE_ALARM_JACK6 := FALSE;
- OPEN_ALARM_JACK7 := FALSE;
- CLOSE_ALARM_JACK7 := FALSE;
- OPEN_ALARM_JACK8 := FALSE;
- CLOSE_ALARM_JACK8 := FALSE;
- Circuit_Breaker_C3_Alarm := FALSE;
- Circuit_Breaker_C5_Alarm := FALSE;
- Circuit_Breaker_C4_Alarm := FALSE;
- Delta_P_High := FALSE;
- PROFIBUS_ALARM := FALSE;
- END_DATA_BLOCK
- DATA_BLOCK DB 2
- TITLE =
- VERSION : 0.1
- STRUCT
- HandshakeToCCR : BOOL ; //Temporary placeholder variable
- ProfibusControl : BOOL ;
- AlarmCommonToCCR : BOOL ;
- Heater_ON : BOOL ;
- Bag_House_Start : BOOL ;
- PulseMode : BOOL ;
- FeedbackRun : BOOL ;
- Ready : BOOL ;
- Return : BOOL ;
- Fault : BOOL ;
- Spare_012 : BOOL ;
- Emergency_Mode : BOOL ;
- Mode_1 : BOOL ;
- Mode_2 : BOOL ;
- Mode_3 : BOOL ;
- Spare_017 : BOOL ;
- Flap1_Open : BOOL ;
- Flap1_Close : BOOL ;
- Flap2_Open : BOOL ;
- Flap2_Close : BOOL ;
- Flap3_Open : BOOL ;
- Flap3_Close : BOOL ;
- Flap4_Open : BOOL ;
- Flap4_Close : BOOL ;
- Flap5_Open : BOOL ;
- Flap5_Close : BOOL ;
- Flap6_Open : BOOL ;
- Flap6_Close : BOOL ;
- Flap7_Open : BOOL ;
- Flap7_Close : BOOL ;
- Flap8_Open : BOOL ;
- Flap8_Close : BOOL ;
- Emergency_Stop_73 : BOOL ;
- Speed_Switch_73 : BOOL ;
- Contactor_FB_73 : BOOL ;
- Circuit_Breaker_73 : BOOL ;
- Emergency_Stop_71 : BOOL ;
- Speed_Switch_71 : BOOL ;
- Contactor_FB_71 : BOOL ;
- Circuit_Breaker_71 : BOOL ;
- Emergency_Stop_72 : BOOL ;
- Speed_Switch_72 : BOOL ;
- Contactor_FB_72 : BOOL ;
- Circuit_Breaker_72 : BOOL ;
- Emergency_Stop_81 : BOOL ;
- Speed_Switch_81 : BOOL ;
- Contactor_FB_81 : BOOL ;
- Circuit_Breaker_81 : BOOL ;
- Emergency_Stop_82 : BOOL ;
- Speed_Switch_82 : BOOL ;
- Contactor_FB_82 : BOOL ;
- Circuit_Breaker_82 : BOOL ;
- Emergency_Stop_87 : BOOL ;
- Speed_Switch_87 : BOOL ;
- Contactor_FB_87 : BOOL ;
- Circuit_Breaker_87 : BOOL ;
- Emergency_Stop_83 : BOOL ;
- Speed_Switch_83 : BOOL ;
- Contactor_FB_83 : BOOL ;
- Circuit_Breaker_83 : BOOL ;
- Emergency_Stop_84 : BOOL ;
- Speed_Switch_84 : BOOL ;
- Contactor_FB_84 : BOOL ;
- Circuit_Breaker_84 : BOOL ;
- Emergency_Stop_85 : BOOL ;
- Speed_Switch_85 : BOOL ;
- Contactor_FB_85 : BOOL ;
- Circuit_Breaker_85 : BOOL ;
- Emergency_Stop_86 : BOOL ;
- Speed_Switch_86 : BOOL ;
- Contactor_FB_86 : BOOL ;
- Circuit_Breaker_86 : BOOL ;
- Level_Switch_high : BOOL ;
- Level_Switch_High_High : BOOL ;
- Circuit_Breaker_20 : BOOL ;
- Fresh_Air_is_Open : BOOL ;
- Fresh_Air_is_Close : BOOL ;
- Spare_095 : BOOL ;
- Spare_096 : BOOL ;
- Spare_097 : BOOL ;
- OPEN_ALARM_JACK1 : BOOL ;
- CLOSE_ALARM_JACK1 : BOOL ;
- OPEN_ALARM_JACK2 : BOOL ;
- CLOSE_ALARM_JACK2 : BOOL ;
- OPEN_ALARM_JACK3 : BOOL ;
- CLOSE_ALARM_JACK3 : BOOL ;
- OPEN_ALARM_JACK4 : BOOL ;
- CLOSE_ALARM_JACK4 : BOOL ;
- OPEN_ALARM_JACK5 : BOOL ;
- CLOSE_ALARM_JACK5 : BOOL ;
- OPEN_ALARM_JACK6 : BOOL ;
- CLOSE_ALARM_JACK6 : BOOL ;
- OPEN_ALARM_JACK7 : BOOL ;
- CLOSE_ALARM_JACK7 : BOOL ;
- OPEN_ALARM_JACK8 : BOOL ;
- CLOSE_ALARM_JACK8 : BOOL ;
- Circuit_Breaker_C1_Alarm : BOOL ;
- Circuit_Breaker_C3_Alarm : BOOL ;
- Circuit_Breaker_C5_Alarm : BOOL ;
- Circuit_Breaker_C4_Alarm : BOOL ;
- Delta_P_High : BOOL ;
- PROFIBUS_ALARM : BOOL ;
- Air_Pressure_Low : BOOL ;
- Spare_146 : BOOL ;
- Solenoeid_No : INT ;
- Delta_Pressure : INT ;
- Jack_No : INT ;
- Temperature_Befor_FA : INT ;
- Temperature_After_FA : INT ;
- Delta_Pressure_Setpoint : INT ;
- END_STRUCT ;
- BEGIN
- HandshakeToCCR := FALSE;
- ProfibusControl := FALSE;
- AlarmCommonToCCR := FALSE;
- Heater_ON := FALSE;
- Bag_House_Start := FALSE;
- PulseMode := FALSE;
- FeedbackRun := FALSE;
- Ready := FALSE;
- Return := FALSE;
- Fault := FALSE;
- Spare_012 := FALSE;
- Emergency_Mode := FALSE;
- Mode_1 := FALSE;
- Mode_2 := FALSE;
- Mode_3 := FALSE;
- Spare_017 := FALSE;
- Flap1_Open := FALSE;
- Flap1_Close := FALSE;
- Flap2_Open := FALSE;
- Flap2_Close := FALSE;
- Flap3_Open := FALSE;
- Flap3_Close := FALSE;
- Flap4_Open := FALSE;
- Flap4_Close := FALSE;
- Flap5_Open := FALSE;
- Flap5_Close := FALSE;
- Flap6_Open := FALSE;
- Flap6_Close := FALSE;
- Flap7_Open := FALSE;
- Flap7_Close := FALSE;
- Flap8_Open := FALSE;
- Flap8_Close := FALSE;
- Emergency_Stop_73 := FALSE;
- Speed_Switch_73 := FALSE;
- Contactor_FB_73 := FALSE;
- Circuit_Breaker_73 := FALSE;
- Emergency_Stop_71 := FALSE;
- Speed_Switch_71 := FALSE;
- Contactor_FB_71 := FALSE;
- Circuit_Breaker_71 := FALSE;
- Emergency_Stop_72 := FALSE;
- Speed_Switch_72 := FALSE;
- Contactor_FB_72 := FALSE;
- Circuit_Breaker_72 := FALSE;
- Emergency_Stop_81 := FALSE;
- Speed_Switch_81 := FALSE;
- Contactor_FB_81 := FALSE;
- Circuit_Breaker_81 := FALSE;
- Emergency_Stop_82 := FALSE;
- Speed_Switch_82 := FALSE;
- Contactor_FB_82 := FALSE;
- Circuit_Breaker_82 := FALSE;
- Emergency_Stop_87 := FALSE;
- Speed_Switch_87 := FALSE;
- Contactor_FB_87 := FALSE;
- Circuit_Breaker_87 := FALSE;
- Emergency_Stop_83 := FALSE;
- Speed_Switch_83 := FALSE;
- Contactor_FB_83 := FALSE;
- Circuit_Breaker_83 := FALSE;
- Emergency_Stop_84 := FALSE;
- Speed_Switch_84 := FALSE;
- Contactor_FB_84 := FALSE;
- Circuit_Breaker_84 := FALSE;
- Emergency_Stop_85 := FALSE;
- Speed_Switch_85 := FALSE;
- Contactor_FB_85 := FALSE;
- Circuit_Breaker_85 := FALSE;
- Emergency_Stop_86 := FALSE;
- Speed_Switch_86 := FALSE;
- Contactor_FB_86 := FALSE;
- Circuit_Breaker_86 := FALSE;
- Level_Switch_high := FALSE;
- Level_Switch_High_High := FALSE;
- Circuit_Breaker_20 := FALSE;
- Fresh_Air_is_Open := FALSE;
- Fresh_Air_is_Close := FALSE;
- Spare_095 := FALSE;
- Spare_096 := FALSE;
- Spare_097 := FALSE;
- OPEN_ALARM_JACK1 := FALSE;
- CLOSE_ALARM_JACK1 := FALSE;
- OPEN_ALARM_JACK2 := FALSE;
- CLOSE_ALARM_JACK2 := FALSE;
- OPEN_ALARM_JACK3 := FALSE;
- CLOSE_ALARM_JACK3 := FALSE;
- OPEN_ALARM_JACK4 := FALSE;
- CLOSE_ALARM_JACK4 := FALSE;
- OPEN_ALARM_JACK5 := FALSE;
- CLOSE_ALARM_JACK5 := FALSE;
- OPEN_ALARM_JACK6 := FALSE;
- CLOSE_ALARM_JACK6 := FALSE;
- OPEN_ALARM_JACK7 := FALSE;
- CLOSE_ALARM_JACK7 := FALSE;
- OPEN_ALARM_JACK8 := FALSE;
- CLOSE_ALARM_JACK8 := FALSE;
- Circuit_Breaker_C1_Alarm := FALSE;
- Circuit_Breaker_C3_Alarm := FALSE;
- Circuit_Breaker_C5_Alarm := FALSE;
- Circuit_Breaker_C4_Alarm := FALSE;
- Delta_P_High := FALSE;
- PROFIBUS_ALARM := FALSE;
- Air_Pressure_Low := FALSE;
- Spare_146 := FALSE;
- Solenoeid_No := 0;
- Delta_Pressure := 0;
- Jack_No := 0;
- Temperature_Befor_FA := 0;
- Temperature_After_FA := 0;
- Delta_Pressure_Setpoint := 0;
- END_DATA_BLOCK
- FUNCTION FC 5 : VOID
- TITLE =
- //One Solenoeid On each Compartment
- VERSION : 0.1
- VAR_INPUT
- Counter_input : INT ;
- END_VAR
- VAR_OUTPUT
- New_Number : INT ;
- END_VAR
- VAR_TEMP
- temp1 : INT ;
- temp2 : INT ;
- temp3 : INT ;
- temp4 : INT ;
- END_VAR
- BEGIN
- NETWORK
- TITLE =
- A( ;
- A( ;
- L #Counter_input;
- L 8;
- /I ;
- T #temp1;
- AN OV;
- SAVE ;
- CLR ;
- A BR;
- ) ;
- JNB _001;
- L #temp1;
- L 8;
- *I ;
- T #temp2;
- AN OV;
- SAVE ;
- CLR ;
- _001: A BR;
- ) ;
- JNB _002;
- L #Counter_input;
- L #temp2;
- -I ;
- T #temp3;
- _002: NOP 0;
- NETWORK
- TITLE =
- A( ;
- L #temp3;
- L 24;
- *I ;
- T #temp4;
- AN OV;
- SAVE ;
- CLR ;
- A BR;
- ) ;
- JNB _003;
- L #temp4;
- L #temp1;
- +I ;
- T #New_Number;
- _003: NOP 0;
- END_FUNCTION
- FUNCTION FC 8 : VOID
- TITLE =
- VERSION : 0.1
- VAR_INPUT
- Input : INT ;
- END_VAR
- VAR_OUTPUT
- New_Number : INT ;
- END_VAR
- VAR_TEMP
- Temp1 : INT ;
- Temp2 : INT ;
- Temp3 : INT ;
- Temp4 : INT ;
- END_VAR
- BEGIN
- NETWORK
- TITLE =
- A( ;
- A( ;
- L #Input;
- L 6;
- /I ;
- T #Temp1;
- AN OV;
- SAVE ;
- CLR ;
- A BR;
- ) ;
- JNB _001;
- L #Temp1;
- L 6;
- *I ;
- T #Temp2;
- AN OV;
- SAVE ;
- CLR ;
- _001: A BR;
- ) ;
- JNB _002;
- L #Input;
- L #Temp2;
- -I ;
- T #Temp3;
- _002: NOP 0;
- NETWORK
- TITLE =
- A( ;
- A( ;
- A( ;
- A( ;
- L #Temp1;
- L 24;
- *I ;
- T #Temp4;
- AN OV;
- SAVE ;
- CLR ;
- A BR;
- ) ;
- JNB _003;
- L #Temp4;
- L #Temp3;
- +I ;
- T #Temp4;
- AN OV;
- SAVE ;
- CLR ;
- _003: A BR;
- ) ;
- JNB _004;
- L #Temp4;
- L 192;
- /I ;
- T #Temp1;
- AN OV;
- SAVE ;
- CLR ;
- _004: A BR;
- ) ;
- JNB _005;
- L #Temp1;
- L 192;
- *I ;
- T #Temp2;
- AN OV;
- SAVE ;
- CLR ;
- _005: A BR;
- ) ;
- JNB _006;
- L #Temp4;
- L #Temp2;
- -I ;
- T #Temp3;
- _006: NOP 0;
- NETWORK
- TITLE =
- A( ;
- L #Temp1;
- L 6;
- *I ;
- T #Temp2;
- AN OV;
- SAVE ;
- CLR ;
- A BR;
- ) ;
- JNB _007;
- L #Temp2;
- L #Temp3;
- +I ;
- T #New_Number;
- _007: NOP 0;
- END_FUNCTION
- FUNCTION FC 20 : VOID
- TITLE =
- VERSION : 0.1
- VAR_INPUT
- MAX : INT ;
- MIN : INT ;
- END_VAR
- VAR_IN_OUT
- INPUT_VALUE : INT ;
- END_VAR
- BEGIN
- NETWORK
- TITLE =
- L #INPUT_VALUE;
- L #MAX;
- >=I ;
- = L 0.0;
- A L 0.0;
- JNB _001;
- L #MAX;
- T #INPUT_VALUE;
- _001: NOP 0;
- AN L 0.0;
- A( ;
- L #INPUT_VALUE;
- L #MIN;
- <=I ;
- ) ;
- JNB _002;
- L #MIN;
- T #INPUT_VALUE;
- _002: NOP 0;
- END_FUNCTION
- FUNCTION_BLOCK FB 1
- TITLE =One Way Motor
- VERSION : 0.1
- VAR_INPUT
- Central_Local : BOOL ;
- LB_Start : BOOL ;
- LB_Stop : BOOL ;
- Emergency_Stop : BOOL ;
- Single_Start : BOOL ;
- Group_Start : BOOL ;
- Group_Stop : BOOL ;
- Interlock : BOOL ;
- Speed_Switch : BOOL ;
- Contactor : BOOL ;
- Circuit_Breaker : BOOL ;
- Clock : BOOL ;
- reset : BOOL ;
- Delay_Time : TIMER ;
- Group_ON_Timer : TIMER ;
- ON_Delay : S5TIME ;
- Group_Off_Timer : TIMER ;
- Off_Delay : S5TIME ;
- END_VAR
- VAR_OUTPUT
- Speed_Switch_Fault : BOOL ;
- Contactor_Fault : BOOL ;
- CB_Fault : BOOL ;
- Interlock_Fault : BOOL ;
- Warning : BOOL ;
- Common_Alarm : BOOL ;
- Motor_ON : BOOL ;
- END_VAR
- VAR
- Temp1 : BOOL ;
- temp2 : BOOL ;
- temp3 : BOOL ;
- temp4 : BOOL ;
- temp5 : BOOL ;
- temp6 : BOOL ;
- temp7 : BOOL ;
- temp8 : BOOL ;
- temp9 : BOOL ;
- temp10 : BOOL ;
- temp11 : BOOL ;
- temp12 : BOOL ;
- temp13 : BOOL ;
- END_VAR
- BEGIN
- NETWORK
- TITLE =
- //If System Change to Local Mode then Motor Turn Off
- AN #Central_Local;
- FP #temp7;
- R #Temp1;
- NETWORK
- TITLE =Start by Local Box
- A #Emergency_Stop;
- AN #Central_Local;
- A #LB_Start;
- S #Temp1;
- A( ;
- ON #Emergency_Stop;
- O ;
- AN #Central_Local;
- AN #LB_Stop;
- O #temp8;
- ) ;
- R #Temp1;
- A #Temp1;
- = #Motor_ON;
- NETWORK
- TITLE =Start Single
- A #Emergency_Stop;
- A #Central_Local;
- A #Single_Start;
- S #Temp1;
- A( ;
- ON #Emergency_Stop;
- O( ;
- AN #Single_Start;
- FP #temp11;
- A #Central_Local;
- ) ;
- O #temp8;
- ) ;
- R #Temp1;
- A #Temp1;
- = #Motor_ON;
- NETWORK
- TITLE =
- NETWORK
- TITLE =
- NETWORK
- TITLE =
- A #Group_ON_Timer;
- A #Emergency_Stop;
- S #Temp1;
- A( ;
- ON #Emergency_Stop;
- O( ;
- AN #Group_Off_Timer;
- FP #temp12;
- ) ;
- O ;
- A #Common_Alarm;
- A #Central_Local;
- ) ;
- R #Temp1;
- A #Temp1;
- = #Motor_ON;
- NETWORK
- TITLE =Delay for Checking Feedback
- NETWORK
- TITLE =Checking Contactor Feedback
- AN #Contactor;
- A #Delay_Time;
- A #Motor_ON;
- S #temp3;
- A #reset;
- R #temp3;
- A #temp3;
- = #Contactor_Fault;
- NETWORK
- TITLE =Checking Speed Switch Feedback
- AN #Speed_Switch;
- A #Delay_Time;
- A #Motor_ON;
- S #temp4;
- A #reset;
- R #temp4;
- A #temp4;
- = #Speed_Switch_Fault;
- NETWORK
- TITLE =Checking Circuit Breaker Feedback
- A #Circuit_Breaker;
- S #temp5;
- A #reset;
- R #temp5;
- A #temp5;
- = #CB_Fault;
- NETWORK
- TITLE =Checking Interlocking
- AN #Interlock;
- A #Motor_ON;
- S #temp6;
- A #reset;
- R #temp6;
- A #temp6;
- = #Interlock_Fault;
- NETWORK
- TITLE =Make Common Alarm
- //If System in Central Mode Dont Check Interlock
- O #Contactor_Fault;
- O #Speed_Switch_Fault;
- O #CB_Fault;
- = #temp8;
- NETWORK
- TITLE =
- A #Interlock_Fault;
- A #Central_Local;
- O #temp8;
- = #Common_Alarm;
- NETWORK
- TITLE =Blancking Alarm
- A( ;
- O #Common_Alarm;
- ON #Emergency_Stop;
- ) ;
- A #Clock;
- = #Warning;
- END_FUNCTION_BLOCK
- DATA_BLOCK DB 71
- TITLE =
- VERSION : 0.0
- FB 1
- BEGIN
- Central_Local := FALSE;
- LB_Start := FALSE;
- LB_Stop := FALSE;
- Emergency_Stop := FALSE;
- Single_Start := FALSE;
- Group_Start := FALSE;
- Group_Stop := FALSE;
- Interlock := FALSE;
- Speed_Switch := FALSE;
- Contactor := FALSE;
- Circuit_Breaker := FALSE;
- Clock := FALSE;
- reset := FALSE;
- Delay_Time := T 0;
- Group_ON_Timer := T 0;
- ON_Delay := S5T#0MS;
- Group_Off_Timer := T 0;
- Off_Delay := S5T#0MS;
- Speed_Switch_Fault := FALSE;
- Contactor_Fault := FALSE;
- CB_Fault := FALSE;
- Interlock_Fault := FALSE;
- Warning := FALSE;
- Common_Alarm := FALSE;
- Motor_ON := FALSE;
- Temp1 := FALSE;
- temp2 := FALSE;
- temp3 := FALSE;
- temp4 := FALSE;
- temp5 := FALSE;
- temp6 := FALSE;
- temp7 := FALSE;
- temp8 := FALSE;
- temp9 := FALSE;
- temp10 := FALSE;
- temp11 := FALSE;
- temp12 := FALSE;
- temp13 := FALSE;
- END_DATA_BLOCK
- DATA_BLOCK DB 72
- TITLE =
- VERSION : 0.0
- FB 1
- BEGIN
- Central_Local := FALSE;
- LB_Start := FALSE;
- LB_Stop := FALSE;
- Emergency_Stop := FALSE;
- Single_Start := FALSE;
- Group_Start := FALSE;
- Group_Stop := FALSE;
- Interlock := FALSE;
- Speed_Switch := FALSE;
- Contactor := FALSE;
- Circuit_Breaker := FALSE;
- Clock := FALSE;
- reset := FALSE;
- Delay_Time := T 0;
- Group_ON_Timer := T 0;
- ON_Delay := S5T#0MS;
- Group_Off_Timer := T 0;
- Off_Delay := S5T#0MS;
- Speed_Switch_Fault := FALSE;
- Contactor_Fault := FALSE;
- CB_Fault := FALSE;
- Interlock_Fault := FALSE;
- Warning := FALSE;
- Common_Alarm := FALSE;
- Motor_ON := FALSE;
- Temp1 := FALSE;
- temp2 := FALSE;
- temp3 := FALSE;
- temp4 := FALSE;
- temp5 := FALSE;
- temp6 := FALSE;
- temp7 := FALSE;
- temp8 := FALSE;
- temp9 := FALSE;
- temp10 := FALSE;
- temp11 := FALSE;
- temp12 := FALSE;
- temp13 := FALSE;
- END_DATA_BLOCK
- DATA_BLOCK DB 73
- TITLE =
- VERSION : 0.0
- FB 1
- BEGIN
- Central_Local := FALSE;
- LB_Start := FALSE;
- LB_Stop := FALSE;
- Emergency_Stop := FALSE;
- Single_Start := FALSE;
- Group_Start := FALSE;
- Group_Stop := FALSE;
- Interlock := FALSE;
- Speed_Switch := FALSE;
- Contactor := FALSE;
- Circuit_Breaker := FALSE;
- Clock := FALSE;
- reset := FALSE;
- Delay_Time := T 0;
- Group_ON_Timer := T 0;
- ON_Delay := S5T#0MS;
- Group_Off_Timer := T 0;
- Off_Delay := S5T#0MS;
- Speed_Switch_Fault := FALSE;
- Contactor_Fault := FALSE;
- CB_Fault := FALSE;
- Interlock_Fault := FALSE;
- Warning := FALSE;
- Common_Alarm := FALSE;
- Motor_ON := FALSE;
- Temp1 := FALSE;
- temp2 := FALSE;
- temp3 := FALSE;
- temp4 := FALSE;
- temp5 := FALSE;
- temp6 := FALSE;
- temp7 := FALSE;
- temp8 := FALSE;
- temp9 := FALSE;
- temp10 := FALSE;
- temp11 := FALSE;
- temp12 := FALSE;
- temp13 := FALSE;
- END_DATA_BLOCK
- DATA_BLOCK DB 81
- TITLE =
- VERSION : 0.0
- FB 1
- BEGIN
- Central_Local := FALSE;
- LB_Start := FALSE;
- LB_Stop := FALSE;
- Emergency_Stop := FALSE;
- Single_Start := FALSE;
- Group_Start := FALSE;
- Group_Stop := FALSE;
- Interlock := FALSE;
- Speed_Switch := FALSE;
- Contactor := FALSE;
- Circuit_Breaker := FALSE;
- Clock := FALSE;
- reset := FALSE;
- Delay_Time := T 0;
- Group_ON_Timer := T 0;
- ON_Delay := S5T#0MS;
- Group_Off_Timer := T 0;
- Off_Delay := S5T#0MS;
- Speed_Switch_Fault := FALSE;
- Contactor_Fault := FALSE;
- CB_Fault := FALSE;
- Interlock_Fault := FALSE;
- Warning := FALSE;
- Common_Alarm := FALSE;
- Motor_ON := FALSE;
- Temp1 := FALSE;
- temp2 := FALSE;
- temp3 := FALSE;
- temp4 := FALSE;
- temp5 := FALSE;
- temp6 := FALSE;
- temp7 := FALSE;
- temp8 := FALSE;
- temp9 := FALSE;
- temp10 := FALSE;
- temp11 := FALSE;
- temp12 := FALSE;
- temp13 := FALSE;
- END_DATA_BLOCK
- DATA_BLOCK DB 82
- TITLE =
- VERSION : 0.0
- FB 1
- BEGIN
- Central_Local := FALSE;
- LB_Start := FALSE;
- LB_Stop := FALSE;
- Emergency_Stop := FALSE;
- Single_Start := FALSE;
- Group_Start := FALSE;
- Group_Stop := FALSE;
- Interlock := FALSE;
- Speed_Switch := FALSE;
- Contactor := FALSE;
- Circuit_Breaker := FALSE;
- Clock := FALSE;
- reset := FALSE;
- Delay_Time := T 0;
- Group_ON_Timer := T 0;
- ON_Delay := S5T#0MS;
- Group_Off_Timer := T 0;
- Off_Delay := S5T#0MS;
- Speed_Switch_Fault := FALSE;
- Contactor_Fault := FALSE;
- CB_Fault := FALSE;
- Interlock_Fault := FALSE;
- Warning := FALSE;
- Common_Alarm := FALSE;
- Motor_ON := FALSE;
- Temp1 := FALSE;
- temp2 := FALSE;
- temp3 := FALSE;
- temp4 := FALSE;
- temp5 := FALSE;
- temp6 := FALSE;
- temp7 := FALSE;
- temp8 := FALSE;
- temp9 := FALSE;
- temp10 := FALSE;
- temp11 := FALSE;
- temp12 := FALSE;
- temp13 := FALSE;
- END_DATA_BLOCK
- DATA_BLOCK DB 83
- TITLE =
- VERSION : 0.0
- FB 1
- BEGIN
- Central_Local := FALSE;
- LB_Start := FALSE;
- LB_Stop := FALSE;
- Emergency_Stop := FALSE;
- Single_Start := FALSE;
- Group_Start := FALSE;
- Group_Stop := FALSE;
- Interlock := FALSE;
- Speed_Switch := FALSE;
- Contactor := FALSE;
- Circuit_Breaker := FALSE;
- Clock := FALSE;
- reset := FALSE;
- Delay_Time := T 0;
- Group_ON_Timer := T 0;
- ON_Delay := S5T#0MS;
- Group_Off_Timer := T 0;
- Off_Delay := S5T#0MS;
- Speed_Switch_Fault := FALSE;
- Contactor_Fault := FALSE;
- CB_Fault := FALSE;
- Interlock_Fault := FALSE;
- Warning := FALSE;
- Common_Alarm := FALSE;
- Motor_ON := FALSE;
- Temp1 := FALSE;
- temp2 := FALSE;
- temp3 := FALSE;
- temp4 := FALSE;
- temp5 := FALSE;
- temp6 := FALSE;
- temp7 := FALSE;
- temp8 := FALSE;
- temp9 := FALSE;
- temp10 := FALSE;
- temp11 := FALSE;
- temp12 := FALSE;
- temp13 := FALSE;
- END_DATA_BLOCK
- DATA_BLOCK DB 84
- TITLE =
- VERSION : 0.0
- FB 1
- BEGIN
- Central_Local := FALSE;
- LB_Start := FALSE;
- LB_Stop := FALSE;
- Emergency_Stop := FALSE;
- Single_Start := FALSE;
- Group_Start := FALSE;
- Group_Stop := FALSE;
- Interlock := FALSE;
- Speed_Switch := FALSE;
- Contactor := FALSE;
- Circuit_Breaker := FALSE;
- Clock := FALSE;
- reset := FALSE;
- Delay_Time := T 0;
- Group_ON_Timer := T 0;
- ON_Delay := S5T#0MS;
- Group_Off_Timer := T 0;
- Off_Delay := S5T#0MS;
- Speed_Switch_Fault := FALSE;
- Contactor_Fault := FALSE;
- CB_Fault := FALSE;
- Interlock_Fault := FALSE;
- Warning := FALSE;
- Common_Alarm := FALSE;
- Motor_ON := FALSE;
- Temp1 := FALSE;
- temp2 := FALSE;
- temp3 := FALSE;
- temp4 := FALSE;
- temp5 := FALSE;
- temp6 := FALSE;
- temp7 := FALSE;
- temp8 := FALSE;
- temp9 := FALSE;
- temp10 := FALSE;
- temp11 := FALSE;
- temp12 := FALSE;
- temp13 := FALSE;
- END_DATA_BLOCK
- DATA_BLOCK DB 85
- TITLE =
- VERSION : 0.0
- FB 1
- BEGIN
- Central_Local := FALSE;
- LB_Start := FALSE;
- LB_Stop := FALSE;
- Emergency_Stop := FALSE;
- Single_Start := FALSE;
- Group_Start := FALSE;
- Group_Stop := FALSE;
- Interlock := FALSE;
- Speed_Switch := FALSE;
- Contactor := FALSE;
- Circuit_Breaker := FALSE;
- Clock := FALSE;
- reset := FALSE;
- Delay_Time := T 0;
- Group_ON_Timer := T 0;
- ON_Delay := S5T#0MS;
- Group_Off_Timer := T 0;
- Off_Delay := S5T#0MS;
- Speed_Switch_Fault := FALSE;
- Contactor_Fault := FALSE;
- CB_Fault := FALSE;
- Interlock_Fault := FALSE;
- Warning := FALSE;
- Common_Alarm := FALSE;
- Motor_ON := FALSE;
- Temp1 := FALSE;
- temp2 := FALSE;
- temp3 := FALSE;
- temp4 := FALSE;
- temp5 := FALSE;
- temp6 := FALSE;
- temp7 := FALSE;
- temp8 := FALSE;
- temp9 := FALSE;
- temp10 := FALSE;
- temp11 := FALSE;
- temp12 := FALSE;
- temp13 := FALSE;
- END_DATA_BLOCK
- DATA_BLOCK DB 86
- TITLE =
- VERSION : 0.0
- FB 1
- BEGIN
- Central_Local := FALSE;
- LB_Start := FALSE;
- LB_Stop := FALSE;
- Emergency_Stop := FALSE;
- Single_Start := FALSE;
- Group_Start := FALSE;
- Group_Stop := FALSE;
- Interlock := FALSE;
- Speed_Switch := FALSE;
- Contactor := FALSE;
- Circuit_Breaker := FALSE;
- Clock := FALSE;
- reset := FALSE;
- Delay_Time := T 0;
- Group_ON_Timer := T 0;
- ON_Delay := S5T#0MS;
- Group_Off_Timer := T 0;
- Off_Delay := S5T#0MS;
- Speed_Switch_Fault := FALSE;
- Contactor_Fault := FALSE;
- CB_Fault := FALSE;
- Interlock_Fault := FALSE;
- Warning := FALSE;
- Common_Alarm := FALSE;
- Motor_ON := FALSE;
- Temp1 := FALSE;
- temp2 := FALSE;
- temp3 := FALSE;
- temp4 := FALSE;
- temp5 := FALSE;
- temp6 := FALSE;
- temp7 := FALSE;
- temp8 := FALSE;
- temp9 := FALSE;
- temp10 := FALSE;
- temp11 := FALSE;
- temp12 := FALSE;
- temp13 := FALSE;
- END_DATA_BLOCK
- DATA_BLOCK DB 87
- TITLE =
- VERSION : 0.0
- FB 1
- BEGIN
- Central_Local := FALSE;
- LB_Start := FALSE;
- LB_Stop := FALSE;
- Emergency_Stop := FALSE;
- Single_Start := FALSE;
- Group_Start := FALSE;
- Group_Stop := FALSE;
- Interlock := FALSE;
- Speed_Switch := FALSE;
- Contactor := FALSE;
- Circuit_Breaker := FALSE;
- Clock := FALSE;
- reset := FALSE;
- Delay_Time := T 0;
- Group_ON_Timer := T 0;
- ON_Delay := S5T#0MS;
- Group_Off_Timer := T 0;
- Off_Delay := S5T#0MS;
- Speed_Switch_Fault := FALSE;
- Contactor_Fault := FALSE;
- CB_Fault := FALSE;
- Interlock_Fault := FALSE;
- Warning := FALSE;
- Common_Alarm := FALSE;
- Motor_ON := FALSE;
- Temp1 := FALSE;
- temp2 := FALSE;
- temp3 := FALSE;
- temp4 := FALSE;
- temp5 := FALSE;
- temp6 := FALSE;
- temp7 := FALSE;
- temp8 := FALSE;
- temp9 := FALSE;
- temp10 := FALSE;
- temp11 := FALSE;
- temp12 := FALSE;
- temp13 := FALSE;
- END_DATA_BLOCK
- FUNCTION_BLOCK FB 2
- TITLE =Pulse Controller
- VERSION : 0.1
- VAR_INPUT
- Number_Of_Airtank : INT ;
- Number_Of_SV_In_Airtank : INT ;
- Mode : INT ;
- Jack_Closed : BOOL ;
- Timer_Off : TIMER ;
- Time_Interval_second : INT ;
- Timer_ON : TIMER ;
- Pulse_Time_mSecond : INT ;
- Internal_Timer : TIMER ;
- END_VAR
- VAR_OUTPUT
- Pulse : BOOL ;
- Output_Byte : BYTE ;
- AirTank_Number : INT ;
- SV_Number_In_AirTank : INT ;
- Out_Jack : BYTE ;
- END_VAR
- VAR
- ON_Time : WORD ;
- ON_Temp : S5TIME ;
- Off_Time : WORD ;
- OFF_Temp : S5TIME ;
- SV_Number : INT ;
- temp20 : BOOL ;
- temp4 : INT ;
- END_VAR
- VAR_TEMP
- temp1 : S5TIME ;
- temp2 : INT ;
- temp3 : INT ;
- temp5 : INT ;
- temp6 : INT ;
- temp7 : WORD ;
- END_VAR
- BEGIN
- NETWORK
- TITLE =
- A( ;
- A( ;
- A( ;
- L #Time_Interval_second;
- L 2;
- -I ;
- T #temp4;
- AN OV;
- SAVE ;
- CLR ;
- A BR;
- ) ;
- JNB _001;
- L #temp4;
- ITB ;
- T #Off_Time;
- AN OV;
- SAVE ;
- CLR ;
- _001: A BR;
- ) ;
- JNB _002;
- L #Off_Time;
- L W#16#2000;
- OW ;
- T #Off_Time;
- SET ;
- SAVE ;
- CLR ;
- _002: A BR;
- ) ;
- JNB _003;
- L #Off_Time;
- T #OFF_Temp;
- _003: NOP 0;
- NETWORK
- TITLE =
- NETWORK
- TITLE =
- A #Internal_Timer;
- FP #temp20;
- JNB _004;
- L #SV_Number;
- L 1;
- +I ;
- T #SV_Number;
- _004: NOP 0;
- NETWORK
- TITLE =
- L #Number_Of_Airtank;
- L #Number_Of_SV_In_Airtank;
- *I ;
- T #temp3;
- NOP 0;
- NETWORK
- TITLE =
- A( ;
- L #SV_Number;
- L #temp3;
- >=I ;
- ) ;
- JNB _005;
- L 0;
- T #SV_Number;
- _005: NOP 0;
- NETWORK
- TITLE =
- A( ;
- A( ;
- L #Pulse_Time_mSecond;
- L 1;
- /I ;
- T #temp2;
- AN OV;
- SAVE ;
- CLR ;
- A BR;
- ) ;
- JNB _006;
- L #temp2;
- ITB ;
- T #ON_Time;
- AN OV;
- SAVE ;
- CLR ;
- _006: A BR;
- ) ;
- JNB _007;
- L #ON_Time;
- T #ON_Temp;
- _007: NOP 0;
- NETWORK
- TITLE =
- NETWORK
- TITLE =
- A #Timer_Off;
- AN #Timer_ON;
- = #Pulse;
- NETWORK
- TITLE =
- NETWORK
- TITLE =
- A( ;
- A( ;
- L #Mode;
- L 1;
- ==I ;
- ) ;
- JNB _008;
- L #SV_Number;
- T #temp6;
- SET ;
- SAVE ;
- CLR ;
- _008: A BR;
- ) ;
- JNB _009;
- L #temp6;
- T #Output_Byte;
- _009: NOP 0;
- NETWORK
- TITLE =
- L #Mode;
- L 2;
- ==I ;
- = L 12.0;
- A L 12.0;
- JNB _00a;
- CALL FC 8 (
- Input := #SV_Number,
- New_Number := #temp6);
- _00a: NOP 0;
- A L 12.0;
- JNB _00b;
- L #temp6;
- T #Output_Byte;
- _00b: NOP 0;
- NETWORK
- TITLE =
- L #Mode;
- L 3;
- ==I ;
- = L 12.0;
- A L 12.0;
- JNB _00c;
- CALL FC 5 (
- Counter_input := #SV_Number,
- New_Number := #temp6);
- _00c: NOP 0;
- A L 12.0;
- JNB _00d;
- L #temp6;
- T #Output_Byte;
- _00d: NOP 0;
- NETWORK
- TITLE =
- L #temp6;
- L #Number_Of_SV_In_Airtank;
- /I ;
- T #temp4;
- AN OV;
- SAVE ;
- CLR ;
- A BR;
- = L 12.0;
- A L 12.0;
- JNB _00e;
- L #temp4;
- L 1;
- +I ;
- T #AirTank_Number;
- _00e: NOP 0;
- A( ;
- A( ;
- A L 12.0;
- JNB _00f;
- L #temp4;
- L #Number_Of_SV_In_Airtank;
- *I ;
- T #temp5;
- AN OV;
- SAVE ;
- CLR ;
- _00f: A BR;
- ) ;
- JNB _010;
- L #temp6;
- L 1;
- +I ;
- T #temp6;
- AN OV;
- SAVE ;
- CLR ;
- _010: A BR;
- ) ;
- JNB _011;
- L #temp6;
- L #temp5;
- -I ;
- T #SV_Number_In_AirTank;
- _011: NOP 0;
- NETWORK
- TITLE =
- //Send Bit For Close Jack
- L #Mode;
- L 3;
- <>I ;
- = L 12.0;
- A( ;
- A( ;
- A( ;
- A L 12.0;
- JNB _012;
- L #temp4;
- L 4;
- /I ;
- T #temp2;
- AN OV;
- SAVE ;
- CLR ;
- _012: A BR;
- ) ;
- JNB _013;
- L #temp2;
- T #temp7;
- SET ;
- SAVE ;
- CLR ;
- _013: A BR;
- ) ;
- JNB _014;
- L #temp7;
- L W#16#1;
- SLW ;
- T #temp7;
- SET ;
- SAVE ;
- CLR ;
- _014: A BR;
- ) ;
- JNB _015;
- L #temp7;
- T #Out_Jack;
- _015: NOP 0;
- AN L 12.0;
- JNB _016;
- L 0;
- T #Out_Jack;
- _016: NOP 0;
- END_FUNCTION_BLOCK
- DATA_BLOCK DB 5
- TITLE =
- VERSION : 0.0
- FB 2
- BEGIN
- Number_Of_Airtank := 0;
- Number_Of_SV_In_Airtank := 0;
- Mode := 0;
- Jack_Closed := FALSE;
- Timer_Off := T 0;
- Time_Interval_second := 0;
- Timer_ON := T 0;
- Pulse_Time_mSecond := 0;
- Internal_Timer := T 0;
- Pulse := FALSE;
- Output_Byte := B#16#0;
- AirTank_Number := 0;
- SV_Number_In_AirTank := 0;
- Out_Jack := B#16#0;
- ON_Time := W#16#0;
- ON_Temp := S5T#0MS;
- Off_Time := W#16#0;
- OFF_Temp := S5T#0MS;
- SV_Number := 0;
- temp20 := FALSE;
- temp4 := 0;
- END_DATA_BLOCK
- FUNCTION_BLOCK FB 3
- TITLE =Jack Controller
- VERSION : 0.1
- VAR_INPUT
- Number_of_Jack : INT ;
- END_VAR
- VAR_OUTPUT
- Delay_Time : BOOL ;
- END_VAR
- VAR
- Jack_Num : INT ;
- END_VAR
- VAR_TEMP
- Temp_Out : WORD ;
- END_VAR
- BEGIN
- NETWORK
- TITLE =
- A( ;
- A( ;
- L #Number_of_Jack;
- L #Jack_Num;
- <>I ;
- ) ;
- L S5T#5S;
- SP T 11;
- NOP 0;
- NOP 0;
- NOP 0;
- A T 11;
- ) ;
- = #Delay_Time;
- A #Delay_Time;
- JC END;
- NETWORK
- TITLE =
- A( ;
- L #Number_of_Jack;
- T #Jack_Num;
- SET ;
- SAVE ;
- CLR ;
- A BR;
- ) ;
- JNB _001;
- L #Jack_Num;
- T MW 30;
- _001: NOP 0;
- NETWORK
- TITLE =
- //Jack 1 Fault
- A M 31.0;
- = M 31.0;
- A M 31.0;
- = L 2.0;
- A( ;
- X L 2.0;
- X I 1.4;
- ) ;
- = DB1.DBX 5.4;
- A DB1.DBX 5.4;
- = DB2.DBX 10.1;
- A( ;
- XN L 2.0;
- X I 1.3;
- ) ;
- = DB1.DBX 5.3;
- A DB1.DBX 5.3;
- = DB2.DBX 10.0;
- NETWORK
- TITLE =
- //Jack 2 Fault
- A M 31.1;
- = M 31.1;
- A M 31.1;
- = L 2.0;
- A( ;
- X L 2.0;
- X I 1.6;
- ) ;
- = DB1.DBX 5.6;
- A DB1.DBX 5.6;
- = DB2.DBX 10.3;
- A( ;
- XN L 2.0;
- X I 1.5;
- ) ;
- = DB1.DBX 5.5;
- A DB1.DBX 5.5;
- = DB2.DBX 10.2;
- NETWORK
- TITLE =
- //Jack 3 Fault
- A M 31.2;
- = M 31.2;
- A M 31.2;
- = L 2.0;
- A( ;
- X L 2.0;
- X I 8.1;
- ) ;
- = DB1.DBX 6.0;
- A DB1.DBX 6.0;
- = DB2.DBX 10.5;
- A( ;
- XN L 2.0;
- X I 8.0;
- ) ;
- = DB1.DBX 5.7;
- A DB1.DBX 5.7;
- = DB2.DBX 10.4;
- NETWORK
- TITLE =
- //Jack 4 Fault
- A M 31.3;
- = M 31.3;
- A M 31.3;
- = L 2.0;
- A( ;
- X L 2.0;
- X I 8.3;
- ) ;
- = DB1.DBX 6.2;
- A DB1.DBX 6.2;
- = DB2.DBX 10.7;
- A( ;
- XN L 2.0;
- X I 8.2;
- ) ;
- = DB1.DBX 6.1;
- A DB1.DBX 6.1;
- = DB2.DBX 10.6;
- NETWORK
- TITLE =
- //Jack 5 Fault
- A M 31.4;
- = M 31.4;
- A M 31.4;
- = L 2.0;
- A( ;
- X L 2.0;
- X I 8.5;
- ) ;
- = DB1.DBX 6.4;
- A DB1.DBX 6.4;
- = DB2.DBX 11.1;
- A( ;
- XN L 2.0;
- X I 8.4;
- ) ;
- = DB1.DBX 6.3;
- A DB1.DBX 6.3;
- = DB2.DBX 11.0;
- NETWORK
- TITLE =
- //Jack 6 Fault
- A M 31.5;
- = M 31.5;
- A M 31.5;
- = L 2.0;
- A( ;
- X L 2.0;
- X I 8.7;
- ) ;
- = DB1.DBX 6.6;
- A DB1.DBX 6.6;
- = DB2.DBX 11.3;
- A( ;
- XN L 2.0;
- X I 8.6;
- ) ;
- = DB1.DBX 6.5;
- A DB1.DBX 6.5;
- = DB2.DBX 11.2;
- NETWORK
- TITLE =
- //Jack 7 Fault
- A M 31.6;
- = M 31.6;
- A M 31.6;
- = L 2.0;
- A( ;
- X L 2.0;
- X I 9.1;
- ) ;
- = DB1.DBX 7.0;
- A DB1.DBX 7.0;
- = DB2.DBX 11.5;
- A( ;
- XN L 2.0;
- X I 9.0;
- ) ;
- = DB1.DBX 6.7;
- A DB1.DBX 6.7;
- = DB2.DBX 11.4;
- NETWORK
- TITLE =
- //Jack 8 Fault
- A M 31.7;
- = M 31.7;
- A M 31.7;
- = L 2.0;
- A( ;
- X L 2.0;
- X I 9.3;
- ) ;
- = DB1.DBX 7.2;
- A DB1.DBX 7.2;
- = DB2.DBX 11.7;
- A( ;
- XN L 2.0;
- X I 9.2;
- ) ;
- = DB1.DBX 7.1;
- A DB1.DBX 7.1;
- = DB2.DBX 11.6;
- NETWORK
- TITLE =
- END: L MB 31;
- T MB 31;
- NOP 0;
- END_FUNCTION_BLOCK
- DATA_BLOCK DB 6
- TITLE =
- VERSION : 0.0
- FB 3
- BEGIN
- Number_of_Jack := 0;
- Delay_Time := FALSE;
- Jack_Num := 0;
- END_DATA_BLOCK
- FUNCTION FC 6 : VOID
- TITLE =
- VERSION : 0.1
- VAR_INPUT
- Input_Bit0 : BOOL ;
- Input_Bit1 : BOOL ;
- Input_Bit2 : BOOL ;
- Input_Bit3 : BOOL ;
- END_VAR
- VAR_OUTPUT
- Output_Bit0 : BOOL ;
- Output_Bit1 : BOOL ;
- Output_Bit2 : BOOL ;
- Output_Bit3 : BOOL ;
- END_VAR
- BEGIN
- NETWORK
- TITLE =
- A #Input_Bit0;
- = #Output_Bit0;
- NETWORK
- TITLE =
- A #Input_Bit1;
- = #Output_Bit1;
- NETWORK
- TITLE =
- A #Input_Bit2;
- = #Output_Bit2;
- NETWORK
- TITLE =
- A #Input_Bit3;
- = #Output_Bit3;
- END_FUNCTION
- FUNCTION FC 14 : VOID
- TITLE =
- VERSION : 0.1
- BEGIN
- NETWORK
- TITLE =
- A M 0.0;
- JNB _001;
- L IW 66;
- T MW 70;
- _001: NOP 0;
- NETWORK
- TITLE =
- CALL FC 20 (
- MAX := 20,
- MIN := 10,
- INPUT_VALUE := MW 70);
- NOP 0;
- NETWORK
- TITLE =
- AN M 0.0;
- JNB _002;
- L MW 8;
- T MW 70;
- _002: NOP 0;
- NETWORK
- TITLE =
- L MW 70;
- T DB2.DBW 24;
- NOP 0;
- NETWORK
- TITLE =
- L MW 116;
- L MW 70;
- >=I ;
- = M 0.7;
- NETWORK
- TITLE =
- L MW 124;
- L 10;
- /I ;
- T MW 92;
- NOP 0;
- NETWORK
- TITLE =
- A( ;
- A( ;
- L MW 92;
- L MW 70;
- >I ;
- ) ;
- JNB _003;
- L MW 92;
- L MW 70;
- -I ;
- T MW 90;
- AN OV;
- SAVE ;
- CLR ;
- _003: A BR;
- ) ;
- JNB _004;
- L MW 12;
- L MW 90;
- -I ;
- T MW 12;
- _004: NOP 0;
- NETWORK
- TITLE =
- A( ;
- A( ;
- L MW 92;
- L MW 70;
- <I ;
- ) ;
- JNB _005;
- L MW 70;
- L MW 92;
- -I ;
- T MW 90;
- AN OV;
- SAVE ;
- CLR ;
- _005: A BR;
- ) ;
- JNB _006;
- L MW 12;
- L MW 90;
- +I ;
- T MW 12;
- _006: NOP 0;
- NETWORK
- TITLE =
- CALL FC 20 (
- MAX := 120,
- MIN := 3,
- INPUT_VALUE := MW 12);
- NOP 0;
- END_FUNCTION
- FUNCTION FC 21 : VOID
- TITLE =
- VERSION : 0.1
- VAR_INPUT
- MAX : DINT ;
- MIN : DINT ;
- END_VAR
- VAR_IN_OUT
- INPUT : DINT ;
- END_VAR
- BEGIN
- NETWORK
- TITLE =
- L #INPUT;
- L #MAX;
- >D ;
- = L 0.0;
- A L 0.0;
- JNB _001;
- L #MAX;
- T #INPUT;
- _001: NOP 0;
- AN L 0.0;
- A( ;
- L #INPUT;
- L #MIN;
- <D ;
- ) ;
- JNB _002;
- L #MIN;
- T #INPUT;
- _002: NOP 0;
- END_FUNCTION
- FUNCTION FC 31 : VOID
- TITLE =
- VERSION : 0.1
- VAR_INPUT
- PIW_INPUT : INT ;
- FULL_SCALE_INSTRUMENT : DINT ;
- FULL_SCALE_REAL : DINT ;
- Defult_Setting : BOOL ;
- END_VAR
- VAR_OUTPUT
- OUTPUT_MESSUR : DINT ;
- PERCENT : DINT ;
- END_VAR
- VAR_IN_OUT
- Gain : DINT ;
- Offset : DINT ;
- END_VAR
- VAR_TEMP
- TEMP1 : DINT ;
- TEMP2 : DINT ;
- TEMP3 : DINT ;
- TEMP4 : DINT ;
- TEMP5 : DINT ;
- END_VAR
- BEGIN
- NETWORK
- TITLE =
- L #PIW_INPUT;
- ITD ;
- T #TEMP1;
- SET ;
- SAVE ;
- CLR ;
- A BR;
- = L 20.0;
- A( ;
- A( ;
- A( ;
- A L 20.0;
- JNB _001;
- L #TEMP1;
- L #Offset;
- -D ;
- T #TEMP5;
- AN OV;
- SAVE ;
- CLR ;
- _001: A BR;
- ) ;
- JNB _002;
- L #TEMP5;
- L #FULL_SCALE_INSTRUMENT;
- *D ;
- T #TEMP2;
- AN OV;
- SAVE ;
- CLR ;
- _002: A BR;
- ) ;
- JNB _003;
- L #TEMP2;
- L #Gain;
- /D ;
- T #TEMP3;
- AN OV;
- SAVE ;
- CLR ;
- _003: A BR;
- ) ;
- JNB _004;
- L #TEMP3;
- L L#10;
- *D ;
- T #OUTPUT_MESSUR;
- _004: NOP 0;
- A( ;
- A L 20.0;
- JNB _005;
- L #TEMP3;
- L L#100;
- *D ;
- T #TEMP4;
- AN OV;
- SAVE ;
- CLR ;
- _005: A BR;
- ) ;
- JNB _006;
- L #TEMP4;
- L #FULL_SCALE_REAL;
- /D ;
- T #PERCENT;
- _006: NOP 0;
- A L 20.0;
- A( ;
- L #Gain;
- L L#35000;
- >D ;
- ) ;
- JNB _007;
- L L#35000;
- T #Gain;
- _007: NOP 0;
- A L 20.0;
- A( ;
- L #Gain;
- L L#6000;
- <D ;
- ) ;
- JNB _008;
- L L#6000;
- T #Gain;
- _008: NOP 0;
- A L 20.0;
- A( ;
- L #Offset;
- L L#7000;
- >D ;
- ) ;
- JNB _009;
- L L#7000;
- T #Offset;
- _009: NOP 0;
- A L 20.0;
- A( ;
- L #Offset;
- L L#-7000;
- <D ;
- ) ;
- JNB _00a;
- L L#-7000;
- T #Offset;
- _00a: NOP 0;
- NETWORK
- TITLE =
- A( ;
- A #Defult_Setting;
- JNB _00b;
- L L#0;
- T #Offset;
- SET ;
- SAVE ;
- CLR ;
- _00b: A BR;
- ) ;
- JNB _00c;
- L L#27648;
- T #Gain;
- _00c: NOP 0;
- END_FUNCTION
- FUNCTION FC 1 : VOID
- TITLE =Send Flap's Data to CCR
- VERSION : 0.1
- BEGIN
- NETWORK
- TITLE =
- //Jack Situation To CCR
- A I 1.3;
- = L 0.0;
- BLD 103;
- A I 1.4;
- = L 0.1;
- BLD 103;
- A I 1.5;
- = L 0.2;
- BLD 103;
- A I 1.6;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := DB2.DBX 2.0,
- Output_Bit1 := DB2.DBX 2.1,
- Output_Bit2 := DB2.DBX 2.2,
- Output_Bit3 := DB2.DBX 2.3);
- NOP 0;
- NETWORK
- TITLE =
- //Jack Situation To CCR
- A I 8.0;
- = L 0.0;
- BLD 103;
- A I 8.1;
- = L 0.1;
- BLD 103;
- A I 8.2;
- = L 0.2;
- BLD 103;
- A I 8.3;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := DB2.DBX 2.4,
- Output_Bit1 := DB2.DBX 2.5,
- Output_Bit2 := DB2.DBX 2.6,
- Output_Bit3 := DB2.DBX 2.7);
- NOP 0;
- NETWORK
- TITLE =
- //Jack Situation To CCR
- A I 8.4;
- = L 0.0;
- BLD 103;
- A I 8.5;
- = L 0.1;
- BLD 103;
- A I 8.5;
- = L 0.2;
- BLD 103;
- A I 8.7;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := DB2.DBX 3.0,
- Output_Bit1 := DB2.DBX 3.1,
- Output_Bit2 := DB2.DBX 3.2,
- Output_Bit3 := DB2.DBX 3.3);
- NOP 0;
- NETWORK
- TITLE =
- //Jack Situation To CCR
- A I 9.0;
- = L 0.0;
- BLD 103;
- A I 9.1;
- = L 0.1;
- BLD 103;
- A I 9.2;
- = L 0.2;
- BLD 103;
- A I 9.3;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := DB2.DBX 3.4,
- Output_Bit1 := DB2.DBX 3.5,
- Output_Bit2 := DB2.DBX 3.6,
- Output_Bit3 := DB2.DBX 3.7);
- NOP 0;
- NETWORK
- TITLE =
- L DB5.DBW 38;
- T DB2.DBW 18;
- NOP 0;
- END_FUNCTION
- FUNCTION FC 3 : VOID
- TITLE =Faults
- VERSION : 0.1
- BEGIN
- NETWORK
- TITLE =
- //Handshake
- A( ;
- A I 40.0;
- FP M 3.2;
- L S5T#10S;
- SS T 26;
- A M 3.0;
- R T 26;
- NOP 0;
- NOP 0;
- A T 26;
- ) ;
- S M 3.1;
- A( ;
- O I 25.0;
- O M 0.1;
- O I 40.1;
- ) ;
- = M 3.0;
- A M 3.0;
- R M 3.1;
- A M 3.1;
- = L 0.0;
- AN L 0.0;
- = DB2.DBX 12.5;
- A L 0.0;
- BLD 102;
- = DB1.DBX 7.7;
- NETWORK
- TITLE =Temporary placeholder variable
- A M 2.7;
- FP M 69.0;
- JNB _001;
- L MW 44;
- L 1;
- +I ;
- T MW 44;
- _001: NOP 0;
- NETWORK
- TITLE =Temporary placeholder variable
- A M 45.1;
- = DB2.DBX 0.0;
- NETWORK
- TITLE =
- A I 0.0;
- = L 0.0;
- BLD 103;
- A I 0.1;
- = L 0.1;
- BLD 103;
- A I 0.2;
- = L 0.2;
- BLD 103;
- A I 0.3;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := DB2.DBX 12.0,
- Output_Bit1 := DB2.DBX 12.1,
- Output_Bit2 := DB2.DBX 12.2,
- Output_Bit3 := DB2.DBX 12.3);
- NOP 0;
- NETWORK
- TITLE =Ready For Start
- A I 0.0;
- A I 0.1;
- A I 0.2;
- A I 0.3;
- = M 3.3;
- NETWORK
- TITLE =
- A I 0.0;
- = L 0.0;
- BLD 103;
- AN I 0.1;
- = L 0.1;
- BLD 103;
- AN I 0.2;
- = L 0.2;
- BLD 103;
- AN I 0.3;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := I 0.0,
- Output_Bit1 := DB1.DBX 7.3,
- Output_Bit2 := DB1.DBX 7.4,
- Output_Bit3 := DB1.DBX 7.5);
- NOP 0;
- NETWORK
- TITLE =
- A I 41.3;
- A DB2.DBX 0.6;
- = M 1.4;
- NETWORK
- TITLE =
- ON I 25.1;
- ON I 25.2;
- L S5T#20M;
- SD T 10;
- NETWORK
- TITLE =
- A( ;
- O T 10;
- O( ;
- L MW 116;
- L 18;
- >=I ;
- ) ;
- O( ;
- L MW 102;
- L 240;
- >=I ;
- ) ;
- ) ;
- NOT ;
- = M 3.6;
- NETWORK
- TITLE =
- A I 0.4;
- = L 0.0;
- BLD 103;
- A I 0.5;
- = L 0.1;
- BLD 103;
- A I 25.1;
- A I 25.2;
- = L 0.2;
- BLD 103;
- AN T 10;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := DB2.DBX 12.6,
- Output_Bit1 := DB2.DBX 9.2,
- Output_Bit2 := DB2.DBX 9.0,
- Output_Bit3 := DB2.DBX 9.1);
- NOP 0;
- NETWORK
- TITLE =
- A M 3.3;
- = L 0.0;
- BLD 103;
- A M 3.6;
- = L 0.1;
- BLD 103;
- A M 1.4;
- = L 0.2;
- BLD 103;
- A M 1.4;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := DB2.DBX 0.7,
- Output_Bit1 := DB2.DBX 1.1,
- Output_Bit2 := DB2.DBX 1.0,
- Output_Bit3 := DB2.DBX 1.0);
- NOP 0;
- NETWORK
- TITLE =
- //Delta Pressure Alarm
- A( ;
- L MW 116;
- L 18;
- >=I ;
- ) ;
- NOT ;
- = DB2.DBX 12.4;
- NETWORK
- TITLE =ALARM COMMON
- O Q 7.4;
- O DB2.DBX 9.0;
- O DB2.DBX 12.6;
- O DB2.DBX 9.2;
- O DB2.DBX 12.4;
- O DB2.DBX 12.5;
- O DB2.DBX 12.0;
- O DB2.DBX 12.1;
- O DB2.DBX 12.2;
- O DB2.DBX 12.3;
- = M 3.4;
- NETWORK
- TITLE =
- A M 3.4;
- = Q 5.1;
- = DB2.DBX 0.2;
- END_FUNCTION
- FUNCTION FC 4 : VOID
- TITLE =Start / Stop
- VERSION : 0.1
- BEGIN
- NETWORK
- TITLE =Cleaning
- //Start From TP
- A M 1.1;
- AN M 0.0;
- O( ;
- A M 0.0;
- R M 1.1;
- NOP 0;
- A M 1.1;
- ) ;
- O DB2.DBX 1.3;
- = DB2.DBX 0.6;
- NETWORK
- TITLE =cleaning
- A I 41.2;
- = M 0.0;
- NETWORK
- TITLE =
- A I 41.3;
- A M 0.0;
- A I 40.7;
- = M 36.4;
- NETWORK
- TITLE =To CCR
- //START PULSE CLEANING from CCR or Hard Wire
- //
- A I 17.0;
- A I 16.2;
- A I 41.3;
- A M 0.0;
- A I 41.0;
- O ;
- AN I 41.0;
- A I 25.3;
- A M 0.0;
- O ;
- A I 41.0;
- A I 40.2;
- A M 0.0;
- O( ;
- A M 0.0;
- R M 1.1;
- NOP 0;
- A M 1.1;
- ) ;
- O DB2.DBX 1.3;
- = DB2.DBX 0.6;
- NETWORK
- TITLE =
- //EMERGENCY Cleaning Form CCR
- A( ;
- A( ;
- A M 1.3;
- A M 1.1;
- AN M 0.0;
- O ;
- A I 41.0;
- A I 40.2;
- A I 40.3;
- A M 0.0;
- O( ;
- A M 0.0;
- R M 1.3;
- NOP 0;
- A M 1.3;
- ) ;
- ) ;
- L S5T#500MS;
- SP T 25;
- NOP 0;
- NOP 0;
- NOP 0;
- A T 25;
- ) ;
- S M 1.2;
- A( ;
- A M 1.3;
- A M 1.1;
- AN M 0.0;
- O ;
- A I 41.0;
- A I 40.2;
- A I 40.3;
- A M 0.0;
- O( ;
- L MW 26;
- L MW 14;
- ==I ;
- ) ;
- O M 3.0;
- ) ;
- FN M 1.6;
- R M 1.2;
- A M 1.2;
- = DB2.DBX 1.3;
- NETWORK
- TITLE =Solenoeid Heaters
- O DB2.DBX 0.6;
- O ;
- A M 3.5;
- AN M 0.0;
- O ;
- AN I 41.0;
- A I 1.2;
- A M 0.0;
- O ;
- A I 41.0;
- A I 41.1;
- A M 0.0;
- = Q 5.6;
- = DB2.DBX 0.3;
- NETWORK
- TITLE =
- A DB2.DBX 0.6;
- = M 36.5;
- END_FUNCTION
- FUNCTION FC 7 : VOID
- TITLE =
- VERSION : 0.1
- BEGIN
- NETWORK
- TITLE =
- A M 0.0;
- A I 41.5;
- = DB2.DBX 0.5;
- A DB2.DBX 0.5;
- = M 1.0;
- NETWORK
- TITLE =
- AN M 1.0;
- AN M 1.2;
- JNB _001;
- L MW 32;
- T MW 12;
- _001: NOP 0;
- NETWORK
- TITLE =Mode Selection By Profibus
- //mode 0
- A( ;
- A M 0.0;
- A I 40.4;
- AN I 40.5;
- AN I 40.6;
- O ;
- AN M 0.0;
- A M 35.3;
- ) ;
- = M 35.3;
- A M 35.3;
- JNB _002;
- L 1;
- T MW 4;
- _002: NOP 0;
- NETWORK
- TITLE =Mode Selection By Profibus
- //mode 1
- A( ;
- A M 0.0;
- A I 40.5;
- AN I 40.4;
- AN I 40.6;
- O ;
- AN M 0.0;
- A M 35.4;
- ) ;
- = M 35.4;
- A M 35.4;
- JNB _003;
- L 2;
- T MW 4;
- _003: NOP 0;
- NETWORK
- TITLE =Mode Selection By Profibus
- //mode 2
- A( ;
- A M 0.0;
- A I 40.6;
- AN I 40.4;
- AN I 40.5;
- O ;
- AN M 0.0;
- A M 35.5;
- ) ;
- = M 35.5;
- A M 35.5;
- JNB _004;
- L 3;
- T MW 4;
- _004: NOP 0;
- NETWORK
- TITLE =
- A( ;
- A M 1.2;
- JNB _005;
- L 3;
- T MW 12;
- SET ;
- SAVE ;
- CLR ;
- _005: A BR;
- ) ;
- JNB _006;
- L 1;
- T MW 4;
- _006: NOP 0;
- NETWORK
- TITLE =To CCR
- //Mode Operation
- A( ;
- L MW 4;
- L 1;
- ==I ;
- ) ;
- = L 0.0;
- BLD 103;
- A( ;
- L MW 4;
- L 2;
- ==I ;
- ) ;
- = L 0.1;
- BLD 103;
- A( ;
- L MW 4;
- L 3;
- ==I ;
- ) ;
- = L 0.2;
- BLD 103;
- A M 0.3;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := DB2.DBX 1.4,
- Output_Bit1 := DB2.DBX 1.5,
- Output_Bit2 := DB2.DBX 1.6,
- Output_Bit3 := DB2.DBX 1.7);
- NOP 0;
- END_FUNCTION
- FUNCTION FC 10 : VOID
- TITLE =Adjust Input Parameter Form TP
- VERSION : 0.1
- BEGIN
- NETWORK
- TITLE =
- NETWORK
- TITLE =
- //DEFAULT VALUE SETTING
- A M 0.6;
- JNB _001;
- L 100;
- T MW 10;
- SET ;
- SAVE ;
- CLR ;
- _001: A BR;
- = L 0.0;
- A( ;
- A L 0.0;
- JNB _002;
- L 10;
- T MW 12;
- SET ;
- SAVE ;
- CLR ;
- _002: A BR;
- ) ;
- JNB _003;
- L 192;
- T MW 14;
- _003: NOP 0;
- A( ;
- A L 0.0;
- JNB _004;
- L 10;
- T MW 8;
- SET ;
- SAVE ;
- CLR ;
- _004: A BR;
- ) ;
- JNB _005;
- L 5;
- T MW 6;
- _005: NOP 0;
- A( ;
- A( ;
- A L 0.0;
- JNB _006;
- L 25;
- T MD 40;
- SET ;
- SAVE ;
- CLR ;
- _006: A BR;
- ) ;
- JNB _007;
- L 30000;
- T MD 48;
- SET ;
- SAVE ;
- CLR ;
- _007: A BR;
- ) ;
- JNB _008;
- L 500;
- T MD 52;
- _008: NOP 0;
- NETWORK
- TITLE =
- CALL FC 20 (
- MAX := 30,
- MIN := 5,
- INPUT_VALUE := MW 8);
- NOP 0;
- NETWORK
- TITLE =
- CALL FC 20 (
- MAX := 500,
- MIN := 50,
- INPUT_VALUE := MW 10);
- NOP 0;
- NETWORK
- TITLE =
- L MW 10;
- L 10;
- /I ;
- T MW 28;
- NOP 0;
- NETWORK
- TITLE =
- CALL FC 20 (
- MAX := 100,
- MIN := 3,
- INPUT_VALUE := MW 32);
- NOP 0;
- NETWORK
- TITLE =
- CALL FC 20 (
- MAX := 192,
- MIN := 192,
- INPUT_VALUE := MW 14);
- NOP 0;
- NETWORK
- TITLE =
- CALL FC 20 (
- MAX := 300,
- MIN := 4,
- INPUT_VALUE := MW 6);
- NOP 0;
- NETWORK
- TITLE =
- CALL FC 20 (
- MAX := 3,
- MIN := 1,
- INPUT_VALUE := MW 4);
- NOP 0;
- NETWORK
- TITLE =
- CALL FC 21 (
- MAX := L#30,
- MIN := L#10,
- INPUT := MD 40);
- NOP 0;
- NETWORK
- TITLE =
- CALL FC 21 (
- MAX := L#32767,
- MIN := L#20000,
- INPUT := MD 130);
- NOP 0;
- NETWORK
- TITLE =
- CALL FC 21 (
- MAX := L#5000,
- MIN := L#-5000,
- INPUT := MD 118);
- NOP 0;
- NETWORK
- TITLE =
- CALL FC 21 (
- MAX := L#32767,
- MIN := L#20000,
- INPUT := MD 56);
- NOP 0;
- NETWORK
- TITLE =
- CALL FC 21 (
- MAX := L#5000,
- MIN := L#-5000,
- INPUT := MD 60);
- NOP 0;
- NETWORK
- TITLE =
- CALL FC 21 (
- MAX := L#32767,
- MIN := L#20000,
- INPUT := MD 138);
- NOP 0;
- NETWORK
- TITLE =
- CALL FC 21 (
- MAX := L#5000,
- MIN := L#-5000,
- INPUT := MD 134);
- NOP 0;
- NETWORK
- TITLE =
- A M 3.7;
- = L 0.0;
- BLD 103;
- CALL FC 31 (
- PIW_INPUT := PIW 324,
- FULL_SCALE_INSTRUMENT := MD 40,
- FULL_SCALE_REAL := MD 40,
- Defult_Setting := L 0.0,
- OUTPUT_MESSUR := MD 122,
- PERCENT := MD 126,
- Gain := MD 130,
- Offset := MD 118);
- NOP 0;
- NETWORK
- TITLE =
- L MW 124;
- T DB2.DBW 16;
- NOP 0;
- NETWORK
- TITLE =
- L MW 124;
- L 10;
- /I ;
- T MW 116;
- NOP 0;
- NETWORK
- TITLE =
- L MW 124;
- L 25;
- /I ;
- T MW 100;
- NOP 0;
- NETWORK
- TITLE =
- A M 3.7;
- = L 0.0;
- BLD 103;
- CALL FC 31 (
- PIW_INPUT := PIW 320,
- FULL_SCALE_INSTRUMENT := L#300,
- FULL_SCALE_REAL := L#300,
- Defult_Setting := L 0.0,
- OUTPUT_MESSUR := MD 146,
- PERCENT := MD 142,
- Gain := MD 56,
- Offset := MD 60);
- NOP 0;
- NETWORK
- TITLE =
- A M 3.7;
- = L 0.0;
- BLD 103;
- CALL FC 31 (
- PIW_INPUT := PIW 322,
- FULL_SCALE_INSTRUMENT := L#300,
- FULL_SCALE_REAL := L#300,
- Defult_Setting := L 0.0,
- OUTPUT_MESSUR := MD 112,
- PERCENT := MD 142,
- Gain := MD 138,
- Offset := MD 134);
- NOP 0;
- NETWORK
- TITLE =
- L MW 114;
- L 10;
- /I ;
- T MW 102;
- NOP 0;
- NETWORK
- TITLE =
- L MW 148;
- L 10;
- /I ;
- T MW 142;
- NOP 0;
- END_FUNCTION
- FUNCTION FC 11 : VOID
- TITLE =
- VERSION : 0.1
- BEGIN
- NETWORK
- TITLE =
- A M 3.4;
- = Q 5.7;
- NETWORK
- TITLE =
- A DB2.DBX 0.6;
- = Q 5.0;
- NETWORK
- TITLE =
- A M 0.0;
- = Q 5.2;
- END_FUNCTION
- FUNCTION FC 12 : VOID
- TITLE =Fresh Air Control
- VERSION : 0.1
- BEGIN
- NETWORK
- TITLE =
- A( ;
- A I 43.4;
- A I 25.6;
- O ;
- AN I 43.4;
- A I 43.2;
- ) ;
- A I 0.7;
- AN I 0.5;
- = Q 5.5;
- NETWORK
- TITLE =
- A( ;
- A I 43.4;
- A I 25.7;
- O ;
- AN I 43.4;
- A I 43.3;
- ) ;
- A I 0.6;
- AN I 0.5;
- = Q 5.4;
- NETWORK
- TITLE =
- A I 0.7;
- = L 0.0;
- BLD 103;
- A I 0.6;
- = L 0.1;
- BLD 103;
- A I 0.7;
- = L 0.2;
- BLD 103;
- A I 0.6;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := DB2.DBX 9.3,
- Output_Bit1 := DB2.DBX 9.4,
- Output_Bit2 := DB2.DBX 9.3,
- Output_Bit3 := DB2.DBX 9.4);
- NOP 0;
- NETWORK
- TITLE =
- L PIW 320;
- T DB2.DBW 20;
- NOP 0;
- NETWORK
- TITLE =
- L MW 102;
- T DB2.DBW 22;
- NOP 0;
- END_FUNCTION
- FUNCTION FC 15 : VOID
- TITLE =
- VERSION : 0.1
- BEGIN
- NETWORK
- TITLE =
- A( ;
- A( ;
- A( ;
- L DB2.DBB 0;
- T QB 40;
- SET ;
- SAVE ;
- CLR ;
- A BR;
- ) ;
- JNB _001;
- L DB2.DBB 1;
- T QB 41;
- SET ;
- SAVE ;
- CLR ;
- _001: A BR;
- ) ;
- JNB _002;
- L DB2.DBB 2;
- T QB 42;
- SET ;
- SAVE ;
- CLR ;
- _002: A BR;
- ) ;
- JNB _003;
- L DB2.DBB 3;
- T QB 43;
- _003: NOP 0;
- NETWORK
- TITLE =
- A( ;
- A( ;
- A( ;
- L DB2.DBB 4;
- T QB 44;
- SET ;
- SAVE ;
- CLR ;
- A BR;
- ) ;
- JNB _004;
- L DB2.DBB 5;
- T QB 45;
- SET ;
- SAVE ;
- CLR ;
- _004: A BR;
- ) ;
- JNB _005;
- L DB2.DBB 6;
- T QB 46;
- SET ;
- SAVE ;
- CLR ;
- _005: A BR;
- ) ;
- JNB _006;
- L DB2.DBB 7;
- T QB 47;
- _006: NOP 0;
- NETWORK
- TITLE =
- A( ;
- A( ;
- A( ;
- L DB2.DBB 8;
- T QB 48;
- SET ;
- SAVE ;
- CLR ;
- A BR;
- ) ;
- JNB _007;
- L DB2.DBB 9;
- T QB 60;
- SET ;
- SAVE ;
- CLR ;
- _007: A BR;
- ) ;
- JNB _008;
- L DB2.DBB 10;
- T QB 64;
- SET ;
- SAVE ;
- CLR ;
- _008: A BR;
- ) ;
- JNB _009;
- L DB2.DBB 11;
- T QB 61;
- _009: NOP 0;
- NETWORK
- TITLE =
- A( ;
- A( ;
- A( ;
- L DB2.DBB 12;
- T QB 65;
- SET ;
- SAVE ;
- CLR ;
- A BR;
- ) ;
- JNB _00a;
- L DB2.DBB 14;
- T QB 56;
- SET ;
- SAVE ;
- CLR ;
- _00a: A BR;
- ) ;
- JNB _00b;
- L DB2.DBB 15;
- T QB 57;
- SET ;
- SAVE ;
- CLR ;
- _00b: A BR;
- ) ;
- JNB _00c;
- L DB2.DBB 16;
- T QB 58;
- _00c: NOP 0;
- NETWORK
- TITLE =
- A( ;
- A( ;
- A( ;
- L DB2.DBB 17;
- T QB 59;
- SET ;
- SAVE ;
- CLR ;
- A BR;
- ) ;
- JNB _00d;
- L DB2.DBB 18;
- T QB 62;
- SET ;
- SAVE ;
- CLR ;
- _00d: A BR;
- ) ;
- JNB _00e;
- L DB2.DBB 19;
- T QB 63;
- SET ;
- SAVE ;
- CLR ;
- _00e: A BR;
- ) ;
- JNB _00f;
- L DB2.DBB 20;
- T QB 66;
- _00f: NOP 0;
- NETWORK
- TITLE =
- A( ;
- A( ;
- L DB2.DBB 21;
- T QB 67;
- SET ;
- SAVE ;
- CLR ;
- A BR;
- ) ;
- JNB _010;
- L DB2.DBB 22;
- T QB 68;
- SET ;
- SAVE ;
- CLR ;
- _010: A BR;
- ) ;
- JNB _011;
- L DB2.DBB 23;
- T QB 69;
- _011: NOP 0;
- NETWORK
- TITLE =
- A( ;
- L DB2.DBB 24;
- T QB 70;
- SET ;
- SAVE ;
- CLR ;
- A BR;
- ) ;
- JNB _012;
- L DB2.DBB 25;
- T QB 71;
- _012: NOP 0;
- END_FUNCTION
- FUNCTION FC 16 : VOID
- TITLE =
- VERSION : 0.1
- BEGIN
- NETWORK
- TITLE =
- A M 0.0;
- = L 0.0;
- BLD 103;
- A I 9.6;
- = L 0.1;
- BLD 103;
- A I 9.7;
- = L 0.2;
- BLD 103;
- A I 9.4;
- = L 0.3;
- BLD 103;
- A I 42.0;
- = L 0.4;
- BLD 103;
- A M 36.4;
- = L 0.5;
- BLD 103;
- A M 36.4;
- = L 0.6;
- BLD 103;
- A Q 8.3;
- = L 0.7;
- BLD 103;
- A I 9.5;
- = L 1.0;
- BLD 103;
- A I 12.0;
- = L 1.1;
- BLD 103;
- A I 12.1;
- = L 1.2;
- BLD 103;
- A M 2.5;
- = L 1.3;
- BLD 103;
- A M 3.0;
- = L 1.4;
- BLD 103;
- CALL FB 1 , DB 71 (
- Central_Local := L 0.0,
- LB_Start := L 0.1,
- LB_Stop := L 0.2,
- Emergency_Stop := L 0.3,
- Single_Start := L 0.4,
- Group_Start := L 0.5,
- Group_Stop := L 0.6,
- Interlock := L 0.7,
- Speed_Switch := L 1.0,
- Contactor := L 1.1,
- Circuit_Breaker := L 1.2,
- Clock := L 1.3,
- reset := L 1.4,
- Delay_Time := T 71,
- Group_ON_Timer := T 50,
- ON_Delay := S5T#10S,
- Group_Off_Timer := T 51,
- Off_Delay := S5T#5S,
- Speed_Switch_Fault := DB1.DBX 0.5,
- Contactor_Fault := DB1.DBX 0.6,
- CB_Fault := DB1.DBX 0.7,
- Motor_ON := Q 7.1);
- NOP 0;
- NETWORK
- TITLE =
- A M 0.0;
- = L 0.0;
- BLD 103;
- A I 12.4;
- = L 0.1;
- BLD 103;
- A I 12.5;
- = L 0.2;
- BLD 103;
- A I 12.2;
- = L 0.3;
- BLD 103;
- A I 42.1;
- = L 0.4;
- BLD 103;
- A M 36.4;
- = L 0.5;
- BLD 103;
- A Q 7.5;
- = L 0.6;
- BLD 103;
- A Q 7.7;
- = L 0.7;
- BLD 103;
- A I 12.3;
- = L 1.0;
- BLD 103;
- A I 12.6;
- = L 1.1;
- BLD 103;
- A I 12.7;
- = L 1.2;
- BLD 103;
- A M 2.5;
- = L 1.3;
- BLD 103;
- A M 3.0;
- = L 1.4;
- BLD 103;
- CALL FB 1 , DB 72 (
- Central_Local := L 0.0,
- LB_Start := L 0.1,
- LB_Stop := L 0.2,
- Emergency_Stop := L 0.3,
- Single_Start := L 0.4,
- Group_Start := L 0.5,
- Group_Stop := L 0.6,
- Interlock := L 0.7,
- Speed_Switch := L 1.0,
- Contactor := L 1.1,
- Circuit_Breaker := L 1.2,
- Clock := L 1.3,
- reset := L 1.4,
- Delay_Time := T 72,
- Group_ON_Timer := T 52,
- ON_Delay := S5T#10S,
- Group_Off_Timer := T 53,
- Off_Delay := S5T#5S,
- Speed_Switch_Fault := DB1.DBX 1.1,
- Contactor_Fault := DB1.DBX 1.2,
- CB_Fault := DB1.DBX 1.3,
- Motor_ON := Q 7.2);
- NOP 0;
- NETWORK
- TITLE =
- A M 0.0;
- = L 0.0;
- BLD 103;
- A I 13.2;
- = L 0.1;
- BLD 103;
- A I 13.3;
- = L 0.2;
- BLD 103;
- A I 13.0;
- = L 0.3;
- BLD 103;
- A I 42.2;
- = L 0.4;
- BLD 103;
- A M 36.4;
- = L 0.5;
- BLD 103;
- A Q 7.6;
- = L 0.6;
- BLD 103;
- A Q 7.7;
- = L 0.7;
- BLD 103;
- A I 13.1;
- = L 1.0;
- BLD 103;
- A I 13.4;
- = L 1.1;
- BLD 103;
- A I 13.5;
- = L 1.2;
- BLD 103;
- A M 2.5;
- = L 1.3;
- BLD 103;
- A M 3.0;
- = L 1.4;
- BLD 103;
- CALL FB 1 , DB 73 (
- Central_Local := L 0.0,
- LB_Start := L 0.1,
- LB_Stop := L 0.2,
- Emergency_Stop := L 0.3,
- Single_Start := L 0.4,
- Group_Start := L 0.5,
- Group_Stop := L 0.6,
- Interlock := L 0.7,
- Speed_Switch := L 1.0,
- Contactor := L 1.1,
- Circuit_Breaker := L 1.2,
- Clock := L 1.3,
- reset := L 1.4,
- Delay_Time := T 73,
- Group_ON_Timer := T 54,
- ON_Delay := S5T#10S,
- Group_Off_Timer := T 55,
- Off_Delay := S5T#5S,
- Speed_Switch_Fault := DB1.DBX 0.1,
- Contactor_Fault := DB1.DBX 0.2,
- CB_Fault := DB1.DBX 0.3,
- Motor_ON := Q 7.3);
- NOP 0;
- NETWORK
- TITLE =
- A M 0.0;
- = L 0.0;
- BLD 103;
- A I 16.0;
- = L 0.1;
- BLD 103;
- A I 16.1;
- = L 0.2;
- BLD 103;
- A I 13.6;
- = L 0.3;
- BLD 103;
- A I 42.3;
- = L 0.4;
- BLD 103;
- A M 36.4;
- = L 0.5;
- BLD 103;
- A M 36.4;
- = L 0.6;
- BLD 103;
- A Q 7.2;
- = L 0.7;
- BLD 103;
- A I 13.7;
- = L 1.0;
- BLD 103;
- A I 16.2;
- = L 1.1;
- BLD 103;
- A I 16.3;
- = L 1.2;
- BLD 103;
- A M 2.5;
- = L 1.3;
- BLD 103;
- A M 3.0;
- = L 1.4;
- BLD 103;
- CALL FB 1 , DB 81 (
- Central_Local := L 0.0,
- LB_Start := L 0.1,
- LB_Stop := L 0.2,
- Emergency_Stop := L 0.3,
- Single_Start := L 0.4,
- Group_Start := L 0.5,
- Group_Stop := L 0.6,
- Interlock := L 0.7,
- Speed_Switch := L 1.0,
- Contactor := L 1.1,
- Circuit_Breaker := L 1.2,
- Clock := L 1.3,
- reset := L 1.4,
- Delay_Time := T 81,
- Group_ON_Timer := T 56,
- ON_Delay := S5T#10S,
- Group_Off_Timer := T 57,
- Off_Delay := S5T#30S,
- Speed_Switch_Fault := DB1.DBX 1.5,
- Contactor_Fault := DB1.DBX 1.6,
- CB_Fault := DB1.DBX 1.7,
- Motor_ON := Q 7.5);
- NOP 0;
- NETWORK
- TITLE =
- A M 0.0;
- = L 0.0;
- BLD 103;
- A I 16.6;
- = L 0.1;
- BLD 103;
- A I 16.7;
- = L 0.2;
- BLD 103;
- A I 16.4;
- = L 0.3;
- BLD 103;
- A I 42.4;
- = L 0.4;
- BLD 103;
- A M 36.4;
- = L 0.5;
- BLD 103;
- A M 36.4;
- = L 0.6;
- BLD 103;
- A Q 7.3;
- = L 0.7;
- BLD 103;
- A I 16.5;
- = L 1.0;
- BLD 103;
- A I 17.0;
- = L 1.1;
- BLD 103;
- A I 17.1;
- = L 1.2;
- BLD 103;
- A M 2.5;
- = L 1.3;
- BLD 103;
- A M 3.0;
- = L 1.4;
- BLD 103;
- CALL FB 1 , DB 82 (
- Central_Local := L 0.0,
- LB_Start := L 0.1,
- LB_Stop := L 0.2,
- Emergency_Stop := L 0.3,
- Single_Start := L 0.4,
- Group_Start := L 0.5,
- Group_Stop := L 0.6,
- Interlock := L 0.7,
- Speed_Switch := L 1.0,
- Contactor := L 1.1,
- Circuit_Breaker := L 1.2,
- Clock := L 1.3,
- reset := L 1.4,
- Delay_Time := T 82,
- Group_ON_Timer := T 58,
- ON_Delay := S5T#7S,
- Group_Off_Timer := T 59,
- Off_Delay := S5T#30S,
- Speed_Switch_Fault := DB1.DBX 2.1,
- Contactor_Fault := DB1.DBX 2.2,
- CB_Fault := DB1.DBX 2.3,
- Motor_ON := Q 7.6);
- NOP 0;
- NETWORK
- TITLE =
- A M 0.0;
- = L 0.0;
- BLD 103;
- A I 17.4;
- = L 0.1;
- BLD 103;
- A I 17.5;
- = L 0.2;
- BLD 103;
- A I 17.2;
- = L 0.3;
- BLD 103;
- A I 42.6;
- = L 0.4;
- BLD 103;
- A M 36.4;
- = L 0.5;
- BLD 103;
- A( ;
- O Q 7.2;
- O Q 7.3;
- O Q 8.3;
- ) ;
- = L 0.6;
- BLD 103;
- A Q 8.0;
- = L 0.7;
- BLD 103;
- A I 17.3;
- = L 1.0;
- BLD 103;
- A I 17.6;
- = L 1.1;
- BLD 103;
- A I 17.7;
- = L 1.2;
- BLD 103;
- A M 2.5;
- = L 1.3;
- BLD 103;
- A M 3.0;
- = L 1.4;
- BLD 103;
- CALL FB 1 , DB 83 (
- Central_Local := L 0.0,
- LB_Start := L 0.1,
- LB_Stop := L 0.2,
- Emergency_Stop := L 0.3,
- Single_Start := L 0.4,
- Group_Start := L 0.5,
- Group_Stop := L 0.6,
- Interlock := L 0.7,
- Speed_Switch := L 1.0,
- Contactor := L 1.1,
- Circuit_Breaker := L 1.2,
- Clock := L 1.3,
- reset := L 1.4,
- Delay_Time := T 83,
- Group_ON_Timer := T 60,
- ON_Delay := S5T#10S,
- Group_Off_Timer := T 61,
- Off_Delay := S5T#30S,
- Speed_Switch_Fault := DB1.DBX 3.1,
- Contactor_Fault := DB1.DBX 3.2,
- CB_Fault := DB1.DBX 3.3,
- Motor_ON := Q 7.7);
- NOP 0;
- NETWORK
- TITLE =
- A M 0.0;
- = L 0.0;
- BLD 103;
- A I 20.2;
- = L 0.1;
- BLD 103;
- A I 20.3;
- = L 0.2;
- BLD 103;
- A I 20.0;
- = L 0.3;
- BLD 103;
- A I 42.7;
- = L 0.4;
- BLD 103;
- A M 36.4;
- = L 0.5;
- BLD 103;
- A Q 7.7;
- = L 0.6;
- BLD 103;
- A Q 8.1;
- = L 0.7;
- BLD 103;
- A I 20.1;
- = L 1.0;
- BLD 103;
- A I 20.4;
- = L 1.1;
- BLD 103;
- A I 20.5;
- = L 1.2;
- BLD 103;
- A M 2.5;
- = L 1.3;
- BLD 103;
- A M 3.0;
- = L 1.4;
- BLD 103;
- CALL FB 1 , DB 84 (
- Central_Local := L 0.0,
- LB_Start := L 0.1,
- LB_Stop := L 0.2,
- Emergency_Stop := L 0.3,
- Single_Start := L 0.4,
- Group_Start := L 0.5,
- Group_Stop := L 0.6,
- Interlock := L 0.7,
- Speed_Switch := L 1.0,
- Contactor := L 1.1,
- Circuit_Breaker := L 1.2,
- Clock := L 1.3,
- reset := L 1.4,
- Delay_Time := T 84,
- Group_ON_Timer := T 62,
- ON_Delay := S5T#10S,
- Group_Off_Timer := T 63,
- Off_Delay := S5T#30S,
- Speed_Switch_Fault := DB1.DBX 3.5,
- Contactor_Fault := DB1.DBX 3.6,
- CB_Fault := DB1.DBX 3.7,
- Motor_ON := Q 8.0);
- NOP 0;
- NETWORK
- TITLE =
- A M 0.0;
- = L 0.0;
- BLD 103;
- A I 21.0;
- = L 0.1;
- BLD 103;
- A I 21.1;
- = L 0.2;
- BLD 103;
- A I 20.6;
- = L 0.3;
- BLD 103;
- A I 43.0;
- = L 0.4;
- BLD 103;
- A M 36.4;
- = L 0.5;
- BLD 103;
- A Q 8.0;
- = L 0.6;
- BLD 103;
- A Q 8.2;
- = L 0.7;
- BLD 103;
- A I 20.7;
- = L 1.0;
- BLD 103;
- A I 21.2;
- = L 1.1;
- BLD 103;
- A I 21.3;
- = L 1.2;
- BLD 103;
- A M 2.5;
- = L 1.3;
- BLD 103;
- A M 3.0;
- = L 1.4;
- BLD 103;
- CALL FB 1 , DB 85 (
- Central_Local := L 0.0,
- LB_Start := L 0.1,
- LB_Stop := L 0.2,
- Emergency_Stop := L 0.3,
- Single_Start := L 0.4,
- Group_Start := L 0.5,
- Group_Stop := L 0.6,
- Interlock := L 0.7,
- Speed_Switch := L 1.0,
- Contactor := L 1.1,
- Circuit_Breaker := L 1.2,
- Clock := L 1.3,
- reset := L 1.4,
- Delay_Time := T 85,
- Group_ON_Timer := T 64,
- ON_Delay := S5T#10S,
- Group_Off_Timer := T 65,
- Off_Delay := S5T#30S,
- Speed_Switch_Fault := DB1.DBX 4.1,
- Contactor_Fault := DB1.DBX 4.2,
- CB_Fault := DB1.DBX 4.3,
- Motor_ON := Q 8.1);
- NOP 0;
- NETWORK
- TITLE =
- A M 0.0;
- = L 0.0;
- BLD 103;
- A I 21.6;
- = L 0.1;
- BLD 103;
- A I 21.7;
- = L 0.2;
- BLD 103;
- A I 21.4;
- = L 0.3;
- BLD 103;
- A I 43.1;
- = L 0.4;
- BLD 103;
- A M 36.4;
- = L 0.5;
- BLD 103;
- A Q 8.1;
- = L 0.6;
- BLD 103;
- A I 41.4;
- = L 0.7;
- BLD 103;
- A I 21.5;
- = L 1.0;
- BLD 103;
- A I 24.0;
- = L 1.1;
- BLD 103;
- A I 24.1;
- = L 1.2;
- BLD 103;
- A M 2.5;
- = L 1.3;
- BLD 103;
- A M 3.0;
- = L 1.4;
- BLD 103;
- CALL FB 1 , DB 86 (
- Central_Local := L 0.0,
- LB_Start := L 0.1,
- LB_Stop := L 0.2,
- Emergency_Stop := L 0.3,
- Single_Start := L 0.4,
- Group_Start := L 0.5,
- Group_Stop := L 0.6,
- Interlock := L 0.7,
- Speed_Switch := L 1.0,
- Contactor := L 1.1,
- Circuit_Breaker := L 1.2,
- Clock := L 1.3,
- reset := L 1.4,
- Delay_Time := T 86,
- Group_ON_Timer := T 66,
- ON_Delay := S5T#3S,
- Group_Off_Timer := T 67,
- Off_Delay := S5T#30S,
- Speed_Switch_Fault := DB1.DBX 4.5,
- Contactor_Fault := DB1.DBX 4.6,
- CB_Fault := DB1.DBX 4.7,
- Motor_ON := Q 8.2);
- NOP 0;
- NETWORK
- TITLE =
- A M 0.0;
- = L 0.0;
- BLD 103;
- A I 24.4;
- = L 0.1;
- BLD 103;
- A I 24.5;
- = L 0.2;
- BLD 103;
- A I 24.2;
- = L 0.3;
- BLD 103;
- A I 42.5;
- = L 0.4;
- BLD 103;
- A M 36.4;
- = L 0.5;
- BLD 103;
- A Q 7.1;
- = L 0.6;
- BLD 103;
- A Q 7.7;
- = L 0.7;
- BLD 103;
- A I 24.3;
- = L 1.0;
- BLD 103;
- A I 24.6;
- = L 1.1;
- BLD 103;
- A I 24.7;
- = L 1.2;
- BLD 103;
- A M 2.5;
- = L 1.3;
- BLD 103;
- A M 3.0;
- = L 1.4;
- BLD 103;
- CALL FB 1 , DB 87 (
- Central_Local := L 0.0,
- LB_Start := L 0.1,
- LB_Stop := L 0.2,
- Emergency_Stop := L 0.3,
- Single_Start := L 0.4,
- Group_Start := L 0.5,
- Group_Stop := L 0.6,
- Interlock := L 0.7,
- Speed_Switch := L 1.0,
- Contactor := L 1.1,
- Circuit_Breaker := L 1.2,
- Clock := L 1.3,
- reset := L 1.4,
- Delay_Time := T 87,
- Group_ON_Timer := T 68,
- ON_Delay := S5T#12S,
- Group_Off_Timer := T 69,
- Off_Delay := S5T#30S,
- Speed_Switch_Fault := DB1.DBX 2.5,
- Contactor_Fault := DB1.DBX 2.6,
- CB_Fault := DB1.DBX 2.7,
- Motor_ON := Q 8.3);
- NOP 0;
- NETWORK
- TITLE =
- O DB71.DBX 12.5;
- O DB72.DBX 12.5;
- O DB73.DBX 12.5;
- O DB81.DBX 12.5;
- O DB82.DBX 12.5;
- O DB83.DBX 12.5;
- O DB84.DBX 12.5;
- O DB85.DBX 12.5;
- O DB86.DBX 12.5;
- O DB87.DBX 12.5;
- = Q 7.4;
- NETWORK
- TITLE =
- A I 9.4;
- = L 0.0;
- BLD 103;
- A I 9.5;
- = L 0.1;
- BLD 103;
- A I 12.0;
- = L 0.2;
- BLD 103;
- AN I 12.1;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := DB2.DBX 4.4,
- Output_Bit1 := DB2.DBX 4.5,
- Output_Bit2 := DB2.DBX 4.6,
- Output_Bit3 := DB2.DBX 4.7);
- NOP 0;
- NETWORK
- TITLE =
- A I 12.2;
- = L 0.0;
- BLD 103;
- A I 12.3;
- = L 0.1;
- BLD 103;
- A I 12.6;
- = L 0.2;
- BLD 103;
- AN I 12.7;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := DB2.DBX 5.0,
- Output_Bit1 := DB2.DBX 5.1,
- Output_Bit2 := DB2.DBX 5.2,
- Output_Bit3 := DB2.DBX 5.3);
- NOP 0;
- NETWORK
- TITLE =
- A I 13.0;
- = L 0.0;
- BLD 103;
- A I 13.1;
- = L 0.1;
- BLD 103;
- A I 13.4;
- = L 0.2;
- BLD 103;
- AN I 13.5;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := DB2.DBX 4.0,
- Output_Bit1 := DB2.DBX 4.1,
- Output_Bit2 := DB2.DBX 4.2,
- Output_Bit3 := DB2.DBX 4.3);
- NOP 0;
- NETWORK
- TITLE =
- A I 13.6;
- = L 0.0;
- BLD 103;
- A I 13.7;
- = L 0.1;
- BLD 103;
- A I 16.2;
- = L 0.2;
- BLD 103;
- AN I 16.3;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := DB2.DBX 5.4,
- Output_Bit1 := DB2.DBX 5.5,
- Output_Bit2 := DB2.DBX 5.6,
- Output_Bit3 := DB2.DBX 5.7);
- NOP 0;
- NETWORK
- TITLE =
- A I 16.4;
- = L 0.0;
- BLD 103;
- A I 16.5;
- = L 0.1;
- BLD 103;
- A I 17.0;
- = L 0.2;
- BLD 103;
- AN I 17.1;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := DB2.DBX 6.0,
- Output_Bit1 := DB2.DBX 6.1,
- Output_Bit2 := DB2.DBX 6.2,
- Output_Bit3 := DB2.DBX 6.3);
- NOP 0;
- NETWORK
- TITLE =
- A I 17.2;
- = L 0.0;
- BLD 103;
- A I 17.3;
- = L 0.1;
- BLD 103;
- A I 17.6;
- = L 0.2;
- BLD 103;
- AN I 17.7;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := DB2.DBX 7.0,
- Output_Bit1 := DB2.DBX 7.1,
- Output_Bit2 := DB2.DBX 7.2,
- Output_Bit3 := DB2.DBX 7.3);
- NOP 0;
- NETWORK
- TITLE =
- A I 20.0;
- = L 0.0;
- BLD 103;
- A I 20.1;
- = L 0.1;
- BLD 103;
- A I 20.4;
- = L 0.2;
- BLD 103;
- AN I 20.5;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := DB2.DBX 7.4,
- Output_Bit1 := DB2.DBX 7.5,
- Output_Bit2 := DB2.DBX 7.6,
- Output_Bit3 := DB2.DBX 7.7);
- NOP 0;
- NETWORK
- TITLE =
- A I 20.6;
- = L 0.0;
- BLD 103;
- A I 20.7;
- = L 0.1;
- BLD 103;
- A I 21.2;
- = L 0.2;
- BLD 103;
- AN I 21.3;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := DB2.DBX 8.0,
- Output_Bit1 := DB2.DBX 8.1,
- Output_Bit2 := DB2.DBX 8.2,
- Output_Bit3 := DB2.DBX 8.3);
- NOP 0;
- NETWORK
- TITLE =
- A I 21.4;
- = L 0.0;
- BLD 103;
- A I 21.5;
- = L 0.1;
- BLD 103;
- A I 24.0;
- = L 0.2;
- BLD 103;
- AN I 24.1;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := DB2.DBX 8.4,
- Output_Bit1 := DB2.DBX 8.5,
- Output_Bit2 := DB2.DBX 8.6,
- Output_Bit3 := DB2.DBX 8.7);
- NOP 0;
- NETWORK
- TITLE =
- A I 24.2;
- = L 0.0;
- BLD 103;
- A I 24.3;
- = L 0.1;
- BLD 103;
- A I 24.6;
- = L 0.2;
- BLD 103;
- AN I 24.7;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := DB2.DBX 6.4,
- Output_Bit1 := DB2.DBX 6.5,
- Output_Bit2 := DB2.DBX 6.6,
- Output_Bit3 := DB2.DBX 6.7);
- NOP 0;
- NETWORK
- TITLE =
- AN I 9.4;
- = L 0.0;
- BLD 103;
- AN I 12.2;
- = L 0.1;
- BLD 103;
- AN I 13.0;
- = L 0.2;
- BLD 103;
- AN I 13.6;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := DB1.DBX 0.4,
- Output_Bit1 := DB1.DBX 1.0,
- Output_Bit2 := DB1.DBX 0.0,
- Output_Bit3 := DB1.DBX 1.4);
- NOP 0;
- NETWORK
- TITLE =
- AN I 16.4;
- = L 0.0;
- BLD 103;
- AN I 17.2;
- = L 0.1;
- BLD 103;
- AN I 20.0;
- = L 0.2;
- BLD 103;
- AN I 20.6;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := DB1.DBX 2.0,
- Output_Bit1 := DB1.DBX 3.0,
- Output_Bit2 := DB1.DBX 3.4,
- Output_Bit3 := DB1.DBX 4.0);
- NOP 0;
- NETWORK
- TITLE =
- AN I 21.4;
- = L 0.0;
- BLD 103;
- AN I 24.2;
- = L 0.1;
- BLD 103;
- A M 10.0;
- = L 0.2;
- BLD 103;
- A M 0.7;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := DB1.DBX 4.4,
- Output_Bit1 := DB1.DBX 2.4,
- Output_Bit2 := M 10.0,
- Output_Bit3 := DB1.DBX 7.6);
- NOP 0;
- END_FUNCTION
- FUNCTION FC 18 : VOID
- TITLE =New Pulse Controller 91_8_22
- VERSION : 0.1
- BEGIN
- NETWORK
- TITLE =
- AN DB6.DBX 2.0;
- = L 0.0;
- BLD 103;
- CALL FB 2 , DB 5 (
- Number_Of_Airtank := 32,
- Number_Of_SV_In_Airtank := 6,
- Mode := MW 4,
- Jack_Closed := L 0.0,
- Timer_Off := T 12,
- Time_Interval_second := MW 12,
- Timer_ON := T 13,
- Pulse_Time_mSecond := MW 28,
- Internal_Timer := T 14,
- Pulse := Q 5.3,
- Output_Byte := MB 25,
- Out_Jack := QB 6);
- NOP 0;
- NETWORK
- TITLE =Selnoid Control
- A M 25.0;
- = L 0.0;
- BLD 103;
- A M 25.1;
- = L 0.1;
- BLD 103;
- A M 25.2;
- = L 0.2;
- BLD 103;
- A M 25.3;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := Q 4.7,
- Output_Bit1 := Q 4.6,
- Output_Bit2 := Q 4.5,
- Output_Bit3 := Q 4.4);
- NOP 0;
- NETWORK
- TITLE =Selnoid Control
- A M 25.4;
- = L 0.0;
- BLD 103;
- A M 25.5;
- = L 0.1;
- BLD 103;
- A M 25.6;
- = L 0.2;
- BLD 103;
- A M 25.7;
- = L 0.3;
- BLD 103;
- CALL FC 6 (
- Input_Bit0 := L 0.0,
- Input_Bit1 := L 0.1,
- Input_Bit2 := L 0.2,
- Input_Bit3 := L 0.3,
- Output_Bit0 := Q 4.3,
- Output_Bit1 := Q 4.2,
- Output_Bit2 := Q 4.1,
- Output_Bit3 := Q 4.0);
- NOP 0;
- NETWORK
- TITLE =
- A( ;
- L DB5.DBW 38;
- L 4;
- /I ;
- T DB6.DBW 0;
- AN OV;
- SAVE ;
- CLR ;
- A BR;
- ) ;
- JNB _001;
- CALL FB 3 , DB 6 ;
- _001: NOP 0;
- NETWORK
- TITLE =
- L DB6.DBW 0;
- L 1;
- +I ;
- T MW 20;
- NOP 0;
- NETWORK
- TITLE =
- A( ;
- A( ;
- L DB5.DBW 38;
- L 6;
- *I ;
- T MW 16;
- AN OV;
- SAVE ;
- CLR ;
- A BR;
- ) ;
- JNB _002;
- L MW 16;
- L DB5.DBW 22;
- +I ;
- T DB2.DBW 14;
- AN OV;
- SAVE ;
- CLR ;
- _002: A BR;
- ) ;
- JNB _003;
- L DB2.DBW 14;
- T MW 26;
- _003: NOP 0;
- NETWORK
- TITLE =
- A Q 5.3;
- FP M 36.0;
- A M 1.0;
- JNB _004;
- CALL FC 14 ;
- _004: NOP 0;
- END_FUNCTION
- ORGANIZATION_BLOCK OB 1
- TITLE = "Main Program Sweep (Cycle)"
- //New Version 91_8_20
- VERSION : 0.1
- VAR_TEMP
- OB1_EV_CLASS : BYTE ; //Bits 0-3 = 1 (Coming event), Bits 4-7 = 1 (Event class 1)
- OB1_SCAN_1 : BYTE ; //1 (Cold restart scan 1 of OB 1), 3 (Scan 2-n of OB 1)
- OB1_PRIORITY : BYTE ; //Priority of OB Execution
- OB1_OB_NUMBR : BYTE ; //1 (Organization block 1, OB1)
- OB1_RESERVED_1 : BYTE ; //Reserved for system
- OB1_RESERVED_2 : BYTE ; //Reserved for system
- OB1_PREV_CYCLE : INT ; //Cycle time of previous OB1 scan (milliseconds)
- OB1_MIN_CYCLE : INT ; //Minimum cycle time of OB1 (milliseconds)
- OB1_MAX_CYCLE : INT ; //Maximum cycle time of OB1 (milliseconds)
- OB1_DATE_TIME : DATE_AND_TIME ; //Date and time OB1 started
- END_VAR
- BEGIN
- NETWORK
- TITLE =
- A( ;
- ON M 2.5;
- O M 2.5;
- ) ;
- = M 0.2;
- A M 0.2;
- NOT ;
- = M 0.3;
- NETWORK
- TITLE =
- CALL FC 1 ;
- NOP 0;
- NETWORK
- TITLE =
- CALL FC 3 ;
- NOP 0;
- NETWORK
- TITLE =
- CALL FC 4 ;
- NOP 0;
- NETWORK
- TITLE =
- CALL FC 7 ;
- NOP 0;
- NETWORK
- TITLE =
- A DB2.DBX 0.6;
- JNB _001;
- CALL FC 18 ;
- _001: NOP 0;
- NETWORK
- TITLE =
- CALL FC 10 ;
- NOP 0;
- NETWORK
- TITLE =
- CALL FC 11 ;
- NOP 0;
- NETWORK
- TITLE =
- CALL FC 12 ;
- NOP 0;
- NETWORK
- TITLE =
- CALL FC 15 ;
- NOP 0;
- NETWORK
- TITLE =
- CALL FC 16 ;
- NOP 0;
- NETWORK
- TITLE =
- A I 40.0;
- = Q 9.0;
- NETWORK
- TITLE =
- L PIW 320;
- T DB2.DBW 20;
- NOP 0;
- END_ORGANIZATION_BLOCK
- ORGANIZATION_BLOCK OB 82
- VERSION : 0.1
- VAR_TEMP
- TEMP0 : BYTE ;
- TEMP1 : BYTE ;
- TEMP2 : BYTE ;
- TEMP3 : BYTE ;
- TEMP4 : BYTE ;
- TEMP5 : BYTE ;
- TEMP6 : WORD ;
- TEMP7 : BOOL ;
- TEMP8 : BOOL ;
- TEMP9 : BOOL ;
- TEMP10 : BOOL ;
- TEMP11 : BOOL ;
- TEMP12 : BOOL ;
- TEMP13 : BOOL ;
- TEMP14 : BOOL ;
- TEMP15 : BYTE ;
- TEMP16 : BOOL ;
- TEMP17 : BOOL ;
- TEMP18 : BOOL ;
- TEMP19 : BOOL ;
- TEMP20 : BOOL ;
- TEMP21 : BOOL ;
- TEMP22 : BOOL ;
- TEMP23 : BOOL ;
- TEMP24 : BOOL ;
- TEMP25 : BOOL ;
- TEMP26 : BOOL ;
- TEMP27 : BOOL ;
- TEMP28 : BOOL ;
- TEMP29 : BOOL ;
- TEMP30 : BOOL ;
- TEMP31 : BOOL ;
- TEMP32 : DATE_AND_TIME ;
- END_VAR
- BEGIN
- END_ORGANIZATION_BLOCK
- ORGANIZATION_BLOCK OB 85
- TITLE = "Organization Block (OB) Not Loaded Fault"
- VERSION : 0.1
- VAR_TEMP
- OB85_EV_CLASS : BYTE ; //16#35 Event class 3
- OB85_FLT_ID : BYTE ; //16#XX, Fault identification code
- OB85_PRIORITY : BYTE ; //Priority of OB Execution
- OB85_OB_NUMBR : BYTE ; //85 (Organization block 85, OB85)
- OB85_RESERVED_1 : BYTE ; //Reserved for system
- OB85_RESERVED_2 : BYTE ; //Reserved for system
- OB85_RESERVED_3 : INT ; //Reserved for system
- OB85_ERR_EV_CLASS : BYTE ; //Class of event causing error
- OB85_ERR_EV_NUM : BYTE ; //Number of event causing error
- OB85_OB_PRIOR : BYTE ; //Priority of OB causing error
- OB85_OB_NUM : BYTE ; //Number of OB causing error
- OB85_DATE_TIME : DATE_AND_TIME ; //Date and time OB85 started
- END_VAR
- BEGIN
- END_ORGANIZATION_BLOCK
- ORGANIZATION_BLOCK OB 86
- VERSION : 0.1
- VAR_TEMP
- TEMP0 : BYTE ;
- TEMP1 : BYTE ;
- TEMP2 : BYTE ;
- TEMP3 : BYTE ;
- TEMP4 : BYTE ;
- TEMP5 : BYTE ;
- TEMP6 : WORD ;
- TEMP7 : ARRAY [0 .. 31 ] OF BOOL ;
- TEMP8 : DATE_AND_TIME ;
- END_VAR
- BEGIN
- END_ORGANIZATION_BLOCK
- ORGANIZATION_BLOCK OB 87
- TITLE = "Communication Fault"
- VERSION : 0.1
- VAR_TEMP
- OB87_EV_CLASS : BYTE ; //16#39 Event class 3
- OB87_FLT_ID : BYTE ; //16#XX, Fault identifcation code
- OB87_PRIORITY : BYTE ; //Priority of OB Execution
- OB87_OB_NUMBR : BYTE ; //87 (Organization block 87, OB87)
- OB87_RESERVED_1 : BYTE ; //Reserved for system
- OB87_RESERVED_2 : BYTE ; //Reserved for system
- OB87_RESERVED_3 : WORD ; //Reserved for system
- OB87_RESERVED_4 : DWORD ; //Reserved for system
- OB87_DATE_TIME : DATE_AND_TIME ; //Date and time OB87 started
- END_VAR
- BEGIN
- END_ORGANIZATION_BLOCK
- ORGANIZATION_BLOCK OB 121
- TITLE = "Programming Error"
- VERSION : 0.1
- VAR_TEMP
- OB121_EV_CLASS : BYTE ; //16#25, Event class 2, Entering event state, Internal fault event
- OB121_SW_FLT : BYTE ; //16#XX Software programming fault
- OB121_PRIORITY : BYTE ; //Priority of OB Execution
- OB121_OB_NUMBR : BYTE ; //121 (Organization block 121, OB121)
- OB121_BLK_TYPE : BYTE ; //16#88/8A/8B/8C/8E Type of block fault occured in
- OB121_RESERVED_1 : BYTE ; //Reserved for system
- OB121_FLT_REG : WORD ; //16#XX Specific register that caused fault
- OB121_BLK_NUM : WORD ; //Number of block that programming fault occured in
- OB121_PRG_ADDR : WORD ; //Address in block where programming fault occured
- OB121_DATE_TIME : DATE_AND_TIME ; //Date and time OB121 started
- END_VAR
- BEGIN
- END_ORGANIZATION_BLOCK
- ORGANIZATION_BLOCK OB 122
- VERSION : 0.1
- VAR_TEMP
- TEMP0 : BYTE ;
- TEMP1 : BYTE ;
- TEMP2 : BYTE ;
- TEMP3 : BYTE ;
- TEMP4 : BYTE ;
- TEMP5 : BYTE ;
- TEMP6 : WORD ;
- TEMP7 : WORD ;
- TEMP8 : WORD ;
- TEMP9 : DATE_AND_TIME ;
- END_VAR
- BEGIN
- END_ORGANIZATION_BLOCK
|