acme-001.awl 110 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712
  1. DATA_BLOCK DB 1
  2. TITLE =Yalanci632yahoo.com
  3. VERSION : 0.1
  4. STRUCT
  5. Emergency_Stop_73 : BOOL ;
  6. Speed_Switch_73 : BOOL ;
  7. Contactor_FB_73 : BOOL ;
  8. Circuit_Breaker_73 : BOOL ;
  9. Emergency_Stop_71 : BOOL ;
  10. Speed_Switch_71 : BOOL ;
  11. Contactor_FB_71 : BOOL ;
  12. Circuit_Breaker_71 : BOOL ;
  13. Emergency_Stop_72 : BOOL ;
  14. Speed_Switch_72 : BOOL ;
  15. Contactor_FB_72 : BOOL ;
  16. Circuit_Breaker_72 : BOOL ;
  17. Emergency_Stop_81 : BOOL ;
  18. Speed_Switch_81 : BOOL ;
  19. Contactor_FB_81 : BOOL ;
  20. Circuit_Breaker_81 : BOOL ;
  21. Emergency_Stop_82 : BOOL ;
  22. Speed_Switch_82 : BOOL ;
  23. Contactor_FB_82 : BOOL ;
  24. Circuit_Breaker_82 : BOOL ;
  25. Emergency_Stop_87 : BOOL ;
  26. Speed_Switch_87 : BOOL ;
  27. Contactor_FB_87 : BOOL ;
  28. Circuit_Breaker_87 : BOOL ;
  29. Emergency_Stop_83 : BOOL ;
  30. Speed_Switch_83 : BOOL ;
  31. Contactor_FB_83 : BOOL ;
  32. Circuit_Breaker_83 : BOOL ;
  33. Emergency_Stop_84 : BOOL ;
  34. Speed_Switch_84 : BOOL ;
  35. Contactor_FB_84 : BOOL ;
  36. Circuit_Breaker_84 : BOOL ;
  37. Emergency_Stop_85 : BOOL ;
  38. Speed_Switch_85 : BOOL ;
  39. Contactor_FB_85 : BOOL ;
  40. Circuit_Breaker_85 : BOOL ;
  41. Emergency_Stop_86 : BOOL ;
  42. Speed_Switch_86 : BOOL ;
  43. Contactor_FB_86 : BOOL ;
  44. Circuit_Breaker_86 : BOOL ;
  45. Level_Switch_high : BOOL ;
  46. Level_Switch_High_High : BOOL ;
  47. Circuit_Breaker_20 : BOOL ;
  48. OPEN_ALARM_JACK1 : BOOL ;
  49. CLOSE_ALARM_JACK1 : BOOL ;
  50. OPEN_ALARM_JACK2 : BOOL ;
  51. CLOSE_ALARM_JACK2 : BOOL ;
  52. OPEN_ALARM_JACK3 : BOOL ;
  53. CLOSE_ALARM_JACK3 : BOOL ;
  54. OPEN_ALARM_JACK4 : BOOL ;
  55. CLOSE_ALARM_JACK4 : BOOL ;
  56. OPEN_ALARM_JACK5 : BOOL ;
  57. CLOSE_ALARM_JACK5 : BOOL ;
  58. OPEN_ALARM_JACK6 : BOOL ;
  59. CLOSE_ALARM_JACK6 : BOOL ;
  60. OPEN_ALARM_JACK7 : BOOL ;
  61. CLOSE_ALARM_JACK7 : BOOL ;
  62. OPEN_ALARM_JACK8 : BOOL ;
  63. CLOSE_ALARM_JACK8 : BOOL ;
  64. Circuit_Breaker_C3_Alarm : BOOL ;
  65. Circuit_Breaker_C5_Alarm : BOOL ;
  66. Circuit_Breaker_C4_Alarm : BOOL ;
  67. Delta_P_High : BOOL ;
  68. PROFIBUS_ALARM : BOOL ;
  69. END_STRUCT ;
  70. BEGIN
  71. Emergency_Stop_73 := FALSE;
  72. Speed_Switch_73 := FALSE;
  73. Contactor_FB_73 := FALSE;
  74. Circuit_Breaker_73 := FALSE;
  75. Emergency_Stop_71 := FALSE;
  76. Speed_Switch_71 := FALSE;
  77. Contactor_FB_71 := FALSE;
  78. Circuit_Breaker_71 := FALSE;
  79. Emergency_Stop_72 := FALSE;
  80. Speed_Switch_72 := FALSE;
  81. Contactor_FB_72 := FALSE;
  82. Circuit_Breaker_72 := FALSE;
  83. Emergency_Stop_81 := FALSE;
  84. Speed_Switch_81 := FALSE;
  85. Contactor_FB_81 := FALSE;
  86. Circuit_Breaker_81 := FALSE;
  87. Emergency_Stop_82 := FALSE;
  88. Speed_Switch_82 := FALSE;
  89. Contactor_FB_82 := FALSE;
  90. Circuit_Breaker_82 := FALSE;
  91. Emergency_Stop_87 := FALSE;
  92. Speed_Switch_87 := FALSE;
  93. Contactor_FB_87 := FALSE;
  94. Circuit_Breaker_87 := FALSE;
  95. Emergency_Stop_83 := FALSE;
  96. Speed_Switch_83 := FALSE;
  97. Contactor_FB_83 := FALSE;
  98. Circuit_Breaker_83 := FALSE;
  99. Emergency_Stop_84 := FALSE;
  100. Speed_Switch_84 := FALSE;
  101. Contactor_FB_84 := FALSE;
  102. Circuit_Breaker_84 := FALSE;
  103. Emergency_Stop_85 := FALSE;
  104. Speed_Switch_85 := FALSE;
  105. Contactor_FB_85 := FALSE;
  106. Circuit_Breaker_85 := FALSE;
  107. Emergency_Stop_86 := FALSE;
  108. Speed_Switch_86 := FALSE;
  109. Contactor_FB_86 := FALSE;
  110. Circuit_Breaker_86 := FALSE;
  111. Level_Switch_high := FALSE;
  112. Level_Switch_High_High := FALSE;
  113. Circuit_Breaker_20 := FALSE;
  114. OPEN_ALARM_JACK1 := FALSE;
  115. CLOSE_ALARM_JACK1 := FALSE;
  116. OPEN_ALARM_JACK2 := FALSE;
  117. CLOSE_ALARM_JACK2 := FALSE;
  118. OPEN_ALARM_JACK3 := FALSE;
  119. CLOSE_ALARM_JACK3 := FALSE;
  120. OPEN_ALARM_JACK4 := FALSE;
  121. CLOSE_ALARM_JACK4 := FALSE;
  122. OPEN_ALARM_JACK5 := FALSE;
  123. CLOSE_ALARM_JACK5 := FALSE;
  124. OPEN_ALARM_JACK6 := FALSE;
  125. CLOSE_ALARM_JACK6 := FALSE;
  126. OPEN_ALARM_JACK7 := FALSE;
  127. CLOSE_ALARM_JACK7 := FALSE;
  128. OPEN_ALARM_JACK8 := FALSE;
  129. CLOSE_ALARM_JACK8 := FALSE;
  130. Circuit_Breaker_C3_Alarm := FALSE;
  131. Circuit_Breaker_C5_Alarm := FALSE;
  132. Circuit_Breaker_C4_Alarm := FALSE;
  133. Delta_P_High := FALSE;
  134. PROFIBUS_ALARM := FALSE;
  135. END_DATA_BLOCK
  136. DATA_BLOCK DB 2
  137. TITLE =
  138. VERSION : 0.1
  139. STRUCT
  140. HandshakeToCCR : BOOL ; //Temporary placeholder variable
  141. ProfibusControl : BOOL ;
  142. AlarmCommonToCCR : BOOL ;
  143. Heater_ON : BOOL ;
  144. Bag_House_Start : BOOL ;
  145. PulseMode : BOOL ;
  146. FeedbackRun : BOOL ;
  147. Ready : BOOL ;
  148. Return : BOOL ;
  149. Fault : BOOL ;
  150. Spare_012 : BOOL ;
  151. Emergency_Mode : BOOL ;
  152. Mode_1 : BOOL ;
  153. Mode_2 : BOOL ;
  154. Mode_3 : BOOL ;
  155. Spare_017 : BOOL ;
  156. Flap1_Open : BOOL ;
  157. Flap1_Close : BOOL ;
  158. Flap2_Open : BOOL ;
  159. Flap2_Close : BOOL ;
  160. Flap3_Open : BOOL ;
  161. Flap3_Close : BOOL ;
  162. Flap4_Open : BOOL ;
  163. Flap4_Close : BOOL ;
  164. Flap5_Open : BOOL ;
  165. Flap5_Close : BOOL ;
  166. Flap6_Open : BOOL ;
  167. Flap6_Close : BOOL ;
  168. Flap7_Open : BOOL ;
  169. Flap7_Close : BOOL ;
  170. Flap8_Open : BOOL ;
  171. Flap8_Close : BOOL ;
  172. Emergency_Stop_73 : BOOL ;
  173. Speed_Switch_73 : BOOL ;
  174. Contactor_FB_73 : BOOL ;
  175. Circuit_Breaker_73 : BOOL ;
  176. Emergency_Stop_71 : BOOL ;
  177. Speed_Switch_71 : BOOL ;
  178. Contactor_FB_71 : BOOL ;
  179. Circuit_Breaker_71 : BOOL ;
  180. Emergency_Stop_72 : BOOL ;
  181. Speed_Switch_72 : BOOL ;
  182. Contactor_FB_72 : BOOL ;
  183. Circuit_Breaker_72 : BOOL ;
  184. Emergency_Stop_81 : BOOL ;
  185. Speed_Switch_81 : BOOL ;
  186. Contactor_FB_81 : BOOL ;
  187. Circuit_Breaker_81 : BOOL ;
  188. Emergency_Stop_82 : BOOL ;
  189. Speed_Switch_82 : BOOL ;
  190. Contactor_FB_82 : BOOL ;
  191. Circuit_Breaker_82 : BOOL ;
  192. Emergency_Stop_87 : BOOL ;
  193. Speed_Switch_87 : BOOL ;
  194. Contactor_FB_87 : BOOL ;
  195. Circuit_Breaker_87 : BOOL ;
  196. Emergency_Stop_83 : BOOL ;
  197. Speed_Switch_83 : BOOL ;
  198. Contactor_FB_83 : BOOL ;
  199. Circuit_Breaker_83 : BOOL ;
  200. Emergency_Stop_84 : BOOL ;
  201. Speed_Switch_84 : BOOL ;
  202. Contactor_FB_84 : BOOL ;
  203. Circuit_Breaker_84 : BOOL ;
  204. Emergency_Stop_85 : BOOL ;
  205. Speed_Switch_85 : BOOL ;
  206. Contactor_FB_85 : BOOL ;
  207. Circuit_Breaker_85 : BOOL ;
  208. Emergency_Stop_86 : BOOL ;
  209. Speed_Switch_86 : BOOL ;
  210. Contactor_FB_86 : BOOL ;
  211. Circuit_Breaker_86 : BOOL ;
  212. Level_Switch_high : BOOL ;
  213. Level_Switch_High_High : BOOL ;
  214. Circuit_Breaker_20 : BOOL ;
  215. Fresh_Air_is_Open : BOOL ;
  216. Fresh_Air_is_Close : BOOL ;
  217. Spare_095 : BOOL ;
  218. Spare_096 : BOOL ;
  219. Spare_097 : BOOL ;
  220. OPEN_ALARM_JACK1 : BOOL ;
  221. CLOSE_ALARM_JACK1 : BOOL ;
  222. OPEN_ALARM_JACK2 : BOOL ;
  223. CLOSE_ALARM_JACK2 : BOOL ;
  224. OPEN_ALARM_JACK3 : BOOL ;
  225. CLOSE_ALARM_JACK3 : BOOL ;
  226. OPEN_ALARM_JACK4 : BOOL ;
  227. CLOSE_ALARM_JACK4 : BOOL ;
  228. OPEN_ALARM_JACK5 : BOOL ;
  229. CLOSE_ALARM_JACK5 : BOOL ;
  230. OPEN_ALARM_JACK6 : BOOL ;
  231. CLOSE_ALARM_JACK6 : BOOL ;
  232. OPEN_ALARM_JACK7 : BOOL ;
  233. CLOSE_ALARM_JACK7 : BOOL ;
  234. OPEN_ALARM_JACK8 : BOOL ;
  235. CLOSE_ALARM_JACK8 : BOOL ;
  236. Circuit_Breaker_C1_Alarm : BOOL ;
  237. Circuit_Breaker_C3_Alarm : BOOL ;
  238. Circuit_Breaker_C5_Alarm : BOOL ;
  239. Circuit_Breaker_C4_Alarm : BOOL ;
  240. Delta_P_High : BOOL ;
  241. PROFIBUS_ALARM : BOOL ;
  242. Air_Pressure_Low : BOOL ;
  243. Spare_146 : BOOL ;
  244. Solenoeid_No : INT ;
  245. Delta_Pressure : INT ;
  246. Jack_No : INT ;
  247. Temperature_Befor_FA : INT ;
  248. Temperature_After_FA : INT ;
  249. Delta_Pressure_Setpoint : INT ;
  250. END_STRUCT ;
  251. BEGIN
  252. HandshakeToCCR := FALSE;
  253. ProfibusControl := FALSE;
  254. AlarmCommonToCCR := FALSE;
  255. Heater_ON := FALSE;
  256. Bag_House_Start := FALSE;
  257. PulseMode := FALSE;
  258. FeedbackRun := FALSE;
  259. Ready := FALSE;
  260. Return := FALSE;
  261. Fault := FALSE;
  262. Spare_012 := FALSE;
  263. Emergency_Mode := FALSE;
  264. Mode_1 := FALSE;
  265. Mode_2 := FALSE;
  266. Mode_3 := FALSE;
  267. Spare_017 := FALSE;
  268. Flap1_Open := FALSE;
  269. Flap1_Close := FALSE;
  270. Flap2_Open := FALSE;
  271. Flap2_Close := FALSE;
  272. Flap3_Open := FALSE;
  273. Flap3_Close := FALSE;
  274. Flap4_Open := FALSE;
  275. Flap4_Close := FALSE;
  276. Flap5_Open := FALSE;
  277. Flap5_Close := FALSE;
  278. Flap6_Open := FALSE;
  279. Flap6_Close := FALSE;
  280. Flap7_Open := FALSE;
  281. Flap7_Close := FALSE;
  282. Flap8_Open := FALSE;
  283. Flap8_Close := FALSE;
  284. Emergency_Stop_73 := FALSE;
  285. Speed_Switch_73 := FALSE;
  286. Contactor_FB_73 := FALSE;
  287. Circuit_Breaker_73 := FALSE;
  288. Emergency_Stop_71 := FALSE;
  289. Speed_Switch_71 := FALSE;
  290. Contactor_FB_71 := FALSE;
  291. Circuit_Breaker_71 := FALSE;
  292. Emergency_Stop_72 := FALSE;
  293. Speed_Switch_72 := FALSE;
  294. Contactor_FB_72 := FALSE;
  295. Circuit_Breaker_72 := FALSE;
  296. Emergency_Stop_81 := FALSE;
  297. Speed_Switch_81 := FALSE;
  298. Contactor_FB_81 := FALSE;
  299. Circuit_Breaker_81 := FALSE;
  300. Emergency_Stop_82 := FALSE;
  301. Speed_Switch_82 := FALSE;
  302. Contactor_FB_82 := FALSE;
  303. Circuit_Breaker_82 := FALSE;
  304. Emergency_Stop_87 := FALSE;
  305. Speed_Switch_87 := FALSE;
  306. Contactor_FB_87 := FALSE;
  307. Circuit_Breaker_87 := FALSE;
  308. Emergency_Stop_83 := FALSE;
  309. Speed_Switch_83 := FALSE;
  310. Contactor_FB_83 := FALSE;
  311. Circuit_Breaker_83 := FALSE;
  312. Emergency_Stop_84 := FALSE;
  313. Speed_Switch_84 := FALSE;
  314. Contactor_FB_84 := FALSE;
  315. Circuit_Breaker_84 := FALSE;
  316. Emergency_Stop_85 := FALSE;
  317. Speed_Switch_85 := FALSE;
  318. Contactor_FB_85 := FALSE;
  319. Circuit_Breaker_85 := FALSE;
  320. Emergency_Stop_86 := FALSE;
  321. Speed_Switch_86 := FALSE;
  322. Contactor_FB_86 := FALSE;
  323. Circuit_Breaker_86 := FALSE;
  324. Level_Switch_high := FALSE;
  325. Level_Switch_High_High := FALSE;
  326. Circuit_Breaker_20 := FALSE;
  327. Fresh_Air_is_Open := FALSE;
  328. Fresh_Air_is_Close := FALSE;
  329. Spare_095 := FALSE;
  330. Spare_096 := FALSE;
  331. Spare_097 := FALSE;
  332. OPEN_ALARM_JACK1 := FALSE;
  333. CLOSE_ALARM_JACK1 := FALSE;
  334. OPEN_ALARM_JACK2 := FALSE;
  335. CLOSE_ALARM_JACK2 := FALSE;
  336. OPEN_ALARM_JACK3 := FALSE;
  337. CLOSE_ALARM_JACK3 := FALSE;
  338. OPEN_ALARM_JACK4 := FALSE;
  339. CLOSE_ALARM_JACK4 := FALSE;
  340. OPEN_ALARM_JACK5 := FALSE;
  341. CLOSE_ALARM_JACK5 := FALSE;
  342. OPEN_ALARM_JACK6 := FALSE;
  343. CLOSE_ALARM_JACK6 := FALSE;
  344. OPEN_ALARM_JACK7 := FALSE;
  345. CLOSE_ALARM_JACK7 := FALSE;
  346. OPEN_ALARM_JACK8 := FALSE;
  347. CLOSE_ALARM_JACK8 := FALSE;
  348. Circuit_Breaker_C1_Alarm := FALSE;
  349. Circuit_Breaker_C3_Alarm := FALSE;
  350. Circuit_Breaker_C5_Alarm := FALSE;
  351. Circuit_Breaker_C4_Alarm := FALSE;
  352. Delta_P_High := FALSE;
  353. PROFIBUS_ALARM := FALSE;
  354. Air_Pressure_Low := FALSE;
  355. Spare_146 := FALSE;
  356. Solenoeid_No := 0;
  357. Delta_Pressure := 0;
  358. Jack_No := 0;
  359. Temperature_Befor_FA := 0;
  360. Temperature_After_FA := 0;
  361. Delta_Pressure_Setpoint := 0;
  362. END_DATA_BLOCK
  363. FUNCTION FC 5 : VOID
  364. TITLE =
  365. //One Solenoeid On each Compartment
  366. VERSION : 0.1
  367. VAR_INPUT
  368. Counter_input : INT ;
  369. END_VAR
  370. VAR_OUTPUT
  371. New_Number : INT ;
  372. END_VAR
  373. VAR_TEMP
  374. temp1 : INT ;
  375. temp2 : INT ;
  376. temp3 : INT ;
  377. temp4 : INT ;
  378. END_VAR
  379. BEGIN
  380. NETWORK
  381. TITLE =
  382. A( ;
  383. A( ;
  384. L #Counter_input;
  385. L 8;
  386. /I ;
  387. T #temp1;
  388. AN OV;
  389. SAVE ;
  390. CLR ;
  391. A BR;
  392. ) ;
  393. JNB _001;
  394. L #temp1;
  395. L 8;
  396. *I ;
  397. T #temp2;
  398. AN OV;
  399. SAVE ;
  400. CLR ;
  401. _001: A BR;
  402. ) ;
  403. JNB _002;
  404. L #Counter_input;
  405. L #temp2;
  406. -I ;
  407. T #temp3;
  408. _002: NOP 0;
  409. NETWORK
  410. TITLE =
  411. A( ;
  412. L #temp3;
  413. L 24;
  414. *I ;
  415. T #temp4;
  416. AN OV;
  417. SAVE ;
  418. CLR ;
  419. A BR;
  420. ) ;
  421. JNB _003;
  422. L #temp4;
  423. L #temp1;
  424. +I ;
  425. T #New_Number;
  426. _003: NOP 0;
  427. END_FUNCTION
  428. FUNCTION FC 8 : VOID
  429. TITLE =
  430. VERSION : 0.1
  431. VAR_INPUT
  432. Input : INT ;
  433. END_VAR
  434. VAR_OUTPUT
  435. New_Number : INT ;
  436. END_VAR
  437. VAR_TEMP
  438. Temp1 : INT ;
  439. Temp2 : INT ;
  440. Temp3 : INT ;
  441. Temp4 : INT ;
  442. END_VAR
  443. BEGIN
  444. NETWORK
  445. TITLE =
  446. A( ;
  447. A( ;
  448. L #Input;
  449. L 6;
  450. /I ;
  451. T #Temp1;
  452. AN OV;
  453. SAVE ;
  454. CLR ;
  455. A BR;
  456. ) ;
  457. JNB _001;
  458. L #Temp1;
  459. L 6;
  460. *I ;
  461. T #Temp2;
  462. AN OV;
  463. SAVE ;
  464. CLR ;
  465. _001: A BR;
  466. ) ;
  467. JNB _002;
  468. L #Input;
  469. L #Temp2;
  470. -I ;
  471. T #Temp3;
  472. _002: NOP 0;
  473. NETWORK
  474. TITLE =
  475. A( ;
  476. A( ;
  477. A( ;
  478. A( ;
  479. L #Temp1;
  480. L 24;
  481. *I ;
  482. T #Temp4;
  483. AN OV;
  484. SAVE ;
  485. CLR ;
  486. A BR;
  487. ) ;
  488. JNB _003;
  489. L #Temp4;
  490. L #Temp3;
  491. +I ;
  492. T #Temp4;
  493. AN OV;
  494. SAVE ;
  495. CLR ;
  496. _003: A BR;
  497. ) ;
  498. JNB _004;
  499. L #Temp4;
  500. L 192;
  501. /I ;
  502. T #Temp1;
  503. AN OV;
  504. SAVE ;
  505. CLR ;
  506. _004: A BR;
  507. ) ;
  508. JNB _005;
  509. L #Temp1;
  510. L 192;
  511. *I ;
  512. T #Temp2;
  513. AN OV;
  514. SAVE ;
  515. CLR ;
  516. _005: A BR;
  517. ) ;
  518. JNB _006;
  519. L #Temp4;
  520. L #Temp2;
  521. -I ;
  522. T #Temp3;
  523. _006: NOP 0;
  524. NETWORK
  525. TITLE =
  526. A( ;
  527. L #Temp1;
  528. L 6;
  529. *I ;
  530. T #Temp2;
  531. AN OV;
  532. SAVE ;
  533. CLR ;
  534. A BR;
  535. ) ;
  536. JNB _007;
  537. L #Temp2;
  538. L #Temp3;
  539. +I ;
  540. T #New_Number;
  541. _007: NOP 0;
  542. END_FUNCTION
  543. FUNCTION FC 20 : VOID
  544. TITLE =
  545. VERSION : 0.1
  546. VAR_INPUT
  547. MAX : INT ;
  548. MIN : INT ;
  549. END_VAR
  550. VAR_IN_OUT
  551. INPUT_VALUE : INT ;
  552. END_VAR
  553. BEGIN
  554. NETWORK
  555. TITLE =
  556. L #INPUT_VALUE;
  557. L #MAX;
  558. >=I ;
  559. = L 0.0;
  560. A L 0.0;
  561. JNB _001;
  562. L #MAX;
  563. T #INPUT_VALUE;
  564. _001: NOP 0;
  565. AN L 0.0;
  566. A( ;
  567. L #INPUT_VALUE;
  568. L #MIN;
  569. <=I ;
  570. ) ;
  571. JNB _002;
  572. L #MIN;
  573. T #INPUT_VALUE;
  574. _002: NOP 0;
  575. END_FUNCTION
  576. FUNCTION_BLOCK FB 1
  577. TITLE =One Way Motor
  578. VERSION : 0.1
  579. VAR_INPUT
  580. Central_Local : BOOL ;
  581. LB_Start : BOOL ;
  582. LB_Stop : BOOL ;
  583. Emergency_Stop : BOOL ;
  584. Single_Start : BOOL ;
  585. Group_Start : BOOL ;
  586. Group_Stop : BOOL ;
  587. Interlock : BOOL ;
  588. Speed_Switch : BOOL ;
  589. Contactor : BOOL ;
  590. Circuit_Breaker : BOOL ;
  591. Clock : BOOL ;
  592. reset : BOOL ;
  593. Delay_Time : TIMER ;
  594. Group_ON_Timer : TIMER ;
  595. ON_Delay : S5TIME ;
  596. Group_Off_Timer : TIMER ;
  597. Off_Delay : S5TIME ;
  598. END_VAR
  599. VAR_OUTPUT
  600. Speed_Switch_Fault : BOOL ;
  601. Contactor_Fault : BOOL ;
  602. CB_Fault : BOOL ;
  603. Interlock_Fault : BOOL ;
  604. Warning : BOOL ;
  605. Common_Alarm : BOOL ;
  606. Motor_ON : BOOL ;
  607. END_VAR
  608. VAR
  609. Temp1 : BOOL ;
  610. temp2 : BOOL ;
  611. temp3 : BOOL ;
  612. temp4 : BOOL ;
  613. temp5 : BOOL ;
  614. temp6 : BOOL ;
  615. temp7 : BOOL ;
  616. temp8 : BOOL ;
  617. temp9 : BOOL ;
  618. temp10 : BOOL ;
  619. temp11 : BOOL ;
  620. temp12 : BOOL ;
  621. temp13 : BOOL ;
  622. END_VAR
  623. BEGIN
  624. NETWORK
  625. TITLE =
  626. //If System Change to Local Mode then Motor Turn Off
  627. AN #Central_Local;
  628. FP #temp7;
  629. R #Temp1;
  630. NETWORK
  631. TITLE =Start by Local Box
  632. A #Emergency_Stop;
  633. AN #Central_Local;
  634. A #LB_Start;
  635. S #Temp1;
  636. A( ;
  637. ON #Emergency_Stop;
  638. O ;
  639. AN #Central_Local;
  640. AN #LB_Stop;
  641. O #temp8;
  642. ) ;
  643. R #Temp1;
  644. A #Temp1;
  645. = #Motor_ON;
  646. NETWORK
  647. TITLE =Start Single
  648. A #Emergency_Stop;
  649. A #Central_Local;
  650. A #Single_Start;
  651. S #Temp1;
  652. A( ;
  653. ON #Emergency_Stop;
  654. O( ;
  655. AN #Single_Start;
  656. FP #temp11;
  657. A #Central_Local;
  658. ) ;
  659. O #temp8;
  660. ) ;
  661. R #Temp1;
  662. A #Temp1;
  663. = #Motor_ON;
  664. NETWORK
  665. TITLE =
  666. NETWORK
  667. TITLE =
  668. NETWORK
  669. TITLE =
  670. A #Group_ON_Timer;
  671. A #Emergency_Stop;
  672. S #Temp1;
  673. A( ;
  674. ON #Emergency_Stop;
  675. O( ;
  676. AN #Group_Off_Timer;
  677. FP #temp12;
  678. ) ;
  679. O ;
  680. A #Common_Alarm;
  681. A #Central_Local;
  682. ) ;
  683. R #Temp1;
  684. A #Temp1;
  685. = #Motor_ON;
  686. NETWORK
  687. TITLE =Delay for Checking Feedback
  688. NETWORK
  689. TITLE =Checking Contactor Feedback
  690. AN #Contactor;
  691. A #Delay_Time;
  692. A #Motor_ON;
  693. S #temp3;
  694. A #reset;
  695. R #temp3;
  696. A #temp3;
  697. = #Contactor_Fault;
  698. NETWORK
  699. TITLE =Checking Speed Switch Feedback
  700. AN #Speed_Switch;
  701. A #Delay_Time;
  702. A #Motor_ON;
  703. S #temp4;
  704. A #reset;
  705. R #temp4;
  706. A #temp4;
  707. = #Speed_Switch_Fault;
  708. NETWORK
  709. TITLE =Checking Circuit Breaker Feedback
  710. A #Circuit_Breaker;
  711. S #temp5;
  712. A #reset;
  713. R #temp5;
  714. A #temp5;
  715. = #CB_Fault;
  716. NETWORK
  717. TITLE =Checking Interlocking
  718. AN #Interlock;
  719. A #Motor_ON;
  720. S #temp6;
  721. A #reset;
  722. R #temp6;
  723. A #temp6;
  724. = #Interlock_Fault;
  725. NETWORK
  726. TITLE =Make Common Alarm
  727. //If System in Central Mode Dont Check Interlock
  728. O #Contactor_Fault;
  729. O #Speed_Switch_Fault;
  730. O #CB_Fault;
  731. = #temp8;
  732. NETWORK
  733. TITLE =
  734. A #Interlock_Fault;
  735. A #Central_Local;
  736. O #temp8;
  737. = #Common_Alarm;
  738. NETWORK
  739. TITLE =Blancking Alarm
  740. A( ;
  741. O #Common_Alarm;
  742. ON #Emergency_Stop;
  743. ) ;
  744. A #Clock;
  745. = #Warning;
  746. END_FUNCTION_BLOCK
  747. DATA_BLOCK DB 71
  748. TITLE =
  749. VERSION : 0.0
  750. FB 1
  751. BEGIN
  752. Central_Local := FALSE;
  753. LB_Start := FALSE;
  754. LB_Stop := FALSE;
  755. Emergency_Stop := FALSE;
  756. Single_Start := FALSE;
  757. Group_Start := FALSE;
  758. Group_Stop := FALSE;
  759. Interlock := FALSE;
  760. Speed_Switch := FALSE;
  761. Contactor := FALSE;
  762. Circuit_Breaker := FALSE;
  763. Clock := FALSE;
  764. reset := FALSE;
  765. Delay_Time := T 0;
  766. Group_ON_Timer := T 0;
  767. ON_Delay := S5T#0MS;
  768. Group_Off_Timer := T 0;
  769. Off_Delay := S5T#0MS;
  770. Speed_Switch_Fault := FALSE;
  771. Contactor_Fault := FALSE;
  772. CB_Fault := FALSE;
  773. Interlock_Fault := FALSE;
  774. Warning := FALSE;
  775. Common_Alarm := FALSE;
  776. Motor_ON := FALSE;
  777. Temp1 := FALSE;
  778. temp2 := FALSE;
  779. temp3 := FALSE;
  780. temp4 := FALSE;
  781. temp5 := FALSE;
  782. temp6 := FALSE;
  783. temp7 := FALSE;
  784. temp8 := FALSE;
  785. temp9 := FALSE;
  786. temp10 := FALSE;
  787. temp11 := FALSE;
  788. temp12 := FALSE;
  789. temp13 := FALSE;
  790. END_DATA_BLOCK
  791. DATA_BLOCK DB 72
  792. TITLE =
  793. VERSION : 0.0
  794. FB 1
  795. BEGIN
  796. Central_Local := FALSE;
  797. LB_Start := FALSE;
  798. LB_Stop := FALSE;
  799. Emergency_Stop := FALSE;
  800. Single_Start := FALSE;
  801. Group_Start := FALSE;
  802. Group_Stop := FALSE;
  803. Interlock := FALSE;
  804. Speed_Switch := FALSE;
  805. Contactor := FALSE;
  806. Circuit_Breaker := FALSE;
  807. Clock := FALSE;
  808. reset := FALSE;
  809. Delay_Time := T 0;
  810. Group_ON_Timer := T 0;
  811. ON_Delay := S5T#0MS;
  812. Group_Off_Timer := T 0;
  813. Off_Delay := S5T#0MS;
  814. Speed_Switch_Fault := FALSE;
  815. Contactor_Fault := FALSE;
  816. CB_Fault := FALSE;
  817. Interlock_Fault := FALSE;
  818. Warning := FALSE;
  819. Common_Alarm := FALSE;
  820. Motor_ON := FALSE;
  821. Temp1 := FALSE;
  822. temp2 := FALSE;
  823. temp3 := FALSE;
  824. temp4 := FALSE;
  825. temp5 := FALSE;
  826. temp6 := FALSE;
  827. temp7 := FALSE;
  828. temp8 := FALSE;
  829. temp9 := FALSE;
  830. temp10 := FALSE;
  831. temp11 := FALSE;
  832. temp12 := FALSE;
  833. temp13 := FALSE;
  834. END_DATA_BLOCK
  835. DATA_BLOCK DB 73
  836. TITLE =
  837. VERSION : 0.0
  838. FB 1
  839. BEGIN
  840. Central_Local := FALSE;
  841. LB_Start := FALSE;
  842. LB_Stop := FALSE;
  843. Emergency_Stop := FALSE;
  844. Single_Start := FALSE;
  845. Group_Start := FALSE;
  846. Group_Stop := FALSE;
  847. Interlock := FALSE;
  848. Speed_Switch := FALSE;
  849. Contactor := FALSE;
  850. Circuit_Breaker := FALSE;
  851. Clock := FALSE;
  852. reset := FALSE;
  853. Delay_Time := T 0;
  854. Group_ON_Timer := T 0;
  855. ON_Delay := S5T#0MS;
  856. Group_Off_Timer := T 0;
  857. Off_Delay := S5T#0MS;
  858. Speed_Switch_Fault := FALSE;
  859. Contactor_Fault := FALSE;
  860. CB_Fault := FALSE;
  861. Interlock_Fault := FALSE;
  862. Warning := FALSE;
  863. Common_Alarm := FALSE;
  864. Motor_ON := FALSE;
  865. Temp1 := FALSE;
  866. temp2 := FALSE;
  867. temp3 := FALSE;
  868. temp4 := FALSE;
  869. temp5 := FALSE;
  870. temp6 := FALSE;
  871. temp7 := FALSE;
  872. temp8 := FALSE;
  873. temp9 := FALSE;
  874. temp10 := FALSE;
  875. temp11 := FALSE;
  876. temp12 := FALSE;
  877. temp13 := FALSE;
  878. END_DATA_BLOCK
  879. DATA_BLOCK DB 81
  880. TITLE =
  881. VERSION : 0.0
  882. FB 1
  883. BEGIN
  884. Central_Local := FALSE;
  885. LB_Start := FALSE;
  886. LB_Stop := FALSE;
  887. Emergency_Stop := FALSE;
  888. Single_Start := FALSE;
  889. Group_Start := FALSE;
  890. Group_Stop := FALSE;
  891. Interlock := FALSE;
  892. Speed_Switch := FALSE;
  893. Contactor := FALSE;
  894. Circuit_Breaker := FALSE;
  895. Clock := FALSE;
  896. reset := FALSE;
  897. Delay_Time := T 0;
  898. Group_ON_Timer := T 0;
  899. ON_Delay := S5T#0MS;
  900. Group_Off_Timer := T 0;
  901. Off_Delay := S5T#0MS;
  902. Speed_Switch_Fault := FALSE;
  903. Contactor_Fault := FALSE;
  904. CB_Fault := FALSE;
  905. Interlock_Fault := FALSE;
  906. Warning := FALSE;
  907. Common_Alarm := FALSE;
  908. Motor_ON := FALSE;
  909. Temp1 := FALSE;
  910. temp2 := FALSE;
  911. temp3 := FALSE;
  912. temp4 := FALSE;
  913. temp5 := FALSE;
  914. temp6 := FALSE;
  915. temp7 := FALSE;
  916. temp8 := FALSE;
  917. temp9 := FALSE;
  918. temp10 := FALSE;
  919. temp11 := FALSE;
  920. temp12 := FALSE;
  921. temp13 := FALSE;
  922. END_DATA_BLOCK
  923. DATA_BLOCK DB 82
  924. TITLE =
  925. VERSION : 0.0
  926. FB 1
  927. BEGIN
  928. Central_Local := FALSE;
  929. LB_Start := FALSE;
  930. LB_Stop := FALSE;
  931. Emergency_Stop := FALSE;
  932. Single_Start := FALSE;
  933. Group_Start := FALSE;
  934. Group_Stop := FALSE;
  935. Interlock := FALSE;
  936. Speed_Switch := FALSE;
  937. Contactor := FALSE;
  938. Circuit_Breaker := FALSE;
  939. Clock := FALSE;
  940. reset := FALSE;
  941. Delay_Time := T 0;
  942. Group_ON_Timer := T 0;
  943. ON_Delay := S5T#0MS;
  944. Group_Off_Timer := T 0;
  945. Off_Delay := S5T#0MS;
  946. Speed_Switch_Fault := FALSE;
  947. Contactor_Fault := FALSE;
  948. CB_Fault := FALSE;
  949. Interlock_Fault := FALSE;
  950. Warning := FALSE;
  951. Common_Alarm := FALSE;
  952. Motor_ON := FALSE;
  953. Temp1 := FALSE;
  954. temp2 := FALSE;
  955. temp3 := FALSE;
  956. temp4 := FALSE;
  957. temp5 := FALSE;
  958. temp6 := FALSE;
  959. temp7 := FALSE;
  960. temp8 := FALSE;
  961. temp9 := FALSE;
  962. temp10 := FALSE;
  963. temp11 := FALSE;
  964. temp12 := FALSE;
  965. temp13 := FALSE;
  966. END_DATA_BLOCK
  967. DATA_BLOCK DB 83
  968. TITLE =
  969. VERSION : 0.0
  970. FB 1
  971. BEGIN
  972. Central_Local := FALSE;
  973. LB_Start := FALSE;
  974. LB_Stop := FALSE;
  975. Emergency_Stop := FALSE;
  976. Single_Start := FALSE;
  977. Group_Start := FALSE;
  978. Group_Stop := FALSE;
  979. Interlock := FALSE;
  980. Speed_Switch := FALSE;
  981. Contactor := FALSE;
  982. Circuit_Breaker := FALSE;
  983. Clock := FALSE;
  984. reset := FALSE;
  985. Delay_Time := T 0;
  986. Group_ON_Timer := T 0;
  987. ON_Delay := S5T#0MS;
  988. Group_Off_Timer := T 0;
  989. Off_Delay := S5T#0MS;
  990. Speed_Switch_Fault := FALSE;
  991. Contactor_Fault := FALSE;
  992. CB_Fault := FALSE;
  993. Interlock_Fault := FALSE;
  994. Warning := FALSE;
  995. Common_Alarm := FALSE;
  996. Motor_ON := FALSE;
  997. Temp1 := FALSE;
  998. temp2 := FALSE;
  999. temp3 := FALSE;
  1000. temp4 := FALSE;
  1001. temp5 := FALSE;
  1002. temp6 := FALSE;
  1003. temp7 := FALSE;
  1004. temp8 := FALSE;
  1005. temp9 := FALSE;
  1006. temp10 := FALSE;
  1007. temp11 := FALSE;
  1008. temp12 := FALSE;
  1009. temp13 := FALSE;
  1010. END_DATA_BLOCK
  1011. DATA_BLOCK DB 84
  1012. TITLE =
  1013. VERSION : 0.0
  1014. FB 1
  1015. BEGIN
  1016. Central_Local := FALSE;
  1017. LB_Start := FALSE;
  1018. LB_Stop := FALSE;
  1019. Emergency_Stop := FALSE;
  1020. Single_Start := FALSE;
  1021. Group_Start := FALSE;
  1022. Group_Stop := FALSE;
  1023. Interlock := FALSE;
  1024. Speed_Switch := FALSE;
  1025. Contactor := FALSE;
  1026. Circuit_Breaker := FALSE;
  1027. Clock := FALSE;
  1028. reset := FALSE;
  1029. Delay_Time := T 0;
  1030. Group_ON_Timer := T 0;
  1031. ON_Delay := S5T#0MS;
  1032. Group_Off_Timer := T 0;
  1033. Off_Delay := S5T#0MS;
  1034. Speed_Switch_Fault := FALSE;
  1035. Contactor_Fault := FALSE;
  1036. CB_Fault := FALSE;
  1037. Interlock_Fault := FALSE;
  1038. Warning := FALSE;
  1039. Common_Alarm := FALSE;
  1040. Motor_ON := FALSE;
  1041. Temp1 := FALSE;
  1042. temp2 := FALSE;
  1043. temp3 := FALSE;
  1044. temp4 := FALSE;
  1045. temp5 := FALSE;
  1046. temp6 := FALSE;
  1047. temp7 := FALSE;
  1048. temp8 := FALSE;
  1049. temp9 := FALSE;
  1050. temp10 := FALSE;
  1051. temp11 := FALSE;
  1052. temp12 := FALSE;
  1053. temp13 := FALSE;
  1054. END_DATA_BLOCK
  1055. DATA_BLOCK DB 85
  1056. TITLE =
  1057. VERSION : 0.0
  1058. FB 1
  1059. BEGIN
  1060. Central_Local := FALSE;
  1061. LB_Start := FALSE;
  1062. LB_Stop := FALSE;
  1063. Emergency_Stop := FALSE;
  1064. Single_Start := FALSE;
  1065. Group_Start := FALSE;
  1066. Group_Stop := FALSE;
  1067. Interlock := FALSE;
  1068. Speed_Switch := FALSE;
  1069. Contactor := FALSE;
  1070. Circuit_Breaker := FALSE;
  1071. Clock := FALSE;
  1072. reset := FALSE;
  1073. Delay_Time := T 0;
  1074. Group_ON_Timer := T 0;
  1075. ON_Delay := S5T#0MS;
  1076. Group_Off_Timer := T 0;
  1077. Off_Delay := S5T#0MS;
  1078. Speed_Switch_Fault := FALSE;
  1079. Contactor_Fault := FALSE;
  1080. CB_Fault := FALSE;
  1081. Interlock_Fault := FALSE;
  1082. Warning := FALSE;
  1083. Common_Alarm := FALSE;
  1084. Motor_ON := FALSE;
  1085. Temp1 := FALSE;
  1086. temp2 := FALSE;
  1087. temp3 := FALSE;
  1088. temp4 := FALSE;
  1089. temp5 := FALSE;
  1090. temp6 := FALSE;
  1091. temp7 := FALSE;
  1092. temp8 := FALSE;
  1093. temp9 := FALSE;
  1094. temp10 := FALSE;
  1095. temp11 := FALSE;
  1096. temp12 := FALSE;
  1097. temp13 := FALSE;
  1098. END_DATA_BLOCK
  1099. DATA_BLOCK DB 86
  1100. TITLE =
  1101. VERSION : 0.0
  1102. FB 1
  1103. BEGIN
  1104. Central_Local := FALSE;
  1105. LB_Start := FALSE;
  1106. LB_Stop := FALSE;
  1107. Emergency_Stop := FALSE;
  1108. Single_Start := FALSE;
  1109. Group_Start := FALSE;
  1110. Group_Stop := FALSE;
  1111. Interlock := FALSE;
  1112. Speed_Switch := FALSE;
  1113. Contactor := FALSE;
  1114. Circuit_Breaker := FALSE;
  1115. Clock := FALSE;
  1116. reset := FALSE;
  1117. Delay_Time := T 0;
  1118. Group_ON_Timer := T 0;
  1119. ON_Delay := S5T#0MS;
  1120. Group_Off_Timer := T 0;
  1121. Off_Delay := S5T#0MS;
  1122. Speed_Switch_Fault := FALSE;
  1123. Contactor_Fault := FALSE;
  1124. CB_Fault := FALSE;
  1125. Interlock_Fault := FALSE;
  1126. Warning := FALSE;
  1127. Common_Alarm := FALSE;
  1128. Motor_ON := FALSE;
  1129. Temp1 := FALSE;
  1130. temp2 := FALSE;
  1131. temp3 := FALSE;
  1132. temp4 := FALSE;
  1133. temp5 := FALSE;
  1134. temp6 := FALSE;
  1135. temp7 := FALSE;
  1136. temp8 := FALSE;
  1137. temp9 := FALSE;
  1138. temp10 := FALSE;
  1139. temp11 := FALSE;
  1140. temp12 := FALSE;
  1141. temp13 := FALSE;
  1142. END_DATA_BLOCK
  1143. DATA_BLOCK DB 87
  1144. TITLE =
  1145. VERSION : 0.0
  1146. FB 1
  1147. BEGIN
  1148. Central_Local := FALSE;
  1149. LB_Start := FALSE;
  1150. LB_Stop := FALSE;
  1151. Emergency_Stop := FALSE;
  1152. Single_Start := FALSE;
  1153. Group_Start := FALSE;
  1154. Group_Stop := FALSE;
  1155. Interlock := FALSE;
  1156. Speed_Switch := FALSE;
  1157. Contactor := FALSE;
  1158. Circuit_Breaker := FALSE;
  1159. Clock := FALSE;
  1160. reset := FALSE;
  1161. Delay_Time := T 0;
  1162. Group_ON_Timer := T 0;
  1163. ON_Delay := S5T#0MS;
  1164. Group_Off_Timer := T 0;
  1165. Off_Delay := S5T#0MS;
  1166. Speed_Switch_Fault := FALSE;
  1167. Contactor_Fault := FALSE;
  1168. CB_Fault := FALSE;
  1169. Interlock_Fault := FALSE;
  1170. Warning := FALSE;
  1171. Common_Alarm := FALSE;
  1172. Motor_ON := FALSE;
  1173. Temp1 := FALSE;
  1174. temp2 := FALSE;
  1175. temp3 := FALSE;
  1176. temp4 := FALSE;
  1177. temp5 := FALSE;
  1178. temp6 := FALSE;
  1179. temp7 := FALSE;
  1180. temp8 := FALSE;
  1181. temp9 := FALSE;
  1182. temp10 := FALSE;
  1183. temp11 := FALSE;
  1184. temp12 := FALSE;
  1185. temp13 := FALSE;
  1186. END_DATA_BLOCK
  1187. FUNCTION_BLOCK FB 2
  1188. TITLE =Pulse Controller
  1189. VERSION : 0.1
  1190. VAR_INPUT
  1191. Number_Of_Airtank : INT ;
  1192. Number_Of_SV_In_Airtank : INT ;
  1193. Mode : INT ;
  1194. Jack_Closed : BOOL ;
  1195. Timer_Off : TIMER ;
  1196. Time_Interval_second : INT ;
  1197. Timer_ON : TIMER ;
  1198. Pulse_Time_mSecond : INT ;
  1199. Internal_Timer : TIMER ;
  1200. END_VAR
  1201. VAR_OUTPUT
  1202. Pulse : BOOL ;
  1203. Output_Byte : BYTE ;
  1204. AirTank_Number : INT ;
  1205. SV_Number_In_AirTank : INT ;
  1206. Out_Jack : BYTE ;
  1207. END_VAR
  1208. VAR
  1209. ON_Time : WORD ;
  1210. ON_Temp : S5TIME ;
  1211. Off_Time : WORD ;
  1212. OFF_Temp : S5TIME ;
  1213. SV_Number : INT ;
  1214. temp20 : BOOL ;
  1215. temp4 : INT ;
  1216. END_VAR
  1217. VAR_TEMP
  1218. temp1 : S5TIME ;
  1219. temp2 : INT ;
  1220. temp3 : INT ;
  1221. temp5 : INT ;
  1222. temp6 : INT ;
  1223. temp7 : WORD ;
  1224. END_VAR
  1225. BEGIN
  1226. NETWORK
  1227. TITLE =
  1228. A( ;
  1229. A( ;
  1230. A( ;
  1231. L #Time_Interval_second;
  1232. L 2;
  1233. -I ;
  1234. T #temp4;
  1235. AN OV;
  1236. SAVE ;
  1237. CLR ;
  1238. A BR;
  1239. ) ;
  1240. JNB _001;
  1241. L #temp4;
  1242. ITB ;
  1243. T #Off_Time;
  1244. AN OV;
  1245. SAVE ;
  1246. CLR ;
  1247. _001: A BR;
  1248. ) ;
  1249. JNB _002;
  1250. L #Off_Time;
  1251. L W#16#2000;
  1252. OW ;
  1253. T #Off_Time;
  1254. SET ;
  1255. SAVE ;
  1256. CLR ;
  1257. _002: A BR;
  1258. ) ;
  1259. JNB _003;
  1260. L #Off_Time;
  1261. T #OFF_Temp;
  1262. _003: NOP 0;
  1263. NETWORK
  1264. TITLE =
  1265. NETWORK
  1266. TITLE =
  1267. A #Internal_Timer;
  1268. FP #temp20;
  1269. JNB _004;
  1270. L #SV_Number;
  1271. L 1;
  1272. +I ;
  1273. T #SV_Number;
  1274. _004: NOP 0;
  1275. NETWORK
  1276. TITLE =
  1277. L #Number_Of_Airtank;
  1278. L #Number_Of_SV_In_Airtank;
  1279. *I ;
  1280. T #temp3;
  1281. NOP 0;
  1282. NETWORK
  1283. TITLE =
  1284. A( ;
  1285. L #SV_Number;
  1286. L #temp3;
  1287. >=I ;
  1288. ) ;
  1289. JNB _005;
  1290. L 0;
  1291. T #SV_Number;
  1292. _005: NOP 0;
  1293. NETWORK
  1294. TITLE =
  1295. A( ;
  1296. A( ;
  1297. L #Pulse_Time_mSecond;
  1298. L 1;
  1299. /I ;
  1300. T #temp2;
  1301. AN OV;
  1302. SAVE ;
  1303. CLR ;
  1304. A BR;
  1305. ) ;
  1306. JNB _006;
  1307. L #temp2;
  1308. ITB ;
  1309. T #ON_Time;
  1310. AN OV;
  1311. SAVE ;
  1312. CLR ;
  1313. _006: A BR;
  1314. ) ;
  1315. JNB _007;
  1316. L #ON_Time;
  1317. T #ON_Temp;
  1318. _007: NOP 0;
  1319. NETWORK
  1320. TITLE =
  1321. NETWORK
  1322. TITLE =
  1323. A #Timer_Off;
  1324. AN #Timer_ON;
  1325. = #Pulse;
  1326. NETWORK
  1327. TITLE =
  1328. NETWORK
  1329. TITLE =
  1330. A( ;
  1331. A( ;
  1332. L #Mode;
  1333. L 1;
  1334. ==I ;
  1335. ) ;
  1336. JNB _008;
  1337. L #SV_Number;
  1338. T #temp6;
  1339. SET ;
  1340. SAVE ;
  1341. CLR ;
  1342. _008: A BR;
  1343. ) ;
  1344. JNB _009;
  1345. L #temp6;
  1346. T #Output_Byte;
  1347. _009: NOP 0;
  1348. NETWORK
  1349. TITLE =
  1350. L #Mode;
  1351. L 2;
  1352. ==I ;
  1353. = L 12.0;
  1354. A L 12.0;
  1355. JNB _00a;
  1356. CALL FC 8 (
  1357. Input := #SV_Number,
  1358. New_Number := #temp6);
  1359. _00a: NOP 0;
  1360. A L 12.0;
  1361. JNB _00b;
  1362. L #temp6;
  1363. T #Output_Byte;
  1364. _00b: NOP 0;
  1365. NETWORK
  1366. TITLE =
  1367. L #Mode;
  1368. L 3;
  1369. ==I ;
  1370. = L 12.0;
  1371. A L 12.0;
  1372. JNB _00c;
  1373. CALL FC 5 (
  1374. Counter_input := #SV_Number,
  1375. New_Number := #temp6);
  1376. _00c: NOP 0;
  1377. A L 12.0;
  1378. JNB _00d;
  1379. L #temp6;
  1380. T #Output_Byte;
  1381. _00d: NOP 0;
  1382. NETWORK
  1383. TITLE =
  1384. L #temp6;
  1385. L #Number_Of_SV_In_Airtank;
  1386. /I ;
  1387. T #temp4;
  1388. AN OV;
  1389. SAVE ;
  1390. CLR ;
  1391. A BR;
  1392. = L 12.0;
  1393. A L 12.0;
  1394. JNB _00e;
  1395. L #temp4;
  1396. L 1;
  1397. +I ;
  1398. T #AirTank_Number;
  1399. _00e: NOP 0;
  1400. A( ;
  1401. A( ;
  1402. A L 12.0;
  1403. JNB _00f;
  1404. L #temp4;
  1405. L #Number_Of_SV_In_Airtank;
  1406. *I ;
  1407. T #temp5;
  1408. AN OV;
  1409. SAVE ;
  1410. CLR ;
  1411. _00f: A BR;
  1412. ) ;
  1413. JNB _010;
  1414. L #temp6;
  1415. L 1;
  1416. +I ;
  1417. T #temp6;
  1418. AN OV;
  1419. SAVE ;
  1420. CLR ;
  1421. _010: A BR;
  1422. ) ;
  1423. JNB _011;
  1424. L #temp6;
  1425. L #temp5;
  1426. -I ;
  1427. T #SV_Number_In_AirTank;
  1428. _011: NOP 0;
  1429. NETWORK
  1430. TITLE =
  1431. //Send Bit For Close Jack
  1432. L #Mode;
  1433. L 3;
  1434. <>I ;
  1435. = L 12.0;
  1436. A( ;
  1437. A( ;
  1438. A( ;
  1439. A L 12.0;
  1440. JNB _012;
  1441. L #temp4;
  1442. L 4;
  1443. /I ;
  1444. T #temp2;
  1445. AN OV;
  1446. SAVE ;
  1447. CLR ;
  1448. _012: A BR;
  1449. ) ;
  1450. JNB _013;
  1451. L #temp2;
  1452. T #temp7;
  1453. SET ;
  1454. SAVE ;
  1455. CLR ;
  1456. _013: A BR;
  1457. ) ;
  1458. JNB _014;
  1459. L #temp7;
  1460. L W#16#1;
  1461. SLW ;
  1462. T #temp7;
  1463. SET ;
  1464. SAVE ;
  1465. CLR ;
  1466. _014: A BR;
  1467. ) ;
  1468. JNB _015;
  1469. L #temp7;
  1470. T #Out_Jack;
  1471. _015: NOP 0;
  1472. AN L 12.0;
  1473. JNB _016;
  1474. L 0;
  1475. T #Out_Jack;
  1476. _016: NOP 0;
  1477. END_FUNCTION_BLOCK
  1478. DATA_BLOCK DB 5
  1479. TITLE =
  1480. VERSION : 0.0
  1481. FB 2
  1482. BEGIN
  1483. Number_Of_Airtank := 0;
  1484. Number_Of_SV_In_Airtank := 0;
  1485. Mode := 0;
  1486. Jack_Closed := FALSE;
  1487. Timer_Off := T 0;
  1488. Time_Interval_second := 0;
  1489. Timer_ON := T 0;
  1490. Pulse_Time_mSecond := 0;
  1491. Internal_Timer := T 0;
  1492. Pulse := FALSE;
  1493. Output_Byte := B#16#0;
  1494. AirTank_Number := 0;
  1495. SV_Number_In_AirTank := 0;
  1496. Out_Jack := B#16#0;
  1497. ON_Time := W#16#0;
  1498. ON_Temp := S5T#0MS;
  1499. Off_Time := W#16#0;
  1500. OFF_Temp := S5T#0MS;
  1501. SV_Number := 0;
  1502. temp20 := FALSE;
  1503. temp4 := 0;
  1504. END_DATA_BLOCK
  1505. FUNCTION_BLOCK FB 3
  1506. TITLE =Jack Controller
  1507. VERSION : 0.1
  1508. VAR_INPUT
  1509. Number_of_Jack : INT ;
  1510. END_VAR
  1511. VAR_OUTPUT
  1512. Delay_Time : BOOL ;
  1513. END_VAR
  1514. VAR
  1515. Jack_Num : INT ;
  1516. END_VAR
  1517. VAR_TEMP
  1518. Temp_Out : WORD ;
  1519. END_VAR
  1520. BEGIN
  1521. NETWORK
  1522. TITLE =
  1523. A( ;
  1524. A( ;
  1525. L #Number_of_Jack;
  1526. L #Jack_Num;
  1527. <>I ;
  1528. ) ;
  1529. L S5T#5S;
  1530. SP T 11;
  1531. NOP 0;
  1532. NOP 0;
  1533. NOP 0;
  1534. A T 11;
  1535. ) ;
  1536. = #Delay_Time;
  1537. A #Delay_Time;
  1538. JC END;
  1539. NETWORK
  1540. TITLE =
  1541. A( ;
  1542. L #Number_of_Jack;
  1543. T #Jack_Num;
  1544. SET ;
  1545. SAVE ;
  1546. CLR ;
  1547. A BR;
  1548. ) ;
  1549. JNB _001;
  1550. L #Jack_Num;
  1551. T MW 30;
  1552. _001: NOP 0;
  1553. NETWORK
  1554. TITLE =
  1555. //Jack 1 Fault
  1556. A M 31.0;
  1557. = M 31.0;
  1558. A M 31.0;
  1559. = L 2.0;
  1560. A( ;
  1561. X L 2.0;
  1562. X I 1.4;
  1563. ) ;
  1564. = DB1.DBX 5.4;
  1565. A DB1.DBX 5.4;
  1566. = DB2.DBX 10.1;
  1567. A( ;
  1568. XN L 2.0;
  1569. X I 1.3;
  1570. ) ;
  1571. = DB1.DBX 5.3;
  1572. A DB1.DBX 5.3;
  1573. = DB2.DBX 10.0;
  1574. NETWORK
  1575. TITLE =
  1576. //Jack 2 Fault
  1577. A M 31.1;
  1578. = M 31.1;
  1579. A M 31.1;
  1580. = L 2.0;
  1581. A( ;
  1582. X L 2.0;
  1583. X I 1.6;
  1584. ) ;
  1585. = DB1.DBX 5.6;
  1586. A DB1.DBX 5.6;
  1587. = DB2.DBX 10.3;
  1588. A( ;
  1589. XN L 2.0;
  1590. X I 1.5;
  1591. ) ;
  1592. = DB1.DBX 5.5;
  1593. A DB1.DBX 5.5;
  1594. = DB2.DBX 10.2;
  1595. NETWORK
  1596. TITLE =
  1597. //Jack 3 Fault
  1598. A M 31.2;
  1599. = M 31.2;
  1600. A M 31.2;
  1601. = L 2.0;
  1602. A( ;
  1603. X L 2.0;
  1604. X I 8.1;
  1605. ) ;
  1606. = DB1.DBX 6.0;
  1607. A DB1.DBX 6.0;
  1608. = DB2.DBX 10.5;
  1609. A( ;
  1610. XN L 2.0;
  1611. X I 8.0;
  1612. ) ;
  1613. = DB1.DBX 5.7;
  1614. A DB1.DBX 5.7;
  1615. = DB2.DBX 10.4;
  1616. NETWORK
  1617. TITLE =
  1618. //Jack 4 Fault
  1619. A M 31.3;
  1620. = M 31.3;
  1621. A M 31.3;
  1622. = L 2.0;
  1623. A( ;
  1624. X L 2.0;
  1625. X I 8.3;
  1626. ) ;
  1627. = DB1.DBX 6.2;
  1628. A DB1.DBX 6.2;
  1629. = DB2.DBX 10.7;
  1630. A( ;
  1631. XN L 2.0;
  1632. X I 8.2;
  1633. ) ;
  1634. = DB1.DBX 6.1;
  1635. A DB1.DBX 6.1;
  1636. = DB2.DBX 10.6;
  1637. NETWORK
  1638. TITLE =
  1639. //Jack 5 Fault
  1640. A M 31.4;
  1641. = M 31.4;
  1642. A M 31.4;
  1643. = L 2.0;
  1644. A( ;
  1645. X L 2.0;
  1646. X I 8.5;
  1647. ) ;
  1648. = DB1.DBX 6.4;
  1649. A DB1.DBX 6.4;
  1650. = DB2.DBX 11.1;
  1651. A( ;
  1652. XN L 2.0;
  1653. X I 8.4;
  1654. ) ;
  1655. = DB1.DBX 6.3;
  1656. A DB1.DBX 6.3;
  1657. = DB2.DBX 11.0;
  1658. NETWORK
  1659. TITLE =
  1660. //Jack 6 Fault
  1661. A M 31.5;
  1662. = M 31.5;
  1663. A M 31.5;
  1664. = L 2.0;
  1665. A( ;
  1666. X L 2.0;
  1667. X I 8.7;
  1668. ) ;
  1669. = DB1.DBX 6.6;
  1670. A DB1.DBX 6.6;
  1671. = DB2.DBX 11.3;
  1672. A( ;
  1673. XN L 2.0;
  1674. X I 8.6;
  1675. ) ;
  1676. = DB1.DBX 6.5;
  1677. A DB1.DBX 6.5;
  1678. = DB2.DBX 11.2;
  1679. NETWORK
  1680. TITLE =
  1681. //Jack 7 Fault
  1682. A M 31.6;
  1683. = M 31.6;
  1684. A M 31.6;
  1685. = L 2.0;
  1686. A( ;
  1687. X L 2.0;
  1688. X I 9.1;
  1689. ) ;
  1690. = DB1.DBX 7.0;
  1691. A DB1.DBX 7.0;
  1692. = DB2.DBX 11.5;
  1693. A( ;
  1694. XN L 2.0;
  1695. X I 9.0;
  1696. ) ;
  1697. = DB1.DBX 6.7;
  1698. A DB1.DBX 6.7;
  1699. = DB2.DBX 11.4;
  1700. NETWORK
  1701. TITLE =
  1702. //Jack 8 Fault
  1703. A M 31.7;
  1704. = M 31.7;
  1705. A M 31.7;
  1706. = L 2.0;
  1707. A( ;
  1708. X L 2.0;
  1709. X I 9.3;
  1710. ) ;
  1711. = DB1.DBX 7.2;
  1712. A DB1.DBX 7.2;
  1713. = DB2.DBX 11.7;
  1714. A( ;
  1715. XN L 2.0;
  1716. X I 9.2;
  1717. ) ;
  1718. = DB1.DBX 7.1;
  1719. A DB1.DBX 7.1;
  1720. = DB2.DBX 11.6;
  1721. NETWORK
  1722. TITLE =
  1723. END: L MB 31;
  1724. T MB 31;
  1725. NOP 0;
  1726. END_FUNCTION_BLOCK
  1727. DATA_BLOCK DB 6
  1728. TITLE =
  1729. VERSION : 0.0
  1730. FB 3
  1731. BEGIN
  1732. Number_of_Jack := 0;
  1733. Delay_Time := FALSE;
  1734. Jack_Num := 0;
  1735. END_DATA_BLOCK
  1736. FUNCTION FC 6 : VOID
  1737. TITLE =
  1738. VERSION : 0.1
  1739. VAR_INPUT
  1740. Input_Bit0 : BOOL ;
  1741. Input_Bit1 : BOOL ;
  1742. Input_Bit2 : BOOL ;
  1743. Input_Bit3 : BOOL ;
  1744. END_VAR
  1745. VAR_OUTPUT
  1746. Output_Bit0 : BOOL ;
  1747. Output_Bit1 : BOOL ;
  1748. Output_Bit2 : BOOL ;
  1749. Output_Bit3 : BOOL ;
  1750. END_VAR
  1751. BEGIN
  1752. NETWORK
  1753. TITLE =
  1754. A #Input_Bit0;
  1755. = #Output_Bit0;
  1756. NETWORK
  1757. TITLE =
  1758. A #Input_Bit1;
  1759. = #Output_Bit1;
  1760. NETWORK
  1761. TITLE =
  1762. A #Input_Bit2;
  1763. = #Output_Bit2;
  1764. NETWORK
  1765. TITLE =
  1766. A #Input_Bit3;
  1767. = #Output_Bit3;
  1768. END_FUNCTION
  1769. FUNCTION FC 14 : VOID
  1770. TITLE =
  1771. VERSION : 0.1
  1772. BEGIN
  1773. NETWORK
  1774. TITLE =
  1775. A M 0.0;
  1776. JNB _001;
  1777. L IW 66;
  1778. T MW 70;
  1779. _001: NOP 0;
  1780. NETWORK
  1781. TITLE =
  1782. CALL FC 20 (
  1783. MAX := 20,
  1784. MIN := 10,
  1785. INPUT_VALUE := MW 70);
  1786. NOP 0;
  1787. NETWORK
  1788. TITLE =
  1789. AN M 0.0;
  1790. JNB _002;
  1791. L MW 8;
  1792. T MW 70;
  1793. _002: NOP 0;
  1794. NETWORK
  1795. TITLE =
  1796. L MW 70;
  1797. T DB2.DBW 24;
  1798. NOP 0;
  1799. NETWORK
  1800. TITLE =
  1801. L MW 116;
  1802. L MW 70;
  1803. >=I ;
  1804. = M 0.7;
  1805. NETWORK
  1806. TITLE =
  1807. L MW 124;
  1808. L 10;
  1809. /I ;
  1810. T MW 92;
  1811. NOP 0;
  1812. NETWORK
  1813. TITLE =
  1814. A( ;
  1815. A( ;
  1816. L MW 92;
  1817. L MW 70;
  1818. >I ;
  1819. ) ;
  1820. JNB _003;
  1821. L MW 92;
  1822. L MW 70;
  1823. -I ;
  1824. T MW 90;
  1825. AN OV;
  1826. SAVE ;
  1827. CLR ;
  1828. _003: A BR;
  1829. ) ;
  1830. JNB _004;
  1831. L MW 12;
  1832. L MW 90;
  1833. -I ;
  1834. T MW 12;
  1835. _004: NOP 0;
  1836. NETWORK
  1837. TITLE =
  1838. A( ;
  1839. A( ;
  1840. L MW 92;
  1841. L MW 70;
  1842. <I ;
  1843. ) ;
  1844. JNB _005;
  1845. L MW 70;
  1846. L MW 92;
  1847. -I ;
  1848. T MW 90;
  1849. AN OV;
  1850. SAVE ;
  1851. CLR ;
  1852. _005: A BR;
  1853. ) ;
  1854. JNB _006;
  1855. L MW 12;
  1856. L MW 90;
  1857. +I ;
  1858. T MW 12;
  1859. _006: NOP 0;
  1860. NETWORK
  1861. TITLE =
  1862. CALL FC 20 (
  1863. MAX := 120,
  1864. MIN := 3,
  1865. INPUT_VALUE := MW 12);
  1866. NOP 0;
  1867. END_FUNCTION
  1868. FUNCTION FC 21 : VOID
  1869. TITLE =
  1870. VERSION : 0.1
  1871. VAR_INPUT
  1872. MAX : DINT ;
  1873. MIN : DINT ;
  1874. END_VAR
  1875. VAR_IN_OUT
  1876. INPUT : DINT ;
  1877. END_VAR
  1878. BEGIN
  1879. NETWORK
  1880. TITLE =
  1881. L #INPUT;
  1882. L #MAX;
  1883. >D ;
  1884. = L 0.0;
  1885. A L 0.0;
  1886. JNB _001;
  1887. L #MAX;
  1888. T #INPUT;
  1889. _001: NOP 0;
  1890. AN L 0.0;
  1891. A( ;
  1892. L #INPUT;
  1893. L #MIN;
  1894. <D ;
  1895. ) ;
  1896. JNB _002;
  1897. L #MIN;
  1898. T #INPUT;
  1899. _002: NOP 0;
  1900. END_FUNCTION
  1901. FUNCTION FC 31 : VOID
  1902. TITLE =
  1903. VERSION : 0.1
  1904. VAR_INPUT
  1905. PIW_INPUT : INT ;
  1906. FULL_SCALE_INSTRUMENT : DINT ;
  1907. FULL_SCALE_REAL : DINT ;
  1908. Defult_Setting : BOOL ;
  1909. END_VAR
  1910. VAR_OUTPUT
  1911. OUTPUT_MESSUR : DINT ;
  1912. PERCENT : DINT ;
  1913. END_VAR
  1914. VAR_IN_OUT
  1915. Gain : DINT ;
  1916. Offset : DINT ;
  1917. END_VAR
  1918. VAR_TEMP
  1919. TEMP1 : DINT ;
  1920. TEMP2 : DINT ;
  1921. TEMP3 : DINT ;
  1922. TEMP4 : DINT ;
  1923. TEMP5 : DINT ;
  1924. END_VAR
  1925. BEGIN
  1926. NETWORK
  1927. TITLE =
  1928. L #PIW_INPUT;
  1929. ITD ;
  1930. T #TEMP1;
  1931. SET ;
  1932. SAVE ;
  1933. CLR ;
  1934. A BR;
  1935. = L 20.0;
  1936. A( ;
  1937. A( ;
  1938. A( ;
  1939. A L 20.0;
  1940. JNB _001;
  1941. L #TEMP1;
  1942. L #Offset;
  1943. -D ;
  1944. T #TEMP5;
  1945. AN OV;
  1946. SAVE ;
  1947. CLR ;
  1948. _001: A BR;
  1949. ) ;
  1950. JNB _002;
  1951. L #TEMP5;
  1952. L #FULL_SCALE_INSTRUMENT;
  1953. *D ;
  1954. T #TEMP2;
  1955. AN OV;
  1956. SAVE ;
  1957. CLR ;
  1958. _002: A BR;
  1959. ) ;
  1960. JNB _003;
  1961. L #TEMP2;
  1962. L #Gain;
  1963. /D ;
  1964. T #TEMP3;
  1965. AN OV;
  1966. SAVE ;
  1967. CLR ;
  1968. _003: A BR;
  1969. ) ;
  1970. JNB _004;
  1971. L #TEMP3;
  1972. L L#10;
  1973. *D ;
  1974. T #OUTPUT_MESSUR;
  1975. _004: NOP 0;
  1976. A( ;
  1977. A L 20.0;
  1978. JNB _005;
  1979. L #TEMP3;
  1980. L L#100;
  1981. *D ;
  1982. T #TEMP4;
  1983. AN OV;
  1984. SAVE ;
  1985. CLR ;
  1986. _005: A BR;
  1987. ) ;
  1988. JNB _006;
  1989. L #TEMP4;
  1990. L #FULL_SCALE_REAL;
  1991. /D ;
  1992. T #PERCENT;
  1993. _006: NOP 0;
  1994. A L 20.0;
  1995. A( ;
  1996. L #Gain;
  1997. L L#35000;
  1998. >D ;
  1999. ) ;
  2000. JNB _007;
  2001. L L#35000;
  2002. T #Gain;
  2003. _007: NOP 0;
  2004. A L 20.0;
  2005. A( ;
  2006. L #Gain;
  2007. L L#6000;
  2008. <D ;
  2009. ) ;
  2010. JNB _008;
  2011. L L#6000;
  2012. T #Gain;
  2013. _008: NOP 0;
  2014. A L 20.0;
  2015. A( ;
  2016. L #Offset;
  2017. L L#7000;
  2018. >D ;
  2019. ) ;
  2020. JNB _009;
  2021. L L#7000;
  2022. T #Offset;
  2023. _009: NOP 0;
  2024. A L 20.0;
  2025. A( ;
  2026. L #Offset;
  2027. L L#-7000;
  2028. <D ;
  2029. ) ;
  2030. JNB _00a;
  2031. L L#-7000;
  2032. T #Offset;
  2033. _00a: NOP 0;
  2034. NETWORK
  2035. TITLE =
  2036. A( ;
  2037. A #Defult_Setting;
  2038. JNB _00b;
  2039. L L#0;
  2040. T #Offset;
  2041. SET ;
  2042. SAVE ;
  2043. CLR ;
  2044. _00b: A BR;
  2045. ) ;
  2046. JNB _00c;
  2047. L L#27648;
  2048. T #Gain;
  2049. _00c: NOP 0;
  2050. END_FUNCTION
  2051. FUNCTION FC 1 : VOID
  2052. TITLE =Send Flap's Data to CCR
  2053. VERSION : 0.1
  2054. BEGIN
  2055. NETWORK
  2056. TITLE =
  2057. //Jack Situation To CCR
  2058. A I 1.3;
  2059. = L 0.0;
  2060. BLD 103;
  2061. A I 1.4;
  2062. = L 0.1;
  2063. BLD 103;
  2064. A I 1.5;
  2065. = L 0.2;
  2066. BLD 103;
  2067. A I 1.6;
  2068. = L 0.3;
  2069. BLD 103;
  2070. CALL FC 6 (
  2071. Input_Bit0 := L 0.0,
  2072. Input_Bit1 := L 0.1,
  2073. Input_Bit2 := L 0.2,
  2074. Input_Bit3 := L 0.3,
  2075. Output_Bit0 := DB2.DBX 2.0,
  2076. Output_Bit1 := DB2.DBX 2.1,
  2077. Output_Bit2 := DB2.DBX 2.2,
  2078. Output_Bit3 := DB2.DBX 2.3);
  2079. NOP 0;
  2080. NETWORK
  2081. TITLE =
  2082. //Jack Situation To CCR
  2083. A I 8.0;
  2084. = L 0.0;
  2085. BLD 103;
  2086. A I 8.1;
  2087. = L 0.1;
  2088. BLD 103;
  2089. A I 8.2;
  2090. = L 0.2;
  2091. BLD 103;
  2092. A I 8.3;
  2093. = L 0.3;
  2094. BLD 103;
  2095. CALL FC 6 (
  2096. Input_Bit0 := L 0.0,
  2097. Input_Bit1 := L 0.1,
  2098. Input_Bit2 := L 0.2,
  2099. Input_Bit3 := L 0.3,
  2100. Output_Bit0 := DB2.DBX 2.4,
  2101. Output_Bit1 := DB2.DBX 2.5,
  2102. Output_Bit2 := DB2.DBX 2.6,
  2103. Output_Bit3 := DB2.DBX 2.7);
  2104. NOP 0;
  2105. NETWORK
  2106. TITLE =
  2107. //Jack Situation To CCR
  2108. A I 8.4;
  2109. = L 0.0;
  2110. BLD 103;
  2111. A I 8.5;
  2112. = L 0.1;
  2113. BLD 103;
  2114. A I 8.5;
  2115. = L 0.2;
  2116. BLD 103;
  2117. A I 8.7;
  2118. = L 0.3;
  2119. BLD 103;
  2120. CALL FC 6 (
  2121. Input_Bit0 := L 0.0,
  2122. Input_Bit1 := L 0.1,
  2123. Input_Bit2 := L 0.2,
  2124. Input_Bit3 := L 0.3,
  2125. Output_Bit0 := DB2.DBX 3.0,
  2126. Output_Bit1 := DB2.DBX 3.1,
  2127. Output_Bit2 := DB2.DBX 3.2,
  2128. Output_Bit3 := DB2.DBX 3.3);
  2129. NOP 0;
  2130. NETWORK
  2131. TITLE =
  2132. //Jack Situation To CCR
  2133. A I 9.0;
  2134. = L 0.0;
  2135. BLD 103;
  2136. A I 9.1;
  2137. = L 0.1;
  2138. BLD 103;
  2139. A I 9.2;
  2140. = L 0.2;
  2141. BLD 103;
  2142. A I 9.3;
  2143. = L 0.3;
  2144. BLD 103;
  2145. CALL FC 6 (
  2146. Input_Bit0 := L 0.0,
  2147. Input_Bit1 := L 0.1,
  2148. Input_Bit2 := L 0.2,
  2149. Input_Bit3 := L 0.3,
  2150. Output_Bit0 := DB2.DBX 3.4,
  2151. Output_Bit1 := DB2.DBX 3.5,
  2152. Output_Bit2 := DB2.DBX 3.6,
  2153. Output_Bit3 := DB2.DBX 3.7);
  2154. NOP 0;
  2155. NETWORK
  2156. TITLE =
  2157. L DB5.DBW 38;
  2158. T DB2.DBW 18;
  2159. NOP 0;
  2160. END_FUNCTION
  2161. FUNCTION FC 3 : VOID
  2162. TITLE =Faults
  2163. VERSION : 0.1
  2164. BEGIN
  2165. NETWORK
  2166. TITLE =
  2167. //Handshake
  2168. A( ;
  2169. A I 40.0;
  2170. FP M 3.2;
  2171. L S5T#10S;
  2172. SS T 26;
  2173. A M 3.0;
  2174. R T 26;
  2175. NOP 0;
  2176. NOP 0;
  2177. A T 26;
  2178. ) ;
  2179. S M 3.1;
  2180. A( ;
  2181. O I 25.0;
  2182. O M 0.1;
  2183. O I 40.1;
  2184. ) ;
  2185. = M 3.0;
  2186. A M 3.0;
  2187. R M 3.1;
  2188. A M 3.1;
  2189. = L 0.0;
  2190. AN L 0.0;
  2191. = DB2.DBX 12.5;
  2192. A L 0.0;
  2193. BLD 102;
  2194. = DB1.DBX 7.7;
  2195. NETWORK
  2196. TITLE =Temporary placeholder variable
  2197. A M 2.7;
  2198. FP M 69.0;
  2199. JNB _001;
  2200. L MW 44;
  2201. L 1;
  2202. +I ;
  2203. T MW 44;
  2204. _001: NOP 0;
  2205. NETWORK
  2206. TITLE =Temporary placeholder variable
  2207. A M 45.1;
  2208. = DB2.DBX 0.0;
  2209. NETWORK
  2210. TITLE =
  2211. A I 0.0;
  2212. = L 0.0;
  2213. BLD 103;
  2214. A I 0.1;
  2215. = L 0.1;
  2216. BLD 103;
  2217. A I 0.2;
  2218. = L 0.2;
  2219. BLD 103;
  2220. A I 0.3;
  2221. = L 0.3;
  2222. BLD 103;
  2223. CALL FC 6 (
  2224. Input_Bit0 := L 0.0,
  2225. Input_Bit1 := L 0.1,
  2226. Input_Bit2 := L 0.2,
  2227. Input_Bit3 := L 0.3,
  2228. Output_Bit0 := DB2.DBX 12.0,
  2229. Output_Bit1 := DB2.DBX 12.1,
  2230. Output_Bit2 := DB2.DBX 12.2,
  2231. Output_Bit3 := DB2.DBX 12.3);
  2232. NOP 0;
  2233. NETWORK
  2234. TITLE =Ready For Start
  2235. A I 0.0;
  2236. A I 0.1;
  2237. A I 0.2;
  2238. A I 0.3;
  2239. = M 3.3;
  2240. NETWORK
  2241. TITLE =
  2242. A I 0.0;
  2243. = L 0.0;
  2244. BLD 103;
  2245. AN I 0.1;
  2246. = L 0.1;
  2247. BLD 103;
  2248. AN I 0.2;
  2249. = L 0.2;
  2250. BLD 103;
  2251. AN I 0.3;
  2252. = L 0.3;
  2253. BLD 103;
  2254. CALL FC 6 (
  2255. Input_Bit0 := L 0.0,
  2256. Input_Bit1 := L 0.1,
  2257. Input_Bit2 := L 0.2,
  2258. Input_Bit3 := L 0.3,
  2259. Output_Bit0 := I 0.0,
  2260. Output_Bit1 := DB1.DBX 7.3,
  2261. Output_Bit2 := DB1.DBX 7.4,
  2262. Output_Bit3 := DB1.DBX 7.5);
  2263. NOP 0;
  2264. NETWORK
  2265. TITLE =
  2266. A I 41.3;
  2267. A DB2.DBX 0.6;
  2268. = M 1.4;
  2269. NETWORK
  2270. TITLE =
  2271. ON I 25.1;
  2272. ON I 25.2;
  2273. L S5T#20M;
  2274. SD T 10;
  2275. NETWORK
  2276. TITLE =
  2277. A( ;
  2278. O T 10;
  2279. O( ;
  2280. L MW 116;
  2281. L 18;
  2282. >=I ;
  2283. ) ;
  2284. O( ;
  2285. L MW 102;
  2286. L 240;
  2287. >=I ;
  2288. ) ;
  2289. ) ;
  2290. NOT ;
  2291. = M 3.6;
  2292. NETWORK
  2293. TITLE =
  2294. A I 0.4;
  2295. = L 0.0;
  2296. BLD 103;
  2297. A I 0.5;
  2298. = L 0.1;
  2299. BLD 103;
  2300. A I 25.1;
  2301. A I 25.2;
  2302. = L 0.2;
  2303. BLD 103;
  2304. AN T 10;
  2305. = L 0.3;
  2306. BLD 103;
  2307. CALL FC 6 (
  2308. Input_Bit0 := L 0.0,
  2309. Input_Bit1 := L 0.1,
  2310. Input_Bit2 := L 0.2,
  2311. Input_Bit3 := L 0.3,
  2312. Output_Bit0 := DB2.DBX 12.6,
  2313. Output_Bit1 := DB2.DBX 9.2,
  2314. Output_Bit2 := DB2.DBX 9.0,
  2315. Output_Bit3 := DB2.DBX 9.1);
  2316. NOP 0;
  2317. NETWORK
  2318. TITLE =
  2319. A M 3.3;
  2320. = L 0.0;
  2321. BLD 103;
  2322. A M 3.6;
  2323. = L 0.1;
  2324. BLD 103;
  2325. A M 1.4;
  2326. = L 0.2;
  2327. BLD 103;
  2328. A M 1.4;
  2329. = L 0.3;
  2330. BLD 103;
  2331. CALL FC 6 (
  2332. Input_Bit0 := L 0.0,
  2333. Input_Bit1 := L 0.1,
  2334. Input_Bit2 := L 0.2,
  2335. Input_Bit3 := L 0.3,
  2336. Output_Bit0 := DB2.DBX 0.7,
  2337. Output_Bit1 := DB2.DBX 1.1,
  2338. Output_Bit2 := DB2.DBX 1.0,
  2339. Output_Bit3 := DB2.DBX 1.0);
  2340. NOP 0;
  2341. NETWORK
  2342. TITLE =
  2343. //Delta Pressure Alarm
  2344. A( ;
  2345. L MW 116;
  2346. L 18;
  2347. >=I ;
  2348. ) ;
  2349. NOT ;
  2350. = DB2.DBX 12.4;
  2351. NETWORK
  2352. TITLE =ALARM COMMON
  2353. O Q 7.4;
  2354. O DB2.DBX 9.0;
  2355. O DB2.DBX 12.6;
  2356. O DB2.DBX 9.2;
  2357. O DB2.DBX 12.4;
  2358. O DB2.DBX 12.5;
  2359. O DB2.DBX 12.0;
  2360. O DB2.DBX 12.1;
  2361. O DB2.DBX 12.2;
  2362. O DB2.DBX 12.3;
  2363. = M 3.4;
  2364. NETWORK
  2365. TITLE =
  2366. A M 3.4;
  2367. = Q 5.1;
  2368. = DB2.DBX 0.2;
  2369. END_FUNCTION
  2370. FUNCTION FC 4 : VOID
  2371. TITLE =Start / Stop
  2372. VERSION : 0.1
  2373. BEGIN
  2374. NETWORK
  2375. TITLE =Cleaning
  2376. //Start From TP
  2377. A M 1.1;
  2378. AN M 0.0;
  2379. O( ;
  2380. A M 0.0;
  2381. R M 1.1;
  2382. NOP 0;
  2383. A M 1.1;
  2384. ) ;
  2385. O DB2.DBX 1.3;
  2386. = DB2.DBX 0.6;
  2387. NETWORK
  2388. TITLE =cleaning
  2389. A I 41.2;
  2390. = M 0.0;
  2391. NETWORK
  2392. TITLE =
  2393. A I 41.3;
  2394. A M 0.0;
  2395. A I 40.7;
  2396. = M 36.4;
  2397. NETWORK
  2398. TITLE =To CCR
  2399. //START PULSE CLEANING from CCR or Hard Wire
  2400. //
  2401. A I 17.0;
  2402. A I 16.2;
  2403. A I 41.3;
  2404. A M 0.0;
  2405. A I 41.0;
  2406. O ;
  2407. AN I 41.0;
  2408. A I 25.3;
  2409. A M 0.0;
  2410. O ;
  2411. A I 41.0;
  2412. A I 40.2;
  2413. A M 0.0;
  2414. O( ;
  2415. A M 0.0;
  2416. R M 1.1;
  2417. NOP 0;
  2418. A M 1.1;
  2419. ) ;
  2420. O DB2.DBX 1.3;
  2421. = DB2.DBX 0.6;
  2422. NETWORK
  2423. TITLE =
  2424. //EMERGENCY Cleaning Form CCR
  2425. A( ;
  2426. A( ;
  2427. A M 1.3;
  2428. A M 1.1;
  2429. AN M 0.0;
  2430. O ;
  2431. A I 41.0;
  2432. A I 40.2;
  2433. A I 40.3;
  2434. A M 0.0;
  2435. O( ;
  2436. A M 0.0;
  2437. R M 1.3;
  2438. NOP 0;
  2439. A M 1.3;
  2440. ) ;
  2441. ) ;
  2442. L S5T#500MS;
  2443. SP T 25;
  2444. NOP 0;
  2445. NOP 0;
  2446. NOP 0;
  2447. A T 25;
  2448. ) ;
  2449. S M 1.2;
  2450. A( ;
  2451. A M 1.3;
  2452. A M 1.1;
  2453. AN M 0.0;
  2454. O ;
  2455. A I 41.0;
  2456. A I 40.2;
  2457. A I 40.3;
  2458. A M 0.0;
  2459. O( ;
  2460. L MW 26;
  2461. L MW 14;
  2462. ==I ;
  2463. ) ;
  2464. O M 3.0;
  2465. ) ;
  2466. FN M 1.6;
  2467. R M 1.2;
  2468. A M 1.2;
  2469. = DB2.DBX 1.3;
  2470. NETWORK
  2471. TITLE =Solenoeid Heaters
  2472. O DB2.DBX 0.6;
  2473. O ;
  2474. A M 3.5;
  2475. AN M 0.0;
  2476. O ;
  2477. AN I 41.0;
  2478. A I 1.2;
  2479. A M 0.0;
  2480. O ;
  2481. A I 41.0;
  2482. A I 41.1;
  2483. A M 0.0;
  2484. = Q 5.6;
  2485. = DB2.DBX 0.3;
  2486. NETWORK
  2487. TITLE =
  2488. A DB2.DBX 0.6;
  2489. = M 36.5;
  2490. END_FUNCTION
  2491. FUNCTION FC 7 : VOID
  2492. TITLE =
  2493. VERSION : 0.1
  2494. BEGIN
  2495. NETWORK
  2496. TITLE =
  2497. A M 0.0;
  2498. A I 41.5;
  2499. = DB2.DBX 0.5;
  2500. A DB2.DBX 0.5;
  2501. = M 1.0;
  2502. NETWORK
  2503. TITLE =
  2504. AN M 1.0;
  2505. AN M 1.2;
  2506. JNB _001;
  2507. L MW 32;
  2508. T MW 12;
  2509. _001: NOP 0;
  2510. NETWORK
  2511. TITLE =Mode Selection By Profibus
  2512. //mode 0
  2513. A( ;
  2514. A M 0.0;
  2515. A I 40.4;
  2516. AN I 40.5;
  2517. AN I 40.6;
  2518. O ;
  2519. AN M 0.0;
  2520. A M 35.3;
  2521. ) ;
  2522. = M 35.3;
  2523. A M 35.3;
  2524. JNB _002;
  2525. L 1;
  2526. T MW 4;
  2527. _002: NOP 0;
  2528. NETWORK
  2529. TITLE =Mode Selection By Profibus
  2530. //mode 1
  2531. A( ;
  2532. A M 0.0;
  2533. A I 40.5;
  2534. AN I 40.4;
  2535. AN I 40.6;
  2536. O ;
  2537. AN M 0.0;
  2538. A M 35.4;
  2539. ) ;
  2540. = M 35.4;
  2541. A M 35.4;
  2542. JNB _003;
  2543. L 2;
  2544. T MW 4;
  2545. _003: NOP 0;
  2546. NETWORK
  2547. TITLE =Mode Selection By Profibus
  2548. //mode 2
  2549. A( ;
  2550. A M 0.0;
  2551. A I 40.6;
  2552. AN I 40.4;
  2553. AN I 40.5;
  2554. O ;
  2555. AN M 0.0;
  2556. A M 35.5;
  2557. ) ;
  2558. = M 35.5;
  2559. A M 35.5;
  2560. JNB _004;
  2561. L 3;
  2562. T MW 4;
  2563. _004: NOP 0;
  2564. NETWORK
  2565. TITLE =
  2566. A( ;
  2567. A M 1.2;
  2568. JNB _005;
  2569. L 3;
  2570. T MW 12;
  2571. SET ;
  2572. SAVE ;
  2573. CLR ;
  2574. _005: A BR;
  2575. ) ;
  2576. JNB _006;
  2577. L 1;
  2578. T MW 4;
  2579. _006: NOP 0;
  2580. NETWORK
  2581. TITLE =To CCR
  2582. //Mode Operation
  2583. A( ;
  2584. L MW 4;
  2585. L 1;
  2586. ==I ;
  2587. ) ;
  2588. = L 0.0;
  2589. BLD 103;
  2590. A( ;
  2591. L MW 4;
  2592. L 2;
  2593. ==I ;
  2594. ) ;
  2595. = L 0.1;
  2596. BLD 103;
  2597. A( ;
  2598. L MW 4;
  2599. L 3;
  2600. ==I ;
  2601. ) ;
  2602. = L 0.2;
  2603. BLD 103;
  2604. A M 0.3;
  2605. = L 0.3;
  2606. BLD 103;
  2607. CALL FC 6 (
  2608. Input_Bit0 := L 0.0,
  2609. Input_Bit1 := L 0.1,
  2610. Input_Bit2 := L 0.2,
  2611. Input_Bit3 := L 0.3,
  2612. Output_Bit0 := DB2.DBX 1.4,
  2613. Output_Bit1 := DB2.DBX 1.5,
  2614. Output_Bit2 := DB2.DBX 1.6,
  2615. Output_Bit3 := DB2.DBX 1.7);
  2616. NOP 0;
  2617. END_FUNCTION
  2618. FUNCTION FC 10 : VOID
  2619. TITLE =Adjust Input Parameter Form TP
  2620. VERSION : 0.1
  2621. BEGIN
  2622. NETWORK
  2623. TITLE =
  2624. NETWORK
  2625. TITLE =
  2626. //DEFAULT VALUE SETTING
  2627. A M 0.6;
  2628. JNB _001;
  2629. L 100;
  2630. T MW 10;
  2631. SET ;
  2632. SAVE ;
  2633. CLR ;
  2634. _001: A BR;
  2635. = L 0.0;
  2636. A( ;
  2637. A L 0.0;
  2638. JNB _002;
  2639. L 10;
  2640. T MW 12;
  2641. SET ;
  2642. SAVE ;
  2643. CLR ;
  2644. _002: A BR;
  2645. ) ;
  2646. JNB _003;
  2647. L 192;
  2648. T MW 14;
  2649. _003: NOP 0;
  2650. A( ;
  2651. A L 0.0;
  2652. JNB _004;
  2653. L 10;
  2654. T MW 8;
  2655. SET ;
  2656. SAVE ;
  2657. CLR ;
  2658. _004: A BR;
  2659. ) ;
  2660. JNB _005;
  2661. L 5;
  2662. T MW 6;
  2663. _005: NOP 0;
  2664. A( ;
  2665. A( ;
  2666. A L 0.0;
  2667. JNB _006;
  2668. L 25;
  2669. T MD 40;
  2670. SET ;
  2671. SAVE ;
  2672. CLR ;
  2673. _006: A BR;
  2674. ) ;
  2675. JNB _007;
  2676. L 30000;
  2677. T MD 48;
  2678. SET ;
  2679. SAVE ;
  2680. CLR ;
  2681. _007: A BR;
  2682. ) ;
  2683. JNB _008;
  2684. L 500;
  2685. T MD 52;
  2686. _008: NOP 0;
  2687. NETWORK
  2688. TITLE =
  2689. CALL FC 20 (
  2690. MAX := 30,
  2691. MIN := 5,
  2692. INPUT_VALUE := MW 8);
  2693. NOP 0;
  2694. NETWORK
  2695. TITLE =
  2696. CALL FC 20 (
  2697. MAX := 500,
  2698. MIN := 50,
  2699. INPUT_VALUE := MW 10);
  2700. NOP 0;
  2701. NETWORK
  2702. TITLE =
  2703. L MW 10;
  2704. L 10;
  2705. /I ;
  2706. T MW 28;
  2707. NOP 0;
  2708. NETWORK
  2709. TITLE =
  2710. CALL FC 20 (
  2711. MAX := 100,
  2712. MIN := 3,
  2713. INPUT_VALUE := MW 32);
  2714. NOP 0;
  2715. NETWORK
  2716. TITLE =
  2717. CALL FC 20 (
  2718. MAX := 192,
  2719. MIN := 192,
  2720. INPUT_VALUE := MW 14);
  2721. NOP 0;
  2722. NETWORK
  2723. TITLE =
  2724. CALL FC 20 (
  2725. MAX := 300,
  2726. MIN := 4,
  2727. INPUT_VALUE := MW 6);
  2728. NOP 0;
  2729. NETWORK
  2730. TITLE =
  2731. CALL FC 20 (
  2732. MAX := 3,
  2733. MIN := 1,
  2734. INPUT_VALUE := MW 4);
  2735. NOP 0;
  2736. NETWORK
  2737. TITLE =
  2738. CALL FC 21 (
  2739. MAX := L#30,
  2740. MIN := L#10,
  2741. INPUT := MD 40);
  2742. NOP 0;
  2743. NETWORK
  2744. TITLE =
  2745. CALL FC 21 (
  2746. MAX := L#32767,
  2747. MIN := L#20000,
  2748. INPUT := MD 130);
  2749. NOP 0;
  2750. NETWORK
  2751. TITLE =
  2752. CALL FC 21 (
  2753. MAX := L#5000,
  2754. MIN := L#-5000,
  2755. INPUT := MD 118);
  2756. NOP 0;
  2757. NETWORK
  2758. TITLE =
  2759. CALL FC 21 (
  2760. MAX := L#32767,
  2761. MIN := L#20000,
  2762. INPUT := MD 56);
  2763. NOP 0;
  2764. NETWORK
  2765. TITLE =
  2766. CALL FC 21 (
  2767. MAX := L#5000,
  2768. MIN := L#-5000,
  2769. INPUT := MD 60);
  2770. NOP 0;
  2771. NETWORK
  2772. TITLE =
  2773. CALL FC 21 (
  2774. MAX := L#32767,
  2775. MIN := L#20000,
  2776. INPUT := MD 138);
  2777. NOP 0;
  2778. NETWORK
  2779. TITLE =
  2780. CALL FC 21 (
  2781. MAX := L#5000,
  2782. MIN := L#-5000,
  2783. INPUT := MD 134);
  2784. NOP 0;
  2785. NETWORK
  2786. TITLE =
  2787. A M 3.7;
  2788. = L 0.0;
  2789. BLD 103;
  2790. CALL FC 31 (
  2791. PIW_INPUT := PIW 324,
  2792. FULL_SCALE_INSTRUMENT := MD 40,
  2793. FULL_SCALE_REAL := MD 40,
  2794. Defult_Setting := L 0.0,
  2795. OUTPUT_MESSUR := MD 122,
  2796. PERCENT := MD 126,
  2797. Gain := MD 130,
  2798. Offset := MD 118);
  2799. NOP 0;
  2800. NETWORK
  2801. TITLE =
  2802. L MW 124;
  2803. T DB2.DBW 16;
  2804. NOP 0;
  2805. NETWORK
  2806. TITLE =
  2807. L MW 124;
  2808. L 10;
  2809. /I ;
  2810. T MW 116;
  2811. NOP 0;
  2812. NETWORK
  2813. TITLE =
  2814. L MW 124;
  2815. L 25;
  2816. /I ;
  2817. T MW 100;
  2818. NOP 0;
  2819. NETWORK
  2820. TITLE =
  2821. A M 3.7;
  2822. = L 0.0;
  2823. BLD 103;
  2824. CALL FC 31 (
  2825. PIW_INPUT := PIW 320,
  2826. FULL_SCALE_INSTRUMENT := L#300,
  2827. FULL_SCALE_REAL := L#300,
  2828. Defult_Setting := L 0.0,
  2829. OUTPUT_MESSUR := MD 146,
  2830. PERCENT := MD 142,
  2831. Gain := MD 56,
  2832. Offset := MD 60);
  2833. NOP 0;
  2834. NETWORK
  2835. TITLE =
  2836. A M 3.7;
  2837. = L 0.0;
  2838. BLD 103;
  2839. CALL FC 31 (
  2840. PIW_INPUT := PIW 322,
  2841. FULL_SCALE_INSTRUMENT := L#300,
  2842. FULL_SCALE_REAL := L#300,
  2843. Defult_Setting := L 0.0,
  2844. OUTPUT_MESSUR := MD 112,
  2845. PERCENT := MD 142,
  2846. Gain := MD 138,
  2847. Offset := MD 134);
  2848. NOP 0;
  2849. NETWORK
  2850. TITLE =
  2851. L MW 114;
  2852. L 10;
  2853. /I ;
  2854. T MW 102;
  2855. NOP 0;
  2856. NETWORK
  2857. TITLE =
  2858. L MW 148;
  2859. L 10;
  2860. /I ;
  2861. T MW 142;
  2862. NOP 0;
  2863. END_FUNCTION
  2864. FUNCTION FC 11 : VOID
  2865. TITLE =
  2866. VERSION : 0.1
  2867. BEGIN
  2868. NETWORK
  2869. TITLE =
  2870. A M 3.4;
  2871. = Q 5.7;
  2872. NETWORK
  2873. TITLE =
  2874. A DB2.DBX 0.6;
  2875. = Q 5.0;
  2876. NETWORK
  2877. TITLE =
  2878. A M 0.0;
  2879. = Q 5.2;
  2880. END_FUNCTION
  2881. FUNCTION FC 12 : VOID
  2882. TITLE =Fresh Air Control
  2883. VERSION : 0.1
  2884. BEGIN
  2885. NETWORK
  2886. TITLE =
  2887. A( ;
  2888. A I 43.4;
  2889. A I 25.6;
  2890. O ;
  2891. AN I 43.4;
  2892. A I 43.2;
  2893. ) ;
  2894. A I 0.7;
  2895. AN I 0.5;
  2896. = Q 5.5;
  2897. NETWORK
  2898. TITLE =
  2899. A( ;
  2900. A I 43.4;
  2901. A I 25.7;
  2902. O ;
  2903. AN I 43.4;
  2904. A I 43.3;
  2905. ) ;
  2906. A I 0.6;
  2907. AN I 0.5;
  2908. = Q 5.4;
  2909. NETWORK
  2910. TITLE =
  2911. A I 0.7;
  2912. = L 0.0;
  2913. BLD 103;
  2914. A I 0.6;
  2915. = L 0.1;
  2916. BLD 103;
  2917. A I 0.7;
  2918. = L 0.2;
  2919. BLD 103;
  2920. A I 0.6;
  2921. = L 0.3;
  2922. BLD 103;
  2923. CALL FC 6 (
  2924. Input_Bit0 := L 0.0,
  2925. Input_Bit1 := L 0.1,
  2926. Input_Bit2 := L 0.2,
  2927. Input_Bit3 := L 0.3,
  2928. Output_Bit0 := DB2.DBX 9.3,
  2929. Output_Bit1 := DB2.DBX 9.4,
  2930. Output_Bit2 := DB2.DBX 9.3,
  2931. Output_Bit3 := DB2.DBX 9.4);
  2932. NOP 0;
  2933. NETWORK
  2934. TITLE =
  2935. L PIW 320;
  2936. T DB2.DBW 20;
  2937. NOP 0;
  2938. NETWORK
  2939. TITLE =
  2940. L MW 102;
  2941. T DB2.DBW 22;
  2942. NOP 0;
  2943. END_FUNCTION
  2944. FUNCTION FC 15 : VOID
  2945. TITLE =
  2946. VERSION : 0.1
  2947. BEGIN
  2948. NETWORK
  2949. TITLE =
  2950. A( ;
  2951. A( ;
  2952. A( ;
  2953. L DB2.DBB 0;
  2954. T QB 40;
  2955. SET ;
  2956. SAVE ;
  2957. CLR ;
  2958. A BR;
  2959. ) ;
  2960. JNB _001;
  2961. L DB2.DBB 1;
  2962. T QB 41;
  2963. SET ;
  2964. SAVE ;
  2965. CLR ;
  2966. _001: A BR;
  2967. ) ;
  2968. JNB _002;
  2969. L DB2.DBB 2;
  2970. T QB 42;
  2971. SET ;
  2972. SAVE ;
  2973. CLR ;
  2974. _002: A BR;
  2975. ) ;
  2976. JNB _003;
  2977. L DB2.DBB 3;
  2978. T QB 43;
  2979. _003: NOP 0;
  2980. NETWORK
  2981. TITLE =
  2982. A( ;
  2983. A( ;
  2984. A( ;
  2985. L DB2.DBB 4;
  2986. T QB 44;
  2987. SET ;
  2988. SAVE ;
  2989. CLR ;
  2990. A BR;
  2991. ) ;
  2992. JNB _004;
  2993. L DB2.DBB 5;
  2994. T QB 45;
  2995. SET ;
  2996. SAVE ;
  2997. CLR ;
  2998. _004: A BR;
  2999. ) ;
  3000. JNB _005;
  3001. L DB2.DBB 6;
  3002. T QB 46;
  3003. SET ;
  3004. SAVE ;
  3005. CLR ;
  3006. _005: A BR;
  3007. ) ;
  3008. JNB _006;
  3009. L DB2.DBB 7;
  3010. T QB 47;
  3011. _006: NOP 0;
  3012. NETWORK
  3013. TITLE =
  3014. A( ;
  3015. A( ;
  3016. A( ;
  3017. L DB2.DBB 8;
  3018. T QB 48;
  3019. SET ;
  3020. SAVE ;
  3021. CLR ;
  3022. A BR;
  3023. ) ;
  3024. JNB _007;
  3025. L DB2.DBB 9;
  3026. T QB 60;
  3027. SET ;
  3028. SAVE ;
  3029. CLR ;
  3030. _007: A BR;
  3031. ) ;
  3032. JNB _008;
  3033. L DB2.DBB 10;
  3034. T QB 64;
  3035. SET ;
  3036. SAVE ;
  3037. CLR ;
  3038. _008: A BR;
  3039. ) ;
  3040. JNB _009;
  3041. L DB2.DBB 11;
  3042. T QB 61;
  3043. _009: NOP 0;
  3044. NETWORK
  3045. TITLE =
  3046. A( ;
  3047. A( ;
  3048. A( ;
  3049. L DB2.DBB 12;
  3050. T QB 65;
  3051. SET ;
  3052. SAVE ;
  3053. CLR ;
  3054. A BR;
  3055. ) ;
  3056. JNB _00a;
  3057. L DB2.DBB 14;
  3058. T QB 56;
  3059. SET ;
  3060. SAVE ;
  3061. CLR ;
  3062. _00a: A BR;
  3063. ) ;
  3064. JNB _00b;
  3065. L DB2.DBB 15;
  3066. T QB 57;
  3067. SET ;
  3068. SAVE ;
  3069. CLR ;
  3070. _00b: A BR;
  3071. ) ;
  3072. JNB _00c;
  3073. L DB2.DBB 16;
  3074. T QB 58;
  3075. _00c: NOP 0;
  3076. NETWORK
  3077. TITLE =
  3078. A( ;
  3079. A( ;
  3080. A( ;
  3081. L DB2.DBB 17;
  3082. T QB 59;
  3083. SET ;
  3084. SAVE ;
  3085. CLR ;
  3086. A BR;
  3087. ) ;
  3088. JNB _00d;
  3089. L DB2.DBB 18;
  3090. T QB 62;
  3091. SET ;
  3092. SAVE ;
  3093. CLR ;
  3094. _00d: A BR;
  3095. ) ;
  3096. JNB _00e;
  3097. L DB2.DBB 19;
  3098. T QB 63;
  3099. SET ;
  3100. SAVE ;
  3101. CLR ;
  3102. _00e: A BR;
  3103. ) ;
  3104. JNB _00f;
  3105. L DB2.DBB 20;
  3106. T QB 66;
  3107. _00f: NOP 0;
  3108. NETWORK
  3109. TITLE =
  3110. A( ;
  3111. A( ;
  3112. L DB2.DBB 21;
  3113. T QB 67;
  3114. SET ;
  3115. SAVE ;
  3116. CLR ;
  3117. A BR;
  3118. ) ;
  3119. JNB _010;
  3120. L DB2.DBB 22;
  3121. T QB 68;
  3122. SET ;
  3123. SAVE ;
  3124. CLR ;
  3125. _010: A BR;
  3126. ) ;
  3127. JNB _011;
  3128. L DB2.DBB 23;
  3129. T QB 69;
  3130. _011: NOP 0;
  3131. NETWORK
  3132. TITLE =
  3133. A( ;
  3134. L DB2.DBB 24;
  3135. T QB 70;
  3136. SET ;
  3137. SAVE ;
  3138. CLR ;
  3139. A BR;
  3140. ) ;
  3141. JNB _012;
  3142. L DB2.DBB 25;
  3143. T QB 71;
  3144. _012: NOP 0;
  3145. END_FUNCTION
  3146. FUNCTION FC 16 : VOID
  3147. TITLE =
  3148. VERSION : 0.1
  3149. BEGIN
  3150. NETWORK
  3151. TITLE =
  3152. A M 0.0;
  3153. = L 0.0;
  3154. BLD 103;
  3155. A I 9.6;
  3156. = L 0.1;
  3157. BLD 103;
  3158. A I 9.7;
  3159. = L 0.2;
  3160. BLD 103;
  3161. A I 9.4;
  3162. = L 0.3;
  3163. BLD 103;
  3164. A I 42.0;
  3165. = L 0.4;
  3166. BLD 103;
  3167. A M 36.4;
  3168. = L 0.5;
  3169. BLD 103;
  3170. A M 36.4;
  3171. = L 0.6;
  3172. BLD 103;
  3173. A Q 8.3;
  3174. = L 0.7;
  3175. BLD 103;
  3176. A I 9.5;
  3177. = L 1.0;
  3178. BLD 103;
  3179. A I 12.0;
  3180. = L 1.1;
  3181. BLD 103;
  3182. A I 12.1;
  3183. = L 1.2;
  3184. BLD 103;
  3185. A M 2.5;
  3186. = L 1.3;
  3187. BLD 103;
  3188. A M 3.0;
  3189. = L 1.4;
  3190. BLD 103;
  3191. CALL FB 1 , DB 71 (
  3192. Central_Local := L 0.0,
  3193. LB_Start := L 0.1,
  3194. LB_Stop := L 0.2,
  3195. Emergency_Stop := L 0.3,
  3196. Single_Start := L 0.4,
  3197. Group_Start := L 0.5,
  3198. Group_Stop := L 0.6,
  3199. Interlock := L 0.7,
  3200. Speed_Switch := L 1.0,
  3201. Contactor := L 1.1,
  3202. Circuit_Breaker := L 1.2,
  3203. Clock := L 1.3,
  3204. reset := L 1.4,
  3205. Delay_Time := T 71,
  3206. Group_ON_Timer := T 50,
  3207. ON_Delay := S5T#10S,
  3208. Group_Off_Timer := T 51,
  3209. Off_Delay := S5T#5S,
  3210. Speed_Switch_Fault := DB1.DBX 0.5,
  3211. Contactor_Fault := DB1.DBX 0.6,
  3212. CB_Fault := DB1.DBX 0.7,
  3213. Motor_ON := Q 7.1);
  3214. NOP 0;
  3215. NETWORK
  3216. TITLE =
  3217. A M 0.0;
  3218. = L 0.0;
  3219. BLD 103;
  3220. A I 12.4;
  3221. = L 0.1;
  3222. BLD 103;
  3223. A I 12.5;
  3224. = L 0.2;
  3225. BLD 103;
  3226. A I 12.2;
  3227. = L 0.3;
  3228. BLD 103;
  3229. A I 42.1;
  3230. = L 0.4;
  3231. BLD 103;
  3232. A M 36.4;
  3233. = L 0.5;
  3234. BLD 103;
  3235. A Q 7.5;
  3236. = L 0.6;
  3237. BLD 103;
  3238. A Q 7.7;
  3239. = L 0.7;
  3240. BLD 103;
  3241. A I 12.3;
  3242. = L 1.0;
  3243. BLD 103;
  3244. A I 12.6;
  3245. = L 1.1;
  3246. BLD 103;
  3247. A I 12.7;
  3248. = L 1.2;
  3249. BLD 103;
  3250. A M 2.5;
  3251. = L 1.3;
  3252. BLD 103;
  3253. A M 3.0;
  3254. = L 1.4;
  3255. BLD 103;
  3256. CALL FB 1 , DB 72 (
  3257. Central_Local := L 0.0,
  3258. LB_Start := L 0.1,
  3259. LB_Stop := L 0.2,
  3260. Emergency_Stop := L 0.3,
  3261. Single_Start := L 0.4,
  3262. Group_Start := L 0.5,
  3263. Group_Stop := L 0.6,
  3264. Interlock := L 0.7,
  3265. Speed_Switch := L 1.0,
  3266. Contactor := L 1.1,
  3267. Circuit_Breaker := L 1.2,
  3268. Clock := L 1.3,
  3269. reset := L 1.4,
  3270. Delay_Time := T 72,
  3271. Group_ON_Timer := T 52,
  3272. ON_Delay := S5T#10S,
  3273. Group_Off_Timer := T 53,
  3274. Off_Delay := S5T#5S,
  3275. Speed_Switch_Fault := DB1.DBX 1.1,
  3276. Contactor_Fault := DB1.DBX 1.2,
  3277. CB_Fault := DB1.DBX 1.3,
  3278. Motor_ON := Q 7.2);
  3279. NOP 0;
  3280. NETWORK
  3281. TITLE =
  3282. A M 0.0;
  3283. = L 0.0;
  3284. BLD 103;
  3285. A I 13.2;
  3286. = L 0.1;
  3287. BLD 103;
  3288. A I 13.3;
  3289. = L 0.2;
  3290. BLD 103;
  3291. A I 13.0;
  3292. = L 0.3;
  3293. BLD 103;
  3294. A I 42.2;
  3295. = L 0.4;
  3296. BLD 103;
  3297. A M 36.4;
  3298. = L 0.5;
  3299. BLD 103;
  3300. A Q 7.6;
  3301. = L 0.6;
  3302. BLD 103;
  3303. A Q 7.7;
  3304. = L 0.7;
  3305. BLD 103;
  3306. A I 13.1;
  3307. = L 1.0;
  3308. BLD 103;
  3309. A I 13.4;
  3310. = L 1.1;
  3311. BLD 103;
  3312. A I 13.5;
  3313. = L 1.2;
  3314. BLD 103;
  3315. A M 2.5;
  3316. = L 1.3;
  3317. BLD 103;
  3318. A M 3.0;
  3319. = L 1.4;
  3320. BLD 103;
  3321. CALL FB 1 , DB 73 (
  3322. Central_Local := L 0.0,
  3323. LB_Start := L 0.1,
  3324. LB_Stop := L 0.2,
  3325. Emergency_Stop := L 0.3,
  3326. Single_Start := L 0.4,
  3327. Group_Start := L 0.5,
  3328. Group_Stop := L 0.6,
  3329. Interlock := L 0.7,
  3330. Speed_Switch := L 1.0,
  3331. Contactor := L 1.1,
  3332. Circuit_Breaker := L 1.2,
  3333. Clock := L 1.3,
  3334. reset := L 1.4,
  3335. Delay_Time := T 73,
  3336. Group_ON_Timer := T 54,
  3337. ON_Delay := S5T#10S,
  3338. Group_Off_Timer := T 55,
  3339. Off_Delay := S5T#5S,
  3340. Speed_Switch_Fault := DB1.DBX 0.1,
  3341. Contactor_Fault := DB1.DBX 0.2,
  3342. CB_Fault := DB1.DBX 0.3,
  3343. Motor_ON := Q 7.3);
  3344. NOP 0;
  3345. NETWORK
  3346. TITLE =
  3347. A M 0.0;
  3348. = L 0.0;
  3349. BLD 103;
  3350. A I 16.0;
  3351. = L 0.1;
  3352. BLD 103;
  3353. A I 16.1;
  3354. = L 0.2;
  3355. BLD 103;
  3356. A I 13.6;
  3357. = L 0.3;
  3358. BLD 103;
  3359. A I 42.3;
  3360. = L 0.4;
  3361. BLD 103;
  3362. A M 36.4;
  3363. = L 0.5;
  3364. BLD 103;
  3365. A M 36.4;
  3366. = L 0.6;
  3367. BLD 103;
  3368. A Q 7.2;
  3369. = L 0.7;
  3370. BLD 103;
  3371. A I 13.7;
  3372. = L 1.0;
  3373. BLD 103;
  3374. A I 16.2;
  3375. = L 1.1;
  3376. BLD 103;
  3377. A I 16.3;
  3378. = L 1.2;
  3379. BLD 103;
  3380. A M 2.5;
  3381. = L 1.3;
  3382. BLD 103;
  3383. A M 3.0;
  3384. = L 1.4;
  3385. BLD 103;
  3386. CALL FB 1 , DB 81 (
  3387. Central_Local := L 0.0,
  3388. LB_Start := L 0.1,
  3389. LB_Stop := L 0.2,
  3390. Emergency_Stop := L 0.3,
  3391. Single_Start := L 0.4,
  3392. Group_Start := L 0.5,
  3393. Group_Stop := L 0.6,
  3394. Interlock := L 0.7,
  3395. Speed_Switch := L 1.0,
  3396. Contactor := L 1.1,
  3397. Circuit_Breaker := L 1.2,
  3398. Clock := L 1.3,
  3399. reset := L 1.4,
  3400. Delay_Time := T 81,
  3401. Group_ON_Timer := T 56,
  3402. ON_Delay := S5T#10S,
  3403. Group_Off_Timer := T 57,
  3404. Off_Delay := S5T#30S,
  3405. Speed_Switch_Fault := DB1.DBX 1.5,
  3406. Contactor_Fault := DB1.DBX 1.6,
  3407. CB_Fault := DB1.DBX 1.7,
  3408. Motor_ON := Q 7.5);
  3409. NOP 0;
  3410. NETWORK
  3411. TITLE =
  3412. A M 0.0;
  3413. = L 0.0;
  3414. BLD 103;
  3415. A I 16.6;
  3416. = L 0.1;
  3417. BLD 103;
  3418. A I 16.7;
  3419. = L 0.2;
  3420. BLD 103;
  3421. A I 16.4;
  3422. = L 0.3;
  3423. BLD 103;
  3424. A I 42.4;
  3425. = L 0.4;
  3426. BLD 103;
  3427. A M 36.4;
  3428. = L 0.5;
  3429. BLD 103;
  3430. A M 36.4;
  3431. = L 0.6;
  3432. BLD 103;
  3433. A Q 7.3;
  3434. = L 0.7;
  3435. BLD 103;
  3436. A I 16.5;
  3437. = L 1.0;
  3438. BLD 103;
  3439. A I 17.0;
  3440. = L 1.1;
  3441. BLD 103;
  3442. A I 17.1;
  3443. = L 1.2;
  3444. BLD 103;
  3445. A M 2.5;
  3446. = L 1.3;
  3447. BLD 103;
  3448. A M 3.0;
  3449. = L 1.4;
  3450. BLD 103;
  3451. CALL FB 1 , DB 82 (
  3452. Central_Local := L 0.0,
  3453. LB_Start := L 0.1,
  3454. LB_Stop := L 0.2,
  3455. Emergency_Stop := L 0.3,
  3456. Single_Start := L 0.4,
  3457. Group_Start := L 0.5,
  3458. Group_Stop := L 0.6,
  3459. Interlock := L 0.7,
  3460. Speed_Switch := L 1.0,
  3461. Contactor := L 1.1,
  3462. Circuit_Breaker := L 1.2,
  3463. Clock := L 1.3,
  3464. reset := L 1.4,
  3465. Delay_Time := T 82,
  3466. Group_ON_Timer := T 58,
  3467. ON_Delay := S5T#7S,
  3468. Group_Off_Timer := T 59,
  3469. Off_Delay := S5T#30S,
  3470. Speed_Switch_Fault := DB1.DBX 2.1,
  3471. Contactor_Fault := DB1.DBX 2.2,
  3472. CB_Fault := DB1.DBX 2.3,
  3473. Motor_ON := Q 7.6);
  3474. NOP 0;
  3475. NETWORK
  3476. TITLE =
  3477. A M 0.0;
  3478. = L 0.0;
  3479. BLD 103;
  3480. A I 17.4;
  3481. = L 0.1;
  3482. BLD 103;
  3483. A I 17.5;
  3484. = L 0.2;
  3485. BLD 103;
  3486. A I 17.2;
  3487. = L 0.3;
  3488. BLD 103;
  3489. A I 42.6;
  3490. = L 0.4;
  3491. BLD 103;
  3492. A M 36.4;
  3493. = L 0.5;
  3494. BLD 103;
  3495. A( ;
  3496. O Q 7.2;
  3497. O Q 7.3;
  3498. O Q 8.3;
  3499. ) ;
  3500. = L 0.6;
  3501. BLD 103;
  3502. A Q 8.0;
  3503. = L 0.7;
  3504. BLD 103;
  3505. A I 17.3;
  3506. = L 1.0;
  3507. BLD 103;
  3508. A I 17.6;
  3509. = L 1.1;
  3510. BLD 103;
  3511. A I 17.7;
  3512. = L 1.2;
  3513. BLD 103;
  3514. A M 2.5;
  3515. = L 1.3;
  3516. BLD 103;
  3517. A M 3.0;
  3518. = L 1.4;
  3519. BLD 103;
  3520. CALL FB 1 , DB 83 (
  3521. Central_Local := L 0.0,
  3522. LB_Start := L 0.1,
  3523. LB_Stop := L 0.2,
  3524. Emergency_Stop := L 0.3,
  3525. Single_Start := L 0.4,
  3526. Group_Start := L 0.5,
  3527. Group_Stop := L 0.6,
  3528. Interlock := L 0.7,
  3529. Speed_Switch := L 1.0,
  3530. Contactor := L 1.1,
  3531. Circuit_Breaker := L 1.2,
  3532. Clock := L 1.3,
  3533. reset := L 1.4,
  3534. Delay_Time := T 83,
  3535. Group_ON_Timer := T 60,
  3536. ON_Delay := S5T#10S,
  3537. Group_Off_Timer := T 61,
  3538. Off_Delay := S5T#30S,
  3539. Speed_Switch_Fault := DB1.DBX 3.1,
  3540. Contactor_Fault := DB1.DBX 3.2,
  3541. CB_Fault := DB1.DBX 3.3,
  3542. Motor_ON := Q 7.7);
  3543. NOP 0;
  3544. NETWORK
  3545. TITLE =
  3546. A M 0.0;
  3547. = L 0.0;
  3548. BLD 103;
  3549. A I 20.2;
  3550. = L 0.1;
  3551. BLD 103;
  3552. A I 20.3;
  3553. = L 0.2;
  3554. BLD 103;
  3555. A I 20.0;
  3556. = L 0.3;
  3557. BLD 103;
  3558. A I 42.7;
  3559. = L 0.4;
  3560. BLD 103;
  3561. A M 36.4;
  3562. = L 0.5;
  3563. BLD 103;
  3564. A Q 7.7;
  3565. = L 0.6;
  3566. BLD 103;
  3567. A Q 8.1;
  3568. = L 0.7;
  3569. BLD 103;
  3570. A I 20.1;
  3571. = L 1.0;
  3572. BLD 103;
  3573. A I 20.4;
  3574. = L 1.1;
  3575. BLD 103;
  3576. A I 20.5;
  3577. = L 1.2;
  3578. BLD 103;
  3579. A M 2.5;
  3580. = L 1.3;
  3581. BLD 103;
  3582. A M 3.0;
  3583. = L 1.4;
  3584. BLD 103;
  3585. CALL FB 1 , DB 84 (
  3586. Central_Local := L 0.0,
  3587. LB_Start := L 0.1,
  3588. LB_Stop := L 0.2,
  3589. Emergency_Stop := L 0.3,
  3590. Single_Start := L 0.4,
  3591. Group_Start := L 0.5,
  3592. Group_Stop := L 0.6,
  3593. Interlock := L 0.7,
  3594. Speed_Switch := L 1.0,
  3595. Contactor := L 1.1,
  3596. Circuit_Breaker := L 1.2,
  3597. Clock := L 1.3,
  3598. reset := L 1.4,
  3599. Delay_Time := T 84,
  3600. Group_ON_Timer := T 62,
  3601. ON_Delay := S5T#10S,
  3602. Group_Off_Timer := T 63,
  3603. Off_Delay := S5T#30S,
  3604. Speed_Switch_Fault := DB1.DBX 3.5,
  3605. Contactor_Fault := DB1.DBX 3.6,
  3606. CB_Fault := DB1.DBX 3.7,
  3607. Motor_ON := Q 8.0);
  3608. NOP 0;
  3609. NETWORK
  3610. TITLE =
  3611. A M 0.0;
  3612. = L 0.0;
  3613. BLD 103;
  3614. A I 21.0;
  3615. = L 0.1;
  3616. BLD 103;
  3617. A I 21.1;
  3618. = L 0.2;
  3619. BLD 103;
  3620. A I 20.6;
  3621. = L 0.3;
  3622. BLD 103;
  3623. A I 43.0;
  3624. = L 0.4;
  3625. BLD 103;
  3626. A M 36.4;
  3627. = L 0.5;
  3628. BLD 103;
  3629. A Q 8.0;
  3630. = L 0.6;
  3631. BLD 103;
  3632. A Q 8.2;
  3633. = L 0.7;
  3634. BLD 103;
  3635. A I 20.7;
  3636. = L 1.0;
  3637. BLD 103;
  3638. A I 21.2;
  3639. = L 1.1;
  3640. BLD 103;
  3641. A I 21.3;
  3642. = L 1.2;
  3643. BLD 103;
  3644. A M 2.5;
  3645. = L 1.3;
  3646. BLD 103;
  3647. A M 3.0;
  3648. = L 1.4;
  3649. BLD 103;
  3650. CALL FB 1 , DB 85 (
  3651. Central_Local := L 0.0,
  3652. LB_Start := L 0.1,
  3653. LB_Stop := L 0.2,
  3654. Emergency_Stop := L 0.3,
  3655. Single_Start := L 0.4,
  3656. Group_Start := L 0.5,
  3657. Group_Stop := L 0.6,
  3658. Interlock := L 0.7,
  3659. Speed_Switch := L 1.0,
  3660. Contactor := L 1.1,
  3661. Circuit_Breaker := L 1.2,
  3662. Clock := L 1.3,
  3663. reset := L 1.4,
  3664. Delay_Time := T 85,
  3665. Group_ON_Timer := T 64,
  3666. ON_Delay := S5T#10S,
  3667. Group_Off_Timer := T 65,
  3668. Off_Delay := S5T#30S,
  3669. Speed_Switch_Fault := DB1.DBX 4.1,
  3670. Contactor_Fault := DB1.DBX 4.2,
  3671. CB_Fault := DB1.DBX 4.3,
  3672. Motor_ON := Q 8.1);
  3673. NOP 0;
  3674. NETWORK
  3675. TITLE =
  3676. A M 0.0;
  3677. = L 0.0;
  3678. BLD 103;
  3679. A I 21.6;
  3680. = L 0.1;
  3681. BLD 103;
  3682. A I 21.7;
  3683. = L 0.2;
  3684. BLD 103;
  3685. A I 21.4;
  3686. = L 0.3;
  3687. BLD 103;
  3688. A I 43.1;
  3689. = L 0.4;
  3690. BLD 103;
  3691. A M 36.4;
  3692. = L 0.5;
  3693. BLD 103;
  3694. A Q 8.1;
  3695. = L 0.6;
  3696. BLD 103;
  3697. A I 41.4;
  3698. = L 0.7;
  3699. BLD 103;
  3700. A I 21.5;
  3701. = L 1.0;
  3702. BLD 103;
  3703. A I 24.0;
  3704. = L 1.1;
  3705. BLD 103;
  3706. A I 24.1;
  3707. = L 1.2;
  3708. BLD 103;
  3709. A M 2.5;
  3710. = L 1.3;
  3711. BLD 103;
  3712. A M 3.0;
  3713. = L 1.4;
  3714. BLD 103;
  3715. CALL FB 1 , DB 86 (
  3716. Central_Local := L 0.0,
  3717. LB_Start := L 0.1,
  3718. LB_Stop := L 0.2,
  3719. Emergency_Stop := L 0.3,
  3720. Single_Start := L 0.4,
  3721. Group_Start := L 0.5,
  3722. Group_Stop := L 0.6,
  3723. Interlock := L 0.7,
  3724. Speed_Switch := L 1.0,
  3725. Contactor := L 1.1,
  3726. Circuit_Breaker := L 1.2,
  3727. Clock := L 1.3,
  3728. reset := L 1.4,
  3729. Delay_Time := T 86,
  3730. Group_ON_Timer := T 66,
  3731. ON_Delay := S5T#3S,
  3732. Group_Off_Timer := T 67,
  3733. Off_Delay := S5T#30S,
  3734. Speed_Switch_Fault := DB1.DBX 4.5,
  3735. Contactor_Fault := DB1.DBX 4.6,
  3736. CB_Fault := DB1.DBX 4.7,
  3737. Motor_ON := Q 8.2);
  3738. NOP 0;
  3739. NETWORK
  3740. TITLE =
  3741. A M 0.0;
  3742. = L 0.0;
  3743. BLD 103;
  3744. A I 24.4;
  3745. = L 0.1;
  3746. BLD 103;
  3747. A I 24.5;
  3748. = L 0.2;
  3749. BLD 103;
  3750. A I 24.2;
  3751. = L 0.3;
  3752. BLD 103;
  3753. A I 42.5;
  3754. = L 0.4;
  3755. BLD 103;
  3756. A M 36.4;
  3757. = L 0.5;
  3758. BLD 103;
  3759. A Q 7.1;
  3760. = L 0.6;
  3761. BLD 103;
  3762. A Q 7.7;
  3763. = L 0.7;
  3764. BLD 103;
  3765. A I 24.3;
  3766. = L 1.0;
  3767. BLD 103;
  3768. A I 24.6;
  3769. = L 1.1;
  3770. BLD 103;
  3771. A I 24.7;
  3772. = L 1.2;
  3773. BLD 103;
  3774. A M 2.5;
  3775. = L 1.3;
  3776. BLD 103;
  3777. A M 3.0;
  3778. = L 1.4;
  3779. BLD 103;
  3780. CALL FB 1 , DB 87 (
  3781. Central_Local := L 0.0,
  3782. LB_Start := L 0.1,
  3783. LB_Stop := L 0.2,
  3784. Emergency_Stop := L 0.3,
  3785. Single_Start := L 0.4,
  3786. Group_Start := L 0.5,
  3787. Group_Stop := L 0.6,
  3788. Interlock := L 0.7,
  3789. Speed_Switch := L 1.0,
  3790. Contactor := L 1.1,
  3791. Circuit_Breaker := L 1.2,
  3792. Clock := L 1.3,
  3793. reset := L 1.4,
  3794. Delay_Time := T 87,
  3795. Group_ON_Timer := T 68,
  3796. ON_Delay := S5T#12S,
  3797. Group_Off_Timer := T 69,
  3798. Off_Delay := S5T#30S,
  3799. Speed_Switch_Fault := DB1.DBX 2.5,
  3800. Contactor_Fault := DB1.DBX 2.6,
  3801. CB_Fault := DB1.DBX 2.7,
  3802. Motor_ON := Q 8.3);
  3803. NOP 0;
  3804. NETWORK
  3805. TITLE =
  3806. O DB71.DBX 12.5;
  3807. O DB72.DBX 12.5;
  3808. O DB73.DBX 12.5;
  3809. O DB81.DBX 12.5;
  3810. O DB82.DBX 12.5;
  3811. O DB83.DBX 12.5;
  3812. O DB84.DBX 12.5;
  3813. O DB85.DBX 12.5;
  3814. O DB86.DBX 12.5;
  3815. O DB87.DBX 12.5;
  3816. = Q 7.4;
  3817. NETWORK
  3818. TITLE =
  3819. A I 9.4;
  3820. = L 0.0;
  3821. BLD 103;
  3822. A I 9.5;
  3823. = L 0.1;
  3824. BLD 103;
  3825. A I 12.0;
  3826. = L 0.2;
  3827. BLD 103;
  3828. AN I 12.1;
  3829. = L 0.3;
  3830. BLD 103;
  3831. CALL FC 6 (
  3832. Input_Bit0 := L 0.0,
  3833. Input_Bit1 := L 0.1,
  3834. Input_Bit2 := L 0.2,
  3835. Input_Bit3 := L 0.3,
  3836. Output_Bit0 := DB2.DBX 4.4,
  3837. Output_Bit1 := DB2.DBX 4.5,
  3838. Output_Bit2 := DB2.DBX 4.6,
  3839. Output_Bit3 := DB2.DBX 4.7);
  3840. NOP 0;
  3841. NETWORK
  3842. TITLE =
  3843. A I 12.2;
  3844. = L 0.0;
  3845. BLD 103;
  3846. A I 12.3;
  3847. = L 0.1;
  3848. BLD 103;
  3849. A I 12.6;
  3850. = L 0.2;
  3851. BLD 103;
  3852. AN I 12.7;
  3853. = L 0.3;
  3854. BLD 103;
  3855. CALL FC 6 (
  3856. Input_Bit0 := L 0.0,
  3857. Input_Bit1 := L 0.1,
  3858. Input_Bit2 := L 0.2,
  3859. Input_Bit3 := L 0.3,
  3860. Output_Bit0 := DB2.DBX 5.0,
  3861. Output_Bit1 := DB2.DBX 5.1,
  3862. Output_Bit2 := DB2.DBX 5.2,
  3863. Output_Bit3 := DB2.DBX 5.3);
  3864. NOP 0;
  3865. NETWORK
  3866. TITLE =
  3867. A I 13.0;
  3868. = L 0.0;
  3869. BLD 103;
  3870. A I 13.1;
  3871. = L 0.1;
  3872. BLD 103;
  3873. A I 13.4;
  3874. = L 0.2;
  3875. BLD 103;
  3876. AN I 13.5;
  3877. = L 0.3;
  3878. BLD 103;
  3879. CALL FC 6 (
  3880. Input_Bit0 := L 0.0,
  3881. Input_Bit1 := L 0.1,
  3882. Input_Bit2 := L 0.2,
  3883. Input_Bit3 := L 0.3,
  3884. Output_Bit0 := DB2.DBX 4.0,
  3885. Output_Bit1 := DB2.DBX 4.1,
  3886. Output_Bit2 := DB2.DBX 4.2,
  3887. Output_Bit3 := DB2.DBX 4.3);
  3888. NOP 0;
  3889. NETWORK
  3890. TITLE =
  3891. A I 13.6;
  3892. = L 0.0;
  3893. BLD 103;
  3894. A I 13.7;
  3895. = L 0.1;
  3896. BLD 103;
  3897. A I 16.2;
  3898. = L 0.2;
  3899. BLD 103;
  3900. AN I 16.3;
  3901. = L 0.3;
  3902. BLD 103;
  3903. CALL FC 6 (
  3904. Input_Bit0 := L 0.0,
  3905. Input_Bit1 := L 0.1,
  3906. Input_Bit2 := L 0.2,
  3907. Input_Bit3 := L 0.3,
  3908. Output_Bit0 := DB2.DBX 5.4,
  3909. Output_Bit1 := DB2.DBX 5.5,
  3910. Output_Bit2 := DB2.DBX 5.6,
  3911. Output_Bit3 := DB2.DBX 5.7);
  3912. NOP 0;
  3913. NETWORK
  3914. TITLE =
  3915. A I 16.4;
  3916. = L 0.0;
  3917. BLD 103;
  3918. A I 16.5;
  3919. = L 0.1;
  3920. BLD 103;
  3921. A I 17.0;
  3922. = L 0.2;
  3923. BLD 103;
  3924. AN I 17.1;
  3925. = L 0.3;
  3926. BLD 103;
  3927. CALL FC 6 (
  3928. Input_Bit0 := L 0.0,
  3929. Input_Bit1 := L 0.1,
  3930. Input_Bit2 := L 0.2,
  3931. Input_Bit3 := L 0.3,
  3932. Output_Bit0 := DB2.DBX 6.0,
  3933. Output_Bit1 := DB2.DBX 6.1,
  3934. Output_Bit2 := DB2.DBX 6.2,
  3935. Output_Bit3 := DB2.DBX 6.3);
  3936. NOP 0;
  3937. NETWORK
  3938. TITLE =
  3939. A I 17.2;
  3940. = L 0.0;
  3941. BLD 103;
  3942. A I 17.3;
  3943. = L 0.1;
  3944. BLD 103;
  3945. A I 17.6;
  3946. = L 0.2;
  3947. BLD 103;
  3948. AN I 17.7;
  3949. = L 0.3;
  3950. BLD 103;
  3951. CALL FC 6 (
  3952. Input_Bit0 := L 0.0,
  3953. Input_Bit1 := L 0.1,
  3954. Input_Bit2 := L 0.2,
  3955. Input_Bit3 := L 0.3,
  3956. Output_Bit0 := DB2.DBX 7.0,
  3957. Output_Bit1 := DB2.DBX 7.1,
  3958. Output_Bit2 := DB2.DBX 7.2,
  3959. Output_Bit3 := DB2.DBX 7.3);
  3960. NOP 0;
  3961. NETWORK
  3962. TITLE =
  3963. A I 20.0;
  3964. = L 0.0;
  3965. BLD 103;
  3966. A I 20.1;
  3967. = L 0.1;
  3968. BLD 103;
  3969. A I 20.4;
  3970. = L 0.2;
  3971. BLD 103;
  3972. AN I 20.5;
  3973. = L 0.3;
  3974. BLD 103;
  3975. CALL FC 6 (
  3976. Input_Bit0 := L 0.0,
  3977. Input_Bit1 := L 0.1,
  3978. Input_Bit2 := L 0.2,
  3979. Input_Bit3 := L 0.3,
  3980. Output_Bit0 := DB2.DBX 7.4,
  3981. Output_Bit1 := DB2.DBX 7.5,
  3982. Output_Bit2 := DB2.DBX 7.6,
  3983. Output_Bit3 := DB2.DBX 7.7);
  3984. NOP 0;
  3985. NETWORK
  3986. TITLE =
  3987. A I 20.6;
  3988. = L 0.0;
  3989. BLD 103;
  3990. A I 20.7;
  3991. = L 0.1;
  3992. BLD 103;
  3993. A I 21.2;
  3994. = L 0.2;
  3995. BLD 103;
  3996. AN I 21.3;
  3997. = L 0.3;
  3998. BLD 103;
  3999. CALL FC 6 (
  4000. Input_Bit0 := L 0.0,
  4001. Input_Bit1 := L 0.1,
  4002. Input_Bit2 := L 0.2,
  4003. Input_Bit3 := L 0.3,
  4004. Output_Bit0 := DB2.DBX 8.0,
  4005. Output_Bit1 := DB2.DBX 8.1,
  4006. Output_Bit2 := DB2.DBX 8.2,
  4007. Output_Bit3 := DB2.DBX 8.3);
  4008. NOP 0;
  4009. NETWORK
  4010. TITLE =
  4011. A I 21.4;
  4012. = L 0.0;
  4013. BLD 103;
  4014. A I 21.5;
  4015. = L 0.1;
  4016. BLD 103;
  4017. A I 24.0;
  4018. = L 0.2;
  4019. BLD 103;
  4020. AN I 24.1;
  4021. = L 0.3;
  4022. BLD 103;
  4023. CALL FC 6 (
  4024. Input_Bit0 := L 0.0,
  4025. Input_Bit1 := L 0.1,
  4026. Input_Bit2 := L 0.2,
  4027. Input_Bit3 := L 0.3,
  4028. Output_Bit0 := DB2.DBX 8.4,
  4029. Output_Bit1 := DB2.DBX 8.5,
  4030. Output_Bit2 := DB2.DBX 8.6,
  4031. Output_Bit3 := DB2.DBX 8.7);
  4032. NOP 0;
  4033. NETWORK
  4034. TITLE =
  4035. A I 24.2;
  4036. = L 0.0;
  4037. BLD 103;
  4038. A I 24.3;
  4039. = L 0.1;
  4040. BLD 103;
  4041. A I 24.6;
  4042. = L 0.2;
  4043. BLD 103;
  4044. AN I 24.7;
  4045. = L 0.3;
  4046. BLD 103;
  4047. CALL FC 6 (
  4048. Input_Bit0 := L 0.0,
  4049. Input_Bit1 := L 0.1,
  4050. Input_Bit2 := L 0.2,
  4051. Input_Bit3 := L 0.3,
  4052. Output_Bit0 := DB2.DBX 6.4,
  4053. Output_Bit1 := DB2.DBX 6.5,
  4054. Output_Bit2 := DB2.DBX 6.6,
  4055. Output_Bit3 := DB2.DBX 6.7);
  4056. NOP 0;
  4057. NETWORK
  4058. TITLE =
  4059. AN I 9.4;
  4060. = L 0.0;
  4061. BLD 103;
  4062. AN I 12.2;
  4063. = L 0.1;
  4064. BLD 103;
  4065. AN I 13.0;
  4066. = L 0.2;
  4067. BLD 103;
  4068. AN I 13.6;
  4069. = L 0.3;
  4070. BLD 103;
  4071. CALL FC 6 (
  4072. Input_Bit0 := L 0.0,
  4073. Input_Bit1 := L 0.1,
  4074. Input_Bit2 := L 0.2,
  4075. Input_Bit3 := L 0.3,
  4076. Output_Bit0 := DB1.DBX 0.4,
  4077. Output_Bit1 := DB1.DBX 1.0,
  4078. Output_Bit2 := DB1.DBX 0.0,
  4079. Output_Bit3 := DB1.DBX 1.4);
  4080. NOP 0;
  4081. NETWORK
  4082. TITLE =
  4083. AN I 16.4;
  4084. = L 0.0;
  4085. BLD 103;
  4086. AN I 17.2;
  4087. = L 0.1;
  4088. BLD 103;
  4089. AN I 20.0;
  4090. = L 0.2;
  4091. BLD 103;
  4092. AN I 20.6;
  4093. = L 0.3;
  4094. BLD 103;
  4095. CALL FC 6 (
  4096. Input_Bit0 := L 0.0,
  4097. Input_Bit1 := L 0.1,
  4098. Input_Bit2 := L 0.2,
  4099. Input_Bit3 := L 0.3,
  4100. Output_Bit0 := DB1.DBX 2.0,
  4101. Output_Bit1 := DB1.DBX 3.0,
  4102. Output_Bit2 := DB1.DBX 3.4,
  4103. Output_Bit3 := DB1.DBX 4.0);
  4104. NOP 0;
  4105. NETWORK
  4106. TITLE =
  4107. AN I 21.4;
  4108. = L 0.0;
  4109. BLD 103;
  4110. AN I 24.2;
  4111. = L 0.1;
  4112. BLD 103;
  4113. A M 10.0;
  4114. = L 0.2;
  4115. BLD 103;
  4116. A M 0.7;
  4117. = L 0.3;
  4118. BLD 103;
  4119. CALL FC 6 (
  4120. Input_Bit0 := L 0.0,
  4121. Input_Bit1 := L 0.1,
  4122. Input_Bit2 := L 0.2,
  4123. Input_Bit3 := L 0.3,
  4124. Output_Bit0 := DB1.DBX 4.4,
  4125. Output_Bit1 := DB1.DBX 2.4,
  4126. Output_Bit2 := M 10.0,
  4127. Output_Bit3 := DB1.DBX 7.6);
  4128. NOP 0;
  4129. END_FUNCTION
  4130. FUNCTION FC 18 : VOID
  4131. TITLE =New Pulse Controller 91_8_22
  4132. VERSION : 0.1
  4133. BEGIN
  4134. NETWORK
  4135. TITLE =
  4136. AN DB6.DBX 2.0;
  4137. = L 0.0;
  4138. BLD 103;
  4139. CALL FB 2 , DB 5 (
  4140. Number_Of_Airtank := 32,
  4141. Number_Of_SV_In_Airtank := 6,
  4142. Mode := MW 4,
  4143. Jack_Closed := L 0.0,
  4144. Timer_Off := T 12,
  4145. Time_Interval_second := MW 12,
  4146. Timer_ON := T 13,
  4147. Pulse_Time_mSecond := MW 28,
  4148. Internal_Timer := T 14,
  4149. Pulse := Q 5.3,
  4150. Output_Byte := MB 25,
  4151. Out_Jack := QB 6);
  4152. NOP 0;
  4153. NETWORK
  4154. TITLE =Selnoid Control
  4155. A M 25.0;
  4156. = L 0.0;
  4157. BLD 103;
  4158. A M 25.1;
  4159. = L 0.1;
  4160. BLD 103;
  4161. A M 25.2;
  4162. = L 0.2;
  4163. BLD 103;
  4164. A M 25.3;
  4165. = L 0.3;
  4166. BLD 103;
  4167. CALL FC 6 (
  4168. Input_Bit0 := L 0.0,
  4169. Input_Bit1 := L 0.1,
  4170. Input_Bit2 := L 0.2,
  4171. Input_Bit3 := L 0.3,
  4172. Output_Bit0 := Q 4.7,
  4173. Output_Bit1 := Q 4.6,
  4174. Output_Bit2 := Q 4.5,
  4175. Output_Bit3 := Q 4.4);
  4176. NOP 0;
  4177. NETWORK
  4178. TITLE =Selnoid Control
  4179. A M 25.4;
  4180. = L 0.0;
  4181. BLD 103;
  4182. A M 25.5;
  4183. = L 0.1;
  4184. BLD 103;
  4185. A M 25.6;
  4186. = L 0.2;
  4187. BLD 103;
  4188. A M 25.7;
  4189. = L 0.3;
  4190. BLD 103;
  4191. CALL FC 6 (
  4192. Input_Bit0 := L 0.0,
  4193. Input_Bit1 := L 0.1,
  4194. Input_Bit2 := L 0.2,
  4195. Input_Bit3 := L 0.3,
  4196. Output_Bit0 := Q 4.3,
  4197. Output_Bit1 := Q 4.2,
  4198. Output_Bit2 := Q 4.1,
  4199. Output_Bit3 := Q 4.0);
  4200. NOP 0;
  4201. NETWORK
  4202. TITLE =
  4203. A( ;
  4204. L DB5.DBW 38;
  4205. L 4;
  4206. /I ;
  4207. T DB6.DBW 0;
  4208. AN OV;
  4209. SAVE ;
  4210. CLR ;
  4211. A BR;
  4212. ) ;
  4213. JNB _001;
  4214. CALL FB 3 , DB 6 ;
  4215. _001: NOP 0;
  4216. NETWORK
  4217. TITLE =
  4218. L DB6.DBW 0;
  4219. L 1;
  4220. +I ;
  4221. T MW 20;
  4222. NOP 0;
  4223. NETWORK
  4224. TITLE =
  4225. A( ;
  4226. A( ;
  4227. L DB5.DBW 38;
  4228. L 6;
  4229. *I ;
  4230. T MW 16;
  4231. AN OV;
  4232. SAVE ;
  4233. CLR ;
  4234. A BR;
  4235. ) ;
  4236. JNB _002;
  4237. L MW 16;
  4238. L DB5.DBW 22;
  4239. +I ;
  4240. T DB2.DBW 14;
  4241. AN OV;
  4242. SAVE ;
  4243. CLR ;
  4244. _002: A BR;
  4245. ) ;
  4246. JNB _003;
  4247. L DB2.DBW 14;
  4248. T MW 26;
  4249. _003: NOP 0;
  4250. NETWORK
  4251. TITLE =
  4252. A Q 5.3;
  4253. FP M 36.0;
  4254. A M 1.0;
  4255. JNB _004;
  4256. CALL FC 14 ;
  4257. _004: NOP 0;
  4258. END_FUNCTION
  4259. ORGANIZATION_BLOCK OB 1
  4260. TITLE = "Main Program Sweep (Cycle)"
  4261. //New Version 91_8_20
  4262. VERSION : 0.1
  4263. VAR_TEMP
  4264. OB1_EV_CLASS : BYTE ; //Bits 0-3 = 1 (Coming event), Bits 4-7 = 1 (Event class 1)
  4265. OB1_SCAN_1 : BYTE ; //1 (Cold restart scan 1 of OB 1), 3 (Scan 2-n of OB 1)
  4266. OB1_PRIORITY : BYTE ; //Priority of OB Execution
  4267. OB1_OB_NUMBR : BYTE ; //1 (Organization block 1, OB1)
  4268. OB1_RESERVED_1 : BYTE ; //Reserved for system
  4269. OB1_RESERVED_2 : BYTE ; //Reserved for system
  4270. OB1_PREV_CYCLE : INT ; //Cycle time of previous OB1 scan (milliseconds)
  4271. OB1_MIN_CYCLE : INT ; //Minimum cycle time of OB1 (milliseconds)
  4272. OB1_MAX_CYCLE : INT ; //Maximum cycle time of OB1 (milliseconds)
  4273. OB1_DATE_TIME : DATE_AND_TIME ; //Date and time OB1 started
  4274. END_VAR
  4275. BEGIN
  4276. NETWORK
  4277. TITLE =
  4278. A( ;
  4279. ON M 2.5;
  4280. O M 2.5;
  4281. ) ;
  4282. = M 0.2;
  4283. A M 0.2;
  4284. NOT ;
  4285. = M 0.3;
  4286. NETWORK
  4287. TITLE =
  4288. CALL FC 1 ;
  4289. NOP 0;
  4290. NETWORK
  4291. TITLE =
  4292. CALL FC 3 ;
  4293. NOP 0;
  4294. NETWORK
  4295. TITLE =
  4296. CALL FC 4 ;
  4297. NOP 0;
  4298. NETWORK
  4299. TITLE =
  4300. CALL FC 7 ;
  4301. NOP 0;
  4302. NETWORK
  4303. TITLE =
  4304. A DB2.DBX 0.6;
  4305. JNB _001;
  4306. CALL FC 18 ;
  4307. _001: NOP 0;
  4308. NETWORK
  4309. TITLE =
  4310. CALL FC 10 ;
  4311. NOP 0;
  4312. NETWORK
  4313. TITLE =
  4314. CALL FC 11 ;
  4315. NOP 0;
  4316. NETWORK
  4317. TITLE =
  4318. CALL FC 12 ;
  4319. NOP 0;
  4320. NETWORK
  4321. TITLE =
  4322. CALL FC 15 ;
  4323. NOP 0;
  4324. NETWORK
  4325. TITLE =
  4326. CALL FC 16 ;
  4327. NOP 0;
  4328. NETWORK
  4329. TITLE =
  4330. A I 40.0;
  4331. = Q 9.0;
  4332. NETWORK
  4333. TITLE =
  4334. L PIW 320;
  4335. T DB2.DBW 20;
  4336. NOP 0;
  4337. END_ORGANIZATION_BLOCK
  4338. ORGANIZATION_BLOCK OB 82
  4339. VERSION : 0.1
  4340. VAR_TEMP
  4341. TEMP0 : BYTE ;
  4342. TEMP1 : BYTE ;
  4343. TEMP2 : BYTE ;
  4344. TEMP3 : BYTE ;
  4345. TEMP4 : BYTE ;
  4346. TEMP5 : BYTE ;
  4347. TEMP6 : WORD ;
  4348. TEMP7 : BOOL ;
  4349. TEMP8 : BOOL ;
  4350. TEMP9 : BOOL ;
  4351. TEMP10 : BOOL ;
  4352. TEMP11 : BOOL ;
  4353. TEMP12 : BOOL ;
  4354. TEMP13 : BOOL ;
  4355. TEMP14 : BOOL ;
  4356. TEMP15 : BYTE ;
  4357. TEMP16 : BOOL ;
  4358. TEMP17 : BOOL ;
  4359. TEMP18 : BOOL ;
  4360. TEMP19 : BOOL ;
  4361. TEMP20 : BOOL ;
  4362. TEMP21 : BOOL ;
  4363. TEMP22 : BOOL ;
  4364. TEMP23 : BOOL ;
  4365. TEMP24 : BOOL ;
  4366. TEMP25 : BOOL ;
  4367. TEMP26 : BOOL ;
  4368. TEMP27 : BOOL ;
  4369. TEMP28 : BOOL ;
  4370. TEMP29 : BOOL ;
  4371. TEMP30 : BOOL ;
  4372. TEMP31 : BOOL ;
  4373. TEMP32 : DATE_AND_TIME ;
  4374. END_VAR
  4375. BEGIN
  4376. END_ORGANIZATION_BLOCK
  4377. ORGANIZATION_BLOCK OB 85
  4378. TITLE = "Organization Block (OB) Not Loaded Fault"
  4379. VERSION : 0.1
  4380. VAR_TEMP
  4381. OB85_EV_CLASS : BYTE ; //16#35 Event class 3
  4382. OB85_FLT_ID : BYTE ; //16#XX, Fault identification code
  4383. OB85_PRIORITY : BYTE ; //Priority of OB Execution
  4384. OB85_OB_NUMBR : BYTE ; //85 (Organization block 85, OB85)
  4385. OB85_RESERVED_1 : BYTE ; //Reserved for system
  4386. OB85_RESERVED_2 : BYTE ; //Reserved for system
  4387. OB85_RESERVED_3 : INT ; //Reserved for system
  4388. OB85_ERR_EV_CLASS : BYTE ; //Class of event causing error
  4389. OB85_ERR_EV_NUM : BYTE ; //Number of event causing error
  4390. OB85_OB_PRIOR : BYTE ; //Priority of OB causing error
  4391. OB85_OB_NUM : BYTE ; //Number of OB causing error
  4392. OB85_DATE_TIME : DATE_AND_TIME ; //Date and time OB85 started
  4393. END_VAR
  4394. BEGIN
  4395. END_ORGANIZATION_BLOCK
  4396. ORGANIZATION_BLOCK OB 86
  4397. VERSION : 0.1
  4398. VAR_TEMP
  4399. TEMP0 : BYTE ;
  4400. TEMP1 : BYTE ;
  4401. TEMP2 : BYTE ;
  4402. TEMP3 : BYTE ;
  4403. TEMP4 : BYTE ;
  4404. TEMP5 : BYTE ;
  4405. TEMP6 : WORD ;
  4406. TEMP7 : ARRAY [0 .. 31 ] OF BOOL ;
  4407. TEMP8 : DATE_AND_TIME ;
  4408. END_VAR
  4409. BEGIN
  4410. END_ORGANIZATION_BLOCK
  4411. ORGANIZATION_BLOCK OB 87
  4412. TITLE = "Communication Fault"
  4413. VERSION : 0.1
  4414. VAR_TEMP
  4415. OB87_EV_CLASS : BYTE ; //16#39 Event class 3
  4416. OB87_FLT_ID : BYTE ; //16#XX, Fault identifcation code
  4417. OB87_PRIORITY : BYTE ; //Priority of OB Execution
  4418. OB87_OB_NUMBR : BYTE ; //87 (Organization block 87, OB87)
  4419. OB87_RESERVED_1 : BYTE ; //Reserved for system
  4420. OB87_RESERVED_2 : BYTE ; //Reserved for system
  4421. OB87_RESERVED_3 : WORD ; //Reserved for system
  4422. OB87_RESERVED_4 : DWORD ; //Reserved for system
  4423. OB87_DATE_TIME : DATE_AND_TIME ; //Date and time OB87 started
  4424. END_VAR
  4425. BEGIN
  4426. END_ORGANIZATION_BLOCK
  4427. ORGANIZATION_BLOCK OB 121
  4428. TITLE = "Programming Error"
  4429. VERSION : 0.1
  4430. VAR_TEMP
  4431. OB121_EV_CLASS : BYTE ; //16#25, Event class 2, Entering event state, Internal fault event
  4432. OB121_SW_FLT : BYTE ; //16#XX Software programming fault
  4433. OB121_PRIORITY : BYTE ; //Priority of OB Execution
  4434. OB121_OB_NUMBR : BYTE ; //121 (Organization block 121, OB121)
  4435. OB121_BLK_TYPE : BYTE ; //16#88/8A/8B/8C/8E Type of block fault occured in
  4436. OB121_RESERVED_1 : BYTE ; //Reserved for system
  4437. OB121_FLT_REG : WORD ; //16#XX Specific register that caused fault
  4438. OB121_BLK_NUM : WORD ; //Number of block that programming fault occured in
  4439. OB121_PRG_ADDR : WORD ; //Address in block where programming fault occured
  4440. OB121_DATE_TIME : DATE_AND_TIME ; //Date and time OB121 started
  4441. END_VAR
  4442. BEGIN
  4443. END_ORGANIZATION_BLOCK
  4444. ORGANIZATION_BLOCK OB 122
  4445. VERSION : 0.1
  4446. VAR_TEMP
  4447. TEMP0 : BYTE ;
  4448. TEMP1 : BYTE ;
  4449. TEMP2 : BYTE ;
  4450. TEMP3 : BYTE ;
  4451. TEMP4 : BYTE ;
  4452. TEMP5 : BYTE ;
  4453. TEMP6 : WORD ;
  4454. TEMP7 : WORD ;
  4455. TEMP8 : WORD ;
  4456. TEMP9 : DATE_AND_TIME ;
  4457. END_VAR
  4458. BEGIN
  4459. END_ORGANIZATION_BLOCK