Comments (6)
example db with REAL values.
https://github.com/gijzelaerr/python-snap7/blob/master/example/db_layouts.py
Here you find the code which converts bytes back and forth to/from real values.
https://github.com/gijzelaerr/python-snap7/blob/master/snap7/util.py
hope this helps.
Are you sure you are not dealing with DWORD values that one might be missing but is easily added.
from python-snap7.
Are you by any chance doing running a beer brewery process?
from python-snap7.
Superb thanks! Yes I brew my own beer! :)
from python-snap7.
Robban, You might want to share you beer setup with Gijs. Also a beer
brewer. :)
On Tue, Jun 24, 2014 at 10:05 AM, 50Robban [email protected] wrote:
Superb thanks! Yes I brew my own beer! :)
—
Reply to this email directly or view it on GitHub
#18 (comment)
.
from python-snap7.
hehe yes. beer! http://brouwerijdepomp.nl
Maybe you can show us some code that is problematic? I'm not sure what your problem is actually. A real should be converted to a python float.
from python-snap7.
I have the read/write REAL working now thanks to spreeker. I Have a dedicated DB for HMI Out/In. I use a webpage as HMI.
BRGRDS
from python-snap7.
Related Issues (20)
- How to read and write values of type bool using snap7 module?
- Can not use this library to read timers of simatic S7-200 smart PLC HOT 2
- Redundant 400-H get_cpu_state() returning incorrect value.
- Add python 3.12 support, build wheels HOT 2
- RuntimeError: b' ISO : An error occurred during recv TCP : Connection timed out'
- Error in util.Set_String and util.Get_String
- as_db_read() doesnt work
- Wrong values set_lreal
- db[0]['x']=22.33 raises ValueError HOT 2
- Improve doc for area_read in client HOT 2
- Communication between PLC and PC HOT 1
- Can't read from S210 Drive
- Get data block layout
- TypeError: '_ctypes.PyCArrayType' object is not subscriptable HOT 1
- Make client and server a contextmanager HOT 1
- Drop Python 3.8 from metadata and doc HOT 1
- Drop Snap7Library singleton and use python functools caching HOT 1
- version 1.4 broken on python 3.8 HOT 2
- Snap7Exception is not used HOT 1
- Replace `OrderedDict` with the built-in `dict` HOT 1
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 python-snap7.