Configuring MPG parameters

More
12 Mar 2018 16:38 #107248 by aleksamc
I would like to use MPG and to configure such function:
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?
The following user(s) said Thank You: gldmachina

Please Log in or Create an account to join the conversation.

More
12 Mar 2018 17:04 #107249 by cmorley
Replied by cmorley on topic Configuring MPG parameters
Max velocity sets the overall max speed for all movements (other then homing i'm pretty sure)
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.

More
14 Mar 2018 11:52 #107343 by OT-CNC
Replied by OT-CNC on topic Configuring MPG parameters
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.

More
14 Mar 2018 15:37 #107348 by aleksamc
Replied by aleksamc on topic Configuring MPG parameters

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.

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?

As for me. I used rapid override for 3p switches 5-30-100% (for example).

Please Log in or Create an account to join the conversation.

More
15 Mar 2018 16:49 #107381 by OT-CNC
Replied by OT-CNC on topic Configuring MPG parameters
aleksamc, thanks for the clarification on the 3 position switch.
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.

More
15 Mar 2018 18:08 #107385 by cmorley
Replied by cmorley on topic Configuring MPG parameters


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.

More
16 Mar 2018 07:50 #107413 by aleksamc
Replied by aleksamc on topic Configuring MPG parameters
It seems, that they are not available, because I wrote all right.

Please Log in or Create an account to join the conversation.

Time to create page: 0.353 seconds
Powered by Kunena Forum