Custom GUI Manual and Automatic mode Power Laser
- diegoroman17
- Offline
- Premium Member
- Posts: 140
- Thank you received: 2
I am controlling the power laser machine with S command. Now I need to can elect between a automatic mode power laser and manual ṕower laser. In Automatic the power that I send of my CAM Software through S Command, and a Manual mode that is a especific power inside my Custom GUI. In Manual Mode the power laser ignore G code of S Command and only set the specific power of my Custom GUI. How I can do it?
Please Log in or Create an account to join the conversation.
In Manual Mode the power laser ignore G code of S Command and only set the specific power of my Custom GUI. How I can do it?
Why not use the output of the GUI to set the S value, then you don't have to do the same thing 2 different ways?
Please Log in or Create an account to join the conversation.
- diegoroman17
- Offline
- Premium Member
- Posts: 140
- Thank you received: 2
Please Log in or Create an account to join the conversation.
We have no idea what your GUI consists of.How can I set S command from GUI?
Read up on halui, you can pass any MDI command simply by activating a pin and can increment and decrement the spindle directly.
linuxcnc.org/docs/2.5/html/gui/halui.html
Not sure what this means.If my code G already has S commands...
If you are in manual mode it is irrelevant what S values are set in your G code file.
The next Snnn call overrides anything before it.
regards
Please Log in or Create an account to join the conversation.
If you made a gladeVCP panel with a spinbutton (for manual power rate) and a toggle button (for manual/auto power control selection)
then connect the spindle speed output pin and the spinbutton to an OR component and the OR output to the laser you would have what you want.
Is this what you are wanting?
Please Log in or Create an account to join the conversation.
- diegoroman17
- Offline
- Premium Member
- Posts: 140
- Thank you received: 2
Please Log in or Create an account to join the conversation.
Look at mux2Is OR component equal to OR gate? OR gate don't admit inputs float. You have the idea of that I want to do. I think that a HAL selector component is the solution. It component exist?
Please Log in or Create an account to join the conversation.
- diegoroman17
- Offline
- Premium Member
- Posts: 140
- Thank you received: 2
It is not possible because I send different power laser in different layer.Why not use the output of the GUI to set the S value, then you don't have to do the same thing 2 different ways?
It is the solution!!! ThanksLook a mux2
Please Log in or Create an account to join the conversation.