Example Of state-machine-control
Please open console to see the transition log
start
read
stop
reset
arg
goto
sleep
none
START
END