Docsity
Docsity

Prepare-se para as provas
Prepare-se para as provas

Estude fácil! Tem muito documento disponível na Docsity


Ganhe pontos para baixar
Ganhe pontos para baixar

Ganhe pontos ajudando outros esrudantes ou compre um plano Premium


Guias e Dicas
Guias e Dicas


Prog Manual Robo, Manuais, Projetos, Pesquisas de Tecnologia Industrial

Programação Manual de Robôs

Tipologia: Manuais, Projetos, Pesquisas

2013

Compartilhado em 05/08/2013

victor-nunes-26
victor-nunes-26 🇧🇷

5

(1)

3 documentos

1 / 119

Toggle sidebar

Esta página não é visível na pré-visualização

Não perca as partes importantes!

bg1
ROBOT TRAINER
WITH ED-MK4
COMMAND SET MANUAL
ED-7220C
TABLE OF CONTENTS
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Pré-visualização parcial do texto

Baixe Prog Manual Robo e outras Manuais, Projetos, Pesquisas em PDF para Tecnologia Industrial, somente na Docsity!

ROBOT TRAINER

WITH ED-MK

COMMAND SET MANUAL

ED-7220C

TABLE OF CONTENTS

CHAPTER I : THE HOST COMMAND SET

  • Introduction
    • BA Read Motor Status System Commands
    • SC Read System Contiguration
    • SD Stop/Start Delay Timer
    • SE Read Error Stack
    • SM Read Motor Mode
    • SR Real Teach Pendant Error
    • SR Reset Motor Current Limits
    • SS Read System Status
    • ST Execute Diagnostics
    • SD Read Usage Time
    • SY Read Version and I.D. Number
    • SX Execute Diagnostics and Return Resutls
    • SZ Read Delay Timer Value
    • CC Set Coordinate Position Contiguration Commands
    • CG Enable/Disable Gripper Mode
    • CM Set Motor Mode
    • CR Set Robot Type
    • AR Read System Acceterarion Motor Read Commands
    • DR Read Motor PWM Level and Director
    • GS Read Gripper Status
    • HR Read Soft Home Position
    • PA Read Actual Position
    • PW Read Destination Position
    • PZ Read XYZ Destinaton Position
    • RL Read Limit Switches
    • UA Read XYZ Rotation Angle
    • UH Read XYZ Home Position
    • UO Read XYZ Offset
    • UT Read XYZ Tool Length
    • UY Read XYZ Height or the Elbow Rotation Axis (HO)
    • VA Read Motor Actual Vetocity
    • VR Read Motor Desired Vetocity
    • VX Rest System Vetocity
    • XR Read Auxilary Port Level and Direction
  • AC Clear Motor Actual Position............................................................................................ Motor Set Commands
  • AS Set System Acceleration
  • DS Set Motor PWM Level and Direction
  • GC Close Gripper
  • GO Open Gripper
  • HA Go to Hard Home Position
  • HG Go to Soft Home Position
  • HH Execute Hard Home
  • HL Hard Home on Limit Switchs
  • HS Set Soft Home
  • MA Stop All Motors and Auxiliary Ports
  • MC Start All Motors, Coordinated
  • MI Start All Motors, Independent
  • MM Stop Single Motor
  • MS Start Single Motor
  • MX Start XYZ Move
  • PD Set Motor Destination Position, Absolute
  • PR Set Motor Destination Position, Relative
  • PX Set Axis Destination Position, Absolute
  • PY Set Axis Destination Position, Relative
  • VG Set System Velocity
  • VS Set Motor Velocity
  • XA Set XYZ Rotation Angle
  • XH Set XYZ Home Position
  • XO Set XYZ Offset
  • XS Set Auxiliary Port Level and Direction
  • XT Set XYZ Tool Length
  • XY Set XYZ Height of the Elbow Rotation Axis (HO)
  • FR Receive Teach Pendant File from Host Teach Pendant Commands
  • FT Transmit Teach Pendant File from Host
  • FX Execute Teach Pendant Program
  • TA Abort/Terminate Teach Pendant Program
  • TC Clear Teach Pendant Display
  • TD Print to Teach Pendant Display
  • TE Enable/Disable Teach Pendant to Move Motors
  • TH Give Control to Host
  • TX Give Control to Teach Pendant
  • TK Return to Host the Next Key Code
  • TL Return to Host the Last Key Code
  • TR Reset the Teach Pendant
  • TS Set Teach Pendant Display Cursor
  • TT Execute Teach Pendant Diagnostic and Return Results
    • KA Set Proportional Gain Gain Commands
    • KS Set Differential Gain
    • KC Set lntegral Gain
    • RA Read Proportonal Gain
    • RE Read Differential Gain
    • RO Read Integral Gain
    • KR Restore User Gains from EEPROM
    • KS Store User Gains to EEPROM
    • KX Restore Factory Gains
    • IB Read Input or Switch Input/Output Commands
    • IP Read Input Port
    • IX Read Switch Port
    • OB Set Output Bit
    • OP Set Output Port
    • OR Read Output Port
    • OT Toggle Output Bit
    • WA Abort All Wait on Inputs and Switches
    • WI Wait on Input or Switch
    • Introduction CHAPTER 2 : TEACH PENDANT PROGRAM EXAMPLES
    • Setup
    • Jump
    • Creating Moves
  • APPENDIX A: THE HOST COMMAND SET
    • System Commands
    • Configuration Commands
    • Motor Read Commands
    • Motor Set Commands
    • Teach Pendant Commands
    • Gain Commands
    • Input and Output Commands
  • APPENDIX B: THE MOTOR PORTS
  • APPENDIX C: ED-MK4 BLOCK DIAGRAM
  • APPENDIX D: CARTESIAN COORDENATE SYSTEM SUPPORT

