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.