Converted to firmware v9, fixed analog input

This commit is contained in:
Patrick McDonagh
2016-01-11 13:10:35 -06:00
parent eaa1a5d2d0
commit a8da2fb297
136 changed files with 870 additions and 6680 deletions

View File

@@ -3,14 +3,14 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{0e829cfc-524a-4698-b32d-7e86967cbbf5}</ProjectGuid>
<ProjectGuid>{77f0df20-21d3-4637-a6d8-d269e0a5c640}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>MyRootNamespace</RootNamespace>
<AssemblyName>MyAssemblyName</AssemblyName>
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
<CAMProjectFile>Controller\PrjLibrary.mdb</CAMProjectFile>
<CAMProjectVersion>5.50.3</CAMProjectVersion>
<UniqueProjectId>{0e829cfc-524a-4698-b32d-7e86967cbbf5}</UniqueProjectId>
<UniqueProjectId>{77f0df20-21d3-4637-a6d8-d269e0a5c640}</UniqueProjectId>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Online' ">
<OutputPath>bin\Online\</OutputPath>

View File

@@ -1,938 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Target Name="2080LC2020QWBG" CodeType="" Model="0" ByteOrder="1" AlignNumber="4" MaxBlockSize="0" UINT16Size="2" UINT32Size="4" UCHARSize="1" PointerSize="4" FirstVa="1024" Quantum="1" EolChar="13,10" OKReal="true" OKString="true" SM="8192" T1="0" T2="0" T3="0" T4="0" T5="0" G1="0" G2="0" G3="0" G4="0" UserData="true" SingleTextLine="" Help="" Keyword="" SysVarCycleDate="264" SysVarCycycTime="268" SysVarCyCurrent="272" SysVarCyMaximum="276" SysVarCyOverFlow="280" SysVarScanCnt="284" SysVarCycleCnt="288" SysVarResMode="292" SysVarCCExec="293" SysVarKVBPerr="294" SysVarKVBCErr="295" SysVarWNGNum="296" SysVarWNGarg="300" SysVarResName="4" StrictAlignt="false" MaxParam="128" SysVarWNGCMD="315" SysVarWNGCMPTNM="304" IsIsagraf3="false" Features="ResNbr=1" IsEnhancedTarget="true" MaxPouSize="65535">
<TargetDescription></TargetDescription>
<CodeTypes>
<CodeType Code="TicCode" />
</CodeTypes>
<Networks>
<Network Name="ISARSI" />
<Network Name="CIPNetwork" />
</Networks>
<CustomFields>
<CustomField Name="VendorID" Value="1" />
<CustomField Name="DeviceType" Value="14" />
<CustomField Name="ProductCode" Value="180" />
<CustomField Name="CatalogID" Value="2080-LC20-20QWB" />
<CustomField Name="Series" Value="0" />
<CustomField Name="FWOSVersion" Value="7.11" />
<CustomField Name="MaxUsrMem" Value="143360" />
<CustomField Name="MaxUserDataMem" Value="65536" />
<CustomField Name="MaxFFMem" Value="20480" />
<CustomField Name="MaxLCDVar" Value="400" />
<CustomField Name="MaxRtMem" Value="400" />
<CustomField Name="MaxVariableNameLength" Value="40" />
<CustomField Name="MaxEmbeddedFileSize" Value="204800" />
<CustomField Name="MaxDigitalIOConfigurable" Value="132" />
</CustomFields>
<ExtendedParameters />
<Features>
<Feature Name="PASSWORD" IsSupported="true" />
<Feature Name="OPTCODE" IsSupported="true" />
<Feature Name="BINDING" IsSupported="false" />
<Feature Name="MULTIRESOURCES" IsSupported="false" />
<Feature Name="ONLINE" IsSupported="true" />
<Feature Name="RETAIN" IsSupported="true" />
<Feature Name="MICROCYCTIME" IsSupported="false" />
<Feature Name="INTRPT" IsSupported="true" />
<Feature Name="ARINPRF" IsSupported="true" />
<Feature Name="BIGPOUS" IsSupported="false" />
<Feature Name="NETWORKINST" IsSupported="false" />
<Feature Name="SFCPRIO" IsSupported="false" />
<Feature Name="COMPLEXSUBVARCONNECTEDTOIOCHAN" IsSupported="false" />
<Feature Name="IOCHANOEMPARAM" IsSupported="false" />
<Feature Name="OLCCFBINITEXIT" IsSupported="false" />
<Feature Name="ANYBITACCESSOFFSET" IsSupported="false" />
</Features>
<Languages>
<Language Name="ST" IsSupported="true" />
<Language Name="IL" IsSupported="false" />
<Language Name="LD" IsSupported="true" />
<Language Name="FBD" IsSupported="true" />
<Language Name="SAMA" IsSupported="false" />
<Language Name="61499" IsSupported="false" />
<Language Name="SFC" IsSupported="false" />
<Language Name="FC" IsSupported="false" />
<Language Name="C" IsSupported="true" />
</Languages>
<DataTypes>
<DataType Name="BOOL" IsSupported="true" />
<DataType Name="SINT" IsSupported="true" />
<DataType Name="DINT" IsSupported="true" />
<DataType Name="REAL" IsSupported="true" />
<DataType Name="TIME" IsSupported="true" />
<DataType Name="STRING" IsSupported="true" />
<DataType Name="LREAL" IsSupported="true" />
<DataType Name="INT" IsSupported="true" />
<DataType Name="LINT" IsSupported="true" />
<DataType Name="USINT" IsSupported="true" />
<DataType Name="UINT" IsSupported="true" />
<DataType Name="UDINT" IsSupported="true" />
<DataType Name="ULINT" IsSupported="true" />
<DataType Name="DATE" IsSupported="true" />
<DataType Name="BYTE" IsSupported="true" />
<DataType Name="WORD" IsSupported="true" />
<DataType Name="DWORD" IsSupported="true" />
<DataType Name="LWORD" IsSupported="true" />
<DataType Name="SAFEBOOL" IsSupported="false" />
<DataType Name="ANY_ELEMENTARY" IsSupported="true" />
<DataType Name="__ANY" IsSupported="false" />
</DataTypes>
<SystemVariables>
<Variable Name="SYSVA_REMOTE" DataType="BOOL" InitialValue="FALSE" ReadOnly="true" SingleTextLine="Remote status" StringSize="0" VA="384" />
<Variable Name="SYSVA_SUSPEND_ID" DataType="UINT" InitialValue="0" ReadOnly="true" SingleTextLine="Last Suspend ID" StringSize="0" VA="386" />
<Variable Name="SYSVA_TCYWDG" DataType="UDINT" InitialValue="2000" ReadOnly="false" SingleTextLine="Software Watchdog" StringSize="0" VA="388" />
<Variable Name="SYSVA_MAJ_ERR_HALT" DataType="BOOL" InitialValue="FALSE" ReadOnly="true" SingleTextLine="Major Error Halted status" StringSize="0" VA="392" />
<Variable Name="SYSVA_ABORT_CYCLE" DataType="BOOL" InitialValue="FALSE" ReadOnly="true" SingleTextLine="Aborting Cycle" StringSize="0" VA="385" />
<Variable Name="SYSVA_FIRST_SCAN" DataType="BOOL" InitialValue="TRUE" ReadOnly="true" SingleTextLine="First scan bit" StringSize="0" VA="393" />
<Variable Name="SYSVA_USER_DATA_LOST" DataType="BOOL" InitialValue="FALSE" ReadOnly="false" SingleTextLine="User data lost" StringSize="0" VA="394" />
<Variable Name="SYSVA_POWERUP_BIT" DataType="BOOL" InitialValue="TRUE" ReadOnly="true" SingleTextLine="Power-up bit" StringSize="0" VA="395" />
<Variable Name="SYSVA_PROJ_INCOMPLETE" DataType="UDINT" InitialValue="0" ReadOnly="true" SingleTextLine="Project Incomplete" StringSize="0" VA="396" />
</SystemVariables>
<Interrupts>
<Interrupt Name="UFR" Number="0" DataType="BOOL" SingleTextLine="User Fault Routine" StringSize="0" />
<Interrupt Name="STI0" Number="15" DataType="IRQSTI" SingleTextLine="Selected Timed Interrupt #0" StringSize="0" />
<Interrupt Name="STI1" Number="16" DataType="IRQSTI" SingleTextLine="Selected Timed Interrupt #1" StringSize="0" />
<Interrupt Name="UPMUI0" Number="19" DataType="IRQUPM" SingleTextLine="Universal Port Interrupt #0" StringSize="0" />
<Interrupt Name="UPMUI1" Number="20" DataType="IRQUPM" SingleTextLine="Universal Port Interrupt #1" StringSize="0" />
</Interrupts>
<StdPous>
<StdPou Name="SR" IsSupported="true" />
<StdPou Name="RS" IsSupported="true" />
<StdPou Name="R_TRIG" IsSupported="true" />
<StdPou Name="F_TRIG" IsSupported="true" />
<StdPou Name="CTU" IsSupported="true" />
<StdPou Name="CTD" IsSupported="true" />
<StdPou Name="CTUD" IsSupported="true" />
<StdPou Name="TON" IsSupported="true" />
<StdPou Name="TOF" IsSupported="true" />
<StdPou Name="CMP" IsSupported="false" />
<StdPou Name="STACKINT" IsSupported="true" />
<StdPou Name="AVERAGE" IsSupported="true" />
<StdPou Name="HYSTER" IsSupported="true" />
<StdPou Name="LIM_ALRM" IsSupported="true" />
<StdPou Name="INTEGRAL" IsSupported="true" />
<StdPou Name="DERIVATE" IsSupported="true" />
<StdPou Name="BLINK" IsSupported="false" />
<StdPou Name="SIG_GEN" IsSupported="false" />
<StdPou Name="ABS" IsSupported="true" />
<StdPou Name="EXPT" IsSupported="true" />
<StdPou Name="LOG" IsSupported="true" />
<StdPou Name="POW" IsSupported="true" />
<StdPou Name="SQRT" IsSupported="true" />
<StdPou Name="TRUNC" IsSupported="true" />
<StdPou Name="ACOS" IsSupported="true" />
<StdPou Name="ASIN" IsSupported="true" />
<StdPou Name="ATAN" IsSupported="true" />
<StdPou Name="COS" IsSupported="true" />
<StdPou Name="SIN" IsSupported="true" />
<StdPou Name="TAN" IsSupported="true" />
<StdPou Name="ROL" IsSupported="true" />
<StdPou Name="ROR" IsSupported="true" />
<StdPou Name="SHL" IsSupported="true" />
<StdPou Name="SHR" IsSupported="true" />
<StdPou Name="MIN" IsSupported="true" />
<StdPou Name="MAX" IsSupported="true" />
<StdPou Name="LIMIT" IsSupported="true" />
<StdPou Name="MOD" IsSupported="true" />
<StdPou Name="MUX4" IsSupported="false" />
<StdPou Name="MUX8" IsSupported="false" />
<StdPou Name="ODD" IsSupported="false" />
<StdPou Name="RAND" IsSupported="true" />
<StdPou Name="SEL" IsSupported="false" />
<StdPou Name="ASCII" IsSupported="true" />
<StdPou Name="CHAR" IsSupported="true" />
<StdPou Name="DELETE" IsSupported="true" />
<StdPou Name="FIND" IsSupported="true" />
<StdPou Name="INSERT" IsSupported="true" />
<StdPou Name="LEFT" IsSupported="true" />
<StdPou Name="MID" IsSupported="true" />
<StdPou Name="MLEN" IsSupported="true" />
<StdPou Name="REPLACE" IsSupported="true" />
<StdPou Name="RIGHT" IsSupported="true" />
<StdPou Name="AND_MASK" IsSupported="true" />
<StdPou Name="OR_MASK" IsSupported="true" />
<StdPou Name="XOR_MASK" IsSupported="true" />
<StdPou Name="NOT_MASK" IsSupported="true" />
<StdPou Name="TP" IsSupported="true" />
<StdPou Name="CONNECT" IsSupported="false" />
<StdPou Name="USEND_S" IsSupported="false" />
<StdPou Name="URCV_S" IsSupported="false" />
<StdPou Name="SUB_DATE_DATE" IsSupported="false" />
<StdPou Name="CURRENT_ISA_DATE" IsSupported="false" />
<StdPou Name="SEMA" IsSupported="false" />
<StdPou Name="LOCK_CPU" IsSupported="false" />
<StdPou Name="UNLOCK_CPU" IsSupported="false" />
</StdPous>
<Pous>
<Pou FileVersion="200.00.003" Name="TDF" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Compute time difference." Language="C" CustomFbd="0" Localization="LibC" GroupName="Time" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<Function IdentifierNb="0" Keyword="TDF" ConvDirection="NoConversion" DataType="TIME" />
<LocalVars>
<Variable Name="TDF" DataType="TIME" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="Q" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="TimeA" DataType="TIME" InitialValue="" Comment="The start time for time difference computation." Address="" Modifier="Constant" Kind="VarInput" Alias="T_A" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="TimeB" DataType="TIME" InitialValue="" Comment="The end time for time difference computation." Address="" Modifier="Constant" Kind="VarInput" Alias="T_B" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="RPC" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Reads user program checksum." Language="C" CustomFbd="0" Localization="LibC" GroupName="Input/Output" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<Function IdentifierNb="0" Keyword="RPC" ConvDirection="NoConversion" DataType="UDINT" />
<LocalVars>
<Variable Name="RPC" DataType="UDINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="CRC" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="MemMod" DataType="BOOL" InitialValue="" Comment="If TRUE, the value is taken from the memory module" Address="" Modifier="Constant" Kind="VarInput" Alias="MM" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="TAN_LREAL" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Perform 64-bit real tangent calculation." Language="C" CustomFbd="0" Localization="LibC" GroupName="Arithmetic" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<Function IdentifierNb="0" Keyword="TAN_LREAL" ConvDirection="NoConversion" DataType="LREAL" />
<LocalVars>
<Variable Name="TAN_LREAL" DataType="LREAL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="RET" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="IN" DataType="LREAL" InitialValue="" Comment="Input parameter of tangent. = 1E+38 for invalid input." Address="" Modifier="Constant" Kind="VarInput" Alias="IN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="SIN_LREAL" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Perform 64-bit real sine calculation." Language="C" CustomFbd="0" Localization="LibC" GroupName="Arithmetic" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<Function IdentifierNb="0" Keyword="SIN_LREAL" ConvDirection="NoConversion" DataType="LREAL" />
<LocalVars>
<Variable Name="SIN_LREAL" DataType="LREAL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="RET" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="IN" DataType="LREAL" InitialValue="" Comment="Input parameter of sine. (in set [-1.0 .. +1.0])." Address="" Modifier="Constant" Kind="VarInput" Alias="IN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="ATAN_LREAL" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Perform 64-bit real arctangent calculation." Language="C" CustomFbd="0" Localization="LibC" GroupName="Arithmetic" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<Function IdentifierNb="0" Keyword="ATAN_LREAL" ConvDirection="NoConversion" DataType="LREAL" />
<LocalVars>
<Variable Name="ATAN_LREAL" DataType="LREAL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="RET" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="IN" DataType="LREAL" InitialValue="" Comment="Input parameter of arc tangent. (in set [-PI/2 .. +PI/2]), 0.0 for invalid input." Address="" Modifier="Constant" Kind="VarInput" Alias="IN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="ASIN_LREAL" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Perform 64-bit real arcsine calculation." Language="C" CustomFbd="0" Localization="LibC" GroupName="Arithmetic" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<Function IdentifierNb="0" Keyword="ASIN_LREAL" ConvDirection="NoConversion" DataType="LREAL" />
<LocalVars>
<Variable Name="ASIN_LREAL" DataType="LREAL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="RET" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="IN" DataType="LREAL" InitialValue="" Comment="Input parameter of arc sine. Must be in set [-1.0 .. +1.0]." Address="" Modifier="Constant" Kind="VarInput" Alias="IN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="MUX8B" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Multiplexer(8 entries) - accepts BOOL inputs and output value." Language="C" CustomFbd="0" Localization="LibC" GroupName="Boolean" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<Function IdentifierNb="0" Keyword="MUX8B" ConvDirection="NoConversion" DataType="BOOL" />
<LocalVars>
<Variable Name="MUX8B" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="Q" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Selector" DataType="USINT" InitialValue="" Comment="Selector integer value, must be in set [0...7]." Address="" Modifier="Constant" Kind="VarInput" Alias="Sel" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IN0" DataType="BOOL" InitialValue="" Comment="Any BOOL input value." Address="" Modifier="Constant" Kind="VarInput" Alias="IN0" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IN1" DataType="BOOL" InitialValue="" Comment="Any BOOL input value." Address="" Modifier="Constant" Kind="VarInput" Alias="IN1" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IN2" DataType="BOOL" InitialValue="" Comment="Any BOOL input value." Address="" Modifier="Constant" Kind="VarInput" Alias="IN2" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IN3" DataType="BOOL" InitialValue="" Comment="Any BOOL input value." Address="" Modifier="Constant" Kind="VarInput" Alias="IN3" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IN4" DataType="BOOL" InitialValue="" Comment="Any BOOL input value." Address="" Modifier="Constant" Kind="VarInput" Alias="IN4" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IN5" DataType="BOOL" InitialValue="" Comment="Any BOOL input value." Address="" Modifier="Constant" Kind="VarInput" Alias="IN5" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IN6" DataType="BOOL" InitialValue="" Comment="Any BOOL input value." Address="" Modifier="Constant" Kind="VarInput" Alias="IN6" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IN7" DataType="BOOL" InitialValue="" Comment="Any BOOL input value." Address="" Modifier="Constant" Kind="VarInput" Alias="IN7" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="TND" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Abort current user program scan." Language="C" CustomFbd="0" Localization="LibC" GroupName="Program Control" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<Function IdentifierNb="0" Keyword="TND" ConvDirection="NoConversion" DataType="BOOL" />
<LocalVars>
<Variable Name="TND" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="ENO" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="Function enable" Address="" Modifier="Constant" Kind="VarInput" Alias="ENB" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="TOW" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Turn on output when real-time clock value is within week range." Language="C" CustomFbd="0" Localization="LibC" GroupName="Time" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<Function IdentifierNb="0" Keyword="TOW" ConvDirection="NoConversion" DataType="BOOL" />
<LocalVars>
<Variable Name="TOW" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="Q" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="TimeA" DataType="TOWDATA" InitialValue="" Comment="Time of Week Setting of Channel A" Address="" Modifier="Constant" Kind="VarInput" Alias="TA" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="TimeB" DataType="TOWDATA" InitialValue="" Comment="Time of Week Setting of Channel B" Address="" Modifier="Constant" Kind="VarInput" Alias="TB" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="TimeC" DataType="TOWDATA" InitialValue="" Comment="Time of Week Setting of Channel C" Address="" Modifier="Constant" Kind="VarInput" Alias="TC" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="TimeD" DataType="TOWDATA" InitialValue="" Comment="Time of Week Setting of Channel D" Address="" Modifier="Constant" Kind="VarInput" Alias="TD" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="MUX4B" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Multiplexer(4 entries) - accepts BOOL inputs and output value." Language="C" CustomFbd="0" Localization="LibC" GroupName="Boolean" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<Function IdentifierNb="0" Keyword="MUX4B" ConvDirection="NoConversion" DataType="BOOL" />
<LocalVars>
<Variable Name="MUX4B" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="Q" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Selector" DataType="USINT" InitialValue="" Comment="Selector integer value, must be in set [0...3]." Address="" Modifier="Constant" Kind="VarInput" Alias="Sel" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IN0" DataType="BOOL" InitialValue="" Comment="Any BOOL input value." Address="" Modifier="Constant" Kind="VarInput" Alias="IN0" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IN1" DataType="BOOL" InitialValue="" Comment="Any BOOL input value." Address="" Modifier="Constant" Kind="VarInput" Alias="IN1" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IN2" DataType="BOOL" InitialValue="" Comment="Any BOOL input value." Address="" Modifier="Constant" Kind="VarInput" Alias="IN2" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IN3" DataType="BOOL" InitialValue="" Comment="Any BOOL input value." Address="" Modifier="Constant" Kind="VarInput" Alias="IN3" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="RHC" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Read high-speed clock." Language="C" CustomFbd="0" Localization="LibC" GroupName="Input/Output" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<Function IdentifierNb="0" Keyword="RHC" ConvDirection="NoConversion" DataType="UDINT" />
<LocalVars>
<Variable Name="RHC" DataType="UDINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="CLK" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="DOY" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Turn on output when real-time clock value is within year range." Language="C" CustomFbd="0" Localization="LibC" GroupName="Time" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<Function IdentifierNb="0" Keyword="DOY" ConvDirection="NoConversion" DataType="BOOL" />
<LocalVars>
<Variable Name="DOY" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="Q" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="TimeA" DataType="DOYDATA" InitialValue="" Comment="Year Time Setting of Channel A" Address="" Modifier="Constant" Kind="VarInput" Alias="TA" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="TimeB" DataType="DOYDATA" InitialValue="" Comment="Year Time Setting of Channel B" Address="" Modifier="Constant" Kind="VarInput" Alias="TB" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="TimeC" DataType="DOYDATA" InitialValue="" Comment="Year Time Setting of Channel C" Address="" Modifier="Constant" Kind="VarInput" Alias="TC" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="TimeD" DataType="DOYDATA" InitialValue="" Comment="Year Time Setting of Channel D" Address="" Modifier="Constant" Kind="VarInput" Alias="TD" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="STIS" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Start STI timer from control program(instead of automatically)." Language="C" CustomFbd="0" Localization="LibC" GroupName="Interrupt" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<Function IdentifierNb="0" Keyword="STIS" ConvDirection="NoConversion" DataType="BOOL" />
<LocalVars>
<Variable Name="STIS" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="ENO" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="Function enable." Address="" Modifier="Constant" Kind="VarInput" Alias="ENB" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IRQType" DataType="UDINT" InitialValue="" Comment="Concatenation of the different IRQ types to enable. Use the IRQ_STI* defined words for this instruction" Address="" Modifier="Constant" Kind="VarInput" Alias="IRQ" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="SetPoint" DataType="UINT" InitialValue="" Comment="This is the amount of time (in milliseconds) which must expire prior to executing the selectable timed user interrupt. A value of zero disables the STI function" Address="" Modifier="Constant" Kind="VarInput" Alias="SetP" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="TTABLE" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Provide the value output based on the combination of inputs." Language="C" CustomFbd="0" Localization="LibC" GroupName="Boolean" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<Function IdentifierNb="0" Keyword="TTABLE" ConvDirection="NoConversion" DataType="BOOL" />
<LocalVars>
<Variable Name="TTABLE" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="Q" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Table" DataType="UINT" InitialValue="" Comment="Truth table of BOOLEAN function." Address="" Modifier="Constant" Kind="VarInput" Alias="Tbl" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IN0" DataType="BOOL" InitialValue="" Comment="Any BOOL input value." Address="" Modifier="Constant" Kind="VarInput" Alias="IN0" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IN1" DataType="BOOL" InitialValue="" Comment="Any BOOL input value." Address="" Modifier="Constant" Kind="VarInput" Alias="IN1" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IN2" DataType="BOOL" InitialValue="" Comment="Any BOOL input value." Address="" Modifier="Constant" Kind="VarInput" Alias="IN2" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IN3" DataType="BOOL" InitialValue="" Comment="Any BOOL input value." Address="" Modifier="Constant" Kind="VarInput" Alias="IN3" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="UID" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Disable specific user interrupt." Language="C" CustomFbd="0" Localization="LibC" GroupName="Interrupt" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<Function IdentifierNb="0" Keyword="UID" ConvDirection="NoConversion" DataType="BOOL" />
<LocalVars>
<Variable Name="UID" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="ENO" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="Function enable." Address="" Modifier="Constant" Kind="VarInput" Alias="ENB" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IRQType" DataType="UDINT" InitialValue="" Comment="Concatenation of the different IRQ types to disable. Use the IRQ_* defined words for this instruction" Address="" Modifier="Constant" Kind="VarInput" Alias="IRQ" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="UIE" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Enable specific user interrupt." Language="C" CustomFbd="0" Localization="LibC" GroupName="Interrupt" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<Function IdentifierNb="0" Keyword="UIE" ConvDirection="NoConversion" DataType="BOOL" />
<LocalVars>
<Variable Name="UIE" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="ENO" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="Function enable." Address="" Modifier="Constant" Kind="VarInput" Alias="ENB" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IRQType" DataType="UDINT" InitialValue="" Comment="Concatenation of the different IRQ types to enable. Use the IRQ_* defined words for this instruction" Address="" Modifier="Constant" Kind="VarInput" Alias="IRQ" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="UIC" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Clear Lost bit for specific user interrupt." Language="C" CustomFbd="0" Localization="LibC" GroupName="Interrupt" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<Function IdentifierNb="0" Keyword="UIC" ConvDirection="NoConversion" DataType="BOOL" />
<LocalVars>
<Variable Name="UIC" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="ENO" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="Function enable." Address="" Modifier="Constant" Kind="VarInput" Alias="ENB" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IRQType" DataType="UDINT" InitialValue="" Comment="Concatenation of the different IRQ types to enable. Use the IRQ_* defined words for this instruction" Address="" Modifier="Constant" Kind="VarInput" Alias="IRQ" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="COS_LREAL" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Perform 64-bit real cosine calculation." Language="C" CustomFbd="0" Localization="LibC" GroupName="Arithmetic" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<Function IdentifierNb="0" Keyword="COS_LREAL" ConvDirection="NoConversion" DataType="LREAL" />
<LocalVars>
<Variable Name="COS_LREAL" DataType="LREAL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="RET" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="IN" DataType="LREAL" InitialValue="" Comment="Input parameter of cosine. (in set [-1.0 .. +1.0])." Address="" Modifier="Constant" Kind="VarInput" Alias="IN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="UIF" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Flush specific user interrupt." Language="C" CustomFbd="0" Localization="LibC" GroupName="Interrupt" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<Function IdentifierNb="0" Keyword="UIF" ConvDirection="NoConversion" DataType="BOOL" />
<LocalVars>
<Variable Name="UIF" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="ENO" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="Function enable." Address="" Modifier="Constant" Kind="VarInput" Alias="ENB" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IRQType" DataType="UDINT" InitialValue="" Comment="Concatenation of the different IRQ types to flush. Use the IRQ_* defined words for this instruction" Address="" Modifier="Constant" Kind="VarInput" Alias="IRQ" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="ACOS_LREAL" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Perform 64-bit real arccosine calculation." Language="C" CustomFbd="0" Localization="LibC" GroupName="Arithmetic" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<Function IdentifierNb="0" Keyword="ACOS_LREAL" ConvDirection="NoConversion" DataType="LREAL" />
<LocalVars>
<Variable Name="ACOS_LREAL" DataType="LREAL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="RET" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="IN" DataType="LREAL" InitialValue="" Comment="Input parameter of arc cosine. Must be in set [-1.0 .. +1.0]." Address="" Modifier="Constant" Kind="VarInput" Alias="IN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="ARD" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Read characters from the input buffer and place them into a string." Language="C" CustomFbd="0" Localization="LibC" GroupName="Communications" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="ARD" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="IN" DataType="BOOL" InitialValue="" Comment="Rung input state." Address="" Modifier="Constant" Kind="VarInput" Alias="IN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="ARDInput" DataType="ARDARL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="ARDI" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Q" DataType="BOOL" InitialValue="" Comment="FALSE - The FB is not done, TRUE - The FB is done." Address="" Modifier="Constant" Kind="VarOutput" Alias="Q" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Destination" DataType="ASCIILOCADDR" InitialValue="" Comment="The string element where you want the characters stored." Address="" Modifier="Constant" Kind="VarOutput" Alias="Dest" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="NumChar" DataType="UINT" InitialValue="" Comment="The number of characters." Address="" Modifier="Constant" Kind="VarOutput" Alias="NumC" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Error" DataType="BOOL" InitialValue="" Comment="FALSE - No error, TRUE - An error is detected." Address="" Modifier="Constant" Kind="VarOutput" Alias="Err" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ErrorID" DataType="UINT" InitialValue="" Comment="See ABL Error Codes." Address="" Modifier="Constant" Kind="VarOutput" Alias="ErID" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="controlbit" DataType="BYTE" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="MM_INFO" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Read memory module header information." Language="C" CustomFbd="0" Localization="LibC" GroupName="Input/Output" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="MM_INFO" InitInstance="false" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="Function block enable." Address="" Modifier="Constant" Kind="VarInput" Alias="ENB" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="MMInfo" DataType="MMINFO" InitialValue="" Comment="Memory Module Information." Address="" Modifier="Constant" Kind="VarOutput" Alias="MMIN" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="AHL" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Set or reset modem handshake lines." Language="C" CustomFbd="0" Localization="LibC" GroupName="Communications" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="AHL" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="IN" DataType="BOOL" InitialValue="" Comment="Rung input state." Address="" Modifier="Constant" Kind="VarInput" Alias="IN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="AHLInput" DataType="AHLI" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="AHLI" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Q" DataType="BOOL" InitialValue="" Comment="FALSE - The FB is not done, TRUE - The FB is done." Address="" Modifier="Constant" Kind="VarOutput" Alias="Q" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ChannelSts" DataType="WORD" InitialValue="" Comment="Displays the current status (0000 to 001F)" Address="" Modifier="Constant" Kind="VarOutput" Alias="Chan" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Error" DataType="BOOL" InitialValue="" Comment="FALSE - No error, TRUE - An error is detected." Address="" Modifier="Constant" Kind="VarOutput" Alias="Err" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ErrorID" DataType="UINT" InitialValue="" Comment="See ABL Error Codes." Address="" Modifier="Constant" Kind="VarOutput" Alias="ErID" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="controlbit" DataType="BYTE" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="IPIDCONTROLLER" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Proportional Integral Derivative." Language="C" CustomFbd="0" Localization="LibC" GroupName="Process Control" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="IPIDCONTROLLER" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="Process" DataType="REAL" InitialValue="" Comment="Process Value" Address="" Modifier="Constant" Kind="VarInput" Alias="P" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="SetPoint" DataType="REAL" InitialValue="" Comment="Set Point" Address="" Modifier="Constant" Kind="VarInput" Alias="SP" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="FeedBack" DataType="REAL" InitialValue="" Comment="FeedBack" Address="" Modifier="Constant" Kind="VarInput" Alias="FB" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Auto" DataType="BOOL" InitialValue="" Comment="TRUE - controller runs in normal mode, FALSE - controller causes reset R to track (F-GE)." Address="" Modifier="Constant" Kind="VarInput" Alias="AUTO" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Initialize" DataType="BOOL" InitialValue="" Comment="A change in value (TRUE to FALSE or FALSE to TRUE) causes the controller to eliminate any proportional gain during that cycle." Address="" Modifier="Constant" Kind="VarInput" Alias="INIT" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Gains" DataType="GAIN_PID" InitialValue="" Comment="Gains PID for IPIDController." Address="" Modifier="Constant" Kind="VarInput" Alias="GNS" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="AutoTune" DataType="BOOL" InitialValue="" Comment="When set to TRUE and Auto and Initialize are FALSE, the AutoTune sequence is started." Address="" Modifier="Constant" Kind="VarInput" Alias="ATUN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="ATParameters" DataType="AT_PARAM" InitialValue="" Comment="Auto Tune Parameters." Address="" Modifier="Constant" Kind="VarInput" Alias="ATPA" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="ErrorMode" DataType="DINT" InitialValue="0" Comment="Mode used to handle errors." Address="" Modifier="Constant" Kind="VarInput" Alias="ERR" AccessRights="ReadWrite" StringSize="0" Direction="Hidden" CommentFields="" Attributes="0" />
<Variable Name="Output" DataType="REAL" InitialValue="" Comment="Output value from controller." Address="" Modifier="Constant" Kind="VarOutput" Alias="OUT" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="AbsoluteError" DataType="REAL" InitialValue="" Comment="Absolute Error (Process - SetPoint) from the controller." Address="" Modifier="Constant" Kind="VarOutput" Alias="AERR" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ATWarning" DataType="DINT" InitialValue="" Comment="0 - no auto tune done, 1 - in auto tune mode, 2 - auto tune done, -1 - ERROR 1 input Auto set to TRUE, no auto tune possible, -2 - ERROR 2 auto tune error, ATDynaSet expired." Address="" Modifier="Constant" Kind="VarOutput" Alias="ATW" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="OutGains" DataType="GAIN_PID" InitialValue="" Comment="Gains calculated after AutoTune sequences." Address="" Modifier="Constant" Kind="VarOutput" Alias="OGNS" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="RESERVED_IPIDCONTROLLER" DataType="SINT" InitialValue="" Comment="Reserved parameter for IPIDCONTROLLER" Address="" Modifier="Constant" Kind="Var" Alias="RDIC" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0">
<Dimension Lower="1" Upper="184" />
</Variable>
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="PLUGIN_INFO" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Get module information from a generic plug-in module." Language="C" CustomFbd="0" Localization="LibC" GroupName="Input/Output" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="PLUGIN_INFO" InitInstance="false" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="Function block enable." Address="" Modifier="Constant" Kind="VarInput" Alias="ENB" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="SlotID" DataType="UINT" InitialValue="" Comment="1 to 2 - PLUGIN slot number." Address="" Modifier="Constant" Kind="VarInput" Alias="ID" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="ModID" DataType="UINT" InitialValue="" Comment="PLUGIN Generic Module physical ID." Address="" Modifier="Constant" Kind="VarOutput" Alias="MDID" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="VendorID" DataType="UINT" InitialValue="" Comment="PLUGIN Generic Module vendor ID." Address="" Modifier="Constant" Kind="VarOutput" Alias="VDID" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ProductType" DataType="UINT" InitialValue="" Comment="PLUGIN Generic Module product type." Address="" Modifier="Constant" Kind="VarOutput" Alias="PDTP" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ProductCode" DataType="UINT" InitialValue="" Comment="PLUGIN Generic Module product code." Address="" Modifier="Constant" Kind="VarOutput" Alias="PDCD" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ModRevision" DataType="UINT" InitialValue="" Comment="PLUGIN Generic Module revision information." Address="" Modifier="Constant" Kind="VarOutput" Alias="MDRV" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="ACL" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Clear the receive and/or transmit buffers." Language="C" CustomFbd="0" Localization="LibC" GroupName="Communications" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="ACL" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="IN" DataType="BOOL" InitialValue="" Comment="Rung input state." Address="" Modifier="Constant" Kind="VarInput" Alias="IN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="ACLInput" DataType="ACLI" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="ACLI" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Q" DataType="BOOL" InitialValue="" Comment="FALSE - The FB is not done, TRUE - The FB is done." Address="" Modifier="Constant" Kind="VarOutput" Alias="Q" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Error" DataType="BOOL" InitialValue="" Comment="FALSE - No error, TRUE - An error is detected." Address="" Modifier="Constant" Kind="VarOutput" Alias="Err" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ErrorID" DataType="UINT" InitialValue="" Comment="See ABL Error Codes." Address="" Modifier="Constant" Kind="VarOutput" Alias="ErID" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="prestatus" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="ABL" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Specify number of characters in buffer (including end of line)." Language="C" CustomFbd="0" Localization="LibC" GroupName="Communications" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="ABL" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="IN" DataType="BOOL" InitialValue="" Comment="Rung input state." Address="" Modifier="Constant" Kind="VarInput" Alias="IN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="ABLInput" DataType="ABLACB" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="ABLI" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Q" DataType="BOOL" InitialValue="" Comment="FALSE - The FB is not done, TRUE - The FB is done." Address="" Modifier="Constant" Kind="VarOutput" Alias="Q" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Characters" DataType="UINT" InitialValue="" Comment="The number of characters." Address="" Modifier="Constant" Kind="VarOutput" Alias="Char" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Error" DataType="BOOL" InitialValue="" Comment="FALSE - No error, TRUE- An error is detected." Address="" Modifier="Constant" Kind="VarOutput" Alias="Err" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ErrorID" DataType="UINT" InitialValue="" Comment="See ABL Error Codes." Address="" Modifier="Constant" Kind="VarOutput" Alias="ErID" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="controlbit" DataType="BYTE" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="ARL" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Read line from the input buffer and place characters in a string." Language="C" CustomFbd="0" Localization="LibC" GroupName="Communications" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="ARL" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="IN" DataType="BOOL" InitialValue="" Comment="Rung input state." Address="" Modifier="Constant" Kind="VarInput" Alias="IN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="ARLInput" DataType="ARDARL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="ARLI" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Q" DataType="BOOL" InitialValue="" Comment="FALSE - The FB is not done, TRUE - The FB is done." Address="" Modifier="Constant" Kind="VarOutput" Alias="Q" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Destination" DataType="ASCIILOCADDR" InitialValue="" Comment="The string element where you want the characters stored." Address="" Modifier="Constant" Kind="VarOutput" Alias="Dest" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="NumChar" DataType="UINT" InitialValue="" Comment="The number of characters." Address="" Modifier="Constant" Kind="VarOutput" Alias="NumC" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Error" DataType="BOOL" InitialValue="" Comment="FALSE - No error, TRUE - An error is detected." Address="" Modifier="Constant" Kind="VarOutput" Alias="Err" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ErrorID" DataType="UINT" InitialValue="" Comment="See ABL Error Codes." Address="" Modifier="Constant" Kind="VarOutput" Alias="ErID" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="controlbit" DataType="BYTE" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="SCALER" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Scale input value according to output range." Language="C" CustomFbd="0" Localization="LibC" GroupName="Process Control" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="SCALER" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="Input" DataType="REAL" InitialValue="" Comment="Input signal." Address="" Modifier="Constant" Kind="VarInput" Alias="IN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="InputMin" DataType="REAL" InitialValue="" Comment="Minimum value of Input." Address="" Modifier="Constant" Kind="VarInput" Alias="IMIN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="InputMax" DataType="REAL" InitialValue="" Comment="Maximum value of Input." Address="" Modifier="Constant" Kind="VarInput" Alias="IMAX" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="OutputMin" DataType="REAL" InitialValue="" Comment="Minimum value of Output." Address="" Modifier="Constant" Kind="VarInput" Alias="OMIN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="OutputMax" DataType="REAL" InitialValue="" Comment="Maximum value of Output." Address="" Modifier="Constant" Kind="VarInput" Alias="OMAX" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Output" DataType="REAL" InitialValue="" Comment="Output value." Address="" Modifier="Constant" Kind="VarOutput" Alias="OUT" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="AWA" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Write a string with characters appended to an external device." Language="C" CustomFbd="0" Localization="LibC" GroupName="Communications" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="AWA" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="IN" DataType="BOOL" InitialValue="" Comment="Rung input state." Address="" Modifier="Constant" Kind="VarInput" Alias="IN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="AWAInput" DataType="AWAAWT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="AWAI" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Source" DataType="ASCIILOCADDR" InitialValue="" Comment="The source string: char array." Address="" Modifier="Constant" Kind="VarInput" Alias="Src" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="__ADI_Source" DataType="UINT" InitialValue="0" Comment="ADI hidden parameter for &lt;Source&gt; array input" Address="" Modifier="Constant" Kind="VarInput" Alias="_ADI" AccessRights="ReadWrite" StringSize="0" Direction="Hidden" CommentFields="" Attributes="0" />
<Variable Name="Q" DataType="BOOL" InitialValue="" Comment="FALSE - The FB is not done, TRUE - The FB is done." Address="" Modifier="Constant" Kind="VarOutput" Alias="Q" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="NumChar" DataType="UINT" InitialValue="" Comment="The number of characters." Address="" Modifier="Constant" Kind="VarOutput" Alias="NumC" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Error" DataType="BOOL" InitialValue="" Comment="FALSE - No error, TRUE - An error is detected." Address="" Modifier="Constant" Kind="VarOutput" Alias="Err" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ErrorID" DataType="UINT" InitialValue="" Comment="See ABL Error Codes." Address="" Modifier="Constant" Kind="VarOutput" Alias="ErID" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="controlbit" DataType="BYTE" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="RTC_SET" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Set RTC data to RTC module." Language="C" CustomFbd="0" Localization="LibC" GroupName="Input/Output" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="RTC_SET" InitInstance="false" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="Function block enable." Address="" Modifier="Constant" Kind="VarInput" Alias="ENB" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="RTCEnable" DataType="BOOL" InitialValue="" Comment="FALSE - To disable RTC, TRUE - To enable RTC with the RTC data specified." Address="" Modifier="Constant" Kind="VarInput" Alias="RTEN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="RTCData" DataType="RTC" InitialValue="" Comment="RTC data information: yy/mm/dd, hh/mm/ss, week." Address="" Modifier="Constant" Kind="VarInput" Alias="RTDT" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="RTCPresent" DataType="BOOL" InitialValue="" Comment="FALSE - RTC hardware is not plugged, TRUE - RTC hardware is plugged." Address="" Modifier="Constant" Kind="VarOutput" Alias="PRST" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="RTCEnabled" DataType="BOOL" InitialValue="" Comment="FALSE - RTC hardware is disabled (not timing), TRUE - RTC hardware is enabled (timing)." Address="" Modifier="Constant" Kind="VarOutput" Alias="RTES" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="RTCBatLow" DataType="BOOL" InitialValue="" Comment="FALSE - RTC battery is not low, TRUE - RTC battery is low." Address="" Modifier="Constant" Kind="VarOutput" Alias="RTBL" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Sts" DataType="USINT" InitialValue="" Comment="Read operation status. See RTC Set Status Values." Address="" Modifier="Constant" Kind="VarOutput" Alias="Sts" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="PLUGIN_RESET" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Reset a generic PLUGIN module(hardware reset)." Language="C" CustomFbd="0" Localization="LibC" GroupName="Input/Output" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="PLUGIN_RESET" InitInstance="false" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="Function block enable." Address="" Modifier="Constant" Kind="VarInput" Alias="ENB" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="SlotID" DataType="UINT" InitialValue="" Comment="1 to 2 - PLUGIN slot number." Address="" Modifier="Constant" Kind="VarInput" Alias="ID" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Sts" DataType="UINT" InitialValue="" Comment="See PLUGIN Generic Module Operation Status Values." Address="" Modifier="Constant" Kind="VarOutput" Alias="Sts" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="AWT" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Write characters from a source string to an external device." Language="C" CustomFbd="0" Localization="LibC" GroupName="Communications" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="AWT" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="IN" DataType="BOOL" InitialValue="" Comment="Rung input state." Address="" Modifier="Constant" Kind="VarInput" Alias="IN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="AWTInput" DataType="AWAAWT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="AWTI" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Source" DataType="ASCIILOCADDR" InitialValue="" Comment="The source string: char array." Address="" Modifier="Constant" Kind="VarInput" Alias="Src" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="__ADI_Source" DataType="UINT" InitialValue="0" Comment="ADI hidden parameter for &lt;Source&gt; array input" Address="" Modifier="Constant" Kind="VarInput" Alias="_ADI" AccessRights="ReadWrite" StringSize="0" Direction="Hidden" CommentFields="" Attributes="0" />
<Variable Name="Q" DataType="BOOL" InitialValue="" Comment="FALSE - The FB is not done, TRUE - The FB is done." Address="" Modifier="Constant" Kind="VarOutput" Alias="Q" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="NumChar" DataType="UINT" InitialValue="" Comment="The number of characters." Address="" Modifier="Constant" Kind="VarOutput" Alias="NumC" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Error" DataType="BOOL" InitialValue="" Comment="FALSE - No error, TRUE - An error is detected." Address="" Modifier="Constant" Kind="VarOutput" Alias="Err" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ErrorID" DataType="UINT" InitialValue="" Comment="See ABL Error Codes." Address="" Modifier="Constant" Kind="VarOutput" Alias="ErID" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="controlbit" DataType="BYTE" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="TONOFF" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Delay an output-on(true), then delay an output-off(false)." Language="C" CustomFbd="0" Localization="LibC" GroupName="Time" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="TONOFF" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="IN" DataType="BOOL" InitialValue="" Comment="Input control" Address="" Modifier="Constant" Kind="VarInput" Alias="IN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="PT" DataType="TIME" InitialValue="" Comment="On-delay time setting." Address="" Modifier="Constant" Kind="VarInput" Alias="PT" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="PTOF" DataType="TIME" InitialValue="" Comment="Off-delay time setting." Address="" Modifier="Constant" Kind="VarInput" Alias="PTOF" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Q" DataType="BOOL" InitialValue="" Comment="If TRUE, the Programmed On-delay time is elapsed and Programmed Off-delay time is not elapsed." Address="" Modifier="Constant" Kind="VarOutput" Alias="Q" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ET" DataType="TIME" InitialValue="" Comment="If the Programmed On-delay time is elapsed and the Off-delay timer is not starting, the elapsed time (ET) remains at the on-delay (PT) value. If the Programmed Off-delay time is elapsed and the Off-delay timer is not starting, the elapsed time (ET) remain" Address="" Modifier="Constant" Kind="VarOutput" Alias="ET" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="PDATE" DataType="TIME" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="REDGE" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="FEDGE" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="RTO" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Delay an output-on(true). Retain elapsed time until reset." Language="C" CustomFbd="0" Localization="LibC" GroupName="Time" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="RTO" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="IN" DataType="BOOL" InitialValue="" Comment="Input control" Address="" Modifier="Constant" Kind="VarInput" Alias="IN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="RST" DataType="BOOL" InitialValue="" Comment="If TRUE, reset Q and ET (elapsed time)." Address="" Modifier="Constant" Kind="VarInput" Alias="RST" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="PT" DataType="TIME" InitialValue="" Comment="On-delay time setting." Address="" Modifier="Constant" Kind="VarInput" Alias="PT" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Q" DataType="BOOL" InitialValue="" Comment="If TRUE, Programmed On-delay time is elapsed. Clear if RST is TRUE." Address="" Modifier="Constant" Kind="VarOutput" Alias="Q" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ET" DataType="TIME" InitialValue="" Comment="Elapsed Time. If IN is TRUE, time elapses till PT. Clear if RST is TRUE." Address="" Modifier="Constant" Kind="VarOutput" Alias="ET" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="PDATE" DataType="TIME" InitialValue="" Comment="Previous time stamp, internal use only. Compare with current time to obtain ET." Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="IREDGE" DataType="BOOL" InitialValue="" Comment="IN rising edge, internal use only. TRUE when IN is 1. FALSE when IN is 0." Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="IFEDGE" DataType="BOOL" InitialValue="" Comment="IN falling edge, internal use only. TRUE when IN is 0. FALSE when IN is 1." Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="TRIMPOT_READ" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Read the Trimpot value from a specific Trimpot." Language="C" CustomFbd="0" Localization="LibC" GroupName="Input/Output" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="TRIMPOT_READ" InitInstance="false" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="Function block enable." Address="" Modifier="Constant" Kind="VarInput" Alias="ENB" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="TrimPotID" DataType="UINT" InitialValue="" Comment="The ID of the Trimpot to be read. See Trimpot ID Definition." Address="" Modifier="Constant" Kind="VarInput" Alias="TPID" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="TrimPotValue" DataType="UINT" InitialValue="" Comment="Current trimpot value." Address="" Modifier="Constant" Kind="VarOutput" Alias="TPVL" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Sts" DataType="UINT" InitialValue="" Comment="Read operation status. See Trimpot Operation Status Values." Address="" Modifier="Constant" Kind="VarOutput" Alias="Sts" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="SUS" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Suspend the execution of the application." Language="C" CustomFbd="0" Localization="LibC" GroupName="Program Control" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="SUS" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="Function enable." Address="" Modifier="Constant" Kind="VarInput" Alias="ENB" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="SusID" DataType="UINT" InitialValue="" Comment="Suspension ID." Address="" Modifier="Constant" Kind="VarInput" Alias="SID" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="ACB" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Determine total number of characters in buffer." Language="C" CustomFbd="0" Localization="LibC" GroupName="Communications" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="ACB" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="IN" DataType="BOOL" InitialValue="" Comment="Rung input state." Address="" Modifier="Constant" Kind="VarInput" Alias="IN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="ACBInput" DataType="ABLACB" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="ACBI" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Q" DataType="BOOL" InitialValue="" Comment="FALSE - The FB is not done, TRUE - The FB is done." Address="" Modifier="Constant" Kind="VarOutput" Alias="Q" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Characters" DataType="UINT" InitialValue="" Comment="The number of characters." Address="" Modifier="Constant" Kind="VarOutput" Alias="Char" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Error" DataType="BOOL" InitialValue="" Comment="FALSE - No error, TRUE - An error is detected." Address="" Modifier="Constant" Kind="VarOutput" Alias="Err" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ErrorID" DataType="UINT" InitialValue="" Comment="See ABL Error Codes." Address="" Modifier="Constant" Kind="VarOutput" Alias="ErID" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="controlbit" DataType="BYTE" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="SYS_INFO" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Read Micro800 system status." Language="C" CustomFbd="0" Localization="LibC" GroupName="Input/Output" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="SYS_INFO" InitInstance="false" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="Function block enable." Address="" Modifier="Constant" Kind="VarInput" Alias="ENB" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Sts" DataType="SYSINFO" InitialValue="" Comment="System status data block" Address="" Modifier="Constant" Kind="VarOutput" Alias="Sts" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="RTC_READ" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Read RTC module information." Language="C" CustomFbd="0" Localization="LibC" GroupName="Input/Output" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="RTC_READ" InitInstance="false" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="Function block enable." Address="" Modifier="Constant" Kind="VarInput" Alias="ENB" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="RTCData" DataType="RTC" InitialValue="" Comment="RTC data information: yy/mm/dd, hh/mm/ss, week." Address="" Modifier="Constant" Kind="VarOutput" Alias="RTCD" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="RTCPresent" DataType="BOOL" InitialValue="" Comment="FALSE - RTC hardware is not plugged in, TRUE - RTC hardware is plugged in." Address="" Modifier="Constant" Kind="VarOutput" Alias="PRST" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="RTCEnabled" DataType="BOOL" InitialValue="" Comment="FALSE - RTC hardware is disabled (not timing), TRUE - RTC hardware is enabled (timing)." Address="" Modifier="Constant" Kind="VarOutput" Alias="RTES" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="RTCBatLow" DataType="BOOL" InitialValue="" Comment="FALSE - RTC battery is not low, TRUE - RTC battery is low." Address="" Modifier="Constant" Kind="VarOutput" Alias="RTBL" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="PLUGIN_WRITE" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Write data to a generic PLUGIN module." Language="C" CustomFbd="0" Localization="LibC" GroupName="Input/Output" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="PLUGIN_WRITE" InitInstance="false" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="Function block enable." Address="" Modifier="Constant" Kind="VarInput" Alias="ENB" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="SlotID" DataType="UINT" InitialValue="" Comment="1 to 2 - PLUGIN slot number." Address="" Modifier="Constant" Kind="VarInput" Alias="ID" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="AddrOffset" DataType="UINT" InitialValue="" Comment="Address offset of the first data to be written, calculating from the first byte of the PLUGIN Generic Module." Address="" Modifier="Constant" Kind="VarInput" Alias="AOFF" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="DataLength" DataType="UINT" InitialValue="" Comment="The number of bytes to be written." Address="" Modifier="Constant" Kind="VarInput" Alias="DLEN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="DataArray" DataType="USINT" InitialValue="" Comment="Data to be written to the PLUGIN Generic Module." Address="" Modifier="Constant" Kind="VarInput" Alias="DATA" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0">
<Dimension Lower="1" Upper="1" />
</Variable>
<Variable Name="__ADI_DataArray" DataType="UINT" InitialValue="0" Comment="ADI hidden parameter for &lt;DataArray&gt; array input" Address="" Modifier="Constant" Kind="VarInput" Alias="_ADI" AccessRights="ReadWrite" StringSize="0" Direction="Hidden" CommentFields="" Attributes="0" />
<Variable Name="Sts" DataType="UINT" InitialValue="" Comment="See PLUGIN Generic Module Operation Status Values." Address="" Modifier="Constant" Kind="VarOutput" Alias="Sts" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="PLUGIN_READ" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Read data from a generic PLUGIN module." Language="C" CustomFbd="0" Localization="LibC" GroupName="Input/Output" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="PLUGIN_READ" InitInstance="false" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="Function block enable." Address="" Modifier="Constant" Kind="VarInput" Alias="ENB" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="SlotID" DataType="UINT" InitialValue="" Comment="1 to 2 - PLUGIN slot number." Address="" Modifier="Constant" Kind="VarInput" Alias="ID" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="AddrOffset" DataType="UINT" InitialValue="" Comment="Address offset of the first data to be read, calculating from the first byte of the PLUGIN Generic Module." Address="" Modifier="Constant" Kind="VarInput" Alias="AOFF" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="DataLength" DataType="UINT" InitialValue="" Comment="The number of bytes to be read." Address="" Modifier="Constant" Kind="VarInput" Alias="DLEN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="DataArray" DataType="USINT" InitialValue="" Comment="An array used to store the data read from the Data read from the PLUGIN Generic Module." Address="" Modifier="Constant" Kind="VarInput" Alias="DATA" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0">
<Dimension Lower="1" Upper="1" />
</Variable>
<Variable Name="__ADI_DataArray" DataType="UINT" InitialValue="0" Comment="ADI hidden parameter for &lt;DataArray&gt; array input" Address="" Modifier="Constant" Kind="VarInput" Alias="_ADI" AccessRights="ReadWrite" StringSize="0" Direction="Hidden" CommentFields="" Attributes="0" />
<Variable Name="Sts" DataType="UINT" InitialValue="" Comment="See PLUGIN Generic Module Operation Status Values." Address="" Modifier="Constant" Kind="VarOutput" Alias="Sts" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="MSG_MODBUS" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Send a modbus message via a serial communication port." Language="C" CustomFbd="0" Localization="LibC" GroupName="Communications" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="MSG_MODBUS" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="IN" DataType="BOOL" InitialValue="" Comment="Rung input state." Address="" Modifier="Constant" Kind="VarInput" Alias="IN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Cancel" DataType="BOOL" InitialValue="" Comment="1 - Cancel the execution of the FB." Address="" Modifier="Constant" Kind="VarInput" Alias="Canc" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="LocalCfg" DataType="MODBUSLOCPARA" InitialValue="" Comment="Local Device configuration." Address="" Modifier="Constant" Kind="VarInput" Alias="Loca" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="TargetCfg" DataType="MODBUSTARPARA" InitialValue="" Comment="Target Device configuration." Address="" Modifier="Constant" Kind="VarInput" Alias="Targ" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="LocalAddr" DataType="MODBUSLOCADDR" InitialValue="" Comment="Local address (125 words)" Address="" Modifier="Constant" Kind="VarInput" Alias="Loca" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="__ADI_LocalAddr" DataType="UINT" InitialValue="0" Comment="ADI hidden parameter for &lt;LocalAddr&gt; array input" Address="" Modifier="Constant" Kind="VarInput" Alias="_ADI" AccessRights="ReadWrite" StringSize="0" Direction="Hidden" CommentFields="" Attributes="0" />
<Variable Name="Q" DataType="BOOL" InitialValue="" Comment="FALSE - MSG instruction is not finished, TRUE - MSG instruction is finished." Address="" Modifier="Constant" Kind="VarOutput" Alias="Q" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Error" DataType="BOOL" InitialValue="" Comment="FALSE - No error, TRUE - An error is detected." Address="" Modifier="Constant" Kind="VarOutput" Alias="Err" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ErrorID" DataType="UINT" InitialValue="" Comment="Error code when message transfer fails." Address="" Modifier="Constant" Kind="VarOutput" Alias="ErID" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="controlbit" DataType="BYTE" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="Ctrl" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="MSG_MODBUS2" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Send a modbus message." Language="C" CustomFbd="0" Localization="LibC" GroupName="Communications" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="MSG_MODBUS2" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="IN" DataType="BOOL" InitialValue="" Comment="Rung input state." Address="" Modifier="Constant" Kind="VarInput" Alias="IN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Cancel" DataType="BOOL" InitialValue="" Comment="1 - Cancel the execution of the FB." Address="" Modifier="Constant" Kind="VarInput" Alias="Canc" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="LocalCfg" DataType="MODBUS2LOCPARA" InitialValue="" Comment="Local Device configuration." Address="" Modifier="Constant" Kind="VarInput" Alias="Loca" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="TargetCfg" DataType="MODBUS2TARPARA" InitialValue="" Comment="Target Device configuration." Address="" Modifier="Constant" Kind="VarInput" Alias="Targ" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="LocalAddr" DataType="MODBUSLOCADDR" InitialValue="" Comment="Local address (125 words)" Address="" Modifier="Constant" Kind="VarInput" Alias="Loca" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="__ADI_LocalAddr" DataType="UINT" InitialValue="0" Comment="ADI hidden parameter for &lt;LocalAddr&gt; array input" Address="" Modifier="Constant" Kind="VarInput" Alias="_ADI" AccessRights="ReadWrite" StringSize="0" Direction="Hidden" CommentFields="" Attributes="0" />
<Variable Name="Q" DataType="BOOL" InitialValue="" Comment="FALSE - MSG instruction is not finished, TRUE - MSG instruction is finished." Address="" Modifier="Constant" Kind="VarOutput" Alias="Q" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Error" DataType="BOOL" InitialValue="" Comment="FALSE - No error, TRUE - An error is detected." Address="" Modifier="Constant" Kind="VarOutput" Alias="Err" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ErrorID" DataType="UINT" InitialValue="" Comment="Error code when message transfer fails." Address="" Modifier="Constant" Kind="VarOutput" Alias="ErID" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="SubErrorID" DataType="UINT" InitialValue="" Comment="SubError code when message transfer fails." Address="" Modifier="Constant" Kind="VarOutput" Alias="SuEr" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="StatusBits" DataType="UINT" InitialValue="" Comment="Message execution status." Address="" Modifier="Constant" Kind="VarOutput" Alias="Sts" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ctrl" DataType="UINT" InitialValue="" Comment="hidden parameter for function block" Address="" Modifier="Constant" Kind="Var" Alias="CTRL" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="pfb" DataType="UDINT" InitialValue="" Comment="hidden parameter for function block" Address="" Modifier="Constant" Kind="Var" Alias="PFB" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="nfb" DataType="UDINT" InitialValue="" Comment="hidden parameter for function block" Address="" Modifier="Constant" Kind="Var" Alias="NFB" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="mtim" DataType="UDINT" InitialValue="" Comment="hidden parameter for function block" Address="" Modifier="Constant" Kind="Var" Alias="MTIM" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="MSG_CIPGENERIC" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Send a CIP explicit message." Language="C" CustomFbd="0" Localization="LibC" GroupName="Communications" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="MSG_CIPGENERIC" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="IN" DataType="BOOL" InitialValue="" Comment="Rung input state." Address="" Modifier="Constant" Kind="VarInput" Alias="IN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="CtrlCfg" DataType="CIPCONTROLCFG" InitialValue="" Comment="Message execution control configuration" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="AppCfg" DataType="CIPAPPCFG" InitialValue="" Comment="CIP application path configuration" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="TargetCfg" DataType="CIPTARGETCFG" InitialValue="" Comment="CIP target configuration" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="ReqData" DataType="USINT" InitialValue="" Comment="CIP Request Data" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0">
<Dimension Lower="1" Upper="1" />
</Variable>
<Variable Name="ReqLength" DataType="UINT" InitialValue="" Comment="CIP Request data length" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="ResData" DataType="USINT" InitialValue="" Comment="CIP Response data" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0">
<Dimension Lower="1" Upper="1" />
</Variable>
<Variable Name="__ADI_ReqData" DataType="UINT" InitialValue="0" Comment="ADI hidden parameter for &lt;ReqData&gt; array input" Address="" Modifier="Constant" Kind="VarInput" Alias="_ADI" AccessRights="ReadWrite" StringSize="0" Direction="Hidden" CommentFields="" Attributes="0" />
<Variable Name="__ADI_ResData" DataType="UINT" InitialValue="0" Comment="ADI hidden parameter for &lt;ResData&gt; array input" Address="" Modifier="Constant" Kind="VarInput" Alias="_ADI" AccessRights="ReadWrite" StringSize="0" Direction="Hidden" CommentFields="" Attributes="0" />
<Variable Name="Q" DataType="BOOL" InitialValue="" Comment="FALSE - MSG instruction is not finished, TRUE - MSG instruction is finished." Address="" Modifier="Constant" Kind="VarOutput" Alias="Q" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Status" DataType="CIPSTATUS" InitialValue="" Comment="Message execution status." Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ResLength" DataType="UINT" InitialValue="" Comment="CIP Response data length" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ctrl" DataType="UINT" InitialValue="" Comment="hidden parameter for function block" Address="" Modifier="Constant" Kind="Var" Alias="CTRL" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="pfb" DataType="UDINT" InitialValue="" Comment="hidden parameter for function block" Address="" Modifier="Constant" Kind="Var" Alias="PFB" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="nfb" DataType="UDINT" InitialValue="" Comment="hidden parameter for function block" Address="" Modifier="Constant" Kind="Var" Alias="NFB" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="mtim" DataType="UDINT" InitialValue="" Comment="hidden parameter for function block" Address="" Modifier="Constant" Kind="Var" Alias="MTIM" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="lpnum" DataType="UDINT" InitialValue="" Comment="hidden parameter for function block" Address="" Modifier="Constant" Kind="Var" Alias="MTIM" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="MSG_CIPSYMBOLIC" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Send a CIP Symbolic message." Language="C" CustomFbd="0" Localization="LibC" GroupName="Communications" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="MSG_CIPSYMBOLIC" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="IN" DataType="BOOL" InitialValue="" Comment="Rung input state." Address="" Modifier="Constant" Kind="VarInput" Alias="IN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="CtrlCfg" DataType="CIPCONTROLCFG" InitialValue="" Comment="Message execution control configuration" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="SymbolicCfg" DataType="CIPSYMBOLICCFG" InitialValue="" Comment="CIP Symbolic path configuration" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="TargetCfg" DataType="CIPTARGETCFG" InitialValue="" Comment="CIP target configuration" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Data" DataType="USINT" InitialValue="" Comment="Read / Write data" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0">
<Dimension Lower="1" Upper="1" />
</Variable>
<Variable Name="__ADI_Data" DataType="UINT" InitialValue="0" Comment="ADI hidden parameter for &lt;Data&gt; array input" Address="" Modifier="Constant" Kind="VarInput" Alias="_ADI" AccessRights="ReadWrite" StringSize="0" Direction="Hidden" CommentFields="" Attributes="0" />
<Variable Name="Q" DataType="BOOL" InitialValue="" Comment="FALSE - MSG instruction is not finished, TRUE - MSG instruction is finished." Address="" Modifier="Constant" Kind="VarOutput" Alias="Q" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Status" DataType="CIPSTATUS" InitialValue="" Comment="Message execution status." Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="DataLength" DataType="UINT" InitialValue="" Comment="CIP response data length" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ctrl" DataType="UINT" InitialValue="" Comment="hidden parameter for function block" Address="" Modifier="Constant" Kind="Var" Alias="CTRL" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="pfb" DataType="UDINT" InitialValue="" Comment="hidden parameter for function block" Address="" Modifier="Constant" Kind="Var" Alias="PFB" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="nfb" DataType="UDINT" InitialValue="" Comment="hidden parameter for function block" Address="" Modifier="Constant" Kind="Var" Alias="NFB" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="mtim" DataType="UDINT" InitialValue="" Comment="hidden parameter for function block" Address="" Modifier="Constant" Kind="Var" Alias="MTIM" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="lpnum" DataType="UDINT" InitialValue="" Comment="hidden parameter for function block" Address="" Modifier="Constant" Kind="Var" Alias="MTIM" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="COP" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Copy a range of data from one location to another." Language="C" CustomFbd="0" Localization="LibC" GroupName="Data conversion" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="COP" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="Function block enable" Address="" Modifier="Constant" Kind="VarInput" Alias="ENAB" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Src" DataType="ANY_ELEMENTARY" InitialValue="" Comment="Initial element to copy" Address="" Modifier="Constant" Kind="VarInput" Alias="SRC" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0">
<Dimension Lower="1" Upper="1" />
</Variable>
<Variable Name="SrcOffset" DataType="UINT" InitialValue="" Comment="Source element offset" Address="" Modifier="Constant" Kind="VarInput" Alias="SOFF" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Dest" DataType="ANY_ELEMENTARY" InitialValue="" Comment="Initial element to be overwritten by the Source" Address="" Modifier="Constant" Kind="VarInput" Alias="DEST" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0">
<Dimension Lower="1" Upper="1" />
</Variable>
<Variable Name="DestOffset" DataType="UINT" InitialValue="" Comment="Destination element offset" Address="" Modifier="Constant" Kind="VarInput" Alias="DOFF" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Length" DataType="UINT" InitialValue="" Comment="Number of Destination Elements to copy" Address="" Modifier="Constant" Kind="VarInput" Alias="LEN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Swap" DataType="BOOL" InitialValue="" Comment="Swap bytes according to Data Type" Address="" Modifier="Constant" Kind="VarInput" Alias="SWAP" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="__ADI_Src" DataType="UINT" InitialValue="0" Comment="ADI hidden parameter for &lt;Src&gt; array input" Address="" Modifier="Constant" Kind="VarInput" Alias="_ADI" AccessRights="ReadWrite" StringSize="0" Direction="Hidden" CommentFields="" Attributes="0" />
<Variable Name="__ADI_Dest" DataType="UINT" InitialValue="0" Comment="ADI hidden parameter for &lt;Dest&gt; array input" Address="" Modifier="Constant" Kind="VarInput" Alias="_ADI" AccessRights="ReadWrite" StringSize="0" Direction="Hidden" CommentFields="" Attributes="0" />
<Variable Name="__DTI_Src" DataType="SINT" InitialValue="0" Comment="DTI hidden parameter for ANY_ELEMENTARY input" Address="" Modifier="Constant" Kind="VarInput" Alias="_DTI" AccessRights="ReadWrite" StringSize="0" Direction="Hidden" CommentFields="" Attributes="0" />
<Variable Name="__DTI_Dest" DataType="SINT" InitialValue="0" Comment="DTI hidden parameter for ANY_ELEMENTARY input" Address="" Modifier="Constant" Kind="VarInput" Alias="_DTI" AccessRights="ReadWrite" StringSize="0" Direction="Hidden" CommentFields="" Attributes="0" />
<Variable Name="Sts" DataType="UINT" InitialValue="" Comment="COP operation status" Address="" Modifier="Constant" Kind="VarOutput" Alias="Sts" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="PWM" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Enable PWM output." Language="C" CustomFbd="0" Localization="LibC" GroupName="Process Control" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="PWM" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="Function block enable" Address="" Modifier="Constant" Kind="VarInput" Alias="ENAB" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="On" DataType="BOOL" InitialValue="" Comment="ON/OFF PWM output" Address="" Modifier="Constant" Kind="VarInput" Alias="ON" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Freq" DataType="UDINT" InitialValue="" Comment="Output Frequency in Hz" Address="" Modifier="Constant" Kind="VarInput" Alias="FREQ" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="DutyCycle" DataType="UINT" InitialValue="" Comment="Duty Cycle" Address="" Modifier="Constant" Kind="VarInput" Alias="DCYC" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="ChType" DataType="UINT" InitialValue="" Comment="Channel Type" Address="" Modifier="Constant" Kind="VarInput" Alias="TYPE" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="ChSlot" DataType="UINT" InitialValue="" Comment="Channel Slot" Address="" Modifier="Constant" Kind="VarInput" Alias="SLOT" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="ChNum" DataType="UINT" InitialValue="" Comment="Channel Number" Address="" Modifier="Constant" Kind="VarInput" Alias="NUM" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Sts" DataType="UINT" InitialValue="" Comment="Function block execution status" Address="" Modifier="Constant" Kind="VarOutput" Alias="STS" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="DLG" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Save list of data instances to SD Card Data Log file." Language="C" CustomFbd="0" Localization="LibC" GroupName="Input/Output" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="DLG" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="Data Logging Output Enable" Address="" Modifier="Constant" Kind="VarInput" Alias="ENAB" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="TSEnable" DataType="BOOL" InitialValue="" Comment="Data Logging Time Stamp Logging Enable" Address="" Modifier="Constant" Kind="VarInput" Alias="TSEN" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="CfgID" DataType="USINT" InitialValue="" Comment="Data Logging Configure Set Index" Address="" Modifier="Constant" Kind="VarInput" Alias="CFGI" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Status" DataType="USINT" InitialValue="" Comment="Data Logging Execution Status" Address="" Modifier="Constant" Kind="VarOutput" Alias="STS" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ErrorID" DataType="UDINT" InitialValue="" Comment="Data Logging Execution Error Information" Address="" Modifier="Constant" Kind="VarOutput" Alias="ERRI" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="DlgEdge" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="CfgIDLock" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="RCP" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Save/Restore list of data to/from SD Card Recipe file." Language="C" CustomFbd="0" Localization="LibC" GroupName="Input/Output" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="RCP" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="Recipe Input or Output Enable" Address="" Modifier="Constant" Kind="VarInput" Alias="ENAB" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="RWFlag" DataType="BOOL" InitialValue="" Comment="Recipe Data Read/Write Flag, Read Flag is FALSE, Write Flag is TRUE." Address="" Modifier="Constant" Kind="VarInput" Alias="RWF" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="CfgID" DataType="USINT" InitialValue="" Comment="Recipe Configure Set Index" Address="" Modifier="Constant" Kind="VarInput" Alias="CFGI" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="FileName" DataType="STRING" InitialValue="" Comment="Recipe Data File Name" Address="" Modifier="Constant" Kind="VarInput" Alias="FN" AccessRights="ReadWrite" StringSize="255" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Status" DataType="USINT" InitialValue="" Comment="Recipe execution status" Address="" Modifier="Constant" Kind="VarOutput" Alias="STS" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ErrorID" DataType="UDINT" InitialValue="" Comment="Recipe Execution Error Information" Address="" Modifier="Constant" Kind="VarOutput" Alias="ERRI" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="RcpEdge" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="CfgIDFileNameLock" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="LCD_BKLT_REM" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Set the remote LCD backlight parameters." Language="C" CustomFbd="0" Localization="LibC" GroupName="Remote LCD" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="LCD_BKLT_REM" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="Enable (TRUE:Enable, Enable User Setting of Backlight Clor and Mode ; FALSE: Menu Setting of Backlight Take the effect)" Address="" Modifier="Constant" Kind="VarInput" Alias="En" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Color" DataType="UINT" InitialValue="" Comment="Remote LCD Backlight Color (0: White; 1:Blue; 2: Red, 3:Green)" Address="" Modifier="Constant" Kind="VarInput" Alias="Colr" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Mode" DataType="UINT" InitialValue="" Comment="Backlight Mode (0: OFF; 1:ON; 2: Flash 1 Sec)" Address="" Modifier="Constant" Kind="VarInput" Alias="Mode" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="LCD_BKLT_REM" DataType="BOOL" InitialValue="" Comment="LCD_BKLT_REM result (TRUE: Backlight parameters changed succesfully; FALSE: User's backlight parameters did not take effect )" Address="" Modifier="Constant" Kind="VarOutput" Alias="Bklt" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Sts" DataType="UINT" InitialValue="" Comment="Status Code of LCD_REM (0: Disabled; 1: Success; 2: RLCD Absent; 3: Connection Error; 4: Invalid Color; 5: Invalid Mode)" Address="" Modifier="Constant" Kind="VarOutput" Alias="Sts" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="KEY_READ_REM" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Check key status on remote LCD." Language="C" CustomFbd="0" Localization="LibC" GroupName="Remote LCD" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="KEY_READ_REM" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="Enable (TRUE:Enable Read Keys on Remote LCD Keypad; FALSE:Disable Read Keys on Remote LCD Keypad)" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="KEY_READ_REM" DataType="BOOL" InitialValue="" Comment="(True: Data Read Successful; False: Data Read NOT Successful)" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Sts" DataType="UINT" InitialValue="" Comment="Status(0- Enable False; 1- Success; 2-RLCD Absent; 3-Connection Error; 4- User Display not Active)" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="KeyData" DataType="UDINT" InitialValue="" Comment="Key Data read form Remote LCD Keypad" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
<Pou FileVersion="200.00.003" Name="LCD_REM" ElementGuid="00000000-0000-0000-0000-000000000000" Comment="" SingleTextLine="Display user strings on remote LCD when it is connected." Language="C" CustomFbd="0" Localization="LibC" GroupName="Remote LCD" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="false" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="LCD_REM" InitInstance="true" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="Enable (TRUE:Enable, to be displayed on LCD; FALSE:Disable, not displayed on LCD)" Address="" Modifier="Constant" Kind="VarInput" Alias="En" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Font" DataType="UDINT" InitialValue="" Comment="Font Code for strings to be displayed on the LCD" Address="" Modifier="Constant" Kind="VarInput" Alias="Font" AccessRights="ReadWrite" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Line1" DataType="STRING" InitialValue="" Comment="String to be displayed on Line 1 of LCD (the length of string &lt;=32)" Address="" Modifier="Constant" Kind="VarInput" Alias="Ln1" AccessRights="ReadWrite" StringSize="32" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Line2" DataType="STRING" InitialValue="" Comment="String to be displayed on Line 2 of LCD (the length of string &lt;=32)" Address="" Modifier="Constant" Kind="VarInput" Alias="Ln2" AccessRights="ReadWrite" StringSize="32" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Line3" DataType="STRING" InitialValue="" Comment="String to be displayed on Line 3 of LCD (the length of string &lt;=32)" Address="" Modifier="Constant" Kind="VarInput" Alias="Ln3" AccessRights="ReadWrite" StringSize="32" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Line4" DataType="STRING" InitialValue="" Comment="String to be displayed on Line 4 of LCD (the length of string &lt;=32)" Address="" Modifier="Constant" Kind="VarInput" Alias="Ln4" AccessRights="ReadWrite" StringSize="32" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Line5" DataType="STRING" InitialValue="" Comment="String to be displayed on Line 5 of LCD (the length of string &lt;=32)" Address="" Modifier="Constant" Kind="VarInput" Alias="Ln5" AccessRights="ReadWrite" StringSize="32" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Line6" DataType="STRING" InitialValue="" Comment="String to be displayed on Line 6 of LCD (the length of string &lt;=32)" Address="" Modifier="Constant" Kind="VarInput" Alias="Ln6" AccessRights="ReadWrite" StringSize="32" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Line7" DataType="STRING" InitialValue="" Comment="String to be displayed on Line 7 of LCD (the length of string &lt;=32)" Address="" Modifier="Constant" Kind="VarInput" Alias="Ln7" AccessRights="ReadWrite" StringSize="32" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Line8" DataType="STRING" InitialValue="" Comment="String to be displayed on Line 8 of LCD (the length of string &lt;=32)" Address="" Modifier="Constant" Kind="VarInput" Alias="Ln8" AccessRights="ReadWrite" StringSize="32" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="LCD_REM" DataType="BOOL" InitialValue="" Comment="TRUE: User Disply Active; FALSE: User display is not Active" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Sts" DataType="UINT" InitialValue="" Comment="Status Code of LCD_REM (0: Disabled; 1: Success; 2: RLCD Absent; 3: Connection Error; 4: Invalid Font Code)" Address="" Modifier="Constant" Kind="VarOutput" Alias="Sts" AccessRights="ReadWrite" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody />
<PouUIProperties />
</Pou>
</Pous>
<IODevices>
<IODevice DriverName="OPTIMUS_" PackageName="AB_" Name="digitIn_Base" DataType="BOOL" MinChannel="0" MaxChannel="32" Direction="Input" IsSimple="true" Comment="" SingleTextLine="">
<Parameters />
<ChannelParameters />
</IODevice>
<IODevice DriverName="OPTIMUS_" PackageName="AB_" Name="analogOut_UP" DataType="UINT" MinChannel="0" MaxChannel="8" Direction="Output" IsSimple="true" Comment="" SingleTextLine="">
<Parameters />
<ChannelParameters />
</IODevice>
<IODevice DriverName="OPTIMUS_" PackageName="AB_" Name="digitOut_Base" DataType="BOOL" MinChannel="0" MaxChannel="32" Direction="Output" IsSimple="true" Comment="" SingleTextLine="">
<Parameters />
<ChannelParameters />
</IODevice>
<IODevice DriverName="OPTIMUS_" PackageName="AB_" Name="analogIn_UP" DataType="UINT" MinChannel="0" MaxChannel="8" Direction="Input" IsSimple="true" Comment="" SingleTextLine="">
<Parameters />
<ChannelParameters />
</IODevice>
<IODevice DriverName="OPTIMUS_" PackageName="AB_" Name="digitIn_UP" DataType="BOOL" MinChannel="0" MaxChannel="16" Direction="Input" IsSimple="true" Comment="" SingleTextLine="">
<Parameters />
<ChannelParameters />
</IODevice>
<IODevice DriverName="OPTIMUS_" PackageName="AB_" Name="digitOut_UP" DataType="BOOL" MinChannel="0" MaxChannel="16" Direction="Output" IsSimple="true" Comment="" SingleTextLine="">
<Parameters />
<ChannelParameters />
</IODevice>
<IODevice DriverName="OPTIMUS_" PackageName="AB_" Name="IOUP_Analog" DataType="BOOL" MinChannel="0" MaxChannel="0" Direction="Input" IsSimple="false" Comment="" SingleTextLine="">
<Parameters />
<ChannelParameters />
<Devices>
<Device Name="analogOut_UP" />
<Device Name="analogIn_UP" />
</Devices>
</IODevice>
<IODevice DriverName="OPTIMUS_" PackageName="AB_" Name="IOUP_Digit" DataType="BOOL" MinChannel="0" MaxChannel="0" Direction="Input" IsSimple="false" Comment="" SingleTextLine="">
<Parameters />
<ChannelParameters />
<Devices>
<Device Name="digitOut_UP" />
<Device Name="digitIn_UP" />
</Devices>
</IODevice>
<IODevice DriverName="OPTIMUS_" PackageName="AB_" Name="analogIn_Base" DataType="UINT" MinChannel="4" MaxChannel="4" Direction="Input" IsSimple="true" Comment="" SingleTextLine="">
<Parameters />
<ChannelParameters />
</IODevice>
<IODevice DriverName="OPTIMUS_" PackageName="AB_" Name="analogOut_Base" DataType="UINT" MinChannel="1" MaxChannel="1" Direction="Output" IsSimple="true" Comment="" SingleTextLine="">
<Parameters />
<ChannelParameters />
</IODevice>
<IODevice DriverName="OPTIMUS_" PackageName="AB_" Name="IO_Base" DataType="BOOL" MinChannel="0" MaxChannel="0" Direction="Input" IsSimple="false" Comment="" SingleTextLine="">
<Parameters />
<ChannelParameters />
<Devices>
<Device Name="digitOut_Base" />
<Device Name="digitIn_Base" />
<Device Name="analogOut_Base" />
<Device Name="analogIn_Base" />
</Devices>
</IODevice>
</IODevices>
</Target>

