For closed-loop control of the motor speed, this technology object replaces the "MOTOR_SPEEDCONTROL" [FC10] block. This will be carried out as an expansion of the "031-500_Analog_Values_S7-1200" project. This project must be retrieved from the archive beforehand. The call-up of the "MOTOR_SPEEDCONTROL" [FC10] function must be deleted in the "Main" [OB1] organization block before the technology object can be called and connected in a cyclic interrupt OB. The PID_Compact technology object must then be configured and commissioned. PID_Compact closed-loop control block The PID_Compact technology object provides a PID controller with integrated tuning for proportional-action final controlling elements. The following operating modes are possible: Inactive Pretuning Fine tuning Automatic mode Manual mode Substitute output with error monitoring Here, the connection, parameter assignment and commissioning of this controller will be for automatic mode During commissioning we will use the integrated tuning algorithms and record the control response of the controlled system. The PID_Compact technology object is always called from a cyclic interrupt OB whose fixed set cycle time is 50 ms here. The speed setpoint is set as a constant at the "Setpoint" input of the PID_Compact technology object in revolutions per minute (range: +/- 50 rpm). The data type is 32-bit floating-point number (Real). The actual value -B8 (sensor actual value speed of the motor +/-10V corresponds to +/- 50 rpm) will be entered at the "Input_PER" input. The output of the controller "Output_PER" will then be connected directly with signal -U1 (manipulated speed of the motor in 2 directions +/- 10V corresponds to +/- 50 rpm). The controller will only be active as long as output Q3 (conveyor -M1 variable speed) is set. If this is not set, the controller will be deactivated by connection of the "Reset" input. Technology diagram Here you see the technology diagram for the task. Figure 1: Technology diagram Figure 2: Control
For closed-loop control of the motor speed, this technology object replaces the "MOTOR_SPEEDCONTROL" [FC10] block. This will be carried out as an expansion of the "031-500_Analog_Values_S7-1200" project. This project must be retrieved from the archive beforehand. The call-up of the "MOTOR_SPEEDCONTROL" [FC10] function must be deleted in the "Main" [OB1] organization block before the technology object can be called and connected in a cyclic interrupt OB. The PID_Compact technology object must then be configured and commissioned. PID_Compact closed-loop control block The PID_Compact technology object provides a PID controller with integrated tuning for proportional-action final controlling elements. The following operating modes are possible: Inactive Pretuning Fine tuning Automatic mode Manual mode Substitute output with error monitoring Here, the connection, parameter assignment and commissioning of this controller will be for automatic mode During commissioning we will use the integrated tuning algorithms and record the control response of the controlled system. The PID_Compact technology object is always called from a cyclic interrupt OB whose fixed set cycle time is 50 ms here. The speed setpoint is set as a constant at the "Setpoint" input of the PID_Compact technology object in revolutions per minute (range: +/- 50 rpm). The data type is 32-bit floating-point number (Real). The actual value -B8 (sensor actual value speed of the motor +/-10V corresponds to +/- 50 rpm) will be entered at the "Input_PER" input. The output of the controller "Output_PER" will then be connected directly with signal -U1 (manipulated speed of the motor in 2 directions +/- 10V corresponds to +/- 50 rpm). The controller will only be active as long as output Q3 (conveyor -M1 variable speed) is set. If this is not set, the controller will be deactivated by connection of the "Reset" input. Technology diagram Here you see the technology diagram for the task. Figure 1: Technology diagram Figure 2: Control
SCE_EN_051-300%20PID%20Control%20S7-1200_R1709.docx