Hello Plcnovel;
I know of no automatic conversion from SFC to Ladder code, maybe someone else here has more information on such products.
Here is how we do it by hand (for example, when we use SFC as a design tool, and force ous students to do things the hard way...)
You will need 3 functions, or files or sections of Ladder (depends on the platform you will program) to implement the conversion of the Steps/Transition diagram:
1) the first will detail the combination of Transitions that will make a Step active and inactive (a Step becomes active (latched) when the preceding Step is active,and the preceding Transiion becomes true; it becomes inactive (unlatched) when the following Transition becomes true)
2) the second will detail the conditions that will make each Transition true
3) the third will will detail which actions are taken by the system when a Step is active(bits Set/Reset, values moved, subroutines called...)
I am looking for English documents on SFC to ladder conversions for you; all I have with me now are in Fraench. I will post them as soon as I find them.
Hope this helps,
Daniel Chartier