View File

@@ -1,372 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Name="Controller" ElementGuid="3a2a26f4-3c58-45f6-b694-cd46001b631c" FileVersion="200.00.003" Comment="" SingleTextLine="template" DbVersion="05.50.03" LibraryType="Project" LegacyBinding="true" Password="" ReadOnly="false">
<FileHeader CompanyName="Rockwell Automation Canada, Ltd." ProductName="CAM ISaGRAF 5" CompanyUrl="http://www.isagraf.com" ProductVersion="0" />
<Libraries />
<DefineWords>
<DefineWord Name="IRQ_UFR" Define="1" Comment="" Access="ReadOnly" />
<DefineWord Name="IRQ_UPM0" Define="524288" Comment="" Access="ReadOnly" />
<DefineWord Name="IRQ_UPM1" Define="1048576" Comment="" Access="ReadOnly" />
<DefineWord Name="IRQ_STI0" Define="32768" Comment="" Access="ReadOnly" />
<DefineWord Name="IRQ_STI1" Define="65536" Comment="" Access="ReadOnly" />
<DefineWord Name="DSET1" Define="1" Comment="" Access="ReadOnly" />
<DefineWord Name="DSET2" Define="2" Comment="" Access="ReadOnly" />
<DefineWord Name="DSET3" Define="3" Comment="" Access="ReadOnly" />
<DefineWord Name="DSET4" Define="4" Comment="" Access="ReadOnly" />
<DefineWord Name="DSET5" Define="5" Comment="" Access="ReadOnly" />
<DefineWord Name="DSET6" Define="6" Comment="" Access="ReadOnly" />
<DefineWord Name="DSET7" Define="7" Comment="" Access="ReadOnly" />
<DefineWord Name="DSET8" Define="8" Comment="" Access="ReadOnly" />
<DefineWord Name="DSET9" Define="9" Comment="" Access="ReadOnly" />
<DefineWord Name="DSET10" Define="10" Comment="" Access="ReadOnly" />
<DefineWord Name="RCP1" Define="1" Comment="" Access="ReadOnly" />
<DefineWord Name="RCP2" Define="2" Comment="" Access="ReadOnly" />
<DefineWord Name="RCP3" Define="3" Comment="" Access="ReadOnly" />
<DefineWord Name="RCP4" Define="4" Comment="" Access="ReadOnly" />
<DefineWord Name="RCP5" Define="5" Comment="" Access="ReadOnly" />
<DefineWord Name="RCP6" Define="6" Comment="" Access="ReadOnly" />
<DefineWord Name="RCP7" Define="7" Comment="" Access="ReadOnly" />
<DefineWord Name="RCP8" Define="8" Comment="" Access="ReadOnly" />
<DefineWord Name="RCP9" Define="9" Comment="" Access="ReadOnly" />
<DefineWord Name="RCP10" Define="10" Comment="" Access="ReadOnly" />
</DefineWords>
<DataTypes>
<DataType Name="CIPEEOBJ_ATTRIBS" Comment="" Access="UserDefined">
<Struct FieldOrder="0" Order="1">
<Variable Name="RealEnergyConsumedOdometer" DataType="LREAL" Comment="" StringSize="0" Order="1" />
<Variable Name="RealEnergyGeneratedOdometer" DataType="LREAL" Comment="" StringSize="0" Order="2" />
<Variable Name="RealEnergyNetOdometer" DataType="LREAL" Comment="" StringSize="0" Order="3" />
<Variable Name="ReactiveEnergyConsumedOdometer" DataType="LREAL" Comment="" StringSize="0" Order="4" />
<Variable Name="ReactiveEnergyGeneratedOdometer" DataType="LREAL" Comment="" StringSize="0" Order="5" />
<Variable Name="ReactiveEnergyNetOdometer" DataType="LREAL" Comment="" StringSize="0" Order="6" />
<Variable Name="ApparentEnergyOdometer" DataType="LREAL" Comment="" StringSize="0" Order="7" />
<Variable Name="KiloampereHoursOdometer" DataType="LREAL" Comment="" StringSize="0" Order="8" />
<Variable Name="LineFrequency" DataType="REAL" Comment="" StringSize="0" Order="9" />
<Variable Name="L1Current" DataType="REAL" Comment="" StringSize="0" Order="10" />
<Variable Name="L2Current" DataType="REAL" Comment="" StringSize="0" Order="11" />
<Variable Name="L3Current" DataType="REAL" Comment="" StringSize="0" Order="12" />
<Variable Name="AverageCurrent" DataType="REAL" Comment="" StringSize="0" Order="13" />
<Variable Name="PercentCurrentUnbalance" DataType="REAL" Comment="" StringSize="0" Order="14" />
<Variable Name="L1NVoltage" DataType="REAL" Comment="" StringSize="0" Order="15" />
<Variable Name="L2NVoltage" DataType="REAL" Comment="" StringSize="0" Order="16" />
<Variable Name="L3NVoltage" DataType="REAL" Comment="" StringSize="0" Order="17" />
<Variable Name="AverageLNVoltage" DataType="REAL" Comment="" StringSize="0" Order="18" />
<Variable Name="L1L2Voltage" DataType="REAL" Comment="" StringSize="0" Order="19" />
<Variable Name="L2L3Voltage" DataType="REAL" Comment="" StringSize="0" Order="20" />
<Variable Name="L3L1Voltage" DataType="REAL" Comment="" StringSize="0" Order="21" />
<Variable Name="AverageLLVoltage" DataType="REAL" Comment="" StringSize="0" Order="22" />
<Variable Name="PercentVoltageUnbalance" DataType="REAL" Comment="" StringSize="0" Order="23" />
<Variable Name="L1RealPower" DataType="REAL" Comment="" StringSize="0" Order="24" />
<Variable Name="L2RealPower" DataType="REAL" Comment="" StringSize="0" Order="25" />
<Variable Name="L3RealPower" DataType="REAL" Comment="" StringSize="0" Order="26" />
<Variable Name="TotalRealPower" DataType="REAL" Comment="" StringSize="0" Order="27" />
<Variable Name="L1ReactivePower" DataType="REAL" Comment="" StringSize="0" Order="28" />
<Variable Name="L2ReactivePower" DataType="REAL" Comment="" StringSize="0" Order="29" />
<Variable Name="L3ReactivePower" DataType="REAL" Comment="" StringSize="0" Order="30" />
<Variable Name="TotalReactivePower" DataType="REAL" Comment="" StringSize="0" Order="31" />
<Variable Name="L1ApparentPower" DataType="REAL" Comment="" StringSize="0" Order="32" />
<Variable Name="L2ApparentPower" DataType="REAL" Comment="" StringSize="0" Order="33" />
<Variable Name="L3ApparentPower" DataType="REAL" Comment="" StringSize="0" Order="34" />
<Variable Name="TotalApparentPower" DataType="REAL" Comment="" StringSize="0" Order="35" />
<Variable Name="L1TruePowerFactor" DataType="REAL" Comment="" StringSize="0" Order="36" />
<Variable Name="L2TruePowerFactor" DataType="REAL" Comment="" StringSize="0" Order="37" />
<Variable Name="L3TruePowerFactor" DataType="REAL" Comment="" StringSize="0" Order="38" />
<Variable Name="ThreePhaseTruePowerFactor" DataType="REAL" Comment="" StringSize="0" Order="39" />
<Variable Name="PhaseRotation" DataType="STRING" Comment="" StringSize="4" Order="40" />
</Struct>
</DataType>
<DataType Name="MODBUSLOCADDR" Comment="" Access="ReadOnly">
<Array Order="5" DataType="WORD" StringSize="0">
<Dimension Lower="1" Upper="125" />
</Array>
</DataType>
<DataType Name="MODBUS2NODEADDR" Comment="" Access="ReadOnly">
<Array Order="6" DataType="USINT" StringSize="0">
<Dimension Lower="0" Upper="3" />
</Array>
</DataType>
<DataType Name="CIPMEMBERID" Comment="" Access="ReadOnly">
<Array Order="7" DataType="UINT" StringSize="0">
<Dimension Lower="0" Upper="2" />
</Array>
</DataType>
<DataType Name="ASCIILOCADDR" Comment="" Access="ReadOnly">
<Array Order="8" DataType="BYTE" StringSize="0">
<Dimension Lower="1" Upper="82" />
</Array>
</DataType>
<DataType Name="IRQSTI" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="25">
<Variable Name="AS" DataType="BOOL" Comment="Auto start" StringSize="0" Order="1" />
<Variable Name="ENABLED" DataType="BOOL" Comment="Function Enabled" StringSize="0" Order="2" />
<Variable Name="PE" DataType="BOOL" Comment="Pending User Interrupt" StringSize="0" Order="3" />
<Variable Name="LS" DataType="BOOL" Comment="Lost User Interrupt" StringSize="0" Order="4" />
<Variable Name="EX" DataType="BOOL" Comment="Executing User Interrupt" StringSize="0" Order="5" />
<Variable Name="SP" DataType="UINT" Comment="Number of milliseconds between interrupts" StringSize="0" Order="6" />
</Struct>
</DataType>
<DataType Name="DOYDATA" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="26">
<Variable Name="Enable" DataType="BOOL" Comment="Enable (TRUE:enable; FALSE:disable)" StringSize="0" Order="1" />
<Variable Name="YearlyCenturial" DataType="BOOL" Comment="Timer Flag (FALSE: Yearly timer; TRUE: Centurial timer)" StringSize="0" Order="2" />
<Variable Name="YearOn" DataType="UINT" Comment="Year On value (must be in set [2000...2098])" StringSize="0" Order="3" />
<Variable Name="MonthOn" DataType="USINT" Comment="Month On value (must be in set [1...12])" StringSize="0" Order="4" />
<Variable Name="DayOn" DataType="USINT" Comment="Day On value (must be in set [1...31], determined by &quot;MonthOn&quot; value)" StringSize="0" Order="5" />
<Variable Name="YearOff" DataType="UINT" Comment="Year Off value (must be in set [2000...2098])" StringSize="0" Order="6" />
<Variable Name="MonthOff" DataType="USINT" Comment="Month Off value (must be in set [1...12])" StringSize="0" Order="7" />
<Variable Name="DayOff" DataType="USINT" Comment="Day Off value (must be in set [1...31], determined by &quot;MonthOff&quot; value)" StringSize="0" Order="8" />
</Struct>
</DataType>
<DataType Name="AWAAWT" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="27">
<Variable Name="Channel" DataType="UINT" Comment="" StringSize="0" Order="1" />
<Variable Name="Length" DataType="UINT" Comment="" StringSize="0" Order="2" />
<Variable Name="Cancel" DataType="BOOL" Comment="" StringSize="0" Order="3" />
</Struct>
</DataType>
<DataType Name="GAIN_PID" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="28">
<Variable Name="DirectActing" DataType="BOOL" Comment="''" StringSize="0" Order="1" />
<Variable Name="ProportionalGain" DataType="REAL" Comment="''" StringSize="0" Order="2" />
<Variable Name="TimeIntegral" DataType="REAL" Comment="''" StringSize="0" Order="3" />
<Variable Name="TimeDerivative" DataType="REAL" Comment="''" StringSize="0" Order="4" />
<Variable Name="DerivativeGain" DataType="REAL" Comment="''" StringSize="0" Order="5" />
</Struct>
</DataType>
<DataType Name="AHLI" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="29">
<Variable Name="Channel" DataType="UINT" Comment="" StringSize="0" Order="1" />
<Variable Name="ClrRts" DataType="BOOL" Comment="" StringSize="0" Order="2" />
<Variable Name="SetRts" DataType="BOOL" Comment="" StringSize="0" Order="3" />
<Variable Name="Cancel" DataType="BOOL" Comment="" StringSize="0" Order="4" />
</Struct>
</DataType>
<DataType Name="MODBUSLOCPARA" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="30">
<Variable Name="Channel" DataType="UINT" Comment="" StringSize="0" Order="1" />
<Variable Name="TriggerType" DataType="USINT" Comment="" StringSize="0" Order="2" />
<Variable Name="Cmd" DataType="USINT" Comment="" StringSize="0" Order="3" />
<Variable Name="ElementCnt" DataType="UINT" Comment="" StringSize="0" Order="4" />
</Struct>
</DataType>
<DataType Name="MODBUSTARPARA" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="31">
<Variable Name="Addr" DataType="UDINT" Comment="" StringSize="0" Order="1" />
<Variable Name="Node" DataType="USINT" Comment="" StringSize="0" Order="2" />
</Struct>
</DataType>
<DataType Name="MODBUS2LOCPARA" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="32">
<Variable Name="Channel" DataType="UINT" Comment="Local Channel number" StringSize="0" Order="1" />
<Variable Name="TriggerType" DataType="UDINT" Comment="0 = Trigger once, n = Cyclic Trigger" StringSize="0" Order="2" />
<Variable Name="Cmd" DataType="USINT" Comment="Modbus command" StringSize="0" Order="3" />
<Variable Name="ElementCnt" DataType="UINT" Comment="No. of elements to Read/Write" StringSize="0" Order="4" />
</Struct>
</DataType>
<DataType Name="MODBUS2TARPARA" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="33">
<Variable Name="Addr" DataType="UDINT" Comment="Target's Modbus data address" StringSize="0" Order="1" />
<Variable Name="NodeAddress" DataType="MODBUS2NODEADDR" Comment="Target node address" StringSize="0" Order="2" />
<Variable Name="Port" DataType="UINT" Comment="Target TCP port number" StringSize="0" Order="3" />
<Variable Name="UnitId" DataType="USINT" Comment="Unit Identifier" StringSize="0" Order="4" />
<Variable Name="MsgTimeout" DataType="UDINT" Comment="Message time out (in milliseconds)" StringSize="0" Order="5" />
<Variable Name="ConnTimeout" DataType="UDINT" Comment="Connection timeout (in milliseconds)" StringSize="0" Order="6" />
<Variable Name="ConnClose" DataType="BOOL" Comment="Connection closing behavior" StringSize="0" Order="7" />
</Struct>
</DataType>
<DataType Name="CIPSYMBOLICCFG" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="37">
<Variable Name="Service" DataType="USINT" Comment="0 - Read, 1 - Write" StringSize="0" Order="1" />
<Variable Name="Symbol" DataType="STRING" Comment="Symbol name to read / write" StringSize="80" Order="2" />
<Variable Name="Count" DataType="UINT" Comment="Num of variables to read/ write. 1 - 65535." StringSize="0" Order="3" />
<Variable Name="DataType" DataType="USINT" Comment="Symbol data type" StringSize="0" Order="4" />
<Variable Name="Offset" DataType="USINT" Comment="Byte offset of variable to read / write. 0 - 0xffffffff" StringSize="0" Order="5" />
</Struct>
</DataType>
<DataType Name="ABLACB" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="39">
<Variable Name="Channel" DataType="UINT" Comment="" StringSize="0" Order="1" />
<Variable Name="TriggerType" DataType="USINT" Comment="" StringSize="0" Order="2" />
<Variable Name="Cancel" DataType="BOOL" Comment="" StringSize="0" Order="3" />
</Struct>
</DataType>
<DataType Name="ARDARL" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="40">
<Variable Name="Channel" DataType="UINT" Comment="" StringSize="0" Order="1" />
<Variable Name="Length" DataType="UINT" Comment="" StringSize="0" Order="2" />
<Variable Name="Cancel" DataType="BOOL" Comment="" StringSize="0" Order="3" />
</Struct>
</DataType>
<DataType Name="AT_PARAM" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="41">
<Variable Name="Load" DataType="REAL" Comment="" StringSize="0" Order="1" />
<Variable Name="Deviation" DataType="REAL" Comment="" StringSize="0" Order="2" />
<Variable Name="Step" DataType="REAL" Comment="" StringSize="0" Order="3" />
<Variable Name="ATDynaSet" DataType="REAL" Comment="" StringSize="0" Order="4" />
<Variable Name="ATReset" DataType="BOOL" Comment="" StringSize="0" Order="5" />
</Struct>
</DataType>
<DataType Name="IRQUPM" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="42">
<Variable Name="AS" DataType="BOOL" Comment="Auto start" StringSize="0" Order="1" />
<Variable Name="ENABLED" DataType="BOOL" Comment="Function Enabled" StringSize="0" Order="2" />
<Variable Name="PE" DataType="BOOL" Comment="Pending User Interrupt" StringSize="0" Order="3" />
<Variable Name="LS" DataType="BOOL" Comment="Lost User Interrupt" StringSize="0" Order="4" />
<Variable Name="EX" DataType="BOOL" Comment="Executing User Interrupt" StringSize="0" Order="5" />
</Struct>
</DataType>
<DataType Name="CIPCONTROLCFG" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="43">
<Variable Name="Cancel" DataType="BOOL" Comment="Abort the execution of message" StringSize="0" Order="1" />
<Variable Name="TriggerType" DataType="UDINT" Comment="0 - Trigger once, n - Cyclic trigger" StringSize="0" Order="2" />
<Variable Name="StrMode" DataType="USINT" Comment="reserved parameter" StringSize="0" Order="3" />
</Struct>
</DataType>
<DataType Name="TOWDATA" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="43">
<Variable Name="Enable" DataType="BOOL" Comment="Enable (TRUE:Enable; FALSE:Disable)" StringSize="0" Order="1" />
<Variable Name="DailyWeekly" DataType="BOOL" Comment="Type of Timer (FALSE:daily timer; TRUE:weekly timer)" StringSize="0" Order="2" />
<Variable Name="DayOn" DataType="USINT" Comment="Day of Week On value (must be in set [0...6])" StringSize="0" Order="3" />
<Variable Name="HourOn" DataType="USINT" Comment="Hour On value (must be in set [0...23])" StringSize="0" Order="4" />
<Variable Name="MinOn" DataType="USINT" Comment="Minute On value (must be in set [0...59])" StringSize="0" Order="5" />
<Variable Name="DayOff" DataType="USINT" Comment="Day of Week Off value (must be in set [0...6])" StringSize="0" Order="6" />
<Variable Name="HourOff" DataType="USINT" Comment="Hour Off value (must be in set [0...23])" StringSize="0" Order="7" />
<Variable Name="MinOff" DataType="USINT" Comment="Minute Off value (must be in set [0...59])" StringSize="0" Order="8" />
</Struct>
</DataType>
<DataType Name="CIPTARGETCFG" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="44">
<Variable Name="Path" DataType="STRING" Comment="CIP destination path" StringSize="80" Order="1" />
<Variable Name="CipConnMode" DataType="USINT" Comment="0 - Unconnected, 1 - Class3 connection" StringSize="0" Order="2" />
<Variable Name="UcmmTimeout" DataType="UDINT" Comment="Unconnected message time out." StringSize="0" Order="3" />
<Variable Name="ConnMsgTimeout" DataType="UDINT" Comment="Connected message time out." StringSize="0" Order="4" />
<Variable Name="ConnClose" DataType="BOOL" Comment="TRUE: Close CIP connection upon message completion" StringSize="0" Order="5" />
</Struct>
</DataType>
<DataType Name="MMCATNUM" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="44">
<Variable Name="CatalogStr" DataType="STRING" Comment="" StringSize="16" Order="1" />
</Struct>
</DataType>
<DataType Name="CIPAPPCFG" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="45">
<Variable Name="Service" DataType="USINT" Comment="CIP Service code: 1 - 127" StringSize="0" Order="1" />
<Variable Name="Class" DataType="UINT" Comment="CIP Class ID: 1 - 65535" StringSize="0" Order="2" />
<Variable Name="Instance" DataType="UDINT" Comment="CIP Instance ID: 0 - 0xFFFFFFFF" StringSize="0" Order="3" />
<Variable Name="Attribute" DataType="UINT" Comment="CIP Attribute: 1 - 65535, 0 - No attribute" StringSize="0" Order="4" />
<Variable Name="MemberCnt" DataType="USINT" Comment="CIP Member ID count: 1 - 3, 0 - None" StringSize="0" Order="5" />
<Variable Name="MemberId" DataType="CIPMEMBERID" Comment="CIP Member ID: 0 - 65535" StringSize="0" Order="6" />
</Struct>
</DataType>
<DataType Name="RTC" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="45">
<Variable Name="Year" DataType="UINT" Comment="" StringSize="0" Order="1" />
<Variable Name="Month" DataType="UINT" Comment="" StringSize="0" Order="2" />
<Variable Name="Day" DataType="UINT" Comment="" StringSize="0" Order="3" />
<Variable Name="Hours" DataType="UINT" Comment="" StringSize="0" Order="4" />
<Variable Name="Minutes" DataType="UINT" Comment="" StringSize="0" Order="5" />
<Variable Name="Seconds" DataType="UINT" Comment="" StringSize="0" Order="6" />
<Variable Name="DayOfWeek" DataType="UINT" Comment="" StringSize="0" Order="7" />
</Struct>
</DataType>
<DataType Name="MMINFO" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="46">
<Variable Name="MMCatalog" DataType="MMCATNUM" Comment="" StringSize="0" Order="1" />
<Variable Name="Series" DataType="UINT" Comment="" StringSize="0" Order="2" />
<Variable Name="Revision" DataType="UINT" Comment="" StringSize="0" Order="3" />
<Variable Name="UPValid" DataType="BOOL" Comment="" StringSize="0" Order="4" />
<Variable Name="ModeBehavior" DataType="BOOL" Comment="" StringSize="0" Order="5" />
<Variable Name="LoadAlways" DataType="BOOL" Comment="" StringSize="0" Order="6" />
<Variable Name="LoadOnError" DataType="BOOL" Comment="" StringSize="0" Order="7" />
<Variable Name="FaultOverride" DataType="BOOL" Comment="" StringSize="0" Order="8" />
<Variable Name="MMPresent" DataType="BOOL" Comment="" StringSize="0" Order="9" />
</Struct>
</DataType>
<DataType Name="CIPSTATUS" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="47">
<Variable Name="Error" DataType="BOOL" Comment="TRUE: message execution error" StringSize="0" Order="1" />
<Variable Name="ErrorID" DataType="UINT" Comment="Error code" StringSize="0" Order="2" />
<Variable Name="SubErrorID" DataType="UINT" Comment="Sub Error code" StringSize="0" Order="3" />
<Variable Name="ExtErrorID" DataType="UINT" Comment="CIP extended status error code" StringSize="0" Order="4" />
<Variable Name="StatusBits" DataType="UINT" Comment="Message execution status." StringSize="0" Order="5" />
</Struct>
</DataType>
<DataType Name="SYSINFO" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="47">
<Variable Name="BootMajRev" DataType="UINT" Comment="" StringSize="0" Order="1" />
<Variable Name="BootMinRev" DataType="UINT" Comment="" StringSize="0" Order="2" />
<Variable Name="OSSeries" DataType="UINT" Comment="" StringSize="0" Order="3" />
<Variable Name="OSMajRev" DataType="UINT" Comment="" StringSize="0" Order="4" />
<Variable Name="OSMinRev" DataType="UINT" Comment="" StringSize="0" Order="5" />
<Variable Name="ModeBehaviour" DataType="BOOL" Comment="" StringSize="0" Order="6" />
<Variable Name="FaultOverride" DataType="BOOL" Comment="" StringSize="0" Order="7" />
<Variable Name="StrtUpProtect" DataType="BOOL" Comment="" StringSize="0" Order="8" />
<Variable Name="MajErrHalted" DataType="BOOL" Comment="" StringSize="0" Order="9" />
<Variable Name="MajErrCode" DataType="UINT" Comment="" StringSize="0" Order="10" />
<Variable Name="MajErrUFR" DataType="BOOL" Comment="" StringSize="0" Order="11" />
<Variable Name="UFRPouNum" DataType="UINT" Comment="" StringSize="0" Order="12" />
<Variable Name="MMLoadAlways" DataType="BOOL" Comment="" StringSize="0" Order="13" />
<Variable Name="MMLoadOnError" DataType="BOOL" Comment="" StringSize="0" Order="14" />
<Variable Name="MMPwdMismatch" DataType="BOOL" Comment="" StringSize="0" Order="15" />
<Variable Name="FreeRunClock" DataType="UINT" Comment="" StringSize="0" Order="16" />
<Variable Name="ForcesInstall" DataType="BOOL" Comment="" StringSize="0" Order="17" />
<Variable Name="EmInFilterMod" DataType="BOOL" Comment="" StringSize="0" Order="18" />
</Struct>
</DataType>
<DataType Name="ACLI" Comment="" Access="ReadOnly">
<Struct FieldOrder="1" Order="48">
<Variable Name="Channel" DataType="UINT" Comment="" StringSize="0" Order="1" />
<Variable Name="RXBuffer" DataType="BOOL" Comment="" StringSize="0" Order="2" />
<Variable Name="TXBuffer" DataType="BOOL" Comment="" StringSize="0" Order="3" />
</Struct>
</DataType>
</DataTypes>
<Networks>
<Network Name="HSD" SingleTextLine="" LocalNet="true" DistributedNet="false" Comment="" UsedForBinding="true" BindingService="false" AllowWorkbenchCommunications="true">
<Parameters />
<ConnectionParameters />
<ResourceParameters>
<Parameter Name="ValidityTime" Format="Long" Default="0" Access="UserDefined" SingleTextLine="Produced Variables validity time." LocalNet="false" DistributedNet="false" />
</ResourceParameters>
<VariableParameters />
</Network>
<Network Name="ETCP" SingleTextLine="" LocalNet="false" DistributedNet="true" Comment="" UsedForBinding="true" BindingService="false" AllowWorkbenchCommunications="true">
<Parameters />
<ConnectionParameters>
<Parameter Name="IPAddress" Format="String" Default="" Access="UserDefined" SingleTextLine="IP address or Computer name" LocalNet="false" DistributedNet="true" />
</ConnectionParameters>
<ResourceParameters>
<Parameter Name="TimeOut" Format="Long" Default="10000" Access="UserDefined" SingleTextLine="Maximum allowed time (in ms) to transport a variable" LocalNet="false" DistributedNet="false" />
</ResourceParameters>
<VariableParameters />
</Network>
<Network Name="ISARSI" SingleTextLine="" LocalNet="false" DistributedNet="true" Comment="" UsedForBinding="true" BindingService="false" AllowWorkbenchCommunications="true">
<Parameters>
<Parameter Name="Port" Format="String" Default="COM1" Access="UserDefined" SingleTextLine="Workbench communication port" LocalNet="false" DistributedNet="true" />
<Parameter Name="BaudRate" Format="Long" Default="115200" Access="UserDefined" SingleTextLine="Data transfer baud rate" LocalNet="false" DistributedNet="true" />
<Parameter Name="Parity" Format="Character" Default="N" Access="UserDefined" SingleTextLine="N: None, E: Even, O: Odd" LocalNet="false" DistributedNet="true" />
<Parameter Name="StopBit" Format="Word" Default="1" Access="UserDefined" SingleTextLine="1 or 2 Stop bits" LocalNet="false" DistributedNet="true" />
<Parameter Name="HardwareFlowControl" Format="Boolean" Default="FALSE" Access="UserDefined" SingleTextLine="TRUE when using hardware flow control" LocalNet="false" DistributedNet="true" />
</Parameters>
<ConnectionParameters />
<ResourceParameters />
<VariableParameters />
</Network>
<Network Name="CIPNetwork" SingleTextLine="" LocalNet="false" DistributedNet="true" Comment="" UsedForBinding="true" BindingService="false" AllowWorkbenchCommunications="true">
<Parameters />
<ConnectionParameters>
<Parameter Name="CipPath" Format="String" Default="&quot;&quot;" Access="UserDefined" SingleTextLine="" LocalNet="false" DistributedNet="true" />
</ConnectionParameters>
<ResourceParameters />
<VariableParameters />
</Network>
</Networks>
<NetworkInstances>
<NetworkInstance NetworkName="CIPNetwork" Name="CIPNetwork1" />
</NetworkInstances>
<Targets>
<Target Name="2080LC2020QWBG" />
</Targets>
<Configurations>
<Configuration Name="Micro820" ElementGuid="a650b3e3-66eb-4b1f-b22a-593ee11d5fdd" />
</Configurations>
</Project>

