[Error] IoDrvEtherNetIP Library with Weintek

brandonje
2026-08-20
2 days ago
  • brandonje - 2026-08-20

    I'm using weintek and Codesys V3.5 SP22 when I try to charge an ethernetIP device show me this error:

                    ------ Build started: Application: Device.Application -------
                    Typify code...
    [ERROR]         cip object, 4.9.0.0 (codesys): TCPIP_Interface: C0231:  Expression of type 'BOOL' expected in this place
    [ERROR]         cip object, 4.9.0.0 (codesys): TCPIP_Interface: C0077:  Unknown type: '(_pPhysicalLink^._xLinkState <> CmpSysEthernet.OperStatus.SYSETH_OPERSTAT_Up)'
    [ERROR]         cip object, 4.9.0.0 (codesys): TCPIP_Interface: C0077:  Unknown type: 'CmpSysEthernet.OperStatus.SYSETH_OPERSTAT_Up'
    [ERROR]         cip object, 4.9.0.0 (codesys): TCPIP_Interface: C0062:  'CmpSysEthernet.OperStatus' is no structured variable
    [ERROR]         cip object, 4.9.0.0 (codesys): TCPIP_Interface: C0063:  'CMPSYSETHERNET, 3.4.3.0 (3S - SMART SOFTWARE SOLUTIONS GMBH)' contains no definition for 'OperStatus'
    [ERROR]         cip object, 4.9.0.0 (codesys): SendEthFrame [TCPIP_Interface]: C0077:  Unknown type: 'SysEthernetFrame'
    [ERROR]         cip object, 4.9.0.0 (codesys): SendEthFrame [TCPIP_Interface]: C0046:  Identifier '_diAdapterNumber' not defined
    [ERROR]         cip object, 4.9.0.0 (codesys): SendEthFrame [TCPIP_Interface]: C0032:  Cannot convert type 'Unknown type: '_diAdapterNumber'' to type 'DINT'
    [ERROR]         cip object, 4.9.0.0 (codesys): SendEthFrame [TCPIP_Interface]: C0032:  Cannot convert type 'Unknown type: 'ADR(ethFrame.ethData)'' to type 'POINTER TO StructEthernetframe'
    [ERROR]         cip object, 4.9.0.0 (codesys): SendEthFrame [TCPIP_Interface]: C0077:  Unknown type: 'ethFrame.ethData'
    [ERROR]         cip object, 4.9.0.0 (codesys): SendEthFrame [TCPIP_Interface]: C0077:  Unknown type: 'SysEthernetFrame'
    [ERROR]         cip object, 4.9.0.0 (codesys): SendEthFrame [TCPIP_Interface]: C0032:  Cannot convert type 'Unknown type: 'ethFrame.udFrameLen'' to type 'ANY'
    [ERROR]         cip object, 4.9.0.0 (codesys): SendEthFrame [TCPIP_Interface]: C0077:  Unknown type: 'SysEthernetFrame'
    [ERROR]         cip object, 4.9.0.0 (codesys): _OpenEthAdapter [TCPIP_Interface]: C0032:  Cannot convert type 'Unknown type: '((driverInstance * 2) + 1)'' to type 'ANY'
    [ERROR]         cip object, 4.9.0.0 (codesys): _OpenEthAdapter [TCPIP_Interface]: C0077:  Unknown type: '(driverInstance * 2)'
    [ERROR]         cip object, 4.9.0.0 (codesys): _OpenEthAdapter [TCPIP_Interface]: C0077:  Unknown type: 'driverInstance'
    [ERROR]         cip object, 4.9.0.0 (codesys): _OpenEthAdapter [TCPIP_Interface]: C0046:  Identifier 'driverInstance' not defined
    [ERROR]         cip object, 4.9.0.0 (codesys): SendFrame [TCPIP_Interface]: C0077:  Unknown type: 'SysEthernetFrame'
    [ERROR]         cip object, 4.9.0.0 (codesys): SendFrame [TCPIP_Interface]: C0231:  Expression of type 'BOOL' expected in this place
    [ERROR]         cip object, 4.9.0.0 (codesys): SendFrame [TCPIP_Interface]: C0077:  Unknown type: 'SIZEOF(ethFrame.ethData)'
    [ERROR]         cip object, 4.9.0.0 (codesys): SendFrame [TCPIP_Interface]: C0077:  Unknown type: 'ethFrame.ethData'
    [ERROR]         cip object, 4.9.0.0 (codesys): SendFrame [TCPIP_Interface]: C0077:  Unknown type: 'SysEthernetFrame'
    [ERROR]         cip object, 4.9.0.0 (codesys): SendFrame [TCPIP_Interface]: C0018:  'ethFrame.udFrameLen' is no valid assignment target
    [ERROR]         cip object, 4.9.0.0 (codesys): SendFrame [TCPIP_Interface]: C0077:  Unknown type: 'SysEthernetFrame'
    [ERROR]         cip object, 4.9.0.0 (codesys): SendFrame [TCPIP_Interface]: C0032:  Cannot convert type 'Unknown type: 'ADR(ethFrame.ethData)'' to type 'POINTER TO BYTE'
    [ERROR]         cip object, 4.9.0.0 (codesys): SendFrame [TCPIP_Interface]: C0077:  Unknown type: 'ethFrame.ethData'
    [ERROR]         cip object, 4.9.0.0 (codesys): SendFrame [TCPIP_Interface]: C0077:  Unknown type: 'SysEthernetFrame'
    [ERROR]         cip object, 4.9.0.0 (codesys): SendFrame [TCPIP_Interface]: C0201:  Type 'SysEthernetFrame' is not equal to type 'SysEthernetFrame' of VAR_IN_OUT respectively REFERENCE 'ethFrame'
    [ERROR]         cip object, 4.9.0.0 (codesys): _CloseEthAdapter [TCPIP_Interface]: C0046:  Identifier 'ethClose' not defined
    [ERROR]         cip object, 4.9.0.0 (codesys): _CloseEthAdapter [TCPIP_Interface]: C0018:  'ethClose' is no valid assignment target
    [ERROR]         cip object, 4.9.0.0 (codesys): _CloseEthAdapter [TCPIP_Interface]: C0046:  Identifier '_diAdapterNumber' not defined
    [ERROR]         cip object, 4.9.0.0 (codesys): _CloseEthAdapter [TCPIP_Interface]: C0032:  Cannot convert type 'Unknown type: '_diAdapterNumber'' to type 'DINT'
    [ERROR]         cip object, 4.9.0.0 (codesys): _CloseEthAdapter [TCPIP_Interface]: C0046:  Identifier '_diAdapterNumber' not defined
    [ERROR]         cip object, 4.9.0.0 (codesys): _CloseEthAdapter [TCPIP_Interface]: C0018:  '_diAdapterNumber' is no valid assignment target
    [ERROR]         cip object, 4.9.0.0 (codesys): _CloseEthAdapter [TCPIP_Interface]: C0046:  Identifier '_stName' not defined
    [ERROR]         cip object, 4.9.0.0 (codesys): _CloseEthAdapter [TCPIP_Interface]: C0018:  '_stName' is no valid assignment target
    [ERROR]         cip object, 4.9.0.0 (codesys): _CloseEthAdapter [TCPIP_Interface]: C0046:  Identifier '_stDescription' not defined
    [ERROR]         cip object, 4.9.0.0 (codesys): _CloseEthAdapter [TCPIP_Interface]: C0018:  '_stDescription' is no valid assignment target
    [ERROR]         cip object, 4.9.0.0 (codesys): AddressConflictDetection [TCPIP_Interface]: C0231:  Expression of type 'BOOL' expected in this place
    [ERROR]         cip object, 4.9.0.0 (codesys): AddressConflictDetection [TCPIP_Interface]: C0077:  Unknown type: '(_pPhysicalLink^._xLinkState = CmpSysEthernet.OperStatus.SYSETH_OPERSTAT_Up)'
    [ERROR]         cip object, 4.9.0.0 (codesys): AddressConflictDetection [TCPIP_Interface]: C0077:  Unknown type: 'CmpSysEthernet.OperStatus.SYSETH_OPERSTAT_Up'
    [ERROR]         cip object, 4.9.0.0 (codesys): AddressConflictDetection [TCPIP_Interface]: C0062:  'CmpSysEthernet.OperStatus' is no structured variable
    [ERROR]         cip object, 4.9.0.0 (codesys): AddressConflictDetection [TCPIP_Interface]: C0063:  'CMPSYSETHERNET, 3.4.3.0 (3S - SMART SOFTWARE SOLUTIONS GMBH)' contains no definition for 'OperStatus'
    [ERROR]         cip object, 4.9.0.0 (codesys): Recv [TCPIP_Interface]: C0077:  Unknown type: 'SysEthernetFrame'
    [ERROR]         cip object, 4.9.0.0 (codesys): Recv [TCPIP_Interface]: C0046:  Identifier '_diAdapterNumber' not defined
    [ERROR]         cip object, 4.9.0.0 (codesys): Recv [TCPIP_Interface]: C0032:  Cannot convert type 'Unknown type: '_diAdapterNumber'' to type 'DINT'
    [ERROR]         cip object, 4.9.0.0 (codesys): Recv [TCPIP_Interface]: C0046:  Identifier '_diAdapterNumber' not defined
    [ERROR]         cip object, 4.9.0.0 (codesys): Recv [TCPIP_Interface]: C0032:  Cannot convert type 'Unknown type: '_diAdapterNumber'' to type 'DINT'
    [ERROR]         memory block manager, 3.5.21.30 (codesys): ObjectRetain [Disposable]: C0448:  Operator '__XADD' is not supported by your current target. At least runtime system version 3.5.14.0 is required.
    [ERROR]         memory block manager, 3.5.21.30 (codesys): ObjectRelease [Disposable]: C0448:  Operator '__XADD' is not supported by your current target. At least runtime system version 3.5.14.0 is required.
    [ERROR]         cip object, 4.9.0.0 (codesys): SendFrame [LLDP_Management]: C0077:  Unknown type: 'SysEthernetFrame'
    [ERROR]         cip object, 4.9.0.0 (codesys): SendFrame [LLDP_Management]: C0201:  Type 'SysEthernetFrame' is not equal to type 'SysEthernetFrame' of VAR_IN_OUT respectively REFERENCE 'frame'
    [ERROR]         cip object, 4.9.0.0 (codesys): SendFrame [LLDP_Management]: C0201:  Type 'SysEthernetFrame' is not equal to type 'SysEthernetFrame' of VAR_IN_OUT respectively REFERENCE 'ethFrame'
    [ERROR]         cip object, 4.9.0.0 (codesys): CreateFrame [LLDP_Management]: C0077:  Unknown type: 'SysEthernetFrame'
    [ERROR]         cip object, 4.9.0.0 (codesys): CreateFrame [LLDP_Management]: C0032:  Cannot convert type 'Unknown type: 'ADR(frame.ethData[0])'' to type 'POINTER TO BYTE'
    [ERROR]         cip object, 4.9.0.0 (codesys): CreateFrame [LLDP_Management]: C0077:  Unknown type: 'frame.ethData[0]'
    [ERROR]         cip object, 4.9.0.0 (codesys): CreateFrame [LLDP_Management]: C0077:  Unknown type: 'SysEthernetFrame'
    [ERROR]         cip object, 4.9.0.0 (codesys): CreateFrame [LLDP_Management]: C0032:  Cannot convert type 'Unknown type: 'SIZEOF(frame.ethData)'' to type 'UDINT'
    [ERROR]         cip object, 4.9.0.0 (codesys): CreateFrame [LLDP_Management]: C0077:  Unknown type: 'frame.ethData'
    [ERROR]         cip object, 4.9.0.0 (codesys): CreateFrame [LLDP_Management]: C0077:  Unknown type: 'SysEthernetFrame'
    [ERROR]         cip object, 4.9.0.0 (codesys): CreateFrame [LLDP_Management]: C0018:  'frame.udFrameLen' is no valid assignment target
    [ERROR]         cip object, 4.9.0.0 (codesys): CreateFrame [LLDP_Management]: C0077:  Unknown type: 'SysEthernetFrame'
    [ERROR]         iodrvethernetip, 4.9.0.0 (codesys): Receive [UcmmReceiver]: C0448:  Operator '__COMPARE_AND_SWAP' is not supported by your current target. At least runtime system version 3.5.14.0 is required.
    [ERROR]         iodrvethernetip, 4.9.0.0 (codesys): Send [UcmmReceiver]: C0448:  Operator '__COMPARE_AND_SWAP' is not supported by your current target. At least runtime system version 3.5.14.0 is required.
    [ERROR]         iodrvethernetip, 4.9.0.0 (codesys): Enqueue [UcmmQueue]: C0448:  Operator '__COMPARE_AND_SWAP' is not supported by your current target. At least runtime system version 3.5.14.0 is required.
    [ERROR]         iodrvethernetip, 4.9.0.0 (codesys): Enqueue [UcmmQueue]: C0448:  Operator '__XADD' is not supported by your current target. At least runtime system version 3.5.14.0 is required.
    [ERROR]         iodrvethernetip, 4.9.0.0 (codesys): Enqueue [UcmmQueue]: C0448:  Operator '__XADD' is not supported by your current target. At least runtime system version 3.5.14.0 is required.
    [ERROR]         iodrvethernetip, 4.9.0.0 (codesys): Dequeue [UcmmQueue]: C0448:  Operator '__XADD' is not supported by your current target. At least runtime system version 3.5.14.0 is required.
    [ERROR]         iodrvethernetip, 4.9.0.0 (codesys): Dequeue [UcmmQueue]: C0448:  Operator '__COMPARE_AND_SWAP' is not supported by your current target. At least runtime system version 3.5.14.0 is required.
    [ERROR]         iodrvethernetip, 4.9.0.0 (codesys): Dequeue [UcmmQueue]: C0448:  Operator '__XADD' is not supported by your current target. At least runtime system version 3.5.14.0 is required.
    [ERROR]         asynchronous job manager, 5.0.0.0 (codesys): ExtendAsync [FactoryBase]: C0448:  Operator '__COMPARE_AND_SWAP' is not supported by your current target. At least runtime system version 3.5.14.0 is required.
                    Compile complete -- 71 errors, 0 warnings
                    Build complete -- 71 errors, 0 warnings : No download possible
    
     
    πŸ‘
    1
  • YIN

    YIN - 2 days ago

    Hi, I ran into a very similar wall a while back, and the pattern in your log is what gave it away for me. Those 71 errors are not really about the EtherNet/IP device settings at all, they are all unresolved references inside cip object, things like SendEthFrame and the TCPIP_Interface calls, so the build fails before it ever gets to talking to the Weintek panel.

    In my case that usually meant the library version and the target did not line up, the library was expecting Ethernet functions the runtime on that device does not expose. I would start by checking in the Library Manager which libraries IoDrvEtherNetIP 4.9.0.0 is pulling in, and whether any of them show as missing or as a different version than the one shipped for SP22. If you get the chance, try the same project against a plain soft PLC target first, just to see whether it builds there, that tells you pretty quickly whether it is the device or the project itself.

    It is also worth a look at the device description for the Weintek target, to see whether the EtherNet/IP scanner is actually supported on that firmware, and whether the Ethernet adapter is selected under the device tree before you add the scanner. I have seen a project build clean once the adapter and the matching library version were sorted out, and fail with a long list like yours when one of them was off.

    If it still fails, the exact library versions and the target firmware version would help narrow it down a lot. And before you download anything to the live panel, please run it in simulation first and keep the safety circuits separate, I would not trust a first download on a running machine.

     

Log in to post a comment.