I'm trying to get a handle on how to discern the "appropriate" times and situations to implement SFC, FB, and STX over ladder logic.
I've read through the respective portions of the L5K programming manual, and read some old posts on the forum. However I can't seem to shake the notion that whatever can be done in SFC or otherwise can also be done in ladder. Here is my general understanding of things, and maybe someone can help connect the dots.
From my understanding SFC is really only applicable when you have some type of sequential process or state machine. Or should SFC be considered for other processes? I still feel like even in a sequential process, I can accomplish the same in ladder logic, but just not have the ability to be looking at a visual representation of the execution path from a "bird's eye" view.
If the SFCs can be used for sequential processes, how is that different than using the Phase Manager to manage them?
To me, I'm not sure where else I would use STX other than to compliment steps in an SFC, or perhaps to run some complex number crunching or algorithim, as opposed to using a CPT instruction.
I can understand a bit more where Function Blocks may fit into a program. Rather than paste similar rungs to operate a VFD or other device, and scatter them around my ladder logic, I can have all the associated devices for a given portion of my program stored on multiple sheets, thereby organizing the program more effectively.
Are there any instances in which the efficiency of the program (scan time, execution) will increase through the use of SFC or other over ladder logic?
Thanks.
I've read through the respective portions of the L5K programming manual, and read some old posts on the forum. However I can't seem to shake the notion that whatever can be done in SFC or otherwise can also be done in ladder. Here is my general understanding of things, and maybe someone can help connect the dots.
From my understanding SFC is really only applicable when you have some type of sequential process or state machine. Or should SFC be considered for other processes? I still feel like even in a sequential process, I can accomplish the same in ladder logic, but just not have the ability to be looking at a visual representation of the execution path from a "bird's eye" view.
If the SFCs can be used for sequential processes, how is that different than using the Phase Manager to manage them?
To me, I'm not sure where else I would use STX other than to compliment steps in an SFC, or perhaps to run some complex number crunching or algorithim, as opposed to using a CPT instruction.
I can understand a bit more where Function Blocks may fit into a program. Rather than paste similar rungs to operate a VFD or other device, and scatter them around my ladder logic, I can have all the associated devices for a given portion of my program stored on multiple sheets, thereby organizing the program more effectively.
Are there any instances in which the efficiency of the program (scan time, execution) will increase through the use of SFC or other over ladder logic?
Thanks.
Last edited: