Hello Guest it is April 28, 2024, 07:18:09 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 - Dan13

91
Bargain Basement / CSMIO/IP-A + ENC Module
« on: December 15, 2015, 11:57:10 AM »
Bought it 3 years ago. Was intending to retrofit a lathe. The lathe has since been sold as is and the controller has been lying on the shelf waiting for another possible project which never happened. It has been bench tested and found to be working, otherwise never used. It is the CSMIO/IP-A controller including the ENC module for threading. Asking $630 for the two, not including the postage fee.

Thanks,
Dan

92
Mach4 General Discussion / Re: Mach4 Executing Gcode from LUA
« on: June 02, 2015, 05:14:51 AM »
I will be writing a macro for probing, so will see if I manage it OK.

Dan

93
Mach4 General Discussion / Re: G31.1, G31.2, G31.3 working?
« on: May 30, 2015, 12:49:52 PM »
I've been playing with the probing code posted by Brian on the Yahoo group. It works fine and you have control of how the data in the output file is formatted - comma separated, having XYZ prefix before the coordinates, omitting particular axis, etc. For your convenience, here is the orginal code Brian posted:

function M401()
inst = mc.mcGetInstance();
    -- create the wxFrame window
    mainframe = wx.wxFrame( wx.NULL,          -- no parent
                        wx.wxID_ANY,          -- whatever for wxWindow ID
                        "Mach4 Bolt Hole Wizard", -- frame caption
                        wx.wxDefaultPosition, -- place the frame in default position
                        wx.wxDefaultSize,     -- default frame size
                        wx.wxDEFAULT_FRAME_STYLE ) -- use default frame styles

    -- create a panel in the frame
    panel = wx.wxPanel(mainframe, wx.wxID_ANY)--We are not going to show it but we need to have this to use the File dialog

local file = wx.wxFileDialog(panel, "Select Probe File", "", "", "Text files (*.txt)|*.txt|Tap files (*.tap)|*.tap",
                             wx.wxFD_SAVE,wx.wxDefaultPosition,wx.wxDefaultSize, "File Dialog" );
        if(file:ShowModal() == wx.wxID_OK)then
            local path = file:GetPath() 
            wx.wxMessageBox(tostring(path))
            mc.mcCntlProbeFileOpen(inst, path, "X%.3AXIS_X Y%.3AXIS_Y Z%.3AXIS_Z \r\n", true);
        end

end

if (mc.mcInEditor() == 1) then
    M401()
end


You have to put it in a file and name it M401.mcs

To close the file, in a file named M400.mcs put this code:

function M400()
inst = mc.mcGetInstance();
mc.mcCntlProbeFileClose( inst );
end

if (mc.mcInEditor() == 1) then
    M400()
end




Dan

94
Mach4 General Discussion / Re: Mach4 Executing Gcode from LUA
« on: May 29, 2015, 02:23:16 AM »
Thanks for explaining this Steve. So I get it that if I had several lines of Gcode I wanted to execute I'd have to concatenate them as a string like in the examples? 

Dan

95
Mach4 General Discussion / Re: Mach 4 Bug Reports
« on: May 26, 2015, 08:20:53 AM »
OK. The workaround works.

Dan

96
Mach4 General Discussion / Re: Mach 4 Bug Reports
« on: May 26, 2015, 04:10:49 AM »
Already have. Makes no difference.

Dan

97
Mach4 General Discussion / Re: Mach 4 Bug Reports
« on: May 26, 2015, 03:40:19 AM »
I have this code in a button.

Dan

98
Mach4 General Discussion / Re: Mach 4 Bug Reports
« on: May 26, 2015, 03:18:02 AM »
Not really explains the issue I mentioned...

Dan

99
Mach4 General Discussion / Re: Mach 4 Bug Reports
« on: May 26, 2015, 01:40:03 AM »
Looks like a bug:

Trying to execute Gcode from LUA. This script works fine:

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


However, with the below function, the numbers in the DROs do not continuously update, but only when the final destination is reached.

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


When trying to execute two line of Gcode, like below, the DROs again don't update continously, but only when the final point is reached.

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


Dan

100
Mach4 General Discussion / Re: Mach4 Executing Gcode from LUA
« on: May 25, 2015, 09:06:36 AM »
Is the bug report thread being monitored by Steve?

Dan