Hello Guest it is March 28, 2024, 07:59:15 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - KentCNC

Pages: 1 2 3 4 5 »
1
Mach4 General Discussion / Re: How to Create a Simple Dialog Box
« on: March 29, 2021, 09:16:59 PM »
Thank you for the response. I'll have to see if I can get creative and work around the need for a dialog box. If not, guess I'll need to learn more.

Thanks Again!

2
Mach4 General Discussion / Re: ShuttlePro Losing Setup
« on: March 29, 2021, 09:15:38 PM »
Is build 4700 available? I only see 4612.

3
Mach4 General Discussion / Re: ShuttlePro Losing Setup
« on: March 29, 2021, 03:46:58 PM »
Fantastic! Thanks for the info.

4
Mach4 General Discussion / Re: ShuttlePro Losing Setup
« on: March 29, 2021, 11:58:09 AM »
Mach4 Build 4612 and ESS 272.

5
Mach4 General Discussion / How to Create a Simple Dialog Box
« on: March 28, 2021, 01:58:04 PM »
Another seemingly simple issue that I can't figure out after searching for a couple hours. In Lua, I want to create a modal dialog box with OK and Cancel buttons. I assume I can then use the return value in an IF statement afterward. It seems I could use a wxMessageDialog with wxOK and wxCancel buttons. I just can't find a good example or description of how you do this.

6
Mach4 General Discussion / ShuttlePro Losing Setup
« on: March 25, 2021, 01:58:03 PM »
My ShuttlePro is losing setup information. I use it to jog the x, y, and z. I use the inner wheel to jog in small increments (0.001"). I set the increments using the Incremental Jog Step on the Jogging tab. This along with the key mapping sometimes is not saved between closing and opening Mach. Unfortunately, I first noticed this when trying to check the z-zero position. I had the z- jogged close to the workpiece and was going to gauge the setting by sliding a piece of paper back and forth under the bit will stepping down in 0.001" increments. However, the increment was reset to 1". Needless to say, my bit exploded when it took that 1" step into the workpiece.

I assume this is a bug???

7
Mach4 General Discussion / Re: How to Exit Screen Script
« on: March 25, 2021, 01:49:45 PM »
I went back to my script and sure enough return would work. Not sure what I was doing wrong before. Thank you very much for the responses!

8
Mach4 General Discussion / Re: How to Exit Screen Script
« on: March 25, 2021, 09:16:48 AM »
I have changed my script to use a series of if and elseif statements and eliminated the need for return. So I created the simple script below and like you said the return worked. When I get a chance I will modify my actual routine to determine if I was mistaken or if something odd is truly happening.

if 1==1 then
   wx.wxMessageBox ("Return statement next")
   return
end
wx.wxMessageBox ("Return did not work")

9
Mach4 General Discussion / Re: How to Exit Screen Script
« on: March 24, 2021, 02:43:18 PM »
I tried return but that did not work. It continued to execute instructions after that IF statement.

10
Mach4 General Discussion / Re: How to Exit Screen Script
« on: March 24, 2021, 09:18:16 AM »
Thank you for that response. The first question may be so basic that it is easy not to understand what I am asking. If I wrote a subroutine in Visual Basic and had logic that determined a need to exit the subroutine, I would use an Exit Sub command. Any node after that command would not be executed. Is there an equivalent method for exiting the code in a screen button script? Perhaps it just needs to be written as a function and stored it the screen load and called from the button script. I assume you can exit a function using "Return".

Pages: 1 2 3 4 5 »