how to Casting variables?
i want casting int. int test; test = this.Variables().Item("ExecuteTrend").get_Value(0); this error and (int) Int32.Parse all error ExecuteTrend Internal variables (int) This is a migrated post! Originally posted on 11.04.2016 by user backjahyun. Please
how to get selected item from commbobox ?
Hi. sorry for the questions. i want selected item from commbobox. i try public void Macro_selectitem() { System.Diagnostics.Debug.Print( combo.Text); } but Output message ->A first chance exception of type 'System.Runtime.InteropServices.COMException'
How do I use Variables?
Hi. Help is not listed. i want using variable. For example, I would like to put a value to a variable you created in advance. This is a migrated post! Originally posted on 04.04.2016 by user backjahyun. Please be aware that information can be outdat
Treibereintrag in Elementen einer Variablenstruktur ist falsch!
Hallo! Ich verwenden in meinem C# Script im Editor die folgende Zeile: [INDENT]zoVariable.set_DynProperties("Driver", zoDriver.get_DynProperties("DriverId"));[/INDENT] um die Treiberzordnung per Makro zu ändern. Bei einfachen Variablen funktioniert das
Reading zenon bool in vsta
Hello. I would like to know, how i can read and write zenon variable(bool) in vsta. Now i am reading by: for (int y = 0; y <6; y++) { arraystring[y] = this.Variables().Item("Palet1_bool[" + y+"]").get_Value(0).ToString(); arraybool[y] = Convert.ToBoolean(arraystring[y]);
ArchiveValues().Item(i).Value = 0
Hi. my function code. the value is all zeros,Time and the variable name is normal. public void Macro_testA() { IArchive zenonArchive = this.Archives().Item(0); System.Diagnostics.Debug.Print("archive : " + zenonArchive.Name); if (zenonArchive == null)
How to change? VBA code -> c# code
VBA Sample code but You don't know what this is clsTimeConvert C # How can I use? VBA code to C # code i want to change. Sub zenOn_ArchiveFilter() 'Declarations Dim zArchive As Archive Dim zArvFilter As ArchiveFilter Dim zArvVars As ArchiveFilterVariables
How can I use element in VSTA?
How can I use element in VSTA? This mean is that how can I take element to VSTA. Should I write element's name in VSTA? Example, I draw one line element, and I want use that element in VSTA, like changing line color, etc... In this case, should I write
Spalteneinstellungen für Alarmstatuszeile anpassen
Moin, ich möchte gerne die Spalteneinstellungen für die Alarmstatuszeile beim Erstellen eines Projektes bestimmt formatieren und dementsprechend den Parameter Spalteneinstellung AML über VSTA ansprechen. Ich versuche diesen wie folgt anzusprechen: Me.ActiveDocument.get_DynProperties("AlarmListEntry")
Definitionen für "String bsLibrary" in InsertSymbol(String...
Hallo, ich suche die Definition für "bsLibray" in ...DynPicture.InsertSymbol(... um ein Symbol aus der Bibliothek eines Global Projekts in ein Bild einzufügen. Was ich bis jetzt gefunden habe: 'Insert linked symbol "Brake motor" from the category "F_Motors"
Variable Change Event
Hello, Is there any way to get the zenon variable value change event in VSTA Windows Form. I want to execute button event on zenon variable value change event present in VSTA windows form. This is a migrated post! Originally posted on 19.02.2016 by user
Zenon Vars in API
Hello, Hello, I have a project (MULTIPROJECT) with the code C #: String text = ""; int c = 0; c = this.Variables().Count; if (c != 0) { for (int i = 0; i < c; i++) {
DLL files and Zenon VSTA
Hello, I want to add written by me dll file (c#) using the API Zenon. Dll file that uses the API Zenon compiles in Visual Studio seamlessly. But then when I want him to join the project VSTA (in Zenon) - does not compile. Error 1 The type 'zenOn.IVariable'
Integration error on Interop.zenOn.dll
Hi, I have a zenonRuntime7.20 32 bit application which is using this Interop.zenOn.dll. Now when I am trying to incorporate this Dll on .Net Console application I am getting error like this. Retrieving the COM class factory for component with CLSID {0F3205BD-D8D5-11D1-9772-080009ABB492}
Change RT Path
Hello, Is it Possible to change the RT Path of Startup Tool using VB.Net. This is a migrated post! Originally posted on 21.12.2015 by user jwick8801. Please be aware that information can be outdated.
S7-Projekt Import durchführen
Moin, ich wollte mich mal erkundigen, ob es eine Möglichkeit gibt den erweiterten Variablenimport (S7-Projekt importieren) über VB.NET automatisch durchführen oder zu mindestens anzustoßen kann, so dass sich die zugehörige Benutzeroberfläche öffnet? Vielen
Zenon WPF element background transparent
Kann ich den Hintergrund eines WPF Elements transparent setzen? Das selbst erstellte Control, bzw. z.B. auch das Speedometer von Copadata zeigt rechteckig den Default Background an. In ExpressionBlend wird das XAML am Rand entsprechend noch transparent
[C#] Data types defined by user
Hello, I defined data type editor (array, structure) TimeTicks with two fields (variables) of type String. Then, I created a new type of variable (TimeTicks) called myVar. How now access this variable from c #? This is a migrated post! Originally posted
Hex - Color für Limit konvertieren
Hallo liebe Community, kurze Frage: Wie kann ich eine Hex Farbe (Beispiel: '#038CF1') in ein Integer für die Limits einer Variable konvertieren? Habs mit C# Code: iMyColor = Convert.ToInt32(sSelectedColor, 16); versucht. Es kommt zwar eine Farbe raus,
ItemOnMonitor MonitorIndex value meanings
Hello colleagues. How should MonitorIndex calculated for DynPictures.ItemOnMonitor call? Some tests shows me that left monitor has MonitorId = 256, right = 257. Is there some common formula of MonitorId calculation? This is a migrated post! Originally
Variablenfilter
Hallo, ich wollte mich mal erkundigen, ob es eine Möglichkeit gibt, explizit gemäß einer Vorgabe nach bestimmten Variablen zu suchen. Zur Zeit durchlaufe ich immer alle Variablen, was bei einer Vielzahl von Variablen irgendwann auch zu einem Zeitproblem
Handle auf das aktuell angezeigte DynPicture
Hallo, wie bekomme ich unter C# das Handle des aktuell angezeigten DynPicture? This is a migrated post! Originally posted on 14.10.2015 by user nollh. Please be aware that information can be outdated.
Button auf Bild aus Code "klicken"...
Hallo, wie kann ich einen Button auf einem Bild aus dem VSTA-Code anklicken, so daß die im Button hinterlegte Funktion ausgeführt wird. (Ich möchte nicht die Funktion ausführen!!). Danke. Gruß This is a migrated post! Originally posted on 12.10.2015 by
Recipe Variable Name and Value
Hello, I am trying to read variable associated to my Recipe and its value.Can you help me how can i read Variable name and its value in my particular recipe. This is a migrated post! Originally posted on 09.10.2015 by user jwick8801. Please be aware that
VB.NET Code automatisch im Projekt einfügen
Moin, wir haben regelmäßig das Problem, dass wir bei neuen Projekten die Programmierschnittstelle (VB.NET und VBA) neu einrichten müssen. Gibt es hier eine Möglichkeit die Programmdateien mit Hilfe des WorkspaceAddins dynamisch in den ProjectAddin Explorer
BOOL Variablen und Limits
Hallo, ich lege per C# Programm Variablen vom Type BOOL an, das klappt auch. Jetzt bekommen die aber immer gleich zwei Limits verpasst, die brauche ich aber nicht. Gibt es eine Möglichkeit die beiden zu Löschen? Ich habe nichts gefunden. Im Augenblick
Get Cureent Event Logged in CEL
Hello, I want to get the current event logged in CEL in message box.Message box should describe Timestamp,Text,Variable name,Logged in User. Please help how to get the Current CEL event. This is a migrated post! Originally posted on 23.09.2015 by user
WPF Indicating Instrument not refreshing
Hi, I am using the example WPF Indicating Instrument (from the Copa-Data Download Page) with its pointer driven by an Internal Variable that that is set using C# code by reading values from a text file. If I change the pointer Angle Value using a Numerical
Erweiterte Kurvenliste (Trend) - Breite anpassen
Hallo, ich möchte die Spaltenbreite der einzelnen Elemente in der erweiterten Kurvenliste für den Trend anpassen. Leider komme ich hier zu keinem Ergebnis. Folgend ein Ausschnitt aus dem verwendeten Programmcode [VBNET]Dim funktion As IRtFunction funktion
Get all Variable names for a Data Struct (Type)
Hi, I have a Data type called W001 and in this datatype I have toew variables called W1 and W2. How can I determine the variables for datatype W001 -> W1,W2 Currently I am using the IVType object fom the zenon library. Regards, Horst This is a migrated
Event
Hallo, welcher Event zeigt mir an, dass das Projekt geladen ist bzw. der Start-Screen angezeigt wird? Wird das mit dem OnProjectLoaded handler abgefangen? Ich benötige einen entsprechenden Handler zur Ausführung von C# Code sobald die Runtime komplett
Button Click Event in VSTA Windows Form
I want to set value of my zenon variable by clicking on my VSTA VB.Net windows Form button click event. This is a migrated post! Originally posted on 20.08.2015 by user parthbdesai. Please be aware that information can be outdated.
Get All User Name
Hello, I want to get all the user names present in my project in listbox at runtime using VB.Net VSTA. This is a migrated post! Originally posted on 18.08.2015 by user jwick8801. Please be aware that information can be outdated.
An Event ModelGroupSelected not available in interface ISystemModelManager
I want to react on event SystemModelManager.ModelGroupSelected, but an object of type zenOn.ISystemModelManager doesn't has that event, and on the other hand a class SystemModelManager has that kind of event. How to use that event?:confused: I would like
Datentypen anlegen
Moin, ich bin dabei Datentypen per VSTA anzulegen. Mein Ziel ist dabei die Datentypeinstellungen anzupassen. Leider habe ich hier noch Probleme. [VBNET] Dim NewVarT As IVarType = Haupt.ActiveDocument.VarTypes.CreateSimpleType("Test",BaseVarT) Newvar.set_DynProperties("SignalMin",
RT änderbare Dateien anpassen
Hallo, ich würde gerne die RT änderbaren Dateien per VB.NET kurzzeitig anpassen, um einen neu angelegten Benutzer erzeugen zu können. Hierfür wollte ich mit dem DynProperties -> ProjectModidata arbeiten. Leider funktioniert dies nicht wie gewollt. Beim
Access to Zenon Library with C/C++?
Hi, is it possible to access the zenon library from within a C/C++-Application? How can I add (bind) the zenOn-Library to the C/C++ application? If yes, can someone post me some example code to get connected to a Zenon runtime? Thanks in advance. Horst
OPC-Variable / Treiberperformance
Hallo, ich habe folgendes Problem - wenn ich Variablen mit einem OPC-Treiber verwende und den Wert der Variable ändere, wird dieser Wert nicht gleich gültig gesetzt, d.h. wenn ich mir mit C# gleich im Anschluss an das setzen des Values für die Variable
WPF Chart Control einbinden
Hallo liebe Community, ich habe mit Hilfe des Artikels ".NET in Zenon" http://www.copadata.com/fileadmin/user_upload/cms/downloads/iu/IU_Magazine_22_EN.pdf ein PieChart Control in Zenon einbinden können. Das gleiche habe ich mit einem LineSeries Chart
Get Project handle for a specific Zenon Project
Hi, I am currently evaluate the possibility to get the Project handle out of a running Zenon project on another computer. I have to read and write variable values to that runtime. Thanks. Horst This is a migrated post! Originally posted on 23.07.2015
Next Page