Welcome, Guest. Please login or register.
Did you miss your activation email?
July 31, 2014, 08:40:31 PM

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 »
1  General CNC Chat / Share Your GCode / Re: Pattern Model on: July 31, 2014, 12:17:01 PM
Like that?

no reference to what tool you expected to use

BTW: never good starting off with a tool change on the first line.
2  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: July 31, 2014, 11:09:12 AM
Freeman that sounded like a good idea to display that info, but I found there was a few issues with the fixture offsets and the associated table past G59.
Brian was very receptive in fixing the issues and should be resolved in one of the next releases. Thanks Brain  Wink

machine variable #15127 is the pnumber in g54.1p3

  
Code:
   local var4012 = mc.mcCntlGetPoundVar(inst, 4012);
    local var15127 = mc.mcCntlGetPoundVar(inst, 15127);

    fixtureNum = (53 + var4012)
    fixtureNum2 = (var15127)

    scr.SetProperty('droFixture', 'Value', tostring(fixtureNum));

    if (fixtureNum2 >= 0) then
        scr.SetProperty('txtFixture', 'Label', 'G54.1P' .. tostring(fixtureNum2));
    else
        scr.SetProperty('txtFixture', 'Label', 'G' .. tostring(fixtureNum));
    end
3  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: July 30, 2014, 05:58:33 PM
My Latest "Program Run" screen

this particular laptop does not display the blue horizontal graphic display correctly for program file run time position.
Not sure why my other laptop does Huh
Lenovo G550 & G560 both running Win 7 Ultra 32bit
4  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: July 30, 2014, 05:41:52 PM
Very timely since I'm trying to find where the current fixture # (not coordinates) are stored.  I'm trying to display which of G54-59 is current in effect.

#4012
5  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: July 28, 2014, 08:47:47 PM
Was playing around with timers and came up with a function call that incorporates all three.
made a series of buttons to test
pass the amount of time and the mode, does some minor error checking and resets the mode.
sleep(.5,0) would get you a 1/2 second delay converts it to a 500 millisecond sleep
not really that functional but it shows how to pass variables and do some calculations and toggle button actions

Code:
local inst = mc.mcGetInstance()
local butstate = 0;
butstate = scr.GetProperty('togTimer(0)', 'Button State', 0);
if (butstate == '1') then
     sleep(1,0);
end

Code:
function sleep(howlong, mode)
    local millitime = howlong;
    local microtime = howlong * 1000;

    if (mode == 0 and howlong < 1) then
        mode = 1
        millitime = howlong * 1000;
    elseif (mode == 2 and howlong < 1000) then
    mode = 1
        microtime = howlong;
    end
    if (mode == 0) then
        wx.wxSleep(howlong);
       -- mc.mcCntlSetLastError(inst, 'seconds = ' .. tostring(howlong));
        scr.SetProperty('togTimer(0)', 'Button State', '0');
    elseif (mode == 1) then
       -- mc.mcCntlSetLastError(inst, 'milliseconds = ' .. tostring(millitime));
        wx.wxMilliSleep(millitime);
        scr.SetProperty('togTimer(1)', 'Button State', '0');
        scr.SetProperty('togTimer(3)', 'Button State', '0');
        scr.SetProperty('togTimer(4)', 'Button State', '0');
    elseif (mode == 2) then
       -- mc.mcCntlSetLastError(inst, 'microseconds = ' .. tostring(microtime));
        wx.wxMicroSleep(microtime);
        scr.SetProperty('togTimer(2)', 'Button State', '0');
    else
        mc.mcCntlSetLastError(inst, 'Ya screwed up the delay time');       
    end
end
6  Mach Discussion / Mach4 General Discussion / Re: Screen Set Ideas on: July 27, 2014, 07:05:51 PM
been playing with a new wizzard that uses combobox's to hold the machine variables that are not equal  to zero.

Thought others might like to play and experiment with a wizzard.

The number on the far left is how many variables are in the combobox on its right, as the number of variables increase combobox get added
maximum of 25 combo boxes

still learning too, so if you find some tricks to add to this; please post.

7  Mach Discussion / Mach4 General Discussion / Re: Mach4 hanging on startup - how to trouble shoot? on: July 26, 2014, 07:17:40 PM
I use this to help me

http://www.machsupport.com/forum/index.php/topic,27162.msg193756.html#msg193756
 
maybe you can put the function at the first of the load script then use the code messages() in several locations in the load script so as it loads it runs the function and checks for new errors. If there are errors they get written to the file. so you can see what they were.
8  Mach Discussion / Mach4 General Discussion / Re: Mach 4 Bug Reports on: July 25, 2014, 08:23:42 AM
For some reason I never have great luck viewing your videos as always seems to go black over half the time.

but I did get a chance to see your laptop and this did get to my screen. IEEE 1284 ‘plug-in’ is that a PCMCIA Card for adding the parallel port?
9  Mach Discussion / Mach4 General Discussion / Re: Mach4 Printer Port Discussions on: July 23, 2014, 09:15:38 PM
I set one pin #6 in my case to 10hz also set mux on and set mux low
then wired pin 6 and a ground wire to the spindle drive
m3s100 turned on spindle and set speed and the pulse width was spewing out pin6, nice clean signal
change speed and signal changes to suit.
10  Mach Discussion / Mach4 General Discussion / Re: Mach4 Printer Port Discussions on: July 23, 2014, 07:52:16 PM
this might work better for you

    --Get the hReg handle for Spindle direction
    hReg = mc.mcSignalGetHandle(inst, mc.OSIG_SPINDLEFWD); --get the handle
    mc.mcSignalSetState(hReg, true); --set the state of the signals handle


    --Get the hReg handle for Spindle on
    hReg = mc.mcSignalGetHandle(inst, mc.OSIG_SPINDLEON);
    mc.mcSignalSetState(hReg, true);

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 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!