Configure Rockwell PharmaSuite Batch data sources
- Last UpdatedSep 28, 2022
- 2 minute read
For each instance you create, settings are stored in a separate Windows command (.bat) file and an initialization (.ini) file in the interface installation folder. The batch file launches the interface, specifying settings as command line parameters. The initialization file also contains settings, and it defines templates that determine how data from the data source is stored in PI System. To configure settings for interfaces, use the PI Event Frames Interface Manager. Use this tool even if you are configuring the interface to store data in the PI Batch Database rather than event frames.
A single batch interface instance can be configured to read from multiple data sources. This capability enables you to handle distributed batch processing scenarios, where multiple batch execution systems cooperate in the manufacturing of a single batch. If you configure multiple data sources, all data sources must be the same type, either event files or databases.
You can copy existing SOURCE TEMPLATE code in the initialization (.ini) file, and then paste it back in as a new section and modify it to create two data sources from one PharmaSuite interface. See the following code example, in which SOURCE[1] code was copied to create SOURCE[2]:
[SOURCE TEMPLATE]
SOURCE[1].RABBITMQ_USER=OSISoft
SOURCE[1].RABBITMQ_PASSWORD=passwordstring
SOURCE[1].PORT=5672
SOURCE[1].HOSTNAME=companyname.osisoft.int
SOURCE[1].TIMEOUT=300
[SOURCE TEMPLATE]
SOURCE[2].RABBITMQ_USER=OSISoft
SOURCE[2].RABBITMQ_PASSWORD=passwordstring2
SOURCE[2].PORT=5672
SOURCE[2].HOSTNAME=companyname2.osisoft.int
SOURCE[2].TIMEOUT=300
All that is required to reuse the code is to follow these requirements:
-
Each data source must have a unique password (for example, versus ).
-
Each must its own unique HOSTNAME. In this example, HOSTNAME for the second source is appended with a "2" to identify it as additional to SOURCE[1], but all that is required is that each data source have its own unique HOSTNAME.
The PORT designated for each data source may be the same, or other port numbers may be designated for each source.
For additional information on configuring an instance of the interface, see Initialization file reference for Initialization file reference.