Skip to content

#679 #860 PLCgen: Ensure that the main program always has a proper PLC statement.

The empty.cif test model generated a main program without a ; in it, which is not allowed by the standard.

While the ModelTextGenerator has code to protect against this, that was not useful here since the main program is created in several distinct steps and each part is converted to text separately.

Added some code to handle this case.

Addresses #679 #860 (closed)

Merge request reports

Loading