Expand description
This crate contains all different data types defined in the tc6_xml_v201.xsd that you can download from
https://www.plcopen.org/downloads/ under Code Components of IEC 61131-10 "PLC open XML exchange format".
The XML schema itself is not part of this crate, it only contains code generated from it.
Using Project with quick-xml, you can for example deserialize a complete project export from a CODESYS project.
This crate uses the great xsd_parser crate to generate the Rust code.
§Features
generateenables code generation during build. Requires you to setOPEN_PLC_SCHEMA_PATHto the XML schema (usually named something liketc6_xml_v201.xsd)
Modules§
Structs§
- Action
Block Action Element Type - Association of an action with qualifier
- Action
Block Action Reference Element Type - Action
Block Element Type - AddData
Data Element Type - AddData
Info Info Element Type - AddData
Info Type - List of additional data elements used in the document with description
- AddData
Type - Application specific data defined in external schemata
- Array
Element Type - Block
Element Type - Describes a graphical object representing a call statement
- Block
InOut Variables Element Type - Block
InOut Variables Variable Element Type - Describes a inOutVariable of a Function or a FunctionBlock
- Block
Input Variables Element Type - Block
Input Variables Variable Element Type - Describes an inputVariable of a Function or a FunctionBlock
- Block
Output Variables Element Type - Block
Output Variables Variable Element Type - Describes a outputVariable of a Function or a FunctionBlock
- Body
FbdElement Type - Body
LdElement Type - Body
SfcElement Type - Body
Type - Implementation part of a POU, action or transistion
- Coil
Element Type - Describes a graphical object representing a boolean variable which can be used as l-value and r-value at the same time
- Comment
Element Type - Connection
Point InType - Defines a connection point on the consumer side
- Connection
Point OutType - Defines a connection point on the producer side
- Connection
Type - Describes a connection between the consumer element (eg. input variable of a function block) and the producer element (eg. output variable of a function block). It may contain a list of positions that describes the path of the connection.
- Connector
Element Type - Describes a graphical object representing a variable, literal or expression used as r-value
- Continuation
Element Type - Describes a graphical object representing a variable, literal or expression used as r-value
- Derived
Element Type - The user defined alias type
- Enum
Element Type - Enum
Values Element Type - Enum
Values Element Type Content - Enum
Values Value Element Type - An enumeration value used to build up enumeration types
- Formatted
Text Type - Formatted text according to parts of XHTML 1.1
- InOut
Variable Element Type - Describes a graphical object representing a variable which can be used as l-value and r-value at the same time
- InVariable
Element Type - Describes a graphical object representing a variable, literal or expression used as r-value
- Jump
Element Type - Describes a graphical object representing a jump statement
- Jump
Step Element Type - Label
Element Type - Describes a graphical object representing a jump label
- Left
Power Rail Connection Point OutElement Type - Left
Power Rail Element Type - Describes a graphical object representing a left powerrail
- Macro
Step Element Type - OutVariable
Element Type - Describes a graphical object representing a variable or expression used as l-value
- Pointer
Element Type - Position
Type - Defines a graphical position in X, Y coordinates
- PouInstance
Type - Represents a program or function block instance either running with or without a task
- Project
Content Header Coordinate Info Element Type - Project
Content Header Coordinate Info FbdElement Type - Project
Content Header Element Type - Project
Element Type - Project
File Header Element Type - Project
Instances Configurations Configuration Element Type - Represents a group of resources and global variables
- Project
Instances Configurations Configuration Resource Element Type - Represents a group of programs and tasks and global variables
- Project
Instances Configurations Configuration Resource Task Element Type - Represents a periodic or triggered task
- Project
Instances Configurations Element Type - Project
Instances Element Type - Project
Types Data Types Data Type Element Type - Project
Types Data Types Element Type - Project
Types Element Type - Project
Types Pous Element Type - Project
Types Pous PouActions Action Element Type - Project
Types Pous PouActions Element Type - Project
Types Pous PouElement Type - Project
Types Pous PouInterface Element Type - Project
Types Pous PouInterface External Vars Element Type - Project
Types Pous PouTransitions Element Type - Range
Signed Type - Defines a range with signed bounds
- Return
Element Type - Describes a graphical object representing areturn statement
- Right
Power Rail Element Type - Describes a graphical object representing a right powerrail
- Selection
Convergence Connection Point InElement Type - Selection
Convergence Element Type - Selection
Divergence Element Type - Simultaneous
Convergence Element Type - Simultaneous
Divergence Element Type - Step
Element Type - Contains actions
- String
Element Type - The single byte character string type
- Subrange
Signed Element Type - Transition
Condition Element Type - Transition
Condition Inline Element Type - Transition
Element Type - Value
Array Value Element Type - Array value consisting of a list of occurrances - value pairs
- Value
Array Value Element Type Content - Array value consisting of a list of occurrances - value pairs
- Value
Array Value Value Element Type - Value
Simple Value Element Type - Value that can be represented as a single token string
- Value
Struct Value Element Type - Struct value consisting of a list of member - value pairs
- Value
Struct Value Element Type Content - Struct value consisting of a list of member - value pairs
- Value
Struct Value Value Element Type - VarList
Access Access Variable Element Type - Declaration of an access variable
- VarList
Access Type - List of access variable declarations
- VarList
Config Config Variable Element Type - Declaration of an access variable
- VarList
Config Type - List of VAR_CONFIG variables
- VarList
Plain Type - List of variable declarations without attributes
- VarList
Plain Variable Element Type - Declaration of a variable
- VarList
Type - List of variable declarations that share the same memory attributes (CONSTANT, RETAIN, NON_RETAIN, PERSISTENT)
- Vendor
Element Element Type - Describes a graphical object representing a call statement
Enums§
- Access
Type - Defines the different access types to an accessVariable
- Action
Block Action Qualifier Type - AddData
Data Handle Unknown Type - Body
FbdElement Type Content - Body
LdElement Type Content - Body
SfcElement Type Content - Body
Type Content - Implementation part of a POU, action or transistion
- Connection
Point InType Content - Defines a connection point on the consumer side
- Data
Type - A generic data type
- Edge
Modifier Type - Defines the edge detection behaviour of a variable
- PouType
- Defines the different types of a POU
- Project
Types Pous PouInterface Element Type Content - Selection
Convergence Connection Point InElement Type Content - Storage
Modifier Type - Defines the storage mode (S/R) behaviour of a variable
- Transition
Condition Element Type Content - Transition
Condition Inline Element Type Content - Value
Array Value Value Element Type Content - Value
Struct Value Value Element Type Content - Value
Type - A generic value
Constants§
Type Aliases§
- Project
- The complete project
- Range
Unsigned Type - Defines a range with unsigned bounds