Require parameter inputs on user interface
- curtkilian@gmail.com
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
05 Oct 2018 05:32 #118456
by curtkilian@gmail.com
Require parameter inputs on user interface was created by curtkilian@gmail.com
Hi,
I am new in LInuxcnc.
I have written and tested code which mills a basin cutout and then draining grooves. There is a .ngc file for each different type of basin. The machine operator now opens the file for the required basin and then has to edit the following parameters on the file before the code may be run:
1. Basin File = (to open a specific file for the required basin)
2. Stone TH = (the code uses this to determine the milling depth)
3. Basin Centre X = (to change start position machining)
4. Basin Centre Y = (to find start position machining)
5. GRV Qty R = (to indicate how many grooves to be milled to the right of the basin)
6. GRV Qty L = (to indicate how many grooves to be milled to the right of the basin)
7. GAP = (Distance between basins - also, if entered code will know that there are 2 basin holes to be milled)
I need to to make it simple for my CNC machine operators to run the code without having to edit the file first and then saving it as "New Name" by adding Inputs on my Axis Interface for the above which will then replace the parameter values in the G code file.
Please can anyone assist with instructions or suggest good simple articles on this subject
I am new in LInuxcnc.
I have written and tested code which mills a basin cutout and then draining grooves. There is a .ngc file for each different type of basin. The machine operator now opens the file for the required basin and then has to edit the following parameters on the file before the code may be run:
1. Basin File = (to open a specific file for the required basin)
2. Stone TH = (the code uses this to determine the milling depth)
3. Basin Centre X = (to change start position machining)
4. Basin Centre Y = (to find start position machining)
5. GRV Qty R = (to indicate how many grooves to be milled to the right of the basin)
6. GRV Qty L = (to indicate how many grooves to be milled to the right of the basin)
7. GAP = (Distance between basins - also, if entered code will know that there are 2 basin holes to be milled)
I need to to make it simple for my CNC machine operators to run the code without having to edit the file first and then saving it as "New Name" by adding Inputs on my Axis Interface for the above which will then replace the parameter values in the G code file.
Please can anyone assist with instructions or suggest good simple articles on this subject
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23310
- Thank you received: 4858
05 Oct 2018 12:39 #118472
by andypugh
Replied by andypugh on topic Require parameter inputs on user interface
Which user interface?
The "Touchy" interface supports macros with prompts:
linuxcnc.org/docs/2.7/html/gui/touchy.html#_macros
But it might be better to make a custom input screen. Something like these:
forum.linuxcnc.org/41-guis/26550-lathe-macros
You can have a picture with entry boxes, then pass the numbers to your G-code subroutines.
(With Python code embedded in the custom screen you can then, for example, allow direct entry of corner coordinates, and have the centre / width update and vice-versa)
The "Touchy" interface supports macros with prompts:
linuxcnc.org/docs/2.7/html/gui/touchy.html#_macros
But it might be better to make a custom input screen. Something like these:
forum.linuxcnc.org/41-guis/26550-lathe-macros
You can have a picture with entry boxes, then pass the numbers to your G-code subroutines.
(With Python code embedded in the custom screen you can then, for example, allow direct entry of corner coordinates, and have the centre / width update and vice-versa)
Please Log in or Create an account to join the conversation.
- newbynobi
- Offline
- Platinum Member
Less
More
- Posts: 2075
- Thank you received: 406
22 Oct 2018 19:54 #119216
by newbynobi
Replied by newbynobi on topic Require parameter inputs on user interface
Gmoccapy do also support macros with parameters, which will be ask one by one through dialog windows.
Please Log in or Create an account to join the conversation.
Moderators: HansU
Time to create page: 0.059 seconds