Examples and tips
PROGRAMMING MANUAL 264
Revision 3.0
Registration and windowing function
The windowing function enables for registration to occur only within
a specified range of axis positions. This function is selected by
giving the right value as an argument for the REGIST command.
The windowing function is controlled by two axis parameters,
OPEN_WIN and CLOSE_WIN. For more information on REGIST,
OPEN_WIN and CLOSE_WIN, refer to sections 3.2.49, 3.2.198
and 3.2.219.
There are two types of windowing:
fig. 35
• Inclusive windowing allows the registration to occur only within
the specified window of axis positions. With this windowing
function, registration events are ignored if the axis measured
position is less than the OPEN_WIN axis parameter or greater
than the CLOSE_WIN parameter.
• Exclusive windowing allows the registration to occur only
outside the specified window of axis positions. With this
windowing function, the registration events are ignored if the
axis measured position is greater than the OPEN_WIN axis
parameter or less than the CLOSE_WIN parameter.
When the windowing function is used, the internal process is as
follows:
1. REGIST + window is executed in the program.
2. MARK = 0 and the latch is triggered.
3. The position is captured and transmitted to the Trajexia
processor.
4. Is the captured position inside the inclusive window or outside
the exclusive window?
•If yes, MARK = -1 and REG_POS is updated.
• If not, return to point 2 (trigger the latch again transparently
to the user).
010203040
OUTSIDE THE WINDOW INSIDE THE WINDOW
OPEN WIN=20 CLOSE WIN=40
OUTSIDE
MARK=TRUE
REG_POS=27
I52E-EN-03.book Seite 264 Freitag, 29. Juni 2007 11:55 11