MotionWorks+™ Windows Software and
Icon-Based Programming Manual
MotionWorks+™
WARNING
YASKAWA manufactures component parts that can be used in a wide variety
of industrial applications. The selection and application of YASKAWA
products remain the responsibility of the equipment designer or end user.
YASKAWA accepts no responsibility for the way its products may be incorporated into the final system design.
Under no circumstances should any YASKAWA product be incorporated into
any product or design as the exclusive or sole safety control. Without
exception, all controls should be designed to detect faults dynamically under
all circumstances. All products designed to incorporate a component part
manufactured by YASKAWA must be supplied to the end user with appropriate warnings and instructions as to that part’s safe use and operation. Any
warnings provided by YASKAWA must be promptly provided to the end user.
YASKAWA offers an express warranty only as to the quality of its products in
conforming to standards and specifications published in YASKAWA’s
manual. NO OTHER WARRANTY, EXPRESS OR IMPLIED, IS OFFERED.
YASKAWA assumes no liability for any personal injury, property damage,
losses, or claims arising from misapplication of its products.
This manual is divided into two sections. The first section covers the user interface and other features
of the Windows application. The second section covers machine functions in general, and contains
details about the icon-based programming environment and its interface to the controller. Program
examples are included in the appendix.
This manual was updated to correspond with the software version 2.83.
1
Notes
MotionWorks+™
2
MotionWorks+™System Requirements
1. MotionWorks+™
1.1System Requirements
* Microsoft(R) 95/98/NT/2000 operating systems.
* Minimum - 133MHz, 64MB memory, 100MB hard disk space.
* Recommended 350MHz, 128MB memory, 500MB hard disk space.
* High Color (16-bit) Color Palette display setting.
* Microsoft (R-compatible mouse).
* 100MB of free disk space to install the application and all supporting libraries.
1.2Installation
The installation of MotionWorks+™ consists of three separate programs, which are
automatically installed by the Install Wizard. They are: MotionWorks+™, Electronic
CamTool, and CimScope.
First, remove any previous versions. When removing MotionWorks+™, these three
programs must be removed using the Add/Remove Programs feature of the Windows
control panel. After installation, Windows must be restarted for the installation to be
complete.
3
Introduction To Software FeaturesMotionWorks+™
1.3Introduction To Software Features
MotionWorks+™ incorporates the following features and tools to aid in the creation of
motion control programs.
1. Project Window
Displays and allows editing of application information in a file manager-type
structure.
2. Properties Window
Used to edit and view block information. These are called properties.
3. Program Window
Shows the graphical program layout; i.e., motion control programs are created by
connecting blocks together.
4. Block Toolbar
Used to drag and drop blocks on the Program Window.
4
MotionWorks+™Introduction To Software Features
5. Expression Builder (below)
Accessible by double-clicking on block properties. It aids in creating calculations for
a variety of purposes.
6. The Debugging Tools consist of the following:
• Monitoring / Data - View and change data values online.
• Monitoring / I/O - Displays a graphical view of I/O data and other system variables
for verification of hardware connections and debugging.
• Monitoring / Program - Displays current block numbers for all active programs and
shows the program and subroutine names.
• Monitoring/Scope - Records specific information in the controller, then uploads it to
MW+ for display as a graph.
5
Creating A ProjectMotionWorks+™
1.4Creating A Project
A project is a collection of files, all of which pertain to a specific job. Each project
occupies its own directory for easy portability.
Accessibility
To access the New Project dialog box select:
• From the Main Menu > File > New Project
• From the Standard Toolbar > New > New Project (from the drop down list)
• Hot Key: Ctrl+N
1. Input the project name and file system location. The length of the project name may be up
to 255 characters, including spaces. Characters not allowed in the project name are /, \, :,
*, ?, “, <, >, and |.
2. Display the New Program dialog box to add a program to the project. This can be done
either from the main menu, or from the Project Explorer by selecting Project > Add - Program > New Program. The following window appears:
3
2
4
5
1
6
MotionWorks+™Creating A Project
1. New Program Name
The character restrictions applying to the project name apply to the program name.
Characters not allowed in the project name are /, \, :, *, ?, “, <, >, and |.
2. Program Number
In addition to creating a name, select a program number. Add programs to empty
locations or replace existing programs by clicking any of the program numbers in the
list.
3. Scan Type
There are two choices for scan speed: high and low. Priority levels must be
considered when selecting scan speed. For example, high speed is recommended for
critical I/O that must be monitored frequently. Low speed is sufficient for low priority
events such as operator push buttons. Each program executes one block in the scan
period.
Note: High and low scans must be an even multiple of each other. For eaxmple: 2/10,
4/16, etc.
4. Active
Select the Active checkbox to indicate whether the program is to be incorporated
during project compilation. During project debugging, it may be helpful to deactivate
certain programs to isolate problems. Deactivated programs will not be compiled or
downloaded.
5. Autostart
The Autostart checkbox indicates whether the program automatically executes its
START block when the power is initially turned on. If Autostart is not selected,
programs can be launched later by incorporating a LAUNCH PROGRAM block in
another program. At least one program in the project must be selected for autostart in
order to ensure execution.
7
Saving A ProjectMotionWorks+™
1.5Saving A Project
All files contained in the project are saved when the SAVE icon is pressed. If the project
is not saved before exiting MotionWorks+™, a Save Project window appears. All the
files that have been changed are displayed. Select the files to be saved at this time. (The
default is to save all changed files.) The user must de-select the names of any files that
are not to be saved. The Cancel button aborts closing MotionWorks+™, and does not
save any files.
Accessibility
To save a project, select
• From the Main Menu > File > Save Project
• From the Standard Toolbar > Save
8
MotionWorks+™The Project Explorer
1.6The Project Explorer
Project Explorer is used to navigate among windows in the main programming area.
This window can be dragged, resized, docked, and undocked. All folders and their
documents are shown below. To view any of the items below, double-click on the file.
Accessibility
To open the Project Explorer, select
• From the Main Menu View > Project Explorer
Programs
This folder contains a list of all programs within the project. A maximum of eight
programs can be created.
Accessibility
To view programs and create new programs:
• Right-click on the project name or the Programs folder. Select New Program from
the sub-menu.
9
The Project ExplorerMotionWorks+™
Program Definition
The Program Definition window displays the properties of each program within the
project. The properties may be edited on this screen.
Accessibility
The Program Definition window is displayed as follows:
• Automatically appears when a new program is created
• From Project Explorer > right-click on the project name > select Program Definition
from the sub-menu
• From Project Explorer > right-click on Programs > select Program Definition from
the sub-menu
• From the Main Menu > Project > Program > Definition
Scan Type
Select either High or Low scan for each of the projects programs. This configuration
determines the interval that blocks are executed.
Active
This setting controls if a program is included in the compile & download. Useful for
debugging.
10
MotionWorks+™The Project Explorer
Auto Start
The setting controls which programs start executing automatically when the power is
applied. Programs set to “Auto Start=false” can be started later using the LAUNCH
block.
Subroutine Definition
When New Subroutine is selected, a new untitled program window is added to the
project; the START and END blocks automatically appear. The File > Save Subroutine
As function is recommended at this time. The new subroutine does not appear in Project
Explorer until it has been named.
Accessibility
To access the subroutine definitions, select:
• From the Main Menu > Project > New
• From the Standard Toolbar > New > Subroutine
• From the Project Explorer > right-click on the project name > Subroutine > New
Configuration
System Parameters
The system parameters are mainly comprised of tuning gains and limit settings. The
tool tip of each parameter shows the operation mode in which each gain applies. The
parameters can be written to the hard disk. Parameters can also be read from or written to the controller.
Accessibility
To access the system parameters, select:
• From the Project Explorer > Configuration > System Parameters
• From the Main Menu > Project > Configuration > System Parameters
11
The Project ExplorerMotionWorks+™
Important Note!!
Parameters are updated in the controller after a value is changed if MotionWorks+™ is online with the controller. However, if the new values are to be saved
with the project and retained after power cycle, the project must be downloaded.
12
MotionWorks+™The Project Explorer
System Properties
Systems properties allow the controller to be configured using the windows shown
below.
Accessibility
To access the System Properties, select
• From the Project Explorer > Configuration > System Properties
• From the Main Menu > Project > Configuration > System Properties
• System Properties already open, but not visible; From the Main Menu > Window
List
Right clicking on any of the modules will display a menu with following choices:
• Get from the controller
• Import
• Export
• Restore default
• Send to controller
These menu items are available when right clicking on any of the components in system
properties. Their actions affect only the component selected.
Important Note: Performing “Send to Controller” will suffice when making changes that
are to be permanently stored in controller memory with the exception of the MP940 and
External Encoder properties. For these two modules only, the changes are only
temporary, meaning that the power on values will be from the last project download.
Machine Cycles
MW+ does not support support machine cycles with fractional pulses. This may present
a problem for applications such as flying shear / web handling / camming. In general,
axes that are set to “Rotary” mode will suffer from fractional pulses being “lost” each
machine cycle. To determine if the system has fractional pulses, perform the following
check:
Encoder
Resolution
131072
Gear BoxMachine
43 Input
--------------------------
×17×
11 Output
Cycle
Feed
Constant
360 Units
-------------------------
÷8710330.188888=
1 rev
Machine Cycle Counts
As can be seen from the machine cycle count, a loss of .19 cycles will occur with each
revolution. Compensate for this loss by using the Slave Offset function. For an introduction on using the Slave Offset function, see “How does SLAVE OFFSET work? How
would an application benefit from using slave offset?” on page 220.
13
The Project ExplorerMotionWorks+™
14
MotionWorks+™The Project Explorer
SGDH
When the SGDH module is selected, the following properties appear in the properties window: When an MP940 controller is used with an SGDH, it is recommended to set the
parameters of the amplifier through the controller instead of the front panel of the amplifier. This method ensures that parameter values are retained with the project and downloaded properly.
PropertyDefaultMinMaxDetails (online Help message)
Pn0009000FB1Function Selection Basic Switches. See sections 5.1.1 and
5.3.5 of SGDH manual.
Pn001001122Function Selection Application Switches 1. See sections 5.1.2,
5.4.2, and 5.5.7 of SGDH manual.
Pn0021104113Function Selection Application Switches2. See sections 5.2.8,
5.2.9, and 5.7.2 of SGDH manual.
Pn0032000FFFunction Selection Application Switches 3. See section 6.5 of
SGDH manual.
Pn1004012000Speed Loop Gain in Hz. This is an important component of
servo tuning, this parameter acts as the derivative gain. See
section 6.2.1 of SGDH manual.
Pn10120001551200Speed Loop Integral Time Constant in 0.01ms. This is an impor-
tant component of servo tuning. See section 6.2.1 of SGDH
manual.
15
The Project ExplorerMotionWorks+™
PropertyDefaultMinMaxDetails (online Help message)
Pn1024012000Position Loop Gain in 1/s. This parameter is not applicable
when using MP940. See section 6.2.1 of SGDH manual.
Pn103100010000Inertia Ratio in percentage. See sections 6.2.1 and 6.3.3 of
SGDH manual.
Pn10440120002nd Speed Loop Gain in Hz. This parameter is switchable with
Pn100 based on user input. This is an important component of
servo tuning, this parameter acts as the derivative gain. See
section 6.2.1 of SGDH manual.
Pn10520001551200 2nd Speed Loop Integral Time Constant in 0.01 ms. This
parameter is switchable with Pn101. This is an important component of servo tuning. See section 6.2.1 of SGDH manual.
Pn10640120002nd Position Loop Gain in 1/s. This parameter is not applicable
when using MP940. See section 6.2.1 of SGDH manual.
Pn10700450Bias in rpm. See section 6.2.4 of SGDH manual.
Pn10870250Bias Width Addition in reference units. See section 6.2.4 of
SGDH manual.
Pn10900100Feed Forward in percentage. This parameter is not applicable
when MP940 is used. Use pGain_FeedForward. See section
6.2.2 of SGDH manual.
Pn10A006400Feed-forward Filter Time Constant in 0.01ms. This parameter
is not applicable when MP940 is used. See section 5.2.5 of
SGDH manual.
Pn10B000400002014Gain-related Application Switches. See section 6.2.5 of SGDH
manual.
Pn10C2000800Mode Switch Torque Reference in percentage. See section
6.2.5 of SGDH manual.
Pn10D0010000Mode Switch Speed Reference in rpm. See section 6.2.5 of
SGDH manual.
Pn10E003000Mode Switch Acceleration in 10rpm/s. See section 6.2.5 of
SGDH manual.
Pn10F0010000Mode Switch Error Pulse in reference units. This parameter is
not applicable when using MP940. See section 6.2.5 of SGDH
manual.
Pn110001200002014Online Autotuning Switches. See section 6.3.4 of SGDH man-
ual.
Pn1111001100Speed Feedback Compensation in percentage. See section
6.2.6 of SGDH manual.
Pn200001239Position Control Reference Selection Switches. This parameter
is not applicable when using MP940. See section 5.2.2 of
SGDH manual.
Pn201163841616384PG Divider in pulses per revolution. This parameter is not
applicable when using MP940. See section 5.2.3 of SGDH
manual.
Pn202163841616384Electronic Gear Ratio (Denominator). This parameter is not
applicable when using MP940. See section 5.2.5 of SGDH
manual.
16
MotionWorks+™The Project Explorer
PropertyDefaultMinMaxDetails (online Help message)
Pn2031165535Electronic Gear Ratio (Denominator). This parameter is not
applicable when using MP940. See section 5.2.5 of SGDH
manual.
Pn204006400Position Reference Accel/Decel Parameter in 0.01ms. This
parameter is not applicable when using MP940. See section
6.1.2 of SGDH manual.
Pn20565535065535Multi-turn Limit Setting in revolutions. This parameter is not
applicable when using MP940. See section 6.1.2 of SGDH
manual.
Pn2061638451365535Reserved in pulses per revolution. This parameter is not appli-
cable when using MP940. See section 6.1.2 of SGDH manual.
Pn2070011Position Control Function Switches. This parameter is not
applicable when using MP940. See sections 5.2.9 and 6.1.2 of
SGDH manual.
Pn208006400Position Reference Movement Averaging Time in 0.01ms.
This parameter is not applicable when using MP940. See sec-
tion 6.1.2 of SGDH manual.
Pn3006001503000Speed Reference Input Gain in 0.01volt / rated speed. See sec-
tion 5.2.1 of SGDH manual.
Pn301100010000Speed 1in rpm. See section 5.2.6 of SGDH manual.
Pn302200010000Speed 2 in rpm. See section 5.2.6 of SGDH manual.
Pn303300010000Speed 3 in rpm. See section 5.2.6 of SGDH manual.
Pn304500010000Jog Speed in rpm. See section 5.3.2 of SGDH manual.
Pn3050010000Soft Start Acceleration Time in ms. See section 6.1.1 of SGDH
manual.
Pn3060010000Soft Start Deceleration Time in ms. See section 6.1.1 of SGDH
manual.
Pn30740065535Speed Reference Filter Time Constant in 0.01ms.
Pn3080065535Speed Feedback Filter Time Constant in 0.01ms. See section
6.2.6 of SGDH manual.
Pn4003010100Torque Reference Input Gain in 0.1V / rated torque. See sec-
tion 5.2.7 of SGDH manual.
Pn401100065535Torque Reference Filter Time Constant in 0.01ms. See section
6.1.5 of SGDH manual.
Pn4028000800Forward Torque Limit in % of rated torque. See section 5.1.3 of
SGDH manual.
Pn4038000800Reverse Torque Limit in % of rated torque. See section 5.1.3 of
SGDH manual.
Pn4041000800Forward External Torque Limit in % of rated torque. See sec-
tion 5.1.3 of SGDH manual.
Pn4051000800Reverse External Torque Limit in % of rated torque. See sec-
tion 5.1.3 of the SGDH manual.
Pn4068000800Emergency Stop Torque in % of rated torque. See section 5.1.2
of SGDH manual.
Pn40710000010000Speed Limit during Torque Control in rpm. See section 5.2.7 of
SGDH manual.
17
The Project ExplorerMotionWorks+™
PropertyDefaultMinMaxDetails (online Help message)
Pn408001Torque Function Switches. See section 6.1.6 in SGDH manual.
Pn4092000502000Notch Filter Frequency in Hz. Only effective when the SGDH is
used in torque mode. See section 6.1.6 in SGDH manual.
Pn50070250Positioning Completed Width in pulses. It is recommended to
use sPosition_CompletionWindow instead. See section 5.5.3
of SGDH manual.
Pn50110010000Zero Clamp Level in rpm. See section 5.4.3 in SGDH manual.
Pn50220110000Rotation Detection Level in rpm. See section 5.5.5 of SGDH
manual.
Pn503100100Speed Coincidence Signal Output Width in rpm. See section
5.5.4 of SGDH manual.
Pn50471250NEAR Signal Width in pulses. See section 5.5.8 of SGDH man-
ual.
Pn5051024132767Overflow Level in 256 pulses. This parameter is not applicable
when the SGDH is used with the MP940. See section 6.2.1 of
SGDH manual.
Pn5060050Brake Reference Servo OFF Delay Time in 10ms. See section
5.4.4 of SGDH manual.
Pn507100010000Brake Reference Output Speed Level in rpm. See section 5.4.4
of SGDH manual.
Pn5085010100Timing for Brake Reference Output during Motor Operation in
10ms. See section 5.4.4 of SGDH manual.
Pn50920201000Momentary Hold Time in ms. See section 5.4.9 of SGDH man-
ual.
Pn50A28810FFFFInput Signal Selections 1. See section 5.3.3 of SGDH manual.
Pn50B88830FFFFInput Signal Selections 2. See section 5.3.3 of SGDH manual.
Pn50C88880FFFFInput Signal Selections 3. See section 5.3.3 of SGDH manual.
Pn50D88880FFFFInput Signal Selections 4. See section 5.3.3 of SGDH manual.
Pn50E321103333Output Signal Selections 1. See section 5.3.4 of SGDH man-
ual.
Pn50F003333Output Signal Selections 2. See section 5.3.4 of SGDH manual.
Pn5100033Output Signal Selections 3. See section 5.3.4 of SGDH man-
ual.
Pn51165410FFFFInput Signal Selections 5. See section 5.3.3 of SGDH manual.
Pn51200111Output Signal Reversal Settings. See section 5.3.4 of SGDH
manual.
Pn600009000Regenerative Resistor Capacity in watts. See section 5.6.1 of
SGDH manual.
18
MotionWorks+™The Project Explorer
COM1
When the COM1 module is selected, the following properties appear in the properties
window.
PropertyDefaultMinimumMaximumDetail
Address1063—
Baud Rate19200960019200—
FunctionSlave———
ProtocolMemobus——Fixed
Transmission ModeRTU——Fixed
Address:Select between 0 and 63.
Baud Rate:The choices are 9600 and 19200bps.
Function:Fext at “Slave”.
Protocol:This is fixed at Memobus for MW+ projects.
Transmission Mode:
This is fixed at RTU for MW+ projects.
19
The Project ExplorerMotionWorks+™
COM2
When the COM2 module is selected, the following properties appear in the properties
window.
PropertyDefaultMinimumMaximumDetail
Address1063—
Baud Rate19200960019200 bps
FunctionSlave——Selection
ProtocolMemobus——Fixed
Transmission ModeRTU——Fixed
Transmission TypeRS422RS422RS485Selection
Address:Select between 0 and 63.
Baud Rate:The choices are 9600 and 19200
Function:Fixed at “Slave”.
Protocol:This is fixed at Memobus for MW+ projects.
Transmission Mode:
This is fixed at RTU for MW+ projects.
Transmission Type:
RS 422 and RS 485 are the 2 choices.
20
MotionWorks+™The Project Explorer
MP940
When the MP940 module is selected, the following properties appear in the properties
window.
Note: When right clicking on this module, the properties can be sent to the controller,
but only to RAM. Compile & Download is required to retain values after power cycle.
Battery Test:If enabled, the controller tests the battery voltage and sets the
battery alarm LED on the front of the controller accordingly,
and sets mAlarm_Battery.
If disabled, the battery alarm LED does not light.
Encoder Resolution:
Set the quadrature number of encoder pulses per motor revolution.
Encoder Type:Select either “incremental” or “absolute”. This setting deter-
mines whether the MP940 automatically reads the absolute
encoder at power up.
Feed Constant:The number in user units that the load travels for each revolu-
tion of the final output shaft of the mechanical system.
Final Output ShaftDetailFeed Constant
Ball screw6mm pitch6
Conveyor beltroller = 4in diameter
Belt and pulleylast pulley = 10in diameter
4 x
10 x
π
π
Gear Box Input:If a mechanical gear box is used, enter the value which corre-
21
The Project ExplorerMotionWorks+™
sponds to the number of times the input shaft rotates for the
number of times the output shaft rotates. These are integer values. If a 10:1 gear box is used, enter “10” for the gear box
input.
Gear Box Output:
If a mechanical gear box is used, enter the value which corresponds to the number of times the input shaft rotates for the
number of times the output shaft rotates. These are integer values. If a 10:1 gear box is used, enter “1” for the gear box output.
High Scan Setting:
This value determines the interval at which blocks are executed
in high scan programs. One block from each high scan program
will execute in this time interval, some will take longer based
on specific block conditions.
Load Type:Select either linear or rotary. Linear implies an axis that has
finite travel range. Rotary implies an axis that rotates in one
direction only, but with a cyclic period. When “Rotary” is
selected, the position data is automatically modularized to fit
within one cyclic period or machine cycle.
Low Scan Setting:
This value determines the interval at which blocks are executed
in low scan programs.
Machine Cycle:This is the maximum position value of the main axis. When
this value is reached, the position will indicate “0”. Machine
cycle is only applicable if Load Type is set to “Rotary”. If the
application is a rotary table, this value may be the same as the
Feed Constant. Note: If the machine cycle in user units does
not equate to an integer number of pulses, the positioning units
will drift. In this case, program an offset at periodic intervals to
compensate for lost pulses. See note at the beginning of the
System Property section about Machine Cycle limitations.
Motor Rated Speed:
Enter the rated speed of the motor in rpm.
User units:Select from “centimeters”, “degrees”, “inches”, “microns”,
“millimeters”, or “pulses”. Custom units may also be entered.
22
MotionWorks+™The Project Explorer
External Encoder
When external encoder is selected, the following properties appear in the properties
window.
These properties are effective for both real and virtual encoders. A virtual encoder is
useful for simulating a machine or creating a time based cam profile. The system
properties for External encoder apply for either mode, making the user units the same.
The virtual encoder is activated by setting the system variable sExternalMode to “1”.
Note: When right clicking on this module, the properties will be sent to the controller,
but only to RAM. Compile & Download is required to retain values after power cycle.
Gear Box Input:If a mechanical gear box is used, enter the value which corre-
sponds to the number of times the input shaft rotates for the
number of times the output shaft rotates. These are integer values. If a 10:1 gear box is used, enter “10” for the gear box
input.
23
The Project ExplorerMotionWorks+™
Gear Box Output: If a mechanical gear box is used, enter the value which corre-
sponds to the number of times the input shaft rotates for the
number of times the output shaft rotates. These are integer values. If a 10:1 gear box is used, enter “1” for the gear box output.
Machine Cycle:This is the maximum position value of the external axis. When
this value is reached, the position wraps back to “0”. Machine
cycle is only applicable if Movement Type is set to “Rotary”. If
the application involves camming, the machine cycle may be
the product length. Note: If the machine cycle in user units
does not equate to an integer number of pulses, the positioning
units will drift. In this case, program an offset at periodic intervals to compensate for lost pulses. See note at the beginning of
the System Property section about Machine Cycle limitations.
Movement Type:Select either “linear” or “rotary”. Rotary implies an axis that
rotates in one direction only, but with a cyclic period. The position data is automatically modularized to fit within one cyclic
period or machine cycle when rotary is selected.