Code Monkey home page Code Monkey logo

Comments (4)

datasim avatar datasim commented on July 20, 2024

Ya, I've been working on generalizing the cpppo methods to more cleanly
handle writes. It works fine (you can try it out using
cpppo.server.enip.client via the Command-Line Interface (see docs).
Remember to specify the data type as DINT, eg ...
'some_tag[0-3]=(DINT)0,1,2,3'

I have an experimental branch called 'feature-proxy-write' that is a
work-in-progress, to get the cpppo.server.enip.get_attribute 'proxy'
interface to cleanly handle both reading and writing. You could take a look
at that.

I have been much too busy to work on this; some Cpppo "Support" contracts
could help that... ;)

On Thursday, September 29, 2016, Patrick McDonagh [email protected]
wrote:

I'm attempting to read/write from a Rockwell E300, but I'm unable to get
the write half working.

python3 -m cpppo.server.enip.get_attribute -S -a 10.20.4.9 "@0x09/1/3" "@0x09/1/3=(BOOL)1" -v
09-29 09:47:07.815 MainThread enip.cli NORMAL init Connect: Success in 0.031s/ 5.000s
Thu Sep 29 09:47:07 2016: 0: Single G_A_S @0x0009/1/3 == [0]
Thu Sep 29 09:47:07 2016: 1: Single S_A_S @0x0009/1/3 == None
09-29 09:47:07.834 MainThread enip.get NORMAL main 2 requests in 0.015s at pipeline depth 0; 129.873 TPS

Does anyone have experience with this?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#23, or mute the thread
https://github.com/notifications/unsubscribe-auth/AGEWsYFP6Ni6by6lisQv_kCQiylhFQ-Nks5qu9BSgaJpZM4KKFhD
.

-pjk

from cpppo.

pjkundert avatar pjkundert commented on July 20, 2024

Also; when using the Get/Set Attribute Single EtherNet/IP CIP request -- you must use raw SINT data of the size of the target attribute. No CIP data type can be used; they are not supported by Get/Set Attribute Single/All.

So, I would recommend trying the above call with "@0x09/1/3=(SINT)1" instead, and see what happens. If you add a -vvv option, we can see what the CIP error code is.

from cpppo.

patrickjmcd avatar patrickjmcd commented on July 20, 2024

I'll give that a shot tomorrow and report back. Thanks for the quick response.

from cpppo.

pjkundert avatar pjkundert commented on July 20, 2024

Writing data via the cpppo.server.enip.get_attribute proxy API should now work.

from cpppo.

Related Issues (20)

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.