Chapter 4 Macro Function
|
ScrEdit Software User Manual
4-40
Revision Apr. 30th, 2007, 2007PDD23000002
Command
Equation
Descrption
SETSYSTEMTIME
SETSYSTEMTIME(V1)
Set system time
GETHISTORY
V1 = GETHISTORY (V2, V3,
V4, V5, V6)
Get history data
TIMETICK
TIMETICK
→
Get the time from system startup to present and put into the specific address. An
increment of 1 means 100ms is added.
GETLASTERROR
GETLASTERROR
→
Get last error value. If there is no error occurred, the result of GETLASTERROR
will be 0. Even if each Macro is executed simultaneously, the error message will not interfere with one
another. For error code information, please refer to section 4.4.
COMMENT
COMMENT
→
It lets Macro to be readable. Using this command will not affect macro function. The user
only needs to put “#” in front of the equation and the macro will become readable. If the user wants to
change the comment to be back to equation, just remove the “#” symbol.
Delay
Delay
→
Delays the user setting time by system. As HMI system is a multiplexer system, the system
delay problem may occur. Therefore, setting time will be increased due to “system busy” and the
condition that the setting time move forward will not happen. But too many delay time settings may
result in slow response of HMI. The unit of delay time is ms.
GETSYSTEMTIME
Get system time
Equation: V1 = GETSYSTEMTIME
V1 is the starting address of continuous 7 Words within the internal memory address.
V1 Year
V1 + 1 Month
V1 + 2 Date
V1 + 3 Week
V1 + 4 Hour
V1 + 5 Minute
V1 + 6 Second
Example:
Now the system time is 2006/01/04 Wed 09:26:25. Using this command to get the current system time
and store in $1~$7.
Summary of Contents for AE80THTD
Page 1: ......