GEM Statements
The following statements are added to the AIM system by the AdeptGEM module.
CLEAR_ALARM
This statement clears an alarm. The syntax is:
CLEAR_ALARM --gemitem--The --gemitem-- of type Alarm indicates the alarm that will be cleared. See clear_alarm for details.
DISABLE_COMM
This statement disables host communication and places the equipment in the "not communicating" state. See disable_comm for details.
GENERATE_ALARM
This statement sends an alarm message to the host. The syntax is:
GENERATE_ALARM --gemitem--The --gemitem-- of type Alarm indicates the alarm that will be sent. See generate_alarm for details.
GENERATE_EVENT
This statement sends a collection event to the host. The syntax is:
GENERATE_EVENT --gemitem--The --gemitem-- of type Collection Event indicates which collection event will be sent. See generate_event for details.
LINE_CHECK
This statement sends an S1F13 message. If the equipment and host are online and communicating, gemvariable receives the value 0 (success); otherwise, it receives a standard AIM error code. See line_check for details.
LINE_CHECK --gemvariable-- = COMM_STATUS
RUN_CHECK
This routine is used in a sequence to verify that the current state of the equipment is compatible with host control of robot motion. The syntax is:
RUN_CHECK --gemvariable-- = MOTION_OKNOTE: This statement can be used only in AIM control sequences.
See run_check for details.
SEND_HOST_MSG
This statement sends a text message to the host. The syntax is:
SEND_HOST_MSG --gemvariable--The --gemvariable-- of type string variable or string function defines the string that is sent. See send_host_msg for details.
SET_STATE
This statement sets the current state of a state model. The syntax is:
SET_STATE --gemitem--The --gemitem-- record must refer to a State record in the GEM Items database. See set_state for details.