Without seeing the program itself and having more data, we really don't know enough to do more than throw WAGs at those queries.
I suggest you post a PDF of the entire program including data declarations/definitions.
Also, it would be helpful to understand more about the process e.g.:
- the 71 is a pressure (PSI) and that applies to the SP and PV, and
- the output signal seems to be going to a physical control valve.
But what is the actual process? E.g.
- Describe the process - what is happening, what do you want to happen?
- Is the valve opened or closed at 0V (= 100% PID CV)?
- Is the valve closed or opened at -10V (=1 10% PID CV)?
- From a steady-state, to increase the PV, should the voltage signal move toward -10V or toward 0V?
- Is the pump adding to or removing from the fluid in the volume where the pressure is being measured?
- Is it a liquid or a gas or a vapor?
- The word "Press" has shown up so perhaps it is air or hydraulic fluid?
- Is the pump running at a constant speed?
- Can you provide printouts or screenshots of the Process_Control_Press_PID structure at various conditions, especially the dozen-plus .DATA attributes of that structure?
- When the valve signal goes to 0V, what are the values of all the Tags in the image in post #25 of this thread?
Hello! Thank you for the awesome attention, this young buck is certainly learning
1. The process is as follow:
User selects the required tonnage as SP (71), PLC commands the hydraulic fluid pump to turn on, at the same time , the PLC commands the proportional valve to open, the hydraulic fluid will travel to the press increasing the pressure requires to press down on the material. The PLC will detect that the SP (in tonnage) has been achieved and will start a dwell timer , when the timer ends the PLC will stop the process and raise the press so the user can remove the product. As it sits, for the highest SP (71 tons), the PID loops never gets the PV there.
2. The proportional valve is close at 0V (100% CV)
3. The proportional valve is open at -10 Volts (0% CV), although the maximum voltage that I've seen is -2.0 volts (80% CV) when the valve open and the PID slowly closes the valve as PV approaches SP.
4. From a steady-state, to increase the PV, the voltage signal starts at 80% CV ( -2 Volts) and steadily moves toward 0 Volts (100% CV).
5. The pump is adding hot hydraulic fluids into the top of the press, driving it down.
6. It is using hydraulic fluid
7. Hmmm I am not certain what speed the pump run at, the code does not take into account the pump's speed, but I could be wrong, thanx for the tip, will check.
8. I will grab all screen shot!
My test today : created a new PID loop and tune from scratch, I and D at 0 and work with P until is osciilates, then halve P and move onto I.
My end result was a P: 2.5 , I : .05, D :.01
This got my PV to hit 70.5 ton! three times, but on subsequent tries with same parameters it went back to hovering at 68...