This is a question about parameter settings. Fanuc 18i: I notice that if I use a program command that contains an unset variable register, it is treated as if it were set to zero. Is this governed by a parameter setting? Can I get it to return an error instead? Example:
#101=#0 G0G91X-#101
The machine will not move. I would like to have it so that it returns an error. Can this be done? Thanx,
-plh
Didn't find your answer? Ask the community — no account required.
B
brewertr
Your example is the same as:
G0G91X-;
So it should stop the machine.
#0 is Vacant, meaning it has no value not even the value of zero.
Yes you can create a custom error message:
You need to create an error check to see if a particular variable is "Vacant" (has no value) and then display a custom alarm for the operator. (Haven't checked 18i manual to verify exact syntax but this should work.) It will go something like this:
IF[#101 EQ #0]THEN#3000=1(VARIABLE 101 IS VACANT);
1) Checks to see if #101 is vacant,
2) If vacant machine will a) Halt (similar to M00 but spindle and coolant will stay on) b) Alarm c) Error message will come up on the screen: "VARIABLE 101 IS VACANT" or "MC001 VARIABLE 101 IS VACANT"
3) If not vacant program will continue uninterrupted.
Tom
B
brewertr
IF[#101EQ#0]THEN#3000=1(VARIABLE 101 IS VACANT);
Will desplay error message "3001 VARIABLE 101 IS VACANT"
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required
Report Content
You are reporting this content to the moderators. They will look at it
ASAP.