Coder Social home page Coder Social logo

eipstackgroup / openerbaseenergyobject Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 3.0 16 KB

An open-source implementation of the CIP Base Energy Object

License: Other

CMake 8.43% C 62.36% C++ 29.21%
energy cip cip-objects c commonindustrialprotocol enip ethernetindustrialprotocol base

openerbaseenergyobject's Introduction

OpENer Base Energy Object

Welcome to OpENer Base Energy Object!

OpENer Base Energy Object is an extension object to OpENer, providing an OpENer-compatible implementation of the Base Energy Object™. Currently it provides only a base implementation of the Base Energy Object™, but is open to further extension. As OpENer it is licensed under the adapted BSD-style license (see License).

So you may ask "Why is this not directly part of OpENer?", and this is a valid question. The answer to this is, that OpENer is focused on providing a near-to-minimal, but state of the art, implementation of a EtherNet/IP™ adapter device. Nonetheless, we now and then develop additional objects for our usage, but cannot be strictly considered to be part of the OpENer project. Hence, such objects are provided as separate project. Another benefit of this approach is, that OpENer does not get cluttered with a giant library (ok, not really giant, but you get the point) of object.

So, how do you use this? Again a good question! For some time already OpENer got a "drop-in" CMake-configure mechanism for additional object, when put into the cip_objects directory (you probably already asked yourself, whats this empty directory for?)

So the easiest way is to git clone this repository into the cip_objects directory and hit the Configure button in CMake, which should give you a checkbox for this object. Now, that the object is included into the compile process, you have to use the following lines in cipcommon.c's CipStackInit() to actually use the Base Energy Object with OpENer

eip_status = CipBaseEnergyInit();
OPENER_ASSERT(kEipStatusOk == eip_status)

also do not forget to add the header #include "CIPBaseEnergyObject/cipbaseenergy.h"

Contributing to OpENer Base Energy Object:

The easiest way is to fork the repository, then create a feature/bugfix branch. After finishing your feature/bugfix create a pull request and explain your changes. Also, please update and/or add doxygen comments to the provided code sections. Please stick to the coding conventions, as defined in source/doc/coding_rules The easiest way to conform to the indenting convertion is to set uncrustify as git filter in the OpENer repository, which can be done with the following to commands:

git config filter.uncrustify.clean "/path/to/uncrustify/uncrustify -c uncrustify.cfg --mtime --no-backup"

git config filter.uncrustify.smudge "cat"

openerbaseenergyobject's People

Contributors

martinmelikmerkumians avatar

Stargazers

 avatar

Watchers

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