ERROR
i need to make ip configuration in automation builder but when i enter to application to make my program this erro appear >> ERROR while setting gateway the exeution of codsys v2.3 command faild
its recommended to close/restart v23 codsys gateway server (process gateway.exe)
its recommended to close/restart v23 codsys gateway server (process gateway.exe)
Answers
Hi
when you ask a question, I suggest you always indicate the type of HW you have, to allow those who read your question to have all the information they need.
In the absence of this simple information, those who want to respond will have to make a series of hypotheses that may have nothing to do with your case.
That said, to declare a new IP configuration of your PLC, you first need to observe some simple rules.
If the PLC you want to configure is in the same domain as your PC, make sure that the first 3 octets of the IP address are the same.
Then define the gateway and the subnet mask in the same way, typically 255.255.255.0
Set in Automation Builder the address for communicating with your device, the following is an example.
From principal tree of you project, right click mouse button to open communication settings:

The definition operated in Automation Builder about communication settings are the same when you start Codesys.
To do the same IP adress to the CPU that you have define in AB, start from menù --> Tools and select IP configuration and press SCAN, your hardware will appear in the window and you can change the IP adress. Make sure that during the changing of IP the cpu is in STOP
After this operation, in absence of other mistake, you can active the communication to the PLC without problem.
Do not forget to activate the Gateway Server from program --> 3S CODESYS --> Gateway V2.3
This is what I understood from your question, but if the problem is different, try to explain it better, perhaps with some image
Hope this help you
when you ask a question, I suggest you always indicate the type of HW you have, to allow those who read your question to have all the information they need.
In the absence of this simple information, those who want to respond will have to make a series of hypotheses that may have nothing to do with your case.
That said, to declare a new IP configuration of your PLC, you first need to observe some simple rules.
If the PLC you want to configure is in the same domain as your PC, make sure that the first 3 octets of the IP address are the same.
Then define the gateway and the subnet mask in the same way, typically 255.255.255.0
Set in Automation Builder the address for communicating with your device, the following is an example.
From principal tree of you project, right click mouse button to open communication settings:

The definition operated in Automation Builder about communication settings are the same when you start Codesys.
To do the same IP adress to the CPU that you have define in AB, start from menù --> Tools and select IP configuration and press SCAN, your hardware will appear in the window and you can change the IP adress. Make sure that during the changing of IP the cpu is in STOP
After this operation, in absence of other mistake, you can active the communication to the PLC without problem.
Do not forget to activate the Gateway Server from program --> 3S CODESYS --> Gateway V2.3
This is what I understood from your question, but if the problem is different, try to explain it better, perhaps with some image
Hope this help you
Add new comment