Join us today!

Notifications
Clear all

Multiple connections between same machines

1 Posts
1 Users
0 Reactions
361 Views
Posts: 1
 ilya
Topic starter
(@ilya)
New Member
Joined: 2 years ago

I am using the third setup method shown on the ads-client Node.js package to connect to a PLC. That PLC hosts multiple projects which are meant to run in parallel and be accessed at different ports. I find however that when I try and connect to the PLC via more than one port, the second connection fails. These are my two objects for the connections' settings:

{
  targetAdsPort: 851,
  localAmsNetId: '10.123.10.0.1.1',
  localAdsPort: 32750,
  routerTcpPort: 48898,
  routerAddress: '10.123.124.53',
  targetAmsNetId: '5.100.225.52.1.1'
}
{
  targetAdsPort: 852,
  localAmsNetId: '10.123.10.0.1.2',
  localAdsPort: 32751,
  routerTcpPort: 48898,
  routerAddress: '10.123.124.53',
  targetAmsNetId: '5.100.225.52.1.1'
}

Is there some way I can establish the two connections between the machines? Or is it advisable for all the code on the PLC to be run from a single project?

Reply
Topic Tags
Share: