title: Do you order sequence logic by what step you are in, or what step you are transitioning to?
body: <p>After some internal discussions on this subject I was looking for some other opinions on this. For a simple sequence, using some standard ladder logic, you can have your sequence step bit at the start of a rung and have the rungs go down the page in order. You can have the transitions (usually move the step number you want to go to into an integer) at the end of the rung and they can also be in order. The problem comes when you have a non trivial sequence that does not flow through sequentially.</p>
  
  <p>Do you organize your logic so the bits on the left (what step you are in) are in order, or do your organize it so your moves on the right (your transitions) are in order. When you have a transition to multiple steps, do you have multiple moves from one step bit, or do you have multiple bits triggering one move?</p>
  
  <p>an example:</p>
  
  <p>what you are after</p>
  
  <pre><code>in 6 and X go to step 10
  in 7 and Y go to step 10
  in 21 and Z go to step 10
  </code></pre>
  
  <p>ordered by what step you are in</p>
  
  <pre><code>XIC(step.6) and X mov 10
  XIC(step.7) and Y mov 10
  XIC(step.8)... 
  ...
  XIC(step.21)and Z mov 10
  </code></pre>
  
  <p>ordered by transition</p>
  
  <pre><code>... mov 9
  XIC(step.6)and X,XIC(step.7) and Y),XIC(step.21) and Z mov 10
  ...mov 11
  </code></pre>