App types
2 app types are available for a standard project. Depending on the complexity, FB_AppType1 or FB_AppType2 can be used.
The predefined machine modules use both app types. The user decides which app type to use.
FB_AppType1
FB_AppType1 is recommended for complex applications. With this app type, the modes are implemented in separate folders and each state has its own action. The complexity and the amount of input and output data sometimes require the use of mapping_in and mapping_out with this app type. Mapping_in and Mapping_out handle the in-data and out-data of the module.

FB_AppType2
FB_AppType2 is recommended for simple applications. With this app type, each mode has an action in which all states are handled with a normal "case". To further minimize the complexity, the in-data and out-data are processed directly in "PRG_AFW.Main" without Mapping_in and Mapping_out. Basic logical functions of the input and output data are implemented in "PRG_AFW.Main". This complies with the AFW recommendations and results in a lean program.

