Chapter 4. programming – IAI America S-SEL-E User Manual
Page 171

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)
.
.
.
.
.
E x p a n s io n
c o n d itio n
( A N D · O R )
In p u t
c o n d itio n
( I/O · F la g )
C o m m a n d
P o s t
( O u tp u t p o r t · F la g )
C o m m a n d
O p e ra n d 1
O p e ra n d 2
O p tio n a l
O p tio n a l
G T T M
Va r ia b le n o .