RRTC FUNCTİON ON M580 PLC

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

КОМЕНТАРІ •

  • @davidmurayari4119
    @davidmurayari4119 Рік тому

    Hello, can you help me show some logic to automatically update the PC time with the local RTC time, they tend to be different in time.
    thank you

    • @mef3000
      @mef3000  Рік тому

      hello ,sorry for answering late. i don't know a exact way to do it.But i have some ideas which i couldn't test them since i dont have a real plc.First you can enable NTP server on your plc so you can read date and time from your server.You can use R_NTPC function to read it .And you can compare R_NTPC function out with RRTC function out.if there is a difference you can set a out bit.You can use this bit to enable WRTC (write rtc) function to write date and time which you read from your NTP server.