Basic Ethercat Configuration
18 Apr 2021 06:41 - 18 Apr 2021 10:55 #206268
by deedee
Basic Ethercat Configuration was created 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
halcmd:
All pins are shown and halmeter shows the attached toggle switch.I tried to get LinuxCNC up and running with
but it won't start.
What did I do wrong?
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
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
but it won't start.
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.
18 Apr 2021 09:45 #206284
by Grotius
Replied by Grotius on topic Basic Ethercat Configuration
Hi,
This example should show something up in linuxcnc
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.
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:Input GUI:Output in Terminal:Input GUI:Output in GUI:Input GUI:Output GUI:
thanks for the quick tip.
"unexpected realtime delay" -> what's the problem?
Input Terminal:
cnc@linuxcnc:~$ halshow
loadrt threads name1=base-thread fp1=0 period1=15000 name2=servo-thread period2=1000000
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.
loadusr -W /yourpath/linuxcnc/bin/lcec_conf /path_to_yours/ethercat-conf.xml
Component 'lcec_conf' ready
Program '/home/cnc/linuxcnc/ec/lcec_conf' started
loadrt lcec
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.068 seconds