Read Write Data on Siemens PLC using Node-RED (S7)

Поделиться
HTML-код
  • Опубликовано: 26 окт 2024

Комментарии • 103

  • @ritasallai152
    @ritasallai152 2 месяца назад

    I am new to node red and plc, thank you this helped me a lot!

    • @ChunzPS
      @ChunzPS  2 месяца назад +1

      @@ritasallai152 Happy to hear that it's helpful.

  • @matematicavel129
    @matematicavel129 5 месяцев назад

    Hello! My question is regarding connection status monitoring, if my plc is offline, I would like to know if it is possible for any node to indicate this error, the catch node does not show when the s7 nodes are offline

  • @ShubhamGupta-c2n
    @ShubhamGupta-c2n Год назад

    Hello ChunzPS! Thank you so much! This helped me a lot!
    I'm facing one problem: that is i cannot able to modify value in tia portal. that means when i try to force value in TIA portal, it says: "Address cannot be forced".

  • @joe-wi6hn
    @joe-wi6hn 5 месяцев назад

    Is it possible to write multiple variables to a datablock at once?

  • @genrotik
    @genrotik 3 года назад +1

    Hi,
    what is the role of the program NetToPlc ?

    • @maximebuy
      @maximebuy 3 года назад +1

      He is using plcsim instead of a real plc. plcsim can't communicate with real network. With NetToPlc you can really read / write plcsim via real network.

  • @phongphanhung4802
    @phongphanhung4802 4 года назад +3

    you can give me file module node-red with funtions with plc s7. pls!

  • @GijoeXD
    @GijoeXD 5 лет назад +1

    Is there a known way to do this with only a raspberry pi?
    The dad of my girlfriend has a huge System based on s7 and London go connected over modbus but the System has proven to be too stiff and complex to add any functions anymore.
    They gone to the point where only her dad has some kind of basic idea how his system works.... I try to convince him that he needs some kind of "propper" smart home system and it would be great if we could continue usingthe thouseds of € in siemens equipment....
    We dont want to run multiple computers to do this.
    Just wanted to explain why I'm asking the question.

    • @ajairaj9624
      @ajairaj9624 4 года назад

      best solution is IOT2020 gateway. cost only 200$. it has linux in it, so you can install and run. Rugged for industrial application. Raspberry cant be used for an industrial purpose. not cretified and they are not designed to run for 24 hrs.hope this helps.

  • @DreamDeal
    @DreamDeal 4 года назад

    Hey, Do you need the IOT to be on the same network? I have mine connected to the router on DHCP and the S7 doesn´t goes online...

    • @ChunzPS
      @ChunzPS  4 года назад

      Yes, it needs to be on the same local network. In addition, you should set all devices to static ip.

  • @johanneseichermuller7438
    @johanneseichermuller7438 3 года назад

    Very nice, does this work with a Simatic 400?

  • @agungbuana6796
    @agungbuana6796 3 года назад +1

    does this work with s7-300?

  • @ctlee681231
    @ctlee681231 2 года назад

    Sorry to bother you, is there a tutorial for Mitsubishi FX5U?

  • @mohammadumar443
    @mohammadumar443 4 года назад

    in your demonstration we don't need physical PLC right ?

    • @ChunzPS
      @ChunzPS  4 года назад

      That's right.

    • @mohammadumar443
      @mohammadumar443 4 года назад

      @@ChunzPS after installing s7 pckgs in node-red s7 endpoints are not showing in node-red. any clue what could be the reason. i am installing it on windows.

    • @mohammadumar443
      @mohammadumar443 4 года назад

      @@ChunzPS and what version of Netplcsim you are using. I am not able to ping my plc using netplcsim and tiav13? please help

  • @danujaboteju9736
    @danujaboteju9736 4 года назад

    Hello ChunzPS
    Thanks for uploading these node red videos
    I have a small issue - I am using siemens V13 PLCSIM. I could get the msg.payload correctly when i use the s7comm node. But when I use s7 in node I get the msg.payload "No response from PLC, restarting communication". Any suggestions please?
    And without s7 and s7 comm nodes, I tried to use Modbus read node from node-red-contrib-modbus library. Could not get any output. (not even an error msg) Could you please give me a suggestion?
    Thanks in advance.

    • @ChunzPS
      @ChunzPS  4 года назад

      I think S7 protocol does not use Modbus to communicate with other components. So, using Modbus module could not access to plc.

    • @MrAshwindersingh
      @MrAshwindersingh 4 года назад

      same problem i tried modbus i dont understand why it is not working . let me know if u find solution thanks

  • @Data_is_Power
    @Data_is_Power 4 года назад

    do i need physical plc to check this example?

    • @ChunzPS
      @ChunzPS  4 года назад

      In this video, I used PLCSim on TIA without having the physical PLC.

  • @alessandroromanini5779
    @alessandroromanini5779 3 года назад

    hi, I have a problem in making node-red communicate with a s7 1500 plc while with the 300 series everything is ok.
    I created some non-optimized db and set as parameters: rack 0 slot 1 as port 102.
    could you help me thanks a lot.

    • @ChunzPS
      @ChunzPS  3 года назад

      Did you permit put/get access?

    • @alessandroromanini5779
      @alessandroromanini5779 3 года назад

      @@ChunzPS no

    • @ChunzPS
      @ChunzPS  3 года назад

      @@alessandroromanini5779 Please try turning it on and check communication again.

  • @nhatnguyenduy7260
    @nhatnguyenduy7260 5 лет назад

    Sorry, but do we need a PLC IOT2040 to install Node-red-s7?

    • @ChunzPS
      @ChunzPS  5 лет назад +1

      Actually, you can use PLC IOT2040 to install Node-red. But, other embedded boards such as Raspberry Pi 3, Beagle Bone or even PC to install Node-red. To find more information, go to nodered.org

  • @ghozifarizi8708
    @ghozifarizi8708 11 месяцев назад

    im using plc 1214 but it went "bad failure" how?

  • @pravinshinde640
    @pravinshinde640 4 года назад

    I don't know the Port & Rack no. How do I connect? I'm working on S7 300 PLC with simatic manager.

    • @ChunzPS
      @ChunzPS  4 года назад +1

      Basically, port should be 102 and rack no. is normally 0. Slot is 2.

    • @pravinshinde640
      @pravinshinde640 4 года назад +1

      @@ChunzPS thank u so much. Video is really so helpful.... The Port 50523 worked for me. From siemens support page no. 24534065. It will be helpful if you added this to Video description.

  • @josuemiguelfloresalvarez7419
    @josuemiguelfloresalvarez7419 3 года назад

    Muy bien el video, tengo el tia portal v15 y el plc sim podria funcionar? o necesito el plc sim advance

  • @mateocastrillon376
    @mateocastrillon376 5 лет назад

    Hey there nice video, í have a questionquestion u dont have to make a send block like tsend ? Im wondering how the plc knows it has to send the data registres tru the Ethernet port

    • @ChunzPS
      @ChunzPS  5 лет назад

      For this method, there is no need to use tsend. The communication between the two uses S7 protocol.

    • @mateocastrillon376
      @mateocastrillon376 5 лет назад

      I did exactly as you did in the video but I'm using a physical PLC and it shows the error "No response from PLC, restarting communication" but the S7 in and out node are online

    • @ChunzPS
      @ChunzPS  5 лет назад

      @@mateocastrillon376 Have you already check allow put-get communication and unchecked optimize access?

  • @ivanlopeztorres5567
    @ivanlopeztorres5567 5 лет назад

    Should I connect the raspy to the PLC using ethernet or profinet cable?

    • @ChunzPS
      @ChunzPS  5 лет назад +2

      You can use either.

    • @olausit
      @olausit 4 года назад

      @@ChunzPS Thank you very much. To connect it to a real PLC, not to a simulation, do you need netoplcsim program?

    • @ChunzPS
      @ChunzPS  4 года назад +1

      @@olausit In case of that, you don't need to use nettoplc.

    • @olausit
      @olausit 4 года назад

      @@ChunzPS In this moment i am trying to put nodered into a raspberry py 3 b+, and in my pc i have tia portal v15.1. I followed all steps of you both tutorials but i have this recurrent error "Error connecting to PLC: Error: connect ECONNREFUSED 127.0.0.1:102". I have both conected to a router wifi, and this router has internet. I used nettoplcsim as administrator but the failure continues. Any idea? is it a problem of tia portal varsion maybe?
      Actualization: i have tried to make a network only with a switch, 2 ethernert cables (1 for the pc and the other 1 for the rpi) and i get the same problem

  • @MrAshwindersingh
    @MrAshwindersingh 4 года назад +1

    hey can u make video on modbus node red and plc sim

  • @夏锋沉
    @夏锋沉 Год назад +2

    After checking all the videos I found people in this industry can't talk

  • @ruebenshrestha1762
    @ruebenshrestha1762 5 лет назад

    Port 102 is the default for s7 protocol?

  • @usmanemder7507
    @usmanemder7507 4 года назад

    Thanks for your fruitful tutorial. I wanna using raspberry Pi with node-Red. What will you think, will it work?

    • @ChunzPS
      @ChunzPS  4 года назад

      Sure. It will work.

    • @usmanemder7507
      @usmanemder7507 4 года назад

      @@ChunzPS But then, what will be the physical connections.

    • @ChunzPS
      @ChunzPS  4 года назад

      By LAN or wireless LAN

    • @usmanemder7507
      @usmanemder7507 4 года назад

      @@ChunzPS Wifi

    • @ChunzPS
      @ChunzPS  4 года назад

      @@usmanemder7507 First, you should connect S7 PLC with wifi router and configure it to the same network as Rpi is connected. Moreover, you don't have to use Nettoplcsim because you use the physical hardware.

  • @RonnsLee
    @RonnsLee 5 лет назад

    Thank you so much! This helped me a lot! :)

  • @alwayshappy9509
    @alwayshappy9509 4 года назад

    Thanks for your tutorial, I am facing some problem, "s7 in" nodes shows online but I got msg, "No response from PLC, restarting communication". I don`t understand, as I have two "s7 in" nodes but getting online one message after some instants.

    • @ChunzPS
      @ChunzPS  4 года назад

      Do you use PLCSim or the real PLC?

    • @alwayshappy9509
      @alwayshappy9509 4 года назад

      @@ChunzPS Actually, I have real PLC. So I don`t need to use PLCSim?

    • @alwayshappy9509
      @alwayshappy9509 4 года назад

      I am using real PLC, and in S7 node I am using 192.168.0.1 as an IP address. But still, the message is coming.

    • @ChunzPS
      @ChunzPS  4 года назад

      @@alwayshappy9509 Did you check "Permit access with PUTGET Communication ~" option at 0:39 ?

    • @alwayshappy9509
      @alwayshappy9509 4 года назад

      @@ChunzPS yes. I already checked in this option.

  • @Carlo-h5e
    @Carlo-h5e 6 месяцев назад

    good morning I can't communicate put get and it's been enabled I'm using a PLC I'm not in simulation but even when the video reaches minute 5:59 so I can't make the window appear it could give me a payment and I'll try for a week

    • @ChunzPS
      @ChunzPS  6 месяцев назад

      If you use the physical PLC, you don’t have to use NetToPLC Program. Please specify the IP address of PLC in Node RED and that should work fine.

    • @Carlo-h5e
      @Carlo-h5e 5 месяцев назад +1

      @@ChunzPS thank you

  • @MuhammadHassan-hc9bo
    @MuhammadHassan-hc9bo 3 года назад

    Can I do this with plcsim advanced?

  • @eastern815
    @eastern815 Год назад

    Thank you🙏

  • @nota3446
    @nota3446 5 лет назад

    Which application is that?

  • @amirulaimanbinmohdrozani4536
    @amirulaimanbinmohdrozani4536 3 года назад

    How to get network ip adress?

  • @dineshpatle5277
    @dineshpatle5277 4 года назад

    can you Schneider Tm200 plc communication raspberry Pi with node red

    • @ChunzPS
      @ChunzPS  4 года назад

      I have never used Tm200 before so I'm not sure whether it is possible or not.

  • @PladdenTim
    @PladdenTim 5 лет назад +2

    First of all thank you :)
    I have a problem. If i start node red by typing in the IP-address in the browser, it works. But if i do the same by using the Internet of things Platform of IBM, there is alwayse the same error!
    "Error connectiong to PLC: Error connect Econnrefused 127.0.0.1"
    Do you or anyone here have an idea why it don't work and how to fix the problem?

    • @ChunzPS
      @ChunzPS  5 лет назад +1

      So, in that case, you have to find your public IP address of your plc and then insert that in your Node-red server.

  • @cristianandreshenaovargas4709
    @cristianandreshenaovargas4709 6 лет назад +1

    como creo el nodo s7 ?

    • @ChunzPS
      @ChunzPS  6 лет назад

      You should go to manage pallete and search for s7. Then, install it.

    • @cristianandreshenaovargas4709
      @cristianandreshenaovargas4709 6 лет назад

      Muchas gracias otra pregunta para leer datos Reales o Int que control me sirve que envio un 10.0 y me sale 1198239482

    • @ChunzPS
      @ChunzPS  6 лет назад

      Please check the data type. The data type between TIA and node-red should be similar.

  • @cristovaonunes4952
    @cristovaonunes4952 4 года назад +1

    Many thanks

  • @afq677
    @afq677 6 лет назад

    i do exactly like the video was did but still connection unreached host. Why is is happen 😅

    • @ChunzPS
      @ChunzPS  6 лет назад

      Do you connect Node-red with PLC Sim or an actual PLC? If you use PLC Sim, you need to have nettoplcsim and configure your network address and plc sim address.

    • @afq677
      @afq677 6 лет назад

      how do i send any data to plc?

    • @ChunzPS
      @ChunzPS  6 лет назад +1

      You should select S7 output and configure it as the video shows. After deploying, it will automatically send data according to the cycle time.