Hey, If you want to have 80 frames, you can use the "Multiply elements" to clone them. https://help.codesys.com/webapp/_visu_cmd_multiply_visualization_element;product=core_visualization;version=3.5.17.0#dialog-multiply-visu-element Not sure if that is what you are looking for, if not could you please specify? Best regards, Marcel
Hey, I am not sure what you mean by ST, but you can use the Input Configuration "Change shown visualization" and select previous/next shown visu. https://help.codesys.com/webapp/_visu_dlg_input_configuration;product=core_visualization;version=3.5.17.0#input-action-change-shown-visualization Best regards, Marcel
Hey, could it be that the images are not correctly downloaded to the PLC? Does your target device support SVG? Could you provide an example application? Best regards, Marcel
Hey, This issue is fixed with SP17/4.0.0.0, but I was not able to pin the fix to a specific issue. Best regards, Marcel
Hey, I can confirm that this looks to be a bug. But I got your example working by using a rectangle instead of a line. Could you try and adjust your project? Gonna raise an issue for your initial issue. Best regards, Marcel
Hey, yes it is part of the 4.1.0.0 visualization, but requires the option "Support client animations and overlay of native elements" to be checked. Best regards, Marcel
Hey, Please report this bug. See https://faq.codesys.com/display/CDSFAQ/Report+problems+and+error+messages+to+CODESYS on how to report the issue in the store. Best regards, Marcel
Hey, could you provide an example project? Thank you! Best regards, Marcel
My bad, I misread your request.
Hey @joanm, for each text in your table there should be an entry in the GlobalTextList in your POU view. You can translate this to your specific language. Best regards, Marcel
Hallo Ron, ich kenne das "Problem" nur, wenn du die Webvisu bereits geΓΆffnet hast, dann Overlay aktivierst, aber nicht die Webvisu mit F5 neu lΓ€dst. HΓ€ttest du bitte einen Projekt mit Steps to repeat fΓΌr mich? Danke! LG Marcel
Hallo @r1pp3r, aktualisierst du die Webvisu mit einem F5, wenn du den Overlay Hacken setzt und wieder weg nimmst? LG Marcel
Hey, I raised an issue for you. To report bugs, use https://store.codesys.com and click on the my question button in the top. Then provide steps to repeat and at the end, you can switch to "I have a bug report". Best regards, Marcel
HTTPS should work just as fine.
Hey, I am happy to tell you that this issue is fixed with Visu Package 4.1.0.0 for the webvisualization. Best regards, Marcel
Hey, seems to be a bug in the new overlay visualization. You can disable this in the visualization manager and should be good to go. Apart from this, why do you not simply hide the image instead of switching the image no an non existing one? Raised however an issue for this! Best regards, Marcel
Hey, could you please attach your project? Since your visualization package should still be 4.0.0.0, you should not have any changes to the visualization and it seems to not be directly related to changes in this area. Best regards, Marcel
hey, It seems that your device does not support target or webvisualizations... Could you attach your devdesc? I think you have to contact your OEM for webvisualization support. Best regards, Marcel
As of today, moving dialogs is part of the 4.1.0.0 visualization release. This release contains the support for moving dialogs in the webvisualization. For the targetvisualization you have to wait for 3.5 SP18 release. The release for visualization 4.1.0.0 is currently planned for october 2021. Best regards, Marcel
Hey, No there is no public interface to restart the webserver right now.. Best regards, Marcel
Hey Chris, I am not aware of any issue. Could it be that the CAN-BUS is a high priority task and writing to the log results in a lot of IO actions which reduce the speed and the WebServer task simply is not running? I am not an expert at all with CAN-Devices. @eschwellinger @i-campbell do you guys have any idea? Best regards, Marcel
Hey, this setting results in the client reacting to all touch events and sending it back to the PLC. This will most likely prevent the browser from reacting to these touch events (since the javascript code already handles the event). If I am ever in this area I make sure to get a beer ok? :) Yeah, it would be better to open a separate issue. Helps others and it is not really related. Best regards, Marcel
Hey, are you now talking about changes between SP16 and SP17 or SP15 and SP16? Try to clear the cookies maybe for your site. I dont remember anything specific which would prevent zooming and I am not aware of anyone else having such issues. Best regards, Marcel
Hey, I dont see any changes happening between SP16 and SP17 which could be the cause for your problem. Could you try to remove the "<meta name="" viewport""="" content="" initial-scale="1.0""">" from your webvisu.htm and retry? Also try to delete your cookies please. Best regards, Marcel
Hey, I am sorry to say that this is not possible. Best regards, Marcel
Hey, Sorry I am not aware on any way to achieve such a thing. Best regards, Marcel
I think you have to talk to your OEM, in this case Pilz GmbH Not much anyone else can do here.
Hey, I cannot find this device. Could you attach a small example project? Thx a lot. Best regards, Marcel
Hello @fabiencavalier, could you provide additional information about your device? What device id and vendor id does your device have? Are you sure that this is supported by your PLC? Best regards, Marcel
Hey, In the column configuration check "Use template" Then add a "Write variable" input action, e.g. here on OnMouseClick. Best regards, Marcel
Ok, ok I feel stupid now. If you can disable the feature "Support client ainimations and overlay of native elements" it should work. Raising an issue and trying to get it fixed in 4.1.0.0 Visu Package. Best regards, Marcel
.
You still have to increase the bitmap version,without changing the value the image will not be cleared and redrawn from file.
Hey, A few things. You should not increment your bitmap version that much. And the issue seems to be caused by the bitmap ID variable. Just remove this from the configuration as you dont need it. Best regards, Marcel
Hey, could you attach a example project for me to reproduce the issue? Which browser and which version are you using? Best regards, Marcel
Hallo Jan, Ich muss mich wohl korrigieren. Anscheinend ist das so, siehe Kommentar von Ian LG Marcel
Hallo Jan, melde den Fehler doch bitte mit Projekt ΓΌber den Store -> Contact/Service/Support. Da wird man dir auch sagen kΓΆnnen, ob es einen Workaround/Fehler bereits gibt. LG Marcel
Hey, I found where the image is placed in the PLC folder and when I replace it It change but only if I refresh the browser. So I need to find a way around that. Thats the way to go. This folder is your $PlcLogic$/$visu$ folder. If you replace the image in this folder and change the Bitmap Version of the image, it will be reloaded (without the need to refresh the browser). Best regards, Marcel
Hey, my bad.. Attached should be a better example. In FbStartVisuClientFilter you can see how you can get pClientData in VisuUtils. Best regards, Marcel
https://forge.codesys.com/prj/codesys-example/responsive-desi/home/Home/ shows how to react to new clients resolution.
You are on the same plc, you share the same file system. $PlcLogic$ and $visu$ are two placeholders, which SysFile resolves. You can simply check the filesystem of your plc and look for the visu folder.
Hello @spritcore, you dont need any protocol if both python and runtime are on the same machine. you can simply access the filesystem. In your $PlcLogic$/$visu$ there is a file named application.imagepoolcollection.csv There you can find the mapping from id to file name. This mapping does not change if you dont do any download. So you can also manually determine the file name. Best regards, Marcel
Hello @spritcore, you dont need any protocol if both python and runtime are on the same machine. you can simply access the filesystem. In your $PlcLogic$/$visu$ there is a file named <application>.imagepoolcollection.csv There you can find the mapping from id to file name. This mapping does not change if you dont do any download. So you can also manually determine the file name.</application> Best regards, Marcel
Attached you can find a different API to set the visualization depending on the client size. Best regards, Marcel
Hey @spritcore, if the python program is running on the PLC or it can access the PLC via e.g. SSH you could do the following things. An image has the property "Bitmap version" (https://help.codesys.com/webapp/_visu_elem_image;product=core_visualization;version=3.5.17.0#element-property-dynamic-image). If this variable is changed, the cached image will be cleared and reloaded from file. Yes, you are correct that CODESYS only uses imagepools. But you can create a template entry in the imagepool, determine...
Hello @galexis, attached you can find an example applicaiton using visu utils (note this example is not made by me but it works fine) Best regards, Marcel
The interface IAlarmHandler contains the following methods: AcknowledgeAll, AcknowledgeAllOfGroup and AcknowledgeOneOfGroup. AlarmManager.g_AlarmHandler is the way to access the interface. Check out https://forge.codesys.com/prj/codesys-example/alarm-manager/home/Home/ for a extensive example how to interact with the API. Best regards, Marcel
@kislov there is a video explaining how to disable the user management https://www.youtube.com/watch?v=9tfm0y_Bwis
IF the issue still exists, you could attach your project and provide Steps to repeat for me do look into it ;)
Could be. Not sure to be honest from the top of my head.
Tooltip? Anything like that?
If this element has any input action, this will of course be prioritized. e.g. a button click is always more important than moving the frame
Try to append the following argument to your url: "?CFG_LogLevel=TRACE" So http://localhost:8080/webvisu.htm?CFG_LogLevel=TRACE
Whats the output of the console?
Hey @Matthew, of course you could interact with the SVG e.g. if you have embedded it into a HTML site. https://forge.codesys.com/forge/talk/Runtime/thread/04361f89ec/#efeb shows how you can do this currently. Be aware the element properties of the google maps element are ugly (will get better once HTML5 controls are getting a better integration) Best regards, Marcel
To be honest I am not sure if the simuliation has a real file system which allows the recipe commands to write files. Have you tried it with a normal PLC?
I am not gonna start a discussion here, but your response was more than passive-aggressive. I am always trying to help and I am not ok with getting such a response.
Nop, not true. If you are not happy with my answers, I will let others answer them then...
Nop, not true.
Hello @Rickj, you got me there with an unlucky timing. I was on a extended vacation. "If I understand correctly, it's entirely up to us to provide and manage the context for each each session. It would be necessary for all frame interface variables (i.e. VAR_IN_OUT) to also be arrays." That depends completly on your project. There are simply two options: My data is client independent My data is client dependent By default every variable used is client independent. Think of it like a GVL, there is...
Please provide your project so we can help you find solutions. Best regards, Marcel
Yeah, "Device No Response" indicates there is no connection to your HMI. Best regards, Marcel
Hey, no there is no way to interact with a SVG. Best regards, Marcel
Try to enable "Use unicode strings" in the visu manager and always use WSTRINGs instead of STRINGs. Best regards, Marcel
Take a look at https://forge.codesys.com/prj/codesys-example/recipe-manageme/home/Home/ Best regards, Marcel
Hey, The visu user management allows you do hide specific elements depending on the group of the currently logged in user. You can also check against CurrentUserName or CurrentUserGroupName. Best regards, Marcel
Hey, Please attach your project. Best regards, Marcel
Hey, If you get scrollbars in a frame when you have multitouch enabled, your browser reports that it does not support any multitouch events. Therefore the visualization falls back to a mouse only behaviour. This should also be visible in the browser console log, which should report this information. Best regards, Marcel
Hey, do you have multitouch enabled in your project? See "Activate multitouch handling" https://help.codesys.com/webapp/_visu_obj_manager;product=core_visualization;version=3.5.17.0 Best regards, Marcel
Please attach a project if you want any help. Best regards, Marcel
Client seems to time out, even though it is not clear if it is the IDE client Best regards, Marcel
The HMI should write a log file. If not, you can enable file logging in your CODESYSHMI.cfg in the section "CmpLog" Just remove all ";" and you should be good (just need Logger0) Best regards, Marcel
There is no API to access the properties of an element from IEC Best regards, Marcel
There is no API to access the properties of an element from IEC Best regards, marcel
Currently no plans to implemend spread pinch detection. Right now we don't need them in any visualization elements. Best regards, Marcel
No plans yet. Currently we don't have a use case for elements which would need this gesture. Best regards, Marcel
Hey, You think you can provide an example application? Looks like a clearing issue. Best regards, Marcel
Hello @tvm, it was not possible to use the interface variables in multiply elements. This issue is fixed with the Visu Package 4.1.0.0 Best regards, Marcel
Hey jkopicz, I can simply say that IGestureEventHandler3 is used. Maybe your client is not sending any gestures? Is multitouch active in the visu manager? Is your client not supporting gestures? Are there no areas defined where a gesture can occur? Another small tip, use "Call after visu initialization" (see https://help.codesys.com/webapp/_visu_obj_manager;product=core_visualization;version=3.5.17.0) to register your event handler Best regards, Marcel
Hello @rickj, I think you misunderstand me. Only files located in $PlcLogic$/$visu$ will be served by the webserver (I dont know what happens if you use the Runtime Simulation inside CODESYS..) If you want to display your custom PDF documentation inside the webvisualization, make sure that you copy this file into $PlcLogic$/$visu$. The url for the browser element inside the webvisu should be something like this: http://<ip-addr>:8080/<pdf-filename></pdf-filename></ip-addr> Best regards, Marcel
Hello @rickj, I think you are mixing some stuff up here, so I try to clear this up here: Each input action is in itself client dependent If you write on a variable with shared with all clients (e.g. GVL), it becomes client independent For the input action Switch to visualization, if not configured (CURRENTVISU in the visu manager), this is client independent Variables declared in a visualization are shared between all clients since there is only one instance of the specific visualization (disregard...
Hello @rickj, I think you are mixing some stuff up here, so I try to clear this up here: Each input action is in itself client dependent If you write on a variable with shared with all clients (e.g. GVL), it becomes client independent For the input action Switch to visualization, if not configured (CURRENTVISU in the visu manager), this is client independent Variables declared in a visualization are shared between all clients since there is only one instance of the specific visualization (disregard...
The webserver will only serve files located in $PlcLogic$/$visu$. You cannot access any other files apart from this folder and its subfolder. Best regards, Marcel
If you are using the webvisu and want to display a file located in $PlcLogic$/$visu$ (same folder where e.g. the webvisu.htm is located), you can simply use the file name. SysFile should be able to resolve the placeholder. Best regards, Marcel
Hey, Schau dir mal dieses Beispiel hier an: https://forge.codesys.com/prj/codesys-example/responsive-desi/home/Home/ Dort wird abhΓ€ngig vom Client (und dessen AuflΓΆsung) die angezeigte Visualisierung geΓ€ndert. Ich denke, dass wΓ€re die richtige Schnittstelle fΓΌr dich! LG Marcel
Attached you can find an example on how to use the visu user management from IEC. Best regards, Marcel
Hey, $PlcLogic$/$visu$ is the placeholder to use. Best regards, Marcel
Hey, the following code shows how to reset the trend recording database itfTrendRecording : ITrendRecording; itfTrendStorageWriter : ITrendStorageWriter; itfTrendStorageWriter3 : ITrendStorageWriter3; sTrendRecordingName : STRING := 'TrendRecording'; itfTrendRecording := GlobalInstances.g_TrendRecordingManager.FindTrendRecording(ADR(sTrendRecordingName)); IF itfTrendRecording <> 0 THEN itfTrendStorageWriter := itfTrendRecording.GetTrendStorageWriter(); IF __QUERYINTERFACE(itfTrendStorageWriter, itfTrendStorageWriter3)...
Hey, Improvements of Trend (page 30) About what in particular are you talking about? What feature should be included in the example? I may be able to provide you an example. What mean "Search / replace within the trend recording now possible"? It was not possible to find/replace variables which used in the trend recording. WebVisu FileTransfer - dialogs for the file transfer can be customized in size and design Check out the newly generated webvisu.htm. The file includes an inline style and you can...
Hey, Improvements of Trend (page 30) ** About what in particular are you talking about? What feature should be included in the example? I may be able to provide you an example. What mean "Search / replace within the trend recording now possible"? ** It was not possible to find/replace variables which used in the trend recording. WebVisu FileTransfer - dialogs for the file transfer can be customized in size and design ** Check out the newly generated webvisu.htm. The file includes an inline style...
Hey, Do you have a project with this issue? One thing you might want to do is simply use the alpha, which png supports, instead of replacing all white pixels with a transparent pixel in the IEC application. Best regards, Marcel
Hey, no this is currently not possible. Best regards, Marcel
Hey, Sorry this is out of my power. Best regards, Marcel
Hey, attached you can find an example using the IDialogManagerListener. Best regards, Marcel
This works for me. If you have any other issues, please attach your project.
This works for me
Hey, I think there a few issues. Both your declarations in the GVL and Frame are missing 'Array' The array size of your frame declaration does not match the size declared in the GVL (30 vs 48) * The initial value of ColumnToEdit should be at least 1 to not access invalid data Best regards, Marcel
Hey, Could you provide a project? Thank you. Best regards, Marcel
The file open save dialog displays the files of the plc. If you want to upload files from the client to the plc, check out this post https://forge.codesys.com/forge/talk/Visualization/thread/319bbbfeee/#2cdc Best regards, Marcel
Hey, There is the interface IMouseEventHandler which you have to implement and then register the fb. Check out the MouseHandler project for more details. https://forge.codesys.com/prj/codesys-example/visu-event-hand/home/Home/ Best regards, Marcel