Giter Site home page Giter Site logo

el21-scripts's Introduction

ATTENTION

This repository is deprecated. Please follow the updated repository with El2.1/4.x compatible scripts.

Electrolyser (EL 2.1) control scripts examples

This repository contains example scripts that allow to control Electrolyser (EL 2.1).

More technical details on the EL 2.1 electrolyser including network requirements, firmware and how to set up your electrolyser in the Enapter Handbook.


Example scripts need pymodbus package to be installed. You can install it running:
#pip3 install pymodbus

el21checkmodbus.py

This script simply checks if Modbus connection is available with connected device.
EL2.1 IP address is needed to be passed as an argument to this script when you run it. E.g.:
#python3 el21checkmodbus.py 192.168.1.2

el21maintenance.py

This script guides user through EL 2.1 maintenance process using Modbus TCP.
The maintenance process is used for first electrolyte fill or periodical change of it.
EL2.1 IP address is needed to be passed as an argument to this script when you run it. E.g.:
#python3 el21maintenance.py 192.168.1.2

alt text

el21errors.py

This script shows current EL2.1 errors (if any). You can find a list of errors codes here. EL2.1 IP address is needed to be passed as an argument to this script when you run it. E.g.:
#python3 el21errors.py 192.168.1.2

ieee754read.py

This script reads Float32 value from a register. You can find more info about input registers here.
EL2.1 IP address and register number (you can use 1006 for testing purposes) are needed to be passed as an arguments to this script when you run it. E.g.:
#python3 ieee754read.py 192.168.1.2 1006

el21reboot.py

This script writes a value โ€˜1โ€™ to register 4 (Reboot). You can find more info about holding registers here.
EL2.1 IP address is needed to be passed as an arguments to this script when you run it. E.g.:
#python3 el21reboot.py 192.168.1.2

el21heartbeat.py

This script sets HeartBeat ModBus Timeout. You can find more info about input registers here.
EL2.1 IP address and timeout (in seconds, 0 - turn HeartBeat ModBus off) are needed to be passed as an arguments to this script when you run it. E.g.:
#python3 el21heartbeat.py 192.168.1.2 30

el21-scripts's People

Contributors

alexandershalin avatar stolik1984 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

el21-scripts's Issues

Wrong Heartbit Timeout

Setting 13 seconds via script.
In cloud get the following:
Heartbeat_modbustimeout_s: 851968

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.