View File

@@ -1,24 +0,0 @@
[SPLIT_POS]
X1=100
Y1=403
Y2=200
POSTREE_HIDDEN=100
POSOUTPUT_HIDDEN=403
[DIALOG]
LEFT=780
RIGHT=1380
TOP=445
BOTTOM=945
KEEPVISIBLE=0
SHOWTREE=1
SHOWOUTPUT=1
[FILTER]
PROJECT=1
VARIABLE=1
PROGRAM=1
FUNCTION=1
FUNCTIONBLOCK=1
WORD=1
UNUSED=1
USED=1
NBRES=0

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<DevicePreferences xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Micro800ConnectionPath>WIN8VM!AB_ETH-1\10.20.4.5</Micro800ConnectionPath>
<Micro800ConnectionPath>PMCDONAGH-PC!AB_ETH-1\10.20.4.5</Micro800ConnectionPath>
</DevicePreferences>

View File

@@ -3,7 +3,7 @@
<mapping variable="Auto_Mode" parent="Micro820" dataType="Bool" address="100001" va="0x48c">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="Test_Mode" parent="Micro820" dataType="Bool" address="100002" va="0x499">
<mapping variable="Test_Mode" parent="Micro820" dataType="Bool" address="100002" va="0x496">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="Hand_Mode" parent="Micro820" dataType="Bool" address="100003" va="0x48b">
@@ -12,16 +12,16 @@
<mapping variable="Contactor_Status" parent="Micro820" dataType="Bool" address="100004" va="0x48e">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="Start_Permissive" parent="Micro820" dataType="Bool" address="100005" va="0x486">
<mapping variable="Start_Permissive" parent="Micro820" dataType="Bool" address="100005" va="0x480">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="Run_Permissive" parent="Micro820" dataType="Bool" address="100006" va="0x487">
<mapping variable="Run_Permissive" parent="Micro820" dataType="Bool" address="100006" va="0x481">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="cfg_READ" parent="Micro820" dataType="Bool" address="100007" va="0x490">
<mapping variable="cfg_READ" parent="Micro820" dataType="Bool" address="100007" va="0x48f">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="cfg_WRITE" parent="Micro820" dataType="Bool" address="100009" va="0x48f">
<mapping variable="cfg_WRITE" parent="Micro820" dataType="Bool" address="100009" va="0x490">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="TripStatus" parent="Micro820" dataType="Bool" address="100010" va="0x494">
@@ -33,46 +33,46 @@
<mapping variable="OverloadTrip" parent="Micro820" dataType="Bool" address="100012" va="0x493">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="VoltageOK" parent="Micro820" dataType="Bool" address="100013" va="0x4a1">
<mapping variable="VoltageOK" parent="Micro820" dataType="Bool" address="100013" va="0x497">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="TripResetCmd" parent="Micro820" dataType="Bool" address="100014" va="0x492">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="DigitalInput_Status_0" parent="Micro820" dataType="Bool" address="100015" va="0x478">
<mapping variable="DigitalInput_Status_0" parent="Micro820" dataType="Bool" address="100015" va="0x47a">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="DigitalInput_Status_1" parent="Micro820" dataType="Bool" address="100016" va="0x47a">
<mapping variable="DigitalInput_Status_1" parent="Micro820" dataType="Bool" address="100016" va="0x47b">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="DigitalInput_Status_2" parent="Micro820" dataType="Bool" address="100017" va="0x47f">
<mapping variable="DigitalInput_Status_2" parent="Micro820" dataType="Bool" address="100017" va="0x47c">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="DigitalInput_Status_3" parent="Micro820" dataType="Bool" address="100018" va="0x481">
<mapping variable="DigitalInput_Status_3" parent="Micro820" dataType="Bool" address="100018" va="0x47d">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="DigitalInput_Status_4" parent="Micro820" dataType="Bool" address="100019" va="0x47d">
<mapping variable="DigitalInput_Status_4" parent="Micro820" dataType="Bool" address="100019" va="0x484">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="DigitalInput_Status_5" parent="Micro820" dataType="Bool" address="100020" va="0x47c">
<mapping variable="DigitalInput_Status_5" parent="Micro820" dataType="Bool" address="100020" va="0x483">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="Temp_Shutdown_Enabled" parent="Micro820" dataType="Bool" address="100021" va="0x47e">
<mapping variable="Temp_Shutdown_Enabled" parent="Micro820" dataType="Bool" address="100021" va="0x485">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="Pressure_Shutdown_Enabled" parent="Micro820" dataType="Bool" address="100022" va="0x485">
<mapping variable="Pressure_Shutdown_Enabled" parent="Micro820" dataType="Bool" address="100022" va="0x487">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="Temp_Startup_Enabled" parent="Micro820" dataType="Bool" address="100023" va="0x482">
<mapping variable="Temp_Startup_Enabled" parent="Micro820" dataType="Bool" address="100023" va="0x486">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="Pressure_Startup_Enabled" parent="Micro820" dataType="Bool" address="100024" va="0x488">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="Start_Command" parent="Micro820" dataType="Bool" address="100025" va="0x483">
<mapping variable="Start_Command" parent="Micro820" dataType="Bool" address="100025" va="0x47e">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="Stop_Command" parent="Micro820" dataType="Bool" address="100026" va="0x484">
<mapping variable="Stop_Command" parent="Micro820" dataType="Bool" address="100026" va="0x47f">
<MBVarInfo ElemType="Bool" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="Pressure_Switch_Enabled" parent="Micro820" dataType="Bool" address="100027" va="0x4b8">
@@ -111,10 +111,10 @@
<mapping variable="cfg_I_OvercurrentInhibitTime" parent="Micro820" dataType="USInt" address="100128" va="0x4df">
<MBVarInfo ElemType="USInt" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="cfg_I_OvercurrentTripLevel" parent="Micro820" dataType="USInt" address="100136" va="0x503">
<mapping variable="cfg_I_OvercurrentTripLevel" parent="Micro820" dataType="USInt" address="100136" va="0x508">
<MBVarInfo ElemType="USInt" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="cfg_I_OvercurrentWarningLevel" parent="Micro820" dataType="USInt" address="100144" va="0x505">
<mapping variable="cfg_I_OvercurrentWarningLevel" parent="Micro820" dataType="USInt" address="100144" va="0x509">
<MBVarInfo ElemType="USInt" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="cfg_I_StallEnabledTime" parent="Micro820" dataType="USInt" address="100152" va="0x4ce">
@@ -129,10 +129,10 @@
<mapping variable="cfg_C_WarningEnableControl" parent="Micro820" dataType="UInt" address="100184" va="0x532">
<MBVarInfo ElemType="UInt" SubElemType="Any" DataTypeSize="2" />
</mapping>
<mapping variable="cfg_I_UndercurrentTripLevel" parent="Micro820" dataType="USInt" address="100200" va="0x500">
<mapping variable="cfg_I_UndercurrentTripLevel" parent="Micro820" dataType="USInt" address="100200" va="0x506">
<MBVarInfo ElemType="USInt" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="cfg_I_UndercurrentWarningLevel" parent="Micro820" dataType="USInt" address="100208" va="0x501">
<mapping variable="cfg_I_UndercurrentWarningLevel" parent="Micro820" dataType="USInt" address="100208" va="0x507">
<MBVarInfo ElemType="USInt" SubElemType="Any" DataTypeSize="1" />
</mapping>
<mapping variable="cfg_I_UnderloadInhibitTime" parent="Micro820" dataType="USInt" address="100216" va="0x4d1">
@@ -260,13 +260,13 @@
<mapping variable="cfg_I_JamWarningLevel" parent="Micro820" dataType="UInt" address="400014" va="0x538">
<MBVarInfo ElemType="UInt" SubElemType="Any" DataTypeSize="2" />
</mapping>
<mapping variable="cfg_I_LineLossTripDelay" parent="Micro820" dataType="Real" address="400015" va="0x654">
<mapping variable="cfg_I_LineLossTripDelay" parent="Micro820" dataType="Real" address="400015" va="0x658">
<MBVarInfo ElemType="Real" SubElemType="Any" DataTypeSize="4" />
</mapping>
<mapping variable="cfg_I_OvercurrentTripDelay" parent="Micro820" dataType="Real" address="400017" va="0x658">
<mapping variable="cfg_I_OvercurrentTripDelay" parent="Micro820" dataType="Real" address="400017" va="0x65c">
<MBVarInfo ElemType="Real" SubElemType="Any" DataTypeSize="4" />
</mapping>
<mapping variable="cfg_I_UndercurrentTripDelay" parent="Micro820" dataType="Real" address="400019" va="0x64c">
<mapping variable="cfg_I_UndercurrentTripDelay" parent="Micro820" dataType="Real" address="400019" va="0x654">
<MBVarInfo ElemType="Real" SubElemType="Any" DataTypeSize="4" />
</mapping>
<mapping variable="cfg_I_UnderloadTripDelay" parent="Micro820" dataType="Real" address="400021" va="0x59c">

