Search the Community

Showing results for tags 'simulink'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 2 results

  1. Hi I have already posted this question in Matlab questions, but have yet to have an answer. I am having issues attaching images here, but this link contains the PID tuning window in Simulink and the relevant section of the PLC manual - https://uk.mathworks.com/matlabcentral/answers/1620110-using-pid-block-values-in-mitsubishi-plc I am using a FX3GE-24MT PLC and GX works 2. After modelling the system in Simulink I obtained these PID parameters Proportional = 2.5 Integral = 0.0058 Derivative = 0.1 Filter = 70 Sample Time = 0.1 Does anyone have experience of transferring these values from Matlab/Simulink to the PLC code? My main issues are that the PLC code wants two values for derivative (time and gain) but I am only given one value, and also that the PID registers will only accept INT datatype, but the integral time is (x100ms) with my required value appearing to be 58 ms (I think??). Basically, does anyone know what I should use as my values for KP, TI, KD and TD from my Simulink output?  
  2. Hi, I am looking at options for integrating MATLAB/Simulink with Q-series PLC (Q04UDE) for hardware-in-the-loop simulations. I would like to have a Simulink model send speed/torque setpoints to the PLC and have measured values feedback from the PLC to the model. I know this can be done via OPC but I think the update rate may too slow for our purposes (I would ideally like to have <100ms update rate). Also, I saw Simulink have a toolbox for converting their models to PLC code, but they don't seem to support Mitsubishi PLCs. Anyone have any ideas on how this can be done? Thanks, Darren