ATC persistent position
I use Classicladder to control my tool turret with an absolute encoder.
I may have been less clear than I meant to be. I was referring to a carousel that requires absolute commands rather than one that provides absolute feedback.
An absolute-feedback device is probably very easy, you just need to provide a number to a PID.
I don't know enough about ladder to know how hard it would be to program a homing sequence.
Please Log in or Create an account to join the conversation.
I don't Think there is much in common with our two ATCs.
Mine are a carousel disc with 20 pockets that is move down and then in under the spindle and up to insert the tool in spindle. No intermedeate gripper arm.
Pneumatic motion and a 230v motor for turning the carousel. No sensor at the carousel except a sensor on the motor that signals it have rotated one turn =1 pocket.
Andy:
Where can i find the sample config with your carousel component?
From start i was thinking to make the ATC logic in Classic ladder, but now i'm more in to writing a G-code macro to handle all of it.
So far i have only written some pseudo code on a pice of paper.
Please Log in or Create an account to join the conversation.
Where can i find the sample config with your carousel component?
Either here:
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...e08f61cd28e6bd526e3d
(Which is a good place to look at the code, but you probably need git or some patience to use it from there)
Or extract the ZIP file here into your linuxcnc/configs directory to run it in a simulator:
linuxcnc.org/index.php/english/forum/24-...-hal-questions#58732
Please Log in or Create an account to join the conversation.
you should find details on the wiki pages .
Please Log in or Create an account to join the conversation.
In the old control (Meldas M0) the actual pocket number were stored in a persistent memory block.
To answer the original question....
The parameters in the machinename.var file in the config directory for your machine are persistent.
Something that is only mentioned briefly in the documentation is that any number you add to the .var file will then become persistent.
Unforuntately named parameters are not included in this scheme.
It is probably possible to have a startup G-code (in the INI ) that performs an M61 using a ersistent parameter (though tool-in-spindle is automatically persistent with a random toolchanger)
www.linuxcnc.org/docs/html/gcode/machini....html#sec:Parameters
Please Log in or Create an account to join the conversation.
Any suggestions how to implement this?
I tried to put it in
[RS274NGC]
RS274NGC_STARTUP_CODE=M61 Q#5451
But then linuxcnc won't start.
I an thinking of adding it to postgui.hal with halui.mdi-command
But how should I wire it to get it run once?
Please Log in or Create an account to join the conversation.
RS274NGC_STARTUP_CODE=M61 Q#5451
But then linuxcnc won't start.
Is there an error message?
Please Log in or Create an account to join the conversation.
Just like this other poor guy: emc-users.narkive.com/NvIuCJ34/persistent-tool-number
But I found a suggestion here, link halui-mdicommand to finished homing: forum.linuxcnc.org/forum/38-general-linu...-load-on-start#65653
Please Log in or Create an account to join the conversation.
I tried to put it in
[RS274NGC]
RS274NGC_STARTUP_CODE=M61 Q#5451
That is not the purpose of that ini file entry, as the docs suggest
RS274NGC_STARTUP_CODE = G17 G20 G40 G49 G64 P0.001 G80 G90 G92 G94 G97 G98. A string of NC codes that the interpreter is initialized with.
The purpose is to set modal states, ensure compensation is off, set machine type, measurement units etc.
They are not actually 'commands' executed then and there but initialisation for the interpreter.
You can use the technique I suggested in your other link.
The optimum solution would be a proper toolchanger component and a mod to iocontrol, such I did with the toolchangers that @cncbasher and I developed, but that is a lot more work.
regards
Please Log in or Create an account to join the conversation.
you could easily keep a record of the tool last used .
what are you trying to achieve ? , realtime feedback of tool
Please Log in or Create an account to join the conversation.