Erron on AlarmClass StatusVar
I read the thread below http://www.copadata.com/forums/showthread.php?p=1191&mode=threaded and I' want to read the StatusVar from an alarmClass item, but I receive an error on the line: VBA Code: Debug.Print MyWorkspace.ActiveDocument.DynProperties("AlarmAreas["
Web client VBA
Hello, I have the folloving problem with Web clien VBA: I am using a VBA code that distinguishes between WEB logins and local logins - so the same user has differernt autorization level if logged over web. When I run the web client I get error (see attached
[Help] AnimateWindow
Good morning to all. A question for experts... Is possible to use the Windows API function type: (AnimateWindow) at the opening or closing of the zenon template (screen's)? Thanks in advance. This is a migrated post! Originally posted on 01.05.2012 by
Another question about ArchiveFilter memory consumption
Hallo! I use 6.51SP0 Build7 When I use ArchiveFilter.Query or ArchiveFilter.QueryBlock in no matter VBA or VSTA code, I noticed tendency of occupy all available memory on big amount of data. To be concrete - if Query result contains about 20.000 values,
Revision bit of Internal variable
Hi, I want to block the alarm of an internal variable in runtime. I tried setting the revision bit of the variable through VBA. But its not working. Is there any other way to block the alarm of an internal variable? TIA This is a migrated post! Originally
Rahmen von Button sichtbarschalten
Hallo Zusammen, habe ich die Möglichkeit das Attribut "AlphaBorderColor" während der Runtime zu beeinflussen? Etwas in der Art obElem.DynProperties("Text button").AlphaBorderColor = 100 Leider habe ich noch keine Erfahrung im Umgang nit den DynProperties
GetWindowText
Hallo Aktuelle Problematik ist folgende. œber die Funktion GetWindowText wird der Inhalt der MDI Elemente ausgelesen und weiterverarbeitet. Abweichend zum Programmbeispiel von R. Ficker wird hierbei nicht mit dem obElem gearbeitet. Die Routine funktioniert
Array Variablen adressieren
Hallo, ich möchte mit VBA in einer Schleife auf Array Variablen zugreifen. Var_[1], Var_[2] etc. For i = 1 to 100 thisProject.Variables.Item("Var_[1]").Value . . Next Dabei soll [1] jeweils durch den Wert der Variablen i ersetzt werden um die Variable
MouseOver fonction
Hello, Have you any exemple of MouseOver fonction ? I just want to switch between "graphic file" and "graphic file down" in a button, when the cursor comes in the button and switch again when the cursor goes out the button : just like in a browser...
Verlinkte Variable von Element in RT ändern
Hallo, hab ein, so dachte ich, einfaches Problem. Hab im Bild z.B. ein Element "Zahlenwert", dem eine Variable hinterlegt ist. Nun möchte ich in der RT diese Variable ersetzen. Geht das? Gibt es Alternativen? Bei dem Versuch mir den Variablennamen anzuzeigen
Logging into multiple projects
Hey, I'm having problem logging user into mutliple projects. In my workspace, I have a main project, witch contains a few sub-projects. I was trying to implement metods from this thread. When I used herbertos code, I was getting message box saying "Invalid
Element.Type
Hallo, versuche gerad den Elementetyp von den Elementen innerhalb eines Bilds über VBA auszulesen. Leider bekomme ich gleich welches Element (Button, verlinktes Symbol, Universalregler, etc.) ich übergebe immer den die Typnummer 0 zurück. Woran könnte
Activate variables based on new structure elements
Hello, we are working with structures which are imported from the PLC programming software. When we are updating this structures there are some new entries. When we have some variables which are based on this structures the new entries are inactive. In
Get Command name from variable
Hallo! I try to get information about what Command is linked to variable. In code like VBA Code: Public Sub LeftClickDown_SdSymbol(obElem As Element) Dim var As Variable Set var = obElem.ItemVariable(0) Dim LockingName As String LockingName = var.DynProperties("LockingName")
BCD conversation
Hi, I have to convert BCD numbers to integer or to double. I've writen the code. It works, but it's very slow. 16 conversation takes more hthen 1 minute. 1. Why is it too slow? 2. How can I make the conversation? 3. Any other solution? the present code:
Return using VBA and VSTA
Hi! Here`s my problem: return to last in 2 projects I`ve tried to use the system variables "last open screen" and to edit project.ini to work with templates from subproject (ZURUECK_SCHABLONEN=_frame1,_suframe1,). But it didn`t help me. I see, that "last
Calling function from another project
Hi, need in my VBA macro to call function from another sub-project. The expression: Public Sub LeftClickDown_Default(obElem As Element) zenOn.Projects.Item("Name_of_sub-project").RtFunctions.Item("f_sw_ups").Start End Sub - doesn`t work. What`s wrong?
Strange Error while filling Rema
Hi, I have a VBA-Wizard which fills a Rema with content from an excel sheet. First it reads the content into an array. Afterwards it should write the content form the array into the Rema, but that is when the error occures: "Run-time error '-2147467259
GetWizardCategory()
Hallo, ich habe eine kleine Frage: hat man die Möglichkeit, die Wizards in einem Unterordner zu kategorisieren? Durch GetWizardCategory() kann man einen Wizard in einem Ordner kategorisieren, aber wir möchten auch einen Unterordner in diesem Ordner bestimmen
Online Variables (bei Wertänderung - VBA code ausführen)
Guten Morgen, bin neu im Forum und hoffe meine Frage ist nicht zu trivial ;) Hätte eine kurze Verständnisfrage zu den OnlineVariablen & "With Event". Mein Problem: - ich habe im ZenOn 12 INT Variablen (mit Treiberverweis auf einen DB der S7-SPS) - falls
Get Symbol Name from Init menu function
Hallo. I have library symbol with name "CombySymbol1" that contains from one CombyElement with name "Comby1". This "Comby1" in runtime properties section linked with context menu element, that runs VBA function Init_Menu when selected. Also i have some
Verriegelung in RGMVariablen
Hallo Zusammen, Normalerweise setzen wir die Verriegelung einer RGMVariable so: VBA Code: dim strVerriegelung as string dim zRGMVar As RGMRecipeVar '... zRGMVar.DynProperties("Interlocking") = strVerriegelung Wenn eine Verriegelung für die RGMVariable
Funktion ArvExport Ausführungsstatus abfragen ?
Hallo, ich habe einen VBA code, der eine ArchivExport-Funktion ausführt, vorher aber noch die alte CSV Datei löscht (weil der Inhalt nicht überschrieben sondern nur angehängt wird) und danach die neue CSV mit dem Notepad öffnet. Manche Archivinhalte sind
AW: Events im Editor
Hallo, erstmal Danke für die Hinweise. Das funktioniert alles soweit, auch das mit dem Wizard.:) Jetzt habe ich aber noch eine Sache die ich nicht nachvollziehen kann. Mit dem folgenden Quellcode erzeuge ich 2 Kreise und 1 Rechteck, die dann in einem
im geöffneten Bild die Aufruffunktion ermitteln
Hallo, ich habe ein VBA, dass im ETM-Bild die GraphNamen = Var.TagNamen ersetzt. Nun möchte ich nicht für jede Bildaufruffunktion eine eigene VBA-Funktion machen. Ist es möglich in ETM-Bild bei der Option "Start-Funktion" ein VBA-Makro auszuführen, das
VBA module
Hi, I have a multi user project in which i am trying to access the the property variable.statusvalue. But in the object browser the command "thisproject.varible.statusvalue" is not available. the same thing is available in a new project(not multi user).
MODBUS communication status
Hi, I want to access the invalid bit of a variable so that i can assign a particular value to an internal variable based on whether the variable status is valid or not. the VB script i am using is written below: (here DI and Test are analog modbus driver
Execute function in VBA
How can I execute function from VBA macros? This is a migrated post! Originally posted on 17.01.2012 by user focus. Please be aware that information can be outdated.
VBA Wizard
Hallo ist es möglich die Einstellungen der IP-Adresse für den Remote-Transport über einen Wizard zu verändern? Ich finde in der VBA-Doku in der Projekt-Klasse nur das DynProperty("ProjectModidata"), dies gibt aber nur den angezeigten Text des Editores
How to get Object in Screens
Hi Zenon Experts, Im trying to get the objects in Screens. But i get error. Here's my Code: Public Sub LeftClickUp_Default(obElem As Element) Msgbox (myProject.thisProject.DynPictures.Item(0).Elements(0).Name) End Sub Thank you. :) This is a migrated
Mouse over
Hello, Help me please with my challenge. I have project on 2 monitors. I have written macro mouse over, that calls function to open pic. When I remove mouse out this object, pic is still open of course. What ways could I use to close pic on the mouse
Set variable alarm group
It's possible to set variable alarm group using vba? I've tried the solution below, but with no result. obVarAlarm.SubItem(jj).EdLimitItem(cc).Group = MyWorkspace.ActiveDocument.DynProperties("AlarmGroups[PLC1].Id") Here is the entire code: VBA Code:
Can I write a DynProperties in Runtime?
Can I write a DynProperties in Runtime? I want to do this: VBA Code: thisProject.Passwords.ItemUser(p).DynProperties("UserGroupsImExpo") = myValue It seems works but when the user is logged the UserGroup isn't change. What I can do? This is a migrated
Module exportieren
Hallo, wir wollen alle Module eines Projekts exportieren, damit der Code von verschiedenen Projekte verglichen werden kann. In Excel-VBA kann man ein Modul so exportieren: ActiveWorkbook.VBProject.VBComponents("TestModul").Export ("D:\ExportiertesModul.bas")
AlarmQuitPV
Hallo, wie kann man die dynamische Eigenschaft „AlarmQuitPV“ lesen? In der Hilfe steht, dass die Eigenschaft ein Objekt der Typ „ZT_VARIABLE“ zurückgibt. Wir haben es beim Setzten eines Objekts der Klasse „Variable“ versucht und es funktioniert
Real-Werte aus RGMRecipeValue
Hallo zusammen, wir möchten die Werte unserer RGM-Rezepte in eine Excel-Datei exportieren. Dabei wurde festgestellt, dass die Real-Werte die das Objekt RGMRecipeValue liefert, nicht mit den Werten des im Rezeptgruppenmanager dargestellten Werten übereinstimmen.
VBA unter XP - Embeddet
Hallo, kann mir jemand weiterhelfen. habe eine ZenOn RT auf einem Embeddet XP - Rechner laufen. In meinem Projekt habe teile in VBA geschrieben. Dabei rufe ich folgende Befehle auf RTrim, Format etc. wenn ich nun das Projekt laufen lasse kommt folgender
Individueller Archiv Export
Hallo, zenon 6.51, Windows 7 Ich exportiere via Zeitsteuerung täglich, kurz nach Mitternacht, die Daten des Vortages, als .txt-Datei. Soweit so gut. Aber, Kundenwünsche: - Dateien sollen gleich als .csv-Dateien abgespeichert werden. - Dateiname soll das
Project startup
I'm not sure this is the right section but ... I'd like to know if there is a rule on project startup between VBA sub Project_Active and script AUTOSTART and AUTOSTART_CLIENT. On my application look like if: on server AUTOSTART is executed after sub Project_Active
VBA macroses reference table
Hello. For example in ModuleElement i have VBA Sub named LeftClickUp_CombiElement. I need to know where it is used, or may be my project already have no links to it. Is there some solution to know what elements on what screens uses VBA macros with given
Next Page