Einstellungen der Benutzerverwaltung auslesen
Ich möchte mittels VBA in der Runtime die Eigenschaften der Benutzerverwaltung auslesen. So z.B. : - Passwort Gültigkeit (PWVALID) - Max Benutzerfehleingaben (UserTries) - Min Passwortlänge (MinPwLength) - Max Passwortfehleingabe (PasswordTries) Wollte
VBA lässt Internetexplorer abstürzen
Hallo, ich habe folgendes Problem, nach einem Upgrade von Zenon 6.51 auf Zenon 7 stürzt der Internetexplorer auf dem Client ab, sobald ich Vba in der zenon6.ini aktiviere. Das System ist Windows7 und Internetexplorer 8. Ist das Vba nicht aktiv, startet
Button Graphics Image
I'm trying to change the image on a button based on a value read from a PLC, for example, if the value is equal to 1 display file1.bmp, if it's 2 display file2.bmp and so on. Can anyone tell me how to access the image property for a button in VBA. Thank
Activate Frame
Hello, There are two diferent screens with two diferent frames. The first frame is VARIABLES, second frame is TREND. I want to use drag and drop functionality. I want to drag variables values from the VARIABLES screen to the TREND screen to show selected
Größe der Schblone zur RT ändern
Hallo, ist es möglich, die Größe einer Schablone zur RT zu ändern? Hab es über folgenden VBA-Code versucht, es kommt aber immer eine Fehlermeldung!! VBA Code: Public Sub LeftClickDown_DevRecEdit_setStepID0(obElem As Element) Dim tpKeyboard As Template
Problem with VBA licence
Goodmorning, sorry for my english. when i open Zenon 6.21 i have this problem. I get an this message box: "Non sono disponibili informazioni sui diritti di licenza per questo componente. Non sono disponibili i diritti di licenza necessari per utilizzare
aktuelle ReportViewer-Datei ermitteln
Hallo, gibt es eine Möglichkeit, im Bildtyp 'ReportViewer' die aktuelle Report-Datei zu ermitteln (es geht nur um den Dateinamen) ? Es ist gleichgültig, ob es sich um ein VBA-Object oder eine Systemvariable etc. handelt. MfG Robert This is a migrated
Add element to zenOn ListBox
Hi I'm trying to add element in a listbox (zenOn object) with VBA during application is in runtime. The same code, is working in a wizard. To debug better, I add in the beginning a control on the presence of listbox but execution arrive at the end of
VBA and CEL
Hi, I have a VBA script which reads the state of an internal variable in Zenon and is currently creating an entry in the CEL. The internal variable limits are not sent to the CEL. How can I suppress this entry ? Cheers, Rob This is a migrated post! Originally
Create a busy indicator
Hello, I use a VBA procedure to analyse and write huge files. It takes a while to write all the data to the files. To show the user, that the application is busy but didn't crash, I would like to display a hourglas (or something else). I think it should
Update OnLIne User List in VBA
Hi All, In Zenon7 sp0 Build 2 I have used a lot of VBA to create my personalized editing function for manage the "User List" . The last function that I would like to implement is the read-back of the last saved Password.cmp file, used to backup in encrypted
VBA on the client
Hello! I have the project with 2 PCs: the first with Editor and Runtime as server, the second only with Runtime. So the same project runs both on the 1 and on the 2 PC. I have created mouse over VBA, that contains simple code: [SIZE="2"]Public Sub MouseOver_EO_WO2_KM1(obElem
How to access DynProperties("Function") of a button
Hi, I'm trying to execute a function linked to a button element from vba. But i cant figure out the syntax to execute the function. Hope someone can help me out here. Public Sub LeftClickUp_Default(obElem As Element) Dim Func1 As RtFunction Set Func1
How to access linked symbol sub elements
Hi to all, I'm searching for a way to dynamically access sub elements of a linked symbol instance inside a picture. In particular I need to search for the Function dynproperty inside a particular subitem of a linked symbol. I'm able to know the LinkedName,
"Von Datum"-Objekt Wert mit VBA abfragen
Hallo, ich habe ein Bild vom Typ ZEITFILTER mit einem Objekt "Datumsanzeige: Von Datum" (das ist die Kalenderanzeige). Der Bediener stellt hier bequem ein Datum ein, dass ich mit VBA in eine Textdatei schreiben möchte. Ich kann zwar mit VBA auf die Objekteigenschaften
WebBrowser (active x) events
Hello I've insertet an activeX control in zenon and selected the "Microsoft WebBrowser" control. Set General -> Object name = "myBrowser" When I open the picture containing the browser I use the VBA code: VBA Code: Public Sub InitBrowser() Set dyn = ThisProject.DynPictures().Item("browserPic")
EdLimit DynProperties("Function")
Hi to all, I need to read the DynProperties("Function").Name in a Wizard, associated to a variable that has some limit enabled. Unfortunately I continue to get runtime errors in VBA when there is no function specified on the limit. It works only if there
Z6.22 aktuelle Position von Elementabfragen
Ich verschiebe eine Bildelemt mit einer Variablen um n Pixel. Will ich im VBA die aktuellen den Position des Elementes abfragen bekomme ich nur die statischen links/oben(left/top) Werte aus der Editorprojektierung. Gibt es eine Möglichkeit die dynamische
variable Identification
Hi.. I have exported the variables to XML and found there are two fields 1. ShortName 2. Name. what is these two fields represents. in my project i'm going to use OPC Config. i have created variable like: PLC1:.Var1. i wanted to view only Var1(i do not
Visual Basic Debugger
Hello, really basic question. Why does not the VB Debugger stop at the breakpoint? Scripts are being correctly executed, but the debugger won't stop at the breakpoint. I know the scripts are being executed, because the MsgBox() function is being called.
SIMUL Variable
Hello, I am using Zenon 6.51 SP0. The problem is with SIMUL32 variable. I am writing this variable with a visual basic script onVarChange() and this is working correctly. However, this variable of SIMUL32 type is constantly changing value, eventhough
Decoding the INT tag bit By Bit
Dear sir, i'm having a integer Tag, which is bit encoded values. Now i have to do is to decode it by bit by bit. and store the bit values in individual bool tags. how could we do it VBA or other method? Kindly check and do the needfull. This is a migrated
Enable IPA in VBA
Hi I want to know if is possible enable/disable IPA in runtime with VBA. I found in the help property "AsmActive" but I need help on how to use this. Thanx This is a migrated post! Originally posted on 21.08.2012 by user fabios. Please be aware that information
Von VBA auf Treibervariable schreiben
Hallo zusammen, entweder stehe ich gerade auf dem Schlauch oder es ist komplizierter als ich dachte. Ich habe über einen Treiber Variablen in Zenon importiert, nun möchte ich aus VBA heraus auf diese Variablen zugreifen, doch wie geht das? lg Marco This
Limit.Variable and Limit.IsVariable programmable access
Hello everybody! I try to get subj properties of Limit in my VBA code. I found, that I have access only to 5 properties directly and to 12 properties through DynProperties (look at picture in attachment). None of them are Variable and IsVariable properties.
von der Runtime in ein externes Fenster wechseln.
Hallo zusammen, Ich habe Zenon auf einer Robotersteuerung laufen und möchte über einen Button, dass sich die Zenonruntime minimiert und auf ein bestimmtes Windowsfenster wechselt, bzw. dieses maximiert. Nach stundenlanger Suche im Netz bin ich noch nicht
MS Forms 2.0
Hi, Mal wieder ne kurze Frage ist es möglich ein Bild, dass in einer MS Forms 2.0 geladen ist zur Laufzeit in Winkeln von jeweils 90Grad per VBA zu drehen??? Mit freundlichen Grüßen. N.FL This is a migrated post! Originally posted on 10.08.2012 by user
Combi-Element per VBA anpassen
Hallo, kurze Frage ist es möglich Werte eines Combi-Elements im Bereich Konfiguration u. Test Mode per VBA zu ändern, konkret geht es um die Hintergrundfarbe des Defaultzustandes. This is a migrated post! Originally posted on 04.08.2012 by user niclasfl.
VBA set AVALUE
Hello! I am using zenon Supervisor 7.00 SP0 Build0. I am create variable for driver "Modbus RTU and Open Modbus TCP" with name "Test:". I want set AVALUE (ALT_VAL) state for variable "Test" using VBA. VBA Code: 'For set AVALUE used (NOT WORK): Public
Screen Switch in VBA
Hi Is it possible to switch the screen in vb without using the screen switch function? if possible tell me how it is? thanks & rgds, Paruvathakumar This is a migrated post! Originally posted on 24.07.2012 by user paruvathakumar. Please be aware that information
Sendkeys Funktion und Inet-Explorer
:(Hallo zusammen, ich benutze Zenon 6.51 und greife auf mein Projekt normalerweise über den Webclient zu. Die Oberfläche soll über den Browser (Internet Explorer 8.0) von mehreren Personen genutzt werden. Verfügbar sind momentan 3 Lizensen. Bei dieser
Create an interlocking
I'm trying to create an interlocking but I haven't found an example in the online help. I've found only the creation code: VBA Code: Dim zInterlockings As Interlockings 'Object from type Interlockings Dim zInterlocking As Interlocking 'Child object from
Variables association error in child project
I'm working with Zenon 6.51 SP0 Build 0. In the Editor I have a tree structure composed of a parent project and three children projects. I created a wizard to automatically create variables when a symbol is dragged into a graphic page. My wizard is composed
Error 0x800401e3 bei Verwendung in einem Windows Dienst
Hallo; ich will die ZENON Runtime von einem Windows Dienst aus via COM in C++ ansprechen. Wenn ich den Dienst als Konsolenanwendung starte, dann funktioniert alles einwandfrei. Führe ich die selbe Anwendung aber tatsächlich als Dienst aus, dann kann ich
Anzahl der Items einer Arrayvariable ändern
Hallo zusammen, wir wollen durch einen Wizard die Anzahl der Items einer Arrayvariablen ändern. Es scheint zu funktionieren wenn die Eigenschaft „Dim1“ geändert wird, weil die geänderte Arrayvariable im Editor mit der neuen Anzahl von Items angezeigt
RtFunction - DynProperties - PictSwitch.SubstiVar
Hallo, ich möcht über VBA Bildumschaltfunktionen mit "Verknüpfung ersetzen" anlegen. Bisher habe ich geschaft über DynProperties("PictSwitch.SubstiVar) Variablen direk anzusprechen. rtFunc.CreateDynProperty "PictSwitch.SubstiVar" rtFunc.DynProperties("PictSwitch.SubstiVar[0].Source")
VariableBulkChange Verwendung der Parameter
Hallo; ich nutze das VariableBulkChange() Event in C++ und es stellt sich mir die Frage, ob der u.a Code richtig sein kann oder nicht. Genau genommen frage ich mich, ob der Zugriff auf IVariablePtr->GetValue(), IVariablePtr->GetStatusValue(), IVariablePtr->GetStatusExtValue()
DynProperties("Text") of a static text
Hello! Is it possible to set the DynProperties("Text") of a static text element from VBA code? I use following code: ___ Dim KomScr As DynPicture Set KomScr = thisProject.DynPictures.Item("KOMANDA") KomScr.Elements.Item("sig_txt").DynProperties("Text")
How to create Events
Hello everybody! I'm from Ukraine and I'm trying to undestand how this system works. I have stuck on my attemption to assign some VBA macros to any event. The problem is I do not see the Events at all, I do not even know where they should be shown. I
How to create Events
Hello everybody! I'm from Ukraine and I'm trying to undestand how this system works. I have stuck on my attemption to assign some VBA macros to any event. The problem is I do not see the Events at all, I do not even know where they should be shown. I
Next Page