IAI America PSEL User Manual

Page 149

Advertising
background image




139

Part 2 Programs


 PCPY (Copy position data)

Command, declaration

Extension condition

(LD, A, O, AB, OB)

Input condition

(I/O, flag)

Command,
declaration

Operand 1

Operand 2

Output

(Output, flag)

Optional Optional

PCPY

Position

number

Position

number

CP

[Function] Copy the position data specified in operand 2 to the position number specified in operand 1.


[Example 1]

PCPY

20

10

Copy the data of position No. 10 to position No. 20.

[Example 2]

LET

1

20

Assign 20 to variable 1.

LET

2

10

Assign 10 to variable 2.

PCPY

*1

*2

Copy the data of the content of variable 2 (position 10) to the
content of variable 1 (position 20).

Advertising