Reorganize schema file and assets folders.
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
$schema: "\
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/\
|
||||
main/src/AuDaGe/assets/schema.yaml
|
||||
"
|
||||
$schema: >-
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/main/extensions/schema.yaml
|
||||
format: xlsx
|
||||
import:
|
||||
filter:
|
||||
columns:
|
||||
- name
|
||||
columns: name
|
||||
columns:
|
||||
Selected(x):
|
||||
const: x
|
||||
|
||||
1070
extensions/controlexpert/assets/builtins.xsy
Normal file
1070
extensions/controlexpert/assets/builtins.xsy
Normal file
File diff suppressed because it is too large
Load Diff
41
extensions/controlexpert/assets/flatten_datablock.xslt
Normal file
41
extensions/controlexpert/assets/flatten_datablock.xslt
Normal file
@@ -0,0 +1,41 @@
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<!--
|
||||
Flatten a ControlExpert XSY file so that it can be read by pandas.
|
||||
|
||||
Copyright 2026 Prime Controls. All rights reserved.
|
||||
-->
|
||||
<xsl:output encoding="utf8" method="xml" omit-xml-declaration="no" indent="yes" />
|
||||
|
||||
<xsl:template match="/VariablesExchangeFile">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="dataBlock" />
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="dataBlock">
|
||||
<xsl:apply-templates select="variables" />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="variables">
|
||||
<xsl:copy>
|
||||
<tagname>
|
||||
<xsl:value-of select="@name" />
|
||||
</tagname>
|
||||
<type>
|
||||
<xsl:value-of select="@typeName" />
|
||||
</type>
|
||||
<address>
|
||||
<xsl:value-of select="@topologicalAddress" />
|
||||
</address>
|
||||
<comment>
|
||||
<xsl:value-of select="comment" />
|
||||
</comment>
|
||||
<parent />
|
||||
<bitrank />
|
||||
<save>
|
||||
<xsl:value-of select="attribute/@Save" />
|
||||
</save>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
58
extensions/controlexpert/assets/flatten_ddtsource.xslt
Normal file
58
extensions/controlexpert/assets/flatten_ddtsource.xslt
Normal file
@@ -0,0 +1,58 @@
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<!--
|
||||
Flatten a ControlExpert XSY file so that it can be read by pandas.
|
||||
|
||||
Copyright 2026 Prime Controls. All rights reserved.
|
||||
-->
|
||||
|
||||
<xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'" />
|
||||
<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
|
||||
|
||||
<xsl:output encoding="utf8" method="xml" omit-xml-declaration="no" indent="yes" />
|
||||
|
||||
<xsl:template match="/VariablesExchangeFile">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="DDTSource" />
|
||||
<xsl:apply-templates select="FBSource" />
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="DDTSource">
|
||||
<xsl:apply-templates select="structure/variables" />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="structure/variables">
|
||||
<xsl:copy>
|
||||
<tagname>
|
||||
<xsl:value-of select="@name" />
|
||||
</tagname>
|
||||
<type>
|
||||
<xsl:value-of select="translate(@typeName, $lowercase, $uppercase)" />
|
||||
</type>
|
||||
<address />
|
||||
<comment><xsl:value-of select="../../comment" />: <xsl:value-of select="comment" /></comment>
|
||||
<parent>
|
||||
<xsl:value-of select="translate(../../@DDTName, $lowercase, $uppercase)" />
|
||||
</parent>
|
||||
<bitrank>
|
||||
<xsl:for-each select="attribute">
|
||||
<xsl:if test="@name='ExtractBit'">
|
||||
<xsl:value-of select="@value" />
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</bitrank>
|
||||
<save />
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="FBSource">
|
||||
<xsl:copy>
|
||||
<name>NULL</name>
|
||||
<parent>
|
||||
<xsl:value-of select="translate(@nameOfFBType, $lowercase, $uppercase)" />
|
||||
</parent>
|
||||
<type>DFB</type>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
@@ -1,7 +1,5 @@
|
||||
$schema: "\
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/\
|
||||
main/src/AuDaGe/assets/schema.yaml
|
||||
"
|
||||
$schema: >-
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/main/extensions/schema.yaml
|
||||
format:
|
||||
name: xsy
|
||||
import:
|
||||
|
||||
2734
extensions/factorytalk/alarms_events/assets/FTAE_Alarm_Export.xslt
Normal file
2734
extensions/factorytalk/alarms_events/assets/FTAE_Alarm_Export.xslt
Normal file
File diff suppressed because it is too large
Load Diff
500
extensions/factorytalk/alarms_events/assets/FTLDDAlarms.xsd
Normal file
500
extensions/factorytalk/alarms_events/assets/FTLDDAlarms.xsd
Normal file
@@ -0,0 +1,500 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<xs:schema xmlns="urn://www.factorytalk.net/schema/2003/FTLDDAlarms.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
targetNamespace="urn://www.factorytalk.net/schema/2003/FTLDDAlarms.xsd" elementFormDefault="qualified"
|
||||
attributeFormDefault="unqualified" version="1.0">
|
||||
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="FTLLDDXml.xsd" />
|
||||
|
||||
<xs:simpleType name="NonEmptyString">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
|
||||
<!-- Alarm Operation types -->
|
||||
<xs:simpleType name="OperationType">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="WriteConfig" />
|
||||
<xs:enumeration value="WriteMsg" />
|
||||
<xs:enumeration value="WriteAlarmGroup" />
|
||||
<xs:enumeration value="SetServerName" />
|
||||
<xs:enumeration value="SetDAPollGroups" />
|
||||
<xs:enumeration value="SetLanguages" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- Poll Group values -->
|
||||
<xs:simpleType name="PollGroupValues">
|
||||
<xs:restriction base="xs:decimal">
|
||||
<xs:enumeration value="0.10" />
|
||||
<xs:enumeration value="0.25" />
|
||||
<xs:enumeration value="0.50" />
|
||||
<xs:enumeration value="1" />
|
||||
<xs:enumeration value="2" />
|
||||
<xs:enumeration value="5" />
|
||||
<xs:enumeration value="10" />
|
||||
<xs:enumeration value="20" />
|
||||
<xs:enumeration value="30" />
|
||||
<xs:enumeration value="60" />
|
||||
<xs:enumeration value="120" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- alarm styles -->
|
||||
<xs:simpleType name="AlarmStyle">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Discrete" />
|
||||
<xs:enumeration value="MultiLevel" />
|
||||
<xs:enumeration value="Deviation" />
|
||||
<xs:enumeration value="Event" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- event styles -->
|
||||
<xs:simpleType name="EventStyle">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="DiscreteTrue" />
|
||||
<xs:enumeration value="DiscreteFalse" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- discrete styles -->
|
||||
<xs:simpleType name="DiscreteStyle">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="DiscreteTrue" />
|
||||
<xs:enumeration value="DiscreteFalse" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- comparison operators -->
|
||||
<xs:simpleType name="ComparisonOperator">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="=" />
|
||||
<xs:enumeration value="<>" />
|
||||
<xs:enumeration value="<=" />
|
||||
<xs:enumeration value="<" />
|
||||
<xs:enumeration value=">" />
|
||||
<xs:enumeration value=">=" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- Remote Ack Reset values -->
|
||||
<xs:simpleType name="RemoteAckResetValues">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="true" />
|
||||
<xs:enumeration value="false" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- delay intervals -->
|
||||
<xs:simpleType name="DelayInterval">
|
||||
<xs:restriction base="xs:integer">
|
||||
<xs:minInclusive value="0" />
|
||||
<xs:maxInclusive value="600" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- Target types -->
|
||||
<xs:simpleType name="TargetTypes">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="DataItem" />
|
||||
<xs:enumeration value="Constant" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- severity range -->
|
||||
<xs:simpleType name="SeverityRange">
|
||||
<xs:restriction base="xs:string">
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- deadband units -->
|
||||
<xs:simpleType name="DeadbandUnits">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Constant" />
|
||||
<xs:enumeration value="None" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- delta types -->
|
||||
<xs:simpleType name="DeltaTypes">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Constant" />
|
||||
<xs:enumeration value="Percent" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- deadband -->
|
||||
<xs:complexType name="Deadband">
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string">
|
||||
<xs:attribute name="units" type="DeadbandUnits" use="required" />
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
<!-- Remote Ack Type-->
|
||||
<xs:complexType name="RemoteCtrlType">
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string">
|
||||
<xs:attribute name="AutoReset" type="RemoteAckResetValues" use="required" />
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
<!-- Param typed -->
|
||||
<xs:complexType name="ParamType">
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string">
|
||||
<xs:attribute name="key" type="xs:string" use="required" />
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
<!-- Params type -->
|
||||
<xs:complexType name="ParamsType">
|
||||
<xs:sequence>
|
||||
<xs:element name="Param" type="ParamType" minOccurs="0" maxOccurs="6" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<!-- deviation style -->
|
||||
<xs:simpleType name="DeviationStyle">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="DEVLO" />
|
||||
<xs:enumeration value="DEVHI" />
|
||||
<xs:enumeration value="DEVHILO" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- condition type -->
|
||||
<xs:simpleType name="ConditionType">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="LOLO" />
|
||||
<xs:enumeration value="LO" />
|
||||
<xs:enumeration value="HIHI" />
|
||||
<xs:enumeration value="HI" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- target-->
|
||||
<xs:complexType name="Target">
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string">
|
||||
<xs:attribute name="type" type="TargetTypes" />
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
<!-- delta type -->
|
||||
<xs:complexType name="DeltaType">
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string">
|
||||
<xs:attribute name="units" type="DeltaTypes" />
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
<!-- message type -->
|
||||
<xs:complexType name="MessageType">
|
||||
<xs:sequence>
|
||||
<xs:element name="Msgs">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Msg" maxOccurs="unbounded">
|
||||
<xs:complexType mixed="true">
|
||||
<xs:attribute ref="xml:lang" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="id" use="required">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:nonNegativeInteger">
|
||||
<xs:minInclusive value="1"/>
|
||||
<xs:maxInclusive value="2147483647"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
</xs:complexType>
|
||||
<!-- MessageRef -->
|
||||
<xs:complexType name="MessageRef">
|
||||
<xs:sequence>
|
||||
<xs:element name="Params" type="ParamsType" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
<xs:attribute name="id" type="xs:nonNegativeInteger" use="required" />
|
||||
</xs:complexType>
|
||||
<!-- GroupType -->
|
||||
<xs:complexType name="GroupType">
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string">
|
||||
<xs:attribute name="id" type="xs:positiveInteger" use="required" />
|
||||
<xs:attribute name="parentID" type="xs:nonNegativeInteger" use="required" />
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
<!-- handshake tags -->
|
||||
<xs:complexType name="EventHandshakeType">
|
||||
<xs:sequence>
|
||||
<xs:element name="InAlarmDataItem" type="xs:string" />
|
||||
<xs:element name="DisabledDataItem" type="xs:string" />
|
||||
<xs:element name="SuppressedDataItem" type="xs:string" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="HandshakeType">
|
||||
<xs:sequence>
|
||||
<xs:element name="InAlarmDataItem" type="xs:string" />
|
||||
<xs:element name="DisabledDataItem" type="xs:string" />
|
||||
<xs:element name="AckedDataItem" type="xs:string" />
|
||||
<xs:element name="SuppressedDataItem" type="xs:string" />
|
||||
<xs:element name="ShelvedDataItem" type="xs:string" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="DeviationHandshakeType">
|
||||
<xs:sequence>
|
||||
<xs:element name="InAlarmHiDataItem" type="xs:string" />
|
||||
<xs:element name="InAlarmLoDataItem" type="xs:string" />
|
||||
<xs:element name="DisabledDataItem" type="xs:string" />
|
||||
<xs:element name="AckedHiDataItem" type="xs:string" />
|
||||
<xs:element name="AckedLoDataItem" type="xs:string" />
|
||||
<xs:element name="SuppressedDataItem" type="xs:string" />
|
||||
<xs:element name="ShelvedHiDataItem" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="ShelvedLoDataItem" type="xs:string" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="MultiLevelsHandshakeType">
|
||||
<xs:sequence>
|
||||
<xs:element name="DisabledDataItem" type="xs:string" />
|
||||
<xs:element name="SuppressedDataItem" type="xs:string" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="MultiLevelHandshakeType">
|
||||
<xs:sequence>
|
||||
<xs:element name="InAlarmDataItem" type="xs:string" />
|
||||
<xs:element name="AckedDataItem" type="xs:string" />
|
||||
<xs:element name="ShelvedDataItem" type="xs:string" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:simpleType name="MessageIDType">
|
||||
<xs:restriction base="xs:nonNegativeInteger">
|
||||
<xs:minInclusive value="0"/>
|
||||
<xs:maxInclusive value="2147483647"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="GroupIDType">
|
||||
<xs:restriction base="xs:nonNegativeInteger">
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<!-- FTAeAlarmStore -->
|
||||
<xs:element name="FTAeAlarmStore">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="DetectorStyle" type="xs:string" minOccurs="0" default="FTAeLiveDataDetector" />
|
||||
<xs:element name="SequenceNumber" type="xs:unsignedLong" minOccurs="0" />
|
||||
<xs:element name="Version" type="xs:string" />
|
||||
<xs:element name="Commands">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="FTAeDetectorCommand" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Operation" type="OperationType" />
|
||||
<xs:choice>
|
||||
<xs:element name="ServerName" type="xs:string" minOccurs="0"></xs:element>
|
||||
<xs:element name="Language" minOccurs="0" maxOccurs="20">
|
||||
<xs:complexType mixed="true">
|
||||
<xs:attribute ref="xml:lang" use="optional" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<!-- PollGroups -->
|
||||
<xs:element name="PollGroups">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="PollGroupTags" minOccurs="0" maxOccurs="20">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Tag" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string" />
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="rate" type="PollGroupValues" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<!--Messages -->
|
||||
<xs:element name="Messages">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Message" type="MessageType" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<!--Groups -->
|
||||
<xs:element name="Groups">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Group" type="GroupType" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<!-- FTAlarmElemenets -->
|
||||
<xs:element name="FTAlarmElements">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="FTAlarmElement" minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:choice>
|
||||
<xs:element name="EventElement" minOccurs="0">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="DataItem" type="xs:string" />
|
||||
<xs:element name="Style" type="EventStyle" />
|
||||
<xs:element name="Target" type="Target" />
|
||||
<xs:element name="DelayInterval" type="DelayInterval" />
|
||||
<xs:element name="Deadband" type="Deadband" />
|
||||
<xs:element name="UserData" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="RSVCmd" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="AlarmClass" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="GroupID" type="GroupIDType" minOccurs="0" maxOccurs="1" />
|
||||
<xs:element name="EventHandshakeTags" type="EventHandshakeType" minOccurs="0" />
|
||||
<xs:element name="RemoteDisableDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteEnableDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteResetDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteSuppressDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteUnSuppressDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="MessageID" type="MessageIDType" minOccurs="1" maxOccurs="unbounded" />
|
||||
<xs:element name="Params" type="ParamsType" minOccurs="1" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="DiscreteElement" minOccurs="0">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="DataItem" type="xs:string" />
|
||||
<xs:element name="Style" type="DiscreteStyle" />
|
||||
<xs:element name="Severity" type="SeverityRange" />
|
||||
<xs:element name="DelayInterval" type="DelayInterval" />
|
||||
<xs:element name="EnableTag" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="UserData" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="RSVCmd" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="AlarmClass" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="GroupID" type="GroupIDType" minOccurs="0" maxOccurs="1" />
|
||||
<xs:element name="HandshakeTags" type="HandshakeType" minOccurs="0" />
|
||||
<xs:element name="RemoteAckAllDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteDisableDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteEnableDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteSuppressDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteUnSuppressDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteShelveAllDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteUnShelveDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteShelveDuration" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="MessageID" type="MessageIDType" minOccurs="1" maxOccurs="unbounded" />
|
||||
<xs:element name="Params" type="ParamsType" minOccurs="1" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="DeviationElement" minOccurs="0">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="SourceDataItem" type="xs:string" />
|
||||
<xs:element name="Style" type="DeviationStyle" />
|
||||
<xs:element name="Severity" type="SeverityRange" />
|
||||
<xs:element name="DelayInterval" type="DelayInterval" />
|
||||
<xs:element name="Target" type="Target" />
|
||||
<xs:element name="Delta" type="DeltaType" />
|
||||
<xs:element name="Deadband" type="Deadband" />
|
||||
<xs:element name="EnableTag" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="UserData" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="RSVCmd" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="AlarmClass" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="GroupID" type="GroupIDType" minOccurs="0" maxOccurs="1" />
|
||||
<xs:element name="DeviationHandshakeTags" type="DeviationHandshakeType" minOccurs="0" />
|
||||
<xs:element name="RemoteAckAllDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteAckHiDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteAckLoDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteDisableDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteEnableDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteSuppressDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteUnSuppressDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteShelveAllDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteShelveHiDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteShelveLoDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteUnShelveDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteShelveDuration" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="Deviations">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Deviation" maxOccurs="2">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Comparison" type="ComparisonOperator" />
|
||||
<xs:element name="MessageID" type="MessageIDType" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Params" type="ParamsType" minOccurs="1" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="MultiLevelElement">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="SourceDataItem" type="xs:string" />
|
||||
<xs:element name="DelayInterval" type="DelayInterval" />
|
||||
<xs:element name="Deadband" type="Deadband" />
|
||||
<xs:element name="EnableTag" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="UserData" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="RSVCmd" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="AlarmClass" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="GroupID" type="GroupIDType" minOccurs="0" maxOccurs="1" />
|
||||
<xs:element name="MultiLevelHandshakeTags" type="MultiLevelsHandshakeType" minOccurs="0" />
|
||||
<xs:element name="RemoteAckAllDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteDisableDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteEnableDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteSuppressDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteUnSuppressDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteShelveAllDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteUnShelveDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteShelveDuration" type="xs:string" minOccurs="0" />
|
||||
<xs:element name="Levels">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Level" maxOccurs="4">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Target" type="Target" />
|
||||
<xs:element name="Severity" type="SeverityRange" />
|
||||
<xs:element name="ApplyDuration" type="xs:boolean" minOccurs="0" />
|
||||
<xs:element name="ConditionType" type="ConditionType" />
|
||||
<xs:element name="Comparison" type="ComparisonOperator" />
|
||||
<xs:element name="MultiLevelLevelHandshakeTags" type="MultiLevelHandshakeType" minOccurs="0" />
|
||||
<xs:element name="RemoteAckLevelDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="RemoteShelveLevelDataItem" type="RemoteCtrlType" minOccurs="0" />
|
||||
<xs:element name="MessageID" type="MessageIDType" minOccurs="1" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Params" type="ParamsType" minOccurs="0" maxOccurs="unbounded" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="name" type="NonEmptyString" />
|
||||
<xs:attribute name="inuse" type="NonEmptyString" />
|
||||
<xs:attribute name="latched" type="xs:boolean" />
|
||||
<xs:attribute name="ackRequired" type="xs:boolean" />
|
||||
<xs:attribute name="style" type="AlarmStyle" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="shelveMaxValue" type="xs:positiveInteger" use="optional" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="style" type="xs:string" />
|
||||
<xs:attribute name="version" type="xs:string" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
14
extensions/factorytalk/alarms_events/assets/FTLLDDXml.xsd
Normal file
14
extensions/factorytalk/alarms_events/assets/FTLLDDXml.xsd
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en">
|
||||
<xs:attribute name="lang">
|
||||
<xs:simpleType>
|
||||
<xs:union memberTypes="xs:language">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="es-ES_tradnl"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:union>
|
||||
</xs:simpleType>
|
||||
</xs:attribute>
|
||||
</xs:schema>
|
||||
Binary file not shown.
Binary file not shown.
7
extensions/factorytalk/alarms_events/assets/ftae.xslt
Normal file
7
extensions/factorytalk/alarms_events/assets/ftae.xslt
Normal file
@@ -0,0 +1,7 @@
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<!--
|
||||
Convert a pandas dataframe to a FactoryTalk Alarm & Events XML file.
|
||||
|
||||
Copyright 2026 Prime Controls. All rights reserved.
|
||||
-->
|
||||
</xsl:stylesheet>
|
||||
115
extensions/factorytalk/alarms_events/assets/groups.yaml
Normal file
115
extensions/factorytalk/alarms_events/assets/groups.yaml
Normal file
@@ -0,0 +1,115 @@
|
||||
patterns:
|
||||
DataItem:
|
||||
pattern: .*
|
||||
sub: .*
|
||||
Severity:
|
||||
pattern: .*
|
||||
sub: .*
|
||||
groups:
|
||||
Lake:
|
||||
_pattern: .*
|
||||
Intake:
|
||||
_pattern: .*
|
||||
IntakeTower: .*
|
||||
LakeIntakeOxygen: .*
|
||||
ServiceSpillway: .*
|
||||
PumpStation:
|
||||
_pattern: .*
|
||||
RWPS: .*
|
||||
RWPSMeterVault: .*
|
||||
Plant:
|
||||
_pattern: .*
|
||||
PlantInfluent:
|
||||
_pattern: .*
|
||||
TSR: .*
|
||||
InfluentPS: .*
|
||||
RWChemistry: .*
|
||||
Pretreatment:
|
||||
_pattern: .*
|
||||
RapidMix: .*
|
||||
FloccBasins: .*
|
||||
SedBasins:
|
||||
_pattern: .*
|
||||
SludgeCollectors: .*
|
||||
Ozone:
|
||||
_pattern: .*
|
||||
OzoneDisinfection:
|
||||
_pattern: .*
|
||||
OzoneInjection: .*
|
||||
OzoneContactors: .*
|
||||
LOX: .*
|
||||
OzoneGeneration:
|
||||
_pattern: .*
|
||||
OzoneGenerators: .*
|
||||
CoolingWater: .*
|
||||
OzoneDestruction: .*
|
||||
OzoneAmbientAnalyzers: .*
|
||||
Filters:
|
||||
_pattern: .*
|
||||
FilterInfluent: .*
|
||||
Filter1: .*
|
||||
Filter2: .*
|
||||
Filter3: .*
|
||||
Filter4: .*
|
||||
Filter5: .*
|
||||
Filter6: .*
|
||||
Filter7: .*
|
||||
Filter8: .*
|
||||
Filter9: .*
|
||||
Filter10: .*
|
||||
Filter11: .*
|
||||
Filter12: .*
|
||||
FilterAirCompressors: .*
|
||||
FilterBlowers: .*
|
||||
FilterEffluent: .*
|
||||
FilterBackwash: .*
|
||||
FinishedWater:
|
||||
_pattern: .*
|
||||
BoosterPS: .*
|
||||
ChlorineContactBasins: .*
|
||||
Clearwells: .*
|
||||
HSPS: .*
|
||||
Reclaim:
|
||||
_pattern: .*
|
||||
ProcessDrainPS1: .*
|
||||
ProcessDrainPS2: .*
|
||||
ProcessDrainPS3: .*
|
||||
ReclaimBasins: .*
|
||||
ReclaimPS: .*
|
||||
UnderDrainPS: .*
|
||||
Sludge:
|
||||
_pattern: .*
|
||||
UnthickenedSludgePS: .*
|
||||
GravityThickeners: .*
|
||||
ThickenedSludgePS: .*
|
||||
SludgeLagoons: .*
|
||||
Chemicals:
|
||||
_pattern: .*
|
||||
NorthChemical:
|
||||
_pattern: .*
|
||||
CationicPolymer: .*
|
||||
Chlorine: .*
|
||||
ChlorineScrubbers: .*
|
||||
SodiumChlorite: .*
|
||||
EastChemical:
|
||||
_pattern: .*
|
||||
AnionicPolymer: .*
|
||||
FerricSulfate: .*
|
||||
Lime: .*
|
||||
SulfuricAcid: .*
|
||||
WestChemical:
|
||||
_pattern: .*
|
||||
AmmoniumSulfate: .*
|
||||
CalciumThiosulfate: .*
|
||||
HFSA: .*
|
||||
NonionicPolymer: .*
|
||||
PhosphoricAcid: .*
|
||||
SodiumHydroxide: .*
|
||||
OperationsBldg: .*
|
||||
MaintenanceBldg: .*
|
||||
SCADA:
|
||||
_pattern: .*
|
||||
Comms: .*
|
||||
Generators: .*
|
||||
Panels: .*
|
||||
Servers: .*
|
||||
@@ -1,4 +1,2 @@
|
||||
$schema: "\
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/\
|
||||
main/src/AuDaGe/assets/schema.yaml
|
||||
"
|
||||
$schema: >-
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/main/extensions/schema.yaml
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
# Leonard WTP Alarm Severity Tag Set Macro
|
||||
|
||||
$schema: "\
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/\
|
||||
main/src/AuDaGe/assets/schema.yaml
|
||||
"
|
||||
$schema: >-
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/main/extensions/schema.yaml
|
||||
format:
|
||||
name: csv
|
||||
sep: " "
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
$schema: "\
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/\
|
||||
main/src/AuDaGe/assets/schema.yaml
|
||||
"
|
||||
$schema: >-
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/main/extensions/schema.yaml
|
||||
format:
|
||||
name: csv
|
||||
sep: " "
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
$schema: "\
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/\
|
||||
main/src/AuDaGe/assets/schema.yaml
|
||||
"
|
||||
$schema: >-
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/main/extensions/schema.yaml
|
||||
format:
|
||||
name: csv
|
||||
sep: " "
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
$schema: "\
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/\
|
||||
main/src/AuDaGe/assets/schema.yaml
|
||||
"
|
||||
$schema: >-
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/main/extensions/schema.yaml
|
||||
format:
|
||||
name: csv
|
||||
sep: " "
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
$schema: "\
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/\
|
||||
main/src/AuDaGe/assets/schema.yaml
|
||||
"
|
||||
$schema: >-
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/main/extensions/schema.yaml
|
||||
format:
|
||||
name: csv
|
||||
sep: " "
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
$schema: "\
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/\
|
||||
main/src/AuDaGe/assets/schema.yaml
|
||||
"
|
||||
$schema: >-
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/main/extensions/schema.yaml
|
||||
format:
|
||||
name: csv
|
||||
sep: " "
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
$schema: "\
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/\
|
||||
main/src/AuDaGe/assets/schema.yaml
|
||||
main/extensions/schema.yaml
|
||||
"
|
||||
format: csv
|
||||
import:
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
$schema: "\
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/\
|
||||
main/src/AuDaGe/assets/schema.yaml
|
||||
"
|
||||
$schema: >-
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/main/extensions/schema.yaml
|
||||
format:
|
||||
name: csv
|
||||
export:
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
$schema: "\
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/\
|
||||
main/src/AuDaGe/assets/schema.yaml
|
||||
"
|
||||
$schema: >-
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/main/extensions/schema.yaml
|
||||
format:
|
||||
name: csv
|
||||
export:
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
$schema: "\
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/\
|
||||
main/src/AuDaGe/assets/schema.yaml
|
||||
"
|
||||
$schema: >-
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/main/extensions/schema.yaml
|
||||
format:
|
||||
name: csv
|
||||
export:
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
$schema: "\
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/\
|
||||
main/src/AuDaGe/assets/schema.yaml
|
||||
"
|
||||
$schema: >-
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/main/extensions/schema.yaml
|
||||
format:
|
||||
name: csv
|
||||
export:
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
$schema: "\
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/\
|
||||
main/src/AuDaGe/assets/schema.yaml
|
||||
"
|
||||
$schema: >-
|
||||
https://primegit.primecontrols-dev.com/j.lucas/AuDaGe/raw/branch/main/extensions/schema.yaml
|
||||
format:
|
||||
name: csv
|
||||
export:
|
||||
|
||||
337
extensions/schema.yaml
Normal file
337
extensions/schema.yaml
Normal file
@@ -0,0 +1,337 @@
|
||||
$schema: https://yaml-schema.net/yaml-schema.yaml
|
||||
title: AuDaGe Extension Schema
|
||||
description: Schema for extensions to AuDaGe.
|
||||
|
||||
# Definitions
|
||||
$defs:
|
||||
exportColumn:
|
||||
type: object
|
||||
minProperties: 1
|
||||
additionalProperties: false
|
||||
properties:
|
||||
const:
|
||||
$ref: "#/$defs/scalar"
|
||||
translate:
|
||||
$ref: "#/$defs/translate"
|
||||
formatNames:
|
||||
enum:
|
||||
- csv
|
||||
- xml
|
||||
- xlsx
|
||||
- xsy
|
||||
formatExtension:
|
||||
description: >-
|
||||
The file extension to save files with. The value of `name` is used if
|
||||
`extension` is not provided.
|
||||
type: string
|
||||
operation:
|
||||
description: >-
|
||||
An operation to perform on a value to convert it from one format to
|
||||
another.
|
||||
oneOf:
|
||||
# Mapping
|
||||
- description: >-
|
||||
Map one set of values to another. Returns the value of the `_default`
|
||||
property if no other key matches. For `regexmapping`, the mapping keys
|
||||
are treated as regular expressions.
|
||||
type: object
|
||||
required:
|
||||
- operation
|
||||
minProperties: 2
|
||||
additionalProperties:
|
||||
$ref: "#/$defs/scalar"
|
||||
properties:
|
||||
operation:
|
||||
enum:
|
||||
- mapping
|
||||
- regexmapping
|
||||
_default:
|
||||
default: null
|
||||
$ref: "#/$defs/scalar"
|
||||
# Math, Logic & Predefined Functions
|
||||
- description: >-
|
||||
Mathematical operations and pre-defined functions to be applied to the
|
||||
value.
|
||||
type: object
|
||||
required:
|
||||
- operation
|
||||
additionalProperties: false
|
||||
properties:
|
||||
operation:
|
||||
enum:
|
||||
# a = value
|
||||
# b = arg, args[0], kwargs["b"], or 1/True* in order of priority.
|
||||
# * Unless specified otherwise.
|
||||
- not
|
||||
- and
|
||||
- or
|
||||
- xor
|
||||
- add # a + b
|
||||
- radd # b + a (for concatenating strings/iterables)
|
||||
- sub # a - b
|
||||
- rsub # b - a
|
||||
- mul # a * b
|
||||
- rmul # b * a (for repeating strings/iterables)
|
||||
- div # a / b
|
||||
- rdiv # b / a
|
||||
- mod # a % b
|
||||
- rmod # b % a
|
||||
- pow # a ** b, default b = 2
|
||||
- exp # b ** a, default b = math.e
|
||||
- log # log_b(a), default b = math.e
|
||||
- rlog # log_a(b)
|
||||
- ceil # round up to integer
|
||||
- floor # round down to integer
|
||||
- round # round `a` to `b` decimal places, default b = 0
|
||||
- rround # round `b` to `a` decimal places
|
||||
- address_iec_to_modbus
|
||||
- address_modbus_to_iec
|
||||
- type_iec_to_opcua
|
||||
- type_opcua_to_iec
|
||||
# format the value `a` according the format spec `b`,
|
||||
# default b = "d"
|
||||
- format
|
||||
- rformat # format the value `b` according the format spec `a`
|
||||
- index # return the index of the current row
|
||||
arg:
|
||||
description: One positional argument.
|
||||
$ref: "#/$defs/scalar"
|
||||
args:
|
||||
description: List of positional arguments.
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/$defs/scalar"
|
||||
kwargs:
|
||||
description: Keyword arguments.
|
||||
type: object
|
||||
# Python function
|
||||
- description: >-
|
||||
A custom Python function that accepts either one scalar or iterable
|
||||
argument and returns a value. This option allows execution of
|
||||
arbitrary code and is disabled by default.
|
||||
type: object
|
||||
required:
|
||||
- operation
|
||||
- code
|
||||
additionalProperties: false
|
||||
properties:
|
||||
operation:
|
||||
const: python
|
||||
code:
|
||||
description: >-
|
||||
A Python function definition with zero or one arguments, a
|
||||
docstring, and at least one return statement.
|
||||
type: string
|
||||
pattern: 'def \w+\(\w*\)( -> \w+)?:\r?\n """.+?"""\r?\n(( )+.*?\r?\n)*?( )+return .+?\r?\n(( )+.*?\r?\n)*?'
|
||||
# Regex substitution
|
||||
- description: A regular expression substitution.
|
||||
type: object
|
||||
required:
|
||||
- operation
|
||||
- pattern
|
||||
additionalProperties: false
|
||||
properties:
|
||||
operation:
|
||||
enum:
|
||||
- match
|
||||
- rmatch
|
||||
- replace
|
||||
- rreplace
|
||||
pattern:
|
||||
type: string
|
||||
repl:
|
||||
type: string
|
||||
default: ""
|
||||
- description: >-
|
||||
A reverse regular expression substitution (the primary argument is the
|
||||
replacement rather than the original string).
|
||||
type: object
|
||||
required:
|
||||
- operation
|
||||
- pattern
|
||||
additionalProperties: false
|
||||
properties:
|
||||
operation:
|
||||
const: rregex
|
||||
pattern:
|
||||
type: string
|
||||
string:
|
||||
type: string
|
||||
scalar:
|
||||
anyOf:
|
||||
- type: boolean
|
||||
- type: integer
|
||||
- type: number
|
||||
- type: string
|
||||
- type: "null"
|
||||
translate:
|
||||
type: object
|
||||
required:
|
||||
- columns
|
||||
additionalProperties: false
|
||||
properties:
|
||||
columns:
|
||||
description: >-
|
||||
One or more column names from the source dataframe to use to
|
||||
generate the value for this column.
|
||||
oneOf:
|
||||
- type: string
|
||||
- type: array
|
||||
minItems: 1
|
||||
items:
|
||||
type: string
|
||||
operations:
|
||||
description: >-
|
||||
Operations to perform on the raw value(s) to generate the value
|
||||
for this column.
|
||||
oneOf:
|
||||
- type: object
|
||||
$ref: "#/$defs/operation"
|
||||
- type: array
|
||||
minItems: 1
|
||||
items:
|
||||
$ref: "#/$defs/operation"
|
||||
|
||||
# Schema
|
||||
type: object
|
||||
required:
|
||||
- $schema
|
||||
- format
|
||||
- import
|
||||
- export
|
||||
additionalProperties: false
|
||||
properties:
|
||||
$schema:
|
||||
type: string
|
||||
format:
|
||||
description: >-
|
||||
The file format used for storing the data handled by this extension.
|
||||
oneOf:
|
||||
# Just the format name as a string.
|
||||
- $ref: "#/$defs/formatNames"
|
||||
# Just a `name` property.
|
||||
- type: object
|
||||
required:
|
||||
- name
|
||||
additionalProperties: false
|
||||
properties:
|
||||
name:
|
||||
description: >-
|
||||
The name of the file format. Must be one of: [csv, xslx, xml].
|
||||
$ref: "#/$defs/formatNames"
|
||||
# CSV with options.
|
||||
- type: object
|
||||
required:
|
||||
- name
|
||||
# additionalProperties: false
|
||||
properties:
|
||||
name:
|
||||
description: >-
|
||||
The file format used for storing the data handled by this
|
||||
extension.
|
||||
const: csv
|
||||
sep:
|
||||
description: >-
|
||||
The delimiter to be used in the CSV/delimited file. Default ",".
|
||||
type: string
|
||||
default: ","
|
||||
extension:
|
||||
$ref: "#/$defs/formatExtension"
|
||||
# XML with options.
|
||||
- type: object
|
||||
required:
|
||||
- name
|
||||
additionalProperties: false
|
||||
properties:
|
||||
name:
|
||||
description: >-
|
||||
The file format used for storing the data handled by this
|
||||
extension.
|
||||
const: xml
|
||||
extension:
|
||||
$ref: "#/$defs/formatExtension"
|
||||
importStylesheets:
|
||||
description: >-
|
||||
One or more stylesheets used for importing data from an XML file.
|
||||
oneOf:
|
||||
- type: string
|
||||
- type: array
|
||||
items:
|
||||
type: string
|
||||
exportStylesheets:
|
||||
description: >-
|
||||
One or more stylesheets used for exporting data to an XML file.
|
||||
oneOf:
|
||||
- type: string
|
||||
- type: array
|
||||
items:
|
||||
type: string
|
||||
import:
|
||||
description: >-
|
||||
Import configuration.
|
||||
type: object
|
||||
required:
|
||||
- columns
|
||||
additionalProperties: false
|
||||
properties:
|
||||
filter:
|
||||
description: >-
|
||||
Condition that must evaluate to True for the row to be included in the
|
||||
new dataframe.
|
||||
$ref: "#/$defs/translate"
|
||||
columns:
|
||||
description: >-
|
||||
Information for generating and validating the columns of this format.
|
||||
type: object
|
||||
minProperties: 1
|
||||
additionalProperties:
|
||||
type: object
|
||||
additionalProperties: false
|
||||
properties:
|
||||
type:
|
||||
description: The data type required by this column.
|
||||
enum:
|
||||
- bool
|
||||
- float
|
||||
- int
|
||||
- str
|
||||
enum:
|
||||
description: Values allowed in this column.
|
||||
type: array
|
||||
minItems: 1
|
||||
items:
|
||||
$ref: "#/$defs/scalar"
|
||||
parse:
|
||||
description: >-
|
||||
Operation to process data for this column when reading from a
|
||||
file.
|
||||
$ref: "#/$defs/operation"
|
||||
const:
|
||||
$ref: "#/$defs/scalar"
|
||||
translate:
|
||||
description: >-
|
||||
Translate object for generating this column from an AuDaGeFrame.
|
||||
$ref: "#/$defs/translate"
|
||||
export:
|
||||
description: >-
|
||||
Translate objects for converting this format to the standard AuDaGeFrame
|
||||
columns. Must include translators for the four mandatory columns (name,
|
||||
type, address, comment). Translators for additional columns are allowed
|
||||
and optional.
|
||||
type: object
|
||||
required:
|
||||
- tagname
|
||||
- type
|
||||
- address
|
||||
- comment
|
||||
additionalProperties:
|
||||
$ref: "#/$defs/exportColumn"
|
||||
properties:
|
||||
tagname:
|
||||
$ref: "#/$defs/exportColumn"
|
||||
type:
|
||||
$ref: "#/$defs/exportColumn"
|
||||
address:
|
||||
$ref: "#/$defs/exportColumn"
|
||||
comment:
|
||||
$ref: "#/$defs/exportColumn"
|
||||
Reference in New Issue
Block a user