Closed kvrban closed 1 year ago
Ok, with tool(); it is working. So a tool no.1 must be defined i guess to not crash. Unpleasant that it crashes, but nothing bad.
Yes, the exception is unfortunate. tplang
expects you to pass a JSON file via the --sim-json
option that defines simulation parameters such as the tool table. You can export a simulation JSON file for a project from the CAMotics GUI. This will also show you the format.
pass a JSON file via the --sim-json option
Perfect. This is exactly the information I was missing. Thank you
On windows 10 tplang.exe crash on a line with "tool(1);" in a tpl file. Without "tool" it works fine.
I use the sample code from https://tplang.org/#examples