Citect SCADA Tutorial - Inserting data into SQL using ODBC

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

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

  • @p.saravanakumar2665
    @p.saravanakumar2665 3 года назад

    how to sql data log on one computer to another computer (Main Server & Standby )in citech sacda...any coding is there?

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

    I increased string size but only holding 40 value how to configure for until it gets full

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

    Hi. I have followed your steps but I have a problem when I compile. It says Error FUNCTION expected. It happens both in the RANDOM button and in the INSERT button. Any idea? Thanks!

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

      Random function need to be created. Here is the cicode
      INT
      FUNCTION
      Randm()
      TAG1 = Rand(101);
      TAG2 = Rand(10);
      TAG3 = Rand(50);
      TAG4 = Rand(60);
      TAG5 = Rand(20);
      RETURN 0;
      END
      For Insert button , make sure you define same function in button that you have created in cicode.

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

      @@StableAutomation Thanks for your answer. Now I can compile without problems and generate the random numbers, however when I click on insert button the data is not inserted into the datatable...I don´t know what I am missing.

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

      try to debug your code. check this to know how to debug : ruclips.net/video/Mqofftll71E/видео.html

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

    Excellent..thanks !!

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

    How to use cicode to retrieve the data from a SQL Database (Just Reading)?

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

    But in sql table timeanddate column shows NULL..can you please help

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

    How to add date and time data to sql? I've tried to use command timecurrent, but data stucks in 1900-01-01 00:00:00 (sql)

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

      Just add column in SQL with datatype datetime and default value not null

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

    This is a great video that helps me on my project. However, i would like to know how can I log the data every hour automatically without manually clicking the insert button. Hope you can help. Thanks!

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

      Create event to trigger your code every hour

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

      @@StableAutomation i have created an event which started at 09:00:00 with period of 5 minutes, Action = SQL_INSERT(), is it correct for me to do in this way?
      I did it this way however the data isn't logging. Please advise. Thanks.

    • @StableAutomation
      @StableAutomation  4 года назад +2

      settings are ok. i would suggest to use 00:00:00 as start time. you also need to enable event from computer setup wizard.

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

      @@StableAutomation Thanks for your help, the problem is solved after enable event in computer setup wizard.

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

      @@laikianhong5946 that's great.

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

    Can you do a tutorial about citect SCADA

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

      Definately... In next few videos I will be covering siemens LOGO plc. Then I will start making videos on Citect. Stay tuned.

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

      @@StableAutomation thank you so much ,I'm waiting for the Citect SCADA course