OpenEtherCATsociety / SOES

Simple Open Source EtherCAT Slave
Other
578 stars 249 forks source link

Init CoE SDO defaults on SOES stack init #76

Closed nakarlsson closed 4 years ago

nakarlsson commented 4 years ago

The init of COE SDO defaults shall not be part of the state machine according to ETG. Move the init to SOES stack init where it will only be run once.

Small editorial changes on function and paranthesis to unify in that function.

ETG input " When the slave starts-up and once the CoE OD is available, i.e. once PREOP state is confirmed, the default values are expected to be available. " " According to the EtherCAT specification the Mailbox communication stops during state transition PreOp to Init, cf. ETG.1000.6 – AL State Machine. This means, the default values can only set by the Slave Application itself within Init state, which in case is Application specific and not specified by EtherCAT. As you said with CanOpen, resetting the values is a common way in communication technology and so some Masters do so, e.g. TwinCAT." "