Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Jack H.Integration and automation of manufacturing systems.2001.pdf
Скачиваний:
80
Добавлен:
23.08.2013
Размер:
3.84 Mб
Скачать

page 305

lines are on the ‘G’ripper. We can check the states of inputs and set the states of outputs. The ‘+’ sign indicates inputs/outputs high (5v) and the ‘-’ sign indicates low (0V). The ranges for input points are ie0-ie15, ig0-ig7, and for output points oe0-15, og0-7. The search command allows us to move the robot until an input is activated. This is useful when attempting to find a part by touching it.

100 WAIT +IE3 ’ wait for external input #3 to turn on 110 WAIT -IG4 ’ wait for gripper input #4 to turn off

120 IF IE5 AND NOT IE6 THEN 110 ’ check to see if external input5 is on and 6 is off 130 OUTPUT +OG4 ’ turn on output #4 on the gripper

140 OUTPUT -OE4 ’ turn on output #4 on the external connector (not the gripper)

150 SEARCH +IG7 T1 THEN 200 ELSE 300 ’ move towards t1 until gripper input 7 goes on

10.1.1.2 - Commands Summary

• A summary of the commands is given below,

CLEAR <variable>

This will clear a variable or point value. If none is

 

specified then all the variable memory is cleared.

DEF FR <1-9> Tn Tn

This command will allow the workspace axes to be

 

redefined.

DEF PA <0-9> (etc.

For defining pallets

DEF TL <1-9> X1 Y1 X2 Y2

Defined tool offsets

Z1

 

page 306

DELAY <1-32767>

Will delay for the specified time in milliseconds

END

Specifies the end of a program.

FOR TO / NEXT

Allows the standard BASIC for next loop.

FRAME

Specifies a current frame of reference.

GOSUB / RETURN

Functions for creating subroutines.

GOTO

An unconditional jump to another line number.

HERE <Tn>

Will define the current position to the location

 

variable.

HOME

Move the robot to an initial position

INPUT

Fill a variable with an input from the keyboard

IF/THEN/ELSE

Standard flow control commands

page 307

JOGRT

Sets the

robot to move in cylindrical mode

JOGSP <1-100>

Sets the

jogging speed

JOGXY

Sets the

robot to move in cartesian coordinates

 

relative to

the current frame.

MOVE <Tn>

Move to a specified position.

MOVEC <Tn> <Tn> [C]

Move the

robot in a circular continuous path

MOVEC <Tn> <rad> [L,C]

 

 

MOVES <Tn>

Move the

robot with straight line motion

NOSHAVE

Sets the

robot to stop fully at the end of each

OD = n

Sets one

of the four binary output bits (0-15)

OUTPUT <+/-> <OE,OGn>

Opens and closes gripper or externally connected

[10-32767]

devices.

 

PRINT

Output a

structured string to the output unit or

SHAVE

Allow the robot to start the next motion before the

 

previous one is complete.