Write CoE parameters

1. Send a "Write Request" with the content specified below
The ER9320-0022 sends a "Write Response"
2. Wait 250 to 500 ms
3. Send a "Read Request" with the content specified below
The ER9320-0022 sends a "Read Response". The "Read Response" contains the information as to whether the write process was successful.

Wireshark® example for writing: Download

Write Request

PROFINET record data

Value

Meaning

Slot

Position of the EtherCAT device (1...255)

Slot number, position of the EtherCAT device

SubSlot

1

Sub slot number, always "1"

Index

0x200F

PROFINET index number

Length

4

Length of the following data

Data

  • Bytes 1…2: CoE index
  • Byte 3: CoE subindex
  • Byte 4: "1", constant
  • Bytes 5…8: length as DWORD
  • Bytes 9…x: CoE data value

CoE data

Read Request

PROFINET record data

Value

Meaning

Slot

Position of the EtherCAT device (1...255)

Slot number, position of the EtherCAT device

SubSlot

1

Sub slot number, always "1"

Index

0x200F

PROFINET index number

Length

0

Length of the following data

Data

-

CoE data

Read Response

PROFINET record data

Value

Meaning

Slot

Position of the EtherCAT device (1...255)

Slot number, position of the EtherCAT device

SubSlot

1

Sub slot number, always "1"

Index

0x200F

PROFINET index number

Length

4

Length of the following data

Data

ADS return code

CoE data

The ADS return code is "0" if the response is error-free. A list of ADS return codes can be found in the "ADS basics" manual: https://infosys.beckhoff.com/content/1033/tc3_ads_intro/index.html

 

Write CoE parameters 1:

Start-up parameters overwrite CoE data

CoE data are typically not stored in the EtherCAT device. Make sure that the CoE data are overwritten again by the Start-up parameters (GSDML) when starting the ER9320-0022.