
clarenced (Customer) asked a question.
P2CDS-622 How to set network IP Address from HMI or program.
Using the P2CDS622_NetConfig node from the devices view its easy to configure network settings. We need to be able to configure the IP address and other network config from the HMI. I can see how I can read the battery voltage, I would think that the network config would be similar, but I can't seem to expand the IoConfig_Globals.P2CDS622_NetConfig variable like the IoConfig_Globals.P2CDS622_SystemTags variable.
By HMI are you talking about Webvisu?
Webvisu's webserver uses the network configuration of the P2CDS622 that you can change using the P2CDS622_NetConfig. The folders expand allowing you to edit the fields for the network configuration of each port.
Website Reference: https://docs.codesys-p2cds622.com/en/latest/Communications/ethernet.html
Note: Remember to set Adjust Ethernet Settings to True for your changes to take.
I am talking about using Webvisu, but it wouldn't matter. Whatever HMI is used, how is it possible for the customer to adjust network settings when I don't have the codesys IDE connected? There doesn't not seem to be accessible variables associated with the network config. This would also be used to display the current network settings.
In the current use case we have 4 P2CDS-622 going to a site. All 4 will have the exact same program. The only difference will be the network IP Address. To have the network settings saved as persistent variables would make handling this much easier.
Ah I see now, sorry for my misunderstanding. I'll look into it to see about a potential solution.
I think we came up with a solution for this site. We will set 1 ethernet port as static with the same IP address on all 4 PLC's this will be used to connect only to a local webvisu HMI nothing else will be on this network. Each PLC and HMI pair would have their own network. Then the second port will be configured DHCP that will connect to the network and used for remote programming or remote webvisu. These can be configured static at the router if needed.
Although I think this will work for this site it would still be good to be able have the network settings as variables so that they could be changed or viewed from the program or HMI, not only from Codesys IDE.
Not sure this will work with the P2CDS-622, haven't used one. But it does work in general for Codesys runtimes.
Thanks, I haven't had time to try the functions you showed, but after adding the device diagnostics and the Ethernet adapter it looks like I could at least see the configured IP address, which would be real nice when using DHCP. The "Adjust operating system settings" checkbox is greyed out when my device is a P2CDS-622.
Need ETH port defined...