Ethercat HAL driver

More
21 Mar 2016 08:45 - 21 Mar 2016 12:20 #71965 by billiehuijbregts
Hi Allen

I attached my current XML file. It uses the <masters> </masters>, otherwise my Ethercat HAL driver did indeed not work.
Just installed Linuxcnc on another computer to be sure, but I still get the same errors. When I loaded my files into the Linuxcnc program I got some errors and I know where the problem is now. Still need to solve it tho.
./danfoss.hal:27: Pin 'lcec.0.0.poscommand' does not exist


[248495.584309] EtherCAT ERROR 0-0: Failed to set SAFEOP state, slave refused state change (PREOP + ERROR).
[248495.584331] EtherCAT ERROR 0-0: AL status message 0x001E: "Invalid input configuration".
[237290.510216] EtherCAT DEBUG: 00 30 4F 12 1C 00 01 00 00 00 
Attachments:
Last edit: 21 Mar 2016 12:20 by billiehuijbregts.

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

More
21 Mar 2016 13:11 #71982 by cgc
Replied by cgc on topic Ethercat HAL driver
Hello,
that are 16 single bits,
<pdoEntry idx="2692" subIdx="00" bitLen="16" halPin="poscommand" halType="bit"/>
but that are 32 bit float
axis.0.motor-pos-cmd

regards
Frank

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

More
23 Mar 2016 06:31 - 23 Mar 2016 11:00 #72057 by billiehuijbregts
Dear Frank,

Thanks for the tip! I changed my haltype but I get the error that it's a float and doesn't get converted to a s32.
I used the :
loadrt conv_s32_float
loadrt_conv_float_s32

Should I maybe put my lcec.0.0.pos to the conv_float_s32.0.out pin?
And the pos-command to the conv_float_s32.0.in pin.
Last edit: 23 Mar 2016 11:00 by billiehuijbregts.

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

More
23 Mar 2016 14:00 #72060 by cgc
Replied by cgc on topic Ethercat HAL driver
Hello,
Yes,
you can also use the option "scale" in the *.xml to calculate the unit.

regards
Frank

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

More
25 Mar 2016 18:50 #72151 by cnceng
Replied by cnceng on topic Ethercat HAL driver
Please, take a look to this paper: Integration of real-time Ethernet in LinuxCNC link.springer.com/article/10.1007/s00170-015-6786-y
The article uses the example of Sercos III but it works also with EtherCAT and other protocols.

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

More
25 Mar 2016 23:49 #72163 by jpettit
Replied by jpettit on topic Ethercat HAL driver
Allen

Andreas Schiffler on youtube has a 3 axis mill with 4th axis runing LinuxCNC using etherCAT

Ethercat coupler--- Modules EL ---and EX see his work

jim Pettit

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

More
01 Apr 2016 06:27 #72507 by billiehuijbregts
Got my setup almost working now, but still have problems getting my drive to OP.
When I use the ethercat states op command, I get a red led and a communications error because I need to write some values.
I know this and added those values to my xml file with SdoConfig.
But when I start my ethercat HAL driver using the command terminal, load my xml with lcec_conf and load the lcec module, nothing happens.
Seems like my ethercat master doesn't send a request for the state change to OP, because I get no feedback from the drive (leds, display).
Loading the lcec module should request the OP state right?

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

More
03 Apr 2016 20:03 - 03 Apr 2016 20:06 #72647 by roschi
Replied by roschi on topic Ethercat HAL driver
Hi,

due to further development of the ethercat hal driver especially the "lcec_conf", the content / use of the XML changed slightly.

1. XML file should start/end with <masters> ... </masters> (as mentioned in this thread before #71267 )
2. In diffrence to my initial introduction of the "scale" option the haltype "special32" won't work (as mentioned in this thread before #71871 )
3. To use eg. pos / poscommand with type float use the haltype "complex" in XML see examples here:
S. Ittner config examples close to line 99.

Regards Andreas
Last edit: 03 Apr 2016 20:06 by roschi.
The following user(s) said Thank You: wazza77, Nico2017

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

More
07 Apr 2016 03:55 #72892 by xk2010
Replied by xk2010 on topic Ethercat HAL driver
Hi,
I had the same questions as shown this.

forum.linuxcnc.org/forum/24-hal-componen...iver?start=168#58343
How to solve this.
Would you help me?

xiekai

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

More
07 Apr 2016 08:52 #72898 by billiehuijbregts
Dear Xiekai,

I think you can solve that by adding the <masters> </masters> in your XML file, as described one post above yours by Andreas.

Billie
The following user(s) said Thank You: xk2010

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

Time to create page: 0.252 seconds
Powered by Kunena Forum