Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
(EOD).Mechatronics.pdf
Скачиваний:
81
Добавлен:
23.08.2013
Размер:
5.07 Mб
Скачать

page 642

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

39.2.3.2.2 - Commands Summary

• A summary of the commands is given below,

CLEAR <variable>

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

 

ified 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

Defined tool offsets

Y2 Z1

 

DELAY <1-32767>

Will delay for the specified time in milliseconds

 

page 643

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

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.

 

page 644

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 motion.

OD = n

Sets one of the four binary output bits (0-15)

OUTPUT <+/->

Opens and closes gripper or externally connected

<OE,OGn> [10-32767]

devices.

PRINT

Output a structured string to the output unit or display

SHAVE

Allow the robot to start the next motion before the pre-

 

vious one is complete.

SPEED

Sets the speed of the manipulator

STOP

Terminate the execution of the program.

TOOL n

Set motions to be relative to a tool.

WAIT <+/-> <IE,IG> <0-

Wait for a certain input condition.

15>

 

Соседние файлы в предмете Электротехника