VariableChange old value
Hello Im using VBA in Zenon 6.22. When I creates onlinevariables, and uses the VariableChange event. Is there any way to get the old value of the variable? So if a variable changes from 1 to 2, I would like to be able to read both "1" and 2 This is a
dynamic menue
how can make the caption of a menu item in mainmenu dynamic? for example when value of one variable be 1 the text of the menu became "On" and when value of one variable be 1 the text of the menu became "Off" This is a migrated post! Originally posted
how to change driver in runtime
hi! i wanna change the driver (such as IEC 101)of 400 variable to intern variable in runtime how can i do it? thanks alot This is a migrated post! Originally posted on 11.10.2011 by user victoria. Please be aware that information can be outdated.
Veriegelungen an Element über Wizard
Hallo ist es möglich eine Verriegelung an ein Bildelement über einen Wizard/Makro zuzuweisen Das Property aus der Hilfe im Editor kennt er nicht Ich verwende Z6.22B17 Grüße Frank This is a migrated post! Originally posted on 06.10.2011 by user perschke.
Projektübergreifenden Onlinevariable anlegen
Hallo! Ist es möglich eine OnlineVariable in einen Integrationsprojekt zu erstellen, in der ich dann Variablen aus den Unterprojekten auf Wertänderung überwachen kann? Ich habe es mit zOLV.Add "Projektname#Variablenname" versucht aber leider ohne Erfolg.
Auto Scaling problem
Hello, I am new in this forum I work on a Zenon supervision project I have a question concerning the implementation of the Auto Scaling of curves in vba, I would like to retrieve the min and max date in the curve display before I can look in the archives
Einfache Timerfunktion in zenon's VBA integrieren ohne das die RT gestoppt
Hallo Wie kann man relativ einfach eine Timerfunktion in zenon's VBA integrieren ohne das die RT gestoppt wird... Im endeffekt so ein htton der mit der Funktion "zElement.Hide = False" sichtbar geschaltet wird nach z.B. 10 Sekunden wieder mit "zElement.Hide
Tab Control
How can i use Tab Control in my screen? This is a migrated post! Originally posted on 20.09.2011 by user anahita. Please be aware that information can be outdated.
insert symbols from project library with hierarchical names
How to insert instances of linked symbols from the library into a new screen, using hierarchical naming: Notice the ".Pump" for the symbol in the project library called "Pump" Take care, each symbol receives a unique symbol number! VBA Code: Sub insertLinkedSymbols()
VBA And Multiple Monitors
Hi, I am loading the picture name from a database and using the picture switch with index to load the correct picture. What I also need to do is assign which monitor it display it on. VBA code to used so far ; thisProject.Variables.Item("Screen1").Value
Zugriff auf das "EleternSymbol" eines Buttons
Hallo ICh habe folgendes Problem: Ich habe mir ein Symbol angelegt in den ich ein paar Buttons sichbar und unsichtbar schalten will. Die Buttons welche die Sichbarkeit verändern liegen sind auch in diesem Symbol. Nur bekomme ich mit VBA nicht den Namen
Get milliseconds information from CelItem
Hello all, Does anyone know how to get the milliseconds information from a CelItem object? I'm getting the user interaction to the "events list" through the "CelListSelectionChanged(ByVal obItem As ICelItem)" callback. It works fine. But I can't find
Makro für aktuellen Focus
Hi, bin gerade an einer Umstellung von Zenon Version 5.50 auf 6.51und suche nach einer Möglichkeit den aktuellen Focus der Runtime auf eine beliebige Schablone bzw. ein beliebiges Bild via VBA Makro zu ermitteln, ohne die gesamte Bilder-Bibliothek mit
Send Value to hardware
hi! how can i send value to hardware in vba with out using function send value to hardware or command thisProject.Variables.Item("xxxx").Value = 0 is not usefull in this case? This is a migrated post! Originally posted on 04.08.2011 by user anahita. Please
VBA Wizard don't work properly with multiple Element of Type 130
Hello support! We want to change some values inside the Dynproperties of some elements of type 130 (i.e the $_xxxx propetries). To do this we have followed the example of the COPA DATA Wizard 'frmSymbol'. We apply the procedure to many (i.e. more than
RemoteTransport
Hallo, in einem Projekt möchte ich gern die Pfade für den RemoteTransport über VBA ändern, da sich die Pfade tagesabhängig ändern. In der VBA Hilfe (vom 07.11.2007) kann ich nichts darüber finden. Finde auch leider keine aktuellere VBA Hilfedatei. œber
Program access to structure datatype variables
Guten Tag! We have a lot of structure datatype variables in our projects and wish to use their Identification field in our VBA or C# programs. When we tryed to access this variables by .Variables().Items(StructureTypeVarName) we received "null" as result.
RGMRecipeVars sortieren
Hallo zusammen, wir möchten die Variablen der Rezeptgruppen durch VBA sortieren. Ist das möglich? Grüße rln This is a migrated post! Originally posted on 28.07.2011 by user rln. Please be aware that information can be outdated.
"WriteSync" und "PWLevel"
Hallo zusammen, wir versuchen durch einen Wizard die Eigenschaften „WriteSync“ und „PWLevel“ der RGMRezepte zu bearbeiten. Ich habe in der Hilfe gelesen, dass beide Eigenschaften nur zum Lesen vorhanden sind. Es hat aber trotzdem bei uns vorher
Can't repeat WPF#1 blog examlpe
V6.51SP5 On the last stage (PassDataDirect VBA function) I give error before use of obElement.WPFProperty. Public Sub PassDataDirect() On Error GoTo Exit_Proc MsgBox thisProject.DynPictures.Item("Screen 0").Elements.Item("WPF").Top Dim obElement As Element
VBA Wizard Zuordnungen
Hallo ist es möglich Zuordnungen(Assign) die in einer XML.Daatei gespeichert wurden über einen Wizard in ein anderes Projekt zu importieren Und wenn wie heißt der Befehl Ich verwende Zenon 6.22B17 Grüße This is a migrated post! Originally posted on 14.07.2011
Nach welchen Kriterien werden OnlineVariablen angelegt?
Hallo, in einem Projekt muss ich auf mehrere Variablen mit VBA zugreifen. Dafür habe ich ein Container mit OnlineVariablen erstellt. œber ein "Filter" lass ich alle Variablen reinschreiben, die den String ".bStatus" im Namen haben. Nun würde ich gerne
access to variable adress in Runtime
hello i really need to access to the variable address in run time with this code i finde error :( VBA Code: Public Sub LeftClickDown_Default(obElem As Element) Dim var1 As Variable Dim myVal Set var1 = thisProject.Variables.Item("Feeder 404 Current")
Import Tagname from .csv file
Hello I am a beginner in VBA using. I want to import parameter Tagname from csv file. I read "Name" into variable tta_str and "Tagname" into descr, but I can not write Tagname into a variable. It is working only if I put into Item(" variable name ").
Aktuellen Gernzwerttext VBA auslesen
Gibt es eine Möglichkeit auf den aktuellen Grenzwerttext aus eine onlinevariabele auszulesen. Ich habe im Onlinecontair die Variabelle (mit 9 Grenzwerten) hinzugeführt. Bei Variabelle „nderung wir der VBA Code ausgeführt. Wie bekomme ich den zuzeit aktuellen
Zugriff auf Bildtypspezifische Funktionen
Hallo, seit kurzem beschäftige ich mich mit Zenon, doch in Sachen VBA hab ich noch ein paar Probleme. Bin dabei eine Rezepturveraltung zu erstellen und dem Bediener soll es möglich sein, über ein dynamisches Textfeld nach Rezepten zu suchen. Wie kann
Berechtigungsebenen-Liste lesen
Hallo Zusammen, Ich versuche durch VBA die Parameter der Benutzerverwaltung eines Projekts in eine Excel-Datei zu exportieren. Diese Excel-Datei sollte eine Tabelle mit den Nummern und Namen aller Berechtigungsebenen enthalten. Ich habe versucht die Eigenschaft
User in subprojects
In my workspace there are: 1) a global project A; 2) a standard project B that contains other standard projects C1, C2, C3, ... If a create an User in the projects B, C1, C2, C3... and try to login, for every subproject I get the "Invalid User Identification"
VBA error after upgrading rpoject to 6.51
After upgrading project from 6,50 to 6,51. I have VBA error code '91'.Object variable or With variable block not set. The code is Private Sub zAlarm_AlarmComes(ByVal obItem As IAlarmItem) '|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Does "Project_Active" work only with ACTIVE DIRECTORY on?
It seems that the VBA Method Project_Active doesn't work in my project. Can this be due to the disactivated "Access to Active Directory" field? Thanks This is a migrated post! Originally posted on 23.05.2011 by user n.bulgarini. Please be aware that information
Where are RtFunctions located?
I need to locate and modify the following function of a project: Call thisproject.RtFunctions.Item("START_SCRIPT").Start I can't find it by opening the VBA editor and checking the whole code. Am I looking for in the wrong place? Thank you This is a migrated
Reset of counter variables
I want to reset some Counter variables that created by mathematic driver. Actually the counter has no reset function or reset input in zenon. Also it is necessary for me to reset all of counters (not individually) in one step. Do you recommend to use
UTC datetime from IPA
Hi Does IPA table store datetime in UTC format? Is there any way to get UTC datetime from "TIMERECEIVED" and "TIMECLEARED" from IPA table? Thank you This is a migrated post! Originally posted on 11.05.2011 by user fabios. Please be aware that information
Button betätigen über VBA
Hallo zusammen! gibt es eine Möglichkeit Buttons in einem bestimmten Bild über VBA anzusprechen und ein LeftClickUp Ereignis des entsprechenden Buttons auszulösen? Der Hintergrund ist folgender: wir haben im jetzigen Ausbau ca.25 Anlagen deren Status
Right Click issue
Hi , How come i am unable to execute all my right click commands in the VBA macros? even in such a simple example as below.... Public Sub RightClickDown_Default(obElem As Element) MsgBox ("Hello") End Sub I just simply draw a button , did not link to
Bild zurück
Ist es Möglich den Speicher der zuletzt geoffneten Bilder bei laufender Runtime zu löschen um nur kapitelspezifische Bild zurück Funktionen ausführen zu können. This is a migrated post! Originally posted on 20.04.2011 by user brenner. Please be aware
Transmit trigger variable into VBA makro
Hello! I just wrote a little makro which saves the last values of a variable after calling the makro from a trigger variable limit. I would like to use it on more Variables with different trigger variables. Is there a possibility to transmit the variablename
Migration from V6.21 to V6.51
Hi I'm migrating an application from V6.21 to V6.51 I' m having problem with this part of code during custom wizard executing. VBA Code: Set zRMA = zPRJ.Remas.Item("LOOP.Selection") If zRMA Is Nothing Then Set zRMA = zPRJ.Remas.Create(tpAnalog, "LOOP.Selection")
How to create a rtfunction with vb
i nedd to create a rtfunction in vb when the user push a botton in zenon. how can i do this??? This is a migrated post! Originally posted on 08.03.2011 by user gozzi. Please be aware that information can be outdated.
WriteExString2CEL, Value not updated.
Hej I can not get the CEL list to accept/show changes I make for the value entry. The CEL list shows YourText, GroupNr and ClassNr but Value is blank. Zenon 6.22 SP1 Build 0 Public Sub MyScript() Dim YourText As String Dim VarName As String Dim GroupNr
Next Page