Hello Guest it is March 28, 2024, 07:18:06 AM

Recent Posts

Pages: « 1 2 3 4 5 6 7 8 9 10 »
21
VB and the development of wizards / Re: Wizards write question
« Last post by JohnHaine on March 23, 2024, 04:37:18 PM »
Are you talking about the Mach3 engraving wizard?  I suggest you download F-Engrave and use that instead to generate g code.
22
VB and the development of wizards / Wizards write question
« Last post by johndolecki on March 23, 2024, 03:54:59 PM »
If I want to engrave two words how do I control the spacing between the words?

In its current configuration spacing controls the gap between the letters.

The space between the word is huge and I don’t see a setting for that.

Or do I just have to engrave each word separately ?
23
Mach4 General Discussion / Re: Upgrade problem - 4498 to 5310
« Last post by RecceDG on March 23, 2024, 11:51:32 AM »
Verified - thanks!
24
HiCON Motion Controller / Re: Spindle Setup with 7866 control and VFD
« Last post by McRoth on March 23, 2024, 10:11:21 AM »
Since Mach has those inputs I'm going to go ahead and wire them in and use them.
25
Mach4 General Discussion / Re: Script to Orientate Spindle
« Last post by Steelbarz on March 22, 2024, 10:13:15 AM »
Check how we a servo on the spindle here:
https://www.cnc4pc.com/blog/post/configure-an-step-and-direction-servo-as-spindle-on-mach4-using-the-ethernet-smooth-stepper-and-c82

Thank you, that was last week's problem...lol just getting the spindle to work.  But now I am hoping to control the spindle so that I can position its orientation a set number degrees off the index mark.
27
I have made a module file 'PocketPositions.Lua' with a bunch of functions.

In the screen load script I added the following:
Code: [Select]
-- Pocket Positions
package.loaded.PocketPositions = nil
PocketPositions = require "PocketPositions"

From a tab On enter script I have:
Code: [Select]
local pocketNums = PocketPositions.GetUsedPocketNumbers()
if pocketNums[1] ~= nil then
wx.wxMessageBox("pocketNums[1] ="..tostring(pocketNums[1]))
table.sort(pocketNums)
local pocketStr = ""
for i=1, #pocketNums do
pocketStr = pocketStr .. pocketNums[i] .. "|"
end
wx.wxMessageBox("pocketStr="..pocketStr)
scr.SetProperty("GROUPBOX_CurrentToolPocket", "Strings", pocketStr)
else
wx.wxMessageBox("pocketStr=nil")
end

the function 'PocketPositions.GetUsedPocketNumbers()' looks like:
Code: [Select]
-- Gets a table of the pocket numbers that are configured
function PocketPositions.GetUsedPocketNumbers()
local PocketNums={}
local n=0

-- make sure the pockets have been loaded
if PocketDetails == nil or PocketDetails[0] == nil then
PocketPositions.ReadPocketData()
end

for k,v in pairs(PocketDetails) do
  n=n+1
  PocketNums[n]=k
end

return PocketNums
end

When it calls the function 'PocketPositions.ReadPocketData()' (which is also in the  'PocketPositions.Lua' file) I get an error that 'PocketPositions' is null.

If I step through 'PocketPositions.ReadPocketData()' in the script editor it works fine.

Any idea what's happening and how I fix it?

28
FAQs / Re: Speak synthesizor speaks german. How do I change to english
« Last post by Idefixer on March 19, 2024, 05:44:32 PM »
Hi Tweakie.

Thanks for your answer but I have allready tried that with no luck, sorry to say.

I then installed Visual Studio and all net.x parts, and then after restarting the computer, the voice synthesizer reads in English.

Best regards
Claus
29
Mach4 General Discussion / Re: Script to Orientate Spindle
« Last post by Steelbarz on March 19, 2024, 02:32:41 PM »
Here is an example of the orientate macro we're running on one of our mills.

Thank you, That gave me the code to start and stop very helpful, but I still cant get it to stop on the index signal
30
Mach4 General Discussion / Re: Script to Orientate Spindle
« Last post by GOOMBA on March 19, 2024, 09:10:02 AM »
Here is an example of the orientate macro we're running on one of our mills.
Pages: « 1 2 3 4 5 6 7 8 9 10 »