Wrong rapid feed control during startup
03 Apr 2022 14:23 #239175
by chris@cnc
Wrong rapid feed control during startup was created by chris@cnc
I have a small issue after update to 2.9.
After startup, my rapid feed value is always 100%. Doesn't matter of switch position. It is a 4 bit rotary switch and connect to a mesa 7i84 board and this connect with sserial to 7i76e.
I had the same issue on 2.8. But after loaded the mpg.hal over the postgui_call_list.hal, swapped the federate after 1 second to the switch value and the problem was solved.
But now in 2.9.? No Idea
I check the value of halui.rapid-override.counts and value is 25% switch is on 25% position too. But in Axis is rapid feed override 100%. Same issue with feed override.
Had someone same issue or an idea how to fix it?
After startup, my rapid feed value is always 100%. Doesn't matter of switch position. It is a 4 bit rotary switch and connect to a mesa 7i84 board and this connect with sserial to 7i76e.
I had the same issue on 2.8. But after loaded the mpg.hal over the postgui_call_list.hal, swapped the federate after 1 second to the switch value and the problem was solved.
But now in 2.9.? No Idea
I check the value of halui.rapid-override.counts and value is 25% switch is on 25% position too. But in Axis is rapid feed override 100%. Same issue with feed override.
Had someone same issue or an idea how to fix it?
Please Log in or Create an account to join the conversation.
03 Apr 2022 14:58 #239177
by roland
Replied by roland on topic Wrong rapid feed control during startup
Please Log in or Create an account to join the conversation.
03 Apr 2022 15:22 #239181
by chris@cnc
Replied by chris@cnc on topic Wrong rapid feed control during startup
What is different? I already use the
mux_generic config="ss32" function.
Why switch your feedrate after emg release?
mux_generic config="ss32" function.
Why switch your feedrate after emg release?
Please Log in or Create an account to join the conversation.
03 Apr 2022 15:54 #239184
by roland
Replied by roland on topic Wrong rapid feed control during startup
You have to send the output signal from mux-gen.00.out-s32 to another mux-gen.
An input from the additional mux-gen is connected to your mux-gen.00.out-s32
The other input of the additional mux-gen gets a fixed value (100) per setp
The select input of the additional mux-gen is connected to the signal machine-is-on
An input from the additional mux-gen is connected to your mux-gen.00.out-s32
The other input of the additional mux-gen gets a fixed value (100) per setp
The select input of the additional mux-gen is connected to the signal machine-is-on
Please Log in or Create an account to join the conversation.
03 Apr 2022 15:56 #239185
by chris@cnc
Replied by chris@cnc on topic Wrong rapid feed control during startup
i see, you switch one time after power on.
net machine-is-on mux-gen.00.sel-bit-00
If i do it same way i can not select all values.
So i need one bit that toggle the mux-gen.00.sel-bit-00 one time after start up...
net machine-is-on mux-gen.00.sel-bit-00
If i do it same way i can not select all values.
So i need one bit that toggle the mux-gen.00.sel-bit-00 one time after start up...
Please Log in or Create an account to join the conversation.
03 Apr 2022 16:16 #239189
by chris@cnc
Replied by chris@cnc on topic Wrong rapid feed control during startup
yes second mux function could be also one way. But this do it more complicated for 3 switches. For three switches is easier to touch one time with toggle bit. I want to keep my hal small as possible. Did you have an idea howto could we touch the mux input one time after start up. So could it work with only one mux function.
Please Log in or Create an account to join the conversation.
03 Apr 2022 16:40 #239191
by roland
Replied by roland on topic Wrong rapid feed control during startup
For me, my solution works reliably. The few lines in the file don't bother me.
I cannot offer any other solution
I cannot offer any other solution
The following user(s) said Thank You: chris@cnc
Please Log in or Create an account to join the conversation.
03 Apr 2022 17:09 #239194
by chris@cnc
Replied by chris@cnc on topic Wrong rapid feed control during startup
Thanks anyway for your help. I looked in the magic bag and found something suitable.
linuxcnc.org/docs/stable/html/man/man9/oneshot.9.html
This does exactly what I wanted.
Touch other selection bit short time.
I'm always amazed at what's in this bag. Many thanks to the developers..
linuxcnc.org/docs/stable/html/man/man9/oneshot.9.html
This does exactly what I wanted.
Touch other selection bit short time.
I'm always amazed at what's in this bag. Many thanks to the developers..
loadrt oneshot
addf oneshot.0 servo-thread
setp oneshot.0.width 1 #one second pulse
net machine-is-enabled oneshot.0.in
net rapid-bit3 <= oneshot.0.out => rapid.sel3 #switch one second after machine is enabled
The following user(s) said Thank You: roland
Please Log in or Create an account to join the conversation.
03 Apr 2022 18:11 #239196
by roland
Replied by roland on topic Wrong rapid feed control during startup
Nice solution.
It needs an unused sel-input for that, right?
It needs an unused sel-input for that, right?
Please Log in or Create an account to join the conversation.
03 Apr 2022 18:26 #239197
by chris@cnc
Replied by chris@cnc on topic Wrong rapid feed control during startup
Yes, to simulate a switch movement and read the current value.
The following user(s) said Thank You: roland
Please Log in or Create an account to join the conversation.
Time to create page: 0.078 seconds