Function block with methods - Manual - PLCopen XML - A command line tool to import PLCopen XML files as ST code. - PLCopen XML,tool

PLCopen XML CLI Tool (plcopen-xml)

Portfolio
SIMATIC AX
Product
PLCopen XML
Software version
1.0.8
Edition
05/2024
Language
English (original)
Package Name
@ax/plcopen-xml

Function blocks that implement interfaces, extend other blocks or contain some methods are imported as classes.
The interface variables of the function block are transferred directly to the class.
However, this results in compile errors since classes do not support input or output variables. These declarations must be moved to the corresponding (body) method manually.