Entering charge weight set points into faceplate twice before it is accepted.

HI,

I require the operator to have to enter the same figure twice into the faceplate for charge weight set points before it is accepted. 

From a safety point of view this would reduce the amount of errors.

I have been told this is possible where I would program it like when you have to add a password at a internet site, you have two fields first insert password the second field is confirm password, if they don´t match it won´t work.

Can anyone expand on this, changing a faceplate is easily done, the programming behind it is where I come unstuck, or let me know where I would find the information I require?

any help is greatly appreciated.

Thank you in advance.

Lee Wren

  • Program it like when you have to add a password at a internet site, you have two fields first insert password the second field is confirm password, if they don´t match it won´t work.

3 Replies

  • Basically what you're describing is having 2 text box controls on the faceplate (alternatively a pop-up user form), and a value submit button. The text boxes serve no purpose other than to just hold two separate values. In the VBA click script for your submit button, you'd have some logic to check that the two text boxes have the same value, and if so, then write it to the setpoint parameter. Something to keep in mind with this method though is that you'll have to make sure that the value(s) entered in are actually numeric and within a reasonable range. This would probably be done within that same click script.
  • In reply to MCrisler:

    Thanks MCrisler, this will keep me busy for a while I think, I was going to do as you have suggested with the two text boxes and the submit button on a faceplate, but instead of logic in the script, having the logic in a module which would then write to the charge module, as I've had limited success with script changes, the range or value of the charge is already set within our maximum charge capacities.
    I will update with my success/failures.
  • In reply to Lee W.:

    If you want to do it in the module level, there are a lot of different ways to accomplish this. I would use two inputs from a custom faceplate mapped to a comparator block. When the values match and eq is true, then use an action block to write the setpoint.. Pretty straightforward and easy to troubleshoot. Just a thought!