--- a/Pous/pousCommon.xml Wed Jul 23 13:43:06 2025 +0200
+++ b/Pous/pousCommon.xml Fri Jul 25 13:32:50 2025 +0200
@@ -17,6 +17,209 @@
+ <pou name="check_if_url_is_reachable" pouType="functionBlock"> + <variable name="RESULT"> + <variable name="py_eval"> + <derived name="python_eval"/> + <inVariable localId="3" height="35" width="56" executionOrderId="0" negated="false"> + <position x="256" y="352"/> + <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="456" y="328"/> + <variable formalParameter="TRIG"> + <relPosition x="0" y="40"/> + <connection refLocalId="3"> + <position x="456" y="368"/> + <position x="312" y="368"/> + <variable formalParameter="CODE"> + <relPosition x="0" y="88"/> + <connection refLocalId="2"> + <position x="456" y="416"/> + <position x="384" y="416"/> + <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="681" y="353"/> + <relPosition x="0" y="15"/> + <connection refLocalId="1" formalParameter="ACK"> + <position x="681" y="368"/> + <position x="581" y="368"/> + <expression>ACK</expression> + <block localId="7" typeName="CONCAT" executionOrderId="0" height="195" width="67"> + <position x="512" y="80"/> + <variable formalParameter="IN1"> + <relPosition x="0" y="48"/> + <connection refLocalId="8"> + <position x="512" y="128"/> + <position x="459" y="128"/> + <variable formalParameter="IN2"> + <relPosition x="0" y="104"/> + <connection refLocalId="9"> + <position x="512" y="184"/> + <position x="456" y="184"/> + <variable formalParameter="IN3"> + <relPosition x="0" y="168"/> + <connection refLocalId="14"> + <position x="512" y="248"/> + <position x="456" y="248"/> + <variable formalParameter="OUT"> + <relPosition x="67" y="48"/> + <inVariable localId="8" executionOrderId="0" height="38" width="213" negated="false"> + <position x="264" y="112"/> + <relPosition x="213" y="16"/> + <expression>'CheckIfURLIsReachable("'</expression> + <inVariable localId="9" executionOrderId="0" height="32" width="128" negated="false"> + <position x="328" y="168"/> + <relPosition x="128" y="16"/> + <expression>URL</expression> + <inVariable localId="14" executionOrderId="0" height="32" width="112" negated="false"> + <position x="344" y="232"/> + <relPosition x="112" y="16"/> + <expression>'")'</expression> + <connector name="Code" localId="30" height="28" width="128"> + <position x="640" y="112"/> + <relPosition x="0" y="16"/> + <connection refLocalId="7" formalParameter="OUT"> + <position x="640" y="128"/> + <position x="579" y="128"/> + <continuation name="Code" localId="2" width="128" height="32"> + <position x="256" y="400"/> + <relPosition x="128" y="16"/> + <block localId="31" typeName="STRING_TO_BOOL" executionOrderId="0" width="128" height="48"> + <position x="760" y="384"/> + <variable formalParameter="IN"> + <relPosition x="0" y="32"/> + <connection refLocalId="1" formalParameter="RESULT"> + <position x="760" y="416"/> + <position x="581" y="416"/> + <variable formalParameter="OUT"> + <relPosition x="128" y="32"/> + <outVariable localId="6" height="35" width="75" executionOrderId="0" negated="false"> + <position x="944" y="400"/> + <relPosition x="0" y="16"/> + <connection refLocalId="31" formalParameter="OUT"> + <position x="944" y="416"/> + <position x="888" y="416"/> + <expression>RESULT</expression> <pou name="get_timezone" pouType="functionBlock">