Sets/Returns CIP Path for ControlLogix Gateway
Default value is "0".
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)
Always start with "1"
I/O Slot of the 1756-DH+/RIO Module
The 1756-DH+/RIO Channel to Use (A or B)
The Data Highway Plus Node Address of the target (Decimal Address)
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.
| Exception Type | Condition |
|---|---|
| ArgumentNullException | Thrown if Path set to a null reference (Nothing in Visual Basic) |
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();
Controller Class | ABLink Namespace | IPAddress | DriverType | Connect