Files

136 lines
2.5 KiB
YAML

$schema: >-
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/main/extensions/schema.yaml
format: csv
import:
filter:
columns:
- tagname
- type
- address
columns:
Tag Name:
type: str
translate:
columns: tagname
operations:
# Replace with an underscore any character that is not a letter,
# underscore, number, square bracket, or dot.
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: datatype
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: ""
Raw High:
type: float
const: ""
Scaled Low:
type: float
const: ""
Scaled High:
type: float
const: ""
Scaled Data Type:
type: str
enum:
- Boolean
- Char
- Byte
- Short
- Word
- Long
- DWord
- LongLong
- QWord
- Float
- Double
- String
const: ""
Clamp Low:
type: float
const: ""
Clamp High:
type: float
const: ""
Eng Units:
type: str
const: ""
Description:
type: str
translate:
columns: comment
Negate Value:
type: str
const: ""
export:
tagname:
translate:
columns: Tag Name
datatype:
translate:
columns: Data Type
operations:
operation: type_opcua_to_iec
address:
translate:
columns: Address
operations:
operation: address_modbus_to_iec
comment:
translate:
columns: Description