Hello,
I’m currently working on implementing a functionality within my PLCnext Engineer project that involves testing input values using a function block before accepting them. Specifically, I’m using the following logic to ensure that an input value falls within a defined range:
ANY_ELEMENTARY := LIMIT(ANY_ELEMENTARY (* MN *), ANY_ELEMENTARY (* IN *), ANY_ELEMENTARY (* MX *));
This effectively ensures that the value being passed on is within the acceptable minimum (MN) and maximum (MX) limits. The function block works as intended, only passing values that lie within the specified range. However, I’ve encountered a limitation regarding the eHMI interface: if a user enters a value outside this range, the out-of-range value still remains visible in the input field on the HMI screen. Ideally, I would like to have a mechanism that either rejects the out-of-range input directly at the input field or provides immediate feedback to the user that the value is not acceptable.
Unfortunately, I have not been able to find a built-in solution within PLCnext Engineer for this specific issue when working with eHMI. I understand that if one were building the interface from scratch using web technologies like HTML, CSS, and JavaScript, it would be straightforward to implement such input validation directly using JavaScript to provide instant feedback or correction.
My question is: Are there any solutions or workarounds within PLCnext Engineer’s eHMI environment that address this issue? Any tips on how to better manage out-of-range input values directly on the HMI interface would be greatly appreciated.
Thank you.
Best regards,
Michel