Ethercat HAL driver

More
5 years 5 months ago #210429 by db1981
Replied by db1981 on topic Ethercat HAL driver
hello,

-in the ethercat_conf file change this line

<syncManager idx="0" dir="out">

to

<syncManager idx="2" dir="out">



-

HAL: ERROR: function 'motion-command-handler' may only be added to one thread
qtvcp_postgui.hal:19: addf failed

this problem is related to your hal files. It seems that you are trying to load motion a second time in the postgui hal , this don't works. to look exactly i need the hal files
The following user(s) said Thank You: besriworld
More
5 years 5 months ago - 5 years 5 months ago #210612 by besriworld
Replied by besriworld on topic Ethercat HAL driver
Thanks a lot for the help!!
After long errors, LinuxCNC is now starts without errors.
Enters OP mode , but i can't turn on the servo motor .
Controlworld 0x6040 is of the type UINT I tried the complex function... I do not have success with it.
when i start LinuxCNC for the first time i got this error in DMESG

[ 9743.437336] EtherCAT 0: 1 slave(s) responding on main device.
[ 9743.437341] EtherCAT 0: Slave states on main device: INIT.
[ 9743.438189] EtherCAT 0: Scanning bus.
[ 9743.517876] EtherCAT ERROR 0-main-0: SDO upload 0x0000:00 aborted.
[ 9743.517887] EtherCAT ERROR 0-main-0: SDO abort message 0x06020000: "This object does not exist in the object directory".
[ 9743.517892] EtherCAT ERROR 0-main-0: Failed to read number of mapped PDO entries.
[ 9743.517896] EtherCAT ERROR 0-main-0: Failed to read mapped PDO entries for PDO 0x0000.
[ 9743.523378] EtherCAT ERROR 0-main-0: SDO upload 0x0000:00 aborted.
[ 9743.523387] EtherCAT ERROR 0-main-0: SDO abort message 0x06020000: "This object does not exist in the object directory".
[ 9743.523391] EtherCAT ERROR 0-main-0: Failed to read number of mapped PDO entries.
[ 9743.523395] EtherCAT ERROR 0-main-0: Failed to read mapped PDO entries for PDO 0x0000.

but the error goes into OP mode

After commands " dmesg --clear " and restarting the program(linuxcnc) has no errors .
I am attaching the files:

File Attachment:

File Name: ethercat_c...5-29.txt
File Size:1 KB

File Attachment:

File Name: ethercat_c...5-29.txt
File Size:3 KB

File Attachment:

File Name: dmesg_2021...29-2.txt
File Size:5 KB

File Attachment:

File Name: ethercat_c...29-2.xml
File Size:1 KB


I also tried this ( "conv_float_u32") conversion instruction from DINT to float for feedback but I have no success the position of the feedback does not change . If I moved the axis on first start I have a change HAL value in linuxcnc ..but when the program is running and moving the axis-shaft there is no change in linuxcnc

I apologize a lot for the many questions, but i have no experience with linux
Attachments:
Last edit: 5 years 5 months ago by besriworld.
More
5 years 5 months ago #210640 by db1981
Replied by db1981 on topic Ethercat HAL driver
Hi,

what do you mean with op state?

-Ethercat OP State? or
-Drives Power Enabled State?

have you seen this github.com/dbraun1981/hal-cia402 ?
The following user(s) said Thank You: besriworld
More
5 years 5 months ago #210649 by besriworld
Replied by besriworld on topic Ethercat HAL driver
Hi ,
EtherCAT 0: Slave states on main device: OP

The servo driver witch debug LED also indicates that it is normal operation status .

I also tried this configuration. But there is no change.б
More
5 years 5 months ago #210650 by db1981
Replied by db1981 on topic Ethercat HAL driver
what kind of servo drive is this? manual pdf?

Does the feedback value change if you turn the motor shaft by hand?

You are not able to enable the drive?
The following user(s) said Thank You: besriworld
More
5 years 5 months ago - 5 years 5 months ago #210659 by besriworld
Replied by besriworld on topic Ethercat HAL driver
Servo drivers brand Adatech model QXEH10NE

Manual : drive.google.com/file/d/14cinYiQ4-0qYuw5...Znf/view?usp=sharing

When I start the program (LinuxCNC) the value of the axis changes if before starting rotated the shaft. When the program runs and rotates the shaft, the value does not change.

The shaft does not harden
Last edit: 5 years 5 months ago by besriworld.
Time to create page: 0.568 seconds
Powered by Kunena Forum