beautypg.com

Sel language – IAI America DS-S-C1 User Manual

Page 47

background image

45

[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 1] 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 system time to variable 2.

DWGE 1

*2

After 5 seconds, proceeds to the next step after EDDO.

:

The processing during this time will repeat for 5 seconds.

:

n

o

i

s

n

a

p

x

E

n

o

it

i

d

n

o

c

)

R

O

·

D

N

A

(

t

u

p

n

I

n

o

it

i

d

n

o

c

)

g

a

l

F

·

O

/I

(

d

n

a

m

m

o

C

t

s

o

P

)

g

a

l

F

·

t

r

o

p

t

u

p

t

u

O

(

d

n

a

m

m

o

C

1

d

n

a

r

e

p

O

2

d

n

a

r

e

p

O

l

a

n

o

it

p

O

l

a

n

o

it

p

O

M

T

T

G

.

o

N

e

l

b

a

i

r

a

V

12. SEL Language

GTTM (Time Acquisition)

[Example 2] LET 1

5 Assign 5 to variable 1.

GTTM *1

Store the current system time in the variable for 5 (content of variable 1).

EDDO

GTTM 2

Read the current system time to variable 2.