Code Monkey home page Code Monkey logo

Comments (5)

HelloHungryImDad avatar HelloHungryImDad commented on May 31, 2024

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.

gfcittolin avatar gfcittolin commented on May 31, 2024

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.

HelloHungryImDad avatar HelloHungryImDad commented on May 31, 2024

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):
image

Connection config in node-red:
image

Variables config in node-red:
image

node-red output:
image

from node-red-contrib-s7.

gfcittolin avatar gfcittolin commented on May 31, 2024

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.

gfcittolin avatar gfcittolin commented on May 31, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.