Ethercat HAL driver

More
30 Aug 2019 01:53 #143624 by cheng
Replied by cheng on topic Ethercat HAL driver
Have you ever used the command line to control the rotation of the motor?

This was sent to me by Grotius. There is no need to execute linuxcnc xxxxx.ini.

Part of the message is hidden for the guests. Please log in or register to see it.


File Attachment:

File Name: Grotius.txt
File Size:1 KB


mabey you can see this video



I hope this will help you.

by cheng
Attachments:

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

More
30 Aug 2019 01:54 #143625 by cheng
Replied by cheng on topic Ethercat HAL driver
Have you ever used the command line to control the rotation of the motor?

This was sent to me by Grotius. There is no need to execute linuxcnc xxxxx.ini.

Part of the message is hidden for the guests. Please log in or register to see it.


File Attachment:

File Name: Grotius.txt
File Size:1 KB


mabey you can see this video



I hope this will help you.

by cheng
The following user(s) said Thank You: marcin2458

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

More
03 Sep 2019 09:41 #144064 by marcin2458
Replied by marcin2458 on topic Ethercat HAL driver
@sqmathlete, @chimeno, @cheng

I've checked your advice. When the program is started, the servo is still in the PREOP state and + changes to E. I've checkedm 'dmesg' command and have received such information:
[ 7031.928353] EtherCAT WARNING 0-0: Slave did not sync after 5000 ms.
[ 7031.945351] EtherCAT ERROR 0-0: Failed to set SAFEOP state, slave refused state change (PREOP + ERROR).
[ 7031.947348] EtherCAT ERROR 0-0: AL status message 0x001E: "Invalid input configuration".
[ 7031.958347] EtherCAT 0-0: Acknowledged state PREOP.

I tried to use the command line to control the rotation but i can only read information about max torque and velocity. When I try to use another command, it's showing up: "The slave selection matches 0 slaves. 'upload' requires a single slave".

I don't know what and where i'm doing wrong

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

More
03 Sep 2019 18:29 - 03 Sep 2019 18:29 #144076 by chimeno
Replied by chimeno on topic Ethercat HAL driver
Hi marcin2458,
Do you have well configured the "driver" with the "servo-motor" and all the corresponding parameters?

regards
Chimeno
Last edit: 03 Sep 2019 18:29 by chimeno. Reason: Edit
The following user(s) said Thank You: marcin2458

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

More
03 Sep 2019 18:39 #144077 by chimeno
Replied by chimeno on topic Ethercat HAL driver

Hi marcin2458,
Do you have well configured the "driver" with the "servo-motor" and all the corresponding parameters?

Can you try to erase this signal if it solves something?
setp lcec.0.0.extenc-scale [AXIS_0] ENC_SCALE

regards
Chimeno

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

More
04 Sep 2019 01:42 #144107 by cheng
Replied by cheng on topic Ethercat HAL driver
sorry i never see this error.

i can't help you

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

More
17 Sep 2019 18:52 #145424 by marcin2458
Replied by marcin2458 on topic Ethercat HAL driver
Hello again,
Thank you all for your help.

I solved the problem with bad configuration of inputs. It turned out that I have entered bad values in my xml file and I don't have all required parameters in my inverter. The drive goes into op state and there are no errors.

But the shaft is still not moving. Linuxcnc reads the position of the shaft, the moment on the shaft, and even the speed when I spin the shaft with my hand. I checked the operation of the program while connecting the drive to positool and when opening linuxcnc the value of pin D230 (n-reference value) changes to 0% and it remains so despite trying to control - in case of a motion task via linuxcnc it should change according to the speed of the axis but this does not happen, it means that LinuxCNC as the value of D230 still sends the value of 0%.Does anyone have any idea how to solve this problem?
I am asking for your help.
Sincerely,
Marcin

File Attachment:

File Name: new.ini
File Size:1 KB

File Attachment:

File Name: new.xml
File Size:0 KB

File Attachment:

File Name: new.hal
File Size:2 KB
Attachments:

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

More
18 Sep 2019 07:10 #145487 by chimeno
Replied by chimeno on topic Ethercat HAL driver
Hi Marcin,
I see that in the new.xml file this configuration:
<dcConf assignActivate = "0" sync0Cycle = "* 1" sync0Shift = "- 2500" />
I think it should be
<dcConf assignActivate = "300" sync0Cycle = "* 1" sync0Shift = "- 2500" />
I also think it's better
<master idx = "0" appTimePeriod = "999895" refClockSyncCycles = "1000">
SERVO_PERIOD = 999955
I think it should be
<master idx = "0" appTimePeriod = "1000000" refClockSyncCycles = "1000">
SERVO_PERIOD = 1000000
in the new.hal file
setp lcec.0.0.srv-enable 1
I think it's better for security
net x-enable => lcec.0.0.srv-enable

regards
Chimeno

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

More
18 Sep 2019 08:05 #145491 by marcin2458
Replied by marcin2458 on topic Ethercat HAL driver
@chimeno

I did what you wrote, but the problem remains the same. The motor shaft still does not move. Linuxcnc tracks position, torque and speed but I can't get speed directly from the program. I contacted Stober's technical support and they told me that the program I uploaded to the inverter is properly configured, so the only solution is a badly written hal file but I don't know where I made a mistake.

Regards,
Marcin

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

More
18 Sep 2019 09:17 #145494 by chimeno
Replied by chimeno on topic Ethercat HAL driver
Hi Marcin,
You might have the PID set up wrong, try giving it more,
setp x-pid.Pgain 50.0
setp x-pid.maxoutput 1000.0

another thing, when motor is running ?? but does not move ??
Regards
Chimeno
The following user(s) said Thank You: marcin2458

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

Time to create page: 0.812 seconds
Powered by Kunena Forum