Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Compiler errors when adding Ethernet device

2018-10-03
2018-10-05
  • penngolliwog - 2018-10-03

    Hi everyone,

    Sorry if this is not the correct board to post on.

    I am using Codesys Control for IOT2000 (a free demo version is available on the store).

    When I do the following things, it can compile:
    -create a blank IOT2000 device application
    -add the CAA File library
    -declare an instance of FILE.Open in PLC_PRG

    But when I add an Ethernet device, compiler errors occur.

    Does anyone know how this could be resolved? I'd prefer not to use SysFile / SysFileAsync

    IMG: Compile OK.PNG

    IMG: Compile errors after adding Ethernet.PNG

    IMG: All compile errors.PNG

     
  • penngolliwog - 2018-10-05

    Solved!
    If an Ethernet device is present, the compiler needs CAA File to be in the Device Application library manager.
    If there is no Ethernet device present, CAA File can be in either the Application or Device Application library managers.

    IMG: working with Ethernet adapter.PNG

     

Log in to post a comment.