cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

B2MML with real time data

Former Member
0 Likes
394

Hi All

I want some B2mml files with real time data.

So exact( maintenance infromation and Production) B2MML that is coming from MIS.

So if anyone have some information regarding this please tell me.

Thanks in Advance

Ramshanker

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Are you trying to get data from a plant to a corporate or ERP system - or the other way around.

If you want to get plant data into a B2MML document to send to another system, you can do this with xMII Business Logic Services. You will need to create a new transaction, use queries to the apporpriate plant systems, and then use the outputs of those queries to load data into the B2MML templates. Use the Reference Document Loader to load the appopriate B2MML template into the transaction. Use the Link Editor to map data from the queries into the document templates.

If you need to accept a document to send to a plant system, just create a transaction with an input parameter of type XML. You can then post the document to the transaction. If the document is not standard format, get a sample document and load it into the reference documents folder under Lighthammer\Xacute. Assign the document to the input document, so that the transaction udnerstands the format needed. You can then use the standard tools to get the data elements out of the document that you need, and you can map them into queries that write data to the appopriate plant systems.

Also - always remember that if you want to send data to an SAP ERP system, you can use the native ERP interface methods (BAPI, RFC, etc). Also - to get data in from an SAP ERP system, you can always send data to xMII via IDOCS.

Feel free to follow up with a more detailed question - this is a very generic answer.

Former Member
0 Likes

Hi John

Sorry for late response.

You have suggested way to fill data in B2MML but i got confused here

"use queries to the apporpriate plant systems, and then use the outputs of those queries to load data into the B2MML templates".How we can do this part Please explain it again and tell me the way

that how we can get data from plant to our logic editor.

In my view B2MML should come from plant with appropriate data and we will use that B2MML in logic editor to make analysis over that data.Is there any other way to get plant data.

If i am wrong please guide me.

With Thanks

Ramshanker

Former Member
0 Likes

The way to get plant data is to start by setting up what xMII calls "Data Servers." These are logical connections to plant systems. There are many different types of data servers, including connectors to specific third party applications that you typically find in a manufacturing plant(See connectors, servers, and-or UDS in the online help). There are also JDBC, XML, OLE DB and many other types of servers.

Once you have defined these connections, you create querz templates against the data server instances.

Once queries are created, you can use the logic editor to manipulate the query output in any way you need to, including putting it into B2MML format. However, the data does not need to be put into B2MML format to be used externally.

To use the query output in the logic editor, use the xMII query actions and point them to the queries you created.

Hope this helps. Take a look at the getting started guide in the help to get a basic understanding of data servers and queries.

Former Member
0 Likes

Hi, Ramshanker.

In the cases where the plant system is directly delivering B2MML documents (such as with certain products from Wonderware, Siemens, and some others), using the data in xMII is quite straightforward.

1) If the B2MML message is not "standard" B2MML (be aware that very few plant vendors use the baseline standard - most have a number of specific extensions), you can add the vendors' schemas or B2MML example documents to xMII by adding them to a ReferenceDocument folder on the server.

2) In xMII BLS, create a transaction (let's assume you called it B2MMLHandler) with one input parameter, of type "XML" (let's assume you called it "B2MMLDocument"). Add a "ReferenceSchema" or "ReferenceDocument" action, and configure it to load the vendor's B2MML format. Use the "assign reference document" menu option to assign this format to the transaction input.

3) You can now use the B2MML document to perform analytics or to map from the B2MML document into any RFC or BAPI calls or ESA service calls from within BLS.

4) The plant system system should "post" the XML data to an xMII transaction using the "Runner" URL as in:

http://<yourserver>/Lighthammer/Runner?Transaction=B2MMLHandler&InputParameter=B2MMLDocument

Of course, if the MES system isn't capable of posting the documents and they are available on the file system, you can use the xMII file actions (or remote file access via FTP) to access and load the B2MML documents, perhaps at a scheduled interval.

Hope this helps get you started in the right direction.

Best regards,

Rick Bullotta

Answers (0)