Author Topic: Time and Date  (Read 11104 times)

ccdubs

  • Full Member
  • Posts: 116
    • View Profile
Time and Date
« on: October 25, 2008, 12:55:15 PM »
I notice that the time and date values of the PLC are shown in the online monitoring window.

How can I access these for setting up some funtions to run at certain times of the day?

Also can the PLC time be set using a custom function. This would allow me to reset the time remotely?

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Time and Date
« Reply #1 on: October 25, 2008, 01:50:24 PM »
Definitely. You can use the DATE[1], DATE[1] and DATE[3] and DATE[4] variables for reading/setting the date and TIME[1], TIME[2] and TIME[3] variables for reading/setting the time (hour, minute, second) from within the custom function. Please refer to the chapter "TBASIC Statements, Functions and Variable" regarding the definition of these variables.

You can set the date/time remotely via the TRiLOGI software or by activating some custom functions to set it from within the custom function.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS