--- a/Pous/pousCommon.xml Tue Mar 31 11:06:21 2026 +0200
+++ b/Pous/pousCommon.xml Thu May 21 18:21:26 2026 +0200
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.plcopen.org/xml/tc6_0201" xmlns:xhtml="http://www.w3.org/1999/xhtml" xsi:schemaLocation="http://www.plcopen.org/xml/tc6_0201">
<fileHeader companyName="Beremiz" productName="Beremiz" productVersion="0.0" creationDateTime="2008-12-14T16:53:26"/>
- <contentHeader name="Beremiz non-standard POUs library" modificationDateTime="2025-07-25T13:26:15">
+ <contentHeader name="Beremiz non-standard POUs library" modificationDateTime="2026-05-19T12:52:41"> @@ -17,6 +17,598 @@
+ <pou name="set_wifi_settings" pouType="functionBlock"> + <variable name="RESULT"> + <variable name="py_eval"> + <derived name="python_eval"/> + <variable name="INTERFACE_NAME"> + <variable name="CONFIGURATION_TYPE"> + <variable name="IP_ADDRESS"> + <variable name="GATEWAY_ADDRESS"> + <variable name="NETWORK_MASK"> + <variable name="DNS_ADDRESS"> + <variable name="WORKING_MODE"> + <variable name="AUTHENTICATION_TYPE"> + <variable name="NETWORK_NAME"> + <variable name="PASSWORD"> + <inVariable localId="3" height="35" width="56" executionOrderId="0" negated="false"> + <position x="96" y="712"/> + <relPosition x="56" y="16"/> + <expression>TRIG</expression> + <block localId="1" width="125" height="110" typeName="python_eval" instanceName="py_eval" executionOrderId="0"> + <position x="304" y="688"/> + <variable formalParameter="TRIG"> + <relPosition x="0" y="40"/> + <connection refLocalId="3"> + <position x="304" y="728"/> + <position x="152" y="728"/> + <variable formalParameter="CODE"> + <relPosition x="0" y="88"/> + <connection refLocalId="2"> + <position x="304" y="776"/> + <position x="214" y="776"/> + <position x="214" y="776"/> + <position x="224" y="776"/> + <variable formalParameter="ACK"> + <relPosition x="125" y="40"/> + <variable formalParameter="RESULT"> + <relPosition x="125" y="88"/> + <outVariable localId="5" height="35" width="45" executionOrderId="0" negated="false"> + <position x="521" y="713"/> + <relPosition x="0" y="15"/> + <connection refLocalId="1" formalParameter="ACK"> + <position x="521" y="728"/> + <position x="429" y="728"/> + <expression>ACK</expression> + <outVariable localId="6" height="35" width="75" executionOrderId="0" negated="false"> + <position x="521" y="758"/> + <relPosition x="0" y="18"/> + <connection refLocalId="1" formalParameter="RESULT"> + <position x="521" y="776"/> + <position x="429" y="776"/> + <expression>RESULT</expression> + <block localId="7" typeName="CONCAT" executionOrderId="0" height="243" width="67"> + <position x="488" y="24"/> + <variable formalParameter="IN1"> + <relPosition x="0" y="32"/> + <connection refLocalId="8"> + <position x="488" y="56"/> + <position x="472" y="56"/> + <position x="472" y="24"/> + <position x="462" y="24"/> + <variable formalParameter="IN2"> + <relPosition x="0" y="48"/> + <connection refLocalId="9"> + <position x="488" y="72"/> + <position x="224" y="72"/> + <variable formalParameter="IN3"> + <relPosition x="0" y="72"/> + <connection refLocalId="10"> + <position x="488" y="96"/> + <position x="376" y="96"/> + <variable formalParameter="IN4"> + <relPosition x="0" y="88"/> + <connection refLocalId="11"> + <position x="488" y="112"/> + <position x="408" y="112"/> + <position x="408" y="120"/> + <position x="222" y="120"/> + <variable formalParameter="IN5"> + <relPosition x="0" y="112"/> + <connection refLocalId="14"> + <position x="488" y="136"/> + <position x="392" y="136"/> + <position x="392" y="144"/> + <position x="379" y="144"/> + <variable formalParameter="IN6"> + <relPosition x="0" y="128"/> + <connection refLocalId="13"> + <position x="488" y="152"/> + <position x="400" y="152"/> + <position x="400" y="168"/> + <position x="225" y="168"/> + <variable formalParameter="IN7"> + <relPosition x="0" y="152"/> + <connection refLocalId="4"> + <position x="488" y="176"/> + <position x="400" y="176"/> + <position x="400" y="192"/> + <position x="379" y="192"/> + <variable formalParameter="IN8"> + <relPosition x="0" y="168"/> + <connection refLocalId="15"> + <position x="488" y="192"/> + <position x="408" y="192"/> + <position x="408" y="216"/> + <position x="228" y="216"/> + <variable formalParameter="IN9"> + <relPosition x="0" y="192"/> + <connection refLocalId="12"> + <position x="488" y="216"/> + <position x="416" y="216"/> + <position x="416" y="240"/> + <position x="379" y="240"/> + <variable formalParameter="IN10"> + <relPosition x="0" y="208"/> + <connection refLocalId="16"> + <position x="488" y="232"/> + <position x="424" y="232"/> + <position x="424" y="272"/> + <position x="231" y="272"/> + <variable formalParameter="IN11"> + <relPosition x="0" y="232"/> + <connection refLocalId="17"> + <position x="488" y="256"/> + <position x="433" y="256"/> + <position x="433" y="296"/> + <position x="379" y="296"/> + <variable formalParameter="OUT"> + <relPosition x="67" y="32"/> + <inVariable localId="8" executionOrderId="0" height="38" width="198" negated="false"> + <position x="264" y="8"/> + <relPosition x="198" y="16"/> + <expression>'SetWiFiSettings("'</expression> + <inVariable localId="9" executionOrderId="0" height="32" width="128" negated="false"> + <position x="96" y="56"/> + <relPosition x="128" y="16"/> + <expression>INTERFACE_NAME</expression> + <inVariable localId="10" executionOrderId="0" height="32" width="112" negated="false"> + <position x="264" y="80"/> + <relPosition x="112" y="16"/> + <expression>'", "'</expression> + <inVariable localId="11" executionOrderId="0" height="32" width="118" negated="false"> + <position x="104" y="104"/> + <relPosition x="118" y="16"/> + <expression>CONFIGURATION_TYPE</expression> + <inVariable localId="14" executionOrderId="0" height="35" width="115" negated="false"> + <position x="264" y="128"/> + <relPosition x="115" y="16"/> + <expression>'", "'</expression> + <connector name="Part1" localId="30" height="31" width="131"> + <position x="608" y="48"/> + <relPosition x="0" y="16"/> + <connection refLocalId="7" formalParameter="OUT"> + <position x="608" y="64"/> + <position x="581" y="64"/> + <position x="581" y="56"/> + <position x="555" y="56"/> + <continuation name="Code" localId="2" width="128" height="32"> + <position x="96" y="760"/> + <relPosition x="128" y="16"/> + <inVariable localId="4" executionOrderId="0" height="35" width="115" negated="false"> + <position x="264" y="176"/> + <relPosition x="115" y="16"/> + <expression>'", "'</expression> + <inVariable localId="12" executionOrderId="0" height="35" width="115" negated="false"> + <position x="264" y="224"/> + <relPosition x="115" y="16"/> + <expression>'", "'</expression> + <inVariable localId="13" executionOrderId="0" height="35" width="121" negated="false"> + <position x="104" y="152"/> + <relPosition x="121" y="16"/> + <expression>IP_ADDRESS</expression> + <inVariable localId="15" executionOrderId="0" height="38" width="124" negated="false"> + <position x="104" y="200"/> + <relPosition x="124" y="16"/> + <expression>GATEWAY_ADDRESS</expression> + <inVariable localId="16" executionOrderId="0" height="41" width="127" negated="false"> + <position x="104" y="248"/> + <relPosition x="127" y="24"/> + <expression>NETWORK_MASK</expression> + <inVariable localId="17" executionOrderId="0" height="35" width="115" negated="false"> + <position x="264" y="280"/> + <relPosition x="115" y="16"/> + <expression>'", "'</expression> + <block localId="18" typeName="CONCAT" executionOrderId="0" height="243" width="67"> + <position x="488" y="360"/> + <variable formalParameter="IN1"> + <relPosition x="0" y="32"/> + <connection refLocalId="19"> + <position x="488" y="392"/> + <position x="444" y="392"/> + <position x="444" y="368"/> + <position x="403" y="368"/> + <variable formalParameter="IN2"> + <relPosition x="0" y="48"/> + <connection refLocalId="20"> + <position x="488" y="408"/> + <position x="227" y="408"/> + <variable formalParameter="IN3"> + <relPosition x="0" y="72"/> + <connection refLocalId="21"> + <position x="488" y="432"/> + <position x="376" y="432"/> + <variable formalParameter="IN4"> + <relPosition x="0" y="88"/> + <connection refLocalId="22"> + <position x="488" y="448"/> + <position x="408" y="448"/> + <position x="408" y="456"/> + <position x="225" y="456"/> + <variable formalParameter="IN5"> + <relPosition x="0" y="112"/> + <connection refLocalId="23"> + <position x="488" y="472"/> + <position x="392" y="472"/> + <position x="392" y="480"/> + <position x="379" y="480"/> + <variable formalParameter="IN6"> + <relPosition x="0" y="128"/> + <connection refLocalId="24"> + <position x="488" y="488"/> + <position x="400" y="488"/> + <position x="400" y="504"/> + <position x="231" y="504"/> + <variable formalParameter="IN7"> + <relPosition x="0" y="152"/> + <connection refLocalId="25"> + <position x="488" y="512"/> + <position x="400" y="512"/> + <position x="400" y="528"/> + <position x="379" y="528"/> + <variable formalParameter="IN8"> + <relPosition x="0" y="168"/> + <connection refLocalId="26"> + <position x="488" y="528"/> + <position x="408" y="528"/> + <position x="408" y="560"/> + <position x="231" y="560"/> + <variable formalParameter="IN9"> + <relPosition x="0" y="192"/> + <connection refLocalId="27"> + <position x="488" y="552"/> + <position x="416" y="552"/> + <position x="416" y="584"/> + <position x="379" y="584"/> + <variable formalParameter="IN10"> + <relPosition x="0" y="208"/> + <connection refLocalId="28"> + <position x="488" y="568"/> + <position x="424" y="568"/> + <position x="424" y="608"/> + <position x="234" y="608"/> + <variable formalParameter="IN11"> + <relPosition x="0" y="232"/> + <connection refLocalId="31"> + <position x="488" y="592"/> + <position x="433" y="592"/> + <position x="433" y="632"/> + <position x="382" y="632"/> + <variable formalParameter="OUT"> + <relPosition x="67" y="32"/> + <inVariable localId="20" executionOrderId="0" height="35" width="131" negated="false"> + <position x="96" y="392"/> + <relPosition x="131" y="16"/> + <expression>DNS_ADDRESS</expression> + <inVariable localId="21" executionOrderId="0" height="32" width="112" negated="false"> + <position x="264" y="416"/> + <relPosition x="112" y="16"/> + <expression>'", "'</expression> + <inVariable localId="22" executionOrderId="0" height="35" width="121" negated="false"> + <position x="104" y="440"/> + <relPosition x="121" y="16"/> + <expression>WORKING_MODE</expression> + <inVariable localId="23" executionOrderId="0" height="35" width="115" negated="false"> + <position x="264" y="464"/> + <relPosition x="115" y="16"/> + <expression>'", "'</expression> + <inVariable localId="24" executionOrderId="0" height="38" width="127" negated="false"> + <position x="104" y="488"/> + <relPosition x="127" y="16"/> + <expression>AUTHENTICATION_TYPE</expression> + <inVariable localId="25" executionOrderId="0" height="35" width="115" negated="false"> + <position x="264" y="512"/> + <relPosition x="115" y="16"/> + <expression>'", "'</expression> + <inVariable localId="26" executionOrderId="0" height="41" width="127" negated="false"> + <position x="104" y="536"/> + <relPosition x="127" y="24"/> + <expression>NETWORK_NAME</expression> + <inVariable localId="27" executionOrderId="0" height="35" width="115" negated="false"> + <position x="264" y="568"/> + <relPosition x="115" y="16"/> + <expression>'", "'</expression> + <inVariable localId="28" executionOrderId="0" height="44" width="130" negated="false"> + <position x="104" y="584"/> + <relPosition x="130" y="24"/> + <expression>PASSWORD</expression> + <connector name="Code" localId="29" height="34" width="134"> + <position x="608" y="376"/> + <relPosition x="0" y="16"/> + <connection refLocalId="18" formalParameter="OUT"> + <position x="608" y="392"/> + <position x="555" y="392"/> + <inVariable localId="31" executionOrderId="0" height="38" width="118" negated="false"> + <position x="264" y="616"/> + <relPosition x="118" y="16"/> + <expression>'")'</expression> + <continuation name="Part1" localId="19" width="131" height="35"> + <position x="272" y="352"/> + <relPosition x="131" y="16"/> <pou name="check_if_url_is_reachable" pouType="functionBlock">