- Posts: 592
- Thank you received: 0
QtPyVCP - Max_Velocity Override - Button Group Freebie
Please Log in to join the conversation.
Please Log in to join the conversation.
Oriniginally you only had these options:
machine.max-velocity.set
machine.max-velocity.reset
Now after editing your machineactions.py:
machine.max-velocity.set
machine.max-velocity.reset
machine.max-velocity.zero
machine.max-velocity.twentyfive
machine.max-velocity.fifty
machine.max-velocity.seventyfive
machine.max-velocity.hundred
You can set a label and set the rule to {:6.4f}.format(ch[0]) i believe to see the actual value of current velocity. Use the current velocity channel.
I am currently on the road away from my Mint Monster PC so I cannot see my full setup. Sorry.
Please Log in to join the conversation.
Donb9261 wrote: make sure you use the qtpyvcp machineactions.py file from the .local/python2.7/lib... as stated. the one from the examples is not loaded by the config. The mainwindow.py is in your vcp folder created when you initialized the vcp.
I used that one I had to show hidden files to get there.
You didn't put anything in the action field for the button correct?
Please Log in to join the conversation.
Please Log in to join the conversation.
Donb9261 wrote: Oh and make sure each button has the actions set in Qt.
Oriniginally you only had these options:
machine.max-velocity.set
machine.max-velocity.reset
Now after editing your machineactions.py:
machine.max-velocity.set
machine.max-velocity.reset
machine.max-velocity.zero
machine.max-velocity.twentyfive
machine.max-velocity.fifty
machine.max-velocity.seventyfive
machine.max-velocity.hundred
You can set a label and set the rule to {:6.4f}.format(ch[0]) i believe to see the actual value of current velocity. Use the current velocity channel.
I am currently on the road away from my Mint Monster PC so I cannot see my full setup. Sorry.
Ok I think this is where I need to work on
Please Log in to join the conversation.
I may have failed to mention to add the new actions to each button. If so, sorry. I am old, deaf, dumb, and blind. Just ask my wife.
Please Log in to join the conversation.
i deleted the slider for max vel override, I'm working with an old cooyy of mine.
copied your names and code segments
im using 2.9, i wonder if its not calculating the c val correct from the ini. And since 0 is zero it works
Please Log in to join the conversation.
So, if one works they all work. Linuxcnc starts at ini defaults. Then writes to ram any mods never storing the value persistently. So in code it is the same as saying:
somevar = 1
somevar = 2
somevar = 3
print(somevar)
>>> 3
So you have set somevar to a value in your code. Meaning that you are referencing/receiving the correct channels into your variable and back out to Linuxcnc variables/settings.
Send me your two files and I will review them because from what you say, it should be working for you...
Please Log in to join the conversation.
Donb9261 wrote: Yes, I am on 2.9 as well. If zero works, then recheck your code as the methods are the same the only change is the decimal multiplier. It pulls in the current INFO value for the param and then does math then outputs the computed value to the setting in the planner.
So, if one works they all work. Linuxcnc starts at ini defaults. Then writes to ram any mods never storing the value persistently. So in code it is the same as saying:
somevar = 1
somevar = 2
somevar = 3
print(somevar)
>>> 3
So you have set somevar to a value in your code. Meaning that you are referencing/receiving the correct channels into your variable and back out to Linuxcnc variables/settings.
Send me your two files and I will review them because from what you say, it should be working for you...
cool, thanks
no rush, im off to bed lol
Attachment not found
Attachment not found
Please Log in to join the conversation.