View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Configuration FileVersion="200.00.003" Name="Micro820" ElementGuid="a650b3e3-66eb-4b1f-b22a-593ee11d5fdd" onlineBehavior="Always" TargetName="2080LC2020QWBG" Comment="" SingleTextLine="" Password="" IsEnhanced="false" IsEnhancedTarget="true" IsIsagraf3="false">
<Connections>
<Connection NetworkName="CIPNetwork1">
<Parameter Name="CipPath" Value="&quot;&quot;" />
</Connection>
</Connections>
<Resource Name="Micro820" ElementGuid="82cb2326-46c4-4379-8c49-e8cf44a4be54" />
</Configuration>

View File

@@ -1 +1 @@
CONTROL(142):FB,LINEARSCALE(157);
CONTROL(161):FB,LINEARSCALE(159);

View File

@@ -124,7 +124,7 @@ CONTACTOR_STATUS := DIGITALINPUT_STATUS_0
START_BUTTON := DIGITALINPUT_STATUS_1
AUTO_MODE := DIGITALINPUT_STATUS_2
HAND_MODE := DIGITALINPUT_STATUS_3
_PUSH_PAR _IO_EM_AI_00
_PUSH_PAR _IO_P1_AI_00
__TMPR1 := _CALL ANY_TO_UINT
__TMPR__LINEARSCALE__RAW_INP := __TMPR1
__FBL_RET := _PUSHCALLFB LINEARSCALE LINEARSCALE_PRESSURE

View File

@@ -1,219 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Pou FileVersion="200.00.003" Name="Control" ElementGuid="d752d406-0d4e-4687-92ff-9f65fedb9786" Comment="" SingleTextLine="" Language="ST" CustomFbd="0" Localization="Prj" GroupName="(User defined)" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="true" Is1499="false">
<Program />
<LocalVars>
<Variable Name="Pressure_Switch_OK" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="0" GroupName="" />
<Variable Name="LinearScale_Pressure" DataType="LinearScale" InitialValue="" Comment="" Address="" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="0" GroupName="" />
</LocalVars>
<PouBody><![CDATA[PROGRAM Control
(* First Scan Variable Setting*)
IF (__SYSVA_FIRST_SCAN) THEN
Shutdown_Time := __SYSVA_CYCLEDATE;
Device_Status:= 'Startup';
Restart_Command := FALSE;
Restart_Allowed := FALSE;
Run_Permissive := FALSE;
Start_Permissive := FALSE;
cfg_READ := TRUE;
END_IF;
(*Convert kWh and kWh regen to REAL from LREAL for HMI use *)
E300_kWh := ANY_TO_REAL(E300.RealEnergyConsumedOdometer);
E300_kWh_Regen := ANY_TO_REAL(E300.RealEnergyGeneratedOdometer);
IF Downhole_Tool_Enabled THEN
(*Modbus Mapping*)
DH_IntakeTemperature := ANY_TO_REAL(Modbus_Read0[2]) / 10.0;
DH_IntakePressure := ANY_TO_REAL(Modbus_Read0[3]);
DH_NumChannels := Modbus_Read0[10];
DH_ToolVoltage := Modbus_Read0[11];
DH_MaxIntakeTemperature_Startup := ANY_TO_REAL(Modbus_Read0[40]) / 10.0;
DH_MaxIntakePressure_Startup := Modbus_Read0[41];
DH_DownholeStatus_INT := Modbus_Read0[99];
CASE Modbus_Read0[99] OF
0: DH_DownholeStatus := 'OK';
1: DH_DownholeStatus := 'Connecting';
2: DH_DownholeStatus := 'Open Circuit';
3: DH_DownholeStatus := 'Shorted';
4: DH_DownholeStatus := 'Cannot Decode';
ELSE
DH_DownholeStatus := 'Error';
END_CASE;
DH_ToolType := Modbus_Read1000[5];
DH_PSIRating := Modbus_Read1000[7] * 1000;
DH_MaxIntakeTemperature_Forever := ANY_TO_REAL(Modbus_Read1000[8]) / 10.0;
DH_MaxIntakePressure_Forever := Modbus_Read1000[9];
ELSE
DH_DownholeStatus := 'Disabled';
Pressure_Shutdown_Enabled := FALSE;
Pressure_Startup_Enabled := FALSE;
Temp_Shutdown_Enabled := FALSE;
Temp_Startup_Enabled := FALSE;
END_IF;
(*IO Mapping*)
IF NOT Test_Mode THEN
Contactor_Status := DigitalInput_Status_0;
Start_Button := DigitalInput_Status_1;
Auto_Mode := DigitalInput_Status_2;
Hand_Mode := DigitalInput_Status_3;
LinearScale_Pressure(0.0, 32767.0, Pressure_EU_Max, Pressure_EU_Max, ANY_TO_REAL(_IO_EM_AI_00));
Pressure_In := LinearScale_Pressure.EU_Out;
ELSE
Contactor_Status := E300_OUTPUT_CMD_VALUE;
VoltageOK := TRUE;
END_IF;
IF Pressure_Transducer_Enabled AND
Contactor_Status AND
ANY_TO_DINT(Run_Time) > (Pressure_Alarm_Startup_Delay * 1000) THEN
IF Pressure_In >= Pressure_Hi_SP THEN
Pressure_Hi := TRUE;
Pressure_Lo := FALSE;
ELSIF Pressure_in <= Pressure_Lo_SP THEN
Pressure_Hi := FALSE;
Pressure_Lo := TRUE;
ELSE
Pressure_Hi := FALSE;
Pressure_Lo := FALSE;
END_IF;
IF NOT Pressure_Hi AND NOT Pressure_Lo THEN
Pressure_OK := TRUE;
Pressure_OOT_Scans := 0;
Pressure_OOT_Seconds := 0;
ELSE
Pressure_OOT_Scans := Pressure_OOT_Scans + 1;
Pressure_OOT_Seconds := Pressure_OOT_Scans * ANY_TO_UDINT(__SYSVA_TCYCURRENT) / 1000;
END_IF;
IF Pressure_OOT_Seconds > Pressure_Alarm_Delay THEN
Pressure_OK := FALSE;
END_IF;
ELSE
Pressure_OK := TRUE;
END_IF;
(* Pressure should be above the startup pressure setpoint and temperature should be below the startup temp setpoint to begin*)
IF ((((DH_IntakePressure > Pressure_Startup) AND Pressure_Startup_Enabled) OR NOT Pressure_Startup_Enabled) AND
(((DH_IntakeTemperature < Temp_Startup) AND Temp_Startup_Enabled) OR NOT Temp_Startup_Enabled) AND
(Hand_Mode OR Auto_Mode OR Test_Mode) AND
(NOT TripStatus) AND
VoltageOK
) THEN
Start_Permissive := TRUE;
ELSE
Start_Permissive := FALSE;
Device_Status := 'Not ready to start';
END_IF;
(* Pressure should be be above the shutdown pressure and temperature should be below shutdown temp setpoint to continue to run *)
IF ((((DH_IntakePressure > Pressure_Shutdown) AND Pressure_Shutdown_Enabled) OR NOT Pressure_Shutdown_Enabled) AND
(((DH_IntakeTemperature < Temp_Shutdown) AND Temp_Startup_Enabled) OR NOT Temp_Shutdown_Enabled) AND
(Hand_Mode OR Auto_Mode OR Test_Mode)
AND (NOT TripStatus)
AND Pressure_OK
) THEN
Run_Permissive := TRUE;
ELSE
Run_Permissive := FALSE;
END_IF;
IF (NOT Run_Permissive AND E300_OUTPUT_CMD_VALUE) THEN
Device_Status := 'Lost Run Permissive';
Shutdown_Time := __SYSVA_CYCLEDATE;
END_IF;
(* Run only if commanded to start and start permissive is met or already running and not being told to stop *)
IF ((((Start_Button OR Start_Command OR (Restart_Allowed AND Restart_Command)) AND Start_Permissive) OR E300_OUTPUT_CMD_VALUE) AND
(NOT Stop_Command) AND Run_Permissive) THEN
E300_OUTPUT_CMD_VALUE := TRUE;
Restart_Command:= FALSE;
Start_Command := FALSE;
IF NOT Start_Time_Set THEN
Start_Time := __SYSVA_CYCLEDATE;
Start_Time_Set := TRUE;
END_IF;
IF Contactor_Status THEN
Device_Status := 'Running';
Run_Time := __SYSVA_CYCLEDATE - Start_Time;
END_IF;
ELSE
E300_OUTPUT_CMD_VALUE := FALSE;
END_IF;
IF E300_OUTPUT_CMD_VALUE AND NOT Contactor_Status THEN
Start_Command := TRUE;
Device_Status := 'Contactor Failure, Recovering';
END_IF;
(* If run permissive goes false, do not allow a restart for a specified amount of time *)
IF (Auto_Mode AND (NOT OverloadTrip) AND NOT Contactor_Status AND Restart_Allowed) THEN
IF (__SYSVA_CYCLEDATE - Shutdown_Time) > Downtime_Time_Parameter THEN
IF (NOT Restart_Command) THEN
TripResetCmd := TRUE;
Restart_Command := True;
END_IF;
ELSE
(* Attempt to clear trip every 15 seconds *)
(*IF NOT Downtime_Timer.Q AND TripStatus THEN
Downtime_Timer(TRUE, Clear_Trip_Cycle);
ELSE
TripResetCmd := TRUE;
END_IF;*)
Restart_Command := FALSE;
Time_Until_Startup := Downtime_Time_Parameter - (__SYSVA_CYCLEDATE - Shutdown_Time);
Time_Until_Startup_String := ANY_TO_STRING(Time_Until_Startup);
IF Auto_Mode THEN
Device_Status := 'Waiting to attempt restart ' + Time_Until_Startup_String;
END_IF;
END_IF;
ELSIF (Auto_Mode AND OverloadTrip AND NOT Contactor_Status AND Restart_Allowed) THEN
IF (__SYSVA_CYCLEDATE - Shutdown_Time) > Downtime_Time_Parameter_OL THEN
IF (NOT Restart_Command) THEN
Restart_Command := True;
END_IF;
ELSE
Restart_Command := FALSE;
Time_Until_Startup := Downtime_Time_Parameter - (__SYSVA_CYCLEDATE - Downtime_Time_Parameter_OL);
Time_Until_Startup_String := ANY_TO_STRING(Time_Until_Startup);
IF Auto_Mode THEN
Device_Status := 'Waiting to restart (OL Timer)' + Time_Until_Startup_String;
END_IF;
END_IF;
END_IF;
IF NOT Auto_Mode THEN
Restart_Command := FALSE;
Restart_Allowed := FALSE;
END_IF;
(* If the pump hasn't been started by the user, don't allow it to auto-restart *)
IF (Start_Command OR Start_Button) AND Start_Permissive THEN
Restart_Allowed := TRUE;
END_IF;
IF Stop_Command THEN
Restart_Allowed := FALSE;
Device_Status := 'User Stopped';
END_IF;
IF NOT Contactor_Status THEN
Start_Time_Set := FALSE;
END_IF;
END_PROGRAM]]></PouBody>
<PouUIProperties>
<Root Version="6">
<LanguageContainerStyle CommentTextColor="Green" CommentFont="Courier New, 10pt" PonctuationTextColor="Black" PonctuationFont="Courier New, 10pt" IdentifierTextColor="Black" IdentifierFont="Courier New, 10pt" OperatorTextColor="Black" OperatorFont="Courier New, 10pt" ReservedWordTextColor="Fuchsia" ReservedWordFont="Courier New, 10pt" PouTextColor="BlueViolet" PouFont="Courier New, 10pt" NumberTextColor="Firebrick" NumberFont="Courier New, 10pt" StringTextColor="Gray" StringFont="Courier New, 10pt" EditorTextAreaBackgroundColor="White" EditorFont="Courier New, 10pt" Index="0" />
</Root>
</PouUIProperties>
</Pou>

