C# and Siemens PLC lesson 1 - Read data from PLC

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

КОМЕНТАРІ • 19

  • @satanrm
    @satanrm 5 місяців тому +1

    Thanks for the video.

  • @rafaelm.deoliveira3457
    @rafaelm.deoliveira3457 Рік тому +1

    Please can you tell me if the library uses the OPC UA protocol for reading and writing?

  • @jaroslavkromka5188
    @jaroslavkromka5188 Місяць тому

    Hi, is it possible to connect (ping) simulated PLC? I do not have physical device, but I want to try coding in this playlist.

    • @plcfocus.solution
      @plcfocus.solution  Місяць тому +1

      Yes, you can. Please follow the next video or visit my website where the video is described.

  • @fired_developer
    @fired_developer Рік тому +2

    great!

  • @sonerarslan1110
    @sonerarslan1110 6 місяців тому +1

    Hello, First of all, it was a really useful video. Thank you for the information. But I get an error like this in a similar program I made. (system.exception: 'the size of the class is less than 1 byte and therefore cannot be read') There are exactly 21 bools in the class I created. Frankly, I could not find much content regarding this problem. I would be glad if you could help me. Thank you.

    • @plcfocus.solution
      @plcfocus.solution  6 місяців тому

      please try to add 1 spare tag as integer at the last of that DB, don's put all only bool type. need to have byte or integer or real tag type in that DB.

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

      @@plcfocus.solution Hello, I wrote 30 lines mixed with bytes and ints, but it still says that the minimum readable class must be 1 byte.
      example public static byte _op1 {get; set;}
      public static short _op2 {get; set;}
      thank you for your response.

  • @yusufyaldz231
    @yusufyaldz231 Рік тому +3

    var PLC_DB = 2;
    plc.ReadClass(TagList, PLC_DB);
    I'm getting this info error. I want to show you the error I got.
    System.Exception: 'The size of the class is less than 1 byte and therefore cannot be read'
    I need a solution, can you help me? (I AM USING S71500 PLC)

    • @plcfocus.solution
      @plcfocus.solution  Рік тому

      please show me the DB in plc and the class "tagList" Sir (in picture) via whatsapp or gmail

    • @yusufyaldz231
      @yusufyaldz231 11 місяців тому

      @@plcfocus.solution i have solved this error i will write a comment on how I solved this error in my free time thank you for everything a great educational video.

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

      Merhaba sorunu çözebildin mi?

  • @sare61
    @sare61 6 місяців тому +1

    that tutotrial is posible with plcsim without plc real?

  • @eng_nasurhasan7619
    @eng_nasurhasan7619 8 місяців тому

    Please what type of plc you use?