Re: [etherlab-users] API for enabling/disabling sync managers of a slave

2018-10-01 Thread Gavin Lambert
That looks fine as far as it goes, but you do need to run the cyclic loop after calling ecrt_master_activate. That kicks off the configuration process but it requires several cycles to complete and actually transition the slaves to OP. And once your application exits, the master will

Re: [etherlab-users] Requesting application layer state change in code

2018-10-01 Thread Gavin Lambert
Ordinarily you just call ecrt_master_activate to activate the master. This will return slaves to PREOP (if they’re somehow in a different state – PREOP is the normal state when the master is not active however), configure them, then bring them to SAFEOP and then OP. It will also do this again

Re: [etherlab-users] API for enabling/disabling sync managers of a slave

2018-10-01 Thread Mohsen Alizadeh Noghani
I still haven't been able to enable sync managers (and thus change the state to SAFEOP) Currently, I'm executing this code , which is basically the user example. Output of $ethercat xml of the slave is: 30101

Re: [etherlab-users] Requesting application layer state change in code

2018-10-01 Thread messiah esfahani
Thanks Ronaldo. Now my question is, which function changes the state from PREOP to SAFEOP? Does "ecrt_master_activate" request this state transition too? Sincerely, Messiah On Mon, Oct 1, 2018 at 12:24 PM ronaldo.merc...@diamond.ac.uk < ronaldo.merc...@diamond.ac.uk> wrote: > Hi, > > > > It is

Re: [etherlab-users] Requesting application layer state change in code

2018-10-01 Thread ronaldo.merc...@diamond.ac.uk
Hi, It is the “ecrt_master_activate” call that causes the change from SAFEOP -> OP Ronaldo From: etherlab-users On Behalf Of messiah esfahani Sent: 01 October 2018 09:40 To: etherlab-users@etherlab.org Subject: [etherlab-users] Requesting application layer state change in code Dear EtherLab

[etherlab-users] Requesting application layer state change in code

2018-10-01 Thread messiah esfahani
Dear EtherLab users, How can I request a change in application layer of a slave (e.g. SAFEOP -> OP) in code? I have examined the examples and although they all eventually begin exchanging data with PDOs, I have not encountered an explicit function call that causes the transition from