Sets/Returns Ethernet IP Address of Allen-Bradley Controller
Dotted-decimal string (e.g "192.168.1.32")
IP Address is a dotted decimal IP address of the target PLC
The IPAddress property must be set before invoking Connect method
| Exception Type | Condition |
|---|---|
| ArgumentNullException | Thrown if IPAddress set to a null reference (Nothing in Visual Basic) |
| ArgumentOutOfRangeException | Thrown if IPAddress.Length is less that 7 characters. |
VB
' ********************************
' * initialize controller Dim MyPLC as New ABLink.Controller()
' *********************************
' * set the ip address MyPLC.IPAddress = "192.168.1.32"
' ********************************
' * connect the PLC MyPLC.Connect() C# ///////////////////////////////////
// initialize controller
ABLink.Controller MyPLC = new ABLink.Controller();
///////////////////////////////////
// set the ip address MyPLC.IPAddress = "192.168.1.32";
///////////////////////////////////
// connect to the PLC MyPLC.Connect();
Controller Class | ABLink Namespace | Connect