data structure to JSON data sending as value
Hi, is it possible to generate JSON in base of web client starter data structure object? Schema of actions: 1) zenon client control (web client starter) takes snapshot of machine data (some list of variables or whole structure) by one wstring variable
Thread Sleep
I am finding that if I do: context.VariableCollection["PLC!G_HMI.Recipes.WorkHmi"].SetValue(0, true); Thread.Sleep(10000); The variable goes true past the 10 secs and not before. Is there anyway I can do this before? I need to wait the 10 Secs for a timeout
AD Comparison UserLevel and UserGroupLevel in clent side for validation access
Hi, I use Active Directory in projects. In global project I have few user groups, and have no users. List of users, feeds directly from AD. And I use events in service. How to check if logged AD user have access for clicked button either not? Action executes
context.Parent.Parent.Close(); on client side
Hi, would it work on client side context.Parent.Parent.Close();? When I trying to use that in Web Client Starter, client freezes. So if it work, what I need to do before using this statement? This is a migrated post! Originally posted on 20.04.2022 by
Add In read/write Project Properties
Hi! I am scripting in C# to read for example the "Minimum password length" for starters. The idea is to be able to modify this and other parameters in runtime. the code I use: IProject context; context.VariableCollection["Debug1"].SetValue(0, Convert.ToInt32(context.GetDynamicProperty("MinPwLength")));
Changing linked property of a inserted symbol c#
Hi, So I'm currently working on a project for auto generated variable, screens etc. and I'm able to insert a symbol into the screen specified with my add-in, but I can't seem to find the correct way to change my linked property for a button. Example:
Eigenschaften vom Datentyp ableiten
Moin, besteht die Möglichkeit, dass man über ein Addin das Ableiten der Datentyp Eigenschaften antriggert? Vielen Dank schon einmal! This is a migrated post! Originally posted on 29.03.2022 by user a_werner. Please be aware that information can be o
OnlineVariableContainer with Initialvalues
Hello! Scenario: Our Addin is using HTTP Requests to push data. There are multiple values required to successfully push a dataset. One of this values is being changed every few seconds and is triggering our BulkchangedEvent in our OnlineVariableContainer.
Service Behavior while control element change color [Bug?]
Hi, when below code executes (attached) in running service, sometimes looks like service freezes. Seems code executes correctly (every time when I used debugger it works). But I suppose, when element in the screen changes his color (in that way as in
Service Destructor behavior (KeepAlive inside objs)
Hi, I have service, what is started when screen is opened. Inside of the service I have created few classes. Sometimes, when I operate on that screen, destructor of that service is called. How to prevent that behavior? Purpose is to save state of that
Client Dubuging
Hi, is it possible to debug client (Client Web Client Starter) running service by VisualStudio? What I need to do for this? This is a migrated post! Originally posted on 17.03.2022 by user Oleksandr. Please be aware that information can be outdated.
Import Export XML Variables
Hi, is there are some example how to use import and export XML variables approach in add-ins? In Copa-Data training that part was not highlighted This is a migrated post! Originally posted on 17.02.2022 by user Oleksandr. Please be aware that information
Zenon Object data exchange
Hi, In zenon project I have data type (bunch of structures and data types), what contains information about production object. In library for add-in, I have object with same named structure of clases and properties as in zenon project. When I run wizard,
[AddIn Service] Background worked - write variables
What is the recommended way for maximizing write operation throughput within the AddIn Engine? Let's consider the following scenario: Runtime Service does multiple writes based on the data received from the external system The data throughput is pretty
WPF System.Windows.DependencyProperty not registering property
Hi, I makes some test, what described in WPF Element manual v8.1. When I load WPF, dependency property is not in the list of properties in WPF Links. What may be reason of that behavior? Variable Linking not succeed for me on both runtime and client.
Dynamic font size on client side
Hi, what will be the best way to change font size at least for one project (or/and each loaded project on client) from client side for dedicated client? 1) Font in projects must be changed for all elements that contains font a) It would be nice to retentive
WPF Engineering Studio Wizard - External Controls
Hey, There's a little project I am working on right now and it seems there are some issues with utilizing external WPF Controls (Syncfusion) Essentially I add the nuget package containing the control, implement what I want to implement and then - upon
Get zenon project context in WPF
Hi, is it possible to get zenon project context from wpf code based project? How to do that? This is a migrated post! Originally posted on 21.01.2022 by user Oleksandr. Please be aware that information can be outdated.
WPF with code behind (update of changes behavior)
Hi, when I change something in code behind project, when I load xaml to wpf object in zenon Supervisor, no changes mades. First version of that xaml loads. If I change background at xaml only oproject, than that changes accepts correctly. So I suppose
WPF with Entity Framework integration
Hi, is it posible to use code based wpf project (inside xaml only project) with added an reference to dll, what contains entity franework dependency and app config file? When I try to use that set in zenon Supervisor I have errors. Do I doing somthing
Entity Freamwork add-ins integration behavior
Hi, I had spend some time on developing add-in with Entity Framework, and I accounting with strange behavior: after importing addin with Entity Framework to the zenon project, and generating runtime files, zenon Supervisor during executing my wizard,
Visual Studio 2022 extension
Hi, are so plans to distribute new extension for visual studio 2022? When? This is a migrated post! Originally posted on 05.01.2022 by user Oleksandr. Please be aware that information can be outdated.
ORM Layer vs zenon
Hi, in our project we many times querying sql server. Therefore, we supposed to use entity framework wor it. What is the best way to relate ORM layer vs zenon add-ins (and or project variables)? We will have dozens of sub projects and few main projects.
Threading vs data union in RAM
Hi, 1) I plan to execute one wizard for entire subproject (or if it possible for client). What I can put into "while" condition to observe is subproject (or runtime in other case) still running? 2) This while loop will be in sepparate thread. Is it good
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
Next Page