What's new
What's new

Agiecut 100 Programming

glbreil

Cast Iron
Joined
Feb 10, 2008
Location
McLeansboro, IL
I have a couple questions.

First I have run into something new to me, I do not have enough memory for my program.

Do I understand correctly that if I add an M94 in my program that it will read the program up to that point, then execute it and begin reading again automatically when it has finished that section?

Second I have a couple programs shown below. The first one has a M00 glue stop and works fine. The second has a M00 glue stop and will not stop for it, can someone tell me why it skips the stop in this program.

Program 1 M00 at line N024 works fine.

%N001D01P01T01S01G43
N002G01X-001000Y+000000G44
N003G01X-006843Y+005471G40
N004X-003188Y+000000G44
N005G03X-000229Y-000145I+000000J-000254
N006X-001196Y-005326I+011260J-005326
N007X+001196Y-005326I+012456J-000000
N008X+000229Y-000145I+000229J+000109
N009G01X+004188Y-000000
N010G02X+000187Y-000088I+000000J-000244
N011G03X+006656Y-003113I+006656J+005559
N012X+006655Y+003113I-000000J+008672
N013G02X+000187Y+000088I+000187J-000156
N014G01X+004188Y-000000
N015G03X+000230Y+000145I+000000J+000254
N016X+001196Y+005326I-011260J+005326
N017X-001196Y+005326I-012456J-000000
N018X-000230Y+000145I-000230J-000109
N019G01X-004188Y+000000
N020G02X-000187Y+000088I+000000J+000244
N021G03X-006655Y+003112I-006655J-005559
N022X-004410Y-001204I-000000J-008671
N023X+000000Y-000001
N024M00
N025G03X-002246Y-001907I+004410J-007466
N026G02X-000187Y-000088I-000187J+000156
N027G01X-001000Y+000000G44
N028X+006843Y-005471G40M21
N029G45M21
N030M62
N031M02


Program 2 M00 at line N013 does not work.

%N004D15P15T15S15G43
N005G01Y-001000G44
N006G01X-006934Y+010160G40
N007G01Y-019320G44
N008G01X+013868
N009G01X+000000Y+020320
N010G01X-010693
N011G01Y-000000
N013M00
N014G01X-003175G44
N016G01X-001000
N017G01X+006934Y-010160G40M21
N018G45M21
N020M00
N004D16P16T16S16G43
N005G01Y-001000G44
N006G01X-006980Y+010206G40
N007G01Y-019411G44
N008G01X+013960Y-000000
N009G01X-000000Y+020411
N010G01X-013960G44
N011G01X-001000
N012G01X+006980Y-010206G40M21
N013G45M21
N015D16P16T16S16G43
N016G01Y-001000G44
N017G01X-007010Y+010236G40
N018G01Y-019472G44
N019G01X+014021Y-000000
N020G01X-000000Y+020472
N021G01X-014021G44
N022G01X-001000
N023G01X+007010Y-010236G40M21
N024G45M21
N025M62
N026M02
%

Thanks in advance for the help!

Gary
 
Have you tried using OPM 12 option #2 to read a specific number of lines? We use this to read large programs on our machine usually 500 lines at a time. Push OPM 12 then option #2 then type in number of lines to be read. Machine will reafd to this then OPM 32 to execute. AS far as your program goes try putting your M00 and your register changes on seperate points in your geomerty. My 2 cents. Mark
 
Thanks Space, but I don't think I understand. The M00 that does not work is at line N013 and there are no register changes at that point.

I currently use OPM12/1, but I have read about OPM12/2. From what I could understand from my book with OPM12/2 you don't really get to pick the starting/stopping point becuase it reads blocks of info not lines. That means depending on the amount of inforamtion in each line the start/stop place could change.

I think M94 sounds like it is the best avenue, but I haven't tried it and thought it would be good to find someone who uses it before messing up something.

My Bobwire puts a M94 between every part and I have always taken it out, because it constantly puts in extra stuff that is not needed. You really need to be a programmer to use it.

Thanks and if anyone is or has used the M94 your help would be appreciated.

As for the stop not working I have had this happen on other programs and I can never tell any difference between one that works and one that doesn't. I thought maybe it had to be preceeded or followed by something special, but I can see that in the manual.

Thanks Again Gary
 
Gary,

