![]() |
提示! 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 Time service as producer or consumer.
Input:
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 (see ⇘ CL2.GetProperty (FUN)) |
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) |