long story short: I try to do a presumably "legacy" tutorial to get into WinCC OA 3.15. At one point I want to create a Child-Panel that holds a toggle-switch that changes values in the parent panel by $reference. Just the wizard proceeding is explained and it also does not work. I have two issues which, at leat I think, are adressing the same problem of not being to able to set references properly.
First issue: When I Drag-and-Drop the switch_1 and enter e.g. "$flap.response.malfunction.end_of_travel", nothing is entered in the $-Parameter field in the attribute-editor . My approach is to change the entries in the automatically generated Initialize- and Clicked-Script as follows (initial values behind the "//" ) but I also tried to enter the line into all attributes of the $-Parameter field, which doesn't change anything :
Initialize-Script:
Code: Select all
string msDPERm;
bool mbIBit;
string msToggle;
main()
{
msDPERm = $flap.response.malfunction.end_of_travel; // msDPERm =$dpe_value_Rm;
mbIBit = FALSE; // mbIBit =$b_IBit;
msToggle = TRUE; // msToggle =$b_Toggle;
STD_switch_1();
}
Code: Select all
string msDPERm;
string msDPEOff;
string msDPEOn;
string msToggle;
main()
{
msDPERm=$flap.response.malfunction.end_of_travel; // msDPERm=$dpe_value_Rm;
msDPEOff=$flap.response.malfunction.end_of_travel; // msDPEOff=$dpe_value_Off;
msDPEOn=$flap.response.malfunction.end_of_travel; // msDPEOn=$dpe_value_On;
msToggle=TRUE;//$b_Toggle;
STD_switch_1_LeftKlick();
}
Here I tried to adapt the RightMousePressed-Script by substituting the makeDynString "" by "$flap:"+$flap :
Code: Select all
main()
{
EP_childPanelOn();
}
void EP_childPanelOn()
{
ChildPanelOnCentral("objects/EOTmalfunction.pnl",
"EOT malfunction",
makeDynString("$flap:"+$flap)); // I tried to give the child the needed reference
}
Code: Select all
WARNING, 13/uim,
WARNING, 71, DP does not exist
So far I tried everything that I thought could work.
Thanks in advance,