PLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

0
Votes
Undo
  1. Louis L.
  2. PLCnext Engineer
  3. Friday, 24 January 2020

Hi everyone,

 

I am actually working on PLCnext Engineer 2020.0 and I have some troubles with the variables access for HMI symbols.

First of all : Is there any possibility to load a page with a script or a variable value or even a timer ? As an example : I would like to open my window "Device settings" only when my variable "xSettingsRead" is going from "False" to "True" or 3 seconds after clicked a button.

Second : What about the dynamic index of an array in the HMI ? Is there any way to instantiate the same page without having to bind each objects on each page with for example "Array[1].Name" on the first page and "Array[2].Name" on the second page for the "same object" ? I mean, is it possible to have only one page with "Array[i].Name" and change the i value with button or something ?

Third problem : I didn't find the way of accessing a single bit of a byte from the HMI. The "xBool.%X0" doesn't work in the HMI binding. Am i missing something or is there an other option for that ?

Finally, will the radio-buttons or combo-boxes are going to come out soon or i have to create it from scratch ?

 

Thank you all in advance for your response.

 

Best regards,

Louis L.

 

peterdallmann Accepted Answer Pending Moderation
0
Votes
Undo

If I remember correct, the function with using arrays is planned - but when it will implemented is a question here. I was looking at the same in connection with motor control pannels (as pup-up). Would make work a lot easier. We could use a standard function block inside the program and link the array to the pup-up

But our wishful thinking doesn't help here. Only time will show.

Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

Hi Louis,

Here are the answers:

an example : I would like to open my window "Device settings" only when my variable "xSettingsRead" is going from "False" to "True" or 3 seconds after clicked a button.

Currently you can not call another page (page change). You can open a dialog box automatically that is another page in a modal view. To do this create an object on the screen such as a square. You can set the object to not be visiable during runtime and add the "On_Data_change" action to the object. When the data to signal the calling of the dialog box is true, then the page can be loaded as a dialog window.

Second : What about the dynamic index of an array in the HMI ? Is there any way to instantiate the same page without having to bind each objects on each page with for example "Array[1].Name" on the first page and "Array[2].Name" on the second page for the "same object" ? I mean, is it possible to have only one page with "Array[i].Name" and change the i value with button or something ?

This is currently not support and is currently under development. Only static indexes are supported.

Third problem : I didn't find the way of accessing a single bit of a byte from the HMI. The "xBool.%X0" doesn't work in the HMI binding. Am i missing something or is there an other option for that ?

Yes, as of version 2020.0 it is possible to select a word, byte, or bit depending on the variable type that is the target. By selecting the object to be changed, at the end of the variable type a "." and wait for the drop down box to appear. From the drop down box select the data size word, byte, or bit. Then type the number of the item you wish to change or view.

Finally, will the radio-buttons or combo-boxes are going to come out soon or i have to create it from scratch ?

There is a problem with the HMI-->Default-->Symbols-->Radio Button that means it cannot be used with values greater than 1. Currently combo-boxes are not supported. There is already something somewhat similar, the “symbol list”, where you can select an item from a scrolling box.

A5F3356D 0912 40BB BACE 7686451243FF

 

Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support

  1. one week ago
  2. PLCnext Engineer
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.