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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm using weintek and Codesys V3.5 SP22 when I try to charge an ethernetIP device show me this error:
more posts ...
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.