Visual C# Programming - Connecting with Siemens PLC Using S7.NET

Поділитися
Вставка
  • Опубліковано 4 лют 2025

КОМЕНТАРІ • 31

  • @jackzhang996
    @jackzhang996 5 років тому +2

    Magical BGM and magnificent tutorial demonstration.Thanks a lot ,good luck!

  • @mohamedbenhajali7257
    @mohamedbenhajali7257 6 місяців тому

    u save me thnx looot bro

  • @titaniumtank166
    @titaniumtank166 5 років тому +3

    What kind of music did you use for this video? Because it sounds amazing.

  • @RafLeo000
    @RafLeo000 3 роки тому

    Thanks for posting this.
    How can i read a REAL from the DB?
    It would be a DBD on my DB.
    Thanks.

  • @TSaleh-zc7kn
    @TSaleh-zc7kn 5 років тому

    you are amazing

  • @humamqahtan6591
    @humamqahtan6591 5 років тому

    thank you for your effort, How I can add on and off push button in VC to make any output of the plc on or off

    • @ChunzPS
      @ChunzPS  5 років тому

      Actually, you can customize your buttons as you want. In case of making an on-off button, instead of entering DB1.DBW, please change it to DB1.DBX0.0 and in the setpoint box, please change it to 1 for True and 0 for False.

    • @huynhphuc2418
      @huynhphuc2418 5 років тому

      @@ChunzPS HI man , when I write 1 , it shows 12544! please tell me how to fix it!!!

    • @ngocnguyenhai4141
      @ngocnguyenhai4141 5 років тому

      @@huynhphuc2418 Bạn đã fix được lỗi ra 12544 chưa bạn?

  • @张三-l7r
    @张三-l7r 5 років тому

    i have a problem that if the Ethernet cables is Broken, then there will An exception occurred in the code,how to avoid this? i want to Automatic reconnection but i do not know how to do it.thanks a lot

  • @mohamedabdel-raouf3476
    @mohamedabdel-raouf3476 6 років тому

    Hello .
    Writing setpoint (word assigned as int DB1.DBW0 and structure is int) to plc is not working with code
    private void button26_Click(object sender, EventArgs e)
    {
    string address = textBox11.Text;
    object setpoint=textBox12.Text;
    plc.Write(address, setpoint);
    }
    i used conversion to make it work
    private void button26_Click(object sender, EventArgs e)
    {
    string address = textBox11.Text;
    ushort setpoint= value (value is number );
    plc.Write(address, setpoint);
    }
    can you guide me how to make ushort take value from a textbox ?

  • @pylvr8021
    @pylvr8021 6 років тому +1

    He thanks a lot for this tutorial, can you please tell how can i do to read an input value( sensor) i tried to use the adresse of this input in the datablock adresse but it didnt work

    • @ChunzPS
      @ChunzPS  6 років тому

      Have you already checked allowing put-get communication?

  • @lamsonlemai6516
    @lamsonlemai6516 4 роки тому

    how many plc connections Can i use with S7.net .?

  • @mohamedabdel-raouf3476
    @mohamedabdel-raouf3476 6 років тому +1

    Hi ,
    What can i do to read the data continuously ?

  • @andresantos1089
    @andresantos1089 5 років тому

    The function to read works well, but writte function not. I Send value 55 for example and PLC receive 13621.
    Some Help?

    • @ChunzPS
      @ChunzPS  5 років тому

      Please check the data type.

  • @sarayutpintong1722
    @sarayutpintong1722 2 роки тому

    If i use real PLC, Do i still use NetToPLCsim ?

    • @ChunzPS
      @ChunzPS  2 роки тому +1

      No need to use.

  • @thiraponglove1413
    @thiraponglove1413 3 роки тому

    I use real PLC .I can connect PLC but can not read and write Data. Help me pls.

  • @jaikumaran2607
    @jaikumaran2607 5 років тому

    Hi,
    This is very decent tutorial!!
    For me reading is working fine, only writing i have problem where when i write "11", it shows "12593". The data type I am using is "Array[0..10] of Word".
    Can you help me on this?
    Thank you

    • @ismailhasipek909
      @ismailhasipek909 4 роки тому +1

      data types are incorrect. I suggest you check them.

    • @vladha3875
      @vladha3875 2 роки тому +1

      Hi I just had the same Problem. You can fix it in your Write funtion with: plc.Write(adress,Convert.ToInt32(setpoint));

  • @张三-l7r
    @张三-l7r 6 років тому

    hi,my plc type is smart 200,and this plc supports S7,if i can use S7.NET ? thank you

    • @ChunzPS
      @ChunzPS  6 років тому

      The s7 protocal only supports siemens plc s7-300, 400, 1200, 1500 series.

  • @vuminhtien5331
    @vuminhtien5331 6 років тому

    Hi, when I connect with a real PLC, it doesn't work. Can you help me, please?

    • @ChunzPS
      @ChunzPS  6 років тому +2

      If you connect to a real PLC, you do not have to use Nettoplcsim and IP address must be your IP of the PLC.

    • @ethanwung1871
      @ethanwung1871 5 років тому

      @@ChunzPS Hi,when restart pc, it cann't connect to a real plc unless TIA is started. do you have any ideas? thanks