Skip to main content

Sync Manager (SM) and FMMU

New to EtherCAT

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:

SMTypeDirectionUse
SM0Mailboxmaster → slaveMailbox output
SM1Mailboxslave → masterMailbox input
SM2Buffered/PDOmaster → slaveProcess data output
SM3Buffered/PDOslave → masterProcess data input

SM operating modes​

A Sync Manager supports two buffering modes:

ModeDescriptionUsed for
Buffered (three buffers)Writes do not block reads, and the latest data is always availablePDO process data (SM2/SM3)
Mailbox (handshake)Locked after a write, released after a readMailbox 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:

ParameterDescription
Logical start addressStart position in the logical address space
Data lengthSize of the mapped data (bytes)
Logical start bitBit-level start offset (0-7)
Logical end bitBit-level end offset (0-7)
Physical start addressPhysical memory address inside the ESC
DirectionRead (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
Automatic configuration

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.

SDK reference
  • SM/FMMU configuration is handled automatically by the master.
  • Use DARRA EtherCAT Master Tools to inspect SM and FMMU settings visually