Creating Process Data; Table 12 Data Structure With Byte And Udint Variables; Table 13 Data Structure With Dummy Variables - Beckhoff CX8110 Manual

Embedded pc with ethercat
Hide thumbs Also See for CX8110:
Table of Contents

Advertisement

Configuration
6.5.3

Creating process data

Up to 512 bytes of input and output data or 256 variables can be exchanged via the EtherCAT slave
interface (X101, X102). The 512 bytes of input and output data cannot be created individually, since 512
variables are required for this.
To avoid an excessive number of links, it makes sense to store data in a data structure. Note that the data
structures used are processed differently on an x86 system and an ARM processor. For example, the ARM
processor always places WORD variables (2 bytes) on an even address and DWORD variables (4 bytes) on
an address that can be divided by 4.
Data structure sample:
    byTest :BYTE;
    udTest:UDINT;
Table 12: Data structure with BYTE and UDINT variables
ARM address
Byte Offset 0
Byte Offset 4
Sum: 8 bytes
You can determine the length of a data structure on both systems using the command SIZEOF. If the length
of the data structure is different, this indicates that the data structure is unsuitable.
You can solve the problem by smarter arrangement of the variables or by using dummy variables.
Table 13: Data structure with dummy variables.
ARM address
Byte Offset 0
Byte Offset 4
Sum: 8 bytes
Create process data as follows:
1. Under Devices in the tree view on the left, right-click on Inputs to create input variables.
38
ARM variable
Byte
UDINT
ARM variable
Byte
UDINT
Version: 1.4
Address x86
Byte Offset 0
Byte Offset 1
Sum 5 bytes
Address x86
Byte Offset 0
Byte Offset 1
Byte Offset 2
Byte Offset 3
Byte Offset 4
Sum 8 bytes
ARM variable
BYTE
UDINT
ARM variable
BYTE
BYTE (Dummy1)
BYTE (Dummy2)
BYTE (Dummy3)
UDINT
CX8110

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx8180

Table of Contents