Basic Ethercat Configuration

More
18 Apr 2021 06:41 - 18 Apr 2021 10:55 #206268 by deedee
Hi,
I'm new to LinuxCNC and want to get started with an EK1100 Coupler and a few IO-Modules.
I'm using:
- LinuxCNC 2.8.0 Debian 10 Buster PREEMPT-RT ISO
- Driver build via ec-debianize as *.deb package
- linuxcnc-ethercat also build as a *.deb package

ethercat slaves show up in PREOP

File Attachment:

File Name: ethercat_config_1.xml
File Size:0 KB


halcmd:
loadrt threads name1=master period1=1000000
loadusr -W lcec_conf ethercat_config_1.xml
loadrt lcec
addf lcec.read-all master
addf lcec.write-all master
start

All pins are shown and halmeter shows the attached toggle switch.I tried to get LinuxCNC up and running with

File Attachment:

File Name: new.hal
File Size:0 KB

File Attachment:

File Name: new.ini
File Size:1 KB

but it won't start.

File Attachment:

File Name: startup.txt
File Size:2 KB

What did I do wrong?
Attachments:
Last edit: 18 Apr 2021 10:55 by deedee.

Please Log in or Create an account to join the conversation.

More
18 Apr 2021 09:45 #206284 by Grotius
Hi,

This example should show something up in linuxcnc
/yourpath/linuxcnc/bin$ halshow
> loadrt threads name1=base-thread fp1=0 period1=15000 name2=servo-thread period2=1000000
> loadusr -W /yourpath/linuxcnc/bin/lcec_conf /path_to_yours/ethercat-conf.xml
> loadrt lcec

Please Log in or Create an account to join the conversation.

More
18 Apr 2021 10:51 - 19 Apr 2021 16:51 #206292 by deedee
Replied by deedee on topic Basic Ethercat Configuration
Hi,

thanks for the quick tip.

"unexpected realtime delay" -> what's the problem?

Input Terminal:
cnc@linuxcnc:~$ halshow
Input GUI:
loadrt threads name1=base-thread fp1=0 period1=15000 name2=servo-thread period2=1000000
Output in Terminal:
Note: Using POSIX realtime
Unexpected realtime delay on task 0 with period 15000
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
Input GUI:
loadusr -W /yourpath/linuxcnc/bin/lcec_conf /path_to_yours/ethercat-conf.xml
Output in GUI:
Component 'lcec_conf' ready
Program '/home/cnc/linuxcnc/ec/lcec_conf' started
Input GUI:
loadrt lcec
Output GUI:
Component 'lcec' ready
Program '/usr/bin/rtapi_app' started
Realtime module 'lcec' loaded
Last edit: 19 Apr 2021 16:51 by deedee.

Please Log in or Create an account to join the conversation.

Time to create page: 0.134 seconds
Powered by Kunena Forum