Download 1. Getting Started

Transcript
Indexer-Programmer-Manual.pdf REV 1.3
REGISTRATION ON
Purpose
Registration On
Statement
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
registration input is
;armed
See Also
;flag F_REGISTARTION is reset and
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
Purpose
Resume
Statement
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>
See Also
specifiec program's line marked with <label>
ON FAULT
Example:
…{statements}
FaultRecovery:
…{statements}
END
ON FAULT
;any fault gets program flow here
…{statements}
RESUME FaultRecovery
ENDFAULT
;execution of resume ends fault handler
;must end with this terminator
69