Control a valve with the output of a motor

Good Evening, how could I control the valve with the signal from a motor that comes out of a vdf.

In short, when the engine is activated, the valves open and when the engine turns off, the valves close, the motor is 60A and 440v.

Simple, use a PID controller.

Connect VFD output to PID controller input. PID controller output to control valve.

Set your required parameters in the PID like setpoint.

Here you can use an existing PLC or DCS systems or a single PID controller hardware unit.