Q: Can I log the position of the motor to a text file from the TMCL-IDE?
A: A TMCL script will be unable to write the motor position data to a file. The next best thing to do in the IDE is to export the data from the position graph to a .csv file by right clicking on it. This will have to be done manually however. If you need to automate the position logging, this will have to be done outside of the TMCL-IDE.
For instance, download a program on the module and operate in standalone mode i.e. have it run without the TMCL-IDE. At the same time, also connect the module to another application or MCU which can poll the motor position (direct mode) and store it in a file.