I have a question.
Machine controller is TwinCAT.
The problematic code is shown below.
The "#TRAFO OFF" code serves as "TRAFOFF". and "#TRAFO ON" code serves as "TRAORI".
An error message is displayed accordingly.
I do not know how to set it up for that part.
referance is sinumerik controller of sim08_mill_5ax.
Please let me know how. Thank you.
Your problem have a few solutions.
1. You can use CSEPreprocessLine (try to search in this forum) and substitute #TRAFO ON -> TRAORY or to any G or M command. Easy, fast way.
2. You can modify Python parser and define special command #TRAFO ON or #TRAFO OFF. This way is more right, but not so easy.