Hello Guest it is April 24, 2024, 08:10:17 PM

Recent Posts

Pages: « 1 2 3 4 5 6 7 8 9 10 »
71
General Mach Discussion / cncest 6040 limit switch function & config
« Last post by spanky on April 08, 2024, 06:55:01 PM »
I cannot get the limit switches to be recognized on this machine. no indication that they are active. I have traced the wires and tested with a meter. Can someone help with setting them up?
72
Mach4 General Discussion / Re: Load Gcode File not working in macro
« Last post by Graham Waterworth on April 08, 2024, 06:51:16 PM »
I do not see how that can work, all the internal code pointers will be screwed up.
73
General Mach Discussion / Encoders and MPG's
« Last post by Yorkshire Pudding on April 08, 2024, 06:44:13 PM »
Hi all,
is it possible to use the Encoder/MPG inputs to control Speed and Feed overrides and if so how do I link them to the feed and speed DRO's.
Thanks YP
74
Mach4 General Discussion / Load Gcode File not working in macro
« Last post by mediumSasuage on April 08, 2024, 09:11:05 AM »
Hi All,

I am trying to make a macro that allows me to dynamically edit GCODE. To do this, I am going to edit the GCODE in python and save the file to a directory, then reload it into Mach4 using a macro. I have written a test macro for the load GCODE part:

Quote
function m313()   --load gcode file
   
   local inst = mc.mcGetInstance() -- get mach4 instance
   mc.mcCntlCloseGCodeFile(inst)
   wx.wxMessageBox('Closed GCODE')
   
   local NextFileParen = "(C:\\Mach4Industrial\\Profiles\\CHAMP\\GCODE\\GCODEtoLoad.txt)"
   --wx.wxMessageBox(NextFileParen)
   
   local NextFile = string.gsub(NextFileParen, "[()%c%s]", "")
   wx.wxMessageBox('next file\n'..NextFile)
   
   wx.wxSleep(1) --gives Mach a second to do its thing
   
   mc.mcCntlLoadGcodeFile(inst, NextFile)
   
   wx.wxSleep(5) --gives Mach a second to do its thing
   
   mc.mcCntlCycleStart(inst)
         
end


if (mc.mcInEditor() == 1) then
   --dofile ("load_modules.mcs")
   m313()
end

When I run this macro within the ZeroBrane debugging tool, it appears to work fine. However, when I run it by calling the macro in gcode, it runs to end but does not actually load the GCODE. Anyone got any ideas why this may be/ any hints towards a solution?

Many thanks,
Dan
75
Mach4 General Discussion / Re: m6 on newest version 5325 not working
« Last post by gorf23 on April 07, 2024, 07:21:49 PM »
Hi Andy

I did some messing around with the 5327 ver and smoothstepper ver 309

I finally got the m6 to work with the mdi and gcode file.

But i am having some strange results, on the m6 lines. its seems to want to pick the next tool and not the one on the m6 line..
I a run the gcode it want to pick the the next tool change from the gcode, not always the m6 line it stops on so if the first m6 line looking for tool 13, and the next m6 line in the gcode has t4 on the m6 line it picks tool 4 as the tool change on the first m6 t13 line instead of t13 and the code will excite ok for here till it gets to the next m6 t4 now it thinks that t4 is already in the spindle so it doesn't stop and wait for the tool change.
Not sure if i am making any sense..
I am using the m6 macro that mach4 installed when i installed it and made no modes to it, and i am using the wx4 screen..
other than it seeming to be the wrong tool to change to the code will run and do its functions but without stopping for a tool change sometimes.

This is the first 3 tool change's in the gcode file if you see anything there that would cause the problem.

