Re: [Etherlab-users] Estun EE-R0: Invalid input configuration

2021-03-07 Thread Eibach, Dirk
Hi Richard, > > Dude, > This is an open technical forum. Please use appropriate respectful language. sorry, this was not meant to be disrespectful. So Gavin, if you felt offended, please take my apologies. I was just trying to express that this was not meant to be taken too seriously. > >

Re: [Etherlab-users] Estun EE-R0: Invalid input configuration

2021-03-07 Thread Richard Hacker
Hi Dirk, On 2021-03-05 07:28, Eibach, Dirk wrote: > Dude, This is an open technical forum. Please use appropriate respectful language. > every defect gets respect! ... just because they are a little out of spec ;) No, definitely not! Gavin is absolutely right. If an EtherCAT slave does not

Re: [Etherlab-users] Estun EE-R0: Invalid input configuration

2021-03-04 Thread Eibach, Dirk
Hi Gavin, > If it can't cope with both complete and incomplete transfers in PDO > configuration, then it is not compliant with the EtherCAT specification, and > you should throw it away and find a better slave instead. Dude, every defect gets respect! In Germany we have long time abandoned the

Re: [Etherlab-users] Estun EE-R0: Invalid input configuration

2021-03-04 Thread Gavin Lambert
this communication in error, please notify the sender and delete the communication. -Original Message- From: Eibach, Dirk Sent: Friday, 5 March 2021 2:59 am To: Eibach, Dirk ; Richard Hacker ; etherlab-users@etherlab.org Subject: Re: [Etherlab-users] Estun EE-R0: Invalid input configuration

Re: [Etherlab-users] Estun EE-R0: Invalid input configuration

2021-03-04 Thread Eibach, Dirk
Ok, progress - kindof. After patching fsm_pdo.c to transferring the SDOs enblock I now get: [16864.527240] EtherCAT: Requesting master 0... [16864.527247] EtherCAT: Successfully requested master 0. [16864.527411] EtherCAT 0: Domain0: Logical address 0x, 16 byte, expected working counter

Re: [Etherlab-users] Estun EE-R0: Invalid input configuration

2021-03-04 Thread Eibach, Dirk
An interesting difference I found is that the Acontis master does all SDO-writing on block(like ecrt_slave_config_complete_sdo()), whereas Etherlab does it in single transfers. I already realized that the Estun slave has problems with this when mapping PDO entries. So I had already patched this

Re: [Etherlab-users] Estun EE-R0: Invalid input configuration

2021-03-04 Thread Eibach, Dirk
> I don't have any more ideas, except maybe that it does not adhere to > standard! Or the SII EEPROM is wrong! Then you will have to contact the > manufacturer! So I have written traces of the configuration phase and am digging in Wireshark to spot the difference. For anybody who wants to join

Re: [Etherlab-users] Estun EE-R0: Invalid input configuration

2021-03-04 Thread Richard Hacker
Dir Dirk What I have done is: start the slave connected to the Acontis master and let it do the setup, then connect it (still powered up) to the Etherlab master and do the cstruct command. The PDO mapping matches what I have setup in the Acontis master. Very good! Try to use your

Re: [Etherlab-users] Estun EE-R0: Invalid input configuration

2021-03-04 Thread Eibach, Dirk
Hi Richard, > One thing to note is that > $ ethercat cstruct > must be executed after a fresh power up of the slave and master (ethercat > restart), without ever having started a master application... > not that the slave simply returns its previous (maybe incorrect) setup. the power up status

Re: [Etherlab-users] Estun EE-R0: Invalid input configuration

2021-03-03 Thread Richard Hacker
Indeed, that looks exactly the same. One thing to note is that $ ethercat cstruct must be executed after a fresh power up of the slave and master (ethercat restart), without ever having started a master application... not that the slave simply returns its previous (maybe incorrect) setup.

Re: [Etherlab-users] Estun EE-R0: Invalid input configuration

2021-03-03 Thread Eibach, Dirk
Hi Richard, > > So this guy seems to be a little more tricky than the Beckhoff IOs. > > Any ideas?So what does > $ ethercat config > say when the application is running? Does it match? root@rosie:/home/dirk# ethercat config -v Alias: 0 Position: 0 Vendor Id: 0x060a Product code: 0x0010

Re: [Etherlab-users] Estun EE-R0: Invalid input configuration

2021-03-03 Thread Richard Hacker
Hi Dirk Hm, I am still missing something. When I connect some Beckhoff devices they run fine without any configuration at all: root@rosie:/home/dirk# ethercat slaves 0 0:0 OP + EK1818 EtherCAT-EA-Koppler (1A E-Bus, 8 K. Dig. Ein, 3ms, 4 K. 1 0:1 OP + EL6751 CANopen Master It depends on

Re: [Etherlab-users] Estun EE-R0: Invalid input configuration

2021-03-03 Thread Eibach, Dirk
Hi Richard, > > I did not configure them at all. I simply took the slave that was connected > and operational on our Acontis EtherCAT master and connected the CAT5 > cable to the Etherlab controller. > > I had tried configuring it manually in Etherlab before but always ran into > > this > input

Re: [Etherlab-users] Estun EE-R0: Invalid input configuration

2021-03-03 Thread Richard Hacker
Hi Dirk How do you see that they are wrong? Sorry, still a noob... [ 8413.402490] EtherCAT ERROR 0-0: Failed to set SAFEOP state, slave refused state change (PREOP + ERROR). [ 8413.402734] EtherCAT ERROR 0-0: AL status message 0x001E: "Invalid input configuration". I did not configure

Re: [Etherlab-users] Estun EE-R0: Invalid input configuration

2021-03-02 Thread Eibach, Dirk
Hi Richard, Thanks for having a look at this. > You made a mistake configuring the TxPdo's. You need to read the docs, and > maybe the ESI (BTW I couldn't find it from your link) How do you see that they are wrong? Sorry, still a noob... Sorry about the ESI, it should be present in my link now.

Re: [Etherlab-users] Estun EE-R0: Invalid input configuration

2021-03-02 Thread Richard Hacker
Hi Dirk You made a mistake configuring the TxPdo's. You need to read the docs, and maybe the ESI (BTW I couldn't find it from your link) What is your configuration? $ ethercat config Have you tried $ ethercat cstruct as a starting point? Does the drive require distributed clocks? Richard

[Etherlab-users] Estun EE-R0: Invalid input configuration

2021-03-02 Thread Eibach, Dirk
I am trying to get a Estun EE-R00 IO-Module working. It works fine with an Acontis EtherCAT master. After it has been operational on the Acontis master I plug it to the Etherlab master. The PDO configurations looks allright: root@rosie:/home/dirk# ethercat pdos SM0: PhysAddr 0x1000, DefaultSize