<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--杭途科技——规约协议导出文件V1.0_周三 3月 11 15:32:04 2020-->
<Proto Version="1.0">
    <Dlls>
        <Dll NAME="md_basic"/>
        <Dll NAME="md_proto"/>
    </Dlls>
    <Case Name="案例1" caseId="1" valid="1">
        <Variables>
            <Var Name="rxBuf" Desc="接收数据缓存" Type="bytes" Len="2048" Val=""/>
            <Var Name="rxMsgBuf" Desc="接收完整数据缓存" Type="bytes" Len="1024" Val=""/>
            <Var Name="txBuf" Desc="发送一条报文缓存" Type="bytes" Len="256" Val=""/>
            <Var Name="lastSendItemTime" Desc="上次召唤组数据时间" Type="int64" Len="4" Val="0"/>
            <Var Name="scnNo" Desc="SCN序号" Type="int64" Len="1" Val="0"/>
            <Var Name="recvo" Desc="接收序号" Type="int64" Len="2" Val="0"/>
            <Var Name="sendno" Desc="发送序号" Type="int64" Len="2" Val="0"/>
            <Var Name="bInit" Desc="是否初始化" Type="int64" Len="1" Val="0"/>
            <Var Name="lastSendTime" Desc="上次发送时间" Type="int64" Len="4" Val="0"/>
            <Var Name="bWait" Desc="等待状态" Type="int64" Len="1" Val="0"/>
            <Var Name="lastSendGiTime" Desc="上次发送总招时间" Type="int64" Len="4" Val="0"/>
            <Var Name="lastRevTime" Desc="上次接收数据时间" Type="int64" Len="4" Val="0"/>
            <Var Name="status" Desc="步骤" Type="int64" Len="1" Val="0"/>
            <Var Name="reSendNum" Desc="重复次数" Type="int64" Len="1" Val="0"/>
            <Var Name="rxINum" Desc="接收I帧次数" Type="int64" Len="1" Val="0"/>
            <Var Name="lastSysTime" Desc="上次对时时间" Type="int64" Len="4" Val="0"/>
            <Var Name="descBuf" Desc="发送描述" Type="string" Len="512" Val="0"/>
            <Var Name="lastRevGiTime" Desc="上次接收总招时间" Type="int64" Len="4" Val="0"/>
            <Var Name="lastRevItemTime" Desc="上次接收招组数据时间" Type="int64" Len="4" Val="0"/>
        </Variables>
        <receive/>
        <send>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_receive" Name="md_receive" desc="从平台获取报文"/>
                <MdId Id="325"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId="303"/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="462"/>
                </NextMd>
                <Inputs/>
                <Outputs>
                    <Out Name="rxBuf" Desc="读缓存" Type="bytes" IsConst="0" VarName="rxBuf"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_get_time" Name="md_get_time" desc="获取当前时间"/>
                <MdId Id="413"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId=""/>
                </NextMd>
                <Inputs/>
                <Outputs>
                    <Out Name="currTime" Desc="当前时间" Type="string" IsConst="0" VarName="lastSendTime"/>
                </Outputs>
                <Configs>
                    <Cfg Name="type" Desc="时间类型(0:毫秒1:秒）" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="425"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="220"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="1"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="bWait"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="265"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="1"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="bWait"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_proto" CreatMdApi="create_md_103_jz_msg" Name="md_103_jz_msg" desc="金智科技网络103I帧报文组包解包"/>
                <MdId Id="462"/>
                <NextMd>
                    <Ret Name="ret" Desc="s帧" RetVal="-7" NextMdId="345"/>
                    <Ret Name="asdu21" Desc="asdu21" RetVal="21" NextMdId="391"/>
                    <Ret Name="asdu10" Desc="asdu10" RetVal="10" NextMdId="312"/>
                    <Ret Name="asdu7" Desc="asdu7" RetVal="7" NextMdId="391"/>
                    <Ret Name="asdu6" Desc="asdu6" RetVal="6" NextMdId="391"/>
                    <Ret Name="asdu5" Desc="asdu5" RetVal="5" NextMdId="391"/>
                    <Ret Name="unknown" Desc="未知帧" RetVal="-10" NextMdId=""/>
                    <Ret Name="testAck" Desc="测试链路确认" RetVal="-6" NextMdId="475"/>
                    <Ret Name="test" Desc="测试链路" RetVal="-5" NextMdId="461"/>
                    <Ret Name="stopAck" Desc="停止激活链路确认" RetVal="-4" NextMdId="334"/>
                    <Ret Name="stop" Desc="停止激活链路" RetVal="-3" NextMdId="316"/>
                    <Ret Name="startAck" Desc="激活链路确认" RetVal="-2" NextMdId="315"/>
                    <Ret Name="start" Desc="激活链路" RetVal="-1" NextMdId=""/>
                    <Ret Name="fail" Desc="数据不完整" RetVal="0" NextMdId="325"/>
                    <Ret Name="ok" Desc="组包成功" RetVal="1" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="recvno" Desc="接收序号" Type="int64" IsConst="0" VarName="recvo"/>
                    <in Name="sendno" Desc="发送序号" Type="int64" IsConst="0" VarName="sendno"/>
                    <in Name="rxBuf" Desc="从平台通道接收报文缓存" Type="bytes" IsConst="0" VarName="rxBuf"/>
                </Inputs>
                <Outputs>
                    <Out Name="rxMsgBuf" Desc="接收一帧完整报文缓存" Type="bytes" IsConst="0" VarName="rxMsgBuf"/>
                    <Out Name="txBuf" Desc="发送缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                </Outputs>
                <Configs>
                    <Cfg Name="cotBytes" Desc="asdu中原因字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="addrBytes" Desc="asdu中地址字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="DorE" Desc="解包或组包(0组包1解包)" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="desDevAddr" Desc="目的设备地址" Type="double" IsConst="1" Val="0"/>
                    <Cfg Name="desAddr" Desc="目的地址" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="srcDevAddr" Desc="源设备地址" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="srcAddr" Desc="源地址" Type="int64" IsConst="1" Val="0"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_time_out" Name="md_time_out" desc="超时"/>
                <MdId Id="302"/>
                <NextMd>
                    <Ret Name="false" Desc="未超时" RetVal="0" NextMdId=""/>
                    <Ret Name="true" Desc="超时" RetVal="1" NextMdId="309"/>
                </NextMd>
                <Inputs>
                    <in Name="startTime" Desc="计时时间" Type="int64" IsConst="0" VarName="lastSendTime"/>
                </Inputs>
                <Outputs/>
                <Configs>
                    <Cfg Name="timeOut" Desc="超时周期" Type="int64" IsConst="1" Val="15"/>
                    <Cfg Name="type" Desc="时间类型(0:毫秒1:秒）" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_get_time" Name="md_get_time" desc="获取当前时间"/>
                <MdId Id="342"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="265"/>
                </NextMd>
                <Inputs/>
                <Outputs>
                    <Out Name="currTime" Desc="当前时间" Type="string" IsConst="0" VarName="lastSendTime"/>
                </Outputs>
                <Configs>
                    <Cfg Name="type" Desc="时间类型(0:毫秒1:秒）" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_proto" CreatMdApi="create_md_103_rx_asdu10" Name="md_103_rx_asdu10" desc="tcp103解释asdu10"/>
                <MdId Id="466"/>
                <NextMd>
                    <Ret Name="cotErr" Desc="错误回复" RetVal="-1" NextMdId=""/>
                    <Ret Name="cotErr" Desc="错误回复" RetVal="-2" NextMdId="323"/>
                    <Ret Name="gi" Desc="收到遥测要信" RetVal="7" NextMdId="382"/>
                    <Ret Name="giover" Desc="总招结束" RetVal="6" NextMdId="347"/>
                    <Ret Name="sg" Desc="定值组" RetVal="5" NextMdId="378"/>
                    <Ret Name="err" Desc="执行失败" RetVal="-1" NextMdId=""/>
                    <Ret Name="dz" Desc="定值" RetVal="3" NextMdId="376"/>
                    <Ret Name="yk" Desc="遥控" RetVal="2" NextMdId="377"/>
                    <Ret Name="success" Desc="发送成功" RetVal="0" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="rxDataBuf" Desc="数据缓存" Type="bytes" IsConst="0" VarName="rxBuf"/>
                    <in Name="SCN" Desc="SCN" Type="int64" IsConst="0" VarName="scnNo"/>
                    <in Name="rxMsgBuf" Desc="接收完整数据缓存" Type="bytes" IsConst="0" VarName="rxMsgBuf"/>
                </Inputs>
                <Outputs/>
                <Configs>
                    <Cfg Name="cotBytes" Desc="原因字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="addrBytes" Desc="地址字节数" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_proto" CreatMdApi="create_md_103_jz_msg" Name="md_103_jz_msg" desc="金智科技网络103I帧报文组包解包"/>
                <MdId Id="251"/>
                <NextMd>
                    <Ret Name="asdu21" Desc="asdu21" RetVal="21" NextMdId=""/>
                    <Ret Name="asdu10" Desc="asdu10" RetVal="10" NextMdId=""/>
                    <Ret Name="unknown" Desc="未知帧" RetVal="-10" NextMdId=""/>
                    <Ret Name="asdu6" Desc="asdu6" RetVal="6" NextMdId=""/>
                    <Ret Name="test" Desc="测试链路" RetVal="-5" NextMdId=""/>
                    <Ret Name="stopAck" Desc="停止激活链路确认" RetVal="-4" NextMdId=""/>
                    <Ret Name="asdu7" Desc="asdu7" RetVal="7" NextMdId=""/>
                    <Ret Name="asdu5" Desc="asdu5" RetVal="5" NextMdId=""/>
                    <Ret Name="stop" Desc="停止激活链路" RetVal="-3" NextMdId=""/>
                    <Ret Name="testAck" Desc="测试链路确认" RetVal="-6" NextMdId=""/>
                    <Ret Name="ok" Desc="组包成功" RetVal="1" NextMdId="397"/>
                    <Ret Name="fail" Desc="数据不完整" RetVal="0" NextMdId=""/>
                    <Ret Name="start" Desc="激活链路" RetVal="-1" NextMdId=""/>
                    <Ret Name="startAck" Desc="激活链路确认" RetVal="-2" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="rxBuf" Desc="从平台通道接收报文缓存" Type="bytes" IsConst="0" VarName="0"/>
                    <in Name="sendno" Desc="发送序号" Type="int64" IsConst="0" VarName="0"/>
                    <in Name="recvno" Desc="接收序号" Type="int64" IsConst="0" VarName="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="txBuf" Desc="发送缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                    <Out Name="rxMsgBuf" Desc="接收一帧完整报文缓存" Type="bytes" IsConst="0" VarName="0"/>
                </Outputs>
                <Configs>
                    <Cfg Name="cotBytes" Desc="asdu中原因字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="addrBytes" Desc="asdu中地址字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="DorE" Desc="解包或组包(0组包1解包)" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="desDevAddr" Desc="目的设备地址" Type="double" IsConst="1" Val="1"/>
                    <Cfg Name="desAddr" Desc="目的地址" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="srcDevAddr" Desc="源设备地址" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="srcAddr" Desc="源地址" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="430"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="427"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="rxINum"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_proto" CreatMdApi="create_md_103_yk_ret" Name="md_103_yk_ret" desc="tcp103遥控返回"/>
                <MdId Id="377"/>
                <NextMd>
                    <Ret Name="err" Desc="错误" RetVal="-1" NextMdId=""/>
                    <Ret Name="sel" Desc="遥控选择返回" RetVal="1" NextMdId="348"/>
                    <Ret Name="exe" Desc="遥控执行返回" RetVal="2" NextMdId="348"/>
                    <Ret Name="cancel" Desc="遥控取消返回" RetVal="3" NextMdId="348"/>
                </NextMd>
                <Inputs>
                    <in Name="SCN" Desc="序号" Type="int64" IsConst="0" VarName="scnNo"/>
                    <in Name="rxMsgBuf" Desc="数据缓存" Type="bytes" IsConst="0" VarName="rxMsgBuf"/>
                </Inputs>
                <Outputs>
                    <Out Name="txBuf" Desc="发送报文缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                </Outputs>
                <Configs>
                    <Cfg Name="sendOrRecv" Desc="发送或接收（0发送1接收)" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="addrBytes" Desc="asdu中地址字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="cotBytes" Desc="asdu中原因字节数" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="279"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="397"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="1"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="status"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_get_time" Name="md_get_time" desc="获取当前时间"/>
                <MdId Id="459"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="323"/>
                </NextMd>
                <Inputs/>
                <Outputs>
                    <Out Name="currTime" Desc="当前时间" Type="string" IsConst="0" VarName="lastRevGiTime"/>
                </Outputs>
                <Configs>
                    <Cfg Name="type" Desc="时间类型(0:毫秒1:秒）" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_send" Name="md_md_send" desc="向平台发送报文"/>
                <MdId Id="396"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="341"/>
                </NextMd>
                <Inputs>
                    <in Name="txDescBuf" Desc="发送报文描述" Type="string" IsConst="0" VarName="descBuf"/>
                    <in Name="txBuf" Desc="写缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                </Inputs>
                <Outputs/>
                <Configs>
                    <Cfg Name="sendType" Desc="发送类型" Type="int64" IsConst="1" Val="0"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="276"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="444"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="reSendNum"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_clc" Name="md_clc" desc="计算"/>
                <MdId Id="275"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="397"/>
                </NextMd>
                <Inputs>
                    <in Name="valB" Desc="输入值B" Type="int64" IsConst="1" Val="1"/>
                    <in Name="valA" Desc="输入值A" Type="int64" IsConst="0" VarName="reSendNum"/>
                </Inputs>
                <Outputs>
                    <Out Name="clcVal" Desc="计算值" Type="int64" IsConst="0" VarName="reSendNum"/>
                </Outputs>
                <Configs>
                    <Cfg Name="operSymbol" Desc="操作符" Type="string" IsConst="1" Val="+"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_proto" CreatMdApi="create_md_103_jz_msg" Name="md_103_jz_msg" desc="金智科技网络103I帧报文组包解包"/>
                <MdId Id="220"/>
                <NextMd>
                    <Ret Name="asdu7" Desc="asdu7" RetVal="7" NextMdId=""/>
                    <Ret Name="asdu6" Desc="asdu6" RetVal="6" NextMdId=""/>
                    <Ret Name="asdu5" Desc="asdu5" RetVal="5" NextMdId=""/>
                    <Ret Name="stopAck" Desc="停止激活链路确认" RetVal="-4" NextMdId=""/>
                    <Ret Name="stop" Desc="停止激活链路" RetVal="-3" NextMdId=""/>
                    <Ret Name="asdu21" Desc="asdu21" RetVal="21" NextMdId=""/>
                    <Ret Name="asdu10" Desc="asdu10" RetVal="10" NextMdId=""/>
                    <Ret Name="unknown" Desc="未知帧" RetVal="-10" NextMdId=""/>
                    <Ret Name="testAck" Desc="测试链路确认" RetVal="-6" NextMdId=""/>
                    <Ret Name="test" Desc="测试链路" RetVal="-5" NextMdId=""/>
                    <Ret Name="fail" Desc="数据不完整" RetVal="0" NextMdId=""/>
                    <Ret Name="ok" Desc="组包成功" RetVal="1" NextMdId="396"/>
                    <Ret Name="startAck" Desc="激活链路确认" RetVal="-2" NextMdId=""/>
                    <Ret Name="start" Desc="激活链路" RetVal="-1" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="rxBuf" Desc="从平台通道接收报文缓存" Type="bytes" IsConst="0" VarName="rxBuf"/>
                    <in Name="recvno" Desc="接收序号" Type="int64" IsConst="0" VarName="recvo"/>
                    <in Name="sendno" Desc="发送序号" Type="int64" IsConst="0" VarName="sendno"/>
                </Inputs>
                <Outputs>
                    <Out Name="rxMsgBuf" Desc="接收一帧完整报文缓存" Type="bytes" IsConst="0" VarName="rxMsgBuf"/>
                    <Out Name="txBuf" Desc="发送缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                </Outputs>
                <Configs>
                    <Cfg Name="srcAddr" Desc="源地址" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="cotBytes" Desc="asdu中原因字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="addrBytes" Desc="asdu中地址字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="DorE" Desc="解包或组包(0组包1解包)" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="desDevAddr" Desc="目的设备地址" Type="double" IsConst="1" Val="1"/>
                    <Cfg Name="desAddr" Desc="目的地址" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="srcDevAddr" Desc="源设备地址" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_get_time" Name="md_get_time" desc="获取当前时间"/>
                <MdId Id="345"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="442"/>
                </NextMd>
                <Inputs/>
                <Outputs>
                    <Out Name="currTime" Desc="当前时间" Type="string" IsConst="0" VarName="lastRevTime"/>
                </Outputs>
                <Configs>
                    <Cfg Name="type" Desc="时间类型(0:毫秒1:秒）" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_proto" CreatMdApi="create_md_103_jz_s" Name="md_103_jz_s" desc="金智科技网络103s帧发送"/>
                <MdId Id="427"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="412"/>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="recvno" Desc="接收序号" Type="bytes" IsConst="0" VarName="recvo"/>
                    <in Name="revcno" Desc="接收序号" Type="int64" IsConst="0" VarName="recvo"/>
                </Inputs>
                <Outputs>
                    <Out Name="txBuf" Desc="发送缓存" Type="unknown" IsConst="0" VarName="txBuf"/>
                    <Out Name="txDescBuf" Desc="发送报文描述" Type="string" IsConst="0" VarName="descBuf"/>
                </Outputs>
                <Configs>
                    <Cfg Name="srcAddr" Desc="源地址" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="srcDevAddr" Desc="源设备地址" Type="int64" IsConst="1" Val="0"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_send" Name="md_md_send" desc="向平台发送报文"/>
                <MdId Id="412"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="413"/>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="txDescBuf" Desc="发送报文描述" Type="string" IsConst="0" VarName="descBuf"/>
                    <in Name="txBuf" Desc="写缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                </Inputs>
                <Outputs/>
                <Configs>
                    <Cfg Name="sendType" Desc="发送类型" Type="int64" IsConst="1" Val="0"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_proto" CreatMdApi="create_md_103_jz_msg" Name="md_103_jz_msg" desc="金智科技网络103I帧报文组包解包"/>
                <MdId Id="259"/>
                <NextMd>
                    <Ret Name="asdu7" Desc="asdu7" RetVal="7" NextMdId=""/>
                    <Ret Name="fail" Desc="数据不完整" RetVal="0" NextMdId=""/>
                    <Ret Name="asdu6" Desc="asdu6" RetVal="6" NextMdId=""/>
                    <Ret Name="stop" Desc="停止激活链路" RetVal="-3" NextMdId=""/>
                    <Ret Name="test" Desc="测试链路" RetVal="-5" NextMdId=""/>
                    <Ret Name="stopAck" Desc="停止激活链路确认" RetVal="-4" NextMdId=""/>
                    <Ret Name="ok" Desc="组包成功" RetVal="1" NextMdId="279"/>
                    <Ret Name="asdu21" Desc="asdu21" RetVal="21" NextMdId=""/>
                    <Ret Name="asdu10" Desc="asdu10" RetVal="10" NextMdId=""/>
                    <Ret Name="startAck" Desc="激活链路确认" RetVal="-2" NextMdId=""/>
                    <Ret Name="start" Desc="激活链路" RetVal="-1" NextMdId=""/>
                    <Ret Name="asdu5" Desc="asdu5" RetVal="5" NextMdId=""/>
                    <Ret Name="unknown" Desc="未知帧" RetVal="-10" NextMdId=""/>
                    <Ret Name="testAck" Desc="测试链路确认" RetVal="-6" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="recvno" Desc="接收序号" Type="int64" IsConst="0" VarName="recvo"/>
                    <in Name="sendno" Desc="发送序号" Type="int64" IsConst="0" VarName="sendno"/>
                    <in Name="rxBuf" Desc="从平台通道接收报文缓存" Type="bytes" IsConst="0" VarName="rxBuf"/>
                </Inputs>
                <Outputs>
                    <Out Name="txBuf" Desc="发送缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                    <Out Name="rxMsgBuf" Desc="接收一帧完整报文缓存" Type="bytes" IsConst="0" VarName="rxMsgBuf"/>
                </Outputs>
                <Configs>
                    <Cfg Name="desAddr" Desc="目的地址" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="DorE" Desc="解包或组包(0组包1解包)" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="desDevAddr" Desc="目的设备地址" Type="double" IsConst="1" Val="0"/>
                    <Cfg Name="cotBytes" Desc="asdu中原因字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="srcDevAddr" Desc="源设备地址" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="srcAddr" Desc="源地址" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="addrBytes" Desc="asdu中地址字节数" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_clc" Name="md_clc" desc="计算"/>
                <MdId Id="385"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="443"/>
                </NextMd>
                <Inputs>
                    <in Name="valA" Desc="输入值A" Type="int64" IsConst="0" VarName="rxINum"/>
                    <in Name="valB" Desc="输入值B" Type="int64" IsConst="1" Val="1"/>
                </Inputs>
                <Outputs>
                    <Out Name="clcVal" Desc="计算值" Type="int64" IsConst="0" VarName="rxINum"/>
                </Outputs>
                <Configs>
                    <Cfg Name="operSymbol" Desc="操作符" Type="string" IsConst="1" Val="+"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="277"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="304"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="bWait"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_cmd_m" Name="md_cmd_m" desc="采集规约接收平台命令处理"/>
                <MdId Id="482"/>
                <NextMd>
                    <Ret Name="noCmd" Desc="无命令" RetVal="-1" NextMdId="468"/>
                    <Ret Name="usr" Desc="自定义" RetVal="100" NextMdId=""/>
                    <Ret Name="history" Desc="历史数据召唤" RetVal="27" NextMdId=""/>
                    <Ret Name="SG" Desc="定值组操作" RetVal="26" NextMdId="406"/>
                    <Ret Name="dd" Desc="电度" RetVal="25" NextMdId=""/>
                    <Ret Name="yx" Desc="遥信" RetVal="24" NextMdId=""/>
                    <Ret Name="yc" Desc="遥测" RetVal="23" NextMdId=""/>
                    <Ret Name="dz" Desc="定值" RetVal="22" NextMdId="460"/>
                    <Ret Name="yt" Desc="遥调" RetVal="21" NextMdId="460"/>
                    <Ret Name="yk" Desc="遥控" RetVal="20" NextMdId="408"/>
                    <Ret Name="gidd" Desc="总召电度命令" RetVal="3" NextMdId=""/>
                    <Ret Name="gi" Desc="总召命令" RetVal="2" NextMdId="307"/>
                    <Ret Name="systime" Desc="对时命令" RetVal="1" NextMdId="410"/>
                    <Ret Name="reset" Desc="复位命令" RetVal="0" NextMdId=""/>
                </NextMd>
                <Inputs/>
                <Outputs/>
                <Configs>
                    <Cfg Name="selecttimeout" Desc="选择命令超时时间(秒）" Type="int64" IsConst="1" Val="60"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="323"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="423"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="bWait"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_proto" CreatMdApi="create_md_103_sg" Name="md_103_sg" desc="tcp103定值组"/>
                <MdId Id="406"/>
                <NextMd>
                    <Ret Name="cancel" Desc="取消" RetVal="3" NextMdId="365"/>
                    <Ret Name="exe" Desc="执行" RetVal="2" NextMdId="365"/>
                    <Ret Name="sel" Desc="选择" RetVal="1" NextMdId="365"/>
                    <Ret Name="err" Desc="错误" RetVal="-1" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="rxMsgBuf" Desc="接收数据缓存" Type="bytes" IsConst="0" VarName="rxMsgBuf"/>
                    <in Name="addr" Desc="设备地址" Type="int64" IsConst="0" VarName="0"/>
                    <in Name="SCN" Desc="序号" Type="int64" IsConst="0" VarName="scnNo"/>
                </Inputs>
                <Outputs>
                    <Out Name="txDescBuf" Desc="发送报文描述" Type="string" IsConst="0" VarName="descBuf"/>
                    <Out Name="txBuf" Desc="发送报文缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                </Outputs>
                <Configs>
                    <Cfg Name="cotBytes" Desc="asdu中原因字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="addrBytes" Desc="asdu中地址字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="sendOrRecv" Desc="发送或接收（0发送1接收)" Type="int64" IsConst="1" Val="0"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="280"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="366"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="3"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="status"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_proto" CreatMdApi="create_md_103_jz_u" Name="md_103_jz_u" desc="金智科技网络103u帧发送"/>
                <MdId Id="428"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="396"/>
                </NextMd>
                <Inputs/>
                <Outputs>
                    <Out Name="txBuf" Desc="发送缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                    <Out Name="txDescBuf" Desc="发送报文描述" Type="string" IsConst="0" VarName="descBuf"/>
                </Outputs>
                <Configs>
                    <Cfg Name="srcAddr" Desc="源地址" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="type" Desc="u帧类型" Type="int64" IsConst="1" Val="67"/>
                    <Cfg Name="srcDevAddr" Desc="源设备地址" Type="int64" IsConst="1" Val="0"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_proto" CreatMdApi="create_md_103_sg_ret" Name="md_103_sg_ret" desc="tcp103定值组返回"/>
                <MdId Id="378"/>
                <NextMd>
                    <Ret Name="cancel" Desc="遥控取消" RetVal="3" NextMdId="350"/>
                    <Ret Name="exe" Desc="遥控执行" RetVal="2" NextMdId="350"/>
                    <Ret Name="sel" Desc="遥控选择" RetVal="1" NextMdId="350"/>
                    <Ret Name="err" Desc="错误" RetVal="-1" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="rxMsgBuf" Desc="完整数据报文缓存" Type="bytes" IsConst="0" VarName="rxMsgBuf"/>
                    <in Name="SCN" Desc="序号" Type="int64" IsConst="0" VarName="scnNo"/>
                </Inputs>
                <Outputs>
                    <Out Name="txBuf" Desc="发送报文缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                </Outputs>
                <Configs>
                    <Cfg Name="cotBytes" Desc="asdu中原因字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="addrBytes" Desc="asdu中地址字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="sendOrRecv" Desc="发送或接收（0发送1接收)" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_proto" CreatMdApi="create_md_103_jz_msg" Name="md_103_jz_msg" desc="金智科技网络103I帧报文组包解包"/>
                <MdId Id="366"/>
                <NextMd>
                    <Ret Name="asdu21" Desc="asdu21" RetVal="21" NextMdId=""/>
                    <Ret Name="asdu10" Desc="asdu10" RetVal="10" NextMdId=""/>
                    <Ret Name="asdu7" Desc="asdu7" RetVal="7" NextMdId=""/>
                    <Ret Name="asdu6" Desc="asdu6" RetVal="6" NextMdId=""/>
                    <Ret Name="asdu5" Desc="asdu5" RetVal="5" NextMdId=""/>
                    <Ret Name="unknown" Desc="未知帧" RetVal="-10" NextMdId=""/>
                    <Ret Name="testAck" Desc="测试链路确认" RetVal="-6" NextMdId=""/>
                    <Ret Name="test" Desc="测试链路" RetVal="-5" NextMdId=""/>
                    <Ret Name="stopAck" Desc="停止激活链路确认" RetVal="-4" NextMdId=""/>
                    <Ret Name="stop" Desc="停止激活链路" RetVal="-3" NextMdId=""/>
                    <Ret Name="startAck" Desc="激活链路确认" RetVal="-2" NextMdId=""/>
                    <Ret Name="start" Desc="激活链路" RetVal="-1" NextMdId=""/>
                    <Ret Name="ok" Desc="组包成功" RetVal="1" NextMdId="397"/>
                    <Ret Name="fail" Desc="数据不完整" RetVal="0" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="recvno" Desc="接收序号" Type="int64" IsConst="0" VarName="recvo"/>
                    <in Name="sendno" Desc="发送序号" Type="int64" IsConst="0" VarName="sendno"/>
                    <in Name="rxBuf" Desc="从平台通道接收报文缓存" Type="bytes" IsConst="0" VarName="rxBuf"/>
                </Inputs>
                <Outputs>
                    <Out Name="rxMsgBuf" Desc="接收一帧完整报文缓存" Type="bytes" IsConst="0" VarName="rxMsgBuf"/>
                    <Out Name="txBuf" Desc="发送缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                </Outputs>
                <Configs>
                    <Cfg Name="cotBytes" Desc="asdu中原因字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="addrBytes" Desc="asdu中地址字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="DorE" Desc="解包或组包(0组包1解包)" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="desDevAddr" Desc="目的设备地址" Type="double" IsConst="1" Val="0"/>
                    <Cfg Name="desAddr" Desc="目的地址" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="srcDevAddr" Desc="源设备地址" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="srcAddr" Desc="源地址" Type="int64" IsConst="1" Val="0"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="278"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="bWait"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_proto" CreatMdApi="create_md_103_dz_ret" Name="md_103_dz_ret" desc="tcp103定值返回"/>
                <MdId Id="376"/>
                <NextMd>
                    <Ret Name="err" Desc="错误" RetVal="-1" NextMdId=""/>
                    <Ret Name="sel" Desc="定值写选择返回" RetVal="1" NextMdId="349"/>
                    <Ret Name="exe" Desc="定值写执行返回" RetVal="2" NextMdId="349"/>
                    <Ret Name="cancel" Desc="定值写取消返回" RetVal="3" NextMdId="349"/>
                </NextMd>
                <Inputs>
                    <in Name="SCN" Desc="序号" Type="int64" IsConst="0" VarName="scnNo"/>
                    <in Name="rxMsgBuf" Desc="数据缓存" Type="bytes" IsConst="0" VarName="rxMsgBuf"/>
                </Inputs>
                <Outputs>
                    <Out Name="txBuf" Desc="发送报文缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                </Outputs>
                <Configs>
                    <Cfg Name="cotBytes" Desc="asdu中原因字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="addrBytes" Desc="asdu中地址字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="sendOrRecv" Desc="发送或接收（0发送1接收)" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_time_out" Name="md_time_out" desc="超时"/>
                <MdId Id="300"/>
                <NextMd>
                    <Ret Name="false" Desc="未超时" RetVal="0" NextMdId=""/>
                    <Ret Name="true" Desc="超时" RetVal="1" NextMdId="422"/>
                </NextMd>
                <Inputs>
                    <in Name="startTime" Desc="计时时间" Type="int64" IsConst="0" VarName="lastRevTime"/>
                </Inputs>
                <Outputs/>
                <Configs>
                    <Cfg Name="timeOut" Desc="超时周期" Type="int64" IsConst="1" Val="20"/>
                    <Cfg Name="type" Desc="时间类型(0:毫秒1:秒）" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_get_time" Name="md_get_time" desc="获取当前时间"/>
                <MdId Id="344"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="345"/>
                </NextMd>
                <Inputs/>
                <Outputs>
                    <Out Name="currTime" Desc="当前时间" Type="string" IsConst="0" VarName="lastSendTime"/>
                </Outputs>
                <Configs>
                    <Cfg Name="type" Desc="时间类型(0:毫秒1:秒）" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_get_time" Name="md_get_time" desc="获取当前时间"/>
                <MdId Id="343"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="385"/>
                </NextMd>
                <Inputs/>
                <Outputs>
                    <Out Name="currTime" Desc="当前时间" Type="string" IsConst="0" VarName="lastRevTime"/>
                </Outputs>
                <Configs>
                    <Cfg Name="type" Desc="时间类型(0:毫秒1:秒）" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_send" Name="md_md_send" desc="向平台发送报文"/>
                <MdId Id="397"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="342"/>
                </NextMd>
                <Inputs>
                    <in Name="txBuf" Desc="写缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                    <in Name="txDescBuf" Desc="发送报文描述" Type="string" IsConst="0" VarName="descBuf"/>
                </Inputs>
                <Outputs/>
                <Configs>
                    <Cfg Name="sendType" Desc="发送类型" Type="int64" IsConst="1" Val="0"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_get_time" Name="md_get_time" desc="获取当前时间"/>
                <MdId Id="341"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId=""/>
                </NextMd>
                <Inputs/>
                <Outputs>
                    <Out Name="currTime" Desc="当前时间" Type="string" IsConst="0" VarName="lastSendTime"/>
                </Outputs>
                <Configs>
                    <Cfg Name="type" Desc="时间类型(0:毫秒1:秒）" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_proto" CreatMdApi="create_md_103_jz_u" Name="md_103_jz_u" desc="金智科技网络103u帧发送"/>
                <MdId Id="402"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="282"/>
                </NextMd>
                <Inputs/>
                <Outputs>
                    <Out Name="txDescBuf" Desc="发送报文描述" Type="string" IsConst="0" VarName="descBuf"/>
                    <Out Name="txBuf" Desc="发送缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                </Outputs>
                <Configs>
                    <Cfg Name="srcDevAddr" Desc="源设备地址" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="srcAddr" Desc="源地址" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="type" Desc="u帧类型" Type="int64" IsConst="1" Val="7"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="315"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="464"/>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="1"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="bInit"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="281"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="425"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="1"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="status"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="282"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="396"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="1"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="bWait"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="316"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="345"/>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="bInit"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_proto" CreatMdApi="create_md_103_asdu7" Name="md_103_asdu7" desc="tcp103总召asdu7"/>
                <MdId Id="409"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="259"/>
                </NextMd>
                <Inputs>
                    <in Name="SCN" Desc="SCN序号" Type="int64" IsConst="0" VarName="scnNo"/>
                    <in Name="rxMsgBuf" Desc="接收完整报文缓存" Type="bytes" IsConst="0" VarName="rxMsgBuf"/>
                </Inputs>
                <Outputs>
                    <Out Name="txDescBuf" Desc="发送报文描述" Type="string" IsConst="0" VarName="descBuf"/>
                    <Out Name="txBuf" Desc="发送缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                </Outputs>
                <Configs>
                    <Cfg Name="sendOrRecv" Desc="发送或接收（0发送1接收)" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="cotBytes" Desc="asdu中原因字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="addrBytes" Desc="asdu中地址字节数" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_proto" CreatMdApi="create_md_103_yk" Name="md_103_yk" desc="tcp103遥控"/>
                <MdId Id="408"/>
                <NextMd>
                    <Ret Name="cancel" Desc="遥控取消" RetVal="3" NextMdId="280"/>
                    <Ret Name="sel" Desc="遥控选择" RetVal="1" NextMdId="280"/>
                    <Ret Name="exe" Desc="遥控执行" RetVal="2" NextMdId="280"/>
                    <Ret Name="err" Desc="错误" RetVal="-1" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="SCN" Desc="序号" Type="int64" IsConst="0" VarName="scnNo"/>
                    <in Name="rxMsgBuf" Desc="数据缓存" Type="bytes" IsConst="0" VarName="rxMsgBuf"/>
                </Inputs>
                <Outputs>
                    <Out Name="txDescBuf" Desc="发送报文描述" Type="string" IsConst="0" VarName="descBuf"/>
                    <Out Name="txBuf" Desc="发送数据缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                </Outputs>
                <Configs>
                    <Cfg Name="cotBytes" Desc="asdu中原因字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="addrBytes" Desc="asdu中地址字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="sendOrRecv" Desc="发送或接收（0发送1接收)" Type="int64" IsConst="1" Val="0"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_proto" CreatMdApi="create_md_103_asdu6" Name="md_103_asdu6" desc="tcp103对时asdu6"/>
                <MdId Id="410"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="251"/>
                </NextMd>
                <Inputs>
                    <in Name="SCN" Desc="SCN序号" Type="int64" IsConst="0" VarName="scnNo"/>
                    <in Name="rxMsgBuf" Desc="接收完整报文缓存" Type="bytes" IsConst="0" VarName="rxMsgBuf"/>
                </Inputs>
                <Outputs>
                    <Out Name="txBuf" Desc="发送缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                    <Out Name="txDescBuf" Desc="发送报文描述" Type="string" IsConst="0" VarName="descBuf"/>
                </Outputs>
                <Configs>
                    <Cfg Name="sendOrRecv" Desc="发送或接收（0发送1接收)" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="cotBytes" Desc="asdu中原因字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="addrBytes" Desc="asdu中地址字节数" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="355"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="425"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="2"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="status"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="464"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="470"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="lastSendGiTime"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_time_out" Name="md_time_out" desc="超时"/>
                <MdId Id="422"/>
                <NextMd>
                    <Ret Name="true" Desc="超时" RetVal="1" NextMdId="428"/>
                    <Ret Name="false" Desc="未超时" RetVal="0" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="startTime" Desc="计时时间" Type="int64" IsConst="0" VarName="lastSendTime"/>
                </Inputs>
                <Outputs/>
                <Configs>
                    <Cfg Name="type" Desc="时间类型(0:毫秒1:秒）" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="timeOut" Desc="超时周期" Type="int64" IsConst="1" Val="20"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="330"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="393"/>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="bWait"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_proto" CreatMdApi="create_md_103_jz_u" Name="md_103_jz_u" desc="金智科技网络103u帧发送"/>
                <MdId Id="334"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="395"/>
                </NextMd>
                <Inputs/>
                <Outputs>
                    <Out Name="txBuf" Desc="发送缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                </Outputs>
                <Configs>
                    <Cfg Name="srcDevAddr" Desc="源设备地址" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="srcAddr" Desc="源地址" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="type" Desc="u帧类型" Type="int64" IsConst="1" Val="3"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="395"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="330"/>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="bInit"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="423"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="343"/>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="status"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="365"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="366"/>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="5"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="status"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="364"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="366"/>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="4"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="status"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_get_time" Name="md_get_time" desc="获取当前时间"/>
                <MdId Id="391"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="385"/>
                </NextMd>
                <Inputs/>
                <Outputs>
                    <Out Name="currTime" Desc="当前时间" Type="string" IsConst="0" VarName="lastRevTime"/>
                </Outputs>
                <Configs>
                    <Cfg Name="type" Desc="时间类型(0:毫秒1:秒）" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_send" Name="md_md_send" desc="向平台发送报文"/>
                <MdId Id="393"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="344"/>
                </NextMd>
                <Inputs>
                    <in Name="txBuf" Desc="写缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                    <in Name="txDescBuf" Desc="发送报文描述" Type="string" IsConst="0" VarName="descBuf"/>
                </Inputs>
                <Outputs/>
                <Configs>
                    <Cfg Name="sendType" Desc="发送类型" Type="int64" IsConst="1" Val="0"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_proto" CreatMdApi="create_md_103_asdu21" Name="md_103_asdu21" desc="tcp103招组数据"/>
                <MdId Id="468"/>
                <NextMd>
                    <Ret Name="over" Desc="召唤完所有组" RetVal="2" NextMdId=""/>
                    <Ret Name="err" Desc="错误" RetVal="1" NextMdId="469"/>
                    <Ret Name="ok" Desc="成功" RetVal="0" NextMdId="281"/>
                </NextMd>
                <Inputs>
                    <in Name="lastSendTime" Desc="上次发送招时间" Type="int64" IsConst="0" VarName="lastSendGiTime"/>
                    <in Name="lastRevTime" Desc="上次接收时间" Type="int64" IsConst="0" VarName="lastRevGiTime"/>
                    <in Name="rxMsgBuf" Desc="完整数据报文缓存" Type="bytes" IsConst="0" VarName="rxMsgBuf"/>
                    <in Name="SCN" Desc="序号" Type="int64" IsConst="0" VarName="scnNo"/>
                </Inputs>
                <Outputs>
                    <Out Name="txDescBuf" Desc="发送报文描述" Type="string" IsConst="0" VarName="descBuf"/>
                    <Out Name="txBuf" Desc="发送报文缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                </Outputs>
                <Configs>
                    <Cfg Name="giCyc" Desc="总招周期(单位秒)" Type="int64" IsConst="1" Val="300"/>
                    <Cfg Name="groupNo" Desc="招单组组号" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="gi" Desc="0总招1分组招全部2分组招遥测3分组招遥信4分组招定值5分组招电度6招" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="sendOrRecv" Desc="发送或接收（0发送1接收)" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="cotBytes" Desc="asdu中原因字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="addrBytes" Desc="asdu中地址字节数" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_get_time" Name="md_get_time" desc="获取当前时间"/>
                <MdId Id="458"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="323"/>
                </NextMd>
                <Inputs/>
                <Outputs>
                    <Out Name="currTime" Desc="当前时间" Type="string" IsConst="0" VarName="lastSendItemTime"/>
                </Outputs>
                <Configs>
                    <Cfg Name="type" Desc="时间类型(0:毫秒1:秒）" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_proto" CreatMdApi="create_md_103_dz" Name="md_103_dz" desc="tcp103定值"/>
                <MdId Id="460"/>
                <NextMd>
                    <Ret Name="err" Desc="错误" RetVal="-1" NextMdId=""/>
                    <Ret Name="ret" Desc="写所有定值" RetVal="3" NextMdId=""/>
                    <Ret Name="ret" Desc="读所有定值" RetVal="2" NextMdId=""/>
                    <Ret Name="ret" Desc="写定值" RetVal="1" NextMdId="364"/>
                    <Ret Name="ret" Desc="读定值" RetVal="0" NextMdId="364"/>
                    <Ret Name="cancel" Desc="取消" RetVal="6" NextMdId="364"/>
                    <Ret Name="exe" Desc="执行" RetVal="5" NextMdId="364"/>
                    <Ret Name="sel" Desc="选择" RetVal="4" NextMdId="364"/>
                </NextMd>
                <Inputs>
                    <in Name="SCN" Desc="序号" Type="int64" IsConst="0" VarName="scnNo"/>
                    <in Name="addr" Desc="设备地址" Type="int64" IsConst="0" VarName="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="txDescBuf" Desc="发送报文描述" Type="string" IsConst="0" VarName="descBuf"/>
                    <Out Name="txBuf" Desc="发送报文缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                    <Out Name="rxMsgBuf" Desc="接收数据缓存" Type="bytes" IsConst="0" VarName="rxMsgBuf"/>
                </Outputs>
                <Configs>
                    <Cfg Name="cotBytes" Desc="asdu中原因字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="addrBytes" Desc="asdu中地址字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="sendOrRecv" Desc="发送或接收（0发送1接收)" Type="int64" IsConst="1" Val="0"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_proto" CreatMdApi="create_md_103_jz_u" Name="md_103_jz_u" desc="金智科技网络103u帧发送"/>
                <MdId Id="461"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="330"/>
                </NextMd>
                <Inputs/>
                <Outputs>
                    <Out Name="txDescBuf" Desc="发送报文描述" Type="string" IsConst="0" VarName="descBuf"/>
                    <Out Name="txBuf" Desc="发送缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                </Outputs>
                <Configs>
                    <Cfg Name="srcDevAddr" Desc="源设备地址" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="srcAddr" Desc="源地址" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="type" Desc="u帧类型" Type="int64" IsConst="1" Val="131"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_proto" CreatMdApi="create_md_103_asdu21" Name="md_103_asdu21" desc="tcp103招组数据"/>
                <MdId Id="469"/>
                <NextMd>
                    <Ret Name="over" Desc="召唤完所有组" RetVal="2" NextMdId="355"/>
                    <Ret Name="err" Desc="错误" RetVal="1" NextMdId="473"/>
                    <Ret Name="ok" Desc="成功" RetVal="0" NextMdId="355"/>
                </NextMd>
                <Inputs>
                    <in Name="lastSendTime" Desc="上次发送招时间" Type="int64" IsConst="0" VarName="lastSendItemTime"/>
                    <in Name="lastRevTime" Desc="上次接收时间" Type="int64" IsConst="0" VarName="lastRevItemTime"/>
                    <in Name="SCN" Desc="序号" Type="int64" IsConst="0" VarName="scnNo"/>
                    <in Name="rxMsgBuf" Desc="完整数据报文缓存" Type="bytes" IsConst="0" VarName="rxMsgBuf"/>
                </Inputs>
                <Outputs>
                    <Out Name="txDescBuf" Desc="发送报文描述" Type="string" IsConst="0" VarName="descBuf"/>
                    <Out Name="txBuf" Desc="发送报文缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                </Outputs>
                <Configs>
                    <Cfg Name="giCyc" Desc="总招周期(单位秒)" Type="int64" IsConst="1" Val="30"/>
                    <Cfg Name="groupNo" Desc="招单组组号" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="gi" Desc="0总招1分组招全部2分组招遥测3分组招遥信4分组招定值5分组招电度6招" Type="int64" IsConst="1" Val="5"/>
                    <Cfg Name="sendOrRecv" Desc="发送或接收（0发送1接收)" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="cotBytes" Desc="asdu中原因字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="addrBytes" Desc="asdu中地址字节数" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_pro_state" Name="md_set_pro_state" desc="设置规约状态"/>
                <MdId Id="442"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="450"/>
                </NextMd>
                <Inputs/>
                <Outputs/>
                <Configs>
                    <Cfg Name="isOk" Desc="规约状态" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_pro_state" Name="md_set_pro_state" desc="设置规约状态"/>
                <MdId Id="443"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="451"/>
                </NextMd>
                <Inputs/>
                <Outputs/>
                <Configs>
                    <Cfg Name="isOk" Desc="规约状态" Type="int64" IsConst="1" Val="1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_pro_state" Name="md_set_pro_state" desc="设置规约状态"/>
                <MdId Id="444"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="449"/>
                </NextMd>
                <Inputs/>
                <Outputs/>
                <Configs>
                    <Cfg Name="isOk" Desc="规约状态" Type="int64" IsConst="1" Val="0"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_comm_status" Name="md_set_comm_status" desc="设置通讯状态遥信"/>
                <MdId Id="451"/>
                <NextMd>
                    <Ret Name="ok" Desc="正常" RetVal="0" NextMdId="386"/>
                </NextMd>
                <Inputs/>
                <Outputs/>
                <Configs>
                    <Cfg Name="commYxNo" Desc="遥信点" Type="int64" IsConst="1" Val="-1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_comm_status" Name="md_set_comm_status" desc="设置通讯状态遥信"/>
                <MdId Id="449"/>
                <NextMd>
                    <Ret Name="ok" Desc="正常" RetVal="0" NextMdId="308"/>
                </NextMd>
                <Inputs/>
                <Outputs/>
                <Configs>
                    <Cfg Name="commYxNo" Desc="遥信点" Type="int64" IsConst="1" Val="-1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_comm_status" Name="md_set_comm_status" desc="设置通讯状态遥信"/>
                <MdId Id="450"/>
                <NextMd>
                    <Ret Name="ok" Desc="正常" RetVal="0" NextMdId=""/>
                </NextMd>
                <Inputs/>
                <Outputs/>
                <Configs>
                    <Cfg Name="commYxNo" Desc="遥信点" Type="int64" IsConst="1" Val="-1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="472"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="474"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="lastRevItemTime"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="470"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="471"/>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="lastSendItemTime"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="471"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="472"/>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="lastRevGiTime"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_proto" CreatMdApi="create_md_103_asdu6" Name="md_103_asdu6" desc="tcp103对时asdu6"/>
                <MdId Id="473"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="220"/>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId="300"/>
                </NextMd>
                <Inputs>
                    <in Name="rxMsgBuf" Desc="接收完整报文缓存" Type="bytes" IsConst="0" VarName="rxMsgBuf"/>
                    <in Name="SCN" Desc="SCN序号" Type="int64" IsConst="0" VarName="scnNo"/>
                    <in Name="lastRevTime" Desc="上次接收时间" Type="int64" IsConst="0" VarName="lastSysTime"/>
                    <in Name="lastSendTime" Desc="上次发送时间" Type="int64" IsConst="0" VarName="lastSysTime"/>
                    <in Name="lastSendTime" Desc="上次发送时间" Type="int64" IsConst="0" VarName="lastSysTime"/>
                </Inputs>
                <Outputs>
                    <Out Name="txBuf" Desc="发送缓存" Type="bytes" IsConst="0" VarName="txBuf"/>
                    <Out Name="txDescBuf" Desc="发送报文描述" Type="string" IsConst="0" VarName="descBuf"/>
                </Outputs>
                <Configs>
                    <Cfg Name="addrBytes" Desc="asdu中地址字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="cotBytes" Desc="asdu中原因字节数" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="sendOrRecv" Desc="发送或接收（0发送1接收)" Type="int64" IsConst="1" Val="0"/>
                    <Cfg Name="sysCyc" Desc="对时周期(单位秒)" Type="int64" IsConst="1" Val="600"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="474"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="475"/>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="lastSysTime"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="475"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="345"/>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="bWait"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_time_out" Name="md_time_out" desc="超时"/>
                <MdId Id="477"/>
                <NextMd>
                    <Ret Name="true" Desc="超时" RetVal="1" NextMdId="479"/>
                    <Ret Name="false" Desc="未超时" RetVal="0" NextMdId="277"/>
                </NextMd>
                <Inputs>
                    <in Name="startTime" Desc="计时时间" Type="int64" IsConst="0" VarName="lastRevTime"/>
                </Inputs>
                <Outputs/>
                <Configs>
                    <Cfg Name="type" Desc="时间类型(0:毫秒1:秒）" Type="int64" IsConst="1" Val="1"/>
                    <Cfg Name="timeOut" Desc="超时周期" Type="int64" IsConst="1" Val="20"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="479"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="428"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="1"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="bWait"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_if_else" Name="md_if_else" desc="条件跳转"/>
                <MdId Id="303"/>
                <NextMd>
                    <Ret Name="true" Desc="真" RetVal="1" NextMdId="302"/>
                    <Ret Name="false" Desc="假" RetVal="0" NextMdId="304"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="1"/>
                    <in Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="bWait"/>
                </Inputs>
                <Outputs/>
                <Configs>
                    <Cfg Name="OperSymbol" Desc="操作符号" Type="string" IsConst="1" Val="=="/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_if_else" Name="md_if_else" desc="条件跳转"/>
                <MdId Id="304"/>
                <NextMd>
                    <Ret Name="true" Desc="真" RetVal="1" NextMdId="482"/>
                    <Ret Name="false" Desc="假" RetVal="0" NextMdId="402"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="1"/>
                    <in Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="bInit"/>
                </Inputs>
                <Outputs/>
                <Configs>
                    <Cfg Name="OperSymbol" Desc="操作符号" Type="string" IsConst="1" Val="=="/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_if_else" Name="md_if_else" desc="条件跳转"/>
                <MdId Id="307"/>
                <NextMd>
                    <Ret Name="true" Desc="真" RetVal="1" NextMdId="409"/>
                    <Ret Name="false" Desc="假" RetVal="0" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="0" VarName="0"/>
                    <in Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="0"/>
                </Inputs>
                <Outputs/>
                <Configs>
                    <Cfg Name="OperSymbol" Desc="操作符号" Type="string" IsConst="1" Val="=="/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_if_else" Name="md_if_else" desc="条件跳转"/>
                <MdId Id="308"/>
                <NextMd>
                    <Ret Name="true" Desc="真" RetVal="1" NextMdId="278"/>
                    <Ret Name="false" Desc="假" RetVal="0" NextMdId="477"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="1"/>
                    <in Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="status"/>
                </Inputs>
                <Outputs/>
                <Configs>
                    <Cfg Name="OperSymbol" Desc="操作符号" Type="string" IsConst="1" Val="=="/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_if_else" Name="md_if_else" desc="条件跳转"/>
                <MdId Id="309"/>
                <NextMd>
                    <Ret Name="true" Desc="真" RetVal="1" NextMdId="276"/>
                    <Ret Name="false" Desc="假" RetVal="0" NextMdId="275"/>
                </NextMd>
                <Inputs>
                    <in Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="reSendNum"/>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="3"/>
                </Inputs>
                <Outputs/>
                <Configs>
                    <Cfg Name="OperSymbol" Desc="操作符号" Type="string" IsConst="1" Val="=="/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_if_else" Name="md_if_else" desc="条件跳转"/>
                <MdId Id="312"/>
                <NextMd>
                    <Ret Name="true" Desc="真" RetVal="1" NextMdId="466"/>
                    <Ret Name="false" Desc="假" RetVal="0" NextMdId="385"/>
                </NextMd>
                <Inputs>
                    <in Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="bInit"/>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="1"/>
                </Inputs>
                <Outputs/>
                <Configs>
                    <Cfg Name="OperSymbol" Desc="操作符号" Type="string" IsConst="1" Val="=="/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_if_else" Name="md_if_else" desc="条件跳转"/>
                <MdId Id="347"/>
                <NextMd>
                    <Ret Name="true" Desc="真" RetVal="1" NextMdId="459"/>
                    <Ret Name="false" Desc="假" RetVal="0" NextMdId="382"/>
                </NextMd>
                <Inputs>
                    <in Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="status"/>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="1"/>
                </Inputs>
                <Outputs/>
                <Configs>
                    <Cfg Name="OperSymbol" Desc="操作符号" Type="string" IsConst="1" Val="=="/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_if_else" Name="md_if_else" desc="条件跳转"/>
                <MdId Id="348"/>
                <NextMd>
                    <Ret Name="true" Desc="真" RetVal="1" NextMdId="323"/>
                    <Ret Name="false" Desc="假" RetVal="0" NextMdId="343"/>
                </NextMd>
                <Inputs>
                    <in Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="status"/>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="3"/>
                </Inputs>
                <Outputs/>
                <Configs>
                    <Cfg Name="OperSymbol" Desc="操作符号" Type="string" IsConst="1" Val="=="/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_if_else" Name="md_if_else" desc="条件跳转"/>
                <MdId Id="349"/>
                <NextMd>
                    <Ret Name="true" Desc="真" RetVal="1" NextMdId="323"/>
                    <Ret Name="false" Desc="假" RetVal="0" NextMdId="343"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="4"/>
                    <in Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="status"/>
                </Inputs>
                <Outputs/>
                <Configs>
                    <Cfg Name="OperSymbol" Desc="操作符号" Type="string" IsConst="1" Val="=="/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_if_else" Name="md_if_else" desc="条件跳转"/>
                <MdId Id="350"/>
                <NextMd>
                    <Ret Name="true" Desc="真" RetVal="1" NextMdId="323"/>
                    <Ret Name="false" Desc="假" RetVal="0" NextMdId="343"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="5"/>
                    <in Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="status"/>
                </Inputs>
                <Outputs/>
                <Configs>
                    <Cfg Name="OperSymbol" Desc="操作符号" Type="string" IsConst="1" Val="=="/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_if_else" Name="md_if_else" desc="条件跳转"/>
                <MdId Id="382"/>
                <NextMd>
                    <Ret Name="true" Desc="真" RetVal="1" NextMdId="458"/>
                    <Ret Name="false" Desc="假" RetVal="0" NextMdId="343"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="2"/>
                    <in Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="status"/>
                </Inputs>
                <Outputs/>
                <Configs>
                    <Cfg Name="OperSymbol" Desc="操作符号" Type="string" IsConst="1" Val="=="/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_if_else" Name="md_if_else" desc="条件跳转"/>
                <MdId Id="386"/>
                <NextMd>
                    <Ret Name="true" Desc="真" RetVal="1" NextMdId="430"/>
                    <Ret Name="false" Desc="假" RetVal="0" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="8"/>
                    <in Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="rxINum"/>
                </Inputs>
                <Outputs/>
                <Configs>
                    <Cfg Name="OperSymbol" Desc="操作符号" Type="string" IsConst="1" Val="&gt;="/>
                </Configs>
            </Module>
        </send>
        <reset>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="283"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="284"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="bInit"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="284"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="285"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="bWait"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="286"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="288"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="lastSendTime"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="285"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="286"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="lastRevTime"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="289"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="290"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="reSendNum"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="288"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="289"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="rxINum"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="290"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="292"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="status"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="292"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="294"/>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="recvo"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="293"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="441"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="recvo"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_var" Name="md_set_var" desc="变量设置值"/>
                <MdId Id="294"/>
                <NextMd>
                    <Ret Name="err" Desc="执行失败" RetVal="1" NextMdId=""/>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="293"/>
                </NextMd>
                <Inputs>
                    <in Name="RightOperand" Desc="右操作数" Type="int64" IsConst="1" Val="0"/>
                </Inputs>
                <Outputs>
                    <Out Name="LeftOperand" Desc="左操作数" Type="int64" IsConst="0" VarName="scnNo"/>
                </Outputs>
                <Configs/>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_comm_status" Name="md_set_comm_status" desc="设置通讯状态遥信"/>
                <MdId Id="452"/>
                <NextMd>
                    <Ret Name="ok" Desc="正常" RetVal="0" NextMdId=""/>
                </NextMd>
                <Inputs/>
                <Outputs/>
                <Configs>
                    <Cfg Name="commYxNo" Desc="遥信点" Type="int64" IsConst="1" Val="-1"/>
                </Configs>
            </Module>
            <Module>
                <MdType Dll="md_basic" CreatMdApi="create_md_set_pro_state" Name="md_set_pro_state" desc="设置规约状态"/>
                <MdId Id="441"/>
                <NextMd>
                    <Ret Name="ok" Desc="执行成功" RetVal="0" NextMdId="452"/>
                </NextMd>
                <Inputs/>
                <Outputs/>
                <Configs>
                    <Cfg Name="isOk" Desc="规约状态" Type="int64" IsConst="1" Val="0"/>
                </Configs>
            </Module>
        </reset>
        <cmd/>
    </Case>
</Proto>
