Ethercat HAL driver

More
10 Feb 2021 21:05 #198321 by arvidb
Replied by arvidb on topic Ethercat HAL driver
bkt: I'm not sure if this actually matters, but one thing that looks strange in your xml file is that you're mixing radix characters between the scale parameters: sometimes you use '.' (period) and sometimes ',' (comma).

Which one to use is supposedly controlled by the LC_NUMERIC setting on the system (run 'locale' to check your setting). However I have mine set to sv_SE.UTF-8 (Swedish), and the Swedish standard is to use a comma as radix, but I still use a period in my .hal config files, for example, so... yeah, I don't know if it matters.

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

More
10 Feb 2021 21:13 #198322 by arvidb
Replied by arvidb on topic Ethercat HAL driver
I tested it and it does matter: lcec_conf uses atof to convert the scale value to float. On my system atof("1.234") returns 1.234 as expected, but atof("1,234") returns 1.000. So your scale="0,00008" results in a scale of exactly zero. Not good!

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

More
11 Feb 2021 14:17 - 11 Feb 2021 14:41 #198397 by bkt
Replied by bkt on topic Ethercat HAL driver

@DB1981
-You want to control the drive in velocity mode?
-You have problem with the pos feedbackvalue? Feedback from the drive is an signed Integer, automatic conversion is not automatic done, every 16 bits, there will be an huge step in the value. I think the feedback is an raw value, so you need something like an counter/encoder logic.


Velocity mode no for sure ... Because RXPDO 1601 and TxPDO1A01 ... plus feedback (6064h) is DINT value as 607Ah (cmdPosition) that is DINT. <sdoConfig idx="6060" subIdx="0"><sdoDataRaw data="08"/></sdoConfig> for you these is CSV and not CSP ??? but CSP in maxine manual is bit=7 so 08 is correct value i think (0-1-2 ....7 means i count 8 number) ... is not right these?

@arvidb

bkt: I'm not sure if this actually matters, but one thing that looks strange in your xml file is that you're mixing radix characters between the scale parameters: sometimes you use '.' (period) and sometimes ',' (comma).


if you read better ',' (comma) for sign decimal point is comment out .... but actually reading the topic you don't notice that these lines are commented out .... however do not worry I have already noticed that it was a problem .... in fact the xml file and Lcnc accept the '.' (point) and not the ',' to mark the decimals .... so my mistake .... I correct the xml file by removing all the commented lines so that no one is misled by reading at speed ... NO WORRY there are no scale="0,00008" read from system because <!-- xxxxx --> on xml sintax is equal to /* code c or c++ */ the correct scale is scale="0.000071429"/>

any how thanks for reply and correct my previous so no one make same error of arvidb ... f
bkt
Attachments:
Last edit: 11 Feb 2021 14:41 by bkt.

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

More
11 Feb 2021 14:40 - 11 Feb 2021 14:42 #198401 by bkt
Replied by bkt on topic Ethercat HAL driver
I add these to previous reply to db1981
Last edit: 11 Feb 2021 14:42 by bkt.

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

More
12 Feb 2021 09:28 - 12 Feb 2021 10:07 #198507 by db1981
Replied by db1981 on topic Ethercat HAL driver
Hello,

now it is clearer for me. sorry may be i have understanding problems because of my own rusted english interpreter.....

facts:
-you want to command the drive in cyclic position mode
-control loop in the drive, no pid in linuxcnc
-setting the electronic Gear ration in the drive doesn't work at the moment
-you can enable the drive, the drive reacts correct to the commanded position

your actual problem ?
-feedback scaling in linuxcnc is not correct ?
-the feedback gets worse after some point in movement (~37.5 degree)?
Last edit: 12 Feb 2021 10:07 by db1981.

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

More
12 Feb 2021 10:30 - 12 Feb 2021 11:48 #198514 by bkt
Replied by bkt on topic Ethercat HAL driver


your actual problem ?
-feedback scaling in linuxcnc is not correct ?


To answer this: my real problem = I don't understand how it is possible to have a scale of 14000 or 14 since there is the problem of the 1/1000 scale in the generic drive due to decimals. But now that I read your answer I realize that I have to check the electronic gear set by default on the drive and see if the scale of 14 added to the default electronic gear can somehow correspond to the mechanical reduction of 37.5 motor revolutions for have 1 turn of my axis or 360 °. So more than a problem is the will to understand better.

