Step 5: Displaying values in real time

<< Click to Display Table of Contents >>

Manual > Server Creation Guide > Interface > IPLink-Interface > IPLinkClient Library > IPLinkClient Library Connection Procedure >

Step 5: Displaying values in real time

Real-time display of values

The tag value is displayed in real time by the "ValueChanged" event. Real-time display means that the screen is dynamically updated according to changes in the tag.

 

1.Paste the control.
 
Place the text for the monitor as follows:
 
c_interface_0113
 

2.Set the properties of the IPLink control.
 
Set the CtlUpdate property to True
 
c_interface_0114
 

3.Define the ValueChanged event.
 
Select the IPLink control from the code input screen, select the ValueChanged event, and add the event to the code.
 
c_interface_0116
 

4.Write the code.
 
Please write the following code in the "ValueChanged" event.

'------------------------------------
' Event - ValueChanged(AxIPLink1)
'------------------------------------
Private Sub AxIPLink1_ValueChanged(sender As Object, e As AxIPLINKLib6._DClientIPLinkEvents_ValueChangedEvent) Handles AxIPLink1.ValueChanged
    Select Case e.tagPath
        Case "U01.F01.T01"
            TextBox3.Text = e.value
    End Select
End Sub

 

5.Run the program.
 
Press the Start button in Visual Basic to start the program. When the form is displayed, the current value of the tag will be displayed in the text control (Text3).
 
c_interface_0117
 
Enter any number into Text2 and press the Write button. Verify that the number you entered is written into the tag and that the display in Text3 also changes accordingly.
 
c_interface_0118