View File

@@ -53,7 +53,7 @@ IF NOT Test_Mode THEN
Start_Button := DigitalInput_Status_1;
Auto_Mode := DigitalInput_Status_2;
Hand_Mode := DigitalInput_Status_3;
LinearScale_Pressure(13107.0, 65535.0, Pressure_EU_Min, Pressure_EU_Max, ANY_TO_REAL(_IO_EM_AI_00));
LinearScale_Pressure(13107.0, 65535.0, Pressure_EU_Min, Pressure_EU_Max, ANY_TO_REAL(_IO_P1_AI_00));
Pressure_In := LinearScale_Pressure.EU_Out;
ELSE
Contactor_Status := E300_OUTPUT_CMD_VALUE;

View File

@@ -1,53 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Pou FileVersion="200.00.003" Name="DINT_TO_USINT" ElementGuid="5e12461b-df80-42ea-97ce-296345049f14" Comment="" SingleTextLine="" Language="ST" CustomFbd="0" Localization="Prj" GroupName="(User defined)" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="true" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="" InitInstance="false" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="INP_DINT" DataType="DINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="OUT_SINT_1" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="OUT_SINT_2" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="OUT_SINT_3" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="OUT_SINT_4" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody><![CDATA[FUNCTION_BLOCK DINT_TO_USINT
OUT_SINT_1.0 := INP_DINT.0;
OUT_SINT_1.1 := INP_DINT.1;
OUT_SINT_1.2 := INP_DINT.2;
OUT_SINT_1.3 := INP_DINT.3;
OUT_SINT_1.4 := INP_DINT.4;
OUT_SINT_1.5 := INP_DINT.5;
OUT_SINT_1.6 := INP_DINT.6;
OUT_SINT_1.7 := INP_DINT.7;
OUT_SINT_2.0 := INP_DINT.8;
OUT_SINT_2.1 := INP_DINT.9;
OUT_SINT_2.2 := INP_DINT.10;
OUT_SINT_2.3 := INP_DINT.11;
OUT_SINT_2.4 := INP_DINT.12;
OUT_SINT_2.5 := INP_DINT.13;
OUT_SINT_2.6 := INP_DINT.14;
OUT_SINT_2.7 := INP_DINT.15;
OUT_SINT_3.0 := INP_DINT.16;
OUT_SINT_3.1 := INP_DINT.17;
OUT_SINT_3.2 := INP_DINT.18;
OUT_SINT_3.3 := INP_DINT.19;
OUT_SINT_3.4 := INP_DINT.20;
OUT_SINT_3.5 := INP_DINT.21;
OUT_SINT_3.6 := INP_DINT.22;
OUT_SINT_3.7 := INP_DINT.23;
OUT_SINT_4.0 := INP_DINT.24;
OUT_SINT_4.1 := INP_DINT.25;
OUT_SINT_4.2 := INP_DINT.26;
OUT_SINT_4.3 := INP_DINT.27;
OUT_SINT_4.4 := INP_DINT.28;
OUT_SINT_4.5 := INP_DINT.29;
OUT_SINT_4.6 := INP_DINT.30;
OUT_SINT_4.7 := INP_DINT.31;
END_FUNCTION_BLOCK]]></PouBody>
<PouUIProperties>
<Root Version="6">
<LanguageContainerStyle CommentTextColor="Green" CommentFont="Courier New, 10pt" PonctuationTextColor="Black" PonctuationFont="Courier New, 10pt" IdentifierTextColor="Black" IdentifierFont="Courier New, 10pt" OperatorTextColor="Black" OperatorFont="Courier New, 10pt" ReservedWordTextColor="Fuchsia" ReservedWordFont="Courier New, 10pt" PouTextColor="BlueViolet" PouFont="Courier New, 10pt" NumberTextColor="Firebrick" NumberFont="Courier New, 10pt" StringTextColor="Gray" StringFont="Courier New, 10pt" EditorTextAreaBackgroundColor="White" EditorFont="Courier New, 10pt" Index="0" />
</Root>
</PouUIProperties>
</Pou>

View File

@@ -34,4 +34,5 @@ OUT_SINT_4.4 := INP_DINT.28;
OUT_SINT_4.5 := INP_DINT.29;
OUT_SINT_4.6 := INP_DINT.30;
OUT_SINT_4.7 := INP_DINT.31;
END_FUNCTION_BLOCK

View File

@@ -1 +1 @@
E300DATA(144):FB,RA_CIP_ELECTRICAL_ENERGY_OBJ(139);FB,RA_E300_OUTPUT_CONTROL(140);FB,READE300IO(141);FB,READE300PARAM(156);FB,USINT_TO_UINT(146);FB,WRITEE300TRIPRESET(155);FB,READE300CONFIG(143);FB,USINT_TO_UDINT(145);FB,USINT_TO_DINT(150);FB,USINT_TO_SINT(152);FB,UDINT_TO_USINT(147);FB,UINT_TO_USINT(148);FB,DINT_TO_USINT(151);FB,SINT_TO_USINT(153);FB,WRITEE300CONFIG(149);
E300DATA(162):FB,RA_CIP_ELECTRICAL_ENERGY_OBJ(143);FB,RA_E300_OUTPUT_CONTROL(144);FB,READE300IO(145);FB,READE300PARAM(148);FB,USINT_TO_UINT(151);FB,WRITEE300TRIPRESET(158);FB,READE300CONFIG(146);FB,USINT_TO_UDINT(149);FB,USINT_TO_DINT(150);FB,USINT_TO_SINT(152);FB,UDINT_TO_USINT(153);FB,UINT_TO_USINT(155);FB,DINT_TO_USINT(154);FB,SINT_TO_USINT(156);FB,WRITEE300CONFIG(157);

File diff suppressed because it is too large Load Diff

View File

@@ -1671,4 +1671,5 @@ IF cfg_WRITE THEN
END_IF;
END_IF;
END_PROGRAM

View File

@@ -162,7 +162,7 @@ SINT_TO_DINT_OVERAPPARENTWARNINGLEVEL.SINT_SRC_3@E300DATA,__TMPUSI__USINT_TO_DIN
SINT_TO_DINT_OVERAPPARENTWARNINGLEVEL.SINT_SRC_4@E300DATA,__TMPUSI__USINT_TO_DINT__SINT_SRC_4,USINT
LINEARSCALE_PRESSURE.RAW_MIN@CONTROL,__TMPR7@CONTROL,REAL
LINEARSCALE_PRESSURE.RAW_MAX@CONTROL,__TMPR8@CONTROL,REAL
LINEARSCALE_PRESSURE.EU_MIN@CONTROL,PRESSURE_EU_MAX,REAL
LINEARSCALE_PRESSURE.EU_MIN@CONTROL,PRESSURE_EU_MIN,REAL
LINEARSCALE_PRESSURE.EU_MAX@CONTROL,PRESSURE_EU_MAX,REAL
LINEARSCALE_PRESSURE.RAW_INP@CONTROL,__TMPR__LINEARSCALE__RAW_INP,REAL
E300_READ_DIGITALINPUT0.FBEN@E300DATA,TRUE,BOOL

View File

@@ -1,25 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Pou FileVersion="200.00.003" Name="LinearScale" ElementGuid="9d72041c-9179-4a14-a55e-8bc8e8e1f998" Comment="" SingleTextLine="" Language="ST" CustomFbd="0" Localization="Prj" GroupName="(User defined)" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="true" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="" InitInstance="false" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="Raw_Min" DataType="REAL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Raw_Max" DataType="REAL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="EU_Min" DataType="REAL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="EU_Max" DataType="REAL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Raw_Inp" DataType="REAL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="EU_Out" DataType="REAL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="m" DataType="REAL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="b" DataType="REAL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody><![CDATA[FUNCTION_BLOCK LinearScale
m := (EU_Max - EU_Min) / (Raw_Max - Raw_Min);
b := EU_Max - m * Raw_Max;
EU_Out := m * Raw_Inp + b;
END_FUNCTION_BLOCK]]></PouBody>
<PouUIProperties>
<Root Version="6">
<LanguageContainerStyle CommentTextColor="Green" CommentFont="Courier New, 10pt" PonctuationTextColor="Black" PonctuationFont="Courier New, 10pt" IdentifierTextColor="Black" IdentifierFont="Courier New, 10pt" OperatorTextColor="Black" OperatorFont="Courier New, 10pt" ReservedWordTextColor="Fuchsia" ReservedWordFont="Courier New, 10pt" PouTextColor="BlueViolet" PouFont="Courier New, 10pt" NumberTextColor="Firebrick" NumberFont="Courier New, 10pt" StringTextColor="Gray" StringFont="Courier New, 10pt" EditorTextAreaBackgroundColor="White" EditorFont="Courier New, 10pt" Index="0" />
</Root>
</PouUIProperties>
</Pou>

View File

@@ -3,4 +3,5 @@ m := (EU_Max - EU_Min) / (Raw_Max - Raw_Min);
b := EU_Max - m * Raw_Max;
EU_Out := m * Raw_Inp + b;
END_FUNCTION_BLOCK

View File

@@ -1,47 +1,47 @@
0::0046-0003::-------------------- Pre-build resource: MICRO820 Configuration: MICRO820 --------------
0::0044-0003::Pre-compiling for 2080LC2020QWBG
0::0044-0003::Pre-compiling for 2080LC2020QWBI
0::0000-0003::RA_CIP_ELECTRICAL_ENERGY_OBJ
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\RA_CIP_ELECTRICAL_ENERGY_OBJ:0000-0003::RA_E300_OUTPUT_CONTROL
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\RA_E300_OUTPUT_CONTROL:0000-0003::READE300IO
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\READE300IO:0000-0003::READE300CONFIG
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\READE300CONFIG:0000-0003::READE300TRIPRESET
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\READE300TRIPRESET:0000-0003::READE300PARAM
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\READE300PARAM:0000-0003::USINT_TO_UDINT
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\USINT_TO_UDINT:0000-0003::USINT_TO_DINT
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\USINT_TO_DINT:0000-0003::USINT_TO_UINT
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\USINT_TO_UINT:0000-0003::USINT_TO_SINT
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\USINT_TO_SINT:0000-0003::UDINT_TO_USINT
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\UDINT_TO_USINT:0000-0003::DINT_TO_USINT
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\DINT_TO_USINT:0000-0003::UINT_TO_USINT
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\UINT_TO_USINT:0000-0003::SINT_TO_USINT
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\SINT_TO_USINT:0000-0003::WRITEE300CONFIG
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\WRITEE300CONFIG:0000-0003::WRITEE300TRIPRESET
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\WRITEE300TRIPRESET:0000-0003::LINEARSCALE
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\LINEARSCALE:0000-0003::READDOWNHOLEDATA
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\READDOWNHOLEDATA:0000-0003::CONTROL
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\CONTROL:0000-0003::E300DATA
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\E300DATA:0002-0003::MICRO820: 0 error(s), 0 warning(s)
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\RA_CIP_ELECTRICAL_ENERGY_OBJ:0000-0003::RA_E300_OUTPUT_CONTROL
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\RA_E300_OUTPUT_CONTROL:0000-0003::READE300IO
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\READE300IO:0000-0003::READE300CONFIG
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\READE300CONFIG:0000-0003::READE300TRIPRESET
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\READE300TRIPRESET:0000-0003::READE300PARAM
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\READE300PARAM:0000-0003::USINT_TO_UDINT
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\USINT_TO_UDINT:0000-0003::USINT_TO_DINT
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\USINT_TO_DINT:0000-0003::USINT_TO_UINT
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\USINT_TO_UINT:0000-0003::USINT_TO_SINT
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\USINT_TO_SINT:0000-0003::UDINT_TO_USINT
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\UDINT_TO_USINT:0000-0003::DINT_TO_USINT
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\DINT_TO_USINT:0000-0003::UINT_TO_USINT
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\UINT_TO_USINT:0000-0003::SINT_TO_USINT
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\SINT_TO_USINT:0000-0003::WRITEE300CONFIG
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\WRITEE300CONFIG:0000-0003::WRITEE300TRIPRESET
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\WRITEE300TRIPRESET:0000-0003::LINEARSCALE
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\LINEARSCALE:0000-0003::READDOWNHOLEDATA
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\READDOWNHOLEDATA:0000-0003::CONTROL
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\CONTROL:0000-0003::E300DATA
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\E300DATA:0002-0003::MICRO820: 0 error(s), 0 warning(s)
0::0006-0003::-------------------- Build resource: MICRO820 Configuration: MICRO820 --------------
0::0001-0003::Compiling for 2080LC2020QWBG
0::0001-0003::Compiling for 2080LC2020QWBI
0::0000-0003::RA_CIP_ELECTRICAL_ENERGY_OBJ
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\RA_CIP_ELECTRICAL_ENERGY_OBJ:0000-0003::RA_E300_OUTPUT_CONTROL
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\RA_E300_OUTPUT_CONTROL:0000-0003::READE300IO
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\READE300IO:0000-0003::READE300CONFIG
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\READE300CONFIG:0000-0003::READE300TRIPRESET
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\READE300TRIPRESET:0000-0003::READE300PARAM
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\READE300PARAM:0000-0003::USINT_TO_UDINT
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\USINT_TO_UDINT:0000-0003::USINT_TO_DINT
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\USINT_TO_DINT:0000-0003::USINT_TO_UINT
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\USINT_TO_UINT:0000-0003::USINT_TO_SINT
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\USINT_TO_SINT:0000-0003::UDINT_TO_USINT
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\UDINT_TO_USINT:0000-0003::DINT_TO_USINT
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\DINT_TO_USINT:0000-0003::UINT_TO_USINT
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\UINT_TO_USINT:0000-0003::SINT_TO_USINT
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\SINT_TO_USINT:0000-0003::WRITEE300CONFIG
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\WRITEE300CONFIG:0000-0003::WRITEE300TRIPRESET
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\WRITEE300TRIPRESET:0000-0003::LINEARSCALE
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\LINEARSCALE:0000-0003::READDOWNHOLEDATA
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\READDOWNHOLEDATA:0000-0003::CONTROL
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\CONTROL:0000-0003::E300DATA
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\E300DATA:0003-0003::Linking for 2080LC2020QWBG
0:Z:\PATRICK MCDONAGH\WATER WELL PANEL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\E300DATA:0002-0003::MICRO820: 0 error(s), 0 warning(s)
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\RA_CIP_ELECTRICAL_ENERGY_OBJ:0000-0003::RA_E300_OUTPUT_CONTROL
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\RA_E300_OUTPUT_CONTROL:0000-0003::READE300IO
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\READE300IO:0000-0003::READE300CONFIG
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\READE300CONFIG:0000-0003::READE300TRIPRESET
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\READE300TRIPRESET:0000-0003::READE300PARAM
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\READE300PARAM:0000-0003::USINT_TO_UDINT
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\USINT_TO_UDINT:0000-0003::USINT_TO_DINT
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\USINT_TO_DINT:0000-0003::USINT_TO_UINT
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\USINT_TO_UINT:0000-0003::USINT_TO_SINT
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\USINT_TO_SINT:0000-0003::UDINT_TO_USINT
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\UDINT_TO_USINT:0000-0003::DINT_TO_USINT
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\DINT_TO_USINT:0000-0003::UINT_TO_USINT
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\UINT_TO_USINT:0000-0003::SINT_TO_USINT
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\SINT_TO_USINT:0000-0003::WRITEE300CONFIG
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\WRITEE300CONFIG:0000-0003::WRITEE300TRIPRESET
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\WRITEE300TRIPRESET:0000-0003::LINEARSCALE
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\LINEARSCALE:0000-0003::READDOWNHOLEDATA
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\READDOWNHOLEDATA:0000-0003::CONTROL
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\CONTROL:0000-0003::E300DATA
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\E300DATA:0003-0003::Linking for 2080LC2020QWBI
0:C:\USERS\PATRICK\DOCUMENTS\HENRY_PUMP\WATERWELL\WATERWELLPANEL\CONTROLLER\CONTROLLER\MICRO820\MICRO820\E300DATA:0002-0003::MICRO820: 0 error(s), 0 warning(s)

View File

@@ -1,20 +1,20 @@
CONTROL(142):FB,LINEARSCALE(157);
DINT_TO_USINT(151):
RA_CIP_ELECTRICAL_ENERGY_OBJ(139):FB,MSG_CIPGENERIC();FB,R_TRIG();FB,COP();FB,F_TRIG();
USINT_TO_UDINT(145):
READE300TRIPRESET(154):FB,MSG_CIPGENERIC();FB,R_TRIG();FB,COP();FB,F_TRIG();
UDINT_TO_USINT(147):
READE300PARAM(156):FB,MSG_CIPGENERIC();FB,R_TRIG();FB,COP();FB,F_TRIG();
RA_E300_OUTPUT_CONTROL(140):FB,MSG_CIPGENERIC();FB,R_TRIG();FB,F_TRIG();FB,COP();
WRITEE300CONFIG(149):FB,MSG_CIPGENERIC();FB,R_TRIG();FB,COP();FB,F_TRIG();
READDOWNHOLEDATA(133):
USINT_TO_UDINT(149):
DINT_TO_USINT(154):
UINT_TO_USINT(155):
READE300TRIPRESET(147):FB,MSG_CIPGENERIC();FB,R_TRIG();FB,COP();FB,F_TRIG();
E300DATA(162):FB,RA_CIP_ELECTRICAL_ENERGY_OBJ(143);FB,RA_E300_OUTPUT_CONTROL(144);FB,READE300IO(145);FB,READE300PARAM(148);FB,USINT_TO_UINT(151);FB,WRITEE300TRIPRESET(158);FB,READE300CONFIG(146);FB,USINT_TO_UDINT(149);FB,USINT_TO_DINT(150);FB,USINT_TO_SINT(152);FB,UDINT_TO_USINT(153);FB,UINT_TO_USINT(155);FB,DINT_TO_USINT(154);FB,SINT_TO_USINT(156);FB,WRITEE300CONFIG(157);
RA_E300_OUTPUT_CONTROL(144):FB,MSG_CIPGENERIC();FB,R_TRIG();FB,F_TRIG();FB,COP();
READE300PARAM(148):FB,MSG_CIPGENERIC();FB,R_TRIG();FB,COP();FB,F_TRIG();
USINT_TO_UINT(151):
CONTROL(161):FB,LINEARSCALE(159);
USINT_TO_SINT(152):
READE300IO(145):FB,MSG_CIPGENERIC();FB,R_TRIG();FB,COP();FB,F_TRIG();
LINEARSCALE(159):
WRITEE300TRIPRESET(158):FB,MSG_CIPGENERIC();FB,R_TRIG();FB,COP();FB,F_TRIG();
SINT_TO_USINT(156):
READE300CONFIG(146):FB,MSG_CIPGENERIC();FB,R_TRIG();FB,COP();FB,F_TRIG();
RA_CIP_ELECTRICAL_ENERGY_OBJ(143):FB,MSG_CIPGENERIC();FB,R_TRIG();FB,COP();FB,F_TRIG();
UDINT_TO_USINT(153):
USINT_TO_DINT(150):
LINEARSCALE(157):
WRITEE300TRIPRESET(155):FB,MSG_CIPGENERIC();FB,R_TRIG();FB,COP();FB,F_TRIG();
SINT_TO_USINT(153):
READE300CONFIG(143):FB,MSG_CIPGENERIC();FB,R_TRIG();FB,COP();FB,F_TRIG();
READE300IO(141):FB,MSG_CIPGENERIC();FB,R_TRIG();FB,COP();FB,F_TRIG();
UINT_TO_USINT(148):
USINT_TO_UINT(146):
E300DATA(144):FB,RA_CIP_ELECTRICAL_ENERGY_OBJ(139);FB,RA_E300_OUTPUT_CONTROL(140);FB,READE300IO(141);FB,READE300PARAM(156);FB,USINT_TO_UINT(146);FB,WRITEE300TRIPRESET(155);FB,READE300CONFIG(143);FB,USINT_TO_UDINT(145);FB,USINT_TO_DINT(150);FB,USINT_TO_SINT(152);FB,UDINT_TO_USINT(147);FB,UINT_TO_USINT(148);FB,DINT_TO_USINT(151);FB,SINT_TO_USINT(153);FB,WRITEE300CONFIG(149);
WRITEE300CONFIG(157):FB,MSG_CIPGENERIC();FB,R_TRIG();FB,COP();FB,F_TRIG();
READDOWNHOLEDATA(160):

View File

@@ -1,10 +1,10 @@
[MEMORY]
Offset0=0x4244
Offset1=0x4A44
Offset2=0x4A44
Offset3=0x4A44
Offset0=0x43D8
Offset1=0x4BD8
Offset2=0x4BD8
Offset3=0x4BD8
Memory Usage Estimate(Code)=0x96C0
Memory Usage Estimate(Data)=0x8E28
Memory Usage Estimate(Data)=0x8FBC
Memory Usage Estimate(Retain)=0x2B
Memory Usage Estimate(Temporary variables)=0x23E0
Offset4=0x414

View File

@@ -1,10 +1,10 @@
[MEMORY]
Offset0=0x4244
Offset1=0x4A44
Offset2=0x4A44
Offset3=0x4A44
Offset0=0x43D8
Offset1=0x4BD8
Offset2=0x4BD8
Offset3=0x4BD8
Memory Usage Estimate(Code)=0x96C0
Memory Usage Estimate(Data)=0x8E28
Memory Usage Estimate(Data)=0x8FBC
Memory Usage Estimate(Retain)=0x2B
Memory Usage Estimate(Temporary variables)=0x23E0
Offset4=0x414

View File

@@ -5,12 +5,12 @@ ON_LINE=N
TBL_CONF=Y
CRC_ORG=0x0
CRC_OLD=
CRC_NEW=0x2E071082
CRC_NEW=0x496E4B62
DAT_ORG=0
DAT_OLD=0
DAT_NEW=1451522079
DAT_NEW=1452539036
VER_ORG=0
VER_OLD=0
VER_NEW=225
VER_NEW=1
CRC_ALL_OLD=
CRC_ALL_NEW=0xDC6979FF
CRC_ALL_NEW=0x73F2F195

View File

@@ -2,8 +2,8 @@
Memory Usage Estimate(Temporary variables)=0x23E0
Biggest online change user variable memory block size=0x800
Currently added user variables=0x0
Total data size=0x6624
User variables size=0x4244
Total data size=0x67B8
User variables size=0x43D8
Maximum size for temporary variables=0x43E0
Memory Usage Estimate(Data)=0x8E24
Memory Usage Estimate(Data)=0x8FB8
Free memory for user variables=0x800

View File

@@ -2,8 +2,8 @@
Memory Usage Estimate(Temporary variables)=0x23E0
Biggest online change user variable memory block size=0x800
Currently added user variables=0x0
Total data size=0x6624
User variables size=0x4244
Total data size=0x67B8
User variables size=0x43D8
Maximum size for temporary variables=0x43E0
Memory Usage Estimate(Data)=0x8E24
Memory Usage Estimate(Data)=0x8FB8
Free memory for user variables=0x800

View File

@@ -1 +1 @@
<INPUT>,LINEARSCALE_PRESSURE@CONTROL,LINEARSCALE,RAW_MIN,__TMPR7@CONTROL,REAL,RAW_MAX,__TMPR8@CONTROL,REAL,EU_MIN,PRESSURE_EU_MAX,REAL,EU_MAX,PRESSURE_EU_MAX,REAL,RAW_INP,__TMPR__LINEARSCALE__RAW_INP,REAL
<INPUT>,LINEARSCALE_PRESSURE@CONTROL,LINEARSCALE,RAW_MIN,__TMPR7@CONTROL,REAL,RAW_MAX,__TMPR8@CONTROL,REAL,EU_MIN,PRESSURE_EU_MIN,REAL,EU_MAX,PRESSURE_EU_MAX,REAL,RAW_INP,__TMPR__LINEARSCALE__RAW_INP,REAL

View File

