Sync Manager (SM) and FMMU
SM and FMMU are hardware blocks inside the EtherCAT slave chip. The master configures them from the ESI file automatically, so you normally do not set them by hand. Knowing what they do helps when you troubleshoot, but it does not affect day-to-day development. In short: SM = data buffer management, FMMU = address mapping.
Sync Manager (SM)
The SM keeps data consistent and prevents read/write conflicts:
| SM | Type | Direction | Use |
|---|---|---|---|
| SM0 | Mailbox | master → slave | Mailbox output |
| SM1 | Mailbox | slave → master | Mailbox input |
| SM2 | Buffered/PDO | master → slave | Process data output |
| SM3 | Buffered/PDO | slave → master | Process data input |
SM operating modes
A Sync Manager supports two buffering modes:
| Mode | Description | Used for |
|---|---|---|
| Buffered (three buffers) | Writes do not block reads, and the latest data is always available | PDO process data (SM2/SM3) |
| Mailbox (handshake) | Locked after a write, released after a read | Mailbox communication (SM0/SM1) |
How SM relates to the PDO channels
- SM2 manages the output channel (master → slave) and receives RxPDO data
- SM3 manages the input channel (slave → master) and sends TxPDO data
- The SM handles data consistency automatically, so reads and writes in the application layer do not conflict with bus communication
FMMU (Fieldbus Memory Management Unit)
What FMMU does
FMMU (Fieldbus Memory Management Unit) performs the mapping from logical addresses to physical addresses, so the master can reach the data of every slave through one logical address space without caring about the physical memory address of each slave.
Why FMMU is needed
Without FMMU, the master would have to send a read or write command to each slave individually (using physical addresses), which is inefficient. FMMU maps the data of several slaves into one contiguous logical address space, so the master reaches the data of all slaves with a single read or write operation.
FMMU mapping parameters
Each FMMU channel has the following settings:
| Parameter | Description |
|---|---|
| Logical start address | Start position in the logical address space |
| Data length | Size of the mapped data (bytes) |
| Logical start bit | Bit-level start offset (0-7) |
| Logical end bit | Bit-level end offset (0-7) |
| Physical start address | Physical memory address inside the ESC |
| Direction | Read (input) or write (output) |
How FMMU and SM work together
FMMU and SM work together to complete the data path from the logical address to the slave application:
Master sends a frame (logical address LRW)
↓
FMMU: logical address → physical address (inside the ESC)
↓
SM: physical address → buffer management (guarantees data consistency)
↓
Slave application layer reads/writes data
In most cases the master configures SM and FMMU automatically from the ESI file, and you do not set them yourself. Darra EtherCAT Master completes all SM and FMMU configuration during the state change PREOP → SAFEOP.
- SM/FMMU configuration is handled automatically by the master.
- Use DARRA EtherCAT Master Tools to inspect SM and FMMU settings visually