28
« on: March 27, 2019, 09:11:50 AM »
So I am turning this into a troubleshooting tool and would like to give the user the ability to assign the starting register and the number of registers to search. A couple things, the DataSubscriber1(not 2) does not provide a number of elements property. Second, if I were to use the DS2, how do I assign the .Add method a user input value for PLCAddress and Numberof Elements from a textbox? I tried string, int,double and none are accepted by the driver. Not sure how to change the DS2 properties during runtime with the code below for a button click.
Thanks Archie!
Private Sub btnScan_Click(sender As Object, e As EventArgs) Handles btnScan.Click
ds21.PLCAddressValueItems.Add()
End Sub