MSG_ONL0166
Hello,
We installed PLCnext Engineer on three different computers (for educational purposes), but we get error MSG_ONL0166 when we try to connect to the controller. The strange thing is that the computer does, in fact, communicate with the PLC, since we can access the wbm.
We already tried on PLCnext Engineer builds 2022.0.1, 2022.0.2, and 2022.3; as well as with different PLCs... what else can we do?
Comments
Do the IP address details of the (offline) controller in PLCnext Engineer match the IP address details of the (online) physical PLC?
Can you see the PLC in the "online devices" window, after selecting the correct Ethernet adapter?
Yes, the IPs do match. Both the project and the PLC are set on 192.168.1.10.
No, no online controller is found in said window... we just get the error message implying there's no connected PLC.
What is the IP address of the PC running PLCnext Engineer, on the Ethernet adapter connected to the PLC?
If you can access the WBM page, then you should also be able to retrieve the Output.log file, using either WinSCP or the scp command from a Windows command prompt:
Please check the contents of the Output.log file for any errors or warnings. These might help explain why PLCnext Engineer cannot connect.
The IP is 192.168.1.5.
I'll get back to you as soon as possible with the log.
It's also worth checking the firmware version in the PLCnext Engineer project vs. the physical controller. PLCnext Engineer cannot connect to a PLC with a firmware version that is earlier than the firmware version in the "offline" controller (in the project tree). e.g. if the PLCnext Engineer project was created with a controller with FW version 2022.3, it will not connect with a controller that has FW version 2022.0.x or earlier.
This does not explain why the controller does not appear in the Online Controllers window, but perhaps this will fix the problem for you.
I had a similar problem a while ago (PLC did not show up in Online Controllers but WinSCP worked).
The solution for me was to reset the PLC to factory defaults via the hardware button.