diff --git a/extensions/factorytalk/alarms_events/assets/classes.yaml b/extensions/factorytalk/alarms_events/assets/classes.yaml new file mode 100644 index 0000000..b407524 --- /dev/null +++ b/extensions/factorytalk/alarms_events/assets/classes.yaml @@ -0,0 +1 @@ +".*": "" diff --git a/extensions/factorytalk/alarms_events/assets/commands.yaml b/extensions/factorytalk/alarms_events/assets/commands.yaml new file mode 100644 index 0000000..b407524 --- /dev/null +++ b/extensions/factorytalk/alarms_events/assets/commands.yaml @@ -0,0 +1 @@ +".*": "" diff --git a/extensions/factorytalk/alarms_events/assets/groups.yaml b/extensions/factorytalk/alarms_events/assets/groups.yaml index 98b4587..ddffbf4 100644 --- a/extensions/factorytalk/alarms_events/assets/groups.yaml +++ b/extensions/factorytalk/alarms_events/assets/groups.yaml @@ -1,115 +1,4 @@ -patterns: - DataItem: - pattern: .* - sub: .* - Severity: - pattern: .* - sub: .* -groups: - Lake: - _pattern: .* - Intake: - _pattern: .* - IntakeTower: .* - LakeIntakeOxygen: .* - ServiceSpillway: .* - PumpStation: - _pattern: .* - RWPS: .* - RWPSMeterVault: .* - Plant: - _pattern: .* - PlantInfluent: - _pattern: .* - TSR: .* - InfluentPS: .* - RWChemistry: .* - Pretreatment: - _pattern: .* - RapidMix: .* - FloccBasins: .* - SedBasins: - _pattern: .* - SludgeCollectors: .* - Ozone: - _pattern: .* - OzoneDisinfection: - _pattern: .* - OzoneInjection: .* - OzoneContactors: .* - LOX: .* - OzoneGeneration: - _pattern: .* - OzoneGenerators: .* - CoolingWater: .* - OzoneDestruction: .* - OzoneAmbientAnalyzers: .* - Filters: - _pattern: .* - FilterInfluent: .* - Filter1: .* - Filter2: .* - Filter3: .* - Filter4: .* - Filter5: .* - Filter6: .* - Filter7: .* - Filter8: .* - Filter9: .* - Filter10: .* - Filter11: .* - Filter12: .* - FilterAirCompressors: .* - FilterBlowers: .* - FilterEffluent: .* - FilterBackwash: .* - FinishedWater: - _pattern: .* - BoosterPS: .* - ChlorineContactBasins: .* - Clearwells: .* - HSPS: .* - Reclaim: - _pattern: .* - ProcessDrainPS1: .* - ProcessDrainPS2: .* - ProcessDrainPS3: .* - ReclaimBasins: .* - ReclaimPS: .* - UnderDrainPS: .* - Sludge: - _pattern: .* - UnthickenedSludgePS: .* - GravityThickeners: .* - ThickenedSludgePS: .* - SludgeLagoons: .* - Chemicals: - _pattern: .* - NorthChemical: - _pattern: .* - CationicPolymer: .* - Chlorine: .* - ChlorineScrubbers: .* - SodiumChlorite: .* - EastChemical: - _pattern: .* - AnionicPolymer: .* - FerricSulfate: .* - Lime: .* - SulfuricAcid: .* - WestChemical: - _pattern: .* - AmmoniumSulfate: .* - CalciumThiosulfate: .* - HFSA: .* - NonionicPolymer: .* - PhosphoricAcid: .* - SodiumHydroxide: .* - OperationsBldg: .* - MaintenanceBldg: .* - SCADA: - _pattern: .* - Comms: .* - Generators: .* - Panels: .* - Servers: .* +".*": + id: 0, + parentid: "" + name: Group \ No newline at end of file diff --git a/extensions/factorytalk/alarms_events/assets/leonard_groups.yaml b/extensions/factorytalk/alarms_events/assets/leonard_groups.yaml new file mode 100644 index 0000000..98b4587 --- /dev/null +++ b/extensions/factorytalk/alarms_events/assets/leonard_groups.yaml @@ -0,0 +1,115 @@ +patterns: + DataItem: + pattern: .* + sub: .* + Severity: + pattern: .* + sub: .* +groups: + Lake: + _pattern: .* + Intake: + _pattern: .* + IntakeTower: .* + LakeIntakeOxygen: .* + ServiceSpillway: .* + PumpStation: + _pattern: .* + RWPS: .* + RWPSMeterVault: .* + Plant: + _pattern: .* + PlantInfluent: + _pattern: .* + TSR: .* + InfluentPS: .* + RWChemistry: .* + Pretreatment: + _pattern: .* + RapidMix: .* + FloccBasins: .* + SedBasins: + _pattern: .* + SludgeCollectors: .* + Ozone: + _pattern: .* + OzoneDisinfection: + _pattern: .* + OzoneInjection: .* + OzoneContactors: .* + LOX: .* + OzoneGeneration: + _pattern: .* + OzoneGenerators: .* + CoolingWater: .* + OzoneDestruction: .* + OzoneAmbientAnalyzers: .* + Filters: + _pattern: .* + FilterInfluent: .* + Filter1: .* + Filter2: .* + Filter3: .* + Filter4: .* + Filter5: .* + Filter6: .* + Filter7: .* + Filter8: .* + Filter9: .* + Filter10: .* + Filter11: .* + Filter12: .* + FilterAirCompressors: .* + FilterBlowers: .* + FilterEffluent: .* + FilterBackwash: .* + FinishedWater: + _pattern: .* + BoosterPS: .* + ChlorineContactBasins: .* + Clearwells: .* + HSPS: .* + Reclaim: + _pattern: .* + ProcessDrainPS1: .* + ProcessDrainPS2: .* + ProcessDrainPS3: .* + ReclaimBasins: .* + ReclaimPS: .* + UnderDrainPS: .* + Sludge: + _pattern: .* + UnthickenedSludgePS: .* + GravityThickeners: .* + ThickenedSludgePS: .* + SludgeLagoons: .* + Chemicals: + _pattern: .* + NorthChemical: + _pattern: .* + CationicPolymer: .* + Chlorine: .* + ChlorineScrubbers: .* + SodiumChlorite: .* + EastChemical: + _pattern: .* + AnionicPolymer: .* + FerricSulfate: .* + Lime: .* + SulfuricAcid: .* + WestChemical: + _pattern: .* + AmmoniumSulfate: .* + CalciumThiosulfate: .* + HFSA: .* + NonionicPolymer: .* + PhosphoricAcid: .* + SodiumHydroxide: .* + OperationsBldg: .* + MaintenanceBldg: .* + SCADA: + _pattern: .* + Comms: .* + Generators: .* + Panels: .* + Servers: .* diff --git a/extensions/factorytalk/alarms_events/assets/messages.yaml b/extensions/factorytalk/alarms_events/assets/messages.yaml new file mode 100644 index 0000000..54fbe52 --- /dev/null +++ b/extensions/factorytalk/alarms_events/assets/messages.yaml @@ -0,0 +1,48 @@ +'.*\.Alarm\.ALRM$': + id: 100000 + message: "Alarm" +'.*\.almPLCFault\.ALRM$': + id: 100001 + message: "PLC Fault" +'.*\.almBrokenLoop\.ALRM$': + id: 100002 + message: "Broken Loop" +'.*\.almHigh\.ALRM$': + id: 100003 + message: "High" +'.*\.almHighHigh\.ALRM$': + id: 100004 + message: "High-High" +'.*\.almLow\.ALRM$': + id: 100005 + message: "Low" +'.*\.almLowLow\.ALRM$': + id: 100006 + message: "Low-Low" +'.*\.almOverrange\.ALRM$': + id: 100007 + message: "Over Range" +'.*\.almUnderrange\.ALRM$': + id: 100008 + message: "Under Range" +'.*\.almMotorFailure\.ALRM$': + id: 100009 + message: "Motor Failure" +'.*\.almFailtoStart\.ALRM$': + id: 100010 + message: "Failed to Start" +'.*\.almFailtoStop\.ALRM$': + id: 100011 + message: "Failed to Stop" +'.*\.almActuatorFault\.ALRM$': + id: 100012 + message: "Valve Failure" +'.*\.almFailtoClose\.ALRM$': + id: 100013 + message: "Failed to Close" +'.*\.almFailtoOpen\.ALRM$': + id: 100014 + message: "Failed to Open" +'.*\.almDeviation\.ALRM$': + id: 100015 + message: "Deviation" diff --git a/extensions/factorytalk/alarms_events/assets/pollgroups.yaml b/extensions/factorytalk/alarms_events/assets/pollgroups.yaml new file mode 100644 index 0000000..bdf2ed3 --- /dev/null +++ b/extensions/factorytalk/alarms_events/assets/pollgroups.yaml @@ -0,0 +1 @@ +'.*': 2 \ No newline at end of file diff --git a/extensions/factorytalk/alarms_events/ftae.yaml b/extensions/factorytalk/alarms_events/ftae.yaml index 9805f42..02634a5 100644 --- a/extensions/factorytalk/alarms_events/ftae.yaml +++ b/extensions/factorytalk/alarms_events/ftae.yaml @@ -3,19 +3,15 @@ $schema: >- format: name: xml exportStylesheets: - - assets/export_ftae_pollgroups.xslt - - assets/export_ftae_alarmgroup.xslt - - assets/export_ftae_config.xslt + - assets/export_ftae.xslt importStylesheets: - - assets/import_ftae_pollgroups.xslt - - assets/import_ftae_alarmgroup.xslt - - assets/import_ftae_config.xslt + - assets/import_ftae.xslt import: filter: columns: tagname operations: - operation: match - pattern: '.*\.Alarm$' + pattern: '.*\.ALRM$' columns: # Columns prefixed with `a_` become attributes of in the # XML file. @@ -42,8 +38,8 @@ import: translate: columns: tagname operations: - - operation: regexmapping - _file: $pollgroupfile$ + - operation: rregexmapping + mapping: $pollgroupfile$ Style: const: DiscreteTrue Target: @@ -53,7 +49,7 @@ import: columns: tagname operations: - operation: replace - pattern: '\.Alarm$' + pattern: '\.ALRM$' repl: ".AESeverity" - operation: radd arg: "/::$path$" @@ -61,8 +57,8 @@ import: translate: columns: tagname operations: - - operation: regexmapping - _file: $pollgroupfile$ + - operation: rregexmapping + mapping: $pollgroupfile$ DelayInterval: const: 0 Deadband: @@ -76,21 +72,21 @@ import: translate: columns: tagname operations: - - operation: regexmapping - _file: $commandfile$ + - operation: rregexmapping + mapping: $commandfile$ AlarmClass: translate: columns: tagname operations: - - operation: regexmapping - _file: $classfile$ + - operation: rregexmapping + mapping: $classfile$ GroupID: translate: columns: tagname operations: - - operation: regexmapping - _file: $groupfile$ - _column: 0 + - operation: rregexmapping + mapping: $groupfile$ + column: id InAlarmDataItem: const: "" InAlarmDataItemPollGroup: @@ -100,7 +96,7 @@ import: columns: tagname operations: - operation: replace - pattern: '\.Alarm$' + pattern: '\.ALRM$' repl: ".Disabled" - operation: radd arg: "/::$path$" @@ -108,14 +104,14 @@ import: translate: columns: tagname operations: - - operation: regexmapping - _file: $pollgroupfile$ + - operation: rregexmapping + mapping: $pollgroupfile$ AckedDataItem: translate: columns: tagname operations: - operation: replace - pattern: '\.Alarm$' + pattern: '\.ALRM$' repl: ".ACKN" - operation: radd arg: "/::$path$" @@ -123,14 +119,14 @@ import: translate: columns: tagname operations: - - operation: regexmapping - _file: $pollgroupfile$ + - operation: rregexmapping + mapping: $pollgroupfile$ SuppressedDataItem: translate: columns: tagname operations: - operation: replace - pattern: '\.Alarm$' + pattern: '\.ALRM$' repl: ".Suppressed" - operation: radd arg: "/::$path$" @@ -138,14 +134,14 @@ import: translate: columns: tagname operations: - - operation: regexmapping - _file: $pollgroupfile$ + - operation: rregexmapping + mapping: $pollgroupfile$ ShelvedDataItem: translate: columns: tagname operations: - operation: replace - pattern: '\.Alarm$' + pattern: '\.ALRM$' repl: ".Shelve" - operation: radd arg: "/::$path$" @@ -153,46 +149,46 @@ import: translate: columns: tagname operations: - - operation: regexmapping - _file: $pollgroupfile$ + - operation: rregexmapping + mapping: $pollgroupfile$ InAlarmHiDataItem: const: "" InAlarmHiDataItemPollGroup: translate: columns: tagname operations: - - operation: regexmapping - _file: $pollgroupfile$ + - operation: rregexmapping + mapping: $pollgroupfile$ InAlarmLoDataItem: const: "" InAlarmLoDataItemPollGroup: translate: columns: tagname operations: - - operation: regexmapping - _file: $pollgroupfile$ + - operation: rregexmapping + mapping: $pollgroupfile$ ShelvedHiDataItem: const: "" ShelvedHiDataItemPollGroup: translate: columns: tagname operations: - - operation: regexmapping - _file: $pollgroupfile$ + - operation: rregexmapping + mapping: $pollgroupfile$ ShelvedLoDataItem: const: "" ShelvedLoDataItemPollGroup: translate: columns: tagname operations: - - operation: regexmapping - _file: $pollgroupfile$ + - operation: rregexmapping + mapping: $pollgroupfile$ RemoteAckAllDataItem: translate: columns: tagname operations: - operation: replace - pattern: '\.Alarm$' + pattern: '\.ALRM$' repl: ".AKED" - operation: radd arg: "/::$path$" @@ -202,8 +198,8 @@ import: translate: columns: tagname operations: - - operation: regexmapping - _file: $pollgroupfile$ + - operation: rregexmapping + mapping: $pollgroupfile$ RemoteAckHiDataItem: const: "" RemoteAckHiDataItemAutoReset: @@ -212,8 +208,8 @@ import: translate: columns: tagname operations: - - operation: regexmapping - _file: $pollgroupfile$ + - operation: rregexmapping + mapping: $pollgroupfile$ RemoteAckLoDataItem: const: "" RemoteAckLoDataItemAutoReset: @@ -222,8 +218,8 @@ import: translate: columns: tagname operations: - - operation: regexmapping - _file: $pollgroupfile$ + - operation: rregexmapping + mapping: $pollgroupfile$ RemoteShelveHiDataAlarm: const: "" RemoteShelveHiDataAlarmAutoReset: @@ -232,8 +228,8 @@ import: translate: columns: tagname operations: - - operation: regexmapping - _file: $pollgroupfile$ + - operation: rregexmapping + mapping: $pollgroupfile$ RemoteShelveLoDataAlarm: const: "" RemoteShelveLoDataAlarmAutoReset: @@ -242,14 +238,14 @@ import: translate: columns: tagname operations: - - operation: regexmapping - _file: $pollgroupfile$ + - operation: rregexmapping + mapping: $pollgroupfile$ RemoteDisableDataItem: translate: columns: tagname operations: - operation: replace - pattern: '\.Alarm$' + pattern: '\.ALRM$' repl: ".Disable" - operation: radd arg: "/::$path$" @@ -259,14 +255,14 @@ import: translate: columns: tagname operations: - - operation: regexmapping - _file: $pollgroupfile$ + - operation: rregexmapping + mapping: $pollgroupfile$ RemoteEnableDataItem: translate: columns: tagname operations: - operation: replace - pattern: '\.Alarm$' + pattern: '\.ALRM$' repl: ".Enable" - operation: radd arg: "/::$path$" @@ -276,8 +272,8 @@ import: translate: columns: tagname operations: - - operation: regexmapping - _file: $pollgroupfile$ + - operation: rregexmapping + mapping: $pollgroupfile$ RemoteResetDataItem: const: "" RemoteResetDataItemAutoReset: @@ -286,14 +282,14 @@ import: translate: columns: tagname operations: - - operation: regexmapping - _file: $pollgroupfile$ + - operation: rregexmapping + mapping: $pollgroupfile$ RemoteSuppressDataItem: translate: columns: tagname operations: - operation: replace - pattern: '\.Alarm$' + pattern: '\.ALRM$' repl: ".Suppress" - operation: radd arg: "/::$path$" @@ -303,14 +299,14 @@ import: translate: columns: tagname operations: - - operation: regexmapping - _file: $pollgroupfile$ + - operation: rregexmapping + mapping: $pollgroupfile$ RemoteUnSuppressDataItem: translate: columns: tagname operations: - operation: replace - pattern: '\.Alarm$' + pattern: '\.ALRM$' repl: ".Unsuppress" - operation: radd arg: "/::$path$" @@ -320,8 +316,8 @@ import: translate: columns: tagname operations: - - operation: regexmapping - _file: $pollgroupfile$ + - operation: rregexmapping + mapping: $pollgroupfile$ RemoteShelveAllDataItem: const: "" RemoteShelveAllDataItemAutoReset: @@ -333,7 +329,7 @@ import: columns: tagname operations: - operation: replace - pattern: '\.Alarm$' + pattern: '\.ALRM$' repl: ".Unshelve" - operation: radd arg: "/::$path$" @@ -343,14 +339,14 @@ import: translate: columns: tagname operations: - - operation: regexmapping - _file: $pollgroupfile$ + - operation: rregexmapping + mapping: $pollgroupfile$ RemoteShelveDuration: translate: columns: tagname operations: - operation: replace - pattern: '\.Alarm$' + pattern: '\.ALRM$' repl: ".AEShelveDuration" - operation: radd arg: "/::$path$" @@ -358,21 +354,21 @@ import: translate: columns: tagname operations: - - operation: regexmapping - _file: $pollgroupfile$ + - operation: rregexmapping + mapping: $pollgroupfile$ MessageID: translate: columns: tagname operations: - - operation: regexmapping - _file: $messagefile$ - _column: 0 + - operation: rregexmapping + mapping: $messagefile$ + column: id Tag1: translate: columns: tagname operations: - operation: replace - pattern: '(\.alm\w+)?\.Alarm$' + pattern: '(\.alm\w+)?\.ALRM$' repl: ".DESC" - operation: radd arg: "/::$path$" @@ -380,8 +376,8 @@ import: translate: columns: tagname operations: - - operation: regexmapping - _file: $pollgroupfile$ + - operation: rregexmapping + mapping: $pollgroupfile$ Tag2: const: "" Tag2PollGroup: @@ -398,23 +394,23 @@ import: translate: columns: tagname operations: - - operation: regexmapping - _file: $messagefile$ - _column: 1 + - operation: rregexmapping + mapping: $messagefile$ + column: message ParentGroupID: translate: columns: tagname operations: - - operation: regexmapping - _file: $groupfile$ - _column: 1 + - operation: rregexmapping + mapping: $groupfile$ + column: parentid GroupName: translate: columns: tagname operations: - - operation: regexmapping - _file: $groupfile$ - _column: 2 + - operation: rregexmapping + mapping: $groupfile$ + column: name export: tagname: translate: