Ethercat HAL driver

More
5 years 5 months ago - 5 years 5 months ago #209806 by besriworld
Replied by besriworld on topic Ethercat HAL driver
thanks for the help . I'm uploading new files. I did a new installation linuxcnc ethercat
There is no change.
I start LinuxCNC from the icon


PS: I make a new installation of LinuxCNC from this link Debian witch Ethercat
But I have new error again. :(

Debug file information:
Note: Using POSIX realtime
/usr/share/linuxcnc/hallib/core_sim.hal:29: Pin 'joint.1.motor-pos-cmd' does not exist
3330
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime

File Attachment:

File Name: dmesg_2021...22-2.txt
File Size:1 KB

File Attachment:

File Name: ethercat-c...5-22.xml
File Size:1 KB

File Attachment:

File Name: qtvcp_post...5-22.hal
File Size:1 KB

File Attachment:

File Name: linuxcnc.r...22-2.txt
File Size:5 KB

File Attachment:

File Name: qtaxis_2021-05-22.ini
File Size:7 KB
Last edit: 5 years 5 months ago by besriworld.
More
5 years 5 months ago - 5 years 5 months ago #209824 by Grotius
Replied by Grotius on topic Ethercat HAL driver
/usr/share/linuxcnc/hallib/core_sim.hal:29: Pin 'joint.1.motor-pos-cmd' does not exist
3330


This is a hal message. It says the stepgenerator position command pin does not exist. I expect you edited hal files.

If you start the linuxcnc axis build in example from the linuxcnc config picker, check if this works.

Then for ethercat you should start with something very minimal in hal. Like only adding the lcec to the servo threat.
Step by step you gonna build it up. Attached a hal files that you can strip down and then try ant load it.

These lines should be your starting point for succes :
Code:
loadrt threads name1=base-thread fp1=0 period1=15000 name2=servo-thread period2=1000000 loadusr -W copy_filepath_here_that_points_to/lcec_conf copy_filepath_here_that_points_to/ethercat-conf.xml loadrt lcec
Code:
net ec-slaves-responding <= lcec.slaves-responding net ec-link-up <= lcec.link-up net ec-all-op <= lcec.all-op addf lcec.read-all base-thread addf lcec.write-all base-thread

And edit the attached xml file to your needs.
Attachments:
Last edit: 5 years 5 months ago by Grotius.
More
5 years 5 months ago #209834 by db1981
Replied by db1981 on topic Ethercat HAL driver
Hi,

remove the calls to the unneccesary hal files in the ini file HAL Section .
core _sim.hal should not be loaded.

and load your halfile with the ethercat lines as normal hal. not as postgui hal file.
More
5 years 5 months ago #209896 by besriworld
Replied by besriworld on topic Ethercat HAL driver
Hello ,
thanks for the help !!!
From solving one error I go to another. I reinstalled Linux. I did everything from the beginning.
I received a new error :
Debug file information:
./ethercat_conf.hal:1: lcec_conf exited without becoming ready
1579
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime

File Attachment:

File Name: dmesg_2021-05-23.txt
File Size:43 KB

File Attachment:

File Name: linuxcnc.r...5-23.txt
File Size:5 KB

File Attachment:

File Name: ethercat_c...5-23.xml
File Size:1 KB

File Attachment:

File Name: ethercat_c...5-23.ini
File Size:1 KB
More
5 years 5 months ago #209900 by db1981
Replied by db1981 on topic Ethercat HAL driver
Hello,

please check what happens if you use this ethercat_conf file...

File Attachment:

File Name: ethercat_c...5-23.xml
File Size:1 KB
More
5 years 5 months ago #209916 by besriworld
Replied by besriworld on topic Ethercat HAL driver
Thanks a lot, I have a new error :
Debug file information:
Note: Using POSIX realtime
note: MAXV max: 400.000 units/sec 24000.000 units/min
note: LJOG max: 400.000 units/sec 24000.000 units/min
note: LJOG default: 400.000 units/sec 24000.000 units/min
Waiting for component 'inihal' to become ready....................................A configuration error is preventing LinuxCNC from starting.
More information may be available when running from a terminal.
...17861
17883
HAL: ERROR: exit called before init
<commandline>:0: waitpid failed milltask inihal

<commandline>:0: milltask exited without becoming ready
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime


The error does not change even when the LAN cable is switched off.
Time to create page: 3.922 seconds
Powered by Kunena Forum