Download AdeptGEM User`s and Reference Guide

Transcript
Descriptions of Routines in the AdeptGEM Module
generate_event
Calling Sequence
CALL generate_event (args[], error)
Function
Statement execution routine for the GENERATE_EVENT statement. It is used to generate a
collection event.
NOTE: The statement name is hard-coded in the routine gm.scr.spawn( )
(in the file GEMAIM.V2). That routine shows only collection events in the
scrolling pick list.
Usage Considerations
Runtime
Control
Robot
Vision
Statement Syntax
GENERATE_EVENT --gemitem-Input Parameters
args[ ]
Real array containing the arguments for this statement (record numbers
or constants). The individual elements are described below:
--gemitem-args[1]
Record number of a record of type Collection Event from the GEM Items
database.
Output Parameters
error
Real variable that receives a value indicating whether or not the operation
was successful and what action should be taken by the calling routine.
See the standard AIM operator error response code values for details.
Details
This statement sends a collection event to the host. When this routine is executing, it
temporarily locks access to the GEM Items database.
Refer to page 120 for details on the structure of the Collection Event record type.
File:
GEMSTMT.SQU
Statement DB: STATGEM.DB
Related Routines
AdeptGEM User’s & Reference Guide, Rev. P1
127