lpcmanager

Added buzzer block.

2017-05-17, dgaberscek
12b31893a57f
Parents 802091036e67
Children 72a1a99452c1
Added buzzer block.
--- a/Pous/pousGOT.xml Tue May 16 08:47:29 2017 +0200
+++ b/Pous/pousGOT.xml Wed May 17 10:46:34 2017 +0200
@@ -87,6 +87,67 @@
</ST>
</body>
</pou>
+ <pou name="buzzer" pouType="functionBlock">
+ <interface>
+ <inputVars>
+ <variable name="TRIG">
+ <type>
+ <BOOL/>
+ </type>
+ </variable>
+ <variable name="BUZZ_VALUE">
+ <type>
+ <INT/>
+ </type>
+ </variable>
+ </inputVars>
+ <outputVars>
+ <variable name="RESULT">
+ <type>
+ <string/>
+ </type>
+ </variable>
+ </outputVars>
+ <localVars>
+ <variable name="pooll0">
+ <type>
+ <derived name="python_poll"/>
+ </type>
+ </variable>
+ <variable name="ACK">
+ <type>
+ <BOOL/>
+ </type>
+ </variable>
+ <variable name="INPUT_ARGS">
+ <type>
+ <string/>
+ </type>
+ </variable>
+ <variable name="INPUT_VALUE">
+ <type>
+ <string/>
+ </type>
+ </variable>
+ <variable name="INPUT_VALUE_CODE">
+ <type>
+ <string/>
+ </type>
+ </variable>
+ <variable name="CODE">
+ <type>
+ <string/>
+ </type>
+ </variable>
+ </localVars>
+ </interface>
+ <body>
+ <ST>
+ <xhtml:p><![CDATA[INPUT_VALUE:=INT_TO_STRING(BUZZ_VALUE); INPUT_ARGS:=INPUT_VALUE; INPUT_VALUE_CODE:=CONCAT('PLCObject.MWProvider.SetBuzzerValue(', INPUT_ARGS, ')'); pooll0(TRIG := TRIG, CODE := INPUT_VALUE_CODE, ACK => ACK, RESULT => RESULT);]]></xhtml:p>
+ </ST>
+ </body>
+ </pou>
+
</pous>
</types>
<instances>