I am doing some programming on Doosan inverted lathe with a Fanuc 18i control the machine has a auto part loading system that has a lot of prox switches on it the bulider has modified the ladder so that I can read these switches through G54.1 to G54.6 registiers as #1000 through #1006 it would look like this in a program.
O1234
N1 THIS
N2 PART
N3 OF
N4 THE
N5 PROGRAM
N6 RUNS
N7 THE PART
N8 IF[#1003EQ1] GOTO0100 (CHECKS FOR FINSH PART AT UNLOADING STATION)
N9 IF[#1003NQ1] GOTO0200(BEFORE SETTING DOWN NEXT PART)
N0100 #3001=5 (FINISH SHUTE)
N0200 G98 P9001 (UNLOAD PART PROGRAM)
N10 THIS
N11 PART
N12 LOADS
N13 NEW
N14 PART
M99
The problem is that sometimes the control will read past N8 and N9 to fast to read the prox switch and go right the alarm statement N0100 unless I put at least 2 G04 dwells of 4sec in front of it I have sevral of these statments through out the program for the automation so you can see how much this slows down the process any body have any Ideas.