SW Studio Quick Reference
ST table and diagram
Abbreviations used:
- state transition table = ST table
- state transition diagram = ST diagram
- state machine system diagram = SMS diagram
Operation | In the ST table What to do | In the ST diagram What to do | Remarks |
---|---|---|---|
Open ST diagram | Command - File/Open (CTRL/O) | . Icon: “Project VFSM files” | |
Select state | Move cursor to a state field | Click on the state in the ST diagram. | |
Select transition | Move cursor to a state field or a transition condition field | Click on the transition arrow in the ST diagram. | Double click on the transition arrow opens the ST table, with the cursor in the transition condition field |
Add new state | Commands: - Edit/Insert expression - Edit/Append expression | Click on any point in the STdiagram, It opens the state name dictionary. After defining the state name and OK the state appears on the ST diagram and the ST table opens. Icon: “Insert new state” | |
Delete state | Command - Edit/Delete expression | Select state. Command State/Delete. Delete or Back key. Icon: “Delete state” | A deleted state stays in the State Name Dictionary and may be still used. Ultimate deletion is done in the State Name Dictionary. |
Add new transition | Commands: - Edit/Insert expression - Edit/Append expression | Click the right mouse over the state in the ST diagram and drag the appearing arrow to another state. The ST table opens to specify the state transition condition. The transition is appended after the last existing transition. | Click the right mouse over the state to create a transition to the same state. Details can be filled in later if you prefer. Note order of transitions defines priority. |
Delete transition | Command - Edit/Delete expression | Select transition. Delete or Back key | |
Open ST table | Already open in this mode | Double click on state in the diagram | CTRL/double click on state opens a new ST table window. |
Open next ST transition table | CTRL + double click on state in the diagram | Up to 4 ST tables can be open at the same time | |
Display state information | Entire information is contained in the displayed ST table | Position the cursor over the state name, transition arc, action symbol (E: X: I: ) | |
Move state | Click on the state and drag it to the new position | ||
Scroll ST diagram | Use arrow keys or a mouse scrolling wheel | ||
Scroll ST diagram on the print page | Use SHIFT + arrow keys or SHIFT + a mouse scrolling wheel | Use Print setup to display the page boundaries. | |
Zoom ST diagram | Use + / - keys of the numerical pad or CTRL + mouse scrolling wheel Icon: “Zoom to all states” | to fit the window size | |
Default size of the ST diagram | SPACE |
SMS diagram
Operation | In the SMS diagram What to do | Remarks |
---|---|---|
Open SMS diagram | . Icon: “Show/Hide SMS diagram” | The icon is visible only for a selected Project window |
Open Properties window of a state machine or unit | Double click on the state machine or unit in the SMS diagram. | |
Open ST diagram | SHIFT + double click on the state machine in the diagram. | |
Move state machine | Select the state machine by a click on it and drag it to the new position. Icon: “Snap to grid” | View → SMS diagram → Grid settings - if selected the new position is on a grid. |
Display state machine information | Position the cursor over the state machine. | |
Display command | Position the cursor over the arrow entering the state machine on top. | This is a command sent from a Master to a Slave state machine. |
Display state | Position the cursor over the arrow entering the state machine on bottom. | This is a state of a Slave state machine. |
Select a link | Click on the link | The color of the link changes to red. |
Display all state machine links | Select the state machine by a click on it | The color of all links reaching the state machine changes to red. |
Scroll SMS diagram | Use arrow keys or a mouse scrolling wheel. | |
Scroll SMS diagram on the print page | Use SHIFT + arrow keys. | Use Print setup to display the page boundaries. |
Zoom SMS diagram | SPACE - Use + / - keys of the numerical pad or CTRL + mouse scrolling wheel | to return to default size and position |