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

  1. simac_kenneth
  2. PLCnext Engineer
  3. Monday, 07 June 2021
Hello,

For a client I need to add a hmi button to there web service.
The Link looks like follows.
http://Example.Client_Website.net/Client?token=~Z*U%407_%7C$%5BG%7CE%5E-~A5%26y57%26%23!4+%5EEVB%5B.sWx%5COpqS8Y%25%7BG%5Cx%5DnJV%7C%274ll%7D5%3ET%7DFwpuT%40rD-!%22!z~%60b%7Bs.$%26*x%5ERD2__$cw_%3D$%5BY%27I%3ELOdQ%3F%5CLQ%27rk!LcxM%3EW2j(9z51%3D


I know how to use a URL link with a button to open a webpage.
Now I need to store the link inside a string so it can be changed. Exept it seems like the string has difficulties excepting the $ Sign.
How can I store this link?
Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo
Hi Kenneth,
Unfortunately there are some characters that are not handled well by PLCnext Engineer.
It is possible to construct strings containing these characters using a technique like this:

MyString := CONCAT('The price is ', TO_STRING(BYTE#16#24, '{0:C}'), '42.00');

Since the URL is longer than 80 characters, you will need to define a custom-length string type (but you probably know this already).
Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support
simac_kenneth Accepted Answer Pending Moderation
0
Votes
Undo
Ok. My client wants to be able to change the URL on the HMIwebserver.
With this method, it will not be possible?
Because you cannot directly put it in an input box with string variable.
Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo
Sorry for the delay.
I have now had confirmation that, because of the dollar signs, it will not be possible to enter this URL via an eHMI text box.
The requirement has been noted, but there is not likely to be a solution in the short term.
Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support
  1. one week ago
  2. PLCnext Engineer
  3. # 3
  • Page :
  • 1


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