Welcome, Guest. Please login or register.
Did you miss your activation email?
October 02, 2014, 07:26:39 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
  Show Posts
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 »
1  Mach Discussion / Mach4 General Discussion / Re: Read write to a DRO ?? on: September 23, 2014, 01:22:20 PM
looks like your not one to read all the fine details I and others have posted, lol

http://www.machsupport.com/forum/index.php/topic,27162.msg191822.html#msg191822


but you might also try a adding a     -e   to the end of the autoload  it goes into the edit mode first.

C:\Mach4Hobby1953\Mach4GUI.exe /p Mach4Mill -e
2  Mach Discussion / Mach4 General Discussion / Re: Mach 4 Feature Request on: September 22, 2014, 04:16:09 PM
Its been over a week and I have been very surprised that this was the first IMTS has been mentioned.

I did not want to be the first, as wasn't sure it was my place. But have to agree with Steve. Machmotion had a strong presence  and some impressive setups and showings. I would advise if anyone is looking at upgrading to Mach4 and also a control upgrade to look seriously at Machmotion as their connection with Artsoft is very strong and you should have a good, to great transition.  Very professional and willing to help in any way.

Their screenset was very impressive (thou, at the time lacked a 4th axis). I'm sure by the first of the next year they will have a sweet system available.

 Cheesy and no I'm not their spokesmen, just an outside observer.
3  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: September 21, 2014, 02:46:00 PM
Finally found some time to get the Tool pocket tracking routine working.  Grin
Note: then I found I did not like it and changed it.

4  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: September 18, 2014, 07:43:15 PM
pull the Key/Name from the GetProfile calls, then set the name to a text control on your screen.

Sorry but, that was Clear as mud!

I had this posted somewhere but can't seem to find it

I'd created a text label, and put this in my plc script

ScrName = mc.mcProfileGetString(inst,'Preferences','Screen',ScreenName);  --gets the Screenset name from the machine.ini file Preferences section.
scr.SetProperty('lblScreenName', 'Label', ScrName); -- then put the ScrName in the text label called lblScreenName
5  General CNC Chat / Share Your GCode / Re: need help please... on: September 13, 2014, 06:53:02 PM
based on your web page I see your a programmer.
All you have to do is compute the tangent points of contact at the radius and depth of position. Then circular interpolate the profile.
Figure out your chip load based on material and speeds then you should be able to create a spread sheet to pump out the code.
It's just math, not hard, just tedious.
just have to make sure the cutter you choose will reach the full diameter without the shank hitting and long enough to get to the bottom.

That hole will need to be flushed out during the cut as it will pack up fast. And several roughing passes would be advised as those cutters are not made for heavy loads. Might be better to use the center of the sphere as a separate offset so you can call it 0,0,0 then you can use the scaling features of mach3 and using the finish routine just scale it down for the roughing passes. So reference all dimensions from the center of the sphere

I advise, go slow and a use a good rigid setup, have fun

the blue lines are the tangent angle back to the center of the cutter ball.

6  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: September 07, 2014, 06:38:06 PM
Managed to get the tool use timers working, works by adding only feed move times for the current tool number. Then stores the time to a pound variable and also compares it to the used up time variable. Watches the incycle for starting the timers and looks at either no feed move or an out of cycle condition.

Update: Made a few revisions, changed the saved times to minutes and formatted.
7  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: September 05, 2014, 04:22:28 PM
I was playing around with adding timers to my tool sheet, and created a little script that I put in the plc script (at the end) to show me the what current modes I am in.
I needed to find a way to make sure the Tool timer only tracked cut/feed times. So during a run cycle the history gets updated with the current G codes. Helped me in seeing how gcodes are tracked and used.

Code:
local inst = mc.mcGetInstance();

