Configuration
EK3100
49
Version: 1.5
5.4
Accessing COE data with DPV1 services
DPV1 MSAC-C1-READ and DPV1 MSAC-C1-WRITE can be used for read and write access to all COE data.
The COE data must allow READ and WRITE access.
The access is always via two DPV1 telegrams. The first is always a DPV1 WRITE telegram. The second is a
DPV1 READ telegram. The DPV1 WRITE telegram determines which COE data are read or written.
Behavior when the Bus Coupler is restarted
Please note that the COE data, which are changed by your controller, have to be re-sent to the ter-
minal when the EK3100 Bus Coupler is restarted.
•
Reading data:
During reading a DPV1 WRITE telegram is send to the Bus Coupler. It notifies the Bus
Coupler which data are to be read. The second DPV1 READ telegram is then used to fetch the data.
•
Writing data:
During writing, the data are transferred with the CoE parameters, and the
acknowledgement of the COE write access is transferred with the DPV1 READ telegram. This consists
of 4 bytes. If these are zero, the data were written without error. If they are not zero, an error has
occurred.
The error corresponds to an ADS error code. The meaning of the ADS error codes can be found in the
TwinCAT documentation (see:
5.4.1
Activating the DPV1 service
DPV1 MSAC-C1-READ and DPV1 MSAC-C1-WRITE can be used for read and write access to all COE data.
The COE data must allow READ and WRITE access.
For read and write access to COE data, the DPV1 service must be active on the EK3100 Bus Coupler in the
parameter data for the EK3100 Bus Coupler. In TwinCAT you can control whether the DPV1 service is
active, or you can activate the DPV1 service.
Requirements:
• The Bus Coupler was added in TwinCAT together with the corresponding GSD file.
Activate the DPV1 service as follows:
1. In the tree view on the left, double-click on
Box 1 (GSD box) (EK3100)
.
2. Click on the tab
PrmData (Text)
.
3. Double-click on the option
DPV1 services (class 1)
to activate the service.