API CtrlExt Error

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
Search

Post Reply
3 posts • Page 1 of 1
arthur
Posts: 5
Joined: Wed Sep 21, 2016 3:57 pm

API CtrlExt Error

Post by arthur »

Hi, I'm trying to implement the SampleUtilTab example as API Control Extension in Alarm List, using WCCOA 3.17, P002. It is compiled fine in VS2017, but once declared in AES Configuration, as detailed in the Help files, the following error is reported in the Log Viewer:

WCCOAui (1), 2020.02.24 10:31:27.199, CTRL, WARNING, 54, Unexpected state, SharedLib, userDefFunc, Error when calling tabUtilTranslateDirection in : The parameter is incorrect.
WCCOAui (1), 2020.02.24 10:31:27.207, CTRL, WARNING, 77, Expression is not an array,
Module: WinCC_OA-AES
Panel: C:\Workspaces\RailComCore\Projects\Scada\RailComCore\panels\vision\aes\AEScreen.pnl [AEScreen]
Object: 1 named: "table_top" of type: TABLE
Script: Initialize
Library: C:\Siemens\Automation\WinCC_OA\3.17\scripts\libs\aes.ctl
Line: 19109, dynlen
WCCOAui (1), 2020.02.24 10:31:27.213, CTRL, SEVERE, 176, Uncaught exception in thread started at aes_workCB:
WCCOAui (1), 2020.02.24 10:31:27.207, CTRL, SEVERE, 79, Index out of range,
Module: WinCC_OA-AES
Panel: C:\Workspaces\RailComCore\Projects\Scada\RailComCore\panels\vision\aes\AEScreen.pnl [AEScreen]
Object: 1 named: "table_top" of type: TABLE
Script: Initialize
Library: C:\Siemens\Automation\WinCC_OA\3.17\scripts\libs\aes.ctl
Line: 19109, xtab, 2
Stacktrace:
1: aes_formatPriorityToInt(dyn_dyn_anytype & xtab = ({ 0 items })) at aes.ctl:19109
2: aes_workCB(string ident = "1_0_1_0_FA ...", dyn_dyn_anytype tab = ({ 1 items }), bool fromDpQuery = FALSE) at aes.ctl:3793


I've tried the default generated one ("add") too. As soon as I declared it in AES Configuration, in order to add, for example, _ack_state +_ack_state, the same error as above is reported.


Can I ask for your advice, please?

Thank you.

tobias_raab
Posts: 18
Joined: Mon Feb 29, 2016 3:30 pm

Re: API CtrlExt Error

Post by tobias_raab »

Hey Arthur,

did you find the cause of your issue? I'm getting the same error at the moment.

Best regards,
Tobias

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: API CtrlExt Error

Post by leoknipp »

The problem is possibly related to the function aes_formatPriorityToInt().
We have fixed a problem with this function in WinCC OA 3.17 P007.
Please install the newest patch for WinCC OA 3.17 and check afterwards if it works.

Best Regards
Leopold Knipp
Senior Support Specialist

Post Reply
3 posts • Page 1 of 1