Archives

Within the Configuration view, ArConfig contains the Runtime Configuration. The Runtime configuration includes all sorts of useful information, including the unit's assigned IP address, host name, subnet mask, and much more. These functions serve to be extremely useful when configuring a device.

However, if you want to change these setting from the HMI of a unit, there are a few more steps involved.

In the Logical view, add the AsARCfg library to your global libraries.

This libary contains functions that will let you read/write ArConfig settings, such as CfgGetSubnetMask(), CfgSetIPAddr(), and many more.

In a program, create the function block to set parameters and call the desired function.

Link the proper tags to the HMI to create a display/input field to view/change the ArConfig Parameter.

Below I have an example of using both the CfgGetIPAddr() and CfgSetIPAddr() functions. Upon entering a new IP address and hitting the change button, I am changing the current IP address and re-updating the gray text box. The change button is setting the IPSet boolean, the new box contains the NewIPTemp string, and the gray box contains the NewIP string. In the program, the CfgSetIPAddr_1 has a data type of CfgSetIPAddr, and the CfgGetIPAddr_1 has a data type of CfgGetIPAddr.