Tech Note 1003 - Accessing InBatch Recipes in System Platform Using Recipe Automation Server Object Hosted On Batch Server Node
Tech Note 1003 - Accessing InBatch Recipes in System Platform Using Recipe Automation Server Object Hosted On Batch Server Node
All Tech Notes, Tech Alerts and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information.
Topic#: 002834
Created: January 2014
Introduction
This Tech Note demonstrates the syntax used for the Recipe Object creation/release in a .NET Framework environment.
In this scenario, a Platform is deployed to an InBatch Server Node and the object containing script for accessing InBatch Recipes is
hosted to this platform. The other functionality on reading/writing to the InBatch Recipe Database is documented in InBatch COM Guide.
Application Versions
InBatch 9.x & 10.x
System Platform 2012 R2 (for prior versions, you have to manually build the object)
Prerequisites
A platform must be deployed to the InBatch Server Node.
Procedure
1. From the Archestra IDE menu, select Galaxy\Import\Script Function Library and import the file RecipeEdit.exe located at
C:\Program files(x86)\Wonderware\inBatch\Bin on InBatch Server Node.
3. Create an instance of this object and host it to the Platform\AppEngine\Area that is running on InBatch Server Node.
4. Deploy the new object instance and set the trigger attribute (me.Trigger) in ObjectViewer for this object.
See the messages in the Archestra Logger for successful connectivity, query of recipes and release of the recipeDB object.
The following graphics show the Template Object Editor, with the text in the script body (Figure 1 below), and the messages in
ArchestrA Logger (Figure 2 below).
The following section contains the script (if you using a prior version of System Platform 2012 R2, copy the following text and paste it to
your object, then declare variables in the declaration section as shown in Figure 1 (above).
S. Mariyala
Tech Notes are published occasionally by Wonderware Technical Support. Publisher: Invensys Systems, Inc., 26561 Rancho Parkway South, Lake Forest, CA 92630. There is also
technical information on our software products at Wonderware Technical Support.
Back to top
©2014 Invensys Systems, Inc. All rights reserved. No part of the material protected by this copyright may be reproduced or utilized in any form or by any means, electronic or
mechanical, including photocopying, recording, broadcasting, or by any information storage and retrieval system, without permission in writing from Invensys Systems, Inc.
Terms of Use.