Comments (5)
can you elaborate with a code example (Connection opening, looping) and where the error occurs (with stacktrace) ?
Which plc type do you use?
from s7connector.
I think i had the same issue on an S7-1200.
I specified the rack and slot numbers and got a working connection:
S7ConnectorFactory
.buildTCPConnector()
.withHost("10.0.0.XX")
.withRack(2) //defaults to 0
.withSlot(0) //defaults to 2
.build();
from s7connector.
Hi @thomasrudin,
thanks for your update. I tried that also but unfortunately it did not work.
Now I just read all the bytes I need at once and that seems to help.
Best regards,
Zuendelmeister
from s7connector.
Alternatively you could use the Bean Serializer and create a DAO class. This way all necessary bytes are read behind the scenes and you could use the relevant bits
from s7connector.
Closing and documenting the limitation in Compatibility table
from s7connector.
Related Issues (20)
- Caused by: java.lang.IllegalArgumentException: Result: Unexpected function code in answer HOT 1
- Are the following data types missing? HOT 1
- Is there a problem with the semaphore release of this line of code?
- There is a problem in the LongConverter.java HOT 1
- Does it support wstring?
- How to specify the start and end offsets of writing?
- Handling error no message defined for code: 4096 HOT 3
- java.lang.IllegalArgumentException HOT 3
- How to write the bool value in a single bit? HOT 2
- Good Program, But, Is there any way to read the M and I registers in the API ?
- java.lang.ArrayIndexOutOfBoundsException
- s7-200cn HOT 4
- error:Result: the desired item is not available in the PLC (200 family)
- I implemented the S7 protocol in my own way.
- Create connector
- p2.udlen会出现超出 buffer异常,出现数组越界。 HOT 3
- Unable to setup reading from multiple PLC simultaneously HOT 1
- Unable to read data from multiple PLCs simultaneously. HOT 2
- S7300 Cant write values in DB
- Accessing Inputs on Siemens S7-1200.
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 s7connector.