Programming Example, FP-FNS Block Profinet IO655.8 Programming Example, FP-FNS Block Profinet IOAfter you install the FNS Library, you can start programming.1. Create the Data Unit Types (DUTs) for inputs and outputs.2. Create input and output variables of the type of DUT generated in the previousstep in the global variable list.3. Generate the configuration data table for inputs and outputs by using the functionFNS_InitConfigDataTable (see page 49). Make sure that the size of theFNS_InitConfigDataTable output variable corresponds to the DUT.4. Create pointers of the input, output and ConfigDataTable variables and providethem to the FNS_ProfinetIO function block together with the correspondingvariables.Data Unit Types (DUTs)In the following picture you can see all possible data types and how the different variables(16-bit, 32-bit and 64-bit) can be defined.64-bit variables are declared by creating a two-dimensional array, whereas the seconddimension must have a size of four. The first dimension specifies the number of elements ofthis type.The FNS PROFINET IO Device handles the plugging of modules and submodulesautomatically according to the following scheme: A DAP (Device Access Point) is plugged into Slot 0 Modules are added beginning with the DUT Inputs followed by the DUT Outputs Each module occupies a single slot Each entry of a DUT results in one module being added One-dimensional array entries in a DUT result in an equal number of modules beingadded Two-dimensional array entries in a DUT (used for 64-bit variables) result in the samenumber of modules being added as the size of the first dimension of the array.