IAI America ASEL User Manual

Page 152

Advertising
background image

Part 2 Programs

Chapter 3 Explanation of Commands

130

Part 2 Programs

1.10

Position Operation

z

PGET (Read 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

PGET

Axis

number

Position

number

CC

[Function] Read to variable 199 the data of the axis number specified in operand 1 in the position data

specified in operand 2.

If a PGET command is executed when the position data table contains no data to be acquired

(the position data field on the teaching pendant shows “X.XXX” or the position data field in the

PC software is blank), no data will be assigned to variable 199 (the PGET command will not

be executed).

[Example 1]

PGET

2

3

Read to variable 199 the data of axis 2 at position 3.

[Example 2]

LET

1

2

Assign 2 to variable 1.

LET

2

3

Assign 3 to variable 2.

PGET

*1

*2

Read to variable 199 the data of the content of variable 1

(axis 2) at the content of variable 2 (position 3).

Advertising