Derek McFarland
Member
Hello Ron,
Thanks for your interest! Answers to your questions:
(a) Yes the program works to the customers satisfaction, but not mine on the 5/30.
(b) No the program does not work to the customers satisfaction on the 5/40.
(c) No the 5/30 will stay until the customer replaces with Modicon shortly.
The PIDs use PD control block, independent equation and the gains are P10, I0.1 and D0.
There is alot of STX. This PLC controls 4 similar areas. Each area has about ten common STXs; most just average signals, etc but three for each area are quite invloved. FOR-NEXTs and IF-THEN-ELSES nested deep.
The eight PIDs that the customer noticed changes on were for temperature control. Four others that control ventilation had no complaints.
The PIDs are triggered every eight seconds, I was mistaken in post 4. The triggers are consistent. The configured time constants are either 1 or 4 seconds.
When the process is started or taken out of a hold state the SP is set to PV. STX logic ramps the SP to the target over ten minutes while the PID is in auto.
I do not fel comfortable posting the code as the original author might see it and be offended. I will email it.
The system is working to the customers satisfaction. The 5/30 had had 420 words of free memory when I found it. When adding logic to control a VFD, the 5/30 became full. I swapped in a 5/40 and experiencced the problems. Examined 5/30 and found unused data files that I deleted to make room for new logic. System now works like it used to on 5/30 with new logic.
I believe the problems were due to PIDs running in a strange state. The change from 5/30 series C to 5/40 series E merely brought out the fact that the PIDs are non-standard to put it nicely. I could have just re-tuned the PIDs, but felt that I should not have had to because I was adding very little logic to the system. The last and max scan times between the systems changed very little; last ~ 40, max ~ 100 ms.
I will not have a chance to do further testing.
Thanks for your interest! Answers to your questions:
(a) Yes the program works to the customers satisfaction, but not mine on the 5/30.
(b) No the program does not work to the customers satisfaction on the 5/40.
(c) No the 5/30 will stay until the customer replaces with Modicon shortly.
The PIDs use PD control block, independent equation and the gains are P10, I0.1 and D0.
There is alot of STX. This PLC controls 4 similar areas. Each area has about ten common STXs; most just average signals, etc but three for each area are quite invloved. FOR-NEXTs and IF-THEN-ELSES nested deep.
The eight PIDs that the customer noticed changes on were for temperature control. Four others that control ventilation had no complaints.
The PIDs are triggered every eight seconds, I was mistaken in post 4. The triggers are consistent. The configured time constants are either 1 or 4 seconds.
When the process is started or taken out of a hold state the SP is set to PV. STX logic ramps the SP to the target over ten minutes while the PID is in auto.
I do not fel comfortable posting the code as the original author might see it and be offended. I will email it.
The system is working to the customers satisfaction. The 5/30 had had 420 words of free memory when I found it. When adding logic to control a VFD, the 5/30 became full. I swapped in a 5/40 and experiencced the problems. Examined 5/30 and found unused data files that I deleted to make room for new logic. System now works like it used to on 5/30 with new logic.
I believe the problems were due to PIDs running in a strange state. The change from 5/30 series C to 5/40 series E merely brought out the fact that the PIDs are non-standard to put it nicely. I could have just re-tuned the PIDs, but felt that I should not have had to because I was adding very little logic to the system. The last and max scan times between the systems changed very little; last ~ 40, max ~ 100 ms.
I will not have a chance to do further testing.