Sadly, Rockwell did not include the magnificent SCP instruction for CompactLogix, and the similar SCL instruction is available only as Function Block, not ladder.
However, they obviously realised their gaffe and made SCP available as an add on instruction, which you can import from the attached file.
This saves you messing about with the CPT instruction.
Thanks for this Ian
I will try this tomorrow at work.