Ethercat retrofit question

More
5 years 1 week ago #224107 by db1981
Replied by db1981 on topic Ethercat retrofit question
to get kernel version type "uname -a" in Terminal.

Please Log in to join the conversation.

More
5 years 1 day ago #224708 by Niko
Replied by Niko on topic Ethercat retrofit question
Here's the output of uname :
Code:
4.19.0-17-rt-amd64 #1 SMP PREEMPT RT Debian 4.19.194-2 (2021-06-21) x86_64 GNU/Linux

After configuring the servos as per the pdos command output they all seem to work . Today I'll be working on the operator panel, for which I found an excellent manual . And if all goes well continue with the spindle .

Please Log in to join the conversation.

More
5 years 5 hours ago #224764 by Niko
Replied by Niko on topic Ethercat retrofit question

So i created a way to get etherlab master working without the readout content of the SII EEprom. Now you can load a bin file (that has been created from esi xml) at bus startup, i think this will help a lot in the future.
Could you explain a bit more on how to do that ?
I just wrote to the manufacturer about an xml for the spindle drive .

Please Log in to join the conversation.

More
4 years 11 months ago #224870 by db1981
Replied by db1981 on topic Ethercat retrofit question
for the moment, coarse explanation:

-modify the ec-master

fast method: i've putted deb files for 4.19.0-17 rt there : github.com/dbraun1981/lcec_ec_master/tre...preempt_4.19.0-17-rt
remove the installed version before.

-check if the master works as before 
-create an ethercat folder in your os default firmware dir.  (/lib/firmware/ethercat)
-if you have an working beckhoff configuration, you can create an bin file for SII Rewrite . 
  Ethercat Tab of the device, extended ->  ESC -> Hex Editor (shows the virtual SII Data, depending on the configuration) -> write to file

-rename the file to  ec_xxxxxxxx_yyyyyyy.bin  x= 8 digits Vendor ID, y = 8 digits Product ID  (example: ec_000001dd_10400200.bin = Delta MS300 Vfd)  
-place this file in the firmware ethercat folder.
-reboot or restart ethercat.

Now the master checks at bus restart if a bin file for the device is present and uses the bin content, if no file is present the SII Content is readed like without the patch.

Please Log in to join the conversation.

More
4 years 11 months ago #224902 by Niko
Replied by Niko on topic Ethercat retrofit question
I'll have a chance to try that saturday .
From what I see in the machine xml it sends a few commands like these :
 
Code:
<InitCmd Fixed="1"> <Transition>PS</Transition> <Comment>download pdo 0x1A00 entry</Comment> <Timeout>0</Timeout> <Ccs>1</Ccs> <Index>6656</Index> <SubIndex>2</SubIndex> <Data>10004160</Data> </InitCmd>
And if I'm right this corresponds to the line :
ethercat download -p8 0x1A00 10004160 That just seems like 6041 register with 16 bit length .
So if things don't go as planned can't I just write a simple script with all these lines and launch linuxcnc after them ?

Please Log in to join the conversation.

More
4 years 11 months ago #224911 by db1981
Replied by db1981 on topic Ethercat retrofit question
This are initcmds they will be sent via mailbox communication at preop state, before you will change the file state to safeop -> op.
Them are for configuring the slave like pdo mapping or init values.

You can sent these commands with lcecconf. One is to use the sdoconfig command in the ethercat_conf or by putting them to an extra xml file and load this as initcmd file in the ethercat_conf file. there are examples on linuxcnc-ethercat github.

If this is the slave with the faulty eeprom read from the first post. I think this will not help without repairing the eeprom or loading a bin file.

Please Log in to join the conversation.

More
4 years 11 months ago #224912 by Niko
Replied by Niko on topic Ethercat retrofit question
I am sure the drive is fine . I had it running yesterday with the old cnc . After a bit of research I think uses an acontis EC master .
I also checked out the examples you mentioned . Is there a manual for this driver ?

Please Log in to join the conversation.

More
4 years 11 months ago #227934 by Niko
Replied by Niko on topic Ethercat retrofit question
OK so still no luck with the spindle .
At least we have the drive software now . And it really is programmed to accept the pdos . Bad thing is the software cannot generate a bin file .  still haven't figured out a few bits of the original ENI xml from the old master .
Code:
<InitCmd> <Transition>PS</Transition> <Comment>set sm 2 (outputs)</Comment> <Cmd>5</Cmd> <Adp>8</Adp> <Ado>2064</Ado> <Data>00100c0024000100</Data> <Cnt>1</Cnt> <Retries>3</Retries> </InitCmd> <InitCmd> <Transition>PS</Transition> <Comment>set sm 3 (inputs)</Comment> <Cmd>5</Cmd> <Adp>8</Adp> <Ado>2072</Ado> <Data>0014100020000100</Data> <Cnt>1</Cnt> <Retries>3</Retries> </InitCmd> <InitCmd> <Transition>PS</Transition> <Comment>set fmmu 0 (outputs)</Comment> <Cmd>5</Cmd> <Adp>8</Adp> <Ado>1536</Ado> <Data>780000100c0000070010000201000000</Data> <Cnt>1</Cnt> <Retries>3</Retries> </InitCmd>
This is just a part of it .

Some of these lines really look like the answer . Although what should I put for idx and subidx ?
Code:
<sdoConfig idx="1c32" subIdx="complete"> <sdoDataRaw data="03 00 01 00 00 09 3D 00"/>
Any advice is welcomed .

Please Log in to join the conversation.

More
4 years 11 months ago #227983 by db1981
Replied by db1981 on topic Ethercat retrofit question
the commands you have posted adp, ado, are all working at the lowest layer of the ethercat communication pre Mailbox communication. Them are for setting up the base things like syncmanager, mailbox com etc.

This base config stuff the etherlabmaster only reads from the eeprom, exept you go the way with the bin file as descripted above or rewrite the eeprom (risk) .
Other Master like Beckhoff or Arcontis can us them by reading the from the xml.

If you can post an ESI XML that belongs to the drive, i can check if the device can get opend with beckhoff.

Please Log in to join the conversation.

More
4 years 11 months ago #227997 by 0x2102
Replied by 0x2102 on topic Ethercat retrofit question
Is the Spindle driver actually EtherCAT or like in the manual, CANopen?

Please Log in to join the conversation.

Time to create page: 0.593 seconds
Powered by Kunena Forum