Override

More
3 years 2 months ago #276739 by COFHAL
Override was created by COFHAL
I am using encoders to adjust feed override and spindle override, I need these values to remain at 100% whenever I start LNC, how can I do it?

Please Log in to join the conversation.

More
3 years 2 months ago #276747 by spumco
Replied by spumco on topic Override
Depends on your HAL setup, but you can include something like:

setp halui.feed-override.reset TRUE

in your halfile.

If that winds up forcing the value to stay at 100% all the time, you can set up a one-shot component that is triggered by the machine-on signal.  Something like:
Code:
setp oneshot.0.width 0.5 net MACHINE-ON <= halui.machine.is-on net MACHINE-ON => oneshot.0.in net OVERRIDE-TRIGGER <= oneshot.0.out net OVERRIDE-TRIGGER => halui.feed-override.reset net OVERRIDE-TRIGGER => halui.spindle.0.override.reset

Note that if you have the little encoders with built-in pushbuttons and you want to use them to reset FRO or SRO after the machine is on, you'll want to pass the machine-on 'trigger' through an or2 component.  That way both the trigger and the encoder button can reset the override value.
Code:
net OVERRIDE-TRIGGER <= oneshot.0.out net OVERRIDE-TRIGGER => or2.0.in0 net BTN-FRO-RESET <= [i]your.encoder-button-pin.here[/i] net BTN-FRO-RESET => or2.0.in1 net FRO-RESET <= or2.0.out net FRO-RESET => halui.feed-override.reset

Same-same for the SRO; use another or2 component and the same machine-on trigger signal.

You can use the same trigger signal to set a bunch of other pins to a 'default' condition at startup: rapid override, optional stop on, manual mode, etc.

Please Log in to join the conversation.

Time to create page: 0.074 seconds
Powered by Kunena Forum