1
Open Discussion / Re: Slc500 Indirect addressing
« on: March 10, 2017, 01:32:11 PM »
Thanks, this is what I ended up coming up with after posting this thread.
read
tag(0) = Label2.Text & ":" & BasicLabel1.Text
Label3.Text = EthernetIPforSLCMicroCom1.Read(tag(0))
write
Dim tag = Label2.Text & ":" & BasicLabel1.Text
EthernetIPforSLCMicroCom1.Write(tag, TextBox1.Text)
The labels are the integer file I want to read, N63 for instance. Then the basic label reads the current part number for the recipe file, so in this example it gives me N63:34. Then I have a text box with the value I wish to set the tag to.
Thanks,
Kenneth
read
tag(0) = Label2.Text & ":" & BasicLabel1.Text
Label3.Text = EthernetIPforSLCMicroCom1.Read(tag(0))
write
Dim tag = Label2.Text & ":" & BasicLabel1.Text
EthernetIPforSLCMicroCom1.Write(tag, TextBox1.Text)
The labels are the integer file I want to read, N63 for instance. Then the basic label reads the current part number for the recipe file, so in this example it gives me N63:34. Then I have a text box with the value I wish to set the tag to.
Thanks,
Kenneth