Updates to allow multiple sensor types
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<AssemblyName>MyAssemblyName</AssemblyName>
|
||||
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
|
||||
<CAMProjectFile>Controller\PrjLibrary.mdb</CAMProjectFile>
|
||||
<CAMProjectVersion>5.50.3</CAMProjectVersion>
|
||||
<CAMProjectVersion>5.50.5</CAMProjectVersion>
|
||||
<UniqueProjectId>{e5639d1c-04ee-4d2b-abb0-95beea2e6eac}</UniqueProjectId>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Online' ">
|
||||
|
||||
1148
Controller/Controller/2080LC2020QBBI.target
Normal file
1148
Controller/Controller/2080LC2020QBBI.target
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,6 +0,0 @@
|
||||
0::0021-0003::Checking database...
|
||||
0::0047-0003::-------------------- Check project for resource(s) to pre-build: CONTROLLER --------------------
|
||||
1::0002-0003::CONTROLLER: 0 error(s), 0 warning(s)
|
||||
0::0021-0003::Checking database...
|
||||
0::0007-0003::-------------------- Build project: CONTROLLER --------------------
|
||||
1::0002-0003::CONTROLLER: 0 error(s), 0 warning(s)
|
||||
|
||||
346
Controller/Controller/Controller.isaxml
Normal file
346
Controller/Controller/Controller.isaxml
Normal file
@@ -0,0 +1,346 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project Name="Controller" ElementGuid="6aab2ae5-5472-4fc5-b871-866213537524" FileVersion="200.00.003" Comment="" SingleTextLine="template" DbVersion="05.50.05" 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="MODBUSLOCADDR" Comment="" Access="ReadOnly">
|
||||
<Array Order="6" DataType="WORD" StringSize="0">
|
||||
<Dimension Lower="1" Upper="125" />
|
||||
</Array>
|
||||
</DataType>
|
||||
<DataType Name="MODBUS2NODEADDR" Comment="" Access="ReadOnly">
|
||||
<Array Order="7" DataType="USINT" StringSize="0">
|
||||
<Dimension Lower="0" Upper="3" />
|
||||
</Array>
|
||||
</DataType>
|
||||
<DataType Name="IPADDR" Comment="" Access="ReadOnly">
|
||||
<Array Order="8" DataType="USINT" StringSize="0">
|
||||
<Dimension Lower="0" Upper="3" />
|
||||
</Array>
|
||||
</DataType>
|
||||
<DataType Name="CIPMEMBERID" Comment="" Access="ReadOnly">
|
||||
<Array Order="9" DataType="UINT" StringSize="0">
|
||||
<Dimension Lower="0" Upper="2" />
|
||||
</Array>
|
||||
</DataType>
|
||||
<DataType Name="ASCIILOCADDR" Comment="" Access="ReadOnly">
|
||||
<Array Order="10" DataType="BYTE" StringSize="0">
|
||||
<Dimension Lower="1" Upper="82" />
|
||||
</Array>
|
||||
</DataType>
|
||||
<DataType Name="IRQSTI" Comment="" Access="ReadOnly">
|
||||
<Struct FieldOrder="1" Order="27">
|
||||
<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="28">
|
||||
<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 "MonthOn" 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 "MonthOff" value)" StringSize="0" Order="8" />
|
||||
</Struct>
|
||||
</DataType>
|
||||
<DataType Name="AWAAWT" Comment="" Access="ReadOnly">
|
||||
<Struct FieldOrder="1" Order="29">
|
||||
<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="30">
|
||||
<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="31">
|
||||
<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="32">
|
||||
<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="33">
|
||||
<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="34">
|
||||
<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="35">
|
||||
<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="CIPCONTROLCFG" Comment="" Access="ReadOnly">
|
||||
<Struct FieldOrder="1" Order="36">
|
||||
<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="CIPTARGETCFG" Comment="" Access="ReadOnly">
|
||||
<Struct FieldOrder="1" Order="37">
|
||||
<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="CIPAPPCFG" Comment="" Access="ReadOnly">
|
||||
<Struct FieldOrder="1" Order="38">
|
||||
<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="CIPSYMBOLICCFG" Comment="" Access="ReadOnly">
|
||||
<Struct FieldOrder="1" Order="39">
|
||||
<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="CIPSTATUS" Comment="" Access="ReadOnly">
|
||||
<Struct FieldOrder="1" Order="40">
|
||||
<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="ABLACB" Comment="" Access="ReadOnly">
|
||||
<Struct FieldOrder="1" Order="41">
|
||||
<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="42">
|
||||
<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="43">
|
||||
<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="44">
|
||||
<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="TOWDATA" Comment="" Access="ReadOnly">
|
||||
<Struct FieldOrder="1" Order="45">
|
||||
<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="MMCATNUM" Comment="" Access="ReadOnly">
|
||||
<Struct FieldOrder="1" Order="46">
|
||||
<Variable Name="CatalogStr" DataType="STRING" Comment="" StringSize="16" Order="1" />
|
||||
</Struct>
|
||||
</DataType>
|
||||
<DataType Name="RTC" Comment="" Access="ReadOnly">
|
||||
<Struct FieldOrder="1" Order="47">
|
||||
<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="48">
|
||||
<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="SYSINFO" Comment="" Access="ReadOnly">
|
||||
<Struct FieldOrder="1" Order="49">
|
||||
<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="50">
|
||||
<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>
|
||||
<DataType Name="SOCKADDR_CFG" Comment="" Access="ReadOnly">
|
||||
<Struct FieldOrder="1" Order="51">
|
||||
<Variable Name="Port" DataType="UINT" Comment="TCP or UDP Port Number" StringSize="0" Order="1" />
|
||||
<Variable Name="IPAddress" DataType="IPADDR" Comment="IP Address e.g specify 192.168.1.100, [0] = 192, [1] = 168, [2] = 1, [3] = 100" StringSize="0" Order="2" />
|
||||
</Struct>
|
||||
</DataType>
|
||||
<DataType Name="SOCK_STATUS" Comment="" Access="ReadOnly">
|
||||
<Struct FieldOrder="1" Order="52">
|
||||
<Variable Name="ErrorID" DataType="USINT" Comment="Error Code" StringSize="0" Order="1" />
|
||||
<Variable Name="SubErrorID" DataType="UINT" Comment="Sub Error code" StringSize="0" Order="2" />
|
||||
<Variable Name="StatusBits" DataType="UINT" Comment="Socket FBs Execution Status" 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="""" Access="UserDefined" SingleTextLine="" LocalNet="false" DistributedNet="true" />
|
||||
</ConnectionParameters>
|
||||
<ResourceParameters />
|
||||
<VariableParameters />
|
||||
</Network>
|
||||
</Networks>
|
||||
<NetworkInstances>
|
||||
<NetworkInstance NetworkName="CIPNetwork" Name="CIPNetwork1" />
|
||||
</NetworkInstances>
|
||||
<Targets>
|
||||
<Target Name="2080LC2020QBBI" />
|
||||
</Targets>
|
||||
<Configurations>
|
||||
<Configuration Name="Micro820" ElementGuid="d10d253c-1f0d-48ef-a928-2e8d2b2af695" />
|
||||
</Configurations>
|
||||
</Project>
|
||||
@@ -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>SHOPPC!AB_ETHIP-1\192.168.1.81</Micro800ConnectionPath>
|
||||
<Micro800ConnectionPath>WINDOWS10VMPJM!Henry_Pump\10.20.4.103</Micro800ConnectionPath>
|
||||
</DevicePreferences>
|
||||
@@ -47,6 +47,7 @@ Controller.Micro820.Micro820._IO_P1_AI_00
|
||||
Controller.Micro820.Micro820._IO_P1_AI_01
|
||||
Controller.Micro820.Micro820.alarm_Hi
|
||||
Controller.Micro820.Micro820.alarm_Lo
|
||||
Controller.Micro820.Micro820.cfg_5MeterSensor
|
||||
Controller.Micro820.Micro820.cfg_HighAlarm
|
||||
Controller.Micro820.Micro820.cfg_LowAlarm
|
||||
Controller.Micro820.Micro820.cfg_MaxScaled
|
||||
|
||||
|
9
Controller/Controller/Micro820/Micro820.isaxml
Normal file
9
Controller/Controller/Micro820/Micro820.isaxml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Configuration FileVersion="200.00.003" Name="Micro820" ElementGuid="d10d253c-1f0d-48ef-a928-2e8d2b2af695" onlineBehavior="Always" TargetName="2080LC2020QBBI" Comment="" SingleTextLine="" Password="" IsEnhanced="false" IsEnhancedTarget="true" IsIsagraf3="false">
|
||||
<Connections>
|
||||
<Connection NetworkName="CIPNetwork1">
|
||||
<Parameter Name="CipPath" Value="""" />
|
||||
</Connection>
|
||||
</Connections>
|
||||
<Resource Name="Micro820" ElementGuid="b7048927-b447-41c8-9051-5fccc57555eb" />
|
||||
</Configuration>
|
||||
@@ -1,5 +1,5 @@
|
||||
AIN_1_SCALER.INPUT@PROG1,__TMPR__SCALER__INPUT,REAL
|
||||
AIN_1_SCALER.INPUTMIN@PROG1,__TMPR2@PROG1,REAL
|
||||
AIN_1_SCALER.INPUTMAX@PROG1,__TMPR3@PROG1,REAL
|
||||
AIN_1_SCALER.INPUTMIN@PROG1,__TMPR5@PROG1,REAL
|
||||
AIN_1_SCALER.INPUTMAX@PROG1,__TMPR6@PROG1,REAL
|
||||
AIN_1_SCALER.OUTPUTMIN@PROG1,CFG_MINSCALED,REAL
|
||||
AIN_1_SCALER.OUTPUTMAX@PROG1,CFG_MAXSCALED,REAL
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,9 +0,0 @@
|
||||
0::0046-0003::-------------------- Pre-build resource: MICRO820 Configuration: MICRO820 --------------
|
||||
0::0044-0003::Pre-compiling for 2080LC2020QBBI
|
||||
0::0000-0003::PROG1
|
||||
0:C:\USERS\SHOP\DROPBOX (HENRY PUMP)\PATRICK_MCDONAGH\CUSTOMERS\PIONEER NATURAL RESOURCES\LEVELSENSOR\CONTROLLER\CONTROLLER\MICRO820\MICRO820\PROG1:0002-0003::MICRO820: 0 error(s), 0 warning(s)
|
||||
0::0006-0003::-------------------- Build resource: MICRO820 Configuration: MICRO820 --------------
|
||||
0::0001-0003::Compiling for 2080LC2020QBBI
|
||||
0::0000-0003::PROG1
|
||||
0:C:\USERS\SHOP\DROPBOX (HENRY PUMP)\PATRICK_MCDONAGH\CUSTOMERS\PIONEER NATURAL RESOURCES\LEVELSENSOR\CONTROLLER\CONTROLLER\MICRO820\MICRO820\PROG1:0003-0003::Linking for 2080LC2020QBBI
|
||||
0:C:\USERS\SHOP\DROPBOX (HENRY PUMP)\PATRICK_MCDONAGH\CUSTOMERS\PIONEER NATURAL RESOURCES\LEVELSENSOR\CONTROLLER\CONTROLLER\MICRO820\MICRO820\PROG1:0002-0003::MICRO820: 0 error(s), 0 warning(s)
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -3,8 +3,8 @@ Offset0=0xB98
|
||||
Offset1=0x1398
|
||||
Offset2=0x1398
|
||||
Offset3=0x1398
|
||||
Memory Usage Estimate(Code)=0xE8
|
||||
Memory Usage Estimate(Data)=0x33B8
|
||||
Memory Usage Estimate(Retain)=0x10
|
||||
Memory Usage Estimate(Temporary variables)=0x1C
|
||||
Memory Usage Estimate(Code)=0x11C
|
||||
Memory Usage Estimate(Data)=0x33C4
|
||||
Memory Usage Estimate(Retain)=0x11
|
||||
Memory Usage Estimate(Temporary variables)=0x28
|
||||
Offset4=0x414
|
||||
|
||||
@@ -3,8 +3,8 @@ Offset0=0xB98
|
||||
Offset1=0x1398
|
||||
Offset2=0x1398
|
||||
Offset3=0x1398
|
||||
Memory Usage Estimate(Code)=0xE8
|
||||
Memory Usage Estimate(Data)=0x33B8
|
||||
Memory Usage Estimate(Retain)=0x10
|
||||
Memory Usage Estimate(Temporary variables)=0x1C
|
||||
Memory Usage Estimate(Code)=0x11C
|
||||
Memory Usage Estimate(Data)=0x33C4
|
||||
Memory Usage Estimate(Retain)=0x11
|
||||
Memory Usage Estimate(Temporary variables)=0x28
|
||||
Offset4=0x414
|
||||
|
||||
@@ -1,16 +1,28 @@
|
||||
[MODIF]
|
||||
POU=Y
|
||||
TYPE=Y
|
||||
LEVEL1=Y
|
||||
IO=Y
|
||||
RETAIN=Y
|
||||
INSTDEF=Y
|
||||
VARDEF=Y
|
||||
INIT_INST=Y
|
||||
ADD_DEL=Y
|
||||
VARSIZE=Y
|
||||
IO_DEF=Y
|
||||
LAST_VA=Y
|
||||
|
||||
[RESULT]
|
||||
ON_LINE=N
|
||||
ON_LINE=Y
|
||||
TBL_CONF=Y
|
||||
CRC_ORG=0x0
|
||||
CRC_OLD=
|
||||
CRC_NEW=0xDA0FA50A
|
||||
DAT_ORG=0
|
||||
DAT_OLD=0
|
||||
DAT_NEW=1473818639
|
||||
VER_ORG=0
|
||||
VER_OLD=0
|
||||
VER_NEW=5
|
||||
CRC_ALL_OLD=
|
||||
CRC_ALL_NEW=0x6E0DCF8E
|
||||
CRC_ORG=0xE77E7AB7
|
||||
CRC_OLD=0xE77E7AB7
|
||||
CRC_NEW=0xE77E7AB7
|
||||
DAT_ORG=1490796706
|
||||
DAT_OLD=1490796706
|
||||
DAT_NEW=1490797361
|
||||
VER_ORG=9
|
||||
VER_OLD=9
|
||||
VER_NEW=10
|
||||
CRC_ALL_OLD=0x69FD45CA
|
||||
CRC_ALL_NEW=0xBAC1FC97
|
||||
|
||||
BIN
Controller/Controller/Micro820/Micro820/MICRO820_MdfUpdate.xtc
Normal file
BIN
Controller/Controller/Micro820/Micro820/MICRO820_MdfUpdate.xtc
Normal file
Binary file not shown.
@@ -1,9 +1,9 @@
|
||||
[MEMORY]
|
||||
Memory Usage Estimate(Temporary variables)=0x1C
|
||||
Memory Usage Estimate(Temporary variables)=0x28
|
||||
Biggest online change user variable memory block size=0x800
|
||||
Currently added user variables=0x0
|
||||
Total data size=0xBB4
|
||||
Total data size=0xBC0
|
||||
User variables size=0xB98
|
||||
Maximum size for temporary variables=0x201C
|
||||
Memory Usage Estimate(Data)=0x33B4
|
||||
Maximum size for temporary variables=0x2028
|
||||
Memory Usage Estimate(Data)=0x33C0
|
||||
Free memory for user variables=0x800
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
[MEMORY]
|
||||
Memory Usage Estimate(Temporary variables)=0x1C
|
||||
Memory Usage Estimate(Temporary variables)=0x28
|
||||
Biggest online change user variable memory block size=0x800
|
||||
Currently added user variables=0x0
|
||||
Total data size=0xBB4
|
||||
Total data size=0xBC0
|
||||
User variables size=0xB98
|
||||
Maximum size for temporary variables=0x201C
|
||||
Memory Usage Estimate(Data)=0x33B4
|
||||
Maximum size for temporary variables=0x2028
|
||||
Memory Usage Estimate(Data)=0x33C0
|
||||
Free memory for user variables=0x800
|
||||
|
||||
@@ -1 +1 @@
|
||||
<INPUT>,AIN_1_SCALER@PROG1,SCALER,INPUT,__TMPR__SCALER__INPUT,REAL,INPUTMIN,__TMPR2@PROG1,REAL,INPUTMAX,__TMPR3@PROG1,REAL,OUTPUTMIN,CFG_MINSCALED,REAL,OUTPUTMAX,CFG_MAXSCALED,REAL
|
||||
<INPUT>,AIN_1_SCALER@PROG1,SCALER,INPUT,__TMPR__SCALER__INPUT,REAL,INPUTMIN,__TMPR5@PROG1,REAL,INPUTMAX,__TMPR6@PROG1,REAL,OUTPUTMIN,CFG_MINSCALED,REAL,OUTPUTMAX,CFG_MAXSCALED,REAL
|
||||
|
||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
[BEGIN FB INPUTS]
|
||||
I1=micro820.micro820.prog1/ain_1_scaler.input,0x13A8,REAL
|
||||
I1=micro820.micro820.prog1/ain_1_scaler.input,0x13B4,REAL
|
||||
I2=micro820.micro820.prog1/ain_1_scaler.inputmin,0x13A0,REAL
|
||||
I3=micro820.micro820.prog1/ain_1_scaler.inputmax,0x139C,REAL
|
||||
I4=micro820.micro820.prog1/ain_1_scaler.outputmin,0x464,REAL
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
138
Controller/Controller/Micro820/Micro820/Micro820.isaxml
Normal file
138
Controller/Controller/Micro820/Micro820/Micro820.isaxml
Normal file
@@ -0,0 +1,138 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Resource FileVersion="200.00.003" Name="Micro820" ResourceNb="1" ElementGuid="b7048927-b447-41c8-9051-5fccc57555eb" 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="184320" OnlineMemoryVariable="2048" MemRetain="RETAIN" FunctionInternalStateEnable="true" FbdBehaviorMode="1" OnlineMaxExtraPous="20" OnlineMemorySfc="20" CyUsTiming="0" IsDisableAccessFBLocalVar="true" EnableCVT="false" ReduceBooleanExpressionEvaluation="false" IsIndirectBitAccessValidation="true" />
|
||||
<Pous>
|
||||
<Program Name="Prog1" ElementGuid="69fa8ffc-62bf-4275-82a9-1f04ad700ea2" 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="cfg_MinScaled" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="Retain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
|
||||
<Variable Name="cfg_MaxScaled" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="Retain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
|
||||
<Variable Name="val_Level" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
|
||||
<Variable Name="cfg_HighAlarm" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="Retain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
|
||||
<Variable Name="cfg_LowAlarm" DataType="REAL" InitialValue="" Comment="" Address="1" Modifier="Retain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
|
||||
<Variable Name="alarm_Hi" DataType="BOOL" InitialValue="" Comment="" Address="1" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="4" GroupName="" />
|
||||
<Variable Name="alarm_Lo" 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>
|
||||
<Device PackageName="AB_" DriverName="OPTIMUS_" Name="IOUP_Analog" Index="101" NbChannels="0" IsVirtual="false" Order="2" Alias="" Comment="">
|
||||
<IOSymbols AllIOSymbols="true" />
|
||||
<DeviceList>
|
||||
<Device Index="101" NbChannels="0" Order="0" SimpleOfComplexOrder="0">
|
||||
<IOSymbols AllIOSymbols="true" />
|
||||
</Device>
|
||||
<Device Index="101" NbChannels="2" Order="0" SimpleOfComplexOrder="1">
|
||||
<IOSymbols AllIOSymbols="true">
|
||||
<IOSymbol GainA="1" GainB="1" Offset="0" Order="0" GainAf="1" GainBf="1" OffsetF="0" PhysicalOrder="0" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_P1_AI_00">
|
||||
<ChannelParameterInstances />
|
||||
</IOSymbol>
|
||||
<IOSymbol GainA="1" GainB="1" Offset="0" Order="1" GainAf="1" GainBf="1" OffsetF="0" PhysicalOrder="1" Alias="" Comment="" Address="1" IsComplexMember="false" ConvFunctio="" SymbolName="_IO_P1_AI_01">
|
||||
<ChannelParameterInstances />
|
||||
</IOSymbol>
|
||||
</IOSymbols>
|
||||
</Device>
|
||||
</DeviceList>
|
||||
</Device>
|
||||
</Devices>
|
||||
<ExportedGroups />
|
||||
<ImportedGroups />
|
||||
<Groups />
|
||||
</Resource>
|
||||
@@ -0,0 +1,3 @@
|
||||
[MEMORY]
|
||||
Code Space Free Memory=0x2C1BC
|
||||
Code Space Requirement=0x1190
|
||||
@@ -1,9 +1,19 @@
|
||||
_IO_EM_DO_01 := TRUE
|
||||
CFG_5METERSENSOR := _IO_EM_DI_01
|
||||
_IF _NOT CFG_5METERSENSOR _GOTO __LAB1
|
||||
CFG_MINSCALED := __TMPR1
|
||||
CFG_MAXSCALED := __TMPR2
|
||||
_GOTO __LAB2
|
||||
__LAB1 :
|
||||
CFG_MINSCALED := __TMPR1
|
||||
CFG_MAXSCALED := __TMPR3
|
||||
__LAB2 :
|
||||
_PUSH_PAR _IO_P1_AI_00
|
||||
__TMPR1 := _CALL ANY_TO_UINT
|
||||
__TMPR__SCALER__INPUT := __TMPR1
|
||||
__TMPR4 := _CALL ANY_TO_UINT
|
||||
__TMPR__SCALER__INPUT := __TMPR4
|
||||
__FBL_RET := _PUSHCALLFB SCALER AIN_1_SCALER
|
||||
__TMPR1 := AIN_1_SCALER [ __CDINT0000000C ]
|
||||
VAL_LEVEL := __TMPR1
|
||||
__TMPR4 := AIN_1_SCALER [ __CDINT0000000C ]
|
||||
VAL_LEVEL := __TMPR4
|
||||
__TMPB1 := VAL_LEVEL >= CFG_HIGHALARM
|
||||
__TMPB1 := __TMPB1 _OR _IO_EM_DI_00
|
||||
ALARM_HI := __TMPB1
|
||||
|
||||
Binary file not shown.
21
Controller/Controller/Micro820/Micro820/Prog1.isaxml
Normal file
21
Controller/Controller/Micro820/Micro820/Prog1.isaxml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Pou FileVersion="200.00.003" Name="Prog1" ElementGuid="69fa8ffc-62bf-4275-82a9-1f04ad700ea2" Comment="" SingleTextLine="" Language="ST" CustomFbd="0" Localization="Prj" GroupName="(User defined)" GenDebugInfo="false" UseResPassword="true" GenerateSymbMon="true" Is1499="false">
|
||||
<Program />
|
||||
<LocalVars>
|
||||
<Variable Name="AIN_1_SCALER" DataType="SCALER" InitialValue="" Comment="" Address="" Modifier="NonRetain" Kind="Var" Alias="" AccessRights="ReadWrite" StringSize="0" RetainFlags="" CommentFields="" Attributes="0" GroupName="" />
|
||||
</LocalVars>
|
||||
<PouBody><![CDATA[PROGRAM Prog1
|
||||
AIN_1_SCALER(ANY_TO_REAL(_IO_P1_AI_00), 13104.0, 65520.0, cfg_MinScaled, cfg_MaxScaled);
|
||||
val_Level := AIN_1_SCALER.Output;
|
||||
|
||||
alarm_Hi := (val_Level >= cfg_HighAlarm) OR _IO_EM_DI_00;
|
||||
alarm_Lo := val_Level <= cfg_LowAlarm;
|
||||
|
||||
_IO_EM_DO_00 := alarm_Hi OR alarm_Lo;
|
||||
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>
|
||||
@@ -1,4 +1,17 @@
|
||||
PROGRAM Prog1
|
||||
(* In order to enable the 5-meter sensor, jumper Digital Output 1 to Digital Input 1 *)
|
||||
_IO_EM_DO_01 := TRUE;
|
||||
cfg_5MeterSensor := _IO_EM_DI_01;
|
||||
|
||||
IF cfg_5MeterSensor THEN
|
||||
cfg_MinScaled := 0.0;
|
||||
cfg_MaxScaled := 16.4042;
|
||||
ELSE
|
||||
cfg_MinScaled := 0.0;
|
||||
cfg_MaxScaled := 34.6;
|
||||
END_IF;
|
||||
|
||||
|
||||
AIN_1_SCALER(ANY_TO_REAL(_IO_P1_AI_00), 13104.0, 65520.0, cfg_MinScaled, cfg_MaxScaled);
|
||||
val_Level := AIN_1_SCALER.Output;
|
||||
|
||||
|
||||
BIN
Controller/Controller/PrjLibrary.bak
Normal file
BIN
Controller/Controller/PrjLibrary.bak
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user