I love your dedication to the answer!
Yes, you're spot on, I had a blank and wrote things backward. Test 1 is always going to be the slowest, and then Tests 2 and 3 will determine the answer to our question. If Test 2 takes longer than test 3, my theory is right. If test 2 and test 3 are identical, your theory is right.
Your results show test 2 and test 3 execute in the same time, so it would appear that you're absolutely correct, and on the Logix 500 platform, a branch will ignore any further branch logic once it encounters a false instruction, skipping straight to the next NXB or the output instructions. I've learned something!
I have a 5370 Compact Logix on the bench, so I'll fire that up and run the same tests, and report back!
Yes, you're spot on, I had a blank and wrote things backward. Test 1 is always going to be the slowest, and then Tests 2 and 3 will determine the answer to our question. If Test 2 takes longer than test 3, my theory is right. If test 2 and test 3 are identical, your theory is right.
Your results show test 2 and test 3 execute in the same time, so it would appear that you're absolutely correct, and on the Logix 500 platform, a branch will ignore any further branch logic once it encounters a false instruction, skipping straight to the next NXB or the output instructions. I've learned something!
I have a 5370 Compact Logix on the bench, so I'll fire that up and run the same tests, and report back!