Comments (4)
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 TPSDoes 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.
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.
I'll give that a shot tomorrow and report back. Thanks for the quick response.
from cpppo.
Writing data via the cpppo.server.enip.get_attribute proxy API should now work.
from cpppo.
Related Issues (20)
- Connection manager: unconnected send
- Receiving (not pulling or writing) data from AB Compact GuardLogix PLC
- Question: Getting single attribute
- Question: read an array of structures in one request
- Question: write to structure field
- CIP Class 0x66
- AssertionError on harvest HOT 1
- Simulate Omron Adapter
- (Question) Duplicate Responses to CIP Discovery Packet HOT 3
- Sending SINT write request using client results in error
- Python 3.11 import problem HOT 1
- Question: What is the meaning of "Tag communications capability"
- Question: CPPPO Server configuration as Generic Ethernet Module in Studio 5000
- performance issue with 3052 bytes
- SMC JXC91 write HOT 5
- Question: How to call vendor specific services?
- Question: How to send Instance Service "reset (0x05)" instead of "get_attributes_all (0x01)" using Cpppo? HOT 1
- AssertionError: Failed to receive any response
- Implicit (cyclic) communication for lower latency
- Can we have a simple example of writing a single register to a ControlLogix please
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpppo.