Importing CSV file
Hello, I am trying to add a wizard to Zenon which will populate my database through information from a CSV file. I know that this functionality was implemented by a colleague of mine in an earlier version of Zenon, but I have not got it to work till date.
Access New CEL item event from VBA
With the Alarm object in VBA, there is the event which alert us of a new alarm We did not find any way to do the same with the CEL object! the only event that we found with the CEL object is 'zCEL_CelListSelectionChanged' Is there any event like the alarm
Openig popup in specify place on screen via VBA
Hello, Is there an easy way in VBA to open popup (template picture in specyfy window location) I have a same 20 valves on main screen in different places. When I click on the valve symbol, there is a popup display which shows some informations, open command,
Windows Einstellungen ändern
Hallo, ich habe eine Frage, wie kann ich aus VBA meine Windows Einstellungen ändern und zwar Farbe für die markierte Elemente? Ist das überhaupt möglich? Danke This is a migrated post! Originally posted on 12.12.2008 by user alice18. Please be aware that
Limit Text in Elementen zuweisen
Guten Tag! Ich versuche gerade die Beschriftung von mehreren hundert Dynamischen Text Elementen mit einem klick zu ändern komme aber leider nicht dahinter wo sich die Limittexte von Elementen befinden. am Object overview und in der Hilfe bin ich leider
Set Value via Drag&Drop (VBA)
Using an element (i.e. "Numerical value") it is possible to link VBA Drag & Drop events. Thus it is possible to drag the actual value of a value (displayed in an numerical element, switch, .. ) to a value which is displayed in another element. Following
Symbol - Verknüpfung ersetzen
Ich habe ein großes Symbol gemacht, wie kann ich aus VBA Verknupfungen ersetzen? z.B. 1100 gegen 1120? Habt ihr eine Idee?:confused: This is a migrated post! Originally posted on 04.12.2008 by user alice18. Please be aware that information can be ou
Control array
hello, In vb6 a control array can be created upon copying so that a control could be addressed by its index , I see that this is not possible using the vb editor from zenon . is there a way to create control arrays using zenon vb editor? And in the toolbox
DynProperties von einem Element in der Runtime ändern
Hallo erstmal! Ist es möglich die Dynproperties von Elementen per VBA in der Runtime zu ändern? Genauer gesagt z.B. bei einem Schalter während der Runtime ein anderes Bitmap zu verwenden. Im Editor kann man bei einem Schalter ein Bitmap-Bild für LOW und
Information Unlimited 16 - Sample
Here is the sample described within the information unlimited 16 (IU16)... Please read the article first to understand the sample. It shows how to create diiferent project parts from an external source... This is a migrated post! Originally posted on
thisProject.DynProperties("GUID") gibt "leer"
Hallo, ich versuche in 6.22 SP0: Guid = thisProject.DynProperties("GUID") Datei = "C:\Dokumente und Einstellungen\All Users\Anwendungsdaten\COPA-DATA\SQL\" & Guid & "\FILES\zenOn\custom\languages\ZENONSTR.txt" aber kriege guid="leer" Wo liegt mein Fehler?
How to open popup in specyfy location???
Hello, Is there an easy way to open popup (template picture in specyfy window location) I have a same 20 valves on main screen in different places. When I click on the valve symbol, there is a popup display which shows some informations, open command,
Create AlarmClasses / AlarmGroups / AlarmAreas via VBA
With zenOn versions >= 6.22 it is possible to create AlarmClasses / AlarmGroups / AlarmAreas via VBA: VBA Code: Private Sub CreateAlarmClassGroupArea() Dim nClassCurrentAmount As Integer Dim nGroupCurrentAmount As Integer Dim nAreaCurrentAmount As Integer
create a recipegroup and recipe with "link to PV"
How do I create a recipegroup, then link a variable, then create a recipe, and then change the type of the variable to "link to PV" and set the target variable? [visualbasic] Sub create_rgm_rec_alloc() Dim myRGMgroup As RGMRecipeGroup Dim myRGMrecipe
create a recipegroup and recipe with "link to PV"
How do I create a recipegroup, then link a variable, then create a recipe, and then change the type of the variable to "link to PV" and set the target variable? [visualbasic] Sub create_rgm_rec_alloc() Dim myRGMgroup As RGMRecipeGroup Dim myRGMrecipe
Manipulate DynProperties during Runtime
Is it possible to manipulate the DynamicProperties (SubstituteDestination) of the "linking Rule" of a symbol in Runtime mode Situation I have a symbol inserted in a faceplate with SubstituteSource = X1* and SubstituteDestination "V63" The variables are
Feiertage berechnen
Mahlzeit zusammen, die Aufgabe ist aus dem gegebenen Datum, Ostersonntag, die restlichen Feiertage berechnen zulassen. So ist beispielsweise Rosenmontag = Ostersonntag - 48 usw. gibt es eine Funktion die mir diese Datumsangabe ausgibt? Im vorraus vielen
faceplate
hello I want to create a faceplate in zenon like the faceplate that are found in PCS7 for example once clicking on a variable in runtime a form(the same form for all variables) is shown having the Low Low limit, low limit, high limit , high high limit
Script.Add... funktioniert nicht
Hallo! Ich versuche gerade per VBA bei einem Script im Dachprojekt eine Funktion aus einem Unterprojekt einzufügen und bekomme eine Fehlermeldung (siehe Screenshot). Gibt es etwas zu beachten bei Dachprojekt/Unterprojekt oder mache ich etwas anderes falsch?
Grenzwert ändern für ein Strukturdatentyps
Wie kann man zu einem eingebetteten Strukturelement eines Strukturdatentyps, einen Grenzwert erstellen? This is a migrated post! Originally posted on 16.10.2008 by user m.parotat. Please be aware that information can be outdated.
Anlegen und Parametrieren von Funktion Typ 'žTreiber Kommandos'œ
Hallo! Ich versuche gerade per VBA eine Funktion von Typ „Treiber Kommandos“ anzulegen und komme bei den Parametern einfach nicht auf die richtige Syntax. Das Anlegen der Funktion ist kein Problem, aber wie setze ich die Parameter damit der Modbus
Wrong behaviour for timer/VBA
Hi there, I have a VBA script that runs on a timer every 2 seconds. The script is (basically) this: sub watchdogger Dim watchdogCount as Variable Dim returnVar as Variable Set watchdogCount = thisProject.Variables.Item("PLC1_WatchdogCount") Set returnVar
Variablenzahl im dyn Grenzwerttext
Hallo Wenn man die Anzahl der Variablen, die man im dynamischen Grenzwerttext ("$%v1;v2..") einer Variablen benutzt, verändert, scheint sich auch auf alle älteren Datensätze dieser Variablen auszuwirken. Bsp.: v ist eine boolsche Variable, die beim Wert
AML-Einträge verändern
Hallo Forum Ich würde gern einen Eintrag in der AML noch nachträglich verändern. Bsp1: Ich erhalte ein Telegramm von der Steuerung, fange es in VBA auf und setze daraufhin ein bestimmtes Bit mit Grenzwerttext. Den Eintrag sehe ich daraufhin in der AML
Run a VBA function from a button passing paramters
hello. I have a VBA function (or Macro or whatever you call it) and it takes 3 parameters (int, int, bool) I want to call this function from several differnet buttons but with differnent parameter values. Is this possible? The closest I've got to doing
How to create a new MACRO?
Hi there! I'm very new to thsi Zen0n stuff so please bear with me. I have a simple question: I want an action to occur when I click a button. So I: 1. Create a new Picture 2. Add a button 3. Goto Button properties 4. Choose VBA 5. Click on LeftclickDown
Send To Hardware in 6.22
Hi, I had an allocation that ran as part of a script in 6.21 SP1. The allocation basically sent a the value of an internal variable direct to hardware for use in a VBA Macro. I upgraded to 6.22 and it doesn't seem to like it. When running the run time
Language Table Keywords and VBA
I have a static text element in a picture, and I need to set the text dynamically from the language table. Below is the VBA function I created to test this: Public Sub testvba() Dim zVariables As Variables Dim ztest As variable Dim ztest2
Edit Variable limit (Delay)
Hi!! i would like to edit the limit delay of a variable during runtime. Is it possible? I want to have on another variable, the delay value (in seconds) of the limit of the first variable. Thanks in advance. Best regards, This is a migrated post! Originally
Comboboxes in VBA
I have an array of internal string variables that are editable through my zenOn interface, and I want these strings to be listed in a combobox. How can I dynamically generate the selections in a combobox with VBA? This is a migrated post! Originally posted
Variablen auslesen
Hallo zusammen, habe gerade mit VBA angefangen und wollte mal fragen wie man die Variablen die man sich im Projekt angelegt ausliest bzw. beschreibt. Ich hätte da noch eine Frage zur Zeit synchronisation. Die Systemzeit mit der Zeit auf einer Variable
strange behavior
Hi all, hope someone can help me on this: When a variable changes, i'm calling two subroutines: Check_CSV and prod_comp. Check CSV: will check the barcode in a CSV file, and updatde product description (strL2Prod.sO1Desc). prod_comp: will check product
Treibermodus per VBA ändern?
Hallo zusammen! Ist es möglich den Modus eines Treibers per VBA zu ändern? :confused: Ich habe 50-60 Projekte in meinem Dachprojekt und würde gerne im Editor per Funktion (VBA) zu Testzwecken in allen Projekten zwischen Simulation und Hardware wechseln.
OpenFileDialog
Hallo, ich fange gerade erst an mich mit zenOn vertraut zu machen. Ich habe eine Frage und zwar würde ich gerne wissen, ob es in zenOn einen OpenFileDialog gibt, bei dem man dann eine Datei auswählen kann - so wie von Windows her? hab es schon mit einem
Probleme bei Datentypkonvertierung in VB
Hallo, ich möchte den Inhalt einer CSV-Datei einlesen. Der Inhalt ist wie folgt aufgebaut: STRING; REAL-Zahl; REAL-Zahl; REAL-Zahl; REAL-Zahl; REAL-Zahl; da ich später REAL-Zahlen vom Panel aus an die Steuerung überegeben möchte. ich lese die CSV-Datei
Probleme bei Datentypkonvertierung in VB
Hallo, ich möchte den Inhalt einer CSV-Datei einlesen. Der Inhalt ist wie folgt aufgebaut: STRING; REAL-Zahl; REAL-Zahl; REAL-Zahl; REAL-Zahl; REAL-Zahl; da ich später REAL-Zahlen vom Panel aus an die Steuerung überegeben möchte. ich lese die CSV-Datei
Drawn event
Hi all, i hope this is not a stupid question (the probability is high!): i made a VBA script to check a value of a variable in a "Numerical Value" element, compare it to an array that i have and if is equal, do something... well this works great when
compare time variable with system time
[i've started this Post in General Support] Hi all, my VBA skills are not very nice.. so i would like for some help, if possible. I'm trying to compare the actual system time with an interval time between two variables. I tryed it with 3 variables (2
Dynamische Onlinevariablen im Container
Hallo, ich bin blutiger Anfänger in VBA und versuche gerade meine ersten Gehversuche. Ich habe einen Skript geschrieben, mit welchem ich in einer Form die Motoren im Feld steuern möchte. Der Skript funktioniert soweit, aber ich möchte das der benötigte
VBA scripts by alarms events
how can I choose time of operation and any other alarms events in archive and display them in a separate window? This is a migrated post! Originally posted on 13.08.2008 by user captain. Please be aware that information can be outdated.
Next Page