Skip to content

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 CanBus library 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

yztbIem.png

Comments

  • Edit: Sorry, the original screencapture didnt include the correct error code/ udtAsynCom issue
    6GPyzUo.png
  • Sorry for the long delay.

    Here is the answer from the PLCnext Engineer support team:
    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.
Sign In or Register to comment.