Motoman Advanced Robot Visual Interface Visual DCI User Manual
Motoman Advanced Robot Visual Interface Visual DCI User Manual
Visual DCI
User's Manual
Version 3.0
Part Number 141069-1
Revised 6/9/99
MOTOMAN
805 Liberty Lane
West Carrollton, OH 45449
TEL: (937) 847-6200 FAX: (937) 847-6277
24-HOUR SERVICE HOTLINE: (937) 847-3200
The information contained within this document is the proprietary property of Motoman, Inc.,
and may not be copied, reproduced or transmitted to other parties without the expressed written
authorization of Motoman, Inc.
©1998 by MOTOMAN
All Rights Reserved
Because we are constantly improving our products, we reserve the right to change specifications without
notice. YASNAC and MOTOMAN are registered trademarks of YASKAWA Electric Manufacturing.
TABLE OF CONTENTS
Section Page
List of Figures ..............................................................................................................................................................iii
List of Tables................................................................................................................................................................iii
1 INTRODUCTION
1.1 Requirements................................................................................................................................1-1
1.2 Visual DCI Components...........................................................................................................1-2
1.3 Trademark Acknowledgments..............................................................................................1-2
2 SAFETY
2.1 Introduction....................................................................................................................................2-1
2.2 Standard Conventions ..............................................................................................................2-2
2.3 General Safeguarding Tips.....................................................................................................2-3
2.4 Mechanical Safety Devices.....................................................................................................2-3
2.5 Installation Safety........................................................................................................................2-4
2.6 Programming Safety .................................................................................................................2-4
2.7 Operation Safety ..........................................................................................................................2-5
2.8 Maintenance Safety....................................................................................................................2-6
3 INSTALLATION
3.1 Installing Visual DCI...................................................................................................................3-1
3.2 Installing the Hardware Key...................................................................................................3-2
3.3 Connecting the Data Cables...................................................................................................3-2
3.3.1 XRC Connection...........................................................................................................3-2
3.3.2 MRC Connection..........................................................................................................3-3
3.3.3 ERC Connection...........................................................................................................3-4
3.3.4 Building a Data Cable................................................................................................3-5
3.4 Removing Visual DCI ................................................................................................................3-5
4 GETTING STARTED
4.1 The Main Visual DCI Window...............................................................................................4-1
4.2 Using Variable Labels ...............................................................................................................4-2
4.2.1 Assigning Variable Labels.......................................................................................4-2
4.2.2 Clearing Label Assignments..................................................................................4-4
4.2.3 Opening an Existing Variable File........................................................................4-4
4.2.4 Saving Variable Files..................................................................................................4-5
4.3 Specifying a Program File Path............................................................................................4-6
4.4 Customizing Visual DCI ...........................................................................................................4-7
4.4.1 Assigning User Names.............................................................................................4-7
4.4.2 Run Minimized Option..............................................................................................4-7
4.5 Setting Communications Parameters...............................................................................4-8
LIST OF TABLES
Table Page
Table 4-1 Default settings for Visual DCI...........................................................................................4-8
Table 6-1 Visual DCI Program Errors..................................................................................................6-2
Table 6-2 Hardware Key Errors...............................................................................................................6-3
1.1 Requirements
To run Visual DCI, you will need the minimum required hardware and software
listed below:
Computer IBM PC or compatible
Processor Intel 80386SX25
Memory 4 MB
Hard Disk 6 MB minimum available
CD ROM Drive
Monitor VGA Graphics
Input Device Mouse
COM Port One RS-232 port capable of operating at 9600 baud
for each copy of Visual DCI
Interface Cable One RS-232 serial interface cable for each copy of
Visual DCI (Supplied with Visual DCI)
Operating System Microsoft Windows 95/98 or Windows NT
Controller Software Controller software must have the DCI
Communications option installed
We suggest that you obtain and review a copy of the ANSI/RIA National Safety
Standard for Industrial Robots and Robot Systems. This information can be
obtained from the Robotic Industries Association by requesting ANSI/RIA
R15.06. The address is as follows:
Robotic Industries Association
900 Victors Way
P.O. Box 3724
Ann Arbor, Michigan 48106
TEL: 313/994-6088
FAX: 313/994-3338
Ultimately, the best safeguard is trained personnel. The user is responsible for
providing personnel who are adequately trained to operate, program, and maintain
the robot cell. The robot must not be operated by personnel who have not
been trained!
We recommend that all personnel who intend to operate, program, repair, or use
the robot system be trained in an approved Motoman training course and become
familiar with the proper operation of the system.
This safety section addresses the following:
• Standard Conventions (Section 2.2)
• General Safeguarding Tips (Section 2.3)
• Mechanical Safety Devices (Section 2.4)
• Installation Safety (Section 2.5)
• Programming Safety (Section 2.6)
• Operation Safety (Section 2.7)
• Maintenance Safety (Section 2.8)
DANGER!
Information appearing under the DANGER caption concerns the
protection of personnel from the immediate and imminent hazards
that, if not avoided, will result in immediate, serious personal injury
or loss of life in addition to equipment damage.
WARNING!
Information appearing under the WARNING caption concerns the
protection of personnel and equipment from potential hazards that
can result in personal injury or loss of life in addition to
equipment damage.
CAUTION!
Information appearing under the CAUTION caption concerns the
protection of personnel and equipment, software, and data from
hazards that can result in minor personal injury or
equipment damage.
NOTE: Information appearing in a NOTE caption provides additional information which is helpful in
understanding the item being explained.
CAUTION!
Proper use of the hardware key is extremely important! Performing
tape backups, file transfers, I/O control, or using parallel
communication cables between devices with the key installed may
permanently damage the key.
Observe the following guidelines to protect your hardware key:
• Remove the hardware key from the computer if the parallel port is used for
any operation other than printing.
• The key may not operate properly when stacked with any additional keys or
if attached to anything other than a parallel port (e.g. SCSI adapter).
It is highly recommended that the key(s) be insured for the full value of the
software package. Lost or stolen keys cannot be replaced. If the key is lost,
you will have no alternative but to purchase a new copy of the software.
If the key is accidentally damaged, return it to Motoman for replacement. There
is a charge for key replacement.
ET
RES
ES
ET
ALARM/ R
ERROR
ON ON OVERRUN RECOVERY
HOLD START
POWER EDIT LOCK
OFF OFF
E. STOP
F1 F2 F3 F4 F5
OP1 OP2 4 5 6
MODE
Serial Interface
Connector
REMOTE
CONTROLLER COMPUTER
SHIELD
PIN 1
(Connect at controller only)
PIN 2 PIN 2
PIN 3 PIN 3
PIN 4 PIN 4
PIN 5 PIN 5
PIN 7 PIN 7
PIN 6 PIN 6
PIN 8 PIN 8
PIN 20 PIN 20
NOTE: You do not use all of the pins on the serial interface cable connectors. Any unused pins can be
left open.
NOTES
VARIABLE EDITOR
WORK AREA
CONTROL PANEL
NOTE: The first column of the table lists all variables. Any assigned labels appear in the table’s
second column. The word TRUE appears in the third column for any variable to which a label
has been assigned. You can use the scroll bar to the right of the table to move the display up
and down the table.
NOTE: You can resize the table columns so that the complete variable names and labels appear in the
table. Click in the column you want to resize, and then press SHIFT and the > key to expand or
SHIFT and the < key to contract the column.
6. Click the down-arrow button or select Exit from the Variable Names menu
to return to the Visual DCI main screen.
NOTE: If you want to keep the assigned labels for use in future sessions, you must first save them to a
variable file (refer to Section 4.2.4, Saving Variable Files). Otherwise, label assignments are in
effect only for the current session, and will be lost when you exit Visual DCI.
NOTE: If you want to cancel the open file operation, click Cancel at any time before you click OK. This
immediately cancels the operation and returns you to the NAME VARIABLES screen.
3. Select the variable file you want to use.
a) If necessary, click the arrow next to the drive selection block to open a
list of available drives. The file path block displays a directory tree from
which you can select the appropriate file directory.
b) Double-click the file directory you want to open. A list of variable files
will appear in the left hand selection block.
c) Select the variable file you want, then click OK to confirm your
selection. Visual DCI loads the selected variable file and returns to the
NAME VARIABLES screen.
4. Click the down-arrow button to return to the Control Panel.
NOTE: If you want to cancel the save file operation, click Cancel at any time before you click OK. This
immediately cancels the operation and returns you to the NAME VARIABLES screen.
3. To save your variable assignments to an existing file, perform the following:
NOTE: When you save to an existing variable file, the original file is overwritten with one that contains
the current label assignments. If you have made changes to the label assignments during the
current session, these labels will replace the originals.
a) If necessary, click the arrow next to the drive selection block to open a
list of available drives. The file path block displays a directory tree from
which you can select the appropriate file directory.
b) Double-click the file directory you want to open. A list of variable files
will appear in the left hand selection block.
c) Select the variable file you want, then click O K to confirm your
selection. Visual DCI saves the selected variable file and returns to the
NAME VARIABLES screen.
4. To save a new variable file, proceed as follows:
a) Click the arrow next to the drive selection block to open a list of
available drives. The file path block displays a directory tree from
which you can select the appropriate file directory.
b) Double-click the file directory you want to open.
c) Click the filename entry block in the upper left hand corner. Type in the
filename you want to use. In Figure 4-7, the filename “new.var” is used.
d) Click OK to accept your selection. Visual DCI saves the new variable
file and returns to the NAME VARIABLES screen.
5. Click the down-arrow button to return to the Control Panel.
NOTE: If you want to cancel the set path operation, click Cancel at any time before you click OK. This
immediately cancels the operation and returns you to the NAME VARIABLES screen.
3. Select the file path you want Visual DCI to use:
a) If necessary, click the arrow next to the drive selection block to open a
list of available drives. The file path block displays a directory tree from
which you can select the appropriate file directory.
b) Double-click the file directory you want to open. Visual DCI fills in the
file path for the currently selected directory in the Path= text box. A list
of job files appears in the left hand selection block.
NOTE: The Programs block on the Robot Program Path screen shows a list of all program files in a
selected directory. These files are identified by a .JBI or .JBR file extension. However, Visual
DCI does not select a particular program file, but rather the path for the directory in which that
file is located.
c) Click OK to accept your selection. Visual DCI sets the selected file path
and returns to the NAME VARIABLES screen.
4. Click the down-arrow button to return to the Control Panel.
NOTE: If you want to cancel the set user name operation, click Cancel at any time before you click
Accept. This immediately cancels the operation and returns you to the NAME VARIABLES
screen.
3. Click in the text entry box at the top of the screen and type in a new user
name for the program.
4. Click Accept. Visual DCI saves the assigned user name and returns to the
NAME VARIABLES screen.
5. Click the down-arrow button to return to the Control Panel. The assigned
user name now appears in the title bar at the top of the main Visual DCI
window. It will also appear below the program icons whenever the program
runs in background.
NOTE: The Init. button on the DCI User Name screen sets the default user name, Visual DCI.
NOTE: Visual DCI uses the communications settings chosen within DCI. The program ignores any
communications settings selected through the Windows Control Panel.
To configure the communications parameters:
1. Make sure that Visual DCI is OFF. The indicator bar above DCI OFF turns
red.
2. Click Set Up Comm. The Communications Link Parameters dialog box will
appear, Figure 4-10.
NOTE: If you want to cancel the communications setup operation, click Return at any time before you
click Accept. This immediately cancels the operation and returns you to the Control Panel.
3. Click the arrow next to the communications parameter(s) you want to
change. For each choice, a list of available options will appear.
4. After choosing the correct values for all parameters you want to change,
click Accept to save the changes and return to the Control Panel.
The program writes the new parameter values to the VISDCI.INI file. Visual
DCI refers to the .INI file each time you start the program.
Visual DCI User’s Manual 4-8 MOTOMAN
GETTING STARTED
NOTE: Clicking Reject before you accept new parameter values reads the original values in the .INI
file back into the Communications Link Parameters Screen. Once you click Accept, the new
parameter values replace the previous values in the .INI file.
NOTES
P01
Variable Index—identifies the specific variable of a given type
(in this case position variable 01)
Type Prefix—identifies the variable type
(in this case a position variable)
The ERC/MRC controller commands LOADV and SAVEV do not send the
variable index to the PC. The PC receives only the type of variable (B, I, and R)
and its value. As a result, the PC has no way of knowing which of a particular
type of variable is being loaded or saved. Before the PC can properly store or
retrieve a variable, the controller must upload the variable index to the PC. You
must use an Index Variable to identify the variable index. Any byte variable can
be used as the Index Variable.
In the sample programs listed in this section, B(00) is used as the Index Variable.
Every time the controller tries to load or save a variable, it must first issue a SET
B00 command that specifies the appropriate variable index, followed by a
SAVEV B00. This gives the PC the variable index of the variable to be saved or
loaded. When the controller next gives a SAVEV or LOADV command for a
particular type of variable, the PC recognizes the specific variable identified by
the Index Variable, B(00).
NOTE: • When stepping through or developing a program, make sure that for each variable you
want the program to load or save you first set and save the Index Variable. Otherwise,
Visual DCI and the controller will run out of synchronization and cause various errors.
• You do not need to specify an Index Variable to load or save jobs. This requirement
applies only to variables.
• For additional information on variables and variable types, refer to your ERC Programming
Manual or MRC Operator’s Manual.
NOP
CALL JOB: DCIINIT This is the initialization sequence.
*mainloop Identifies start of subroutine.
CALL JOB: GETV Call job to download variables from PC.
CALL JOB: DC1 IF B01=1 These three lines call job based on value of variable B(01).
CALL JOB: DC2 IF B01=2
CALL JOB: DC3 IF B01=3
JUMP *mainloop Jumps back to beginning of subroutine, can include conditional
statement.
END
Table 6-2 lists errors related to the Rainbow hardware key used to enable the
Visual DCI program. The system checks that the key is installed when the
program is initiated. The program also checks periodically to make sure that the
hardware key remains installed throughout program operation. If one of these
errors occurs, an error code appears in a Windows message box.
NOTES
• Turn the variable editor off whenever practical. This eliminates the time
required to update variables in the To/From ERC buffer.
• If you need to leave the variable editor on but are not changing values, select
a variable type other than a position or external variable. These variable
types contain several value elements which must be updated.
8.2 Methods
DCIStart Enables serial communications between the robot and Visual
DCI.
DCIStop Disables serial communications between the robot and
Visual DCI.
ReadOnChange Registers robot variables so that DCI will update an
associated object automatically when the robot variable
changes value.
EndReadOnChange Stops or disables read-on-change operation for a specific
variable.
LimitCheck Returns True if selected robot variable has a valid value.
RobCommErrReset Initializes the all Visual DCI communications parameters
and send and receive buffers back to zero.
To read a P or an E variable, the user must also get elements 2 through 6 to get the
complete set of values.
When B(010) changes value, Visual DCI will write to the ROC.Element1 through
6 as appropriate for the variable type.
The user can get the new information in the Property Let function of the read on
change client.
Below is an excerpt of a the partial implementation of the object. See the
DCIClient in the dcioletest.vbp for a complete example of how to implement a
read-on-change object.
Public Property Let Element1(ByVal vNewValue As Double)
Dim StatusMessage as String
Element1 = Str(vNewValue)
StatusMessage = DCIServer.mLastResponse
End Property
(OLE CLIENT)
VISUAL DCI
(OLE SERVER)
ReadOnChange ROC.Element1=New Value
(ROC(ROCNum))
NOTES
To change other variable, use the same format as these four lines of code. The
underlined portions are what change according to what variable is used. It is
strongly recommended to use B000 as the setting variable. If possible, do not use
it in robot jobs, only for Visual DCI.
SET B000 60
SAVEV B000
SET B000 60
LOADV P060
9.5 Applications
Download jobs Optional features must be activated on the controller before Visual
DCI will load. This is also true for FDE (Floppy Disk Emulator)
and VDE (Visual Data Exchange). Jobs with syntax errors will
not be loaded.
NOTE: Motoman only recommends modifying jobs off-line with
the MRC Editor for commands and ROTSY for positions.
Download variables Position variables must be defined before jobs using those position
variables can be loaded. This is also true for jobs loaded with
FDE or VDE. This has been used to shift to corners of boxes of
various sizes.
Memory When running out of memory, DCI can save the jobs to the
computer, delete those jobs from the controller, and load when
needed. Another option is to purchase expanded memory.
Modified jobs The SAVEJ and SAVEV functions will save the current version of
the job or variable to the computer. This may be useful if a vision
system is used to shift a robots position. It may be used to backup
all jobs on the computer on a weekly or routine schedule. To
backup the entire system setting, it is highly recommended to use
FDE.
Saving variable May be useful if a database on the computer is used to track
schedules.
Activation Other computer program such as Visual Basic or C can open and
begin Visual DCI. Some have used this with the computer’s clock
to save information on a regular schedule.
Computer Programming Motoman does not support interface screens created by customers
unless Motoman created them as a purchased additional option. If
you want a custom interface, make sure a computer programmer
creates it. An example interface for Excel and Visual Basic are
provided. These may be modified.
Number of running copies This is limited to the number of available COM ports on the
computer.
Stop button
Removes Visual DCI from PC's memory and severs DDE link
Private Sub CmdDCIExit1_Click ( )
TexDDEResponse1.Text = “ “
OutMessage = “Exit”
TexDDEResponse1.LinkExecute OutMessage
End
End Sub
(General)
Write, variable, new value
Private Sub Cmd | None_Click
TexDDEResponse1.Text = “ “
OutMessage = “W,B1,0”
TexDDEResponse1.LinkExecute OutMessage
End Sub
FrmRbt1
Frame for Robot 1 icons
Private Sub FrmRbt1_DragDrop (Source As
Control, X as single, Y as single)
Labels
Private Sub Label1_Click
End Sub
General Coding
Private Sub Form-Load
Dim DCINameString As String Definitions for code used by
Visual Basic
Dim DCIPath As String
Dim NextLine As String
Dim FilNum As Integer
Dim I As Integer
FilNum = FreeFile Setting up communication
between this code and Visual DCI
Open “c:\windows\visdci.ini” For Input As FilNum
For I = 1 to 50
Input #FilNum, NextLine
If Mid$ (NextLine,1,I 1)=“visdcipath=“ Then
DCIPath = Mid$ (NextLine,12,22)
Exit For
End If
Next I
DCHnstance = Shell (DCEPath+”Nvisdci.exe”,7) Shell = number of active copies of
Visual DCI
Do Events
Call TimeDelay (2)
Do Events
TexDDEResponse1.LinkMode = None DDE destination, seepages 36, 37
TexDDEResponse1.LinkTopic = “VISDCI I FormDDE0” labe4 text box, picture box control
TexDDEResponse1.Linkltem=“TexDDF-Source0” Defines servoprogram *.exe
DoEvents
TexDDEResponse1.linkMode=NOTIFY NOTIFY = DCI receive a response
TexDDEResponse1.Text
OutMessage = “port,2”
TexDDEResponse1.LinkExecute OutMessage
TexDDEResponse1.Text = “ “
OutMessage = “filepath,c:\visdci\programs” Where to store and retrieve
robotjobs
TexDDEResponse1.LinkExecute OutMessage
TexDDEResponse1.Text -- “ “
OutMessage = “ComParameters,9600,E,8,2” Serial port characteristics, page 50
TexDDEResponse1.LinkExecute OutMessage
End Sub
DCIIN
Initialization Sequence
NOP
CALL JOB: UPLOAD Saves jobs to the PC.
SET B000 1 Index so that PC can recognize used variable.
SET B001 0 Working variable.
SAVEV B000 Instructs PC which variable to load.
SAVEV B001 Variable is saved or loaded to the PC.
SET B000 2
SET B002 0
SAVEV B000 Used to keep the PC and controller
synchronized.
SAVEV B002
SET B000 3
SET B003 0
SAVEV B000
SAVEV B003
SET B000 4
SET B004 0
SAVEV B000
SAVEV B004
END
UPLOAD
NOP
SAVEJ JOB:RLTNI.JBI
SAVEJ JOB:RUN2.JBI
SAVEJ JOB:RUN3.JBI
END
GETVAR
Downloads variable from PC to controller.
NOP
SET B000 1 Set index variable to 1
SAVEV B000 Upload index variable to PC
LOADV B001 Download B001 from PC to controller
SET B000 2
SAVEV B000
LOADV B002 In this example, B000 initializes; B001, B002,
and B003 run jobs; B004 exits
SET B000 3
SAVEV B000
LOADV B003
SET B000 4
SAVEV B000
LOADV B004
END
T V
The Main Visual DCI Window, 4-1 Visual DCI Components, 1-2
To Read a Variable on Change, 8-4 Visual DCI Does Not Work After Installation, 9-2
To Write a Variable, 8-3 Visual DCI Error Table, 6-2
Trademark Acknowledgments, 1-2 Visual DCI OLE Properties, 8-1
XRC Connection, 3-2