12/15/2012 10:51 PM | |
Joined: 9/28/2010 Last visit: 6/30/2024 Posts: 43 Rating:
|
I have problem with system functions, that use the “processing status” output. For example the LoadDataRecord If I use this function by selecting it from dropdown list in Properties/Events of some button – then it works. I set some global integer tag as “processing status” and after clicking the button the tag has value of 4. But if I create a VB script where I use this function – it doesn’t work. This line: LoadDataRecord 4,1,Int1 return a compilation fault “Wrong parameter type”. The Int1 is the same global integer tag, that works as processing value in the previous example. Ok, I try a local tag: Dim TestTag LoadDataRecord 4,1,TestTag String1 = TypeName(TestTag) Int1 = CInt(TestTag) This compiles and runs, but – the String1 has value “Empty” and Int1 has value 0 – like the processing value output was not used at all. I've tried all tags to be writen directly (tagname) or via SmartTags("tagname") - no difference. A have WinCC Advanced V11 SP2, Win7 professional. And it behaves same if I try it in simulation or in physical panel TP1500. I've found very similar topic, but for WinCC Flexible 2008 The processing status in scripts worked perfectly for me in WinCC Flexible 2008 and various MP panels. What am I doing wrong? |
Follow us on