drbitboy
Lifetime Supporting Member
@parky has it, of course.
If you like to play code golf:
1) if we move the Y0-toY1 transition rung to after the Y1-to-Y2 transition rung, then I am pretty sure we can drop the M0 Reset instruction from the former; only the Y2-to-Y0 transition rung needs that Reset of M0.
2) the M0 tests on the last two rungs can be simple [Normally Open] instructions instead of pulse/rising-edge instructions.
If you like to play code golf:
1) if we move the Y0-toY1 transition rung to after the Y1-to-Y2 transition rung, then I am pretty sure we can drop the M0 Reset instruction from the former; only the Y2-to-Y0 transition rung needs that Reset of M0.
2) the M0 tests on the last two rungs can be simple [Normally Open] instructions instead of pulse/rising-edge instructions.