Process data

The user is able to configure the process data that should be transmitted via PROFINET on his own.
Several module types like byte, word, dword or real variables with different lengths are available. Via GDSML file it is also possible  to create modules and to use sub modules beneath them.

To create modules click at the tree on the API (Application Process Identifier) and insert the desired modules.

Process data 1:

The GDSML file with miscellaneous  PROFINET modules will be opened. TwinCAT uses the GDSML file that is located in the folder TwinCAT\IO\PROFINET.

Process data 2:

Using variables with a size of 2 bytes, it is possible to swap the higher valued byte and the lower valued byte within the word (Swap LOBYTE and HIBYTE).
Using variables with a size of 4 bytes, it is additional possible  to swap the lower valued  word and the higher valued word (Swap LOBWORD and HIWORD).

Process data 3:

For bigger data arrays (e.g. 10 word input data) it is also possible to swap all words of this module. So it is not necessary to handle each variable for its own.

Process data 4:

Linking data without using the PLC

You can use the CX8093 without PLC functionality to link data from PROFINET to K-Bus or E-Bus. In this case you use the CX8093 as a configured bus coupler. Pay attention that always one task triggers the PROFINET and the K-Bus or E-Bus cycle at minimum. Without task the according interfaces are not executed.

If you want to link bits to a word, for example, activate the options Exclude other Devices and Continuous (Mapping).

Process data 5:

Process data 6:

Note or pointer

Doing this you should always link from the bigger to the smaller data type. For example link a word to 16 Bit. Avoid to link bits to a byte or a word. For example if you link 8 bit to a word, afterwards you won't be able to retrace witch bits of the word are linked to the 8 bit.