CL2.EnableSyncService* (FUN)

 

This function of the CAA_CanL2.library activates the CANopen Sync service as producer or as consumer, see Concept : Can Mini Driver.

Input:

hDriver

CAA.HANDLE

handle of CAN interface

cobId

CL2I.COBID

xRTR

BOOL

bit sign of RTR flag

x29BitId

BOOL

bit sign of message type

xSyncProducer*

BOOL

TRUE: SYNC-Producer, FALSE: SYNC-Consumer

xEnableSyncEvent*

BOOL

determines if SYNC event is activated

udiSyncCycle

UDINT

cycle period of SYNC message [µs]

udiSyncWindowLength*

UDINT

window length of CANopen SYNC message (see Concept : Can Mini Driver)

udiSyncForewarnTime*

UDINT

forewarn time before sending a SYNC message (see Concept : Can Mini Driver)

Output:

eError

CL2.ERROR

error code (enumeration type)