<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.plcopen.org/xml/tc6.xsd"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xsi:schemaLocation="http://www.plcopen.org/xml/tc6.xsd">
<fileHeader companyName="LOLITECH"
creationDateTime="2008-12-14 16:21:19"/>
<contentHeader name="Beremiz Python Support Tests"
modificationDateTime="2009-01-16 21:51:43">
<pageSize x="1024" y="1024"/>
<pou name="main_pytest" pouType="program">
<variable name="pytest_var1">
<variable name="pytest_var2">
<derived name="python_poll"/>
<derived name="python_poll"/>
<derived name="python_poll"/>
<variable name="pytest_var3">
<derived name="python_eval"/>
<inVariable localId="4" height="30" width="160">
<position x="70" y="600"/>
<relPosition x="160" y="15"/>
<expression>'last_point[0]'</expression>
<block localId="5" width="125" height="80" typeName="python_poll" instanceName="py2">
<position x="260" y="550"/>
<variable formalParameter="TRIG">
<relPosition x="0" y="35"/>
<connection refLocalId="25" formalParameter="OUT">
<position x="260" y="585"/>
<position x="245" y="585"/>
<position x="245" y="520"/>
<position x="920" y="520"/>
<position x="920" y="470"/>
<position x="870" y="470"/>
<variable formalParameter="CODE">
<relPosition x="0" y="65"/>
<connection refLocalId="4">
<position x="260" y="615"/>
<position x="230" y="615"/>
<variable formalParameter="ACK">
<relPosition x="125" y="35"/>
<variable formalParameter="RESULT">
<relPosition x="125" y="65"/>
<block localId="8" width="125" height="80" typeName="python_poll" instanceName="py3">
<position x="260" y="660"/>
<variable formalParameter="TRIG">
<relPosition x="0" y="35"/>
<connection refLocalId="25" formalParameter="OUT">
<position x="260" y="695"/>
<position x="245" y="695"/>
<position x="245" y="520"/>
<position x="920" y="520"/>
<position x="920" y="470"/>
<position x="870" y="470"/>
<variable formalParameter="CODE">
<relPosition x="0" y="65"/>
<connection refLocalId="9">
<position x="260" y="725"/>
<position x="230" y="725"/>
<variable formalParameter="ACK">
<relPosition x="125" y="35"/>
<variable formalParameter="RESULT">
<relPosition x="125" y="65"/>
<inVariable localId="9" height="30" width="160">
<position x="70" y="710"/>
<relPosition x="160" y="15"/>
<expression>'last_point[1]'</expression>
<inVariable localId="11" height="30" width="100">
<position x="125" y="455"/>
<relPosition x="100" y="15"/>
<expression>'btA'</expression>
<block localId="12" width="125" height="80" typeName="python_poll" instanceName="py1">
<position x="260" y="405"/>
<variable formalParameter="TRIG">
<relPosition x="0" y="35"/>
<connection refLocalId="41">
<position x="260" y="440"/>
<position x="235" y="440"/>
<position x="235" y="435"/>
<position x="225" y="435"/>
<variable formalParameter="CODE">
<relPosition x="0" y="65"/>
<connection refLocalId="11">
<position x="260" y="470"/>
<position x="225" y="470"/>
<variable formalParameter="ACK">
<relPosition x="125" y="35"/>
<variable formalParameter="RESULT">
<relPosition x="125" y="65"/>
<comment localId="16" height="90" width="680">
<position x="50" y="25"/>
<![CDATA[This example test that, despite of 2T period clock stimulating TRIG pin of pyth_eval blocks, blocks keep executing one after the other, in respect of execution order.]]>
<block localId="24" width="155" height="80" typeName="STRING_TO_UINT">
<position x="505" y="405"/>
<variable formalParameter="EN">
<relPosition x="0" y="35"/>
<connection refLocalId="12" formalParameter="ACK">
<position x="505" y="440"/>
<position x="385" y="440"/>
<variable formalParameter="IN">
<relPosition x="0" y="65"/>
<connection refLocalId="12" formalParameter="RESULT">
<position x="505" y="470"/>
<position x="385" y="470"/>
<variable formalParameter="ENO">
<relPosition x="155" y="35"/>
<variable formalParameter="OUT">
<relPosition x="155" y="65"/>
<block localId="25" width="135" height="45" typeName="UINT_TO_BOOL">
<position x="735" y="440"/>
<variable formalParameter="IN">
<relPosition x="0" y="30"/>
<connection refLocalId="24" formalParameter="OUT">
<position x="735" y="470"/>
<position x="660" y="470"/>
<variable formalParameter="OUT">
<relPosition x="135" y="30"/>
<inVariable localId="31" height="30" width="160">
<position x="570" y="740"/>
<relPosition x="160" y="15"/>
<expression>'\n")'</expression>
<block localId="32" width="125" height="85" typeName="python_eval" instanceName="Block1">
<position x="960" y="550"/>
<variable formalParameter="TRIG">
<relPosition x="0" y="35"/>
<connection refLocalId="34" formalParameter="ENO">
<position x="960" y="585"/>
<position x="920" y="585"/>
<variable formalParameter="CODE">
<relPosition x="0" y="70"/>
<connection refLocalId="34" formalParameter="OUT">
<position x="960" y="620"/>
<position x="920" y="620"/>
<variable formalParameter="ACK">
<relPosition x="125" y="35"/>
<variable formalParameter="RESULT">
<relPosition x="125" y="70"/>
<block localId="33" width="80" height="65" typeName="AND">
<position x="455" y="555"/>
<variable formalParameter="IN1">
<relPosition x="0" y="30"/>
<connection refLocalId="5" formalParameter="ACK">
<position x="455" y="585"/>
<position x="385" y="585"/>
<variable formalParameter="IN2">
<relPosition x="0" y="55"/>
<connection refLocalId="8" formalParameter="ACK">
<position x="455" y="610"/>
<position x="435" y="610"/>
<position x="435" y="695"/>
<position x="385" y="695"/>
<variable formalParameter="OUT">
<relPosition x="80" y="30"/>
<block localId="34" width="80" height="225" typeName="CONCAT">
<position x="840" y="550"/>
<variable formalParameter="EN">
<relPosition x="0" y="35"/>
<connection refLocalId="33" formalParameter="OUT">
<position x="840" y="585"/>
<position x="535" y="585"/>
<variable formalParameter="IN1">
<relPosition x="0" y="70"/>
<connection refLocalId="35">
<position x="840" y="620"/>
<position x="800" y="620"/>
<variable formalParameter="IN2">
<relPosition x="0" y="105"/>
<connection refLocalId="5" formalParameter="RESULT">
<position x="840" y="655"/>
<position x="415" y="655"/>
<position x="415" y="615"/>
<position x="385" y="615"/>
<variable formalParameter="IN3">
<relPosition x="0" y="140"/>
<connection refLocalId="36">
<position x="840" y="690"/>
<position x="640" y="690"/>
<variable formalParameter="IN4">
<relPosition x="0" y="175"/>
<connection refLocalId="8" formalParameter="RESULT">
<position x="840" y="725"/>
<position x="385" y="725"/>
<variable formalParameter="IN5">
<relPosition x="0" y="205"/>
<connection refLocalId="31">
<position x="840" y="755"/>
<position x="730" y="755"/>
<variable formalParameter="ENO">
<relPosition x="80" y="35"/>
<variable formalParameter="OUT">
<relPosition x="80" y="70"/>
<inVariable localId="35" height="30" width="230">
<position x="570" y="605"/>
<relPosition x="230" y="15"/>
<expression>'sys.stdout.write("x:'</expression>
<inVariable localId="36" height="30" width="70">
<position x="570" y="675"/>
<relPosition x="70" y="15"/>
<expression>', y:'</expression>
<inVariable localId="41" height="30" width="100">
<position x="125" y="420"/>
<relPosition x="100" y="15"/>
<expression>BOOL#TRUE</expression>
<configuration name="conf_pytest">
<resource name="res_pytest">
<task name="pytest_task" interval="00:00:00.100000" priority="0"/>
<pouInstance name="pytest_instance" type="main_pytest"/>