<?xml version="1.0" encoding="UTF-8"?>
<project>
    <fileHeader companyName="Zentec" productName="FBDEditor" productVersion="4.5" creationDataTime="2015-10-25T13:58:58"/>
    <contentHeader name="" device="ZT400_I_v2" modificationDataTime="2015-11-02T22:18:39" version="1" autor="" language="" uuid="{3b3d1a15-838c-44fc-8a30-25266547243b}"/>
    <parameter address="247" byteOrder="0" regOrder="0" baseTimer="800" debugPort="COM3" programmMode="0" mode="0" ordProg="0" simIn="1" simOut="1" allDebug="1" resetEEPROM="0" IPAddress="">
        <overflow>0</overflow>
        <debugPort>COM0</debugPort>
        <optimize_usage>1</optimize_usage>
        <optimize_macro_multi_auto>1</optimize_macro_multi_auto>
        <optimize_macro_single_auto>1</optimize_macro_single_auto>
        <optimize_bool_pack>1</optimize_bool_pack>
        <optimize_cond_exec>1</optimize_cond_exec>
    </parameter>
    <coordinateInfo>
        <fbd>
            <pageSize Format="0" Orient="1" x="1" y="1"/>
            <scaling x="10" y="10"/>
        </fbd>
    </coordinateInfo>
    <deviceInfo>
        <dev idSlave="0" idProgramm="pmInterpreter" delay="0"/>
        <ports>
            <port name="COM0" protocol="0">
                <addData>
                    <boudrate>9600</boudrate>
                    <parity>even</parity>
                    <emuport>COM1</emuport>
                    <timeout>150</timeout>
                </addData>
            </port>
            <port name="COM1" protocol="0">
                <addData>
                    <boudrate>9600</boudrate>
                    <parity>even</parity>
                    <emuport>COM1</emuport>
                    <timeout>150</timeout>
                </addData>
            </port>
        </ports>
        <slaves/>
        <devvar>
            <variable name="DEVADDR" flags="2" localId="0" const="0" def="247" phys="2">
                <type>UInt8</type>
                <modbus en="2"/>
                <EEPROM en="1"/>
            </variable>
            <variable name="ERR" flags="2" localId="0" const="0" def="0" phys="2">
                <type>UInt8</type>
                <modbus en="2"/>
                <EEPROM en="0"/>
            </variable>
            <variable name="USERDBG" flags="2" localId="0" const="0" def="0" phys="2">
                <type>UInt16</type>
                <modbus en="0"/>
                <EEPROM en="0"/>
            </variable>
            <variable name="vs_timer" flags="2" localId="0" const="0" def="false" phys="2">
                <type>Bool</type>
                <modbus en="0"/>
                <EEPROM en="0"/>
            </variable>
            <variable name="fbd_eeprom_change" flags="2" localId="0" const="0" def="false" phys="2">
                <type>Bool</type>
                <modbus en="0"/>
                <EEPROM en="0"/>
            </variable>
            <variable name="counter_sw_rele" flags="2" localId="0" const="0" def="0" phys="2">
                <type>UInt8</type>
                <modbus en="0"/>
                <EEPROM en="0"/>
            </variable>
            <variable name="MB_SL_WR_ERR" flags="2" localId="0" const="0" def="0" phys="2">
                <type>UInt8</type>
                <modbus en="0"/>
                <EEPROM en="0"/>
            </variable>
            <variable name="overflow" flags="2" localId="0" const="0" def="false" phys="2">
                <type>Bool</type>
                <modbus en="0"/>
                <EEPROM en="0"/>
            </variable>
            <variable name="v_mb_fict_rdy" flags="2" localId="0" const="0" def="false" phys="2">
                <type>Bool</type>
                <modbus en="0"/>
                <EEPROM en="0"/>
            </variable>
            <variable name="num_buf1" flags="2" localId="0" const="0" def="0" phys="2">
                <type>UInt32</type>
                <modbus en="0"/>
                <EEPROM en="0"/>
            </variable>
            <variable name="num_buf2" flags="2" localId="0" const="0" def="0" phys="2">
                <type>UInt32</type>
                <modbus en="0"/>
                <EEPROM en="0"/>
            </variable>
            <variable name="num_buf3" flags="2" localId="0" const="0" def="0" phys="2">
                <type>UInt32</type>
                <modbus en="0"/>
                <EEPROM en="0"/>
            </variable>
            <variable name="COMFL" flags="2" localId="0" const="0" def="0" phys="2">
                <type>UInt8</type>
                <modbus en="2"/>
                <EEPROM en="1"/>
            </variable>
            <variable name="COMFL1" flags="2" localId="0" const="0" def="0" phys="2">
                <type>UInt8</type>
                <modbus en="2"/>
                <EEPROM en="1"/>
            </variable>
        </devvar>
    </deviceInfo>
    <debugPoint>
        <maxID>0</maxID>
    </debugPoint>
    <types>
        <dataTypes/>
        <WizardTemplates/>
        <pous idFolder="1">
            <folders>
                <folder id="" name="Макросы"/>
            </folders>
            <netVars>
                <var address="65520" fix="1" context="&lt;fbdContext t=&quot;tdevicevar&quot; name=&quot;DEVADDR&quot;/&gt;" comment="Адрес устройства" access="2"/>
                <var address="65528" fix="1" context="&lt;fbdContext t=&quot;tdevicevar&quot; name=&quot;ERR&quot;/&gt;" comment="Код ошибки" access="2"/>
                <var address="65521" fix="1" context="&lt;fbdContext t=&quot;tdevicevar&quot; name=&quot;COMFL&quot;/&gt;" comment="Параметры порта COM0" access="2"/>
                <var address="65522" fix="1" context="&lt;fbdContext t=&quot;tdevicevar&quot; name=&quot;COMFL1&quot;/&gt;" comment="Параметры порта COM1" access="2"/>
            </netVars>
            <eepromVars>
                <var address="253" bitpoz="1684170300" fix="1" context="&lt;fbdContext t=&quot;tdevicevar&quot; name=&quot;DEVADDR&quot;/&gt;" comment="Адрес устройства"/>
                <var address="224" bitpoz="1684170300" fix="1" context="&lt;fbdContext t=&quot;tdevicevar&quot; name=&quot;COMFL&quot;/&gt;" comment="Параметры порта COM0"/>
                <var address="225" bitpoz="1684170300" fix="1" context="&lt;fbdContext t=&quot;tdevicevar&quot; name=&quot;COMFL1&quot;/&gt;" comment="Параметры порта COM1"/>
            </eepromVars>
            <eepromMap>
                <array>feffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2323fffffffffffffffffffffffffffffffffffffffffffffffffffffff7ffff</array>
            </eepromMap>
            <pou name="Проект" pouType="programm" pouUuid="{9bc23384-3947-4c29-9637-01e181b14e47}" localId="102" description="">
                <addData>
                    <pageSize Format="0" Orient="1" x="1" y="1"/>
                    <dirpath></dirpath>
                </addData>
                <interface>
                    <localVars>
                        <localId>8</localId>
                    </localVars>
                </interface>
                <body>
                    <FBD>
                        <block localId="1" width="80" height="30" typeName="DISCRETIN" instanceName="Блок1" description="" zOrder="0" block="0" dataType="Bool" capt="0">
                            <addData>
                                <varName>DIN1</varName>
                            </addData>
                            <position x="50" y="110"/>
                            <inputVariables/>
                            <outputVariables>
                                <variable formalParameter="out" description="" type="out" negated="0" dataType="Bool" pubName="out" isCaption="0" dynamic="0">
                                    <debugPoint debug="0"/>
                                    <connectionPointOut>
                                        <relPosition x="80" y="20" size="20"/>
                                        <refConnect LocalId="93"/>
                                        <refConnect LocalId="95"/>
                                        <refConnect LocalId="98"/>
                                    </connectionPointOut>
                                </variable>
                            </outputVariables>
                        </block>
                        <block localId="90" width="60" height="30" typeName="EEPROM_WRITE" instanceName="Блок3" description="Запись локальных переменных в ППЗУ" zOrder="90" block="0" dataType="Bool" capt="0">
                            <addData/>
                            <position x="710" y="410"/>
                            <inputVariables>
                                <variable formalParameter="en" type="in" description="" negated="0" fronts="0" dataType="Bool" pubName="en" isCaption="1" dynamic="0" isConst="0" valConst="false" formConst="10">
                                    <connectionPointIn>
                                        <relPosition x="0" y="20" size="20"/>
                                        <refConnect LocalId="94"/>
                                    </connectionPointIn>
                                </variable>
                            </inputVariables>
                            <outputVariables/>
                        </block>
                        <block localId="91" width="60" height="70" typeName="IF" instanceName="Блок5" description="" zOrder="91" block="0" dataType="Bool" capt="0">
                            <addData/>
                            <position x="490" y="390"/>
                            <inputVariables>
                                <variable formalParameter="if" type="in" description="" negated="0" fronts="0" dataType="Bool" pubName="if" isCaption="1" dynamic="0" isConst="0" valConst="false" formConst="10">
                                    <connectionPointIn>
                                        <relPosition x="0" y="20" size="20"/>
                                        <refConnect LocalId="93"/>
                                    </connectionPointIn>
                                </variable>
                                <variable formalParameter="in1" type="in" description="" negated="0" fronts="0" dataType="Bool" pubName="true" isCaption="1" dynamic="0" isConst="0" valConst="false" formConst="10">
                                    <connectionPointIn>
                                        <relPosition x="0" y="40" size="20"/>
                                        <refConnect LocalId="95"/>
                                    </connectionPointIn>
                                </variable>
                                <variable formalParameter="in2" type="in" description="" negated="0" fronts="0" dataType="Bool" pubName="false" isCaption="1" dynamic="0" isConst="0" valConst="false" formConst="10">
                                    <connectionPointIn>
                                        <relPosition x="0" y="60" size="20"/>
                                    </connectionPointIn>
                                </variable>
                            </inputVariables>
                            <outputVariables>
                                <variable formalParameter="out" description="" type="out" negated="0" dataType="Bool" pubName="out" isCaption="0" dynamic="0">
                                    <debugPoint debug="0"/>
                                    <connectionPointOut>
                                        <relPosition x="60" y="40" size="20"/>
                                        <refConnect LocalId="94"/>
                                    </connectionPointOut>
                                </variable>
                            </outputVariables>
                        </block>
                        <block localId="96" width="60" height="30" typeName="NOT" instanceName="Блок4" description="" zOrder="96" block="0" dataType="Bool" capt="0">
                            <addData/>
                            <position x="560" y="90"/>
                            <inputVariables>
                                <variable formalParameter="in" type="in" description="" negated="0" fronts="0" dataType="Bool" pubName="in" isCaption="0" dynamic="0" isConst="0" valConst="false" formConst="10">
                                    <connectionPointIn>
                                        <relPosition x="0" y="20" size="20"/>
                                        <refConnect LocalId="98"/>
                                    </connectionPointIn>
                                </variable>
                            </inputVariables>
                            <outputVariables>
                                <variable formalParameter="out" description="" type="out" negated="1" dataType="Bool" pubName="out" isCaption="0" dynamic="0">
                                    <debugPoint debug="0"/>
                                    <connectionPointOut>
                                        <relPosition x="60" y="20" size="20"/>
                                        <refConnect LocalId="102"/>
                                    </connectionPointOut>
                                </variable>
                            </outputVariables>
                        </block>
                        <block localId="101" width="80" height="30" typeName="DISCRETOUT" instanceName="Блок2" description="" zOrder="0" block="0" dataType="Bool" capt="0">
                            <addData>
                                <varName>DOUT1</varName>
                            </addData>
                            <position x="820" y="90"/>
                            <inputVariables>
                                <variable formalParameter="in" type="in" description="" negated="0" fronts="0" dataType="Bool" pubName="in" isCaption="0" dynamic="0" isConst="0" valConst="false" formConst="10">
                                    <connectionPointIn>
                                        <relPosition x="0" y="20" size="20"/>
                                        <refConnect LocalId="102"/>
                                    </connectionPointIn>
                                </variable>
                            </inputVariables>
                            <outputVariables/>
                        </block>
                        <connection formalParameterOut="out" refLocalIdOut="1" formalParameterIn="if" refLocalIdIn="91" localId="93" name="out" zOrder="-1" block="0" type="0">
                            <position x="150" y="130"/>
                            <position x="310" y="130"/>
                            <position x="310" y="410"/>
                            <position x="470" y="410"/>
                        </connection>
                        <connection formalParameterOut="out" refLocalIdOut="91" formalParameterIn="en" refLocalIdIn="90" localId="94" name="out1" zOrder="-1" block="0" type="0">
                            <position x="570" y="430"/>
                            <position x="630" y="430"/>
                            <position x="630" y="430"/>
                            <position x="690" y="430"/>
                        </connection>
                        <connection formalParameterOut="out" refLocalIdOut="1" formalParameterIn="in1" refLocalIdIn="91" localId="95" name="out" zOrder="-1" block="0" type="0">
                            <position x="150" y="130"/>
                            <position x="310" y="130"/>
                            <position x="310" y="430"/>
                            <position x="470" y="430"/>
                        </connection>
                        <connection formalParameterOut="out" refLocalIdOut="1" formalParameterIn="in" refLocalIdIn="96" localId="98" name="out" zOrder="-1" block="0" type="0">
                            <position x="150" y="130"/>
                            <position x="310" y="130"/>
                            <position x="310" y="110"/>
                            <position x="540" y="110"/>
                        </connection>
                        <connection formalParameterOut="out" refLocalIdOut="96" formalParameterIn="in" refLocalIdIn="101" localId="102" name="out2" zOrder="-1" block="0" type="0">
                            <position x="640" y="110"/>
                            <position x="720" y="110"/>
                            <position x="720" y="110"/>
                            <position x="800" y="110"/>
                        </connection>
                    </FBD>
                </body>
            </pou>
        </pous>
    </types>
</project>
