110 lines
3.0 KiB
YAML
110 lines
3.0 KiB
YAML
# Leonard WTP Alarm Severity Tag Set Macro
|
|
|
|
$schema: "\
|
|
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/\
|
|
main/src/AuDaGe/assets/schema.yaml
|
|
"
|
|
format:
|
|
name: csv
|
|
sep: " "
|
|
header: false
|
|
index: false
|
|
extension: mcr
|
|
quoting: 3 # No quoting
|
|
quotechar: null
|
|
escapechar: null
|
|
import:
|
|
filter:
|
|
columns: tagname
|
|
operations:
|
|
- operation: match
|
|
pattern: '\.AESeverity$'
|
|
columns:
|
|
command:
|
|
type: str
|
|
const: "&set"
|
|
tagname:
|
|
type: str
|
|
translate:
|
|
columns: tagname
|
|
operations:
|
|
- operation: radd
|
|
arg: $plc$.PLC.
|
|
value:
|
|
translate:
|
|
columns: tagname
|
|
operations:
|
|
- operation: replace
|
|
pattern: '.*?almPLCFault\.AESeverity$'
|
|
repl: "250"
|
|
- operation: replace
|
|
pattern: '.*?almBrokenLoop\.AESeverity$'
|
|
repl: "250"
|
|
- operation: replace
|
|
pattern: '.*?almHigh\.AESeverity$'
|
|
repl: "250"
|
|
- operation: replace
|
|
pattern: '.*?almHighHigh\.AESeverity$'
|
|
repl: "250"
|
|
- operation: replace
|
|
pattern: '.*?almLow\.AESeverity$'
|
|
repl: "250"
|
|
- operation: replace
|
|
pattern: '.*?almLowLow\.AESeverity$'
|
|
repl: "250"
|
|
- operation: replace
|
|
pattern: '.*?almOverRange\.AESeverity$'
|
|
repl: "250"
|
|
- operation: replace
|
|
pattern: '.*?almRateOfChange\.AESeverity$'
|
|
repl: "250"
|
|
- operation: replace
|
|
pattern: '.*?almUnderRange\.AESeverity$'
|
|
repl: "250"
|
|
- operation: replace
|
|
pattern: '.*?almFailToStrt\.AESeverity$'
|
|
repl: "250"
|
|
- operation: replace
|
|
pattern: '.*?almFailToStop\.AESeverity$'
|
|
repl: "250"
|
|
- operation: replace
|
|
pattern: '.*?almMotorFailure\.AESeverity$'
|
|
repl: "250"
|
|
- operation: replace
|
|
pattern: '.*?almSpeedDeviation\.AESeverity$'
|
|
repl: "250"
|
|
- operation: replace
|
|
pattern: '.*?almFailToClose\.AESeverity$'
|
|
repl: "250"
|
|
- operation: replace
|
|
pattern: '.*?almFailToOpen\.AESeverity$'
|
|
repl: "250"
|
|
- operation: replace
|
|
pattern: '.*?almPositionFailure\.AESeverity$'
|
|
repl: "250"
|
|
- operation: replace
|
|
pattern: '.*?almValveFailure\.AESeverity$'
|
|
repl: "250"
|
|
- operation: replace
|
|
pattern: '.*?almPLCFault\.AESeverity$'
|
|
repl: "250"
|
|
- operation: replace
|
|
pattern: '.*?MY\.Alarm\.AESeverity$'
|
|
repl: "1000"
|
|
- operation: replace
|
|
pattern: '.*?YA\.Alarm\.AESeverity$'
|
|
repl: "1000"
|
|
- operation: replace
|
|
pattern: '.*?\.Alarm\.AESeverity$'
|
|
repl: "250"
|
|
export:
|
|
tagname:
|
|
translate:
|
|
columns: tagname
|
|
type:
|
|
const: ""
|
|
address:
|
|
const: ""
|
|
comment:
|
|
const: ""
|