Today, however, I have a second more serious problem .... two out of 3 drives no longer go into run mode .... they go to OP and then by putting an axis in run Lcnc (the first of the ethercat chain) it also goes into run and it I can move, the others remain ready but I cannot move them. If I launch from the terminal (with Axis gui working) "ethercat slaves -v" I don't see anything abnormal except that beyond the slaves "0" (first working drive) I have a "DC system time transmission delay: 0 ns", slaves "1" (second no-working drive) I have a "DC system time transmission delay: 640 ns" .... and the third slaves are at "DC system time transmission delay: 1280 ns" which seems to me to be high times ..... I report the result of the terminal if someone sees anything else that is anomalous that I do not see.
Attachments:
Last edit: 12 Feb 2021 11:48 by bkt.

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

More
12 Feb 2021 10:32 - 12 Feb 2021 11:47 #198515 by bkt
Replied by bkt on topic Ethercat HAL driver
erroneous double post
Last edit: 12 Feb 2021 11:47 by bkt.

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

More
12 Feb 2021 11:58 #198519 by db1981
Replied by db1981 on topic Ethercat HAL driver
i have checked your config, and checked the source of the generic modul. There is nothing wrong with the scaling. Seems to be an drive config issue. Are this absolute encoders?

About dc conf, did you changed anything in your System?
Which Linuxcnc Version? Rip Install? ethercat from SITTNER?

In your ethercat_conf there is "Busklemme" Do you speak German?
The following user(s) said Thank You: bkt

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

More
12 Feb 2021 15:06 - 12 Feb 2021 16:11 #198541 by bkt
Replied by bkt on topic Ethercat HAL driver
No I don't speak German but a long time ago at school we used to call the plc parts with German names .... an original trend of our teachers. So I can say busklemme, ausgang, eingang and a few other similar terms ...

About version is a rip-install on mint: Linux mine 4.19.1-rt3 #1 SMP PREEMPT RT Thu Aug 13 09:31:04 CEST 2020 x86_64 x86_64 x86_64 GNU/Linux

Having said that you are right: I just tried the configuration with other drivers just out of the box .... everything works fine with those. Both if I use a dc conf like the one I transcribed but also if I use a different one.

I must have obviously messed with twincat 3 scope view or twincat configurator .... the real problem is that I don't know how. I am not familiar with twincat that I have only used a few times in my life and 5/6 years ago now on VS2017 everything is a little different.
Last edit: 12 Feb 2021 16:11 by bkt.

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

More
14 Feb 2021 12:15 #198796 by jc2ktr
Replied by jc2ktr on topic Ethercat HAL driver

Hello @jc2ktr

It stucks at line 12 with a Parse error but i can't solve it.
Hope anyone can take a short look over my File.

not if you have already solved it, but the error is in line 11 and 13
I attach the example
Error
<syncManager idx="0" dir="out"/>
</syncManager>
<syncManager idx="1" dir="in"/>
</syncManager>
Solution
<syncManager idx="0" dir="out">
</syncManager>
<syncManager idx="1" dir="in">
</syncManager>

Hi folks,
#does someone have the original Bosch-Rexroth XML Description for TwinCAT? The one i can download from the Rexroth page does #not support the firmware of my drive. The drive is FW version 18V34 and the downloadable XML is for 20V26.
#Unfortunatley Rexroth does not have an Donwload Archive on their Website.

#And my Servomotor is not supportet by the new Firmware version.

I think you would have to send an email to the Bosch company to see if they can send you the file.

Greeting Chimeno


I´ve got my Drive up and running under LinuxCNC, with the Firmware 20V26 and the Rexroth XML for COE which is delivered with the Indraworks DS Software from Rexroth.

But when i setup the drive with indraworks DS to my needed Scaling and Mechanical setting, and then let TwinCAT configure the Drive that LinuxCNC is able to "control" the drive. all of my previous Parameters will be overridden.

I will add some Images which should provide some of my issues.

When i try to change the Settings after TwinCAT reconfigured them the Indraworks software generates various Error messages which i can´t resolve with my momentary knowledge.

The following user(s) said Thank You: Nico2017

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

Time to create page: 0.340 seconds
Powered by Kunena Forum