- Posts: 295
- Thank you received: 125
Ethercat HAL driver
- chimeno
- Offline
- Elite Member
-
Less
More
6 years 10 months ago #153136
by chimeno
Replied by chimeno on topic Ethercat HAL driver
hello manojpatil,
I don't know very well that you need it at a glance, you have several examples in "linuxcnc-ethercat-examples", if you can specify a little more so that we can help you it would be great.
greetings Chimeno
I don't know very well that you need it at a glance, you have several examples in "linuxcnc-ethercat-examples", if you can specify a little more so that we can help you it would be great.
greetings Chimeno
Please Log in or Create an account to join the conversation.
- manojpatil
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
6 years 10 months ago #153257
by manojpatil
Replied by manojpatil on topic Ethercat HAL driver
Hello sir,
I have a new drive that I am trying to control with EtherCAT. But I faced same problem like @Nicon2017 ( driver not go to PRE-OP state to OP. )
When I work with Twincat ane EtherCat Confugrator it was go to pre op to op state without any issue.
I have a new drive that I am trying to control with EtherCAT. But I faced same problem like @Nicon2017 ( driver not go to PRE-OP state to OP. )
When I work with Twincat ane EtherCat Confugrator it was go to pre op to op state without any issue.
Please Log in or Create an account to join the conversation.
- chimeno
- Offline
- Elite Member
-
Less
More
- Posts: 295
- Thank you received: 125
6 years 10 months ago #153306
by chimeno
Replied by chimeno on topic Ethercat HAL driver
Hi manojpatil,
If the device does not pass to OP, you probably have a problem in the configuration of the device or configuration of the PDOs, you will have to go step by step to know which configuration line is wrong.
Merry Christmas
Chimeno
If the device does not pass to OP, you probably have a problem in the configuration of the device or configuration of the PDOs, you will have to go step by step to know which configuration line is wrong.
Merry Christmas
Chimeno
Please Log in or Create an account to join the conversation.
- manojpatil
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
6 years 10 months ago #153356
by manojpatil
Replied by manojpatil on topic Ethercat HAL driver
Hello sir,
Thanks for the reply,
can u share is ther any guidance Manual for PDO mapping?? I am refer the Panasonic etherCat driver Manual.
Manoj.
Thanks for the reply,
can u share is ther any guidance Manual for PDO mapping?? I am refer the Panasonic etherCat driver Manual.
Manoj.
Please Log in or Create an account to join the conversation.
- chimeno
- Offline
- Elite Member
-
Less
More
- Posts: 295
- Thank you received: 125
6 years 10 months ago #153565
by chimeno
Replied by chimeno on topic Ethercat HAL driver
Hello manojpatil
I can't help you much with the PANASONIC servos, I never use them, but I will try to give you some guidance.
Linux-ethercat does not integrate the driver for PANASONIC, you have two options:
- create your own controller
- use the generic driver included in linuxcnc-ethercat, attached an example
the PDO can visualize them with this command
the VID (vendor ID) and the PID (Product code) can be found using the command
I hope I have helped you, regards Chimeno
I can't help you much with the PANASONIC servos, I never use them, but I will try to give you some guidance.
Linux-ethercat does not integrate the driver for PANASONIC, you have two options:
- create your own controller
- use the generic driver included in linuxcnc-ethercat, attached an example
Code:
<masters>
<master idx="0" appTimePeriod="1000000" refClockSyncCycles="1000">
<slave idx="0" type="generic" vid="00000002" pid="14566012" configPdos="true">
<dcConf assignActivate="730" sync0Cycle="*1" sync0Shift="0" sync1Cycle="0" sync1Shift="0"/>
<syncManager idx="2" dir="out">
<pdo idx="0018">
<pdoEntry idx="0086" subIdx="00" bitLen="16" halType="complex">
<complexEntry bitLen="6"/>
<complexEntry bitLen="1" halPin="srv0-ctrl.realtime-0" halType="bit"/>
<complexEntry bitLen="1" halPin="srv0-ctrl.realtime-1" halType="bit"/>
<complexEntry bitLen="2" halPin="srv0-ctrl.opmode-low" halType="u32"/>
<complexEntry bitLen="1" halPin="srv0-ctrl.sync" halType="u32"/>
<complexEntry bitLen="1" halPin="srv0-ctrl.opmode-high" halType="bit"/>
<complexEntry bitLen="1"/>
<complexEntry bitLen="1" halPin="srv0-ctrl.restart" halType="bit"/>
<complexEntry bitLen="1" halPin="srv0-ctrl.enable" halType="bit"/>
<complexEntry bitLen="1" halPin="srv0-ctrl.drv-on" halType="bit"/>
</pdoEntry>
<pdoEntry idx="0018" subIdx="00" bitLen="32" halPin="srv0-vel-cmd" halType="s32"/>
</pdo>
</syncManager>
</slave>
</master>
</masters>
the PDO can visualize them with this command
Code:
ethercat pdos -p"number device"
the VID (vendor ID) and the PID (Product code) can be found using the command
Code:
ethercat slave -p"number device" -v
Please Log in or Create an account to join the conversation.
- CORBETT
- Offline
- Elite Member
-
Less
More
- Posts: 286
- Thank you received: 113
6 years 9 months ago #154099
by CORBETT
Replied by CORBETT on topic Ethercat HAL driver
Chimeno,
Thanks for adding the brake chopper... super awesome. I was looking at these for the future.
I have a request as you are verse in re-working the code. Can you add the EL7041-0000. I cannot get it to work, I have tried changing my XML with:
EL7041-1000
EL7041-0000
EL7041-
EL7041
but none of those work. I can see the terminal in C-command when doing a "# ethercat slaves" , but when you try to start LinuxCNC it gives the error screen with this in the debug:
lcec_conf: ERROR: Invalid slave type EL7041-0000
lcec_conf: ERROR: Parse error at line 6: parsing aborted
I know my HAL and INI should be fine in LNC as I have other Beckhoff setup's that work, just can't get this setup to work with the EL7041-0000. So I figured you might be able to get this terminal working also as you have fixed the code for several of the other terminals in the past.
Thanks,
Robert
Thanks for adding the brake chopper... super awesome. I was looking at these for the future.
I have a request as you are verse in re-working the code. Can you add the EL7041-0000. I cannot get it to work, I have tried changing my XML with:
EL7041-1000
EL7041-0000
EL7041-
EL7041
but none of those work. I can see the terminal in C-command when doing a "# ethercat slaves" , but when you try to start LinuxCNC it gives the error screen with this in the debug:
lcec_conf: ERROR: Invalid slave type EL7041-0000
lcec_conf: ERROR: Parse error at line 6: parsing aborted
I know my HAL and INI should be fine in LNC as I have other Beckhoff setup's that work, just can't get this setup to work with the EL7041-0000. So I figured you might be able to get this terminal working also as you have fixed the code for several of the other terminals in the past.
Thanks,
Robert
The following user(s) said Thank You: chimeno
Please Log in or Create an account to join the conversation.
Time to create page: 0.182 seconds