Raw CAN communications

Hi Everyone,

I usually work with PLCs in CodeSys, but a client has requested we use a Phoenix AXC F 2152 PLC with an AXL F IF CAN 1H add on block for CANbus communication.

I've been trying to utlilise the [url="https://www.plcnextstore.com/563"]CanBus library[/url] but i'm coming up with an error that says the IL_CAN_COMM Function block cannot find the udtAsyCom datatype.

I'm also fairly confused about how to enable and configure the controller and ioblock to allow for the receival and sending of CAN messages from other controllers

![](https://i.imgur.com/yztbIem.png)

Edit: Sorry, the original screencapture didnt include the correct error code/ udtAsynCom issue

![](https://i.imgur.com/6GPyzUo.png)

Sorry for the long delay.

Here is the answer from the PLCnext Engineer support team:

[quote]In order to be able to use the Can FB, 2 libraries must be added in PLCnext (CANbus and AsynCom). The AsynCom library is supplied when the downloaded CanBus library is unpacked.[/quote]