Configuring MPG parameters
- aleksamc
-
Topic Author
- Offline
- Platinum Member
-
- Posts: 567
- Thank you received: 65
MPG has x1, x10 x100 outputs.
I want to use them for "max_velocity_override"
If x10 is anabled than "setp mvoincr.in01 30% of speed"
If x100 is anabled than "setp mvoincr.in02 100% of speed"
I realize it with such code
net max-vel-override-incr => halui.max-velocity.counts
net jog-incr-a => mvoincr.sel0
net jog-incr-b => mvoincr.sel1
net max-vel-override-incr <= mvoincr.out-s
setp mvoincr.debounce-time 0.200000
setp mvoincr.use-graycode False
setp mvoincr.suppress-no-input False
setp mvoincr.in00 5
setp mvoincr.in01 30
setp mvoincr.in02 100
But what I should do with this part of code to directly write this value to maximum velocity?
I have such code generated with PncConf. I don't have possibility now to check how it works.
Is this right?
# connect max velocity overide increments - switches
setp halui.max-velocity.count-enable true
setp halui.max-velocity.direct-value true
setp halui.max-velocity.scale 1.0
PS
I think that "max-vel-override" defines the speed that machine moves in G00 mode. Is it true?
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
-
- Posts: 7906
- Thank you received: 2141
If you just want to control rapid feed then rapid override is what you want. - it seems it's missing from the docs...
MPG is a pulse dial (you spin it) - your code looks like you are trying to use switches - maybe rotary switches to set MVO.
If so:
I believe your scale needs to be set to you machine's max possible velocity / 100
Chris M
Please Log in or Create an account to join the conversation.
- OT-CNC
- Offline
- Platinum Member
-
- Posts: 622
- Thank you received: 75
Please Log in or Create an account to join the conversation.
- aleksamc
-
Topic Author
- Offline
- Platinum Member
-
- Posts: 567
- Thank you received: 65
If you just want to control rapid feed then rapid override is what you want. - it seems it's missing from the docs...
Chris M
I've checked. Rapid feed don't want to work but max velocity override works fine when program is running.
As for me. I used rapid override for 3p switches 5-30-100% (for example).I'm going to follow this as I'm the process of wiring up a simple rotary switch to control feed override. I have a and b channel in quadrature mode hooked up to mesa on 2 inputs on the 7i77. Is there a good example of simple code I can copy? I initially tried to connecting a and b as an encoder, not sure if there is an easier way to read it in?
Please Log in or Create an account to join the conversation.
- OT-CNC
- Offline
- Platinum Member
-
- Posts: 622
- Thank you received: 75
I will continue my questions in my original post;
forum.linuxcnc.org/27-driver-boards/3401...ncoder-type-for-7i77
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
-
- Posts: 7906
- Thank you received: 2141
I've checked. Rapid feed don't want to work but max velocity override works fine when program is running.
.
I don't follow what you mean.
Rapid override doesn't override rapid moves or the pins are not available?
They should be available in 2.7
Chris M
Please Log in or Create an account to join the conversation.
- aleksamc
-
Topic Author
- Offline
- Platinum Member
-
- Posts: 567
- Thank you received: 65
Please Log in or Create an account to join the conversation.