Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Bale
Level 4
Level 4
5 solutions authored 25 replies posted 5 questions asked

Hi everybody,
I started my project with etherCat - XMC4300, I followed the instruction file "XMC4300 EtherCAT APP SSC Slave Example Getting Started V4.2".
My device:
- XMC4300 board designed according to the schematic EVB.
- DAVE 4.5.0
- SSC 5.13
- TwinCAT 3

-> I followed to testing step with TwinCat3, but having problem when Scan Boxes, I don't see any devices.
-> I have connected RJ45 cable to my laptop, and I see 2 Leds in Port IN glowing.
-> Please give me suggestions, Thanks !

 

HoiHo_0-1688619713363.png

HoiHo_1-1688619758533.png

 

 

0 Likes
1 Solution
Bale
Level 4
Level 4
5 solutions authored 25 replies posted 5 questions asked

Hi, I solved the problem, due to my omission.
After copying XMC_ESC.xml to TwinCat3 IO. It's OK
Now I can ON/OFF led and Read botton state.

View solution in original post

0 Likes
6 Replies
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

1: Do you have our test kit? 

LinglingG_46_0-1688629509974.png

2:  We can have a successful config depending on the document.

3: Do you mean that the Hardware is designed by yourself? If so, please check that your hardware is Ok first.

And do you use the same PHY devices as the demo kit shows, if no, you should modify the port depending on the PHY devices.

0 Likes
Bale
Level 4
Level 4
5 solutions authored 25 replies posted 5 questions asked

1. I dont have Kit.
Attached is schematic, it's same as XMC4300_Relax_Kit, we design for our application and add EtherCat.

3. Hardware is ok, i have tested with ADC - PWM - IN/OUT Led
-> PHY address of port 0: 0
-> I tried TwinCat on win 11 and 10. and it's the same,
-> When I switch RJ45 between IN and OUT, I see 2 LED work for each port respectively, as shown below

HoiHo_10-1688634201490.png

 

pcba.jpg

0 Likes
Bale
Level 4
Level 4
5 solutions authored 25 replies posted 5 questions asked

Hi, I solved the problem, due to my omission.
After copying XMC_ESC.xml to TwinCat3 IO. It's OK
Now I can ON/OFF led and Read botton state.

0 Likes
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

Good News!

0 Likes

HoiHo_0-1689864938437.png

Hello,
I did EtherCat + PWM + ADC + GPIO and it worked fine,
Now I am continuing with my project with many EtherCat Slaves.
How do we properly address each slave.
Do we create multiple .XML files for each slave and copy it to C/Twincat3?
Please help me with some suggestions, thank you.

0 Likes
Bale
Level 4
Level 4
5 solutions authored 25 replies posted 5 questions asked

Thank you,
Now I will need to add PWM and ADC for my project.
I need to read ADC at P14.5 and PWM at P0.4
I will share the results if successful.

0 Likes