Registration on registration onstatement, Resume resume statement, Registration on – Lenze PMSS1000 Simple Servo User Manual

Page 69: Registration on statement, Resume, Resume statement

Advertising
background image

Indexer-Programmer-Manual.pdf REV 1.3

REGISTRATION ON

Registration On

Statement


Purpose

This statement arms registration input (input IN_C3). When registration input is
activated current position is captured to the RPOS System variable and Flag variable
F_REGISTRATION is set. User program then can retrieve RPOS to get a position
when registration input was activated. REGISTARTION ON statement resets
F_REGISTARTION flag.


Syntax

REGISTARTION ON

;flag F_REGISTARTION is reset and

registration input is

;armed


See Also

MOVEDR, MOVEPR


Example:
…{statements}
;Move until input is activated and then come back at the sensor ;position


REGISTARTION ON

;Arm registration input

MOVE UNTIL IN_C3 ;move until input is activated -
;sensor hit
MOVEP

RPOS

;absolute move to the position of

;the sensor

…{statements}

RESUME

Resume

Statement


Purpose

End and return from a fault handler to a specific line as specified by <label> argument.
Statement aloowed only in fault handler


Syntax

RESUME

<label>


<label>

specifiec program's line marked with <label>


See Also

ON FAULT


Example:

…{statements}
FaultRecovery:
…{statements}

END

ON FAULT

;any fault gets program flow here

…{statements}

RESUME FaultRecovery

;execution of resume ends fault handler

ENDFAULT

;must end with this terminator

69

Advertising