Ethercat HAL driver

More
30 May 2021 06:26 - 30 May 2021 06:47 #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: 30 May 2021 06:47 by besriworld.

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

More
30 May 2021 07:58 #210661 by db1981
Replied by db1981 on topic Ethercat HAL driver
hi,

-the drive is working with the control software and behaves normal? only linuxcnc/ethercat don't works?

please post the output of "ethercat pdos" :
-after booting the pc and powering up the drive
-while linuxcnc is running

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

More
30 May 2021 10:49 #210668 by besriworld
Replied by besriworld on topic Ethercat HAL driver
Hello ,
I found the problem. This line was missing in my xml file.
<dcConf sync0Shift="0" sync0Cycle="*1" assignActivate="300"/>

The device now shows feedback. The problem with the control word remains. I can't get the device to harden the motor shaft.
I tried through the terminal and commands but no success.
moriseiki@debian:~$ sudo -s
[sudo] password for moriseiki: 
root@debian:/home/moriseiki# dmesg --clear
root@debian:/home/moriseiki# dmesg
root@debian:/home/moriseiki# ethercat debug 1
root@debian:/home/moriseiki# ethercat download -t int16 0x6040 0 15
root@debian:/home/moriseiki# dmesg
[ 2176.175743] EtherCAT DEBUG 0: ecrt_master_sdo_download(master = 0x00000000512fad93, slave_position = 0, index = 0x6040, subindex = 0x00, data = 0x0000000089271200, data_size = 2, abort_code = 0x00000000c76f196f)
[ 2176.175747] EtherCAT DEBUG 0-main-0: Scheduling SDO download request.
[ 2176.179414] EtherCAT DEBUG 0-main-0: Processing SDO request...
[ 2176.179419] EtherCAT DEBUG 0-main-0: Downloading SDO 0x6040:00.
[ 2176.179420] EtherCAT DEBUG: 0F 00 
[ 2176.179424] EtherCAT DEBUG 0-main-0: Expedited download request:
[ 2176.179424] EtherCAT DEBUG: 00 20 2B 40 60 00 0F 00 00 00 
[ 2176.191541] EtherCAT DEBUG 0-main-0: Download response:
[ 2176.191545] EtherCAT DEBUG: 00 30 6B 40 60 00 0F 00 00 00 
[ 2176.191552] EtherCAT DEBUG 0-main-0: Finished SDO request.
root@debian:/home/moriseiki# ethercat upload -t int16 0x6041 0
0x0050 80
root@debian:/home/moriseiki# dmesg
[ 2176.175743] EtherCAT DEBUG 0: ecrt_master_sdo_download(master = 0x00000000512fad93, slave_position = 0, index = 0x6040, subindex = 0x00, data = 0x0000000089271200, data_size = 2, abort_code = 0x00000000c76f196f)
[ 2176.175747] EtherCAT DEBUG 0-main-0: Scheduling SDO download request.
[ 2176.179414] EtherCAT DEBUG 0-main-0: Processing SDO request...
[ 2176.179419] EtherCAT DEBUG 0-main-0: Downloading SDO 0x6040:00.
[ 2176.179420] EtherCAT DEBUG: 0F 00 
[ 2176.179424] EtherCAT DEBUG 0-main-0: Expedited download request:
[ 2176.179424] EtherCAT DEBUG: 00 20 2B 40 60 00 0F 00 00 00 
[ 2176.191541] EtherCAT DEBUG 0-main-0: Download response:
[ 2176.191545] EtherCAT DEBUG: 00 30 6B 40 60 00 0F 00 00 00 
[ 2176.191552] EtherCAT DEBUG 0-main-0: Finished SDO request.
[ 2197.402119] EtherCAT DEBUG 0: ecrt_master_sdo_upload(master = 0x00000000512fad93, slave_position = 0, index = 0x6041, subindex = 0x00, target = 0x000000006ec3cf86, target_size = 2, result_size = 0x000000008b654c67, abort_code = 0x00000000c76f196f)
[ 2197.402124] EtherCAT DEBUG 0-main-0: Scheduling SDO upload request.
[ 2197.402785] EtherCAT DEBUG 0-main-0: Processing SDO request...
[ 2197.402789] EtherCAT DEBUG 0-main-0: Uploading SDO 0x6041:00.
[ 2197.402791] EtherCAT DEBUG 0-main-0: Upload request:
[ 2197.402793] EtherCAT DEBUG: 00 20 40 41 60 00 00 00 00 00 
[ 2197.414889] EtherCAT DEBUG 0-main-0: Upload response:
[ 2197.414892] EtherCAT DEBUG: 00 30 4B 41 60 00 50 00 00 00 
[ 2197.414898] EtherCAT DEBUG 0-main-0: Uploaded data:
[ 2197.414899] EtherCAT DEBUG: 50 00 
[ 2197.414902] EtherCAT DEBUG 0-main-0: Finished SDO request.
root@debian:/home/moriseiki# ethercat pdos
SM0: PhysAddr 0x1000, DefaultSize  128, ControlRegister 0x36, Enable 1
SM1: PhysAddr 0x1080, DefaultSize  128, ControlRegister 0x32, Enable 1
SM2: PhysAddr 0x1100, DefaultSize  200, ControlRegister 0x74, Enable 1
  RxPDO 0x1600 ""
    PDO entry 0x6040:00, 16 bit, ""
    PDO entry 0x607a:00, 32 bit, ""
