Hello Guest it is April 28, 2024, 07:45:26 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 - HimyKabibble

1081
General Mach Discussion / Re: Setting Tool Length Offsets....
« on: July 24, 2009, 11:37:23 PM »
Probably because it will accept negative value for a tool lenght unless you include in your VB that lenght will always be Positive.

If you get negative value, Try using the command ABS(variable)

This will return the absolute value of the variable.

Jeff



Is there a requirement that offsets be only positive?  Seems to work fine with positive or negative offsets....

Regards,
Ray L.

1082
General Mach Discussion / Re: Setting Tool Length Offsets....
« on: July 24, 2009, 10:57:54 PM »
OK, I think I've got it figured out.  I got stuck on trying to figure out how to make it move back to the same Z height it was at prior to the toolchange, but I've now got that working.

I don't understand why the "master tool" needs to be either the shortest or longest tool.  Seems to me, it really doesn' matter, since tool offsets are always based on the difference between the master tool and the other tools.  I can see if you have limited Z motion, and a wide range of tool lengths, some care would be needed in setting up.  Is that the only concern?  In my case, tool length compensaion will be done with the knee, so I have 20" to work with.

Regards,
Ray L.

1083
General Mach Discussion / Setting Tool Length Offsets....
« on: July 24, 2009, 07:09:44 PM »
What is the normal procedure, if there is such a thing, for setting tool length offsets in the tool table for a mill?  Here's what I envision, which may be completely wrong:

Gather up the set of tools to be used for a given job, and one-by-one, probe each tools length, and set its offset into the tool table using G10L1.  When done, probe, using any tool, to set the fixture offset to the top of the workpiece.

Also, when I tried modifying the M6 macros, I found M6End never gets called on a toolchange unless "Stop Spindle, Wait For Cycle Start" is checked.  What's up with that??  How do I write a toolchanger macro if M6End never gets called??

Regards,
Ray L.

1084
General Mach Discussion / Re: Error Trapping in Button Script
« on: July 24, 2009, 05:55:04 PM »
Here's a more detailed description. I have a zero touch plate routine that many have been using. This code should never drive the bit into the workpiece. I am also using a SmoothStepper (SS) which may actually be the problem. However, I am aslo doing something that I am suspecting may be casuing an error and cofusing Mach or the SS. Rather than use a touchplate, I have simply shorted two wires togther to simulate the plate being touched while testing this feature. I have read that the G31 code will actualy retract the bit a very short distance after the probe fires. My hand shorting of two wires wouldn't simyulate the probel breaking contact at just the irght time for this small retraction so today I started wondering if I was causing a problem with my test method and then wondered if I could error trap. I am not at the machine today, so I can't simply try a real touchplate, although that scrares me a bit since this sometimes drives toward the table when the button routine performs the final retract. Another person also sent me a message that they were using the same routine I am using and it normally works OK. However, one time they had the touch plate so far away that the bit failed to contact the plate by the end of the G31 move. They hit zero again and after the bit hit the plate, the machine then drove the bit very hard into the touchplate/workpiece. They are not using a SS, so I thought that perhaps he too had an error condition that our button routine needs to trap.

Sorry for the lengthy explanation. Just thought it better to give the full picture.


I use G31s for touching off many, many times a day, with a SmoothStepper, running my own macros.  Never had a problem, *except* one time on a previous version of Mach which *did* have a bug that resulted in breaking my probe.  That bug was fixed within hours or my reporting it, and a new version of Mach posted.  What version of Mach are you using, and what SS plug-in?

Regards,
Ray L.

I am using R3.043.000. This is the development release, but Gerg of Warp9 told me to use it as it is the best version to run with a SS. I am also using the latest SS plugin. What versiosn are you using? Also, could you post your button code so I can review it to see any difference mine may have. Finally, the Mach manual says in many places 'It is an error if:" Surely there is a way to trap those errors in the routine and handle them. I'm not saying that is my problem in this case, but if errors can occur it is good practice to handle them. Perhaps the manual is ismply saying that the operation is not valid rather than anacutual an error raised.

I'm not using a button macro - I'm using a whole suite of probing macros I posted some time ago here:

http://www.machsupport.com/forum/index.php/topic,10931.msg68619.html#msg68619

