Hi!
Using DV Operate, I would like to create message boxes that require the operators to click "ok" to progress to the next step in a SFC. I have the SFC written so that transition points are looking for a variable that I have named "confirmation_#" (# being an assigned number to the step as I have seven confirmation steps) to be a value of "1" in order for the transition to become "true". I have investigated using a "variable object" and adding VBA script to include a message box but there is not a lot in books on line about variable objects.
Anyone have any experiences or advice for this type of scenario?
Thanks!!
In reply to gamella:
In reply to Jenny La Bounty:
In reply to Matt Stoner:
This seems like a separate issue. Maybe it should start a separate thread? If you need to do something repeatedly take a look at Operate's Event Scheduler. I am not sure what you need the HMI to check every second though.
Edit: This is in reference to the issue...
nextCheckTime = Now + TimeValue("00:00:01")Application.OnTime nextCheckTime, "CheckB2"
I do not see the need for individual CONFIRMATION_#. A general one should suffice. Make a boolean parameter named PROCEED and set your transition to DVSYS.SFC_NAME/PROCEED.F_CV
Also make a boolean parameter named PROCEED_ENAB for the visibility of the Proceed button on the screen. Be sure to reset PROCEED and PROCEED_ENAB to False at the next step(s) and before the next usage.
Use Matt Stoner's VBA code on the button and you should be good to go. I would keep the wording on the popup generic like "Click OK To Proceed". If you need more specific verbiage, I would use the normal messaging fields on the screen that you are using for every step description. E.g. "Click OK to Begin Reactor Charge".
In reply to Douglas Crowder: