dynamically create Alarm Areas
Hi, My goal is to write a VSTA macro that will scan the variables in a project and assign an Alarm Area to the variable based on some rules. Is there a method/object available in Zenon that will allow me to create Alarm Areas dynamically from VSTA code?
Import XML Recipe Group
Hi, I need to import a recipe that was exported in XML from runtime. This works using the control element button named "XML Import" in a recipe page, but fails if I use the code. I tried both creating a zenon function and the starting it usign zenOn.IRtFunction
Set and archive values of internal variables
Good afternoon, I’m, trying to set and archive the values of some internal variables in Zenon 8.0 project. I’m using a C# application to set the values of each variable through the “SetValueWithStatus†method, in this regard I’ve the folowing
WPF Element
Hi Can anyone advice where can download more WPF elements for using in Zenon? I only got some WPF files from COPA DATA download website. Any more WPF files can we use? for example WPF pie chart? Please advise if where can get the resources. Thank you.
Vsta
I have a parent project and one project inside it. I want to handle the status bits of the sub-project variables in the parent project VSTA, is there any way? ex) this.Variables().Item("variableName").StatusString = "ALT_VAL=1" This is a migrated post!
how to scan the qr code via zenon ??
Dear All, using the zenon 8.2, I wanna the interface for scanning the qr code. Do you have any success how to scan it via zenon ?? please let me know. scanner model name and vsta. Thanks. Best Regards, This is a migrated post! Originally posted on 12.01.2022
Read group of tags "on demand"
Hello everybody, I'm trying to read around 250 tags of different types (boolen, int, string, decimal... ) for 10 different PLCs. This values only need to read it when each PLC send a boolean signal. However, it are too much tags to keep it "advice" all
Write variable from background worker
Dear Forum users! I am looking for help with the following problem. I have an application in which I have a background worker in the C# VSTA environment. In this background worker, I repeatedly report progress, which calls the ProgressChanged function
Can't move symbol type elements on runtime screen using VSTA
Hi, I need to dynamically rearrange and hide/unhide buttons according to certain configurations by PLC variables on the runtime screen. I have successfully moved elements on the runtime via the following commands with elements such as Static Textbox.
Runtime Active Screen identification
How can you access the screen your runtime is currently on? I have created an Online Container in order to run some functions when these variables change value. This works well. What I want to do know is filter these funtions in order so that they don't
VBA auslagern nach VSTA
Hallo, Es gibt ja im VBA Editor das thisProject. Ich möchte gerne Teile des VBA Codes mit C# umsetzen. Weil VBA läuft im Kontext vom Zenon Hauptthread und kann diesen (bei Timeouts o. ä.) blockieren. Wie mache ich das? Muss ich dafür ein spezielles Projekt
Issue in reading the variable's value
Hi Team, 1. Generally with zenon VSTA code, I will be reading the value of the variable and moving it to the text document. The issue is that at sometimes instead of getting the variable value,I am getting the variable name or sometimes variable's identification.
How to implement the communication with Zenon from Windows Service (C#)
Hoi guys, I'm C# developer but Zenon is new for me. For new project I have to work with Zenon editor en runtime. At this moment I try to communicate with Zenon from a Windows Service. But I have no idee how to do that. Zenon has a lot of drivers that
Sample how to use C# with zenon editor
Hoi guys, I'm a C# developer. For new project, I have to work with Zenon editor en Zenon runtime. I see that I can integrate C# in Zenon editor. But I don't know how to do that. Are there tutorials or samples available for that? Further what is the limitation
Call Zenon API outside Zenon Editor
Hello, I'm trying to find a way to manipulate and generate Zenon Logic block's outside the Zenon Editor running an application as a service. Is there any component in Zenon API that can do it? Regards This is a migrated post! Originally posted on 30.04.2020
importing a CSV file.
Hi, I'm Lee. Wanna Do List. 1. Make a new CSV file(excel file). 2. Fill new CSV file's column from a another CSV file. 3. Save the new CSV file. 4. Import the new CSV file to Zenon(variable side). Wanna take a Answer List. 1. Is it possible in Zenon using
Problem withe events
Hello, I am trying to implement the following code: private void MyWorkspace_Startup(object sender, EventArgs e) { this.OnWorkspaceStartup += new zenOn.OnWorkspaceStartupEventHandler(MyWorkspace_OnWorkspaceStartup); this.OnWorkspaceExit += new zenOn.OnWorkspaceExitEventHandler(MyWorkspace_OnWorkspaceExit);
Lot variable name
I wants to know how to fetch lot variable name by using vsta c# code This is a migrated post! Originally posted on 16.03.2020 by user naikritesh1144. Please be aware that information can be outdated.
Variable read issue on VSTA
A variable shows the value -2147483638 when read by a VSTA even if it linked to a screen and DDE is set to active. I have this following C# snippet: C# Code: public string GetProjectUserName(zenOn.IProject globalProj, string depName) { using (System.IO.StreamWriter
OnlineVariable -> Ausführung auf jedem Client?
Hallo, ich verwende eine OnlineVariable als Trigger für die Alarm/Revisions-Umschaltung. Das funktioniert prinzipiell. Es scheint allerdings so, dass dieses Event anscheinend immer auf jedem unserer 10 Clients ausgeführt wird (Variablen-Umschaltung-Einträge
How to setup a alarm runtime function to filter by SystemModelGroup
Hi, I want to set the system model group filter on a picture function showing the alarm list in the runtime. Unfortunately this does not work: zenRtFunctionAlarmPic.DynProperties["SystemModelGroup.SystemModelGroup"] = "ABC.Zone 1;ABC.Zone 2.Sub10"; zenRtFunctionAlarmPic.Start();
WPF element properties about showing decimal size
Hi there, I want to use a wpf element on my SCADA but I have some problems for configuring wpf element. After .(dot) I want to show just 2 decimal points but I can't find where I will configure. Many thanks. This is a migrated post! Originally posted
User Form (C#) in das Projekt einbringen
Hallo an alle, Ich habe beim Support eine Anfrage über eine Funktion gestellt die es nicht gibt. Dann haben die mich gefragt was ich vorhabe (œber Touch Punkte auf ein Bild platzieren) und mir gesagt das würde mit ein paar Zeilen C# machbar sein. Darauf
C#-assembly
Hallo, Wir haben in unserem Betrieb 6 zenon-Scada-Projekte laufen, die alle den gleichen bzw. ähnlichen C#-Code zur Runtime ausführen. Bei „nderungen im Code muss man dies dann in allen Projekten nachziehen, was ineffizient ist. Meine œberlegung ist daher,
Runtime freeze on event-triggered recording operation
Dears, I have developed a C# program to read data from CSV files and register variables data in the historian. I canot use the Zenon drive to read my CSV files because they have a diferent format from what is aceptable by the Zenon drive. Everything is
XAML property
Hi guys, I created own XAML control image (see attached file Screenshot#1). Now I would like to change its frame color via some variable. The problem is that I don`t see any such properties in WPF links configuration (see attached file Screenshot#2).
Getting and Setting Values in Standard Recipes
What would be the best way to get/set values in the Standard Recipes? I have a Standard Recipe Collection which includes pipe "Size" and "Schedule" entries and if these match my target values, I want to set a "Selected" value as true. Please see the draft
VSTA editor problem
i can't open my VSTA editor anymore. vba works very well. i've tried all of them, backup and restart computer. This is a migrated post! Originally posted on 18.06.2019 by user Clarissesig. Please be aware that information can be outdated.
Poll ALC drain
Hi, I'm trying to figure out how to poll a ALC drain from C#. It's described in the help like this: "Drain : This function type has no effect on the coloring. With the help of VBA you can however poll if this device is supplied." But can't find in the
C# program executed cyclically - Zenon 8.00
Hello, I'm developing a C# program to read data from .txt files and write this data in zenon variables. This application intends to be executed cyclically by zenon (i.e. each 2 hours). I would like to know what is the best way to implement it, if using
Create recipe by function and modify the new recipe in C#
Hi, I would like to create a recipe using a function and edit it in C# right after creating it. Creating the recipe by function works using the following command: C# Code: this.RtFunctions().Item("Function_Recipe_Offline_Save_As").Start(); Modifying an
Macro for fixing nested symbol names
When nested symbols contain elements with the same element names, this will lead to problems when using the XML Import/Export. This macro fixes the project, makes all element names per parent symbol unique, and updates the linked symbols in screens. It's
Alarm-Events in VSTA auswerten
Hallo Habe versucht den Event 'Alarm geht' auszuwerten (Handler 'Alarmlist_AlarmGoes' gem. Screenshots), leider ohne Erfolg. Hinweis: Der Event Alarmlist_SelectionChanged funktioniert einwandfrei! This is a migrated post! Originally posted on 14.03.2019
Network Topology
Hallo, ist es möglich die Network Topology per C# zu verändern? Oder das œbertragen auf einen Rechner aus der Topology anzustoßen? Gruß, D. Horst This is a migrated post! Originally posted on 28.02.2019 by user horstd. Please be aware that information
CEL, replace value.
Hi! I wonder is it possible to catch the value which is going to be written into CEL, modify it and then write into CEL? I know that I can write my own info into CEL by ObjectModel. But I want to get rid of automatically generated info about RGMRecipe
Name von Alarmgruppe ermitteln
Hallo alle Miteinander, kennt ihr eine Möglichkeit wie ich aus einem auftretenden Alarm ( ZAlarm_AlarmEntryReceived - Event) den Name der Alarmgruppe bekomme? Also ich bekomme die ID der Alarmgruppe über .GroupIndex.... ich bräuchte aber allerdings den
Get User Group Level Number
How can I get User group Level Number Not User Group Name ? I am getting User group Level name from get_dynproperties("UserGroupLevel") in C#, But what I want is User Group Level Number. or I there any way I can find out User group Level Number from UserGroupLevel0,UserGroupLevel1,UserGroupLevel2
Recipe combobox not refreshing after create
Hi, I'm trying to modify an existing recipe name from code-behind and also create a new recipe. The changes seems to update after i switch back to the standard recipe page. But the recipe page does not update its content (like the combobox) while the
Shift Management: Unexpected crash on IShifts.GetItem
Hi guys, I'm having big troubles with shift management. In my app I have these few lines that reads informations from the Calendar in order to keep track of "today" shifts. _shiftsToday = shiftFilter.GetShifts();
if (_shiftsToday != null)
{
IShift
Farben der Alarm- klassen - bereiche zur Runtime auslesen
Hallo, ich suche eine Möglichkeit die Farben der Alarmklassen sowie Alarmbereiche zur Runtime auszulesen. This is a migrated post! Originally posted on 09.08.2017 by user fundsWB. Please be aware that information can be outdated.
Next Page