Hello Guest it is May 03, 2024, 03:06:12 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.


Messages - Graham Waterworth

371
General Mach Discussion / Re: Jog mode vs. Program mode
« on: April 21, 2021, 08:59:24 PM »
The Jog rate might be set at something less than 100%, Press the TAB key on the keyboard and make sure Jog is at 100% then retune your motors, making sure steps per are set correctly.

You can check movement with a Dial Clock and enter this code in MDI screen :-

Metric, Move 1mm from current position
G01 G91 X1. F25.

Inch, Move 50 thousands from current position
G01 G91 X.05 F1.


372
I am running the ESS card and Mach4 hobby on an Intel Core i5-3550K CPU @ 3.3GHz with 16Gb ram and it runs your code at 5 to 6% and the odd spike to 14%.

373
General Mach Discussion / Re: Boxford 160 TCL turret
« on: April 12, 2021, 06:30:24 PM »
Your machine has the tools at the back so you need to have the tool path above set and arcs reversed.

I have adjusted your XML so it looks like mine for my Boxford 160

%
O0134(TEST O/D TURNING)
G18 (Use X/Z Plane Mode)
G40 (Cancel Nose Radius Compensation)
G90 (Use Absolute Distance Mode)
G80 (Cancel Canned Cycles)
G21 (Use Metric Units)
G95 (Feed Per Rev Mode)
G0 X52.5 Z1.25 (Move Rapidly To Part Start Position)
G48 S2000 (Set CSS Mode To 2000 Max RPM)
G96 S200 M04 (Start Spindle CCW In CSS Mode)
F0.2 (Set Roughing Feed Rate To 0.2 Millimeters Per Minute)
(Begin Roughing Passes)
G0 X48
G1 Z-49.8
G0 X50.5 Z-48.75
G0 Z1.25
G0 X46
G1 Z-49.8
G0 X48.5 Z-48.75
G0 Z1.25
G0 X44
G1 Z-49.8
G0 X46.5 Z-48.75
G0 Z1.25
G0 X42
G1 Z-49.8
G0 X44.5 Z-48.75
G0 Z1.25
G0 X40
G1 Z-49.8
G0 X42.5 Z-48.75
G0 Z1.25
G0 X38
G1 Z-49.8
G0 X40.5 Z-48.75
G0 Z1.25
G0 X36
G1 Z-49.8
G0 X38.5 Z-48.75
G0 Z1.25
G0 X34
G1 Z-49.8
G0 X36.5 Z-48.75
G0 Z1.25
G0 X32
G1 Z-49.8
G0 X34.5 Z-48.75
G0 Z1.25
G0 X30
G1 Z-49.8
G0 X32.5 Z-48.75
G0 Z1.25
G0 X28
G1 Z-49.6947
G0 X30.5 Z-48.4447
G0 Z1.25
G0 X26
G1 Z-49.3635
G0 X28.5 Z-48.1135
G0 Z1.25
G0 X24
G1 Z-48.747
G0 X26.5 Z-47.497
G0 Z1.25
G0 X22
G1 Z-47.6533
G0 X24.5 Z-46.4033
G0 Z1.25
G0 Z1.25
G0 X20.4
G1 Z-45
G03 X30 Z-49.8 I4.8 K0
G1 X52.5
G0 Z1.25
F0.15 (Set Finishing Feed Rate To 0.15 Millimeters Per Minute)
(Begin Finishing Passes)
G0 X20
G1 Z-45
G03 X30 Z-50 I5 K0
G1 X52.5
G0 Z1.25
G97 S500
M05 (Stop Spindle)
M30 (End Program)
%


374
Mach4 General Discussion / Re: Tool setter, M6, tool length offsets
« on: April 10, 2021, 05:22:10 PM »
By the way you can NOT use G91 in G53 mode

375
Mach4 General Discussion / Re: Tool setter, M6, tool length offsets
« on: April 10, 2021, 05:17:23 PM »
Try it like this :-

