Hello Guest it is April 25, 2024, 04:36:56 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 - DazTheGas

381
Mach4 General Discussion / Re: Mach4 G28 issue with ethernet smoothstepper
« on: November 04, 2016, 06:35:22 PM »
If you go into your Mach4Hobby directory you will find a docs directory, this contains all sorts of information.

The information you are looking for is in the Mill GCode Programming PDF on page 17.

DazTheGas

382
AFAIK there is no 64bit parallel plugin as the ports are 32bit thus most new computers dont normaly have one., the ESS will work fine and the driver can be found at http://warp9td.com/index.php/sw#PluginEssMachFour

DazTheGas

383
Mach4 General Discussion / Re: Mach4 Random Crash
« on: November 03, 2016, 11:49:38 AM »
Quote
This is the Windows 7 desktop manager that is failing

That is correct, I had this many moons ago so so I changed my theme to the basic windows theme without any Aero, this solved it for me.

DazTheGas

384
Mach4 General Discussion / Re: How many use Notepad++
« on: November 03, 2016, 09:53:51 AM »
Quote
You have been the sole Alpha tester

As you well know my screen is written in pure wx / lua and this has made my coding so much easier, keep up the good work.

Always happy to test.

DazTheGas

385
Mach4 General Discussion / Re: How many use Notepad++
« on: November 03, 2016, 03:40:14 AM »
Cool, I use this all the time, keep up the good work.

DazTheGas

386
Mach4 General Discussion / Re: Mach4 4K Monitor Support
« on: October 31, 2016, 06:49:59 PM »
Can you not just resize the columns with the mouse, run your cursor accross the headers and the mouse should change??

DazTheGas

387
Mach4 General Discussion / Re: mcRegGetHandle
« on: October 27, 2016, 09:04:37 AM »






Quote
This is possible, but not as user friendly.

So lets take what code you had

Code: [Select]
function SetRegister(regname, val)
 local inst = mc.mcGetInstance()
 local hreg = mc.mcRegGetHandle(inst, string.format("iRegs0/%s", regname))
 mc.mcRegSetValueString(hreg, val)
 if (debug_scp == 1) then
    mc.mcCntlSetLastError(inst, "regname = " .. regname .. "val = " .. val)
 end
end

and change it too


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

function SetRegister(regname, val)
    mc.mcProfileWriteString(inst,"VarReg", regname, val)
end

function GetRegister(regname)
    local val = mc.mcProfileGetString(inst, "VarReg", regname, "defVal")
return val
end

-- unload script or appropiate place must have - mc.mcProfileDeleteSection(inst, "VarReg") - to stop mach4 from saving to ini file or they will become persistant.

and for the user

Code: [Select]
SetRegister("test","testVal")

local teststring = GetRegister("test")
wx.wxMessageBox(teststring)

Looks pretty user friendly to me...................

DazTheGas

388
Mach4 General Discussion / Re: mcRegGetHandle
« on: October 27, 2016, 02:34:47 AM »
Registers can only be created by plugins which are registered to the core and created in a config state, you could use the regfile plugin and create some registers for your scripts to use.

Another possibility is to use the mcProfile commands to create a key on the fly and then delete the key after use.

DazTheGas

389
Post the code to check, but does sound like you have an infinite  loop somewhere

DazTheGas

390
If you have the keyboard plugin enabled try dissabling it in the taskbar.

DazTheGas