cancel
Showing results for 
Search instead for 
Did you mean: 

Beta Control OPC to MII Integration

Former Member
0 Kudos

Hello ,

There is an issue am facing in pulling values in Tag Query from Betacontrol.

I am able to see values in Matrikon OPC client from Beta control. UDS OPC DA configuration done perfectly and able to create Aliases and read the values. But when executed creating Tag query in MII 12.1, I am able to see tags but values are coming as '0'.

I have checked the datatypes, time stamps both in OPC and MII.

What could be the problem??

Regards,

Vijaya

Accepted Solutions (1)

Accepted Solutions (1)

jamie_cawley
Advisor
Advisor
0 Kudos

What version of the uds are you using? Please post you configuration settings and any errors the uds is reporting or the windows event logs.

Jamie

Former Member
0 Kudos

Hello Jamie,

UDS Admin console Version is 4.0.3.19.

Windows event Log is as follows:::

" The description for Event ID (0) in source (BCD05) cannot be found.The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE = Flag to retrieve this description:"

Below is the UDS log::

[05/11/2011-17:08:02.593] BCD05 [P:0680, T:0692, Host, INFO] 0x11201 Host is exiting. [Host.cpp @ 338, CHostModule::RunMessageLoop]

[05/11/2011-17:08:02.640] BCD05 [P:0680, T:1356, UDS, INFO] 0x2028 Disconnected from the server. [Connection.cpp @ 2248, CLHOpcDaConnection::Unload]

[05/11/2011-17:10:03.687] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11400 Command Line: "C:\Program Files\SAP\xMII\UDS\xMIIUDSHost.exe" BCD05. [Host.cpp @ 433, CHostModule::LogConfig]

[05/11/2011-17:10:03.687] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11405 Host Build Configuration: Release. [Host.cpp @ 436, CHostModule::LogConfig]

[05/11/2011-17:10:03.687] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11406 Host Build Date: Jun 20 2008. [Host.cpp @ 437, CHostModule::LogConfig]

[05/11/2011-17:10:03.687] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11407 Host Description: xMII UDS Host. [Host.cpp @ 438, CHostModule::LogConfig]

[05/11/2011-17:10:03.687] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11408 Host File: xMIIUDSHost.exe. [Host.cpp @ 439, CHostModule::LogConfig]

[05/11/2011-17:10:03.687] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11409 Host Version: 4.0.3.19. [Host.cpp @ 440, CHostModule::LogConfig]

[05/11/2011-17:10:03.687] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11401 Found Aspect: OPC-DA. [Host.cpp @ 468, CHostModule::LogConfig]

[05/11/2011-17:10:03.687] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Include Quality = No. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.687] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Acquisition Mode = Synchronous. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.687] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Read From Device = true. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.703] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Read Delay = 100. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.703] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Force flat namespace = false. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.703] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Automatically Reconnect = true. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.703] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: OPC Group Number = 1234. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.703] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: OPC Group Name = LHDS_OPCGROUP. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.703] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Acceptable Data Quality = Good. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.703] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Startup Delay = 1000. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.703] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Use Legacy Tag Format = false. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.703] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Legacy Delimiter = .. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.703] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Activate Items = Both. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.703] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Group Update Rate = 0. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.703] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: OPC Server = localhost; betacontrol.OPC_DA_Server_OCTAL.1; OPC DA2. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.703] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11401 Found Aspect: Cache. [Host.cpp @ 468, CHostModule::LogConfig]

[05/11/2011-17:10:03.703] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Mask = . [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.703] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Mode = Alias with Dynamic Metadata. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.703] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11401 Found Aspect: Host. [Host.cpp @ 468, CHostModule::LogConfig]

[05/11/2011-17:10:03.703] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Pool Size = 5. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.703] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Runtime Mode = Service. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.703] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Threading Model = MTA. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.703] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Stack Size = 0. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.703] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Collect Requests = false. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.703] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Shutdown Timeout = 10. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.703] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Log Level = Info. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.718] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Use IOCP = true. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.718] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Service User = .\LocalSystem. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.718] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Service Password = *****. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.718] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Service Dependencies = Eventlog. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.718] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Trusted Requesters = . [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.718] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Maximum Concurrent Connections = 100. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.718] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Connection Wait Time = 5000. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.718] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Max Reconnect Sleep Time = 1000. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.718] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Auto-reconnect Attempts = 5. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.718] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Monitor Cycle = 15. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.718] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Port = 8085. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.718] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11402 Found Parameter: Service Startup = Automatic. [Host.cpp @ 487, CHostModule::LogConfig]

[05/11/2011-17:10:03.718] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11401 Found Aspect: Logging. [Host.cpp @ 468, CHostModule::LogConfig]

[05/11/2011-17:10:03.718] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11403 Operating System Version: Windows XP Professional (Build 2600) with Service Pack 2, Version (2.0), Components: Single User Terminal Services. [Host.cpp @ 501, CHostModule::LogConfig]

[05/11/2011-17:10:03.734] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11411 Processor 0 Info - Speed: 1995 MHz, Name: Intel(R) Pentium(R) M processor 2.00GHz, Identifier: x86 Family 6 Model 13 Stepping 8, Vendor: GenuineIntel. [Host.cpp @ 548, CHostModule::LogConfig]

[05/11/2011-17:10:03.734] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11412 Memory Used 87% - Physical Used 62 of 502 MB, Paged File 835 of 1494 MB, Virtual Used 2002 of 2047 MB. [Host.cpp @ 557, CHostModule::LogConfig]

