4 Step Ladder Instructions 5. Transfer of Step: SET Sn and OUT Sn instructions are used to enable (or transfer to) another step. When the control power is shifted to another step, the status of the previous step S and the action of the output point will be cleared. Due to that there can be many step control sequences (i.e. the step ladder diagram starting with S0 ~ S9) co-existing in the program. The transfer of a step can take place in the same step sequence, or be transferred to different step sequence. Therefore, there are some slight differences regarding how to use SET Sn and OUT Sn. See the explanations below. SET Sn Used for driving the next S10 S step in the same sequence.
After the transition, all output from S12 When SET S12 instruction is executed, S10 will transfer to S12, and S10 and all its outputs (Y10) will be cleared. the previous status will be S cleared. If M1014 is used, and it is S10 On, the transfer of the S steps will be prohibited, If M1040 is On, SET S12 instruction will not be executed, the state of S 10 unchanged, and Y10 will be On. and the states of the steps S12 S Y11 remain unchanged. X1 OUT Sn Used for returning to the initial step in the same step sequence. Also for jumping up/down to non-adjacent steps in the same sequence, or separating steps in different sequences.
After the transition, all output from the previous status will be cleared. Returning to the SFC: Ladder diagram: initial step in the same sequence. OUT S0 S0 S Driving the jumping of step Jumping up/down S21 S Using OUT S24 to non-adjacent S21 X2 X2 S24 steps in the same S23 S sequence. S24 OUT S24 S S25 S Return to initial step Using OUT S0 S25 X7 S0 X7 S25 returns to the initial step S0 by using OUT. RET DVP-PLC Application Manual 4-6 0 Y10 X0 SET S12 SET S12 2 Y11 X1 SET S14 SET S14 0 Y10 X0 SET S12 SET S12 SET S14