In this document, I will show you how to change the M172P PLC and Equipment IP address during the runtime of EcoStruxure Operator Terminal Expert.
First, I created a project in EcoStruxure Operator Terminal Expert Version 3.5SP1. A latest version is highly recommended.
Then, I set the target configuration by selecting the HMISTM6400 as shown below.
I added the Modbus TCP Driver in the driver sub-menu. Driver can be accessed from the Project Explorer as shown.
I left the IP Address field blank since our intention is to update the IP Address of Equipment from runtime.
This step highlights the example screen design. I will not be adding too much emphasis on screen design. This article assumes some basic familiarity with EcoStruxure Operator Terminal Expert.
The above screen shows fields for current and new BACNET IP network settings for M172P PLC.
Both Current and New BACNET IP Address were composed of 4 numeric display objects bound to each Octet of the IP Address. I have exported the Modbus Objects data from EcoStruxure Machine Expert HVAC to expose the Modbus registers required to change the IP address of M172P.
Select OK to save the csv file for the modbus objects.
After you choose save, a csv file will be generated and saved at your chosen location. In Project Explorer, under Variables section, choose “All Variables” and select Import icon on the top ribbon menu.
You will see imported variables added as shown below.
We will now bind these Modbus variables behind the numeric display objects on the screen.
Repeat the steps above to bind all the Modbus objects necessary to change IP, Subnet Mask and Default Gateway.
In the lower part of the screen, I added two fields for current and new Equipment IP Address. I used the Address Display object from the tool chest under Parts section.
Equipment current IP Address field is bound to source property of equipment “IPAddress.CurrentValue” as shown below. This is a read only property and direction is selected “One Way”.
Equipment New IP Address field is bound to the source property of equipment “IPAddress.OverwriteValue”.
In order to save the new IP Address for the equipment and update the driver during runtime, we have to run an Equipment Save function in the script. I have placed a Switch object from Tool Chest and bound it to an internal variable called Save. The script should look like below:
At runtime, screen will look like below:
To change the device driver IP Address, first enter the new IP Address in the Equipment New IP Address field and then press Save to execute the script to save the new address.
Pro Tip:
Include the Hardware Configuration as one of the screens for accessing the target related configurations during runtime!
Released for: Schneider Electric Nigeria
Need help?
Product Selector
Quickly and easily find the right products and accessories for your applications.
Get a Quote
Start your sales enquiry online and an expert will connect with you.
Where to buy?
Easily find the nearest Schneider Electric distributor in your location.
Help Centre
Find support resources for all your needs, in one place.