I was using the CNC Edtor with SMC_CNC_REF objects in Codesys 3.5.11.
SMC_CNC_REF because I need to use variables in my programs.
Now I upgraded to Codesys 3.5.13 (Softmotion 188.8.131.52) which supports expressions in CNC programms.
The documentation states I need to use SMC_ReadNCFile2 and SMC_NCInterpreter
to use this feature.
So I created a new CNC program as file (as input to SMC_ReadNCFile2).
But when I use an expressions in the program like:
N000 G01 X0.845 + 0.79
The CNC Editor shows 'unexpected token'.
What I'm i doing wrong?
The example for sub programs and expressions shows the CNC programs as
external file in the project. But I need the CNC editor for preview and debugging.