PLC code generator should not generate an error when folder does not exist.
When the IEC 611310-3
option is selected as output type, it gives an error when the Output file path does not exist:
ERROR: Failed to write PLC code: path "<currentPath>\<outputPath>" does not exist, or is not a directory.
This is very annoying as making the folder is something that you often forget to do and is also not necessary per se.
Instead of generating an error, the folder should be created or the current folder should be used. Currently, the default output folder is postfix _plc
. However, other tools such as Java code generation use the current folder as the default output folder.
Note that the TwinCat output option also expects a folder and gives an error otherwise. However, for TwinCat there should also be files present in that folder. You are much less likely to forget to create the folder in that case.