beckhoff TE1111 — 4.3 CoE / SoE / AoE

Basic principles 4.3 CoE / SoE / AoE Using the EtherCAT simulation it is possible to route the protocols CoE (Can over EtherCAT), SoE (Sercos over EtherCAT) and AoE (ADS over EtherCAT) further (e.g. to the PLC). In this way data can be read or written from the PLC via these protocols. Routing of CoE and SoE to a PLC The following two steps are required: 1. The EtherCAT simulation device must be notified of the NetId and the port to which the data are to be relayed. This is done via an ADS-Write to the NetID of the Simulation Device, PortNr.: 0xFFFF, IndexGroup: 0xFF01, IndexOffset:1 Example:

Registering the mailbox recipient //AMSNetID of Simulation Device netIdSimu := '5.35.2.224.2.1'; //AMSNetID of PLC Project on Sim. Dev. arrNetId[0]:= 5; arrNetId[1]:= 35; arrNetId[2]:= 2; arrNetId[3]:= 224; arrNetId[4]:= 1; //system ID 1.1 arrNetId[5]:= 1; arrNetId[6]:= 16#53; //Port of PLC runtime (1) arrNetId[7]:= 16#03; //Port of PLC runtime (2) (Port 851 = 16#353) // sent registration to Simulation driver fbAdsWrite(WRITE:= FALSE); fbAdsWrite(NETID:= netIdSimu, PORT:= 16#FFFF, IDXGRP:= 16#FF01, IDXOFFS:= 1, SRCADDR:= ADR(arrNetId) , LEN:= 8, WRITE:= TRUE); TE1111 14 Version: 1.5.3