Error when Instantiating Phase in Unit
I'm trying to add a phase to a batch unit. The phase was copied from an existing phase which has already been instantiated and downloaded without any issues. I changed the name of the new phase and the short name. However when I try to instantiate the phase in the Unit I get the following error:
"Only formal instance objects are allowed as children".
I have checked the phase for errors and consistency without any issues being highlighted.
Any help would be much appreciated.
System 800xA SV5.1 FP4 RevD
Voted best answer
As a general principle, if the phase you "copied" is the same as the original, then you really should be using the original, not a copy. If the phases are very similar, then it may be worth writing the phase in such a way it can be used in both units.
Anyway, I assume you've modified the code. It sounds like something odd happened when you originally copied the phase. The "formal instance" implies an issue with the way your phase has been created in the object type structure. ( formal instance definitions are used by the 800xA system to describe how library objects should be instatiated in other structures) Did you paste the copy into the same library or a new library ? Where is the unit that are you trying to instantiate the phase into - Object Type structure or Control structure ? (The short name is related to how OPC paths are set up by the batch server and should not be related to instantiating the phase )
Can you post some screen shots of your object type structure and control structure as well as the exact message you are getting ?