Git Product home page Git Product logo

py_openshowvar's Introduction

py_openshowvar

A Python port of KUKA VarProxy client (OpenShowVar).

Python version

Supports 2.6+ / 3.3+, tested at 2.7.11 and 3.6.3.

Install

On PYPI: https://pypi.python.org/pypi/py-openshowvar

pip install py_openshowvar

Usage

Module usage:

>>> from py_openshowvar import openshowvar
>>> client = openshowvar('192.168.19.132', 7001)
>>> client.can_connect
True
>>> ov = client.read('$OV_PRO', debug=True)
[DEBUG] (48, 6, 0, 3, '100', '\x00\x01\x01')
100
>>> print ov
100
>>> client.close()

Built-in shell usage:

$ python ./py_openshowvar.py
IP Address: 192.168.19.132
Port: 7001

Connected KRC Name:  "xxxxxxxxxx"

Input var_name [, var_value]
(`q` for quit): $OV_PRO
[DEBUG] (66, 5, 0, 2, '50', '\x00\x01\x01')
50

Input var_name [, var_value]
(`q` for quit): $OV_PRO, 100
[DEBUG] (67, 6, 1, 3, '100', '\x00\x01\x01')
100

Input var_name [, var_value]
(`q` for quit): q
Bye

py_openshowvar's People

Contributors

linuxsand avatar

Watchers

 avatar

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.