Author Topic: Real time clock on T100MD888+  (Read 6542 times)

cdenk

  • Full Member
  • Posts: 161
  • newbie
    • View Profile
Real time clock on T100MD888+
« on: January 15, 2007, 11:28:10 AM »
Is there a single variable accessible by Trilogi for the date/time, like in Excel when formated number? Would like to be able to measure time periods just by subtracting one from the other without having to generate the number or worry about roll overs.


support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3171
    • View Profile
    • Internet Programmable PLCs
Re:Real time clock on T100MD888+
« Reply #1 on: January 15, 2007, 01:13:27 PM »
There is no built in single variable for the RTC. But you can assemble one yourself to fit the purpose. i.e. write a custom function which every second would take the values of TIME[1], TIME[2] and TIME[3] as well as DATE[n] and combine into a single 32-bit number. This number can then be used by other custom functions to achieve what you mentioned.
« Last Edit: January 15, 2007, 01:15:09 PM by support »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS