Limit RSLinx to a single IP address on a network adapter

EuanK

Member
Join Date
Feb 2009
Location
Australia
Posts
11
Hi,

I'm trying to setup a single pc solution to testing and devloping my PLC application. I have written an EthernetIP I/O simulator program that runs ~10 Eip Adapters running on my desktop. I want to be able to run rslogix, softlogix, rslinx (required for the first two), and my IO simulator.

The devices all establish class 1 IO connections to the PLC. And I have configured my pc network adapter's tcp-ip settings as follows (multiple IP address on a single network adapter):

192.168.1.10
192.168.1.11
192.168.1.12
192.168.1.13
192.168.1.14
192.168.1.15
...

The PLC is currently real hardware connected via a switch, but I intend to use softlogix in the future.

The problem with rslinx is that it seems to bind to several of the ip addresses randomly. Is there any way I can tell it to use only one IP address if the adapter as multiple addresses?

SW version is RSlinx classic 2.54.00.11 CPR 9 SR
 
The RSLinx Ethernet/IP driver is a browsing driver, it will search for and show valid A-B devices on the current subnet.

If you browse the network with RSWho, and you see random selections of your configured IO IPs, then I would suggest they are not all working correctly, and not responding to RSLinx's discovery messages.

As far as I am aware, RSLinx does not "bind" to anything, rather the application, (eg RSlogix) requests the logical connection to the device. The only "binding" I can think of is when using RSLinx as a DDE/OPC server, in which case a separate topic should be configured for each device.

If you want to, you can use a separate "Ethernet Devices" driver for each device, naming each driver accordingly. You will have to specify the IP address for the device you are configuring the driver for.
 
What is the reason for the multiple addresses on the adapter? If they are needed for your simulation - would it be possible to assign the "unwanted" addresses to Microsoft Loopback Adapters and leave the desired address on your real adapter? Just a thought as I really am just guessing what you are doing.
 
The reason for the multiple ip addresses is that each device is an adapter, and runs an EIP server. So each device needs to bind to the EIP port to acccept incoming connections from the PLC.

When I say bind, i mean that rslinx has opened a connection on the standard CIP ports at the socket TCP / UDP level. When this happens that port is unavailable for that ip address on the PC. I imagine that rslinx calls bind with the addres INADDR_ANY which means any available IP address.

http://msdn.microsoft.com/en-us/library/ms737550(VS.85).aspx

I can't use the Loopback adapter as it doesn't bridge or route traffic to other adaptors, or external lans AFAIK?

If I run the simulator before rslinx all devices connect and work, until rslinx is started. If I run the simulator after rslinx is running, only some devices connect. The PLC states "16#0005 bad class" as the error code for the others. I can only guess from that, that the PLC is sending the connection request to the IP address, which has been taken by rslinx. rslinx of course doesn't support the assemblies that the io adapters publish.

If I run the simulator on another PC, or in a vmware image bridged to the pc (with the multiple addresses in the vmware image) everything is fine.

I doubt rslinx is intelligent to know that a manually added ethernet device with ip address X is not on the same pc, and so know not to use the EIP ports on that address?
 
Hi,

Using the InterfaceMetrics capability doesn't apply because the rslinx ethernetIP driver is already bound to a specific adapter, what it isn't bound to is a single IP address on that adapter it seems. My other network cards (real or virtual) all live on different subnets, and don't need to route data between them.


Example:

ipconfig.exe
Ethernet adapter Test Network:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.100.13
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.100.64
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.100.65
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.100.66
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.100.67
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.100.68
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.100.69
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.100.70
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.100.71
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.100.72
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.100.73
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.100.74
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.100.1

Ethernet adapter Corporate Network:

Connection-specific DNS Suffix . : mywork.com
IP Address. . . . . . . . . . . . : x.x.22.64
Subnet Mask . . . . . . . . . . . : 255.255.254.0
Default Gateway . . . . . . . . . : x.x.23.254

Ethernet adapter VMware Network Adapter VMnet8:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.169.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Ethernet adapter Private Loopback VLAN:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.244.74
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.244.73
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.244.72
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.244.71
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.244.70
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.244.69
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.244.68
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.244.67
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.244.66
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.244.65
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.244.14
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.244.12
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.244.3
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.244.64
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Ethernet adapter VMware Network Adapter VMnet1:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.234.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

C:\Documents and Settings\euan.kirkhope>
 
Ahh yeah, I spaced on the multiple IP single adapter thing. I normally use a Vm for this sort of thing and just give it 10 NICs.
 

Similar Topics

Hello, I have a quick question. I have been using scripts to change the color of buttons. The reason, I am usually using multiple hmiruntime.tags...
Replies
1
Views
62
Good evening all! I hope you folks are doing alright today, as I've got a situation that I believe I've come up with a solution to but I wanted to...
Replies
1
Views
368
Dear Experts, I'm just started working with GEO SCADA and I need your valuable help. Currently, I'm trying to edit the alarm limits on MIMIC...
Replies
0
Views
186
Possible dumb question here, but how does running a motor through a gearbox effect a VFDs ability to limit the torque on the driven load? My gut...
Replies
2
Views
477
Hello, I am working on an application that inserts a splined shaft into a 'gearbox'. The shaft is rotating slightly to allow engagement of the...
Replies
8
Views
1,117
Back
Top Bottom