Re: [Etherlab-users] Configuring EL7047 stepper driver

2021-08-03 Thread Gavin Lambert
On 3 August 2021 6:07 pm, quoth Fontana Nicola: > This, although a bit mind twisting, is functionally equivalent to the current > one, i.e. both `ecrt_slave_config_pdos` and `autoregister_pdos` are called > for all modules but the EK1100. You're correct of course; I guess my brain was skidding

Re: [Etherlab-users] Configuring EL7047 stepper driver

2021-08-03 Thread Fontana Nicola
Il giorno mar, 03/08/2021 alle 06.39 +, Gavin Lambert ha scritto: > ... > My point was that for more flexibility, > you could make a per-slave "process_image_t" rather than a global one -- > combined with actually using the offset/pointer for the first PDO in each SM, > you can make each

Re: [Etherlab-users] Configuring EL7047 stepper driver

2021-08-03 Thread Fontana Nicola
Il giorno lun, 02/08/2021 alle 23.37 +, Gavin Lambert ha scritto: > Yes, you're calling both now.  Previously you had the "else-if" structured > such that it wouldn't, though. That snippet is a git repository. The original code (commit 433715bdd304) is: if (layout->syncs != NULL &&

Re: [Etherlab-users] Configuring EL7047 stepper driver

2021-08-02 Thread Gavin Lambert
f you have received this communication in error, please notify the sender and delete the communication. -Original Message- From: Fontana Nicola Sent: Tuesday, 3 August 2021 12:36 am To: Gavin Lambert ; etherlab-users@etherlab.org Subject: Re: [Etherlab-users] Configuring EL7047 stepper driver

Re: [Etherlab-users] Configuring EL7047 stepper driver

2021-08-02 Thread Fontana Nicola
Il giorno lun, 02/08/2021 alle 13.50 +0200, Fontana Nicola ha scritto: > > Il giorno dom, 01/08/2021 alle 22.55 +, Gavin Lambert ha scritto: > > Why are you calling ecrt_slave_config_pdos *OR* > > ecrt_slave_config_reg_pdo_entry?  You need to do both things. > > Hi Gavin, > > I am calling

Re: [Etherlab-users] Configuring EL7047 stepper driver

2021-08-02 Thread Fontana Nicola
Il giorno dom, 01/08/2021 alle 22.55 +, Gavin Lambert ha scritto: > Why are you calling ecrt_slave_config_pdos *OR* > ecrt_slave_config_reg_pdo_entry?  You need to do both things. Hi Gavin, I am calling both. `ecrt_slave_config_pdos` is called only when there is at least one sync manager to

Re: [Etherlab-users] Configuring EL7047 stepper driver

2021-08-01 Thread Gavin Lambert
it is addressed. If you have received this communication in error, please notify the sender and delete the communication. -Original Message- From: Fontana Nicola Sent: Sunday, 1 August 2021 8:38 am To: Graeme Foot ; etherlab-users@etherlab.org Subject: Re: [Etherlab-users] Configuring EL7047

Re: [Etherlab-users] Configuring EL7047 stepper driver

2021-07-31 Thread Fontana Nicola
Il giorno lun, 26/07/2021 alle 07.00 +0200, Fontana Nicola ha scritto: > ... > I will do my homeworks and report back for future reference. > ... I can confirm that, by moving the PDO handling into the application, things started working as expected. Here is the updated snippet:

Re: [Etherlab-users] Configuring EL7047 stepper driver

2021-07-26 Thread Gavin Lambert
tion. -Original Message- From: Fontana Nicola Sent: Monday, 26 July 2021 5:21 pm To: Gavin Lambert ; Graeme Foot ; etherlab-users@etherlab.org Subject: Re: [Etherlab-users] Configuring EL7047 stepper driver Il giorno lun, 26/07/2021 alle 04.54 +, Gavin Lambert ha scritto: > ...

Re: [Etherlab-users] Configuring EL7047 stepper driver

2021-07-26 Thread Gavin Lambert
etherlab-users@etherlab.org Subject: Re: [Etherlab-users] Configuring EL7047 stepper driver Hi Nicola, The first thing is don't try to configure slaves via the ethercat command line utility. You need to run an application (see the examples folder for various example applications). The second thing

Re: [Etherlab-users] Configuring EL7047 stepper driver

2021-07-25 Thread Fontana Nicola
Il giorno lun, 26/07/2021 alle 04.54 +, Gavin Lambert ha scritto: > ... > It's not really something you can do from a bash script. Hi Gavin, yes, I learnt it the hard way. That particular device has fixed PDO mappings and settings, i.e. all 0x1[468A]? entries are read-only. The only

Re: [Etherlab-users] Configuring EL7047 stepper driver

2021-07-25 Thread Fontana Nicola
Il giorno lun, 26/07/2021 alle 01.46 +, Graeme Foot ha scritto: > Hi Nicola, > > The first thing is don't try to configure slaves via the ethercat command line > utility.  You need to run an application (see the examples folder for various > example applications). > The second thing is don't

Re: [Etherlab-users] Configuring EL7047 stepper driver

2021-07-25 Thread Graeme Foot
Hi Nicola, The first thing is don't try to configure slaves via the ethercat command line utility. You need to run an application (see the examples folder for various example applications). The second thing is don't try to manually configure each slave by direct SDO calls, there are functions