@@ -1,443 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Resource FileVersion="200.00.003" Name="Micro820" ResourceNb="1" ElementGuid="82cb2326-46c4-4379-8c49-e8cf44a4be54" Address="@1" Comment="" SingleTextLine="" GenDebugInfo="false" Password="" ReadOnly="false" UsePrjPassword="false" Code="TicCode">
<Properties Test="true" TrigCycle="false" CyTiming="0" DeErrors="true" NbStErrors="16" ExecMode="true" EmbedTable="true" TypeEmbedTable="1" EmbedSource="true" TypeEmbedSource="0" SimulationCode="false" SfcGain="8" SfcOffset="18" EmbeddedSfc="false" ReadableImage="false" RealImage="false" LocExp="true" unlab="false" AriOpe="true" BooOpe="true" BooExp="true" GloExp="true" VarCpy="true" Uncod="true" MapFile="false" DumpPou="false" DumpConfig="false" DumpNetwork="false" CompileIncrementally="true" LinkIncrementally="true" CheckArray="true" ArrStr="true" OnlineMemory="112000" OnlineMemoryVariable="2048" MemRetain="RETAIN" FunctionInternalStateEnable="true" FbdBehaviorMode="1" OnlineMaxExtraPous="20" OnlineMemorySfc="20" CyUsTiming="0" IsDisableAccessFBLocalVar="true" EnableCVT="false" ReduceBooleanExpressionEvaluation="false" />
<Pous>
<FunctionBlock Name="RA_CIP_ELECTRICAL_ENERGY_OBJ" ElementGuid="a54a076d-8f2c-4d51-a2ee-380f25a3cfb9" Language="ST" CustomFbd="0" Is1499="false" />
<FunctionBlock Name="RA_E300_OUTPUT_CONTROL" ElementGuid="6a76b54b-2f34-4293-be5c-9e68ed422fa5" Language="ST" CustomFbd="0" Is1499="false" />
<FunctionBlock Name="ReadE300IO" ElementGuid="66ab470c-ca22-4d58-b550-ad6bec6607f2" Language="ST" CustomFbd="0" Is1499="false" />
<FunctionBlock Name="ReadE300Config" ElementGuid="953d62a3-7fb5-463c-a06b-c3c96152b055" Language="ST" CustomFbd="0" Is1499="false" />
<FunctionBlock Name="ReadE300TripReset" ElementGuid="245847ea-46f8-4fa3-8466-22d4537c288e" Language="ST" CustomFbd="0" Is1499="false" />
<FunctionBlock Name="ReadE300Param" ElementGuid="86ee3690-5d3b-4fec-8211-303ca4851648" Language="ST" CustomFbd="0" Is1499="false" />
<FunctionBlock Name="USINT_TO_UDINT" ElementGuid="2f28d203-96e7-492a-a5b3-9b468f6d5c65" Language="ST" CustomFbd="0" Is1499="false" />
<FunctionBlock Name="USINT_TO_DINT" ElementGuid="1caf142c-e1b4-493c-b067-7ca0a6c24619" Language="ST" CustomFbd="0" Is1499="false" />
<FunctionBlock Name="USINT_TO_UINT" ElementGuid="07953b62-8ab0-4a84-9ee3-9efea64fdd99" Language="ST" CustomFbd="0" Is1499="false" />
<FunctionBlock Name="USINT_TO_SINT" ElementGuid="8da97a17-33d5-42fe-bcaf-b471d9a60346" Language="ST" CustomFbd="0" Is1499="false" />
<FunctionBlock Name="UDINT_TO_USINT" ElementGuid="52ba0534-a6d0-43c9-b396-eb29683ea65b" Language="ST" CustomFbd="0" Is1499="false" />
<FunctionBlock Name="DINT_TO_USINT" ElementGuid="5e12461b-df80-42ea-97ce-296345049f14" Language="ST" CustomFbd="0" Is1499="false" />
<FunctionBlock Name="UINT_TO_USINT" ElementGuid="f49fc5f3-1497-4a12-a741-f3734bcd163f" Language="ST" CustomFbd="0" Is1499="false" />
<FunctionBlock Name="SINT_TO_USINT" ElementGuid="2bf40e2e-2a29-4ced-9a16-faca4d58e08b" Language="ST" CustomFbd="0" Is1499="false" />
<FunctionBlock Name="WriteE300Config" ElementGuid="17b8e805-dd24-41e9-9d04-223c178e844f" Language="ST" CustomFbd="0" Is1499="false" />
<FunctionBlock Name="WriteE300TripReset" ElementGuid="fa9e462f-6b35-4c0b-8225-99fa75fbccfb" Language="ST" CustomFbd="0" Is1499="false" />
<FunctionBlock Name="LinearScale" ElementGuid="9d72041c-9179-4a14-a55e-8bc8e8e1f998" Language="ST" CustomFbd="0" Is1499="false" />
<Program Name="ReadDownholeData" ElementGuid="04a8833b-5933-4ff6-bc43-b2cad9c5c6b7" Language="LD" CustomFbd="0" Is1499="false" />
<Program Name="Control" ElementGuid="d752d406-0d4e-4687-92ff-9f65fedb9786" Language="ST" CustomFbd="0" Is1499="false" />
<Program Name="E300Data" ElementGuid="9a5effe2-2418-4d18-9dff-b00236f9e7ac" Language="ST" CustomFbd="0" Is1499="false" />
</Pous>
<NetworkParameterValues>
<NetworkParameterValue NetworkName="HSD" Name="ValidityTime" Value="0" />
<NetworkParameterValue NetworkName="ETCP" Name="TimeOut" Value="10000" />
</NetworkParameterValues>
<GlobalVars>
<Variable Name="__SYSVA_TCYWDG" DataType="UDINT" InitialValue="2000" Comment="Software Watchdog" Address="" Modifier="NonRetain" Kind="VarGlobal" Alias="" AccessRights="ReadWrite" Attributes="32501" />
<Variable Name="__SYSVA_USER_DATA_LOST" DataType="BOOL" InitialValue="FALSE" Comment="User data lost" Address="" Modifier="NonRetain" Kind="VarGlobal" Alias="" AccessRights="ReadWrite" Attributes="32501" />
<Variable Name="DH_IntakeTemperature" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="DH_IntakePressure" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="DH_WindingTemperature" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="DH_DischargeTemperature" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="DH_DischargePressure" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="DH_VibrationX" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="DH_VibrationY" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="DH_DownholeStatus" DataType="STRING" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="80" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="ModbusCycleTime" DataType="TIME" InitialValue="T#20s" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="ModbusCycleTimeElapsed" DataType="TIME" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_OUTPUT_NUMBER" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="DigitalInput_Status_0" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Enable_IO_Read" DataType="BOOL" InitialValue="TRUE" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Temp_Shutdown" DataType="REAL" InitialValue="75.0" Comment="Temperature at which to stop the pump" Address="1" Modifier="Retain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_OUTPUT_CMD_VALUE" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="DigitalInput_Status_1" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="DigitalInput_Status_5" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Temp_Startup" DataType="REAL" InitialValue="75.0" Comment="Temperature at which to startup the pump" Address="1" Modifier="Retain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_OUTPUT_SET_CORRECTLY" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="DigitalInput_Status_2" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="DigitalInput_Status_4" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Temp_Shutdown_Enabled" DataType="BOOL" InitialValue="TRUE" Comment="" Address="1" Modifier="Retain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300" DataType="CIPEEOBJ_ATTRIBS" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="DigitalInput_Status_3" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Temp_Startup_Enabled" DataType="BOOL" InitialValue="TRUE" Comment="" Address="1" Modifier="Retain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_SELECTED_OUTPUT" DataType="STRING" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="80" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Start_Command" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Pressure_Shutdown" DataType="REAL" InitialValue="" Comment="Pressure at which to shutdown the pump" Address="1" Modifier="Retain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Stop_Command" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Pressure_Startup" DataType="REAL" InitialValue="" Comment="Pressure at which to startup the pump" Address="1" Modifier="Retain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Start_Permissive" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Pressure_Shutdown_Enabled" DataType="BOOL" InitialValue="TRUE" Comment="" Address="1" Modifier="Retain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Run_Permissive" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Pressure_Startup_Enabled" DataType="BOOL" InitialValue="TRUE" Comment="" Address="1" Modifier="Retain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_IP_ADDRESS" DataType="STRING" InitialValue="'10.20.4.9'" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="80" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Downtime_Timer" DataType="TON" InitialValue=",,,T#0s" Comment="Time to remain shutdown after permissive goes false" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_SCAN_RATE" DataType="UINT" InitialValue="1000" Comment="" Address="1" Modifier="Retain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Downtime_Time_Parameter" DataType="TIME" InitialValue="T#5m" Comment="Number of seconds to remain shutdown" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Device_Status" DataType="STRING" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="80" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Shutdown_Time" DataType="TIME" InitialValue="" Comment="Time when the unit stopped" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Restart_Command" DataType="BOOL" InitialValue="" Comment="It has been enough time that the device is ready to start up" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Time_Until_Startup" DataType="TIME" InitialValue="" Comment="Time Until the unit can restart" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Restart_Allowed" DataType="BOOL" InitialValue="" Comment="Set by the program. Resetting automatically is allowed" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_kWh" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_kWh_Regen" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Modbus_Read0" DataType="MODBUSLOCADDR" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Modbus_Read1000" DataType="MODBUSLOCADDR" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="DH_NumChannels" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="DH_ToolVoltage" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="DH_MaxIntakeTemperature_Startup" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="DH_MaxIntakePressure_Startup" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="DH_ToolType" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="DH_PSIRating" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="DH_MaxIntakeTemperature_Forever" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="DH_MaxIntakePressure_Forever" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="DH_DownholeStatus_INT" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Hand_Mode" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Auto_Mode" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Start_Button" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Contactor_Status" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_C_FLASetting" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_TCU_TripClass" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_TCU_OLResetLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_TCU_OLWarningLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_TripEnableCurrent" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_TripEnableVoltage" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_TripEnablePower" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_C_TripEnableControl" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_WarningEnableCurrent" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_WarningEnableVoltage" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_WarningEnablePower" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_C_WarningEnableControl" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_PL_PhaseLossInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_PL_PhaseLossTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_GF_GroundFaultInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_GF_GroundFaultTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_GF_GroundFaultTripLevel" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_GF_GroundFaultWarningDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_GF_GroundFaultWarningLevel" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_StallEnabledTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_StallTripLevel" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_JamInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_JamTripDelay" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_JamTripLevel" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_JamWarningLevel" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_UnderloadInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_UnderloadTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_UnderloadTripLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_UnderloadWarningLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_CurrentImbalanceInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_CurrentImbalanceTripDelay" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_CurrentImbalanceTripLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_CurrentImbalanceWarningLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_CTPrimary" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_CTSecondary" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_UndercurrentInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_L1_UndercurrentTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_L1_UndercurrentTripLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_L1_UndercurrentWarningLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_L2_UndercurrentTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_L2_UndercurrentTripLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_L2_UndercurrentWarningLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_L3_UndercurrentTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_L3_UndercurrentTripLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_L3_UndercurrentWarningLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_OvercurrentInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_L1_OvercurrentTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_L1_OvercurrentTripLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_L1_OvercurrentWarningLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_L2_OvercurrentTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_L2_OvercurrentTripLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_L2_OvercurrentWarningLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_L3_OvercurrentTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_L3_OvercurrentTripLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_L3_OvercurrentWarningLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_LineLossInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_L1LossTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_L2LossTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_L3LossTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_VoltageMode" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_PTPrimary" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_PTSecondary" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_UndervoltageInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_UndervoltageTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_UndervoltageTripLevel" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_UndervoltageWarningLevel" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_OvervoltageInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_OvervoltageTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_OvervoltageTripLevel" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_OvervoltageWarningLevel" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_PhaseRotationInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_PhaseRotationTripType" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_VoltageImbalanceInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_VoltageImbalanceTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_VoltageImbalanceTripLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_VoltageImbalanceWarningLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_UnderfrequencyInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_UnderfrequencyTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_UnderfrequencyTripLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_UnderfrequencyWarningLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_OverfrequencyInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_OverfrequencyTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_OverfrequencyTripLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_V_OverfrequencyWarningLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderRealPowerInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderRealPowerTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderRealPowerTripLevel" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderRealPowerWarningLevel" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverRealPowerInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_Config_Buffer" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="">
<Dimension Lower="1" Upper="409" />
</Variable>
<Variable Name="cfg_WRITE" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverRealPowerTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_READ" DataType="BOOL" InitialValue="" Comment="Read the configuration data from the E300" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverRealPowerTripLevel" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripResetWriteStatus" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverRealPowerWarningLevel" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripResetCmd" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderReactiveConsumedInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderReactiveConsumedTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderReactiveConsumedTripLevel" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderReactiveConsumedWarningLevel" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverReactiveConsumedInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverReactiveConsumedTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverReactiveConsumedTripLevel" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverReactiveConsumedWarningLevel" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderReactiveGeneratedInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripStatusCurrent" DataType="STRING" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="80" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderReactiveGeneratedTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripStatusVoltage" DataType="STRING" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="80" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderReactiveGeneratedTripLevel" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripStatusPower" DataType="STRING" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="80" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderReactiveGeneratedWarningLevel" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripStatusControl" DataType="STRING" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="80" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverReactiveGeneratedInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningStatusCurrent" DataType="STRING" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="80" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverReactiveGeneratedTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningStatusVoltage" DataType="STRING" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="80" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverReactiveGeneratedTripLevel" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningStatusPower" DataType="STRING" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="80" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverReactiveGeneratedWarningLevel" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningStatusControl" DataType="STRING" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="80" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderApparentPowerInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="OverloadTrip" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderApparentPowerTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripStatus" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderApparentPowerTripLevel" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningStatus" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderApparentPowerWarningLevel" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripStatusCurrent_INT" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverApparentPowerInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripStatusVoltage_INT" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverApparentPowerTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripStatusPower_INT" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverApparentPowerTripLevel" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripStatusControl_INT" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverApparentPowerWarningLevel" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningStatusCurrent_INT" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderPowerFactorLagInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningStatusVoltage_INT" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderPowerFactorLagTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningStatusPower_INT" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderPowerFactorLagTripLevel" DataType="SINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningStatusControl_INT" DataType="UINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderPowerFactorLagWarningLevel" DataType="SINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Downtime_Time_Parameter_OL" DataType="TIME" InitialValue="T#1h" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripEnabled_I_Overload" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverPowerFactorLagInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Time_Until_Startup_String" DataType="STRING" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="80" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripEnabled_I_GroundFault" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverPowerFactorLagTripDelay" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Test_Mode" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripEnabled_I_Stall" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverPowerFactorLagTripLevel" DataType="SINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_UndercurrentTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripEnabled_I_Jam" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverPowerFactorLagWarningLevel" DataType="SINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_UndercurrentTripLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripEnabled_I_Underload" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderPowerFactorLeadInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_UndercurrentWarningLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripEnabled_I_CurrentImbalance" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderPowerFactorLeadTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_OvercurrentTripLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripEnabled_I_PhaseLoss" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderPowerFactorLeadTripLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_OvercurrentWarningLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripEnabled_I_Undercurrent" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_UnderPowerFactorLeadWarningLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_LineLossTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripEnabled_I_Overcurrent" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverPowerFactorLeadInhibitTime" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_I_OvercurrentTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningEnabled_I_Overload" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverPowerFactorLeadTripDelay" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="VoltageOK" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningEnabled_I_GroundFault" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverPowerFactorLeadTripLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningEnabled_I_Stall" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="cfg_P_OverPowerFactorLeadWarningLevel" DataType="USINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningEnabled_I_Jam" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningEnabled_I_Underload" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningEnabled_I_CurrentImbalance" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningEnabled_I_PhaseLoss" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningEnabled_I_Undercurrent" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningEnabled_I_Overcurrent" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningEnabled_I_LineLoss" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripEnable_V_Undervoltage" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripEnable_V_Overvoltage" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripEnable_V_VoltageUnbalance" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripEnable_V_PhaseRotation" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripEnable_V_Underfrequency" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripEnable_V_Overfrequency" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningEnable_V_Undervoltage" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningEnable_V_Overvoltage" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningEnable_V_VoltageUnbalance" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningEnable_V_PhaseRotation" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningEnable_V_Underfrequency" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="WarningEnable_V_Overfrequency" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="TripEnabled_I_LineLoss" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Pressure_Switch_Enabled" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="Retain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Downhole_Tool_Enabled" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="Retain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Clear_Trip_Cycle" DataType="TIME" InitialValue="T#15s" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_LineFrequency" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_L1Current" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_L2Current" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_L3Current" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_AverageCurrent" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_PercentCurrentUnbalance" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_L1NVoltage" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_L2NVoltage" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_L3NVoltage" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_AverageLNVoltage" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_L1L2Voltage" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_L2L3Voltage" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_L3L1Voltage" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_AverageLLVoltage" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_PercentVoltageUnbalance" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_L1RealPower" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_L2RealPower" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_L3RealPower" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_TotalRealPower" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_L1ReactivePower" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_L2ReactivePower" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_L3ReactivePower" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_TotalReactivePower" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_L1ApparentPower" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_L2ApparentPower" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_L3ApparentPower" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_TotalApparentPower" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_L1TruePowerFactor" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_L2TruePowerFactor" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_L3TruePowerFactor" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="E300_ThreePhaseTruePowerFactor" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Pressure_Transducer_Enabled" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="Retain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Pressure_In" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Pressure_Hi" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Pressure_Lo" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Pressure_Hi_SP" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="Retain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Pressure_Lo_SP" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="Retain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Start_Time" DataType="TIME" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Pressure_Alarm_Startup_Delay" DataType="DINT" InitialValue="30" Comment="in seconds" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Pressure_OK" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Pressure_OOT_Scans" DataType="UDINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Pressure_OOT_Seconds" DataType="UDINT" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Pressure_Alarm_Delay" DataType="UDINT" InitialValue="15" Comment="in Sec" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Run_Time" DataType="TIME" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Pressure_EU_Min" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="Retain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Pressure_EU_Max" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="Retain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
<Variable Name="Start_Time_Set" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
</GlobalVars>
<Devices>
<Device PackageName="AB_" DriverName="OPTIMUS_" Name="IO_Base" Index="0" NbChannels="0" IsVirtual="false" Order="1" Alias="" Comment="">
<IOSymbols AllIOSymbols="true" />
<DeviceList>
<Device Index="0" NbChannels="7" Order="0" SimpleOfComplexOrder="0">
<IOSymbols AllIOSymbols="true">
<IOSymbol GainA="1" GainB="1" Offset="1" Order="0" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="0" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_DO_00">
<ChannelParameterInstances />
</IOSymbol>
<IOSymbol GainA="1" GainB="1" Offset="1" Order="1" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="1" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_DO_01">
<ChannelParameterInstances />
</IOSymbol>
<IOSymbol GainA="1" GainB="1" Offset="1" Order="2" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="2" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_DO_02">
<ChannelParameterInstances />
</IOSymbol>
<IOSymbol GainA="1" GainB="1" Offset="1" Order="3" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="3" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_DO_03">
<ChannelParameterInstances />
</IOSymbol>
<IOSymbol GainA="1" GainB="1" Offset="1" Order="4" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="4" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_DO_04">
<ChannelParameterInstances />
</IOSymbol>
<IOSymbol GainA="1" GainB="1" Offset="1" Order="5" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="5" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_DO_05">
<ChannelParameterInstances />
</IOSymbol>
<IOSymbol GainA="1" GainB="1" Offset="1" Order="6" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="6" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_DO_06">
<ChannelParameterInstances />
</IOSymbol>
</IOSymbols>
</Device>
<Device Index="0" NbChannels="12" Order="0" SimpleOfComplexOrder="1">
<IOSymbols AllIOSymbols="true">
<IOSymbol GainA="1" GainB="1" Offset="1" Order="0" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="0" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_DI_00">
<ChannelParameterInstances />
</IOSymbol>
<IOSymbol GainA="1" GainB="1" Offset="1" Order="1" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="1" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_DI_01">
<ChannelParameterInstances />
</IOSymbol>
<IOSymbol GainA="1" GainB="1" Offset="1" Order="2" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="2" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_DI_02">
<ChannelParameterInstances />
</IOSymbol>
<IOSymbol GainA="1" GainB="1" Offset="1" Order="3" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="3" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_DI_03">
<ChannelParameterInstances />
</IOSymbol>
<IOSymbol GainA="1" GainB="1" Offset="1" Order="4" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="4" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_DI_04">
<ChannelParameterInstances />
</IOSymbol>
<IOSymbol GainA="1" GainB="1" Offset="1" Order="5" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="5" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_DI_05">
<ChannelParameterInstances />
</IOSymbol>
<IOSymbol GainA="1" GainB="1" Offset="1" Order="6" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="6" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_DI_06">
<ChannelParameterInstances />
</IOSymbol>
<IOSymbol GainA="1" GainB="1" Offset="1" Order="7" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="7" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_DI_07">
<ChannelParameterInstances />
</IOSymbol>
<IOSymbol GainA="1" GainB="1" Offset="1" Order="8" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="8" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_DI_08">
<ChannelParameterInstances />
</IOSymbol>
<IOSymbol GainA="1" GainB="1" Offset="1" Order="9" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="9" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_DI_09">
<ChannelParameterInstances />
</IOSymbol>
<IOSymbol GainA="1" GainB="1" Offset="1" Order="10" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="10" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_DI_10">
<ChannelParameterInstances />
</IOSymbol>
<IOSymbol GainA="1" GainB="1" Offset="1" Order="11" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="11" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_DI_11">
<ChannelParameterInstances />
</IOSymbol>
</IOSymbols>
</Device>
<Device Index="0" NbChannels="4" Order="0" SimpleOfComplexOrder="2">
<IOSymbols AllIOSymbols="true">
<IOSymbol GainA="1" GainB="1" Offset="1" Order="0" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="0" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_AI_00">
<ChannelParameterInstances />
</IOSymbol>
<IOSymbol GainA="1" GainB="1" Offset="1" Order="1" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="1" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_AI_01">
<ChannelParameterInstances />
</IOSymbol>
<IOSymbol GainA="1" GainB="1" Offset="1" Order="2" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="2" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_AI_02">
<ChannelParameterInstances />
</IOSymbol>
<IOSymbol GainA="1" GainB="1" Offset="1" Order="3" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="3" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_AI_03">
<ChannelParameterInstances />
</IOSymbol>
</IOSymbols>
</Device>
<Device Index="0" NbChannels="1" Order="0" SimpleOfComplexOrder="3">
<IOSymbols AllIOSymbols="true">
<IOSymbol GainA="1" GainB="1" Offset="1" Order="0" GainAf="1" GainBf="1" OffsetF="1" PhysicalOrder="0" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_EM_AO_00">
<ChannelParameterInstances />
</IOSymbol>
</IOSymbols>
</Device>
</DeviceList>
</Device>
</Devices>
<ExportedGroups />
<ImportedGroups />
<Groups />
</Resource>

View File

@@ -1,264 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Pou FileVersion="200.00.003" Name="RA_CIP_ELECTRICAL_ENERGY_OBJ" ElementGuid="a54a076d-8f2c-4d51-a2ee-380f25a3cfb9" Comment="" SingleTextLine="Read the CIP Electrical Energy Object Attributes from a compatible device using Explicit Messaging" Language="ST" CustomFbd="0" Localization="Prj" GroupName="(User defined)" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="true" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="" InitInstance="false" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="FBEN" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IPAddress" DataType="STRING" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="80" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="UpdateRate_ms" DataType="UINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="FBENO" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="CIPErrorStatus" DataType="CIPSTATUS" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ProductName" DataType="STRING" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="80" Direction="Output" CommentFields="" Attributes="0">
<Dimension Lower="1" Upper="1" />
</Variable>
<Variable Name="EEObjAttributes" DataType="CIPEEOBJ_ATTRIBS" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="EnergyINTArray" DataType="INT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0">
<Dimension Lower="0" Upper="40" />
</Variable>
<Variable Name="MeteringREALArray" DataType="REAL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0">
<Dimension Lower="0" Upper="30" />
</Variable>
<Variable Name="MSGObjRead" DataType="MSG_CIPGENERIC" InitialValue=",,,,,,,2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGObjRead_EN" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ObjReadCtrlCfg" DataType="CIPCONTROLCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ObjReadAppCfg" DataType="CIPAPPCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ObjReadTargetCfg" DataType="CIPTARGETCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ObjReadResData" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0">
<Dimension Lower="0" Upper="219" />
</Variable>
<Variable Name="FBEN_RTRIG" DataType="R_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGObjRead_Q_RTRIG" DataType="R_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGObjRead_Err_RTRIG" DataType="R_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="NoErrorStatus" DataType="CIPSTATUS" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="INT_COP" DataType="COP" InitialValue=",,,,2(),,2(0),2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="REAL_COP" DataType="COP" InitialValue=",,,,2(),,2(0),2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="Phase_COP" DataType="COP" InitialValue=",,,,2(),,2(0),2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ZeroedAttributes" DataType="CIPEEOBJ_ATTRIBS" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="i" DataType="DINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="FBEN_FTRIG" DataType="F_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ProdNameAppCfg" DataType="CIPAPPCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ProdNameTargetCfg" DataType="CIPTARGETCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGProdName" DataType="MSG_CIPGENERIC" InitialValue=",,,,,,,2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGProdName_EN" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGProdName_Q_RTRIG" DataType="R_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGProdName_Err_RTRIG" DataType="R_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ProdNameCtrlCfg" DataType="CIPCONTROLCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ProdNameResData" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0">
<Dimension Lower="0" Upper="31" />
</Variable>
<Variable Name="ProdName_COP" DataType="COP" InitialValue=",,,,2(),,2(0),2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody><![CDATA[FUNCTION_BLOCK RA_CIP_ELECTRICAL_ENERGY_OBJ
(*=====================================================================================================================================
[UDFB Name] :RA_CIP_ELECTRICAL_ENERGY_OBJECT (v7)
[Category] :Communication
[Description] :Read the CIP Electrical Energy Object Attributes from a compatible device using Explicit Messaging
[Author] :Rockwell Automation
[Created using CCW version] :7.0
[FeedBack] :RASampleCode@ra.rockwell.com
[Revison History] :2014-December - Original Release for Version 7
[Notes] :Tested at release with E300 and PowerMonitor 5000
=====================================================================================================================================*)
FBENO := FBEN;
(*-------- Initialize --------*)
FBEN_RTRIG(FBEN);
IF (__SYSVA_FIRST_SCAN OR FBEN_RTRIG.Q) THEN
MSGProdName_EN := TRUE;
MSGObjRead_EN := FALSE;
ProdNameCtrlCfg.TriggerType := 5000;
IF UpdateRate_ms < 1000 THEN
ObjReadCtrlCfg.TriggerType := 1000; (*Triggers message every 1000 ms while MSGObjRead_EN is true*)
ELSE
ObjReadCtrlCfg.TriggerType := ANY_TO_UDINT(UpdateRate_ms);
END_IF;
ProdNameTargetCfg.Path := '4,'+ IPAddress;
ProdNameTargetCfg.CipConnMode := 0; (*0-unconnected, 1-Class 3*)
ProdNameTargetCfg.UcmmTimeout := 250; (*Unconnected message time out, Set to 0 means 3000ms, range 250-10000*)
ProdNameTargetCfg.ConnMsgTimeout:= 800; (*Class3 time out, Set to 0 means 3000ms, range 800-10000*)
ProdNameTargetCfg.ConnClose := FALSE;(*Don't close the connection upon message completion*)
ProdNameAppCfg.Service := 14; (*Service code 0Eh for Get Single Attribute*)
ProdNameAppCfg.Class := 1; (*Class code 01h for Identity Object*)
ProdNameAppCfg.Instance := 1; (*Instance 1*)
ProdNameAppCfg.Attribute := 7; (*Attribute 7 for Product Name*)
ObjReadTargetCfg.Path := '4,'+ IPAddress;
ObjReadTargetCfg.CipConnMode := 0; (*0-unconnected, 1-Class 3*)
ObjReadTargetCfg.UcmmTimeout := 250; (*Unconnected message time out, Set to 0 means 3000ms, range 250-10000*)
ObjReadTargetCfg.ConnMsgTimeout := 800; (*Class3 time out, Set to 0 means 3000ms, range 800-10000*)
ObjReadTargetCfg.ConnClose := FALSE;(*Don't close the connection upon message completion*)
ObjReadAppCfg.Service := 1; (*Service code 01h for Get Attributes All*)
ObjReadAppCfg.Class := 79; (*Class code 4Fh for Electrical Energy Object*)
ObjReadAppCfg.Instance := 1; (*Instance 1*)
ObjReadAppCfg.Attribute := 0; (*Attribute 0*)
CIPErrorStatus := NoErrorStatus;
ProductName[1] := '';
EEObjAttributes := ZeroedAttributes;
FOR i := 0 TO 40 DO
EnergyINTArray[i]:= 0;
END_FOR;
FOR i := 0 TO 30 DO
MeteringREALArray[i]:= 0.0;
END_FOR;
END_IF;
FBEN_FTRIG(FBEN);
IF FBEN_FTRIG.Q THEN
CIPErrorStatus := NoErrorStatus;
ProductName[1] := '';
EEObjAttributes := ZeroedAttributes;
FOR i := 0 TO 40 DO
EnergyINTArray[i]:= 0;
END_FOR;
FOR i := 0 TO 30 DO
MeteringREALArray[i]:= 0.0;
END_FOR;
END_IF;
(*-------- Main Routine --------*)
IF FBEN THEN
MSGProdName_Q_RTRIG(MSGProdName.Q);
MSGObjRead_Q_RTRIG(MSGObjRead.Q);
IF MSGProdName_Q_RTRIG.Q THEN
CIPErrorStatus := MSGProdName.Status;
ProdName_COP(TRUE,ProdNameResData,0,ProductName,0,1,FALSE);
MSGProdName_EN := FALSE;
MSGObjRead_EN := TRUE;
END_IF;
IF MSGObjRead_Q_RTRIG.Q THEN
CIPErrorStatus := MSGObjRead.Status;
INT_COP(TRUE,ObjReadResData,0,EnergyINTArray,0,40,TRUE);
REAL_COP(TRUE,ObjReadResData,80,MeteringREALArray,0,31,TRUE);
Phase_COP(TRUE,ObjReadResData,204,EnergyINTArray,40,1,TRUE);
EEObjAttributes.RealEnergyConsumedOdometer := ANY_TO_LREAL(EnergyINTArray[4])*1.0E+9 +
ANY_TO_LREAL(EnergyINTArray[3])*1.0E+6 +
ANY_TO_LREAL(EnergyINTArray[2])*1.0E+3 +
ANY_TO_LREAL(EnergyINTArray[1]) +
ANY_TO_LREAL(EnergyINTArray[0])*1.0E-3;
EEObjAttributes.RealEnergyGeneratedOdometer := ANY_TO_LREAL(EnergyINTArray[9])*1.0E+9 +
ANY_TO_LREAL(EnergyINTArray[8])*1.0E+6 +
ANY_TO_LREAL(EnergyINTArray[7])*1.0E+3 +
ANY_TO_LREAL(EnergyINTArray[6]) +
ANY_TO_LREAL(EnergyINTArray[5])*1.0E-3;
EEObjAttributes.RealEnergyNetOdometer := ANY_TO_LREAL(EnergyINTArray[14])*1.0E+9 +
ANY_TO_LREAL(EnergyINTArray[13])*1.0E+6 +
ANY_TO_LREAL(EnergyINTArray[12])*1.0E+3 +
ANY_TO_LREAL(EnergyINTArray[11]) +
ANY_TO_LREAL(EnergyINTArray[10])*1.0E-3;
EEObjAttributes.ReactiveEnergyConsumedOdometer := ANY_TO_LREAL(EnergyINTArray[19])*1.0E+9 +
ANY_TO_LREAL(EnergyINTArray[18])*1.0E+6 +
ANY_TO_LREAL(EnergyINTArray[17])*1.0E+3 +
ANY_TO_LREAL(EnergyINTArray[16]) +
ANY_TO_LREAL(EnergyINTArray[15])*1.0E-3;
EEObjAttributes.ReactiveEnergyGeneratedOdometer := ANY_TO_LREAL(EnergyINTArray[24])*1.0E+9 +
ANY_TO_LREAL(EnergyINTArray[23])*1.0E+6 +
ANY_TO_LREAL(EnergyINTArray[22])*1.0E+3 +
ANY_TO_LREAL(EnergyINTArray[21]) +
ANY_TO_LREAL(EnergyINTArray[20])*1.0E-3;
EEObjAttributes.ReactiveEnergyNetOdometer := ANY_TO_LREAL(EnergyINTArray[29])*1.0E+9 +
ANY_TO_LREAL(EnergyINTArray[28])*1.0E+6 +
ANY_TO_LREAL(EnergyINTArray[27])*1.0E+3 +
ANY_TO_LREAL(EnergyINTArray[26]) +
ANY_TO_LREAL(EnergyINTArray[25])*1.0E-3;
EEObjAttributes.ApparentEnergyOdometer := ANY_TO_LREAL(EnergyINTArray[34])*1.0E+9 +
ANY_TO_LREAL(EnergyINTArray[33])*1.0E+6 +
ANY_TO_LREAL(EnergyINTArray[32])*1.0E+3 +
ANY_TO_LREAL(EnergyINTArray[31]) +
ANY_TO_LREAL(EnergyINTArray[30])*1.0E-3;
EEObjAttributes.KiloampereHoursOdometer := ANY_TO_LREAL(EnergyINTArray[39])*1.0E+9 +
ANY_TO_LREAL(EnergyINTArray[38])*1.0E+6 +
ANY_TO_LREAL(EnergyINTArray[37])*1.0E+3 +
ANY_TO_LREAL(EnergyINTArray[36]) +
ANY_TO_LREAL(EnergyINTArray[35])*1.0E-3;
EEObjAttributes.LineFrequency := MeteringREALArray[0];
EEObjAttributes.L1Current := MeteringREALArray[1];
EEObjAttributes.L2Current := MeteringREALArray[2];
EEObjAttributes.L3Current := MeteringREALArray[3];
EEObjAttributes.AverageCurrent := MeteringREALArray[4];
EEObjAttributes.PercentCurrentUnbalance := MeteringREALArray[5];
EEObjAttributes.L1NVoltage := MeteringREALArray[6];
EEObjAttributes.L2NVoltage := MeteringREALArray[7];
EEObjAttributes.L3NVoltage := MeteringREALArray[8];
EEObjAttributes.AverageLNVoltage := MeteringREALArray[9];
EEObjAttributes.L1L2Voltage := MeteringREALArray[10];
EEObjAttributes.L2L3Voltage := MeteringREALArray[11];
EEObjAttributes.L3L1Voltage := MeteringREALArray[12];
EEObjAttributes.AverageLLVoltage := MeteringREALArray[13];
EEObjAttributes.PercentVoltageUnbalance := MeteringREALArray[14];
EEObjAttributes.L1RealPower := MeteringREALArray[15];
EEObjAttributes.L2RealPower := MeteringREALArray[16];
EEObjAttributes.L3RealPower := MeteringREALArray[17];
EEObjAttributes.TotalRealPower := MeteringREALArray[18];
EEObjAttributes.L1ReactivePower := MeteringREALArray[19];
EEObjAttributes.L2ReactivePower := MeteringREALArray[20];
EEObjAttributes.L3ReactivePower := MeteringREALArray[21];
EEObjAttributes.TotalReactivePower := MeteringREALArray[22];
EEObjAttributes.L1ApparentPower := MeteringREALArray[23];
EEObjAttributes.L2ApparentPower := MeteringREALArray[24];
EEObjAttributes.L3ApparentPower := MeteringREALArray[25];
EEObjAttributes.TotalApparentPower := MeteringREALArray[26];
EEObjAttributes.L1TruePowerFactor := MeteringREALArray[27];
EEObjAttributes.L2TruePowerFactor := MeteringREALArray[28];
EEObjAttributes.L3TruePowerFactor := MeteringREALArray[29];
EEObjAttributes.ThreePhaseTruePowerFactor := MeteringREALArray[30];
CASE EnergyINTArray[40] OF
1: EEObjAttributes.PhaseRotation := 'ABC';
2: EEObjAttributes.PhaseRotation := 'ACB';
ELSE
EEObjAttributes.PhaseRotation := 'None';
END_CASE;
END_IF;
MSGProdName_Err_RTRIG(MSGProdName.Status.Error);
MSGObjRead_Err_RTRIG(MSGObjRead.Status.Error);
IF MSGProdName_Err_RTRIG.Q THEN
CIPErrorStatus := MSGProdName.Status;
ProductName[1] := '';
END_IF;
IF MSGObjRead_Err_RTRIG.Q THEN
MSGProdName_EN := TRUE;
MSGObjRead_EN := FALSE;
CIPErrorStatus := MSGObjRead.Status;
ProductName[1] := '';
EEObjAttributes := ZeroedAttributes;
FOR i := 0 TO 40 DO
EnergyINTArray[i]:= 0;
END_FOR;
FOR i := 0 TO 30 DO
MeteringREALArray[i]:= 0.0;
END_FOR;
END_IF;
ELSE
MSGProdName_EN := FALSE;
MSGObjRead_EN := FALSE;
END_IF;
MSGProdName(MSGProdName_EN, ProdNameCtrlCfg, ProdNameAppCfg, ProdNameTargetCfg,, 0, ProdNameResData);
MSGObjRead(MSGObjRead_EN, ObjReadCtrlCfg, ObjReadAppCfg, ObjReadTargetCfg,, 0, ObjReadResData);
END_FUNCTION_BLOCK]]></PouBody>
<PouUIProperties>
<Root Version="6">
<LanguageContainerStyle CommentTextColor="Green" CommentFont="Courier New, 10pt" PonctuationTextColor="Black" PonctuationFont="Courier New, 10pt" IdentifierTextColor="Black" IdentifierFont="Courier New, 10pt" OperatorTextColor="Black" OperatorFont="Courier New, 10pt" ReservedWordTextColor="Fuchsia" ReservedWordFont="Courier New, 10pt" PouTextColor="BlueViolet" PouFont="Courier New, 10pt" NumberTextColor="Firebrick" NumberFont="Courier New, 10pt" StringTextColor="Gray" StringFont="Courier New, 10pt" EditorTextAreaBackgroundColor="White" EditorFont="Courier New, 10pt" Index="0" />
</Root>
</PouUIProperties>
</Pou>

View File

