You have given very few details of the control, what CNC control etc??
If this is a Koyo PLC you are refering to that has the machine PLC? then you will need the program listing to start with, you would have to get this from the MTB or OEM or retrofitter.
I believe you can obtain the PC software for programming the Koyo from their site.