You will quickly find using button scripts is a Royal PITA.  MUCH better to just write your macros as M-scripts, and let the button call them.

Regards,
Ray L.

1085
General Mach Discussion / Re: Error Trapping in Button Script
« on: July 24, 2009, 05:28:53 PM »
Here's a more detailed description. I have a zero touch plate routine that many have been using. This code should never drive the bit into the workpiece. I am also using a SmoothStepper (SS) which may actually be the problem. However, I am aslo doing something that I am suspecting may be casuing an error and cofusing Mach or the SS. Rather than use a touchplate, I have simply shorted two wires togther to simulate the plate being touched while testing this feature. I have read that the G31 code will actualy retract the bit a very short distance after the probe fires. My hand shorting of two wires wouldn't simyulate the probel breaking contact at just the irght time for this small retraction so today I started wondering if I was causing a problem with my test method and then wondered if I could error trap. I am not at the machine today, so I can't simply try a real touchplate, although that scrares me a bit since this sometimes drives toward the table when the button routine performs the final retract. Another person also sent me a message that they were using the same routine I am using and it normally works OK. However, one time they had the touch plate so far away that the bit failed to contact the plate by the end of the G31 move. They hit zero again and after the bit hit the plate, the machine then drove the bit very hard into the touchplate/workpiece. They are not using a SS, so I thought that perhaps he too had an error condition that our button routine needs to trap.

Sorry for the lengthy explanation. Just thought it better to give the full picture.


I use G31s for touching off many, many times a day, with a SmoothStepper, running my own macros.  Never had a problem, *except* one time on a previous version of Mach which *did* have a bug that resulted in breaking my probe.  That bug was fixed within hours or my reporting it, and a new version of Mach posted.  What version of Mach are you using, and what SS plug-in?

Regards,
Ray L.

1086
General Mach Discussion / Re: Error Trapping in Button Script
« on: July 24, 2009, 03:39:07 PM »
The G31 code (linear probe) refers to errors that may occur if the program point is less than .01" from the start point. Is there a way to add error checking in the VBscript button code to trap errors?

Save the current position before doing the G31.  Then, after the G31, look at the probe point DROs (2000-2002), and see how far it actually moved.  If the probe triggered too close to either the start or specified end point of the move, then assume something went wrong.

Regards,
Ray L.

1087
General Mach Discussion / Re: Coordinates are wrong
« on: July 24, 2009, 10:46:07 AM »
Do xylotex have microstepping?
Hood

Yes - 1X, 2X, 4X or 8X, jumper selectable.  If he's really getting the DROs to show 6X the actual travel, I'd guess he has Mach moving in mm, and the Xylotex set for 4X microstepping.  That would give him almost exactly 6X.

Regards,
Ray L.

1088
General Mach Discussion / Re: New PlugIn just about done..
« on: July 23, 2009, 10:33:27 PM »
Dave, thanks for pointing this out to me. I'd say you are great help  ;) .

Attached is the source code for the shuttle pro plug-in.
Thanks Art

Brett

Hey, since you guys have the source code handy.....  Howzabout modifying it so we can have more than two macro buttons?  Looks like a straight-forward change to make, but I don't have VC++, so no way to compile it myself.  I'd love to have at least four macro buttons - but the more the merrier!

Regards,
Ray L.

1089
We are finding VB difficult with Mach 3 Is there  a tutorial on this anywhere?

specifically right now:

Is it possible to add an OCX object or an active X control to the screen?  We would like to put a Mschart object to record torch tip voltage, and be able to watch the chart as it runs

In general, does Mach3 allow all visual basic objects like the Mscomm, mscharts,etc... to be used?


Thanks in advance.

Mach macros use Cypress Enable: http://www.cypressinc.com/proddes.htm  The only visual objects you can use are those built into Mach, except for VB modal dialogs.

Regards,
Ray L.


1090
General Mach Discussion / Re: weird problem
« on: July 22, 2009, 12:05:14 AM »
If you command a 1" move, it should move 1".  Zero the DROs, and type "G0 X1 Y1" into the MDI line.  The X axis should move 1" to the right, the Y axis should move 1" to the rear.  If they don't, you need to change your steps/inch settings.

Regards,
Ray L.