INGEAR.NET.ABLink

 

Controller.Path Property

Sets/Returns CIP Path for ControlLogix Gateway

[Visual Basic]
NotOverridable Public Property Path As String _
    Implements IController.Path
[C#]
public string Path {get; set;}

Property Value

Default value is "0".

Implements

IController.Path

Remarks

Set the CPUType for the following ControlLogix Gateways

PLC - PLC-5 Data Highway Plus

PLCCNET - PLC-5 ControlNet

SLC - SLC 5/04 Data Highway Plus

 

Connecting to ControlLogix Gateway:

When addressing a PLC/SLC node through a ControlLogix Gateway, you need to specify a routing path (Hop)

 

Example Hop:  1.2.A.10

1 = Back Plane

2 = I/O chassis slot of 1756-DH+/RIO Module

A = Channel A of the 1756 DH+/RIO Module.

10 = PLC Node (decimal address)

 

Connecting to non-ControlLogix Gateway:

Specify "0" in the Path property.

 

Exceptions

Exception Type Condition
ArgumentNullException Thrown if Path set to a null reference (Nothing in Visual Basic)

Example

VB
' *******************************
' * initialize controller class
Dim MyPLC as New ABLink.Controller()
' *******************************
' * set the IP Address
MyPLC.IPAddress = "192.168.1.31"
' *******************************
' * set the CPU Type
MyPLC.CPUType = CPU.PLC
' *******************************
' * set the driver type
MyPLC.DriverType = Driver.ENETIP
' *******************************
' * set the CIP Path
MyPLC.Path = "1.2.A.10"
' ******************************
' * connect to the PLC via ControlLogix Gateway
MyPLC.Connect()


C# ///////////////////////////////// // initialize the controller class ABLink.Controller MyPLC = new ABLink.Controller() ///////////////////////////////// // set the IP Address MyPLC.IPAddress = "192.168.1.31"; //////////////////////////////// // set the CPU Type MyPLC.CPUType = CPU.PLC; //////////////////////////////// // set the driver type MyPLC.DriverType = Driver.ENETIP; //////////////////////////////// // set the CIP Path MyPLC.Path = "1.2.A.10"; //////////////////////////////// connect to the PLC via ControlLogix Gateway MyPLC.Connect();

See Also

Controller Class | ABLink Namespace | IPAddress | DriverType | Connect