Integrate a SFC in a Ladder Program
I wonder if there is any way to integrate or run a SFC in a program made in ladder.
Specifically, I am developing a program for the control of a furnace, through both physical buttons and a Operator screen , and the main control logic I use is Ladder (easier)
What I would like is to enable / disable a SFC diagram (that controls some parts of the process) through the ladder program
I attached a picture of what I want done in codesys ( a block that enables an SFC program called PRG_AUTO)
thanks in advance
Voted best answer
Assuming AC800M ......
You can read/write SequenceName.Disable where SequenceName is the name of the sequence in the bottom code page tab.
You can also access other sequence and step variables in the same way to monitor which steps are active and how long the sequence or step has been running.
Edit: While the AC800M Ladder programming environment is OK, its pretty basic. There are lots of things you cant do very neatly, documenting and commenting is not brilliant and all round its not nearly as good as say the Allen Bradley LD editor. This might be a good opportunity to try programming in FBD as you may be much happier with the final result.
Looking in your print-screen, it seems to be CoDeSys language.
For SFC program, you can create SFC Flag SFCPause of type bool. Then, when you set this flag = TRUE, SFC program will pause (freeze at current step), until SFCPause flag is true. You have to make this flag Global, and can manipulate it from other programs (e.g. ladder).
See SFC Flags in help fail for more information
Here is simple example