Hello Guest it is April 20, 2024, 08:06:46 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

711
Mach4 Toolbox / Re: Check for Update Script
« on: August 14, 2015, 10:55:48 AM »
The wx.wxFileSystem() will only allow the reading of files from any local or external address including an archive.

DazTheGas

712
Mach4 Toolbox / Re: Saving the selected spindle speed range
« on: August 14, 2015, 06:42:39 AM »
This should get you on the right track, DO NOT edit the ini file, using the profile will automatically create what it needs.

Code: [Select]
--Screen Load Script
local inst = mc.mcGetInstance()  -- not needed if already declared
local val = mc.mcProfileGetInt(inst, 'SpindleDefaultRange','Range',0)
mc.mcSpindleSetRange(inst, val)

Code: [Select]
--Screen Unload Script
local inst = mc.mcGetInstance() -- not needed if already declared
local val = mc.mcProfileGetInt(inst, 'SpindleDefaultRange','Range',0)
mc.mcSpindleSetRange(inst, val)

All working on my machine.

713
Mach4 Toolbox / Re: Saving the selected spindle speed range
« on: August 13, 2015, 12:55:48 PM »
give me a little more explanation on the dro.

what sets its value or what value it sets etc and i will write one for you as an example to you on track.

DazTheGas

714
Mach4 Toolbox / Re: Saving the selected spindle speed range
« on: August 10, 2015, 06:41:27 PM »
Correct, thats what writing to the profile does ;-) by doing it that way it auto writes in the ini and auto loads it on startup.

DazTheGas

715
Mach4 Toolbox / Re: Saving the selected spindle speed range
« on: August 10, 2015, 06:24:34 PM »
have a look at using script to save the value of the dro to your profile, and then load it on startup.

DazTheGas

716
Cheers steve for the release notes, very handy, and 3D infostructure sounds good be nice to find out a bit more info on this as im designing a screenset in the hope to use my 3d printer in mach4.

DazTheGas

717
Mach4 General Discussion / Re: 2nd window
« on: July 14, 2015, 03:33:04 AM »
Have you considered using TimGS MPG panel and adding some jog buttons to it?

DazTheGas

718
Mach4 General Discussion / Re: Mach 4 Axis Calibration solution
« on: July 13, 2015, 03:22:03 AM »
I have a similar thing on my machine using the formula from one of my vids,
 
always continue..

after updating would be helpful to put a msgbox to inform the user to restart for settings to take affect

DazTheGas

719
Mach4 General Discussion / Re: external cycle start
« on: July 09, 2015, 12:19:06 PM »
short n sweet. Yes, using the input signals from your bob.

DazTheGas

720
Mach4 Toolbox / Check for Update Script
« on: July 09, 2015, 04:58:32 AM »
well 2522 was out for a while before I new about it so I did this so I could always be up to date. just put it in a button or function somewhere.

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

        local file = wx.wxFileSystem():OpenFile('http://www.machsupport.com/software/downloads-updates/#tabs-2')
        if not file then
            wx.wxMessageBox("Update Check is Broken") return
        end
        local data = file:GetStream()
        local text = {}
        repeat
            local c= data.C
            if data:LastRead() ~= 0  then
                if c > 0 then text[#text+1]=string.char(c) end
            end
        until data:LastRead() == 0
        local web = table.concat(text)
        local vers = string.sub(tostring(mc.mcCntlGetVersion(inst)),-4)
        if string.find (web, vers)then
        wx.wxMessageBox('Mach4 is upto date');
        else
        wx.wxMessageBox('Theres a different version of Mach4 to Download')
        end
   

DazTheGas