Files
AuDaGe/extensions/aveva_historian/xlsx.yaml
2026-11-04 16:28:06 -06:00

138 lines
2.5 KiB
YAML

$schema: "\
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/\
main/src/AuDaGe/assets/schema.yaml
"
format: csv
import:
filter:
columns:
- name
- type
- address
columns:
Tag Name:
type: str
translate:
columns: name
operations:
# Replace any character that is not a letter, underscore, number, or
# square bracket with an underscore.
operation: replace
pattern: '[^\w\d\[\]]'
repl: _
Address:
type: float
parse:
# Add a leading zero to one-digit bit addresses, e.g. 400001.1 ->
# 400001.01.
operation: replace
pattern: '\.(\d\"?,?)$'
repl: '.0\1'
translate:
columns: address
operations:
operation: address_iec_to_modbus
Data Type:
type: str
enum:
- Boolean
- Char
- Byte
- Short
- Word
- Long
- DWord
- LongLong
- QWord
- Float
- Double
- String
translate:
columns: type
operations:
operation: type_iec_to_opcua
Respect Data Type:
type: int
enum:
- 0
- 1
const: 1
Client Access:
type: str
enum:
- R
- W
- R/W
const: R/W
Scan Rate:
type: int
const: 1000
Scaling:
type: str
enum:
- ""
- Linear
- Square Root
const: ""
Raw Low:
type: float
const: nan
Raw High:
type: float
const: nan
Scaled Low:
type: float
const: nan
Scaled High:
type: float
const: nan
Scaled Data Type:
type: str
enum:
- Boolean
- Char
- Byte
- Short
- Word
- Long
- DWord
- LongLong
- QWord
- Float
- Double
- String
const: ""
Clamp Low:
type: float
const: nan
Clamp High:
type: float
const: nan
Eng Units:
type: str
const: ""
Description:
type: str
translate:
columns: comment
Negate Value:
type: str
const: nan
export:
tagname:
translate:
columns: Tag Name
type:
translate:
columns: Data Type
operations:
operation: type_opcua_to_iec
address:
translate:
columns: Address
operations:
operation: address_modbus_to_iec
comment:
translate:
columns: Description