An action with the P Pulse qualifier is active only on the first scan when the step goes active. Thus, the assignment statement is evaluated and the assignment made on the first scan through the step actions when the step goes active. After the first scan, the assignment destination retains the assigned value; it is not rewritten for each scan.
'SP':='SFCCTRL:IDLE'; (remember: named sets are case-sensitive).
Alternatively, you can click the Expression Assistant button and use the Expression Assistant to define the Action expression. (You used the Expression Assistant earlier to define the interlock conditions for the motor control module.) Click the Insert Named State button in the Expression Assistant and follow the prompts to define the Action expression.