cdl-plc translates control sequences in the Control Description Language (CDL) to the IEC 61131-10 XML exchange format. The general aim of the cdl-plc translator is to transfer control sequences which were developed in the Modelica-based CDL on Programmable Logic Controllers (PLCs) standardized in IEC 61131. The IEC 61131-10 XML is an existing industry standard for the exchange of control sequences expressed in the languages according to IEC 61131-3.
The translator currently only supports control sequences including the following selected CDL blocks:
- Reals.Add
- Reals.MultiplyByParameter
- Reals.Min
The aim of this version is to demonstrate the general feasability of the translation from CXF / .jsonld
in the 61131-10 XML, including the creation of the XML structure, the connection of inputs / outputs or the handling of parameters. Further developments are required to cover the full scope of CDL.
- Create a CXF representation of your CDL control sequence in
.jsonld
using the modelica-json parser. - Specify the path of the
.jsonld
incdl_plc.py
and run the script. The output will be stored in the folderIEC61131-10XML
. - Import the IEC 61131-10 XML in a PLC IDE (see below for compatibility).
- The translator is compatible with CXF representations in
.jsonld
created with the modelica-json translator release 1.2.0. - The IEC 61131-10 XML import is tested with the PLC ICE Beremiz 1.4-rc1.
- International Electrotechnical Commission, 2019. Programmable controllers. Part 10: PLC open XML exchange format.