Moveprregistered position move statement, Movepr, Registered position move statement – Lenze PMSS1000 Simple Servo User Manual

Page 65

Advertising
background image

Indexer-Programmer-Manual.pdf REV 1.3

Example:

{Statements…}

MOVEDR 3, 2 ;moves incrementally 3 user units

;if

registration

was

not

detected.

;if registration was detected add ;displacement
;of 2 user units to registration position
;and alter the end position of the move

{Statements…}

MOVEPR

Registered Position Move

Statement


Purpose

MOVEPR performs absolute position move specified in User Units. If during motion
registration input has been activated then current position is recorded. Displacement
(second statement argument) is added to recorded position to form new target
position. The end of the move is then altered to new target position. Statement
suspends the program execution until motion is completed unless statement is used
with C modifier.



Syntax

MOVEPR <distance>,<displacement> [,C]


C[ontinue]

optional modifier allows program to continue while motion is performed. If the other
motion is not completed yet requested motion is placed in motion stack. Motion stack
is16 entries deep. If there is no more stack space fault will result. Programmer should
check F_MQUEUE_FULL system flag to see if there is available space.


See Also

MOVE, MOVEP, MOVEDR, MOVED, MDV, MOTION SUSPEND, MOTION RESUME

Example:

{Statements…}


MOVEPR 3, 2

;moves to absolute position of 3 user ;units

;if

registration

was

not

detected.

;if

registration

was

detected

add

;displacement
;of 2 user units to registration position
;and alter the end position of the move

{Statements…}

65

Advertising