Hi CNC-programmers!
No part counter on my Fanuc i18-T.
So I thought I can increment a variable in my prog, but how to write it in clear so I'll get the number when the job will be finished next week?
Thank you for any help!
K.
Hi CNC-programmers!
No part counter on my Fanuc i18-T.
So I thought I can increment a variable in my prog, but how to write it in clear so I'll get the number when the job will be finished next week?
Thank you for any help!
K.
Hi,
Check parameters 6700 - 6713 for the part count and total parts.
Fanuc Parameter Manual GFZ-63530 (Fanuc 18i Manuals User Guides - CNC Manual )
these are for my Fanuc 18i-TB twin turret - twin spindle:
Main spindle:
N06700 P 00000000
N06710 P 0
N06711 P 154 (machined parts)
N06712 P 976071 (total parts)
N06713 P 0
Sub spindle:
N06700 P 00000000
N06710 P 0
N06711 P 145
N06712 P 972644
N06713 P 0
Regards,
Heavy_Metal.
Thanks very much! I will try to set those parameters!
BR.
K.
Hello kruener1,
Fanuc and other controls, provide the following System Variables that can be manipulated (Read from, Written to).
#3901 Number of machined parts (completion number)
#3902 Number of required parts (target number)
It would be a simple matter to create Custom M Codes to use whenever the Target Number had to be set and to increment the Completed Number, to call short Macro Programs that deal with the two issues. Example follows of Part Counter Increment Macro called with a Custom M Code.
O9020 (Parts Completed Increment)
#3901 = #3901 +1
IF [#3901 LT #3902] GOTO10
Code to Park and Stop the Machine, run Bar Change Routine, or whatever action when the Target Number is reached goes here.
N10
M99
Regards,
Bill
Another method which may suit specific cases:
Set parameter 6710 = 100 (say)(any number between 1 and 255 except 98 and 99)
Insert a line M100 after completion of each job.
The part counter #3901 would automatically get incremented every time it encounters M100.(or M30 or M02).
If it is desired to increment the count only by M100, set parameter 6700#0 (PCM) = 1
Thanks also Bill and Sinha_nsit! Sounds good, I will try that asap.