Ethercat HAL driver

More
4 years 6 months ago #239624 by GuiHue
Replied by GuiHue on topic Ethercat HAL driver

I think it doesn't reach the op state.
 

Hi Alex,

did you ever manage to make any progress on this? From what google tells me, this is the only information on a bk1120 with linuxcnc-ethercat I could find. I have a similar setup for trying out and I'm stuck at the same point.

Generally I would argue that when devices coupled through a BK1120 to ethercat, than it should be possible to make that work somehow. At the very least on the level of ethercat on linux itself. From there on, the worst that could happen is some new programming within linuxcnc-ethercat. However, I would hope that a generic configuration would suffice.

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

More
4 years 3 months ago - 4 years 3 months ago #247436 by jc2ktr
Replied by jc2ktr on topic Ethercat HAL driver
I got a huge Problem with my ethercat bus :( Recently died my old PC. I´ve set up a new one with Debian11 and the EtherCAT install thread pinned here in the forum. Then copied my machine backup, but every time i start my machine the OS freezes and the bus Stops. My dmesg after a hard reboot looks alike:

Warning: Spoiler!


EDIT: 
In the DMESG-Log it seems that Ethercat Telegrams get lost. Who is sending these Telegrams ? The EC-Master? or the Slaves?

This is my Config:
 

File Attachment:

File Name: EtherCAT_SOE.rar
File Size:44 KB

 
Last edit: 4 years 3 months ago by jc2ktr. Reason: additions

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

More
4 years 3 months ago #247576 by endian
Replied by endian on topic Ethercat HAL driver
hello gentelmens,

have anybody some time to check what is wrong with my lcec config for one benchtop testing axis running under lcec please? driver waiting in preop mode and does not run to op mode. it is kollmorgen S300+ethercat motion card plugged in. I attached photo from original configuration program from that brand. there are some mapped PDOs. I tried used that PDOs but without any succes as running with my configuration of free mapped PDOs.

ps. configs are just for beginning with ethercat, for read stuff from drive and to try workflow.

thanks

regards foxington
Attachments:

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

More
4 years 3 months ago #248013 by endian
Replied by endian on topic Ethercat HAL driver
hello, 

I am struggling around setup a ethercat driver for working in CSP. I found some commands which are different then others in this topic. Is it my .xml code right please?

Have anybody idea of red rectangles in the picture please? Other stuff is clear to me.
Code:
    <!-- SETUP FREE MAPPING PDOs via objects 0x1C12 and 0x1C13 -->       <!-- Clear SM PDOs -->       <sdoConfig idx="1C12" subIdx="00">         <sdoDataRaw data="00"/>       </sdoConfig>              <!-- Clear SM PDOs -->       <sdoConfig idx="1C13" subIdx="00">         <sdoDataRaw data="00"/>       </sdoConfig>                         <!-- Clear RX PDO -->           <sdoConfig idx="1A00" subIdx="00">             <sdoDataRaw data="00 63 6C 65"/>           </sdoConfig>                  <!-- Map status word lenght 0x10 == 16 bit to TX-PDO1 -->            <!-- 0x6041 0010 == register 0x6041 + value 0x10(16bit decimal) -->           <sdoConfig idx="1A00" subIdx="01">             <sdoDataRaw data="10 00 41 60"/>           </sdoConfig>                      <!-- Map position feedback double word lenght to TX-PDO1 -->           <!-- 0x6064 0020 == 0x20 == 0d32 bit -->           <sdoConfig idx="1A00" subIdx="02">             <sdoDataRaw data="20 00 64 60"/>           </sdoConfig>                      <!-- Set TX-PDO1 total count to 2 -->           <sdoConfig idx="1A00" subIdx="00">             <sdoDataRaw data="02 64 6F 77"/>           </sdoConfig>                             <!-- Clear RX-PDO -->           <sdoConfig idx="1600" subIdx="00">             <sdoDataRaw data="00 63 6C 65"/>           </sdoConfig>                      <!-- Map control word lenght 0x10 == 16 bit to RX-PDO1 -->           <!-- 0x6040 0010 == 16bit -->           <sdoConfig idx="1600" subIdx="01">             <sdoDataRaw data="10 00 40 60"/>           </sdoConfig>                      <!-- Map position command double word lenght to RX-PDO1 -->           <!-- 0x607A 0020 == 0x20 == 0d32 bit -->           <sdoConfig idx="1600" subIdx="02">             <sdoDataRaw data="20 00 7A 60"/>           </sdoConfig>                      <!-- Set RX-PDO1 count to 2 -->           <sdoConfig idx="1600" subIdx="00">             <sdoDataRaw data="02 64 6F 77"/>           </sdoConfig>                                     <!-- Download PDO 0x1C12:01 index -->       <!-- 0x1600 -->       <sdoConfig idx="1C12" subIdx="01">         <sdoDataRaw data="00 16"/>       </sdoConfig>              <!-- Download PDO 0x1C12 count -->       <sdoConfig idx="1C12" subIdx="00">         <sdoDataRaw data="01"/>       </sdoConfig>       <!-- Download PDO 0x1C13:01 index -->       <!-- 0x1A00 -->       <sdoConfig idx="1C13" subIdx="01">         <sdoDataRaw data="00 1A"/>       </sdoConfig>                     <!-- Download PDO 0x1C13 count -->       <sdoConfig idx="1C13" subIdx="00">         <sdoDataRaw data="01"/>       </sdoConfig>            <!--     S300 - 4.8 Supported operation modes     The following values are used for selection and feedback operating modes:     cyclic synchronous position mode 0x08(0d08) und 0xFA(0d-06)     cyclic synchronous velocity mode 0x09 und 0xFE     cyclic synchronous torque mode 0x0A und 0xFD     homing mode 0x06 und 0xF9     Negative values correspond to manufacturer-specific settings in 6060 of size 8bit .-->              <!-- Set OpMode to Cyclic Synchronous Position IN MY CASE 0x08(0d08) und 0xFA(0d-06) -->       <sdoConfig idx="6060" subIdx="00">         <sdoDataRaw data="08"/>         </sdoConfig>              <!-- Set Cycle Time IN MY CASE 0x02(0d02) und 0xFD(0d-03)-->       <sdoConfig idx="60C2" subIdx="01">         <sdoDataRaw data="02"/>        </sdoConfig>              <!-- Set Cycle exp -->       <sdoConfig idx="60C2" subIdx="02">         <sdoDataRaw data="FD"/>        </sdoConfig>

Regards foxington
Attachments:

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

More
3 years 2 months ago #277601 by gueee78
Replied by gueee78 on topic Ethercat HAL driver
hello foxington!

Did you get anywhere with your setup?

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

More
3 years 2 months ago #277630 by endian
Replied by endian on topic Ethercat HAL driver
hello,

yes I have done working core component for kollmorgen and pilz stuff with older incremental format for DC in 1 ms with my benchtop hardware setup - 3 axis. It is little bit more to setup but not complicated at all.

If you are interested check this stuff before. 

have a great time

Slav

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

Time to create page: 1.599 seconds
Powered by Kunena Forum