CL2Driver (FB)ΒΆ
FUNCTION_BLOCK CL2Driver IMPLEMENTS ICL2Driver
CAN low-level driver
- InOut:
Scope
Name
Type
Initial
Comment
Input
xEnableBOOLFALSE
Enable the CAN driver.
driverConfigCAN driver configuration
xResetBusAlarmBOOLTRUE
Reset a CAN bus alarm. If you want to reset by application code set xResetBusAlarm accordingly. If xResetBusAlarm is kept at default TRUE a CAN bus alarm is signaled for one cycle and reset automatically.
Output
xBusyBOOLTrue as long as driver is opened.
xErrorBOOLFALSE
Error occured.
eErrorIDERROR.NO_ERROR
Error status.
xBusAlarmBOOLCAN bus alarm.
itfCL2DriverICL2DriverOutput to connect other function blocks requiring a CAN driver. Only valid if xBusy is true.