well, this is an old post and you fixed it but the problem you were having was you were using M60 to command your pallet changes. Mori horizontals using the work number screen automatically pallet change on M30 with the button pushed in. You had one too many commands and were confusing the machine