API CtrlExt Error

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

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

API CtrlExt Error

Post by arthur » Mon Feb 24, 2020 10:37 am

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.

Post Reply
1 post • Page 1 of 1