Try to declare it like this: ARRAY_SDV : OSCAT_BASIC.ARRAY_SDV;
Hallo zusammen, seit dem Update des Packages Codesys LB/FBD von Version 4.2.0.0 auf 4.3.0.0 bekomme ich beim compilieren folgende Fehlermeldung (siehe Screenshots). Hat jemand eine Idee was die Ursache sein könnte? Der rechte Baustein ist eigentlich ein FB aber die Instanz wird beim compilieren einfach entfernt. Edit: Wenn ich die Ausführung des rechten Bausteins in einem Execute mache, dann wird fehlerfrei compiliert.
Hallo zusammen, seit dem Update des Packages Codesys LB/FBD von Version 4.2.0.0 auf 4.3.0.0 bekomme ich beim compilieren folgende Fehlermeldung (siehe Screenshots). Hat jemand eine Idee was die Ursache sein könnte? Der rechte Baustein ist eigentlich ein FB aber die Instanz wird beim compilieren einfach entfernt.
Hallo zusammen, seit dem Update des Packages von Version 4.2.0.0 auf 4.3.0.0 bekomme ich beim compilieren folgende Fehlermeldung.
You need to create a function around this function to check the dialogs you use in your program. That's the way i have done it.
FUNCTION CheckDialogOpen : BOOL VAR_INPUT sDialogName : STRING; END_VAR VAR pstClientData : POINTER TO VisuElems.VisuStructClientData; itfDialogManager : VisuElems.IDialogManager; itfMyDialog : VisuElems.IVisualisationDialog; END_VAR VisuElems.g_ClientManager.BeginIteration(); WHILE (pstClientData := VisuElems.VisuElemBase.g_ClientManager.GetNextClient()) <> 0 DO itfDialogManager := VisuElems.g_VisuManager.GetDialogManager(); itfMyDialog := itfDialogManager.GetDialog(sDialogName); CheckDialogOpen...
Hallo Leute, in meinem Projekt bekomme ich mehrfach folgende Warnung beim Übersetzen: C0373: Dialog <visudialogs.textinputwithlimits> ist in der Applikation nicht instanziert. Fehlt er im Visualization Manager?</visudialogs.textinputwithlimits> Was genau möchte mir Codesys damit sagen bzw. wie bekomm ich diese Warnung behoben? MFG
i think you use SP19? then install SP18 Update 5 and use the editor from this version. i get the same message if i use SP19. With SP18 you can open it
Hi there, in my visu manager i use the option to shrink font size automatically and i need this function active. But in one case in my visu (text field) i need this function deactivated. Is there an option to deactivate this function for this one case? BR
I have done it like this: FUNCTION CheckClientData : ARRAY[0..5] OF VisuClientData VAR_INPUT END_VAR VAR pClient : POINTER TO VisuElems.VisuElemBase.VisuStructClientData; pClientTmp : POINTER TO VisuElems.VisuElemBase.VisuStructClientData; DataHelper : VisuElems.VisuFbClientTagDataHelper; i : UINT; END_VAR VisuElems.g_ClientManager.BeginIteration(); WHILE (pClient := VisuElems.VisuElemBase.g_ClientManager.GetNextClient()) <> 0 DO IF pClient^.GlobalData.ClientType = VisuElems.VisuElemBase.Visu_ClientType.WebVisualization...
No one has an idea?
Here you go
use UDINT_TO_DWORD and then use Library "SysMem.SysMemCopy" to copy your DWORD onto your Array of Bytes.
Hey there, as normal, all images in an image pool are saved in this directory: /PLCLogic/visu Now my PLC has the option to insert an USB Drive. If i connect the USB drive i can see a new folder: $USBDev$ Is there an option to tell CoDeSys to save images from the image pool on USB drive? BR
Hey there, as normal, all images in an image pool are saved in this directory: /PLCLogic/visu Now my PLC has the option to insert an USB Drive. If i connect the USB drive i can see a new folder: $USBDev$ Is there an option to tell CoDeSys to save images from the image pool on USB drive? BR
FUNCTION CheckDialogOpen : BOOL VAR_INPUT sDialogName : STRING; END_VAR VAR pstClientData : POINTER TO VisuElems.VisuStructClientData; itfDialogManager : VisuElems.IDialogManager; itfMyDialog : VisuElems.IVisualisationDialog; END_VAR VisuElems.g_ClientManager.BeginIteration(); WHILE (pstClientData := VisuElems.VisuElemBase.g_ClientManager.GetNextClient()) <> 0 DO IF LEN(TO_STRING(pstClientData^.GlobalData.CurrentUserName)) <> 0 THEN //remove if not using user manager itfDialogManager := VisuElems.g_VisuManager.GetDialogManager();...
Hallo Marcel, ne, die hatte ich nicht gelöscht. Beim ersten Mal hatte ich auch nur die Installation reparieren lassen. Aktuell habe ich mal komplett deinstalliert und installiere gerade komplett neu.
Ja, hatte ich. Ich hatte Codesys auch schonmal komplett neu installiert, allerdings mit dem selben Ergebnis. Wenn ich die Fehlermeldung bestätige, ist in meinem Projekt gar kein Profil mehr hinterlegt. Wenn ich dann in der Projektumgebung das Visualisierungsprofil auf die neueste Version umstelle, bleibt es dabei dass ich im Projekt knappe 600 Fehler bekomme. Außerdem sagt mir die Bibliothek dass die "visuinput" fehlt. Diese lässt sich allerdings nicht über "fehlende Bibliotheken laden" laden (andere...
Ja, hatte ich. Ich hatte Codesys auch schonmal komplett neu installiert, allerdings mit dem selben Ergebnis. Wenn ich die Fehlermeldung bestätige, ist in meinem Projekt gar kein Profil mehr hinterlegt. Wenn ich dann in der Projektumgebung das Visualisierungsprofil auf die neueste Version umstelle, bleibt es dabei dass ich im Projekt knappe 600 Fehler bekomme. Außerdem sagt mir die Bibliothek dass die "visuinput" fehlt. Diese lässt sich allerdings nicht über "fehlende Bibliotheken laden" laden (andere...
Hallo zusammen, ich habe aktuell ein Projekt das in Version 3.5.16.4 erstellt wurde. Dieses wollte ich nun in 3.5.17.3 updaten. Hierbei bekomme ich allerdings folgende Fehlermeldung : Kennt jemand dieses Problem?
@m.prestel yes, i checked the example, but at the moment, i don't understand how to replace "GetNextClient" with this what @Thomas has done in his example.
THX for this. I will check this if i have time. Edit: i think i need some food for thought. I have several functions which use "GetNextClient" for Example: FUNCTION CheckClientCount : INT VAR_INPUT END_VAR VAR pClient : POINTER TO VisuElems.VisuElemBase.VisuStructClientData; END_VAR VisuElems.g_ClientManager.BeginIteration(); WHILE (pClient := VisuElems.VisuElemBase.g_ClientManager.GetNextClient()) <> 0 DO IF pClient^.GlobalData.ClientType = VisuElems.VisuElemBase.Visu_ClientType.WebVisualization...
THX for this. I will check this if i have time.
Hey there, since i changed to SP17, to get this new warning about POU "GetNextClient". I really use this often in my project. Does anyone know how to use VisuUtils instead?
Ok, i think i fixed this by myself. I uninstalled and reinstalled SP17 again, an now everything seems to work fine. Maybe something went wrong during the first installation.
Hi there, i just installed the new SP17 and, as always, wanted to upgrade my project from SP16 Patch 4 to SP17. It seems not possible, cause i get very strange faults. How can i Upgrade my projects? Or in other words, is there a new way to upgrade projects?
Hi there, i just installed the new SP17 and, as always, wanted to upgrade my project from SP16 Patch 4 to SP17. It seems not possible cause i get very strange faults. How can i Upgrade my projects?
Oh okay, so maybe in 2 Years :-D So i think i need to build such a table on my own.
Hey Marcel, thanks for your answer. Thats regrettable. Do you know if this will be fixed in near future? BR Sebastian
CoDeSys 3.5.16.30 Hi there, is it possible to define dynamic texts for the column header of a table element? BR Sebastian
Do you have more than one Webvisu connected with your PLC?
Hi there, i am using Codesys 3.5.16.30. I found out that everytime i open a Combobox Integer or Combobox Array on my webvisu i get this entry in my PLC Log VisuFbComboBoxInteger.HanldeOpen: The element id for the input position cannot be determined I have several Comboboxes an all of them give me this log information after i klick on the arrow to open them. Does anyone know what this means or how to fix this? BR Sebastian
Hey, ah sorry i see, i muddled up with file transfering. There is also an dialog for opening files, but a different one. Hmm i tried to have a look if i can find something for "btouch" but it seems that this is absolutely undocumented. I think it has something to do with the buttons of this dialog?!
Thats a good question. I made it in this way that is looked on the error code. If user canceled the error code will show an error. if he user "load" it will give you a done. that was for me the only way to handle this problem. Where do you get this parameters?: "stFilter" and "bTouch" Do you used this example? https://store.codesys.com/alle-produkte/visu-file-transfer-example.html
FUNCTION CheckDialogOpen : BOOL VAR_INPUT sDialogName : STRING; END_VAR VAR pstClientData : POINTER TO VisuElems.VisuStructClientData; itfDialogManager : VisuElems.IDialogManager; itfMyDialog : VisuElems.IVisualisationDialog; END_VAR //Prüfen ob Dialogfenster geöffnet VisuElems.g_ClientManager.BeginIteration(); WHILE (pstClientData := VisuElems.VisuElemBase.g_ClientManager.GetNextClient()) <> 0 DO IF LEN(TO_STRING(pstClientData^.GlobalData.CurrentUserName)) <> 0 THEN //Nur Dialoge für den angemeldeten...
Hallo zusammen, kennt jemand eine Möglichkeit, die Windows Systemzeit einer geöffneten WebVisu and eine Hardware-PLC zu übergeben? Im Prinzip möchte ich die Uhrzeit der PLC über die aufgerufene WebVisu mit der Windows (bzw. dem Betriebssytem wo wie Webvisu aufgerufen wurde) Systemzeit stellen. MFG Sebastian
Hey Marcel, thx for your answer. I have tried to find a solution for my problem. Maybe you know if there is an example for this somewhere? BR Sebastian
Hi there, i have a question about the user management for visualization. I have 3 user groups. SuperAdministrator Administrator Operator SuperAdministrator and Administrator both have the right to change user settings. The problem is, that Administrator can edit settings for SuperAdministrator. But Administrator should not be allowed to do this. Administrator should only add new user, change user to his or a lower group. It seems that there is not a real hierarchy in the group management. In my example,...
@Morberis thanks for your reply. I tried to get the folder size, but it seems that this doesn't work. I can go through all folders and check size of all files, but i think this is unreasonable.
Thanks for your answer. Yes i know this addon, but this i can only use in my developer system. But i want to show this informations in realtime on my webvisu. Background is that, that my program allows users to upload files to the PLC and i want to show him how much storage space is left on the system.
Hi there, i am using Codesys 3.5.16.20. Does anyone know if it is possible to read out, in realtime, the current memory usage of a hardware PLC? BR Sebastian Edit: i found this topic https://forge.codesys.com/forge/talk/Engineering/thread/ea761b36d3/ But this seems not to work cause i don`t have such a file on my plc
Hi there, i am using Codesys 3.5.16.20. Does anyone know if it is possible to read out, in realtime, the current memory usage of a hardware PLC? BR Sebastian
Hi there, i am using CoDeSys 3.5.16.20 and an webvisu. I prepared a button on my Visu to open the "OpenUserConfiguration" Is it possible to open this without being logged in as an existing user? Is it possible to get this dialog with reduced function? Means, if i open this dialog as eg. "Operator" then i can change settings for "Admin". This shouldn't be allowed. I need only a dialog to create a new user. BR Sebastian
Hey Marcel, thanks for your reply. Do you know if it is possible to get a trace in a visualization which is under POU? I have tried to add the Trace in a visualization under Device and then show this visualization in a frame in a visualization which is under POU. It is working, but it seems that there is a bug. If i do it like this, all my rectangle elements are loosing there option to deactivate them.
Ah okay, so PLC target files can disable this function? EDIT: it seems that i can only insert the trace in a visualization window under "device" not in a visualization window under "POU"
Ah okay, so PLC target files can disable this function?
Hi there, i am using CoDeSys 3.5.16.10 with a Hardware PLC. I wanted to use Trace in my WebVisu, but in special controls this function is missing. Anyone know why this is missing? BR Sebastian
@dkugler decrementing is history. I changed my program so that it is only incrementing after changing a picture.
Hi there, so i tried to fix my problem. The only way for me is to use Chrome Browser. Then press F12 for development tool -> Network and then check there "disable cache" But Chrome development tool must run all the time in background. I tried also Internet Explorer and Firefox, but there it does not work even with disabled cache. Maybe this is a PLC problem?
I will try to fix my problem. As you said, it should work like it is done, so maybe i need to play a little bit around. If i get the time i will try to prepare a new project to reproduce it. Whatever, many thank for your help! BR Sebastian
Hey Marcel, i think this will be not possible. First my project sizes over 250MB. The second is that it is a company project and i am not allowed to show.
Hmm,thats really strange. I have done it the same way and for me it does not work. You have done this without the workaround? Can it be a problem, that i show my images in a frame? Is is a probem if the bitmap version is incremented up and then a litte while later down?
Hmm,thats really strange. I have done it the same way and for me it does not work. Can it be a problem, that i show my images in a frame? Is is a probem if the bitmap version is incremented up and then a litte while later down?
Hey Marcel, thanks for your reply. Maybe the problem is that i use .png files? So you used an Integer for Bitmap-Version and incremented this, to let the webvisu reloade that image? BR Sebastian
Hi there, i am using CoDeSys 3.5.16.10 with a hardware PLC and a Webvisu. I am using the streaming function to copy images from my webvisu-system to the PLC. This is already running. Actually the problem is that i overwrite existing images and the only way to see them on the webvisu is, to reload the the browser. i tried it also with Bitmap-Version. But after changing the image and incrementing the Bitmap-Version for that image, nothing happens. Does anyone know any solution? PS: I know there is...
Hi there, i am using CoDeSys 3.5.16.10 with a hardware PLC and a Webvisu. I am using the streaming function to copy images from my webvisu-system to the PLC. This is already running. Actually the problem is that i overwrite existing images and the only way to see them on the webvisu is, to reload the the browser. i tried it also with Bitmap-Version. But after changing the image and incrementing the Bitmap-Version for that image, nothing happens. Does anyone know any solution? PS: I know there is...
Hey Marcel, thanks a lot for your reply. Unfortunatly there is no such directory nor this file. So i will contact the OEM for help. BR Sebastian
do you mean OS of my PC, where i am running CoDeSys or do you mean OS of the HardwarePLC? OS of my PC is Windows 10 PLC is a TURCK TBEN-L5-PLC-11 (seems to be Linux)
Sorry, i wrote it in my second post, but i added it a little later, so maybe it was not really clear. Maybe you know how it is possible so change configuration on a hardware plc. i looked in my filesystem on the plc by sftp, but i can't find any config file there.
Hey Marcel, yes i know and i made this change. For me, my WorkingDirectory is C:\ProgramData\CODESYS\CODESYSControlWinV3x64\F11FFF3A\ there, i added this line you wrote above, to CODESYSControl.cfg But what i don't understand. Why do i need to change a file for CODESYSControlWin when i use a real Hardware-PLC?
Hey Marcel, i tried your solution, but i get always a Error ID 7. Maybe you know something witch can solve this? BR Sebastian
Thanks a lot. So i will check the example for the file transfer. Just to be really clear. With this both lines this service will be activated? And you mean this file? \CODESYS 3.5.16.0\GatewayPLC\CODESYSControl.cfg cause with windows search i found more than one of this files.
Hi Marcel, thanks for your answer. Do i need to add both lines to CODESYSControl.cfg? Then FileTransfer will work on all devices with webvisu opened or only when a gateway is open? Yea, this example for filetransfer is the next one i wanted to check. but i think i first need to know which file the user wants so tranfer. Thats the reason i need the fileopensave dialog. EDIT: btw i have a real PLC not a simulated
Hi Marcel, thanks for your answer. Do i need to add both lines to CODESYSControl.cfg? Then FileTransfer will work on all devices with webvisu opened or only when a gateway is open? Yea, this example for filetransfer is the next one i wanted to check. but i think i first need to know which file the user wants so tranfer. Thats the reason i need the fileopensave dialog.
Hi everybody, i use a PLC with CoDeSys 3.5.16 and a Webvisualisation. I have two problems: i use the FileOpenSave Dialog from this example https://store.codesys.com/visu-dialog-st.html How is it possible to get the filesystem from my hostsystem where i opened the webvisu? i need to transfer files from my hostsystem, where the webvisu is opened, to my plc. Is it possible with the transfer-function of a button? BR
Ok, i found the solution. You need to add $N at the very last position of the string to get the line break working.
Hallo zusammen, mir ist aufgefallen, dass bei der Codesys Version 3.5.16.0 kein Zeilenumbruch mehr bei Rechteck oder Textfeld mit einer Textvariable erfolgt. Textvariable habe ich als String und WString ausprobiert. Kann das jemand bestätigen oder gibts da wieder einen "Trick"? MFG Hello all together, I noticed that with Codesys version 3.5.16.0 there is no longer a line break for a rectangle or text field with a text variable. I tried text variables as a string and WString. Can someone confirm that...
Hallo zusammen, mir ist aufgefallen, dass bei der Codesys Version 3.5.16.0 kein Zeilenumbruch mehr bei Rechteck oder Textfeld mit einer Textvariable erfolgt. Textvariable habe ich als String und WString ausprobiert. Kann das jemand bestätigen oder gibts da wieder einen "Trick"? MFG Hello all together, I noticed that with Codesys version 3.5.16.0 there is no longer a line break for a rectangle or text field with a text variable. I tried text variables as a string and WString. Can someone confirm that...
Hallo zusammen, mir ist aufgefallen, dass bei der Codesys Version 3.5.16.0 kein Zeilenumbruch mehr bei Rechteck oder Textfeld mit einer Textvariable erfolgt. Textvariable habe ich als String und WString ausprobiert. Kann das jemand bestätigen oder gibts da wieder einen "Trick"? MFG
Hallo zusammen, mir ist aufgefallen, dass bei der Codesys Version 3.5.16.0 kein Zeilenumbruch mehr bei Rechteck oder Textbox mit einer Textvariable erfolgt. Textvariable habe ich als String und WString ausprobiert. Kann das jemand bestätigen oder gibts da wieder einen "Trick"? MFG
I found a solution for my problem: FUNCTION CheckDialogOpen : BOOL VAR_INPUT sDialogName : STRING; END_VAR VAR pstClientData : POINTER TO VisuElems.VisuStructClientData; itfDialogManager : VisuElems.IDialogManager; itfMyDialog : VisuElems.IVisualisationDialog; END_VAR //Prüfen ob Dialogfenster geöffnet VisuElems.VisuElemBase.g_ClientManager.BeginIteration(); pstClientData := VisuElems.VisuElemBase.g_ClientManager.GetNextClient(); WHILE pstClientData <> 0 DO itfDialogManager := VisuElems.g_VisuManager.GetDialogManager();...
Hi Marcel, yes thats an option. But i have about 50 input actions which are calling a dialog. So it is a lot of work to use this way. I tried this way, but is am not sure if it is the right way: FUNCTION TEST : BOOL VAR_INPUT sDialogName : STRING; END_VAR VAR pstClientData : POINTER TO VisuElems.VisuStructClientData; itfDialogManager : VisuElems.IDialogManager; itfMyDialog : VisuElems.IVisualisationDialog; variable:DWORD; END_VAR VisuElems.VisuElemBase.g_ClientManager.BeginIteration(); pstClientData...
Hi there, is it possible to detect if a dialog is opened in the webvisu? Codesys 3.5.16.0 BR Sebastian
Hi there, yes exactly. In my program, i have several visualizations defined as dialogs to give users the option to make inputs. And i need to detect if one of these dialogs is opened.
Hi there, is it possible to detect if a Dialogbox is opend in the webvisu? BR Sebastian