lpcmanager
Clone
Summary
Browse
Changes
Graph
Add new POU: get_plc_id
14 months ago, Dino Kosic
1e7762139be7
Parents
698bb7de8452
Children
699fef1fc5cd
Add new POU: get_plc_id
1 files changed, 107 insertions(+), 1 deletions(-)
+107
-1
Pous/pousCommon.xml
--- a/Pous/pousCommon.xml Wed Apr 09 11:10:17 2025 +0200
+++ b/Pous/pousCommon.xml Wed Apr 09 11:34:01 2025 +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-04-09T10:26:24">
+ <contentHeader name="Beremiz non-standard POUs library" modificationDateTime="2025-04-09T11:28:27">
<coordinateInfo>
<fbd>
<scaling x="8" y="8"/>
@@ -957,6 +957,112 @@
</FBD>
</body>
</pou>
+ <pou name="get_plc_id" pouType="functionBlock">
+ <interface>
+ <outputVars>
+ <variable name="ACK">
+ <type>
+ <BOOL/>
+ </type>
+ </variable>
+ <variable name="RESULT">
+ <type>
+ <string/>
+ </type>
+ </variable>
+ </outputVars>
+ <localVars>
+ <variable name="py_eval">
+ <type>
+ <derived name="python_eval"/>
+ </type>
+ </variable>
+ </localVars>
+ <inputVars>
+ <variable name="TRIG">
+ <type>
+ <BOOL/>
+ </type>
+ </variable>
+ </inputVars>
+ </interface>
+ <body>
+ <FBD>
+ <inVariable localId="4" height="43" width="171" executionOrderId="0" negated="false">
+ <position x="72" y="102"/>
+ <connectionPointOut>
+ <relPosition x="171" y="18"/>
+ </connectionPointOut>
+ <expression>'GetPLCID()'</expression>
+ </inVariable>
+ <inVariable localId="3" height="35" width="56" executionOrderId="0" negated="false">
+ <position x="72" y="56"/>
+ <connectionPointOut>
+ <relPosition x="56" y="16"/>
+ </connectionPointOut>
+ <expression>TRIG</expression>
+ </inVariable>
+ <block localId="1" width="125" height="110" typeName="python_eval" instanceName="py_eval" executionOrderId="0">
+ <position x="272" y="32"/>
+ <inputVariables>
+ <variable formalParameter="TRIG">
+ <connectionPointIn>
+ <relPosition x="0" y="40"/>
+ <connection refLocalId="3">
+ <position x="272" y="72"/>
+ <position x="128" y="72"/>
+ </connection>
+ </connectionPointIn>
+ </variable>
+ <variable formalParameter="CODE">
+ <connectionPointIn>
+ <relPosition x="0" y="88"/>
+ <connection refLocalId="4">
+ <position x="272" y="120"/>
+ <position x="127" y="120"/>
+ </connection>
+ </connectionPointIn>
+ </variable>
+ </inputVariables>
+ <inOutVariables/>
+ <outputVariables>
+ <variable formalParameter="ACK">
+ <connectionPointOut>
+ <relPosition x="125" y="40"/>
+ </connectionPointOut>
+ </variable>
+ <variable formalParameter="RESULT">
+ <connectionPointOut>
+ <relPosition x="125" y="88"/>
+ </connectionPointOut>
+ </variable>
+ </outputVariables>
+ </block>
+ <outVariable localId="5" height="35" width="45" executionOrderId="0" negated="false">
+ <position x="497" y="57"/>
+ <connectionPointIn>
+ <relPosition x="0" y="15"/>
+ <connection refLocalId="1" formalParameter="ACK">
+ <position x="497" y="72"/>
+ <position x="397" y="72"/>
+ </connection>
+ </connectionPointIn>
+ <expression>ACK</expression>
+ </outVariable>
+ <outVariable localId="6" height="35" width="75" executionOrderId="0" negated="false">
+ <position x="497" y="102"/>
+ <connectionPointIn>
+ <relPosition x="0" y="18"/>
+ <connection refLocalId="1" formalParameter="RESULT">
+ <position x="497" y="120"/>
+ <position x="397" y="120"/>
+ </connection>
+ </connectionPointIn>
+ <expression>RESULT</expression>
+ </outVariable>
+ </FBD>
+ </body>
+ </pou>
</pous>
</types>
<instances>