@@ -206,4 +206,5 @@ MSGProdName(MSGProdName_EN, ProdNameCtrlCfg, ProdNameAppCfg, ProdNameTargetCfg,,
MSGObjRead(MSGObjRead_EN, ObjReadCtrlCfg, ObjReadAppCfg, ObjReadTargetCfg,, 0, ObjReadResData);
END_FUNCTION_BLOCK

View File

@@ -1 +1 @@
RA_E300_OUTPUT_CONTROL(140):F,LEFT();
RA_E300_OUTPUT_CONTROL(144):F,LEFT();

View File

@@ -1,171 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Pou FileVersion="200.00.003" Name="RA_E300_OUTPUT_CONTROL" ElementGuid="6a76b54b-2f34-4293-be5c-9e68ed422fa5" Comment="" SingleTextLine="Control E300 Control Module and Digital Expansion Module output points using Explicit Messaging" Language="ST" CustomFbd="0" Localization="Prj" GroupName="(User defined)" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="true" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="" InitInstance="false" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="FBEN" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IPAddress" DataType="STRING" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="80" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="OutputNumber" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="OutputSetting" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="FBENO" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="CIPErrorStatus" DataType="CIPSTATUS" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="ProductName" DataType="STRING" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="80" Direction="Output" CommentFields="" Attributes="0">
<Dimension Lower="1" Upper="1" />
</Variable>
<Variable Name="OutputName" DataType="STRING" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="80" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="SettingApplied" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="MSGWriteOutput" DataType="MSG_CIPGENERIC" InitialValue=",,,,,,,2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGWriteOutput_EN" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="WriteOutputCtrlCfg" DataType="CIPCONTROLCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="WriteOutputAppCfg" DataType="CIPAPPCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="WriteOutputTargetCfg" DataType="CIPTARGETCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="FBEN_RTRIG" DataType="R_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGWriteOutput_Q_RTRIG" DataType="R_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGWriteOutput_Err_RTRIG" DataType="R_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="NoErrorStatus" DataType="CIPSTATUS" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ZeroedAttributes" DataType="CIPEEOBJ_ATTRIBS" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="FBEN_FTRIG" DataType="F_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ProdNameAppCfg" DataType="CIPAPPCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ProdNameTargetCfg" DataType="CIPTARGETCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGProdName" DataType="MSG_CIPGENERIC" InitialValue=",,,,,,,2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGProdName_EN" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGProdName_Q_RTRIG" DataType="R_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGProdName_Err_RTRIG" DataType="R_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ProdNameCtrlCfg" DataType="CIPCONTROLCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ProdNameResData" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0">
<Dimension Lower="0" Upper="31" />
</Variable>
<Variable Name="ProdName_COP" DataType="COP" InitialValue=",,,,2(),,2(0),2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="WriteOutputReqData" DataType="USINT" InitialValue="1" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0">
<Dimension Lower="1" Upper="1" />
</Variable>
<Variable Name="OutputSetting_RTRIG" DataType="R_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="OutputSetting_FTRIG" DataType="F_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody><![CDATA[FUNCTION_BLOCK RA_E300_OUTPUT_CONTROL
(*=====================================================================================================================================
[UDFB Name] :RA_E300_OUTPUT_CONTROL
[Category] :Communication
[Description] :Control E300 Control Module and Digital Expansion Module output points using Explicit Messaging
[Author] :Rockwell Automation
[Created using CCW version] :8.0
[FeedBack] :RASampleCode@ra.rockwell.com
[Revison History] :2015-October - Original Release for Version 8
[Notes] :
=====================================================================================================================================*)
FBENO := FBEN;
(*-------- Initialize --------*)
FBEN_RTRIG(FBEN);
IF (__SYSVA_FIRST_SCAN OR FBEN_RTRIG.Q) THEN
MSGProdName_EN := TRUE;
MSGWriteOutput_EN := FALSE;
ProdNameCtrlCfg.TriggerType := 5000;
ProdNameTargetCfg.Path := '4,'+ IPAddress;
ProdNameTargetCfg.CipConnMode := 0; (*0-unconnected, 1-Class 3*)
ProdNameTargetCfg.UcmmTimeout := 250; (*Unconnected message time out, Set to 0 means 3000ms, range 250-10000*)
ProdNameTargetCfg.ConnMsgTimeout := 800; (*Class3 time out, Set to 0 means 3000ms, range 800-10000*)
ProdNameTargetCfg.ConnClose := FALSE;(*Don't close the connection upon message completion*)
ProdNameAppCfg.Service := 14; (*Service code 0Eh for Get Single Attribute*)
ProdNameAppCfg.Class := 1; (*Class code 01h for Identity Object*)
ProdNameAppCfg.Instance := 1; (*Instance 1*)
ProdNameAppCfg.Attribute := 7; (*Attribute 7 for Product Name*)
WriteOutputCtrlCfg.TriggerType := 0;
WriteOutputTargetCfg.Path := '4,'+ IPAddress;
WriteOutputTargetCfg.CipConnMode := 1; (*0-unconnected, 1-Class 3*)
WriteOutputTargetCfg.UcmmTimeout := 0; (*Unconnected message time out, Set to 0 means 3000ms, range 250-10000*)
WriteOutputTargetCfg.ConnMsgTimeout := 0; (*Class3 time out, Set to 0 means 3000ms, range 800-10000*)
WriteOutputTargetCfg.ConnClose := FALSE;(*Don't close the connection upon message completion*)
WriteOutputAppCfg.Service := 16; (*Service code 10h for Set Attributes Single*)
WriteOutputAppCfg.Class := 9; (*Class code 09h for Discrete Output Point Object*)
WriteOutputAppCfg.Instance := ANY_TO_UDINT(OutputNumber+1);
WriteOutputAppCfg.Attribute := 3; (*Set Value 0=OFF, 1=ON*)
CIPErrorStatus := NoErrorStatus;
ProductName[1] := '';
SettingApplied := FALSE;
CASE OutputNumber OF
0: OutputName:= 'OutputPt00';
1: OutputName:= 'OutputPt01';
2: OutputName:= 'OutputPt02';
3: OutputName:= 'OutDigMod1Pt00';
4: OutputName:= 'OutDigMod1Pt01';
5: OutputName:= 'OutDigMod2Pt00';
6: OutputName:= 'OutDigMod2Pt01';
7: OutputName:= 'OutDigMod3Pt00';
8: OutputName:= 'OutDigMod3Pt01';
9: OutputName:= 'OutDigMod4Pt00';
10: OutputName:= 'OutDigMod4Pt01';
ELSE
OutputName:= 'Invalid OutputNumber';
END_CASE;
END_IF;
FBEN_FTRIG(FBEN);
IF FBEN_FTRIG.Q THEN
CIPErrorStatus := NoErrorStatus;
SettingApplied := FALSE;
END_IF;
(*-------- Main Routine --------*)
IF FBEN AND OutputNumber<=10 THEN
WriteOutputReqData[1] := ANY_TO_USINT(OutputSetting); (*0=OFF, 1=ON*)
MSGProdName_Q_RTRIG(MSGProdName.Q);
MSGWriteOutput_Q_RTRIG(MSGWriteOutput.Q);
OutputSetting_RTRIG(OutputSetting);
OutputSetting_FTRIG(OutputSetting);
IF MSGProdName_Q_RTRIG.Q THEN
CIPErrorStatus := MSGProdName.Status;
ProdName_COP(TRUE,ProdNameResData,0,ProductName,0,1,FALSE);
IF (LEFT(ProductName[1],4)='E300') THEN
MSGProdName_EN := FALSE;
MSGWriteOutput_EN := TRUE;
ELSE
OutputName := 'Not An E300';
END_IF;
END_IF;
IF MSGWriteOutput_Q_RTRIG.Q THEN
SettingApplied := TRUE;
MSGWriteOutput_EN := FALSE;
END_IF;
IF (OutputSetting_RTRIG.Q OR OutputSetting_FTRIG.Q) AND (LEFT(ProductName[1],4)='E300') THEN
SettingApplied := FALSE;
MSGWriteOutput_EN := TRUE;
END_IF;
MSGProdName_Err_RTRIG(MSGProdName.Status.Error);
MSGWriteOutput_Err_RTRIG(MSGWriteOutput.Status.Error);
IF MSGProdName_Err_RTRIG.Q THEN
CIPErrorStatus := MSGProdName.Status;
ProductName[1] := '';
END_IF;
IF MSGWriteOutput_Err_RTRIG.Q THEN
MSGWriteOutput_EN := FALSE;
CIPErrorStatus := MSGWriteOutput.Status;
ProductName[1] := '';
MSGProdName_EN := TRUE;
END_IF;
ELSE
MSGProdName_EN := FALSE;
MSGWriteOutput_EN := FALSE;
END_IF;
MSGProdName(MSGProdName_EN, ProdNameCtrlCfg, ProdNameAppCfg, ProdNameTargetCfg,, 0, ProdNameResData);
MSGWriteOutput(MSGWriteOutput_EN, WriteOutputCtrlCfg, WriteOutputAppCfg, WriteOutputTargetCfg, WriteOutputReqData, 1,);
END_FUNCTION_BLOCK]]></PouBody>
<PouUIProperties>
<Root Version="6">
<LanguageContainerStyle CommentTextColor="Green" CommentFont="Courier New, 10pt" PonctuationTextColor="Black" PonctuationFont="Courier New, 10pt" IdentifierTextColor="Black" IdentifierFont="Courier New, 10pt" OperatorTextColor="Black" OperatorFont="Courier New, 10pt" ReservedWordTextColor="Fuchsia" ReservedWordFont="Courier New, 10pt" PouTextColor="BlueViolet" PouFont="Courier New, 10pt" NumberTextColor="Firebrick" NumberFont="Courier New, 10pt" StringTextColor="Gray" StringFont="Courier New, 10pt" EditorTextAreaBackgroundColor="White" EditorFont="Courier New, 10pt" Index="0" />
</Root>
</PouUIProperties>
</Pou>

View File

@@ -119,4 +119,5 @@ END_IF;
MSGProdName(MSGProdName_EN, ProdNameCtrlCfg, ProdNameAppCfg, ProdNameTargetCfg,, 0, ProdNameResData);
MSGWriteOutput(MSGWriteOutput_EN, WriteOutputCtrlCfg, WriteOutputAppCfg, WriteOutputTargetCfg, WriteOutputReqData, 1,);
END_FUNCTION_BLOCK

View File

@@ -1,93 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Pou FileVersion="200.00.003" Name="ReadDownholeData" ElementGuid="04a8833b-5933-4ff6-bc43-b2cad9c5c6b7" Comment="" SingleTextLine="" Language="LD" CustomFbd="0" Localization="Prj" GroupName="(User defined)" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="true" Is1499="false">
<Program />
<LocalVars>
<Variable Name="Cancel" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="0" GroupName="" />
<Variable Name="LocalCfgData" DataType="MODBUSLOCPARA" InitialValue="2,0,3,100" Comment="" Address="" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="0" GroupName="" />
<Variable Name="TargetCfgData0" DataType="MODBUSTARPARA" InitialValue="0,1" Comment="" Address="" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="0" GroupName="" />
<Variable Name="LocalAddrData" DataType="MODBUSLOCADDR" InitialValue="" Comment="" Address="" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="0" GroupName="" />
<Variable Name="ModbusErrorData" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="0" GroupName="" />
<Variable Name="ErrorCodeData" DataType="UINT" InitialValue="" Comment="" Address="" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="0" GroupName="" />
<Variable Name="ModbusCycleTimer" DataType="TON" InitialValue="" Comment="" Address="" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="0" GroupName="" />
<Variable Name="LocalCfgStatus" DataType="MODBUSLOCPARA" InitialValue="2,0,3,1" Comment="" Address="" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="0" GroupName="" />
<Variable Name="TargetCfgStatus" DataType="MODBUSTARPARA" InitialValue="97,1" Comment="" Address="" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="0" GroupName="" />
<Variable Name="LocalAddrStatus" DataType="MODBUSLOCADDR" InitialValue="" Comment="" Address="" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="0" GroupName="" />
<Variable Name="ModbusErrorStatus" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="0" GroupName="" />
<Variable Name="ErrorCodeStatus" DataType="UINT" InitialValue="" Comment="" Address="" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="0" GroupName="" />
<Variable Name="ModbusData_1000" DataType="MSG_MODBUS" InitialValue="2(),,,,0" Comment="" Address="" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="0" GroupName="" />
<Variable Name="ModbusData_0" DataType="MSG_MODBUS" InitialValue="2(),,,,0" Comment="" Address="" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="0" GroupName="" />
<Variable Name="TargetCfgData1000" DataType="MODBUSTARPARA" InitialValue="1000,1" Comment="" Address="" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="0" GroupName="" />
</LocalVars>
<PouBody><![CDATA[PROGRAM ReadDownholeData
#info= QLD
BOF
(**)
SOR [0,1] (**) (**) XIO [1,0] (*ModbusCycleTimer.Q*) (*Q*) FB [2,0] (*TON*) (*ModbusCycleTimer*) ( (*IN:IN*)(**) (**) , (*PT:PT*)(*ModbusCycleTime*) (**) ; (*Q:Q*)(**) (**) , (*ET:ET*)(*ModbusCycleTimeElapsed*) (**) )
EOR [5,0]
(**)
SOR [0,4] (**) (**) XIC [1,0] (*ModbusCycleTimer.Q*) (*Q*) XIC [2,0] (*Downhole_Tool_Enabled*) (**) FB [3,0] (*MSG_MODBUS*) (*ModbusData_0*) ( (*IN:IN*)(**) (**) , (*Cancel:Canc*)(*Cancel*) (**) , (*LocalCfg:Loca*)(*LocalCfgData*) (**) , (*TargetCfg:Targ*)(*TargetCfgData0*) (**) , (*LocalAddr:Loca*)(*Modbus_Read0*) (**) , (*__ADI_LocalAddr:_ADI*)(*0*) (**) ; (*Q:Q*)(**) (**) , (*Error:Err*)(*ModbusErrorData*) (**) , (*ErrorID:ErID*)(*ErrorCodeData*) (**) )
EOR [6,0]
(**)
SOR [0,11] (**) (**) XIC [1,0] (*ModbusData_0.Q*) (*Q*) XIC [2,0] (*Downhole_Tool_Enabled*) (**) FB [3,0] (*MSG_MODBUS*) (*ModbusData_1000*) ( (*IN:IN*)(**) (**) , (*Cancel:Canc*)(*Cancel*) (**) , (*LocalCfg:Loca*)(*LocalCfgData*) (**) , (*TargetCfg:Targ*)(*TargetCfgData1000*) (**) , (*LocalAddr:Loca*)(*Modbus_Read1000*) (**) , (*__ADI_LocalAddr:_ADI*)(*0*) (**) ; (*Q:Q*)(**) (**) , (*Error:Err*)(*ModbusErrorData*) (**) , (*ErrorID:ErID*)(*ErrorCodeData*) (**) )
EOR [6,0]
EOF
#end_info
#info= ID_MAX
NextId=5
#end_info
END_PROGRAM]]></PouBody>
<PouUIProperties>
<Root Version="6">
<LanguageContainerStyle DisplayGrid="false" FunctionBlockInstanceName="true" VariableDisplayMode="NameAndAlias" VariableAlpha="255" VariableTextColor="windowtext" VariableOnlineTextColor="Red" VariableBackgroundColor="White" VariableGradientColor="White" Font="Microsoft Sans Serif, 8pt" CellWidth="30" CellHeight="25" NbCellsShapeWidth="4" NbCellsShapeHeight="2" CoilAllAligned="true" RungColor="WhiteSmoke" LabelColor="LightGoldenrodYellow" CommentColor="White" TextCommentColor="Green" PowerRailColor="Silver" DisplayBlockImage="true" DisplayComment="true" PenWidth="2" DisplayLabel="false" OperatorBlockBackgroundColor="buttonface" OperatorBlockGradientColor="buttonface" FunctionBackgroundColor="Ivory" FunctionGradientColor="Ivory" FunctionBlockBackgroundColor="Silver" FunctionBlockGradientColor="Silver" Index="0">
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLdRungShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" PowerRailColor="Silver" DisplayLabel="false" RungColor="WhiteSmoke" CommentColor="White" LabelColor="LightGoldenrodYellow" DisplayComment="true" Key="[0,1]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLdContactShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[1,1]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.Core.Shape.WbPouCallShape" Assembly="ISaGRAF.Workbench.Mlge.Core" FunctionBlockInstanceName="true" Alpha="255" Background="Silver" BackgroundGradient="Silver" Key="[0,1],[2,1]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[2,1],[2,2],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[2,1],[4,2],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLdRungShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" PowerRailColor="Silver" DisplayLabel="false" RungColor="WhiteSmoke" CommentColor="White" LabelColor="LightGoldenrodYellow" DisplayComment="true" Key="[0,11]">
<Text></Text>
<RtfText>{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}}
{\colortbl ;\red0\green128\blue0;}
\viewkind4\uc1\pard\cf1\f0\fs20\par
}
</RtfText>
</ShapeStyle>
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLdContactShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,11],[1,11]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLdContactShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,11],[2,11]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.Core.Shape.WbPouCallShape" Assembly="ISaGRAF.Workbench.Mlge.Core" FunctionBlockInstanceName="true" Alpha="255" Background="Silver" BackgroundGradient="Silver" Key="[0,11],[3,11]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,11],[3,11],[3,12],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,11],[3,11],[3,13],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,11],[3,11],[3,14],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,11],[3,11],[3,15],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,11],[3,11],[5,12],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,11],[3,11],[5,13],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLdRungShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" PowerRailColor="Silver" DisplayLabel="false" RungColor="WhiteSmoke" CommentColor="White" LabelColor="LightGoldenrodYellow" DisplayComment="true" Key="[0,4]">
<Text></Text>
<RtfText>{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}}
{\colortbl ;\red0\green128\blue0;}
\viewkind4\uc1\pard\cf1\f0\fs20\par
}
</RtfText>
</ShapeStyle>
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLdContactShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,4],[1,4]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLdContactShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,4],[2,4]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.Core.Shape.WbPouCallShape" Assembly="ISaGRAF.Workbench.Mlge.Core" FunctionBlockInstanceName="true" Alpha="255" Background="Silver" BackgroundGradient="Silver" Key="[0,4],[3,4]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,4],[3,4],[3,5],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,4],[3,4],[3,6],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,4],[3,4],[3,7],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,4],[3,4],[3,8],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,4],[3,4],[5,5],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,4],[3,4],[5,6],[0,0]" />
</LanguageContainerStyle>
</Root>
</PouUIProperties>
</Pou>

View File

@@ -11,13 +11,13 @@ EOR [5,0]
(**)
SOR [0,4] (**) (**) XIC [1,0] (*ModbusCycleTimer.Q*) (*Q*) XIC [2,0] (*Downhole_Tool_Enabled*) (**) FB [3,0] (*MSG_MODBUS*) (*ModbusData_0*) ( (*IN:IN*)(**) (**) , (*Cancel:Canc*)(*Cancel*) (**) , (*LocalCfg:Loca*)(*LocalCfgData*) (**) , (*TargetCfg:Targ*)(*TargetCfgData0*) (**) , (*LocalAddr:Loca*)(*Modbus_Read0*) (**) , (*__ADI_LocalAddr:_ADI*)(*0*) (**) ; (*Q:Q*)(**) (**) , (*Error:Err*)(*ModbusErrorData*) (**) , (*ErrorID:ErID*)(*ErrorCodeData*) (**) )
SOR [0,4] (**) (**) XIC [1,0] (*ModbusCycleTimer.Q*) (*Q*) XIC [2,0] (*Downhole_Tool_Enabled*) (**) FB [3,0] (*MSG_MODBUS*) (*ModbusData_0*) ( (*IN:*)(**) (**) , (*Cancel:*)(*Cancel*) (**) , (*LocalCfg:*)(*LocalCfgData*) (**) , (*TargetCfg:*)(*TargetCfgData0*) (**) , (*LocalAddr:*)(*Modbus_Read0*) (**) , (*__ADI_LocalAddr:*)(*0*) (**) ; (*Q:*)(**) (**) , (*Error:*)(*ModbusErrorData*) (**) , (*ErrorID:*)(*ErrorCodeData*) (**) )
EOR [6,0]
(**)
SOR [0,11] (**) (**) XIC [1,0] (*ModbusData_0.Q*) (*Q*) XIC [2,0] (*Downhole_Tool_Enabled*) (**) FB [3,0] (*MSG_MODBUS*) (*ModbusData_1000*) ( (*IN:IN*)(**) (**) , (*Cancel:Canc*)(*Cancel*) (**) , (*LocalCfg:Loca*)(*LocalCfgData*) (**) , (*TargetCfg:Targ*)(*TargetCfgData1000*) (**) , (*LocalAddr:Loca*)(*Modbus_Read1000*) (**) , (*__ADI_LocalAddr:_ADI*)(*0*) (**) ; (*Q:Q*)(**) (**) , (*Error:Err*)(*ModbusErrorData*) (**) , (*ErrorID:ErID*)(*ErrorCodeData*) (**) )
SOR [0,11] (**) (**) XIC [1,0] (*ModbusData_0.Q*) (**) XIC [2,0] (*Downhole_Tool_Enabled*) (**) FB [3,0] (*MSG_MODBUS*) (*ModbusData_1000*) ( (*IN:*)(**) (**) , (*Cancel:*)(*Cancel*) (**) , (*LocalCfg:*)(*LocalCfgData*) (**) , (*TargetCfg:*)(*TargetCfgData1000*) (**) , (*LocalAddr:*)(*Modbus_Read1000*) (**) , (*__ADI_LocalAddr:*)(*0*) (**) ; (*Q:*)(**) (**) , (*Error:*)(*ModbusErrorData*) (**) , (*ErrorID:*)(*ErrorCodeData*) (**) )
EOR [6,0]
EOF
#end_info

View File

@@ -1,108 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Pou FileVersion="200.00.003" Name="ReadE300Config" ElementGuid="953d62a3-7fb5-463c-a06b-c3c96152b055" Comment="" SingleTextLine="" Language="ST" CustomFbd="0" Localization="Prj" GroupName="(User defined)" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="true" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="" InitInstance="false" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="FBEN" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IPAddress" DataType="STRING" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="80" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="UpdateRate_ms" DataType="UINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="FBENO" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="CIPErrorStatus" DataType="CIPSTATUS" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Output" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0">
<Dimension Lower="1" Upper="409" />
</Variable>
<Variable Name="MSGObjRead" DataType="MSG_CIPGENERIC" InitialValue=",,,,,,,2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGObjRead_EN" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ObjReadCtrlCfg" DataType="CIPCONTROLCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ObjReadAppCfg" DataType="CIPAPPCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ObjReadTargetCfg" DataType="CIPTARGETCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ObjReadResData" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0">
<Dimension Lower="1" Upper="1" />
</Variable>
<Variable Name="FBEN_RTRIG" DataType="R_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGObjRead_Q_RTRIG" DataType="R_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGObjRead_Err_RTRIG" DataType="R_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="NoErrorStatus" DataType="CIPSTATUS" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="INT_COP" DataType="COP" InitialValue=",,,,2(),,2(0),2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="REAL_COP" DataType="COP" InitialValue=",,,,2(),,2(0),2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="Phase_COP" DataType="COP" InitialValue=",,,,2(),,2(0),2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="i" DataType="DINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="FBEN_FTRIG" DataType="F_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody><![CDATA[FUNCTION_BLOCK ReadE300Config
(*=====================================================================================================================================
[UDFB Name] :ReadE300Config
[Category] :Communication
[Description] :Read the CIP Discrete Input Status from a compatible device using Explicit Messaging
[Author] :Rockwell Automation
[Created using CCW version] :8.0
[FeedBack] :pmcdonagh@henry-pump.com
[Revison History] :2015-November
[Notes] :
=====================================================================================================================================*)
MSGObjRead_EN := Enable;
FBENO := FBEN;
(*-------- Initialize --------*)
FBEN_RTRIG(FBEN);
IF (__SYSVA_FIRST_SCAN OR FBEN_RTRIG.Q) THEN
MSGObjRead_EN := TRUE;
IF UpdateRate_ms < 1000 THEN
ObjReadCtrlCfg.TriggerType := 1000; (*Triggers message every 1000 ms while MSGObjRead_EN is true*)
ELSE
ObjReadCtrlCfg.TriggerType := ANY_TO_UDINT(UpdateRate_ms);
END_IF;
ObjReadTargetCfg.Path := '4,'+ IPAddress;
ObjReadTargetCfg.CipConnMode := 1; (*0-unconnected, 1-Class 3*)
ObjReadTargetCfg.UcmmTimeout := 250; (*Unconnected message time out, Set to 0 means 3000ms, range 250-10000*)
ObjReadTargetCfg.ConnMsgTimeout := 800; (*Class3 time out, Set to 0 means 3000ms, range 800-10000*)
ObjReadTargetCfg.ConnClose := FALSE;(*Don't close the connection upon message completion*)
ObjReadAppCfg.Service := 14; (*Service code 0eh for Get Attribute Single*)
ObjReadAppCfg.Class := 4; (*Class code 0x0004h for Assembly Object*)
ObjReadAppCfg.Instance := 120; (*Instance 1*)
ObjReadAppCfg.Attribute := 3; (*Attribute 1: Value*)
ObjReadAppCfg.MemberCnt := 0;
CIPErrorStatus := NoErrorStatus;
END_IF;
FBEN_FTRIG(FBEN);
IF FBEN_FTRIG.Q THEN
CIPErrorStatus := NoErrorStatus;
END_IF;
(*-------- Main Routine --------*)
IF FBEN THEN
MSGObjRead_Q_RTRIG(MSGObjRead.Q);
IF MSGObjRead_Q_RTRIG.Q THEN
CIPErrorStatus := MSGObjRead.Status;
(*Output := ObjReadResData;*)
END_IF;
MSGObjRead_Err_RTRIG(MSGObjRead.Status.Error);
IF MSGObjRead_Err_RTRIG.Q THEN
MSGObjRead_EN := FALSE;
CIPErrorStatus := MSGObjRead.Status;
END_IF;
ELSE
MSGObjRead_EN := FALSE;
END_IF;
MSGObjRead(MSGObjRead_EN, ObjReadCtrlCfg, ObjReadAppCfg, ObjReadTargetCfg,, 0, Output);
END_FUNCTION_BLOCK]]></PouBody>
<PouUIProperties>
<Root Version="6">
<LanguageContainerStyle CommentTextColor="Green" CommentFont="Courier New, 10pt" PonctuationTextColor="Black" PonctuationFont="Courier New, 10pt" IdentifierTextColor="Black" IdentifierFont="Courier New, 10pt" OperatorTextColor="Black" OperatorFont="Courier New, 10pt" ReservedWordTextColor="Fuchsia" ReservedWordFont="Courier New, 10pt" PouTextColor="BlueViolet" PouFont="Courier New, 10pt" NumberTextColor="Firebrick" NumberFont="Courier New, 10pt" StringTextColor="Gray" StringFont="Courier New, 10pt" EditorTextAreaBackgroundColor="White" EditorFont="Courier New, 10pt" Index="0" />
</Root>
</PouUIProperties>
</Pou>

View File

@@ -68,4 +68,5 @@ END_IF;
MSGObjRead(MSGObjRead_EN, ObjReadCtrlCfg, ObjReadAppCfg, ObjReadTargetCfg,, 0, Output);
END_FUNCTION_BLOCK

View File

@@ -1,112 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Pou FileVersion="200.00.003" Name="ReadE300IO" ElementGuid="66ab470c-ca22-4d58-b550-ad6bec6607f2" Comment="" SingleTextLine="" Language="ST" CustomFbd="0" Localization="Prj" GroupName="(User defined)" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="true" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="" InitInstance="false" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="FBEN" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IPAddress" DataType="STRING" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="80" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="UpdateRate_ms" DataType="UINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="ChannelNumber" DataType="UDINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="FBENO" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="CIPErrorStatus" DataType="CIPSTATUS" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="IOStatus" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="MSGObjRead" DataType="MSG_CIPGENERIC" InitialValue=",,,,,,,2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGObjRead_EN" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ObjReadCtrlCfg" DataType="CIPCONTROLCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ObjReadAppCfg" DataType="CIPAPPCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ObjReadTargetCfg" DataType="CIPTARGETCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ObjReadResData" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0">
<Dimension Lower="0" Upper="3" />
</Variable>
<Variable Name="FBEN_RTRIG" DataType="R_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGObjRead_Q_RTRIG" DataType="R_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGObjRead_Err_RTRIG" DataType="R_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="NoErrorStatus" DataType="CIPSTATUS" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="INT_COP" DataType="COP" InitialValue=",,,,2(),,2(0),2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="REAL_COP" DataType="COP" InitialValue=",,,,2(),,2(0),2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="Phase_COP" DataType="COP" InitialValue=",,,,2(),,2(0),2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ZeroedAttributes" DataType="CIPEEOBJ_ATTRIBS" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="i" DataType="DINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="FBEN_FTRIG" DataType="F_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody><![CDATA[FUNCTION_BLOCK ReadE300IO
(*=====================================================================================================================================
[UDFB Name] :ReadE300IO
[Category] :Communication
[Description] :Read the CIP Discrete Input Status from a compatible device using Explicit Messaging
[Author] :Rockwell Automation
[Created using CCW version] :8.0
[FeedBack] :pmcdonagh@henry-pump.com
[Revison History] :2015-October
[Notes] :
=====================================================================================================================================*)
MSGObjRead_EN := Enable;
FBENO := FBEN;
(*-------- Initialize --------*)
FBEN_RTRIG(FBEN);
IF (__SYSVA_FIRST_SCAN OR FBEN_RTRIG.Q) THEN
MSGObjRead_EN := TRUE;
IF UpdateRate_ms < 1000 THEN
ObjReadCtrlCfg.TriggerType := 1000; (*Triggers message every 1000 ms while MSGObjRead_EN is true*)
ELSE
ObjReadCtrlCfg.TriggerType := ANY_TO_UDINT(UpdateRate_ms);
END_IF;
ObjReadTargetCfg.Path := '4,'+ IPAddress;
ObjReadTargetCfg.CipConnMode := 1; (*0-unconnected, 1-Class 3*)
ObjReadTargetCfg.UcmmTimeout := 250; (*Unconnected message time out, Set to 0 means 3000ms, range 250-10000*)
ObjReadTargetCfg.ConnMsgTimeout := 800; (*Class3 time out, Set to 0 means 3000ms, range 800-10000*)
ObjReadTargetCfg.ConnClose := FALSE;(*Don't close the connection upon message completion*)
ObjReadAppCfg.Service := 14; (*Service code 0eh for Get Attributes All*)
ObjReadAppCfg.Class := 8; (*Class code 0x0008h for Discrete Input Point Object*)
ObjReadAppCfg.Instance := 1 + ANY_TO_UDINT(ChannelNumber); (*Instance 1*)
ObjReadAppCfg.Attribute := 3; (*Attribute 3: Value*)
ObjReadAppCfg.MemberCnt := 1;
CIPErrorStatus := NoErrorStatus;
END_IF;
FBEN_FTRIG(FBEN);
IF FBEN_FTRIG.Q THEN
CIPErrorStatus := NoErrorStatus;
END_IF;
(*-------- Main Routine --------*)
IF FBEN THEN
MSGObjRead_Q_RTRIG(MSGObjRead.Q);
IF MSGObjRead_Q_RTRIG.Q THEN
CIPErrorStatus := MSGObjRead.Status;
IF ObjReadResData[0] = 0 THEN
IOStatus := FALSE;
ELSE
IOStatus:= TRUE;
END_IF;
END_IF;
MSGObjRead_Err_RTRIG(MSGObjRead.Status.Error);
IF MSGObjRead_Err_RTRIG.Q THEN
MSGObjRead_EN := FALSE;
CIPErrorStatus := MSGObjRead.Status;
END_IF;
ELSE
MSGObjRead_EN := FALSE;
END_IF;
MSGObjRead(MSGObjRead_EN, ObjReadCtrlCfg, ObjReadAppCfg, ObjReadTargetCfg,, 1, ObjReadResData);
END_FUNCTION_BLOCK]]></PouBody>
<PouUIProperties>
<Root Version="6">
<LanguageContainerStyle CommentTextColor="Green" CommentFont="Courier New, 10pt" PonctuationTextColor="Black" PonctuationFont="Courier New, 10pt" IdentifierTextColor="Black" IdentifierFont="Courier New, 10pt" OperatorTextColor="Black" OperatorFont="Courier New, 10pt" ReservedWordTextColor="Fuchsia" ReservedWordFont="Courier New, 10pt" PouTextColor="BlueViolet" PouFont="Courier New, 10pt" NumberTextColor="Firebrick" NumberFont="Courier New, 10pt" StringTextColor="Gray" StringFont="Courier New, 10pt" EditorTextAreaBackgroundColor="White" EditorFont="Courier New, 10pt" Index="0" />
</Root>
</PouUIProperties>
</Pou>

View File

@@ -72,4 +72,5 @@ END_IF;
MSGObjRead(MSGObjRead_EN, ObjReadCtrlCfg, ObjReadAppCfg, ObjReadTargetCfg,, 1, ObjReadResData);
END_FUNCTION_BLOCK

