|
Hey all,
I know, I'm not the first asking, but since I did not find a staisfying answer, I ask again ;-)
The current status of my CNC machine enables me to do automatic tool changes by using a homebrew T.nc. I control the valves of the ATC by an ESP8266 connected to the DDCSV by its serial interface. This works fine and alows me to use up to 32 extra inputs and outputs. If anybody is interested in this solution, please write me a PN.
Now the next step is to do an automatic tool height mesurement and compensation. My plan is to write a G code, which takes every tool in the holder, measures its offset and stores it in the controler. I assumed, that the tool offset paramers #267... would help me, but they seem not to work, as expected. Changing their values does not change anything!
E.G.: Setting #267 to 0 and #268 to 50 and than executing th G code
M3
M6 T1
G90 G1 x100 y0 z0 F1000 S8000
G90 G1 x0 y0 z0 F1000 S8000
M6 T2
G90 G1 x100 y0 z0 F1000 S8000
G90 G1 x0 y0 z0 F1000 S8000
M5
M2
results in exactly the same z Position of the spindle for tool 1 and tool 2.
I assume I can handle this by changing the T.nc macro and correcting the Z coordinate offset there by using #267...
But: If I do an automatic probe, how can I write the results automaticely to this values? Simply setting them to a value in the G-code does not work. Inspecting them after a change by G code in the paramter page shows them unchanged.
All in all this more General questions result:
- Are there any internal variables #xxx, which can be changed by G-code and which remain unchanged after a program ends and even after power down?
- Is there a general rule, which #xxx values can be overwritten by the user? (Are ther any #xxx variables, which are read only, write only and read+write?)
- What's about the newly introduced #2000++ Parameters. They are free to the user, but can they be changed in G code or can the only be read there?
Can anybody help me?
Josef
|
|