Add more columns to FTAE config.

This commit is contained in:
2026-11-11 14:34:32 -06:00
parent 8a900ed271
commit 63a17e49ba
2 changed files with 215 additions and 8 deletions

View File

@@ -17,18 +17,20 @@ import:
- operation: match - operation: match
pattern: '.*\.Alarm$' pattern: '.*\.Alarm$'
columns: columns:
name: # Columns prefixed with `a_` become attributes of <FTAlarmElement> in the
# XML file.
a_name:
translate: translate:
columns: tagname columns: tagname
operations: operations:
- operation: replace - operation: replace
pattern: '[^\w\d]' pattern: '[^\w\d]'
repl: "_" repl: "_"
latched: a_latched:
const: "false" const: "false"
ackRequired: a_ackRequired:
const: "true" const: "true"
style: a_style:
const: "Discrete" const: "Discrete"
DataItem: DataItem:
translate: translate:
@@ -36,8 +38,16 @@ import:
operations: operations:
- operation: radd - operation: radd
arg: "/::$path$" arg: "/::$path$"
DataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
Style: Style:
const: DiscreteTrue const: DiscreteTrue
Target:
const: ""
Severity: Severity:
translate: translate:
columns: tagname columns: tagname
@@ -47,8 +57,16 @@ import:
repl: ".AESeverity" repl: ".AESeverity"
- operation: radd - operation: radd
arg: "/::$path$" arg: "/::$path$"
SeverityPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
DelayInterval: DelayInterval:
const: 0 const: 0
Deadband:
const: ""
EnableTag: EnableTag:
const: "true" const: "true"
UserData: UserData:
@@ -72,8 +90,11 @@ import:
operations: operations:
- operation: regexmapping - operation: regexmapping
_file: $groupfile$ _file: $groupfile$
_column: 0
InAlarmDataItem: InAlarmDataItem:
const: "" const: ""
InAlarmDataItemPollGroup:
const: ""
DisabledDataItem: DisabledDataItem:
translate: translate:
columns: tagname columns: tagname
@@ -83,6 +104,12 @@ import:
repl: ".Disabled" repl: ".Disabled"
- operation: radd - operation: radd
arg: "/::$path$" arg: "/::$path$"
DisabledDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
AckedDataItem: AckedDataItem:
translate: translate:
columns: tagname columns: tagname
@@ -92,6 +119,12 @@ import:
repl: ".ACKN" repl: ".ACKN"
- operation: radd - operation: radd
arg: "/::$path$" arg: "/::$path$"
AckedDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
SuppressedDataItem: SuppressedDataItem:
translate: translate:
columns: tagname columns: tagname
@@ -101,6 +134,12 @@ import:
repl: ".Suppressed" repl: ".Suppressed"
- operation: radd - operation: radd
arg: "/::$path$" arg: "/::$path$"
SuppressedDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
ShelvedDataItem: ShelvedDataItem:
translate: translate:
columns: tagname columns: tagname
@@ -110,6 +149,44 @@ import:
repl: ".Shelve" repl: ".Shelve"
- operation: radd - operation: radd
arg: "/::$path$" 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: RemoteAckAllDataItem:
translate: translate:
columns: tagname columns: tagname
@@ -121,6 +198,52 @@ import:
arg: "/::$path$" arg: "/::$path$"
RemoteAckAllDataItemAutoReset: RemoteAckAllDataItemAutoReset:
const: "false" 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: RemoteDisableDataItem:
translate: translate:
columns: tagname columns: tagname
@@ -132,6 +255,12 @@ import:
arg: "/::$path$" arg: "/::$path$"
RemoteDisableDataItemAutoReset: RemoteDisableDataItemAutoReset:
const: "false" const: "false"
RemoteDisableDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
RemoteEnableDataItem: RemoteEnableDataItem:
translate: translate:
columns: tagname columns: tagname
@@ -143,6 +272,22 @@ import:
arg: "/::$path$" arg: "/::$path$"
RemoteEnableDataItemAutoReset: RemoteEnableDataItemAutoReset:
const: "false" 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: RemoteSuppressDataItem:
translate: translate:
columns: tagname columns: tagname
@@ -154,6 +299,12 @@ import:
arg: "/::$path$" arg: "/::$path$"
RemoteSuppressDataItemAutoReset: RemoteSuppressDataItemAutoReset:
const: "false" const: "false"
RemoteSuppressDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
RemoteUnSuppressDataItem: RemoteUnSuppressDataItem:
translate: translate:
columns: tagname columns: tagname
@@ -165,10 +316,18 @@ import:
arg: "/::$path$" arg: "/::$path$"
RemoteUnSuppressDataItemAutoReset: RemoteUnSuppressDataItemAutoReset:
const: "false" const: "false"
RemoteUnSuppressDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
RemoteShelveAllDataItem: RemoteShelveAllDataItem:
const: "" const: ""
RemoteShelveAllDataItemAutoReset: RemoteShelveAllDataItemAutoReset:
const: "false" const: "false"
RemoteShelveAllDataItemPollGroup:
const: ""
RemoteUnShelveDataItem: RemoteUnShelveDataItem:
translate: translate:
columns: tagname columns: tagname
@@ -180,6 +339,12 @@ import:
arg: "/::$path$" arg: "/::$path$"
RemoteUnShelveDataItemAutoReset: RemoteUnShelveDataItemAutoReset:
const: "false" const: "false"
RemoteUnShelveDataItemPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
RemoteShelveDuration: RemoteShelveDuration:
translate: translate:
columns: tagname columns: tagname
@@ -189,12 +354,19 @@ import:
repl: ".AEShelveDuration" repl: ".AEShelveDuration"
- operation: radd - operation: radd
arg: "/::$path$" arg: "/::$path$"
RemoteShelveDurationPollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
MessageID: MessageID:
translate: translate:
columns: tagname columns: tagname
operations: operations:
- operation: regexmapping - operation: regexmapping
_file: $messagefile$ _file: $messagefile$
_column: 0
Tag1: Tag1:
translate: translate:
columns: tagname columns: tagname
@@ -204,12 +376,45 @@ import:
repl: ".DESC" repl: ".DESC"
- operation: radd - operation: radd
arg: "/::$path$" arg: "/::$path$"
Tag1PollGroup:
translate:
columns: tagname
operations:
- operation: regexmapping
_file: $pollgroupfile$
Tag2: Tag2:
const: "" const: ""
Tag2PollGroup:
const: ""
Tag3: Tag3:
const: "" const: ""
Tag3PollGroup:
const: ""
Tag4: Tag4:
const: "" 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: export:
tagname: tagname:
translate: translate:

View File

@@ -47,6 +47,8 @@ $defs:
- regexmapping - regexmapping
_file: _file:
type: string type: string
_column:
type: integer
_default: _default:
default: null default: null
$ref: "#/$defs/scalar" $ref: "#/$defs/scalar"