He didn't viloate his programming in T2. He stated he can't self terminate
That was always a bit of a weird contrivance in order to force Sarah to press the button just so we could have that prolonged emotional send-off.
I mean how is stepping onto the chain that he knows is taking him down to the molten steel any less suicidal than pushing the button, lol.