CL2.EnableSyncService* (FUN)

提示!

The interfaces of this component contains inputs and outputs which drive and diagnose optional functionalities. With “ CL2.GetProperty” you can check, whether a driver supports a certain functionality or not. If not, its input and output values are irrelevant.

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 (see CL2.GetProperty (FUN)

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)