comtel2000 / mokka7 Goto Github PK
View Code? Open in Web Editor NEWMokka7 is native port of Snap7 core in pure Java (fork of moka7 http://snap7.sourceforge.net) and parts of Sharp7.
License: Eclipse Public License 1.0
Mokka7 is native port of Snap7 core in pure Java (fork of moka7 http://snap7.sourceforge.net) and parts of Sharp7.
License: Eclipse Public License 1.0
I always get false when I get it with getBitAt
I'm now using "readArea" method to read DBs of S7-300, but I found the number of DB (12 vars per DB) is too much, so the efficient is too lower. And now I found "readMultiVars" method, whether I can use "readMultiVars" method to read multi DBs once communication to increase the efficient? Thank you and waiting for your response.
private final byte[] pdu = new byte[2048]
限制了读取的长度
hi i have one problem with writeBit() and writeByte() methods!
in writeBit method, you first set value in bitPos'th position of first byte(buffer[0]) and in continue write buffer in ((start * 8) + bitPos) of area. this causes this method write always 0 for me!
I changed the method as follows to work correctly:
default boolean writeBit(AreaType area, int db, int start, int bitPos, boolean value) throws S7Exception {
// reset first byte?
// S7.setByteAt(buffer, 0, (byte) 0x00);
// S7.setBitAt(buffer, 0, bitPos, value);
S7.setBitAt(buffer, (start * 8) + bitPos, bitPos, value);
return writeArea(area, db, (start * 8) + bitPos, 1, DataType.BIT, buffer);
}
and similarly in writeByte method.
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.