this changes everything ...
whoa! ...
this looks like a "roll your own" type PID ... specifically, it does NOT look like a "standard" PID instruction is being used here ...
there is absolutely NO WAY that we can advise you on WHAT to put WHERE with this type of arrangement – not without seeing ALL of your program file (the RSP file) ...
and ...
even WITH the RSP file this is likely to take a LOT of digging to see how it's been designed to work ...
worse case scenario:
the roll-your-own "PID" code COULD BE located in a RECURSIVE loop arrangement ... in other words, the same code MIGHT BE used to control more than one process ... in that case, the various settings (gains, etc.) COULD BE passed into – and out of - the "PID" subroutine as parameters ... this type of arrangement is usually (always?) a NIGHTMARE to troubleshoot – mainly because the values won't "stay still" long enough to be monitored on the screen ... that MIGHT NOT be what you've got there – but it sure looks like it from what you've posted so far ...
quick question:
where did you get this "PID" code – and why aren't you using a standard PID instruction? ... frankly those are plenty confusing enough to suit most people – even without trying to design their own personal form of torture ...
suggestion:
strongly consider posting your entire RSP file (you'll have to zip it first – forum rule) ...