VSTA: Question on online container and array
Hello, through the development environment I'm defining a new variable "MyVar" with the property "Block array size" different from 0 (let's say 100). when from VSTA I add this variable to an online container: ovVars.Add("MyVar"); can I consider the whole
How multiple macros will execute in VSTA runtime?
Hello, In our project i am having machine sequence in a VSTA VB.Net macros and calling the macros through online container variable change event. I have 10 stations and all macros should run parallel. Is in VSTA the macros will work parallel or it will
Is debug is possible in VSTA without stopping the other running macros?
Hello, In my project i have 10 macros for machine sequence and if i want to edit and debug one macro in online is it possible to do that without stopping of other macros. I have tried this but when one macro is running i couldn't able to do this untill
How PLC Input and Output variables will be shared between Zenon RT and VSTA while macro is executing?
Hello, Please clarify me about how PLC Input variables will be updated between PLC --> Zenon RT --> VSTA and for output VSTA --> Zenon RT --> PLC while macro is executing? For example, i am triggering VSTA macro in RT using reaction matrix and it is started
VSTA-VB.Net - Macro Call Delay and Execution Delay
Hello, I am facing the following delay while executing the macro from VSTA-VB.net code. After my trigger Bool variable is high, 1. Macro is calling after 2 sec and this 2 sec delay is constant for all the trials. 2. Zenon variable from Macro output is
CDWPF-Dateien (Sammeldateien) mit mehreren DLLs
Hallo zusammen, Zum "Verpacken" eines selbst erstellten WPF Controls beschreibt das Copa-Data Manual: Eine CDWPF-Datei (mit der Endung *.cdwpf) ist eine umbenannte ZIP-Datei welche die folgende Komponenten beinhaltet: XAML-Datei (zum Referenzieren des
Time/Lot filter value in C#
Hello, I need to read the selected date in a calendar from time/lot filter synoptic in c# code. I have tried by accessing to to the element with get_DynProperties, but I don't have the keyword (and I'm not sure this is the best way). Is there any solution
VSTA in Addin Workspace
Hello, I'm following your VSTA Training course and moving my first steps in this type of programming interface. I've reachet lession unit 3.4.1 where it's created an external class from the "MyWorkspace.cs". the code in the class (called Creator) is the
Änderung der API von Version 7.10 zu 7.60?
Hallo, ich habe ein Problem mit einem selbst geschriebenen Wizard zur Erstellung von Alarmbereichen und deren Klassenverknüpfungen. In Zenon 7.10 funktioniert er tadellos, in 7.60 wird eine Exeption ausgelöst. Hier ein Teil des Codes, bei dem das Problem
import data from csv to sql
Hello, Some time ago, we had a zenon supervisor version 7.20 running and archiving data. The data was stored as csv files. Later, we changed to sql evacuation. Now, we are running 7.60 and the customer ask us to insert thee data that is in those csv.
KNX c # -Treiber
Hallo, Ich möchte Treiberprogramm in C # schreiben. Ich möchte Codebeispiele für den KNX c # -Treiber zur Steuerung der Hardware bereitstellen. Vielen Dank This is a migrated post! Originally posted on 02.07.2018 by user far. Please be aware that information
Lesen Knx c#
Hallo, Ich möchte ein Beispiel, um die Anfangswerte vom Gateway mit Sensoren in C# (Visual Studio) zu lesen. Ich habe ein Beispiel gefunden, das nur die neuen Werte gibt (nachdem der Wert geändert wurde), aber ich brauche auch die ersten Werte. Vielen
dynamic ListBox Created.
I created a combo box using ActiveX. I received an "unknown name" error when trying to check the selected item public void Macro_Init_CombBox() { try { //Get the zenon Element zenOn.IElement zElementActivX = this.Project.DynPictures().Item("top").Elements().Item("ActiveX_1");
Grenzwerttext auslesen
Hallo Zusammen, gibt es eine Möglichkeit den Grenzwerttext eines Alarms in VSTA sprachabhängig auszulesen und weiterzuverarbeiten ? Den Alarm bekommen wir schon über zenOn.AlarmComesEventHandler(zAlarm_AlarmComes) herein. Vielen Dank This is a migrated
VSTA block array
Hi i need some help with starting with the VSTA. I want to store data in a variable using the block array functions in order to display data with the extended trend. However i succed with writing and reading data using these two lines this.Variables().Item("Testar_int2").set_Value(0,
Get selected value from ComboBox
I have a SCREEN as type "Time/Lot Filter", and screen name is "myScreen". The screen has a combobox name as "cmbDayInDailyView". Now, I want to get the selected value of the combobox from RUNTIME. And I write this code in VSTA: zenOn.IDynPicture screen
VSTA Disapears
Hi, We have some VSTA code in VB.Net and during commissioning and doing some modifications and debugging All the VSTA code has disappeared. The only way we can get it back is from an old backup which is not good. Graham This is a migrated post! Originally
How can I get an element at VSTA Runtime?
In VSTA Workspace, I can get static text property. like this: [System.AddIn.AddIn("MyWorkspace", Version = "1.0", Publisher = "", Description = "")] ... zenOn.IDynPicture scr = this.ActiveDocument.DynPictures().Item("Dashboard"); zenOn.IElement Text =
Auslesen der selektiereten Alarme in der AML
Hallo! Ich suche eine Möglichkeit die in der AML selektierten Alarme am Stück (so etwas wie "getselectedAlarmItems()") auszulesen. Der Event "AlarmListSelectionChanged" wird beim gleichzeitigen Selektieren von 30 Alarme 30 mal hintereinander ausgelöst
What is that tpKanaltypes all about?
Hi, where can I find information about 'tpKanaltypes' from CreateVar function? i.e. myVariables.CreateVar(VarName, zDriver, zenOn.tpKanaltypes.tpSystemVariable, zVarType); Thanks in advance! This is a migrated post! Originally posted on 18.11.2016 by
VSTA API documentation
Hi, I'm starting to create a new Wizard in Zenon 7.50 with VSTA. I've started with the Wizard_Demo as template and it looks good. My wizard must perform many different operations with functions, scripts, copy workspace, etc. I'm looking for an API description
Whats the "BECKHNG" DynProperty for "Symbolic Address Resolutions"
Hallo Team, i created a "Beckhoff TwinCat NG Driver" (BECKHNG) driver and want to set it to "Symbolic Address Resolutions". What is the DynProperty to use? I could modify the data stored in the driver table in the SQL Server. There is a number that flips
Read workspace name from VSTA
Hi, I'm working with Zenon 7.50. I'm trying to read current workspace name from VSTA using class IZenWorkspace As described in documentation, property IZenWorkspace.Name returns always as workspace name the class name 'MyWorkspace' How can I get the workspace
VSTA(C#) connection zu MariaDB
Hallo, ich möchte mit Hilfe von VSTA (C#) Daten aus der Zenon RT (7.60) in eine MariaDB Datenbank schreiben. Hat das schon jemand versucht und hat vielleicht ein Beispiel oder einen nützlichen Link? Hello, i would like to connect the zenon RT (7.60) to
Zweiter Online Container
Hallo Zusammen, ist es generell möglich einen zweiten Online Container anzulegen? Die bisherigen Versuche scheiterten leider und wir würden gerne mehrere Online Container verwenden, um die Variablen ja nach Themengebiet zu unterteilen. This is a migrated
Updating Revision using StatusString
I am attempting to update the Revision status bit of a variable using C# VSTA. I am currently pulling the current StatusValue and extracting the Revision status bit from the value. When it differs from what I am trying to set it to, I use StatusString="REVISION=X"
Execute Functions from VSTA (VB.NET)
Im trying to run a function from VSTA and am getting an error that I dont know how to get around. Below is my code... Public Sub Macro_Thickness_Screen() 'Initialize Machine Mode Variable Dim MachineMode As String = Me.Variables.Item("sMachineMode").get_Value
Zenon not registered in ROT when launched as service
Hello, I'm developing an .NET application that is designed to interact with Zenon Runtime. Using this piece of code, I retreive the zenOn.Application instance from the ROT (running object table). C# Code: try { this._zenonApp = Marshal.GetActiveObject("zenOn.Application")
How to create a new Template (Frame) Using C#
Hello, Can you please help me creating a new Template (Frame) for a Screen? Actually I am using this code: private Template vTemplate; vTemplate = ZenonGLOBAL.Templates().Create("Test"); Where "ZenonGLOBAL" is the Global project in zenon. This is unfortunately
Energieverbrauch im Report Viewer
Hallo, ich habe eine Frage zum Report Viewer. Ich habe ein Chart erstellt in dem ich ein Folgearchiv meines Stromzählers anzeige. Das Folgearchiv enthält die Monatssumme. Das bedeutet der Wert wird immer am ersten des Monats um 00:00Uhr geschrieben. Leider
Set object to an imported XML file
Hello, we are trying to edit some pictures in the editor using a wizard. The wizard should import as many XML files of a reference picture as pictures of that type are needed in the project. Once that pictures are imported, the elements in those pictures
archive memory Leaks.
for loop memory increase Archive data variable free?? If data should be cleaned up if what should I do? zenonArchiveVariables=null; GC.Collect(); In this way, right? mysource code. //int yearto = Convert.ToInt32( this.Variables().Item("ExecuteTrend").get_Value(0).ToString());
archive memory leak.
Duplicate registration This is a migrated post! Originally posted on 30.05.2016 by user backjahyun. Please be aware that information can be outdated.
item() function very slow.
Hi,. I want to put a value in the array. The item()function takes too long in a loop. IArchiveFilterVariables zenonArchiveVariables = zenonArchiveFilter.Query(); //Get the first available filtered variable IArchiveFilterVariable zenonArchiveFilterVariable
how to vsta mode change
Hi, accidentally select the VB in the vsta. C # can't change? How could not know. i want programing in the c# vsta This is a migrated post! Originally posted on 13.05.2016 by user backjahyun. Please be aware that information can be outdated.
how to use clr option in vsta?
Hi. i want use clr option . how to way? not found project option, This is a migrated post! Originally posted on 12.05.2016 by user backjahyun. Please be aware that information can be outdated.
How can I use different .NET Framework version?
Hi. VSTA> i want use open xml sdk2.5 . This version will only work with .NT Framework4.0. but VSTA .NET version 3.5.(It supports to version 2.0.) How can I use it? This is a migrated post! Originally posted on 04.05.2016 by user backjahyun. Please be
Macro execution on current PC within multi-user project
Hey, I need to execute a VSTA-Macro linked to a button. That Macro calls a Windows Form Dialog updating user data. The project is running on a Primary/Standby Server and the Clients are synchronized to that server. How do I manage it that only connected
Simulate Mouse Event
Wir benutzen Windows 7 und zenon 7.20 build 24121. In unserer Applikation haben wir auf Multitouchgesten zu reagieren und deswegen die Option Projekt/Interaction/Multi-Touch/Recognition auf Windows 7 gestellt um so mittels des TouchManipulationCompleteEvent
VSTA dll übertragen
Hallo, ich habe eine dll in VSTA geschrieben und getestet, soweit passt auch alles. Nun würde ich gerne diese dll auf mehreren Systemen nutzen ohne immer den Quellcode in die VSTA Umgebung zu bringen. Ich habe nun auf einem anderen System die dll mit
Next Page