Hello Guest it is December 07, 2022, 09:46:29 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 - 01sporty

Pages: « 1 2 3 4 5 6 7 8 9 10 »
31
General Mach Discussion / Re: Puzzle me this.
« on: April 01, 2013, 12:52:49 PM »
I'm not sure what I was doing wrong before but that works just like I originally planned.

Thanks Hood.

32
General Mach Discussion / Re: Puzzle me this.
« on: March 31, 2013, 07:25:17 PM »
Here you go.

33
General Mach Discussion / Re: Puzzle me this.
« on: March 31, 2013, 04:01:52 PM »
Strangely enough, it worked exactly once.  I pushed the button and it did exactly what I wanted.  I pushed it again and it did the backwards thing and once again came to rest at the offsets.  I closed the program, re-opened it and tried again. No joy.  Definitely seems to be a bug but it's a really strange one.

34
General Mach Discussion / Re: Puzzle me this.
« on: March 31, 2013, 12:20:12 PM »
Thanks Hood,
It's version 3.042.029 dated 10/6/09.
Can you suggest a version that will do this move?
I assume I'd need to do a full Uninstall/Install.  Would my existing xml file be compatible?
As far as the feed rate goes, I'm only moving about a 100 thou so I just let it run at the default 5 ipm.

35
General Mach Discussion / Puzzle me this.
« on: March 30, 2013, 10:58:44 PM »
So, I opened up Mach3Screen, double clicked Rev All-Home and added Code("x0y0z0") to the end of the normal sequence of:
DoButton( 24 )
DoButton( 23 )
DoButton( 22 ).

The hope was to get the machine to move to 0,0,0 from the Home Offsets.
It does the DoButton sequence then stops.  If I Ref All-Home again,THEN it does the x0y0z0.  THEN, it proceeds to do the DoButton sequence again.

So, I changed it to:

DoButton( 24 )
Code("z0")
DoButton( 23 )
Code("y0")
DoButton( 22 )
Code("x0")

Again, it does something very similar.  It completes the Dobutton's the first time its selected putting in the offset values.  Then it zero's x, y, z the second time it's selected, then goes through the DoButton sequence again.

The net result being, that I'm always left at the Home Offsets and never at 0,0,0.

How can I get it to move to 0,0,0 after doing a Ref All-Home?

36
General Mach Discussion / Re: Help reversing an axis
« on: March 30, 2013, 05:12:15 PM »
That was too easy.

Thanks Tweakie.

37
General Mach Discussion / Help reversing an axis
« on: March 28, 2013, 12:33:56 PM »
I have an axis set up to Z.  It's actually on a horizontal plain and moves forward and back.
I'd like the Page Up to move it away from me and Page Down to move it toward me.
I'd like moving toward me to be positive and away from me to be negative.
I don't seem to be able to achieve both of these conditions at once.

I can reverse the direction of the motor with the Dir Low Active or in the Homing/Limits but if I get the Pg/Up Pg/Dn moving the axis the way I want, the positive/negative is wrong.  Conversely, if the positive/negative is right the keys are reversed.

Suggestions?

38
General Mach Discussion / Re: A Simple Macro
« on: March 03, 2013, 01:59:47 PM »
So, if anyone ever needs code for safety buttons, this is what I ended up with.
Here are the macros in a bit of sample code:

g1
M103      (Test that buttons aren't held/taped down)
M102     (Wait for both buttons to be pushed)
x0.195 y0.195 f20
z.5 f60
M103        (Test that buttons aren't held/taped down)
M101      (Wait for right button to be pushed)
x0.2 y0.2 f10
z1 f80
g0
z0
x0y0
m30

Here's the code for M103:

If IsLoading() Then
Else
Message "Please Release the Button"
While IsActive(INPUT1)
While IsActive(INPUT2)
Wend
Wend
DoOEMButton(172)
End If

M101:

If IsLoading() Then
Else
Message "Press Right Button to Continue"
While IsActive(INPUT2) = False
Wend
DoOEMButton(172)
End If

M102:

If IsLoading() Then
Else
Message "Press Both Buttons to Continue"
While IsActive(INPUT1) = False
While IsActive(INPUT2) = False
Wend
Wend
DoOEMButton(172)
End If

39
General Mach Discussion / Re: A Simple Macro
« on: March 02, 2013, 07:44:57 PM »
Well, I found the problem.  I've been writing the macros with Notepad and Mach didn't like the quotation marks around the message.

I opened the files in the VB Script Editor in Mach and the quotes were little squares.  Once I changed the squares to ", both of my routines worked fine.

Never heard of having a problem with Notepad before.

40
General Mach Discussion / A Simple Macro
« on: March 02, 2013, 05:00:46 PM »
At least I thought it would be a simple macro.

All I want to do is pause the program until the operator activates a switch connected to input #2.
I'll need a second macro that pauses the program until the operator activates two switches connected to input #1 and input #2 but I figured I'd start with just the one switch macro.  I've tried two different methods and all I've gotten so far is "scripter compile error" on both.

I first tried:
While IsActive(INPUT2) = False
Message “Press Right Button to Continue”
'Wend

That didn't work so I went with:
Do                                       
Message “Press Right Button to Continue”
If IsActive(INPUT2) Then Exit Do
sleep 10         
Loop

Suggestions please?

Pages: « 1 2 3 4 5 6 7 8 9 10 »