• Not Answered

Change Data Type of Phase class Batch Parameter after its been created

Does anyone know if a way to change the data type of a batch parameter in a phase class after it's been created without deleting/recreating it.  It's greyed in DeltaV Explorer and Control Studio.  We have a bunch of parameters which were created as Integers but need to be Reals.

-Greg

3 Replies

  • You can export your Phase, edit and import the edited result.
    But... this is not supported and you must be carefull in doing this.
    First create a 'dummy' Phase to excercise and only when this is successful, do the same actions for the target Phase.
    In the dummy Phase, create a Real and an Integer parameter.

    For the exported Phase, change the parameter type using Notepad:
    1. Search for the name of the parameter.
    Change the TYPE=TYPE=BATCH_PARAMETER_INTEGER to TYPE=TYPE=BATCH_PARAMETER_REAL
    2. Search further (2 times) and change the TYPE=INT32 to TYPE=FLOAT
    Save the edited file (use another name, so to keep the original)
    3. Make a minimum change to the Phase in Control Studio (only a shift of a transition is enough).
    Save the Phase.
    4. Import the edited fhx.
    Now the Phase parameter is of the changed type.

    Lots of success!
  • Greg,

    In case VCAT is enabled. You may want to export the recipe, import to a demo system, do the delete and recreate in the demo system, then import to the actual/live system. This will register minimal changes to VCAT.

    Hope this helps.

    Regards,
    Neil Castro
  • In reply to Maarten van der Waal:

    If you follow Maarten's process but at step 3, change to search up from the bottom of the fhx for "user=" (just what is inside quotes). This should be the line just below the phase name. Change the username to something different which doesn't actually have to be a real user or could just be making a lower case to upper case or vice versa. If you have multiple phases in the export, just search up again until the next line above the "user=" isn't a phase name. Making this change(s) will give you a prompt on if you want to update the phase when you import and you would say yes.

    Doing it in this method would also address Neil's concern with VCAT as it would only be minimal changes in VCAT.

    Don't forget to change your recipe parameters on your Operations, Unit Procedures and Procedures to real.