TMCM-1310 TMCL Firmware V1.11 Manual (Rev. 1.16 / 2014-MAR-19)
9
www.trinamic.com
3.2
EtherCAT Slave State Machine
The EtherCAT slave state machine has four states, which are shown in Figure 3.4. After power ON the slave
state machine is in the
Init state
. In this situation mailbox and process data communication is impossible.
The EtherCAT master initializes the SyncManager channels 0 and 1 for the communication via mailbox.
While changeover from
Init state
to
Pre-Operational state
the EtherCAT slave checks the correct
initialization of the mailbox. Afterwards mailbox communication is possible. Now, in the
Pre-Operational
state
the master initializes the SyncManager channels for the process data and the FMMU channels.
Furthermore adjustments are sent, which differ from the default values.
While changeover from
Pre-Operational state
to
Safe-Operational state
the EtherCAT slave checks the
correct initialization of the SyncManager channels for the process data as well as the adjustments for the
Distributed Clocks. Before accepting the change of state, the EtherCAT slave copies actual input data into
the accordant DP-RAM array of the EtherCAT slave controller. In the
Safe-Operational state
mailbox and
process data communication are possible, but the slave holds its outputs in a safe situation and actualizes
the input data periodically.
Before the EtherCAT slave changes the state to
Operational
it has to transfer valid output data. In the
Operational state
the EtherCAT slave copies the output data from the EtherCAT master to its outputs.
Process data communication and mailbox communication are possible now.
The
Bootstrap
state
is only used for updating the firmware. This state is reachable form the
Init state
.
During
Bootstrap state
mailbox communication is available over
File-Access over EtherCAT.
Beyond this
mailbox communication or process data communication is not possible.
Pre-Operational
Operational
Init
Safe-Operational
EtherCAT™ Slave State Machine
Bootstrap
(optional)
Figure 3.4 EtherCAT™ slave state machine