BK17. Beckhoff TwinCAT 3 Datalogging or Recipe via CSV Reading and Writing

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ต.ค. 2024

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

  • @kingsley6740
    @kingsley6740 2 ปีที่แล้ว +1

    Thank you for the tutorial. Looking forward for recipe management and barcode reader tutorial in twincat 3.

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

      Hello, thanks for your comments. Regarding the barcode reader, please review videos th-cam.com/video/m7zKt9zyx7c/w-d-xo.html
      th-cam.com/video/5cKY4Y1nrIA/w-d-xo.html. Also it is hard to find the barcode reader which supports EtherCAT, therefore, usually Beckhoff controller will use Profinet Master or Ethernet/IP master to connect other devices via Profinet or Ethernet/IP

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

    THanks a lot for the tutorial.. Very helpful for beginner like me.
    Looking forward for other tutorial..

  • @yogeshgowda7089
    @yogeshgowda7089 2 ปีที่แล้ว +1

    Thanks for the Quick Tutorial.

  • @ttxiu1189
    @ttxiu1189 7 วันที่ผ่านมา

    A valuable video. However, I would like to know if it provides functions or modules to read and parser XML or json formated files?

  • @erdemkkoc9678
    @erdemkkoc9678 2 ปีที่แล้ว +1

    Thats a very helpful video.
    Could you also show the binaryMode csv reading ?

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

    Thanks for the tutorial. Very helpful.

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

    Thanks bro! Great tutorial!

  • @chibs3666
    @chibs3666 2 ปีที่แล้ว +1

    Great tutorial, thanks for taking the time. Is there an easy way for me to keep writing data below or above the previous data I've written? I don't want to overwrite every time I add new stuff to the database, I want the database written again and again below the previous one when I set the write bit.

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

      As shown 18:34, you could change 'sFileName' and add suffix with the data and time for multiple files.

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

      @@electricalautomation Thank you for replying. I have no need to read the data from the CSV. What I'm trying to do is log data like an audit trail type function. I'll have an array of changed parameters, date and time, old value and new value, that I want to write to a file whenever someone activates the changes. Because this can happen multiple times per day I can't make a new file every time someone makes a change.. but perhaps this is not the most suitable alternative for my application. I would go with some sort of database but it's outside of my current skill set sadly.

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

      Did you ever figure it out? I know how to save to a file and keep adding to the previous line, but not with this specific set up... It would be great if you figured it out and you can share your solution. Thanks

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

      NVM - figured it out. you just have to change "nMode := FOPEN_MODEAPPEND OR FOPEN_MODETEXT" on line 16. I forgot about that part of the function.

  • @rajkrishna336
    @rajkrishna336 2 ปีที่แล้ว +1

    Thanks for a very useful video. I have a question:
    How to generate a continuous log of data? Like first column for time and other columns for I/O data? And generate new rows every second? Is there an example available?

    • @electricalautomation
      @electricalautomation  2 ปีที่แล้ว +2

      Hello, if you are going to use CSV shown in the video, you need to program the data/time as the data and storage them into a Array. Then shift the line per second to store the data, time, data line by line. But this is for short term and small volume data storage. Considering your question, it is more likely needed to use HMI and database to store the data.

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

      @@electricalautomation Very informative Video. Saved my PhD! Thank you! Could you please make a tutorial on this?

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

    Thanks for the video but I have a problem:
    I follow your instructions step by step but when turning bWrite from 'false' tot 'true' (12:30 min) in my program bError becomes true and nErrId says 1804.
    I searched it ans it means 'Not found (files, ...).' ...
    Can anyone help to fix this?

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

      Have you set the file directory properly, try not using C: root. setup a folder and try.

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

      @@electricalautomation Thanks so much for the fast reply!
      It works now, I honestly don't know what I did different last time.
      Your video was very helpful in general

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

      @@erdling6555 Glad you worked it out!

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

    Thanks a lot. I have a lot of help from you lately.

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

      My question is, What if you want to export sensor data to csv file?

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

      Archiving sensor data will be the similar idea. Saving the data into that Matrix as shown 24:00.

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

    thanks ❤😘😍... please make series about HSC in seimens plc ❤️

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

      Hi Buddy, please find the video SC06a and SC06b, th-cam.com/video/1CWL4bMro9M/w-d-xo.html
      th-cam.com/video/yC3QHS-t8oM/w-d-xo.html, they are Siemens PLC HSC topic

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

    Very nice tutorial, helped me a lot, but where can I get the full code? I'm strugling to do the complete operation (Write and close)

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

    Thank you for your videos. They are so useful. Thanks a lot.
    I wanna ask you how is it to write data from an XML. I couldn't use properly the library XML server...

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

    Can you please share one video on how we can write data through USB to the plc

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

      Please see 20:42. You can change the 'sFileName' to the USB directory.

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

    Maybe this will be a stupid question, but when i load the sample program the library Tc3_Interfaces is highligthed and says "not installed to the system". However there is no option to download or import. Where can I download it?

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

      May be you can try to delete the TC3_Interfaces and try again.

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

      @@electricalautomation yed i removed it and it worked. Apprently that library is no longer needed

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

    Can you do some programming with database like SQlite in twincat?, I kinda having trouble even with the examples

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

      Thanks for your comments. The database would be in my plan. I am working on a new series video about the motion control and AX8000 servo system. they will be launched in one month.

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

    Hi, Any similar video for RFID connection to Twincat Controller? I am basically looking for USB based RFID connection to Twincat controller in PC and reading Tags read by RFID reader in to the PC

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

      Hi, personally I never did USB data transfer via Beckhoff. I would recommend you use the RFID device which has Ethernet/IP or Profinet functions. Then the communication will be very easy. I have the videos showed the Beckhoff Ethernet/IP and Profinet communication.

  • @YoungS-y7d
    @YoungS-y7d 2 ปีที่แล้ว

    哥们