CL2Driver (FB)ΒΆ
FUNCTION_BLOCK CL2Driver IMPLEMENTS ICL2Driver
CAN low-level driver
- InOut:
- Scope - Name - Type - Initial - Comment - Input - xEnable- BOOL- FALSE - Enable the CAN driver. - driverConfig- CAN driver configuration - xResetBusAlarm- BOOL- TRUE - 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 - xBusy- BOOL- True as long as driver is opened. - xError- BOOL- FALSE - Error occured. - eErrorID- ERROR.NO_ERROR - Error status. - xBusAlarm- BOOL- CAN bus alarm. - itfCL2Driver- ICL2Driver- Output to connect other function blocks requiring a CAN driver. Only valid if xBusy is true. 
