Low cost solutions to Data Acquisition and Control, with a snap.
Data Sheets and Application Notes Product Warranty Return Policy Privacy Notice How to Order Company Profile

Creating a Clock

Creating a clock is very easy with the help of variables that are supported by ModCom. The global variable {systemtime} contains the current time of the system clock and can not only be used to test for specific times of day, but can be used to construct a working clock which can be viewed during run-time.

To do this, simply place a Text Window on the screen and then write a Conditional statement which will continually update the Text Window with the current time. The expression {TextWindow1} <> {systemtime} will evaluate to TRUE at anytime the system clock changes. Then use the "Show Message" function to send the new {systemtime} to the Text Window.

A similar approach can be used to create a date indicator using the {systemdate} variable like this. If {TextWindow1} <> {systemdate} then send {systemdate} to the text window.



ModCom HMI/SCADA Software Certificate

Click for the BBB Business Review of this Computer Software Publishers & Developers in Fort Walton Beach FL