use globals in multiple actions in SFC

Anonymous
2013-08-06
2013-08-26
  • Anonymous - 2013-08-06

    Originally created by: mr_sargent

    Typically in ladder logic you would want to have one place where a global is activated/deactivated to avoid any logic complications. But since in SFC you can only have 1 step active at a time (excluding the IEC actions that are SET and continuously running) would it be OK programming practice to reuse these globals in different steps as long as you know they won't conflict with the same variable in the steps above?

    Hopefully I made this question clear.

     
  • shooter - 2013-08-26

    why reuse globals, why not use locals?

    it is bad practice as the references will go crazy.

     

Log in to post a comment.