Hello Guest it is April 16, 2024, 06:26:04 AM

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.


Topics - KentCNC

Pages: 1 2 »
1
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.

2
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???

3
Mach4 General Discussion / How to Exit Screen Script
« on: March 23, 2021, 11:40:57 AM »
I have two very simple question that I cannot find answers to.

1) How do I exit a screen script. I have a simple script add to the button up script. I have an If statement that when true I want to exit the code and not continue with the lines below it.

2) I want to use mc.mcCntlSetLastError(inst, "Yadda yada")to display a message to the user and not require an acknowledgment via a message box. I have the message at the beginning of a screen script. Later in that script I have a FOR loop that I am treating as a timer. The problem is that the message will not be displayed until the end when the timer completes and the rest of the routing finishes. How can I get that message to appear as soon as it is hit in the code and not wait for completion of execution of the entire script?

4
Mach4 General Discussion / Double Click Not Workings in PMC for Contacts
« on: February 23, 2021, 12:00:12 PM »
I am starting a new PMC and I first insert a Core action. I can double click that to get to the dropdown of actions.  I then insert a Contact. However, nothing happens when I double click the contact to gain access to the drop down menu. I reloaded Mach4, restarted the computer and it still does not work.

5
Mach4 General Discussion / Where to Find LuaCall.txt File?
« on: February 21, 2021, 08:05:09 PM »
Where can I fond the LuaCalls.txt file. It is not in the docs folder.

6
Mach4 General Discussion / How Are Encoders Configured in Mach4?
« on: February 21, 2021, 06:55:37 PM »
How do I configure incremental encodes in Mach4? I have an encoder on each side of the gantry used for racking detection. In Mach3 I would configure them as encoders on the “Encoders/MPGs” tab. In Mach 4 the tab is labelled “MPGs”. If I configure them as encoders on that tab and enable them they cause problems when jogging. Can I get counts from the encoders without enabling them or am I configuring them in the wrong place? I have not figured out how to get the counts from encoders in Lua. If you know that answer as well I would appreciate it.

7
Mach4 General Discussion / What does .PlcCycle() Do?
« on: February 20, 2021, 07:44:02 PM »
I have some code for controlling a vfd. I am wondering what .PlcCycle() does at the end of the primary function. This is the first row of the function:

function VFD_Spindle_Controller.PlcCycle()

The code is to be placed in the PMC folder. Does the .PlcCycle() added to the end cause the function to be called on each cycle of the PLC using the specified PLC Interval.

8
Mach4 General Discussion / Read DRO from Lua
« on: February 20, 2021, 05:26:33 PM »
How do you read a DRO using Lua? Not sure how to reference the DRO?

9
Mach4 General Discussion / Signal Number Definitions
« on: February 14, 2021, 03:55:00 PM »
Where can I find the definitions for the Mach4 signals?

I see the following in Lua code: return Read_Signal(1142)

I need to know which signal 1142 is associated with.




10
Mach4 General Discussion / Touch Probe Prep Distance
« on: February 08, 2021, 08:42:09 PM »
What is the Prep. Distance used in the touch probe setup? The description in the documentation does not tell me much.

Pages: 1 2 »