Hello Guest it is April 25, 2024, 06:48:32 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 - Ya-Nvr-No

271
SmoothStepper USB / Re: ESS and Vista Unidentified network
« on: August 01, 2014, 02:40:51 PM »
you mean other that getting rid of Vista, Me or Win8?

272
Share Your GCode / Re: Pattern Model
« on: July 31, 2014, 01: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.

273
Mach4 General Discussion / Re: Screen Set Ideas
« on: July 31, 2014, 12:09:12 PM »
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  ;)

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

  
Code: [Select]
   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

274
Mach4 General Discussion / Re: Screen Set Ideas
« on: July 30, 2014, 06: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 ???
Lenovo G550 & G560 both running Win 7 Ultra 32bit

275
Mach4 General Discussion / Re: Screen Set Ideas
« on: July 30, 2014, 06: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

276
Mach4 General Discussion / Re: Screen Set Ideas
« on: July 28, 2014, 09: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: [Select]
local inst = mc.mcGetInstance()
local butstate = 0;
butstate = scr.GetProperty('togTimer(0)', 'Button State', 0);
if (butstate == '1') then
     sleep(1,0);
end

Code: [Select]
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

277
Mach4 General Discussion / Re: Screen Set Ideas
« on: July 27, 2014, 08: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.


278
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.

279
Mach4 General Discussion / Re: Mach 4 Bug Reports
« on: July 25, 2014, 09: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?

280
Mach4 General Discussion / Re: Mach4 Printer Port Discussions
« on: July 23, 2014, 10: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.