Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Data Communications
Manual
Part Number 133684-1
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.
©1997 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..................................................................................................iv
LIST OF TABLES ....................................................................................................v
1.0 INTRODUCTION ........................................................................................... 1
1.1 Communication Basics........................................................................ 1
1.1.1 Binary Data Encoding .............................................................. 2
1.1.2 Serial vs. Parallel Interface ...................................................... 5
1.1.3 Data Transmission .................................................................. 6
1.2 Modifications to MY-BASIC................................................................. 8
1.3 Reference to Other Documentation ..................................................... 9
2.0 SAFETY ...................................................................................................... 11
2.1 Standard Conventions ....................................................................... 12
2.2 General Safeguarding Tips ................................................................ 13
2.3 Mechanical Safety Devices ................................................................ 13
2.4 Installation Safety.............................................................................. 14
2.5 Programming Safety ......................................................................... 14
2.6 Operation Safety................................................................................ 15
2.7 Maintenance Safety ........................................................................... 16
3.0 DATA COMMUNICATIONS ......................................................................... 17
3.1 Remote Mode.................................................................................... 17
3.1.1 REMOTE Mode Setup............................................................ 17
3.2 Serial Interface Multiport................................................................... 20
3.3 Parallel Operation .............................................................................. 21
3.4 MRC vs. ERC Data Communications ................................................. 21
3.5 Basic Communications Specifications............................................... 23
3.5.1 Communication Control Characters ...................................... 23
3.6 Transmission Format ........................................................................ 25
3.6.1 Error Control ......................................................................... 26
3.6.2 Character Configuration ........................................................ 27
3.6.3 Heading and Text Configuration ............................................ 27
3.7 Communication Parameters .............................................................. 28
3.7.1 Communication Control Monitoring Timers .......................... 28
3.7.2 Communication Control Resending Sequence ...................... 28
3.8 D-SUB Connector Pin Connection ..................................................... 30
3.9 Data Management ............................................................................. 31
3.9.1 Selecting Files ....................................................................... 31
LIST OF FIGURES
Figure Page
Figure 1-1 Data Communications Using a Host Computer .................................. 1
Figure 1-2 Data Transmission Modes ................................................................. 6
Figure 1-3 Asynchronous Bit Frame.................................................................... 7
Figure 3-1 Customer Option Screen.................................................................. 18
Figure 3-3 Example BCC Calculation ................................................................. 26
Figure 3-4 Character Configuration ................................................................... 27
Figure 3-5 Heading and Text Configuration....................................................... 27
Figure 3-6 Communication Control Monitoring Timers..................................... 28
Figure 3-7 D-SUB Connector Pinout ................................................................. 30
Figure 3-8 Connection for Playback Box (D-SUB25S)....................................... 30
Figure 3-9 MCPO1 Board Connection ............................................................... 31
Figure 4-1 PSTART Job .................................................................................... 40
Figure 4-2 Data Transmission from MRC to Host Computer............................. 41
Figure 4-3 Data Transmission from Host Computer to MRC............................. 42
Figure 4-4 SAVEV Transmission ....................................................................... 42
Figure 4-5 LOADV Transmission....................................................................... 43
Figure 6-1 Transmission from Host Computer to MRC..................................... 53
Figure 6-2 Transmission from MRC to Host Computer.................................... 54
Figure 6-3 Delete Command Transmission ....................................................... 55
Figure 6-4 RSTATS Bit Data .............................................................................. 59
Figure 6-5 “Type” Bit Data ................................................................................ 61
Figure 6-6 Group Information ........................................................................... 62
Figure 6-7 Bit Data ............................................................................................ 66
Figure 6-8 Control Group Data .......................................................................... 70
Figure 6-9 Bit Data ............................................................................................ 78
MRC CONTROLLER
RESET
ET
RES
ES
ALARM/ R T
ERROR
PENDANT
HOLD START
YASNAC MRC
480 VOLTS
HOST COMPUTER
WARNING
(PERSONAL COMPUTER)
DATA COMMUNICATION
More than one of these code sets exists, but the most common is the ASCII
(American Standard Code for Information Interchange). ASCII was developed by
the American National Standards Institute (ANSI) and has attained nearly
universal acceptance. EBCDIC (Extended Binary Coded Decimal Interchange
Code), another code set, has been used widely in IBM applications.
Most people find eight-bit binary values difficult to read. Therefore, we usually
look at the numeric representation of the character in hexadecimal (base 16) or
decimal (base 10) form. Binary numbers are composed of 1’s and 0’s; decimal
numbers are composed of numbers 0 through 9; and hexadecimal numbers are
composed of the numbers 0 through 9, plus the letters A, B, C, D, E and F. (A
corresponds to decimal 10, B to 11, C to 12, D to 13, E to 14 and F to 15.) Table
1-1, on the following three pages, provides a cross-reference between ASCII
character sets and their decimal, hexadecimal, and binary representations.
NOTE: Table 1-1 provides only the first 127 ASCII characters (i.e., those characters which can be
depicted with seven (7) bits).
HALF-DUPLEX CONFIGURATION
FULL-DUPLEX CONFIGURATION
DATA FLOW
TRANSMITTER TRANSMITTER
AND DATA FLOW AND
RECEIVER RECEIVER
0 1 2 3 4 5 6 7 8 9 10
STOP BITS
1, 1.5 OR 2
5, 6, 7 OR 8
DATA BITS
PARITY BIT
START BIT -NONE/OFF
USUALLY 1 -MARK
-SPACE
-EVEN
-ODD
The previous paragraph describes the data frame, which is used to constitute a
character of information. In order for flow to occur without loss of data, each end
of the data link must conform to certain operating parameters.
In addition to transmit and receive buffers, most serial asynchronous links use a
flow control system to handle data transmission. A common flow control is X-
ON/X-OFF. When a receive buffer reaches its memory capacity, the receiving
device sends an ASCII DC3 (X-OFF) signal to the transmitting device telling it to
stop sending data. When the receive buffer has sufficiently unloaded enough data,
it transmits an ASCII DC1 (X-ON) signal back to the transmitting device, telling
it to resume transmission.
Synchronous protocols fall into two major categories: 1) character- (or byte-)
oriented protocols, which specify a definite character length, and 2) bit-oriented
protocols which do not specify character boundaries.
SDLC, which is short for Synchronous Data Link Control, is the typical bit-
oriented protocol. SDLC uses a variety of bit patterns to flag the beginning and
end of a frame. Other bit patterns are used for the address, control, and packet
header fields, which route the frame through the network to its destination.
MY-BASIC internal service names such as ERCDSK, ERCRV, and ERCSV are
left unchanged because the usage are the same.
MY-BASIC RESTRICTIONS
The following functions cannot be used with MY-BASIC. To use the functions
shown below, the MOTOCOM data transmission software for personal computers
must be used. For more information, refer to the MOTOCOM operations manual.
The following commands in the host control function:
1. CGROUP: Changing control group
2. CTASK: Changing control task
3. RGROUP: Reading control group and task selected status
4. LOADV: Loading variables in host control function*
5. SAVEJ: Saving variables in host control function*
6. CVTSJ: Converting relative job to standard job
* LOADV and SAVEV in the DCI function can be used with MY-BASIC.
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.
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.
REMOTE FUNCTION
IO USED NOT USED
COMMAND USED NOT USED
PP/PBOX USED NOT USED
Operation of the REMOTE key when NOT USED is selected, depends upon
the setting of parameter RS005. When RS005=0, all host functions are
disabled. However, the DCI and Stand-Alone functions are still available.
When RS005=1, the Read-only commands alone from the Host Control
function are enabled and all other functions are disabled (see Table 3-3).
NOTE: Only a single port can be assigned to each of the FC1 and the BSC complying protocol. (It is
impossible to have two FC1 ports or two BSC ports.) To use more than one protocol at a
single port, reassign parameters RS000 and RS001 while in TEACH mode.
S S E
O HEADING T TEXT T BCC
H X B
S S E
O HEADING T TEXT T BCC
H X X
S E
T TEXT T BCC
X B
S E
T TEXT T BCC
X X
E
N
Q
E
O
T
N
A
K
ACK0
ACK1
The BCC is calculated using the summation of all the character data transmitted
after the SOH or STX control characters. The summation ends when an ETB or
ETX control character appears. These characters are included in the BCC
calculation. The summation of the character data is used to create a two-character
BCC, which is transmitted as the last two characters of the transmission block.
The receiving station keeps track of its received characters and calculates its own
BCC. To validate the data, the receiving station’s calculated BCC is compared to
the transmitted BCC. If the two BCCs match, the transmission is error free. The
receiving station then responds with the appropriate ACK0 or ACK1 control
characters to indicate a valid reception.
The BCC calculation starts when either an SOH or STX control character appears.
These characters are not included in the summation.
NOTE: When an STX appears within a command transaction which starts with an SOH, the STX is
included in the BCC calculation.
Figure 3-3 provides an example of a BCC calculation for one transaction in the
sequence used to save the job VACON from the MRC to the host computer.
S S E
O T C T
H 0 2 , 0 0 1 X V A C O B
R
00110000
00110010
00101100
00110000
00110000
00110001
00000010
01010110
01000001
01000011
01001111
01001110
00001101
00010111
00000010 10111100
Start bit
Stop bit
b1 b2 b3 b4 b5 b6 b7 b8 bp
Parity bit
FIELD #2 FIELD #4
HEADER SUB CODE FIELD #7
NUMBER NUMBER ETX or ETB
FIELD #6 TEXT
(MAXIMUM 256 CHARACTERS)
MRC MRC
Host computer
Host computer
ENQ
ENQ
Timer A ACK0
ACK0
Data
Timer B
Data Timer A ACK1
ACK1
Timer B
EOT EOT
MRC MRC
FG 1
SD 2 2 SD
RD 3 3 RD
RS 4 4 RS
CS 5 5 CS
SG 7 7 SG
CD 8 8 CD
ER 20 20 ER
CD 1 2 SD
RD 2 3 RD
SD 3 4 RS
ER 4 5 CS
SG 5 7 SG
RS 7 8 CD
CS 8 20 ER
FG 9
1. EACH/BATCH selection
EACH: Pressing EACH (F1) places a “✩” or “★” beside each job
selected with the cursor. Pressing EACH (F1) again, erases the
mark and releases the job.
BATCH: Pressing BATCH (F2) places a “✩” or “★” beside all the jobs.
Pressing BATCH (F2) again, erases the marks and releases
the jobs.
NOTE: Motoman supports all DCI functions with the Visual DCI software package. Please refer to the
MARVI Visual DCI Installation and Operation Manual (Part Number 132205-1) for
more information.
In Table 4-2, when Step 003 is executed, the MRC begins loading job ABC from
the host computer. If the NWAIT command is not specified, Steps 004 and those
thereafter are not executed until job loading is complete. However, when NWAIT
is specified, Steps 004 and 005 are executed sequentially during job loading. The
SWAIT command stops job execution until Step 003 is finished loading. Without
the SWAIT command, Step 007 would be executed before the loading of job
“ABC” was complete and an alarm would occur. Use the SWAIT command to
verify that loading is complete before executing a loaded job. SWAIT should be
used with LOADV and SAVEV commands also.
JOB R1 JOB S1
STEP COMMAND STEP COMMAND
000 NOP 000 NOP
001 MOVJ VJ=50.00 001 MOVJ VJ=50.00
002 MOVJ VJ=50.00 002 MOVJ VJ=50.00
003 PSTART 003 END
004 LOADJ JOB:ABC
005 PWAIT
006 CALL JOB:ABC
007 END
Figure 4-1 PSTART Job
When the PSTART command (Step 003) is executed, S1 begins execution in
parallel with job R1. Job ABC is loaded by the LOADJ command (Step 004)
during execution of job S1. After the job is loaded, the MRC waits for job S1 to
be completed by the PWAIT command (Step 005). After job S1 has been
executed, job ABC is executed by the CALL command (Step 006). Please refer
to the Independent Control Manual (part number 133552-1) for more information.
During transmission, memory capacity is checked, and if the data received cannot
be stored, an alarm occurs. If the transmission itself is normal, transmission
continues and the alarm is displayed once the data link is terminated. If an error
occurs during reception, job data will not be stored.
SAVEV
ENQ
ACK0
SOH 03,001 STX ETX BCC
ACK1
EOT VISION
MRC OR
ENQ PC
ACK0
SOH 03,001 STX Data* CR ETX BCC
ACK1
EOT
ENQ
ACK0
SOH 03,051 STX ETX BCC
ACK1
EOT VISION
MRC OR
ENQ PC
ACK0
SOH 03,001 STX Data* CR ETX BCC
ACK1
EOT
If Hold or Emergency Stop are used during data transmission, the robot stops
operation and the start lamp goes off, but data transmission continues.
5.1 Operation
The Stand Alone function uses commands from the teach pendant to transfer job
data, condition data/universal data and system data between the MRC and the host
computer. The LOAD command transmits file data from the host computer to the
MRC. The SAVE command transmits file data from the MRC to the memory of
the host computer. System information can be saved but not loaded. The
VERIFY command verifies data between the MRC and the host computer and
informs the operator if data does not match.
To use the Host Control Function, the Command setting must be validated as
described in Section 3.1.1 Remote Mode Setup.
1. Set the Command setting to USED.
2. Set Parameter RS000 (for Port 1) or RS001 (for Port 2) at 2, depending on the
which port is being used for the host computer.
ENQ
ACK0
SOH 02,001 STX File name*** EXB BCC
ACK1
STX Data ETB BCC
ACK0
ACK0 or ACK 1
** Normal Completion: "0000 CR ""(ASCII code)
Abnormal completion: "Integer except 0000 CR "(ASCII code)
*** File name CR (File name does not include extension.)
ENQ
ACK0
SOH 02,051 STX File name* ETX BCC
ACK1
EOT
ENQ
HOST ACK0 MRC
SOH 02,001 STX File name* ETB BCC
ACK1
STX Data ETB BCC
Response Format
SOH 90,000 STX {0000 or Error code} CR ETX BCC
If the MRC receives a command that cannot be executed, the MRC returns an
interpreter message. An example of the DELETE command (Delete a Job) is
shown below in Figure 6-3.
ENQ
ACK0
ACK1
ENQ
ACK0
ACK1
EOT
6.6.1 RALARM
The RALARM (Read Alarm) command reads the error alarm code. Although the
MRC has the subcode to the error code, it cannot be read by RALARM because
the command doesn’t have the argument for the subcode.
Command Format: RALARM
Response Format: Data-1 to Data-9 or error code
Data-1 = error code (0 to 9999)
Data-2 = alarm code (0 to 9999)
Data-3 = alarm data (0 to 256)
Data-4 = alarm code (0 to 9999)
Data-5 = alarm data (0 to 256)
Data-6 = alarm code (0 to 9999)
Data-7 = alarm data (0 to 256)
Data-8 = alarm code (0 to 9999)
Data-9 = alarm data (0 to 256)
Example:
Command: RALARM
Response: 0, 1234, 12, 0, 0, 0, 0, 0, 0
6.6.2 RPOS
The RPOS (Read Position) command reads the current robot position in the
Cartesian coordinate system.
Command Format: RPOS
Response Format: Data -1 to Data -15 or error code
Data-1 = X coordinate system (unit: mm)
Data-2 = Y coordinate system (unit: mm)
Data-3 = Z coordinate system (unit: mm)
Data-4 = wrist angle TX (unit: °)
Data-5 = wrist angle TY (unit: °)
Data-6 = wrist angle TZ (unit: °)
Data-7 = type 1 (0: flip, 1: no-flip)
Data-8 = type 2 (0: upper arm, 1: lower arm)
Data-9 = type 3 (0: front, 1: back)
Data-10 = 7th axis pulse number (for traveling axis, mm)
Data-11 = 8th axis pulse number (for traveling axis, mm)
Data-12 = 9th axis pulse number (for traveling axis, mm)
Data-13 = 10th axis pulse number
Data-14 = 11th axis pulse number
Data-15 = 12th axis pulse number
Example:
Command: RPOS
Response: 1205.1, 50.34, 712.3 159.2, 12.35, 25.3, 0, 0, 0, 0, 0, 0, 0,
0, 0
6.6.4 RSTATS
The RSTATS (Read Status) command reads the status of mode, cycle, operation,
alarms, errors, and servo power.
Command Format: RSTATS
Response Format: Data -1, Data -2 or error code (see Figure 6-4).
MSB LSB
Data 1
Step
1 cycle
Auto
Running
Safety speed operation
Teach
Play
Command remote
MSB LSB
Data 2
6.6.6 RPOSC
The RPOSC (Read Position Coordinate) command reads the current value in a
specified coordinate system. You can also specify whether or not there is an
external axis.
Command Format: RPOSC [Data -1, Data -2]
Data-1 = Coordinate specification
0: Base coordinate
1: Robot coordinate
2: User coordinate 1
:
25: User coordinate 24
Data-2 = External axis specification
0: Without external axis data
1: With external axis data
Response Format: Data-1 to Data-13
Data-1 = X coordinate system (unit: mm, 3 decimal points)
Data-2 = Y coordinate system (unit: mm, 3 decimal points)
Data-3 = Z coordinate system (unit: mm, 3 decimal points)
Data-4 = wrist angle TX (unit: °, 2 decimal points)
Data-5 = wrist angle TY (unit: °, 2 decimal points)
Data-6 = wrist angle TZ (unit: °, 2 decimal points)
Data-7 = type
Data-8 = tool number (0 to 23)
Data-9 = 7th axis pulse number (for traveling axis, mm)
Data-10 = 8th axis pulse number (for traveling axis, mm)
Data-11 = 9th axis pulse number (for traveling axis, mm)
Data-12 = 10th axis pulse number
Data-13 = 11th axis pulse number
Data-14 = 12th axis pulse number
Example:
Command: RPOSC
Response: 100.0, 50, 34, 12.34, 180.00, 0, 0, 0, 0, 0, 0
Data-9 to-14 are added when an external axis is specified. If the specified user
coordinate system is undefined, an error response is returned.
D4 D3 D2 D1 D0
0 : Flip 1 : No flip
0 : Upper arm 1 : Low arm
0 : Front 1 : Back
0 : R<180 1 : R>180
0 : T<180 1 : T>180
6.6.7 JWAIT
The JWAIT (Job Wait) command is used to coordinate operations between the
MRC and the host computer or to simply monitor current job status from the host
computer. JWAIT monitors the present job for an END command. Monitoring
can be done for a specified period of time or can be set to wait indefinitely for the
END command. No response is sent out until the job is completed or the
specified waiting period is up.
Command Format: JWAIT [Time]
Time= waiting time (-1.0 to 32767 seconds)
-1 indicates infinite time
Response Format: Data or error code
Data= operation status
0: completed
1: not completed
The JWAIT command waits for job execution to be completed and returns a
response to the host computer. The response varies, based on job status as shown
below in Table 6-3.
6.6.8 RGROUP
The RGROUP (Read Group) command reads the current control group set by the
CGROUP or CTASK command, and the task selected status. Refer to Sections
6.7.9 and 6.7.10 for more information on CGROUP and CTASK commands.
Command Format: RGROUP
Response Format: Data -1, Data -2 or error code
Data -1= Group information (see Figure 6-6).
D7 D6 D5 D4 D3 D2 D1 D0
R1 : ROBOT 1
R2 : ROBOT 2
S1 : STATION 1
S2 : STATION 2
S3 : STATION 3
S4 : STATION 4
S5 : STATION 5
S6 : STATION 6
6.6.9 RJDIR
The RJDIR (Read Job Directory) command reads all job names, including the
names of jobs related to a parent job.
Command Format: RJDIR [Job-Name]
Job-Name = * (all job names registered at the time)
Job-Name = Parent job name (8 characters processed by MS-DOS)
If the parent job is specified, RJDIR reads the names of all related jobs excluding
the parent job. If there are no related child jobs, the command returns the null list.
If the parent job has a related child job which is not registered in the system, an
error occurs.
Response Format: Name-1 to Name-N or error code
Name-1 = Job name-1 (8 characters)
Name-2 = Job name-2 (8 characters)
:
Name-N = Job name-N (8 characters)
Example:
Command: RJDIR MASTER-1
Response: WORK-A, WORK-B, SAMPLE-1
ORG, XX, and XY coordinates are read in the base coordinate system. An error
occurs if ORG, XX, and XY have different base axial data. In systems having no
external axis, Data-23 to Data-28 read 0. If the specified user coordinate system
is not registered, an error occurs. Also, if the group axis of the specified user
coordinate system is not R1, and error occurs.
Example:
Command: RUFRAME 2
Response: 600.0, 12.34, 500.0, 180.0, 0.0, 0.0, 0,..., 0
Because there are more than one way in which the manipulator can be oriented
around the same TCP position, “Form” data gives the manipulator orientation and
is represented by the following bit data coded into a decimal number (see
Figure 6-7):
D4 D3 D2 D1 D0
0 : Flip 1 : No flip
0 : Upper arm 1 : Low arm
0 : Front 1 : Back
0 : R<180 1 : R≥180
0 : T<180 1 : R≥180
Example:
Command: SAVEV 0, 0
Response: 123
In the example above, 123, the value of byte-type variable B000 is sent to the
host computer.
6.7.1 HOLD
The HOLD command turns the system HOLD status ON and OFF. The HOLD
command stops robot operation and places the system in HOLD or releases
HOLD signals, including those caused by operation faults (i.e., welding fault at
arc welding). Operation of this command depends upon data included with
the command.
Command Format: HOLD [Data]
Data = Hold ON/OFF specification
0: OFF
1: ON
Response Format: 0000 or error code
Example:
Command: HOLD 1 (Places the robot in HOLD)
Response: 0000
6.7.2 RESET
The RESET command resets robot alarms from the host computer.
Command Format: RESET
Response Format: 0000 or error code
Example:
Command: RESET
Response: 0000
6.7.3 CANCEL
The CANCEL command resets manipulator error messages from the host
computer. Operation is similar to that of the CANCEL key on the
programming pendant.
Command Format: CANCEL
Response Format: 0000 or error code
Example:
Command: CANCEL
Response: 0000
6.7.5 CYCLE
The CYCLE command selects the operation cycle of the MRC.
Command Format: CYCLE [Cycle-No]
Cycle-No = Cycle specification 1-3
1: Step
2: 1-Cycle
3: Auto
Response Format: 0000 or error code
Example:
Command: CYCLE 2 (Places the robot in 1-Cycle mode)
Response: 0000
6.7.6 SVON
The SVON (Servo On) command turns the servo power ON/OFF. Connect the
external servo ON signal (EXSVON) TM1-21 on the RY Board (JANCD-
MRY01) with +24V TM1-24 to use this command.
Command Format: SVON [Data]
Data = Servo power ON/OFF specification
0: OFF
1: ON
Response Format: 0000 or error code
Example:
Command: SVON 1 (Turns servo power ON)
Response: 0000
6.7.8 MDSP
The MDSP (Message Display) command receives messages and displays them on
the remote screen of the programming pendant. If the programming pendant is
not currently displaying the remote screen, it is automatically switched to the
remote screen and the MDSP command message is displayed.
Command Format: MDSP [Data]
Data = Displayed message (maximum 30 characters)
Response Format: 0000 or error code
Example:
Command: MDSP auto running
Response: 0000
6.7.9 CGROUP
The CGROUP (Control Group) changes the objective control group of various
commands used in the Host Control function. The MRC is capable of supporting
several robots or stations. CGROUP is used when any control group for
commands, such as RPOS, is to be changed. See Section 6.11, “Commands for
Multi-Control Group and Independent Control Functions” for further explanation
on changing control groups. When the controller is powered up, Robot 1, Base 1,
and Station 1 (if a station and base axis exist) are specified.
D7 D6 D5 D4 D3 D2 D1 D0
R1 : ROBOT 1
R2 : ROBOT 2
S1 : STATION 1
S2 : STATION 2
S3 : STATION 3
S4 : STATION 4
S5 : STATION 5
S6 : STATION 6
6.8.1 START
The START command is used to activate a job. If a job name is specified for an
operand, the relation between that job and the Master job is checked and
execution is started from the beginning of the specified job. If no job name is
specified, the execution is started from the line number of the currently
executed job.
Command Format: START [Job-Name]
Job-Name = Starting job name (8 characters). Job name can be omitted.
Response Format: 0000 or error code
Example:
Command: START WORK-A (Job WORK-A is executed)
Response: 0000
6.8.2 MOVJ
The MOVJ (Joint-Type Move) command is used to move the robot to a specified
coordinate position using joint-type motion.
Command Format: MOVJ [Data-1 to Data-16]
Data-1 = Speed (0.01 to 100.0%)
Data-2 = Coordinate specification
0: Base coordinate
1: Robot coordinate
2: User coordinate
:
25: User coordinate 24
Data-3 = X coordinate system (unit: mm, significant
3 decimal points)
Data-4 = Y coordinate system (unit: mm, significant
3 decimal points)
Data-5 = Z coordinate system (unit: mm, significant
3 decimal points)
Data-6 = Wrist angle TX (unit: °, significant 2 decimal points)
Data-7 = Wrist angle TY (unit: °, significant 2 decimal points)
Data-8 = Wrist angle TZ (unit: °, significant 2 decimal points)
Data-9 = Type
Data-10 = Tool number (0 to 23)
Data-11 = 7th axis pulse number (for traveling axis, mm)
Data-12 = 8th axis pulse number (for traveling axis, mm)
Data-13 = 9th axis pulse number (for traveling axis, mm)
Data-14 = 10th axis pulse number
Data-15 = 11th axis pulse number
Data-16 = 12th axis pulse number
NOTE: For a system that has no external axis, set 0 for Data-11 to Data-16. If the specified user
coordinate system is undefined, an error response is returned.
6.8.3 MOVL
The MOVL (Linear Move) command is used to move the robot to a specified
coordinate position using linear-type motion.
NOTE: For a system that has no external axis, set 0 for Data-12 to Data-17. If the specified user
coordinate system is undefined, an error response is returned.
Response Format: 0000 or error code
Example:
Command: MOVJ 500.0, 2, 123.1, 50.34, 10.8, 180.00, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0
Response: 0000
NOTE: For a system that has no external axis, set 0 for Data-12 to Data-17. If the specified user
coordinate system is undefined, an error response is returned.
Response Format: 0000 or error code
Example:
Command: MOVJ 500.0, 2, 123.1, 50.34, 10.8, 180.00, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0
Response: 0000
6.8.6 PMOVL
The PMOVL (Pulsed Linear Move) command moves the robot to a specified
pulse position using linear-type motion.
Command Format: PMOVJ Data-1 to Data-15
Data-1 = Speed (0: V (speed), 1: VR (posture speed))
Data-2 = Speed (0.1 to XXX.XX mm/sec., 0.1 to XXX.XX°/sec.)
Data-3 = S-axis pulse number
Data-4 = L-axis pulse number
Data-5 = U-axis pulse number
Data-6 = R-axis pulse number
Data-7 = B-axis pulse number
Data-8 = T-axis pulse number
Data-9 = Tool number (0 to 23)
Data-10 = 7th axis pulse number
Data-11= 8th axis pulse number
Data-12 = 9th axis pulse number
Data-13 = 10th axis pulse number
Data-14 = 11th axis pulse number
Data-15 = 12th axis pulse number
NOTE: For a system that has no external axis, set 0 for Data-10 to Data-15.
Response Format: 0000 or error code
Example:
Command: PMOVL 0, 123.0, 10, 200, 300, 400, 500, 0, 0, 0, 0, ...0
Response: 0000
6.9.1 DELETE
The DELETE command is used to delete a specified job in the MRC.
Command Format: DELETE [Job-Name]
Job-Name = Job name to be deleted (8 characters processed by
MS-DOS)
= *: all jobs
Response Format: 0000 or error code
Example:
Command: DELETE WORK-B (Job WORK-B is deleted)
Response: 0000
6.9.2 CVTRJ
The CVTRJ (Convert to Relative Job) command converts a specified job into a
relative job of a specified coordinate system. The job to be converted is the job
being edited. After the conversion, the original job is replaced by the converted
job.
Command Format: CVTRJ [Data-1, Data-2]
Data-1 = Job name to be converted
Data-2 = Conversion coordinate system specification
0: Base coordinate
1: Robot coordinate
2: User coordinate
:
25: User coordinate 24
26: Reserved
NOTE: If the specified user coordinate system is undefined, an error response is returned.
Example:
Command: CVTRJ TESTJOB, 2 (Converts TESTJOB to User
coordinate system)
Response: 0000
6.9.4 WUFRAME
The WUFRAME (Write User Frame) command writes user coordinate system
data to a specified user coordinate system.
Command Format: WUFRAME [Data-1 to Data-29]
Data-1 = User coordinate system number
0: Reserved
1: Reserved
2: User coordinate 1
:
25: User coordinate 24
Data-2 = ORG X coordinate system (unit: mm, significant
3 decimal points)
Data-3 = ORG Y coordinate system (unit: mm, significant
3 decimal points)
Data-4 = ORG Z coordinate system (unit: mm, significant
3 decimal points)
Data-5 = ORG wrist angle TX (unit: °, significant 2 decimal points)
Data-6 = ORG wrist angle TY (unit: °, significant 2 decimal points)
Data-7 = ORG wrist angle TZ (unit: °, significant 2 decimal points)
Data-8 = ORG type
Data-9 = XX X coordinate system (unit: mm, significant
3 decimal points)
Data-10 = XX Y coordinate system (unit: mm, significant
3 decimal points)
Data-11 = XX Z coordinate system (unit: mm, significant
3 decimal points)
Data-12 = XX wrist angle TX (unit: °, significant 2 decimal points)
Data-13 = XX wrist angle TY (unit: °, significant 2 decimal points)
Data-14 = XX wrist angle TZ (unit: °, significant 2 decimal points)
Data-15 = XX type
Data-16 = XY X coordinate system (unit: mm, significant
3 decimal points)
6.9.5 LOADV
The LOADV (Load Variable) command receives variable data and writes it in the
specified variable.
Command Format: LOADV [Data -1, Data -2, ... Data -12]
Data-1 = Type of variable
0: Byte-type variable
1: Integer-type variable
2: Double precision-type variable
3: Real number-type variable
4: Robot axis position-type variable
5: Base axis position-type variable
6: Station axis position-type variable (only pulse-type)
Data-2 = Variable number
Data-3 = Byte value/ Integral value/ Double precision
integral value/ Real number value/ Position data type
Position data type = 0: Pulse type
1: Orthogonal type
If Position data type is 0:
Data-4 = S-axis pulse number/ Base 1st axis pulse number/
Station axis 1st axis pulse number
Data-5 = L-axis pulse number/ Base 2nd axis pulse number/
Station axis 2nd axis pulse number
Data-6 = U-axis pulse number/ Base 3rd axis pulse number/
Station axis 3rd axis pulse number
Data-7 = R-axis pulse number/ Base 4th axis pulse number/
Station axis 5th axis pulse number
Data-8 = B-axis pulse number/ Base 5th axis pulse number/
Station axis 5th axis pulse number
D4 D3 D2 D1 D0
0 : Flip 1 : No flip
0 : Upper arm 1 : Low arm
0 : Front 1 : Back
0 : R<180 1 : R≥180
0 : T<180 1 : R≥180
6.10.1 SETMJ
The SETMJ (Set Master Job) command sets a specified job as the Master job.
The specified job is then set as the job to be executed.
Example:
Command: SETMJ WORK-C (Job WORK-C is set as Master job)
Response: 0000
6.10.2 JSEQ
The JSEQ (Job Sequence) command sets the job name and line number of the
starting job or the job you want to manipulate.
Example:
Command: JSEQ WORK-A,10 (Job WORK-A is set at line 10)
Response: 0000
Bases and stations are equivalent to the external axes of the ERC. The following
is a list of commands which have influence when the commands in Table 6-4 are
used. The operation of these commands are applicable to the set control groups
(see Table 6-5).
M S
MAINTENANCE SAFETY, 16 SAFETY, 11
MDSP, 69 SAVEJ (SAVE JOB) OPERATION, 35
MECHANICAL SAFETY DEVICES, 13 SAVEJ INSTRUCTIONS, 35
MODE, 68 SAVEV (SAVE VARIABLES)
MODIFICATIONS TO MY-BASIC, 8 OPERATION, 38
MOVJ, 71 SAVEV INSTRUCTIONS, 38
MOVL, 72 SAVEV, 65
MRC TO HOST COMPUTER, 54 SAVING A JOB, 48
MRC VS. ERC DATA SAVING CONDITION FILES/UNIVERSAL
COMMUNICATIONS, 21 DATA, 48
SAVING SYSTEM INFORMATION, 48
O SELECTING FILES, 31
OPERATION SAFETY, 15 SERIAL INTERFACE MULTIPORT, 20
OPERATION SYSTEM COMMANDS, 67 SERIAL VS. PARALLEL INTERFACE, 5
OPERATION, 47 SETMJ, 79
STAND-ALONE FUNCTIO, 47
P STANDARD CONVENTIONS, 12
PARALLEL EXECUTION USING START, 71
PSTART (OPTIONAL), 40 START-UP SYSTEM COMMANDS, 71
PARALLEL OPERATION, 21 SVON, 68
PMOVJ, 74 SWAIT (SEND WAIT) OPERATION, 37
PMOVL, 74 SWAIT INSTRUCTIONS, 37
PROGRAMMING SAFETY, 14
T
R TRANSMISSION FORMAT, 25
RALARM, 58 TRANSMISSION SEQUENCE, 40
READ/MONITOR SYSTEM
COMMANDS, 58 V
REFERENCE TO OTHER VARIABLE TRANSMISSION, 42
DOCUMENTATION, 9 VERIFYING CONDITION
REMOTE MODE SETUP, 17 FILES/UNIVERSAL DATA, 50
REMOTE MODE, 17 VERIFYING JOBS, 49
RESET, 67
RESPONSES TO MOV-TYPE W
COMMANDS, 57 WUFRAME, 76
RGROUP, 62
RJDIR, 63
RJSEQ, 60
ROBOT CONTROL, 54