Either you are making this difficult for yourself or there is more there than just what you are showing.
This is how I would tackle the task:
- Add a DataSubscriber to the form
- Set PLCAddressValue to B3/1
- Double click the DataSubscriber to get to the Value changed event handler
- Add this code:
If e.Values IsNot Nothing AndAlso E.Values.Count>0 then
If e.Values(0)="True" then
'* Perform the task
EthernetIPforSLCMicroCom1.Write("B3/10","1")
End If
End If