View File

@@ -1,72 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Pou FileVersion="200.00.002" Name="ReadE300Int" ElementGuid="a947e50d-0b16-4c37-a8a0-99bc20c8abc3" Comment="" SingleTextLine="" Language="LD" CustomFbd="0" Localization="Prj" GroupName="(User defined)" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="true" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="" InitInstance="false" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="ParameterNumber" DataType="UDINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="DataSize" DataType="UINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="ParameterValue" DataType="UDINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="MSG_E300" DataType="MSG_CIPGENERIC" InitialValue=",,,,,,,2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="COP_E300" DataType="COP" InitialValue=",,,,2(),,2(0),2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSG_E300_CtrlCfg" DataType="CIPCONTROLCFG" InitialValue=",5000" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSG_E300_AppCfg" DataType="CIPAPPCFG" InitialValue="14,15,53,1,1" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSG_E300_TargetCfg" DataType="CIPTARGETCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSG_E300_ReqData" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0">
<Dimension Lower="1" Upper="4" />
</Variable>
<Variable Name="MSG_E300_ResData" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0">
<Dimension Lower="1" Upper="4" />
</Variable>
<Variable Name="MSG_E300_Status" DataType="CIPSTATUS" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSG_E300_ReqLength" DataType="UINT" InitialValue="1" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="COP_E300_Length" DataType="UINT" InitialValue="4" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="E300_RawValue" DataType="UINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0">
<Dimension Lower="1" Upper="4" />
</Variable>
<Variable Name="E300_RealValue" DataType="REAL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody><![CDATA[FUNCTION_BLOCK ReadE300Int
#info= QLD
BOF
(**)
SOR [0,1] (**) (**) FB [1,0] (*1 gain*) (*1*) ( (*EN:EN*)(**) (**) , (*i1:*)(*ParameterNumber*) (**) ; (*ENO:ENO*)(**) (**) , (*o1:*)(*MSG_E300_AppCfg.Instance*) (**) ) FB [4,0] (*MSG_CIPGENERIC*) (*MSG_E300*) ( (*IN:IN*)(**) (**) , (*CtrlCfg:*)(*MSG_E300_CtrlCfg*) (**) , (*AppCfg:*)(*MSG_E300_AppCfg*) (**) , (*TargetCfg:*)(*MSG_E300_TargetCfg*) (**) , (*ReqData:*)(*MSG_E300_ReqData*) (**) , (*ReqLength:*)(*MSG_E300_ReqLength*) (**) , (*ResData:*)(*MSG_E300_ResData*) (**) , (*__ADI_ReqData:_ADI*)(*0*) (**) , (*__ADI_ResData:_ADI*)(*0*) (**) ; (*Q:Q*)(**) (**) , (*Status:*)(*MSG_E300_Status*) (**) , (*ResLength:*)(**) (**) ) FB [7,0] (*COP*) (*COP_E300*) ( (*Enable:ENAB*)(**) (**) , (*Src:SRC*)(*MSG_E300_ResData*) (**) , (*SrcOffset:SOFF*)(*0*) (**) , (*Dest:DEST*)(*E300_RawValue*) (**) , (*DestOffset:DOFF*)(*0*) (**) , (*Length:LEN*)(*DataSize*) (**) , (*Swap:SWAP*)(*true*) (**) , (*__ADI_Src:_ADI*)(*0*) (**) , (*__ADI_Dest:_ADI*)(*0*) (**) , (*__DTI_Src:_DTI*)(*0*) (**) , (*__DTI_Dest:_DTI*)(*0*) (**) ; (*ENO:ENO*)(**) (**) , (*Sts:Sts*)(**) (**) ) FB [10,0] (*ANY_TO_UDINT*) (*3*) ( (*EN:EN*)(**) (**) , (*i1:*)(*E300_RawValue[1]*) (**) ; (*ENO:ENO*)(**) (**) , (*o1:*)(*ParameterValue*) (**) )
EOR [13,0]
EOF
#end_info
#info= ID_MAX
NextId=3
#end_info
END_FUNCTION_BLOCK]]></PouBody>
<PouUIProperties>
<Root Version="6">
<LanguageContainerStyle DisplayGrid="false" FunctionBlockInstanceName="true" VariableDisplayMode="NameAndAlias" VariableAlpha="255" VariableTextColor="windowtext" VariableOnlineTextColor="Red" VariableBackgroundColor="White" VariableGradientColor="White" Font="Microsoft Sans Serif, 8pt" CellWidth="30" CellHeight="25" NbCellsShapeWidth="4" NbCellsShapeHeight="2" CoilAllAligned="true" RungColor="WhiteSmoke" LabelColor="LightGoldenrodYellow" CommentColor="White" TextCommentColor="Green" PowerRailColor="Silver" DisplayBlockImage="true" DisplayComment="true" PenWidth="2" DisplayLabel="false" OperatorBlockBackgroundColor="buttonface" OperatorBlockGradientColor="buttonface" FunctionBackgroundColor="Ivory" FunctionGradientColor="Ivory" FunctionBlockBackgroundColor="Silver" FunctionBlockGradientColor="Silver" Index="0">
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLdRungShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" PowerRailColor="Silver" DisplayLabel="false" RungColor="WhiteSmoke" CommentColor="White" LabelColor="LightGoldenrodYellow" DisplayComment="true" Key="[0,1]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.Core.Shape.WbPouCallShape" Assembly="ISaGRAF.Workbench.Mlge.Core" FunctionBlockInstanceName="true" Alpha="255" Background="buttonface" BackgroundGradient="buttonface" Key="[0,1],[1,1]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[1,1],[1,2],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[1,1],[3,2],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.Core.Shape.WbPouCallShape" Assembly="ISaGRAF.Workbench.Mlge.Core" FunctionBlockInstanceName="true" Alpha="255" Background="buttonface" BackgroundGradient="buttonface" Key="[0,1],[10,1]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[10,1],[10,2],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[10,1],[12,2],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.Core.Shape.WbPouCallShape" Assembly="ISaGRAF.Workbench.Mlge.Core" FunctionBlockInstanceName="true" Alpha="255" Background="Silver" BackgroundGradient="Silver" Key="[0,1],[4,1]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[4,1],[4,2],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[4,1],[4,3],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[4,1],[4,4],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[4,1],[4,5],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[4,1],[4,6],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[4,1],[4,7],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[4,1],[6,2],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[4,1],[6,3],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.Core.Shape.WbPouCallShape" Assembly="ISaGRAF.Workbench.Mlge.Core" FunctionBlockInstanceName="true" Alpha="255" Background="Silver" BackgroundGradient="Silver" Key="[0,1],[7,1]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[7,1],[7,2],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[7,1],[7,3],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[7,1],[7,4],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[7,1],[7,5],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[7,1],[7,6],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[7,1],[7,7],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[7,1],[9,2],[0,0]" />
</LanguageContainerStyle>
</Root>
</PouUIProperties>
</Pou>

View File

@@ -1,102 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Pou FileVersion="200.00.003" Name="ReadE300Param" ElementGuid="86ee3690-5d3b-4fec-8211-303ca4851648" Comment="" SingleTextLine="" Language="ST" CustomFbd="0" Localization="Prj" GroupName="(User defined)" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="true" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="" InitInstance="false" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="FBEN" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IPAddress" DataType="STRING" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="80" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="UpdateRate_ms" DataType="UINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="ParamNumber" DataType="UDINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="FBENO" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="CIPErrorStatus" DataType="CIPSTATUS" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Output" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0">
<Dimension Lower="1" Upper="4" />
</Variable>
<Variable Name="MSGObjRead" DataType="MSG_CIPGENERIC" InitialValue=",,,,,,,2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGObjRead_EN" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ObjReadCtrlCfg" DataType="CIPCONTROLCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ObjReadAppCfg" DataType="CIPAPPCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ObjReadTargetCfg" DataType="CIPTARGETCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="FBEN_RTRIG" DataType="R_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGObjRead_Q_RTRIG" DataType="R_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGObjRead_Err_RTRIG" DataType="R_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="NoErrorStatus" DataType="CIPSTATUS" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="INT_COP" DataType="COP" InitialValue=",,,,2(),,2(0),2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="REAL_COP" DataType="COP" InitialValue=",,,,2(),,2(0),2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="Phase_COP" DataType="COP" InitialValue=",,,,2(),,2(0),2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="i" DataType="DINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="FBEN_FTRIG" DataType="F_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody><![CDATA[FUNCTION_BLOCK ReadE300Param
(*=====================================================================================================================================
[UDFB Name] :ReadE300Param
[Category] :Communication
[Description] :Read a CIP Parameter from a compatible device using Explicit Messaging
[Author] :Patrick McDonagh - Henry Pump
[Created using CCW version] :8.0
[FeedBack] :pmcdonagh@henry-pump.com
[Revison History] :2015-November
[Notes] :
=====================================================================================================================================*)
MSGObjRead_EN := Enable;
FBENO := FBEN;
(*-------- Initialize --------*)
FBEN_RTRIG(FBEN);
IF (__SYSVA_FIRST_SCAN OR FBEN_RTRIG.Q) THEN
MSGObjRead_EN := TRUE;
IF UpdateRate_ms < 1000 THEN
ObjReadCtrlCfg.TriggerType := 1000; (*Triggers message every 1000 ms while MSGObjRead_EN is true*)
ELSE
ObjReadCtrlCfg.TriggerType := ANY_TO_UDINT(UpdateRate_ms);
END_IF;
ObjReadTargetCfg.Path := '4,'+ IPAddress;
ObjReadTargetCfg.CipConnMode := 1; (* 0-unconnected, 1-Class 3 *)
ObjReadTargetCfg.UcmmTimeout := 250; (* Unconnected message time out, Set to 0 means 3000ms, range 250-10000 *)
ObjReadTargetCfg.ConnMsgTimeout := 800; (* Class3 time out, Set to 0 means 3000ms, range 800-10000 *)
ObjReadTargetCfg.ConnClose := FALSE; (* Don't close the connection upon message completion *)
ObjReadAppCfg.Service := 14; (* Service code 0eh for Get Attribute Single *)
ObjReadAppCfg.Class := 15; (* Class code 0x000Fh for Parameter Object *)
ObjReadAppCfg.Instance := ParamNumber; (* Instance: Param Number *)
ObjReadAppCfg.Attribute := 1; (* Attribute 12: Value *)
ObjReadAppCfg.MemberCnt := 0; (* MemberCnt: 0 *)
CIPErrorStatus := NoErrorStatus;
END_IF;
FBEN_FTRIG(FBEN);
IF FBEN_FTRIG.Q THEN
CIPErrorStatus := NoErrorStatus;
END_IF;
(*-------- Main Routine --------*)
IF FBEN THEN
MSGObjRead_Q_RTRIG(MSGObjRead.Q);
IF MSGObjRead_Q_RTRIG.Q THEN
CIPErrorStatus := MSGObjRead.Status;
(*Output := ObjReadResData;*)
END_IF;
MSGObjRead_Err_RTRIG(MSGObjRead.Status.Error);
IF MSGObjRead_Err_RTRIG.Q THEN
MSGObjRead_EN := FALSE;
CIPErrorStatus := MSGObjRead.Status;
END_IF;
ELSE
MSGObjRead_EN := FALSE;
END_IF;
MSGObjRead(MSGObjRead_EN, ObjReadCtrlCfg, ObjReadAppCfg, ObjReadTargetCfg,, 0, Output);
END_FUNCTION_BLOCK]]></PouBody>
<PouUIProperties>
<Root Version="6">
<LanguageContainerStyle CommentTextColor="Green" CommentFont="Courier New, 10pt" PonctuationTextColor="Black" PonctuationFont="Courier New, 10pt" IdentifierTextColor="Black" IdentifierFont="Courier New, 10pt" OperatorTextColor="Black" OperatorFont="Courier New, 10pt" ReservedWordTextColor="Fuchsia" ReservedWordFont="Courier New, 10pt" PouTextColor="BlueViolet" PouFont="Courier New, 10pt" NumberTextColor="Firebrick" NumberFont="Courier New, 10pt" StringTextColor="Gray" StringFont="Courier New, 10pt" EditorTextAreaBackgroundColor="White" EditorFont="Courier New, 10pt" Index="0" />
</Root>
</PouUIProperties>
</Pou>

View File

@@ -64,4 +64,5 @@ END_IF;
MSGObjRead(MSGObjRead_EN, ObjReadCtrlCfg, ObjReadAppCfg, ObjReadTargetCfg,, 0, Output);
END_FUNCTION_BLOCK

View File

@@ -1,77 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Pou FileVersion="200.00.002" Name="ReadE300Real" ElementGuid="dde55c29-480c-45b2-a244-049ba1da95f7" Comment="" SingleTextLine="" Language="LD" CustomFbd="0" Localization="Prj" GroupName="(User defined)" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="true" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="" InitInstance="false" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="ParameterNumber" DataType="UDINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="DataSize" DataType="UINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="ScaleFactor" DataType="REAL" InitialValue="10.0" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="ParameterValue" DataType="REAL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="MSG_E300" DataType="MSG_CIPGENERIC" InitialValue=",,,,,,,2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="COP_E300" DataType="COP" InitialValue=",,,,2(),,2(0),2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSG_E300_CtrlCfg" DataType="CIPCONTROLCFG" InitialValue=",5000" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSG_E300_AppCfg" DataType="CIPAPPCFG" InitialValue="14,15,53,1,1" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSG_E300_TargetCfg" DataType="CIPTARGETCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSG_E300_ReqData" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0">
<Dimension Lower="1" Upper="4" />
</Variable>
<Variable Name="MSG_E300_ResData" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0">
<Dimension Lower="1" Upper="4" />
</Variable>
<Variable Name="MSG_E300_Status" DataType="CIPSTATUS" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSG_E300_ReqLength" DataType="UINT" InitialValue="1" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="COP_E300_Length" DataType="UINT" InitialValue="4" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="E300_RawValue" DataType="UINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0">
<Dimension Lower="1" Upper="4" />
</Variable>
<Variable Name="E300_RealValue" DataType="REAL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody><![CDATA[FUNCTION_BLOCK ReadE300Real
#info= QLD
BOF
(**)
SOR [0,1] (**) (**) FB [1,0] (*1 gain*) (*1*) ( (*EN:EN*)(**) (**) , (*i1:*)(*ParameterNumber*) (**) ; (*ENO:ENO*)(**) (**) , (*o1:*)(*MSG_E300_AppCfg.Instance*) (**) ) FB [4,0] (*MSG_CIPGENERIC*) (*MSG_E300*) ( (*IN:IN*)(**) (**) , (*CtrlCfg:*)(*MSG_E300_CtrlCfg*) (**) , (*AppCfg:*)(*MSG_E300_AppCfg*) (**) , (*TargetCfg:*)(*MSG_E300_TargetCfg*) (**) , (*ReqData:*)(*MSG_E300_ReqData*) (**) , (*ReqLength:*)(*MSG_E300_ReqLength*) (**) , (*ResData:*)(*MSG_E300_ResData*) (**) , (*__ADI_ReqData:_ADI*)(*0*) (**) , (*__ADI_ResData:_ADI*)(*0*) (**) ; (*Q:Q*)(**) (**) , (*Status:*)(*MSG_E300_Status*) (**) , (*ResLength:*)(**) (**) ) FB [7,0] (*COP*) (*COP_E300*) ( (*Enable:ENAB*)(**) (**) , (*Src:SRC*)(*MSG_E300_ResData*) (**) , (*SrcOffset:SOFF*)(*0*) (**) , (*Dest:DEST*)(*E300_RawValue*) (**) , (*DestOffset:DOFF*)(*0*) (**) , (*Length:LEN*)(*DataSize*) (**) , (*Swap:SWAP*)(*true*) (**) , (*__ADI_Src:_ADI*)(*0*) (**) , (*__ADI_Dest:_ADI*)(*0*) (**) , (*__DTI_Src:_DTI*)(*0*) (**) , (*__DTI_Dest:_DTI*)(*0*) (**) ; (*ENO:ENO*)(**) (**) , (*Sts:Sts*)(**) (**) ) FB [10,0] (*ANY_TO_REAL*) (*4*) ( (*EN:EN*)(**) (**) , (*i1:*)(*E300_RawValue[1]*) (**) ; (*ENO:ENO*)(**) (**) , (*o1:*)(*E300_RealValue*) (**) ) FB [13,0] (*/*) (*3*) ( (*EN:EN*)(**) (**) , (*i1:*)(*E300_RealValue*) (**) , (*i2:*)(*ScaleFactor*) (**) ; (*ENO:ENO*)(**) (**) , (*o1:*)(*ParameterValue*) (**) )
EOR [16,0]
EOF
#end_info
#info= ID_MAX
NextId=1
#end_info
END_FUNCTION_BLOCK]]></PouBody>
<PouUIProperties>
<Root Version="6">
<LanguageContainerStyle DisplayGrid="false" FunctionBlockInstanceName="true" VariableDisplayMode="NameAndAlias" VariableAlpha="255" VariableTextColor="windowtext" VariableOnlineTextColor="Red" VariableBackgroundColor="White" VariableGradientColor="White" Font="Microsoft Sans Serif, 8pt" CellWidth="30" CellHeight="25" NbCellsShapeWidth="4" NbCellsShapeHeight="2" CoilAllAligned="true" RungColor="WhiteSmoke" LabelColor="LightGoldenrodYellow" CommentColor="White" TextCommentColor="Green" PowerRailColor="Silver" DisplayBlockImage="true" DisplayComment="true" PenWidth="2" DisplayLabel="false" OperatorBlockBackgroundColor="buttonface" OperatorBlockGradientColor="buttonface" FunctionBackgroundColor="Ivory" FunctionGradientColor="Ivory" FunctionBlockBackgroundColor="Silver" FunctionBlockGradientColor="Silver" Index="0">
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLdRungShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" PowerRailColor="Silver" DisplayLabel="false" RungColor="WhiteSmoke" CommentColor="White" LabelColor="LightGoldenrodYellow" DisplayComment="true" Key="[0,1]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.Core.Shape.WbPouCallShape" Assembly="ISaGRAF.Workbench.Mlge.Core" FunctionBlockInstanceName="true" Alpha="255" Background="buttonface" BackgroundGradient="buttonface" Key="[0,1],[1,1]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[1,1],[1,2],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[1,1],[3,2],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.Core.Shape.WbPouCallShape" Assembly="ISaGRAF.Workbench.Mlge.Core" FunctionBlockInstanceName="true" Key="[0,1],[10,1]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[10,1],[10,2],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[10,1],[12,2],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.Core.Shape.WbPouCallShape" Assembly="ISaGRAF.Workbench.Mlge.Core" FunctionBlockInstanceName="true" Key="[0,1],[13,1]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[13,1],[13,2],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[13,1],[13,3],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[13,1],[15,2],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.Core.Shape.WbPouCallShape" Assembly="ISaGRAF.Workbench.Mlge.Core" FunctionBlockInstanceName="true" Alpha="255" Background="Silver" BackgroundGradient="Silver" Key="[0,1],[4,1]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[4,1],[4,2],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[4,1],[4,3],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[4,1],[4,4],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[4,1],[4,5],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[4,1],[4,6],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[4,1],[4,7],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[4,1],[6,2],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[4,1],[6,3],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.Core.Shape.WbPouCallShape" Assembly="ISaGRAF.Workbench.Mlge.Core" FunctionBlockInstanceName="true" Alpha="255" Background="Silver" BackgroundGradient="Silver" Key="[0,1],[7,1]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[7,1],[7,2],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[7,1],[7,3],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[7,1],[7,4],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[7,1],[7,5],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[7,1],[7,6],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[7,1],[7,7],[0,0]" />
<ShapeStyle Type="ISaGRAF.Workbench.Mlge.LanguageContainer.LD.Shape.WbLDVariableAccessShape" Assembly="ISaGRAF.Workbench.Mlge.LanguageContainer.LD" Alpha="255" Background="#FFFFFFFF" BackgroundGradient="#FFFFFFFF" FontColor="windowtext" DisplayMode="NameAndAlias" Key="[0,1],[7,1],[9,2],[0,0]" />
</LanguageContainerStyle>
</Root>
</PouUIProperties>
</Pou>

View File

@@ -1,101 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Pou FileVersion="200.00.003" Name="ReadE300TripReset" ElementGuid="245847ea-46f8-4fa3-8466-22d4537c288e" Comment="" SingleTextLine="" Language="ST" CustomFbd="0" Localization="Prj" GroupName="(User defined)" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="true" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="" InitInstance="false" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="FBEN" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="IPAddress" DataType="STRING" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="80" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="UpdateRate_ms" DataType="UINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="Enable" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="FBENO" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="CIPErrorStatus" DataType="CIPSTATUS" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="Output" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0">
<Dimension Lower="1" Upper="1" />
</Variable>
<Variable Name="MSGObjRead" DataType="MSG_CIPGENERIC" InitialValue=",,,,,,,2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGObjRead_EN" DataType="BOOL" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ObjReadCtrlCfg" DataType="CIPCONTROLCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ObjReadAppCfg" DataType="CIPAPPCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="ObjReadTargetCfg" DataType="CIPTARGETCFG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="FBEN_RTRIG" DataType="R_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGObjRead_Q_RTRIG" DataType="R_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="MSGObjRead_Err_RTRIG" DataType="R_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="NoErrorStatus" DataType="CIPSTATUS" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="INT_COP" DataType="COP" InitialValue=",,,,2(),,2(0),2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="REAL_COP" DataType="COP" InitialValue=",,,,2(),,2(0),2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="Phase_COP" DataType="COP" InitialValue=",,,,2(),,2(0),2(0)" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="i" DataType="DINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
<Variable Name="FBEN_FTRIG" DataType="F_TRIG" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" Direction="Local" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody><![CDATA[FUNCTION_BLOCK ReadE300TripReset
(*=====================================================================================================================================
[UDFB Name] :ReadE300TripReset
[Category] :Communication
[Description] :Read the CIP Discrete Input Status from a compatible device using Explicit Messaging
[Author] :Rockwell Automation
[Created using CCW version] :8.0
[FeedBack] :pmcdonagh@henry-pump.com
[Revison History] :2015-November
[Notes] :
=====================================================================================================================================*)
MSGObjRead_EN := Enable;
FBENO := FBEN;
(*-------- Initialize --------*)
FBEN_RTRIG(FBEN);
IF (__SYSVA_FIRST_SCAN OR FBEN_RTRIG.Q) THEN
MSGObjRead_EN := TRUE;
IF UpdateRate_ms < 1000 THEN
ObjReadCtrlCfg.TriggerType := 1000; (*Triggers message every 1000 ms while MSGObjRead_EN is true*)
ELSE
ObjReadCtrlCfg.TriggerType := ANY_TO_UDINT(UpdateRate_ms);
END_IF;
ObjReadTargetCfg.Path := '4,'+ IPAddress;
ObjReadTargetCfg.CipConnMode := 1; (* 0-unconnected, 1-Class 3 *)
ObjReadTargetCfg.UcmmTimeout := 250; (* Unconnected message time out, Set to 0 means 3000ms, range 250-10000 *)
ObjReadTargetCfg.ConnMsgTimeout := 800; (* Class3 time out, Set to 0 means 3000ms, range 800-10000 *)
ObjReadTargetCfg.ConnClose := FALSE; (* Don't close the connection upon message completion *)
ObjReadAppCfg.Service := 14; (* Service code 0eh for Get Attribute Single *)
ObjReadAppCfg.Class := 41; (* Class code 0x0029h for Control Supervisor Object *)
ObjReadAppCfg.Instance := 1; (* Instance 1 *)
ObjReadAppCfg.Attribute := 12; (* Attribute 12: Trip Reset *)
ObjReadAppCfg.MemberCnt := 0; (* MemberCnt: 0 *)
CIPErrorStatus := NoErrorStatus;
END_IF;
FBEN_FTRIG(FBEN);
IF FBEN_FTRIG.Q THEN
CIPErrorStatus := NoErrorStatus;
END_IF;
(*-------- Main Routine --------*)
IF FBEN THEN
MSGObjRead_Q_RTRIG(MSGObjRead.Q);
IF MSGObjRead_Q_RTRIG.Q THEN
CIPErrorStatus := MSGObjRead.Status;
(*Output := ObjReadResData;*)
END_IF;
MSGObjRead_Err_RTRIG(MSGObjRead.Status.Error);
IF MSGObjRead_Err_RTRIG.Q THEN
MSGObjRead_EN := FALSE;
CIPErrorStatus := MSGObjRead.Status;
END_IF;
ELSE
MSGObjRead_EN := FALSE;
END_IF;
MSGObjRead(MSGObjRead_EN, ObjReadCtrlCfg, ObjReadAppCfg, ObjReadTargetCfg,, 0, Output);
END_FUNCTION_BLOCK]]></PouBody>
<PouUIProperties>
<Root Version="6">
<LanguageContainerStyle CommentTextColor="Green" CommentFont="Courier New, 10pt" PonctuationTextColor="Black" PonctuationFont="Courier New, 10pt" IdentifierTextColor="Black" IdentifierFont="Courier New, 10pt" OperatorTextColor="Black" OperatorFont="Courier New, 10pt" ReservedWordTextColor="Fuchsia" ReservedWordFont="Courier New, 10pt" PouTextColor="BlueViolet" PouFont="Courier New, 10pt" NumberTextColor="Firebrick" NumberFont="Courier New, 10pt" StringTextColor="Gray" StringFont="Courier New, 10pt" EditorTextAreaBackgroundColor="White" EditorFont="Courier New, 10pt" Index="0" />
</Root>
</PouUIProperties>
</Pou>

View File

@@ -64,4 +64,5 @@ END_IF;
MSGObjRead(MSGObjRead_EN, ObjReadCtrlCfg, ObjReadAppCfg, ObjReadTargetCfg,, 0, Output);
END_FUNCTION_BLOCK

View File

@@ -1,24 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Pou FileVersion="200.00.003" Name="SINT_TO_USINT" ElementGuid="2bf40e2e-2a29-4ced-9a16-faca4d58e08b" Comment="" SingleTextLine="" Language="ST" CustomFbd="0" Localization="Prj" GroupName="(User defined)" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="true" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="" InitInstance="false" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="INP_INT" DataType="SINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="OUT_SINT_1" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody><![CDATA[FUNCTION_BLOCK SINT_TO_USINT
OUT_SINT_1.0 := INP_INT.0;
OUT_SINT_1.1 := INP_INT.1;
OUT_SINT_1.2 := INP_INT.2;
OUT_SINT_1.3 := INP_INT.3;
OUT_SINT_1.4 := INP_INT.4;
OUT_SINT_1.5 := INP_INT.5;
OUT_SINT_1.6 := INP_INT.6;
OUT_SINT_1.7 := INP_INT.7;
END_FUNCTION_BLOCK]]></PouBody>
<PouUIProperties>
<Root Version="6">
<LanguageContainerStyle CommentTextColor="Green" CommentFont="Courier New, 10pt" PonctuationTextColor="Black" PonctuationFont="Courier New, 10pt" IdentifierTextColor="Black" IdentifierFont="Courier New, 10pt" OperatorTextColor="Black" OperatorFont="Courier New, 10pt" ReservedWordTextColor="Fuchsia" ReservedWordFont="Courier New, 10pt" PouTextColor="BlueViolet" PouFont="Courier New, 10pt" NumberTextColor="Firebrick" NumberFont="Courier New, 10pt" StringTextColor="Gray" StringFont="Courier New, 10pt" EditorTextAreaBackgroundColor="White" EditorFont="Courier New, 10pt" Index="0" />
</Root>
</PouUIProperties>
</Pou>

View File

@@ -8,4 +8,5 @@ OUT_SINT_1.5 := INP_INT.5;
OUT_SINT_1.6 := INP_INT.6;
OUT_SINT_1.7 := INP_INT.7;
END_FUNCTION_BLOCK

View File

@@ -1,53 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Pou FileVersion="200.00.003" Name="UDINT_TO_USINT" ElementGuid="52ba0534-a6d0-43c9-b396-eb29683ea65b" Comment="" SingleTextLine="" Language="ST" CustomFbd="0" Localization="Prj" GroupName="(User defined)" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="true" Is1499="false">
<FunctionBlock IdentifierNb="0" Keyword="" InitInstance="false" SymbMonExtraBytes="128" />
<LocalVars>
<Variable Name="INP_DINT" DataType="UDINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarInput" Alias="" AccessRights="Read" StringSize="0" Direction="Input" CommentFields="" Attributes="0" />
<Variable Name="OUT_SINT_1" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="OUT_SINT_2" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="OUT_SINT_3" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
<Variable Name="OUT_SINT_4" DataType="USINT" InitialValue="" Comment="" Address="" Modifier="Constant" Kind="VarOutput" Alias="" AccessRights="Write" StringSize="0" Direction="Output" CommentFields="" Attributes="0" />
</LocalVars>
<PouBody><![CDATA[FUNCTION_BLOCK UDINT_TO_USINT
OUT_SINT_1.0 := INP_DINT.0;
OUT_SINT_1.1 := INP_DINT.1;
OUT_SINT_1.2 := INP_DINT.2;
OUT_SINT_1.3 := INP_DINT.3;
OUT_SINT_1.4 := INP_DINT.4;
OUT_SINT_1.5 := INP_DINT.5;
OUT_SINT_1.6 := INP_DINT.6;
OUT_SINT_1.7 := INP_DINT.7;
OUT_SINT_2.0 := INP_DINT.8;
OUT_SINT_2.1 := INP_DINT.9;
OUT_SINT_2.2 := INP_DINT.10;
OUT_SINT_2.3 := INP_DINT.11;
OUT_SINT_2.4 := INP_DINT.12;
OUT_SINT_2.5 := INP_DINT.13;
OUT_SINT_2.6 := INP_DINT.14;
OUT_SINT_2.7 := INP_DINT.15;
OUT_SINT_3.0 := INP_DINT.16;
OUT_SINT_3.1 := INP_DINT.17;
OUT_SINT_3.2 := INP_DINT.18;
OUT_SINT_3.3 := INP_DINT.19;
OUT_SINT_3.4 := INP_DINT.20;
OUT_SINT_3.5 := INP_DINT.21;
OUT_SINT_3.6 := INP_DINT.22;
OUT_SINT_3.7 := INP_DINT.23;
OUT_SINT_4.0 := INP_DINT.24;
OUT_SINT_4.1 := INP_DINT.25;
OUT_SINT_4.2 := INP_DINT.26;
OUT_SINT_4.3 := INP_DINT.27;
OUT_SINT_4.4 := INP_DINT.28;
OUT_SINT_4.5 := INP_DINT.29;
OUT_SINT_4.6 := INP_DINT.30;
OUT_SINT_4.7 := INP_DINT.31;
END_FUNCTION_BLOCK]]></PouBody>
<PouUIProperties>
<Root Version="6">
<LanguageContainerStyle CommentTextColor="Green" CommentFont="Courier New, 10pt" PonctuationTextColor="Black" PonctuationFont="Courier New, 10pt" IdentifierTextColor="Black" IdentifierFont="Courier New, 10pt" OperatorTextColor="Black" OperatorFont="Courier New, 10pt" ReservedWordTextColor="Fuchsia" ReservedWordFont="Courier New, 10pt" PouTextColor="BlueViolet" PouFont="Courier New, 10pt" NumberTextColor="Firebrick" NumberFont="Courier New, 10pt" StringTextColor="Gray" StringFont="Courier New, 10pt" EditorTextAreaBackgroundColor="White" EditorFont="Courier New, 10pt" Index="0" />
</Root>
</PouUIProperties>
</Pou>

View File

@@ -34,4 +34,5 @@ OUT_SINT_4.4 := INP_DINT.28;
OUT_SINT_4.5 := INP_DINT.29;
OUT_SINT_4.6 := INP_DINT.30;
OUT_SINT_4.7 := INP_DINT.31;
END_FUNCTION_BLOCK

Some files were not shown because too many files have changed in this diff Show More