2/15/2018 12:46 PM | |
Joined: 2/13/2018 Last visit: 3/18/2024 Posts: 6 Rating: (0) |
Sir, We want to read the txt file content as per enter value in HMI internal tag. examle : In txt file [0] C1 = 22 W1 = 1500 S1 = 2 L1 = 50 [1] C1 = 23 W1 = 1600 S1 = 3 L1 = 30 [2] C1 = 23 W1 = 1600 S1 = 1 L1 = 2 . . . . [300] C1 = 651 W1 = 18000 S1 = 3 L1 = 10 HMI : If I Enter 2 value on HMI Internal Tag_1 ,then using VB scripting,search 2 number in text file after read the contents across 2.like HMI Internal Tag_2 = 23 HMI Internal Tag_3 = 1600 HMI Internal Tag_4 = 1 HMI Internal Tag_5 = 2 If I Enter 300 value on HMI Internal Tag_1 ,then using VB scripting search 300 number in text file after read the contents across 300 .like HMI Internal Tag_2 = 651 HMI Internal Tag_3 = 18000 HMI Internal Tag_4 = 3 HMI Internal Tag_5 = 10 In Vb2010.net program is like shown in below If I enter 2 value in Textbox1.text Dim i As INT16 i = Text box1.text Lable1.text = INIRead.GetString(i, "C1", "") Lable2.text = INIRead.GetString(i, "W1", "") Lable3.text = INIRead.GetString(i, "S1", "") Lable4.text = INIRead.GetString(i, "L1", "") Please help ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 2/16/2018 9:40:51 AMNew subject after splitting |
|
2/16/2018 9:44 AM | |
Joined: 6/19/2017 Last visit: 9/6/2024 Posts: 8175 Rating: (173) |
Closed cause question posted twice.
|
Follow us on