Hello Guest it is March 28, 2024, 01:34:29 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 - Thinder

Pages: 1 2 3 4
1
Mach4 General Discussion / Re: Line 0: Multiple E words in block
« on: October 29, 2022, 12:05:16 PM »
When Brian mentioned Scientific notation, I immediately thought "i wonder if my tool length is being recorded as some ultra-long decimal and then is converted to scientific notation?  Ill look into my M6 and see.  My current cut is reporting the tool length to only 4 decimal places in the info bar on mach4......

2
Mach4 General Discussion / Re: Line 0: Multiple E words in block
« on: October 28, 2022, 10:11:18 AM »
Ive had this same problem.  Mine seems to be completely random.  My M6 is working fine for hours then out of nowhere, on a proven program it will give me the "multiple E words in block"

3
General Mach Discussion / Re: Neverending G04 pause.
« on: November 08, 2020, 06:32:38 PM »
screen shot of the Gcode.

4
General Mach Discussion / Neverending G04 pause.
« on: November 08, 2020, 06:32:13 PM »
Just got my ESS/tmc3in1 running on my plasma.  Post processed some code from sheet cam for mach 4.  It strikes and cuts the first feature then hits a Go4 after probing, then sits there.  No more movement. I stopped it and rewound the code,  now it hits the first go4 after probing and hangs, with no first cut.  Any ideas?


5
Nevermind! after messing with it all day yesterday, as soon as i posted this AM i realized I had a spare "END" left in the code preventing it from compiling!

maybe this will help someone else

6
HI,

 I edited my M6 Script and now Mach 4 wont recognize the edits, its still functioning as if the old M6 was there.  I've tried to delete all of the MCC extensions but that gives me the error:
Failed to retrieve file times for "c:\Mach4hobby\profiles\.....m6.mcc"  (error 2: The system cannot find the file specified)

any ideas?

7
Mach4 General Discussion / Sharing an M6 with auto Tool setter
« on: November 13, 2019, 02:19:11 PM »
Ive written a macro for M6 manual tool change with automatic tool length setting using a touch plate.  Im so proud of myself!!! Thanks to DaztheGas!!  your videos really got me going!

I hope this helps someone else!

Code: [Select]
function m6()

local inst = mc.mcGetInstance() ;

local currentTool = mc.mcToolGetCurrent(inst)
local selectedTool = mc.mcToolGetSelected(inst)
local posmode = mc.mcCntlGetPoundVar(inst, mc.SV_MOD_GROUP_3) --get the current mode so we can return to it when macro ends
     
--Get positions before moving to do tool change
local valX, rc = mc.mcAxisGetMachinePos(inst, mc.X_AXIS) --Get the position of the X axis in Machine Position
local valY, rc = mc.mcAxisGetMachinePos(inst, mc.Y_AXIS) --Get the position of the Y axis in Machine Position
local valZ, rc = mc.mcAxisGetMachinePos(inst, mc.Z_AXIS) --Get the position of the Z axis in Machine Position


if selectedTool == currentTool then
return
mc.mcCntlSetLastError(inst, "Current tool == Selected tool so there is nothing to do")
else


mc.mcCntlGcodeExecute(inst, "G90 G53 G0 Z0.0");--Move the Z axis all the way up
mc.mcCntlGcodeExecute(inst, "G53 X24.0 y2.0");--Move the X axis to the middle and Y axis to the end and
mc.mcCntlSetLastError(inst, "Change to tool " .. tostring(selectedTool) .. " and press start to continue") --Message at beginning of tool change
mc.mcCntlToolChangeManual(inst, true) --This will pause the tool change here and wait for a press of cycle start to continue
mc.mcCntlGcodeExecute(inst, "G53 G01 X47.66 y.92 f350");--Move the X axis and Y axis to the tool setter
mc.mcCntlGcodeExecute(inst, "G53 G0 z-3")--Moves the z axis down 3 inches rapid
end

local MyChoice = wx.wxMessageBox("Click Ok to Begin Probing the New Tool","Click OK to continue" , 16)  -- brings up a dialog box and waits for a selectio to proceed

if (MyChoice == 16) then  --16 is cancel
rc = mc.mcCntlSetLastError(inst, 'Auto Tool Zero was cancelled.') 
mc.mcCntlGcodeExecuteWait(inst, "G90 G53 G0 Z0.0000 F15.0") --Retract back to Z home
mc.mcCntlGcodeExecuteWait(inst, "G90 G53 G0 X" .. tonumber(valX) .. "Y" .. tonumber(valY)) --Move back to X & Y initial location
return
elseif (MyChoice == 4) then
        mc.mcCntlGcodeExecute(inst, "g53 G31 z-9 f15")--Probes z axis to the tool setter
mc.mcCntlSetLastError(inst, "Current tool == " .. tostring(selectedTool) .. "   Previous Tool == " .. tostring(currentTool)) --Message that shows after Cycle Start
mc.mcToolSetCurrent(inst, selectedTool) --sets the current tool displayed in mach to the selected tool
--local probedzW = mc.mcAxisGetPos(inst, 2)  --This would give 0 axis (z on my machine) coordinates in work coordinate syste, ive shown it just for educational purposes
local probedz = mc.mcCntlGetPoundVar(inst, 5073) --this retreives the Saved varible of the z position (#5073) in machine coordinates and assigns it to the name probedz
    local ToolLength = math.abs(9.5238 + probedz)  -- this calculates the value of the tool lenght by using a gage line off of my spindle to the tool setter.  uses the absolute value fuction
mc.mcCntlSetLastError(inst, "Tool Length" .. tostring(ToolLength))

mc.mcToolSetData(inst, mc.MTOOL_MILL_HEIGHT, selectedTool, ToolLength)  --- this sets the tool length value into the tool table into the selected tool position number, Note - i havent reassigned current tool varible so i have to use the "selectedTool" name
mc.mcCntlGcodeExecute(inst, "G04 p2.")
mc.mcCntlGcodeExecute(inst, "G90 G53 G1 Z0.0000 F40.0") --Retract back to Z home

local MyChoice = wx.wxMessageBox("Remove Probe Clip","Click OK to continue" , 16)  -- brings up a dialog box and waits for a selection to proceed

if (MyChoice == 16) then  --16 is cancel
    rc = mc.mcCntlSetLastError(inst, 'probing.') 

return
elseif (MyChoice == 4) then

mc.mcCntlGcodeExecute(inst, "G90 G53 G0 X" .. tonumber(valX) .. "Y" .. tonumber(valY)) --Move back to X & Y initial location
mc.mcCntlSetLastError(inst, "Tool Change Complete H ".. tostring(selectedTool) .. "   set to  ".. tostring(ToolLength).."  inches")
end

       

end
end

if (mc.mcInEditor() == 1) then
m6()
end

8
HI,

 Im working on a tool setting macro to work into my M6 tool change.  my super simple M6 that im currently using took all of my LUA knowledge so m im getting way out there in my world.  Thanks for the head start

9
HI all,

 i set up a new machine and moved over all of my macros to a new profile and this setup wont recognize a tool change.  Ive changed the setting to "Tool is tool to use" and checked my macro and its in the file.  It gives no error or anything.  MDI appears to run but the tool selected stays the same.  G43 works properly but i never get a tool number change.  Any ideas?

Thanks,

10
Mach4 General Discussion / Tool and offset table wont Display
« on: July 01, 2019, 06:05:58 PM »
Hi all. 

For some reason my tool table and my offset table wont display.  I click it and it shows is displayed down on the tool bar but i cant get it to display.  even when i roll over it, it shows it as a blank page.   THis is the first ive seen of this

Pages: 1 2 3 4