All commands are of the form:

AA<,parameter 1><,pararneter 2>

AA is usually a two character code and parameter 1 and parameter 2 are additional character information needed by some commands.

For example, PD,C,-5OOO sets the destination position of motor C to -5000 encoder counts.

All commards must be terminated by a line-feed and/or cartage return. Multiple line-feeds or carriage returns are ignored. Characters are in ASCII representation. Alpha characters can be upper or lower case. All responses from the Mark IV are terminated by a carrage return and line-feed.

Many of the commards can be used while the system is under the control of the teach pendant This allows you to run a host application program of your design to test analyze and modify the controller even while a teach pendant program is executing.

For example. the host can commard the controller to execute a teach pendant program, monitor the various motor registers, fine tune the control loop gain parameters and terminate the program.

The rest of this chapter provides detailed descriptions of each command. In addition, the appendix gives a short form version of each command.

Read Motor Status SA

Returns which motors are executing a trapezoidal move.

Format: SA

The trapezoidal move status of each motor is contained in a single byte within the ED-MK4 controller. Each bit within the status byte corresponds to one motor. Bit 0 corresponds to motor port A. If the bit is set (1) the corresponding motor is still executing a trapezoidal move. If the bit is cleared (0) the corresponding motor is either stationary or in a mode other than trapezoidal.

SA returns the decimal representation of the motor status byte and ranges in value from 0 to 255. The value returned must be decoded to determine the state of each motor. Decoding is accomplished by taking the hex representation of the value received and testing each bit individually.

Example: SA Sent by the host computer. 38 Received from the Mark 4. The hex equivalent is 26 or 00100110 in binary. Therefore motors B, C and F (read right to left) are still executing a trapezoidal move.

Position and motor velocity commands can not be issued to motors in trapezoidal mode if they are still executing a trapezoidal move. The command to set acceleration or system velocity can not be issued if any motor is still executing a trapezoidal move. Commands to start motors can not be issued if any motor related to the move command is still executing a trapezoidal move.

For example, an MC command for an XR-3 robot move affects motors B thru F. MC can not be issued if any of the B thm F motors are still executing a trapezoidal move. G or H motor, however, can still be executing a movement.

Therefore, in the case of the MC command you must use the SA command to determine if the affected motors are busy. For setting acceleration or system velocity you would use the SS command described below.

This command can be used while under teach pendant mode.

Bit 6 is controlled by the TE command.

Bits 5 and 4 are controlled by the CR command in addition to the CONFIG key on the teach pendant.

Bit 3 is controlled by the CG command in addition to the CONFIG key on the teach pendant.

Bit 2 can be controlled only by the CONFIG key on the teach pendant.

Unlike the teach pendant mode, when any of these modes are changed by the host computer, the new configuration is not saved to EEPROM.

This command can be used while under teach pendant mode.

Stop/Start Delay Timer SD

Controls a general purpose timer in the Mark IV.

Format: SD,d