Code: [Select]
[
(SLICEHDMOUNTSPOTDRILL)
(EFFECTOR SLICE HOTEND MOUNT)
(T13  D=0.25 CR=0. TAPER=90DEG - ZMIN=-0.0394 - SPOT DRILL)
G90 G94 G91.1 G40 G49 G17
G20

(SPOTDRILL)
M5
T13 M6
S3000 M3
G54
M8
G0 X0.7162 Y0.0877
G43 Z0.689 H13
Z0.2953
G98 G81 X0.7162 Y0.0877 Z-0.0394 R0.1969 F6.
X0.374 Y-0.0878
Y-0.4815
X-0.374
Y-0.0878
X-0.7184 Y-0.1652
G80
Z0.689

(SLICEHDMOUNTLDXHOLES)
(EFFECTOR SLICE HOTEND MOUNT)
(T4  D=0.1339 CR=0. TAPER=118DEG - ZMIN=-0.6693 - DRILL)
(LDX HOLESDRILL)

M9
M5
T4 M6
S3000 M3
G54
M8
G0 X0.374 Y-0.0878
G43 Z0.689 H4
Z0.2953
G98 G83 X0.374 Y-0.0878 Z-0.6693 R0.1969 Q0.0138 F17.2
Y-0.4815
X-0.374
Y-0.0878
G80
Z0.689

(SLICEHDMOUNTLDOHOLES)
(EFFECTOR SLICE HOTEND MOUNT)
(T17  D=0.0984 CR=0. TAPER=118DEG - ZMIN=-0.6496 - DRILL)
(LDOHOLESDRILL)
M9
M5
T17 M6
S3000 M3
G54
M8
G0 X-0.7561 Y-0.1327
G43 Z0.689 H17
Z0.2953
G98 G81 X-0.7561 Y-0.1327 Z-0.6496 R0.2953 F4.7
X0.6785 Y0.1201
G80
Z0.689
/code]

thanks Gary
 
76
Don't you just need to incorporate another tool offset for the drill holder?  You would just put a known diameter rod in the chuck and touch it off in the same way.
77
General Mach Discussion / Need some foundation advice please on my lathe please.
« Last post by boydage on April 06, 2024, 05:58:52 PM »
Many years experience with a router. Only just enough with a converted lathe. The lathe I installed a 1.5kw VFD driven motor, made a new saddle and added HG rails to the mix with some closed loop steppers. I bought a 4 tool square turret. Very rarely I need to use it for timber turning up decorative house parts that might consist of a 140mm ball so needed a huge amount of X travel for a long tool.

It took a while to get the 4 tool turret to change both with programming and electrical connections. But it works and does the job. The saddle retracts right back to about 10mm before the homing switch before the turret rotates to position.

I am using the tool table offsets and have used a Z tool setter in a jig in my chuck with a G31 move to touch off each tool in the X direction.

Ok. What I didn't setup was any way to drill. And, I now have a part to make in the 100s that needs to be drilled, and a taper honed out. I have a large amount of X saddle and travel. I am going to manufacture a gang tooling setup to sit on the saddle in front of the turret.

I thought I could add some tool-change lines into my tool-change macro which is based on the sensor outputs for the turret. And add in the offsets into the tool table. Was unsure how to set clearances as they will be different to the turret. After reading a bunch of posts I am asking if this is the correct way to set my machine up? I have read people are using G52 offsets, new to me.

With this information in hand. How would I best setup this gang tooling turret lathe to operate? Asking now whilst I am in the machine design stage where to begin in the place of getting it wrong a bunch of times and coming here with a QBL. (quivering bottom lip) because it either does not work or more likely my machine has crashed. Thanks in advance.
78
Mach4 General Discussion / Re: m6 on newest version 5325 not working
« Last post by gorf23 on April 06, 2024, 11:02:03 AM »
Yes I have the latest plugin ver 309

I will mess with it some more later.

Gary
79
Mach4 General Discussion / Re: m6 on newest version 5325 not working
« Last post by smurph on April 06, 2024, 12:36:32 AM »
I think if it works with Sim, then it should work with ESS.  Have you tried updating the ESS plugin?

Steve
80
Mach4 General Discussion / Re: m6 on newest version 5325 not working
« Last post by gorf23 on April 05, 2024, 08:52:58 PM »
Steve,

I tried 5327 i am getting the same results,
I did use the m6 macro that came with the mach4 install this time, to eliminate the macro..
I ran a G0 X1 and a G31 Z-1 in the mdi and they worked fine, i hit the probe and motion stopped.
But the M6 T# does nothing, ran a G Code file again and got struck on the first M6 command.

I switched to the simulator mode and the m6 works ok there..
I am using a smoothstepper.

Do you think i have a setting incorrect?. it was working a few versions back and i don't think i changed anything
I do see you made a few changes to these version's i looked at the screenload script and that has changed a lot..

Let me know what you think

Gary
Pages: « 1 2 3 4 5 6 7 8 9 10 »