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

Using Codesys example problems

micik
2024-02-01
2024-02-03
  • micik - 2024-02-01

    Hello to all,
    I'm totally new to Codesys, but I do have some PLC programming experience, mosty with Siemens TIA and STEP7.

    I have just installed Codesys 3.5. sp19 and I have downloaded example with Ethernet Rockwell 1734AENT.
    The example can be found here:
    https://forge.codesys.com/prj/codesys-example/rockwell-1734-c/home/Home/

    After opening, I had to manually update devices (Device, Ethernet, IP Scanner, EthernetIP adapter).
    However, when trying to build the project, I get the following errors:

    [WARNING] CODESYS_EtherNetIP_Rockwell1734AENT: Library Manager [Device: PLC Logic: Application]: C0100: Library System_VisuElemXYChart has not been added to the Library Manager, or no valid license could be found
    [WARNING] CODESYS_EtherNetIP_Rockwell1734AENT: Library Manager [Device: PLC Logic: Application]: C0100: Library system_visuinputs has not been added to the Library Manager, or no valid license could be found
    [ERROR] iodrvethernetip, 4.4.1.0 (3s - smart software solutions gmbh): ServiceCycle [IoDrvEtherNetIP]: C0040: Function 'ProcessUpdateConfigurationQueue' requires exactly '1' inputs
    [ERROR] iodrvethernetip, 4.4.1.0 (3s - smart software solutions gmbh): IoDrvStartBusCycle [IoDrvEtherNetIP]: C0040: Function 'GenerateRandomUINT' requires exactly '2' inputs
    [ERROR] iodrvethernetip, 4.4.1.0 (3s - smart software solutions gmbh): Cyclic [GenericServiceUnConnected]: C0040: Function 'GenerateRandomUINT' requires exactly '2' inputs
    [ERROR] cip object, 4.4.1.0 (3s - smart software solutions gmbh): ForwardOpenService [ConnectionManager]: C0040: Function 'GetAssemblies' requires exactly '3' inputs
    [ERROR] iodrvethernetipadapter, 4.4.0.0 (3s - smart software solutions gmbh): ServiceCycle [IoDrvEtherNetIPAdapter]: C0040: Function 'GenerateRandomUINT' requires exactly '2' inputs
    [ERROR] iodrvethernetip, 4.4.1.0 (3s - smart software solutions gmbh): SetupStructuredIOMapping [RemoteAdapter]: C0040: Function 'MallocData' requires exactly '1' inputs
    [ERROR] iodrvethernetip, 4.4.1.0 (3s - smart software solutions gmbh): SetupStructuredIOMapping [RemoteAdapter]: C0040: Function 'MallocData' requires exactly '1' inputs
    Compile complete -- 7 errors, 13 warnings
    Build complete -- 7 errors, 13 warnings : no download possible!

    What could be the reason for this errors and how to rectify them?

    Thank you!

     
  • dhumphries - 2024-02-03

    You have to install any libraries needed by the sample program. Click the button with ... next to one of the errors (see attached image,) then choose download missing libraries. Codesys should automatically locate and install the missing libraries, it's not flawless though, I've had some issues getting libraries to install. The best advice I can give if it doesn't work is re-install Codesys.

     

Log in to post a comment.