RGM XML-Export über COM
Guten Morgen, ich habe über die COM-Schnittstelle einen Export aus der RT einer Rezeptgruppe gemacht. C# Code: rgmGroup.RecipeItem(0).ExportXML(@"d:\xyz\export.xml"); Wenn ich den XML-Export direkt aus dem Editor mache, ist die Struktur und der Informationsgehalt
Bildumschaltung
Hallo, ich wollte mal wieder was neues ausprobieren und komme gerade irgendwie nicht weiter. Und zwar gehe ich meine Bilder in einer Schleife durch (in der Runtime) und suche mir für jedes Bild die passende Bildumschaltfunktion heraus welche ich in der
Alaemevent im Dachprojekt
Hallo, ich habe ein Dachprojekt mit mehreren Unterprojekten. Beim Auslösen einer neuer Störung in den Unterprojekten wird vor Ort über VSTA die Störmeldung in eine Datenbank geschrieben. Besteht die Möglichkeit in dem Dachprojekt über VSTA auf das Alarmevent
Error in VSTA Macro(get_Value)
I want to check Variable "PZZ1" and if PZZ1=1 then start function "showPopUpScreen1". I create Macro in VSTA, but I have error in line Vvalue = var.get_Value(0); Error description: Error 1 Cannot implicitly convert type 'object' to 'int'. An explicit
CD_DotNetControlContainer & Form
Hello! I try to use your CD_DotNetControlContainer with my .NET Library. When i try to load my assembly and first control in controls list on Config Windows Form Control window of CD_DotNetControlContainer Properties is user form, I see error message
Variable name of pressed dynamic element in VSTA
How can I take Variable of pressed dynamic element in VSTA. Example: I have dynamic element(disconnector) with linking rule I want take Variable from element(disconnector) - [Link1] T04 104.1012 and paste it, where I wrote Taken_Var C# Code: public void
Alarm and CEL handles in VB.NET
Hi, I am trying to handle some alarms and cel events in vb.net, but can't seem to get it working Dim WithEvents zOLA As zenOn.IAlarm Private Sub zOLA_AlarmOn(ByVal obAlarm As zenOn.IAlarm) Handles zOLA.AlarmComes MsgBox("ALARM", MsgBoxStyle.Critical)
VSTA, VB .net Schreiben von Variablen in der RT
Hallo, ich habe ein Problem mit dem Schreiben von Werten in der RT. Ich habe einen Online Container erzeugt, den ich mit Variablen gefüllt habe. In der Klasse ThisProject.vb kann ich die Variablen auch in der RT beschreiben. Nun habe ich mir einen Thread
move free difinable screens project from copa-data blog
I tryed to run example project from last blog entry and noticed that when i move form partially out of main window and then move it back into center of main screen some artefacts of redrawing appears on moving window (see attachment). This remainds me
Popup menu. In CEL list
Hi, Is it possible to connect popup menu to Cel control List object.CELs enties list object Maybe somebody know how to connect menu to cels or alarm list picture list object. Thanks This is a migrated post! Originally posted on 19.12.2011 by user softart2.
C#: Vorfilterung des Online-Container
Guten Tag, ich erzeuge mit C# (über Interop) einen Online Container. Allerdings beinhaltet dieser OC alle 10.000 Variablen von denen ich nur gut 350 benötige. Gibt es eine Möglichkeit den OC mittels eines String "vorzufiltern". zB: "*ABC*ZZZ*" Gruß Stefan
Über C# Zenon steuern
Hallo, wie kann ich von C# über die Library "zenon programming interface library" auf die Zenon Runtime zugreifen. Ich möchte über ein Konsolenprogramm (nicht VSTA) überprüfen ob eine ZenonApplikation läuft und Zenon Funktionen ausführen. œber eine kleinen
Form visual style windows XP/7
In a windows form I make the background color yellow of somecombolist from a datagridview In windows XP it change to yellow but in Windows 7 it change to the theme color. I use the following code to change the background color: C# Code: dgv_tbGemaalKoppeling[dgv_BronGemaal_IDColumn.Index,
Form visual fault
When I open a windows form, the background of the combo boxes displayed a strange color/drawing. And also I can't open the combo boxes. See the attachment. Can you help me with this problem This is a migrated post! Originally posted on 20.09.2011 by user
Read and write value of Variable -VB.Net (VSTA)
Hi, I need write and read value of variable in the VSTA, when I use VB.Net language. Can somebody write code in VB.Net. Thanks This is a migrated post! Originally posted on 20.09.2011 by user ozi. Please be aware that information can be outdated.
Memory Leak when using IArchiveFilter.Query()
Hello! Fore some our needs we use programmable access to archive data with code like this: _archive = _archives.Item(_varList[n].Name); _archiveFilter = _archive.ArchiveFilters().CreateArchiveFilter(); _archiveFilter.AddArchiveVariable(_archive.ArchiveVariables().Item(_varList[n].Identification));
Reaction matrix in VSTA for the ZenOn editor
Is there a function to activate a reaction matrix from a variable in VSTA for the ZenOn editor. Is can only find the function IsRemaActive Thanks !!! This is a migrated post! Originally posted on 30.08.2011 by user ippela. Please be aware that information
Limits in VSTA in ZenOn editor
I want to count all limit of a internal variable with the following code : C# Code: public void MacroChangeVar() { int Test; Test = this.ActiveDocument.Variables().Item("TestVariable").Limits().Count; System.Windows.Forms.MessageBox.Show(Test.ToString());
Elements.Type immer 0 ??
Hallo, Ich möchte alle Elemente des Typs "dynamischer Text" und "dynamischer zahlenwert" über VSTA die Hintergrundfarbe ändern. Aber bei der Abfrage des Type aller Elemente im Bild bekomme ich immer als ergebnis "0". Wenn ich aber den Elementname abfrage,
WPF-Element konfigurieren
Hallo, habe heute etwas mit den Bsp-WPF-Elementen von der Copadata-Website herumprobiert. Laut der Dokumentation (Pkt. 5.1.1) sollen in den WPF-Elementen unter Eigenschaften einige Spalten sein, in denen man das WPF-Element konfigurieren kann. Bei mir
Save Alternate Value?
Hi to all In Runtime I Have to Switch to alternate value and Modify alternate value. But when reload the Runtime variable Switch to spontaneous value. How can I save alternate value after reload the Runtime? This is a migrated post! Originally posted
DCO command variable isOnline question?
Hello, Every time when load project. All driver variables with IEC60870 protocol DCO or SCO command is offline. Is it possible to make it online without any command to send real command? My rema has alarm class "Control" and logging to Event list cell
CD_DotNetControlContainer problem with component registration
Hello I changed my special VSTA windows form (http://www.copadata.com/forums/showthread.php?t=1430). Now I have made it as UserControl in MS Visual Studio and inserted on the zenOn screen using CD_DotNetControlContainer. If I use this project on the local
PictSwitch[0].Monitor problem
Hello I have trouble when using if (System.Windows.Forms.Cursor.Position.X >1920) { //position monitor 2 myFunctions.Item("Open_Trend_P2").set_DynProperties("PictSwitch[0].Monitor", 1); } else { //position monitor 1 myFunctions.Item("Open_Trend_P2").set_DynProperties("PictSwitch[0].Monitor",0);
Not DDE active by starting up
When I startup my zenon application and I read an variable, I get my own made error message "_GetZenOnVar - ValveOpen is not DDE Active" because I check if the variable is active. When I do an reload I didn't get this message. Also I check the variable
Problem between VSTA form and AML status line
Hello Unfortunately I found out a problem between VSTA form and AML status line. I developed windows form using VSTA. I want to open this form as ModalDialog. I am using function MyForm.ShowDialog(). In this case AML status line changed TopMost status
Open function on specific screen
Hello I using VSTA Macro that executes function public void Macro_Opentest() { my.functions.Item("test").Start() } This function starts always in monitor 1. I want execute function as relative to caller when it assigned to button. When using VSTA macro
LeftClickUp VBA, to LeftClickUp VSTA
Hello, Is it possible to use VSTA as Element LeftClickUp or enother Mouse event handler as we use VBA macros Element Module Element. I want to execute VSTA functions on LeftclickUp. Maybe somebody has examples how to use Mouse event handler on element
Accessing structure of complex variable in RUNTIME
Good morning, I'm dealing with the following problem: I'm trying to reset (set to zero) all the fileds of a structured variable (array o complex variable) regerdless its structure. Since the structure of my complex variable may change from a project to
Function WriteCelStringEx()
What happens with function WriteCelStringEx()? This function have 5 parameters: void ICel.WriteCelStringEx(string strCelString, string szPvName, int iGroup, int iClass, object Value, int Status) After performance of this function in a window Cel Screen
Using Variables form Zenon in C#
Hello. How can I read and write to the Zenon variables? I tryied it following way: zenOn.IVariable Registr; Registr.set_Value(0, valueInC#) Error: Use of unassigned local variable Registr Thank you This is a migrated post! Originally posted on 29.01.2016
should i be a programer to learn ZENON software
Hi I am new to zenon and in automation field , mostly i am expert in filed of networking and communication , recently i have joined automatio field . Please can any one guide me will i have to learn programming languages for zenon .......... my company
A code which is running everytime
Hi, I want to write a code to set some value every hour. Code is ready but it is not running automatically. I dont want to use any macro. Code should be run by itself. What should i do and where should i add this code in the VBA project? to under thisProject
Variable ant it's Rema value
Hello guys, Does anybody know how to get actual Variable Rema state text. In another word. How to get rema status text which coresponds actual variable value. string rema_ID = Convert.ToString(myIntVariable.get_DynProperties("Rema")); myRema = myRemas.ItemById(Convert.ToInt32(rema_ID));
Dynamic ListBox as a UserControl -> Ugly Border
Hello, i have created a ListBox as a UserControl, that can be controlled by "properties". Well but the only Problem is that it has a small but ugly Border on the bottom. ListBox in the Editor: ListBox during Runtime The Load and Paint Events of the parent
Accessing/Modifying Zenon-Listbox form VSTA
Hello, i need do add Vaules to a Zenon Listbox and read the selected Elements form VSTA. I have tryed the same way like in VBA but it doesn't work. C# Code: ListBox MyListBox = new ListBox(); MyListBox = (ListBox)this.DynPictures().Item("Windowname").Elements().Item("ListBoxName").AktiveX();
Wie erzeuge ich einen OnlineContainer in VB.net
Wie erzeuge ich einen OnlineContainer in VB.net und wie greife ich auf diese ZenOn Variable in einem Macro zu. This is a migrated post! Originally posted on 30.12.2010 by user stn. Please be aware that information can be outdated.
My workspace Macros?
Hi all, I am newbie in C#. How to access to Macros that exist in MyWorkspace. Now I can access only ThisProject.cs Macros. If I wrote code in ThisProject I can access to it via Execute VSTA macro. But if Macro exist in MyWokspace.cs I can't accessto it.
Read data from backup folder
Hello! Could you write an example on C# how to read archive data from backup folder i.e. \project\Backup, using the "Read data from backup folder " see the screenshot. I tried to find in V460 HELP, but unfortunately could not. Archived data from the project
How to set substitute value for variable?
Hello! Is there a mechanism for programmable set substitute value for some variable like it done with Replace (Off) and Replace (ON) Actions? Detailed description: 1. We have a variable QS.Position linked with IEC870 - IEC 60870-5-101-104 driver and used
Next Page