The PLCopen organization (www.plcopen.org) has defined a 
set of standard function blocks (FB) for safety-related functionality. 
The function block specifications are given as state diagrams. 

This example presented realizes the equivalent function block.

This folder uses the state-chart which was created with the sinelabore.jar 
built-in sc editor.

Edit the diagram with: 

java -jar ../../../bin/codegen.jar -v -E -p ssc -o equivalent_sc.xml equivalent_sc.xml

Set the graphviz path in the codegen.cfg file beforehand.