Comments (5)
To provide additional information:
I'm using a Siemens logo 0ba8 with TSAP 02.00 on both PLC and node red, configured to use the S7 protocol.
Im sending booleans to IB0, IB1, QB0, and QB1 which I can read from node red.
I'm sending an analog value (word) to IW2 but no value is reported in node red, however an object is created in the output payload.
So my output payload is {IB: data QB: data, IW:0} for all analog output from the PLC.
from node-red-contrib-s7.
Hi,
Unfortunately we don't have a Logo for testing here, but as far as I know the communication protocol should be the same. There's just a difference in the communication setup process, that we've implemented in the latest version
Maybe you can check this link https://www.promotic.eu/en/pmdoc/Subsystems/Comm/PLC/LOGO.htm on how to map the the addresses, so you could double-check they're being mapped correctly. There it says that the analog inputs start at 1032, while the analog memories start at 1118,
So for example, for reading the first analog input I would try configuring the address DB1,W1032
. Which address have you configured for your variables?
from node-red-contrib-s7.
Hi,
My analog input is AI2, so I have mapped the output to DB2.DBW1032 as suggested by the documentation. However, now node-red does not even output an object for this. See screenshots below.
Logo configuration (192.168.0.254 is my node-red instance):
Connection config in node-red:
from node-red-contrib-s7.
Sorry for the long time to answer. The syntax we use doesn't match exactly the one in TIA Portal or Step7. Please try to config it exactly as I posted above. So, for the list in your screenshot above, you'd have:
- pedals (First input byte):
DB1,B1024
- breakes (First output byte):
DB1,B1064
- torque (Second analog input word - AI2):
DB1,W1034
Note there is a comma (,
) between DB1
and the address part, and there's no DB
between the comma and the address type.
Again, you can check the samples on the "S7 address" on the following link, that has a nice mapping table between Logo addresses and S7 protocol addresses: https://www.promotic.eu/en/pmdoc/Subsystems/Comm/PLC/LOGO.htm
You can also post your flow (JSON) to take another look at it
from node-red-contrib-s7.
I'm closing this as this seems to be working. Let me know if it's not the case
from node-red-contrib-s7.
Related Issues (20)
- Cannot write Strings to PLC (S7-315 PN/DP) HOT 2
- Access address PIW
- Reading the whole DB HOT 1
- How to write a dint array to a PLC? HOT 1
- Change address from NodeRed property HOT 2
- Support s7-200 smart plc? HOT 1
- Trigger Read specific adress (S7 Control Node)
- s7-Out, send a Boolean "false" HOT 1
- checkbox for suppressing "Error: connect EHOSTUNREACH" in debug sidebar of NodeRed HOT 10
- ECONNRESET WITH S7-1200 AND S7-1500 HOT 3
- In and out nodes are in-resposive after timeout on http-request HOT 2
- Installation error Node red in Home Assistant. HOT 2
- Invalid properties S7 endpoint with nodered V3.0.2 Node.js 18.14.0 -Windows 10 HOT 14
- S7 out node invalid -endpoint properties
- I am not able to read LREAL HOT 3
- Connecting to S7 300 over NAT not possible
- different behaviour on identical PLCS
- wont work with Simatic RTX
- Dynamic configuration (address, port) change
- Connecting to plc through internet 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 node-red-contrib-s7.