This i ATC macro from Miyano TSV21 with Fanuc OM control.You can change program No.9003 to 9000 and will not have problem
O9003
G04
G65H81P800Q#1000R1
G65H81P800Q#1004R1
G91G28Z0M19
G49
G65H82P250Q#1001R1
M80
G65H82P350Q#1006R1
G30Z0
G65H82P450Q#1003R1
M82
G65H82P550Q#1004R1
G28Z0
G65H82P650Q#1002R1
M81
G65H82P750Q#1005R1
M99

I have two Miyano TSV21 but with one of them i have ATC problem because machine came without parameters.I installed now and everythink works except ATC.I think that is incorrect parameters.Can you send me your beck up of the parameters and pic from operating panel to try it.I will be thank full.If you need somethink else my mail is [email protected]