Abstract:
This document describes and shows a basic example of changing a unit's IP address from the unit itself at runtime.
Products:
CR Series HMI / G3 Series HMI / G3 Kadet HMI / Graphite® HMI / Modular Controller (excludes LE) / DA Series Data Station (excludes DA10) / Data Station Plus (excludes LE) / ProducTVity Station
Use Case:
Changing a unit's IP address from the unit itself at runtime.
Required Software:
Crimson 3.0 or Crimson 3.1
Procedure:
Data Tags Section
1. Referring to Figure 1, create three new Numeric tags.
Figure 1.
2. Rename the tags IP, Mask, and Gateway.
3. Referring to Figure 2, set the Storage setting on all three to Retentive.
Figure 2.
4. Click on the Format tab.
5. Set the Format Type to IP Address as shown in Figure 3.
Figure 3.
6. Repeat this step for the other two tags.
Communications Section
1. Navigate to the Communications Section.
2. Referring to Figure 4, click on Network and then Ethernet 1 (or Ethernet 2 depending on the application).
Figure 4.
3. Set the Port Mode to Manual Configuration.
4. In the Resource Pane, click on Data Tags.
5. Referring to Figure 5, drag the previously created tags into the associated fields under Port Settings.
Figure 5.
Display Pages Section
1. Navigate to the Display Pages section.
2. In the Resource Pane, click on Data Tags.
3. Referring to Figure 6, drag the three tags onto the page.
Figure 6.
4. Set the Operation for each primitive to Data Entry, see Figure 7.
Figure 7.
5. In the Resource Pane, click on Primitives, then Core Primitives.
6. Referring to Figure 8, drag a Bevel Button onto the page.
Figure 8.
7. Open the button's properties and click on the Action tab.
8. Set the Operation to User Defined.
9. In the On Pressed Field type: CommitAndReset(), as shown in Figure 9, then click OK.
Figure 9.
Usage
1. Enter the desired values into the Data Entry fields on the display page.
2. Once the values have been entered, press the button that was added in Step #6.
3. Once the unit has rebooted, the new values will be used.
NOTE: The Retentive Storage of the tags and the CommitAndReset() call are crucial, as the IP address is loaded when the unit boots, therefore the tag value must be present at startup.
NOTE: The GetNetIP, GetNetMask, and GetNetGate functions can be used to display the unit's current IP settings, the example attached below shows an example.
Disclaimer
It is the customer's responsibility to review the advice provided herein and its applicability to the system. Red Lion makes no representation about specific knowledge of the customer's system or the specific performance of the system. Red Lion is not responsible for any damage to equipment or connected systems. The use of this document is at your own risk. Red Lion standard product warranty applies.
Red Lion Technical Support
If you have any questions or trouble contact Red Lion Technical Support by clicking here or calling 1-877-432-9908.
For more information: http://www.redlion.net/support/policies-statements/warranty-statement