-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Request/Response #53
Comments
Do you mean this #3 ? |
It is close, but not right there. I need to get a set of variables from the PLC and I do have their names, but not their location. So at the moment I cyclically get the handle, read the variable and release the handle for each variable. That produces a lot of traffic. |
Did you check ADS-DLL Sample17.zip? Note: I am not an ADS expert, but as far as I can see our sample is not 100% correct. In my opinion it would read the float, two times, because the second: |
Why do you get the handle every time? My practice is to get the handle, store it, use it while I’m running the program, then release when shutting down the program. A handle remains valid unless the PLC program is changed, and you can register a signal to detect that has happened and then refresh the handles.
Also, I tend not to scan cyclically; I register notifications on the handle and use the On Data Change flag. A callback will be fired anytime. If you must have cyclical updates, you can register the notification to happen on a cyclic timer instead.
On Dec 5, 2017, at 2:29 AM, pillh <notifications@github.com<mailto:notifications@github.com>> wrote:
It is close, but not right there. I need to get a set of variables from the PLC and I do have their names, but not their location. So at the moment I cyclically get the handle, read the variable and release the handle for each variable. That produces a lot of traffic.
You do have an example for getting several handles at once, but the functions supplied for reading/writing variables (AdsSyncReadReqEx/AdsSyncWriteReqEx) using the handle do not seem to support multiple variables. Or do I miss something?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#53 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AOnz3EWb0lZEG_DiJf0qgvaupcWT11QJks5s9P7ngaJpZM4Q0ozU>.
Thomas Bitsky Jr
V.P. Product Development
Automated Design Corporation
1404 Joliet Road, Suite D | Romeoville, IL 60446
P: (630) 783-1150 | F: (630) 783-1159 | M: +1 6306326679
automateddesign.com<http://www.automateddesign.com>
[Facebook]<https://www.facebook.com/automateddesigncorp/> [Facebook] <https://www.instagram.com/automateddesign/> [Facebook] <https://twitter.com/adcsportslogic> [Facebook] <https://www.youtube.com/user/ADCSportsLogic>
Disclaimer
This message contains confidential information and is intended only for the individual(s) addressed in the message. If you are not the named addressee, you should not disseminate, distribute, or copy this e-mail. If you are not the intended recipient, you are notified that disclosing, distributing, or copying this e-mail is strictly prohibited.
|
I do know that there is room for optimization using the functionality already available. That was NOT the initial question. |
struct AdsSymbolEntry was merged with commit 5c7c8d9 |
Support for multiple requests (read/write) is missing. Implementing these would allow fast access to several variables.
The text was updated successfully, but these errors were encountered: