Ankündigung

Einklappen
Keine Ankündigung bisher.

OPC webclient in PHP

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    Client OPC webclient in PHP

    Hello,

    Now my model is ok (https://knx-user-forum.de/knx-eib-fo...my-router.html)

    But I have a big problem, I want to read and writes values through Ipas' OPC Server.

    The server is up, I can read and write values with a standalone OPC client.

    I registered OPCDAAuto.dll on my server.

    This is my php code :

    Code:
    <?php
    $Server = new COM('OPC.Automation') or Die ("Did not connect");
    $Server->Connect("IPAS.OPCServer.20" , "pcinfo2");
    
    $Server->OPCGroups->Add( "maquette");
    $Server->OPCGroups(1)->OpcItems->AddItem( "maquette.On/Off Gen", 1);
    $Server->OPCGroups(1)->OpcItems(1)->Read(1);
    ?>
    
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <body>
    <?php
    echo "Statut de la lampe : " . $Server->OPCGroups(1)->OpcItems(1)->value;
    ?>
    </body>
    </html>
    in cbsdiag, there's only

    Code:
    [16.07.09 14:07:03 CEST][5][Thread-114] ServiceHandler: connection 106 opened from /127.0.0.1
    [16.07.09 14:07:04 CEST][5][Thread-114] ServiceHandler: connection 106 closed.
    but when I connect from the standalone client to read this value there's the log :

    Code:
    [16.07.09 14:11:35 CEST][5][Thread-116] ServiceHandler: connection 108 opened from /127.0.0.1
    [16.07.09 14:11:35 CEST][6][Thread-116] ServiceHandler(108) Processing input: <eib:rem name="ip_router_n146:0/0/1" mode="r" poll="0" />
    [16.07.09 14:11:35 CEST][6][Thread-116] [ServiceHandler(108).processEvent]: <eib:con name="ip_router_n146:0/0/1" node="0.0.0" value="0b" time="1247736598896" mode="w" />
    [16.07.09 14:11:35 CEST][6][Thread-116] ServiceHandler(108) Processing input: <eib:rem name="gateway:7/2/0" mode="r" poll="0" />
    did someone used this dll? I don't know what is wrong and googled it since this morning...grrr...without success
Lädt...
X