beautypg.com

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

Page 34

background image

32

[Function]

Assigns the contents of the variable in Operand 2 to the variable in Operand 1.
This function is also known as "indirect addressing" or "pointing to a pointer."

[Example 1]

TRAN

1

2

Assign the content of variable 2 to variable 1.

[Example 2]

LET

1

2

Assign 2 to variable 1.

LET

2

3

Assign 3 to variable 2.

LET

3

4

Assign 4 to variable 3.

LET

4

10

Assign 10 to variable 4.

TRAN

1

*3

Assign 10 (variable 4 which is the content of variable 3) to the
variable for 2.

4

10

1

2

3

2

3

10

1

2

3

n

o

i

s

n

a

p

x

E

n

o

i

t

i

d

n

o

c

)

R

O

·

D

N

A

(

t

u

p

n

I

n

o

i

t

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

i

t

p

O

l

a

n

o

i

t

p

O

N

A

R

T

.

o

N

e

l

b

a

i

r

a

V

.

o

N

e

l

b

a

i

r

a

V

R

Z

à

12. SEL Language

n

o

i

s

n

a

p

x

E

n

o

i

t

i

d

n

o

c

)

R

O

·

D

N

A

(

t

u

p

n

I

n

o

i

t

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

i

t

p

O

l

a

n

o

i

t

p

O

T

E

L

.

o

N

e

l

b

a

i

r

a

V

a

t

a

D

R

Z

12.1

Numeric calculations commands

LET (Assign)

[Function]

Assigns the value in operand 2 to the variable in operand 1.
When 0 is assigned to the variable in Operand 1, the output turns ON.

[Example 1]

LET

1

10

Assign a value of 10 to variable register 1.

[Example 2]

LET

1

2

Assign 2 to variable 1.

LET

3

10

Assign 10 to variable 3.

LET

*1

*3

Assign 10 (content of variable 3) to variable 2 (content of variable 1).

TRAN (Transfer)

The variables change in the following manner.

4

4

10

4

2