Industry Online Support
Technical Forum
5/21/2008 7:41 AM | |
Joined: 2/22/2006 Last visit: 1/24/2025 Posts: 291 Rating: (37) |
Hi, RonaldNijssen gave very detailed explanation regarding this issue! I would give you another idea solving the issue. Try using: BOOL GetTagMultiStateWait(DWORD* pdwState, const char* pFormat) The values and states of several tags are established and stored in the corresponding addresses in the specified format. The values are read explicitly from the AS. Please check WinCC Information System for details of using. It allows you to retrive the tag's values in one optimized request. It is very effective in slow connections. In one of my project I have the same problem as you. Each tag request takes about 2 s. With GetTagMultiStateWait I read 48 tags in 2 s. The only disadvantage is that it is WAIT function and always get the tags from the PLC. In the other way you will have the very recent data from the PLC. Bestr regards, Svetozar Yolov |
Follow us on