PLC code generation based on a formal specification language
timed automata : semantics , algorithms and tools .