Hi All,
Having issues getting this lathe up and running again after the battery died and i lost all the parameters.

Quick question
Anyone like to explain what this Sub routine is doing ? I understand it is for the tool change when 0055 is called , just not sure of all the guts to it....
(WHAT IS P104) ?
(WHAT IS P100) ?

Anyone ?

Thanks in advanced


%OEM SUBROUTINE,-X,
(SUB 55)
(P104=TOOL) (WHAT IS P104) ?
(P100=NBTOOL) (WHAT IS P100) ?
(IF P104 EQ P100 RET)
G0 G53 XP290 ZP291
(RET )
(SUB 9998)
(P108=POSX)
(P109=POSZ)
(RET)
(SUB 9999)
G53 XP108 ZP109
M30
(RET)
(SUB 74)
G74 X
G74 Z
(RET)