Files
AuDaGe/extensions/factorytalk/alarms_events/ftae.yaml

432 lines
11 KiB
YAML

$schema: >-
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/main/extensions/schema.yaml
format:
name: xml
exportStylesheets:
- assets/export_ftae_pollgroups.xslt
- assets/export_ftae_alarmgroup.xslt
- assets/export_ftae_config.xslt
importStylesheets:
- assets/import_ftae_pollgroups.xslt
- assets/import_ftae_alarmgroup.xslt
- assets/import_ftae_config.xslt
import:
filter:
columns: tagname
operations:
- operation: match
pattern: '.*\.Alarm$'
columns:
# Columns prefixed with `a_` become attributes of <FTAlarmElement> in the
# XML file.
a_name:
translate:
columns: tagname
operations:
- operation: replace
pattern: '[^\w\d]'
repl: "_"
a_latched:
const: "false"
a_ackRequired:
const: "true"
a_style:
const: "Discrete"
DataItem:
translate:
columns: tagname
operations:
- operation: radd
arg: "/::$path$"
DataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
Style:
const: DiscreteTrue
Target:
const: ""
Severity:
translate:
columns: tagname
operations:
- operation: replace
pattern: '\.Alarm$'
repl: ".AESeverity"
- operation: radd
arg: "/::$path$"
SeverityPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
DelayInterval:
const: 0
Deadband:
const: ""
EnableTag:
const: "true"
UserData:
translate:
columns: comment
RSVCmd:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $commandfile$
AlarmClass:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $classfile$
GroupID:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $groupfile$
_column: 0
InAlarmDataItem:
const: ""
InAlarmDataItemPollGroup:
const: ""
DisabledDataItem:
translate:
columns: tagname
operations:
- operation: replace
pattern: '\.Alarm$'
repl: ".Disabled"
- operation: radd
arg: "/::$path$"
DisabledDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
AckedDataItem:
translate:
columns: tagname
operations:
- operation: replace
pattern: '\.Alarm$'
repl: ".ACKN"
- operation: radd
arg: "/::$path$"
AckedDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
SuppressedDataItem:
translate:
columns: tagname
operations:
- operation: replace
pattern: '\.Alarm$'
repl: ".Suppressed"
- operation: radd
arg: "/::$path$"
SuppressedDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
ShelvedDataItem:
translate:
columns: tagname
operations:
- operation: replace
pattern: '\.Alarm$'
repl: ".Shelve"
- operation: radd
arg: "/::$path$"
ShelvedDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
InAlarmHiDataItem:
const: ""
InAlarmHiDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
InAlarmLoDataItem:
const: ""
InAlarmLoDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
ShelvedHiDataItem:
const: ""
ShelvedHiDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
ShelvedLoDataItem:
const: ""
ShelvedLoDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
RemoteAckAllDataItem:
translate:
columns: tagname
operations:
- operation: replace
pattern: '\.Alarm$'
repl: ".AKED"
- operation: radd
arg: "/::$path$"
RemoteAckAllDataItemAutoReset:
const: "false"
RemoteAckAllDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
RemoteAckHiDataItem:
const: ""
RemoteAckHiDataItemAutoReset:
const: "false"
RemoteAckHiDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
RemoteAckLoDataItem:
const: ""
RemoteAckLoDataItemAutoReset:
const: "false"
RemoteAckLoDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
RemoteShelveHiDataAlarm:
const: ""
RemoteShelveHiDataAlarmAutoReset:
const: "false"
RemoteShelveHiDataAlarmPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
RemoteShelveLoDataAlarm:
const: ""
RemoteShelveLoDataAlarmAutoReset:
const: "false"
RemoteShelveLoDataAlarmPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
RemoteDisableDataItem:
translate:
columns: tagname
operations:
- operation: replace
pattern: '\.Alarm$'
repl: ".Disable"
- operation: radd
arg: "/::$path$"
RemoteDisableDataItemAutoReset:
const: "false"
RemoteDisableDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
RemoteEnableDataItem:
translate:
columns: tagname
operations:
- operation: replace
pattern: '\.Alarm$'
repl: ".Enable"
- operation: radd
arg: "/::$path$"
RemoteEnableDataItemAutoReset:
const: "false"
RemoteEnableDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
RemoteResetDataItem:
const: ""
RemoteResetDataItemAutoReset:
const: false
RemoteResetDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
RemoteSuppressDataItem:
translate:
columns: tagname
operations:
- operation: replace
pattern: '\.Alarm$'
repl: ".Suppress"
- operation: radd
arg: "/::$path$"
RemoteSuppressDataItemAutoReset:
const: "false"
RemoteSuppressDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
RemoteUnSuppressDataItem:
translate:
columns: tagname
operations:
- operation: replace
pattern: '\.Alarm$'
repl: ".Unsuppress"
- operation: radd
arg: "/::$path$"
RemoteUnSuppressDataItemAutoReset:
const: "false"
RemoteUnSuppressDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
RemoteShelveAllDataItem:
const: ""
RemoteShelveAllDataItemAutoReset:
const: "false"
RemoteShelveAllDataItemPollGroup:
const: ""
RemoteUnShelveDataItem:
translate:
columns: tagname
operations:
- operation: replace
pattern: '\.Alarm$'
repl: ".Unshelve"
- operation: radd
arg: "/::$path$"
RemoteUnShelveDataItemAutoReset:
const: "false"
RemoteUnShelveDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
RemoteShelveDuration:
translate:
columns: tagname
operations:
- operation: replace
pattern: '\.Alarm$'
repl: ".AEShelveDuration"
- operation: radd
arg: "/::$path$"
RemoteShelveDurationPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
MessageID:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $messagefile$
_column: 0
Tag1:
translate:
columns: tagname
operations:
- operation: replace
pattern: '(\.alm\w+)?\.Alarm$'
repl: ".DESC"
- operation: radd
arg: "/::$path$"
Tag1PollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
Tag2:
const: ""
Tag2PollGroup:
const: ""
Tag3:
const: ""
Tag3PollGroup:
const: ""
Tag4:
const: ""
Tag4PollGroup:
const: ""
Message:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $messagefile$
_column: 1
ParentGroupID:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $groupfile$
_column: 1
GroupName:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $groupfile$
_column: 2
export:
tagname:
translate:
columns: DataItem
operations:
- operation: replace
pattern: "/::$path$"
type:
const: BOOL
address:
const: ""
comment:
translate:
columns: UserData