Code Monkey home page Code Monkey logo

Comments (4)

konimarti avatar konimarti commented on August 16, 2024

from opc.

Lynckx avatar Lynckx commented on August 16, 2024

what executable do you mean exactly?

from opc.

konimarti avatar konimarti commented on August 16, 2024

Some simulation servers return garbage values on the first read. A second read then returns reasonable values. See the example below from the Graybox simulation server after a system restart:

PS C:\> opc-cli.exe read localhost Graybox.Simulator numeric.sin.float
map[numeric.sin.float:{0 32 1601-01-01 00:00:00 +0000 UTC}]
PS C:\> opc-cli.exe read localhost Graybox.Simulator numeric.sin.float                                          
map[numeric.sin.float:{99.99495 192 2019-07-11 08:55:21 +0000 UTC}]

I don't have a Kepware server installed so I can't really test the server specifics.

from opc.

Lynckx avatar Lynckx commented on August 16, 2024

The readings after the first reading are indeed usable data. thanks.

2019/07/11 11:22:36 Could not load OPC Automation object with wrapper OPC.Automation.1
2019/07/11 11:22:36 Loaded OPC Automation object with wrapper Graybox.OPC.DAWrapper.1
2019/07/11 11:22:36 Connecting to Kepware.KEPServerEX.V6 on node localhost
2019/07/11 11:22:36 Connected.
{<nil> 8 2019-07-11 09:22:37 +0000 UTC}
{16.90839 192 2019-07-11 09:22:37 +0000 UTC}
{16.90839 192 2019-07-11 09:22:38 +0000 UTC}
{9.739066 192 2019-07-11 09:22:39 +0000 UTC}

from opc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.