Gearchanger.comp not engaging low gear.
26 Jul 2024 23:40 - 26 Jul 2024 23:45 #306130
by RRcnc
Gearchanger.comp not engaging low gear. was created by RRcnc
Hi. I'm using Andy Pugh's Gearchanger and I've come to a point where the spindle will engage, the commanded output on the gearchange signal is correct but it refuses to engage the low gear selection. Would be nice if someone could to sift through my config. and give me an idea of where I messed up. It just always engages high gear no matter what speed is commanded.
The mill is on a 7i96s with a c13bob on the extender port. I'm using 2 relays on the bob outputs to activate air solenoids to set gears. Running on Probe basic 2.9.
Thanks.
The mill is on a 7i96s with a c13bob on the extender port. I'm using 2 relays on the bob outputs to activate air solenoids to set gears. Running on Probe basic 2.9.
Thanks.
Attachments:
Last edit: 26 Jul 2024 23:45 by RRcnc.
Please Log in or Create an account to join the conversation.
28 Jul 2024 09:32 #306223
by andypugh
Replied by andypugh on topic Gearchanger.comp not engaging low gear.
1) Does GPIO 34 actually trigger the gear change?
2) Are you being consistent in your units? Spindle speeds can be in rev-per-minute or revs-per-second.
3) You didn't include the INI file, does [SPINDLE_0]GEAR_LOW_MAX_SPEED exist, with a sensible number in it?
2) Are you being consistent in your units? Spindle speeds can be in rev-per-minute or revs-per-second.
3) You didn't include the INI file, does [SPINDLE_0]GEAR_LOW_MAX_SPEED exist, with a sensible number in it?
Please Log in or Create an account to join the conversation.
29 Jul 2024 00:35 - 29 Jul 2024 00:36 #306296
by RRcnc
Replied by RRcnc on topic Gearchanger.comp not engaging low gear.
Alright I figured it out. I didn't read the output text when the installation had errors. The confirmation text said a bunch of stuff about not approving the use of 'abs' in the text and that I should include 'stdlib.h' .
I know nothing about writing components but it was simple enough that i figured i'd add stdlib.h somewhere in there. So i did and bam. It installed correctly and also does all the math correctly.
Thanks for the component Andy.
I spent 2 days learning to use classicladder and made a 3 state comparison exOR gate. After failing to find a way to math the gear ratios i decided to look at gearbox.comp again and figured it out.I ended up learning a lot for not reading an error text.
I know nothing about writing components but it was simple enough that i figured i'd add stdlib.h somewhere in there. So i did and bam. It installed correctly and also does all the math correctly.
Thanks for the component Andy.
I spent 2 days learning to use classicladder and made a 3 state comparison exOR gate. After failing to find a way to math the gear ratios i decided to look at gearbox.comp again and figured it out.I ended up learning a lot for not reading an error text.
Last edit: 29 Jul 2024 00:36 by RRcnc.
Please Log in or Create an account to join the conversation.
Time to create page: 0.142 seconds