If the task is to connect both spindles at the same time and switch them during operation (for example, by referencing their tool number), it is necessary to organize a more complex PLC procedure, which will be checking the number of the tool, the value of the global variable or input controller and by this condition would include only one of the spindles.