Recently bought a router from china uses a lnc 510i controller problem is i can't get it tool move to the right tool location no matter how i input the command in MDI mode e.g. M06 T05 still goes to tool position 2 it does this for all the tool numbers this is the begining of the tool change code:
/*O9001 TOOL CHANGE MACRO O9001 */
@1=$1 /*RECORD G GROUP 01 STATUS G00, G01, G02 OR G03*/
@3=$3 /*RECORD G GROUP 03 STATUS G90 OR G91*/
@4=$15 /**/
@467=$230 /*RECORD X AXIS MACHINE COORDINATE */
@468=$231 /*RECORD Y AXIS MACHINE COORDINATE */
@469=$232 /*RECORD Z AXIS MACHINE COORDINATE */
@5=#20 /*RECORD T CODE */
T#20 /*READ T CODE */
IF [$200==1] GOTO 600 /*SPINDLE TOOL = COMMAND TOOL */
IF [$210==0] GOTO 10 /*C110=1 COOLANT MOTOR ON , RECORD COOLANT STATS . C110=1*/
@8=1
N10
M09 /*COOLANT OFF */
M05 /*SPINDLE STOP */
G4X6
M92
G90G0G53Z@450 /*Z AXIS G0 TO TOOL CHANGE POSITION */
IF [$201==1] GOTO 310
IF [$202==1] GOTO 320
IF [$203==1] GOTO 330
IF [$204==1] GOTO 340
IF [$205==1] GOTO 350
IF [$206==1] GOTO 360
IF [$207==1] GOTO 370
IF [$208==1] GOTO 380
The controler always goes to line 320 no matter what any help would be appreciated :-)