Control Module Import/Export options
Hi,
Using Control Builder M I have created a library with custom Control Module Type. (CM_Transmitter).
In my application I have right clicked Control Modules and created an instance of Control Module. (CM_TT_103).
Up to that point everything works fine.
Is there a way to export that instance to excel, add another 100 instances with different tag names and reimport it to application so that I have a full instrument list in a one go rather the right clicking and creating them one by one?
I used BDM and imported whole application and searched for CM_TT_103 and nothing comes up.
Am I missing something?
Voted best answer
Actualy Yes you CAN create Control Modules using BDM - but ONLY control modules.
1. Create an instance of your Control Module - CM_Transmitter in an application using Control Builder.
2. Go to the Plant Explorer workplace and find your CM_Transmitter instance
3. Open Excel, Activate BDM and connect to your System
4. In the Plant Explorer Workplace Locate the "Control Properties" Aspect of your CM_Transmitter object. Drag the Aspect into the Top Line of the Excel workbook.
5. Select The properties that you want to Connect. You Should ALWAYS select at least the "Name" property. Select the "_Par_Conn" properties to create parameter connections. This creates a Header line in BDM
6. Go Back to Plant Explorer and Select the CM_Transmitter Object form the Control Structure. Drag and Drop it to the first line under the header in the Excel workbook. BDM should read the configured property values from the workplace.
7. If you have any Child Objects underneath your CM_Transmitter, delete those rows from the Excell Workbook.
8. Copy the second row and paste into row 3. Replace any instances on your original name with the new name for this row. Adjust any properties as required. Do NOT change the "Source Object" column. Make sure you update both the "Object Identification" and "Name" cells. Repeat as required for the number of objects you want to create.
9. Check everything CAREFULLY. When you are happy everything is corrrect, then go to Column A - "Command" and select "New"
10. Use the Buld Data Manager:Save All Objects Icon or Menu to write everything Back into the Plant Explorer workplace. This creates new objects, but does not connect the "_Par_Conn" values.
11. Remove the "New" command from the command cell and Repeat the "Save All Objects". This updates the _par_conn properties in control builder.
The object type that gets created is controlled by the "Source Object" column, the location of where the object is created is set by the "Object identification" column.
Also, although BDM will let you try to create Function Blocks this does NOT work properly. _par_Conn connections are not made and the Function block is not properly called in the Program. The resulting code will be horribly broken.
Answers
Hi,
It's not possible use BDM to create instances of function blocks or control modules. You need to program with Control Builder Open Interface "CBOpenIF"
If I not mistake, BDM can create instances but only in the tab "Function Block" as declaration, not as instance with connected parameters into the code. As probably you want.
Add new comment