if (inCycle == 1) then 
    mode1 = mc.mcCtrlGetModalGroup(inst,1,'0')
    mc.mcCntlSetLastError(inst, "mode1 = G" .. tostring(mode1));
    mode2 = mc.mcCtrlGetModalGroup(inst,2,'0')
    mc.mcCntlSetLastError(inst, "mode2 = G" .. tostring(mode2));
    mode3 = mc.mcCtrlGetModalGroup(inst,3,'0')
    mc.mcCntlSetLastError(inst, "mode3 = G" .. tostring(mode3));
    mode4 = mc.mcCtrlGetModalGroup(inst,4,'0')
    mc.mcCntlSetLastError(inst, "mode4 = G" .. tostring(mode4));
    mode5 = mc.mcCtrlGetModalGroup(inst,5,'0')
    mc.mcCntlSetLastError(inst, "mode5 = G" .. tostring(mode5));
    mode6 = mc.mcCtrlGetModalGroup(inst,6,'0')
    mc.mcCntlSetLastError(inst, "mode6 = G" .. tostring(mode6));
    mode7 = mc.mcCtrlGetModalGroup(inst,7,'0')
    mc.mcCntlSetLastError(inst, "mode7 = G" .. tostring(mode7));
    mode8 = mc.mcCtrlGetModalGroup(inst,8,'0')
    mc.mcCntlSetLastError(inst, "mode8 = G" .. tostring(mode8));
    mode9 = mc.mcCtrlGetModalGroup(inst,9,'0')
    mc.mcCntlSetLastError(inst, "mode9 = G" .. tostring(mode9));
    mode10 = mc.mcCtrlGetModalGroup(inst,10,'0')
    mc.mcCntlSetLastError(inst, "mode10 = G" .. tostring(mode10));
    mode11 = mc.mcCtrlGetModalGroup(inst,11,'0')
    mc.mcCntlSetLastError(inst, "mode11 = G" .. tostring(mode11));
    mode12 = mc.mcCtrlGetModalGroup(inst,12,'0')
    mc.mcCntlSetLastError(inst, "mode12 = G" .. tostring(mode12));
    mode13 = mc.mcCtrlGetModalGroup(inst,13,'0')
    mc.mcCntlSetLastError(inst, "mode13 = G" .. tostring(mode13));
    mode14 = mc.mcCtrlGetModalGroup(inst,14,'0')
    mc.mcCntlSetLastError(inst, "mode14 = G" .. tostring(mode14));
    mode15 = mc.mcCtrlGetModalGroup(inst,15,'0')
    mc.mcCntlSetLastError(inst, "mode15 = G" .. tostring(mode15));
end
8  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: September 04, 2014, 11:17:29 AM
Had some luck with Freeman's Panel Scripting Code and Scott's Cool additions but had to make a couple of changes to get it to Scale and Stretch correctly for me.
works pretty good right to left but top to bottom its off a bit in stand alone mode,
but when embedded it needed tweaking to get it to work right. (framing was taking over I believe)

Sorry I'm not much on those message boxes, seem to be a distraction to me. (Maybe a timer to close would make it more functional and make me happier?)  Grin


9  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: September 03, 2014, 06:44:38 PM
I do like the square better
10  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: September 03, 2014, 06:06:34 PM
I've been playing around with a panel script Freeman had posted, Basically was trying to get an idea what is going on.
Thou have to admit not following all this Lua panel scripting. But did find I could get some basic information and compute some data from mouse events by using mouse down and and mouse up.
Found that the onSize() function is not working correctly

Code:
local panel = mcLuaPanelParent
inst = mc.mcGetInstance();

function onPaint (event)
    local dc = wx.wxPaintDC(panel);
    local image = wx.wxImage();
    if (not image:LoadFile('C://Mach3//Bitmaps//MachStdMill//test.png', wx.wxBITMAP_TYPE_PNG)) then
        wx.wxLogError("Could not load image from '%s'!", imagePath);
        dc:delete();
        return;
    end
    local bitmap = wx.wxBitmap(image);
    dc:DrawBitmap (bitmap, 0,0, true);
    dc:delete ();
end

function onLeftUp (event)
    local mouseXup = event:GetX();
    local mouseYup = event:GetY();
    local diffX = mouseXup-mouseXdn;
    local diffY = mouseYup-mouseYdn;
    mc.mcCntlSetLastError(inst,"Mouse Click Up Location is @  X: "..tostring(mouseXup)..", Y: "..tostring(mouseYup));
    mc.mcCntlSetLastError(inst,"Difference in X: "..tostring(diffX)..", Y: "..tostring(diffY));
end
function onLeftDown (event)
    mouseXdn = event:GetX();
    mouseYdn = event:GetY();
    mc.mcCntlSetLastError(inst,"Mouse Click Down Location is @  X: "..tostring(mouseXdn)..", Y: "..tostring(mouseYdn));
end


function onSize (event)
    local sized = event:GetSize();
    local width = event:GetWidth();
    local height = event:GetHeight();
    mc.mcCntlSetLastError(inst,"Width: "..tostring(width)..", Height: "..tostring(height));
    event:skip();
end

panel:Connect(wx.wxEVT_PAINT, onPaint)
panel:Connect(wx.wxEVT_LEFT_UP, onLeftUp);
panel:Connect(wx.wxEVT_LEFT_DOWN, onLeftDown);
panel:Connect(wx.wxEVT_SIZE, onSize);

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!