IAI America SSEL User Manual

Page 165

Advertising
background image

143

Part 2 Programs

z PPUT (Write 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

PPUT

Axis

number

Position

number

CP

[Function] Write the value in variable 199 to the axis number specified in operand 1 in the position data

specified in operand 2.

[Example 1]

LET

199

150

Assign 150 to variable 199.

PPUT

2

3

Write the content of variable 199 (150) to axis 2 at position
3.

[Example 2]

LET

199

150

Assign 150 to variable 199.

LET

1

2

Assign 2 to variable 1.

LET

2

3

Assign 3 to variable 2

PPUT

*1

*2

Write the content of variable 199 (150) to the content of
variable 1 (axis 2) at the content of variable 2 (position 3).

Advertising