Hi Consys
This is a tricky one - I've not used a 505 PID for some time, never mind with R/S and clamping etc, so I'm scratching my head to recall this. (I suspect my near namesake Ken Moore will be along any minute to correct any mistakes or expand my explanation so hang on in here. He's always worth reading on TI kit.)
I seem to recall that the Clamp Setpoint Limit only applied if you had specified an address for a Remote SP. I don't know how Workshop s/w displays this configuration, but in Tisoft the Clamp SP was right next to the point where you entered the Remote SP address. That way they were both well away from the point where you specify a R/S Table and confusion was less likely. Anyway, the Clamp would only apply if you had set, say, V200. to act as the remote setpoint. Here the loop would check the value present in V200. before copying it in to the internal LSPxx variable in order to execute the loop. That's what gave it the opportunity to reject out of range values. However a Ramp-Soak Table writes directly to the LSPxx variable on the assumption that as it is a programmed function it should be correctly controlled. Exactly how are you applying a new out-of-limit Setpoint if the loop is controlled by a Ramp-Soak, and also why? I'm assuming you're writing directly to the LSPxxx ?
If your SP adjustment is made after the end of the Ramp-Soak profile, and you now want to restrict changes to the SP, then checking the values in an SFPGM is the correct way.
The only mechanism that would permit use of the Clamp Setpoint limits is to program an address for the Remote SP. Start up the loop in automatic so it operates on the Ramp-Soak as normal, but then, at the end of the Ramp-Soak, switch the loop to cascade mode so it now reads the SP from the Remote SP variable. Now the SP Clamping should be done.
When you need to go back to Ramp-Soak, put the loop back in automatic and retrigger the Ramp-Soak profile.
Ultimately you either need to write the code you've already got, or to write code to change the loop mode at the right stage of the process. Either way the job gets done - the choice is yours.
Good luck and regards
Ken