Giter Site home page Giter Site logo

opc's Introduction

opc

opc 协议采集

pip install OpenOPC

cmd 读取命令 opc -r Random.String Random.Int4 Random.Real8

python 命令

import OpenOPC

opc = OpenOPC.client() 或者opc = OpenOPC.open_client('localhost')

opc.servers()

opc.connect('Matrikon.OPC.Simulation')

opc.read( ['Random.Int2', 'Random.Real4', 'Random.String'] )

可以去下载Matrikon的模拟器

学习网站 http://openopc.sourceforge.net/other.html

OPCClient 是可视化客户端。

opc 如果是dcom 方式读取,OpenOPC.client() 会包pythoncom 不存在,安装pypiwin32 即可,220版本

opc控制台命令

opc -h 192.168.2.148 -P 7766 -r Read Error.Int2

重点servicemanager.LogInfoMsg 查看service 报错信息

运行 输入 eventvwr.msc 查看应用日志

**将一维数组,变为二维数组 tag_groups = [tags[i:i+size] for i in range(0, len(tags), size)]

opc api学习

http://gray-box.net/daawrapper.php

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.