Hello Guest it is March 29, 2024, 09:03:59 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 - Beckett

Pages: 1 2 »
1
General Mach Discussion / Time Log-File Macro
« on: December 10, 2012, 05:59:58 PM »
Hi BR549 or is it Terry? or both

Back in 2009 you posted a macro to record time date etc and log it.
I have just finished building a tangential cutting machine for cutting composite materials.

I would like to record the time that the machine uses the cutting knife so I can get some indication of when to change the knife, before it becomes to blunt.

The machine also has a pen to write on each part.
Both the pen and knife are controlled by separate air cylinders and I am using the mist control and flood control to control each on.

When I need to use the pen plus the knife I use M7 for the 1st part of the G-Code program (all the letters and numbers etc) M9 to turn it off then in the cutting section of G-Code I use M8 which activates the Knife. At the end of the program before the M30 I again use the M9 code.

What I would like to achieve in the log is as your march 28 2009 post is all of the details you had included but a separate section for both the knife and pen.

Some times I will run the knife only or just the pen only.

I would also if possible like the data to be sent to an excel file.

Also if it it not too difficult after the data is written or "printed" in the  file another macro will close Mach3 and shut the computer down.

I would like to have the Macro's available to just add into the G-Code file either automatically when I program it or add it. I am using Cambam to generate the G-Code.

Some years ago I downloaded and used a program called ExportXL which I used to export data from Autocad straight into excel.  It was written by a programmer from Greece and it it is brilliant. I may be able to ask him for some help if need be about getting  into excel but need to get the basics and starting point first.

I have been able to understand some macro's and write a few in excel but having some difficulty in the Mach 3 macro's.

I have read many of your posts and see that you are a bit of an expert at macro's and Vbasic

I am having second thoughts about the M30 closing down mach 3 and computer so don't worry about that

Thanking you and looking forward to reading your reply


Evan Thomas


2
ET to ET
In response to your last post:-
Yes you were missing the easy way.
You also are the second "S" in the well known simplistic saying.
WHY NOT use the M8 and M9 already there and use a spare output to turn a dedicated relay on and off.
You don't use any mist or coolant
Should work !!!!

Will battle with the offset and then post the jerking

ET

3
I think I should be able to add another DRO to a screen set, will have a go tomorrow, have already set up the 5 axis, thanks

Still would like to know if a macro would be the easiest way to go.
Once this machine is up and running, the people who will be operating it may not have the expertise to sort out the use of mach 3.
If I can get a macro which will tell mach 3 to use the marking pen first and the change over to the tangentail knife  I thought that it would be the simplist method to use.

Cambam could be set up to add a header in all the programs that have two layers in the DXF files.

I think I could manage to do that but I want a starter Macro which I can adapt to suit.

will try to work thru the offset also

I've read the descriptionof G52 etc but still cannot work out what to do.
I have no experience in lathe , milling work.

re the macro what my old mind is saying
Firstly if there are two layers the add M2 ??????

The M2 ????? could  say
if ????? then
 disable direction pin no  (Tangential rotary knife pneumatic solonid )
 enable direction pin no  (Pen pneumatic solonoid)

If not then enable  etc
 am I missing an easier way to achieve what I want to do ?.

ET

4
Thanks Hood

I thought you may be on deck and get an answer to me pretty quick.
have just set up Dir output for B axis using outputs on one of the C10 and saved and restarted Mach3.
I however cannot see the B axis on the screen. I have X Y Z and 4 Axis but no 5 axis. Should there be one for this new axis. I would need to be able to button jog it.

Could you please explain how I would  set up G52 temporary offset or point to where i can find an explanation.

I will work on the jerk issue and post it as soon as i get this final problem sorted.

Thanks and the machine is only 10 feet away.

Cheers
ET

5
Hi
I have been making a Tangential cutter and it is working well at last. Have had some trouble with jerking around curves but overcome that, thank goodness.
I am using the Z axis for a pneumatic cylinder for working the rotary cutter and it is activated by the direction pin on/off. works like a dream. Cuts square corners and also very good small curves.

As I need to have part numbers on the parts I am cutting I have set up a pen and again it is to be actuated with another pneumatic cylinder.  
The center of the pen holder is offset both in the X axis (113 mm)and Y axis (23 mm).