0< d <=3000. Units of 1/10 second.

The SD command causes the timer to be loaded with the value specified. The timer begins counting down to zero at a rate of 1 count per 0.1 second. Hence, sending a value of zero causes the timer to stop.

A maximum of 300 seconds or 5 minutes can be programmed.

Bit 5 of the system status byte reflects the status of the timer. If the bit is set (1) the timer is still counting and if the bit is cleared (0) the timer has finished or is zero.

Note that the timer is non-cumulative. Each time the SD command is sent the timer is reset to the new value.

This command can not be used while under teach pendant mode.

Read Motor Mode SM

Returns the specified motors mode.

Format: SM,m

m = A, B, C, D, E, F, G or H.

This command returns the current mode the specified motor is in The following table lists the possible modes and their corresponding return values. 0 Idle mode. 1 Trapezoidal mode. 2 Velocity mode. 3 Open Loop mode.

This command can be used while under teach pendant mode.

Read Teach Pendant Error Byte SP

Returns the code of the last error recognized by the teach pendant.

Format: SP

Bit 0 of the system status byte reflects the status of the pendant error byte. If the bit is set (1), an error exists and the pendant error byte should be read to determine the source of the error. SP returns zero if no pendant error exists.

The host computer cannot directly clear the pendant error byte. If the teach pendant has control of the system the error will be annunciated on the display and the error byte cleared. Therefore, if it is desirable that the host computer be able to clear the pendant error byte, it must send a TX command to give control to the pendant followed by the TH command to take control back.

The appendix provides a list of error codes and their meanings. This command can be used while under teach pendant mode.

Read System Status SS

Returns the system status byte representing eight system conditions.

Format: SS

The value returned is the decimal representation of the byte and ranges from 0 to 255. The value returned must be decoded to determine the state of the various system conditions. Decoding is accomplished by taking the hex representation of the value received and testing each bit individually.

Bit 7: 1 = At least one motor is performing a trapezoidal move. * Bit 6: 1 = A system error has occurned. ** Bit 5: 1 = The general purpose delay timer is active. Bit 4: 1 = At least one wait on input or wait on switch is still pending. Bit 3: 1 = No teach pendant is connected. Bit 2: 1 = The teach pendant ENTER key has been pressed. *** Bit 1: 1 = The teach pendant ESCAPE key has been pressed. *** Bit 0: 1 = A teach pendant error has occurred. ****

  • Issuing an SA command allows determining which motor(s) is still executing a trapezoidal move.

** Issuing an SE command returns the error code.

*** Automatically cleared when SS is issued.

**** Issuing an SP command returns the error code but does not clear the error.

This command can be used while under teach pendant mode.

Execute Diagnostics ST

Execute RAM test and teach pendant diagnostics.

Format: ST

If the RAM test fails an error code will be pushed onto the error stack. If the teach pendant is not connected or if the teach pendant returns an error error code will be pushed onto the error stack.

Note: This command may take a moment to complete.

Normally an SS command would be issued after using ST to determine if a error was generated. If an error is detected the SE command would be issu to read and clear the error(s).

See also the SX command.

This command can not be used while under teach pendant mode.

Read Version and I.D. Number SV

Returns the version of the controller and its (unique) serial or identification number.

Format: SV

The controller returns a string containing a copyright notice, the version of firmware being used and the serial number.

The serial number may contain both alpha and numeric characters.

A typical response is:

Copyright (C) 1988 by Rhino Robots, Inc. V 1.00. SN 3009.

The version number is 1.00 and the serial number is 3009.

This command can be used while under teach pendant mode.

Execute Diagnostics and Return Results sx

Execute RAM test and teach pendant diagnostics and return the results

Format: SX

If the RAM test fails an error code will be pushed onto the ermr stack. If the teach pendant is not connected or if the teach pendant returns an error, an error code will be pushed onto the error stack.

Note: This command may take a moment to complete.

The controller will respond with the results of the tests.

For example, in an 8K RAM system:

Teach Pendant: Online. Ram Test: Passed. Last Addr= lFFFFH. Bytes OK = 8192.

Teach Pendant: Offline/Error. Ram Test: FAILED. Last Addr= lFFOH. Bytes OK = 8177.

In this last example the RAM test failed when hex address 1FFO was tested. The number of bytes that passed up until the failure was decimal 8177.

See also the ST command.

This command can not be used while under teach pendant mode.