Hello Guest it is April 18, 2024, 05:04:41 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 - dude1

761
you can use fanuc macro b as well most of them work like this one I have tried it worked fine, disclaimer use at own risk

G49 (Cancel TLO)

G58 (Switch to work offset G58)

G0 X0 Y0 (move the tool over the toolsetter)

G31 Z-10 F150 (probe tool down till it touches the toolsetter)

G10 L1 P1 Z#2002 (set the tool length offset value to the G58 Z position where the probe tripped)

G0 Z5 (move up to safe distance)

G54 (reapply old work offset coordinate system)

G43 H1 (apply new TLO for tool 1)

if I have time I might try your one

762
Mach4 General Discussion / Re: Mach 4 Bug Reports
« on: May 27, 2015, 05:44:13 AM »
Reply #363

763
PMDX are good products to be nice to your self Steve

what I would say about them all is they are future proofing your machine as if you have PP now it will cost $100 to a $1000 + computer to get your machine back up and running if you computer dies and you wont a new computer.

and if you decide to add more functions to a machine all you need is a io card or another bob simple as that. there are enough people around that will help with get one of said boards working

764
Mach4 General Discussion / Re: Mach 4 Bug Reports
« on: May 27, 2015, 12:47:54 AM »
someone set it to me so I thought I better put down what does and does not work in a button or what works as one line of code instead of people seeing the argument over how to do it when it was not quite correct from the start can that silly bit get removed please

765
Mach4 General Discussion / Re: Mach 4 Bug Reports
« on: May 26, 2015, 09:55:03 PM »
so we are clear and anyone that comes a cross this, this does not work properly in a button script it will work some what as a single line of G code

local inst = mc.mcGetInstance()
mc.mcCntlGcodeExecuteWait(inst, "G1 X10 Y10 F450")
mc.mcCntlGcodeExecute(inst, "G1 X-10 Y-10 F450")

local inst = mc.mcGetInstance()
mc.mcCntlGcodeExecuteWait(inst, "G0 X10 Y10 F450")
mc.mcCntlGcodeExecute(inst, "G0 X-10 Y-10 F450")

local inst = mc.mcGetInstance()
mc.mcCntlGcodeExecuteWait(inst, "G0 X10 Y10\n")
mc.mcCntlGcodeExecute(inst, "G0 X5 Y5\n")

local inst = mc.mcGetInstance()
mc.mcCntlGcodeExecuteWait(inst, "G1 X10 Y10\n")
mc.mcCntlGcodeExecute(inst, "G1 X5 Y5\n")


this does for more than one G code move in a button

local inst = mc.mcGetInstance()
        mc.mcCntlGcodeExecute(inst, "G0 X10 Y10\nG0 X5 Y5\n")

local inst = mc.mcGetInstance()
        mc.mcCntlGcodeExecute(inst, "G1 X10 Y10\nG1 X5 Y5\n")

having it like this wont work ever having G1 does not help it to work or a F

mc.mcCntlGcodeExecute(inst, "G0 X10 Y10")

mc.mcCntlGcodeExecute(inst, "G0 X0 Y0")

or
mc.mcCntlGcodeExecute(inst, "G0 X0 Y0 X10 Y10 ")

the reason is here http://www.machsupport.com/forum/index.php/topic,28556.40.html

as I have been informed above is not quite correct

this is

local inst = mc.mcGetInstance()
local code = "G0 X10 Y10\n"
code = code .. string.format("G4 p2\n")
code = code .. string.format("G1 X-10 Y-10\n")
code = code .. string.format("G4 p2\n")
code = code .. string.format("G1 X0 Y0 F150\n")
mc.mcCntlGcodeExecute(inst, tostring(code))

766
Mach4 General Discussion / Re: Mach 4 Bug Reports
« on: May 26, 2015, 08:16:53 PM »
mc.mcCntlGcodeExecuteWait(inst, "G1 X10 Y10 F450")
mc.mcCntlGcodeExecute(inst, "G1 X-10 Y-10 F450")

this does not work properly in a button its the wrong code for button

767
Mach4 General Discussion / Re: Mach 4 Bug Reports
« on: May 26, 2015, 05:40:13 PM »
that don't work well in a button if you read back it has been tried if you read the link it says what happens with each type of gcode execute or what ever 
also the only difference is you put in a F word to what I had all ready posted if you don't have a F word it uses the default speed

768
Mach4 General Discussion / Re: MACH4 - Modbus
« on: May 26, 2015, 06:23:53 AM »
im

769
Mach4 General Discussion / Re: Mach 4 Bug Reports
« on: May 26, 2015, 05:28:12 AM »
this works
 local inst = mc.mcGetInstance()
        mc.mcCntlGcodeExecute(inst, "G0 X10 Y10\nG0 X5 Y5\n")

770
Mach4 General Discussion / Re: Mach 4 Bug Reports
« on: May 26, 2015, 03:58:39 AM »
try this

local inst = mc.mcGetInstance()
mc.mcCntlGcodeExecuteWait(inst, "G0 X10 Y10\n")
mc.mcCntlGcodeExecute(inst, "G0 X5 Y5\n")