Comments (5)
Yes, you can specify one of the CIP data types (SINT), (INT), (DINT) or (REAL) -- and now also (BOOL) for the data on the command line. It applies to all data being written to that tag. You can write different data types in a separate Tag request, eg:
python -m cpppo.server.enip.client -a 127.0.0.2 'MYTAG=(INT)32767' 'MYTAG=(DINT)50000' 'MYARRAY[5-6]=(REAL)1.23,4.56'
This is documented in the README.org or README.pdf chapter on the "EtherNet/IP Controller Client".
from cpppo.
Thanks for your reply.
In your above example, should I not have indexes for MYTAG?
python -m cpppo.server.enip.client -a 127.0.0.2 'MYTAG[0]=(INT)32767' 'MYTAG[1]=(DINT)50000' 'MYARRAY[5-6]=(REAL)1.23,4.56'
Also I looked at the documentation for setting for the corresponding server for a message like this, but was unsuccessful.
What would be the correct server syntax for this?
python -m cpppo.server.enip -a 127.0.0.2 --print MYTAG=DINT[1] ...?
Thanks again for your assistance.
from cpppo.
Yes, if your MYTAG is an array, then you need to include indices.
If you look here:
https://github.com/pjkundert/cpppo#ethernetip-cip-controller-communications-simulatorclient
there is a description of how to start a simulator with Tags of various data types; you're on the right track.
from cpppo.
Hi
I am able to start the server to look for different tags with various data types, but not 1 tag with various data types.
Server/Listener (not correct):
python -m cpppo.server.enip -a 127.0.0.2 --print 'MYTAG[0]=INT[1]' 'MYTAG[1]=DINT[1]'
Client:
python -m cpppo.server.enip.client -a 127.0.0.2 'MYTAG[0]=(INT)32767' 'MYTAG[1]=(DINT)500000'
I had a read through the document, seems I am missing something.
Thanks
from cpppo.
No, you must make separate tags; each tag must be if one single type.
On Friday, September 18, 2015, gsingh-cp [email protected] wrote:
Hi
I am able to start the server to look for different tags with various data
types, but not 1 tag with various data types.Server/Listener (not correct):
python -m cpppo.server.enip -a 127.0.0.2 --print 'MYTAG[0]=INT[1]'
'MYTAG[1]=DINT[1]'Client:
python -m cpppo.server.enip.client -a 127.0.0.2 'MYTAG[0]=(INT)32767'
'MYTAG[1]=(DINT)500000'I had a read through the document, seems I am missing something.
Thanks
—
Reply to this email directly or view it on GitHub
#7 (comment).
-pjk
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
- Client import problem HOT 1
- 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.