Gearchanger.comp not engaging low gear.

More
2 years 3 months ago #306130 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.




 

Attachment not found

Attachment not found

Please Log in to join the conversation.

More
2 years 3 months ago #306223 by andypugh
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?

Please Log in to join the conversation.

More
2 years 3 months ago #306296 by RRcnc
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.

Please Log in to join the conversation.

Time to create page: 0.332 seconds
Powered by Kunena Forum