ethercat soes slave demo - k60 tower with ixxat ethercat...

8
EtherCAT SOES slave demo K60 Tower with IXXAT EtherCAT board Sođware example

Upload: others

Post on 21-Mar-2020

4 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: EtherCAT SOES slave demo - K60 Tower with IXXAT EtherCAT boarddownload.rt-labs.com/slavedemo/soes_howto.pdf · File Edit Source Refactor Navigate Search Project Explorer SlaveDemo

EtherCAT SOES slave demoK60 Tower with IXXAT EtherCAT board

So ware example

Page 2: EtherCAT SOES slave demo - K60 Tower with IXXAT EtherCAT boarddownload.rt-labs.com/slavedemo/soes_howto.pdf · File Edit Source Refactor Navigate Search Project Explorer SlaveDemo

Download the so ware project

I Goto http://ethercat.rt-labs.com/downloadI Choose a project suitable to your hardwareI For example SlaveDemo_TWRK60F512.zipI For this example project we are using Kine s Design Studio which

can be downloaded from http://www.freescale.com

Page 3: EtherCAT SOES slave demo - K60 Tower with IXXAT EtherCAT boarddownload.rt-labs.com/slavedemo/soes_howto.pdf · File Edit Source Refactor Navigate Search Project Explorer SlaveDemo

Start KDS and import the project

Page 4: EtherCAT SOES slave demo - K60 Tower with IXXAT EtherCAT boarddownload.rt-labs.com/slavedemo/soes_howto.pdf · File Edit Source Refactor Navigate Search Project Explorer SlaveDemo

Project files

The project structure contains boththe slave source code, hardwarefunc ons as well as the EEPROMand ESI file belonging to the slave.

Page 5: EtherCAT SOES slave demo - K60 Tower with IXXAT EtherCAT boarddownload.rt-labs.com/slavedemo/soes_howto.pdf · File Edit Source Refactor Navigate Search Project Explorer SlaveDemo

Build the so ware

The project does already contain aprebuild ELF file, but it can berebuilt the following way.

Page 6: EtherCAT SOES slave demo - K60 Tower with IXXAT EtherCAT boarddownload.rt-labs.com/slavedemo/soes_howto.pdf · File Edit Source Refactor Navigate Search Project Explorer SlaveDemo

Download the so ware to the target (1/2)

In this example we are using a J-linkdebugger but any suitabledebugger will do.

Page 7: EtherCAT SOES slave demo - K60 Tower with IXXAT EtherCAT boarddownload.rt-labs.com/slavedemo/soes_howto.pdf · File Edit Source Refactor Navigate Search Project Explorer SlaveDemo

Download the so ware to the target (2/2)

Page 8: EtherCAT SOES slave demo - K60 Tower with IXXAT EtherCAT boarddownload.rt-labs.com/slavedemo/soes_howto.pdf · File Edit Source Refactor Navigate Search Project Explorer SlaveDemo

Write the EEPROM to the slave and you're up andrunning!

I Use for example TwinCAT 2I https://www.beckhoff.com/tcatweb/