Automatic Insertion of Comment Lines
You can also add the comment lines automatically at a later time.
- Open the state machine in the state machine editor.
In the Tools menu, select Create State Code Comments.
In each condition and action specified in the state diagram, a comment with the text of the first code line is added as first line.