VFSM: Cmd

VFSM type: Cmd(user vfsm)
CMD_EXAMPLE This example is to show the use of Clear action of CMD object. By the way it shows also the use of the XDA object to produce acknowledgement signals. The Do object is used here to represent an action: of course set once on it stays for ever on.

Prefix: CMD

IOid name: MyCmd (type: CMD-IN)
-->Virtual Input: Cmd_Repeat (2)
-->Virtual Input: Cmd_Try (1)
-->Virtual Output: MyCmd_Clear (0)

IOid name: Do (type: DO)
-->Virtual Output: SomeAction (High)
-->Virtual Output: SomeAction_Clear (Low)

IOid name: Xda (type: XDA)
-->Virtual Input: Result_Failure (2)
-->Virtual Input: Result_Success (1)
-->Virtual Output: Result_Clear (0)

State transition table, state ' Init ':
Init
EntryAction:
Result_Clear
ExitAction:
Try
Cmd_Try

State transition table, state ' Try ':
Try
EntryAction:
SomeAction
MyCmd_Clear
ExitAction:
SomeAction_Clear
Init
Result_Failure
Continue
Result_Success

State transition table, state ' Continue ':
This state is only to repeat the exercise.

Continue
EntryAction:
ExitAction:
Init
Cmd_Repeat
Total number of states: 3