Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

$Hour System Tag

  • Last UpdatedNov 07, 2016
  • 1 minute read

Returns the current hour of the day.

Syntax

$Hour

Data Type

Integer (read only)

Example(s)

This script checks if it is 8 PM and the backup has not run yet (expressed by the discrete tag BackupAlreadyRun), and if so, calls a QuickFunction script called RunBackup() and sets the BackupAlreadyRun flag to TRUE.

IF $Hour==20 AND BackupAlreadyRun==0 THEN

CALL RunBackup();

BackupAlreadyRun=1;

ENDIF;

TitleResults for “How to create a CRG?”Also Available in