beautypg.com

Delta Electronics DELTA DUP-B User Manual

Page 393

background image

Chapter 3 Creating and Editing Screens

GETSYSTEMTIME (Get System Time)

Equation
Var1 = GETSYSTEMTIME

Explanation
This command is used to get 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.


Example
Now the system time is 2009/02/27 FRI 13:20:06.
This command gets the current system time, and stores it in $0 to $6.
The user’s screen will look like the figure shown as below.






3-372

Revision May, 2010