Skip to content

Codesys - "Gateway not configured properly"

Hi,

I tried to use Codesys to program a F2152 controller, and followed the article

https://www.plcnext-community.net/en/codesys-control-for-plcnext.html

It worked rather well, however, the last step - Download and Execution of the PLC application - failed ;(

I see the Gateway-1 scanning, but not finding my axcf2152. Earlier steps confirmed communication with the PLC. When I click on Device - Applications and Refresh List, it says "Gateway not configured properly".

I do not understand how to configure that gateway properly, there is a tab called 'Gateway' but all you can change there is the TCP port. Can anybody help?

Comments

  • Did you already started the Codesys runtime after downloading it on the PLCnext?

  • I indeed clicked on that start button. However, I wonder how one check whether the runtime is actually running or not. There was no error after clicking start, but I also did not noticed the run LED on the PLC going on or off.

    There is a PLCnext Engineer program running in the device, is it possible to check if there might be a conflict which of the two has control, PLCnext Engineer or Codesys?

  • I can't help with Codesys, but it should not be possible to execute a PLCnext Engineer project after you've installed Codesys, because installing Codesys disables the startup of any PLCnext Engineer project that might be on the PLC. This makes sense, because only one PLC Runtime should be executed on a device like this at any one time ...

    If a PLCnext Engineer project is really running on the device, then something has gone wrong with the Codesys installation.

    ~ Martin.

  • I found a solution for the issue myself. I only edited the IP address and subnet mask, but it seems that the gateway configuration doesn't like that: it needs an accessible default gateway and dns server configuration.

    @Martin: You were right, the PLCnext Engineer application was not actually running anymore, it was somehow removed or inactivated while installing the Codesys Runtime Package.

    Do you how it works the other way around? When I disable and remove the Codesys Runtime Package, is there something one should do additionally to re-activate PLC next Engineer runtime?

  • Glad to hear that you solved the problem.

    In theory, uninstalling Codesys should restore the PLC to the state it was in before Codesys was installed. However I am not sure if that is currently the case; there were problems in the past with Codesys not uninstalling correctly. I don't know if Codesys have now fixed this - you could check this with Codesys. If you have problems uninstalling Codesys and if they cannot help, then please let us know.

    ~ Martin.

Sign In or Register to comment.