The need for a good standard program is getting bigger, when writing the same sort of code for just another sort of application. In this case applications for programming a machine control on the Arduino MEGA 2560. By defining it as a “Finite State Machine” and having a toolbox filled with usefull functions, it is possible to make machine controls in an easy way, not worry about specific programming problems and concentrate on the functionality. This site describes all functionality needed for writing a stable machine control, based on a FSM. With the “Arduino Finite state machine”, a machine control can be made easier then to start a sketch from scratch. The basic sketch and VBA Visual studio application are especially strong in defining and handling I/O. Defining I/O is described in the "Declaration part" of the site. When the I/O is defined and loaded into the board, it is already possible to examen the state and control the I/O. It is even possible to trend some signals with the Visual studio bedug app whitout writing a line of code! Writing a FSM is made easy with the already implemented functions as described in "Standard functions".
When searching the Internet for finite state machines, there are many books and publications about this subject. In this case the finite state machine is build for machine controls and especially for simulation purposes or education. The Arduino is not really suitable for heavy applications. It's very attractive for hobby, learning or temporary applications; the Arduino hardware is very cheap, the environment for building the software is stable, easy to learn and the software is very simple to install on windows and apple. The software for the Arduino board is freeware.