Hello Guest it is May 10, 2024, 10:03:11 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 - cd_edwards

Pages: « 1 2 3 4 5 6 7 8 9 10 »
11
Mach4 General Discussion / Re: XHC WB04 4 axis controller
« on: December 23, 2018, 05:03:58 PM »
There is a new plugin for the XHC WB04 controller posted in the plugins forum.

12
Mach4 Plugins / Re: XHC WB04 plugin
« on: December 23, 2018, 04:47:13 PM »
Here is a updated version of the XHC plugin. I've done some work on jogging which has now smoothed out quite alot.
added support for spindle and feedrate override control.

13
Mach4 General Discussion / Reading SDK CHM file
« on: December 22, 2018, 09:22:12 AM »
Here's something I came across that has always confused me. Every version of the sdk has had a compiled HTML SDK document which has all the functions in it. On my system at least, it was always blank when I checked out a function in the file. I discovered that in the properties tab of the file (right click it). there is a check box to Unblock it due to it being compiled on another computer and you have a readable document finally. It's only been 3 years before I found this :/

14
Mach4 General Discussion / Re: Mach4 Printer Port Discussions
« on: December 04, 2018, 08:52:11 AM »
or a smoothstepper. basically any board that is supported with Mach4 drivers that will convert a USB/ethernet signal into a LPT signal. Personally I use Warp9TD's smoothstepper. Do try and stay away from the cheap chinese stuff. Tends to not be as supported and buggy as well.

15
Mach4 General Discussion / Re: Setting Soft Limits On as the Default
« on: July 13, 2018, 04:41:44 AM »
something else you can use is mc.X_AXIS, mc.Y_AXIS etc to specify which axis you want. it makes your code more legible.

function autoSoftLimitsToggle (togglevalue)
    local rc = 0
    for i=0, 11 do
        if mc.mcAxisIsEnabled (inst,i) == 1 then mc.mcSoftLimitSetState (inst,i,togglevalue) end
    end
end

autoSoftLimitsToggle(1)

16
Mach4 General Discussion / Re: mcMasterModule question
« on: June 29, 2018, 05:07:11 PM »
I just confirmed that scr.GetProperty is not working at all.


        scr.SetProperty("droToolChangePosZ", "Value",  "1")
   val = scr.GetProperty("droToolChangePosZ", "Value")

always returns "". they are in the same function as a test. DRO value on screen changes as it should. retrieving it, fails.

17
Mach4 General Discussion / Re: mcMasterModule question
« on: June 29, 2018, 04:33:57 PM »
they are differant but I expected that. mc.* are internal mach4 functions. mcp.* are a lua script with functions.

18
Mach4 General Discussion / Re: mcMasterModule question
« on: June 29, 2018, 04:18:19 PM »
If my understanding of what I'm looking at is correct, we are looking at a "class" of functions which are then accessed through a pointer "mcp"

19
Mach4 General Discussion / Re: mcMasterModule question
« on: June 29, 2018, 04:15:46 PM »
if(package.loaded.Master == nil) then     
    mcp = require "mcMasterModule"
end

mcp.* is how you access the functions within that module.

20
Mach4 General Discussion / Re: mcMasterModule question
« on: June 29, 2018, 03:02:00 PM »
mcp is a local version of the mcMasterModule which I load as a require.
N_ is a "section name" which is loaded from the ini file. and of course "SafeZ" is the key and 0.00 is the default.
What this is supposed todo is read a value from the ini file and then set a register with that value in the iRegs0 section
the iRegs0 is in the LoadRegister function from mcMasterModule.lua which is included with Mach4.

My issue's are that scr.GetProperty() doesn't appear to work from a macro even when I have the required module loaded via a require.
and that mc.mGetRegister() doesn't work as per the example file. Now this problem I had a answer for before and forgot about it when I asked this question before.
Registers can only be created from a plugin. It would be much handier if we could mc.mcSetRegister() and create registers from a plugin. But then I guess that's why they
have the pound variables. So basically if I want this to work, I need to create a plugin which creates the appropriate registers and then work from there..

this is in my m6() macro.

  local ToolChangePosX = mcp.GetRegister("ToolChangePosX", 1)
                                  --scr.GetProperty("droToolChangePosX", "Value"))
Since scr.GetProperty() doesn't work, I changed to a Register which doesn't work either.  it looks like I will need to use a ini value and work from there.


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