mr_liyihong
When using openplc editor, under creating a new project, it is suggested that a user's own type such as TYPE1 struct can be created, but it cannot be dragged out of the canvas for use. An error will be reported.I can't use the struct of the data type I created in the function block and any mode, other data types are available, I upload the BUG error file, please please solve it as soon as possible1.png2.png3.png
Reply 0 0
mr_liyihong
Looking forward to resolving this issue soon
Reply 0 0
thiagoralves
Screen Shot 2024-06-05 at 7.53.43 AM.png
 
Screen Shot 2024-06-05 at 7.54.45 AM.png
 
Screen Shot 2024-06-05 at 7.57.31 AM.png
 
Screen Shot 2024-06-05 at 7.58.21 AM.png
 
Screen Shot 2024-06-05 at 7.58.44 AM.png
Reply 0 0
mr_liyihong
7.png8.png9.pngHello, I just followed your instructions to test and I can add a variable named "test1" with type "Datatype1". However, "Datatype1" is a struct type and I want to access one of its types, such as "test1.value", but it changes the corresponding name. When I change the name of "test1" to "pass", the corresponding "test1.value" cannot automatically change to "pass.value". Therefore, I suspect that the "test1.value" variable created earlier has not been connected to the corresponding data. Additionally, when I drag out a graph from the list of variables using the mouse, it cannot be used. It is limited to struct type. It will display an error. In the previous version of the editor, I could directly drag it out and it would create a selection box similar to the one that appears when you right-click, allowing you to choose between "test1", "test1.value", and "test1.value1".7.jpg
Reply 0 0
mr_liyihong
Thank you very much for your answers to my questions
Reply 0 0
mr_liyihong
This is datatype16.png
Reply 0 0
thiagoralves
I still need to fix that bug of the drag and drop, but manually writing the struct subtype like I showed will work. 
Reply 0 0
mr_liyihong
Thank you. If you fix the bug, please let me know. I'll try to write the PLC using the method you mentioned earlier.
Reply 0 0
mr_liyihong
  • "Hello, has this BUG been fixed now? Has a new installation package been released?"
Reply 0 0
thiagoralves
I don't remember if I managed to fix it. Get the latest version on file -> check for updates and then check if the drag and drop works. In any case, as I said before, even if the drag and drop is not working, manually writing the struct name in a variable works just fine.
Reply 0 0
Write a reply...
Reply