WPF configuration demo
Hi, I'm trying to realise demo as described in manual attached, pages 24-29. But when I trying to import xaml, next error returns in zenon output, and element is blank: Error during loading XAML file 'C:\ProgramData\COPA-DATA\SQL2019\c15574cf-abb3-42af-b9bc-a793878fb02d\FILES\zenon\custom\graphics\UserControl1.xaml'
Add configuration file in zenon add-ins
Hi, I am new with add-in framework. How can i add configuration file to add-in? Thanks This is a migrated post! Originally posted on 10.12.2021 by user syamsitaufik. Please be aware that information can be outdated.
Open screen before .Show()
Hi, how to open screen in C# before .Show() ? in zenon help I can't find example, and link to vba example https://onlinehelp.copadata.com/Content.html?product=addin&version=1000〈=en&id=c_015e184b9b6e14e634347a7c4215f623 This is a migrated post! Originally
Event im Editor verwenden
Hallo, ich möchte das im Editor bei Doppelklick auf ein Symbol bzw. Element ein C#-Addin ausgeführt wird. Wie bekomme ich das hin? Kann mir da jemand helfen? This is a migrated post! Originally posted on 17.11.2021 by user wenzm. Please be aware that
Read External Timestamp of Variable
Hey, im trying to read out the external timestamp of a variable. But with the IVariable Method LastUpdateTime i only get the internal timestamp. Is there a way to get the external timestamp? Thanks! This is a migrated post! Originally posted on 17.11.2021
variable.GetValue(variable.Id) How to cast dynamically?
Hi, I have made my method, like in how to examples, to get and set variable into zenon, but I have problem vs types, if variable is not a string type. when I use object operatedObject = variable.GetValue(variable.Id);
Reload project after add-in rebuild&deploy
Hi, after making changes at add-in, for that runtime accepted the changes, I need to restart runtime: delete that add-in form the list, after rebuild and deploy, I improting that add-in once more, saving changes, generate runtime files, copy that files
FillColor screen element
Hi, I made some code: C# Code: using Scada.AddIn.Contracts; using Scada.AddIn.Contracts.ScreenElement; using Scada.AddIn.Contracts.Screen; using System; namespace wizardHighlightSelectedRow { /// /// Highlights Selected element on the screen /// [AddInExtension("wizardHighlightSelectedRow",
Backend app on base of clients events
Hi, add-in backend application conception (considered for web client and HTML Web Client): in zenon Supervisor we have one workspace, main global project, main project and its subprojects (a lot). it works as one app. Something like apps with static void
ProjectServiceExtention Stop() Status
Hi, I have created add-in, and try to execute him few times, after pressing button. For first one click, he executs, but for second on he is not starting. When I open window "Manage Service Engine services", against of add-in his status as "Started" (but
Addin lose COM connection
Sometimes during runtime addin lose COM connection to Zenon Runtime and execution locks in member access call like "context.Name". No way to exit from this condition other than restart runtime. How do I have to change code? Try-Catch block doesn't help.
Filtern nach Variablen
Hallo, wir haben ein Projekt mit sehr vielen Variablen (200000+). Hier sollen zur Laufzeit einzelne Variablen mit einer bestimmten Endung in einem Addin gefiltert werden. Aktuell setzen wir dies mit einer For-Schleife um. Das benötigt sehr viel Zeit bis
Datentyp zuweisen
Moin, ich habe noch ein weiteres Problem. Ich weise im Zenon Editor über ein Addin, Variablen bestimmte Datentypen zu. Dies mache ich wie folgt: variable.SetDynamicProperty("ID_DataTyp", BeispielDatentyp.Id) Das funktioniert soweit auch gut und
ImportFromCsv Function on IVariableCollection
Hi, I'm attempting to import a batch of variables in Zenon project via the AddIn API in C#. Within the IVariableCollection the "ImportFromXml" function is available, but I cannot find the import function that works with the tab delimited "CSV" files that
Unable to Set Alignment of Zenon Variable
Hi, When setting the Alignment property of an IVariable (creating the variable in the Zenon project (IProject) with AddIn in C#), this exception is thrown (below). Also the Alignment property seems to not be editable in the Zenon editor either. This functionality
Dynamic Screen Switch Function
Hi, I'm trying to find a way to build a "Screen Switch Function" on the fly in an Add-In service. Considering the following configuration: [AddInExtension("Temp Service", "Service extension description", DefaultStartMode = DefaultStartupModes.Auto)] public
Zenon REST API (C#)
Would like to check how can i integrate Zenon Data via REST API integration with other IT systems ? Regards, Joseph This is a migrated post! Originally posted on 10.05.2021 by user JosephChia. Please be aware that information can be outdated.
ERROR: "No Target for debugging configured in the settings."
I compiled a Runtime Add-In and imported it in the zenon editor. I tried to run the debugger i Visual Studio but instead get the following error: ERROR: No Target for debugging configured in the settings. To set a Debug Target, open tab "Add-In" in project
Änderung Betriebsmittelkennung in Runtime
Hallo, ich ändere die Betriebsmittelkennung (ResourcesLabel) und Kennung (Identification) einiger Variablen mit einem Service Add-In (C#) in der zenon Runtime (Version 8.00). Leider werden die „nderungen bei einem Neustart der Runtime nicht gespeichert,
Smart objects
Hi, I'm trying to assign the variable mapping of my project smartobjects by C#. The help window in zenon tells me the "VarMapping" should be available in the API, but i can seem to find a way to access it. On zenon 10. Any assistance would be appreciated!
Memoryleaks
Hello! We are running several Addins in our Runtimes and we are always experiencing a slow rising RAM usage from the runtime when have addins active. Anyone else experienced that issue aswell? When analyzing the Memory, it showed us only ~10MB used by
The value of the Zenon variable is not changed from C # code.
Hello, I'm trying to set the value of the Zenon variable in C # code in the following way: zVariable.SetValue(newValue, Constants.STATE_SPONT, (int)InternalHelpers.TimeConversion.SystemToZenOn(dt), 0); _utils.AddLine($"Variable: {zVariable.Name} Wert:
How to add limit value to variable by Editor wizard?
Hi all. I would like to make internal bool variable with Limit Value[1] and Limit Value [2] activated and with limit value text. How to add Limit value text to variable limit? I have add-in Editor wizard for creating variables, but I'm not sure how to
Exchange driver 3s_ARTI with 3s_V3?
Hi all, I would like to know which is the easiest way to convert existing variables for 3s_Arti_NG driver which use Symbolic name to 3S_V3 driver which use Symbolic address. My 1st thinking goes to editor Add-in which will 1. goes throught all variables
PrintDialog - scadaAddin
Hi all. How to make runtime add-in, which will open the Print dialog settings window (MS Windows standard dialog) on button click? Thanks a lot in advance, MK This is a migrated post! Originally posted on 09.11.2020 by user milosh. Please be aware that
OnlineVariableContainer Bulkmode not triggering
Hello! So we are working with OnlineVariableContainers to react to some Variablechanges. We Subscribe to our Variables like: project.OnlineVariableContainerCollection.Delete(containerName); container = project.OnlineVariableContainerCollection.Create(containerName);
assign variables in structured data type
Hello, I am trying to write a new value into a structured (an array )variable with C # that already exists in Zenon and has a user-defined data type. I do following: // create variable with var. name from Zenon
const string PV_Anlagen = "PV-Anlagen";
...
//Create
Using the Remote Transport in the Add-In interface
I noticed using the IRemoteTransport interface that the Event RemoteTransportTransferCompleted probably does not work as intended. In the project RemoteTransportTest.zip the mentioned Event is not getting triggered and the runtime does not start. While
Wert einer Zenonvariablen in eine C#-Variable kopieren
Hallo, ich möchte den Wert einer zenon-Variablen (zziNotificationType) in eine Variable im C# ( iAWMeldeart) kopieren. Hierzu folgender Code: C# Code: iMeldeart = context.VariableCollection["zziNotificationType"]; int iAWMeldeart; iAWMeldeart = (int)iMeldeart.GetValue(0);
ProductionFacilityScheduler - can't set CountryName property
Hello all, I've found yet another problem with ProductionFacilityScheduler object in AddIn Framework. Trying to set the value of CountryName property throws the exception (Unable to write read-only property) even though that Help hints that technically
Multi-Threading Sub Thread bricht ab
Hallo Zusammen, ich versuche mich gerade daran Aufgaben in verschiedenen Threads bearbeiten zu lassen, um die Zenon Runtime nicht zu blockieren. Hintergrund ist folgender, ich habe eine Funktion die mir einen Report (von einem Energiezähler) als PDF exportiert.
Zeitbereich für Reports komfortabel in Runtime anpassen
Hallo, ich stelle Energieverbräuche dar, und nutze hierfür den Reportviewer. Ich suche eine komfortable Möglichkeit um z.B. in einer Wochenansicht mit einem Vor- und Zurückbutton den Zeitbereich um die Dargestellte Zeit (hier 1 Woche ) zu verschieben.
Zu viele BulkChanged Events
Hintergrund: In einem Projekt benötige ich beim RT Start (bzw. nach dem Nachladen und auch später dann unregelmässig) die Werte einiger Variablen. Die Wertänderung, also das Changed Event benötige ich aber eigentlich nicht. Jetzt hab ich mir eine leicht
Create Zenon Logic
Hi, It's possible to create a Zenon logic project and deploy my logic inside it with API? Thanks in advance. This is a migrated post! Originally posted on 19.05.2020 by user matheusmoller. Please be aware that information can be outdated.
AddIn Nachkommastellen einer Variable ändern
Hallo an alle, ich versuche gerade die Nachkommastellen einer Variable in der Runtime zu verändern. // Test Nachkommastelle var wert = context.VariableCollection["Panel.Sensor.Si_Nachkommastellen_vv"].GetValue(0); IVariable tarVar = context.VariableCollection["Panel.Sensor.Sr_Istwert_vv"];
Zugriff auf den Grenzwerttext einer Rema
Hallo, ich möchte in einer ProjectWizardExtension auf einen bestimmten Grenzwert einer Variablen zugreifen und diesen dann in eine andere kopieren. Soll heißen: In einer Integer-Variablen wird der Wert 15 reingeschrieben-> Der Grenzwerttext von Position
Import XML - Zenon Logic
Hi, Is it possible to import an XML inside Zenon Logic with the API? Attached is a screenshot of the action I would like to perform. Many thanks in advance. This is a migrated post! Originally posted on 22.03.2020 by user Alexanrde78910. Please be aware
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
Editor Aktualisierung unterdrücken
Hi, ich habe einen Editor Wizard mit VS2017 in C# erstellt, der mir automatisch Variablen abhängig von SPS Programmen erzeugt. Vorher hatte ich ein ähnliches Makro in VBA. Das Problem ist, dass der Code nun deutlich langsamer ist. Ich meine damals hat
Wizard im Zenon Editor automatisch starten
Hallo, wir stehen aktuell vor folgender Herausforderung, die wir umsetzen wollen / müssen. œber die Zenon Runtime soll der Zenon Editor gestartet werden. Gleichzeitig sollen dem Benutzer in der Runime mehrere Möglichkeiten zur Auswahl stehen, verschiedene
Next Page