<?xml version="1.0" encoding="utf-8"?>
<Symbolconfiguration xmlns="http://www.3s-software.com/schemas/Symbolconfiguration.xsd">
  <Header>
    <Version>3.5.14.0</Version>
    <SymbolConfigObject version="4.7.0.0" runtimeid="3.5.20.10" libversion="4.6.0.0" compiler="3.5.22.0" lmm="3.5.22.10" profile="CODESYS V3.5 SP22 Patch 1+" settings="SupportOPCUA, XmlIncludeComments, LayoutCalculator=OptimizedClientSideLayoutCalculator" />
    <ProjectInfo name="cr_barn5" devicename="Device" appname="CR_Barn5" />
  </Header>
  <TypeList>
    <TypeSimple name="T_BOOL" size="1" swapsize="0" typeclass="Bool" iecname="BOOL" />
    <TypeSimple name="T_BYTE" size="1" swapsize="1" typeclass="Byte" iecname="BYTE" />
    <TypeSimple name="T_DATE_AND_TIME" size="4" swapsize="4" typeclass="DateAndTime" iecname="DATE_AND_TIME" />
    <TypeSimple name="T_DINT" size="4" swapsize="4" typeclass="DInt" iecname="DINT" />
    <TypeSimple name="T_INT" size="2" swapsize="2" typeclass="Int" iecname="INT" />
    <TypeSimple name="T_LDATE_AND_TIME" size="8" swapsize="8" typeclass="LDateAndTime" iecname="LDATE_AND_TIME" />
    <TypeSimple name="T_STRING" size="81" swapsize="0" typeclass="String" iecname="STRING" />
    <TypeSimple name="T_STRING_40_" size="41" swapsize="0" typeclass="String" iecname="STRING(40)" />
    <TypeSimple name="T_STRING_MAX_LEN_APPLNAME_" size="61" swapsize="0" typeclass="String" iecname="STRING(MAX_LEN_APPLNAME)" />
    <TypeSimple name="T_UDINT" size="4" swapsize="4" typeclass="UDInt" iecname="UDINT" />
    <TypeSimple name="T_UINT" size="2" swapsize="2" typeclass="UInt" iecname="UINT" />
    <TypeArray name="T_ARRAY__0__15__OF_BYTE" size="16" nativesize="16" typeclass="Array" iecname="ARRAY [0..15] OF BYTE" basetype="T_BYTE">
      <ArrayDim minrange="0" maxrange="15" />
    </TypeArray>
    <TypeSimple name="T_POINTER_TO_APPLICATION" size="4" swapsize="4" typeclass="Pointer" iecname="POINTER TO APPLICATION" />
    <TypeSimple name="T_POINTER_TO_BYTE" size="4" swapsize="4" typeclass="Pointer" iecname="POINTER TO BYTE" />
    <TypeSimple name="T_REFERENCE_TO_STRING_REF" size="81" swapsize="0" typeclass="Reference" iecname="REFERENCE TO STRING_REF" basetype="T_STRING" />
    <TypeUserDef name="T_atAlarmEventType" size="2" nativesize="2" swapsize="2" typeclass="Enum" iecname="atAlarmEventType" basetype="T_INT">
      <UserDefElement type="T_atAlarmEventType" iecname="null" enumvalue="0" />
      <UserDefElement type="T_atAlarmEventType" iecname="alm" enumvalue="1" />
      <UserDefElement type="T_atAlarmEventType" iecname="rtn" enumvalue="2" />
    </TypeUserDef>
    <TypeUserDef name="T_atMessagingEmailAddress" size="42" nativesize="1072" typeclass="Userdef" pouclass="FUNCTION_BLOCK" iecname="atMessagingEmailAddress">
      <UserDefElement iecname="address" type="T_STRING_40_" byteoffset="0" vartype="VAR_INPUT" access="ReadWrite" />
      <UserDefElement iecname="enabled" type="T_BOOL" byteoffset="41" vartype="VAR_INPUT" access="ReadWrite" />
    </TypeUserDef>
    <TypeUserDef name="T_atMessagingEmailStatus" size="96" nativesize="1120" typeclass="Userdef" pouclass="FUNCTION_BLOCK" iecname="atMessagingEmailStatus">
      <UserDefElement iecname="lastStatusMessage" type="T_STRING" byteoffset="0" vartype="VAR_INPUT" access="ReadWrite" />
      <UserDefElement iecname="lastStatus" type="T_BOOL" byteoffset="81" vartype="VAR_INPUT" access="ReadWrite" />
      <UserDefElement iecname="lastStatusTime" type="T_LDATE_AND_TIME" byteoffset="88" vartype="VAR_INPUT" access="ReadWrite" />
    </TypeUserDef>
    <TypeArray name="T_ARRAY__0__9__OF_atMessagingEmailAddress" size="420" nativesize="10720" typeclass="Array" iecname="ARRAY [0..9] OF atMessagingEmailAddress" basetype="T_atMessagingEmailAddress">
      <ArrayDim minrange="0" maxrange="9" />
    </TypeArray>
    <TypeSimple name="T_RTS_IEC_HANDLE" size="4" swapsize="4" typeclass="Pointer" iecname="RTS_IEC_HANDLE" aliasedtype="T_POINTER_TO_BYTE" aliasediecname="POINTER TO BYTE" />
    <TypeUserDef name="T_atAlarmStatus" size="168" nativesize="1048" typeclass="Userdef" pouclass="FUNCTION_BLOCK" iecname="atAlarmStatus">
      <UserDefElement iecname="timestamp" type="T_DATE_AND_TIME" byteoffset="0" vartype="VAR_INPUT" access="ReadWrite" />
      <UserDefElement iecname="event" type="T_atAlarmEventType" byteoffset="4" vartype="VAR_INPUT" access="ReadWrite" />
      <UserDefElement iecname="id" type="T_STRING" byteoffset="6" vartype="VAR_INPUT" access="ReadWrite" />
      <UserDefElement iecname="description" type="T_STRING" byteoffset="87" vartype="VAR_INPUT" access="ReadWrite" />
    </TypeUserDef>
    <TypeUserDef name="T_APPLICATION" size="152" nativesize="152" typeclass="Userdef" pouclass="STRUCTURE" iecname="APPLICATION">
      <UserDefElement iecname="pAppParent" type="T_POINTER_TO_APPLICATION" byteoffset="0" vartype="VAR" access="ReadWrite" />
      <UserDefElement iecname="iId" type="T_UDINT" byteoffset="4" vartype="VAR" access="ReadWrite" />
      <UserDefElement iecname="CodeGuid" type="T_ARRAY__0__15__OF_BYTE" byteoffset="8" vartype="VAR" access="ReadWrite" />
      <UserDefElement iecname="DataGuid" type="T_ARRAY__0__15__OF_BYTE" byteoffset="24" vartype="VAR" access="ReadWrite" />
      <UserDefElement iecname="udiState" type="T_UDINT" byteoffset="40" vartype="VAR" access="ReadWrite" />
      <UserDefElement iecname="udiOpState" type="T_UDINT" byteoffset="44" vartype="VAR" access="ReadWrite" />
      <UserDefElement iecname="hBootproject" type="T_RTS_IEC_HANDLE" byteoffset="48" vartype="VAR" access="ReadWrite" />
      <UserDefElement iecname="hDebugTask" type="T_RTS_IEC_HANDLE" byteoffset="52" vartype="VAR" access="ReadWrite" />
      <UserDefElement iecname="pfGlobalInit" type="T_POINTER_TO_BYTE" byteoffset="56" vartype="VAR" access="ReadWrite" />
      <UserDefElement iecname="pfGlobalExit" type="T_POINTER_TO_BYTE" byteoffset="60" vartype="VAR" access="ReadWrite" />
      <UserDefElement iecname="hSessionIdPool" type="T_RTS_IEC_HANDLE" byteoffset="64" vartype="VAR" access="ReadWrite" />
      <UserDefElement iecname="hForcePool" type="T_RTS_IEC_HANDLE" byteoffset="68" vartype="VAR" access="ReadWrite" />
      <UserDefElement iecname="hBPPool" type="T_RTS_IEC_HANDLE" byteoffset="72" vartype="VAR" access="ReadWrite" />
      <UserDefElement iecname="bPersistentForce" type="T_DINT" byteoffset="76" vartype="VAR" access="ReadWrite" />
      <UserDefElement iecname="szName" type="T_STRING_MAX_LEN_APPLNAME_" byteoffset="80" vartype="VAR" access="ReadWrite" />
      <UserDefElement iecname="udiPSVersion" type="T_UDINT" byteoffset="144" vartype="VAR" access="ReadWrite" />
      <UserDefElement iecname="udiTargetSettingVersion" type="T_UDINT" byteoffset="148" vartype="VAR" access="ReadWrite" />
    </TypeUserDef>
    <TypeArray name="T_ARRAY__0__249__OF_atAlarmStatus" size="42000" nativesize="262000" typeclass="Array" iecname="ARRAY [0..249] OF atAlarmStatus" basetype="T_atAlarmStatus">
      <ArrayDim minrange="0" maxrange="249" />
    </TypeArray>
    <TypeArray name="T_ARRAY__0__99__OF_atAlarmStatus" size="16800" nativesize="104800" typeclass="Array" iecname="ARRAY [0..99] OF atAlarmStatus" basetype="T_atAlarmStatus">
      <ArrayDim minrange="0" maxrange="99" />
    </TypeArray>
    <TypeUserDef name="T_atMessagingEmailSettings" size="710" nativesize="12048" typeclass="Userdef" pouclass="FUNCTION_BLOCK" iecname="atMessagingEmailSettings">
      <UserDefElement iecname="server" type="T_STRING_40_" byteoffset="0" vartype="VAR_INPUT" access="ReadWrite" />
      <UserDefElement iecname="smtpPort" type="T_UINT" byteoffset="42" vartype="VAR_INPUT" access="ReadWrite" />
      <UserDefElement iecname="useSSL" type="T_BOOL" byteoffset="44" vartype="VAR_INPUT" access="ReadWrite" />
      <UserDefElement iecname="fromName" type="T_STRING_40_" byteoffset="45" vartype="VAR_INPUT" access="ReadWrite" />
      <UserDefElement iecname="fromAddress" type="T_STRING_40_" byteoffset="86" vartype="VAR_INPUT" access="ReadWrite" />
      <UserDefElement iecname="password" type="T_STRING_40_" byteoffset="127" vartype="VAR_INPUT" access="ReadWrite" />
      <UserDefElement iecname="username" type="T_STRING_40_" byteoffset="168" vartype="VAR_INPUT" access="ReadWrite" />
      <UserDefElement iecname="toAddress" type="T_ARRAY__0__9__OF_atMessagingEmailAddress" byteoffset="209" vartype="VAR_INPUT" access="ReadWrite" />
      <UserDefElement iecname="subject" type="T_STRING" byteoffset="629" vartype="VAR_INPUT" access="ReadWrite" />
    </TypeUserDef>
    <TypeUserDef name="T_atAlarmManager" size="100822" nativesize="651744" typeclass="Userdef" pouclass="FUNCTION_BLOCK" iecname="atAlarmManager">
      <UserDefElement iecname="all" type="T_ARRAY__0__249__OF_atAlarmStatus" byteoffset="0" vartype="VAR_OUTPUT" access="ReadWrite" />
      <UserDefElement iecname="active" type="T_ARRAY__0__249__OF_atAlarmStatus" byteoffset="42000" vartype="VAR_OUTPUT" access="ReadWrite" />
      <UserDefElement iecname="alarmLog" type="T_ARRAY__0__99__OF_atAlarmStatus" byteoffset="84000" vartype="VAR_OUTPUT" access="ReadWrite" />
      <UserDefElement iecname="activeCnt" type="T_DINT" byteoffset="100800" vartype="VAR_OUTPUT" access="ReadWrite" />
      <UserDefElement iecname="alarmCnt" type="T_DINT" byteoffset="100804" vartype="VAR_OUTPUT" access="ReadWrite" />
      <UserDefElement iecname="logCnt" type="T_DINT" byteoffset="100808" vartype="VAR_OUTPUT" access="ReadWrite" />
      <UserDefElement iecname="App" type="T_POINTER_TO_APPLICATION" byteoffset="100812" access="ReadWrite" />
      <UserDefElement iecname="AppResult" type="T_UDINT" byteoffset="100816" access="ReadWrite" />
      <UserDefElement iecname="_appNameLength" type="T_INT" byteoffset="100820" access="ReadWrite" />
    </TypeUserDef>
    <TypeUserDef name="T_atMessaging" size="808" nativesize="14200" typeclass="Userdef" pouclass="FUNCTION_BLOCK" iecname="atMessaging">
      <UserDefElement iecname="emailSettings" type="T_atMessagingEmailSettings" byteoffset="0" vartype="VAR_INPUT" access="ReadWrite" />
      <UserDefElement iecname="emailStatus" type="T_atMessagingEmailStatus" byteoffset="712" vartype="VAR_OUTPUT" access="ReadWrite" />
    </TypeUserDef>
  </TypeList>
  <NodeList>
    <Node name="CR_Barn5">
      <Node name="atAlarmManager">
        <Node name="_appNameLength" type="T_INT" access="ReadWrite" />
        <Node name="App" type="T_POINTER_TO_APPLICATION" access="ReadWrite" />
        <Node name="AppResult" type="T_UDINT" access="ReadWrite">
          <Comment> Result code </Comment>
        </Node>
      </Node>
      <Node name="atGVL">
        <Node name="alarmManager" type="T_atAlarmManager" access="ReadWrite">
          <Comment>Alarm logging and active alarm count</Comment>
        </Node>
      </Node>
      <Node name="Message">
        <Node name="messaging" type="T_atMessaging" access="ReadWrite" />
      </Node>
    </Node>
  </NodeList>
</Symbolconfiguration>