Ethercat HAL driver

More
7 years 3 days ago #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
6 years 11 months ago - 6 years 11 months ago #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
Code:
<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: 6 years 11 months ago by JimPanski. Reason: added config

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

More
6 years 11 months ago #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:
Code:
<?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
6 years 11 months ago - 6 years 11 months ago #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: 6 years 11 months ago by roschi.
The following user(s) said Thank You: Nico2017

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

More
6 years 10 months ago #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
6 years 10 months ago #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.

Time to create page: 0.189 seconds
Powered by Kunena Forum