cncchipmaker
-
Posts
190 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Downloads
Store
eMastercam Wiki
Blogs
Gallery
Events
Posts posted by cncchipmaker
-
-
Looking for some help. I have an idea of what the MOD function does but I can't seam to find it in the control books. I am trying to help a bud convert an Okuma program over to Fanuc. Please if u could let me know what this is used for and application I would really appreciate it or if it can even be done.
- 1
-
I tried Google for how to calculate a radius based on three points and it looks like there is a formula for it. If u guys could come up with what formulas to use I could definitely write it in macro B for u.
-
Are they bowing after you cut the slot in them or when you are trying to cut them flat? Sounds like you may have to rough everything out, straighten, then finish the parts in a free state.
-
Do guys think something like this would work? Right now it would only do 1 straight line but the logic could be written for vertical rows too.
O0001(MAIN PGM)
T1M06
G65P0002STX
X0Y0
T2M06
G65P0002STX
Y0Y0
T3M06
G65P0002STX
Y0Y0
ECT...O0002(POPULATE TOMBSTONE IN ONE STRAIGHT LINE)
(FORMAT G65STX)
(S = #19 - SUB PROGRAM #)
(T = #20 - TOTAL # OF PARTS)
(X = #24 - INCREMENTAL X POSITION)
(********************************)
#100=#20
#101=0
WHILE[#100GE1]DO1
#101=#101+1
M98P#19
IF[#20EQ1]GOTO100
G91G0X#24
(COUNTER)#100=#100-1
N100
END1(PG#19 SUB POSTED IN INCREMENTAL)
GOTO#101
N1(INCREMENTALLY POSTED PGM FOR TOOL 1) -
7 minutes ago, Mhoppe said:
Thanks guys, that answers my questions. I have a specific application for someone in the group and hope to post it.
-
Another question: Can u use a M98 inside of a G65 call?
-
1 hour ago, C^Millman said:
Depends on the control and how deep it will allow you to go into a sub loop. In the middle of a while do loop I would suggest calling a N Block number and let the N Block number have the M98 call and not in the middle of the While do loop. The while do loop is to check a condition depending on how you structure it. Using the N Block process after the While Do loop is completed allows you to define things and change them verse being in the middle of a while do loop and running into trouble if a reset is hit or any other thing happens that doesn't support the while do loop process to be completed correctly.
Can u then get back to the while-do using a GOTO after the M98 is complete?
-
Can u use an M98 subprogram call within a while-do loop?
-
Let me know if you have any other questions. I have been writing my own custom macro B canned cycles for several years now and just love the stuff.
-
We always get the backlash out of our rotary tables when indexing. This is the only way you can get your positions right on the money and this may be why you are having the issue.
- 1
-
I did not realize my last two posts were on a separate page. Sorry about the redundant information.
-
2 hours ago, specv said:
I have written a lot of macros and have never seen THEN statements used. What machine cncchipmaker?
Standard Fanuc and Haas controls is where I have used them. They are mainly for calculations after the IF [ ] statement.
-
1 hour ago, specv said:
I have written a lot of macros and have never seen THEN statements used. What machine cncchipmaker?
Makinos fanuc controls. Maybe I don't need them but they work with them in there. I'm pretty sure you need the placement of brackets in the right place.
-
33 minutes ago, nickbe10 said:
Bingo. I get it , it was how it was jumping. I need to work on my flow chart skills too.........
Now on to cncchipmakers version, I get that one too.......
I think it was because you added brackets in the IF THEN statements.
-
28 minutes ago, nickbe10 said:
#101 = #5223 - #5263
ABS[#101]
IF[#101GE.0015]THEN#3006=1(CHECK LOAD RESTART PROGRAM)
IIF[#101LT.0015]THEN#3006=1(CONFIRM LOAD)
Still gives address not found. Have I got the code right here? I can certainly see how this would work
#101 = #5223 - #5263
IF ABS[#101] LT.0015 GOTO1
IF ABS[#101] GE.0015 GOTO2
N1#3006 = 1 (CONFIRM LOAD)
GOTO2
N2#3006 = 1(CHECK LOAD RESTART PROGRAM)
N3
Now gone back to Format error. I can also see how this should work......
I know what you are doing wrong now. The ABS[#101] needs to be #101=ABS[#101]. You have to assign a variable when you are using the absolute function in this way.
-
10 minutes ago, nickbe10 said:
That would definitely explain the Address Not found error. Will try at next opportunity, appreciate the help.
I have the Smit and Sinha books. I guess my Holiday reading is taken care of......
#3000=1 should work for you too. This is what we use in the shop all of our programs.
-
You have the right idea but your syntax should be in this format:
IF[#101GE.0015]THEN#3006=111(CHECK LOAD RESTART PROGRAM)
IF #101 GE 0.0015
#3006 = 111 (CHECK LOAD RESTART PROGRAM)
-
I am pretty sure that on Haas and Fanuc controls the standard is still #5221=X, #5222=Y, and #5223=Z. Not the others the rep gave you? You could also preload using a G10 lIne.
-
I would try boring the holes. Unless you are helical milling for position prior to reaming you are going to have problems.
-
Does anyone out there have an example for a macro that calculates the week number based on the date? Preferably custom macro B. Thanks in advance.
-
Titex through coolant works great @ 400SFM.
- 1
-
As far as work holding is concerned you could qualify one face of your block with a face mill, drill and tap some holes, and ream some holes for tooling. You would have to make a fixture to mount the block to. This is how we handle all of our large parts and I am sure you would have room to do this, especially if you are going to be removing most of the material anyways for the mold features.
-
I am running out of ideas for this stuff and am looking to this group to come up with something interesting to do.
-
As far as turning is concerned a good way to get more tool life and rigidity out of your set-up is turn the cut-off tool backwards and run the spindle backwards at an M04 instead of an M03. This forces all of the tool pressure into the bed of the lathe rather than pulling up on it, works like a champ.
- 2
316 Stainless Plate
in Machining, Tools, Cutting & Probing
Posted
Our shop is having a very hard time keeping a .25 plate 17 inches in diameter from relieving itself and springing. Any thoughts on how to machine this stuff? Must be flat within .01 and keep within a .004 thickness tolerance.