BOXFORD 125 TLC Tool Changer Setup

More
5 years 9 months ago #196745 by andypugh
hold_dc only works for DC motor versions, I suppose.

Do you feel like experimenting?

github.com/LinuxCNC/linuxcnc/blob/master...s/carousel.comp#L330

Change:
Code:
if (jog_fwd || jog_rev) return; // require button release to jog again state = 0;

to
Code:
if (jog_fwd || jog_rev) return; // require button release to jog again if (rev_pulse > 0){ motor_fwd = 0; motor_rev = 1; motor_vel = rev_dc; timer = rev_pulse; state = 3; } else { state = 0;

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago #196753 by Serg452
What am I doing wrong?

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago #196756 by andypugh
That's a bit wierd.

Possibly an un-matched bracket earlier in the file?

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago #196764 by Serg452
added a parenthesis at the end
Code:
if (jog_fwd || jog_rev) return; // require button release to jog again if (rev_pulse > 0){ motor_fwd = 0; motor_rev = 1; motor_vel = rev_dc; timer = rev_pulse; state = 3; } else { state = 0; }
Now the disc returns, but the tool number does not change, the last from the command remains M6Tx

Sorry for the questions, I'm a really bad programmer)))

Please Log in or Create an account to join the conversation.

More
5 years 9 months ago #196846 by andypugh
You mean that the tool number seen in LinuxCNC doesn't change?
No, it won't. There isn't a link between the carousel component and the internal LinuxCNC state.
You can set the tool without a toolchange with the M61 command.

Please Log in or Create an account to join the conversation.

More
5 years 5 months ago - 5 years 5 months ago #208568 by gcardinal

Clive S wrote: ...
So how do I solve this


Just wanted to ask if you ever ended up solving this? I'm working on almost the same toolchanger and would really appreciate if you could share your configuration.
Last edit: 5 years 5 months ago by gcardinal.

Please Log in or Create an account to join the conversation.

Time to create page: 0.079 seconds
Powered by Kunena Forum