file load G-code txt.file in arduino

I want to use 4 different tools , on 1 machine , which each one will have to do different patern. I want 3 Axis for each tool (X,Y,Z) thats why i want to use 1 Arduino for each tool. Also i want to use only one serial port to sent the files to the Arduinos. The cnc machine it to make everytime 4 different patern in one moterial but in other coordinates of it.