Coder Social home page Coder Social logo

rs485's Introduction

rs485

Чтение в режиме команд

en = Counter('/dev/ttyU0');
en.mode('w')
print 'T1 = {0[0]} Квт/ч\r\nT2 = {0[1]} Квт/ч'.format(en.cmd('ET0PE(2,2)'));
print "Напряжение = {:.2f} В".format(en.cmd('VOLTA()'));
print "Ток = {:.2f} A".format(en.cmd('CURRE()'));
print "Мощность = {:.2f} КВт".format(en.cmd('POWEP()') * 1000);

T1 = 636.6 Квт/ч
T2 = 246.45 Квт/ч
Напряжение = 231.90 В
Ток = 1.24 A
Мощность = 285.82 КВт

Быстрое чтение

    en = Counter('/dev/ttyU0');
    print en.get()

STAT_(03000002)
RECPW(95E641EE)
DATE_(06.13.05.17)
TIME_(00:08:14)
WATCH(00:08:14,06.13.05.17,0)
DELTA(23)
TTOFF(5)
TRANS(0)
HOURS(770)
VINFO(v01.0401;Jul 20 2015)
SCSD_(1,1,1034,1,1,1)
ASMBL(D2F8S3P0N0)
MODEL(0)
SNUMB(010748104609396)
VOLTA(232.57)
CURRE(1.015)
POWEP(0.208894)
COS_f(0.884)
FREQU(50.01)
HVOLT(253)
LVOLT(198)
V_RAT(16647)
I_RAT(19198)
GCOR1(16072)
POFF1(7600)
PCOR1(9)
MPCHS(0212)
! t
ET0PE(878.44)
(634.41)
(244.03)
(0.00)
(0.00)
(0.00)
STAT_(03000002)
DATE_(06.13.05.17)
TIME_(00:08:16)
SNUMB(010748104609396)
IDPAS(104609396)
POWEP(0.209814)
GRF01(07:00:01)
(23:00:02)
(00:00:00)
(00:00:00)
(00:00:00)
(00:00:00)
(00:00:00)
(00:00:00)
(00:00:00)
(00:00:00)
(00:00:00)
(00:00:00)
! P

rs485's People

Contributors

velsi 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.