negative GOTO block number

NCPlot questions or comments

negative GOTO block number

Postby SMAT » Mon Oct 16, 2006 10:41 am

Hi Scott,

I use GOTO with a negative block number.It doesn't work correctly.When the control FANUC read a negative block, it go backward. With NCPlot the negative just be ignore and NCPlot go forward to search next block's number.To cause me this problem:

N680M06
N682( T1563 FACE MILL 6.0" )
N690
N700(- USINER 1 PLAT A 1981 MM DU CENTRE)
N710
N740G00X-11.Y9.275
N750G00V0.
N770G43H563Z6.
N780M00
N790( AJUSTER VARIABLE )
N800#521=.550(OVER STOCK -Z-)
N810#522=[#521/9.](NUMBER INCREMENT -Z-)
N820#523=[#521-#522](FIRST DEPTH -Z-)
N830
N840S500M03
N860Z1.5M08
N870G00X-11.Y9.275( * * * * must back here * * * * )
N880Z[.03+#523]
N890G01X11.F35.
N900G00Z[.03+#523+1.]
N910X-20.Y5.275
N920Z[.03+#523]
N930G01X14.5
N940G00Z[.03+#523+1.]
N950X-20.Y2.8
N960Z[.03+#523]
N970G01X15.00
N980G00Z[.03+#523+1.]
N990#523=[#523-#522]
N1000IF[#523GT-.001]GOTO-870( * * * Starting point * * * )
N0800
N0810G00X-11.Y9.275
N0820G1Z0.(Z FINAL)
N0830G01X11.F12.0
N0840G00Z.125
N0850X-20.Y5.275
N0860G1Z0.
N0870G01X20. ( * * * NCPlot GOTO here....ouch !!! * * * )
N0880G00Z.125
N0890X-20.Y1.275
N0900Z0
N1120G01X20.
N1130G00Z1.M09
N1140M05
N1150M66
N0870M00

I wish my message was easily understood !!!

Tanks to take a look on this.

Smat.
SMAT
 
Posts: 39
Joined: Thu Aug 31, 2006 3:56 pm
Location: Quebec / Canada

Postby scottmartinez » Mon Oct 16, 2006 11:13 am

OK, I will have another look at this. Sorry for the misunderstanding.

Scott
User avatar
scottmartinez
Site Admin
 
Posts: 215
Joined: Sat Mar 11, 2006 8:49 pm

Postby SMAT » Wed Oct 18, 2006 9:59 am

P.S. renumber function, not replace a GOTO's block number a with negative block

Smat.
SMAT
 
Posts: 39
Joined: Thu Aug 31, 2006 3:56 pm
Location: Quebec / Canada

Postby scottmartinez » Wed Oct 18, 2006 11:02 am

Thanks, I'll make a note of this.

Scott
User avatar
scottmartinez
Site Admin
 
Posts: 215
Joined: Sat Mar 11, 2006 8:49 pm


Return to Questions / Comments

Who is online

Users browsing this forum: No registered users and 21 guests

cron