Of course, I have Berghof ECC2100 PLC and do following steps:
1. Add Device: Ethernet 3.5.8.20
2. Add Device: ModbusTCP_Slave_Device 3.5.5.0
3. Set Ethernet device with proper IP
Then I try to Build application and get 66 errors, everyone follows to library "IoDrvEthernet 3.5.8.20"
Please see attached files.
I have another Modbus project for the same PLC that is running well without this library. But the library is added automatically when I add device "Ethernet". May I prevent Codesys from adding this library?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
several posibilities.
1. Ask the Berghof Support for their advice
2. you could dowgrade the Ethernet device by 'Update device'
3. Update the plc device to SP8 Version if available (->Berghof Support)
BR
Edwin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Edwin, thank you! 2. I tried do downgrade Ethernet device from 3.5.8.20 (that is the newest one in my libraries) to 3.5.6.0. After Device addition I got IoDrvModbusTCPSlave 3.5.5.0 library automatically inserted (no IoDrvEthernet was added). And the Build succeed! )
3. What do you mean by "PLC device SP8? The only information I got from PLC device is
"Berghof MX6 Control - Runtime Version 3.5.5.40". Where can I get the current SP info?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
When I add Ethernet to my project to allow Modbus TCP/IP, I get a whole list (55 errors), due to iodrvethernet.
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): InitNIC [IoDrvEthernet]: C0077: Unknown type: 'SysSocket.SOCK_ADAPTER_INFORMATION'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): InitNIC [IoDrvEthernet]: C0032: Cannot convert type 'Unknown type: 'SysSocket.SysSockGetFirstAdapterInfo(pAdapterInfo := ADR(strAdapterInfo), puxiAdapterInfoSize := ADR(uxiSize), pResult := ADR(udiResult))'' to type 'POINTER TO BYTE'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): InitNIC [IoDrvEthernet]: C0035: Program name, function or function block instance expected instead of 'SysSocket.SysSockGetFirstAdapterInfo'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): InitNIC [IoDrvEthernet]: C0063: 'syssocket, 3.5.4.0 (system)' contains no definition for 'SysSockGetFirstAdapterInfo'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): InitNIC [IoDrvEthernet]: C0032: Cannot convert type 'Unknown type: 'ADR(strAdapterInfo.wsName)'' to type 'POINTER TO WORD'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): InitNIC [IoDrvEthernet]: C0077: Unknown type: 'strAdapterInfo.wsName'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): InitNIC [IoDrvEthernet]: C0077: Unknown type: 'SysSocket.SOCK_ADAPTER_INFORMATION'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): InitNIC [IoDrvEthernet]: C0032: Cannot convert type 'Unknown type: 'ADR(strAdapterInfo.IpAddr)'' to type 'POINTER TO BYTE'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): InitNIC [IoDrvEthernet]: C0077: Unknown type: 'strAdapterInfo.IpAddr'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): InitNIC [IoDrvEthernet]: C0077: Unknown type: 'SysSocket.SOCK_ADAPTER_INFORMATION'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): InitNIC [IoDrvEthernet]: C0032: Cannot convert type 'Unknown type: 'ADR(strAdapterInfo.NetMask)'' to type 'POINTER TO BYTE'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): InitNIC [IoDrvEthernet]: C0077: Unknown type: 'strAdapterInfo.NetMask'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): InitNIC [IoDrvEthernet]: C0077: Unknown type: 'SysSocket.SOCK_ADAPTER_INFORMATION'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): InitNIC [IoDrvEthernet]: C0032: Cannot convert type 'Unknown type: 'SysSocket.SysSockGetNextAdapterInfo(hPrevAdapter := hNext, pAdapterInfo := ADR(strAdapterInfo), puxiAdapterInfoSize := ADR(uxiSize), pResult := ADR(udiResult))'' to type 'POINTER TO BYTE'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): InitNIC [IoDrvEthernet]: C0035: Program name, function or function block instance expected instead of 'SysSocket.SysSockGetNextAdapterInfo'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): InitNIC [IoDrvEthernet]: C0063: 'syssocket, 3.5.4.0 (system)' contains no definition for 'SysSockGetNextAdapterInfo'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0077: Unknown type: 'SysSocket.SOCK_ADAPTER_INFORMATION'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0032: Cannot convert type 'Unknown type: 'SysSocket.SysSockGetFirstAdapterInfo(pAdapterInfo := ADR(strAdapterInfo), puxiAdapterInfoSize := ADR(uxiSize), pResult := ADR(udiResult))'' to type 'POINTER TO BYTE'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0035: Program name, function or function block instance expected instead of 'SysSocket.SysSockGetFirstAdapterInfo'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0063: 'syssocket, 3.5.4.0 (system)' contains no definition for 'SysSockGetFirstAdapterInfo'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0032: Cannot convert type 'Unknown type: 'ADR(strAdapterInfo.wsName)'' to type 'POINTER TO WORD'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0077: Unknown type: 'strAdapterInfo.wsName'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0077: Unknown type: 'SysSocket.SOCK_ADAPTER_INFORMATION'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0032: Cannot convert type 'Unknown type: 'ADR(strAdapterInfo.IpAddr)'' to type 'POINTER TO BYTE'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0077: Unknown type: 'strAdapterInfo.IpAddr'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0077: Unknown type: 'SysSocket.SOCK_ADAPTER_INFORMATION'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0032: Cannot convert type 'Unknown type: 'ADR(strAdapterInfo.NetMask)'' to type 'POINTER TO BYTE'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0077: Unknown type: 'strAdapterInfo.NetMask'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0077: Unknown type: 'SysSocket.SOCK_ADAPTER_INFORMATION'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0032: Cannot convert type 'Unknown type: 'SysSocket.SysSockSetIpAddressAndNetMask(wsAdapterName := NetworkInterfaceName, IpAddr := IPAddress, NetMask := Subnetmask)'' to type 'UDINT'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0035: Program name, function or function block instance expected instead of 'SysSocket.SysSockSetIpAddressAndNetMask'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0063: 'syssocket, 3.5.4.0 (system)' contains no definition for 'SysSockSetIpAddressAndNetMask'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0032: Cannot convert type 'Unknown type: 'ADR(strAdapterInfo.IpAddr)'' to type 'POINTER TO BYTE'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0077: Unknown type: 'strAdapterInfo.IpAddr'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0077: Unknown type: 'SysSocket.SOCK_ADAPTER_INFORMATION'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0032: Cannot convert type 'Unknown type: 'strAdapterInfo.IpAddr.ulAddr'' to type 'UDINT'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0077: Unknown type: 'SysSocket.SOCK_ADAPTER_INFORMATION'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0032: Cannot convert type 'Unknown type: 'ADR(strAdapterInfo.NetMask.ulAddr)'' to type 'POINTER TO BYTE'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0077: Unknown type: 'strAdapterInfo.NetMask.ulAddr'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0077: Unknown type: 'SysSocket.SOCK_ADAPTER_INFORMATION'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0032: Cannot convert type 'Unknown type: 'strAdapterInfo.NetMask.ulAddr'' to type 'UDINT'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0077: Unknown type: 'SysSocket.SOCK_ADAPTER_INFORMATION'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0032: Cannot convert type 'Unknown type: 'SysSocket.SysSockGetNextAdapterInfo(hPrevAdapter := hNext, pAdapterInfo := ADR(strAdapterInfo), puxiAdapterInfoSize := ADR(uxiSize), pResult := ADR(udiResult))'' to type 'POINTER TO BYTE'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0035: Program name, function or function block instance expected instead of 'SysSocket.SysSockGetNextAdapterInfo'
[ERROR] iodrvethernet, 3.5.8.0 (3s - smart software solutions gmbh): SetIPAddressAndSubnetmask [IoDrvEthernet]: C0063: 'syssocket, 3.5.4.0 (system)' contains no definition for 'SysSockGetNextAdapterInfo'
Compile complete -- 45 errors, 0 warnings
I have a fresh installation of Codesys 3.5 SP8, any clue what is causing this?
Hi,
is there any missing library reported in the LibraryManager?
BR
Edwin
If grey means missing then yes:
- IoDrvEthernet version 3.5.8
- IoDrvModbus version 3.5.8
- IoStandard version 3.5.4
but they are all listed and I can browse them.
write an email to support..
done, but no reply till today.
Hi,
I sent you an email on 23th - 12:15 this is for sure.
Could you check if this email is somewhere in spam...
BR
Edwin
Hi Edwin,
I just checked, but did not find anything in the spam folder either. Can you resend the email?
BR,
Martin
I have the same issue in my project. I got 66 error referring to "IpdrvEthernet" library that is grey colored.
Can you send me the library as well?
Hi,
could you give me some version Information and screenshot of library manager and message view?
BR
Edwin
Of course, I have Berghof ECC2100 PLC and do following steps:
1. Add Device: Ethernet 3.5.8.20
2. Add Device: ModbusTCP_Slave_Device 3.5.5.0
3. Set Ethernet device with proper IP
Then I try to Build application and get 66 errors, everyone follows to library "IoDrvEthernet 3.5.8.20"
Please see attached files.
I have another Modbus project for the same PLC that is running well without this library. But the library is added automatically when I add device "Ethernet". May I prevent Codesys from adding this library?
Hi,
several posibilities.
1. Ask the Berghof Support for their advice
2. you could dowgrade the Ethernet device by 'Update device'
3. Update the plc device to SP8 Version if available (->Berghof Support)
BR
Edwin
Hi Edwin, thank you!
2. I tried do downgrade Ethernet device from 3.5.8.20 (that is the newest one in my libraries) to 3.5.6.0. After Device addition I got IoDrvModbusTCPSlave 3.5.5.0 library automatically inserted (no IoDrvEthernet was added). And the Build succeed! )
3. What do you mean by "PLC device SP8? The only information I got from PLC device is
"Berghof MX6 Control - Runtime Version 3.5.5.40". Where can I get the current SP info?