5 Take XSoft-CoDeSys-2 into operation
5.8 Acyclic data communication
38
SmartWire-DT Gateway EU5C-SWD-DP
01/13 MN120001Z-EN
www.eaton.eu
5.8 Acyclic data communication
SWD modules such as the PKE-SWD-32 module for the electronic motor-
protective circuit-breaker also supply acyclical data in addition to the cyclical
data. Function blocks from the xSysNetDPMV1.lib library are used with
XC100/200 controllers for reading and writing acyclical data. This library was
also installed with XSoft-CoDeSys-2 and is for example to be found in the
library list for XC200:
C:\Program Files (x86)\Common Files\CAA-Targets\Eaton Automation\V2.3.9
SP3\Lib_XC-201.
The library contains the following blocks for acyclic data communications:
XDPMV1_READ,
XDPMV1_WRITE.
Figure 22:
Prototype for the function block XDPMV1_READ
Figure 23:
Prototype for the function block XDPMV1_WRITE
Important information concerning designations
SWD module data that is read and/or written acyclically will hereafter be
referred to as "DP-V1 objects.". The number and meaning of the available DP-
V1 objects are described in the relevant documentation (e.g. "SmartWire-DT
Modules", MN05006001Z-EN).
The address of a DP-V1 object is defined by the slot number (uiSlot), the
index (uiIndex) and the read/write data length.
The slot number corresponds to the SWD module's address. In other words,
the first module will have slot number 1, the second module will have slot
number 2, etc. Meanwhile, the index is used to define the address for the
DP-V1 object. Just as with the slot, the first object will be assigned number
1, the second object will be assigned number 2, etc. In the case of the
PKE-SWD-32 SmartWire-DT module, DP-V1 object 1 will deliver current I
rel
.
XDPMV1_READ
BOOL
xEnable
uiResponseLen
UINT
UINT
uiDevice
xReady
BOOL
UINT
uiStationAddr
typState
UINT
UINT
uiSlot
uiError
UINT
UINT
uiIndex
UINT
uiLenToRead
DWORD
dwBuffer
XDPMV1_WRITE
BOOL
xEnable
xReady
BOOL
UINT
uiDevice
typState
UINT
UINT
uiStationAddr
uiError
UINT
UINT
uiSlot
UINT
uiIndex
UINT
uiLenToWrite
DWORD
dwBuffer