Skip to content

SYNC_PRODUCER


The SYNC_PRODUCER function block is used in the CANopen protocol to generate SYNC messages periodically or in response to certain events. SYNC messages are broadcast messages that are used for synchronization purposes among nodes in a CANopen network. The SYNC_PRODUCER function block generates these SYNC messages based on the inputs provided and manages the related functionality.

INPUTS

INTERFACE_ID: Identifier of the CANopen interface to which the SYNC messages will be sent.

TIME_INTERVAL: Time interval for generating the SYNC messages. This could be a predefined value or a parameter that can be configured.

EVENT_INPUT: Input for triggering the generation of SYNC messages based on certain events, such as changes in data or status.

OUTPUTS

ERROR: Indicates any error condition that may occur during the operation of the SYNC_PRODUCER function block.

STATE: Represents the current state of the function block, such as “Running”, “Stopped”, or “Error”.