How best to consistently scale the PID SP of the inner loop when it can operate in both cascaded and single loop mode?
Right now, I have an Inner loop1 setup as follows:
PV1 - RTD scaled for PID (0 to 16383) which represents -328 to 1562
SP1 Min = -328
SP1 Max = 1562
CV1 - Scaled in SCP instruction to Analog Output
SP1 is Engineering Units (800 deg F max) from HMI
I use the PV Scaled of the PID for display of the temp on the HMI
I want to add an Outer loop2 for Cascaded control, but of course keep the inner loop operational as is when in non-cascaded mode (vessel empty).
PV2 - Product RTD scaled for PID as above
SP2 Min = -328
SP2 Max = 1562
CV2 - ?
SP2 is Enginnering Units (800 deg F max) from HMI
I use the PV scaled of this PID for display of the product temp
I started to point CV2 at PID loop1's SP but realized I can't do that as the SP in loop 1 is scaled to EU for single loop control, and CV2 is unscaled (0 to 16383). So, if I stick CV2 in its own integer and do a separate SCP to Loop 1's SP what do I scale it to? I thought 0-16383 to 0-800, but is that right? Or should it be 0-16383 to -328 to 1562? It's a little confusing, but if I understand correctly, the SPMin and SPMax actually scales the PV to the SP engineering units, and so I should probably scale it 0-800 which is the normal SPs range as in single loop mode.
Right now, I have an Inner loop1 setup as follows:
PV1 - RTD scaled for PID (0 to 16383) which represents -328 to 1562
SP1 Min = -328
SP1 Max = 1562
CV1 - Scaled in SCP instruction to Analog Output
SP1 is Engineering Units (800 deg F max) from HMI
I use the PV Scaled of the PID for display of the temp on the HMI
I want to add an Outer loop2 for Cascaded control, but of course keep the inner loop operational as is when in non-cascaded mode (vessel empty).
PV2 - Product RTD scaled for PID as above
SP2 Min = -328
SP2 Max = 1562
CV2 - ?
SP2 is Enginnering Units (800 deg F max) from HMI
I use the PV scaled of this PID for display of the product temp
I started to point CV2 at PID loop1's SP but realized I can't do that as the SP in loop 1 is scaled to EU for single loop control, and CV2 is unscaled (0 to 16383). So, if I stick CV2 in its own integer and do a separate SCP to Loop 1's SP what do I scale it to? I thought 0-16383 to 0-800, but is that right? Or should it be 0-16383 to -328 to 1562? It's a little confusing, but if I understand correctly, the SPMin and SPMax actually scales the PV to the SP engineering units, and so I should probably scale it 0-800 which is the normal SPs range as in single loop mode.