Hello Guest it is April 27, 2024, 05:26:39 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 - Screwie Louie

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 »
101
ooohhh....can we ask Mach 4 to be bidirectional? as in having...both subtractive AND additive manufacturing capabilities? Yah, I'll throw that in the features request thread. lol!

102
Talk amongs't yourselfs...(that's my best Dana Carvey impression from Saturday Night Live)

I'm just the apprentice, but wow...the information in these threads is freakin great! Where has YaNvrNo been? Is he ok? I picked up a book on Fanuc macros to help me better understand gCode macros and such to integrate them with Lua; or vice versa. I'm talking from a teacher standpoint of course. Poppabear, Brett,  Terry, Brian, and the like. Hat's off to y'all.

Here's a conversation piece for y'all...

Is Lua to be integrated with Fanuc or vice versa?


peanut gallery comment: The ability to integrate both for automation and in a user defined gui environment has awesome potential. Top it off with today's microcontrollers; we will be controlling mills that make mills...that make tools accurately, reliably, and efficiently. Weapon system acquisition! Let's give Raytheon, Northrop Grumman, and Boeing some competition! ...hey, I can dream a little...

103
assert function? "I assert you!" ...yah, and m4 gives me the middle finger! I tried that with the girlfriend. DIDN'T WORK OUT!

seriously though, this is the last step I need to get by.....so close!

104
Mach4 Videos / Re: Mach4 - Arduino and Touchscreen
« on: June 06, 2015, 01:52:33 AM »
Now, if we can just get Simpson36 back in here....we'all should do a collaborative project with Mach4. Whatcha y'all think? We poll for the requirement, select the right hardware (ensuring the technology and resources can meet the requirement and the design will be stable), and we just start a thread....c'mon it'd be fun! funk the money, where's the love? hehe

105
Mach4 Videos / Re: Mach4 - Arduino and Touchscreen
« on: June 06, 2015, 01:46:26 AM »
yah! I've been watching....dude, this can be soooo awesome!

I love that comment Dan! ...stop learning and your dead. (period. no emotion. it's just fact.)

MIT has nothing on us! Little terds....okay, smart little terds but terds nuntheless. haha! I'm just havin fun!

106
Mach4 Videos / Re: Mach4 - Arduino and Touchscreen
« on: June 06, 2015, 12:51:41 AM »
what's up in the audrino/raspberry pi/beagleboard world with m4? I'll get there eventually....after I figure out Lua, then only to figure out Python or whatever these microcontrollers use, lol! it's all good... if I'm not learning something new, I'm wasting my time :o)

107
Mach4 General Discussion / Re: Custom Signal Event Handler?
« on: June 06, 2015, 12:45:56 AM »
sounds just as good as an 'Event_Macro_Hold"....whatcha talkin about willis?

108
Mach4 General Discussion / Re: v2336 Keyboard Simulator plugin
« on: June 06, 2015, 12:40:56 AM »
idk Dan...what do you mean?

one other thing though, 'myAxes' in the script is a my global variable of my total number of enabled axes. So wherever you see myAxes just replace it with 11 or whatever number you want....

109
...Can't transition from "Idle" on event "Stop"....

how do we make mach 4 transition to Idle?

sequence:
1. start movement
2. input0 changed from low to high
3. mcCntlCycleStop() called
4. Gcode running changed from high to low
5. mach_state_stop
6. S_IDLE_on_entry
6. waiting on SetStill is Done!
7. attempt transition from "MDI running" on event "stop"
8. can't transistion from "idle" on event "stop"

then it repeats last cycle.... >:(

any advice?

--josh

110
Mach4 General Discussion / Re: v2336 Keyboard Simulator plugin
« on: June 06, 2015, 12:06:49 AM »
thanx Dan!

...here's the hot key package I got so far. still working on that auto tool sequence tho.

--josh

Code: [Select]
--Probe input.
    sigLib[mc.ISIG_INPUT0] = function (state)
        local inst = mc.mcGetInstance ()
        if state == 1 then 
            mc.mcCntlCycleStop(inst)
            for i=1, myAxes do mc.mcMotorIsStill (inst, i)end
        end
    end
--Tool setter input
    sigLib[mc.ISIG_INPUT1] = function (state)
        local inst = mc.mcGetInstance ()
        if state == 1 then
            for i=0, myAxes do mc.mcJogVelocityStop (inst,i) end
        end
    end
--Keyboard Sim '2' w/Caps Lock on for auto tool zero sequence
    sigLib[mc.ISIG_INPUT58] = function (state)
        local inst = mc.mcGetInstance ()
        local hSig = mc.mcSignalGetHandle (inst, mc.OSIG_TOOL_CHANGE)
        local sigState = mc.mcSignalGetState (hSig)

        if state == 1 then
            if sigState == 0 then
                mc.mcSignalSetState (hSig, 1)
                flag[1] = 1
            elseif sigState == 1 then
                mc.mcSignalSetState (hSig, 0)
                flag[1] = 0
            end
        end
    end
--Keyboard Sim '1' w/Caps Lock on for start tool setter calibration.
    sigLib[mc.ISIG_INPUT59] = function (state)
        local inst = mc.mcGetInstance ()
        local hSig = mc.mcSignalGetHandle (inst, mc.OSIG_OUTPUT30)
        local sigState = mc.mcSignalGetState (hSig)

        if state == 1 then
            if sigState == 0 then
                mc.mcSignalSetState (hSig, 1)
                flag[1] = 1
            elseif sigState == 1 then
                mc.mcSignalSetState (hSig, 0)
                flag[1] = 0
            end
        end
    end
--Keyboard Sim 'F1' w/Caps Lock on to enable Mach 4.
    sigLib[mc.ISIG_INPUT60] = function (state)
        local inst = mc.mcGetInstance ()
        if state == 1 then
            mc.mcCntlEnable (inst, 1)
        end
    end
--Keyboard Sim 'C' w/Caps Lock on to center table.
    sigLib[mc.ISIG_INPUT61] = function (state)
        local inst = mc.mcGetInstance ()
        local gCode = ""
        if state == 1 then
            gCode = "G00 G90 G53 Z0.0 \n"
            gCode = gCode .."G53 X9.0 Y2.0 \n"
            mc.mcCntlMdiExecute (inst, gCode)
        end
    end
--Keyboard Sim 'Esc' for Estop.
    sigLib[mc.ISIG_INPUT62] = function (state)
        local inst = mc.mcGetInstance ()
        local rc = 0
        if state == 1 then
            mc.mcCntlEStop (inst, 1) 
        end
    end
--Keyboard Sim 'H' w/Caps Lock on to home all axes.
    sigLib[mc.ISIG_INPUT63] = function (state)
        local inst = mc.mcGetInstance ()
        if state == 1 then
            mc.mcAxisHomeAll (inst)
        end
    end

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 »