verschachtelter Strukturdatentyp
Guten Morgen
Ich muss leider nochmals mit einem Problem anrücken, hoffe dass mir dieses Mal jemand weiterhelfen kann..
um meine vielen Variablen beieinander zu haben und besser zu organisieren, möchte ich eine verschachtelte Strukturvariable benutzen.
Es soll ein Strukturdatentyp "Anlage" entstehen mit den folgenden Strukturelementen, welche jeweils auch eine Struktur darstellen mit dazugehörenden Strukturelementen:
MotorFixSpeed
[INDENT]CMD (UINT)[/INDENT]
[INDENT]STA (UINT)[/INDENT]
MotorVariableSpeed
[INDENT]CMD (UINT)[/INDENT]
[INDENT]STA (UINT)[/INDENT]
[INDENT]Speed (UINT)[/INDENT]
[INDENT]SpeedSP (UINT)[/INDENT]
[INDENT]Min (UINT)[/INDENT]
[INDENT]Max (UINT)[/INDENT]
Valve
[INDENT]CMD (UINT)[/INDENT]
[INDENT]STA (UINT)[/INDENT]
...
u.s.w.
Ich habe also je ein Strukturdatentyp für MotorFixSpeed, MotorVariableSpeed, Valve etc. erstellt und danach ein Strukturdatentyp Anlage angelegt mit den Strukturelementen des Datentyps MotorFixSpeed, MotorVariableSpeed, Valve etc.
Im Handbuch wird ein verschachtelter Strukturdatentyp angezeigt, jedoch zeigt es bei mir die Elemente der verschachtelten Strukturdatentypen nicht an. (Siehe Bild 1 für das Handbuch Bsp und Bild 2 für meine Datentypen im Editor)
Wenn ich nun eine Varbiale hinzufüge mit dem Datentyp Anlage, dann zeigt es auch nur die jeweiligen Strukturelemente des Datentyps Anlage an, also die unterelemente CMD, STA, zeigt es nicht an. Ausserdem sind alle Strukturelemente grau und ich kann weder ihre Eigenschaften anzeigen noch die Namen der StrukturelementVariablen verändern. (Siehe Bild 3 von der Variable im Editor)
Ach und ich habe natürlich alle Datentypen verknüpft, auch die Basisdatentypen wie UINT. Ebenfalls sind alle Variablen aktiviert.
Ich hoffe sehr, dass ihr mir weiterhelfen könnt! (Auch ein Beispiel im Handbuch für die Erstellung einer Strukturvariable inkl. verschachtelung konnte mir nicht helfen, obwohl ich versucht habe genau die Anweisungen zu befolgen..)
Vielen Dank im Voraus!
Agroscope
This is a migrated post! Originally posted on 18.11.2013 by user agroscope. Please be aware that information can be outdated.
Disclaimer
This document governs the use of our Community Forum. By registering and using the platform, you accept these conditions.
The COPA-DATA Community Forum serves to encourage the exchange of information and experience about the zenon software between forum users respectively zenon users.
Please mind that any published information on the Community Forum is the subjective opinion and view based on the experience and the level of knowledge of the author. COPA-DATA does not overtake any responsibility for the content and the accuracy of the shared information.
Users of the Community Forum are encouraged to share only well-founded experiences and to point out any risks associated with the implementation of proposed solutions to problems. COPA-DATA at its absolute discretion, reserves the right to moderate the forum. In this connection COPA-DATA may remove any information containing false facts, potentially dangerous solutions, bad language or content that may insult, degrade or discriminate others. COPA-DATA may block a non-complying user from forum access if the user violated this provision.
COPA-DATA reserves the right to change this document from time to time at own discretion.
Ing. Punzenberger COPA-DATA GmbH
Karolingerstraße 7b · 5020 Salzburg · Austria
www.copadata.com