exemples/python/plc.xml
changeset 3843 832bcf1b5b60
parent 3528 c269f256a7c4
equal deleted inserted replaced
3842:3922024076b3 3843:832bcf1b5b60
     1 <?xml version='1.0' encoding='utf-8'?>
     1 <?xml version='1.0' encoding='utf-8'?>
     2 <project xmlns="http://www.plcopen.org/xml/tc6_0201" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xhtml="http://www.w3.org/1999/xhtml" xsi:schemaLocation="http://www.plcopen.org/xml/tc6_0201">
     2 <project xmlns="http://www.plcopen.org/xml/tc6_0201" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xhtml="http://www.w3.org/1999/xhtml" xsi:schemaLocation="http://www.plcopen.org/xml/tc6_0201">
     3   <fileHeader companyName="" productName="Beremiz" productVersion="0.0" creationDateTime="2008-12-14T16:21:19" contentDescription="This example shows many features in Beremiz:&#10;&#10;   1. How to implement python extensions.&#10;   2. How to implement basic C extension.&#10;   3. How to use C code in IEC POUs.&#10;   4. How to call C functions from python code.&#10;   5. How to avoid race conditions between IEC, C and python code.&#10;   6. How to convert betweet different IEC types.&#10;"/>
     3   <fileHeader companyName="" productName="Beremiz" productVersion="0.0" creationDateTime="2008-12-14T16:21:19" contentDescription="This example shows many features in Beremiz:&#10;&#10;   1. How to implement python extensions.&#10;   2. How to implement basic C extension.&#10;   3. How to use C code in IEC POUs.&#10;   4. How to call C functions from python code.&#10;   5. How to avoid race conditions between IEC, C and python code.&#10;   6. How to convert betweet different IEC types.&#10;"/>
     4   <contentHeader name="Beremiz Python Support Tests" modificationDateTime="2022-07-03T16:04:31">
     4   <contentHeader name="Beremiz Python Support Tests" modificationDateTime="2023-09-28T17:24:49">
     5     <coordinateInfo>
     5     <coordinateInfo>
     6       <pageSize x="1024" y="1024"/>
     6       <pageSize x="1024" y="1024"/>
     7       <fbd>
     7       <fbd>
     8         <scaling x="5" y="5"/>
     8         <scaling x="5" y="5"/>
     9       </fbd>
     9       </fbd>
   272             <inVariable localId="4" height="30" width="315" executionOrderId="0" negated="false">
   272             <inVariable localId="4" height="30" width="315" executionOrderId="0" negated="false">
   273               <position x="200" y="390"/>
   273               <position x="200" y="390"/>
   274               <connectionPointOut>
   274               <connectionPointOut>
   275                 <relPosition x="315" y="15"/>
   275                 <relPosition x="315" y="15"/>
   276               </connectionPointOut>
   276               </connectionPointOut>
   277               <expression>'sys.stdout.write("Hello world\n")'</expression>
   277               <expression>'MyPrintFunction("Hello world\n")'</expression>
   278             </inVariable>
   278             </inVariable>
   279             <block localId="5" width="125" height="80" typeName="python_eval" instanceName="py1" executionOrderId="0">
   279             <block localId="5" width="125" height="80" typeName="python_eval" instanceName="py1" executionOrderId="0">
   280               <position x="686" y="400"/>
   280               <position x="686" y="400"/>
   281               <inputVariables>
   281               <inputVariables>
   282                 <variable formalParameter="TRIG">
   282                 <variable formalParameter="TRIG">
   397             <inVariable localId="9" height="30" width="370" executionOrderId="0" negated="false">
   397             <inVariable localId="9" height="30" width="370" executionOrderId="0" negated="false">
   398               <position x="295" y="595"/>
   398               <position x="295" y="595"/>
   399               <connectionPointOut>
   399               <connectionPointOut>
   400                 <relPosition x="370" y="15"/>
   400                 <relPosition x="370" y="15"/>
   401               </connectionPointOut>
   401               </connectionPointOut>
   402               <expression>'sys.stdout.write("FBID :"+str(FBID)+"\n")'</expression>
   402               <expression>'MyPrintFunction("FBID :"+str(FBID)+"\n")'</expression>
   403             </inVariable>
   403             </inVariable>
   404             <inVariable localId="11" height="30" width="290" executionOrderId="0" negated="false">
   404             <inVariable localId="11" height="30" width="290" executionOrderId="0" negated="false">
   405               <position x="295" y="735"/>
   405               <position x="295" y="735"/>
   406               <connectionPointOut>
   406               <connectionPointOut>
   407                 <relPosition x="290" y="15"/>
   407                 <relPosition x="290" y="15"/>