[05/11/2011-17:10:03.734] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x11413 Computer Name: PC181398. [Host.cpp @ 584, CHostModule::LogConfig]

[05/11/2011-17:10:05.015] BCD05 [P:3572, T:1572, UDS, INFO] 0x201f Connected to the Softing OPC Data Access Server Development Kit server. [Connection.cpp @ 2178, CLHOpcDaConnection::Load]

[05/11/2011-17:10:05.140] BCD05 [P:3572, T:1572, UDS, INFO] 0x1004 Finnished initializing. [DataServer.cpp @ 86, CLHOpcDaDataServer::FinalInitialize]

[05/11/2011-17:10:05.171] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x1140a UDS Progid: xMIIOpcDaUDS.DataServer.1. [Host.cpp @ 632, CHostModule::LogState]

[05/11/2011-17:10:05.171] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x1140b UDS Build Configuration: Release. [Host.cpp @ 633, CHostModule::LogState]

[05/11/2011-17:10:05.171] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x1140c UDS Build Date: Jun 20 2008. [Host.cpp @ 634, CHostModule::LogState]

[05/11/2011-17:10:05.187] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x1140d UDS Description: xMII OPC-DA UDS. [Host.cpp @ 635, CHostModule::LogState]

[05/11/2011-17:10:05.187] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x1140e UDS File: xMIIOpcDaUDS.dll. [Host.cpp @ 636, CHostModule::LogState]

[05/11/2011-17:10:05.187] BCD05 [P:3572, T:0680, Host, SYSTEM] 0x1140f UDS Version: 4.0.3.19. [Host.cpp @ 637, CHostModule::LogState]

[05/11/2011-17:10:05.203] BCD05 [P:3572, T:0680, Host, INFO] 0x11200 Host is starting. [Host.cpp @ 329, CHostModule::RunMessageLoop]

[05/11/2011-17:14:46.765] BCD05 [P:3572, T:0680, Host, INFO] 0x11201 Host is exiting. [Host.cpp @ 338, CHostModule::RunMessageLoop]

jamie_cawley
Advisor
Advisor
0 Kudos

A few things to try...

Set the Threading Model to STA

Set the Runtime Mode to Exe

Have you tried using some of the other modes besides Alias with Dynamic Metadata? Increasing the log level may also help.

Regards,

Jamie

Former Member
0 Kudos

Hi Jamie,

Tried with Many ways like changing modes Alias, Alias with Meta data, Cache, cache with meta data......

Even manually took One tag and created in Alias group and checked.

And one more point i want to add here is SAP UDS and OPC client is installed on OPC server itself.

Similar for Yokogawa OPC we did, but we are able to see Values on SAP MII though UDS and OPC client installed on OPC server itself.

As you said didnt tried Setting the Threading Model to STA

Setting the Runtime Mode to Exe. Will try that and see.

How many tags does SAP UDS can maximum pick up???

Former Member
0 Kudos

Thanks Jamie,

I am able to see values now in MII, But problem is if OPC server is restarted, everytime i need to change settings in UDS, running state to EXE.

Is there any way to freeze the settings done in SAP UDS.??

jamie_cawley
Advisor
Advisor
0 Kudos

If Exe works, the problem with the Service option could be the service logon parameters. You may need to set them with a user that has rights on your OPC server. If that doesn't work, provide some more details around the current state.

Jamie

Former Member
0 Kudos

Hello Jamie,

Its working with only if running mode is set to EXE. We tried setting user having rights on OPC server with same log on credentials with service of SAP UDS . There it seems to be no problem with service logon parameters with service option, but values are not getting in MII.

Now, problem with setting running mode to EXE is, everytime if OPC server is restarted, we need to run the instance of SAP UDS manually. To do the same to run EXE state automatically i guess some windows script needs to be written.

Kindly advice !!!

Regards,

Vijaya

Former Member
0 Kudos

Hello Vijaya,

There is a document which tells about starting and stopping UDS Programatically.

Here is the link :

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b0f460c3-7f92-2910-02af-b608f92977c3

1. Create a text document named StartMyUDS.cmd.

2. Enter the following text (note: the quotations must be included): u201Cc:Program FilesSAPxMIIUDSxMIIUDSHost.exeu201D MyUDS

3. Save and run the script.

4. You can verify that the SAP xMII UDS instance is running by opening the Admin Console and viewing the runtime status.

Then you can put the same file in startup and everytime windows restarts, it will execute that file.

Other ways are also mentioned in the document. Please go through it.

Regards,

Musarrat

Former Member
0 Kudos

Hello Musarrat,

Thanks for your response. I Know the way, but am asking whether it is suggestable to keep in EXE mode or not. Will there be any impact if i go with EXE running mode rather than Service Running mode.

If it is working with EXE mode , it also should work with service mode. But in this case, its failing

Regards,

Vijaya

Former Member
0 Kudos

Hi Vijaya,

Good that you know about it. Actually it should have been working. Are you using the latest version of UDS? What version of OPC DA you are using? Sometimes there is an issue with UDS connectivity with older version of OPC servers.

I feel if there would be any sort of impact by using exe mode, then SAP wouldn't have included that option in it and there wouldn't be a published document on SDN.

Thanks,

Musarrat

jamie_cawley
Advisor
Advisor
0 Kudos

Have you tried increasing the log level in the uds? What additional output was generated? Any errors in the opc server logs?

Jamie

Former Member
0 Kudos

Hello Jamie,

Actually waiting for your reply, Increased the log level in the UDS, But no error logs as such in OPC. Additional information is generic.

Presently kept running mode to EXE and executing the mode in the batch startup, in order to get tags with values.

Answers (0)