143 lines
3.6 KiB
YAML
143 lines
3.6 KiB
YAML
$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:
|
|
columns:
|
|
command:
|
|
type: str
|
|
const: "&set"
|
|
tagname:
|
|
type: str
|
|
translate:
|
|
columns: tagname
|
|
operations:
|
|
- operation: radd
|
|
arg: Captions.$plc$.PLC.
|
|
value:
|
|
type: str
|
|
translate:
|
|
columns: tagname
|
|
operations:
|
|
- operation: replace
|
|
pattern: '^WA3252_([A-Z]+)_\d+_(\d+[A-Z]?)_?([A-Z]+\d?)?.*'
|
|
repl: '"\1 \2 \3"'
|
|
- operation: replace
|
|
pattern: (AFD|PMP)
|
|
repl: Pump
|
|
- operation: replace
|
|
pattern: MTR
|
|
repl: Motor
|
|
- operation: replace
|
|
pattern: (FCV|FV)
|
|
repl: Valve
|
|
- operation: replace
|
|
pattern: (\wIT|TT)
|
|
repl: ""
|
|
- operation: replace
|
|
pattern: CP
|
|
repl: Control Panel
|
|
- operation: replace
|
|
pattern: FLT
|
|
repl: Filter
|
|
- operation: replace
|
|
pattern: GEN
|
|
repl: Generator
|
|
- operation: replace
|
|
pattern: NET
|
|
repl: Network Panel
|
|
- operation: replace
|
|
pattern: LSH
|
|
repl: Level Switch High
|
|
- operation: replace
|
|
pattern: (?<!U)PS
|
|
repl: Pressure Switch
|
|
- operation: replace
|
|
pattern: REC
|
|
repl: Recloser
|
|
- operation: replace
|
|
pattern: SD
|
|
repl: Smoke Detector
|
|
- operation: replace
|
|
pattern: SPD
|
|
repl: Surge Protector
|
|
- operation: replace
|
|
pattern: "[TX]FR"
|
|
repl: Transformer
|
|
- operation: replace
|
|
pattern: SI
|
|
repl: Speed
|
|
- operation: replace
|
|
pattern: FI
|
|
repl: Flow
|
|
- operation: replace
|
|
pattern: ZI
|
|
repl: Position
|
|
- operation: replace
|
|
pattern: VI
|
|
repl: "Vibration "
|
|
- operation: replace
|
|
pattern: PI
|
|
repl: Pressure
|
|
- operation: replace
|
|
pattern: MY
|
|
repl: E-Stop
|
|
- operation: replace
|
|
pattern: UA
|
|
repl: MPR Alarm
|
|
- operation: replace
|
|
pattern: UY
|
|
repl: MPR Trip
|
|
- operation: replace
|
|
pattern: MF
|
|
repl: Motor Fault
|
|
- operation: replace
|
|
pattern: LH
|
|
repl: Level High
|
|
- operation: replace
|
|
pattern: XA
|
|
repl: Alarm
|
|
- operation: replace
|
|
pattern: ZF
|
|
repl: Valve Fault
|
|
- operation: replace
|
|
pattern: WH
|
|
repl: Overtorque
|
|
- operation: replace
|
|
pattern: LL
|
|
repl: Level Low
|
|
- operation: replace
|
|
pattern: PL(?!C) # Negative lookahead: PL not followed by C
|
|
repl: Pressure Low
|
|
- operation: replace
|
|
pattern: SH
|
|
repl: Overspeed
|
|
- operation: replace
|
|
pattern: TH
|
|
repl: Temp High
|
|
- operation: replace
|
|
pattern: TL
|
|
repl: Temp Low
|
|
- operation: replace
|
|
pattern: J[AF]
|
|
repl: Power Fail
|
|
export:
|
|
tagname:
|
|
translate:
|
|
columns: tagname
|
|
type:
|
|
const: ""
|
|
address:
|
|
const: ""
|
|
comment:
|
|
const: ""
|