raspberrypi-pixtend.awlpro 72 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <!-- Awlsim project file generated by awlsim-0.72.0-pre -->
  3. <awlsim_project date_create="2018-01-28 13:13:18.830042"
  4. date_modify="2020-02-22 15:04:58.421892"
  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="0"
  20. cycle_time_limit_us="1000000"
  21. cycle_time_target_us="0"
  22. ext_insns_enable="0"
  23. mnemonics="2"
  24. ob_startinfo_enable="0"
  25. run_time_limit_us="-1" />
  26. </cpu>
  27. <!-- AWL/STL language configuration -->
  28. <language_awl>
  29. <!-- AWL/STL source code -->
  30. <source enabled="1"
  31. name="OB 1"
  32. type="0"><![CDATA[
  33. ORGANIZATION_BLOCK OB 1
  34. VAR_TEMP
  35. OB1_EV_CLASS : BYTE; // Bits 0-3 = 1 (Coming event), Bits 4-7 = 1 (Event class 1)
  36. OB1_SCAN_1 : BYTE; // 1 (Cold restart scan 1 of OB 1), 3 (Scan 2-n of OB 1)
  37. OB1_PRIORITY : BYTE; // Priority of OB execution
  38. OB1_OB_NUMBR : BYTE; // 1 (Organization block 1, OB 1)
  39. OB1_RESERVED_1 : BYTE;
  40. OB1_RESERVED_2 : BYTE;
  41. OB1_PREV_CYCLE : INT; // Cycle time of previous OB 1 scan (milliseconds)
  42. OB1_MIN_CYCLE : INT; // Minimum cycle time of OB 1 (milliseconds)
  43. OB1_MAX_CYCLE : INT; // Maximum cycle time of OB 1 (milliseconds)
  44. OB1_DATE_TIME : DATE_AND_TIME; // Date and time OB 1 started
  45. END_VAR
  46. BEGIN
  47. CALL "FC_DigitalOut"
  48. CALL "FC_Relays"
  49. CALL "FC_GPIOs"
  50. CALL "FC_TempHum"
  51. CALL "FC_PWM"
  52. CALL "FC_analog"
  53. END_ORGANIZATION_BLOCK
  54. ]]></source>
  55. </language_awl>
  56. <!-- FUP/FBD language configuration -->
  57. <language_fup>
  58. <!-- FUP/FBD source code -->
  59. <source enabled="1"
  60. name="Digital outputs"
  61. type="1"><![CDATA[
  62. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  63. <!-- Awlsim FUP/FBD source generated by awlsim-0.72.0-pre -->
  64. <FUP version="0" zoom="1.0">
  65. <blockdecl name='"FC_DigitalOut"' type="FC" />
  66. <interface allow_initvalue="0"
  67. allow_inouts="1"
  68. allow_inputs="1"
  69. allow_outputs="1"
  70. allow_retval="1"
  71. allow_stats="0"
  72. allow_temps="1">
  73. <retval>
  74. <field name="RET_VAL" type="VOID" uuid="af73b059-9d86-40eb-817a-4b0e39d142d8" />
  75. </retval>
  76. </interface>
  77. <grids>
  78. <grid height="19" uuid="41aede88-7467-4205-9611-9f2626543ced" width="12">
  79. <optimizers all="1" enabled="1" type="awl" />
  80. <wires>
  81. <wire id="0" uuid="bae3fd2b-154b-4715-b8ac-f3a61ad13eaa" />
  82. <wire id="1" uuid="85ac7d46-7116-41b6-a39c-a10f49d55b40" />
  83. <wire id="2" uuid="94bcd5d7-69ee-4cd0-96e2-f19d639c0387" />
  84. <wire id="3" uuid="0d937f0d-d595-4a8f-9bd1-efe24863ef0c" />
  85. <wire id="4" uuid="ba003ddd-eea1-405e-92ac-1e2bcef79f5b" />
  86. <wire id="5" uuid="fe47d87f-7692-4540-aad2-48cb9d4a0bcf" />
  87. <wire id="6" uuid="e5b711e9-5a78-4421-b694-9ed1f30f8447" />
  88. <wire id="7" uuid="84130139-3c7d-47d2-8127-b45af2a7abcb" />
  89. <wire id="8" uuid="002703a1-2ddf-4f5b-93d8-d1e70efb53dd" />
  90. <wire id="9" uuid="ee495bdc-2495-427c-b056-d111f2abf66f" />
  91. <wire id="10" uuid="569e6d2e-fcf9-4d17-ac39-549eb61e04a4" />
  92. <wire id="11" uuid="c0aa56ce-5da6-490e-9c17-3089ea14ec5d" />
  93. <wire id="12" uuid="46ea5e13-3f7c-497c-8618-e0861ceb857a" />
  94. <wire id="13" uuid="f1ecd44d-d939-4324-932d-6ef2b2beb662" />
  95. </wires>
  96. <elements>
  97. <element subtype="and" type="boolean" uuid="e67e2765-81cd-49f4-a304-53e641381733" x="2" y="2">
  98. <connections>
  99. <connection dir_in="1" dir_out="0" pos="0" uuid="c73174ec-daef-4d89-88cf-16d7e2675421" wire="0" />
  100. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="89f2471d-f80d-49d2-a1c8-e7c914bc4874" wire="1" />
  101. </connections>
  102. </element>
  103. <element content='"CLK_0.2s"' subtype="load" type="operand" uuid="9a48f766-09fc-481f-86bd-e2fdb2128f9b" x="1" y="2">
  104. <connections>
  105. <connection dir_in="0" dir_out="1" pos="0" uuid="e27b9b7b-69f0-4a9c-a049-dd056f6d4302" wire="0" />
  106. </connections>
  107. </element>
  108. <element content='"DO0"' subtype="assign" type="operand" uuid="9ff92b28-ba9e-447b-b459-a35c7e3e6368" x="3" y="2">
  109. <connections>
  110. <connection dir_in="1" dir_out="0" pos="0" uuid="3cf776be-b642-4175-9332-3a30d6622199" wire="1" />
  111. </connections>
  112. </element>
  113. <element subtype="and" type="boolean" uuid="1448ee8f-d9c4-4b4d-b324-ca03bfb4c28d" x="2" y="4">
  114. <connections>
  115. <connection dir_in="1" dir_out="0" pos="0" uuid="9c51a6f1-9ca5-4935-af2a-5ac7a493aa33" wire="2" />
  116. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="f6aeaa61-154f-445d-930a-52ab4a229c97" wire="3" />
  117. </connections>
  118. </element>
  119. <element content='"CLK_0.4s"' subtype="load" type="operand" uuid="37533c7c-4233-4dd7-a427-9370a01f0072" x="1" y="4">
  120. <connections>
  121. <connection dir_in="0" dir_out="1" pos="0" uuid="df84dc46-14c2-4874-b3e5-ab7dd100133b" wire="2" />
  122. </connections>
  123. </element>
  124. <element content='"DO1"' subtype="assign" type="operand" uuid="b723207a-e418-4d65-84f5-4c37c38392ec" x="3" y="4">
  125. <connections>
  126. <connection dir_in="1" dir_out="0" pos="0" uuid="5cb8d1ce-97ba-4715-b4f7-2088c5f6fa8e" wire="3" />
  127. </connections>
  128. </element>
  129. <element subtype="and" type="boolean" uuid="9cd5a98c-c7ad-4530-b753-ab4f41a3e691" x="2" y="6">
  130. <connections>
  131. <connection dir_in="1" dir_out="0" pos="0" uuid="e1f15818-c147-43b9-9dd0-891d9f2c91a0" wire="4" />
  132. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="cd0674d3-adbe-4f71-b44d-6a85dbdaa90d" wire="5" />
  133. </connections>
  134. </element>
  135. <element subtype="and" type="boolean" uuid="88e38090-a006-4ed1-bc31-fd0f8c60785d" x="2" y="8">
  136. <connections>
  137. <connection dir_in="1" dir_out="0" pos="0" uuid="1cf5c7e4-4d87-42a1-8b39-15be2cf856af" wire="6" />
  138. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="a3fb65ff-0b79-4912-84cd-219f92253c8d" wire="7" />
  139. </connections>
  140. </element>
  141. <element content='"CLK_0.5s"' subtype="load" type="operand" uuid="46fdd3e4-828e-4813-81b7-708fe8b87612" x="1" y="6">
  142. <connections>
  143. <connection dir_in="0" dir_out="1" pos="0" uuid="64fb0431-b5b7-4355-ba89-304737e12f39" wire="4" />
  144. </connections>
  145. </element>
  146. <element content='"DO2"' subtype="assign" type="operand" uuid="4f13894d-0e5b-4c87-b071-5105147d7c6f" x="3" y="6">
  147. <connections>
  148. <connection dir_in="1" dir_out="0" pos="0" uuid="49c8a835-7ac7-430e-a822-0ad7a09004ac" wire="5" />
  149. </connections>
  150. </element>
  151. <element content='"CLK_0.8s"' subtype="load" type="operand" uuid="d1901c6a-dae2-4754-b3f5-b7b0a6b11b8e" x="1" y="8">
  152. <connections>
  153. <connection dir_in="0" dir_out="1" pos="0" uuid="8f9d7154-fc43-42c7-8cfc-7f7cfdb81553" wire="6" />
  154. </connections>
  155. </element>
  156. <element content='"DO3"' subtype="assign" type="operand" uuid="efbb4afd-cfea-4ec6-912e-a8ebbdbea7d4" x="3" y="8">
  157. <connections>
  158. <connection dir_in="1" dir_out="0" pos="0" uuid="adba80fa-747c-4621-8522-bbb0db517414" wire="7" />
  159. </connections>
  160. </element>
  161. <element subtype="and" type="boolean" uuid="cb7d2bd8-0cd6-4957-9474-6c598efee093" x="2" y="10">
  162. <connections>
  163. <connection dir_in="1" dir_out="0" pos="0" uuid="4a4ca9f1-2eb9-4683-8a15-1536f50bdf09" wire="8" />
  164. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="07dbc13e-7638-4665-9a93-d798081f0273" wire="10" />
  165. </connections>
  166. </element>
  167. <element subtype="and" type="boolean" uuid="b735d4fb-c926-4ef9-b6d9-92be512bde08" x="2" y="12">
  168. <connections>
  169. <connection dir_in="1" dir_out="0" pos="0" uuid="b6b20e10-ded9-47e7-912e-3e64ae4751d5" wire="9" />
  170. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="820de8cd-f3db-47e1-bb6e-ad9358f26336" wire="11" />
  171. </connections>
  172. </element>
  173. <element content='"CLK_1.0s"' subtype="load" type="operand" uuid="07146f16-15cf-4421-959d-5f5ba77b9f70" x="1" y="10">
  174. <connections>
  175. <connection dir_in="0" dir_out="1" pos="0" uuid="e3dd35cb-6560-4bbc-947b-c7730bfb30a5" wire="8" />
  176. </connections>
  177. </element>
  178. <element content='"CLK_1.6s"' subtype="load" type="operand" uuid="f3f9540b-735e-4bc1-a4de-55c46cc9a9bb" x="1" y="12">
  179. <connections>
  180. <connection dir_in="0" dir_out="1" pos="0" uuid="167b1fcb-f024-45bb-8376-23610b3ef759" wire="9" />
  181. </connections>
  182. </element>
  183. <element content='"DO3"' subtype="assign" type="operand" uuid="f1633f60-0232-480b-b9fc-6ae315b13871" x="3" y="10">
  184. <connections>
  185. <connection dir_in="1" dir_out="0" pos="0" uuid="e204d3aa-74fd-4cda-b4bc-44a6fa8d22d6" wire="10" />
  186. </connections>
  187. </element>
  188. <element content='"DO4"' subtype="assign" type="operand" uuid="ae70d91d-ea67-47ff-ae01-e3bb7335fd83" x="3" y="12">
  189. <connections>
  190. <connection dir_in="1" dir_out="0" pos="0" uuid="115da31a-735a-4fab-b86e-c602cd552046" wire="11" />
  191. </connections>
  192. </element>
  193. <element subtype="and" type="boolean" uuid="1ed3307c-8809-4f02-847d-d7bfb47fe0c5" x="2" y="14">
  194. <connections>
  195. <connection dir_in="1" dir_out="0" pos="0" uuid="c9d60223-87c5-4f83-8891-e77d2e33063c" wire="12" />
  196. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="bd9a6b69-f5d5-4311-86ea-9c251538e209" wire="13" />
  197. </connections>
  198. </element>
  199. <element content='"CLK_2.0s"' subtype="load" type="operand" uuid="0385d2e1-e0ca-4e74-b3e2-89cd162487c6" x="1" y="14">
  200. <connections>
  201. <connection dir_in="0" dir_out="1" pos="0" uuid="3408d50b-a2e3-4957-a0ba-95396864201a" wire="12" />
  202. </connections>
  203. </element>
  204. <element content='"DO5"' subtype="assign" type="operand" uuid="56dac5a9-8d05-4c49-a61c-0d8c137fb260" x="3" y="14">
  205. <connections>
  206. <connection dir_in="1" dir_out="0" pos="0" uuid="fa3546c7-cad8-4164-b72f-339f9684067e" wire="13" />
  207. </connections>
  208. </element>
  209. </elements>
  210. </grid>
  211. </grids>
  212. </FUP>
  213. ]]></source>
  214. <!-- FUP/FBD source code -->
  215. <source enabled="1"
  216. name="Relays"
  217. type="1"><![CDATA[
  218. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  219. <!-- Awlsim FUP/FBD source generated by awlsim-0.72.0-pre -->
  220. <FUP version="0" zoom="1.0">
  221. <blockdecl name='"FC_Relays"' type="FC" />
  222. <interface allow_initvalue="0"
  223. allow_inouts="1"
  224. allow_inputs="1"
  225. allow_outputs="1"
  226. allow_retval="1"
  227. allow_stats="0"
  228. allow_temps="1">
  229. <temps>
  230. <field name="TEMP0" type="BOOL" uuid="53f4ac72-b455-47b2-b03a-fbf4056126d1" />
  231. </temps>
  232. <retval>
  233. <field name="RET_VAL" type="VOID" uuid="7d13d645-4359-49ae-a1ce-c8c93b92920a" />
  234. </retval>
  235. </interface>
  236. <grids>
  237. <grid height="42" uuid="da20eaac-4224-4198-8335-27759f4efdfe" width="12">
  238. <optimizers all="1" enabled="1" type="awl" />
  239. <wires>
  240. <wire id="0" uuid="512f9aaf-4f7d-41d0-a1a8-c3d798d3f86b" />
  241. <wire id="1" uuid="1b209941-25bc-4123-a7dc-e47b755ecaa2" />
  242. <wire id="2" uuid="f5bd5c86-9cb3-4db6-9d0d-6556ae549b71" />
  243. <wire id="3" uuid="ad1b272e-e86b-4f01-993a-1e5daefda7a3" />
  244. <wire id="4" uuid="5234ce1f-d644-4aa2-9471-aec8c90b35a8" />
  245. <wire id="5" uuid="4bbfa9a9-15ce-4156-a46b-6dc03cddc5b8" />
  246. <wire id="6" uuid="d2173b16-b929-408b-946d-2774e4d4500a" />
  247. <wire id="7" uuid="787ec0a0-d036-461a-b882-4ac95dc0b112" />
  248. <wire id="8" uuid="630f12db-0e78-46a3-bf05-037e3f9f8b81" />
  249. <wire id="9" uuid="0e5b2c96-88cb-4112-b1da-5f545558db58" />
  250. <wire id="10" uuid="823cec34-4340-44fe-be9f-80812fce2a73" />
  251. <wire id="11" uuid="d2df8fdb-9959-4773-b9fe-43c750bdcc27" />
  252. <wire id="12" uuid="f44b89fe-4137-4a1b-a57f-9916c5bba575" />
  253. <wire id="13" uuid="be8c216d-0d0b-4b77-a4b6-eb9942eeaf2c" />
  254. <wire id="14" uuid="a66c10da-c87f-4d26-bab1-7cbb59dbccda" />
  255. <wire id="15" uuid="c22e2208-c51c-4370-9cb3-63b80325af34" />
  256. <wire id="16" uuid="a9b98ec9-ac1d-44c6-924a-10125281e072" />
  257. <wire id="17" uuid="891773fe-e57f-4a4d-aefb-45b262bb6875" />
  258. <wire id="18" uuid="466496e0-b4bc-4f84-8402-0883e517f602" />
  259. <wire id="19" uuid="cdf11063-5ade-4a4f-82c0-64c559dfa78f" />
  260. </wires>
  261. <elements>
  262. <element subtype="and" type="boolean" uuid="9d9cfb8d-d1fd-4a86-b41f-a3951e6283c9" x="2" y="2">
  263. <connections>
  264. <connection dir_in="1" dir_out="0" pos="0" uuid="44882dd1-33e0-4848-883b-d66a35d34409" wire="0" />
  265. <connection dir_in="1" dir_out="0" pos="1" uuid="846cc196-567a-4bba-a7f3-005d7aae6687" wire="1" />
  266. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="b14eb354-55c1-4c97-a481-8e85c78412d7" wire="2" />
  267. </connections>
  268. </element>
  269. <element content='"DI0"' subtype="load" type="operand" uuid="3c744413-d0ce-4584-badd-bac01e2d3d4c" x="1" y="2">
  270. <connections>
  271. <connection dir_in="0" dir_out="1" pos="0" uuid="c8c7e401-3e85-4680-9b9b-c8f1253cf3c8" wire="0" />
  272. </connections>
  273. </element>
  274. <element content='"DI1"' subtype="load" type="operand" uuid="6dbcdc28-3a71-4823-9c90-89ab78035347" x="1" y="3">
  275. <connections>
  276. <connection dir_in="0" dir_out="1" pos="0" uuid="824280a2-1ecb-4e23-b324-a1a2415e27ad" wire="1" />
  277. </connections>
  278. </element>
  279. <element content='"relay0"' subtype="assign" type="operand" uuid="e55ad353-ba07-4b88-8c05-8ff9310908bf" x="3" y="3">
  280. <connections>
  281. <connection dir_in="1" dir_out="0" pos="0" uuid="29318a8a-3ca7-48fd-8030-345fde546045" wire="2" />
  282. </connections>
  283. </element>
  284. <element subtype="or" type="boolean" uuid="f1cb9ac1-8fa2-4668-a0ee-3929f61c89df" x="2" y="7">
  285. <connections>
  286. <connection dir_in="1" dir_out="0" pos="0" uuid="90e9b90f-cb97-446e-a68f-869601547373" wire="3" />
  287. <connection dir_in="1" dir_out="0" pos="1" uuid="ec71a47c-7a6c-4eec-8210-7a7cf3cd77bf" wire="4" />
  288. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="8e9bc94b-ba94-4311-91ee-2c044b9c4765" wire="5" />
  289. </connections>
  290. </element>
  291. <element content='"DI2"' subtype="load" type="operand" uuid="3850d3d0-0d54-46b3-ba9b-be17c49118c6" x="1" y="7">
  292. <connections>
  293. <connection dir_in="0" dir_out="1" pos="0" uuid="32342ed2-a5ae-4164-8154-62aac782e27a" wire="3" />
  294. </connections>
  295. </element>
  296. <element content='"DI3"' subtype="load" type="operand" uuid="5d2cbf2b-6d8f-4088-b3f0-0c38e9ee6600" x="1" y="8">
  297. <connections>
  298. <connection dir_in="0" dir_out="1" pos="0" uuid="8c390e34-4a8a-42d6-8204-2617bf381a8e" wire="4" />
  299. </connections>
  300. </element>
  301. <element content='"relay1"' subtype="assign" type="operand" uuid="f12d170c-12eb-4c6c-b872-0d6e25972b31" x="3" y="8">
  302. <connections>
  303. <connection dir_in="1" dir_out="0" pos="0" uuid="3ddb7621-588e-48f4-8d36-aac17473f6e4" wire="5" />
  304. </connections>
  305. </element>
  306. <element subtype="sr" type="boolean" uuid="56ecefa1-9600-436c-9013-295118b9d108" x="2" y="12">
  307. <connections>
  308. <connection dir_in="1" dir_out="0" pos="0" text="S" uuid="413afe69-7239-423a-b5b5-fe4058edf12a" wire="6" />
  309. <connection dir_in="1" dir_out="0" pos="1" text="R" uuid="8a6f2ee8-1c6a-4ed1-a86d-f0530daf8b7e" wire="7" />
  310. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="0ff40430-1a68-42a1-ab97-62b8deab18bc" wire="-1" />
  311. </connections>
  312. <subelements>
  313. <element content='"relay2"' subtype="embedded" type="operand" uuid="19173032-f68a-44fa-8488-79ed3067b1ec" x="0" y="0" />
  314. </subelements>
  315. </element>
  316. <element content='"DI4"' subtype="load" type="operand" uuid="72f36446-1626-4da0-b56e-262f61be68ab" x="1" y="13">
  317. <connections>
  318. <connection dir_in="0" dir_out="1" pos="0" uuid="e9f20565-014f-4694-8c15-278c2da76b6b" wire="6" />
  319. </connections>
  320. </element>
  321. <element content='"DI5"' subtype="load" type="operand" uuid="6c4d446b-56bb-46c3-a994-16021b658c45" x="1" y="14">
  322. <connections>
  323. <connection dir_in="0" dir_out="1" pos="0" uuid="9ebfff8d-860e-42df-8def-3fddc9c1fe51" wire="7" />
  324. </connections>
  325. </element>
  326. <element subtype="sr" type="boolean" uuid="238ae30e-4c1d-41f2-bf50-473d116a7ce0" x="8" y="26">
  327. <connections>
  328. <connection dir_in="1" dir_out="0" pos="0" text="S" uuid="cb28f54c-be7c-496e-b422-ccd1483e0464" wire="8" />
  329. <connection dir_in="1" dir_out="0" pos="1" text="R" uuid="5701019e-3319-46bc-93c4-963c16f7c1c4" wire="15" />
  330. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="e15d9f3b-1942-4635-9e4b-57839417f468" wire="-1" />
  331. </connections>
  332. <subelements>
  333. <element content='"relay3"' subtype="embedded" type="operand" uuid="03c7837b-3473-4294-a787-cccbb10421cf" x="0" y="0" />
  334. </subelements>
  335. </element>
  336. <element subtype="and" type="boolean" uuid="b18f7f4a-6c19-4ebf-a5be-dcf3d18a8243" x="6" y="26">
  337. <connections>
  338. <connection dir_in="1" dir_out="0" pos="0" uuid="5af10342-88a5-4d6a-a723-d40a775750bd" wire="19" />
  339. <connection dir_in="1" dir_out="0" inverted="1" pos="1" uuid="a8f703ef-b25f-46a8-b348-3cbd4cd63b47" wire="9" />
  340. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="b9f68df9-f9a6-4a92-9803-38c439fa9137" wire="8" />
  341. </connections>
  342. </element>
  343. <element content="#TEMP0" subtype="load" type="operand" uuid="ccd6d021-a239-4e00-9a92-cf321b0c2cf7" x="5" y="27">
  344. <connections>
  345. <connection dir_in="0" dir_out="1" pos="0" uuid="84ca6d5e-f4d0-4901-91e0-803bbaf5173b" wire="9" />
  346. </connections>
  347. </element>
  348. <element subtype="and" type="boolean" uuid="6b95f76a-b96e-46db-8b7f-d449f4948219" x="6" y="29">
  349. <connections>
  350. <connection dir_in="1" dir_out="0" pos="0" uuid="e07de9c4-a4f3-4166-bed0-e73b252e842b" wire="19" />
  351. <connection dir_in="1" dir_out="0" pos="1" uuid="73b68eab-d884-4d21-987b-b56988fc6766" wire="10" />
  352. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="83249713-abc7-4fef-a224-b852244bc488" wire="13" />
  353. </connections>
  354. </element>
  355. <element content="#TEMP0" subtype="load" type="operand" uuid="a618e28a-3602-4bc3-a91c-509c4a490fc8" x="5" y="30">
  356. <connections>
  357. <connection dir_in="0" dir_out="1" pos="0" uuid="31f2ddcc-e8fa-4a3d-b475-9cdca3fbd562" wire="10" />
  358. </connections>
  359. </element>
  360. <element subtype="and" type="boolean" uuid="c2bab99c-fb3a-4d3b-8e3f-8719377b798a" x="6" y="24">
  361. <connections>
  362. <connection dir_in="1" dir_out="0" pos="0" uuid="ca81b6e4-a318-4769-9c00-6866281d525a" wire="11" />
  363. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="3d5e1f99-24a4-4f98-8029-52adfe83bace" wire="12" />
  364. </connections>
  365. </element>
  366. <element content='"relay3"' subtype="load" type="operand" uuid="4e002e99-68a1-4442-b78f-e63b8a957c40" x="5" y="24">
  367. <connections>
  368. <connection dir_in="0" dir_out="1" pos="0" uuid="633c5192-b503-48b1-87a9-24b5ab5a73af" wire="11" />
  369. </connections>
  370. </element>
  371. <element content="#TEMP0" subtype="assign" type="operand" uuid="21ba73ef-5505-42d3-9d52-bd60b3f1f724" x="7" y="24">
  372. <connections>
  373. <connection dir_in="1" dir_out="0" pos="0" uuid="78e1df1d-5ff7-43ab-8f7c-94651bc8ab8a" wire="12" />
  374. </connections>
  375. </element>
  376. <element subtype="or" type="boolean" uuid="5ccf4da0-73a4-4bde-a037-0185b226d978" x="7" y="31">
  377. <connections>
  378. <connection dir_in="1" dir_out="0" pos="0" uuid="175b2107-acd6-4b13-9fa3-8ba09c34f4a1" wire="13" />
  379. <connection dir_in="1" dir_out="0" pos="1" uuid="4b6db221-ba63-49a9-8e8f-51701601542d" wire="14" />
  380. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="2d2a0f07-be79-4ea2-9f06-4c017849d77d" wire="15" />
  381. </connections>
  382. </element>
  383. <element content='"DI7"' subtype="load" type="operand" uuid="f5c1e65a-2855-4c53-b390-8b8b4a346d7b" x="6" y="32">
  384. <connections>
  385. <connection dir_in="0" dir_out="1" pos="0" uuid="eeb1b704-6977-412a-90f9-2d6bda62a492" wire="14" />
  386. </connections>
  387. </element>
  388. <element content="RELAY 0" type="comment" uuid="9f557d1a-1b27-4e09-bc2e-543aed06e2c8" x="0" y="1" />
  389. <element content="RELAY 1" type="comment" uuid="db9a2443-da2b-435e-8ee8-28de2161650d" x="0" y="6" />
  390. <element content="RELAY 2" type="comment" uuid="90223d16-204c-4d7d-b994-a34fe669903f" x="0" y="11" />
  391. <element content="RELAY 3" type="comment" uuid="618a5ec2-2b44-4607-92d6-2acd078526e0" x="0" y="17" />
  392. <element subtype="r" type="boolean" uuid="d2ef981f-c166-4891-8861-9770782df381" x="7" y="34">
  393. <connections>
  394. <connection dir_in="1" dir_out="0" pos="0" text="R" uuid="c197d464-36c3-4dbc-94de-8920c7c1034c" wire="14" />
  395. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="96b091f9-2099-4530-a16c-48219ae3882a" wire="-1" />
  396. </connections>
  397. <subelements>
  398. <element content='"Relay3_timer"' subtype="embedded" type="operand" uuid="49d35ed5-ee8a-4439-b2cf-59c4b06a65cd" x="0" y="0" />
  399. </subelements>
  400. </element>
  401. <element subtype="r" type="boolean" uuid="d52cd071-04ea-4402-8da7-a24fc834420e" x="7" y="36">
  402. <connections>
  403. <connection dir_in="1" dir_out="0" pos="0" text="R" uuid="598d1986-88b2-40ee-8e38-9b1ce6de9137" wire="14" />
  404. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="5c47c0ca-b2ca-4829-b660-f6d5435dc459" wire="-1" />
  405. </connections>
  406. <subelements>
  407. <element content='"Relay3_timer_state"' subtype="embedded" type="operand" uuid="49d35ed5-ee8a-4439-b2cf-59c4b06a65cd" x="0" y="0" />
  408. </subelements>
  409. </element>
  410. <element subtype="sv" type="timer" uuid="bb70f52e-b588-4a59-8a13-b2e1b3a5d1c0" x="2" y="18">
  411. <connections>
  412. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="e70a84cf-5bd4-4dc7-951c-31f109ed5306" wire="-1" />
  413. <connection dir_in="1" dir_out="0" pos="1" text="S" uuid="2b53c388-7b15-46ef-bad1-a1e396b137f7" wire="17" />
  414. <connection dir_in="1" dir_out="0" pos="2" text="TV" uuid="bb4eb62b-cdbb-4ea1-b6b9-ab4ae7faf496" wire="16" />
  415. <connection dir_in="1" dir_out="0" pos="3" text="R" uuid="f2025b12-f95d-406e-a12f-28d0fec644d5" wire="-1" />
  416. <connection dir_in="0" dir_out="1" pos="0" text="BIN" uuid="861c8fec-fb4a-4eb8-bcb6-190046e8c26c" wire="-1" />
  417. <connection dir_in="0" dir_out="1" pos="1" text="BCD" uuid="e83fdfc6-e173-4559-8491-da220027ee25" wire="-1" />
  418. <connection dir_in="0" dir_out="1" pos="2" text="Q" uuid="6c5679c5-8db9-4a1d-8e39-7c3d9f567a8c" wire="18" />
  419. <connection dir_in="0" dir_out="1" pos="3" text="ENO" uuid="37f2ec49-bf2f-43a7-ba7e-3daa12ad200e" wire="-1" />
  420. </connections>
  421. <subelements>
  422. <element content='"Relay3_timer"' subtype="embedded" type="operand" uuid="4683d181-4120-48f6-890d-edfdd2434d70" x="0" y="0" />
  423. </subelements>
  424. </element>
  425. <element content="S5T#5s" subtype="load" type="operand" uuid="de679936-9388-4bcd-be3b-b3304ce8f3b5" x="1" y="22">
  426. <connections>
  427. <connection dir_in="0" dir_out="1" pos="0" uuid="826e03ad-7130-4a43-9ab8-497aa33a1c96" wire="16" />
  428. </connections>
  429. </element>
  430. <element content='"Relay3_timer_state"' subtype="load" type="operand" uuid="ece1ebd8-dac3-484e-b002-045d844b1293" x="1" y="21">
  431. <connections>
  432. <connection dir_in="0" dir_out="1" pos="0" uuid="54f48ccb-f89f-47e7-8bf6-9aef6243fbae" wire="17" />
  433. </connections>
  434. </element>
  435. <element content='"Relay3_timer_state"' subtype="assign" type="operand" uuid="bcb2f687-22a4-4e49-888d-4d6fe1be4244" x="4" y="22">
  436. <connections>
  437. <connection dir_in="1" dir_out="0" pos="0" uuid="fe8ab434-f26a-4c44-99b5-b0708a43e3c3" wire="19" />
  438. </connections>
  439. </element>
  440. <element subtype="and" type="boolean" uuid="abf3e219-bca8-4db4-b728-837f0b28f8ec" x="3" y="22">
  441. <connections>
  442. <connection dir_in="1" dir_out="0" pos="0" uuid="0bb5236c-0135-407b-bd33-27d6b5710663" wire="18" />
  443. <connection dir_in="0" dir_out="1" inverted="1" pos="0" text="Q" uuid="1df7e2e7-6b30-4ce4-bd8d-d8b483251db0" wire="19" />
  444. </connections>
  445. </element>
  446. </elements>
  447. </grid>
  448. </grids>
  449. </FUP>
  450. ]]></source>
  451. <!-- FUP/FBD source code -->
  452. <source enabled="1"
  453. name="GPIOs"
  454. type="1"><![CDATA[
  455. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  456. <!-- Awlsim FUP/FBD source generated by awlsim-0.72.0-pre -->
  457. <FUP version="0" zoom="1.0">
  458. <blockdecl name='"FC_GPIOs"' type="FC" />
  459. <interface allow_initvalue="0"
  460. allow_inouts="1"
  461. allow_inputs="1"
  462. allow_outputs="1"
  463. allow_retval="1"
  464. allow_stats="0"
  465. allow_temps="1">
  466. <retval>
  467. <field name="RET_VAL" type="VOID" uuid="2bc007b2-cf6e-45fb-bc10-3335571f7926" />
  468. </retval>
  469. </interface>
  470. <grids>
  471. <grid height="18" uuid="390c5641-cf69-4976-ba07-c13187f52ec0" width="12">
  472. <optimizers all="1" enabled="1" type="awl" />
  473. <wires>
  474. <wire id="0" uuid="5111923e-1f11-4273-bd6e-656f5844871d" />
  475. <wire id="1" uuid="a7eff708-37b8-435b-a4b8-20908f3171ff" />
  476. </wires>
  477. <elements>
  478. <element content='"gpio1"' subtype="assign" type="operand" uuid="1cd65479-9f89-437a-8de4-cdfcf4531248" x="3" y="4">
  479. <connections>
  480. <connection dir_in="1" dir_out="0" pos="0" uuid="fc54951e-b8ba-4b2d-b8d0-5dd48490f7fe" wire="1" />
  481. </connections>
  482. </element>
  483. <element content='"gpio0"' subtype="load" type="operand" uuid="d9b91d9c-73f8-4ade-a4b7-677fce7a0743" x="1" y="4">
  484. <connections>
  485. <connection dir_in="0" dir_out="1" pos="0" uuid="6dd7a07f-8616-435d-9498-0141beda9375" wire="0" />
  486. </connections>
  487. </element>
  488. <element subtype="and" type="boolean" uuid="b809c962-5fb5-4ab6-98f4-3d7c2db7fa2c" x="2" y="4">
  489. <connections>
  490. <connection dir_in="1" dir_out="0" pos="0" uuid="6559cd42-b567-480c-94ed-3732a294eb37" wire="0" />
  491. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="6874bb73-b63f-40f5-9269-fc0c698d5868" wire="1" />
  492. </connections>
  493. </element>
  494. <element content="GPIO0 is configured as input&#10;GPIO1 is configured as output" type="comment" uuid="3e5849ee-c666-48f6-8f9a-7f676d1a9774" x="2" y="2" />
  495. </elements>
  496. </grid>
  497. </grids>
  498. </FUP>
  499. ]]></source>
  500. <!-- FUP/FBD source code -->
  501. <source enabled="1"
  502. name="Temperature / humidity"
  503. type="1"><![CDATA[
  504. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  505. <!-- Awlsim FUP/FBD source generated by awlsim-0.72.0-pre -->
  506. <FUP version="0" zoom="1.0">
  507. <blockdecl name='"FC_TempHum"' type="FC" />
  508. <interface allow_initvalue="0"
  509. allow_inouts="1"
  510. allow_inputs="1"
  511. allow_outputs="1"
  512. allow_retval="1"
  513. allow_stats="0"
  514. allow_temps="1">
  515. <retval>
  516. <field name="RET_VAL" type="VOID" uuid="44533fc5-c215-4c8a-bec0-e3b3df797a7f" />
  517. </retval>
  518. </interface>
  519. <grids>
  520. <grid height="22" uuid="f7024b93-f6d8-48ca-b229-202f37377f9a" width="12">
  521. <optimizers all="1" enabled="1" type="awl" />
  522. <wires>
  523. <wire id="0" uuid="2b49f7e8-f52f-4065-9c44-e2f47c48743f" />
  524. <wire id="1" uuid="a0c1e251-4617-4073-a3aa-a93086ed8a8f" />
  525. <wire id="2" uuid="cda21aa0-534f-43c0-9f87-db14607239fc" />
  526. <wire id="3" uuid="59fc071a-b93c-4e70-a7b4-4dd1976721f0" />
  527. <wire id="4" uuid="0b262bc4-b191-48f7-96cb-77aeda8a9df7" />
  528. <wire id="5" uuid="cfeb2b24-778b-493a-8438-75c4dd0191e2" />
  529. <wire id="6" uuid="6ca2bfc1-8865-4155-92d7-10037ea2945a" />
  530. <wire id="7" uuid="7ca78b01-b044-4353-be57-cd4b5b37320f" />
  531. <wire id="8" uuid="0e57b8ee-1cd9-4bea-b900-609530765df0" />
  532. <wire id="9" uuid="6cda3a4f-a8ff-4860-a851-c041f158d3e3" />
  533. <wire id="10" uuid="5646e840-a6e3-45e2-9e9d-2efe07c739f1" />
  534. <wire id="11" uuid="f5288b42-5501-4601-85bf-4d4a3be5df88" />
  535. </wires>
  536. <elements>
  537. <element subtype="gt-int" type="compare" uuid="a84b65bf-8a23-46e5-9525-adff5c713885" x="2" y="11">
  538. <connections>
  539. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="479cbc30-759f-4f3b-9aec-1b348595837f" wire="-1" />
  540. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="1673aed6-b8b0-4c67-8eb2-50ebd7259866" wire="0" />
  541. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="0b251d6e-00fe-4f5c-9d5e-9db6542b0878" wire="1" />
  542. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="863153d6-8c5e-490e-a62f-5ba2273d7b4a" wire="2" />
  543. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="ed3b34f1-c3e2-4478-92c4-bf471716bf36" wire="-1" />
  544. </connections>
  545. </element>
  546. <element content='"DHT22_temperature"' subtype="load" type="operand" uuid="676373b0-037e-4f0a-a6d8-46eee2d0c528" x="1" y="12">
  547. <connections>
  548. <connection dir_in="0" dir_out="1" pos="0" uuid="fdcfcdf6-6d58-436f-a98a-4a24582ec9b7" wire="0" />
  549. </connections>
  550. </element>
  551. <element content="200" subtype="load" type="operand" uuid="8d6a82f2-267a-457c-9c93-b6e11b0bb9aa" x="1" y="13">
  552. <connections>
  553. <connection dir_in="0" dir_out="1" pos="0" uuid="81893445-8189-4f78-a93d-837b599b75cb" wire="1" />
  554. </connections>
  555. </element>
  556. <element content='"dht22_over_20_degrees"' subtype="assign" type="operand" uuid="a67b73fe-7603-48c4-9dfa-0e6a737d607e" x="3" y="12">
  557. <connections>
  558. <connection dir_in="1" dir_out="0" pos="0" uuid="dd457085-6b1e-423b-bae5-33b26b68e7c3" wire="2" />
  559. </connections>
  560. </element>
  561. <element subtype="gt-int" type="compare" uuid="4d451e3e-00ba-45fb-a592-e589aeb60169" x="2" y="15">
  562. <connections>
  563. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="bc75ceb3-1568-4687-b667-0304b8c88f2e" wire="-1" />
  564. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="bd23bbdd-3ff0-4e9c-b42d-33751a73541f" wire="3" />
  565. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="00e9664b-ef75-4d97-a1da-0a7ae99a0895" wire="4" />
  566. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="f580b7fa-46de-4bc5-906f-027661f74c45" wire="5" />
  567. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="a27360a5-c0b7-441a-a218-7daa67f62345" wire="-1" />
  568. </connections>
  569. </element>
  570. <element content='"DHT22_humidity"' subtype="load" type="operand" uuid="99532f09-60cb-40a2-8ea9-cf212e33d358" x="1" y="16">
  571. <connections>
  572. <connection dir_in="0" dir_out="1" pos="0" uuid="5d6c8d02-58ac-4add-9b49-63ed2762d1f2" wire="3" />
  573. </connections>
  574. </element>
  575. <element content="800" subtype="load" type="operand" uuid="c203e19b-2583-4ae3-9c8c-da0beb1bb666" x="1" y="17">
  576. <connections>
  577. <connection dir_in="0" dir_out="1" pos="0" uuid="c7444e3a-cd99-443f-bd9b-76311275e22e" wire="4" />
  578. </connections>
  579. </element>
  580. <element content='"dht22_over_80_percent"' subtype="assign" type="operand" uuid="e88a9bce-dd83-444c-a08f-1a2a751b9cd9" x="3" y="16">
  581. <connections>
  582. <connection dir_in="1" dir_out="0" pos="0" uuid="da7fd0ce-948d-425e-8903-e4bbc829d9e4" wire="5" />
  583. </connections>
  584. </element>
  585. <element subtype="gt-int" type="compare" uuid="ca14b456-f43f-4530-ae86-aeb3080562ac" x="2" y="5">
  586. <connections>
  587. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="9047cc50-5c53-4e7f-8179-874040d1b0cf" wire="-1" />
  588. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="02d3942d-d95d-40d4-9865-dbda9cc70bb2" wire="7" />
  589. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="666c6a28-0a01-48c8-9b3c-90d9c0267545" wire="9" />
  590. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="2a6e7956-5dab-4165-9c15-ecb8507a8530" wire="11" />
  591. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="cb102f9e-9f89-483c-a083-9c4f8a197deb" wire="-1" />
  592. </connections>
  593. </element>
  594. <element subtype="gt-int" type="compare" uuid="03e42e1f-0498-428c-885d-bf3b8eda6bf3" x="2" y="1">
  595. <connections>
  596. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="23deb20c-67aa-46c5-956d-da436bf954c5" wire="-1" />
  597. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="4967cb7b-1561-47cf-915c-9dc7a052c58c" wire="6" />
  598. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="c2cd879d-bec6-41e7-898a-8598d2c42040" wire="8" />
  599. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="03b6bf51-bd07-4084-bf74-4ecd7862f1f3" wire="10" />
  600. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="45d32201-bcc3-4123-b814-77aed53c76a3" wire="-1" />
  601. </connections>
  602. </element>
  603. <element content='"DHT11_temperature"' subtype="load" type="operand" uuid="490e13ac-a266-4b27-a8e5-cf9fbc24388d" x="1" y="2">
  604. <connections>
  605. <connection dir_in="0" dir_out="1" pos="0" uuid="4ea67872-0132-48b1-9f9b-5d76dc6ac8cc" wire="6" />
  606. </connections>
  607. </element>
  608. <element content='"DHT11_humidity"' subtype="load" type="operand" uuid="9fee7679-b501-4247-b4d0-7e505e0e9e89" x="1" y="6">
  609. <connections>
  610. <connection dir_in="0" dir_out="1" pos="0" uuid="db0cfbf7-213f-4e95-9990-9ca13f526998" wire="7" />
  611. </connections>
  612. </element>
  613. <element content="250" subtype="load" type="operand" uuid="109fa272-3f25-49aa-949b-b1937f29c8bd" x="1" y="3">
  614. <connections>
  615. <connection dir_in="0" dir_out="1" pos="0" uuid="b19517cb-675a-4bec-b98a-f6593d778485" wire="8" />
  616. </connections>
  617. </element>
  618. <element content="350" subtype="load" type="operand" uuid="37baf7a9-180c-4a7e-b64f-dcd13362e2ba" x="1" y="7">
  619. <connections>
  620. <connection dir_in="0" dir_out="1" pos="0" uuid="45f2c4b1-7f74-46f3-b4b8-b071221f53cd" wire="9" />
  621. </connections>
  622. </element>
  623. <element content='"dht11_over_25_degrees"' subtype="assign" type="operand" uuid="3db84de9-e9d7-4649-a467-537df59e8f75" x="3" y="2">
  624. <connections>
  625. <connection dir_in="1" dir_out="0" pos="0" uuid="dda81d36-d054-4b0b-ac18-8e9d7e022377" wire="10" />
  626. </connections>
  627. </element>
  628. <element content='"dht11_over_35_percent"' subtype="assign" type="operand" uuid="7898c510-f599-48c0-8d64-30b4b3c687b6" x="3" y="6">
  629. <connections>
  630. <connection dir_in="1" dir_out="0" pos="0" uuid="b42c5406-100d-47ff-af35-11d816c25725" wire="11" />
  631. </connections>
  632. </element>
  633. </elements>
  634. </grid>
  635. </grids>
  636. </FUP>
  637. ]]></source>
  638. <!-- FUP/FBD source code -->
  639. <source enabled="1"
  640. name="PWM"
  641. type="1"><![CDATA[
  642. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  643. <!-- Awlsim FUP/FBD source generated by awlsim-0.72.0-pre -->
  644. <FUP version="0" zoom="1.0">
  645. <blockdecl name='"FC_PWM"' type="FC" />
  646. <interface allow_initvalue="0"
  647. allow_inouts="1"
  648. allow_inputs="1"
  649. allow_outputs="1"
  650. allow_retval="1"
  651. allow_stats="0"
  652. allow_temps="1">
  653. <retval>
  654. <field name="RET_VAL" type="VOID" uuid="a88473f7-f0be-46ad-b7cc-94d6b850b75d" />
  655. </retval>
  656. </interface>
  657. <grids>
  658. <grid height="49" uuid="6a7b298e-2e1a-487d-9b5f-57a558fd5f7d" width="12">
  659. <optimizers all="1" enabled="1" type="awl" />
  660. <wires>
  661. <wire id="0" uuid="82d87c7d-5345-4df2-b6d8-a1433ca6316b" />
  662. <wire id="1" uuid="e173625c-62af-4f83-adef-de3579ee75b3" />
  663. <wire id="2" uuid="e4aafaf1-d56d-4b4a-b178-c3414a3fc3ef" />
  664. <wire id="3" uuid="1f7205bf-ad41-42ae-ad68-70b9a9bcf313" />
  665. <wire id="4" uuid="310caaef-c07d-4335-9e9c-76f004290cac" />
  666. <wire id="5" uuid="c57b3d90-2dd5-4157-a72c-e24232762852" />
  667. <wire id="6" uuid="3daf8c50-b325-4e88-b07d-f7645e018ef0" />
  668. <wire id="7" uuid="6cde1fd9-c01a-4530-a019-a1d6ef45c325" />
  669. <wire id="8" uuid="327786d5-cfe1-4cd0-936c-143ef325dc19" />
  670. <wire id="9" uuid="d6e3f79c-3709-487a-bf30-55c1f8d1c0df" />
  671. <wire id="10" uuid="b7b7d4b5-08e0-4769-baa0-4476e63674db" />
  672. <wire id="11" uuid="a5ce389d-77e8-4342-aa89-61e34beb505f" />
  673. <wire id="12" uuid="52149e5a-e628-4776-9094-14e5f1eaf68b" />
  674. <wire id="13" uuid="65b2a725-575d-4e05-91e6-a270fefda8c0" />
  675. <wire id="14" uuid="4450009e-aeae-459c-bdce-e75d7764d3d7" />
  676. <wire id="15" uuid="7bf05d0d-0922-46de-82c1-e72e2c52aa58" />
  677. <wire id="16" uuid="4918af57-73d8-4103-bcd7-d74bf693ba0d" />
  678. <wire id="17" uuid="60eb61e8-dae0-424f-87ae-1d53c0e9b105" />
  679. <wire id="18" uuid="1a93ece2-a119-402a-af70-78929cef9828" />
  680. <wire id="19" uuid="aa812043-abef-47cc-8021-1b0554bc2dc9" />
  681. <wire id="20" uuid="9a447bdd-0c14-4a9b-93d7-2e56161c5bb8" />
  682. <wire id="21" uuid="da1c4366-8a62-4a94-81c8-8f44d2201474" />
  683. <wire id="22" uuid="a1d6c1fd-8142-403c-99ab-2159b41a49a5" />
  684. <wire id="23" uuid="0f9eb26a-64df-420c-8ada-641d9b9f33e5" />
  685. <wire id="24" uuid="02c4a7b8-18d5-450f-82c4-50462da8e91c" />
  686. <wire id="25" uuid="714672c9-861d-4344-aa47-605e83b08e8d" />
  687. <wire id="26" uuid="34edde1c-4f41-4ca4-bbc7-6cce05931c5a" />
  688. <wire id="27" uuid="63c2a689-79a5-49b5-a5f7-33093a81093a" />
  689. <wire id="28" uuid="028c76f2-e348-429b-a22a-e4b7ca0b9d16" />
  690. <wire id="29" uuid="02c93ada-ec0c-4c8d-835c-094f575c69f8" />
  691. <wire id="30" uuid="a5a05c19-3b12-4c3b-a500-44cd55f6a1e4" />
  692. <wire id="31" uuid="7d902ed7-08a8-48a5-95d0-70362fe5a7fe" />
  693. <wire id="32" uuid="25a1221b-d5f0-4e12-88f3-19a0cc118cc4" />
  694. <wire id="33" uuid="5ec4c481-0abc-4588-a392-c1648cadc1d0" />
  695. </wires>
  696. <elements>
  697. <element content='"PWM0A"' subtype="assign" type="operand" uuid="d0a7aba5-ca37-4848-9b39-4683a0660f72" x="3" y="14">
  698. <connections>
  699. <connection dir_in="1" dir_out="0" pos="0" uuid="d22d2d28-ca74-4c0b-80a7-84e50ca1c110" wire="27" />
  700. </connections>
  701. </element>
  702. <element content='"PWM0B"' subtype="assign" type="operand" uuid="80449734-acd9-4968-a9a9-291b9eacf3fc" x="5" y="29">
  703. <connections>
  704. <connection dir_in="1" dir_out="0" pos="0" uuid="2f272f77-5cad-4904-939a-a870c48f5fb5" wire="24" />
  705. </connections>
  706. </element>
  707. <element subtype="add-int" type="arithmetic" uuid="320c3e58-c243-447b-a323-fd7e7ea8a153" x="4" y="20">
  708. <connections>
  709. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="6c279a38-63fa-4838-9a0f-351f3cbf25ec" wire="4" />
  710. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="e4e62a86-bc9c-4e0f-8cf3-c247d3c4c631" wire="0" />
  711. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="99e0ee1b-875c-4ce9-bae7-13923cb55909" wire="1" />
  712. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="3b250129-ae53-4432-9bfb-1296f3070e0f" wire="2" />
  713. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="54642319-68ff-45b3-8fa7-21a2ac7110e7" wire="-1" />
  714. </connections>
  715. </element>
  716. <element content='"PWM0B_state"' subtype="load" type="operand" uuid="ca0b94c2-f729-48d4-b3c7-925c336c970e" x="3" y="21">
  717. <connections>
  718. <connection dir_in="0" dir_out="1" pos="0" uuid="067116c3-1b38-4b68-adff-11c06c4d0127" wire="0" />
  719. </connections>
  720. </element>
  721. <element content="1" subtype="load" type="operand" uuid="08b3a7f3-c583-41cf-8cd3-491654fcaedc" x="3" y="22">
  722. <connections>
  723. <connection dir_in="0" dir_out="1" pos="0" uuid="55b5fbe7-b328-4781-90a7-838b74abc8fc" wire="1" />
  724. </connections>
  725. </element>
  726. <element content='"PWM0B_state"' subtype="assign" type="operand" uuid="6c1d85a2-eaf2-408f-af7e-c8a404ee7e38" x="5" y="21">
  727. <connections>
  728. <connection dir_in="1" dir_out="0" pos="0" uuid="66dfc23e-d876-4b1b-9971-484f3b9288cc" wire="2" />
  729. </connections>
  730. </element>
  731. <element content='"CLK_0.1s"' subtype="load" type="operand" uuid="8f3182bd-978a-4a09-b7ba-6340c552fb20" x="1" y="20">
  732. <connections>
  733. <connection dir_in="0" dir_out="1" pos="0" uuid="9f93e5f1-26b1-4ebb-86f6-9d32f6fa1d51" wire="3" />
  734. </connections>
  735. </element>
  736. <element subtype="fp" type="boolean" uuid="4e2d97f3-3033-486a-b1d9-c764c02878ca" x="2" y="19">
  737. <connections>
  738. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="c844c535-8fad-4807-b524-6916f340a624" wire="3" />
  739. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="b58ac29a-bbd1-4a24-ae82-34f3fedaceed" wire="4" />
  740. </connections>
  741. <subelements>
  742. <element content='"PWM0B_fm"' subtype="embedded" type="operand" uuid="ac27593d-ab30-4ae3-ba0b-fcb1a1c79aa3" x="0" y="0" />
  743. </subelements>
  744. </element>
  745. <element content='"PWM0B_state"' subtype="load" type="operand" uuid="72ef6d2f-9d3e-44e8-a1b1-ecdac038311f" x="1" y="25">
  746. <connections>
  747. <connection dir_in="0" dir_out="1" pos="0" uuid="044dad4b-a331-4ddf-9161-6982e27a779a" wire="17" />
  748. </connections>
  749. </element>
  750. <element content="100" subtype="load" type="operand" uuid="91826eec-668e-45e6-8509-9fc619082e46" x="1" y="26">
  751. <connections>
  752. <connection dir_in="0" dir_out="1" pos="0" uuid="927c3345-9532-42ce-a37e-debc731c5372" wire="18" />
  753. </connections>
  754. </element>
  755. <element type="move" uuid="67cb1184-638f-4662-a766-0bc08672c15f" x="4" y="24">
  756. <connections>
  757. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="fb3bcfaf-00a4-47a4-b5ae-a6c6b3e29a80" wire="19" />
  758. <connection dir_in="1" dir_out="0" pos="1" text="IN" uuid="92ad4224-7e9f-4885-a9e8-1c9338f5611b" wire="5" />
  759. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="3255a283-0316-4af0-ac50-c70f9b27d1ce" wire="6" />
  760. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="96caccf4-13e2-4dbb-af4f-72fa65c55cc8" wire="-1" />
  761. </connections>
  762. </element>
  763. <element content="0" subtype="load" type="operand" uuid="f4dda5af-a680-4967-990b-43c92cd94605" x="3" y="26">
  764. <connections>
  765. <connection dir_in="0" dir_out="1" pos="0" uuid="97f024eb-8418-410a-b158-7bed279c14ae" wire="5" />
  766. </connections>
  767. </element>
  768. <element content='"PWM0B_state"' subtype="assign" type="operand" uuid="365fa1de-e7a0-4e05-8417-e8da72f0ba9d" x="5" y="25">
  769. <connections>
  770. <connection dir_in="1" dir_out="0" pos="0" uuid="7e4942f0-c157-49db-8ebf-a5079dd676f7" wire="6" />
  771. </connections>
  772. </element>
  773. <element content="Run PWM0A at a static 50% duty cycle." type="comment" uuid="707237db-8b8f-4f29-8ca7-20825774fc6d" x="0" y="12" />
  774. <element content="Run PWM0B at a 0% to 100% duty cycle sweep." type="comment" uuid="5f480563-7c1a-4394-97fd-df9c4958fa0c" x="0" y="18" />
  775. <element content='"PWM0_period"' subtype="load" type="operand" uuid="162627fd-ec32-40b8-ae40-a9643ce96f85" x="1" y="15">
  776. <connections>
  777. <connection dir_in="0" dir_out="1" pos="0" uuid="e60ef369-c639-4cff-a837-32298145347d" wire="25" />
  778. </connections>
  779. </element>
  780. <element content="1" subtype="load" type="operand" uuid="5bd59a80-6a05-40da-8017-003d95b423c5" x="1" y="14">
  781. <connections>
  782. <connection dir_in="0" dir_out="1" pos="0" uuid="92679b47-b32d-443e-955b-ba349043c13c" wire="26" />
  783. </connections>
  784. </element>
  785. <element subtype="fp" type="boolean" uuid="2ceff00d-57ea-46b1-b1d8-8ddc69c9596b" x="2" y="2">
  786. <connections>
  787. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="0b10fd66-ceb1-4183-99ee-da3d57990391" wire="7" />
  788. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="cec36527-714c-4d0d-bcb1-eeca0319f402" wire="8" />
  789. </connections>
  790. <subelements>
  791. <element content='"PWM0period_fm"' subtype="embedded" type="operand" uuid="ade87406-9030-4693-aebd-7b46ddc4b297" x="0" y="0" />
  792. </subelements>
  793. </element>
  794. <element content='"CLK_0.1s"' subtype="load" type="operand" uuid="95eb9760-3c83-4d7d-9355-b1cb7d019693" x="1" y="3">
  795. <connections>
  796. <connection dir_in="0" dir_out="1" pos="0" uuid="7b3972a0-e54e-4a65-8df3-e805107bac2f" wire="7" />
  797. </connections>
  798. </element>
  799. <element subtype="add-int" type="arithmetic" uuid="ebf3838c-c933-4a84-9a77-73f10eac3ef9" x="4" y="3">
  800. <connections>
  801. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="dfd6a8a7-bc55-4b3e-a940-2df70a87cc58" wire="8" />
  802. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="e94a8d6a-26f3-4754-a22a-45a9f7d85d2e" wire="9" />
  803. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="aa4d4145-055d-49c4-96a2-d33b79b31dca" wire="10" />
  804. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="7fd5d834-077d-4bbd-a856-671312647a03" wire="11" />
  805. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="99da528c-7371-4d46-9e0a-c6978f7adbb2" wire="-1" />
  806. </connections>
  807. </element>
  808. <element content='"PWM0_period"' subtype="load" type="operand" uuid="2b7fb12d-ff75-4bf7-ad36-58e3a7164301" x="3" y="4">
  809. <connections>
  810. <connection dir_in="0" dir_out="1" pos="0" uuid="ffc52b0f-ba98-4187-9e82-76274345b562" wire="9" />
  811. </connections>
  812. </element>
  813. <element content="1666" subtype="load" type="operand" uuid="1fa8ea2a-3e6b-4633-adaa-d8ca3d9f3fe3" x="3" y="5">
  814. <connections>
  815. <connection dir_in="0" dir_out="1" pos="0" uuid="0d1f6a5c-0ee6-4441-916c-9f1723c86d19" wire="10" />
  816. </connections>
  817. </element>
  818. <element content='"PWM0_period"' subtype="assign" type="operand" uuid="0da3fd62-e836-4e02-a584-b7e64f0a4ba2" x="5" y="4">
  819. <connections>
  820. <connection dir_in="1" dir_out="0" pos="0" uuid="d0fd8465-4d38-4e7c-892b-f158fdf449f6" wire="11" />
  821. </connections>
  822. </element>
  823. <element subtype="gt-dint" type="compare" uuid="3e0c3f4d-6b79-4fd5-b739-75f4a8c51c5b" x="2" y="7">
  824. <connections>
  825. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="7d5f0136-11a0-4f19-ad24-b2510f37fc97" wire="-1" />
  826. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="0b04ec0a-650b-48ab-8212-0dc15483208f" wire="12" />
  827. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="d5ac9798-3054-4f3e-a98f-e805803af115" wire="13" />
  828. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="bb222a6b-fd70-43b9-99cb-f8b2aa7200c6" wire="14" />
  829. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="b498b5da-c844-409e-8f55-2d136fc4a989" wire="-1" />
  830. </connections>
  831. </element>
  832. <element content='"PWM0_period"' subtype="load" type="operand" uuid="55785212-354c-4b27-98f6-e46b54543b9b" x="1" y="8">
  833. <connections>
  834. <connection dir_in="0" dir_out="1" pos="0" uuid="bb417a9b-339d-44b0-8a50-f58781c608ad" wire="12" />
  835. </connections>
  836. </element>
  837. <element content="L#65000" subtype="load" type="operand" uuid="6fa97957-0444-4a37-bec9-aa8c171031d4" x="1" y="9">
  838. <connections>
  839. <connection dir_in="0" dir_out="1" pos="0" uuid="6d96b7d9-3b44-4730-be0f-47c04307e168" wire="13" />
  840. </connections>
  841. </element>
  842. <element type="move" uuid="89f63391-7c82-42d4-9c15-4e10e184594e" x="4" y="7">
  843. <connections>
  844. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="4c714cbd-38fd-4372-8c5d-105db29fd89a" wire="14" />
  845. <connection dir_in="1" dir_out="0" pos="1" text="IN" uuid="8de3d006-48cb-47c9-b5e1-c146405cf851" wire="15" />
  846. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="a183390a-43fa-4f2c-9b73-a226d5da68c8" wire="16" />
  847. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="1d979c41-01a0-451c-9ef8-b85f69b9a3b2" wire="-1" />
  848. </connections>
  849. </element>
  850. <element content="0" subtype="load" type="operand" uuid="30782eff-ba0c-4bf2-b474-4ac3f7d0b136" x="3" y="9">
  851. <connections>
  852. <connection dir_in="0" dir_out="1" pos="0" uuid="adca294f-71d5-401d-964a-39250252e9fd" wire="15" />
  853. </connections>
  854. </element>
  855. <element content='"PWM0_period"' subtype="assign" type="operand" uuid="6d0f94cb-dee2-4493-8218-78718c4dfa74" x="5" y="8">
  856. <connections>
  857. <connection dir_in="1" dir_out="0" pos="0" uuid="f9ca94ec-751e-485c-9fe5-c9ae3a8f7be9" wire="16" />
  858. </connections>
  859. </element>
  860. <element subtype="gt-int" type="compare" uuid="5239165a-8910-4a9c-8268-359a8fe64cfa" x="2" y="24">
  861. <connections>
  862. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="db14f26d-212d-4f84-92f1-cc139aee10d4" wire="-1" />
  863. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="5aa24388-aa1b-40f0-a05d-cfd19971fc9f" wire="17" />
  864. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="d5169fca-6edb-459d-bb11-3dec8ab1f6d7" wire="18" />
  865. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="d5c7c8eb-de03-4605-94cb-ba8b8361c847" wire="19" />
  866. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="f548a1b4-1805-4645-9c59-64e0fa25a741" wire="-1" />
  867. </connections>
  868. </element>
  869. <element subtype="mul-dint" type="arithmetic" uuid="bb9dea30-be2b-478c-8635-29dc1c7188f6" x="2" y="28">
  870. <connections>
  871. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="11a90b2d-fae0-406a-8b73-b16d2c4b51ad" wire="-1" />
  872. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="b6bd0573-448b-4a1d-9a39-f6d41228c792" wire="20" />
  873. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="bd437325-b2e1-46ed-a484-3c0b446a3793" wire="21" />
  874. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="faba1939-5c21-4cdc-8dfe-bec43cd23c94" wire="22" />
  875. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="09779ca2-b28a-40b6-82b1-0fd3632bd369" wire="-1" />
  876. </connections>
  877. </element>
  878. <element content='"PWM0_period"' subtype="load" type="operand" uuid="ecdc3066-5510-468e-a766-196894da8c18" x="1" y="29">
  879. <connections>
  880. <connection dir_in="0" dir_out="1" pos="0" uuid="99524b5a-fcb3-48b0-8779-d12618ff2004" wire="20" />
  881. </connections>
  882. </element>
  883. <element content='"PWM0B_state"' subtype="load" type="operand" uuid="a5a16b57-9d30-462d-864e-f84dd9afb1e2" x="1" y="30">
  884. <connections>
  885. <connection dir_in="0" dir_out="1" pos="0" uuid="2b50aebd-6873-4fb7-865e-be1adf4cb43e" wire="21" />
  886. </connections>
  887. </element>
  888. <element subtype="div-dint" type="arithmetic" uuid="37f4fa28-583e-402e-bc4e-c00d9d57b8f0" x="4" y="28">
  889. <connections>
  890. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="c0ab94df-f9b9-41bb-af70-93df6232ab9e" wire="-1" />
  891. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="f7898614-bbc3-4d91-82b5-c4a21a32d299" wire="22" />
  892. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="50bb9010-c856-491c-8eff-294c861e2b6e" wire="23" />
  893. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="9f1e9857-f294-45aa-a7ef-d8dc30f2d60b" wire="24" />
  894. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="fb5024aa-26f9-4d93-bc4c-c183b716a09d" wire="-1" />
  895. </connections>
  896. </element>
  897. <element content="100" subtype="load" type="operand" uuid="2832bc84-18a2-4e5b-9c57-f3ff3a845332" x="3" y="30">
  898. <connections>
  899. <connection dir_in="0" dir_out="1" pos="0" uuid="ca95c9ba-70c7-4229-8d9d-b38fbe5f1895" wire="23" />
  900. </connections>
  901. </element>
  902. <element content="Sweep PWM0 period from 0 to 65000." type="comment" uuid="45d088dc-8233-4982-a245-12ed663f132f" x="0" y="1" />
  903. <element subtype="srw" type="shift" uuid="e938030b-66c7-4421-8765-c6f205fd3668" x="2" y="13">
  904. <connections>
  905. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="9cefa628-abc3-4ed1-bffe-bdbc723a434f" wire="-1" />
  906. <connection dir_in="1" dir_out="0" pos="1" text="N" uuid="f52840b1-1935-41d4-8741-fb25133787bb" wire="26" />
  907. <connection dir_in="1" dir_out="0" pos="2" text="IN" uuid="03c29dd4-34d9-4359-851d-93ab7e30f571" wire="25" />
  908. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="6d539bb1-877f-4073-ab9b-56023ff16124" wire="27" />
  909. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="c20c6608-84f8-4717-8f57-4e65547f659d" wire="-1" />
  910. </connections>
  911. </element>
  912. <element type="move" uuid="28e85bfb-f173-419b-8fda-a8c1afba0a47" x="2" y="38">
  913. <connections>
  914. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="0979a547-6946-429d-87e3-6fea7dabee44" wire="-1" />
  915. <connection dir_in="1" dir_out="0" pos="1" text="IN" uuid="50f0e5b9-047e-477d-97b1-c775dcc6f089" wire="28" />
  916. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="f12812a3-1344-4f1e-9d8c-e3effc687c55" wire="29" />
  917. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="4d8e5e53-d56a-4e41-bb06-f0e3ca356bd9" wire="-1" />
  918. </connections>
  919. </element>
  920. <element content="50" subtype="load" type="operand" uuid="fe14f2a9-efd0-4728-a2ba-1f3ed112a772" x="1" y="40">
  921. <connections>
  922. <connection dir_in="0" dir_out="1" pos="0" uuid="e8fa67a3-aef6-43f0-9739-f4f02cb954bc" wire="28" />
  923. </connections>
  924. </element>
  925. <element content='"PWM1A"' subtype="assign" type="operand" uuid="982e0869-2cbc-4725-98ce-43d93d1b4516" x="3" y="39">
  926. <connections>
  927. <connection dir_in="1" dir_out="0" pos="0" uuid="4871abe5-5a9a-4c6a-ae1d-d2bcfa15268c" wire="29" />
  928. </connections>
  929. </element>
  930. <element type="move" uuid="b19c0aac-9053-49b1-bb17-b0ca627dbaca" x="2" y="34">
  931. <connections>
  932. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="a938eb49-af3f-4ed2-8cc9-e58f44fe0304" wire="-1" />
  933. <connection dir_in="1" dir_out="0" pos="1" text="IN" uuid="d2649825-9314-41e5-9ab5-861099a4d1bc" wire="30" />
  934. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="893de657-e659-4d97-b1bc-4c6f57a79ab4" wire="31" />
  935. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="f190bf56-9a6d-45ce-8a79-bed0851811a8" wire="-1" />
  936. </connections>
  937. </element>
  938. <element content="256" subtype="load" type="operand" uuid="3ac9aeac-0f5a-41b5-864c-4c9cbd1a3d58" x="1" y="36">
  939. <connections>
  940. <connection dir_in="0" dir_out="1" pos="0" uuid="b9e6ae1f-0b5d-492c-9088-302ce152e58a" wire="30" />
  941. </connections>
  942. </element>
  943. <element content='"PWM1_period"' subtype="assign" type="operand" uuid="f64bbc7b-3155-47af-b388-39bc7f7f3f79" x="3" y="35">
  944. <connections>
  945. <connection dir_in="1" dir_out="0" pos="0" uuid="9275bfe2-79f4-43b8-8e76-ea38a1aa696e" wire="31" />
  946. </connections>
  947. </element>
  948. <element type="move" uuid="c07add37-c539-4e00-a27a-d690b2e46fd0" x="2" y="42">
  949. <connections>
  950. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="d5269c0c-c0d0-4154-a4bb-94b36a71bea9" wire="-1" />
  951. <connection dir_in="1" dir_out="0" pos="1" text="IN" uuid="23f2337a-114f-4f67-99fb-226a264323d2" wire="32" />
  952. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="48ecf44a-c86d-4709-88b8-d10a3f44fc5d" wire="33" />
  953. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="5e0934a7-87fa-4e84-955f-4c5073074ac3" wire="-1" />
  954. </connections>
  955. </element>
  956. <element content="250" subtype="load" type="operand" uuid="9fc0f6b2-7160-40bd-bc65-b04f1ef188f8" x="1" y="44">
  957. <connections>
  958. <connection dir_in="0" dir_out="1" pos="0" uuid="a3234d10-9cf2-4e87-9552-5d5fd91809bd" wire="32" />
  959. </connections>
  960. </element>
  961. <element content='"PWM1B"' subtype="assign" type="operand" uuid="ccba8d93-b26e-44d2-9695-182ab6350101" x="3" y="43">
  962. <connections>
  963. <connection dir_in="1" dir_out="0" pos="0" uuid="f2c3e2ed-3ea0-4736-b8bd-ba10030a817d" wire="33" />
  964. </connections>
  965. </element>
  966. <element content="Run PWM1 A and B at constant frequency and constant duty cycle." type="comment" uuid="3e597365-6b33-4d5d-b02d-a8c2421e5b3d" x="0" y="33" />
  967. </elements>
  968. </grid>
  969. </grids>
  970. </FUP>
  971. ]]></source>
  972. <!-- FUP/FBD source code -->
  973. <source enabled="1"
  974. name="Analog I/O"
  975. type="1"><![CDATA[
  976. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  977. <!-- Awlsim FUP/FBD source generated by awlsim-0.72.0-pre -->
  978. <FUP version="0" zoom="1.0">
  979. <blockdecl name='"FC_analog"' type="FC" />
  980. <interface allow_initvalue="0"
  981. allow_inouts="1"
  982. allow_inputs="1"
  983. allow_outputs="1"
  984. allow_retval="1"
  985. allow_stats="0"
  986. allow_temps="1">
  987. <retval>
  988. <field name="RET_VAL" type="VOID" uuid="4b3cfda5-70cf-4392-8a66-e9abfcf399dd" />
  989. </retval>
  990. </interface>
  991. <grids>
  992. <grid height="20" uuid="0381ac35-7180-40a9-ae57-09d0f0772056" width="12">
  993. <optimizers all="1" enabled="1" type="awl" />
  994. <wires>
  995. <wire id="0" uuid="cd14408f-ef62-4369-b7ec-cdc56369a325" />
  996. <wire id="1" uuid="c8a4f724-b23b-4a3d-9f3f-f2682e4fc441" />
  997. <wire id="2" uuid="4f56c670-1300-47f4-bab0-f44857e24c46" />
  998. <wire id="3" uuid="8e2eb71e-2fb8-47ad-95dc-bd7564c2d756" />
  999. <wire id="4" uuid="adf7cdfe-0b64-4143-a532-b1472c0a0931" />
  1000. <wire id="5" uuid="bdbd04b6-5df7-4d15-b266-ff4f29595832" />
  1001. <wire id="6" uuid="1008a57d-c01e-4d6e-a7ca-bf2065b7a8fa" />
  1002. <wire id="7" uuid="947f5194-3aa3-42b3-871b-dd36ddbf0b88" />
  1003. <wire id="8" uuid="208fa2b3-58d1-403b-a208-4bfe49694589" />
  1004. <wire id="9" uuid="7373c091-ca7f-434f-a76a-8b7ab2a7b78a" />
  1005. <wire id="10" uuid="9b3981be-2d23-4532-9c44-f02b73fa8a37" />
  1006. <wire id="11" uuid="fef51b2d-7553-4aad-8cb5-6429e65a3d74" />
  1007. </wires>
  1008. <elements>
  1009. <element content="DAC_A := AnalogIn0" type="comment" uuid="491fcadf-0120-4525-8e4f-c602d9e49b18" x="0" y="1" />
  1010. <element type="move" uuid="dc19c73f-11f0-4b4a-a266-9cfe8c53d0ad" x="2" y="2">
  1011. <connections>
  1012. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="614eeef5-0b89-4275-9bee-e3a38996eecb" wire="-1" />
  1013. <connection dir_in="1" dir_out="0" pos="1" text="IN" uuid="4431259e-2fe0-4d5e-8f03-b1d4c447e965" wire="0" />
  1014. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="c081d947-6c15-4c47-a1c4-3214235ca911" wire="1" />
  1015. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="6c26c015-285a-4672-8a45-abcee3363fe0" wire="-1" />
  1016. </connections>
  1017. </element>
  1018. <element content='"AnalogIn0"' subtype="load" type="operand" uuid="cfcc4e1a-4809-4c5b-99ad-9ff2a52d7bbb" x="1" y="4">
  1019. <connections>
  1020. <connection dir_in="0" dir_out="1" pos="0" uuid="7c5edc85-04d5-46e3-a12c-2371f2244c33" wire="0" />
  1021. </connections>
  1022. </element>
  1023. <element content='"DAC_A"' subtype="assign" type="operand" uuid="0f4acb5a-ada1-4a92-a605-39b98d0c3e03" x="3" y="3">
  1024. <connections>
  1025. <connection dir_in="1" dir_out="0" pos="0" uuid="ef16a939-cbcd-4e38-9829-dea580f1009f" wire="1" />
  1026. </connections>
  1027. </element>
  1028. <element content="DAC_B := 0-10V sweep" type="comment" uuid="4695892e-c4ab-4fad-bbb4-a8b23866becd" x="0" y="7" />
  1029. <element subtype="fp" type="boolean" uuid="3e4df83c-ab51-450a-a1c4-d28beab732b8" x="2" y="8">
  1030. <connections>
  1031. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="0929b0c3-268f-499b-aff6-36be65fff029" wire="2" />
  1032. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="27ebc752-3402-4f96-9205-4a4c909d27c3" wire="3" />
  1033. </connections>
  1034. <subelements>
  1035. <element content='"DACB_fm"' subtype="embedded" type="operand" uuid="5cc03dc5-a99c-47cb-9507-4d1403377202" x="0" y="0" />
  1036. </subelements>
  1037. </element>
  1038. <element content='"CLK_0.1s"' subtype="load" type="operand" uuid="e4b20ad6-4af9-4e9f-a114-ff7b20678729" x="1" y="9">
  1039. <connections>
  1040. <connection dir_in="0" dir_out="1" pos="0" uuid="ef934ae6-8cab-4412-ab1f-2d4aea58a5ff" wire="2" />
  1041. </connections>
  1042. </element>
  1043. <element subtype="add-int" type="arithmetic" uuid="02b1f857-b025-4654-98c0-faf3b3123f18" x="4" y="9">
  1044. <connections>
  1045. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="a0f288a4-8bc4-418d-9d4d-9b08dfcdecfa" wire="3" />
  1046. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="73c46b2f-2634-4776-8413-629bee42214a" wire="4" />
  1047. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="ebf853dd-77db-48c5-89bc-42a6a82f6323" wire="6" />
  1048. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="c25585b6-9fd1-445b-ac64-d015cdb4db17" wire="5" />
  1049. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="080ceb74-b09b-49c1-b224-81f2ea50fa1e" wire="-1" />
  1050. </connections>
  1051. </element>
  1052. <element content='"DAC_B"' subtype="load" type="operand" uuid="2040702f-261d-4808-9ede-2de4c7118c86" x="3" y="10">
  1053. <connections>
  1054. <connection dir_in="0" dir_out="1" pos="0" uuid="d8cb4352-bbd7-4c32-9a67-18cba58535fc" wire="4" />
  1055. </connections>
  1056. </element>
  1057. <element content='"DAC_B"' subtype="assign" type="operand" uuid="4736d641-14fb-41b0-ab80-c6a2a99ad60a" x="5" y="10">
  1058. <connections>
  1059. <connection dir_in="1" dir_out="0" pos="0" uuid="fdca57ab-3a24-44d1-a5bd-22cd816e277f" wire="5" />
  1060. </connections>
  1061. </element>
  1062. <element content="276" subtype="load" type="operand" uuid="8be624b2-7490-44eb-a22c-40950b2a0238" x="3" y="11">
  1063. <connections>
  1064. <connection dir_in="0" dir_out="1" pos="0" uuid="00a08065-f276-4fa5-8e76-3cb08c4c80ec" wire="6" />
  1065. </connections>
  1066. </element>
  1067. <element subtype="gt-int" type="compare" uuid="9fc01d5d-b3fa-4aa6-bd76-f191c4429335" x="2" y="13">
  1068. <connections>
  1069. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="ea1594b4-9bde-496c-9627-18ce10f8ec58" wire="-1" />
  1070. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="19809f6c-4c28-43fb-9906-af667eb0de3c" wire="7" />
  1071. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="a9e3fe6d-7ccf-4104-9b40-ca1de399723c" wire="8" />
  1072. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="c8365bd3-21cc-41fa-aa17-8b20ec2a7bda" wire="9" />
  1073. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="29d7b3da-5abd-4c59-88a7-310610b72458" wire="-1" />
  1074. </connections>
  1075. </element>
  1076. <element content='"DAC_B"' subtype="load" type="operand" uuid="4d9aaa87-7421-47a8-9e01-4a4d91c541d2" x="1" y="14">
  1077. <connections>
  1078. <connection dir_in="0" dir_out="1" pos="0" uuid="61fd47cc-772e-46c0-a822-baeb7f197dcd" wire="7" />
  1079. </connections>
  1080. </element>
  1081. <element content="27648" subtype="load" type="operand" uuid="90ee6288-0c6e-4c6d-9b9e-7d49118b6489" x="1" y="15">
  1082. <connections>
  1083. <connection dir_in="0" dir_out="1" pos="0" uuid="6caedf81-0717-4dc7-bbe3-e834185d9e01" wire="8" />
  1084. </connections>
  1085. </element>
  1086. <element type="move" uuid="709ea14c-84ae-4e19-9c9b-6f7a5010db09" x="4" y="13">
  1087. <connections>
  1088. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="cd83a3a9-7089-4a6d-8342-b509ee2b4c35" wire="9" />
  1089. <connection dir_in="1" dir_out="0" pos="1" text="IN" uuid="def0ec3a-ee2f-43b3-8896-6e4836d15e0c" wire="10" />
  1090. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="5a87be17-b325-4a2c-b4d8-77431674e284" wire="11" />
  1091. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="48b52dc9-2667-486f-bd50-555aa48dae6d" wire="-1" />
  1092. </connections>
  1093. </element>
  1094. <element content="0" subtype="load" type="operand" uuid="e2625d4a-6dde-4659-907c-a2c4bf3c5c3e" x="3" y="15">
  1095. <connections>
  1096. <connection dir_in="0" dir_out="1" pos="0" uuid="c9820e35-24ae-409a-af56-264caa4ff70e" wire="10" />
  1097. </connections>
  1098. </element>
  1099. <element content='"DAC_B"' subtype="assign" type="operand" uuid="9eb5eff7-37e5-4fa0-9eb1-a441ce271f67" x="5" y="14">
  1100. <connections>
  1101. <connection dir_in="1" dir_out="0" pos="0" uuid="1edce39f-a7b8-49c7-8c3e-72e7197ea43f" wire="11" />
  1102. </connections>
  1103. </element>
  1104. </elements>
  1105. </grid>
  1106. </grids>
  1107. </FUP>
  1108. ]]></source>
  1109. </language_fup>
  1110. <!-- Symbol table configuration -->
  1111. <symbols>
  1112. <!-- symbol table source code -->
  1113. <source enabled="1"
  1114. name="FCs"
  1115. type="3"><![CDATA[
  1116. 126,FC_DigitalOut FC 1 FC 1 Digital output handling
  1117. 126,FC_Relays FC 2 FC 2 Relays handling
  1118. 126,FC_GPIOs FC 3 FC 3 GPIOs handling
  1119. 126,FC_TempHum FC 4 FC 4 Temperature and humidity sensor handling
  1120. 126,FC_PWM FC 5 FC 5 PWM handling
  1121. 126,FC_analog FC 6 FC 6 Analog I/O handling
  1122. ]]></source>
  1123. <!-- symbol table source code -->
  1124. <source enabled="1"
  1125. name="PiXtend I/O"
  1126. type="3"><![CDATA[
  1127. 126,relay0 A 0.0 BOOL PiXtend relay output 0
  1128. 126,relay1 A 0.1 BOOL PiXtend relay output 1
  1129. 126,relay2 A 0.2 BOOL PiXtend relay output 2
  1130. 126,relay3 A 0.3 BOOL PiXtend relay output 3
  1131. 126,DO0 A 1.0 BOOL PiXtend digital output 0
  1132. 126,DO1 A 1.1 BOOL PiXtend digital output 1
  1133. 126,DO2 A 1.2 BOOL PiXtend digital output 2
  1134. 126,DO3 A 1.3 BOOL PiXtend digital output 3
  1135. 126,DO4 A 1.4 BOOL PiXtend digital output 4
  1136. 126,DO5 A 1.5 BOOL PiXtend digital output 5
  1137. 126,DI0 E 1.0 BOOL PiXtend digital input 0
  1138. 126,DI1 E 1.1 BOOL PiXtend digital input 1
  1139. 126,DI2 E 1.2 BOOL PiXtend digital input 2
  1140. 126,DI3 E 1.3 BOOL PiXtend digital input 3
  1141. 126,DI4 E 1.4 BOOL PiXtend digital input 4
  1142. 126,DI5 E 1.5 BOOL PiXtend digital input 5
  1143. 126,DI6 E 1.6 BOOL PiXtend digital input 6
  1144. 126,DI7 E 1.7 BOOL PiXtend digital input 7
  1145. 126,gpio0 E 2.0 BOOL PiXtend GPIO 0
  1146. 126,gpio1 A 2.1 BOOL PiXtend GPIO 1
  1147. 126,PWM0A AW 20 WORD PiXtend PWM 0A
  1148. 126,PWM0B AW 22 WORD PiXtend PWM 0B
  1149. 126,PWM0_period AW 24 WORD PiXtend PWM0 period
  1150. 126,PWM1A AW 30 WORD PiXtend PWM 1A
  1151. 126,PWM1B AW 32 WORD PiXtend PWM 1B
  1152. 126,PWM1_period AW 34 WORD PiXtend PWM1 period
  1153. 126,DAC_A AW 10 WORD PiXtend DAC_A
  1154. 126,DAC_B AW 12 WORD PiXtend DAC_B
  1155. 126,AnalogIn0 EW 10 WORD PiXtend analog input 0
  1156. 126,DHT11_temperature EW 30 WORD DHT11 on GPIO 2 temperature
  1157. 126,DHT11_humidity EW 32 WORD DHT11 on GPIO 2 humidity
  1158. 126,DHT22_temperature EW 40 WORD DHT22 on GPIO 3 temperature
  1159. 126,DHT22_humidity EW 42 WORD DHT22 on GPIO 3 humidity
  1160. ]]></source>
  1161. <!-- symbol table source code -->
  1162. <source enabled="1"
  1163. name="Clock memory byte"
  1164. type="3"><![CDATA[
  1165. 126,CLK_0.1s M 0.0 BOOL Clock memory bit with 0.1 s period
  1166. 126,CLK_0.2s M 0.1 BOOL Clock memory bit with 0.2 s period
  1167. 126,CLK_0.4s M 0.2 BOOL Clock memory bit with 0.4 s period
  1168. 126,CLK_0.5s M 0.3 BOOL Clock memory bit with 0.5 s period
  1169. 126,CLK_0.8s M 0.4 BOOL Clock memory bit with 0.8 s period
  1170. 126,CLK_1.0s M 0.5 BOOL Clock memory bit with 1.0 s period
  1171. 126,CLK_1.6s M 0.6 BOOL Clock memory bit with 1.6 s period
  1172. 126,CLK_2.0s M 0.7 BOOL Clock memory bit with 2.0 s period
  1173. ]]></source>
  1174. <!-- symbol table source code -->
  1175. <source enabled="1"
  1176. name="Memory"
  1177. type="3"><![CDATA[
  1178. 126,Relay3_timer_state M 10.0 BOOL
  1179. 126,PWM0B_state MW 22 WORD
  1180. 126,PWM0B_fm M 24.0 BOOL
  1181. 126,PWM0period_fm M 24.1 BOOL
  1182. 126,DACB_fm M 25.0 BOOL
  1183. 126,dht11_over_25_degrees M 30.0 BOOL
  1184. 126,dht11_over_35_percent M 30.1 BOOL
  1185. 126,dht22_over_20_degrees M 40.0 BOOL
  1186. 126,dht22_over_80_percent M 40.1 BOOL
  1187. ]]></source>
  1188. <!-- symbol table source code -->
  1189. <source enabled="1"
  1190. name="Timers"
  1191. type="3"><![CDATA[
  1192. 126,Relay3_timer T 0 TIMER
  1193. ]]></source>
  1194. </symbols>
  1195. <!-- Core server link configuration -->
  1196. <core_link>
  1197. <!-- Locally spawned core server -->
  1198. <spawn_local enable="0"
  1199. interpreters="$DEFAULT"
  1200. port_range_begin="4183"
  1201. port_range_end="8278" />
  1202. <!-- Remote server connection -->
  1203. <connect host="pilc"
  1204. port="4151"
  1205. timeout_ms="3000" />
  1206. <!-- Transport tunnel -->
  1207. <tunnel local_port="-1"
  1208. type="1">
  1209. <ssh executable="ssh"
  1210. port="22"
  1211. user="pi" />
  1212. </tunnel>
  1213. </core_link>
  1214. <!-- Hardware modules configuration -->
  1215. <hardware>
  1216. <!-- Loaded hardware module -->
  1217. <module name="pixtend">
  1218. <params>
  1219. <param name="analogIn0_10V"
  1220. value="True" />
  1221. <param name="analogIn0_addr"
  1222. value="EW 10" />
  1223. <param name="analogIn0_nos"
  1224. value="10" />
  1225. <param name="analogIn1_10V"
  1226. value="True" />
  1227. <param name="analogIn1_addr" />
  1228. <param name="analogIn1_nos"
  1229. value="10" />
  1230. <param name="analogIn2_addr" />
  1231. <param name="analogIn2_nos"
  1232. value="10" />
  1233. <param name="analogIn3_addr" />
  1234. <param name="analogIn3_nos"
  1235. value="10" />
  1236. <param name="analogIn_kHz"
  1237. value="125" />
  1238. <param name="analogOut0_addr"
  1239. value="AW 10" />
  1240. <param name="analogOut1_addr"
  1241. value="AW 12" />
  1242. <param name="boardType"
  1243. value="auto" />
  1244. <param name="digitalIn0_addr"
  1245. value="E 1.0" />
  1246. <param name="digitalIn1_addr"
  1247. value="E 1.1" />
  1248. <param name="digitalIn2_addr"
  1249. value="E 1.2" />
  1250. <param name="digitalIn3_addr"
  1251. value="E 1.3" />
  1252. <param name="digitalIn4_addr"
  1253. value="E 1.4" />
  1254. <param name="digitalIn5_addr"
  1255. value="E 1.5" />
  1256. <param name="digitalIn6_addr"
  1257. value="E 1.6" />
  1258. <param name="digitalIn7_addr"
  1259. value="E 1.7" />
  1260. <param name="digitalOut0_addr"
  1261. value="A 1.0" />
  1262. <param name="digitalOut1_addr"
  1263. value="A 1.1" />
  1264. <param name="digitalOut2_addr"
  1265. value="A 1.2" />
  1266. <param name="digitalOut3_addr"
  1267. value="A 1.3" />
  1268. <param name="digitalOut4_addr"
  1269. value="A 1.4" />
  1270. <param name="digitalOut5_addr"
  1271. value="A 1.5" />
  1272. <param name="enabled"
  1273. value="True" />
  1274. <param name="gpio0_addr"
  1275. value="E 2.0" />
  1276. <param name="gpio0_hum_addr" />
  1277. <param name="gpio0_mode"
  1278. value="GPIO" />
  1279. <param name="gpio0_pullup"
  1280. value="True" />
  1281. <param name="gpio0_temp_addr" />
  1282. <param name="gpio1_addr"
  1283. value="A 2.1" />
  1284. <param name="gpio1_hum_addr" />
  1285. <param name="gpio1_mode"
  1286. value="GPIO" />
  1287. <param name="gpio1_pullup"
  1288. value="False" />
  1289. <param name="gpio1_temp_addr" />
  1290. <param name="gpio2_addr" />
  1291. <param name="gpio2_hum_addr"
  1292. value="EW 32" />
  1293. <param name="gpio2_mode"
  1294. value="DHT11" />
  1295. <param name="gpio2_pullup"
  1296. value="False" />
  1297. <param name="gpio2_temp_addr"
  1298. value="EW 30" />
  1299. <param name="gpio3_addr" />
  1300. <param name="gpio3_hum_addr"
  1301. value="EW 42" />
  1302. <param name="gpio3_mode"
  1303. value="DHT22" />
  1304. <param name="gpio3_pullup"
  1305. value="False" />
  1306. <param name="gpio3_temp_addr"
  1307. value="EW 40" />
  1308. <param name="inputAddressBase"
  1309. value="0" />
  1310. <param name="outputAddressBase"
  1311. value="0" />
  1312. <param name="pollIntMs"
  1313. value="100" />
  1314. <param name="pwm0A_addr"
  1315. value="AW 20" />
  1316. <param name="pwm0B_addr"
  1317. value="AW 22" />
  1318. <param name="pwm0_baseFreqHz"
  1319. value="16000000" />
  1320. <param name="pwm0_mode"
  1321. value="dutycycle" />
  1322. <param name="pwm0_period"
  1323. value="AW 24" />
  1324. <param name="pwm1A_addr"
  1325. value="AW 30" />
  1326. <param name="pwm1B_addr"
  1327. value="AW 32" />
  1328. <param name="pwm1_baseFreqHz"
  1329. value="125000" />
  1330. <param name="pwm1_mode"
  1331. value="dutycycle" />
  1332. <param name="pwm1_period"
  1333. value="AW 34" />
  1334. <param name="relay0_addr"
  1335. value="A 0.0" />
  1336. <param name="relay1_addr"
  1337. value="A 0.1" />
  1338. <param name="relay2_addr"
  1339. value="A 0.2" />
  1340. <param name="relay3_addr"
  1341. value="A 0.3" />
  1342. <param name="rs485"
  1343. value="False" />
  1344. </params>
  1345. </module>
  1346. </hardware>
  1347. <!-- Graphical user interface configuration -->
  1348. <gui>
  1349. <!-- Core interaction settings -->
  1350. <core pre_download_validation="1" />
  1351. <!-- AWL editor settings -->
  1352. <editor autoindent="1"
  1353. paste_autoindent="1"
  1354. validation="1" />
  1355. <!-- CPU state view layout -->
  1356. <cpu_view>
  1357. <cpu_view_window config="format=s5t;index=0"
  1358. type="4"
  1359. x="0"
  1360. y="0" />
  1361. <cpu_view_window config="addr=1;addrspace=E;format=checkbox;width=8"
  1362. type="2"
  1363. x="320"
  1364. y="0" />
  1365. <cpu_view_window config="addr=1;addrspace=A;format=checkbox;width=8"
  1366. type="2"
  1367. x="862"
  1368. y="112" />
  1369. <cpu_view_window config="addr=0;addrspace=A;format=checkbox;width=8"
  1370. type="2"
  1371. x="863"
  1372. y="0" />
  1373. </cpu_view>
  1374. </gui>
  1375. </awlsim_project>