rossmann-engineering / eeip.py Goto Github PK
View Code? Open in Web Editor NEWEthernet/IP compatible Python library
Home Page: http://www.eeip-library.de
License: MIT License
Ethernet/IP compatible Python library
Home Page: http://www.eeip-library.de
License: MIT License
Hello,
Thanks for your great library.
i'm working on project of motor controlling.
I can read data from controller but not update output byte[1].
here's a part of code :
# Switch the motor ON
if (motor_off 1 and home_off: #conditions to switch on the step motor
eeipclient.o_t_iodata[1]= 2 # action to switch the motor ON and it's done
#time.sleep(4)
else: eeipclient.o_t_iodata[1]= 2
# Homing
if motor_on and home_off:
eeipclient.o_t_iodata[1]= eeipclient.o_t_iodata[1] +16 #Action of motor homing
print(eeipclient.o_t_iodata[1]) # this data display 18 but the motor is not doing homing
else: eeipclient.o_t_iodata[1]= 2
I tried to add time sleep but it doesn't work.
Any suggestions to resolve this issue please.
Thank you in advance!
Alexis
Hi,
thanks for charing this great repo.
I went through the example file and found it a bit confusing.
I am trying to figure out why you use in the example the eeipclient.t_o_iodata[8] for the first byte and eeipclient.t_o_iodata[9] for the second byte. Should it not be eeipclient.t_o_iodata[16] to get the second byte ?
I also would like to know how to assign single Bits with your eeip solution.
Thanks!
I have set up two connections for implicit messaging. But i only get data from the connection i established first. The connection i establish second only delivers zeros. And it is the same if i swap the order of establishing the connections. Only the first established connection works properly. Is it possible to get data from to connections at the same time?
Hi,
I have Python3.9 installed. But when I run "python3.9 -m pip install eeip" I only get an error message
"ERROR: Could not find a version that satisfies the requirement eeip (from versions: none)
ERROR: No matching distribution found for eeip".
It does not seem like eeip exists on pip? Or why does this not work?
The sequence
variable is defined here:
Line 702 in b8961ea
And goes through a 0 + 0
operation :
Line 752 in b8961ea
And is not touched anywhere else. This messes with OpENer here:
https://github.com/EIPStackGroup/OpENer/blob/5375e60e9d80a297db7ce47c4129e1a57c50b191/source/src/cip/cipioconnection.c#L922
Because it never thinks any new data is coming in.
Fix seems to be sequence += 1
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.