In need of help

HI Im a student and need a bit of guidance on a project.

I am currently writing phases for a batch control process and so far i have been using the 3401 phase request code to prompt a yes no answer from the operator,

But now i would like to set a name set status for a valve group EM but don't know how to prompt the operator to choose one of the name sets out of a possible six.

Do i use a a integer prompt instead of Boolean?

Any help would be appreciated

Kind Regards

Thomas

  • Thomas,

    Yes you would need do an integer prompt. This would be 32xx where xx is the message ID of the prompt to give. This will be an integer response located in PROMPT_INT phase parameter that you will need to make sure is a proper value within your name set.

    For example:

    Message Prompt: Enter 1 for T-101, 2 for T-102 or 7 for T107

    After the operator response (REQUEST = 0), you need to check that the input is a valid response (PROMPT_INT = 1 or PROMPT_INT = 2 or PROMPT_INT = 7).

    If the PROMPT_INT is valid then you can set NAMESET_PARAM.CV = PROMPT_INT.CV

    If not valid then loop back and re-ask your prompt.

    Best of Luck,

    Matt