31
Technical support / Re: PID control of two contradictory PWM signals
« Last post by support on February 20, 2024, 09:37:00 PM »The PLC can provide the PWM signal using the SETPWM command. That should be the easy part and I don't think you have any trouble with that.
We have no knowledge of how a system you described would work. What device is currently providing the two PWM signals you mentioned to the engine.
If you fixed one PWM signal and vary the second signal you might be able to plot out a curve of speed vs PWM2. You can then increment the PWM1 duty cycle and repeat the above. In the end you may have a series of charts that could give you a better idea of how the engine speed changes with respect to each PWM signal.
Once you get a better idea of how the speed vary with respect to the PWM duty cycle of each signal you may be able to work out an algorithm for controlling the engine.
We have no knowledge of how a system you described would work. What device is currently providing the two PWM signals you mentioned to the engine.
If you fixed one PWM signal and vary the second signal you might be able to plot out a curve of speed vs PWM2. You can then increment the PWM1 duty cycle and repeat the above. In the end you may have a series of charts that could give you a better idea of how the engine speed changes with respect to each PWM signal.
Once you get a better idea of how the speed vary with respect to the PWM duty cycle of each signal you may be able to work out an algorithm for controlling the engine.