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

แชร์
ฝัง

ความคิดเห็น • 101

  • @RonnsLee
    @RonnsLee 5 ปีที่แล้ว

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

  • @johanneseichermuller7438
    @johanneseichermuller7438 2 ปีที่แล้ว

    Very nice, does this work with a Simatic 400?

  • @user-tp7zm1lq7p
    @user-tp7zm1lq7p ปีที่แล้ว

    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".

  • @josuemiguelfloresalvarez7419
    @josuemiguelfloresalvarez7419 2 ปีที่แล้ว

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

  • @cristovaonunes4952
    @cristovaonunes4952 4 ปีที่แล้ว +1

    Many thanks

  • @matematicavel129
    @matematicavel129 25 วันที่ผ่านมา

    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

  • @joe-wi6hn
    @joe-wi6hn 17 วันที่ผ่านมา

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

  • @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 3 ปีที่แล้ว

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

  • @eastern815
    @eastern815 ปีที่แล้ว

    Thank you🙏

  • @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.

  • @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?

  • @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.

  • @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

  •  4 ปีที่แล้ว

    Firstly, thank you so much for your helpful video.
    I have experienced a problem when following your video that when I started using NetToPLCsim, it uses Port 102 that the PLC is using. And when the virtual server is on, the PLC is off. So, I can not connect Node-RED with PLCsim. Please help me?
    Thank you in advance!

    • @ChunzPS
      @ChunzPS  4 ปีที่แล้ว +1

      Please make sure that you run nettoplcsim as administrator.

    •  4 ปีที่แล้ว +1

      @@ChunzPS Thank you for your response!
      I had faced the above problem when running NetToPLCsim as an administrator.
      However, I solved the problem by turning off the SIMATIC S7DOS Help service.
      Thank you!

    • @MinhHoang-of9lg
      @MinhHoang-of9lg 2 ปีที่แล้ว

      @ con chào chú.
      con cũng bị 1 lỗi như chú nhưng ko biết cách fix. Chú có thể cho con email để liên lạc và chỉ con cách fix đc ko ạ. Con đang là sinh viên chưa có nhiều kinh nghiệm, mong chú giúp đỡ.

    • @jaouhernaceur5538
      @jaouhernaceur5538 2 ปีที่แล้ว

      can you help me to install the NetToPLCsim please

  • @ctlee681231
    @ctlee681231 2 ปีที่แล้ว

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

  • @pravinshinde640
    @pravinshinde640 3 ปีที่แล้ว

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

    • @ChunzPS
      @ChunzPS  3 ปีที่แล้ว +1

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

    • @pravinshinde640
      @pravinshinde640 3 ปีที่แล้ว +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.

  • @MrAshwindersingh
    @MrAshwindersingh 3 ปีที่แล้ว +1

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

  • @ruebenshrestha1762
    @ruebenshrestha1762 4 ปีที่แล้ว

    Port 102 is the default for s7 protocol?

    • @ChunzPS
      @ChunzPS  4 ปีที่แล้ว

      That's right.

  • @ghozifarizi8708
    @ghozifarizi8708 7 หลายเดือนก่อน

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

  • @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

  • @ivanlopeztorres5567
    @ivanlopeztorres5567 4 ปีที่แล้ว

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

    • @ChunzPS
      @ChunzPS  4 ปีที่แล้ว +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

  • @usmanemder7507
    @usmanemder7507 3 ปีที่แล้ว

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

    • @ChunzPS
      @ChunzPS  3 ปีที่แล้ว

      Sure. It will work.

    • @usmanemder7507
      @usmanemder7507 3 ปีที่แล้ว

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

    • @ChunzPS
      @ChunzPS  3 ปีที่แล้ว

      By LAN or wireless LAN

    • @usmanemder7507
      @usmanemder7507 3 ปีที่แล้ว

      @@ChunzPS Wifi

    • @ChunzPS
      @ChunzPS  3 ปีที่แล้ว

      @@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.

  • @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.

  • @alwayshappy9509
    @alwayshappy9509 3 ปีที่แล้ว

    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  3 ปีที่แล้ว

      Do you use PLCSim or the real PLC?

    • @alwayshappy9509
      @alwayshappy9509 3 ปีที่แล้ว

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

    • @alwayshappy9509
      @alwayshappy9509 3 ปีที่แล้ว

      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  3 ปีที่แล้ว

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

    • @alwayshappy9509
      @alwayshappy9509 3 ปีที่แล้ว

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

  • @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.

  • @agungbuana6796
    @agungbuana6796 3 ปีที่แล้ว +1

    does this work with s7-300?

    • @ChunzPS
      @ChunzPS  3 ปีที่แล้ว +1

      sure

  • @nota3446
    @nota3446 4 ปีที่แล้ว

    Which application is that?

    • @ChunzPS
      @ChunzPS  4 ปีที่แล้ว

      Node-red

  • @amirulaimanbinmohdrozani4536
    @amirulaimanbinmohdrozani4536 2 ปีที่แล้ว

    How to get network ip adress?

  • @dineshpatle5277
    @dineshpatle5277 3 ปีที่แล้ว

    can you Schneider Tm200 plc communication raspberry Pi with node red

    • @ChunzPS
      @ChunzPS  3 ปีที่แล้ว

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

  • @MuhammadHassan-hc9bo
    @MuhammadHassan-hc9bo 3 ปีที่แล้ว

    Can I do this with plcsim advanced?

    • @ChunzPS
      @ChunzPS  3 ปีที่แล้ว

      absolutely

  • @PladdenTim
    @PladdenTim 4 ปีที่แล้ว +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  4 ปีที่แล้ว +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.

  • @user-xp1tj1dx4s
    @user-xp1tj1dx4s หลายเดือนก่อน

    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  หลายเดือนก่อน

      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.

    • @user-xp1tj1dx4s
      @user-xp1tj1dx4s หลายเดือนก่อน +1

      @@ChunzPS thank you

  • @cristianandreshenaovargas4709
    @cristianandreshenaovargas4709 5 ปีที่แล้ว +1

    como creo el nodo s7 ?

    • @ChunzPS
      @ChunzPS  5 ปีที่แล้ว

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

    • @cristianandreshenaovargas4709
      @cristianandreshenaovargas4709 5 ปีที่แล้ว

      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  5 ปีที่แล้ว

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

  • @user-qy3fg8zw8l
    @user-qy3fg8zw8l ปีที่แล้ว +2

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

  • @afq677
    @afq677 5 ปีที่แล้ว

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

    • @ChunzPS
      @ChunzPS  5 ปีที่แล้ว

      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 5 ปีที่แล้ว

      how do i send any data to plc?

    • @ChunzPS
      @ChunzPS  5 ปีที่แล้ว +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.