This function of the CAA_CanL2.library activates the CANopen Time service as producer or consumer.
hDriver |
CAA.HANDLE |
handle of CAN interface |
cobId |
CL2I.COBID |
|
xTimeProducer* |
BOOL |
TRUE: TIME-Producer, FALSE; TIME-Consumer |
xEnableTimeEvent* |
BOOL |
determines if TIME event is activated |
xEnableHighRes |
BOOL |
determines if high resolution protocol is applied |
udiTimeCycle |
UDINT |
cycle period of TIME message [µs] |
udiTimeForewarnTime* |
UDINT |
forewarn time before sending a TIME message (see TIME function) |
eError |
CL2.ERROR |
error code (enumeration type) |