Creating process data
The process data to be transmitted via PROFINET can be configured by the user. Various module types such as byte, Word, DWord or real variables are available in different lengths. The GSDML file also provides the ability to create modules and use submodules under them.
- 1. To create modules, right-click on the API (Application Process Identifier) in the System Manager tree and then click on Add New Item.
- 2. The GSDML file with the different PROFINET modules is opened. Add the desired modules. TwinCAT uses the GSDML file, which is located in the TwinCAT\IO\PROFINET folder.
- 3. If 2-byte variables are used, it is possible to swap the low-order and high-order byte of the word (swap LOBYTE and HIBYTE). In the case of 4-byte variables, the low-order word and the high-order word can also be swapped (swap LOWORD and HIWORD).
- 4. For larger data arrays (e.g. 10 words of input data), all words of the module can also be swapped. It is then not necessary to edit each variable individually.