Question
I'm running a Heian ER-242PBMC with a Fanuc 180i-MB control. What I'd like to do is access the tool offset data for use in parametric programming. For instance, where I'd like to run a part in two passes, I would create a compensation value for the first pass that is (Tool radius + 2mm). The dealer doesn't seem to catch on what I'm trying to do. Does anyone know whether these values can be transferred to a variable?
Forum Responses
(CNC Forum)
From contributor K:
I have worked on Fanuc's but not sure how to do what you want on them. It's a piece of cake on Allen Bradley controls. You don't want to access the offset but alter it in the program. For tool diameter it's called machine stock allowance "MSA=2mm" that is the variable.
So my program would go like this;
NCcode
NCcode
NCcode
part of program i want to repeat below
MSA=2; this is tool radius+2mm
(EPP,A,B);this means repeat from "A"to"B"
Example:
#100=#2001 (read offset 1 value into command variable)
#101=#100+2. (do your operation)
G01X#101 F250.
I have a twin table machine. Each table has a "consent" button to indicate whether that part is ready to run. M261 & M262 will read the state of those two buttons and run or wait accordingly.
What I'd like to do is run a logic program like this:
N50 IF (table 1 not ready) GOTO 100
table 1 program
N100 IF (table 2 not ready) GOTO 50
table 2 program
I just don't know how to tell it to read the state of those consent buttons!
Then we will do as follow:
N10
N50 IF #1000=0 GOTO 100
M98 PYYYY (table 1 program)
GOTO 200
N100 IF #1001 =0 GOTO 200
M98 PVVVV (table 2 program)
To be able to do loop, you need to change machine PLC logic to tight the switch to the interface input signal then it will work. also don't forget that you need to reset the signal during that table is cutting before job is finish, a M95 spindle off command or a vacuum off can rest this input signal.
Is this machine Using FANUC PLC or OMRON PLC? Go to the back cabinet open the door (turn off the power of machine first) and look into your left hand side see there are a OMRON PLC unit or not. Basically you need have Dealer or someone able to modify the PLC to change the PLC to get it work the way you want.