Chapter 3 Creating and Editing Screens
SETSYSTEMTIME (Set System Time)
Equation
SETSYSTEMTIME (VAR 1)
Explanation
This command is used to set the system time. Var1 is the starting address of
continuous 7Words in the internal memory address.
Var1 represents Year
Var1 + 1 represents Month
Var1 + 2 represents Date
Var1 + 3 represents Week
Var1 + 4 represents Hour
Var1 + 5 represents Minute
Var1 + 6 represents Second
Remark
Var1 can be internal memory or constant.
The input number should be a valid number or the system will not allow the
user to set the system time. For example, if a number of 8 is entered into the
address of Var1+3 which represents Week, the system will determine the
number of 8 is an invalid number and does not allow the user to change it. This
is because the valid number for this address is from 1 to 7 (Monday to Sunday).
Example
Suppose that now the system time is set to 2009/02/27 FRI 13:25:34.
The user’s screen will look like the figure shown as below.
Revision May, 2010 3-373