RS485 CAN HAT to Cosesys

selim
2024-10-28
2024-10-28
  • selim - 2024-10-28

    How can i add RS485(RS485 CAN HAT) port to codesys program?

     
  • eschwellinger

    eschwellinger - 2024-10-28

    Hi
    if you add in (ttyAMA0 should fit to your HAT's device

    [SysCom] 
    Linux.Devicefile.1=/dev/ttyAMA0
    

    to
    /etc/CODESYSControl_Usr.cfg

    since 4.12.0.0 version
    /etc/codesyscontrol/CODESYSControl_Usr.cfg

    then access in CODESYS with Com1 should do it.
    Keep in mind that only adapters work (for RS485) which do determine the send/receive direction
    in hardware

     

Log in to post a comment.