User guide

Page 166
Chapter 4. Programming
[Function] Writes the system time to the variable in Operand 1. The time unit is 10msec.
The time obtained with this command is a value that has no base. Therefore, call this command twice, and the
difference gives the time that has elapsed.
[Example] GTTM 1 Read the reference time to variable 1.
ADD 1 500 Set the ending time for 5 seconds later.
GTTM 2 Read the current time to variable 2.
DWLE 1 *2 After 5 seconds, proceeds to the next step after EDDO.
The transaction is repeated for 5 seconds.
GTTM 2 Read the current time to variable 2.
EDDO
2-3 Timer Command
GTTM (Time Acquisition)
.
.
.
.
.
Expansion
condition
(AND · OR)
Input
condition
(I/O · Flag)
Command
Post
(Output port · Flag)
Command Operand 1 Operand 2
Optional Optional GTTM Variable no.