Store PLCnext CommunityPLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. Arne Smets
  2. PLCnext Engineer
  3. Tuesday, 16 March 2021
Hello,
I've got another question about the HMI... I've a few global data variables of a struct. I've gave them a HMI tag: HMI1, HMI2, HMI3.

I have made a template for a HMI screen with all data of HMI1 connected. The Data is available like this: HMI1.ex.example.bool.
I want to use the template of that screen for HMI2 data, but everything else is the same.
I guess I have to go to every object of the HMI to go to the name of the connected data and change that manually, so in this case HMI1 --> HMI2.
Is there no shortcut to do this?

Thanks in advance,

Arne
Accepted Answer
Frank PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo
Hi Arne,

you can make use of the flat file format option, were you can carefully modify single files.

  • Save the project as pcwef (uncompressed)
  • Open the .hmipagedef files of your screens created from the template (just an xml)
  • Close PLCnext Engineer
  • Search for the VariableInstance and modify or change the value --> make sure that the variable exists
  • ReopenPLCnext Engineer


Please find attached a small example were I've created a new screen from a template and were I changed the default HMI Tag "HMI1" to "HMI2".

Take care,
Frank
Attachments (1)
Phoenix Contact Electronics Headquarter - PLCnext Runtime Product Management and Support
  1. more than a month ago
  2. PLCnext Engineer
  3. # Permalink
Arne Smets Accepted Answer Pending Moderation
0
Votes
Undo
I have found another solution.
After putting all values on the page, it's possible to make a symbol. In the symbol, it's possible (even necessary) to select a parameter. There you can select the variable from the structType.
  1. more than a month ago
  2. PLCnext Engineer
  3. # 1
  • Page :
  • 1


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