Duplomatic BSV N 160 Werkzeugwechsler / Turret

More
3 years 3 months ago #274630 by Miller Turner
Hi Daniel,

Reading that you have successfully got your EmcoTurn 240 now running under LinuxCNC makes me very enthousiastic as I have my eyes a similar Emco collecting dust until I am ready to retrofit it too.
Do you have anything you have shared on the internet / this forum on your beautyful retrofit job?

Best regards,

Frans

Please Log in to join the conversation.

More
3 years 1 month ago #281184 by Firehunter
I'm currently working on a Emcoturn 240 retrofit. But I'm having a bit of trouble to get the turret working. I used the duplo8.comp file. The inputs and outputs seem to be working correctly. I had the turret on position 4 and did a M6 T3 command, but it went to position 4. After that it kept rotating back and forth between positions 2 and 4. I found 2 changes in duplo8.comp (compared to duplo.comp). Duplo8.comp uses "while(lockingSwitch == 1)" to rotate the turret in the opposite direction, the original used "lockingSwitch == 0". That seems to be the correct way according to the manual. But when I use 0 instead of 1, the turret keeps spinning to a random position. Also at random times, not only during a toolchange command.

Does "parity_error = (pcalc ^= codparity );" actually have a use? Because the value of this bit seems to be random, constant flickering.

What could be the problem?

Please Log in to join the conversation.

More
2 years 4 months ago #303772 by Miller Turner
Hi All,

I've started working on the turret on my Emco lathe too.
It's a Sauter turret and there are many simularities with the Duplomatic turret described in this topic.
I connected all signal pins, like encoder and proximity detector, and if I manually turn the turret I can monitor the signals with Halshow in Linuxcnc UI.
Now I modified the duplo.comp file a little to match my signals.
From this topic I understood I should compile this sauter.comp file like this from within the config folder of my linuxcnc configuration:
sudo halcompile --compile --userspace sauter.comp 
It seems to compile without errors and as a result I do get a new executable file called sauter (also in the same config folder) and I call this file from my main hal file like this:
loadusr -W sauter

Unfortunately, when starting LinuxCNC, I do get this error which I don't understand and hope to get some help from the experts here at the forum:
 

Attachment not found


Can anyone help and explain what I might be doing wrong?

 

Please Log in to join the conversation.

More
1 year 5 months ago #329091 by Miller Turner
please forgive my stupidity.
after compiling I should have done the next step too I now see:
sudo halcompile --install --userspace sauter.comp

This seems to get me a bit further into debugging.
I get a Pin 'sauter_us_toolchange' does not exist error, which I don't understand yet.
as I did initiate it in the main hal file:
net tool-change iocontrol.0.tool-change => sauter_us_toolchange

 

Attachment not found


Anyone has a clue of what I might be doing wrong?


 

Please Log in to join the conversation.

More
1 year 5 months ago #329092 by Aciera
seems that you are mixing underscore with hyphen in the hal

sauter_us. VS sauter-us

Please Log in to join the conversation.

More
1 year 5 months ago #329101 by Miller Turner
Thanks for waking me up :)
It's even worse, not only - and _ got mixed up, it should have been:
net tool-change iocontrol.0.tool-change => sauter.0.toolchange
net tool-changed iocontrol.0.tool-changed => sauter.0.toolchanged
net tool-number iocontrol.0.tool-prep-number => sauter.0.newtoolnumber

Now Linuxcnc at least starts ok again. Let's see if I can get the turret move...

Please Log in to join the conversation.

Time to create page: 0.603 seconds
Powered by Kunena Forum