Take out line 11. It's a non-move, and it's the reason your M00 isn't working. I wish I could explain WHY it causes that, but I just know that these machines are incremental-only, so any 'zero' move does nothing. I took it out, and got the glue stop.

M94s are a wonderful thing. Mark is right, you could do it with OPM12/2/xxx on the control when you read the program in, but I like to put M94 in the program, so that I know exactly when the control is going to stop and read.

For example:

N843 G02 Y-001437 J-000718 G44
N844 G01 X-001000
N845 G01 Y+000719 G40 M21
N846 G45 M21
:847 G01 X+004222 Y-015240 G40 M22
N000 M94
N848 D00 P00 T01 S01 G43
N849 G03 X+000075 Y+000158 I-000127 J+000158 G44
N850 G01 X+000194 Y-000157 G40
N851 G03 X-000539 I-000269 G44

This arrangement means that the cut finishes, the wire is cut, we reposition to the next thread point, the disk is read, THEN the wire is threaded and the next cut begins.

When you put in an OPM 12/2/500, you are stopping in place during a cut, with the generator off and wire running. Even if you look through your program for a 'good' line to read on, if you've done a little editing, your line numbers might not match up.

M94 is reliable and predictable; just make sure you do a test run to make sure that you've put it in a valid block. One thing I've found is that it must NOT be used on the same line as G45 - this causes the control to lose position!

With a little trial and error, you'll get good at putting them just where they belong.

Dan
 
Last edited:
Thanks Dan, I will give it a try. Your bit of code brings up another quesion.

You said
This arrangement means that the cut finishes, the wire is cut, we reposition to the next thread point, the disk is read, THEN the wire is threaded and the next cut begins.

There was no M62 for wire cut or M63 for wire thread? I think mine would cut the wire because of the M22 position without wire, but I have not been able to get it to re-thread without an M63 unless it is the very begininng of the program.

I might have just answered my own question, I guess every time the M94 is used it is actually the very beginning of the program again.

Is that right?

Thanks Again for the help. Gary
 
As far as I know...

The control 'implies' from M22 that it needs to cut the wire, and from G43 that it needs to thread. Also, I have my PSM15/PF1 set to '001' - I've always just assumed that meant that threading is enabled, but since I can't think of a reason for it NOT to be, maybe this allows me to run without M63?

I don't think the M94 has anything to do with it, since I inserted it myself, and it's the only one in the program; this program cuts about 50 holes without a single M63, even though my latest & greatest post processor puts them in. I took them all out, because the control would stop for each one as if it were an M00.

Dan
 
Thanks Dan, I will have to try it again with out the M63 and see what happenes on my machine. Last time I tried to go with out them it just started moving through the profile and not cutting anything?

Thanks Again Gary
 
Memory

In the early AGIE 100 machines the line numbers consumed memory and were not actually necessary.

If you regenerate your program without line numbers you may be able to load the entire program without the need to spoon feed.

:typing:
Larry McNamee
Visit: EDMCorner
 
Thanks Larry, I did not know that. I could only load about half of it so the numbers probably wouldn't be enough, but it might be on other things.

What if you have a program error, will it still tell you where it is at? Not that I would ever have one.:D

Thanks Gary
 
Error

If I remember correctly when you load the program watch the red display. It will show you the line numbers as it loads.

Try eliminating the numbers ! It may work !

But when you eliminate the line numbers it will not show on the red display.

You can always set it up to spoon feed !


:typing:
Larry McNamee
visit: EDMCorner - register and go to the members area for free downloads !
 
Dan, just thought I would let you know that the M62 and M63 are both working with out actually being in the program code just like you said.

Thanks for that information as I have been inserting them when the program didn't.

Larry, I will try loading without the numbers and see what happens after I get this batch of parts done.

Thanks again, I learn something new about this thing every day.

Gary
 
Another ?

Here is another question. When everything goes to crap and you need to restart in the middle of 30 parts is there a way to start at a certain line number in the program?


Gary
 
I'm afraid the best advice I can give is to determine where you were in the program and manually edit out what you've done already, then reload the shortened program and go from there. Sorry.
 
That is what I did and it worked out okay, it was my mistake anyway I had PSM61 set to return the the start % not return to the start of the : block.

I did a little reading and think OPM11 might move your forward or backwards depending on the option you pick to the next :XXX. I will try it sometime.

Thanks Gary
 








 
Back
Top