For Visual Studio User'S Manual: Motoplus SDK
For Visual Studio User'S Manual: Motoplus SDK
Upon receipt of the product and prior to initial operation, read these instructions thoroughly, and
retain for future reference.
YASKAWA INSTRUCTIONS
MANIPULATOR INSTRUCTIONS
CONTROLLER INSTRUCTIONS
CONTROLLER OPERATOR’S MANUAL
CONTROLLER MAINTENANCE MANUAL
1 of 85
169286-1CD
Copyright © 2019, 2018, 2017, 2016, 2015, 2014 YASKAWA America, Inc.
ii 169286-1CD 2 of 85
169286-1CD
MotoPlus SDK for Visual Safety
Studio
Safety
DANGER
• Teaching, operations, and maintenance of the Robot must conform
to:
– Industrial Safety and Health Law
– Order for Enforcement of the Industrial Safety and Health Law
– Industrial Safety and Health Regulations
– Technical Standards for Electrical Facilities
Other related laws and regulations are:
– Occupational Safety and Health Act in USA
– Factory Act (Gewerbeordnung) in Germany
– Health and Safety at Work, etc. Act in UK
– EC Machinery Directive 2006/42/EC
• Prepare:
– SAFETY WORK REGULATIONS
based on concrete policies for safety management complying
with related laws and regulations.
• Observe:
– JIS B 8433-1: 2015 “Robots for industrial environments-Safety
requirements” (ISO 10218-1: 2011) for safe operation of the
robot. (JIS B 8433 is for Japan only)
• Reinforce:
– SAFETY MANAGEMENT SYSTEM
by designating authorized operators and safety managers for the
Robot, as well as giving continuing safety education and training.
iii 169286-1CD 3 of 85
169286-1CD
DANGER
• Personnel engaged in operation, maintenance, or management of
the Robot must receive required training before using the Robot.
For more information on training, contact Customer Support.
• Make sure to have and follow all manuals, read them thoroughly
and understand the contents of them.
Confirm that you have all required manuals. If any of the manuals are
missing, contact Customer Support.
We suggest that you obtain and review a copy of the ANSI/RIA National
Safety Standard for Industrial Robots and Robot Systems (ANSI/RIA
R15.06-2012). You can obtain this document from the Robotic Industries
Association (RIA) at the following address:
Robotic Industries Association
900 Victors Way
P.O. Box 3724
Ann Arbor, Michigan 48106
TEL: (734) 994-6088
FAX: (734) 994-3338
www.roboticsonline.com
Ultimately, well-trained personnel are the best safeguard against
accidents and damage that can result from improper operation of the
equipment. The customer is responsible for providing adequately trained
personnel to operate, program, and maintain the equipment.
We recommend approved YASKAWA training courses for all personnel
involved with the operation, programming, or repair of the equipment.
This equipment has been tested and found to comply with the limits for a
Class A digital device, pursuant to part 15 of the FCC rules. These limits
are designed to provide reasonable protection against harmful
interference when the equipment is operated in a commercial
environment. This equipment generates, uses, and can radiate radio
frequency energy and, if not installed and used in accordance with the
instruction manual, may cause harmful interference to radio
communications.
iv 169286-1CD 4 of 85
169286-1CD
MotoPlus SDK for Visual Safety
Studio
WARNING
• Safe operation of this equipment is the users responsibility.
– The conditions under which the equipment will be operated
safely should be reviewed by the user. The user must be aware of
the various national codes, ANSI/RIA R15.06-2012 safety
standards, and other local codes that may pertain to the
installation and use of this equipment.
Not following all national codes, safety standards and local codes can
result in death or serious injury
CAUTION
• Only trained personnel familiar with the operation, manuals,
electrical design, and interconnections of this equipment should
program, or maintain the system.
Any personnel involved with the operation of the equipment must
understand potential dangers of operation.
NOTICE
• The drawings and photos in this manual are examples. Differences
may exist between them and the delivered product.
• YASKAWA may modify this model without notice due to product
improvements, modifications, or changes in specifications. If such
modification is made, the manual number will also be revised.
• Some operations require standard passwords and while others
require special passwords.
• If a manual is damaged or lost, contact Customer Support to order a
new copy. Make sure to tell Customer Support the Part Number
listed on the front cover.
v 169286-1CD 5 of 85
169286-1CD
NOTICE
To ensure safe and efficient operation at all times, be sure to follow all
instructions, even if not designated as “DANGER”, “WARNING” or
“CAUTION”.
vi 169286-1CD 6 of 85
169286-1CD
MotoPlus SDK for Visual Safety
Studio
DANGER
• Maintenance and inspection must be performed by specified
personnel.
Failure to observe this caution may result in electric shock or injury.
WARNING
• Run the piping, wiring, and cables for the Controller, Robot,
Positioner control panel, peripheral devices, etc. in a pit so that are
not stepped on by personnel or run over by a forklift.
SAFETY
FIRST
Piping Lead
Cable Channnel
vii 169286-1CD 7 of 85
169286-1CD
CAUTION
• Make sure all covers and shields are installed correctly before
operating.
– Some drawings in this manual may have protective covers or
shields removed to show details.
Not having all covers and shields installed correctly can result in injury.
• Inspect:
– For problems with movement
– Damages to external wires
NOTICE
• If supplying a supplementary audible means for Robot operation, it
shall exceed the ambient noise at the end-use of the application.
• Any changes or additions to the applicable information as provided
by the manufacturer is to be provided by the party that makes the
change or addition to the Robot system
viii 169286-1CD 8 of 85
169286-1CD
MotoPlus SDK for Visual Safety
Studio
Ensure Safety
DANGER
• When the power supplies of the Robot are turned ON at start-up, be
sure to confirm the following:
– Safety protection devices such as the E-STOP circuit, door
interlocks, etc. operate normally.
– Each axis operates normally in TEACH mode.
– Robot operates normally at the speed limit or less in the TEACH
mode.(Speed limit: 250 mm/s at the TCP or the flange)
– The teaching function and the playback function operate normally.
ix 169286-1CD 9 of 85
169286-1CD
WARNING
• In the vicinity of the area where the Robot is installed, avoid any
dangerous actions, such as entering the Robot's operating range
without due care.
Failure to observe this instruction may cause contact with the Robot or
peripheral equipment, which may result in death or serious injury.
• Strictly observe the safety precautions and signs in the factory, such
as “Flammable”, “High Voltage”, “Danger”, “Off-limits to
Unauthorized Personnel”.
Failure to observe this instruction may result in death or serious injury
do to fire, electric shock, caused by contact with the Robot or other
equipment.
x 169286-1CD 10 of 85
169286-1CD
MotoPlus SDK for Visual Safety
Studio
WARNING
• Turn OFF servo power before operating.
– Press the EMERGENCY STOP button to turn off SERVO
POWER. When servo power is OFF, the SERVO ON LED on the
Programming Pendant is OFF.
If the EMERGENCY STOP button(s) do not work correctly, death or
serious injury may result. Do not use if the EMERGENCY STOP button
does not perform correctly.
Fig. : EMERGENCY STOP Button
• Clear the cell of all items which could interfere with the operation
before releasing the EMERGENCY STOP button.
Death or serious injury may result from unintentional or unexpected
motion.
Fig. : Release of EMERGENCY STOP Button
TURN
xi 169286-1CD 11 of 85
169286-1CD
WARNING
• Before operating the manipulator, check that servo power is turned
OFF when the emergency stop button on the programming pendant
is pressed.
When the servo power is turned OFF, the SERVO ON LED on the
programing pendant is turned OFF.
Injury or damage to machinery may result if the emergency stop circuit
cannot stop the manipulator during an emergency. The manipulator
should not be used if the emergency stop button does not function.
Figure 1: Emergency Stop Button
• Once the emergency stop button is released, clear the cell of all
items which could interfere with the operation of the manipulator.
Then turn the servo power ON.
Injury may result from unintentional or unexpected manipulator motion.
Figure 2: Release of Emergency Stop Button
TURN
xii 169286-1CD 12 of 85
169286-1CD
MotoPlus SDK for Visual Safety
Studio
CAUTION
• All operators, programmers, maintenance personnel, supervisors,
and anyone working near the system must be familiar with the
operation of this equipment.
– All personnel involved with the operation of the equipment must
understand potential dangers of operation.
CAUTION
• Store industrial tools, etc. in a safe location outside the Robot's
operating range.
If an industrial tool, etc. is left unattended on the Robot, on a fixture, or
on the floor, etc., the Robot may come in contact with the industrial tool
left unattended, which may result in damage to the Robot and/or the
fixture.
xiii 169286-1CD 13 of 85
169286-1CD
Operation Safety
DANGER
• Personnel engaged in teaching or inspection, etc. of the Robot must
receive special training required by applicable laws and regulations.
• While performing inspection and maintenance, wiring, or attaching a
tool to the Robot, etc., make sure to turn OFF the power supply of
the Robot Controller and the tool, and keep the switch of the power
supply locked so that unauthorized personnel cannot turn ON the
power supply.
In addition, display a warning sign stating “Energizing Prohibited”.
YRC1000
xiv 169286-1CD 14 of 85
169286-1CD
MotoPlus SDK for Visual Safety
Studio
DANGER
• Before operating the Robot, make sure the servo power is turned
OFF by performing the following operations. When the servo power
is turned OFF, the SERVO ON LED on the Programming Pendant is
turned OFF.
– Press the EMERGENCY STOP buttons on the front door of the
Robot Controller, on the Programming Pendant, on the external
control device, etc.
– Disconnect the safety plug of the safety fence.
(when in the PLAY mode or REMOTE mode)
If operation of the Robot cannot be stopped in an emergency, personal
injury and/or equipment damage may result.
• Make sure that all safety protection devices are activated before
starting a job in the PLAY mode.
• Confirm that no person is present in the Robot's operating range
and that the operator is in a safe location before:
– Turning ON the Robot Controller
– Moving the Robot by using the Programming Pendant
– Running the system in the TEACH mode
– Performing automatic operations
Personal injury may result if a person enters the Robot's operating
range during operation
• Immediately press an EMERGENCY STOP button whenever there
is a problem.
Emergency Stop Button
xv 169286-1CD 15 of 85
169286-1CD
WARNING
• Read “Safety” of the Robot Controller instructions before operating.
Not reading and understanding chapter 1 of the Robot Controller
instruction can result in death or serious injury.
xvi 169286-1CD 16 of 85
169286-1CD
MotoPlus SDK for Visual Safety
Studio
CAUTION
Robot Cells have Collaborative Motion functionality:
Collaboration is a special type of operation between a
person and Robot sharing a common workspace. The
following are the guidelines for collaborative operation.
1. Used for pre-determined tasks.
2. Possible when all protective measures are active.
3. For Robots with features specifically designed for
collaborative operation.
The integrator shall include in the information for use the
safeguards and mode selection required for collaborative
operation.
CAUTION
• Do not operate the Robot when a [COOLING FAN2 ERROR]
appears on the Programming Pendant.
If operation continues with a warning message, equipment damage can
occur.
xvii 169286-1CD 17 of 85
169286-1CD
Maintenance Safety
WARNING
• Make sure equipment has no potentially hazardous conditions.
– area is clean and free of water, oil, debris, etc.
– all safeguards are in place.
– all safety equipment work correctly. Repair or replace any non-
functioning safety equipment immediately.
– Check the EMEREGENCY STOP button(s) for proper operation
before programming. The equipment must be in E-STOP mode
when not in use.
If a hazardous condition is present death or serious injury may occur.
xviii 169286-1CD 18 of 85
169286-1CD
MotoPlus SDK for Visual Safety
Studio
CAUTION
• Do not modify the Robot Controller.
Making modifications without written permission from YASKAWA will
void the warranty.
• Back up all programs and jobs onto suitable media before program
changes are made.
To avoid loss of information, programs, or jobs, a backup must always
be made before any service procedures are done and before any
changes are made to options, accessories, or equipment.
DANGER
• When relocating, transferring, or selling the Robot, make sure that
the Robot is always accompanied by its manuals so that all users
have access to necessary manuals.
See the Bill of Material for a list of the manuals.
xix 169286-1CD 19 of 85
169286-1CD
xx 169286-1CD 20 of 85
169286-1CD
MotoPlus SDK for Visual Safety
Studio
START HOLD
Mode Switch*
P
EM
ER
O
T
GENCY S
REMOTE
EMERGENCY STOP Butto
PLAY
TEACH
Page Key
Coordinate Key
Axis Keys
Shift Key
Enter Key
*The button/switch names
Numeric Keys are denoted as symbols.
Registered Trademark
In this manual, names of companies, corporations, or products are
trademarks, registered trademarks, or bland names for each company or
corporation. The indications of ® and TM are omitted.
xxi 169286-1CD 21 of 85
169286-1CD
Robot Disposal
WARNING
• Take precautionary measures to prevent the Robot from
overturning, such as anchoring it firmly, etc., even when temporarily
storing it before disposal.
Failure to observe this instruction may cause overturning of the Robot,
which may result in personal injury.
CAUTION
• Do not modify the Robot
Failure to observe this instruction can cause fire, mechanical failure, or
malfunction, which may result in personal injury and/or equipment
damage.
NOTICE
• When disposing of or recycling the Robot, follow the
applicable national/local laws and regulations.
• This symbol is applicable in some locations.
The wheelie bin symbol on this product, manual or its
packaging indicates that at the end of life the product
should enter the recycling system. It must be disposed at
an appropriate collection point for electrical and electronic
equipment (EEE) and should not be put in the normal
waste stream.
xxii 169286-1CD 22 of 85
169286-1CD
MotoPlus SDK for Visual Customer Support Information
Studio
(937) 847-3200
For routine technical inquiries, Customer Support can also be contacted
at the following e-mail address:
techsupport@motoman.com
NOTICE
Use e-mail for routine inquiries only. If there is an urgent or emergency
need for service, replacement parts, or information, contact Customer
Support using the 24-hour telephone number.
• System
• Manipulator
• Positioner
• Robot Controller
• Software Version
xxiii 169286-1CD 23 of 85
169286-1CD
Table of Contents
1 Outline............................................................................................................................................. 1-1
3.7 Building Your Project for Multiple Controller Platforms .................................................... 3-10
5 Debugging....................................................................................................................................... 5-1
xxiv 169286-1CD 24 of 85
169286-1CD
MotoPlus SDK for Visual Table of Contents
Studio
5.5 Development Support Tools for YRC1000 and YRC1000micro ........................................ 5-5
xxv 169286-1CD 25 of 85
169286-1CD
Appendix A ........................................................................................................................................A-1
Appendix B ........................................................................................................................................B-1
xxvi 169286-1CD 26 of 85
169286-1CD
MotoPlus SDK for Visual 1 Outline
Studio 1.1 Introduction
1 Outline
1.1 Introduction
MotoPlus Software Development Kit (SDK) is used to develop customer
specific applications that operate on the main CPU board of the
YASKAWA robot controller. The application is run concurrently to the robot
firmware, in real time. Programming of the application is done using C
language with Microsoft Visual Studio. Users can develop a variety of
application programs on their own without modifying the source code of
the robot controller.
This advanced toolset is intended only for experienced software
developers who are familiar with the C programming language.
Robot control
Robot control from the application program
JOB control
Start-stop control of the JOB by the application, data transmission
between Jobs by variables (byte, integer, double-precision, floating point,
character string, and position variable), and execution synchronization
CIO control
I/O between the application program and the robot CIO including read/
write access to registers
1-1 169286-1CD 27 of 85
169286-1CD
Sensor control
Robot path correction, adjustment, and control can be achieved while
reacting to external sensors
Memory management
Dynamic and static memory allocation
Servo control
Control servo power for automated robot operation
User watchdog
Watchdog to monitor whether the application operates normally
1-2 169286-1CD 28 of 85
169286-1CD
MotoPlus SDK for Visual 1 Outline
Studio 1.3 Development Process
1-3 169286-1CD 29 of 85
169286-1CD
1.4 Notices
NOTICE
• C language allows for dynamic memory operations. When
programming in C language, pointers with memory addresses may
be used. If the pointer variable is set incorrectly, the system memory
area may be rewritten.
If the system memory area is rewritten, critical problems occur, e.g.,
the software hangs up (the hang-up status is detected by a CPU
exception or the watchdog check function, then the servo power
turns OFF and the system shuts down), the robot stops its operation
due to an alarm, or the programming pendant becomes inoperable. If
the system memory operation is incorrect, the application itself may
not operate as it is designed.
• The task “mpUsrRoot”, which starts when the power is turned ON,
has a high priority to start other application tasks and initialize the
entire application quickly. Due to its high task priority, if a time-
consuming process (0.1 milliseconds or longer) is done in this task,
the processing time for the robot control becomes insufficient. Then
system alarms may occur or the programming pendant or the HOLD
button may freeze. Thus, as shown in the sample program (refer to
Task Control Sample Program” in “Programmer’s Manual for New
Language Environment MotoPlus”, make sure to complete the task
“mpUsrRoot” after starting up another application or creating a
semaphore.
• Debugging via Telnet
1.After completing debugging, set the Telnet function to INVALID
(S2C1119 = 0). This is because the Telnet function consumes system
processing time, and an alarm may occur due to insufficient
processing time for robot operation.
2. With the Telnet function, debug only tasks with normal priority. For
debugging the tasks with high priority (the tasks started with the task
priority: MP_PRI_IO_CLK_TAKE, MP_PRI_IP_CLK_TAKE, or
MP_TIME_CRITICAL, or task “mpUsrRoot”), use the robot variables
visible on the programming pendant. This is because, if printf() or
puts() is done with a high priority task, processing time for robot
operation control is consumed, and a system alarm may occur due to
insufficient processing time.
3. After completing debugging, make sure to disable the debugging
code using printf() or puts(). This is because the processing time of
printf() and puts() influences the system, and an error may occur
such as insufficient processing time during robot operation.
When using VxWorks SHELL commands, which become available by
connecting with the controller via Telnet, a system alarm may occur due
to insufficient processing time for robot operation. Do NOT use the
VxWorks SHELL commands.
1-4 169286-1CD 30 of 85
169286-1CD
MotoPlus SDK for Visual 2 SDK Installation and Setup
Studio 2.1 System Requirements
2-1 169286-1CD 31 of 85
169286-1CD
NOTICE
Do not insert the USB hardware key dongle into the computer until after
installing the Sentinel driver.
1. Insert the MotoPlus SDK for Visual Studio disc into your Windows PC.
If AutoRun is enabled, the installation will automatically start.
Otherwise, run “setup.exe” from the root of the DVD.
NOTICE
The license agreement is located on the root of your installation DVD.
Please read this prior to installing the software. You will be required to
agree to the terms of the licensing.
NOTICE
If you are installing the Sentinel driver on a notebook/laptop computer,
it is recommended to first remove the computer from any docking
station(s) prior to installation.
2-2 169286-1CD 32 of 85
169286-1CD
MotoPlus SDK for Visual 2 SDK Installation and Setup
Studio 2.3 Setup of Robot Controller
CAUTION
• Follow standard ESD safe procedures when handling the CPU
board!
Static electricity can severely damage sensitive electronics.
2-3 169286-1CD 33 of 85
169286-1CD
3. Connect the VGA adapter cable to the pin header on the CPU board
and route the cable out of the chassis. If equipped carefully open the
plastic tab which is securing the opening and install the cable.
4. Reinsert the CPU board into the controller chassis, tighten the screws
securing the board, and reconnect all cables removed in the previous
steps.
2-4 169286-1CD 34 of 85
169286-1CD
MotoPlus SDK for Visual 2 SDK Installation and Setup
Studio 2.3 Setup of Robot Controller
2-5 169286-1CD 35 of 85
169286-1CD
NOTICE
The MOTOMAN DRIVER option is only available if the controller has
the following software version or greater:
• FS100: FS3.30.00-00
• DX200: DN2.21.00-00
• YRC1000: YAS1.11.00-00
• YRC1000micro: Any
2-6 169286-1CD 36 of 85
169286-1CD
MotoPlus SDK for Visual 2 SDK Installation and Setup
Studio 2.4 Enable Telnet for Debugging
Wi
ndo
wF
eat
ure
s
3. In the Windows Features list, check the box next to “Telnet Client” and
click [OK].
2-7 169286-1CD 37 of 85
169286-1CD
NOTICE
Sample source code files are located in your installation directory and
on the MotoPlus for Visual Studio installation disc.
Please remember that the source code should follow ANSI-C syntax. The
only exception is that users should not define a “main (...)” function. This is
replaced by “mpUsrRoot(...)”.
1. Up to 32 one-byte characters can be used for a file name. Up to 16
two-byte characters can also be used. File names are case-sensitive.
Set '.c' as the file extension. (C++ library is not fully supported on the
MotoPlus platform)
2. Put “#include <MotoPlus.h>” at the top of each source code file. When
“MotoPlus.h” is included, all services provided by MotoPlus are
available.
3. MotoPlus applications do not have a “main” function. This is replaced
by “mpUsrRoot”. This function must have the following signature:
void mpUsrRoot (int arg1, int arg2, int arg3, int arg4, int arg5, int arg6,
int arg7, int arg8, int arg9, int arg10)
NOTICE
When creating a new MotoPlus project in Visual Studio, a “main”
template is automatically generated.
3-1 169286-1CD 38 of 85
169286-1CD
MotoPlus SDK for Visual 3 Creating MotoPlus Application
Studio 3.2 Creating a MotoPlus Project in Visual Studio
NOTICE
Do not include any spaces when naming your project.
Click [OK] and a new project is created in the specified location. This
project is automatically configured to build using the MotoPlus compiler. A
template source file (mpMain.c) is added to the project. Also included are
files which specify the project-specific arguments to the compiler and
linker.
NOTICE
The .mps files must not be removed from your MotoPlus project.
3-2 169286-1CD 39 of 85
169286-1CD
When adding new items to the project, the file must end in a supported
extension. Header files should have a “.h” extension. Source files should
have a “.c” extension.
NOTICE
C++ (.cpp) files are not supported by the MotoPlus environment.
Files for the project do not have to be in a flat directory. They can be in any
folder relative to the Project Directory.
3-3 169286-1CD 40 of 85
169286-1CD
MotoPlus SDK for Visual 3 Creating MotoPlus Application
Studio 3.4 Creating a MotoPlus Library
NOTICE
MotoPlus library files end in extension .mpLib (DX100),.fsLib (FS100),
.dnLib (DX200) and .yrcLib (YRC1000 or YRC1000micro). Libraries
must be compiled for each robot controller separately.
3-4 169286-1CD 41 of 85
169286-1CD
NOTICE
When distributing a MotoPlus library, be sure to include a header file
which provides functional declarations for each public function in your
library. Function declarations should begin with “extern”.
Example: extern void mpLibraryFunction1();
3-5 169286-1CD 42 of 85
169286-1CD
MotoPlus SDK for Visual 3 Creating MotoPlus Application
Studio 3.5 Using a MotoPlus Library In Your Project
NOTICE
MotoPlus library files end in extension .mpLib (DX100), .fsLib (FS100),
.dnLib (DX200) and .yrcLib (YRC1000 or YRC1000micro).
3-6 169286-1CD 43 of 85
169286-1CD
Co
ntr
olle
r
NOTICE
You must have a license key for each target controller platform.
Upgrade licenses are available for each controller type.
Next, select the appropriate Build option from the {Build} menu.
3-7 169286-1CD 44 of 85
169286-1CD
MotoPlus SDK for Visual 3 Creating MotoPlus Application
Studio 3.6 Building Your Application
If there are any errors/warnings in your source files, they will be displayed
in the Visual Studio Error List. You can double-click the error entry to go
directly to the problematic line of code.
The Output pane contains the full output text of the compiler.
3-8 169286-1CD 45 of 85
169286-1CD
If there are no errors in the code, the Output pane will indicate “Build
Successful!” By default, the compiled module will be located in the folder:
<Solution Directory> \ <Controller Platform> \ <Project name>
NOTICE
The output directory and file name can be customized by modifying the
NMake Configuration Properties.
See Chapter 7 “Advanced mpBuilder Usage” for more details
3-9 169286-1CD 46 of 85
169286-1CD
MotoPlus SDK for Visual 3 Creating MotoPlus Application
Studio 3.7 Building Your Project for Multiple Controller Platforms
Example:
//evaluated at compile-time
#if (DX100 || FS100)
#define STARTING_NETIN_ADDRESS 25010
#elif (DX200 || YRC1000 || YRC1000micro)
#define STARTING_NETIN_ADDRESS 27010
#endif
void myFunction()
{
//set at run-time
int startingIoAddress = STARTING_NETIN_ADDRESS;
}
NOTICE
You must have a license key for each target controller platform.
Upgrade licenses are available for each controller type.
3-10 169286-1CD 47 of 85
169286-1CD
4-1 169286-1CD 48 of 85
169286-1CD
MotoPlus SDK for Visual 4 Installation and Startup of MotoPlus Application
Studio 4.1 Installation of Application Program in Maintenance Mode
4-2 169286-1CD 49 of 85
169286-1CD
2. List
Select the submenu {FILE LIST}. Then, the list of the application files
which already exist in the controller appears.
4-3 169286-1CD 50 of 85
169286-1CD
MotoPlus SDK for Visual 4 Installation and Startup of MotoPlus Application
Studio 4.1 Installation of Application Program in Maintenance Mode
NOTICE
This screen may have different options based on which robot controller
is being used. Please refer to the Programmer's Manual for more
details.
4-4 169286-1CD 51 of 85
169286-1CD
(2) Press [ENTER], and then the confirmation dialog box appears.
4-5 169286-1CD 52 of 85
169286-1CD
MotoPlus SDK for Visual 4 Installation and Startup of MotoPlus Application
Studio 4.2 Start-up of Application Program
4-6 169286-1CD 53 of 85
169286-1CD
5 Debugging
NOTICE
Print-statements are extremely time consuming during execution. It is
highly recommended to put a debug-switch around all print statements
so that they can be disabled for final release.
5-1 169286-1CD 54 of 85
169286-1CD
MotoPlus SDK for Visual 5 Debugging
Studio 5.4 Viewing Output on PC Console Window
NOTICE
When debugging is completed, be sure to set S2C1119 = 0. This will
prevent the telnet task from interfering with robot operation.
㑅ࠉᢥ 㑅ࠉᢥ
X- X+ X- X+ X- X+ X- X+
S- S+ R- R+ S- S+ R- R+
㧗㏿ 㧗㏿
Y- Y+ Y- Y+ Y- Y+ Y- Y+
L- L+ B- B+ L- L+ B- B+
㧗 㧗
Z- Z+ Z- Z+ Z- Z+ Z- Z+
U- U+ T- T+ U- U+ T- T+
ప ప
7- 7+ 7- 7+
7 8 9 7 8 9
4 5 6 4 5 6
1 2 3 1 2 3
0 . - 0 . -
Development PC Development PC
YCP21
<&3
CN105 &1
Ethernet Ethernet
CN104 &1
Hub
FS Controller
Without a Hub With a Hub
㑅ࠉᢥ 㑅ࠉᢥ
X- X+ X- X+ X- X+ X- X+
S- S+ R- R+ S- S+ R- R+
㧗㏿ 㧗㏿
Y- Y+ Y- Y+ Y- Y+ Y- Y+
L- L+ B- B+ L- L+ B- B+
㧗 㧗
Z- Z+ Z- Z+ Z- Z+ Z- Z+
U- U+ T- T+ U- U+ T- T+
ప ప
7- 7+ 7- 7+
7 8 9 7 8 9
4 5 6 4 5 6
1 2 3 1 2 3
0 . - 0 . -
Development PC Development PC
CPU201R
&385
CN3 &1
Ethernet Ethernet
CN2 &1
Hub
5-2 169286-1CD 55 of 85
169286-1CD
NOTICE
• Your computer IP address must be on the same subnet as the robot
controller.
– Example:
Robot IP - 192.168.255.1
Computer IP - 192.168.255.xxx
• Alarms such as “0500 SEGMENT PROC NOT READY” may occur
when using the telnet connection. This is because the telnet task
runs at a high priority in the system and can interfere with robot
operation. If the alarm occurs, reboot the robot controller.
Set S2C1119 = 0 when you are done debugging to prevent these
alarms during normal operation.
Prior to opening the automatic login utility, you must input the IP address
of the robot controller. An .ini configuration file is located in your MotoPlus
for Visual Studio installation directory. (Default: C:\Program Files
(x86)\Motoman\MotoPlus for Visual Studio\Telnet Debugging)
Open the .ini file for your target controller. Modify the value of “ipaddress”
to match your robot controller. After saving this file, you can now open the
automatic login utility.
After opening the automatic login utility, do not click any other windows
until the login process is complete. The process is completed when you
see the telnet shell prompt “->”.
5-3 169286-1CD 56 of 85
169286-1CD
MotoPlus SDK for Visual 5 Debugging
Studio 5.4 Viewing Output on PC Console Window
If the login is successful, the console window will display the shell prompt
“->”.
5-4 169286-1CD 57 of 85
169286-1CD
5.5.1 Introduction
This chapter explains the functions of the tools to support development of
the MotoPlus application (hereafter referred to as “the application”).
5-5 169286-1CD 58 of 85
169286-1CD
MotoPlus SDK for Visual 5 Debugging
Studio 5.5 Development Support Tools for YRC1000 and YRC1000micro
(MotoPlus Monitor)
On the programming pendant from Main Menu select {MotoPlus APL.}
and then select {MotoPlus MONITOR} to use the functions.
Fig. 5-2: MotoPlus Monitor
5-6 169286-1CD 59 of 85
169286-1CD
5-7 169286-1CD 60 of 85
169286-1CD
MotoPlus SDK for Visual 5 Debugging
Studio 5.5 Development Support Tools for YRC1000 and YRC1000micro
NOTICE
Use this function only when debugging the application.
When the application is released, return the parameter to the original
value, and then load the application from within maintenance mode as
usual.
5-8 169286-1CD 61 of 85
169286-1CD
5-9 169286-1CD 62 of 85
169286-1CD
MotoPlus SDK for Visual 5 Debugging
Studio 5.5 Development Support Tools for YRC1000 and YRC1000micro
NOTICE
This tool automatically launches when selecting “Start Debugging” [F5].
5-10 169286-1CD 63 of 85
169286-1CD
5-11 169286-1CD 64 of 85
169286-1CD
MotoPlus SDK for Visual 5 Debugging
Studio 5.5 Development Support Tools for YRC1000 and YRC1000micro
5-12 169286-1CD 65 of 85
169286-1CD
mpTaskPropNameSet
Set the task name to be displayed in the Application Property List.
Syntax
int mpTaskPropNameSet(
int taskId,
char* name
);
Argument
[taskId]
Specify the task ID that is returned by using mpCreateTask().
[name]
Specify the task name. For the task name, use a maximum of 32
characters.
Return value
0: Normal end
-1: Error
NOTICE
When the information is not set, the default setting value is displayed.
5-13 169286-1CD 66 of 85
169286-1CD
MotoPlus SDK for Visual 5 Debugging
Studio 5.5 Development Support Tools for YRC1000 and YRC1000micro
5-14 169286-1CD 67 of 85
169286-1CD
5-15 169286-1CD 68 of 85
169286-1CD
MotoPlus SDK for Visual 5 Debugging
Studio 5.5 Development Support Tools for YRC1000 and YRC1000micro
Measure Time When this option is enabled, two cursors display for
measuring a time lapse in the captured data.
When adjusting the position of the cursors, any time
can be measured.
Fig. 5-12: Measure Time
5-16 169286-1CD 69 of 85
169286-1CD
Save Image / CSV The measuring results are saved as an image file or a
CSV file.
For Visual Studio, specify the destination to save and the
file name, and then press the save button.
For MotoPlus Monitor, specify the external memory
device to save to, and then press the save button.
The results are saved in the root folder of the selected
external memory device.
The name of the image file is
“PortDebugImageYYYYMMDD_HHMMSS.bmp”.
The name of the CSV file is
“PortDebugImageYYYYMMDD_HHMMSS.csv”.
YYYYMMDD_HHMMSS indicates the time stamp when
saving (Year/Month/Date/Hour/Minute/Second).
5-17 169286-1CD 70 of 85
169286-1CD
MotoPlus SDK for Visual 5 Debugging
Studio 5.5 Development Support Tools for YRC1000 and YRC1000micro
mpDebugPortInit
Initializes the debug port for the port debug function. Before using the port,
it is necessary to execute it once.
Syntax
int mpDebugPortInit(
int portNo,
char* name
);
Argument
[portNo]
Specify the port number from 0 to 4.
[name]
Specifies the name of the debug port. The port name which is specified in
this step is displayed in the window of the port debug. For the port name,
use a maximum of 32 characters.
Return value
0: Normal end
-1: Error
mpDebugPortHigh
Sets the output level of the debug port to High.
Syntax
int mpDebugPortHigh(
int portNo,
);
Argument
[portNo]
Specify the port number from 0 to 4.
Return value
0: Normal end
-1: Error
5-18 169286-1CD 71 of 85
169286-1CD
mpDebugPortLow
Sets the output level of the debug port to Low.
Syntax
int mpDebugPortLow(
int portNo
);
Argument
[portNo]
Specify the port number from 0 to 4.
Return value
0: Normal end
-1: Error
mpDebugPortLevelSet
Sets the output level of the debug port to a specified value.
Syntax
int mpDebugPortLevelSet(
int portNo,
int level
);
Argument
[portNo]
Specify the port number from 0 to 4.
[level]
Specify the output level. The valid settable range is 0 to 100.
Return value
0: Normal end
-1: Error
5-19 169286-1CD 72 of 85
169286-1CD
MotoPlus SDK for Visual 5 Debugging
Studio 5.5 Development Support Tools for YRC1000 and YRC1000micro
5-20 169286-1CD 73 of 85
169286-1CD
The serial file (MPSERIAL.DAT) is saved in the root folder of the selected
memory device.
Fig. 5-15: Serial File Acquisition Window
5-21 169286-1CD 74 of 85
169286-1CD
MotoPlus SDK for Visual 5 Debugging
Studio 5.5 Development Support Tools for YRC1000 and YRC1000micro
The key file (application name.KEY) is generated in the same folder as the
OUT file of the application.
Fig. 5-16: Protection Key Generation Window
NOTICE
• The protection key cannot be generated if the project of the
application does not exist.
• The protection key cannot be generated if the project of the
application is not built.
5-22 169286-1CD 75 of 85
169286-1CD
5-23 169286-1CD 76 of 85
169286-1CD
MotoPlus SDK for Visual 6 Alarm List
Studio
6 Alarm List
6-1 169286-1CD 77 of 85
169286-1CD
The fields $(…) are Microsoft macros for MSBuild. These are documented
online on the MSDN website.
7-1 169286-1CD 78 of 85
169286-1CD
MotoPlus SDK for Visual 7 Advanced mpBuilder Usage
Studio 7.1 Visual Studio MakeFile Project
Using the $(…) syntax, you can also insert any system Environment
Variables into the command line. Example: $(MP_VS_Install) evaluates to
the MotoPlus installation directory.
The default commands do not use all of the available command-line
arguments for mpBuilder. Here is a list of all available arguments:
• -c, --controller Required. Target YASKAWA robot
controller platform. DX100, DX200, FS100 and YRC1000
• -p, --projectFolder Required. Root folder for the MotoPlus
project.
• -n, --projectName Required. Name of your MotoPlus project.
• -o, --operation Required. Build operation to perform.
'build' = Build Project. 'clean' = Delete output files. 'rebuild' = Clean
then build.
• -b, --binaryLocation Path to the output binary. If this is not
specified, it will default to [ProjectDir]\output.
• -i, --includeDir This is the path to the standard include-
directory for your MotoPlus API header files. If this is not specified, it
will default to [InstallDir]\[Controller]\inc.
• -e, --encoding The character encoding of your source
files. Example: “US-ASCII” or “UTF-8”. A list of supported encodings
can be found in the Microsoft documentation for EncodingInfo.Name
• -l, --library 'Y' if you are building a MotoPlus Library
file. 'N' if you are building a .out Executable module.
• -d, --dontParseErrors 'T' (true) if you want to see the unmodified
error/warning strings returned from the compiler. Otherwise, they will
be parsed and formated to be recognized by Visual Studio.
• -v, --visualStudioVersion Must be specified for VS2008 (v=9).
Ignored for Visual Studio 2010 - 2013.
7-2 169286-1CD 79 of 85
169286-1CD
The arguments for the GCC build system are specified in the .mps files,
which are automatically added to your MotoPlus for Visual Studio project.
NOTICE
Please see the GCC documentation for all available arguments to the
build system.
7.2.1 CompilerArguments.mps
This file is used when compiling source files into binary objects. This can
be used to control many variables in the build system.
• Project-wide DEFINE statements
• Enable/disable particular errors and warnings
• Compiler code optimization (not recommended)
• Directories to search for include-files for the project
There are macros which can be placed in the .mps file which will be
recognized by mpBuilder and resolved prior to calling the compiler.
• ~ProjectDir~ : This will resolved to the temporary directory where the
source files are copied and converted to ASCII encoding at build
time.
• ~IncludeDir~ : This is the standard include directory to search for
MotoPlus API header files. If the -i argument is specified to
mpBuilder.exe, then this macro will resolve to the value of the -i
argument. Otherwise, it will default to
[MP_VS_Install]\[Controller]\inc
• ~FilePath~ : This will resolve to the full path of the source file being
compiled. Please note that it will point to the ASCII copy of the
source file, located in the temp directory.
• ~OutputPath~ : This will resolve to the full path of the compiled
object file which is the output from the compiler.
7.2.2 LinkerArguments.mps
This file is used when linking the compiled object files into a single binary
executable/library. There are macros which can be placed in this .mps file
which will be recognized by mpBuilder and resolved prior to calling the
compiler.
• ~FileList~ : This is the list of compiled object files which will be
combined into the final output file.
• ~OutputPath~ : This is the full path to the final output file.
7-3 169286-1CD 80 of 85
169286-1CD
MotoPlus SDK for Visual Appendix A
Studio A.1 Compatibility with Windows 8/10
Appendix A
NOTICE
The following compatibility issues are not applicable to MotoPlus SDK
v1.1.0 or higher. The fixes below are only required for older versions.
A-1 169286-1CD 81 of 85
169286-1CD
Solution:
You must explicitly run Visual Studio as Administrator each time you
launch the application. Please note that simply having an Administrator
user account is not sufficient. When launching Visual Studio, you must
right-click and select {Run as Administrator}.
NOTICE
You must perform this every time you want to open Visual Studio.
A-2 169286-1CD 82 of 85
169286-1CD
MotoPlus SDK for Visual Appendix A
Studio A.1 Compatibility with Windows 8/10
A-3 169286-1CD 83 of 85
169286-1CD
Appendix B
CAUTION
• Update Visual Studio 2015 to “update 2” or greater.
Not updating Visual Studio to “update 2” or greater will prevent
compiling MotoPlus apps.
MotoPlus SDK for Visual Studio is compatible with Visual Studio 2015.
B-1 169286-1CD 84 of 85
MOTOPLUS SDK
FOR VISUAL STUDIO
USER’S MANUAL
FOR: DX100, DX200, FS1000, YRC1000, AND YRC1000micro
MANUAL NO.
169286-1CD 7 85 of 85