Code: [Select]
function m6()
   
local inst = mc.mcGetInstance()

----------------------------------------------------------------------------------
--change lines here to either auto rapid, or manually jog to a tool change position
----------------------------------------------------------------------------------
--Manual Lines. Uncomment line below to allow you to manually jog to a tool change position.
--local MyChoice = wx.wxMessageBox("Click OK, \nThen Jog to A Safe Tool Change Position,\nInsert New tool,\nThen Click Cycle Start.","Click OK to continue" , 16)
---------------------------------------------------------------------------------
--Auto Lines.  Uncomment both lines below (and comment out local MyChoice line above) to automatically move to tool change position.
--Edit to include the machine coordinate values of that tool change position.

--AUTO LINES
mc.mcCntlGcodeExecuteWait(inst, "G53 G0 Z-5\nG53 G0 X200.0 Y20.0")--Move the Z to Home.Then to the X, Y Coords for our touch pad.
mc.mcCntlSetLastError(inst, 'Now in Tool Change Position. Hit Cycle Start!')
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local posmode = mc.mcCntlGetPoundVar(inst, mc.SV_MOD_GROUP_3) --get the current mode so we can return to it when macro ends
local selectedtool = mc.mcToolGetSelected(inst)
local currenttool = mc.mcToolGetCurrent(inst)
   
 if selectedtool == currenttool then
        mc.mcCntlSetLastError(inst, "Current tool == Selected tool so there is nothing to do")
        do return end
 end
  mc.mcCntlToolChangeManual(inst, true);
  mc.mcCntlSetLastError(inst, "Current tool == " .. tostring(selectedtool) .. "   Previous Tool == " .. tostring(currenttool))
  mc.mcToolSetCurrent(inst, selectedtool)

  --local MyChoice = wx.wxMessageBox("Click Ok to Begin Probing the New Tool","Click OK to continue" , 16)
    mc.mcCntlGcodeExecuteWait(inst, "G53 G0 X24.0 Y436.0")--
        mc.mcCntlSetLastError(inst, "Probing in Progress!")
        mc.mcCntlGcodeExecuteWait(inst, " G91 G31 Z-95. F150.")--probe the new tool
local probedz = mc.mcCntlGetPoundVar(inst, mc.SV_PROBE_POS_Z) -- Z Probe position in Machine coords
        mc.mcCntlGcodeExecute(inst, string.format('G ' .. posmode))--return to pre macro mode G90, or G91
  mc.mcCntlGcodeExecuteWait(inst, "G00 G53 Z0 ")--Retract
 
local NewOffset = probedz
  mc.mcToolSetCurrent(inst, SelectedTool)
  mc.mcToolSetData(inst, mc.MTOOL_MILL_HEIGHT, selectedtool, NewOffset)
  mc.mcCntlSetLastError(inst, string.format("Auto tool setting complete, Offset = %.4f", NewOffset))
wx.wxMessageBox("Toolchange Complete.\nTLO Set")
end

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

376
General Mach Discussion / Re: mach3 support G43.4 g-code or not
« on: April 09, 2021, 01:07:38 PM »
I do not think the kinematics stuff is in Mach4 yet,  G43.4 is all part of 5 axis and the use of TCP/TWP setup of the machine.

378
General Mach Discussion / Re: Motor controls not consistent
« on: April 09, 2021, 12:40:56 PM »
What hardware are you using, some pictures will help too.

379
Mach4 General Discussion / Re: Tool setter, M6, tool length offsets
« on: April 06, 2021, 08:24:35 AM »
It may need it to be in both, if you are using tool length compensation you have to have a G43 active and G49 to turn it off.

380
Mach4 General Discussion / Re: Tool setter, M6, tool length offsets
« on: April 06, 2021, 08:14:36 AM »
G43 is normally called before the first Z move

E.g. G00 G90 G43 Z10. H1