Clear Filters
Clear Filters

MPC block in simulink is gives max frequency to stepper motor after setpoint is reached

8 views (last 30 days)
Hi
My MPC block in simulink is giving maximum frequncy which PWM module of PLC can provide, after encoder count which is my setpoint is set to 60000 is reached. I am not able to understand what parameters should i look at to resolve the issue.

Answers (1)

Pratyush
Pratyush on 8 Jul 2024 at 8:55
Hi Anshul,
To resolve the issue with your MPC block in Simulink, consider the following key parameters and steps:
  • Sampling Time: Ensure it's appropriate for your system's dynamics.
  • Setpoint Configuration: Verify the setpoint (60000 encoder counts) is correctly set.
  • Control & Prediction Horizons: Adjust these to improve performance.
  • Constraints: Check constraints on control inputs and outputs.
  • Model Accuracy: Validate the accuracy of the plant model.
  • Tuning Parameters: Review and tune weights on control inputs and outputs.
  • PWM Module Configuration: Ensure it can handle the frequency and duty cycle.
  • Encoder Feedback: Confirm the accuracy and scaling of the encoder feedback.
  • Simulation Settings: Verify simulation time and solver settings.
  • Debugging & Logging: Use these tools to monitor signals and system response.
Hope this helps.

Tags

Products


Release

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!