fup-count.awlpro 92 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <!-- Awlsim project file generated by awlsim-0.66.0-pre -->
  3. <awlsim_project date_create="2018-06-09 12:22:35.642801"
  4. date_modify="2018-07-08 18:00:21.706391"
  5. format_version="1">
  6. <!-- CPU core configuration -->
  7. <cpu>
  8. <!-- CPU core feature specification -->
  9. <specs call_stack_size="256"
  10. nr_accus="2"
  11. nr_counters="256"
  12. nr_flags="2048"
  13. nr_inputs="128"
  14. nr_localbytes="1024"
  15. nr_outputs="128"
  16. nr_timers="256"
  17. parenthesis_stack_size="7" />
  18. <!-- CPU core configuration -->
  19. <config clock_memory_byte="-1"
  20. cycle_time_limit_us="1000000"
  21. ext_insns_enable="1"
  22. mnemonics="2"
  23. ob_startinfo_enable="0"
  24. run_time_limit_us="-1" />
  25. </cpu>
  26. <!-- AWL/STL language configuration -->
  27. <language_awl>
  28. <!-- AWL/STL source code -->
  29. <source enabled="1"
  30. name="main"
  31. type="0"><![CDATA[
  32. ORGANIZATION_BLOCK OB 1
  33. BEGIN
  34. CALL "FC_TEST_count_0"
  35. CALL "FC_TEST_count_1"
  36. CALL "FC_TEST_count_2"
  37. CALL "FC_TEST_count_3"
  38. CALL "FC_TEST_count_4"
  39. CALL SFC 46 // STOP CPU
  40. END_ORGANIZATION_BLOCK
  41. ]]></source>
  42. <!-- AWL/STL source code -->
  43. <source enabled="1"
  44. name="TEST count_0"
  45. type="0"><![CDATA[
  46. FUNCTION "FC_TEST_count_0" : VOID
  47. BEGIN
  48. // Initialize all counters to 100
  49. L C#100
  50. SET
  51. FR Z 0
  52. FR Z 1
  53. FR Z 2
  54. FR Z 3
  55. FR Z 4
  56. FR Z 5
  57. SET
  58. S Z 0
  59. S Z 1
  60. S Z 2
  61. S Z 3
  62. S Z 4
  63. S Z 5
  64. CLR
  65. FR Z 0
  66. FR Z 1
  67. FR Z 2
  68. FR Z 3
  69. FR Z 4
  70. FR Z 5
  71. L 0
  72. T MW 0
  73. T MW 2
  74. T MW 4
  75. T MW 6
  76. T MW 8
  77. T MW 10
  78. T MW 12
  79. T MW 14
  80. T MW 16
  81. T MW 18
  82. T MW 20
  83. T MW 22
  84. CALL "FC_count_0" (
  85. // VAR_INPUT
  86. EN0 := TRUE, // BOOL
  87. CU0 := FALSE, // BOOL
  88. CD0 := FALSE, // BOOL
  89. S0 := FALSE, // BOOL
  90. PV0 := C#111, // WORD
  91. R0 := FALSE, // BOOL
  92. EN1 := TRUE, // BOOL
  93. CU1 := FALSE, // BOOL
  94. S1 := FALSE, // BOOL
  95. PV1 := C#222, // WORD
  96. R1 := FALSE, // BOOL
  97. CU2 := FALSE, // BOOL
  98. EN3 := TRUE, // BOOL
  99. CD3 := FALSE, // BOOL
  100. S3 := FALSE, // BOOL
  101. PV3 := C#333, // WORD
  102. R3 := FALSE, // BOOL
  103. CD4 := FALSE, // BOOL
  104. S5 := FALSE, // BOOL
  105. PV5 := C#444, // WORD
  106. // VAR_OUTPUT
  107. CV0 := MW 0, // WORD
  108. CVB0 := MW 2, // WORD
  109. Q0 := M 4.0, // BOOL
  110. ENO0 := M 4.1, // BOOL
  111. CV1 := MW 6, // WORD
  112. CVB1 := MW 8, // WORD
  113. Q1 := M 10.0, // BOOL
  114. ENO1 := M 10.1, // BOOL
  115. Q2 := M 12.0, // BOOL
  116. CV3 := MW 14, // WORD
  117. CVB3 := MW 16, // WORD
  118. Q3 := M 18.0, // BOOL
  119. ENO3 := M 18.1, // BOOL
  120. Q4 := M 20.0, // BOOL
  121. Q5 := M 22.0, // BOOL
  122. )
  123. L Z 0
  124. __ASSERT== __ACCU 1, 100
  125. L Z 1
  126. __ASSERT== __ACCU 1, 100
  127. L Z 2
  128. __ASSERT== __ACCU 1, 100
  129. L Z 3
  130. __ASSERT== __ACCU 1, 100
  131. L Z 4
  132. __ASSERT== __ACCU 1, 100
  133. L Z 5
  134. __ASSERT== __ACCU 1, 100
  135. __ASSERT== MW 0, 100
  136. __ASSERT== MW 2, C#100
  137. __ASSERT== M 4.0, TRUE
  138. __ASSERT== M 4.1, TRUE
  139. __ASSERT== MW 6, 100
  140. __ASSERT== MW 8, C#100
  141. __ASSERT== M 10.0, TRUE
  142. __ASSERT== M 10.1, TRUE
  143. __ASSERT== M 12.0, TRUE
  144. __ASSERT== MW 14, 100
  145. __ASSERT== MW 16, C#100
  146. __ASSERT== M 18.0, TRUE
  147. __ASSERT== M 18.1, TRUE
  148. __ASSERT== M 20.0, TRUE
  149. __ASSERT== M 22.0, TRUE
  150. L 0
  151. T MW 0
  152. T MW 2
  153. T MW 4
  154. T MW 6
  155. T MW 8
  156. T MW 10
  157. T MW 12
  158. T MW 14
  159. T MW 16
  160. T MW 18
  161. T MW 20
  162. T MW 22
  163. CALL "FC_count_0" (
  164. // VAR_INPUT
  165. EN0 := TRUE, // BOOL
  166. CU0 := TRUE, // BOOL
  167. CD0 := FALSE, // BOOL
  168. S0 := FALSE, // BOOL
  169. PV0 := C#111, // WORD
  170. R0 := FALSE, // BOOL
  171. EN1 := TRUE, // BOOL
  172. CU1 := TRUE, // BOOL
  173. S1 := FALSE, // BOOL
  174. PV1 := C#222, // WORD
  175. R1 := FALSE, // BOOL
  176. CU2 := TRUE, // BOOL
  177. EN3 := TRUE, // BOOL
  178. CD3 := TRUE, // BOOL
  179. S3 := FALSE, // BOOL
  180. PV3 := C#333, // WORD
  181. R3 := FALSE, // BOOL
  182. CD4 := TRUE, // BOOL
  183. S5 := FALSE, // BOOL
  184. PV5 := C#444, // WORD
  185. // VAR_OUTPUT
  186. CV0 := MW 0, // WORD
  187. CVB0 := MW 2, // WORD
  188. Q0 := M 4.0, // BOOL
  189. ENO0 := M 4.1, // BOOL
  190. CV1 := MW 6, // WORD
  191. CVB1 := MW 8, // WORD
  192. Q1 := M 10.0, // BOOL
  193. ENO1 := M 10.1, // BOOL
  194. Q2 := M 12.0, // BOOL
  195. CV3 := MW 14, // WORD
  196. CVB3 := MW 16, // WORD
  197. Q3 := M 18.0, // BOOL
  198. ENO3 := M 18.1, // BOOL
  199. Q4 := M 20.0, // BOOL
  200. Q5 := M 22.0, // BOOL
  201. )
  202. L Z 0
  203. __ASSERT== __ACCU 1, 101
  204. L Z 1
  205. __ASSERT== __ACCU 1, 101
  206. L Z 2
  207. __ASSERT== __ACCU 1, 101
  208. L Z 3
  209. __ASSERT== __ACCU 1, 99
  210. L Z 4
  211. __ASSERT== __ACCU 1, 99
  212. L Z 5
  213. __ASSERT== __ACCU 1, 100
  214. __ASSERT== MW 0, 101
  215. __ASSERT== MW 2, C#101
  216. __ASSERT== M 4.0, TRUE
  217. __ASSERT== M 4.1, TRUE
  218. __ASSERT== MW 6, 101
  219. __ASSERT== MW 8, C#101
  220. __ASSERT== M 10.0, TRUE
  221. __ASSERT== M 10.1, TRUE
  222. __ASSERT== M 12.0, TRUE
  223. __ASSERT== MW 14, 99
  224. __ASSERT== MW 16, C#99
  225. __ASSERT== M 18.0, TRUE
  226. __ASSERT== M 18.1, TRUE
  227. __ASSERT== M 20.0, TRUE
  228. __ASSERT== M 22.0, TRUE
  229. L 0
  230. T MW 0
  231. T MW 2
  232. T MW 4
  233. T MW 6
  234. T MW 8
  235. T MW 10
  236. T MW 12
  237. T MW 14
  238. T MW 16
  239. T MW 18
  240. T MW 20
  241. T MW 22
  242. CALL "FC_count_0" (
  243. // VAR_INPUT
  244. EN0 := TRUE, // BOOL
  245. CU0 := FALSE, // BOOL
  246. CD0 := FALSE, // BOOL
  247. S0 := FALSE, // BOOL
  248. PV0 := C#111, // WORD
  249. R0 := FALSE, // BOOL
  250. EN1 := TRUE, // BOOL
  251. CU1 := FALSE, // BOOL
  252. S1 := FALSE, // BOOL
  253. PV1 := C#222, // WORD
  254. R1 := FALSE, // BOOL
  255. CU2 := FALSE, // BOOL
  256. EN3 := TRUE, // BOOL
  257. CD3 := FALSE, // BOOL
  258. S3 := FALSE, // BOOL
  259. PV3 := C#333, // WORD
  260. R3 := FALSE, // BOOL
  261. CD4 := FALSE, // BOOL
  262. S5 := FALSE, // BOOL
  263. PV5 := C#444, // WORD
  264. // VAR_OUTPUT
  265. CV0 := MW 0, // WORD
  266. CVB0 := MW 2, // WORD
  267. Q0 := M 4.0, // BOOL
  268. ENO0 := M 4.1, // BOOL
  269. CV1 := MW 6, // WORD
  270. CVB1 := MW 8, // WORD
  271. Q1 := M 10.0, // BOOL
  272. ENO1 := M 10.1, // BOOL
  273. Q2 := M 12.0, // BOOL
  274. CV3 := MW 14, // WORD
  275. CVB3 := MW 16, // WORD
  276. Q3 := M 18.0, // BOOL
  277. ENO3 := M 18.1, // BOOL
  278. Q4 := M 20.0, // BOOL
  279. Q5 := M 22.0, // BOOL
  280. )
  281. L Z 0
  282. __ASSERT== __ACCU 1, 101
  283. L Z 1
  284. __ASSERT== __ACCU 1, 101
  285. L Z 2
  286. __ASSERT== __ACCU 1, 101
  287. L Z 3
  288. __ASSERT== __ACCU 1, 99
  289. L Z 4
  290. __ASSERT== __ACCU 1, 99
  291. L Z 5
  292. __ASSERT== __ACCU 1, 100
  293. __ASSERT== MW 0, 101
  294. __ASSERT== MW 2, C#101
  295. __ASSERT== M 4.0, TRUE
  296. __ASSERT== M 4.1, TRUE
  297. __ASSERT== MW 6, 101
  298. __ASSERT== MW 8, C#101
  299. __ASSERT== M 10.0, TRUE
  300. __ASSERT== M 10.1, TRUE
  301. __ASSERT== M 12.0, TRUE
  302. __ASSERT== MW 14, 99
  303. __ASSERT== MW 16, C#99
  304. __ASSERT== M 18.0, TRUE
  305. __ASSERT== M 18.1, TRUE
  306. __ASSERT== M 20.0, TRUE
  307. __ASSERT== M 22.0, TRUE
  308. L 0
  309. T MW 0
  310. T MW 2
  311. T MW 4
  312. T MW 6
  313. T MW 8
  314. T MW 10
  315. T MW 12
  316. T MW 14
  317. T MW 16
  318. T MW 18
  319. T MW 20
  320. T MW 22
  321. CALL "FC_count_0" (
  322. // VAR_INPUT
  323. EN0 := TRUE, // BOOL
  324. CU0 := TRUE, // BOOL
  325. CD0 := FALSE, // BOOL
  326. S0 := FALSE, // BOOL
  327. PV0 := C#111, // WORD
  328. R0 := FALSE, // BOOL
  329. EN1 := TRUE, // BOOL
  330. CU1 := TRUE, // BOOL
  331. S1 := FALSE, // BOOL
  332. PV1 := C#222, // WORD
  333. R1 := FALSE, // BOOL
  334. CU2 := TRUE, // BOOL
  335. EN3 := TRUE, // BOOL
  336. CD3 := TRUE, // BOOL
  337. S3 := FALSE, // BOOL
  338. PV3 := C#333, // WORD
  339. R3 := FALSE, // BOOL
  340. CD4 := TRUE, // BOOL
  341. S5 := FALSE, // BOOL
  342. PV5 := C#444, // WORD
  343. // VAR_OUTPUT
  344. CV0 := MW 0, // WORD
  345. CVB0 := MW 2, // WORD
  346. Q0 := M 4.0, // BOOL
  347. ENO0 := M 4.1, // BOOL
  348. CV1 := MW 6, // WORD
  349. CVB1 := MW 8, // WORD
  350. Q1 := M 10.0, // BOOL
  351. ENO1 := M 10.1, // BOOL
  352. Q2 := M 12.0, // BOOL
  353. CV3 := MW 14, // WORD
  354. CVB3 := MW 16, // WORD
  355. Q3 := M 18.0, // BOOL
  356. ENO3 := M 18.1, // BOOL
  357. Q4 := M 20.0, // BOOL
  358. Q5 := M 22.0, // BOOL
  359. )
  360. L Z 0
  361. __ASSERT== __ACCU 1, 102
  362. L Z 1
  363. __ASSERT== __ACCU 1, 102
  364. L Z 2
  365. __ASSERT== __ACCU 1, 102
  366. L Z 3
  367. __ASSERT== __ACCU 1, 98
  368. L Z 4
  369. __ASSERT== __ACCU 1, 98
  370. L Z 5
  371. __ASSERT== __ACCU 1, 100
  372. __ASSERT== MW 0, 102
  373. __ASSERT== MW 2, C#102
  374. __ASSERT== M 4.0, TRUE
  375. __ASSERT== M 4.1, TRUE
  376. __ASSERT== MW 6, 102
  377. __ASSERT== MW 8, C#102
  378. __ASSERT== M 10.0, TRUE
  379. __ASSERT== M 10.1, TRUE
  380. __ASSERT== M 12.0, TRUE
  381. __ASSERT== MW 14, 98
  382. __ASSERT== MW 16, C#98
  383. __ASSERT== M 18.0, TRUE
  384. __ASSERT== M 18.1, TRUE
  385. __ASSERT== M 20.0, TRUE
  386. __ASSERT== M 22.0, TRUE
  387. L 0
  388. T MW 0
  389. T MW 2
  390. T MW 4
  391. T MW 6
  392. T MW 8
  393. T MW 10
  394. T MW 12
  395. T MW 14
  396. T MW 16
  397. T MW 18
  398. T MW 20
  399. T MW 22
  400. CALL "FC_count_0" (
  401. // VAR_INPUT
  402. EN0 := TRUE, // BOOL
  403. CU0 := FALSE, // BOOL
  404. CD0 := FALSE, // BOOL
  405. S0 := FALSE, // BOOL
  406. PV0 := C#111, // WORD
  407. R0 := FALSE, // BOOL
  408. EN1 := TRUE, // BOOL
  409. CU1 := FALSE, // BOOL
  410. S1 := FALSE, // BOOL
  411. PV1 := C#222, // WORD
  412. R1 := FALSE, // BOOL
  413. CU2 := FALSE, // BOOL
  414. EN3 := TRUE, // BOOL
  415. CD3 := FALSE, // BOOL
  416. S3 := FALSE, // BOOL
  417. PV3 := C#333, // WORD
  418. R3 := FALSE, // BOOL
  419. CD4 := FALSE, // BOOL
  420. S5 := FALSE, // BOOL
  421. PV5 := C#444, // WORD
  422. // VAR_OUTPUT
  423. CV0 := MW 0, // WORD
  424. CVB0 := MW 2, // WORD
  425. Q0 := M 4.0, // BOOL
  426. ENO0 := M 4.1, // BOOL
  427. CV1 := MW 6, // WORD
  428. CVB1 := MW 8, // WORD
  429. Q1 := M 10.0, // BOOL
  430. ENO1 := M 10.1, // BOOL
  431. Q2 := M 12.0, // BOOL
  432. CV3 := MW 14, // WORD
  433. CVB3 := MW 16, // WORD
  434. Q3 := M 18.0, // BOOL
  435. ENO3 := M 18.1, // BOOL
  436. Q4 := M 20.0, // BOOL
  437. Q5 := M 22.0, // BOOL
  438. )
  439. L Z 0
  440. __ASSERT== __ACCU 1, 102
  441. L Z 1
  442. __ASSERT== __ACCU 1, 102
  443. L Z 2
  444. __ASSERT== __ACCU 1, 102
  445. L Z 3
  446. __ASSERT== __ACCU 1, 98
  447. L Z 4
  448. __ASSERT== __ACCU 1, 98
  449. L Z 5
  450. __ASSERT== __ACCU 1, 100
  451. __ASSERT== MW 0, 102
  452. __ASSERT== MW 2, C#102
  453. __ASSERT== M 4.0, TRUE
  454. __ASSERT== M 4.1, TRUE
  455. __ASSERT== MW 6, 102
  456. __ASSERT== MW 8, C#102
  457. __ASSERT== M 10.0, TRUE
  458. __ASSERT== M 10.1, TRUE
  459. __ASSERT== M 12.0, TRUE
  460. __ASSERT== MW 14, 98
  461. __ASSERT== MW 16, C#98
  462. __ASSERT== M 18.0, TRUE
  463. __ASSERT== M 18.1, TRUE
  464. __ASSERT== M 20.0, TRUE
  465. __ASSERT== M 22.0, TRUE
  466. L 0
  467. T MW 0
  468. T MW 2
  469. T MW 4
  470. T MW 6
  471. T MW 8
  472. T MW 10
  473. T MW 12
  474. T MW 14
  475. T MW 16
  476. T MW 18
  477. T MW 20
  478. T MW 22
  479. CALL "FC_count_0" (
  480. // VAR_INPUT
  481. EN0 := TRUE, // BOOL
  482. CU0 := FALSE, // BOOL
  483. CD0 := FALSE, // BOOL
  484. S0 := TRUE, // BOOL
  485. PV0 := C#111, // WORD
  486. R0 := FALSE, // BOOL
  487. EN1 := TRUE, // BOOL
  488. CU1 := FALSE, // BOOL
  489. S1 := TRUE, // BOOL
  490. PV1 := C#222, // WORD
  491. R1 := FALSE, // BOOL
  492. CU2 := FALSE, // BOOL
  493. EN3 := TRUE, // BOOL
  494. CD3 := FALSE, // BOOL
  495. S3 := TRUE, // BOOL
  496. PV3 := C#333, // WORD
  497. R3 := FALSE, // BOOL
  498. CD4 := FALSE, // BOOL
  499. S5 := TRUE, // BOOL
  500. PV5 := C#444, // WORD
  501. // VAR_OUTPUT
  502. CV0 := MW 0, // WORD
  503. CVB0 := MW 2, // WORD
  504. Q0 := M 4.0, // BOOL
  505. ENO0 := M 4.1, // BOOL
  506. CV1 := MW 6, // WORD
  507. CVB1 := MW 8, // WORD
  508. Q1 := M 10.0, // BOOL
  509. ENO1 := M 10.1, // BOOL
  510. Q2 := M 12.0, // BOOL
  511. CV3 := MW 14, // WORD
  512. CVB3 := MW 16, // WORD
  513. Q3 := M 18.0, // BOOL
  514. ENO3 := M 18.1, // BOOL
  515. Q4 := M 20.0, // BOOL
  516. Q5 := M 22.0, // BOOL
  517. )
  518. L Z 0
  519. __ASSERT== __ACCU 1, 111
  520. L Z 1
  521. __ASSERT== __ACCU 1, 222
  522. L Z 2
  523. __ASSERT== __ACCU 1, 102
  524. L Z 3
  525. __ASSERT== __ACCU 1, 333
  526. L Z 4
  527. __ASSERT== __ACCU 1, 98
  528. L Z 5
  529. __ASSERT== __ACCU 1, 444
  530. __ASSERT== MW 0, 111
  531. __ASSERT== MW 2, C#111
  532. __ASSERT== M 4.0, TRUE
  533. __ASSERT== M 4.1, TRUE
  534. __ASSERT== MW 6, 222
  535. __ASSERT== MW 8, C#222
  536. __ASSERT== M 10.0, TRUE
  537. __ASSERT== M 10.1, TRUE
  538. __ASSERT== M 12.0, TRUE
  539. __ASSERT== MW 14, 333
  540. __ASSERT== MW 16, C#333
  541. __ASSERT== M 18.0, TRUE
  542. __ASSERT== M 18.1, TRUE
  543. __ASSERT== M 20.0, TRUE
  544. __ASSERT== M 22.0, TRUE
  545. L 0
  546. T MW 0
  547. T MW 2
  548. T MW 4
  549. T MW 6
  550. T MW 8
  551. T MW 10
  552. T MW 12
  553. T MW 14
  554. T MW 16
  555. T MW 18
  556. T MW 20
  557. T MW 22
  558. CALL "FC_count_0" (
  559. // VAR_INPUT
  560. EN0 := TRUE, // BOOL
  561. CU0 := FALSE, // BOOL
  562. CD0 := FALSE, // BOOL
  563. S0 := FALSE, // BOOL
  564. PV0 := C#111, // WORD
  565. R0 := TRUE, // BOOL
  566. EN1 := TRUE, // BOOL
  567. CU1 := FALSE, // BOOL
  568. S1 := FALSE, // BOOL
  569. PV1 := C#222, // WORD
  570. R1 := TRUE, // BOOL
  571. CU2 := FALSE, // BOOL
  572. EN3 := TRUE, // BOOL
  573. CD3 := FALSE, // BOOL
  574. S3 := FALSE, // BOOL
  575. PV3 := C#333, // WORD
  576. R3 := TRUE, // BOOL
  577. CD4 := FALSE, // BOOL
  578. S5 := FALSE, // BOOL
  579. PV5 := C#444, // WORD
  580. // VAR_OUTPUT
  581. CV0 := MW 0, // WORD
  582. CVB0 := MW 2, // WORD
  583. Q0 := M 4.0, // BOOL
  584. ENO0 := M 4.1, // BOOL
  585. CV1 := MW 6, // WORD
  586. CVB1 := MW 8, // WORD
  587. Q1 := M 10.0, // BOOL
  588. ENO1 := M 10.1, // BOOL
  589. Q2 := M 12.0, // BOOL
  590. CV3 := MW 14, // WORD
  591. CVB3 := MW 16, // WORD
  592. Q3 := M 18.0, // BOOL
  593. ENO3 := M 18.1, // BOOL
  594. Q4 := M 20.0, // BOOL
  595. Q5 := M 22.0, // BOOL
  596. )
  597. L Z 0
  598. __ASSERT== __ACCU 1, 0
  599. L Z 1
  600. __ASSERT== __ACCU 1, 0
  601. L Z 2
  602. __ASSERT== __ACCU 1, 102
  603. L Z 3
  604. __ASSERT== __ACCU 1, 0
  605. L Z 4
  606. __ASSERT== __ACCU 1, 98
  607. L Z 5
  608. __ASSERT== __ACCU 1, 444
  609. __ASSERT== MW 0, 0
  610. __ASSERT== MW 2, C#0
  611. __ASSERT== M 4.0, FALSE
  612. __ASSERT== M 4.1, TRUE
  613. __ASSERT== MW 6, 0
  614. __ASSERT== MW 8, C#0
  615. __ASSERT== M 10.0, FALSE
  616. __ASSERT== M 10.1, TRUE
  617. __ASSERT== M 12.0, TRUE
  618. __ASSERT== MW 14, 0
  619. __ASSERT== MW 16, C#0
  620. __ASSERT== M 18.0, FALSE
  621. __ASSERT== M 18.1, TRUE
  622. __ASSERT== M 20.0, TRUE
  623. __ASSERT== M 22.0, TRUE
  624. END_FUNCTION
  625. ]]></source>
  626. <!-- AWL/STL source code -->
  627. <source enabled="1"
  628. name="TEST count_1"
  629. type="0"><![CDATA[
  630. FUNCTION "FC_TEST_count_1" : VOID
  631. BEGIN
  632. // Initialize all counters to 100
  633. L C#100
  634. SET
  635. FR Z 0
  636. FR Z 1
  637. FR Z 2
  638. SET
  639. S Z 0
  640. S Z 1
  641. S Z 2
  642. CLR
  643. FR Z 0
  644. FR Z 1
  645. FR Z 2
  646. L 0
  647. T MW 0
  648. CALL "FC_count_1" (
  649. // VAR_INPUT
  650. EN0 := FALSE, // BOOL
  651. CU0 := FALSE, // BOOL
  652. CU1 := FALSE, // BOOL
  653. EN2 := FALSE, // BOOL
  654. CU2 := FALSE, // BOOL
  655. // VAR_OUTPUT
  656. ENO1 := M 0.0, // BOOL
  657. ENO2 := M 0.1, // BOOL
  658. )
  659. L Z 0
  660. __ASSERT== __ACCU 1, 100
  661. L Z 1
  662. __ASSERT== __ACCU 1, 100
  663. L Z 2
  664. __ASSERT== __ACCU 1, 100
  665. __ASSERT== M 0.0, TRUE
  666. __ASSERT== M 0.1, FALSE
  667. L 0
  668. T MW 0
  669. CALL "FC_count_1" (
  670. // VAR_INPUT
  671. EN0 := FALSE, // BOOL
  672. CU0 := TRUE, // BOOL
  673. CU1 := TRUE, // BOOL
  674. EN2 := FALSE, // BOOL
  675. CU2 := TRUE, // BOOL
  676. // VAR_OUTPUT
  677. ENO1 := M 0.0, // BOOL
  678. ENO2 := M 0.1, // BOOL
  679. )
  680. L Z 0
  681. __ASSERT== __ACCU 1, 100
  682. L Z 1
  683. __ASSERT== __ACCU 1, 101
  684. L Z 2
  685. __ASSERT== __ACCU 1, 100
  686. __ASSERT== M 0.0, TRUE
  687. __ASSERT== M 0.1, FALSE
  688. L 0
  689. T MW 0
  690. CALL "FC_count_1" (
  691. // VAR_INPUT
  692. EN0 := FALSE, // BOOL
  693. CU0 := TRUE, // BOOL
  694. CU1 := TRUE, // BOOL
  695. EN2 := FALSE, // BOOL
  696. CU2 := TRUE, // BOOL
  697. // VAR_OUTPUT
  698. ENO1 := M 0.0, // BOOL
  699. ENO2 := M 0.1, // BOOL
  700. )
  701. L Z 0
  702. __ASSERT== __ACCU 1, 100
  703. L Z 1
  704. __ASSERT== __ACCU 1, 101
  705. L Z 2
  706. __ASSERT== __ACCU 1, 100
  707. __ASSERT== M 0.0, TRUE
  708. __ASSERT== M 0.1, FALSE
  709. L 0
  710. T MW 0
  711. CALL "FC_count_1" (
  712. // VAR_INPUT
  713. EN0 := FALSE, // BOOL
  714. CU0 := FALSE, // BOOL
  715. CU1 := FALSE, // BOOL
  716. EN2 := FALSE, // BOOL
  717. CU2 := FALSE, // BOOL
  718. // VAR_OUTPUT
  719. ENO1 := M 0.0, // BOOL
  720. ENO2 := M 0.1, // BOOL
  721. )
  722. L Z 0
  723. __ASSERT== __ACCU 1, 100
  724. L Z 1
  725. __ASSERT== __ACCU 1, 101
  726. L Z 2
  727. __ASSERT== __ACCU 1, 100
  728. __ASSERT== M 0.0, TRUE
  729. __ASSERT== M 0.1, FALSE
  730. L 0
  731. T MW 0
  732. CALL "FC_count_1" (
  733. // VAR_INPUT
  734. EN0 := TRUE, // BOOL
  735. CU0 := FALSE, // BOOL
  736. CU1 := FALSE, // BOOL
  737. EN2 := FALSE, // BOOL
  738. CU2 := FALSE, // BOOL
  739. // VAR_OUTPUT
  740. ENO1 := M 0.0, // BOOL
  741. ENO2 := M 0.1, // BOOL
  742. )
  743. L Z 0
  744. __ASSERT== __ACCU 1, 100
  745. L Z 1
  746. __ASSERT== __ACCU 1, 101
  747. L Z 2
  748. __ASSERT== __ACCU 1, 100
  749. __ASSERT== M 0.0, TRUE
  750. __ASSERT== M 0.1, FALSE
  751. L 0
  752. T MW 0
  753. CALL "FC_count_1" (
  754. // VAR_INPUT
  755. EN0 := TRUE, // BOOL
  756. CU0 := TRUE, // BOOL
  757. CU1 := FALSE, // BOOL
  758. EN2 := FALSE, // BOOL
  759. CU2 := FALSE, // BOOL
  760. // VAR_OUTPUT
  761. ENO1 := M 0.0, // BOOL
  762. ENO2 := M 0.1, // BOOL
  763. )
  764. L Z 0
  765. __ASSERT== __ACCU 1, 101
  766. L Z 1
  767. __ASSERT== __ACCU 1, 101
  768. L Z 2
  769. __ASSERT== __ACCU 1, 100
  770. __ASSERT== M 0.0, TRUE
  771. __ASSERT== M 0.1, FALSE
  772. L 0
  773. T MW 0
  774. CALL "FC_count_1" (
  775. // VAR_INPUT
  776. EN0 := TRUE, // BOOL
  777. CU0 := FALSE, // BOOL
  778. CU1 := FALSE, // BOOL
  779. EN2 := TRUE, // BOOL
  780. CU2 := TRUE, // BOOL
  781. // VAR_OUTPUT
  782. ENO1 := M 0.0, // BOOL
  783. ENO2 := M 0.1, // BOOL
  784. )
  785. L Z 0
  786. __ASSERT== __ACCU 1, 101
  787. L Z 1
  788. __ASSERT== __ACCU 1, 101
  789. L Z 2
  790. __ASSERT== __ACCU 1, 101
  791. __ASSERT== M 0.0, TRUE
  792. __ASSERT== M 0.1, TRUE
  793. L 0
  794. T MW 0
  795. CALL "FC_count_1" (
  796. // VAR_INPUT
  797. EN0 := FALSE, // BOOL
  798. CU0 := FALSE, // BOOL
  799. CU1 := FALSE, // BOOL
  800. EN2 := FALSE, // BOOL
  801. CU2 := TRUE, // BOOL
  802. // VAR_OUTPUT
  803. ENO1 := M 0.0, // BOOL
  804. ENO2 := M 0.1, // BOOL
  805. )
  806. L Z 0
  807. __ASSERT== __ACCU 1, 101
  808. L Z 1
  809. __ASSERT== __ACCU 1, 101
  810. L Z 2
  811. __ASSERT== __ACCU 1, 101
  812. __ASSERT== M 0.0, TRUE
  813. __ASSERT== M 0.1, FALSE
  814. L 0
  815. T MW 0
  816. CALL "FC_count_1" (
  817. // VAR_INPUT
  818. EN0 := FALSE, // BOOL
  819. CU0 := FALSE, // BOOL
  820. CU1 := FALSE, // BOOL
  821. EN2 := TRUE, // BOOL
  822. CU2 := TRUE, // BOOL
  823. // VAR_OUTPUT
  824. ENO1 := M 0.0, // BOOL
  825. ENO2 := M 0.1, // BOOL
  826. )
  827. L Z 0
  828. __ASSERT== __ACCU 1, 101
  829. L Z 1
  830. __ASSERT== __ACCU 1, 101
  831. L Z 2
  832. __ASSERT== __ACCU 1, 101
  833. __ASSERT== M 0.0, TRUE
  834. __ASSERT== M 0.1, TRUE
  835. L 0
  836. T MW 0
  837. CALL "FC_count_1" (
  838. // VAR_INPUT
  839. EN0 := FALSE, // BOOL
  840. CU0 := FALSE, // BOOL
  841. CU1 := FALSE, // BOOL
  842. EN2 := TRUE, // BOOL
  843. CU2 := FALSE, // BOOL
  844. // VAR_OUTPUT
  845. ENO1 := M 0.0, // BOOL
  846. ENO2 := M 0.1, // BOOL
  847. )
  848. L Z 0
  849. __ASSERT== __ACCU 1, 101
  850. L Z 1
  851. __ASSERT== __ACCU 1, 101
  852. L Z 2
  853. __ASSERT== __ACCU 1, 101
  854. __ASSERT== M 0.0, TRUE
  855. __ASSERT== M 0.1, TRUE
  856. L 0
  857. T MW 0
  858. CALL "FC_count_1" (
  859. // VAR_INPUT
  860. EN0 := FALSE, // BOOL
  861. CU0 := FALSE, // BOOL
  862. CU1 := FALSE, // BOOL
  863. EN2 := FALSE, // BOOL
  864. CU2 := FALSE, // BOOL
  865. // VAR_OUTPUT
  866. ENO1 := M 0.0, // BOOL
  867. ENO2 := M 0.1, // BOOL
  868. )
  869. L Z 0
  870. __ASSERT== __ACCU 1, 101
  871. L Z 1
  872. __ASSERT== __ACCU 1, 101
  873. L Z 2
  874. __ASSERT== __ACCU 1, 101
  875. __ASSERT== M 0.0, TRUE
  876. __ASSERT== M 0.1, FALSE
  877. END_FUNCTION
  878. ]]></source>
  879. <!-- AWL/STL source code -->
  880. <source enabled="1"
  881. name="TEST count_2"
  882. type="0"><![CDATA[
  883. FUNCTION "FC_TEST_count_2" : VOID
  884. BEGIN
  885. // Initialize all counters to 100
  886. L C#100
  887. SET
  888. FR Z 0
  889. SET
  890. S Z 0
  891. CLR
  892. FR Z 0
  893. // EN=0
  894. L 0
  895. T MW 0
  896. T MW 2
  897. T MW 4
  898. T MW 6
  899. CALL "FC_count_2" (
  900. // VAR_INPUT
  901. IN00 := 10, // INT
  902. IN01 := 11, // INT
  903. IN10 := 20, // INT
  904. IN11 := 21, // INT
  905. IN20 := 30, // INT
  906. IN21 := 31, // INT
  907. IN30 := 40, // INT
  908. IN31 := 41, // INT
  909. IN40 := C#50, // INT
  910. IN41 := C#6, // INT
  911. IN50 := 60, // INT
  912. IN51 := 61, // INT
  913. IN100 := 1, // INT
  914. IN110 := 2, // INT
  915. IN120 := TRUE, // BOOL
  916. IN130 := TRUE, // BOOL
  917. // VAR_OUTPUT
  918. OUT0 := MW 0, // INT
  919. OUT1 := MW 2, // WORD
  920. OUT2 := MW 4, // WORD
  921. OUT3 := M 6.0, // BOOL
  922. OUT4 := M 7.0, // BOOL
  923. )
  924. L Z 0
  925. __ASSERT== __ACCU 1, 100
  926. __ASSERT== MW 0, 0
  927. __ASSERT== MW 2, 0
  928. __ASSERT== MW 4, 0
  929. __ASSERT== M 6.0, FALSE
  930. __ASSERT== M 7.0, FALSE
  931. // EN=1
  932. L 0
  933. T MW 0
  934. T MW 2
  935. T MW 4
  936. T MW 6
  937. CALL "FC_count_2" (
  938. // VAR_INPUT
  939. IN00 := 10, // INT
  940. IN01 := 10, // INT
  941. IN10 := 20, // INT
  942. IN11 := 21, // INT
  943. IN20 := 30, // INT
  944. IN21 := 31, // INT
  945. IN30 := 40, // INT
  946. IN31 := 41, // INT
  947. IN40 := C#50, // INT
  948. IN41 := C#6, // INT
  949. IN50 := 60, // INT
  950. IN51 := 61, // INT
  951. IN100 := 1, // INT
  952. IN110 := 2, // INT
  953. IN120 := TRUE, // BOOL
  954. IN130 := TRUE, // BOOL
  955. // VAR_OUTPUT
  956. OUT0 := MW 0, // INT
  957. OUT1 := MW 2, // WORD
  958. OUT2 := MW 4, // WORD
  959. OUT3 := M 6.0, // BOOL
  960. OUT4 := M 7.0, // BOOL
  961. )
  962. L Z 0
  963. __ASSERT== __ACCU 1, 100
  964. __ASSERT== MW 0, 101
  965. __ASSERT== MW 2, C#100
  966. __ASSERT== MW 4, C#400
  967. __ASSERT== M 6.0, TRUE
  968. __ASSERT== M 7.0, TRUE
  969. // EN=0, CU=1
  970. L 0
  971. T MW 0
  972. T MW 2
  973. T MW 4
  974. T MW 6
  975. CALL "FC_count_2" (
  976. // VAR_INPUT
  977. IN00 := 10, // INT
  978. IN01 := 11, // INT
  979. IN10 := 20, // INT
  980. IN11 := 20, // INT
  981. IN20 := 30, // INT
  982. IN21 := 31, // INT
  983. IN30 := 40, // INT
  984. IN31 := 41, // INT
  985. IN40 := C#50, // INT
  986. IN41 := C#6, // INT
  987. IN50 := 60, // INT
  988. IN51 := 61, // INT
  989. IN100 := 1, // INT
  990. IN110 := 2, // INT
  991. IN120 := TRUE, // BOOL
  992. IN130 := TRUE, // BOOL
  993. // VAR_OUTPUT
  994. OUT0 := MW 0, // INT
  995. OUT1 := MW 2, // WORD
  996. OUT2 := MW 4, // WORD
  997. OUT3 := M 6.0, // BOOL
  998. OUT4 := M 7.0, // BOOL
  999. )
  1000. L Z 0
  1001. __ASSERT== __ACCU 1, 100
  1002. __ASSERT== MW 0, 0
  1003. __ASSERT== MW 2, 0
  1004. __ASSERT== MW 4, 0
  1005. __ASSERT== M 6.0, FALSE
  1006. __ASSERT== M 7.0, FALSE
  1007. // EN=1, CU=1
  1008. L 0
  1009. T MW 0
  1010. T MW 2
  1011. T MW 4
  1012. T MW 6
  1013. CALL "FC_count_2" (
  1014. // VAR_INPUT
  1015. IN00 := 10, // INT
  1016. IN01 := 10, // INT
  1017. IN10 := 20, // INT
  1018. IN11 := 20, // INT
  1019. IN20 := 30, // INT
  1020. IN21 := 31, // INT
  1021. IN30 := 40, // INT
  1022. IN31 := 41, // INT
  1023. IN40 := C#50, // INT
  1024. IN41 := C#6, // INT
  1025. IN50 := 60, // INT
  1026. IN51 := 61, // INT
  1027. IN100 := 1, // INT
  1028. IN110 := 2, // INT
  1029. IN120 := TRUE, // BOOL
  1030. IN130 := TRUE, // BOOL
  1031. // VAR_OUTPUT
  1032. OUT0 := MW 0, // INT
  1033. OUT1 := MW 2, // WORD
  1034. OUT2 := MW 4, // WORD
  1035. OUT3 := M 6.0, // BOOL
  1036. OUT4 := M 7.0, // BOOL
  1037. )
  1038. L Z 0
  1039. __ASSERT== __ACCU 1, 101
  1040. __ASSERT== MW 0, 102
  1041. __ASSERT== MW 2, C#101
  1042. __ASSERT== MW 4, C#404
  1043. __ASSERT== M 6.0, TRUE
  1044. __ASSERT== M 7.0, TRUE
  1045. // EN=1, CU=0
  1046. L 0
  1047. T MW 0
  1048. T MW 2
  1049. T MW 4
  1050. T MW 6
  1051. CALL "FC_count_2" (
  1052. // VAR_INPUT
  1053. IN00 := 10, // INT
  1054. IN01 := 10, // INT
  1055. IN10 := 20, // INT
  1056. IN11 := 21, // INT
  1057. IN20 := 30, // INT
  1058. IN21 := 31, // INT
  1059. IN30 := 40, // INT
  1060. IN31 := 41, // INT
  1061. IN40 := C#50, // INT
  1062. IN41 := C#6, // INT
  1063. IN50 := 60, // INT
  1064. IN51 := 61, // INT
  1065. IN100 := 1, // INT
  1066. IN110 := 2, // INT
  1067. IN120 := TRUE, // BOOL
  1068. IN130 := TRUE, // BOOL
  1069. // VAR_OUTPUT
  1070. OUT0 := MW 0, // INT
  1071. OUT1 := MW 2, // WORD
  1072. OUT2 := MW 4, // WORD
  1073. OUT3 := M 6.0, // BOOL
  1074. OUT4 := M 7.0, // BOOL
  1075. )
  1076. L Z 0
  1077. __ASSERT== __ACCU 1, 101
  1078. __ASSERT== MW 0, 102
  1079. __ASSERT== MW 2, C#101
  1080. __ASSERT== MW 4, C#404
  1081. __ASSERT== M 6.0, TRUE
  1082. __ASSERT== M 7.0, TRUE
  1083. // EN=1, CD=1
  1084. L 0
  1085. T MW 0
  1086. T MW 2
  1087. T MW 4
  1088. T MW 6
  1089. CALL "FC_count_2" (
  1090. // VAR_INPUT
  1091. IN00 := 10, // INT
  1092. IN01 := 10, // INT
  1093. IN10 := 20, // INT
  1094. IN11 := 21, // INT
  1095. IN20 := 30, // INT
  1096. IN21 := 30, // INT
  1097. IN30 := 40, // INT
  1098. IN31 := 41, // INT
  1099. IN40 := C#50, // INT
  1100. IN41 := C#6, // INT
  1101. IN50 := 60, // INT
  1102. IN51 := 61, // INT
  1103. IN100 := 1, // INT
  1104. IN110 := 2, // INT
  1105. IN120 := TRUE, // BOOL
  1106. IN130 := TRUE, // BOOL
  1107. // VAR_OUTPUT
  1108. OUT0 := MW 0, // INT
  1109. OUT1 := MW 2, // WORD
  1110. OUT2 := MW 4, // WORD
  1111. OUT3 := M 6.0, // BOOL
  1112. OUT4 := M 7.0, // BOOL
  1113. )
  1114. L Z 0
  1115. __ASSERT== __ACCU 1, 100
  1116. __ASSERT== MW 0, 101
  1117. __ASSERT== MW 2, C#100
  1118. __ASSERT== MW 4, C#400
  1119. __ASSERT== M 6.0, TRUE
  1120. __ASSERT== M 7.0, TRUE
  1121. // EN=1, CD=0
  1122. L 0
  1123. T MW 0
  1124. T MW 2
  1125. T MW 4
  1126. T MW 6
  1127. CALL "FC_count_2" (
  1128. // VAR_INPUT
  1129. IN00 := 10, // INT
  1130. IN01 := 10, // INT
  1131. IN10 := 20, // INT
  1132. IN11 := 21, // INT
  1133. IN20 := 30, // INT
  1134. IN21 := 31, // INT
  1135. IN30 := 40, // INT
  1136. IN31 := 41, // INT
  1137. IN40 := C#50, // INT
  1138. IN41 := C#6, // INT
  1139. IN50 := 60, // INT
  1140. IN51 := 61, // INT
  1141. IN100 := 1, // INT
  1142. IN110 := 2, // INT
  1143. IN120 := TRUE, // BOOL
  1144. IN130 := TRUE, // BOOL
  1145. // VAR_OUTPUT
  1146. OUT0 := MW 0, // INT
  1147. OUT1 := MW 2, // WORD
  1148. OUT2 := MW 4, // WORD
  1149. OUT3 := M 6.0, // BOOL
  1150. OUT4 := M 7.0, // BOOL
  1151. )
  1152. L Z 0
  1153. __ASSERT== __ACCU 1, 100
  1154. __ASSERT== MW 0, 101
  1155. __ASSERT== MW 2, C#100
  1156. __ASSERT== MW 4, C#400
  1157. __ASSERT== M 6.0, TRUE
  1158. __ASSERT== M 7.0, TRUE
  1159. // EN=1, S=1
  1160. L 0
  1161. T MW 0
  1162. T MW 2
  1163. T MW 4
  1164. T MW 6
  1165. CALL "FC_count_2" (
  1166. // VAR_INPUT
  1167. IN00 := 10, // INT
  1168. IN01 := 10, // INT
  1169. IN10 := 20, // INT
  1170. IN11 := 21, // INT
  1171. IN20 := 30, // INT
  1172. IN21 := 31, // INT
  1173. IN30 := 40, // INT
  1174. IN31 := 40, // INT
  1175. IN40 := C#50, // INT
  1176. IN41 := C#6, // INT
  1177. IN50 := 60, // INT
  1178. IN51 := 61, // INT
  1179. IN100 := 1, // INT
  1180. IN110 := 2, // INT
  1181. IN120 := TRUE, // BOOL
  1182. IN130 := TRUE, // BOOL
  1183. // VAR_OUTPUT
  1184. OUT0 := MW 0, // INT
  1185. OUT1 := MW 2, // WORD
  1186. OUT2 := MW 4, // WORD
  1187. OUT3 := M 6.0, // BOOL
  1188. OUT4 := M 7.0, // BOOL
  1189. )
  1190. L Z 0
  1191. __ASSERT== __ACCU 1, 56
  1192. __ASSERT== MW 0, 57
  1193. __ASSERT== MW 2, C#56
  1194. __ASSERT== MW 4, C#158
  1195. __ASSERT== M 6.0, TRUE
  1196. __ASSERT== M 7.0, TRUE
  1197. // EN=1, S=0
  1198. L 0
  1199. T MW 0
  1200. T MW 2
  1201. T MW 4
  1202. T MW 6
  1203. CALL "FC_count_2" (
  1204. // VAR_INPUT
  1205. IN00 := 10, // INT
  1206. IN01 := 10, // INT
  1207. IN10 := 20, // INT
  1208. IN11 := 21, // INT
  1209. IN20 := 30, // INT
  1210. IN21 := 31, // INT
  1211. IN30 := 40, // INT
  1212. IN31 := 40, // INT
  1213. IN40 := C#50, // INT
  1214. IN41 := C#6, // INT
  1215. IN50 := 60, // INT
  1216. IN51 := 61, // INT
  1217. IN100 := 1, // INT
  1218. IN110 := 2, // INT
  1219. IN120 := TRUE, // BOOL
  1220. IN130 := TRUE, // BOOL
  1221. // VAR_OUTPUT
  1222. OUT0 := MW 0, // INT
  1223. OUT1 := MW 2, // WORD
  1224. OUT2 := MW 4, // WORD
  1225. OUT3 := M 6.0, // BOOL
  1226. OUT4 := M 7.0, // BOOL
  1227. )
  1228. L Z 0
  1229. __ASSERT== __ACCU 1, 56
  1230. __ASSERT== MW 0, 57
  1231. __ASSERT== MW 2, C#56
  1232. __ASSERT== MW 4, C#158
  1233. __ASSERT== M 6.0, TRUE
  1234. __ASSERT== M 7.0, TRUE
  1235. // EN=1, R=1
  1236. L 0
  1237. T MW 0
  1238. T MW 2
  1239. T MW 4
  1240. T MW 6
  1241. CALL "FC_count_2" (
  1242. // VAR_INPUT
  1243. IN00 := 10, // INT
  1244. IN01 := 10, // INT
  1245. IN10 := 20, // INT
  1246. IN11 := 21, // INT
  1247. IN20 := 30, // INT
  1248. IN21 := 31, // INT
  1249. IN30 := 40, // INT
  1250. IN31 := 41, // INT
  1251. IN40 := C#50, // INT
  1252. IN41 := C#6, // INT
  1253. IN50 := 60, // INT
  1254. IN51 := 60, // INT
  1255. IN100 := 1, // INT
  1256. IN110 := 2, // INT
  1257. IN120 := TRUE, // BOOL
  1258. IN130 := TRUE, // BOOL
  1259. // VAR_OUTPUT
  1260. OUT0 := MW 0, // INT
  1261. OUT1 := MW 2, // WORD
  1262. OUT2 := MW 4, // WORD
  1263. OUT3 := M 6.0, // BOOL
  1264. OUT4 := M 7.0, // BOOL
  1265. )
  1266. L Z 0
  1267. __ASSERT== __ACCU 1, 0
  1268. __ASSERT== MW 0, 1
  1269. __ASSERT== MW 2, C#0
  1270. __ASSERT== MW 4, C#0
  1271. __ASSERT== M 6.0, FALSE
  1272. __ASSERT== M 7.0, TRUE
  1273. // EN=1, R=0
  1274. L 0
  1275. T MW 0
  1276. T MW 2
  1277. T MW 4
  1278. T MW 6
  1279. CALL "FC_count_2" (
  1280. // VAR_INPUT
  1281. IN00 := 10, // INT
  1282. IN01 := 10, // INT
  1283. IN10 := 20, // INT
  1284. IN11 := 21, // INT
  1285. IN20 := 30, // INT
  1286. IN21 := 31, // INT
  1287. IN30 := 40, // INT
  1288. IN31 := 41, // INT
  1289. IN40 := C#50, // INT
  1290. IN41 := C#6, // INT
  1291. IN50 := 60, // INT
  1292. IN51 := 60, // INT
  1293. IN100 := 1, // INT
  1294. IN110 := 2, // INT
  1295. IN120 := TRUE, // BOOL
  1296. IN130 := TRUE, // BOOL
  1297. // VAR_OUTPUT
  1298. OUT0 := MW 0, // INT
  1299. OUT1 := MW 2, // WORD
  1300. OUT2 := MW 4, // WORD
  1301. OUT3 := M 6.0, // BOOL
  1302. OUT4 := M 7.0, // BOOL
  1303. )
  1304. L Z 0
  1305. __ASSERT== __ACCU 1, 0
  1306. __ASSERT== MW 0, 1
  1307. __ASSERT== MW 2, C#0
  1308. __ASSERT== MW 4, C#0
  1309. __ASSERT== M 6.0, FALSE
  1310. __ASSERT== M 7.0, TRUE
  1311. END_FUNCTION
  1312. ]]></source>
  1313. <!-- AWL/STL source code -->
  1314. <source enabled="1"
  1315. name="TEST count_3"
  1316. type="0"><![CDATA[
  1317. FUNCTION "FC_TEST_count_3" : VOID
  1318. BEGIN
  1319. // Initialize all counters to 100
  1320. L C#100
  1321. SET
  1322. FR Z 0
  1323. SET
  1324. S Z 0
  1325. CLR
  1326. FR Z 0
  1327. L 0
  1328. T MW 0
  1329. CALL "FC_count_3" (
  1330. // VAR_INPUT
  1331. EN0 := FALSE, // BOOL
  1332. EN1 := TRUE, // BOOL
  1333. CU0 := FALSE, // BOOL
  1334. IN0 := TRUE, // BOOL
  1335. // VAR_OUTPUT
  1336. OUT0 := M 0.0, // BOOL
  1337. )
  1338. L Z 0
  1339. __ASSERT== __ACCU 1, 100
  1340. __ASSERT== M 0.0, FALSE
  1341. L 0
  1342. T MW 0
  1343. CALL "FC_count_3" (
  1344. // VAR_INPUT
  1345. EN0 := FALSE, // BOOL
  1346. EN1 := TRUE, // BOOL
  1347. CU0 := TRUE, // BOOL
  1348. IN0 := TRUE, // BOOL
  1349. // VAR_OUTPUT
  1350. OUT0 := M 0.0, // BOOL
  1351. )
  1352. L Z 0
  1353. __ASSERT== __ACCU 1, 100
  1354. __ASSERT== M 0.0, FALSE
  1355. L 0
  1356. T MW 0
  1357. CALL "FC_count_3" (
  1358. // VAR_INPUT
  1359. EN0 := FALSE, // BOOL
  1360. EN1 := TRUE, // BOOL
  1361. CU0 := FALSE, // BOOL
  1362. IN0 := TRUE, // BOOL
  1363. // VAR_OUTPUT
  1364. OUT0 := M 0.0, // BOOL
  1365. )
  1366. L Z 0
  1367. __ASSERT== __ACCU 1, 100
  1368. __ASSERT== M 0.0, FALSE
  1369. L 0
  1370. T MW 0
  1371. CALL "FC_count_3" (
  1372. // VAR_INPUT
  1373. EN0 := TRUE, // BOOL
  1374. EN1 := TRUE, // BOOL
  1375. CU0 := FALSE, // BOOL
  1376. IN0 := TRUE, // BOOL
  1377. // VAR_OUTPUT
  1378. OUT0 := M 0.0, // BOOL
  1379. )
  1380. L Z 0
  1381. __ASSERT== __ACCU 1, 100
  1382. __ASSERT== M 0.0, TRUE
  1383. L 0
  1384. T MW 0
  1385. CALL "FC_count_3" (
  1386. // VAR_INPUT
  1387. EN0 := TRUE, // BOOL
  1388. EN1 := TRUE, // BOOL
  1389. CU0 := TRUE, // BOOL
  1390. IN0 := TRUE, // BOOL
  1391. // VAR_OUTPUT
  1392. OUT0 := M 0.0, // BOOL
  1393. )
  1394. L Z 0
  1395. __ASSERT== __ACCU 1, 101
  1396. __ASSERT== M 0.0, TRUE
  1397. L 0
  1398. T MW 0
  1399. CALL "FC_count_3" (
  1400. // VAR_INPUT
  1401. EN0 := TRUE, // BOOL
  1402. EN1 := TRUE, // BOOL
  1403. CU0 := FALSE, // BOOL
  1404. IN0 := TRUE, // BOOL
  1405. // VAR_OUTPUT
  1406. OUT0 := M 0.0, // BOOL
  1407. )
  1408. L Z 0
  1409. __ASSERT== __ACCU 1, 101
  1410. __ASSERT== M 0.0, TRUE
  1411. L 0
  1412. T MW 0
  1413. CALL "FC_count_3" (
  1414. // VAR_INPUT
  1415. EN0 := TRUE, // BOOL
  1416. EN1 := TRUE, // BOOL
  1417. CU0 := TRUE, // BOOL
  1418. IN0 := TRUE, // BOOL
  1419. // VAR_OUTPUT
  1420. OUT0 := M 0.0, // BOOL
  1421. )
  1422. L Z 0
  1423. __ASSERT== __ACCU 1, 102
  1424. __ASSERT== M 0.0, TRUE
  1425. L 0
  1426. T MW 0
  1427. CALL "FC_count_3" (
  1428. // VAR_INPUT
  1429. EN0 := TRUE, // BOOL
  1430. EN1 := TRUE, // BOOL
  1431. CU0 := FALSE, // BOOL
  1432. IN0 := TRUE, // BOOL
  1433. // VAR_OUTPUT
  1434. OUT0 := M 0.0, // BOOL
  1435. )
  1436. L Z 0
  1437. __ASSERT== __ACCU 1, 102
  1438. __ASSERT== M 0.0, TRUE
  1439. END_FUNCTION
  1440. ]]></source>
  1441. <!-- AWL/STL source code -->
  1442. <source enabled="1"
  1443. name="TEST count_4"
  1444. type="0"><![CDATA[
  1445. FUNCTION "FC_TEST_count_4" : VOID
  1446. BEGIN
  1447. // Initialize all counters to 0
  1448. L C#0
  1449. SET
  1450. FR Z 0
  1451. FR Z 1
  1452. SET
  1453. S Z 0
  1454. S Z 1
  1455. CLR
  1456. FR Z 0
  1457. FR Z 1
  1458. L 0
  1459. T MW 0
  1460. CALL "FC_count_4" (
  1461. // VAR_INPUT
  1462. CU0 := FALSE, // BOOL
  1463. CD0 := FALSE, // BOOL
  1464. CU1 := FALSE, // BOOL
  1465. CD1 := FALSE, // BOOL
  1466. // VAR_OUTPUT
  1467. OUT2 := M 0.0, // BOOL
  1468. )
  1469. L Z 0
  1470. __ASSERT== __ACCU 1, 0
  1471. L Z 1
  1472. __ASSERT== __ACCU 1, 0
  1473. __ASSERT== M 0.0, FALSE
  1474. L 0
  1475. T MW 0
  1476. CALL "FC_count_4" (
  1477. // VAR_INPUT
  1478. CU0 := TRUE, // BOOL
  1479. CD0 := FALSE, // BOOL
  1480. CU1 := FALSE, // BOOL
  1481. CD1 := FALSE, // BOOL
  1482. // VAR_OUTPUT
  1483. OUT2 := M 0.0, // BOOL
  1484. )
  1485. L Z 0
  1486. __ASSERT== __ACCU 1, 1
  1487. L Z 1
  1488. __ASSERT== __ACCU 1, 0
  1489. __ASSERT== M 0.0, TRUE
  1490. L 0
  1491. T MW 0
  1492. CALL "FC_count_4" (
  1493. // VAR_INPUT
  1494. CU0 := FALSE, // BOOL
  1495. CD0 := FALSE, // BOOL
  1496. CU1 := FALSE, // BOOL
  1497. CD1 := FALSE, // BOOL
  1498. // VAR_OUTPUT
  1499. OUT2 := M 0.0, // BOOL
  1500. )
  1501. L Z 0
  1502. __ASSERT== __ACCU 1, 1
  1503. L Z 1
  1504. __ASSERT== __ACCU 1, 0
  1505. __ASSERT== M 0.0, TRUE
  1506. L 0
  1507. T MW 0
  1508. CALL "FC_count_4" (
  1509. // VAR_INPUT
  1510. CU0 := FALSE, // BOOL
  1511. CD0 := FALSE, // BOOL
  1512. CU1 := TRUE, // BOOL
  1513. CD1 := FALSE, // BOOL
  1514. // VAR_OUTPUT
  1515. OUT2 := M 0.0, // BOOL
  1516. )
  1517. L Z 0
  1518. __ASSERT== __ACCU 1, 1
  1519. L Z 1
  1520. __ASSERT== __ACCU 1, 1
  1521. __ASSERT== M 0.0, TRUE
  1522. L 0
  1523. T MW 0
  1524. CALL "FC_count_4" (
  1525. // VAR_INPUT
  1526. CU0 := FALSE, // BOOL
  1527. CD0 := FALSE, // BOOL
  1528. CU1 := FALSE, // BOOL
  1529. CD1 := FALSE, // BOOL
  1530. // VAR_OUTPUT
  1531. OUT2 := M 0.0, // BOOL
  1532. )
  1533. L Z 0
  1534. __ASSERT== __ACCU 1, 1
  1535. L Z 1
  1536. __ASSERT== __ACCU 1, 1
  1537. __ASSERT== M 0.0, TRUE
  1538. L 0
  1539. T MW 0
  1540. CALL "FC_count_4" (
  1541. // VAR_INPUT
  1542. CU0 := FALSE, // BOOL
  1543. CD0 := TRUE, // BOOL
  1544. CU1 := FALSE, // BOOL
  1545. CD1 := FALSE, // BOOL
  1546. // VAR_OUTPUT
  1547. OUT2 := M 0.0, // BOOL
  1548. )
  1549. L Z 0
  1550. __ASSERT== __ACCU 1, 0
  1551. L Z 1
  1552. __ASSERT== __ACCU 1, 1
  1553. __ASSERT== M 0.0, TRUE
  1554. L 0
  1555. T MW 0
  1556. CALL "FC_count_4" (
  1557. // VAR_INPUT
  1558. CU0 := FALSE, // BOOL
  1559. CD0 := FALSE, // BOOL
  1560. CU1 := FALSE, // BOOL
  1561. CD1 := FALSE, // BOOL
  1562. // VAR_OUTPUT
  1563. OUT2 := M 0.0, // BOOL
  1564. )
  1565. L Z 0
  1566. __ASSERT== __ACCU 1, 0
  1567. L Z 1
  1568. __ASSERT== __ACCU 1, 1
  1569. __ASSERT== M 0.0, TRUE
  1570. L 0
  1571. T MW 0
  1572. CALL "FC_count_4" (
  1573. // VAR_INPUT
  1574. CU0 := FALSE, // BOOL
  1575. CD0 := FALSE, // BOOL
  1576. CU1 := FALSE, // BOOL
  1577. CD1 := TRUE, // BOOL
  1578. // VAR_OUTPUT
  1579. OUT2 := M 0.0, // BOOL
  1580. )
  1581. L Z 0
  1582. __ASSERT== __ACCU 1, 0
  1583. L Z 1
  1584. __ASSERT== __ACCU 1, 0
  1585. __ASSERT== M 0.0, FALSE
  1586. L 0
  1587. T MW 0
  1588. CALL "FC_count_4" (
  1589. // VAR_INPUT
  1590. CU0 := FALSE, // BOOL
  1591. CD0 := FALSE, // BOOL
  1592. CU1 := FALSE, // BOOL
  1593. CD1 := FALSE, // BOOL
  1594. // VAR_OUTPUT
  1595. OUT2 := M 0.0, // BOOL
  1596. )
  1597. L Z 0
  1598. __ASSERT== __ACCU 1, 0
  1599. L Z 1
  1600. __ASSERT== __ACCU 1, 0
  1601. __ASSERT== M 0.0, FALSE
  1602. END_FUNCTION
  1603. ]]></source>
  1604. </language_awl>
  1605. <!-- FUP/FBD language configuration -->
  1606. <language_fup>
  1607. <!-- FUP/FBD source code -->
  1608. <source enabled="1"
  1609. name="count_0"
  1610. type="1"><![CDATA[
  1611. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  1612. <!-- Awlsim FUP/FBD source generated by awlsim-0.66.0-pre -->
  1613. <FUP version="0" zoom="1.0">
  1614. <blockdecl name='"FC_count_0"' type="FC" />
  1615. <interface allow_initvalue="0"
  1616. allow_inouts="1"
  1617. allow_inputs="1"
  1618. allow_outputs="1"
  1619. allow_retval="1"
  1620. allow_stats="0"
  1621. allow_temps="1">
  1622. <inputs>
  1623. <field name="EN0" type="BOOL" uuid="518560e4-c70f-4a92-89b7-512072e8acd3" />
  1624. <field name="CU0" type="BOOL" uuid="3af54136-8fcc-448c-9358-8e9e88c060f6" />
  1625. <field name="CD0" type="BOOL" uuid="5aaf6800-eb53-4678-9cfa-377582826dc3" />
  1626. <field name="S0" type="BOOL" uuid="8af2adc4-c79e-4082-a8f7-6b2401f7c740" />
  1627. <field name="PV0" type="WORD" uuid="81dce6fb-e7f2-4053-b1bc-f80f7fc953b2" />
  1628. <field name="R0" type="BOOL" uuid="a69119e7-a6d1-44b6-a1f5-5acafa4ad3f8" />
  1629. <field name="EN1" type="BOOL" uuid="63bb3dcc-3553-492a-b2df-7a34e4bede4e" />
  1630. <field name="CU1" type="BOOL" uuid="dd888df6-af9d-437e-a2b1-ec8f35dca442" />
  1631. <field name="S1" type="BOOL" uuid="38ab6514-9ffa-422d-b69f-fec1c7a168b0" />
  1632. <field name="PV1" type="WORD" uuid="0e97d778-ee68-4207-ab22-53bb96a9e457" />
  1633. <field name="R1" type="BOOL" uuid="5305a7ad-bd88-4abc-8b12-046efb8517ed" />
  1634. <field name="CU2" type="BOOL" uuid="365d2659-50d7-45d2-ae2f-49d070ca6926" />
  1635. <field name="EN3" type="BOOL" uuid="3f407a73-be23-46da-b0b5-25718602e6c0" />
  1636. <field name="CD3" type="BOOL" uuid="88528920-76cf-45bf-992a-a071c47598a7" />
  1637. <field name="S3" type="BOOL" uuid="c0a0c058-22e1-4d50-8d6b-0d6457d39ec8" />
  1638. <field name="PV3" type="WORD" uuid="c1131a9a-6066-4523-b929-783af4e7e7bd" />
  1639. <field name="R3" type="BOOL" uuid="2cc04714-12ad-4c5f-9ded-0591f4c61b06" />
  1640. <field name="CD4" type="BOOL" uuid="c12aa8ff-a108-4754-a510-318b22c4043b" />
  1641. <field name="S5" type="BOOL" uuid="9a1d3fad-0c77-4294-86c0-5b847059d770" />
  1642. <field name="PV5" type="WORD" uuid="c9722988-6fdc-4a34-9ea5-dc063ff0ebb8" />
  1643. </inputs>
  1644. <outputs>
  1645. <field name="CV0" type="WORD" uuid="3339ddfc-4849-4a36-896c-66b67f12bf3c" />
  1646. <field name="CVB0" type="WORD" uuid="f5a74a21-3f2e-4431-89a6-8b3d554540e0" />
  1647. <field name="Q0" type="BOOL" uuid="88868ce4-fb46-4518-a94e-f08e43f7d676" />
  1648. <field name="ENO0" type="BOOL" uuid="4b6e3298-aa22-4b60-9b5d-add71b8f8c21" />
  1649. <field name="CV1" type="WORD" uuid="2c7017c8-51d9-4d4b-b811-ae47829a9afd" />
  1650. <field name="CVB1" type="WORD" uuid="0c965768-7f9e-4795-a774-d84e6697d272" />
  1651. <field name="Q1" type="BOOL" uuid="946b4763-d0aa-441d-b2c2-8db01bb12217" />
  1652. <field name="ENO1" type="BOOL" uuid="e7973eed-e423-4e23-88a7-7dd04d687fa8" />
  1653. <field name="Q2" type="BOOL" uuid="73bd8f11-5e00-4049-9c29-70614aaa7b81" />
  1654. <field name="CV3" type="WORD" uuid="5875ee4f-efe6-4b70-988e-545e81fc6a47" />
  1655. <field name="CVB3" type="WORD" uuid="eb9a9c5d-18bb-4b8e-ac90-59fc33d0ed6a" />
  1656. <field name="Q3" type="BOOL" uuid="1be08933-56d2-4b80-bd73-2dd589221b42" />
  1657. <field name="ENO3" type="BOOL" uuid="08ad6882-934b-4987-a7b7-c0eb7aff3f01" />
  1658. <field name="Q4" type="BOOL" uuid="6dca4177-f51a-4b1f-9563-8e63d7f0aa9c" />
  1659. <field name="Q5" type="BOOL" uuid="ec7623ff-741f-43c2-b532-325e2febce70" />
  1660. </outputs>
  1661. <retval>
  1662. <field name="RET_VAL" type="VOID" uuid="d002aa71-a365-41ca-a397-f9f48941ff49" />
  1663. </retval>
  1664. </interface>
  1665. <grids>
  1666. <grid height="47" uuid="a3ee5481-8dbe-40f4-98a3-ba021293a382" width="12">
  1667. <optimizers all="1" enabled="1" type="awl" />
  1668. <wires>
  1669. <wire id="0" uuid="62d4f063-c6e4-4953-aeaa-b5f03e22e0ea" />
  1670. <wire id="1" uuid="891cbff7-4a80-4b45-af27-ec9fe08c8d9a" />
  1671. <wire id="2" uuid="84c613e1-5a20-496c-a961-8d17ac86e38b" />
  1672. <wire id="3" uuid="994e92a1-8be4-48f2-8eba-6d9ce995c523" />
  1673. <wire id="4" uuid="475dffe8-6533-4dcb-b878-f21bc439f69e" />
  1674. <wire id="5" uuid="df209ebb-01af-4eba-904b-39430f29f294" />
  1675. <wire id="6" uuid="49373032-d8fe-4893-b3fb-09f92ec523f5" />
  1676. <wire id="7" uuid="60eacdb4-2c47-466b-a071-cd7368a6f6e8" />
  1677. <wire id="8" uuid="2fd26d6b-2b1c-47dd-b4d4-a7c94863f326" />
  1678. <wire id="9" uuid="84dfb48e-2c37-4042-9f11-7c38b3592c1a" />
  1679. <wire id="10" uuid="9f3b8f4b-7d26-4665-abe0-b1a60071efce" />
  1680. <wire id="11" uuid="669a368b-0a74-4767-ad84-0a02e8762703" />
  1681. <wire id="12" uuid="d9e229ee-34b6-41c2-a012-e281fe631ecc" />
  1682. <wire id="13" uuid="a18170bb-978f-40a7-bfe9-ab7fc958f3b8" />
  1683. <wire id="14" uuid="b0ad5636-d3e9-4090-8ebf-f2e5b67867bc" />
  1684. <wire id="15" uuid="f93c7e70-c4cf-4a4e-bd5b-7489d2d8b081" />
  1685. <wire id="16" uuid="90345cff-bd41-46b5-aa6d-200faeb6b6e2" />
  1686. <wire id="17" uuid="37e3a89e-d949-4b34-bc2c-e698b5aa1a6b" />
  1687. <wire id="18" uuid="2f9aeb95-eae0-4da2-ac12-027f6da419b6" />
  1688. <wire id="19" uuid="ea912fb6-1d9d-4825-830c-c156e0cf7b03" />
  1689. <wire id="20" uuid="d93384d9-60a0-4231-8020-db966ef6ccfa" />
  1690. <wire id="21" uuid="fabeafdf-db0b-4534-b9c9-23699c3fe569" />
  1691. <wire id="22" uuid="c799519a-ebd0-4c0a-9ee5-1113e9358a6e" />
  1692. <wire id="23" uuid="0c91fe8d-d442-403d-8e6a-7d0da1de4e24" />
  1693. <wire id="24" uuid="ce4f1350-15b5-474b-afe7-813b295ba581" />
  1694. <wire id="25" uuid="ed200373-9370-49c6-b7b5-7f82e14f1bf3" />
  1695. <wire id="26" uuid="ebe968ff-a269-4439-b313-458102a25701" />
  1696. <wire id="27" uuid="f59dca2e-bde7-4c5f-a5ad-d12c976838d2" />
  1697. <wire id="28" uuid="520844aa-9c69-407f-82af-c4eb9d6d6943" />
  1698. <wire id="29" uuid="f2d1407d-78c8-4d50-b4c0-5238b0d81de9" />
  1699. <wire id="30" uuid="f12d3292-fa20-4f7f-b445-5ee564696ba7" />
  1700. <wire id="31" uuid="6a3e872d-fa26-4c29-9ecf-4140a8655d99" />
  1701. <wire id="32" uuid="b1d61212-9c6a-4712-82ce-4bdde4775d19" />
  1702. <wire id="33" uuid="3dc53aa0-60c5-4ad7-94e4-e39750573c7e" />
  1703. <wire id="34" uuid="ff62b046-aa5e-481f-bbc3-baaaa4ae377f" />
  1704. </wires>
  1705. <elements>
  1706. <element subtype="cud" type="counter" uuid="82575e97-aa17-4173-b248-00817860ec10" x="2" y="1">
  1707. <connections>
  1708. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="8e589e0b-0a9c-4c28-bcb2-b0ef6891ed39" wire="0" />
  1709. <connection dir_in="1" dir_out="0" pos="1" text="CU" uuid="a03cb246-bfd6-4bf0-b6bf-d791b86c4ac9" wire="1" />
  1710. <connection dir_in="1" dir_out="0" pos="2" text="CD" uuid="5834878f-a815-4a66-ab2e-2b9724e955a9" wire="2" />
  1711. <connection dir_in="1" dir_out="0" pos="3" text="S" uuid="1f043ee1-047a-4c61-9e67-b79ead5d9b1c" wire="3" />
  1712. <connection dir_in="1" dir_out="0" pos="4" text="PV" uuid="16c0f713-ff49-4086-a8b7-328165313c97" wire="4" />
  1713. <connection dir_in="1" dir_out="0" pos="5" text="R" uuid="03a30878-afd2-4d98-9802-cd9d4c359e7f" wire="5" />
  1714. <connection dir_in="0" dir_out="1" pos="0" text="CV" uuid="b95b495c-ca11-4b14-8cef-5192d2c065f0" wire="6" />
  1715. <connection dir_in="0" dir_out="1" pos="1" text="CVB" uuid="7d6c4ec2-df34-4a18-bb4d-bde02e9d0bab" wire="7" />
  1716. <connection dir_in="0" dir_out="1" pos="2" text="Q" uuid="5f6d2cab-9a36-4f9c-93bc-c50e39bf1502" wire="8" />
  1717. <connection dir_in="0" dir_out="1" pos="3" text="ENO" uuid="3552856d-018d-4364-994d-860ae4d2fc87" wire="9" />
  1718. </connections>
  1719. <subelements>
  1720. <element content="Z 0" subtype="embedded" type="operand" uuid="af029b0f-35bd-4ce4-b39d-e4e8817d4d19" x="0" y="0" />
  1721. </subelements>
  1722. </element>
  1723. <element subtype="cu" type="counter" uuid="7c75d33b-b899-4202-8aae-e1f00696d6f9" x="2" y="11">
  1724. <connections>
  1725. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="9bd8ee3a-147d-4cc7-bc01-454ef5a8a5c0" wire="10" />
  1726. <connection dir_in="1" dir_out="0" pos="1" text="CU" uuid="a431a673-10e5-4333-916c-c27778a2531b" wire="11" />
  1727. <connection dir_in="1" dir_out="0" pos="2" text="S" uuid="5e5a856c-01ed-4aee-8914-a46268e5cb58" wire="12" />
  1728. <connection dir_in="1" dir_out="0" pos="3" text="PV" uuid="43a03384-d1ba-4829-91ba-7d70107b1b4f" wire="13" />
  1729. <connection dir_in="1" dir_out="0" pos="4" text="R" uuid="362012e5-274c-4579-ac5d-0f31cdc856eb" wire="14" />
  1730. <connection dir_in="0" dir_out="1" pos="0" text="CV" uuid="b000bef4-92a6-4808-b64d-f09b06578784" wire="15" />
  1731. <connection dir_in="0" dir_out="1" pos="1" text="CVB" uuid="cd5d77e8-2ec7-4ea3-866c-874b8513c387" wire="16" />
  1732. <connection dir_in="0" dir_out="1" pos="2" text="Q" uuid="3a43a7df-efd4-4ba4-a9c5-8e99de85b87e" wire="17" />
  1733. <connection dir_in="0" dir_out="1" pos="3" text="ENO" uuid="5fbe065b-1098-47a5-b225-2ffb7afff53b" wire="18" />
  1734. </connections>
  1735. <subelements>
  1736. <element content="Z 1" subtype="embedded" type="operand" uuid="66b1ff7b-1cbd-473e-8643-388eb944151e" x="0" y="0" />
  1737. </subelements>
  1738. </element>
  1739. <element subtype="cuo" type="counter" uuid="24222675-0fba-4634-9a27-71bca1131e51" x="2" y="20">
  1740. <connections>
  1741. <connection dir_in="1" dir_out="0" pos="0" text="CU" uuid="f5637961-c045-400f-bf06-bc99254a2955" wire="19" />
  1742. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="f4b85593-18b4-469d-a8d9-c1f8998692d1" wire="20" />
  1743. </connections>
  1744. <subelements>
  1745. <element content="Z 2" subtype="embedded" type="operand" uuid="fb2fd816-4985-4d22-9845-76d31c72e213" x="0" y="0" />
  1746. </subelements>
  1747. </element>
  1748. <element subtype="cd" type="counter" uuid="f6502c3b-0e33-479d-8234-12195ede0f5a" x="2" y="25">
  1749. <connections>
  1750. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="81dfaa4b-c522-4dbb-8c2e-b6094d9d4e62" wire="21" />
  1751. <connection dir_in="1" dir_out="0" pos="1" text="CD" uuid="f306f991-c308-4123-a4c0-974948f5b9c3" wire="22" />
  1752. <connection dir_in="1" dir_out="0" pos="2" text="S" uuid="30a13955-c8f8-49e2-a2aa-8334eca8eaf4" wire="23" />
  1753. <connection dir_in="1" dir_out="0" pos="3" text="PV" uuid="ab4e0b10-1253-4a92-97c9-c848e22062fb" wire="24" />
  1754. <connection dir_in="1" dir_out="0" pos="4" text="R" uuid="4c1efbd7-ed84-4bb1-ac85-a3878466efd8" wire="25" />
  1755. <connection dir_in="0" dir_out="1" pos="0" text="CV" uuid="81cef53b-8393-42bb-80bf-88ae0efd771f" wire="26" />
  1756. <connection dir_in="0" dir_out="1" pos="1" text="CVB" uuid="db1ef3af-afe0-4d69-9bad-c27122fc9ea5" wire="27" />
  1757. <connection dir_in="0" dir_out="1" pos="2" text="Q" uuid="014e4d21-e159-47f7-aec4-92796f8d6836" wire="28" />
  1758. <connection dir_in="0" dir_out="1" pos="3" text="ENO" uuid="811d7f6d-c394-402e-ad1a-47883c1b3a5a" wire="29" />
  1759. </connections>
  1760. <subelements>
  1761. <element content="Z 3" subtype="embedded" type="operand" uuid="0d41b3c4-bcf1-45aa-bf0f-aec661c19a7f" x="0" y="0" />
  1762. </subelements>
  1763. </element>
  1764. <element subtype="cdo" type="counter" uuid="69983b23-249b-434f-b67a-5706ddc13664" x="2" y="34">
  1765. <connections>
  1766. <connection dir_in="1" dir_out="0" pos="0" text="CD" uuid="c63f71ec-08c7-40ca-bdde-bb7365a46d02" wire="30" />
  1767. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="37512f60-b423-4810-b752-55ce187c39fb" wire="31" />
  1768. </connections>
  1769. <subelements>
  1770. <element content="Z 4" subtype="embedded" type="operand" uuid="34255712-82bf-474e-b632-71453f23d674" x="0" y="0" />
  1771. </subelements>
  1772. </element>
  1773. <element subtype="cso" type="counter" uuid="0b0a1d80-e7c7-4353-a90d-41484391a00e" x="2" y="39">
  1774. <connections>
  1775. <connection dir_in="1" dir_out="0" pos="0" text="S" uuid="e53ed5ac-9de2-4993-8b9c-819bb0d06613" wire="32" />
  1776. <connection dir_in="1" dir_out="0" pos="1" text="PV" uuid="e54eead5-3a7d-4b80-a7a3-5a38a0bc2c16" wire="33" />
  1777. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="55aa18d4-4261-455b-928d-3989bab1b085" wire="34" />
  1778. </connections>
  1779. <subelements>
  1780. <element content="Z 5" subtype="embedded" type="operand" uuid="a8c21feb-aa47-4f2f-9ed2-bb8ed799ee47" x="0" y="0" />
  1781. </subelements>
  1782. </element>
  1783. <element content="#EN0" subtype="load" type="operand" uuid="dea6bd7d-7d9c-4807-8849-702e95486382" x="1" y="3">
  1784. <connections>
  1785. <connection dir_in="0" dir_out="1" pos="0" uuid="a832ca3b-6e68-490d-aa76-0055794fff8e" wire="0" />
  1786. </connections>
  1787. </element>
  1788. <element content="#CU0" subtype="load" type="operand" uuid="ab5e623f-696e-46b1-8793-04526a6be34a" x="1" y="4">
  1789. <connections>
  1790. <connection dir_in="0" dir_out="1" pos="0" uuid="810746b8-1a5e-4ebe-9343-340dde0ab0f3" wire="1" />
  1791. </connections>
  1792. </element>
  1793. <element content="#CD0" subtype="load" type="operand" uuid="8359c894-ee07-4824-b7cf-db39003bbad1" x="1" y="5">
  1794. <connections>
  1795. <connection dir_in="0" dir_out="1" pos="0" uuid="3663641b-1060-4a01-8451-ce95255a3ab7" wire="2" />
  1796. </connections>
  1797. </element>
  1798. <element content="#S0" subtype="load" type="operand" uuid="675d0dde-821e-4c5f-8f14-007b6c8ea320" x="1" y="6">
  1799. <connections>
  1800. <connection dir_in="0" dir_out="1" pos="0" uuid="a8a70b89-7289-429a-93d2-0d69f786238f" wire="3" />
  1801. </connections>
  1802. </element>
  1803. <element content="#PV0" subtype="load" type="operand" uuid="f7a7a258-cc70-45c7-9d97-3c0a2cefe264" x="1" y="7">
  1804. <connections>
  1805. <connection dir_in="0" dir_out="1" pos="0" uuid="dd32eb10-43ed-4bf0-a047-cdc6bb3e2c43" wire="4" />
  1806. </connections>
  1807. </element>
  1808. <element content="#R0" subtype="load" type="operand" uuid="1e47edcf-2407-4f05-8c7a-545e56818a69" x="1" y="8">
  1809. <connections>
  1810. <connection dir_in="0" dir_out="1" pos="0" uuid="6bc58cde-3c0b-461b-8060-09a76ad56b9f" wire="5" />
  1811. </connections>
  1812. </element>
  1813. <element content="#CV0" subtype="assign" type="operand" uuid="ecf4cdc6-b650-4871-b140-4654d0b80995" x="3" y="5">
  1814. <connections>
  1815. <connection dir_in="1" dir_out="0" pos="0" uuid="26469b82-deb6-42b6-85fe-6198b4429e86" wire="6" />
  1816. </connections>
  1817. </element>
  1818. <element content="#CVB0" subtype="assign" type="operand" uuid="c052eb68-917c-4d84-8489-e42faff193b5" x="3" y="6">
  1819. <connections>
  1820. <connection dir_in="1" dir_out="0" pos="0" uuid="567f70a5-ba17-443b-8a91-b5f0b53a72a1" wire="7" />
  1821. </connections>
  1822. </element>
  1823. <element content="#Q0" subtype="assign" type="operand" uuid="51650a5d-9582-49d5-82ab-0cd027a5c0cf" x="3" y="7">
  1824. <connections>
  1825. <connection dir_in="1" dir_out="0" pos="0" uuid="3a1e90cd-8b39-4382-b292-f1447ad3dc71" wire="8" />
  1826. </connections>
  1827. </element>
  1828. <element content="#ENO0" subtype="assign" type="operand" uuid="ed9c3fa6-22a2-425d-8bbd-dccec65f09cc" x="3" y="8">
  1829. <connections>
  1830. <connection dir_in="1" dir_out="0" pos="0" uuid="3fd3660c-805a-4ce5-a89f-f816d8362691" wire="9" />
  1831. </connections>
  1832. </element>
  1833. <element content="#EN1" subtype="load" type="operand" uuid="2928a169-1f24-4b67-b61b-829af71c782a" x="1" y="13">
  1834. <connections>
  1835. <connection dir_in="0" dir_out="1" pos="0" uuid="6725c4f3-7ad1-41a6-af0c-f7e1568ca6c1" wire="10" />
  1836. </connections>
  1837. </element>
  1838. <element content="#CU1" subtype="load" type="operand" uuid="8f3cabe3-960a-43bd-8aa7-227683aaf135" x="1" y="14">
  1839. <connections>
  1840. <connection dir_in="0" dir_out="1" pos="0" uuid="3965aff2-0360-4e17-83ac-b5cac16cbc9c" wire="11" />
  1841. </connections>
  1842. </element>
  1843. <element content="#S1" subtype="load" type="operand" uuid="875a7d77-54b9-4171-be23-2fa914c703b3" x="1" y="15">
  1844. <connections>
  1845. <connection dir_in="0" dir_out="1" pos="0" uuid="8c479f69-9f35-47d0-a424-26f646ded213" wire="12" />
  1846. </connections>
  1847. </element>
  1848. <element content="#PV1" subtype="load" type="operand" uuid="14a1ddb7-33d2-42c4-81fd-ae71e29685f7" x="1" y="16">
  1849. <connections>
  1850. <connection dir_in="0" dir_out="1" pos="0" uuid="bca81fb4-d39d-40c4-a5d1-60ad60d50c38" wire="13" />
  1851. </connections>
  1852. </element>
  1853. <element content="#R1" subtype="load" type="operand" uuid="3683ee9b-38ee-4885-b286-5aceabeb3830" x="1" y="17">
  1854. <connections>
  1855. <connection dir_in="0" dir_out="1" pos="0" uuid="076862be-55d3-4846-b85c-fd88200cb5fb" wire="14" />
  1856. </connections>
  1857. </element>
  1858. <element content="#CV1" subtype="assign" type="operand" uuid="1001fa13-d58d-4705-abd8-2783912d72c2" x="3" y="14">
  1859. <connections>
  1860. <connection dir_in="1" dir_out="0" pos="0" uuid="691cef83-1d3d-499b-979e-9856086fd92d" wire="15" />
  1861. </connections>
  1862. </element>
  1863. <element content="#CVB1" subtype="assign" type="operand" uuid="a9c7180f-8cf6-4c72-ac10-930f14099d53" x="3" y="15">
  1864. <connections>
  1865. <connection dir_in="1" dir_out="0" pos="0" uuid="47c25484-b85f-4203-b5f3-4944ef90c228" wire="16" />
  1866. </connections>
  1867. </element>
  1868. <element content="#Q1" subtype="assign" type="operand" uuid="0850e85b-c890-4f59-8094-6d457436111f" x="3" y="16">
  1869. <connections>
  1870. <connection dir_in="1" dir_out="0" pos="0" uuid="7082ffb8-a7db-46df-ba88-0689a15868ef" wire="17" />
  1871. </connections>
  1872. </element>
  1873. <element content="#ENO1" subtype="assign" type="operand" uuid="e7b9ec2d-7f84-4fd2-bb9c-bd073f68530e" x="3" y="17">
  1874. <connections>
  1875. <connection dir_in="1" dir_out="0" pos="0" uuid="18b31484-821a-4008-a834-a70f6497761c" wire="18" />
  1876. </connections>
  1877. </element>
  1878. <element content="#CU2" subtype="load" type="operand" uuid="70788858-a65a-4ade-a02e-60bd6032e37d" x="1" y="22">
  1879. <connections>
  1880. <connection dir_in="0" dir_out="1" pos="0" uuid="33981a66-0655-4136-8fac-e2fbdb278344" wire="19" />
  1881. </connections>
  1882. </element>
  1883. <element content="#Q2" subtype="assign" type="operand" uuid="c70e962e-4c12-4bd0-b256-13cc34c5a6b9" x="3" y="22">
  1884. <connections>
  1885. <connection dir_in="1" dir_out="0" pos="0" uuid="3f33bebf-9e3f-457a-b674-e016f4e74838" wire="20" />
  1886. </connections>
  1887. </element>
  1888. <element content="#EN3" subtype="load" type="operand" uuid="172686bb-2fb3-4489-b000-92d0bafd1b49" x="1" y="27">
  1889. <connections>
  1890. <connection dir_in="0" dir_out="1" pos="0" uuid="6bd280ff-1514-49bc-82af-cb86920f2a2b" wire="21" />
  1891. </connections>
  1892. </element>
  1893. <element content="#CD3" subtype="load" type="operand" uuid="d30214cc-6023-4fbb-8bea-6d3723d8cbe0" x="1" y="28">
  1894. <connections>
  1895. <connection dir_in="0" dir_out="1" pos="0" uuid="f481e3c3-65cc-46cf-97fa-4e16ede9ef68" wire="22" />
  1896. </connections>
  1897. </element>
  1898. <element content="#S3" subtype="load" type="operand" uuid="2b9fb7d8-f799-4547-b644-bb14c546a5bd" x="1" y="29">
  1899. <connections>
  1900. <connection dir_in="0" dir_out="1" pos="0" uuid="17446021-b981-4f49-99f9-5b72eba61f35" wire="23" />
  1901. </connections>
  1902. </element>
  1903. <element content="#PV3" subtype="load" type="operand" uuid="116b1af0-7a9a-4d41-a642-e205cffe4809" x="1" y="30">
  1904. <connections>
  1905. <connection dir_in="0" dir_out="1" pos="0" uuid="5c6ca0d2-4981-466c-be2a-752c030c33b5" wire="24" />
  1906. </connections>
  1907. </element>
  1908. <element content="#R3" subtype="load" type="operand" uuid="e464aeed-b91e-4d83-a0ab-5842131e53cf" x="1" y="31">
  1909. <connections>
  1910. <connection dir_in="0" dir_out="1" pos="0" uuid="f49f3887-cd64-4421-a912-206d7d8de37e" wire="25" />
  1911. </connections>
  1912. </element>
  1913. <element content="#CV3" subtype="assign" type="operand" uuid="dfdf37f9-d491-441c-8b22-4553fe002074" x="3" y="28">
  1914. <connections>
  1915. <connection dir_in="1" dir_out="0" pos="0" uuid="a27352dc-2b19-447e-9bf9-7d6456c0dc6f" wire="26" />
  1916. </connections>
  1917. </element>
  1918. <element content="#CVB3" subtype="assign" type="operand" uuid="7036f5a8-1512-4a9d-9b90-5e676f90af51" x="3" y="29">
  1919. <connections>
  1920. <connection dir_in="1" dir_out="0" pos="0" uuid="5f5b2c1f-cbbf-4f76-bb73-ab1dc283f066" wire="27" />
  1921. </connections>
  1922. </element>
  1923. <element content="#Q3" subtype="assign" type="operand" uuid="73239b61-bf37-40ff-99c4-ff4f599b65da" x="3" y="30">
  1924. <connections>
  1925. <connection dir_in="1" dir_out="0" pos="0" uuid="d3774f0b-a8e2-48d8-86c9-bc688414a22e" wire="28" />
  1926. </connections>
  1927. </element>
  1928. <element content="#ENO3" subtype="assign" type="operand" uuid="6b301b22-1dbb-4ed8-bcd3-a9a9277a0c85" x="3" y="31">
  1929. <connections>
  1930. <connection dir_in="1" dir_out="0" pos="0" uuid="2932c7ec-e4f1-47f9-aeb0-229335d1e3f6" wire="29" />
  1931. </connections>
  1932. </element>
  1933. <element content="#CD4" subtype="load" type="operand" uuid="997e61a9-ecbd-4267-afdd-0a6999bf1fda" x="1" y="36">
  1934. <connections>
  1935. <connection dir_in="0" dir_out="1" pos="0" uuid="b65bb4ed-1b1e-4c6f-8457-342aa6362ab9" wire="30" />
  1936. </connections>
  1937. </element>
  1938. <element content="#Q4" subtype="assign" type="operand" uuid="dd2b17b5-cd36-4c54-a272-31443e92b7d2" x="3" y="36">
  1939. <connections>
  1940. <connection dir_in="1" dir_out="0" pos="0" uuid="47f3adba-6f8f-485f-b17f-f863c480f40b" wire="31" />
  1941. </connections>
  1942. </element>
  1943. <element content="#S5" subtype="load" type="operand" uuid="ed39652d-aaa8-43db-a462-645fd81bd4ef" x="1" y="41">
  1944. <connections>
  1945. <connection dir_in="0" dir_out="1" pos="0" uuid="73d67b28-853d-4732-93dc-46bf26cb4b65" wire="32" />
  1946. </connections>
  1947. </element>
  1948. <element content="#PV5" subtype="load" type="operand" uuid="bb01df59-5ce6-46ed-9de5-0a96163df8cc" x="1" y="42">
  1949. <connections>
  1950. <connection dir_in="0" dir_out="1" pos="0" uuid="58706d34-986d-4fb0-b121-06324067a8b5" wire="33" />
  1951. </connections>
  1952. </element>
  1953. <element content="#Q5" subtype="assign" type="operand" uuid="abc283db-9592-4be7-8de0-edf6ca4be904" x="3" y="42">
  1954. <connections>
  1955. <connection dir_in="1" dir_out="0" pos="0" uuid="39caa7c7-08b5-44ef-ae35-3c79a8c56826" wire="34" />
  1956. </connections>
  1957. </element>
  1958. </elements>
  1959. </grid>
  1960. </grids>
  1961. </FUP>
  1962. ]]></source>
  1963. <!-- FUP/FBD source code -->
  1964. <source enabled="1"
  1965. name="count_1"
  1966. type="1"><![CDATA[
  1967. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  1968. <!-- Awlsim FUP/FBD source generated by awlsim-0.66.0-pre -->
  1969. <FUP version="0" zoom="1.0">
  1970. <blockdecl name='"FC_count_1"' type="FC" />
  1971. <interface allow_initvalue="0"
  1972. allow_inouts="1"
  1973. allow_inputs="1"
  1974. allow_outputs="1"
  1975. allow_retval="1"
  1976. allow_stats="0"
  1977. allow_temps="1">
  1978. <inputs>
  1979. <field name="EN0" type="BOOL" uuid="aaaf32b8-fa51-4844-be87-f9b118a41e5e" />
  1980. <field name="CU0" type="BOOL" uuid="9cbc4958-e17a-406c-aa6f-3c6378f3564b" />
  1981. <field name="CU1" type="BOOL" uuid="3e03bd5e-9bf1-4561-b66b-04cf766d92ae" />
  1982. <field name="EN2" type="BOOL" uuid="de081cf9-2342-4aed-bf95-81a1a7ac05c4" />
  1983. <field name="CU2" type="BOOL" uuid="4a94e7ce-199b-497e-892e-7f7c2fc8c151" />
  1984. </inputs>
  1985. <outputs>
  1986. <field name="ENO1" type="BOOL" uuid="9356c4cd-7b37-4ac0-a29c-06ee0a08a4f0" />
  1987. <field name="ENO2" type="BOOL" uuid="72e3bfb2-f9d4-494d-ac17-40513fab3c04" />
  1988. </outputs>
  1989. <retval>
  1990. <field name="RET_VAL" type="VOID" uuid="9dcbde84-e1f3-4ab3-b0fe-c7f6e9d0db3f" />
  1991. </retval>
  1992. </interface>
  1993. <grids>
  1994. <grid height="33" uuid="05ca0a8e-bfa2-4572-9a9d-0a3e5c7c2a6b" width="12">
  1995. <optimizers all="1" enabled="1" type="awl" />
  1996. <wires>
  1997. <wire id="0" uuid="b4078d5d-d52c-4c76-bc69-6a8f24e8b9cd" />
  1998. <wire id="1" uuid="19875c0f-0972-43ef-9345-0d6e7077f67a" />
  1999. <wire id="2" uuid="4ea71f6a-a071-4c3a-ae64-8a9b7bbb97d7" />
  2000. <wire id="3" uuid="f2dc910c-8a05-4ac8-a221-3cad07dbc7a1" />
  2001. <wire id="4" uuid="cf871e6f-ae4a-4316-b613-0babdc6591af" />
  2002. <wire id="5" uuid="fa1b46bc-9f5f-430f-832e-d97f638f6a17" />
  2003. <wire id="6" uuid="be4efe33-1964-44b5-8dcd-b191b51fbfda" />
  2004. </wires>
  2005. <elements>
  2006. <element content="#EN0" subtype="load" type="operand" uuid="ddc9ce0d-0f33-4621-ab6d-64d522eef706" x="1" y="3">
  2007. <connections>
  2008. <connection dir_in="0" dir_out="1" pos="0" uuid="f972dbf5-138a-4f56-9d6c-161f02ad4c95" wire="0" />
  2009. </connections>
  2010. </element>
  2011. <element content="#ENO1" subtype="assign" type="operand" uuid="154f6b26-1bf5-4fac-9d07-9f3504306f89" x="3" y="18">
  2012. <connections>
  2013. <connection dir_in="1" dir_out="0" pos="0" uuid="b17ba506-e1e5-473d-ac81-bd54155ef922" wire="1" />
  2014. </connections>
  2015. </element>
  2016. <element content="#EN2" subtype="load" type="operand" uuid="5976dad0-2d7f-4538-8845-e3f3ab85c152" x="1" y="23">
  2017. <connections>
  2018. <connection dir_in="0" dir_out="1" pos="0" uuid="d5c48fde-f8cc-4705-aac8-28df60275e04" wire="2" />
  2019. </connections>
  2020. </element>
  2021. <element content="#ENO2" subtype="assign" type="operand" uuid="46ee27b1-d195-4dc8-94cd-eaa541890b9f" x="3" y="28">
  2022. <connections>
  2023. <connection dir_in="1" dir_out="0" pos="0" uuid="08b3dc8e-8123-413e-9c16-97c6a97677f0" wire="3" />
  2024. </connections>
  2025. </element>
  2026. <element subtype="cud" type="counter" uuid="41d8050a-ff5c-42d9-92eb-b6b2f7474de6" x="2" y="1">
  2027. <connections>
  2028. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="93c8d122-23da-4a69-99ad-f546037ea222" wire="0" />
  2029. <connection dir_in="1" dir_out="0" pos="1" text="CU" uuid="b4529a4b-d0c7-4152-92d7-50da2a47274e" wire="4" />
  2030. <connection dir_in="1" dir_out="0" pos="2" text="CD" uuid="cec8f6a2-8496-41ce-902f-78a7bc2c71de" wire="-1" />
  2031. <connection dir_in="1" dir_out="0" pos="3" text="S" uuid="4c564efa-34fb-4a9b-babb-4a08610cb2e0" wire="-1" />
  2032. <connection dir_in="1" dir_out="0" pos="4" text="PV" uuid="ce558635-3cde-4d93-bf40-179cb2a2418c" wire="-1" />
  2033. <connection dir_in="1" dir_out="0" pos="5" text="R" uuid="ceaa1bce-4bfa-409d-8be7-0dd53cafe87b" wire="-1" />
  2034. <connection dir_in="0" dir_out="1" pos="0" text="CV" uuid="c97975bc-de31-4620-8a45-6a58e51d95f3" wire="-1" />
  2035. <connection dir_in="0" dir_out="1" pos="1" text="CVB" uuid="8bdb0bf1-c88c-4de8-9659-9f4511109a61" wire="-1" />
  2036. <connection dir_in="0" dir_out="1" pos="2" text="Q" uuid="904f8f67-26c6-4c46-9da9-1f29b56055b1" wire="-1" />
  2037. <connection dir_in="0" dir_out="1" pos="3" text="ENO" uuid="412cefff-f322-4ae2-a238-602fb94ea309" wire="-1" />
  2038. </connections>
  2039. <subelements>
  2040. <element content="Z 0" subtype="embedded" type="operand" uuid="caff6458-f57a-4d3e-8f17-d685ea37d3e4" x="0" y="0" />
  2041. </subelements>
  2042. </element>
  2043. <element subtype="cud" type="counter" uuid="e3d4f963-31b7-4dab-96ae-94cce01f4b3c" x="2" y="11">
  2044. <connections>
  2045. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="67e977a5-0cf6-4e60-a848-dac3b21778d1" wire="-1" />
  2046. <connection dir_in="1" dir_out="0" pos="1" text="CU" uuid="8cde18fa-76b8-4bf3-96e0-254a4800e978" wire="5" />
  2047. <connection dir_in="1" dir_out="0" pos="2" text="CD" uuid="f9fb34f4-beaa-4868-b371-81eddb98a61d" wire="-1" />
  2048. <connection dir_in="1" dir_out="0" pos="3" text="S" uuid="90dc4ebb-3e03-4f16-8fa6-63e3713ba9ac" wire="-1" />
  2049. <connection dir_in="1" dir_out="0" pos="4" text="PV" uuid="68b7c944-abd2-441e-a16e-3a937365b90d" wire="-1" />
  2050. <connection dir_in="1" dir_out="0" pos="5" text="R" uuid="73c28620-ba5b-4720-bf31-5e40b51c5926" wire="-1" />
  2051. <connection dir_in="0" dir_out="1" pos="0" text="CV" uuid="8832831a-f1c3-498a-9a55-f5b191f721bb" wire="-1" />
  2052. <connection dir_in="0" dir_out="1" pos="1" text="CVB" uuid="9800712b-f0be-4157-a74c-ef8f6daddd75" wire="-1" />
  2053. <connection dir_in="0" dir_out="1" pos="2" text="Q" uuid="adb0c80d-271c-4e47-a3ad-b7689090d78a" wire="-1" />
  2054. <connection dir_in="0" dir_out="1" pos="3" text="ENO" uuid="b80356fe-3b15-44a5-96d6-c8f1211d1405" wire="1" />
  2055. </connections>
  2056. <subelements>
  2057. <element content="Z 1" subtype="embedded" type="operand" uuid="caff6458-f57a-4d3e-8f17-d685ea37d3e4" x="0" y="0" />
  2058. </subelements>
  2059. </element>
  2060. <element subtype="cud" type="counter" uuid="bfcc4967-e339-4dcc-904d-e36560437764" x="2" y="21">
  2061. <connections>
  2062. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="168f955e-9723-4ae5-a956-c9caeef353bb" wire="2" />
  2063. <connection dir_in="1" dir_out="0" pos="1" text="CU" uuid="72933a21-c122-42b1-8ad2-13131094903b" wire="6" />
  2064. <connection dir_in="1" dir_out="0" pos="2" text="CD" uuid="3bdc4f9f-66bb-4264-9a32-c1b2faaf1d42" wire="-1" />
  2065. <connection dir_in="1" dir_out="0" pos="3" text="S" uuid="537f74ac-7ea3-450a-88ef-9667eef3d7c4" wire="-1" />
  2066. <connection dir_in="1" dir_out="0" pos="4" text="PV" uuid="1b630cff-9298-4b68-9c00-d5ee2ad779ef" wire="-1" />
  2067. <connection dir_in="1" dir_out="0" pos="5" text="R" uuid="d036538f-6acf-493f-b976-e454d16115af" wire="-1" />
  2068. <connection dir_in="0" dir_out="1" pos="0" text="CV" uuid="a6d6fe46-58ed-48aa-b24a-634e6fc01f10" wire="-1" />
  2069. <connection dir_in="0" dir_out="1" pos="1" text="CVB" uuid="86c9a317-1a51-438b-8cd4-b508e59ef5aa" wire="-1" />
  2070. <connection dir_in="0" dir_out="1" pos="2" text="Q" uuid="b57dc67a-9c00-4bc0-babf-49dd119758fb" wire="-1" />
  2071. <connection dir_in="0" dir_out="1" pos="3" text="ENO" uuid="623198f1-c09c-4c32-b7d1-bba92ac61cfa" wire="3" />
  2072. </connections>
  2073. <subelements>
  2074. <element content="Z 2" subtype="embedded" type="operand" uuid="caff6458-f57a-4d3e-8f17-d685ea37d3e4" x="0" y="0" />
  2075. </subelements>
  2076. </element>
  2077. <element content="#CU0" subtype="load" type="operand" uuid="597d858f-522d-4645-87a8-542a14c90458" x="1" y="4">
  2078. <connections>
  2079. <connection dir_in="0" dir_out="1" pos="0" uuid="ca29c53e-42f0-44b1-a051-fe5b438902a8" wire="4" />
  2080. </connections>
  2081. </element>
  2082. <element content="#CU1" subtype="load" type="operand" uuid="f51a1580-b202-4a29-8586-d268a3823d54" x="1" y="14">
  2083. <connections>
  2084. <connection dir_in="0" dir_out="1" pos="0" uuid="0be8d2b4-2dff-414c-b5fc-2d0b31182970" wire="5" />
  2085. </connections>
  2086. </element>
  2087. <element content="#CU2" subtype="load" type="operand" uuid="9717265d-4b78-4854-83c9-b365294ca205" x="1" y="24">
  2088. <connections>
  2089. <connection dir_in="0" dir_out="1" pos="0" uuid="b0a6faf7-d49a-4d2f-9b8e-4bdbbc7557bb" wire="6" />
  2090. </connections>
  2091. </element>
  2092. </elements>
  2093. </grid>
  2094. </grids>
  2095. </FUP>
  2096. ]]></source>
  2097. <!-- FUP/FBD source code -->
  2098. <source enabled="1"
  2099. name="count_2"
  2100. type="1"><![CDATA[
  2101. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2102. <!-- Awlsim FUP/FBD source generated by awlsim-0.66.0-pre -->
  2103. <FUP version="0" zoom="1.0">
  2104. <blockdecl name='"FC_count_2"' type="FC" />
  2105. <interface allow_initvalue="0"
  2106. allow_inouts="1"
  2107. allow_inputs="1"
  2108. allow_outputs="1"
  2109. allow_retval="1"
  2110. allow_stats="0"
  2111. allow_temps="1">
  2112. <inputs>
  2113. <field name="IN00" type="INT" uuid="5129df3d-8cf6-47a1-8e65-91f4da8921ac" />
  2114. <field name="IN01" type="INT" uuid="6b26edaf-887a-4bf2-9653-219b79e333b2" />
  2115. <field name="IN10" type="INT" uuid="3be1d556-ea7c-496c-a202-3a86c299c098" />
  2116. <field name="IN11" type="INT" uuid="cd34100b-06f5-47c5-b1a1-0b75f1217fcc" />
  2117. <field name="IN20" type="INT" uuid="e74c931e-450d-419f-bad3-e88a33b88355" />
  2118. <field name="IN21" type="INT" uuid="deeade93-c15e-40cb-9572-b0e474942452" />
  2119. <field name="IN30" type="INT" uuid="0a6b8442-5c69-461f-ae92-1304d33ea2b1" />
  2120. <field name="IN31" type="INT" uuid="60fd9e8a-9537-4597-b079-5b5589d12814" />
  2121. <field name="IN40" type="INT" uuid="512243e0-1913-489a-a61b-572151c3ff6c" />
  2122. <field name="IN41" type="INT" uuid="53c96e13-014e-45d3-a2e9-33fd05751cf3" />
  2123. <field name="IN50" type="INT" uuid="cf479629-0960-425e-b509-0d86e01627ab" />
  2124. <field name="IN51" type="INT" uuid="29a7b52d-a46c-47b0-9c38-7076e045a1b6" />
  2125. <field name="IN100" type="INT" uuid="cce02c4d-fd95-49aa-8d2d-8bdf108ad7df" />
  2126. <field name="IN110" type="INT" uuid="47b61288-ec33-4856-b451-7deb92d3f5d4" />
  2127. <field name="IN120" type="BOOL" uuid="a6274a21-78a5-402e-8f0a-42fb622e1283" />
  2128. <field name="IN130" type="BOOL" uuid="ba0129a4-d38f-43c7-b10f-cd3e9e7f23b3" />
  2129. </inputs>
  2130. <outputs>
  2131. <field name="OUT0" type="INT" uuid="72a54d85-3974-42e4-b242-cf4c1879e5bc" />
  2132. <field name="OUT1" type="WORD" uuid="188aa94e-67d9-4a26-b927-b2254fc72ceb" />
  2133. <field name="OUT2" type="WORD" uuid="88e1a48b-342c-40dc-8b97-49bfdbbfec74" />
  2134. <field name="OUT3" type="BOOL" uuid="e8030c4f-4fd9-4f17-b739-2d3b97c23603" />
  2135. <field name="OUT4" type="BOOL" uuid="9cdfde00-d5c1-401d-9fbb-bacf993789d5" />
  2136. </outputs>
  2137. <retval>
  2138. <field name="RET_VAL" type="VOID" uuid="64fbf0a7-30fb-4b7a-949b-770dfc328c3b" />
  2139. </retval>
  2140. </interface>
  2141. <grids>
  2142. <grid height="27" uuid="f28c78b9-fae2-425b-a63e-84894dd3727d" width="12">
  2143. <optimizers all="1" enabled="1" type="awl" />
  2144. <wires>
  2145. <wire id="0" uuid="d765cfb0-a1cd-4101-b077-0d9d838607f0" />
  2146. <wire id="1" uuid="ba3aed30-c15e-4afa-af2f-8e9a1c96b84f" />
  2147. <wire id="2" uuid="bba16b27-ff39-4dd1-82d2-4693a3b21553" />
  2148. <wire id="3" uuid="f1638c50-5f2c-4d40-9e89-f5c0fa4bd675" />
  2149. <wire id="4" uuid="57614894-ab6c-4bb9-b8d8-6c42ed78e06b" />
  2150. <wire id="5" uuid="782713a6-7a50-42d1-854e-4242dd86d11f" />
  2151. <wire id="6" uuid="fcce1af8-ee51-4551-beeb-916d24565d6b" />
  2152. <wire id="7" uuid="46b0afd7-1be2-453d-ba6e-2464ecb453c1" />
  2153. <wire id="8" uuid="7ddb9b6a-4db0-4f01-806a-84214d23c708" />
  2154. <wire id="9" uuid="19fbc06d-d703-4ac8-a7ac-08fa414ff339" />
  2155. <wire id="10" uuid="9c24e673-2a2a-464b-96e1-2a35e2ac115d" />
  2156. <wire id="11" uuid="b360569f-6485-453e-9e1d-c4f1352d3728" />
  2157. <wire id="12" uuid="bd7b69bc-ee2e-4fde-9a40-a0c9439bf023" />
  2158. <wire id="13" uuid="cce1d003-98c2-467b-a5ca-16d94524d757" />
  2159. <wire id="14" uuid="9e7f6fcf-c9f3-440f-a2c9-98a0d2284ac8" />
  2160. <wire id="15" uuid="2fa3b2aa-ed83-44df-aa23-3916a29d3e12" />
  2161. <wire id="16" uuid="64619d6d-a391-4f2a-a3ae-e663b74a6476" />
  2162. <wire id="17" uuid="ed182bf2-598c-4a28-9490-a3118dc7cdc8" />
  2163. <wire id="18" uuid="53638066-e53d-485f-9123-d3b98f551512" />
  2164. <wire id="19" uuid="d4a0a01e-6f0a-4d35-8aaf-980188f5bfa9" />
  2165. <wire id="20" uuid="88e2651c-093c-4a35-bd88-d3f4df5b7115" />
  2166. <wire id="21" uuid="7220dab3-dfbb-4de8-ba0c-1f2775c1e56d" />
  2167. <wire id="22" uuid="48ef92aa-3539-4a45-be90-88bcad3a8a48" />
  2168. <wire id="23" uuid="5a4b9c04-7f2e-4612-b47c-0b6c8c55f74d" />
  2169. <wire id="24" uuid="b0353cb3-e88c-4aaf-bc64-ea0a7fd09248" />
  2170. <wire id="25" uuid="4af4d4f4-a994-47c9-9717-0cbfa246ffe5" />
  2171. <wire id="26" uuid="77c5d1f8-c09d-4cc4-a545-ddc3e8e23727" />
  2172. <wire id="27" uuid="ae86ede5-4d68-4211-95df-071270c7ad03" />
  2173. <wire id="28" uuid="d3e43337-3abe-411f-a7d8-74d04eeb2b7d" />
  2174. <wire id="29" uuid="9ff8294a-a23a-44d7-9707-35b824051321" />
  2175. </wires>
  2176. <elements>
  2177. <element subtype="cud" type="counter" uuid="59116fb1-e054-4cf4-8290-a3b12a407941" x="4" y="5">
  2178. <connections>
  2179. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="872cea77-4259-48f4-800d-49c6c1643007" wire="29" />
  2180. <connection dir_in="1" dir_out="0" pos="1" text="CU" uuid="53e19b4d-2c39-4046-a773-6179d3ae2cc4" wire="6" />
  2181. <connection dir_in="1" dir_out="0" pos="2" text="CD" uuid="7ec7192c-d617-483c-974c-7f0d8d9ffff0" wire="7" />
  2182. <connection dir_in="1" dir_out="0" pos="3" text="S" uuid="13094bf4-321b-42a2-aa34-0a7bf134f02a" wire="8" />
  2183. <connection dir_in="1" dir_out="0" pos="4" text="PV" uuid="5f6cc829-835e-4b68-838c-601621280d94" wire="9" />
  2184. <connection dir_in="1" dir_out="0" pos="5" text="R" uuid="743eccbc-8835-4da8-8ee4-d4ac24f6ed19" wire="10" />
  2185. <connection dir_in="0" dir_out="1" pos="0" text="CV" uuid="1cb8431b-425d-447b-af25-948c1179bd64" wire="1" />
  2186. <connection dir_in="0" dir_out="1" pos="1" text="CVB" uuid="d5bade5c-27f2-4ed0-ad35-642a6a2e0fb2" wire="4" />
  2187. <connection dir_in="0" dir_out="1" pos="2" text="Q" uuid="ed0ce709-d50b-41e4-9855-11fc8dd8d4e1" wire="0" />
  2188. <connection dir_in="0" dir_out="1" pos="3" text="ENO" uuid="85ad82fd-a9f2-4936-ab73-87fc20fa84f7" wire="11" />
  2189. </connections>
  2190. <subelements>
  2191. <element content="Z 0" subtype="embedded" type="operand" uuid="3feaa0e4-b735-410f-9cb9-64a4cba49169" x="0" y="0" />
  2192. </subelements>
  2193. </element>
  2194. <element subtype="and" type="boolean" uuid="1a76f8d5-541a-4f46-96b8-a252e43901cd" x="7" y="12">
  2195. <connections>
  2196. <connection dir_in="1" dir_out="0" pos="0" uuid="9722c740-d5b2-4e3f-996b-fa19404e8f5d" wire="0" />
  2197. <connection dir_in="1" dir_out="0" pos="1" uuid="3bb0caaf-a21d-4d3d-a33d-eb122ad78b8e" wire="5" />
  2198. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="17114196-a752-4a56-9d39-6da648abcc10" wire="25" />
  2199. </connections>
  2200. </element>
  2201. <element subtype="add-int" type="arithmetic" uuid="b1fba02e-5c39-48e0-9fa9-dd16c51b9fd2" x="7" y="2">
  2202. <connections>
  2203. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="2d10645c-4436-4f36-b107-5a00ab3e37ee" wire="-1" />
  2204. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="47c56187-7a3f-4262-9530-f00b32fac658" wire="2" />
  2205. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="452540f3-60fa-46cb-a342-8129a40ef3e8" wire="1" />
  2206. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="c96d4b9b-f1a4-42c3-9b00-3a7b29ecfcf9" wire="23" />
  2207. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="d0cd8d19-0505-4626-826e-97d618be5a7a" wire="-1" />
  2208. </connections>
  2209. </element>
  2210. <element content="#IN100" subtype="load" type="operand" uuid="7d1d40b7-5b00-488f-a833-8b2bcd3ad749" x="6" y="3">
  2211. <connections>
  2212. <connection dir_in="0" dir_out="1" pos="0" uuid="d4e9d776-9aa2-4859-8559-2e374f7b39df" wire="2" />
  2213. </connections>
  2214. </element>
  2215. <element subtype="slw" type="shift" uuid="64fe87a9-8503-4246-b6a9-1d80509f2fa8" x="7" y="8">
  2216. <connections>
  2217. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="6b6c6829-41c7-4b6c-a2a6-a2db9e7a611e" wire="-1" />
  2218. <connection dir_in="1" dir_out="0" pos="1" text="N" uuid="f2f6eb20-3c96-4d8d-b729-ac7a58142cb7" wire="3" />
  2219. <connection dir_in="1" dir_out="0" pos="2" text="IN" uuid="975b96ae-25b6-43e3-ac96-ab2717a97f87" wire="4" />
  2220. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="3a0288c4-dbd7-4de4-8a92-4b15e6c1ddde" wire="24" />
  2221. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="b4791257-d5e6-45ac-9767-ac2716e84748" wire="-1" />
  2222. </connections>
  2223. </element>
  2224. <element content="#IN110" subtype="load" type="operand" uuid="248c3af0-ac0c-4637-aac7-eafb71225720" x="6" y="9">
  2225. <connections>
  2226. <connection dir_in="0" dir_out="1" pos="0" uuid="092e1013-454e-4215-8a7f-0b347c870f62" wire="3" />
  2227. </connections>
  2228. </element>
  2229. <element content="#IN120" subtype="load" type="operand" uuid="f930060f-b110-4037-b97a-5e2ba8531cc8" x="6" y="13">
  2230. <connections>
  2231. <connection dir_in="0" dir_out="1" pos="0" uuid="0c8addc8-8ead-47cc-9fd1-77077ba0f24f" wire="5" />
  2232. </connections>
  2233. </element>
  2234. <element content="#OUT1" subtype="assign" type="operand" uuid="fbf528b3-8474-46a9-8007-35794b173510" x="8" y="6">
  2235. <connections>
  2236. <connection dir_in="1" dir_out="0" pos="0" uuid="af649853-97a6-4260-af67-eb6daa9e86ed" wire="4" />
  2237. </connections>
  2238. </element>
  2239. <element subtype="eq-int" type="compare" uuid="453dd403-8b27-4ee2-8eec-e253d65f5c6c" x="2" y="4">
  2240. <connections>
  2241. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="d9633a7a-34c1-48fb-8910-80e851890e83" wire="-1" />
  2242. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="daf9ff3d-d7c1-4128-9799-083e7a79b14c" wire="12" />
  2243. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="29507f6e-00d6-4740-99f7-524b1dfc7d57" wire="13" />
  2244. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="5f432cf9-9477-4347-88a1-b44cd7d425b8" wire="6" />
  2245. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="509c0c8a-0cd5-4a10-b3a9-9e92c60c2dab" wire="-1" />
  2246. </connections>
  2247. </element>
  2248. <element subtype="eq-int" type="compare" uuid="4218eb17-57d3-4fec-ad68-f5130f216b06" x="2" y="8">
  2249. <connections>
  2250. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="f8556281-4541-430e-86b8-318e86255c6c" wire="-1" />
  2251. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="efd57b53-3916-41c4-9b5c-c4c9fb00a304" wire="14" />
  2252. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="7baaf767-05c0-4024-b5de-0fd13896dc32" wire="15" />
  2253. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="1047449b-74cb-4ac5-82ae-840945fc6ee9" wire="7" />
  2254. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="a962f88c-d3c9-43c4-bb27-735092a079d9" wire="-1" />
  2255. </connections>
  2256. </element>
  2257. <element subtype="eq-int" type="compare" uuid="ea1c78a3-c885-46d5-963d-7819b5010700" x="2" y="12">
  2258. <connections>
  2259. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="7d06e715-0ccd-4194-ad50-62adf6a908cb" wire="-1" />
  2260. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="728ad6d1-af21-4041-82d2-feb541a1b8da" wire="16" />
  2261. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="39267d5e-2347-4ac2-af9f-4d1c32fe059d" wire="17" />
  2262. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="d7563487-47ae-4072-9143-5e63dd0f4ebc" wire="8" />
  2263. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="21c2a427-6228-4268-8ee4-6f4268bad713" wire="-1" />
  2264. </connections>
  2265. </element>
  2266. <element subtype="add-int" type="arithmetic" uuid="2c713381-312d-4b89-83a8-555dc68ad1ff" x="2" y="16">
  2267. <connections>
  2268. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="a9ad236b-cee0-4996-be3e-128ba69ec56c" wire="-1" />
  2269. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="b3e5224d-65a6-4b30-a66a-bc75b07e175a" wire="18" />
  2270. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="c546e4d6-233c-44d8-aff1-7e95623353d1" wire="19" />
  2271. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="b8502359-26f0-4a15-8eea-9a526989587d" wire="9" />
  2272. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="85a9b998-a219-4955-b9d6-680c8297e9c1" wire="-1" />
  2273. </connections>
  2274. </element>
  2275. <element subtype="eq-int" type="compare" uuid="e9762428-dd73-48a9-925c-f232df552000" x="2" y="20">
  2276. <connections>
  2277. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="56b3fc44-fc83-486f-88e6-dff1a392070a" wire="-1" />
  2278. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="952b197b-93ff-427c-b199-22fe08c300ab" wire="20" />
  2279. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="61df2e0e-fd45-4ca6-ae5c-34cca7ef912e" wire="21" />
  2280. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="c32764cf-7cc6-4da1-928b-d3fbb15c5cdc" wire="10" />
  2281. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="7498e40c-6826-457a-a27b-00dc1d5e6449" wire="-1" />
  2282. </connections>
  2283. </element>
  2284. <element subtype="and" type="boolean" uuid="dc9a2cb7-2fa4-45e0-8c7a-3aaff12444f5" x="7" y="15">
  2285. <connections>
  2286. <connection dir_in="1" dir_out="0" pos="0" uuid="980c9f3d-06d2-4396-bba4-e6f5807de25c" wire="11" />
  2287. <connection dir_in="1" dir_out="0" pos="1" uuid="c3b6f621-7439-4dbb-bf91-abd01cd01baf" wire="22" />
  2288. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="bb75502b-ecad-4737-a25e-fa4bab5eacc8" wire="26" />
  2289. </connections>
  2290. </element>
  2291. <element content="#IN00" subtype="load" type="operand" uuid="44385497-c7a1-4d46-88ed-27bd679bcb75" x="1" y="2">
  2292. <connections>
  2293. <connection dir_in="0" dir_out="1" pos="0" uuid="d36b4bfc-efd2-4818-a4bd-5785e21c426f" wire="27" />
  2294. </connections>
  2295. </element>
  2296. <element content="#IN01" subtype="load" type="operand" uuid="d0d8c649-f64a-4bd9-97c7-02acaf31e57a" x="1" y="3">
  2297. <connections>
  2298. <connection dir_in="0" dir_out="1" pos="0" uuid="2368cd39-0c38-426c-9fed-d0033ef60ab1" wire="28" />
  2299. </connections>
  2300. </element>
  2301. <element content="#IN10" subtype="load" type="operand" uuid="291a89cc-da4d-4a73-a118-041d109c0d51" x="1" y="5">
  2302. <connections>
  2303. <connection dir_in="0" dir_out="1" pos="0" uuid="c5e9e812-423c-4aaf-ad01-61287da23c29" wire="12" />
  2304. </connections>
  2305. </element>
  2306. <element content="#IN11" subtype="load" type="operand" uuid="6c084844-c2ac-43a4-9882-55d978aa1feb" x="1" y="6">
  2307. <connections>
  2308. <connection dir_in="0" dir_out="1" pos="0" uuid="d160cf67-cb92-4e21-b03f-912b43de96fd" wire="13" />
  2309. </connections>
  2310. </element>
  2311. <element content="#IN20" subtype="load" type="operand" uuid="12681a67-62f3-484b-9f3c-4be614b3a33f" x="1" y="9">
  2312. <connections>
  2313. <connection dir_in="0" dir_out="1" pos="0" uuid="0c148d51-895a-40b3-9736-ec7973fb63f4" wire="14" />
  2314. </connections>
  2315. </element>
  2316. <element content="#IN21" subtype="load" type="operand" uuid="7b27f465-cab3-49de-82bf-4ca8ad3c6060" x="1" y="10">
  2317. <connections>
  2318. <connection dir_in="0" dir_out="1" pos="0" uuid="2c47edca-e5e4-4b6f-b91f-a7232c0b2ed8" wire="15" />
  2319. </connections>
  2320. </element>
  2321. <element content="#IN30" subtype="load" type="operand" uuid="6c85bc89-60f3-4564-a99d-faa0b93670c3" x="1" y="13">
  2322. <connections>
  2323. <connection dir_in="0" dir_out="1" pos="0" uuid="4ccb31af-2cbf-4fa0-838a-acc081251e0f" wire="16" />
  2324. </connections>
  2325. </element>
  2326. <element content="#IN31" subtype="load" type="operand" uuid="e6cb5eeb-3eaf-4826-b44b-d03175a9c54e" x="1" y="14">
  2327. <connections>
  2328. <connection dir_in="0" dir_out="1" pos="0" uuid="e88193b3-0ca0-46e2-9e99-5fd5a238c58c" wire="17" />
  2329. </connections>
  2330. </element>
  2331. <element content="#IN40" subtype="load" type="operand" uuid="382b9b1f-93e0-4120-a47d-2d73b265ba92" x="1" y="17">
  2332. <connections>
  2333. <connection dir_in="0" dir_out="1" pos="0" uuid="84bc3d59-82e2-4d7e-a35c-ae81d01814d9" wire="18" />
  2334. </connections>
  2335. </element>
  2336. <element content="#IN41" subtype="load" type="operand" uuid="0cb929f3-c2d6-4fa5-8ded-b7deefe25d8e" x="1" y="18">
  2337. <connections>
  2338. <connection dir_in="0" dir_out="1" pos="0" uuid="fbb20cf5-67c7-4aa0-b1ff-b3dcf45e849f" wire="19" />
  2339. </connections>
  2340. </element>
  2341. <element content="#IN50" subtype="load" type="operand" uuid="028b4abf-9a78-4809-87b8-35d5df110946" x="1" y="21">
  2342. <connections>
  2343. <connection dir_in="0" dir_out="1" pos="0" uuid="3b807f1a-a49c-407a-b84d-8b12cab4f0a1" wire="20" />
  2344. </connections>
  2345. </element>
  2346. <element content="#IN51" subtype="load" type="operand" uuid="5ffbd494-e750-4e5e-9461-9fee9ebdb51e" x="1" y="22">
  2347. <connections>
  2348. <connection dir_in="0" dir_out="1" pos="0" uuid="6d268120-91f2-4413-8217-dc874a95eab7" wire="21" />
  2349. </connections>
  2350. </element>
  2351. <element content="#IN130" subtype="load" type="operand" uuid="54758d15-6b2d-45a8-9de8-d803b97c540e" x="6" y="16">
  2352. <connections>
  2353. <connection dir_in="0" dir_out="1" pos="0" uuid="f6bcbf26-0711-418b-99bb-2b07cd7f3dbb" wire="22" />
  2354. </connections>
  2355. </element>
  2356. <element content="#OUT0" subtype="assign" type="operand" uuid="fbd73471-d7bf-4f82-bd8f-75a35f2cb18d" x="8" y="3">
  2357. <connections>
  2358. <connection dir_in="1" dir_out="0" pos="0" uuid="45f32499-f39c-48d7-bc35-09a94ba20769" wire="23" />
  2359. </connections>
  2360. </element>
  2361. <element content="#OUT2" subtype="assign" type="operand" uuid="de63e4f6-4da5-492f-b984-a5795e82944d" x="8" y="9">
  2362. <connections>
  2363. <connection dir_in="1" dir_out="0" pos="0" uuid="cb859d27-3c63-4a9c-ba7d-f0d147f7ba9e" wire="24" />
  2364. </connections>
  2365. </element>
  2366. <element content="#OUT3" subtype="assign" type="operand" uuid="4c7fb62c-c4f5-445d-862e-e048f8902d5c" x="8" y="13">
  2367. <connections>
  2368. <connection dir_in="1" dir_out="0" pos="0" uuid="08985bf8-6cfd-4a2d-88d1-e514eef01bf7" wire="25" />
  2369. </connections>
  2370. </element>
  2371. <element content="#OUT4" subtype="assign" type="operand" uuid="bfe96d96-cce9-4ed7-a757-4ec2549352a9" x="8" y="16">
  2372. <connections>
  2373. <connection dir_in="1" dir_out="0" pos="0" uuid="b66d03e9-4f51-4db0-b54d-1d3acf268543" wire="26" />
  2374. </connections>
  2375. </element>
  2376. <element subtype="eq-int" type="compare" uuid="acb30767-d0ee-444d-a272-34f045867c1b" x="2" y="1">
  2377. <connections>
  2378. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="5539a0b6-201e-4f45-8b57-a3ac9294b7b4" wire="-1" />
  2379. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="37a33f41-4a96-45ac-96ac-88a4d8fb2d07" wire="27" />
  2380. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="ce2586a9-8763-42db-9c72-77a2cbbf1617" wire="28" />
  2381. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="74b3dc1a-f075-447e-8215-238ddf3c4b49" wire="29" />
  2382. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="6625ffdc-aa36-43cd-ad6b-675a62496afe" wire="-1" />
  2383. </connections>
  2384. </element>
  2385. </elements>
  2386. </grid>
  2387. </grids>
  2388. </FUP>
  2389. ]]></source>
  2390. <!-- FUP/FBD source code -->
  2391. <source enabled="1"
  2392. name="count_3"
  2393. type="1"><![CDATA[
  2394. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2395. <!-- Awlsim FUP/FBD source generated by awlsim-0.66.0-pre -->
  2396. <FUP version="0" zoom="1.0">
  2397. <blockdecl name='"FC_count_3"' type="FC" />
  2398. <interface allow_initvalue="0"
  2399. allow_inouts="1"
  2400. allow_inputs="1"
  2401. allow_outputs="1"
  2402. allow_retval="1"
  2403. allow_stats="0"
  2404. allow_temps="1">
  2405. <inputs>
  2406. <field name="EN0" type="BOOL" uuid="ba125357-fb0d-4c23-a549-d4904d9f45bc" />
  2407. <field name="EN1" type="BOOL" uuid="093dd0d6-bf4e-4b6b-9899-69af9a7d12f4" />
  2408. <field name="CU0" type="BOOL" uuid="9124af4d-d509-4b60-8845-a14ca292899f" />
  2409. <field name="IN0" type="BOOL" uuid="ed646a64-554d-407c-b40f-3c3506ed1830" />
  2410. </inputs>
  2411. <outputs>
  2412. <field name="OUT0" type="BOOL" uuid="18735c09-f9d0-4a84-9754-b996f2f780cd" />
  2413. </outputs>
  2414. <retval>
  2415. <field name="RET_VAL" type="VOID" uuid="15a5d25e-23ee-410a-805d-3e79d5ddc951" />
  2416. </retval>
  2417. </interface>
  2418. <grids>
  2419. <grid height="18" uuid="093e80b3-202c-43f9-ac4d-e8844ad5f4ab" width="12">
  2420. <optimizers all="1" enabled="1" type="awl" />
  2421. <wires>
  2422. <wire id="0" uuid="17fe208f-3b7b-4f28-9759-b145855235a9" />
  2423. <wire id="1" uuid="f0c6144a-f567-4286-b301-381b89716fa6" />
  2424. <wire id="2" uuid="06dce310-5410-4e64-9b98-9cee31c11d9c" />
  2425. <wire id="3" uuid="b4a36c77-a92b-4c0d-bd62-ba42a4a992b9" />
  2426. <wire id="4" uuid="7e0e038f-6621-4b17-816e-d73f4edec269" />
  2427. <wire id="5" uuid="91a6eec7-d923-4acf-af98-53dc6fe3d433" />
  2428. <wire id="6" uuid="10cf246c-d7c3-4590-a8dd-13d7a2fae294" />
  2429. </wires>
  2430. <elements>
  2431. <element subtype="and" type="boolean" uuid="5b09c8b9-bebf-4aa1-845d-cc18a524949a" x="2" y="3">
  2432. <connections>
  2433. <connection dir_in="1" dir_out="0" pos="0" uuid="c8d7f1bd-2f24-4f8a-a6d6-cf9c599a1f60" wire="0" />
  2434. <connection dir_in="1" dir_out="0" pos="1" uuid="890f561f-6460-4b4f-bf86-ced057e52f00" wire="1" />
  2435. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="201cdba8-de7d-402d-91af-8b7a7a936f13" wire="4" />
  2436. </connections>
  2437. </element>
  2438. <element subtype="and" type="boolean" uuid="ef6407d5-fd9c-4184-a536-eeb90809b246" x="6" y="9">
  2439. <connections>
  2440. <connection dir_in="1" dir_out="0" pos="0" uuid="a67c7580-87f0-4f0b-a5cc-dbbcd6b21897" wire="5" />
  2441. <connection dir_in="1" dir_out="0" pos="1" uuid="5f573b66-aafc-4e7c-9a57-d8cceeaf4e01" wire="2" />
  2442. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="43bbb825-7c0e-44da-a263-654092d87beb" wire="3" />
  2443. </connections>
  2444. </element>
  2445. <element content="#EN0" subtype="load" type="operand" uuid="d183d5d9-b4cf-4dd3-865b-0f4c0fb426d5" x="1" y="3">
  2446. <connections>
  2447. <connection dir_in="0" dir_out="1" pos="0" uuid="92a99b28-f086-4264-a09c-94aac2481682" wire="0" />
  2448. </connections>
  2449. </element>
  2450. <element content="#EN1" subtype="load" type="operand" uuid="05f0c25b-2a84-457b-a475-820f85d55892" x="1" y="4">
  2451. <connections>
  2452. <connection dir_in="0" dir_out="1" pos="0" uuid="5ba1fb22-bcea-4651-abf5-09580d48110f" wire="1" />
  2453. </connections>
  2454. </element>
  2455. <element content="#IN0" subtype="load" type="operand" uuid="1ec623b3-f549-4f50-8e5f-336b4077903c" x="5" y="10">
  2456. <connections>
  2457. <connection dir_in="0" dir_out="1" pos="0" uuid="013d078e-e7f5-4ac4-911c-a69dde42a9b4" wire="2" />
  2458. </connections>
  2459. </element>
  2460. <element content="#OUT0" subtype="assign" type="operand" uuid="a3cc76d0-cc82-495c-8f17-467f47821412" x="7" y="10">
  2461. <connections>
  2462. <connection dir_in="1" dir_out="0" pos="0" uuid="f3089a1a-a3b9-4230-8688-c8fd2fa9cc5a" wire="3" />
  2463. </connections>
  2464. </element>
  2465. <element subtype="cud" type="counter" uuid="6b46fe6c-e87a-4bdd-a09f-093635fdacae" x="4" y="2">
  2466. <connections>
  2467. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="0dcf5321-d4e5-40f6-a6ca-45e491c618c4" wire="4" />
  2468. <connection dir_in="1" dir_out="0" pos="1" text="CU" uuid="9d66a5fa-45cb-4cf4-93e1-125e49baa0fc" wire="6" />
  2469. <connection dir_in="1" dir_out="0" pos="2" text="CD" uuid="6358a1be-c5ca-4ae2-b7af-6a16e37d9bce" wire="-1" />
  2470. <connection dir_in="1" dir_out="0" pos="3" text="S" uuid="d5179b03-a89d-422d-b769-4e72419bc5b4" wire="-1" />
  2471. <connection dir_in="1" dir_out="0" pos="4" text="PV" uuid="d08103bf-efcc-4171-a427-cb7f1b78fabb" wire="-1" />
  2472. <connection dir_in="1" dir_out="0" pos="5" text="R" uuid="b383168f-73cd-487d-9dd6-77d00a3fdb36" wire="-1" />
  2473. <connection dir_in="0" dir_out="1" pos="0" text="CV" uuid="1a6adcef-d390-4a64-bf71-9f7b54f064f9" wire="-1" />
  2474. <connection dir_in="0" dir_out="1" pos="1" text="CVB" uuid="6a5ebca8-bbbc-4a12-88c8-41158e27abfe" wire="-1" />
  2475. <connection dir_in="0" dir_out="1" pos="2" text="Q" uuid="35b864f3-6045-4f3f-bdb9-f9098144ed05" wire="-1" />
  2476. <connection dir_in="0" dir_out="1" pos="3" text="ENO" uuid="bdffec0a-0046-4e2a-9eb6-1815d667ac61" wire="5" />
  2477. </connections>
  2478. <subelements>
  2479. <element content="Z 0" subtype="embedded" type="operand" uuid="094a1051-c853-4b1a-82a2-bbe6ef668ac1" x="0" y="0" />
  2480. </subelements>
  2481. </element>
  2482. <element content="#CU0" subtype="load" type="operand" uuid="b5bde61f-4dfc-457f-b354-0775b74e87b0" x="3" y="5">
  2483. <connections>
  2484. <connection dir_in="0" dir_out="1" pos="0" uuid="c5841dc9-2df9-4365-8f82-7a3801f5e3b9" wire="6" />
  2485. </connections>
  2486. </element>
  2487. </elements>
  2488. </grid>
  2489. </grids>
  2490. </FUP>
  2491. ]]></source>
  2492. <!-- FUP/FBD source code -->
  2493. <source enabled="1"
  2494. name="count_4"
  2495. type="1"><![CDATA[
  2496. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2497. <!-- Awlsim FUP/FBD source generated by awlsim-0.66.0-pre -->
  2498. <FUP version="0" zoom="1.0">
  2499. <blockdecl name='"FC_count_4"' type="FC" />
  2500. <interface allow_initvalue="0"
  2501. allow_inouts="1"
  2502. allow_inputs="1"
  2503. allow_outputs="1"
  2504. allow_retval="1"
  2505. allow_stats="0"
  2506. allow_temps="1">
  2507. <inputs>
  2508. <field name="CU0" type="BOOL" uuid="1e856e48-1c98-430d-ab2e-a984c15985eb" />
  2509. <field name="CD0" type="BOOL" uuid="5ff917de-8ef6-443f-8bcb-2325d1b9357a" />
  2510. <field name="CU1" type="BOOL" uuid="8277fa55-6197-40c6-80d4-4656df8c2a3f" />
  2511. <field name="CD1" type="BOOL" uuid="bdbd19c1-fc07-42c7-8999-a5f44a3ae766" />
  2512. </inputs>
  2513. <outputs>
  2514. <field name="OUT2" type="BOOL" uuid="02d2fb62-2742-4158-809a-49bdf7e46958" />
  2515. </outputs>
  2516. <retval>
  2517. <field name="RET_VAL" type="VOID" uuid="6de28201-657e-4e4f-9084-31260718f190" />
  2518. </retval>
  2519. </interface>
  2520. <grids>
  2521. <grid height="23" uuid="47695b8f-1a9d-4860-8769-36cd0c1db0f5" width="12">
  2522. <optimizers all="1" enabled="1" type="awl" />
  2523. <wires>
  2524. <wire id="0" uuid="1e9c20d8-0e5f-4053-88fd-24002220ae7b" />
  2525. <wire id="1" uuid="0cab7aae-62ff-4aa2-b13c-db7a112caa16" />
  2526. <wire id="2" uuid="5276e664-e9d7-4aa3-b572-8190510feaf2" />
  2527. <wire id="3" uuid="0f0a078e-780b-4624-a79e-fa6432fb6107" />
  2528. <wire id="4" uuid="9e5eb5bf-390d-4a3e-b374-5d69cf7f022e" />
  2529. <wire id="5" uuid="626dd793-4045-4be8-8f5b-e8e158be61ec" />
  2530. <wire id="6" uuid="318c557f-9134-43c0-a27e-f910131805c9" />
  2531. </wires>
  2532. <elements>
  2533. <element subtype="or" type="boolean" uuid="c2eff5e8-4d5c-4452-b598-04249e177c42" x="4" y="10">
  2534. <connections>
  2535. <connection dir_in="1" dir_out="0" pos="0" uuid="ef4b64cd-f6c8-493f-aa50-0bb7241cf363" wire="1" />
  2536. <connection dir_in="1" dir_out="0" pos="1" uuid="41723a99-3c9b-4b3a-9567-dcfc0c697627" wire="2" />
  2537. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="1fd4f3d0-561f-430e-aaaf-de0537ffe095" wire="0" />
  2538. </connections>
  2539. </element>
  2540. <element content="#OUT2" subtype="assign" type="operand" uuid="a128700d-7cd3-43f8-8810-ef113324f3ee" x="5" y="11">
  2541. <connections>
  2542. <connection dir_in="1" dir_out="0" pos="0" uuid="6147c227-19af-42a7-ab86-e8d79dcede74" wire="0" />
  2543. </connections>
  2544. </element>
  2545. <element subtype="cud" type="counter" uuid="9c97904b-216b-48fe-ae04-cb6ba1567a54" x="2" y="2">
  2546. <connections>
  2547. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="a344ee59-ea82-4ab6-93b2-64ebd3565fe2" wire="-1" />
  2548. <connection dir_in="1" dir_out="0" pos="1" text="CU" uuid="8f6a0c71-8cbd-4779-b289-7e0fbc76d1bc" wire="3" />
  2549. <connection dir_in="1" dir_out="0" pos="2" text="CD" uuid="31c38f2b-5265-4a65-9ea8-e90eb3dad153" wire="5" />
  2550. <connection dir_in="1" dir_out="0" pos="3" text="S" uuid="b00de621-c17b-4c9c-a6d6-fa3d5f8e2429" wire="-1" />
  2551. <connection dir_in="1" dir_out="0" pos="4" text="PV" uuid="1a9e7b45-0c33-4b3f-a064-7a8aaa2b3e7c" wire="-1" />
  2552. <connection dir_in="1" dir_out="0" pos="5" text="R" uuid="c74ff796-7419-4e17-8c41-b2eb6aa1fb10" wire="-1" />
  2553. <connection dir_in="0" dir_out="1" pos="0" text="CV" uuid="e7a128a7-af91-45d2-8f2e-b2511b6ad747" wire="-1" />
  2554. <connection dir_in="0" dir_out="1" pos="1" text="CVB" uuid="48f2ce4a-3132-440c-b374-b315ef2cf8b6" wire="-1" />
  2555. <connection dir_in="0" dir_out="1" pos="2" text="Q" uuid="eaac3b5d-5f57-47fc-8abf-91da8d95feac" wire="1" />
  2556. <connection dir_in="0" dir_out="1" pos="3" text="ENO" uuid="09daf154-63c7-49e3-8445-bbe161674bdb" wire="-1" />
  2557. </connections>
  2558. <subelements>
  2559. <element content="Z 0" subtype="embedded" type="operand" uuid="8c36b0c1-02d7-4c40-86f6-6bebac628911" x="0" y="0" />
  2560. </subelements>
  2561. </element>
  2562. <element subtype="cud" type="counter" uuid="d2ca2071-6528-4a06-b7c8-9e3523b7dd86" x="2" y="11">
  2563. <connections>
  2564. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="94025a48-2c37-4d73-983b-770c2432abd7" wire="-1" />
  2565. <connection dir_in="1" dir_out="0" pos="1" text="CU" uuid="7cf6c32e-e5fa-447a-b2d8-7e0ced2d347b" wire="4" />
  2566. <connection dir_in="1" dir_out="0" pos="2" text="CD" uuid="d2ecaca1-1bbb-494a-b4ab-a8bc8eb19f84" wire="6" />
  2567. <connection dir_in="1" dir_out="0" pos="3" text="S" uuid="d55fcdfe-5b31-41be-b768-cf08153bf1c0" wire="-1" />
  2568. <connection dir_in="1" dir_out="0" pos="4" text="PV" uuid="793a65a2-80e5-426b-b27c-201d3d321997" wire="-1" />
  2569. <connection dir_in="1" dir_out="0" pos="5" text="R" uuid="ae5ad73b-b983-4cde-ac3f-bfa05b6d7d14" wire="-1" />
  2570. <connection dir_in="0" dir_out="1" pos="0" text="CV" uuid="377aed68-cda7-4cac-b9ca-a809daf8cc82" wire="-1" />
  2571. <connection dir_in="0" dir_out="1" pos="1" text="CVB" uuid="2b60d8d5-6c70-433b-8c87-0ffcf5d583c4" wire="-1" />
  2572. <connection dir_in="0" dir_out="1" pos="2" text="Q" uuid="5cabcf48-81db-4ba8-a40f-720d69852678" wire="2" />
  2573. <connection dir_in="0" dir_out="1" pos="3" text="ENO" uuid="02d4b951-e664-4c6c-809f-f6c726d4c1e9" wire="-1" />
  2574. </connections>
  2575. <subelements>
  2576. <element content="Z 1" subtype="embedded" type="operand" uuid="8c36b0c1-02d7-4c40-86f6-6bebac628911" x="0" y="0" />
  2577. </subelements>
  2578. </element>
  2579. <element content="#CU0" subtype="load" type="operand" uuid="07f3d41d-f84a-4988-939c-67dab12895f7" x="1" y="5">
  2580. <connections>
  2581. <connection dir_in="0" dir_out="1" pos="0" uuid="6993e7dc-9652-401a-acb5-c2bf11b3c556" wire="3" />
  2582. </connections>
  2583. </element>
  2584. <element content="#CU1" subtype="load" type="operand" uuid="cf87ddfd-b2f2-4b73-ad2d-0c1be6a10d26" x="1" y="14">
  2585. <connections>
  2586. <connection dir_in="0" dir_out="1" pos="0" uuid="e47470df-cce9-49b5-bbd2-c36e1ad473ec" wire="4" />
  2587. </connections>
  2588. </element>
  2589. <element content="#CD0" subtype="load" type="operand" uuid="369a3513-281b-4fbe-8bf6-5e59c1677129" x="1" y="6">
  2590. <connections>
  2591. <connection dir_in="0" dir_out="1" pos="0" uuid="ca36c97b-ee99-4d32-9eac-bc05577a0103" wire="5" />
  2592. </connections>
  2593. </element>
  2594. <element content="#CD1" subtype="load" type="operand" uuid="149666de-e128-4425-b7f9-8043b4428403" x="1" y="15">
  2595. <connections>
  2596. <connection dir_in="0" dir_out="1" pos="0" uuid="8dbad41b-6d72-4dd1-a48e-75b53d38d30e" wire="6" />
  2597. </connections>
  2598. </element>
  2599. </elements>
  2600. </grid>
  2601. </grids>
  2602. </FUP>
  2603. ]]></source>
  2604. </language_fup>
  2605. <!-- Symbol table configuration -->
  2606. <symbols>
  2607. <!-- symbol table source code -->
  2608. <source enabled="1"
  2609. name="Main table"
  2610. type="3"><![CDATA[
  2611. 126,FC_count_0 FC 10 FC 10
  2612. 126,FC_TEST_count_0 FC 11 FC 11
  2613. 126,FC_count_1 FC 20 FC 20
  2614. 126,FC_TEST_count_1 FC 21 FC 21
  2615. 126,FC_count_2 FC 30 FC 30
  2616. 126,FC_TEST_count_2 FC 31 FC 31
  2617. 126,FC_count_3 FC 40 FC 40
  2618. 126,FC_TEST_count_3 FC 41 FC 41
  2619. 126,FC_count_4 FC 50 FC 50
  2620. 126,FC_TEST_count_4 FC 51 FC 51
  2621. ]]></source>
  2622. </symbols>
  2623. <!-- Core server link configuration -->
  2624. <core_link>
  2625. <!-- Locally spawned core server -->
  2626. <spawn_local enable="1"
  2627. interpreters="$DEFAULT"
  2628. port_range_begin="4183"
  2629. port_range_end="8278" />
  2630. <!-- Remote server connection -->
  2631. <connect host="localhost"
  2632. port="4151"
  2633. timeout_ms="3000" />
  2634. <!-- Transport tunnel -->
  2635. <tunnel local_port="-1"
  2636. type="0">
  2637. <ssh executable="ssh"
  2638. port="22"
  2639. user="pi" />
  2640. </tunnel>
  2641. </core_link>
  2642. <!-- Graphical user interface configuration -->
  2643. <gui>
  2644. <editor autoindent="1"
  2645. paste_autoindent="1"
  2646. validation="1" />
  2647. </gui>
  2648. </awlsim_project>