Expand description
Synchronisation object (SYNC) — the network heartbeat for synchronous communication (CiA 301 §7.2.5).
SYNC is a high-priority, broadcast frame produced periodically by a single
node (the SYNC producer). It carries no addressed data: consumers act on
its arrival — sampling inputs, applying synchronous RPDOs, transmitting
synchronous TPDOs. The frame is empty by default, or carries a single
counter byte when the producer’s synchronous-counter-overflow value
(object 0x1019) is set to 2..=240.
The default COB-ID is 0x080 (SYNC_COB_ID), configurable via object
0x1005.
Structs§
- Sync
Counter - The counter for a SYNC producer (CiA 301 §7.2.5.2.1).
Constants§
- SYNC_
COB_ ID - The default SYNC COB-ID (
0x080), configurable via object0x1005.
Functions§
- decode
- Decode a received SYNC frame’s data field.
- encode_
counter - The data field of a counting SYNC carrying
count. - is_
valid_ counter_ overflow - Whether a synchronous-counter-overflow value (object
0x1019) is valid:0disables the counter (empty SYNC), and2..=240enables a counting SYNC. The value1is reserved.