Hello Guest it is November 29, 2022, 03:45:18 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.


Topics - learman

Pages: 1 2 »
1
Mach4 General Discussion / converting Macro to Lua language
« on: July 09, 2015, 09:47:45 AM »
Hello

I am working on converting one of my workstations from Mach3 to Mach4. Having trouble understanding the Lua scripting. Could someone take a look at this simple Macro and help convert it to Lua.

Thanks
Josh

2
General Mach Discussion / why won't this macro work??
« on: June 30, 2010, 11:23:59 AM »
Hello

Im getting a "compile error" message

If Not IsActive (input4) Then   <<< will work if i get rid of this line
Code "G1 X 0.020"
While ismoving
sleep (1000)
setDro (0,0)

any Ideas??

thanks
Josh

3
General Mach Discussion / why wont this macro work??
« on: June 30, 2010, 11:05:52 AM »
Hello

Can any body tell me why im getting a "compile error" message

If Not IsActive (Input 4) Then    <<< it will run without this line  ???
Code "G1 X 0.020"
While ismoving
Wend
sleep (1000)
setDro (0,0)

Thanks
Josh


4
General Mach Discussion / need a macro
« on: June 28, 2010, 12:42:51 PM »
Hello All

Trying to jog my x axis +.020 once if input 4 is not active, (Pappabear) or scott was kind enough to get me started but im still needing some help!

Scott wrote this
well it might be easier to put a custom macro at the start of your g code file.
i.e. M1000.m1s 
I am not at my work computer so you will have to look up the OEM VB codes below.

You might want to double check my VB also, but you want to look for your input being active.
INPUTx below could be INPUT1-4   (or you could use the OEMs 1-15).
also on your general config page, you will need to set up your Step jog DROs with at least one of them with the value
of 0.02 in it, let us say that is the first value box.

'M1000.m1s

MyNeededInput = IsActive(INPUTx)

If Not(IsActive(MyNeededInput) Then
   If Not(GetOEMLED(*********)) Then        'look up the OEM LED code for the Machine is in Step/Jog mode (not continous or MPG).
      DoOEMButton(*********)                    'Do the button to put the machine into Step/Jog mode.
      DoOEMButton(*********)                    'set the step jog value to the first dro value box OEM button
      DoOEMButton(*********)                    'Push the Jog Button for the X+ direction
      While IsMoving()
      Wend
   Else
      DoOEMButton(*********)                    'set the step jog value to the first dro value box OEM button
      DoOEMButton(*********)                   'Push the Jog Button for the X+ direction
      While IsMoving()
      Wend 
   End If
End if

'scott


If Not Is Active (Input 4) Then
   If Not(GetOEMLED15) Then        This is for Jog Mode Incr
      DoOEMButton(15)                    'Do the button to put the machine into Step/Jog mode. (?? im lost here)
      DoOEMButton(193)                  ' Select Jog increment 3, i have set it to .020
      DoOEMButton(307)                    'Push the Jog Button for the X+ direction
      While IsMoving()
      Wend


Its a start I think ???
josh


5
General Mach Discussion / need a macropump
« on: June 10, 2010, 10:09:11 AM »
Greetings

I would like to have a maropump that would jog my x axis +.020 if an input is not closed. I need it to do it only once(meaning not a continuous jog until it finds the input) and only when the system is in its stopped condition. Can this be done?
thanks
Josh

6
General Mach Discussion / should I reinstall
« on: March 04, 2010, 10:18:26 AM »
Hello

I'm having trouble with my G code display screen.  Although the Mach is going through each line of the G code, the display screen  is stopping in the middle and not showing that it is going through each line of G code. The problem is that about every 30 runs of the program, it is turning an output on at the wrong time resulting in my air cylinder getting smashed.  I have this Mach system set up to the same general configuration as another machine and I'm not experiencing this problem.  Is there something that maybe I do not have configured correctly?  Any help would be greatly appreciated.

thanks
josh

7
General Mach Discussion / macro for the non macro'ish
« on: February 26, 2010, 03:34:29 PM »
 
Could somebody pls write a macro for me. I would like to shut off output 4 If an input ( lets call it input 2) dose not close. I hooked a flow meter to my machine and would like the heat to shut off if the water is not on. The Macro would need to give at least 3/4 to 1 second for the switch to close. This input would only be on when output 4 is active. I have only used one macro to zero a DRO, so i am extremely dense.

thanks
josh

8
General Mach Discussion / Anahiem ac servo, compatible with Mach3??
« on: August 26, 2009, 01:27:39 PM »

Hi
Does anybody know if you can hook up a servo driver from Anahiem Automation and/or how to hook it up?
Will it work with Mach3?  I have the system wired up and can jog off the servo drive but Mach 3 isn't doing anything.
Thanks
Josh Learman


http://www.anaheimautomation.com/products/servo/servo-drives-controllers.php?vTID=125

9
General Mach Discussion / output for smooth stepper
« on: February 18, 2009, 01:54:03 PM »
Bread boarding a smooth stepper,, First the things working,, X axis signals pin 2 and 3  fine, spindle signals pin 4 and 5 Good, both set to port 1.  Input good, oem triggers working, inputs on port 1.  Now the bad,, no output signals,, none,, even when I change the active low setting the pins has no response, my outputs are enabled and set to Port 1.. whats up any ideas ??

I and using a handy c11 Multifunction brakeout board from cnc4pc.

thanks
Josh

10
General Mach Discussion / M code for Pause?
« on: April 03, 2008, 04:45:40 PM »
Is there a M code for Pause, cannot use M0 M1 sense they require a start button push

I am trying to pause my system and then start it again using oem code 1005 resume. I cant use a oem start command sense this button will most allways be pressed.

thanks
Josh

Pages: 1 2 »