(0)| 1/6/2010 8:39 PM | |
|
Joined: 9/27/2006 Last visit: 1/2/2026 Posts: 12479 Rating:
|
Hello redis; The following information is an extract from the S7-200 System Manual, in the S7-200 Instruction Set chapter, under PID loop instructions. I strongly suggest you keep it close to you when programming the S7-200 PLC, it is the best reference you could have: http://support.automation.siemens.com/WW/view/en/1109582 There is no built-in mode control for S7-200 PID loops. The PID calculation is performed only when power flows to the PID box. Therefore, “automatic” or “auto” mode exists when the PID calculation is performed cyclically. “Manual” mode exists when the PID calculation is not performed.The PID instruction has a power-flow history bit, similar to a counter instruction. The instruction uses this history bit to detect a 0-to-1 power-flow transition. When the power-flow transition is detected, it will cause the instruction to perform a series of actions to provide a bumpless change from manual control to auto control. In order for change to auto mode control to be bumpless, the value of the output as set by the manual control must be supplied as an input to the PID instruction (written to the loop table entry for Mn) before switching to auto control. The PID instruction performs the following actions to values in the loop table to ensure a bumpless change from manual to auto control when a 0-to-1 power-flow transition is detected:- Sets setpoint (SPn) = process variable (PVn)- Sets old process variable (PVn--1) = process variable (PVn)- Sets bias (MX) = output value (Mn) The default state of the PID history bits is “set” and that state is established at startup and on every STOP-to-RUN mode transition of the controller. If power flows to the PID box the first time that it is executed after entering RUN mode, then no power-flow transition is detected and the bumpless mode change actions are not performed. |
| 12/3/2010 6:28 AM | |
|
Joined: 8/31/2010 Last visit: 12/6/2025 Posts: 1525 Rating:
|
There is a Auto_Manual (BOOL) Control Bit available in PID_INIT subroutine. See attachmentFig. 01
In attachment Fig. 02 can you please tell this point (3) in terms of the parameters in the PID0_INIT subroutine call. I am getting the point which you are telling, but not sure how to implement it in the programming. Is it that any additional netowrk should be used to write the value to Mn ? Attachmentshot.zip (258 Downloads) |
|
Like it? Rate it! |
|
Follow us on