Ethercat HAL driver

More
29 Oct 2019 13:04 #149047 by sqmathlete
Replied by sqmathlete on topic Ethercat HAL driver
@ Conny,

Not as far as I know. Its a pain but having twincat available is kind of a prerequisite for serious trouble shooting and development.

Dan
The following user(s) said Thank You: JimPanski

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

More
01 Nov 2019 17:57 - 02 Nov 2019 09:07 #149378 by JimPanski
Replied by JimPanski on topic Ethercat HAL driver
Hi Dan,

the win pc is on the way. in the meantime, i searched a bit in this forum.
found an other ethercat thread here and got a hint looking into syslog..

Warning: Spoiler!


Warning: Spoiler!


config.xml
<masters>
  <master idx="0" appTimePeriod="1000000" refClockSyncCycles="1000">
    <slave idx="0" type="EK1100"/>
    <slave idx="1" type="EL1004" name="i1"/>
    <slave idx="2" type="EL1004" name="i2"/>
    <slave idx="3" type="EL1004" name="i3"/>
    <slave idx="4" type="EL1004" name="i4"/>
    <slave idx="5" type="EL1004" name="i5"/>
    <slave idx="6" type="EL1004" name="i6"/>
    <slave idx="7" type="EL1004" name="i7"/>
    <slave idx="8" type="EL1004" name="i8"/>
    <slave idx="9" type="EL1004" name="i9"/>
    <slave idx="10" type="EL1004" name="i10"/>
    <slave idx="11" type="EL2008" name="e1"/>
    <slave idx="12" type="EL2008" name="e2"/>
    <slave idx="13" type="EL2024" name="e3"/>
    <slave idx="14" type="EL5101" name="encspi"/>
    <slave idx="15" type="EL5101" name="encx"/>
    <slave idx="16" type="EL5101" name="encz"/>
    <slave idx="17" type="EL4034" name="ana"/>

</master>

</masters>

Makes it sense to post the complete syslog here?

Thanks
Conny
Last edit: 02 Nov 2019 09:07 by JimPanski. Reason: added config

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

More
05 Nov 2019 05:22 #149577 by Nico2017
Replied by Nico2017 on topic Ethercat HAL driver
Hi all,

I have a new drive that I am trying to control with EtherCAT. When using the ethercat-config .xml file used by the linuxcnc-ethercat driver it seems that the drive stay in PRE-OP stage and is not able to go to OP (the lcec state PRE-OP pin is true in the halshow).

When using TwinCAT on a windows machine, using the scan devices button, the drives goes to OP without any issue. There is actually a list of Startup command visible in TwinCAT in the Startup panel that I cannot modify. Should I reproduce those Startup command under the ethercat file for the linuxcnc ethercat driver? Apparently this should be something like using the command <initCmds filename="DriveInitCommand.xml"/> in the slave lines as shown in the linuxcnc-ethercat-master\examples\initcmds code from GitHub.

Then each command should be described like the following example inside DriveInitCommand.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<EtherCATMailbox><CoE><InitCmds>
	<InitCmd>
		<Transition>PS</Transition>
		<Comment><![CDATA[Max current]]></Comment>
		<Timeout>0</Timeout>
		<Ccs>1</Ccs>
		<Index>32785</Index>
		<SubIndex>17</SubIndex>
		<Data>10270000</Data>
	</InitCmd>
</InitCmds></CoE></EtherCATMailbox>

If you are missing those Startup command, do you think it could be the reason why the drive stays in PRE-OP mode?

Thank you for your help.

Nicolas

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

More
08 Nov 2019 14:31 - 08 Nov 2019 14:34 #149919 by roschi
Replied by roschi on topic Ethercat HAL driver
@Nico2017

A00F transformation to 0x0FA0.

--> You have to switch / interchange the sequence of bytes: 0F A0 --> A0 0F

BR
Andreas
Last edit: 08 Nov 2019 14:34 by roschi.
The following user(s) said Thank You: Nico2017

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

More
16 Dec 2019 18:13 #152763 by manojpatil
Replied by manojpatil on topic Ethercat HAL driver
Hello sir, can u help me?? I am working on linuxcnc EtherCAT, and I am a beginner in that so please tell me the how to configure my driver to Linux CNC software?? I have a igh etherlab master.

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

More
22 Dec 2019 14:10 #153031 by manojpatil
Replied by manojpatil on topic Ethercat HAL driver
Hello Sir,
can u please tell me the where can I change that sequence... in controlword Register Or Driver xml file???

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

More
23 Dec 2019 20:31 #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

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

More
27 Dec 2019 09:54 #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.

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

More
27 Dec 2019 19:35 #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

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

More
28 Dec 2019 05:20 #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.

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

Time to create page: 0.227 seconds
Powered by Kunena Forum