PDA

View Full Version : Need Help! Star SR20 Macro question



jrob69
08-21-2008, 01:04 AM
Hi everyone, I have a star sr20 with fanuc 16tt 1998 model. I'm trying to make a sub program with a macro command that checks if the cutoff is in position. If not it will go to the cutoff and cutoff the materal. If it is in position it will skip and start the program.



Thanks everyone.

Armageddon
09-09-2008, 08:02 PM
hi,

did you mean something like this:

%
O7777(CUT-OFF-TOOL-SKIP)
M77
G0 G99 U#5081 V#5084 W#5082 T0
IF[#5024GT-1]THEN IF[#5021LE0]GOTO1
T200
T100
G0 G97 X21.0 S2000 M3
G1 X-1.2 F0.015
N1 M78
M99
%

Command M77 is for prevent the buffering (like STOPRE on SIEMENS) and disable the single block key on SR-20R. I hope this M code works on SR-20 too. In the 2nd line offset will be canceled without moving axis. 3th line checks if the y axis is greater then machine position -1 and the x axis is less or equal position 0 there are no need to cut off. N1 M78 is for enabling the single block key.

Hope it works for you. There are some initialization programs for star machines equipped with a fanuc control. Maybe i can help you.

metal mania 01
10-18-2009, 08:26 PM
this looks very useful.thank you.