If you are using the EthernetIPforSLCMicroCom driver, then you code would look something like this:
Private Sub NumericUpDown1_ValueChanged(sender As System.Object, e As System.EventArgs) Handles NumericUpDown1.ValueChanged
EthernetIPForSLCMicroCom1.Write("N7:0", NumericUpDown1.Value)
End Sub
The easiest way to get the code in the correct place is to do this:
- Add a NumericUpDown to the form
- In the Properties Window, click the lightening bolt in the tool bar
- Look for ValueChanged in the list
- Double click to the right of ValueChanged and it will take you to the code and add some of it for you
You will only need to manually add the 1 line of code.