Common questions about Beckhoff TwinCAT (Switch Case statement will automatically jump to the next statement?

In C#, there must be a break after each case, so the output is 1. That is, if a=0, only the case=0 segment will be executed, and it will not continue after equal to 1.












In TwinCAT, although the CASE statement does not have a break, it does not actually loop

through the judgment in a loop. After JOB=1, it does not continue to equal 2










If the statement where TEST is changed to FALSE is canceled, it will definitely cause a cyclic change.