We have 2 Nakamura Tome TW-10's, one a Fanuc 18T and the other with a Fanuc 16TT comtroler. I'm trying to set up a macro that will shut down the machine at a certian spindle load. The problem being is that if a tool breaks on the left side and say the bore is missing, when the right chuck comes in for the transfer, it will crash. I have found a macro program on the net for this but I cant make sense of the parameters involved to do this. Here is the info I have found.

Installation and operating Instructions for load monitoring

Introduction

The following deals with the operation and installation of the load monitoring function. This function allows you to monitor the load on a tool each time its used. Two values are set, A and B. The controller will monitor the load on the tool and if it reaches the percentage value of A it will warn the operator that it has reached this value and the feed rate will automatically decrease. If it reaches the B value then the controller will stop what ever operation the machine is carrying out and it will display an alarm message to tell the operator to check if the tool is broken or worn.

The following instructions will deal with the following ROM version number,
MA0LSP-1 And, MA0LSP1G

This function uses a macro program and it is located at the following address,

Macro ~ PMC
#1132 ~ F162
#1133 ~ F196.0

Parameter Changes

In order to activate the function in the controller the following parameters have to be changed,

Parameter
Setting Value
Comment

913.6
1
Activate Macro

913.7
1
Activate Macro

230
92
This is the number of the macro program O9020

10.4
1
Protects the macro program so it cant be overwritten


Note: When the macro program is written into the controller, make sure the parameter 10.4 is set at 0. Upon completion of inputting the program set the parameter to 1, so it can not be accidentally deleted.

Diagnostics Changes

Diagnostic
Setting Value
Comment

D447.0
1
Spindle Overload Monitor Function

D447.1
1
Machine still runs when it reaches the A value

D310
1000
Delay time for the message to stay on the screen

The A and B Value

The A and B value are dependent on the material and the cutting conditions. They are percentage values equal to the spindle load percentage. The maximum setting load for the B value is 150%. The two values can be set into the range of 1~150%.


The M-codes associated with this Function
M90 Opens the spindle load monitoring screen.
M91 Displays the value.
M92 Sets the A and B value.
M93 Reset.

Alarms

Alarm 600 - B VALUE SETTING ERROR
This means that B is less than or equal to 0.

Alarm 601 - A VALUE SET TOO LARGE
The A value exceeds 150.

Alarm 602 - B VALUE SET TOO LARGE
The B value exceeds 150.

Alarm 603 - A VALUE SETTING ERROR
This means that A is less than or equal to 0.

Alarm 604 - A OR B VALUE NOT SET
A or B equal 0.

1022 TOOL OVERLOAD
If this is displayed the machine is stopped and the tool must be checked. Once the controller is reset the alarm will disappear. It is advised to change the tool.

Sample Program

Example 1: Dry Run Program

O****
M90;
M91;
T0101;
M3 S1000;
G04 X2.0;
G01 Z-100. X-20. F1.;
~~~
G28 X0. Z0.;
M01;
T0303;
M3 S1500;
G04 X2.0;
G01 Z-100. X-20. F2.;
~~~
G28 X0. Z0.;
M01;
M93;
M30;

Example 2: The Production Program

O****;
M90;
M91;
T0101;
M3 S1000;
M08;
G04 X2.0;
M92 A5.0 B35.0;
G01 Z-100. X-20. F1.;
~~~
G28 X0. Z0.;
M09;
M05;
M93;
M30;

The Macro Program

O9020(Load Monitoring Program);
IF[#1 LE 0.] GOTO5;
IF[#2 LE 0.] GOTO2;
IF[#1 GE 151.] GOTO3;
IF[#2 GE 151.] GOTO4;
IF[#1 EQ #0] GOTO6;
IF[#2 EQ #0] GOTO6;
IF[#1 GE #2] GOTO2;
#10=0;
#1133=1;
#1132=#2;
WHILE[#10 LT 50]DO1;
#10=#10+1;
END1;
#10=0;
#1133=0;
#1132=#1;
WHILE[#10 LT 50]DO1;
#10=#10+1;
END2;
M92;
#10=0;
IF[#1 LT 151.]GOTO100;
N2 #3000=100 (B VALUE SETTING ERROR);
N3 #3000=101 (A VALUE SET TOO LARGE);
N4 #3000=102 (B VALUE SET TOO LARGE);
N5 #3000=103 (A OR B VALUE NOT SET);
N100;
M99;

Can anyone help me make sense of this?

Thanks,

JK