Download V+ Language User's Guide

Transcript
Chapter 12
Basic Programming Concepts
The Belt Window
The belt window controls the region of the belt in which the robot is to work.
Figure 12-1 on page 317 illustrates the terms used here. A window is a segment of
the belt bounded by two planes that are perpendicular to the direction of travel of
the belt. When defining the window, ensure that the robot can reach all conveyor
locations within the belt window. This is especially important for revolute (i.e.,
non-Cartesian) robots.
NOTE: The window has limits only in the direction along the belt.
Within V+, a belt window is defined by two transformations with a WINDOW
program instruction. The window boundaries are computed by V+ as planes that
are perpendicular to the direction of travel of the belt and that pass through the
positions defined by the transformations.
If the robot attempts to move to a belt-relative location that has not yet come
within the window (is upstream of the window), the robot can be instructed
either to pause until it can accomplish the motion or immediately generate a
program error. If a destination moves out of the window (is downstream of the
window), it is flagged as an error condition and the application program can
specify what action is to be taken. (See the description of the BELT.MODE system
parameter in V+ Language Reference Guide.)
If the normal error testing options are selected, whenever the V+ system is
planning a robot motion to a belt-relative location and the destination is outside
the belt window but upstream, the system automatically delays motion planning
until the destination is within the window. However, if an application program
attempts to perform a motion to a belt-relative destination that is out of the
window at planning time (or is predicted to be out by the time the destination
would be reached) and this destination is downstream, a window-violation
condition exists. Also, if during the execution of a belt-relative motion or while
the robot is tracking the belt, the destination moves outside the belt window for
any reason, a window violation occurs. Depending upon the details of the
application program, the program either prints an error message and halts
execution or branches to a specified subroutine when a window violation occurs.
In order to provide flexibility with regard to the operation of the window-testing
mechanism, several modifications to the normal algorithms can be selected by
modifying the value of the BELT.MODE system parameter.
To assist in teaching the belt window, the Adept conveyor belt calibration
program contains routines that lead the operator through definition of the
required bounding transformations.
316
V+ Language User’s Guide, Rev A