My thoughts for the part No' procedure is to use layers in the dxf program and then in my post processor (CamBam) have two sections of the gcode.
I would firstly apply the part numbers and then change over to the cutting knife.

Should work I hope but I need some assistance or thoughts on how to set up this second pneumatic cylinder and how to offset the center.

The change -over of the solenoids from one Cylinder to the other I thought I could use a relay to switch the circuit.

I have thought that maybe a macro would be the best way to go.

My circuitry consists of a smooth stepper and 2  C 10's so I have few extra inputs and outputs I can use.

I also have fitted a industrial joy stick with 8 push buttons and I use this for jogging around the 6 M by 2 M table etc.

Can someone help me with a macro that I could use, if this the best way to go.

BTW would anyone be interested in how I overcame the jerkng around the curves ??

Many thanks in advance

ET  

6
General Mach Discussion / Re: tangential knife rotation problem
« on: July 16, 2012, 01:49:56 AM »
Tweakie.

U were rite,  works perfectly now thanks should have asked you days ago
might be back with another couple of Ques'

and yes BR
Many thanks
ET

7
General Mach Discussion / Re: tangential knife rotation problem
« on: July 15, 2012, 10:17:48 AM »
thanks Tweakle

will try, but would this also change the X axis as well ??
If I program a straight line cut say X100 to X200 and then X200 to X100 the knife goes in the correct plane,(direction)

if I program a line say Y100 to Y200 and then back again the knife works in the wrong plane.

Thats what happens when I try to aircut a square.

Will try tommorrow,  its 10.15 pm here in West Australia and post a reply.

Thanks ET





8
General Mach Discussion / tangential knife rotation problem
« on: July 15, 2012, 06:55:41 AM »
Hi all

  I am seeking help with a problem about rotating a knife.

I have set up a 4th axis with the A axis rotating around the Z axis.
my table coordinates are such as X0 and Y0 axis are to the left hand corner.

I am using NC PLOT as post processor and when I run the generated program the knife rotates correctly in the X++ and X-- direction but is reversed in the Y++ and Y--direction .

Have also tied CamBam demo and same thing occurs.

Have searched this Forum and others but cannot find any info as to why this occurs.

some inner thoughts !!!

If the dxf file imported into NC Plot or any other PP has the coordinates X0 and Y0 not in the lower left hand corner as in my machine, but the X0 is as my machine Coordinate (left hand lower) but Y axis is in Right hand lower corner

Could this be the problem ?

If so can a Mach3 setting in config overcome this ??

have tried changing  configs etc in Mach3 but  does not overcome problem.


many thanks for your help I hope!!

ET

9
General Mach Discussion / Help for Jogging with Joystick
« on: June 17, 2012, 10:46:38 AM »
Hi all
I would appreciate some help in setting up and jogging with a Joystick.
I'm building a 6M by 2M cutting machine and have an industrial joystick with 8 buttons and a trigger (came from a container crane).
I am using a smooth stepper with 2 C10 breakout boards for controlling.
I have setup the Joystick to function and it works well, can start and stop program and jog X Y and A axis plus other functions using OEMs etc.
However I have a problem that I cannot seem to overcome.
I want to jog or move the knife cutter to a certain position on the table and then zero the axis and start the cutting program from my selected position on the table.
I have set my speed at about 30,000 units per Min for running the program and this works well. However when I jog using the joystick the speed is the same and I need to jog at a much lower speed to accurately position the knife.
I can zero OK but need to change the jogging speed. Is there a method of slowing down the jog feed speed ??
Could someone help to point me in the right direction to achieve this. I have some spare buttons to use.
Thanks

ET

10
General Mach Discussion / Re: Setting up Tangential Knife-Questions
« on: April 10, 2012, 06:46:08 PM »
Hi Andy
I,m building a large tangential controlled plotter cutter 6M by 2M and using the Z for bringing down my Knife cutter. I have setup a pneumatic cylinder and use the Z direction pin as the actuator. So far it seems to be working, am still tuning it now.

You could try to turn on Tangential control in Settings Click on it.
Also activate the Z is 2.5D on the config page.

Hope it helps

I'm using Cambam as the G code generator and use the engrave style.

 
ET


Pages: 1 2 »