-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Multiple connections to a single TwinCAT computer. #49
Comments
Hi Emil,
The first limitation could be fixed by implementing a real router within AdsLib. Or you can try to use different IP addresses for your applications. |
While it seems indeed not possible to connect to multiple instances using the library on Linux, it is possible to run multiple instances of your application, and each application connecting to the same or different instance of an ADS Server/Beckhoff PLC. In order to do so, it is necessary to Overview: i) general setup:
ii) additional "virtual" IP address
hat tip to user "A.B" at https://serverfault.com/questions/1090892/linux-make-traffic-from-same-host-appear-to-come-from-different-ip-addresses/1090918#1090918 |
Hi, I'm having trouble connecting multiple instances of the same AdsLib application to a single TwinCat computer.
Program instance 1.
AdsAddRoute
AdsPortOpenEx
while(1)
{
read/write some data on interval.
}
This works fine but if i start another instance of the same program and try to connect to the same TwinCat computer, program 1 fails and I get ClientSyncTimeout(1861) as soon as the program instance 2 hits AdsAddRoute.
Is this just not an option in the implementation of the ADS, or further more how would you achieve the same functionality in case I have overlooked something?
Another thing I've noticed is that reading the same variable with AdsSyncReadWriteReqEx2 doesn't take constant time in fact it varies as you can see on the image below(from 0.5-2,5 ms). Is this just something to be expected?
Any help/pointers would be appreciated.
Regards Emil.
The text was updated successfully, but these errors were encountered: