Chapter 13 Macro
13-22
•
GET_TIME
This command obtains timer value which prog1 by 10 msec. after
turning on the V series. The timer value is data in double-word without signs.
The time in the double-word format is located in F1.
Available Devices
(GET_TIME)F1
Get 10 msec system time
•
STA_TIME/CHK_TIME
STA_TIME starts the timer. The 10 msec-interval system clock is used for
the timer. Time-up is checked using CHK_TIME. Time base is in the
10-msec. increments.
Available Devices
(STA_TIME/CHK_TIME)F1
Timer setting
Execute STA_TIME after setting the timer type and the time-up time. The
system takes the present system time as the “timer start time” and clears the
time-up flag to “0.” CHK_TIME checks for time-up, referring to the timer start
time and the time-up time. When the time-up occurs, “1” is located in the
time-up flag. Executing CHK_TIME makes it possible for the system to
recognize that a time-up has occurred.
In the case of [Timer Type: 1], the “timer start time” is updated each time a
time-up occurs.
Updated timer start time = previous timer start time + time-up time
Through the above processing, the timer is automatically managed, thus it
works as a precise interval timer.
In the case of [Timer type: 0], it is necessary to execute STA_TIME to clear
the timer start time to “0.”
* Timer type 1
When CHK_TIME detects a time-up, “1” will be set, and “timer startg time”
will be updated. When no time-up is detected, “0” will be set.
Internal
Memory
PLC
Memory
Constant
Memory
Card
Indirect
W Word
F0
Command
name
F1
F1 + 0
Count in double-word without signs
F1 + 1
Timers can be set with ease using the interval timer (page 13-35).
Internal
Memory
PLC
Memory
Constant
Memory
Card
Indirect
W Word
F0
Command
name
F1
F1 + 0
Time-up flag (
←
V)
F1 + 1
Timer type
F1 + 2
Time-up time
F1 + 3
Timer start time (
←
V)
Summary of Contents for Monitouch V Series
Page 1: ...Function Hakko Electronics Co Ltd...
Page 3: ......
Page 11: ......
Page 35: ......
Page 36: ...System Setting...
Page 37: ......
Page 64: ...Basic Functions...
Page 65: ......
Page 95: ...Chapter 2 Overlap 2 30 Please use this page freely...
Page 139: ...Chapter 4 Lamp 4 14 Please use this page freely...
Page 163: ...Chapter 5 Data Display 5 24 Please use this page freely...
Page 191: ...Chapter 6 Message Display Relay Message 6 28 Please use this page freely...
Page 427: ...Chapter 13 Macro 13 44 Please use this page freely...
Page 454: ...Special Functions...
Page 455: ......
Page 507: ...Chapter 18 Video Display V7i Only 18 32 Please use this page freely...
Page 647: ...Chapter 27 E Mail 27 6 Please use this page freely...
Page 667: ...Chapter 28 Web Server 28 20 Please use this page freely...
Page 690: ...Appendix...
Page 691: ......
Page 714: ...Appendix 1 Internal Memory A1 23 A1 System Memory Please use this page freely...
Page 715: ...Appendix 1 Internal Memory A1 24...
Page 737: ...Appendix 3 Error A3 16 Please use this page freely...
Page 745: ......