SM3: PhysAddr 0x1d00, DefaultSize  200, ControlRegister 0x30, Enable 1
  TxPDO 0x1a00 ""
    PDO entry 0x6041:00, 16 bit, ""
    PDO entry 0x6064:00, 32 bit, ""
root@debian:/home/moriseiki#

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

More
30 May 2021 13:18 #210673 by db1981
Replied by db1981 on topic Ethercat HAL driver
you can't write to the controlword through terminal, 6040 is assigned to an pdo and there is only sdo access through terminal. your value will not be recognized.

please do an upload of 0x6080 (modes of operation display) after lcnc has started, to check if it is realy set to 8.

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

More
31 May 2021 09:56 - 31 May 2021 09:56 #210785 by besriworld
Replied by besriworld on topic Ethercat HAL driver
Yes, after checking the address x6061, I saw that the operation mode is not recorded correctly.After changing this value refClockSyncCycles="1" to 1000. operation mode (valve) save correctly .
but I still can't activate the servo.
In Twincat with control word 15 the servo holds the shaft. .
Last edit: 31 May 2021 09:56 by besriworld.

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

More
31 May 2021 13:00 #210795 by db1981
Replied by db1981 on topic Ethercat HAL driver
ahh, you have an working twincat config.
please post the twincat file, and i will check the differences.

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

More
31 May 2021 18:42 #210817 by besriworld
Replied by besriworld on topic Ethercat HAL driver
I fixed the problem. I used another example(mux4) to send the control command. Thank you very much to everybody . I will publish the configuration files after I make everything work fine.

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

More
07 Jun 2021 04:59 - 07 Jun 2021 05:01 #211403 by Masa
Replied by Masa on topic Ethercat HAL driver
Hello

I am writing this from Japan using Google Translate.

I would like to use LinuxCNC + EtherCAT.
Currently, the Beckhoff EM7004 can drive the servo motor. However, since the Z phase of the encoder cannot be used for Homing, I am thinking of changing the EM7004 to EL4132 + EL5102. Can the EL5102 be used with the EtherCAT HAL Driver for encoder input?

Since it is a machine translation, I apologize if it does not convey well.

Thank you .
Last edit: 07 Jun 2021 05:01 by Masa.

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

More
07 Jun 2021 07:07 #211405 by db1981
Replied by db1981 on topic Ethercat HAL driver
Hello,

EL5102 is not yet implemented.

I am using EM7004 for Encoder Z Homing on two machines. I used an Signal Converter to convert the Z Signal from the glass scales to the 24V Latch input of the EM7004.

www.leg-gmbh.de/en/html/signal_converter.html
The following user(s) said Thank You: Masa

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

More
07 Jun 2021 09:30 #211409 by Masa
Replied by Masa on topic Ethercat HAL driver
Thank you for your great advice.
I will try to find something similar in Japan.

Thanks

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

Time to create page: 0.367 seconds
Powered by Kunena Forum