'Turning' process data
The process data are transferred in Intel format as standard. If the data is required in Motorola format, the data must be rotated accordingly. This step illustrates how to 'turn' the data in TwinCAT.
'Turn' the process data as follows:
- 1. Click the process data you want to rotate on the right in the tree view.
- 2. Click on the Flags tab
- 3. Click on the required option. For WORD variables, only LOBYTE and HIBYTE can be swapped. With DWORD process data you can additionally swap the WORD
- In this way you can 'turn' process data. Use the following example to see how the data change for the individual options. Example for DWORD.
Controller data | Data received by the device | |||
---|---|---|---|---|
Original data | No option selected | Swap Byte (blue) | Swap Word (green) | Swap both (blue and green) |
0x01020304 | 0x01020304 | 0x02010403 | 0x03040102 | 0x04030201 |