Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

PHP opc retrieving signals

More
16 Jul 2018 12:40 - 16 Jul 2018 13:01 #6515 by alr1976
Replied by alr1976 on topic PHP opc retrieving signals
okay so don't know what the issue was so I formatted the server and installed back and now seem OK

Thanks


PS. Now I still have the problem of the add existing node when I'm brosing but for that i will continue with the other thread
Last edit: 16 Jul 2018 13:01 by alr1976.

Please Log in or Create an account to join the conversation.

More
13 Jul 2018 19:30 #6514 by support
Replied by support on topic PHP opc retrieving signals
My options are limited until approx. end of next week. I will try to at least give ideas/hints/answers.

About installation log: opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...bleshooting%20the%20Setup.html .

Manual registration: opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...%20and%20Type%20Libraries.html .

I wonder whether this cannot be related to 32 vs 64 bit, especially when the components appear to be registered from some programs and not from others, on the same machine. Can you switch PHP (web) to use 32bit process instead of 64bit, or vice versa?

Regards

Please Log in or Create an account to join the conversation.

More
13 Jul 2018 08:35 #6513 by alr1976
Replied by alr1976 on topic PHP opc retrieving signals
FYI

This is the example provided into OPC example named ReadValue.Web.php lunched on IIS and I still have this


PHP Fatal error: Uncaught com_exception: Failed to create COM object `OpcLabs.EasyOpc.UA.EasyUAClient': Class not registered
in C:\inetpub\wwwroot\ReadValue.Web.php:10
Stack trace:
#0 C:\inetpub\wwwroot\ReadValue.Web.php(10): com->com('OpcLabs.EasyOpc...')
#1 {main}
thrown in C:\inetpub\wwwroot\ReadValue.Web.php on line 10

Please Log in or Create an account to join the conversation.

More
13 Jul 2018 08:30 #6512 by alr1976
Replied by alr1976 on topic PHP opc retrieving signals
Okay running from console on the same machine seem that works so seem that the problem is related only on web using PHP



C:\Program Files (x86)\OPC Labs QuickOPC 2018.2\ExamplesCom\PHP\Console\DocExamp
les\_EasyDAClient>php -f PullItemChanged.Main.php

Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0
Subscribing item changes...
Processing item changed events for 1 minute...
[] 0.00125125888851588 {System.Double} @2018-07-13T08:28:07.144; GoodNonspecific
(192)
[] 0.808740501113926 {System.Double} @2018-07-13T08:28:10.144; GoodNonspecific (
192)
[] 0.58500930814539 {System.Double} @2018-07-13T08:28:11.144; GoodNonspecific (1
92)
[] 0.47987304300058 {System.Double} @2018-07-13T08:28:12.144; GoodNonspecific (1
92)
[] 0.350291451765496 {System.Double} @2018-07-13T08:28:13.144; GoodNonspecific (
192)
[] 0.895962401196326 {System.Double} @2018-07-13T08:28:14.144; GoodNonspecific (
192)
[] 0.822840052491836 {System.Double} @2018-07-13T08:28:15.144; GoodNonspecific (
192)
^C

Please Log in or Create an account to join the conversation.

More
13 Jul 2018 08:21 #6511 by alr1976
Replied by alr1976 on topic PHP opc retrieving signals
OKay I will check the php example on console but for the other I have NO IDEA of what to do we don't do anything with VB and in any case even for me installing on IIS that is a really bad platform is an issue I'm coming from Linux and apache are far away better anyway let me check php because this is what we need.... just for your info my developer who is not in office now have installed Windows server 2012 R2 like us with php same and works like a charms ... so do you have a log of your component registered so I can check if effectively have registered the com or is there a way to register it manually using regsvr ?


Thanks Roberto

Please Log in or Create an account to join the conversation.

More
12 Jul 2018 18:42 #6510 by support
Replied by support on topic PHP opc retrieving signals
I agree this is weird. The screenshot does not quite show that e.g. "Read" in the demo app actually works, but I suppose it does, right?

Can you please also try one of the console-based and one of the Web-based PHP examples that come with the product? Under the product installation directory, they are in ExamplesCom/PHP. I wonder if our own code works. Doc: opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...frame.html#PHP%20Examples.html .

Do example from other COM-based tools work? What about some of those under ExamplesCom/VBScript/WSH/DocExamples? (see opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...ples%20(ASP,%20IE,%20WSH).html )

Regards

Please Log in or Create an account to join the conversation.

More
12 Jul 2018 09:53 - 12 Jul 2018 12:29 #6507 by alr1976
Replied by alr1976 on topic PHP opc retrieving signals
Just to give you more info as you can see from screenshot .... the COM demo works and on the back the browser says that class is not registered so I'm really confused...


version og PHP-CGI used....

PHP 7.2.7 (cgi-fcgi) (built: Jun 19 2018 23:13:46)
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
Attachments:
Last edit: 12 Jul 2018 12:29 by alr1976.

Please Log in or Create an account to join the conversation.

More
12 Jul 2018 09:15 #6506 by alr1976
Replied by alr1976 on topic PHP opc retrieving signals
yes I'm sure but just to make 100% sure I have reinstalled it and I still have this:

PHP Fatal error: Uncaught com_exception: Failed to create COM object `OpcLabs.EasyOpc.DataAccess.EasyDAClient': Class not registered
in C:\inetpub\wwwroot\opc.php:9
Stack trace:
#0 C:\inetpub\wwwroot\opc.php(9): com->com('OpcLabs.EasyOpc...')
#1 {main}
thrown in C:\inetpub\wwwroot\opc.php on line 9

I have the latest php 7.2.7 and before today I was using PHP 7.2

Please Log in or Create an account to join the conversation.

More
11 Jul 2018 15:22 #6505 by support
Replied by support on topic PHP opc retrieving signals
Hello,

Have you chosen to include installation for Com development on the 2nd page of the setup wizard?

Please Log in or Create an account to join the conversation.

More
11 Jul 2018 12:46 #6504 by alr1976
Replied by alr1976 on topic PHP opc retrieving signals
okay I installed Windows Server 2012 R2 that is compatible and all including the opc components and php 7.x now when I lunch the same php I have this issue:

[11-Jul-2018 05:34:57 America/Los_Angeles] PHP Fatal error: Uncaught com_exception: Failed to create COM object `OpcLabs.EasyOpc.DataAccess.EasyDAClient': Class not registered
in C:\inetpub\wwwroot\opc.php:9
Stack trace:
#0 C:\inetpub\wwwroot\opc.php(9): com->com('OpcLabs.EasyOpc...')
#1 {main}
thrown in C:\inetpub\wwwroot\opc.php on line 9


so how is possible ? I'm stalled for over 10 days since now .... please give me support if you can thanks

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.067 seconds