Our company just bought a used Amada 357 Queen turret press with a Fanuc 18P control. I'm trying to write programs that will use a wheel tool in the first auto-index station and then change to a punch tool in the other auto-index station. The problem I have is that after cutting several arcs with the wheel tool, the program locks up on me. There is no alarm, it just stops at the block of code that tells the turret to change tool stations. It does this in several different programs I've tried. Each time, I noticed that the C-Axis is at 359.99 degrees, or something similar. So, the C-Axis is not returning to 0 like it should and that locks up the program. I can re-reference the machine and start over, but I can't get past this problem.
One individual I've consulted with said they have seen this before and they believe there is a rounding problem with the way the Fanuc 18P that causes this. Has anyone else had this problem? Does anyone know how to work around it? I've included an example of one of the programs that cuts arcs and then locks up when I want to use a punch tool.
Thanks!
%
O0565
(T220 ROLLING SHEAR KEYED 0.0)
(T256 OBROUND 1.0 X 0.312 KEYED 270.0)
G92X72.Y50.
G06A0.051B2
G90
M692
M561
M690
M693
X63.968Y25.341T220C200.
G172
G03Y46.954I-3.933J10.806F500.
G170
M692
M561
M693
G00X56.102Y25.341C160.
G171
G02Y46.954I3.933J10.806
G170
M692
M561
M693
G00X40.218Y25.341C200.
G172
G03Y46.954I-3.933J10.806
G170
M692
M561
M693
G00X32.352Y25.341C160.
G171
G02Y46.954I3.933J10.806
G170
M692
M561
M693
G00X16.433Y25.381C200.
G172
G03Y46.994I-3.933J10.806
G170
M692
M561
M693
G00X8.567Y25.381C160.
G171
G02Y46.994I3.933J10.806
G170
M692
M561
M693
G00X63.968Y2.966C200.
G172
G03Y24.579I-3.933J10.806
G170
M692
M561
M693
G00X56.102Y2.966C160.
G171
G02Y24.579I3.933J10.806
G170
M692
M561
M693
G00X40.218Y2.966C200.
G172
G03Y24.579I-3.933J10.806
G170
M692
M561
M693
G00X32.352Y2.966C160.
G171
G02Y24.579I3.933J10.806
G170
M692
M561
M693
G00X16.468Y2.966C200.
G172
G03Y24.579I-3.933J10.806
G170
M692
M561
M693
G00X8.602Y2.966C160.
G171
G02Y24.579I3.933J10.806
G170
M692
G00
M500
M691
G72X54.688Y46.96
G66I10.693J0P-1.Q-0.313D0T256C270.(OBROUND 1.0 X 0.312) (<--This is the point where the program locks up because the C-Axis will not return to 0)
G72X30.938Y46.96
G66I10.693J0P-1.Q-0.313D0C270.
G72X7.153Y47.
G66I10.693J0P-1.Q-0.313D0C270.
G72X54.688Y25.648
G66I10.693J0P-1.Q-0.313D0C270.
G72X30.938Y25.648
G66I10.693J0P-1.Q-0.313D0C270.
G72X7.153Y25.688
G66I10.693J0P-1.Q-0.313D0C270.
G72X54.688Y24.585
G66I10.693J0P-1.Q-0.313D0C270.
G72X30.938Y24.585
G66I10.693J0P-1.Q-0.313D0C270.
G72X7.188Y24.585
G66I10.693J0P-1.Q-0.313D0C270.
G70X55.188Y15.
G72X54.688Y3.273
G66I10.693J0P-1.Q-0.313D0C270.
G70X31.438Y15.
G72X30.938Y3.273
G66I10.693J0P-1.Q-0.313D0C270.
G70X7.688Y15.
G72X7.188Y3.273
G66I10.693J0P-1.Q-0.313D0C270.
G70X60.Y24.
G27X48.
M692
M561
M690
M693
X111.468Y25.341T220C200.
G172
G03Y46.954I-3.933J10.806
G170
M692
M561
M693
G00X103.602Y25.341C160.
G171
G02Y46.954I3.933J10.806
G170
M692
M561
M693
G00X87.718Y25.341C200.
G172
G03Y46.954I-3.933J10.806
G170
M692
M561
M693
G00X79.852Y25.341C160.
G171
G02Y46.954I3.933J10.806
G170
M692
M561
M693
G00X111.468Y2.966C200.
G172
G03Y24.579I-3.933J10.806
G170
M692
M561
M693
G00X103.602Y2.966C160.
G171
G02Y24.579I3.933J10.806
G170
M692
M561
M693
G00X87.718Y2.966C200.
G172
G03Y24.579I-3.933J10.806
G170
M692
M561
M693
G00X79.852Y2.966C160.
G171
G02Y24.579I3.933J10.806
M692
G170
G00
M500
M691
G72X102.188Y46.96
G66I10.693J0P-1.Q-0.313D0T256C270.(OBROUND 1.0 X 0.312)
G72X78.438Y46.96
G66I10.693J0P-1.Q-0.313D0C270.
G72X102.188Y25.648
G66I10.693J0P-1.Q-0.313D0C270.
G72X78.438Y25.648
G66I10.693J0P-1.Q-0.313D0C270.
G72X102.188Y24.585
G66I10.693J0P-1.Q-0.313D0C270.
G72X78.438Y24.585
G66I10.693J0P-1.Q-0.313D0C270.
G70X102.688Y15.
G72X102.188Y3.273
G66I10.693J0P-1.Q-0.313D0C270.
G70X78.938Y15.
G72X78.438Y3.273
G66I10.693J0P-1.Q-0.313D0C270.
G70X60.Y24.74
G27X-48.
M692
G50
%