Execution of IF THEN

t.lundahl
2009-12-18
2009-12-19
  • t.lundahl - 2009-12-18

    How does the execution of an IF THEN works?

    Does the CPU skip everything inside IF END_IF, so if I put heavy code inside does this save execution time?

    /TorbjΓΆrn

     
  • Rolf-Geisler - 2009-12-19

    Yes, it does skip. If you convert ST to IL, you can see this easily. CoDeSys will introduce jump labels.

    Rolf

     

Log in to post a comment.