The Relay with FA/FB/FC is already in use as an emergency off for the cnc control (motors eg.). Therefore I have to use somehow these Optocouplers.

As you have only one possibility to program FA FB FC, you cant use two functions with it. When I program it to switch only with an error, then the pump will run always except an error occurs. The plan was to switch the pump on, when the spindle starts.