The following conventions are used to indicate precautions in this manual. Failure to heed precau-
tions provided in this manual can result in serious or possibly even fatal injury or damage to the prod-
ucts or to related equipment and systems.
Safety Information
WARNING
!
CautionIndicates precautions that, if not heeded, could result in relatively serious or minor
!
The warning symbols for ISO and JIS standards are different, as shown below.
The ISO symbol is used in this manual.
Both of these symbols appear on warning labels on Yaskawa products. Please abide by
these warning labels regardless of which symbol is used.
Indicates precautions that, if not heeded, could possibly result in loss of life or
serious injury.
injury, damage to the product, or faulty operation.
ISOJIS
Yaskawa, 1999
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form,
or by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permission of
Yaskawa. No patent liability is assumed with respect to the use of the information contained herein. Moreover, because
Yaskawa is constantly striving to improve its high-quality products, the information contained in this manual is subject to
change without notice. Every precaution has been taken in the preparation of this manual. Nevertheless, Yaskawa assumes no responsibility for errors or omissions. Neither is any liability assumed for damages resulting from the use of the
information contained in this publication.
iii
Visual Aids
The following aids are used to indicate certain types of information for easier reference.
A
EXAMPLE
INFO
IMPORTANT
TERMS
Indicates application examples.
"
Indicates supplemental information.
Indicates important information that should be memorized.
Describes technical terms that are difficult to understand, or appear in the text without an
SIEZ-C887-1.2Describes the instructions used in MP9
ladder logic programming.
SIEZ-C887-1.3Describes the motion instructions used by
MP9jjMachine Controllers.
Part 1:
SIEZ-C887-2.2−1
Part2:
SIEZ-C887-2.2−2
Describes the installation and operating procedures for the CP-717 Engineering Tool
Programming Software for MP9
Machine Controllers.
jj
jj
ix
Using This Manual
Intended Audience
J
This manual is intended for the following users.
D Those responsible for estimating the MP930 system
D Those responsible for deciding whether to apply the MP930 system
D Those responsible for designing the MP930 system so that it can be mounted in the control and
operating panels
D Those responsible for making, inspecting, testing, adjusting, and maintaining the control and op-
erating panels in which the MP930 is mounted
Description of Technical Terms
J
In this manual, the following terms are defined as follows:
D PP = Programming Panel
D PC = Programmable Logic Controller
D “−− ” in “MOV [axis1]−−...” represents numeric data for axis 1.
x
Safety Precautions
This section describes precautions that apply to ladder programming. Before programming, always
read this manual and all other documents provided to ensure correct programming. Before using the
equipment, familiarize yourself with equipment details, safety information, and all other precau-
tions.
Installation
J
D Firmly tighten the Module mounting screws and terminal block mounting screws to
prevent them from loosening during operation.
Loose screws may result in a malfunction of the MP930.
Safety Precautions
Caution
Module mounting screw (M4, Phillips head)
D Be sure to turn OFF the MP930 before installing it.
D Insert the connectors of the cables that are to be connected to the MP930 and secure them well.
Incorrect insertion of the connectors may result in a malfunction of the MP930.
Wiring
J
Caution
D Always connect a power supply that meets the given specifications.
Connecting an inappropriate power supply may cause fires.
D Wiring must be performed by qualified personnel.
Incorrect wiring may cause fires, product failure, or malfunctions.
D Do not accidentally leave foreign matter such as wire chips on the Mounting Base or in
the Module when wiring.
This may cause fires, failures, and malfunctions.
xi
Mandatory
D Always use the ground the FG terminal to a ground resistance 100 Ω or less.
Failure to ground the MP930 may result in electrical shocks or malfunctioning.
Select, separate, and lay external cables correctly.
D Consider the following items when selecting the I/O signal lines (external cables) to connect the
MP930 Module to external devices.
S Mechanical strength
S Noise interference
S Wiring distance
S Signal voltage, etc.
D Separate the I/O signal lines from the power lines both inside and outside the control panel to re-
duce the influence of noise from the power lines.
If the I/O signal lines and power lines are not separated properly, malfunctioning may result.
Example of Separated External Cables
Power
circuit
cables
General
control circuit cables
Steel separator
Digital I/O
signal
cables
J Application Precautions
WARNING
D Do not touch any Module terminals when the system power is ON.
There is a risk of electrical shock.
Caution
D Do not attempt to modify the MP930 programs, force outputs, switch between RUN and STOP, or
performed other similar operations while the MP930 is operating without knowing the direct and
indirect consequences of the operation.
Incorrect programming or operation may damage the equipment or cause an accident.
xii
Safety Precautions
J Maintenance Precautions
WARNING
D Make sure that the polarity of the Module’s built-in battery is correct. The battery must be installed
correctly and must not be charged, disassembled, heated, thrown into fire, or short-circuited.
Improper handling may cause the battery to explode or ignite.
Caution
D Do not attempt to disassemble or modify the MP930 Module in any way.
Doing so can cause fires, product failure, or malfunctions.
D The customer must not replace the built-in fuse.
If the customer replaces the built-in fuse, the MP930 Module may malfunction or break down.
The built-in fuse must always be replaced by Yaskawa service staff.
J General Precautions
Always note the following to ensure safe use.
D MP930 was not designed or manufactured for use in devices or systems directly related to human
life. Users who intend to use the product described in this manual for special purposes such as
devices or systems relating to transportation, medical, space aviation, atomic power control, or
underwater use must contact Yaskawa Electric Corporation beforehand.
D MP930 has been manufactured under strict quality control guidelines. However, if this product is to
be installed in any location in which a failure of MP930 involves a life and death situation or in a
facility where failure may cause a serious accident, safety devices MUST be installed to minimize
the likelihood of any accident.
D Drawings in this manual show typical product examples that may differ somewhat from the product
delivered.
D This manual may change without prior notice due to product improvements and specification
changes or for easier use. We will update the manual number of the manual and issue revisions
when changes are made. The revision number of the revised manual appears on the back of the
manual.
D Contact your nearest Yaskawa sales representative or the dealer from whom you purchased the
product and quote the manual number on the front page of the manual if you need to replace a
manual that was lost or destroyed.
D Contact your nearest Yaskawa sales representative or the dealer from whom you purchased the
product to order new nameplates whenever a nameplate becomes worn or damaged.
D Products modified by the customer are not covered by the Yaskawa warranty, nor does Yaskawa
assume any liability for injury or damage that may result from such modifications.
xiii
1
MP930
This chapter describes the type of work that can be done by the MP930 sys-
tem, and gives an easy-to-understand overview of the MP930.
1.1 Overview of the MP9301 - 2................
1.1.1 Appearance of MP930 Units1 - 2...................
1.1.2 Features of the MP9301 - 3.......................
1.2 Control Using the MP9301 - 5...............
1.2.1 Types of Program1 - 5............................
POSITIONING, LINEAR INTERPOLATION, CIRCULAR INTERPOLATION, HELICAL INTERPOLATION, HOME RETURN,
SKIP, SET TIME POSITIONING, and EXTERNAL POSITIONING
ACCELERATION/DECELERATION TIME, S-CURVE TIME
CONSTANT, FEED SPEED SETTING, INTERPOLATION FEED
ACCELERATION/DECELERATION TIME SETTING, MAXIMUM INTERPOLATION FEED SPEED SETTING, and so on
I/O WAIT, IF statement, WHILE statement, Parallel Execution commands, Select Execution commands, and so on
Trigonometric functions, inverse trigonometric functions, SQUARE
ROOT, and so on
1-4
1.2 Control Using the MP930
The MP930 is a machine controller with fully integrated sequence control and motion control. One
Controller simultaneously performs motion control and sequence control.
1.2 Control Using the MP930
I/O
processing
Operation panel
Programming Device
Figure 1.1MP930 System Concept
1.2.1 Types of Program
Communications
control
Ladder logic program
Sequence control
MC program start
MSEE MPM001 DAXXX
MC program
Motioncontrol
MPMxxx
.
.
.
.
.
.
.
Servo
amplifier
14 axes max.
Servomotor
1
Programs consist of ladder logic programs, which are designed mainly for sequence control,
and motion programs (called MC programs), which are designed mainly for servo control.
1-5
MP930
Equival
20
K
f
ladderl
1.2.2 Ladder Logic Programs
1.2.2 Ladder Logic Programs
JTypes of Drawing
A ladder logic program is a program used for coding the sequence logic for conditional control
and sequence control, and for coding the sequence logic that starts an MC program. The ladder
logic program is created as the basic unit called drawings (DWGs).
1
The following types of drawing are provided: Start drawing, high-speed scan drawings, low-
speed scan drawings, and user functions.
D Startup Drawings
Startup drawings are executed once when the power is turned ON. The logic used to set
constants and initialize operation is normally coded in these drawings.
D High-speed Scan Drawings
High-speed scan drawings are executed at regular intervals. The scan time is within the
range of 2 to 32 ms, and scan times can be set at 2-ms intervals. The circuits used to
the MC program are coded in the high
speed scan drawings.
-
start
D Low-speed Scan Drawings
Low-speed scan drawings are executed at regular intervals. The scan time is within the
range of 2 to 300 ms, and scan times can be set at 2-ms intervals. Sequence logic that does
not require high-speed processing, such as lamp output and display circuits, should be
coded in low-speed scan drawings.
D User Functions
User functions are defined as user commands in the coded drawings, using the commands
provided for the MP930. User functions can be used in startup drawings, high-speed scan
drawings, and low-speed scan drawings.
Types of DrawingMaximum Number
of Drawings
Startup Drawings
High-speed Scan Drawings
Low-speed Scan Drawings
User Functions
64DWG.A
100DWG.H
100DWG.L
200FUNC-xxx
Drawing and
Function Notation
1-6
Remarks
S 500 steps max. per drawing
S
S Security function can be set separately for
S Separate revision history or each drawing.
ent to
ic program memory
each drawing.
steps max. o
og-
1.2 Control Using the MP930
JConfiguration of Drawings
Drawings can be arranged in up to three hierarchical levels: parent, child, and grandchild draw-
ings. These drawings are developed downward using the SEE instruction.
Functions can be started from any drawing.
INFO
SEE Child
drawing number
Parent drawingChild drawingGrandchild drawing
Parent drawingChild drawingGrandchild
DWG.XDWG.X01.01
DWG.X01
SEE Grandchild
drawing number
Motion programs
drawing
DWG.X01.01
.
.
DWG.X01.01
DWG.Xnn
1.
X is replaced by A, H, or L.
2. A motion program can be started only from an H drawing.
3.
Motion programs are started with the MSEE instruction.
MPM001
.
.
.
MPM002
.
.
.
MPM015
User constants
FUNC-001
.
.
FUNC-006
.
.
FUNC-032
.
.
FUNC-064
1
1-7
1
MP930
1.2.3 MC Programs
1.2.3 MC Programs
An MC program codes the logic used for servo control in a motion control language. An MC
program is started using the MOTION PROGRAM CALL instruction (MSEE) in the ladder
logic program. There are two methods of designating an MC program: Direct designation of
the program number, and indirect designation of the number of the register in which the MPM
number is to be stored.
ABS;
MOTION PROGRAM
CALL instruction
MSEE MPM001 DA0000
↑
MPM number
MOV [X] _ [Y] _
MVS [X] _ [Y] _ F
IOW MB0001
MOV [X] _ [Y] _
.
.
.
Ladder logic program
03
Setting device
MC program
Figure 1.2Starting an MC Program by Direct Designation
ABS;
MOTION PROGRAM
CALL instruction
MSEE MW00200 DA0000
MPM number
Ladder logic program
MW00200
MOV [X] _ [Y] _
MVS [X] _ [Y] _ F
IOW MB0001
MOV [X] _ [Y] _
Figure 1.3Starting an MC Program by Indirect Designation
.
.
.
MC program
1-8
1.2.4 Control Signals
There are two types of control signal: 1) Group input control signals, which are shared by
groups, such as automatic operation start signals and emergency stop signals, and 2) Axis input
signals, which are used by designated axes only, such as servo ON signals and JOG signals.
The signals (variables) to be used as control signals are allocated on the Group Definition
Screen.
1.2 Control Using the MP930
Control signals
:
:
Group input signals
Automatic operation start,
emergency stop, override,
operation mode, etc.
X axis input signals
X axis input signals
Servo ON
JOG
Other
MC program
ABS;
MOV [X] _ [Y] _
X axis
MOV [X] _ [Y] _ F _
IOW MB0001
MOV [X] _ [Y] _
Y axis
.
.
.
.
.
1
1-9
1
MP930
1.3.1 File Manager
1.3 Operation from Programming Devices
This section gives an overview of the types of operation that can be performed using peripheral
devices.
A computer running the CP-717 programming software for the ladder logic programs and motion
programs for the MP930 is called a “Programming Device.”
Communications with the Unit are enabled by connecting a Programming Device to the MEMO-
BUS port of the MP930 MC Unit using a special cable.
The following operations can be performed from the Programming Device.
1.3.1 File Manager
The following folder and file management functions and file transfer functions are performed.
D File management
D User management
D File transfer
D Online/offline
D Logging off
D CPU control
1 -10
1.3.2 System Information Definitions
The following information definitions are set.
D System definitions
D Scan time settings
D Application settings
1.3 Operation from Programming Devices
D Module configurations
D Failure monitoring
D Data traces
D Group definitions
D Motion parameters
1
1-11
MP930
1.3.3 Programming
1.3.3 Programming
The following ladder logic programs and motion programs are edited.
D Main program creation
D Table format program creation
D Adjustment panel creation
1
D C registers
D Table data definitions
D Motion editor
1 -12
1.3.4 Debugging and Monitoring
The following functions are provided for debugging.
D Register list
D Adjustment panel
D Program monitor
1.3 Operation from Programming Devices
D Position monitor
D Task monitor
D Failure monitor
D Data trace monitor
1.3.5 Printing
1
The following data created for definitions and programming can be printed.
D Definitions
D Drawings and functions
D Motions
D Table data
D Registers
1 -13
2
MP930 Specifications and System
Configuration
This chapter explains the MP930 Unit specifications, together with the
products used in the system configuration of the MP930.
2.1 Specifications2 - 2.........................
2.1.1 General Specifications2 - 2.......................
Equivalent to 4 Ksteps (varies according to amount of motion program used; 20 Ksteps max.)
Sequence: High-speed and low-speed scan methods
CP language
Ladder logic diagram: Relay circuit
Text-type language:Numeric operations, logic operations, etc.
2-5
MP930 Specifications and System Configuration
2.1.3 Function Lists
ItemSpecifications
2
Scanning
User Drawings and
Functions
Motion Programs
Data Memory
Trace Memory
Memory Backup
Two scan levels: High-speed scan and low-speed scan
High-speed scan time setting: 2 to 32 ms (2 ms units)
Low-speed scan time setting: 2 to 300 ms (0.1 ms units)
Start drawings (DWG.A):64 drawings max. Up to three hierarchical drawing levels
High-speed scan process drawings (DWG.H): 100 drawings max. Up to three hierarchical drawing levels
Low-speed scan process drawings (DWG.L): 100 drawings max. Up to three hierarchical drawing levels
Number of steps:Up to 500 steps per drawing
User functions:Up to 200 functions
Motion programs:Up to 256
Revision history of drawings and motion programs
Security function for drawings and motion programs
Common data (M) registers:32 Kwords
System (S) registers:1 Kwords
Drawing local (D) registers:Up to 16 Kwords per drawing
Drawing constant (#) registers: Up to 16 Kwords per drawing
Input (I) registers:2 Kwords (including internal input registers)
Output (O) registers:2 Kwords (including internal output registers)
Constant (C) registers:4 Kwords
Data trace:128 Kwords (32 Kwords × 4 groups), 16 points defined
Failure trace: 32 Kwords, 500 items defined
User memory: CMOS battery backup
Data Types
Register
Designation
Method
Instructions
Bit (relay):ON/OFF
Integer:
Double integer:−2147483648 to +2147483647
Real number:± (1.175E − 38 to 3.402E + 38)
Register number:Direct designation of register number
Symbolic designation:Up to 8 alphanumeric characters (up to 200 symbols per drawing)
With automatic number or symbol assignment
Program control instructions:14 instructions
Direct I/O instructions:2 instructions
Relay circuit instructions:14 instructions (including set and reset coils)
Logic operation instructions:3 instructions
Numeric operation instructions:16 instructions
Numeric conversion instructions:9 instructions
Numeric comparison instructions:7 instructions
Data manipulation instructions:14 instructions
Basic function instructions:10 instructions
Table data manipulation instructions: 11 instructions
DDC instructions:13 instructions
System functions:14 instructions
Executes positioning at rapid traverse
speed for up to 14 axes simultaneously.
In programming, replace “−” with the nu-
merical data for each axis.
Executes linear travel at interpolation feed
speed F for up to 14 axes simultaneously.
Executes circular interpolation at tangential
speed F for two axes simultaneously following radius R (or designated center point
coordinates).
With the center point coordinate designation, multiple circles can be designated
with T−.(T− can also be omitted.)
Moves three axes simultaneously in a combination of circular interpolation and linear
interpolation outside of the circular interpolation plane. Speed F will be the circular
interpolation tangential speed.
With the center point coordinate designation, the number of turns can be designated
with T−.(T− can also be omitted.)
2
ZRN
SKP
MVT
EXM
ZERO POINT RETURN
SKIPSKP [axis1]− [axis2]−
SET TIME POSITIONING
EXTERNAL POSITIONING
ZRN [axis1] − [axis2] − ⋅⋅⋅;
(Up to 14 axes can be designated.)
(Up to 14 axes can be designated.)
MVT [axis1]− [axis2]− ⋅⋅⋅ T−;
(Up to 14 axes can be designated.)
EXM [axis1]− D−;
2-9
Returns each axis to its zero point.
SS−;
⋅⋅⋅
If the SKIP signal turns ON during a linear
interpolation operation, skips the remaining movement and proceeds to the next
block.
Executes positioning by clamping the feed
speed so that travel can be completed at the
designated time.
When an external positioning signal is input while external positioning is being
executed, only the travel distance designated by “D−” is positioned with an incremental value, and then the next command
is executed.
MVM MOV [axis1]− [axis2]−;
or
MVM MVS [axis1]− [axis2]−;
PLD [axis1] − [axis2] − ⋅⋅⋅;Updates the program current position for
Treats all subsequent coordinate words as
absolute values.
Treats all subsequent coordinate words as
incremental values.
Changes the current values to the desired
coordinate values for up to 14 axes simultaneously. Subsequent move commands
use this new coordinate system.
Designates the coordinate plane to be used
for a command requiring a plane designation command.
Goes to the target position on the machine
coordinate system. The coordinate system
set automatically on completion of the zero
point return is called a machine coordinate
system. This coordinate system is not affected by the POS command.
axes shifted by manual intervention. Up to
14 axes can be designated.
Speed and
Acceleration/
Deceleration
ommands
ACC
SCC
VEL
IAC
IDC
IFP
FMX
ACCELERATION
TIME CHANGE
S-CURVE TIME
CONSTANT
CHANGE
SET VELOCITYVEL [axis1] − [axis2] − ⋅⋅⋅;
INTERPOLATION
ACCELERATION
TIME CHANGE
INTERPOLATION
DECELERATION
TIME CHANGE
INTERPOLATION
FEED SPEED RATIO SETTING
MAXIMUM INTERPOLATION FEED
SPEED SETTING
ACC [axis1] − [axis2] − ⋅⋅⋅;
SCC [axis1] − [axis2] −
IAC T−;
IDC T−;
IFP P−;
FMX T−;
⋅⋅⋅
Sets the acceleration time for linear acceleration/deceleration for up to 14 axes simultaneously.
;
Sets the time constant for moving average
acceleration/deceleration for up to 14 axes
simultaneously.
Sets the feed speed for up to 14 axes.
Sets the acceleration time for linear acceleration/decelerationforinterpolationtravel.
Sets the deceleration time for linear acceleration/decelerationforinterpolationtravel.
Designates the maximum feed % for the
speed designation during an interpolation
feed.
Sets the maximum speed during an interpolation feed.
The interpolation acceleration time is the
time from “0” until this speed is reached.
MVS [axis1] − [axis2] − ⋅⋅⋅
PFN;
or
PFN [axis1][axis2];
INP [axis1] − [axis2] −
SNG MVS [axis1] 100. [axis2]
200. F1000;
UFC Function_name
Input_data, Input_address,
Output_data;
sion)
;
⋅⋅⋅
Proceeds to the next block after the positioning commanded by the interpolation
travel command in the same block or a previous block enters the positioning completion range (parameter setting).
Proceeds to the next block after the positioning subsequently commanded by the
interpolation travel command with PFN
enters the second positioning completion
range.
A block with this command will be executed continuously, even in single-block operation mode.
SNG cannot be designated on its own.
Calls a function created by the user.
Substitutes operation results. Performs calculations from left to right (with no order
of priority).
2
+
−
:
/
MOD
ADDMW− =MW− +MW−;
MW− =MW− + 123456;
MW− = 123456 + MW−;
SUBTRACTMW− =MW−−MW−;
MW− =MW−−123456;
MW− = 123456 − MW−;
MULTIPLYMW− =MW− : MW−;
MW− =MW− : 123456;
MW− = 123456 : MW−;
DIVIDEMW− =MW−/MW−;
MW− =MW−/123456;
MW− = 123456/MW−;
REMAINDERMW− =MW−/MW−;
MW− = MOD;
Performs integer and real number addition.
Calculates combinations of integers and
real numbers as real numbers.
Performs integer and real number subtraction. Calculates combinations of integers
and real numbers as real numbers.
Performs integer and real number multiplication. Calculates combinations of integers and real numbers as real numbers.
Performs integer and real number division.
Calculates combinations of integers and
real numbers as real numbers.
When programmed in the next block after
a division, MOD stores the remainder in
the designated register.
The logical arithmetic expression inside
parentheses is calculated first.
If the logical operation result is “true,” the
designated bit turns ON. The designated bit
does not turn OFF, even if the logical operation result is “false.”
If the logical operation result is “true,” the
designated bit turns OFF. The designated
bit does not turn ON, even if the logical
operation result is “false.”
SIN
COS
TAN
ASN
ACS
SINESIN (MW−);
SIN (90);
COSINECOS (MW−);
COS (90);
TANGENTTAN (MF−);
TAN (45.0);
ARC SINEASN (MF−);
ASN (45.0);
ARC COSINEACS (MF−);
ACS (90.0);
Obtains the sine of the integer or real number (deg), and returns a real value.
Obtains the cosine of the integer or real
number (deg), and returns a real value.
Obtains the tangent of the real number
(deg), and returns a real value.
Obtains the arc sine of the real number
(deg), and returns a real value.
Obtains the arc cosine of the real number
(deg), and returns a real value.
ONE SCAN WAITEOX;Separates continuous sequence instructions
Branching commands
Repeat commandsWHILE (conditional expres-
MSEE MPS− ;
RET;
IF (conditional expression) ;
(process 1)
ELSE;
(process 2)
IEND;
sion) ;
…
WEND;
Executes the MPS− subroutine.
Waits for the period of time specified by T,
and then proceeds to the next block.
Stops execution of the motion program until the conditional expression given in the
command is satisfied.
Ends the motion program.
Ends the subroutine.
and forces a wait of one scan before continuing execution.
Executes process 1 if the conditional expression is satisfied, and executes process 2
if the conditional expression is not satisfied.
Repeatedly executes WHILE to WEND
processing for as long as the conditional
expression is satisfied.
PFORK
JOINTO
PJOINT
SFORK
JOINTO
SJOINT
Parallel execution
commands
Selective execution
commands
PFORK label 1, label 2,…;
Label 1: Process 1
JOINTO label X
Label 2: Process 2
JOINTO label X
Label
S
S
Label X: PJOINT;
SFORK conditional expression
1? label 1, Conditional expression 2? label 2,…;
Label 1: Process 1
JOINTO label X
Label 2: Process 2
JOINTO label X
Label
S
S
Label X: SJOINT;
Executes the blocks designated by the labels in parallel. With a subroutine, a maximum of two labels can be designated. Also,
a motion command cannot be used in the
block designated by the second label.
END and RET cannot be used during parallel execution processing.
Executes process 1 if conditional expression 1 is satisfied, and executes process 2 if
the conditional expression 2 is satisfied.
2 -14
JLadder Instructions
Table 2.8 lists the ladder instructions.
Table 2.8Ladder Instructions
2.1 Specifications
Type of Instruction Word
Instructions with [ ]
Program Control Instructions
Direct I/O Instructions
Relay Circuit Instructions
Logic Operation Instructions
Numeric Operation Instructions
Numeric Conversion Instructions
Number Comparison Instructions
Data Manipulation Instructions
Symbols
−
SEE, MSEE, FOR FEND, WHILE ON/OFF WEND, IFON/
IFOFF ELSE IEND, FSTART, FIN, FOUT, DEND, COMMENT, XCALL
SEND MESSAGEMSG-SNDMSG-SNDSending a message from a Communications Module
RECEIVE MESSAGE
COUNTERCOUNTERCOUNTERIncrements or decrements a counter.
FIRST-IN FIRSTOUT
INVERTER
TRACE READ
INVERTER
CONSTANT
WRITE
SymbolName
Instructions
DTRC-RDDTRC-RDData readout from data trace memory to user memory
FTRC-RDFTRC-RDData readout from failure trace memory to user memory
MSG-RCVMSG-RCVReceiving a message from a Communications Module
FINFOUTFINFOUTFirst-in, first-out
ITRC-RDITRC-RDReads inverter trace data to store it in user register.
ICNS-WRICNS-WRWrites inverter constant.
INVERTER
CONSTANT
READ
ICNS-RDICNS-RDReads inverter constant to register.
2 -24
2.1 Specifications
Hard
Definiti
Confi
JProgram Development Support Tool Function Specifications
Table 2.10 lists the program development support tool specifications.
Table 2.10 Program Development Support Tool Specifications
Item
Basic
ware
Basic
Software
Printer
FunctionsFile Manager
Model
CPU
Main Storage
Display
Resolution
HDD
Pointing Device
Operating System
System
ons
Specifications
IBM PC/AT or compatible
Pentium 133 MHz or better, or equivalent
64 MB min.
640 × 480 min.
(800 × 600 min. recommended)
200 Mbytes min. of unused capacity is required.
PS/2 interface
Windows 95
Windows 95-compatible
File management
User management
File transfer
System definitions
Scan time settings
2
Unit
guration
Definitions
Application information settings
Failure monitoring
Data traces
Group definitions
Motion parameters
Configuration definitions
General-purpose serial definitions
Local I/O definitions
MECHATROLINK definitions
2 -25
MP930 Specifications and System Configuration
P
P
2.1.3 Function Lists
ItemSpecifications
2
FunctionsTools
Document
Sequence
rogramming
Adjustment Panel
Creation
Table Data
Definitions
Register lists
Cross references
Disable lists
Register number searches and replacements
Comment lists
Source conversions
Printing
Property settings
Main program creation
Table format program creation
Adjustment panel creation
C register creation
Table data creation
Motion
rogramming
Motion program editor
Position monitor
Task monitor
Motion alarm
2 -26
JProgram Development Support Tool Function List
Inf
Table 2.11 lists the program development support tool functions.
Table 2.11 Program Development Support Tool Functions
2.1 Specifications
Lop−level
Function
File Management
Intermediate
Functions
File management
User management
File transfer
Lower−level Functions
Name change
New PLC registration
PLC information change
Folder/file delete
CPU logon/logoff
Online/offline
CPU status switching
Drawing/function program editing
Latest information update
User management
Default user settings
Batch transfer
Individual transfer
2
System
ormation
Definitions
System definitions
Scan time settings
Application information setting
Consecutive transfer
Flash memory transfer
Multiple CPU transfer
System definitions
Definition data save
PLC selection
Scan time setting
Setting data save
Information setting
Information save
2 -27
MP930 Specifications and System Configuration
Inf
Confi
2.1.3 Function Lists
2
Lop−level
Function
System
ormation
Definitions
Functions
Failure monitoring
Data traces
Lower−level FunctionsIntermediate
Failure definitions
Annunciator signal definitions
Failure status display
Failure occurrence display
Failure trace display
Definition data save
Definition data delete
Trace data definitions
Definition data save
Definition data delete
Trace data write
Trace data read
Data trace start
Unit
guration
Definitions
Group definitions
Motion parameters
Configuration definitions
General-purpose seri-
al port definitions
Trace data list display
Trend graph display
Group definitions
Save
Delete
Parameter setting
Save
Delete
Monitor
Configuration information setting
Save
Delete
Serial port setting
Save
Delete
2 -28
2.1 Specifications
Confi
P
Lop−level
Function
Unit
guration
Definitions
Tools
Lower−level FunctionsIntermediate
Functions
Local I/O definitions
MECHATROLINK
definitions
Register list
Cross referenceCross reference execution
Disable listDisable coil retrieval
Register number retrievalandreplacement
Local I/O setting
Save
Delete
MECHATROLINK setting
Save
Delete
Register value monitor
Display format change
Register value change
Data input
Retrieval and replacement execution
2
Document
Sequence
rogramming
Comment list
Source conversion
Printing
Properties setting
Comment creation
Comment information update
Source conversion
Conversion rules
Print data setting
Print execution
Print status display
Print setting file editing
Print results sampling
Configuration information definitions
I/O definitions
Symbolic definitions
# register list
Change history
Properties setting data save
2 -29
MP930 Specifications and System Configuration
P
C
Definiti
P
2.1.3 Function Lists
2
Lop−level
Function
Sequence
rogramming
Adjustment Panel
reation
Functions
Main program creation
Tableformat program
creation
Adjustment panel
creation
C register creation
Lower−level FunctionsIntermediate
Display mode switching
Command input
Program save
Program printing
Input mode switching
Display data input
Table editing
Table format program save
Input mode switching
Definition data input
Adjustment panel editing
Adjustment panel save
C register table list display
C register table creation
Table Data
ons
Motion
rogramming
Table data creation
Motion editor
Position monitorCurrent position coordinate display
Task monitorTask status display
Motion alarmError status display
Table data list display
Column attribute setting
Table data setting
Motion properties
Import/Export
Text editing
Debugging
Position teaching
2 -30
2.2 Basic System Configuration
This section gives an overview of the system configuration used by the MP930, together with the
various devices in this configuration.
2.2.1 List of Basic Units
Table 2.12 lists of the Units and other devices required in a system using the MP930.
2.2 Basic System Configuration
Table 2.12 List of Basic Units and Equipment
No.NameDescriptionOutline
1
MC UnitMC350Performs sequence and motion control.
2
I/O UnitIO350Expansion I/O Unit
IN: 64 points, OUT: 64 points
3
MECHATROLINK
Cable 1
4
MECHATROLINK
Cable 2
5
MC Unit I/O CableW5410Connects the MC Unit and an external device.
6
Expansion I/O Unit
I/O Cable
7
ServopackSGD-jjjN
8
Servomotor−Select from a number of Series.
9
Motor CableDP320081Power cable for motor
10
Encoder CableDB320089Connects the motor encoder and the servo amp.
W6000Used to expand the MC Unit.
Connected to the I/O Unit.
W6010Connects the Expansion I/O Unit (or MC Unit)
and servo amp.
W5410Connects the Expansion I/O Unit and an exter-
nal device.
Select a MECHATROLINK-compatible servo.
SGDB-jjAN
2
11
Software Package−Motion program and ladder logic program cre-
ation, etc.
12
Communications
Cable
13
DC power supply−24 VDC power supply for the MC Unit, Ex-
W5311Connects the MC Unit and Programming De-
vice.
pansion I/O Unit, and external I/O signals
2 -31
MP930 Specifications and System Configuration
2.2.2 Basic System Configuration
2.2.2 Basic System Configuration
The following illustration shows the basic system configuration of the MP930.
2
Control panel
Computer
Programming Panel
24-V power supply
External I/O signals
Inputs: 16 points
Outputs: 16 points
Example:
D Automatic mode
D Manual mode
D Automatic operation start
D Automatic operation stop
D Alarm reset
D Alarm occurrence
D Automatic operation in
progress
D Manual operation in
progress
D Operation ready
...
MC Unit
SW1
RDY
ERR
PRT1
BAT
...
External I/O
signals
POWER
Inputs: 64 points
Outputs: 64 points
Example:
For manual operation
D SERVO ON
D JOG+
D JOG−
D STEP+
D STEP−
D HOME RETURN
RUN
ALM
PRT2
I/O Unit
Servopack
...
Servomotors
Besides being connected to the various switches and lamps
required to run the machine, output signals can also be
connected to external devices. Can be expanded according to
the number of signals.
Forward overtravel
Reverse overtravel
Zero point return
Deceleration limit switch
External latch signals
Output signals
Servo alarm
Brake interlock
2.2.3 Precautions on System Configuration
The following precautions are on designing the system using the MP930.
D Use the connection cables specified by Yaskawa.
Various types of standard cable are provided by Yaskawa. When selecting cables, carefully
check the equipment for which the cables are to be used to avoid making any mistake.
D The customer must prepare the connection cables between the Expansion I/O Unit and the
servos.
D The Servopack that can be connected to the MP930 are the SGD- jjjN and the
SGDB-jjAN.
D The customer must provide the 24 VDC power supply.
D With the MP930, the overtravel signals, zero point return deceleration limit switch signals,
and external latch signals are connected to the servo amps.
2.2 Basic System Configuration
2
2 -33
MP930 Specifications and System Configuration
2.2.4 Programming Device
2.2.4 Programming Device
Using the CP-717 Windows 95-compatible programming software increases the ease of programming, design efficiency, and the testing efficiency.
The CP-717 is provided with special functions, as support tools for the design, testing, and
maintenance of the sequence and motion programs.
CP-717
POWER
RDY
RUN
ERR
ALM
PRT1
PRT2
BAT
2
SW1
MP930
Standard computer
Figure 2.2Programming Device
Basic Functions
The CP-717 has the five main functional areas, as shown in the following table.
NameFunctions
File Manager
Definitions
Control functions for file management and online/offline control,
logoff, CPU control, etc.
Functions for defining system definitions, such as the Unit configuration
Programming
Debugging and Monitoring
Printing
Programming functions for sequence programs (ladder logic programs) and motion programs
Functions for program maintenance management: Register lists,
adjustment panels, program monitoring, position monitoring, task
monitoring, etc.
Printing functions for definitions, programming, debugging, monitoring, etc.
2 -34
3
Basic System Operation
This chapter explains the basic operation of the MP930 system.
3.6.2 Data Types3 - 29.................................
3.6.3 Types of Register3 - 33............................
3.6.4 Using Subscripts I and J3 - 36......................
3.6.5 I/O and Registers in Functions3 - 38.................
3.6.6 Register Ranges in Programs3 - 39.................
3.7 Managing Symbols3 - 40....................
3.7.1 Symbols in Drawings3 - 40.........................
3.7.2 Symbols in Functions3 - 41........................
3.7.3 Upward Linking of Symbols3 - 42...................
3.7.4 Automatic Register Number Allocation3 - 43..........
3
3-1
3
Basic System Operation
3.1.2 Offline Stop Mode
3.1 Operating Modes
This section explains the online operating mode and the offline stop mode, both of which indicate
the MP930 operating status.
Operating modeOnline operating mode
D RDY and RUN LEDs lit
D User program and I/O operation executing
Offline stop mode
D RDY or RUN LED not lit
D User program stopped
Figure 3.1MP930 Operating modes
3.1.1 Online Operating Mode
When the power for the MP930 is turned ON, the RDY and RUN indicators will light
(the ERR and ALM indicators will not light) and the Unit will enter the online operating mode.
This means that the user program and I/O operations are being executed in the MP930 without
any errors or failures. If an alarm does occur, such as for an I/O conversion error or a user calculation error, the execution of the user program will not stop, and the online operating mode
will be maintained. The ALM indicator lights to indicate the occurrence of an error. For details
on the error content and the action to be taken, see Chapter 9 Troubleshooting.
3.1.2 Offline Stop Mode
The execution of the user program is stopped, and all outputs are reset (i.e., “0” is output for
all digital outputs). The RUN or RDY indicator will go OFF to indicate the status. Drawings
(DWG.H and DWG.L) are not executed in this status.
The Controller will be in the offline stop mode in the following four cases:
D When a scan time has not been set (see note 1)
D When the program memory has not been initialized (see note 1)
D When a serious failure, such as watchdog timer error, has occurred (see note 2)
D When a STOP operation has been performed from the CP-717 (see note 2)
D When the RUN/STOP switch has been set to OFF (STOP) and the power has been turned
ON (see note 3)
Note The above cases apply when a user program error occurs, or when there is a hard-
warefaultin the MP930. For detailsontheerrorcontent and theactiontobetaken,
see Chapter 9 Troubleshooting.
3-2
3.2 Start and Stop Sequences
This section explains the start and stop sequences of the MP930. The methods of setting the DIP
switch, the types of self-diagnosis, and the indicator patterns are also explained.
3.2.1 DIP Switch Settings
The DIP switch on the CPU Module are used to control start and stop sequences. As shown in
Figure 3.2, there are six pins on the DIP switch on the CPU Module. Table 3.1 shows the function of each pin.
ON
→
123 456
3.2 Start and Stop Sequences
3
Figure 3.2
Table 3.1DIP Switch Pin Functions
No.NameSettingFunctionDefault Setting
FLASH
1
RUN
2
INIT
3
TEST
4
Not used
5
ONUsed by the system
OFF−
ONUser program operating
OFFUser program stopped
ONNumber 4 ON: Memory clear
OFF: Programming Panel
port default
OFFOnline
ONTerminal (communications) mode
OFFOnline
ON−
OFF−
Normally set to OFF.
Normally set to ON.
Normally set to OFF.
Normally set to OFF.
Normally set to OFF.
S.TST
6
ONUsed by the system
OFFOnline
3-3
Normally set to OFF.
Basic System Operation
3.2.1 DIP Switch Settings
Memory Initialization
When the DIP switch is set according to the following procedure and the power is turned ON
or OFF, memory will be initialized, and the user programs and definition data will be deleted.
12345
3
Turn OFF the
MP930 power.
Turn ON DIP
switch pins 3 and
4.
ON
→
123 456
Turn ON the power, and check that
the RDY and
RUN indicators
flash (about 3 seconds).
Turn OFF the
power, and return
the DIP switch
pins to their original settings.
ON
→
123 456
Turn ON the power again.
Always execute memory initialization if you remove the battery when the Module power supply is turned OFF.
3-4
3.2.2 Start Sequence
The MP930 makes a number of determinations at startup. If an error is detected, the ERR indicator will flash and the error content will be indicated by the number of times the indicator
flashes. When the indicator is flashing, the CP-717 cannot be operated. For details on the error
content and the action to be taken, see Chapter 9 Troubleshooting. Table 3.2 shows the MP930
indicators.
Table 3.2Indicators and Indicator Patterns
3.2 Start and Stop Sequences
Type
Normal
Error
Alarm
Indicator
RDYRUNALMERRBAT
ALM
LitUnlitUnlitUnlitUnlitThe user program is stopped.
LitLitUnlitUnlitUnlitThe user program is executing normally.
LitLitLitLitUnlitHardware reset status (while display is contin-
uing)
UnlitUnlitUnlitUnlitUnlitDuring initial execution (while display is con-
tinuing)
Unlit−UnlitLitUnlitA serious error has occurred.
UnlitUnlitUnlitFlash-
ing
−−−−LitBattery alarm
LitLitLitUnlitUnlit
Unlit
Flashing once or twice: RAM error
1.
Flashing two or three times: ROM error
2.
3. Flashing three or four times: Peripheral
LSI error
1. Calculation error
I/O error
2.
Meaning
3
Other
Reported to the system (S) register (no indicator display)
Flashing
RDY and RUN flash repeatedly at the
same time.
UnlitUnlitLitUnlitUnlit
Flashing
UnlitUnlitUnlit
3-5
Hardware status (power loss, RUN/STOP, test
mode, etc.)
Memory initialization has been completed for
the DIP switch settings.
Offline test mode
Basic System Operation
3.2.2 Start Sequence
JMP930 Start Sequence and Basic Operation
Power ON
3
Calculated from time of
power failure and time of
power restoration
Defined on the CP-717
System Definition Screen
Test mode switch
= Test mode
= Normal mode
User memory
check
= Not damaged
Offline self-diagnosis
= Damaged
Program data:
Memory clear
Read calendar
(current value)
Time of power
failure
= 10 ms to n s * (power loss)
≧ n s (power failure) *
Report power failure
Designated start
= Continuous
Report continuous
operation
Start mode
= New
Report new operation
= Continuous
= New
Report power loss
Designated start
= Continuous
Report continuous
operation
= New
Startup self-diagnosisI/O output
(power failure data)
Detect RUN switch
Start watchdog timer
Execute DWG.A
Low-speed
scan
InputOnline self-diagnosis
Execute DWG.LExecute DWG.H
Output
The time for power loss is defined on the CP-717 System Definition Screen.
*
High-speed
scan
Input
Output
Ground
3-6
3.2 Start and Stop Sequences
The MP930 start sequence and basic operations are as follows:
1. Startup Self-diagnosis
The following operations are provided for startup self-diagnosis:
• Memory (RAM) read/write diagnosis
• System program (ROM) diagnosis
• Main processor (CPU) function diagnosis
• Numeric co-processor (FCPU) function diagnosis
If an error occurs in the diagnostic result, the RDY indicator will flash the specified number of times.
2. Online Self-diagnosis
The following operations are provided for online self-diagnosis:
• System program (ROM) diagnosis
• Main processor (CPU) function diagnosis
• Numeric co-processor (FCPU) function diagnosis
3
If an error occurs in the diagnostic result, the RDY indicator will flash the specified number of times.
3. New Operation Start
Set the operation method for “New Operation” on the CP-717 System Definition Screen.
When the system is next started, the new operation will be used to start. Unlike a continuous operation start, self-diagnostic processing is performed before DWG.A is executed.
4. Continuous Operation Start
a) Set the operation method for “Continuous Operation” on the CP-717 System Defini-
tion Screen. When the system is next started, the continuous operation will be used to
start. Unlike a new operation start, no self-diagnostic processing is performed. Therefore, the startup time for drawing execution is shortened.
b)If the RUN switch is ON (RUN) or if it turns ON (RUN) from OFF (STOP), the CPU
starts the watchdog timer and then executes DWG.A.
c) Once the execution of DWG.A has been completed, the scan is started. The initial scan
is executed only after the time for the high-speed or low-speed scan has elapsed following the completion of DWG.A. System inputs and outputs are executed from the first
scan.
5. Operation Stop
The MP930 stops operating in the following cases:
• When the power supply is interrupted (see *1)
• When a power failure has occurred (see *1)
• When a fatal error has occurred (see *2)
• When a STOP operation has been performed from the CP-717 (see *3)
The MP930 can be restarted only by turning ON the power again.
*1.
*2. Restart the system by turning the power ON and OFF. The cause of the error can
be ascertained by the indicator status.
*3. Restart the system by performing a RUN operation from the CP-717.
3-7
3
Basic System Operation
3.3.1 Power Failure Detection
3.3 Power Failures
This section explains the processing when an MP930 power failure occurs.
3.3.1 Power Failure Detection
Table 3.3 shows the start methods used when an MP930 power failure occurs.
The MP930 can select two types of startup: Continuous operation and new operation. The
selection of continuous operation or new operation is made on the CP-717 System Definition
Screen.
For details on the CP-717 operation method, refer to the MP9jj Machine Controller Pro-gramming Software User’s Manuals (SIEZ-C887-2.2-1, SIEZ-C887-2.2-2).
Table 3.3MP930 Start Modes
Length of Power
Failure
0to20ms
20 ms to Ns*
(Power loss)
Ns* or more
* Ns (power loss decision time) is defined on the CP-717 System Definition Screen.
Continuous Operation/
New Operation
−Operations continue.
When continuous operation is
selected
When new operation is
selected
When continuous operation is
selected
When new operation is
selected
After the CPU is reset, no self-diagnosis is
performed, and operations continue.
After the CPU is reset, self-diagnosis is
performed, and the new operation starts.
After the CPU is reset, no self-diagnosis is
performed, and operations continue.
After the CPU is reset, self-diagnosis is
performed, and the new operation starts.
Start Method
3-8
3.4 User Programs
This section explains the basic operation of the MP930, such as the types of user program, the priority levels, and the execution processing methods.
3.4.1 Drawings (DWGs)
User programs are managed in units of programming called drawings, Each drawing is identified by a drawing number (DWG No.). These drawings serve as the basis of user programs.
The drawings include parent drawings, child drawings, grandchild drawings, and operation error drawings. Besides the drawings, there are functions that can be freely called from each
drawing, and motion programs that can be called only from H drawings.
3.4 User Programs
3
D Parent Drawings
Parent drawings are executed automatically by the system program when the execution
condition is established. See Table 3.4 for execution conditions.
D Child Drawings
Child drawings are executed by being called from a parent drawing using the SEE command.
D Grandchild Drawings
Grandchild drawings are executed by being called from a child drawing using the SEE
instruction.
D Operation Error Drawings
Operation error drawings are executed automatically by the system program when an operation error occurs.
D Functions
Functions are executed by being called from a parent, child, or grandchild drawing using
the FSTART instruction.
D Motion Programs
Motion programs can be called only from H drawings. They can be executed by being
called from a parent, child, or grandchild drawing using the MSEE instruction.
Types and Priority Levels of Parent Drawings
Parent drawings are classified by the first character of the drawing number (A, H, L) according
to the purpose of the process. The priority levels and execution conditions are as shown in Table
3.4.
3-9
Basic System Operation
3.4.2 Execution Control of Parent Drawings
Table 3.4Types and Priority Levels of Parent Drawings
3
Type of Parent
Drawing
DWG.A
Role of
Drawing
Startup process1Started when power is turned ON
Priority
Level
Execution ConditionNumber of
(executed once only when the
power is turned ON)
DWG.H
DWG.L
High-speed scan
process
Low-speed scan
process
2Started at a fixed interval (executed
during each high-speed scan)
3Started at a fixed interval (executed
during each low-speed scan)
Table 3.5 gives details of the number of drawings for each type of drawing.
Table 3.5Details of Drawings
Drawing
Parent Drawing
Operation Error Drawing
Child Drawings
Grandchild Drawings
DWG.ADWG.HDWG.L
1 (A)1 (H)1 (L)
1 (A00)1 (H00)1 (L00)
Maximum total of 62
drawingsdrawingsdrawings
Number of Drawings
Maximum total of 98
Maximum total of 98
Drawings
64
100
100
3.4.2 Execution Control of Parent Drawings
Each drawing is executed based on its priority level, as shown in Figure 3.3.
Power ON
DWG.A
Startup drawing
During each high-speed scanDuring each low-speed scan
All outputs
All inputs
DWG.H
High-speed scan
process drawings
Figure 3.3Execution Control of Parent Drawings
All outputs
All inputs
DWG.A
Low-speed scan
process drawings
Operation error
DWG.X00
Operation error
X: A, H, L
Continue with original process
IMPORTANT
Interrupt drawings cannot be used with the MP930.
3 -10
3.4 User Programs
JExecution Scheduling of Scan Process Drawings
The scan process drawings are not executed simultaneously. As shown in Figure 3.4, they are
scheduled based on the priority level and are executed according to the schedule.
Low-speed scan
High-speed
scan
DWG.H
DWG.L
Ground*
High-speed
scan
High-speed
scan
High-speed
scan
IMPORTANT
: Executed
* Used for internal system processes, such as self diagnosis.
Figure 3.4Execution Scheduling of Scan Process Drawings
Set the high-speed scan time as a multiple of 2 with a minimum of 2 ms.
1.
2. The low-speed scan process is executed in the unused time of the high-speed scan process. Therefore, as a
guideline, set a time that is twice the execution time of all the DWG.H drawings as the high-speed scan time.
JHierarchical Arrangement of Drawings
Drawings are arranged in the following order: Parent drawing, child drawings, grandchild
drawings. A parent drawing cannot call a child drawing of a different type, and a child drawing
cannot call a grandchild drawing of a different type. A parent drawing also cannot directly call
a grandchild drawing. A child drawing is called from a parent drawing, and a grandchild draw-
ing is called from that child drawing. This is called the hierarchical arrangement of drawings.
3
3-11
Basic System Operation
3.4.2 Execution Control of Parent Drawings
JExecution of Drawings
The user prepares each processing program with the parent drawing, child drawing, grandchild
drawing hierarchy, as shown in Figure 3.5.
3
Parent Drawing
DWG.XDWG.X01.01
Child DrawingsGrandchild
Drawings
DWG.X01
Motion programsUser functions
MPM001
.
DWG.X01.02
.
.
.
.
DWG.X01.03
MPM002
.
DWG.Xnn
Note Substitute A, H, or L for X.
Figure 3.5Hierarchical Arrangement of Drawings
Note 1.
Aparentdrawingisexecutedautomaticallybythe system, because the execution condition is determined for each one. In other words, a parent drawing is
automatically called by the system. See Table 3.4 Types and Priority Levels ofParent Drawings. The user can execute any child or grandchild drawing by
programminganinstructionthat calls a drawing(theSEEinstruction)in a parent or child drawing.
2. Functions can be called from any drawing. A function can also be called from
a function.
3. If an operation error occurs, the operation error drawing corresponding to the
drawing will be called.
4. Motion programs must be called from H drawings using the MSEE instruction.TheMSEEinstructioncanbe used from any H drawing, i.e., fromparent,
child, or grandchild H drawings.
.
.
MPM015
FUNC−001
.
.
FUNC−006
.
.
FUNC−032
.
.
FUNC−064
INFO
1. A parent drawing cannot call a child drawing of a different type, and a child drawing cannot reference a
grandchild drawing of a different type.
2. A parent drawing cannot directly call a grandchild drawing. A child drawing must be referenced from a parent drawing, and a grandchild drawing must be called from that child drawing.
3. A parent drawing is automatically called (and executed) by the system. A child drawing is called from a parent drawing using the SEE instruction. Therefore, user programs containing only child and grandchild drawings cannot be executed.
3 -12
JExecution Processing Method of Drawings
Drawings in the hierarchy are executed by the lower-level drawings being called from upperlevel drawings. Figure 3.6 shows the hierarchical arrangement of drawings, using the example
of DWG.A.
Starts according to the system
program execution condition
Parent DrawingChild DrawingsGrandchild Drawings
3.4 User Programs
SEE A01
SEE A02
DEND
DWG.A
DWG.A01
SEE A01.01
SEE A01.02
DEND
DWG.A02
Operation error
Drawing notation: DWG. X
Started
automatically
by the system.
YY,.ZZ
DWG.A01.01
FUNC-001
DEND
DWG.A01.02
FUNC-001
DEND
DWG.A00
DENDDEND
Grandchild drawing No. (01 to 99)
Functions
FUNC-001
3
DEND
Child drawing No. (01 to 99)
Type of parent drawing (A, H, L)
: DWG.X
00
Operation error drawing (A, H, L)
Figure 3.6Hierarchical Arrangement of Drawings
3 -13
3
Basic System Operation
3.4.3 Motion Programming
3.4.3 Motion Programming
JOverview of Motion Programs
Motion programming is a textual motion programming language. Motion programming can
be used to create 256 programs separate from the ladder drawings.
Two types of motion program are provided: Main programs (MPMjjj) that can be called
from DWG.H, and subroutines (MPSjjj) that can be called from the main programs.
Table 3.6Types of Motion Program
ClassificationDesignation MethodFeatureNumber of Programs
Main Programs
Subroutines
MPMjjj
1 to 256
MPSjjj
1 to 256
Can be called from
DWG.H drawings.
Can be called from the
main programs.
A total of up to 256
main programs and subroutines can be created.
There are two methods of designating a motion program: Direct designation of the program
number, and indirect designation of the number of the register in which the program number
is stored.
Figure 3.7Starting a Motion Program by Direct Designation
MOTION PROGRAM CALL
command
MSEE MWM00200 DA0000
MPM number
MW00200
Ladder Logic Program
Motion Program
Figure 3.8Starting an Motion Program by Indirect Designation
3 -14
3.4 User Programs
JGroups
With the MP930, the axes can be grouped by operation so that multiple machines can be independently controlled by one Machine Controller. This enables programming to be done for
each axis group. The axes to be included in a group are defined in the group definitions. For
details, refer to the MP9jj Machine Controller Programming Software User’s Manuals
(SIEZ-C887-2.2-1, SIEZ-C887-2.2-2).
MP930
SGD
SGD
SGD
...
SGD
SGD
X1Y1Z1A1B1
Figure 3.9Operation as One Group
MP930
SGD
SGD
SGD
X1Y1Z1A1B1
...
SGD
SGD
Figure 3.10 Operation with Multiple Groups
3
Up to four groups can be
operated with the MP930.
3 -15
Basic System Operation
3.4.3 Motion Programming
JMotion Program Execution Processing Method
The system program is started according
to the execution condition.
A motion program must be called from DWG.H using the MSEE instruction. Motion programs
can be called from any H drawing, i.e., from parent, child, and grandchild H drawings.
Figure 3.11 Execution Processing Method for Motion Programs
D In each high-speed scanning cycle, the ladder logic instructions for H drawings are
executed in the following hierarchical order: Parent drawing - child drawing - grandchild
drawing.
D Motion programs are called in the scanning cycle, but as with ladder logic programs, all
programs cannot be executed in one scan. Motion programs are executed and controlled
by special system motion management functions.
D Motion programs are called in the scanning cycle, but they are not executed only in this
cycle. The control signals set on the Group Definition Screen must be input. (See the table
on the next page.)
The following restrictions apply to calling motion programs. Call motion program with care.
1. More than on emotion program with the same number cannot be called using the MSEE instruction.
2. Subroutines (MPSxxx) cannot be called from the ladder logic program MSEE instruction. They can be
called only from within motion programs (MPMxxx and MPSxxx).
3. The same subroutine cannot be called from two different locations at the same time.
3 -16
3.4 User Programs
JExecuting Motion Programs
To execute a motion program called from a DWG.H drawing by the MSEE instruction, program control signals (such as program operation start requests and program stop requests) must
be input. Operations are enabled by inputting the external control signals defined on the Group
Definition Screen as the program control signals.
The signals used to control motion programs are shown in the following table.
BitSignal NameSignal Type
IMPORTANT
b0:
b1:
b2:
b3:
b4:
b5:
b6:
b7:
Program operation start requestDifferential input
Program pause requestN.O. contact (”A” contact)
Program stop requestN.O. contact
Program debugging mode selectionN.O. contact
Program debugging start requestDifferential input
Alarm reset requestN.O. contact
Skip 1 informationN.O. contact
Skip 2 informationN.O. contact
The motion program operation, stop, pause, and so on, can be controlled by using a ladder logic
program to input these signals into the one register higher than the work register specified with
the MSEE instruction.
For the ladder logic program inputs, make sure the signals are in accordance with the signal
type.
When the start signal is input using an N.O. contact, the program is completed and then restarted. The program
will not be executed if the start signal has been turned ON when the power is turned ON.
3
3 -17
Basic System Operation
3.4.3 Motion Programming
The following illustration shows the method of executing a motion program.
Motion management functions
3
Motion program
number
External control signals
D Operation start
D Pause
D Stop
DWG.H
Ladder logic program
for motion program
control
MSEEMPM001
DEND
D Program operation start
D Program pause
D Program stop
The 1st word of MSEE work resister is a motion program status flag that indicates the execution
status of the motion program. The detailed contents of status flag are shown in the table below.
BitStatus
b0Program running
b1Program pause
b2Program pause by a program stop request
b3(For system use)
b4Program under debugging
b8Program alarm occurring
bBIn debugging mode (EWS debugging)
bEDuplicated main program error
bFMain program over-numbered error
3 -18
3.4 User Programs
JExample of a Ladder Logic Program for Motion Program Control
The minimum ladder logic program required to control a motion program is shown in the following illustration.
3
The contents of this ladder logic program are shown in the following table.
Step NumberProgram Content
1to7
8
11 to 15
The signals connected to the MP930 external input signals are stored as the motion
program control signals.
IW0000 (external input signals)
ters)
S Program operation start
S Program pause
S Program stop
S Alarm reset
Calls motion program MP001
MSEE MPM001
12
1. Motion program number
2. MSEE work register address
Resets the alarm (bit 6 of OWxx00) using the alarm reset signal (IB00005), and
clears the alarm for each axis.
DA00000
→ DW00001 (second word of MSEE work regis-
When the external input signals (IB00000 to IB00007) connected to the MP930 are input to
DW00001 (second word of MSEE work registers) as motion program control signals using the
ladder logic program shown above, motion program operations such as run, stop and pause can
be performed by the system motion management functions.
3 -19
Basic System Operation
3.4.3 Motion Programming
3
A
EXAMPLE
"
Table 3.7 shows an example of the default external input signals that are allocated by the
MP930 on the Group Definition Screen.
Table 3.7External Input Signals and Motion Program Control Signals
External Signal
Address
IB00000:
IB00001:
IB00002:
IB00003:
IB00004:
IB00005:
External Signal NameBITMotion Program Control
Program operation start
Program pause
Program stop
Program debugging mode
Program debugging start
Alarm reset
B0:
B1:
B2:
B3:
B4:
B5:
Program operation start request
Program pause request
Program stop request
Program debugging mode selection
Program debugging start request
Alarm reset request
JAutomatic Generation of Ladder Logic Programs for Motion
Program Control
Signal
An automatic generation function for the ladder logic programs used to control motion programs is provided with the MP930. This function enables JOG operations and program operations to be performed without the need for special ladder logic programs to be created, and
greatly reduces the system startup time.
3 -20
3.4 User Programs
Input signals
by group
Number of motion programs that can be
started simultaneously by an H drawing
Automatic generation of a ladder logic
program for motion program control
Input signals
by axis
3
INFO
Group 1
H01H02H03H04
Main motion
management
ladder logic
program for
Group 1
H01.01
Manual
H01.02
management
ladder logic
program for
axis 1
H01.03
1
.
.
.
Group 2Group 3Group 4
Main motion
management
ladder logic
program for
Group 2
H02.01
Manual
H01.02
management
ladder logic
program for
1
axis 1
H01.03
1
.
.
.
Main motion
management
ladder logic
program for
Group 3
H03.01
Manual
H01.02
management
ladder logic
program for
axis 1
H01.03
1
.
.
Main motion
management
ladder logic
program for
management
.
Group 4
H04.01
Manual
H01.02
ladder logic
program for
1
axis 1
H01.03
1
.
.
.
1. The ladder logic programs that are generated for motion program control are created automatically using the
external input signals that are a llocated on the Group Definition Screen. These ladder logic programs c an
also be used as is.It is recommended, however, that they be used as templates to be optimized (changed) to
suit individual system requirement.
2. When a ladder logic programs used for motion program control is created by automatic generation, up to
four motion programs can be called simultaneously from the ladder logic program. In other words, when
automatic generation is used, a maximum of four groups will be controlled.
3 -21
Basic System Operation
F
3.5.1 Standard System Functions
3.5 Functions
This section explains the methods of using and the advantages of the MP930 functions.
Functions are executed by being called from a parent, child, or grandchild drawing using the
FSTART instruction.
Unlike child and grandchild drawings, functions can be called from any drawing. The same function can also be called simultaneously from drawings of different types and different hierarchies.
Moreover, a function can also be called from another function that was previously created.
The following advantages can be obtained by using functions:
D Programs can be easily divided into parts.
3
D Programs can be easily prepared and maintained.
Functions are divided into standard system functions, which are provided by the system, and user
functions, which are defined by the user.
3.5.1 Standard System Functions
Seven functions, including the transfer function, are provided by the system as standard functions. See Table 3.8. The user cannot change the system functions.
Table 3.8List of Standard System Functions
TypeNameSymbolDescription
System
unctions
CounterCOUNTERUp/down counter
First-in first-outFINFOUTFirst-in or first-out stack
Trace functionTRACEData trace execution control
Data trace readDTRC-RDData readout from data trace memory to
Failure trace readout FTRC-RDData readout from failure trace memory to
user memory
user memory
Inverter trace readITRC-RDReads inverter trace data to store it in user
registers
Inverter constant
write
Inverter constant read ICNS-RDReads inverter constants to registers
Send message function
Receive message
function
ICNS-WRWrites inverter constants
MSG-SNDSending a message from a Communica-
tions Module
MSG-RCVReceiving a message from a Communica-
tions Module
3 -22
3.5.2 Creating User Functions
The body of the function (program) and the function definitions can be set by the user. The
maximum number of user functions is 500 per drawing.
For details on the CP-717 operation methods, refer to the MP9jj Machine Controller Pro-gramming Software User’s Manuals (SIEZ-C887-2.2-1, SIEZ-C887-2.2-2). For details on
instructions, such as the FSTART instruction, refer to the MP9jj Machine Controller LadderProgramming User’s Manual (SIEZ-C887-1.2). The methods for creating user functions is explained according to the following procedure.
1. Determining I/O Specifications
Determine the number of inputs and outputs and the data types.
2. Defining Function I/O
Input using the CP-717.
3. Programming the Body of the Function
3.5 Functions
3
Prepare in the same way as the drawings, except that different registers are used. Program
according to the correspondence between the register numbers used in the body of the
function program and the I/O data used when calling the function.
4. Preparing the Program that Calls the Function
Input using the following procedure:
a) Use the FSTART instruction to input the function name.
b)Use the FIN instruction to connect the input data.
c) Use the FOUT instruction to connect the output data.
JDetermining the I/O Specifications
When a user function is created, the function capabilities, the number of inputs and outputs
required to satisfy the function, and other specifications must first be determined. Determine
the four types of specification shown in Table 3.9.
Table 3.9Overview of Function Definition Values
Specification to
be Determined
Function Name
Number of Inputs
Up to eight characters can be input.
The number of arguments input into a function. Up to 16 can be input.
Overview
Up to 17 arguments are possible if the address input is also counted.
Number of
Address Inputs*
Number of
Outputs
* Indicates the number of pointers to be provided for the external function registers
used by the function.
The designated number of addresses required by the function. A maximum of
one value can be input.
The number of outputs from the function. Up to 16 can be input.
3 -23
Basic System Operation
3.5.2 Creating User Functions
JDefining Function I/O
The function name and other specifications determined in the previous step are defined using
the CP-717. For details on operation methods, refer to the MP9jj Machine Controller Pro-gramming Software User’s Manuals (SIEZ-C887-2.2-1, SIEZ-C887-2.2-2).
3
A
EXAMPLE
"
The following illustration shows the graphic representation of a function when the following
function is defined: Function name = TEST, number of inputs = 4, number of address inputs
= 1, and number of outputs = 4.
TEST
IN_01
IN_02
IN_03
IN_04
IN_05
OUT_01
OUT_02
OUT_03
OUT_04
Note 1.
After creating the graphic representation of
the function, define the data types of the
functioninputs,outputs, and addressinputs.
2. Three datatypescan be defined:Bit,integer,
and long integer.
3. When thedatatypesare defined, thesystem
automatically allocates inputs to the X registers, outputs to the Y registers, and address
inputs to the A registers.
Figure 3.12 Graphic Representation of a Function 1 (Example)
The following illustration shows an example of the I/O definitions of a function.
Bit numeric input
Bit numeric input
Real number numeric input
Integer numeric input
Figure 3.13 Graphic Representation of a Function 2 (Example)
I/O signal addresses are automatically allocated from the highest signal on the graphic representation. For the example given in Figure 3.13, the allocation of each I/O register will be as
shown in Table 3.10.
===>
===>
TEST
IN_01
BIT1
IN_02
BIT2
IN_03
FLT1
IN_04
INT1INT2
3 -24
IN_05
ADR
OUT_01
OUT_02
OUT_03
OUT_04
BIT3
BIT4
LNG1
Bit numeric output
Bit numeric output
Long integer numeric output
===>
===>
Integer numeric output
Table 3.10 Allocation of I/O Registers
NameData TypeI/O Register
3.5 Functions
IN_01 (BIT1)
IN_02 (BIT2)
IN_03 (FLT1)
IN_04 (INT1)
IN_05 (ADR)
OUT_01 (BIT3)
OUT_02 (BIT4)
OUT_03 (LNG1)
OUT_04 (INT2)
XW00000 and YW00000 of the X and Y registers are used for bit data.
Note
BitXB000000
BitXB000001
Real numberXF00001
IntegerXW00003
Address inputAW00000
BitYB000000
BitYB000001
Double integerYL00001
IntegerYW00003
The function I/O registers shown in Figure 3.13 are allocated automatically. The external
framework of the function is completed at this stage.
JCreating the Body of the Function
3
The body of the function is created in the same way as the drawings except that the types of
register used are different. For details on the registers, see 3.6.3 Types of Register.
JCreating the Program that Calls the Function
The user function is completed when the graphic representation and body program of the function have been created. As with the standard system functions, user functions can be called
from any parent, child, or grandchild drawing or any other user function.
Functions can be called from a drawing or from within the program of another user function
by using the following procedure. For details on the operation methods, refer to the MP9jjMachine Controller Programming Software User ’s Manuals (SIEZ-C887-2.2-1, SIEZC887-2.2-2) .
1. Input the function name using the FSTART instruction.
Example: Input “FSTART, Enter Key, TEST, Enter Key”.
The previously defined graphic representation of the function will be displayed.
2. Use the FIN instruction to create the input data program.
Provide input data for the function inputs and address inputs.
3. Use the FOUT instruction to create the output data program.
3 -25
Basic System Operation
3.5.2 Creating User Functions
Example: I/O data is provided for the graphic representation as shown in the following illustration.
TEST
3
DB000000
DB000001
DF00001
DW00003
===>
===>
BIT1
BIT2
FLT1
INT1INT2
ADR
MA00300
BIT3
BIT4
LNG1
===>
===>
DB000020
DB000021
DL00010
DW00012
Figure 3.14 Graphic Representation for which Input Data is Provided (Example)
Table 3.11 Relationship Between I/O Data and Internal Function Registers
NameI/O DataInternal Function Register
BIT1DB000000XB000000
BIT2DB000001XB000001
FLT1DF00001XF00001
INT1DW00003XW00003
ADRMA00300AW00000
BIT3OB00020YB000000
BIT4OB00021YB000001
LNG1DL00010YL00001
INT2DW0012YW00003
In the table, address input register AW00000 is allocated to MA00300. That is, registers
AW00000, AW00001, and so on, used inside the TEST function correspond to external
registers MA00300, MA00301, and so on. Therefore, if a given value in AW00000 is
stored inside the function, this value will be stored in MA00300.
3 -26
3.5 Functions
INFO
Internal function
AW00000
AW00001
AW00002
AW00003
Pointer
External registers
MA00300
MA00301
MA00302
MA00303
Figure 3.15 Pointer Designation for Address Input Registers
4. Creating a motion program that calls the function.
User functions can also be called from motion programs.
Example: The user functions shown in Table 3.11 would be called from a motion program
using the following coding:
UFC TEST DB000000 DB000001 DF00001 DW00003,MA00300,
DB000020 DB000021 DL00010 DW00012;
Conditions for referencing a user function from a motion program:
S The first item of output data must be bit data.
This output will be the completion signal for moving to the next motion command.
UFC DB000000..., MA00300, DB000020...; ↓ condition BB000020==ON
MVS [X]100. [Y]200. F10000;
.
.
.
3
3 -27
3
Basic System Operation
3.6.1 Register Designation Methods
3.6 Registers
This section explains the types of register used by MP930 user programs and how these registers
are used.
3.6.1 Register Designation Methods
Registers can be designated by direct designation of the register number or by symbolic designation. These two types of register designation can be used together in the same user program.
When symbolic designation is used, the correspondence between the symbols and the register
numbers is defined in the symbol table that is described later.
Table 3.12 shows the register designation methods.
Table 3.12 Register Designation Methods
Designation Type
Direct Register
Number
Designation
Symbol Designation
Bit registers:MB00100Ax
Integer registers:MW00100x
Double integer registers:ML00100x
Real # registers:MF00100x
Address registers:MA00100x
x: For subscripts, add the subscript i or j after the register number.
Bit registers:RESET-A.x
Integer registers:STIME-H.x
Double integer registers:POS-REF.x
Real # registers:IN-DEF.x
Address registers:PID-DATA.x
Address registers are designated using up to 8 alphanumeric characters.
x: For subscripts, add a period (.) and then the subscript i or j after the symbol.
JDirect Register Number Designation
Description
Register number: V T No.[Bit No.] [Subscript]
When T = B (bit) (hexadecimal, 0 to F)
Register No. for V (decimal or hexadecimal)
Data type of V (T: B | W | L | F | A)
Type of register
Drawing: (V: S | M | I | O | C | # | D)
Function: (V: S | M | I | O | C | # | D | X | Y | Z | A)
3 -28
Can designate the subscript i or j.
JSymbol Designation
3.6 Registers
Symbol: [Symbol Name][Subscript]
3.6.2 Data Types
There are five data types: Bit, integer, double integer, real number, and address. Use them as
required. Address data is used only for pointer designations inside functions. For details, refer
to the MP9jj Ladder Programming Manual (SIEZ-C887-1.2). Table 3.13 shows the data
types.
Table 3.13 Data Types and Numeric Range
TypeData TypeNumeric RangeRemarks
[.]
Can designate the subscript i or j.
Required if a subscript is to be used
(symbol name and subscript delimiter)
(Name given to the register, 8 characters or less)
X
XXXXXXX
Alphanumeric characters or symbols
Alphabetic character or symbol
(A numeral cannot be designated at the
beginning of a symbol name.)
3
B
W
L
F
A
BitON, OFFUsed in relay circuits.
Integer−32768 to +32767
(8000H)(7FFFH)
Double integer −2147483648 to +2147483647
(80000000H)(7FFFFFFFH)
Real number
Address0 to 32767Used only for pointer designations.
±(1.175E−38 to 3.402E+38), 0
Used in numeric operations.
The values in parentheses ( ) are used in
logic operations.
Used in numeric operations.
The values in parentheses ( ) are used in
logic operations.
Used in numeric operations.
3 -29
Basic System Operation
3.6.2 Data Types
D Register Designations and Data Types
[MB001006]
3
FED CBA9876543210
[MW00100]
[MW00101]
[MW00102]
[MW00103]
D Pointer Designations
Memory address
nn
[MA00100]
Register area
.
.
.
[MB00103A]
[MB001003]
[MW00100]
[MW00101]
[MW00102]
[MW00103]
[ML00100]
[MF00100]
[ML00102]
[MF00102]
[ML00100]
[MF00100]
EXAMPLE
A
JExamples of Use by Data Type
Some examples of use by data type are explained below.
Bits
Bits are used for relay circuit ON/OFF or for logic operations.
IB000001
IFON
OB000001 ∨ 1
"
D Motion Program Example
MB000101=IB000100;
IF IB000001==1;
DB000001=DB000001|1
MB000101IB000100
OB000001
3 -30
Words
Words are used for numeric operations and logic operations.
MF00200 to MF00228 are used as the parameter table in the following example
3
MF00200
PID MA00200
Parameter table leading address
MF00200 to MF00204 are used as the parameter table in the following example.
MW00200
LAG MA00200
Parameter table leading address
Error input value
Input value
Inputvalue
⇒ MF00022
PID output value
⇒ MW00022
LAG output value
3 -32
3.6.3 Types of Register
Registers include drawing registers and function registers.
JRegisters in Drawings
The seven types of register shown in Table 3.14 can be used in all drawings and motion pro-
grams.
Table 3.14 Types of Drawing Register
3.6 Registers
TypeNameDesignation
Method
S
M
I
O
C
#
System registersSB, SW, SL,
SFnnnnn (SAnnnnn)
Data registersMB, MW, ML,
MFnnnnn
(MAnnnnn)
Input registersIB, IW, IL, IFhhhh
(IAhhhh)
Output registersOB, OW, OL,
Ofhhhh (OAhhhh)
Constantregisters CB, CW, CL,
CFnnnnn (CAnnnnn)
# registers#B, #W, #L,
#Fnnnnn (#Annnnn)
RangeDescriptionCharac-
teristic
SW00000 to
SW01023
MW00000 to
MW32767
IW0000 to
IW07FF
OW0000 to
OW07FF
CW00000 to
CW04095
#W00000 to
#W16383
System registers provided by the system. Register
number nnnnn is expressed as a decimal number.
When the system is started, SW00000 to SW00049
are cleared to 0.
Data registers are shared by all drawings. Used as
interfaces between drawings. Register number
nnnnn is expressed as a decimal number.
Registers used for input data.
Register number hhhh is expressed as a hexadecimal
number.
Registers used for output data.
Register number hhhh is expressed as a hexadecimal
number.
Constant registers can be referenced only in the program. Register number nnnnn is expressed as a decimal number.
# registers can be referenced only in the program and
can be used only in the corresponding drawing.
The actual range used is specified by the user on the
CP-717. Register number nnnnn is expressed as a
decimal number.
Common
to all
drawings
Unique to
each
drawing
3
D
Note
D registersDB, DW, DL,
DFnnnnn
(DAnnnnn)
The servo parameter register number (input or output register number) depends on the axis number (axes 1 to
14). Table 3.15 shows the servo parameter register numbers for each axis.
DW00000 to
DW16383
3 -33
D registers are unique to each drawing and can be
used only in the corresponding drawing.
The actual range used is specified by the user on the
CP-717. Register number nnnnn is expressed as a
decimal number.
The 11 types of register shown in Table 3.16 can be used in functions.
Table 3.16 Types of Function Register
3.6 Registers
TypeNameDesignation
Method
X
Y
Z
A
Function input
registers
Function output
registers
Internal function
registers
External function
registers
XB, XW, XL,
XFnnnnn
YB, YW, YL,
YFnnnnn
ZB, ZW, ZL,
ZFnnnnn
AB, AW, AL,
AFnnnnn
RangeDescriptionCharac-
teristic
XW00000 to
XW00016
YW00000 to
YW00016
ZW0000 to
ZW00063
AW0000 to
AW32767
Input to a function.
Bit input: XB000000 to XB0000F
Integer input: XW00001 to XW00016
Double integer input: XL00001 to XL00015
Register number nnnnn is expressed as a decimal
number.
Output from a function.
Bit input: YB000000 to YB0000F
Integer input: YW00001 to XW00016
Double integer input: YL00001 to YL00015
Register number nnnnn is expressed as a decimal
number.
Internal registers unique to each function. Can be
used in the function for internal processes. Register
number nnnnn is expressed as a decimal number.
External registers that use the address input value as
the base address. For linking with S, M, I, O, #, and
DAnnnnn registers. Register number nnnnn is expressed as a decimal number.
Unique to
each
function
3
# registers#B, #W, #L,
#
D registersDB, DW, DL,
D
#Fnnnnn
(Annnnn)
DFnnnnn
(DAnnnnn)
#W00000 to
#W16383
DW00000 to
DW16383
3 -35
Registers that can only be referenced by a function.
Can be used only by the corresponding function.
The actual range used is specified by the user on the
CP-717. Register number nnnnn is expressed as a
decimal number.
Internal registers unique to each function.
Can be used only by the corresponding function.
The actual range used is specified by the user on the
CP-717. Register number nnnnn is expressed as a
decimal number.
Basic System Operation
These
registers
canbereferenced
from
any
drawings
or
function.
Use
3.6.4 Using Subscripts I and J
3
TypeCharac-
S
M
I
O
C
Note SA, MA, IA, OA, DA, #A, and CA can also be used inside functions.
Name
Method
System registersSB, SW, SL,
SFnnnnn (SAnnnnn)
Data registersMB, MW, ML,
MFnnnnn
(MAnnnnn)
Input registersIB, IW, IL, IFhhhh
(IAhhhh)
Output registersOB, OW, OL,
Ofhhhh (OAhhhh)
Constantregisters CB, CW, CL,
CFnnnnn (CAnnnnn)
Same as the registers for drawings.
These registers can be referenced from any drawings or function. Use
them carefully when the same function is referenced from drawings
with different priority levels.
DescriptionRangeDesignation
teristic
Common
to all
drawings
3.6.4 Using Subscripts I and J
Two types of register, I and J, are used exclusively for modifying relay numbers and register
numbers. I and J have exactly the same function.
An example of each register data type is explained below.
JSubscripts Attached to Bit Data
When subscript i or j is attached to bit data, the value of I or J is added to the relay number.
For example, if I = 2, MB000000i will be the same as MB000002. If J = 27, MB000000j will
be the same as MB00001B.
2I
MB000000i
Equivalent
MB0000002
JSubscripts Attached to Integer Data
When a subscript is attached to integer data, the value of I or J is added to the relay number.
For example, if I = 3, MW00010i will be the same as MW00013. If J = 30, MW00001j will
be the same as MW00031.
00030
MW00001j
J
Equivalent
3 -36
MW00031
3.6 Registers
JSubscripts Attached to Double Integer Data
When a subscript is attached to double integer data, the value of I or J is added to the relay
number. For example, if I = 1, ML00000i will be the same as ML00001. ML00000j when J
= 0, and ML00000j when J = 1 will be as follows:
Higher-place word
MW00001
ML00000J when J = 0: ML00000
MW00002MW00001
ML00000J when J = 1: ML00001
Lower-place word
MW00000
JSubscripts Attached to Real Number Data
When a subscript is attached to double integer data, the value of I or J is added to the relay
number. For example, if I = 1, MF00000i will be the same as MF00001. MF00000j when J =
0, and MF00000j when J = 1 will be as follows:
Higher-place word
MW00001
MF00000J when J = 0: MF00000
MW00002MW00001
MF00000J when J = 1: MF00001
Lower-place word
MW00000
JProgramming Example Using Subscripts
The programming code shown in Figure 3.16 sets the sum of 100 registers from MW00100
to MW00199 in MW00200 using subscript J.
3
INFO
00000
FOR J = 00000 to 00099 by 00001
MW00200 + MW00100j
FEND
Figure 3.16 Programming Example Using a Subscript
Subscripts I and J cannot be used in motion programs.
MW00200
MW00200
3 -37
Basic System Operation
3.6.5 I/O and Registers in Functions
3.6.5 I/O and Registers in Functions
Table 3.17 shows the I/O and registers referenced in functions.
Table 3.17 Correspondence Between I/O and Registers in Functions
3
Function I/O
Bit inputsThe bit numbers increase continuously from XB000000 in order of the bit
Input value = MA00100: MW00100 = AW00000, MW00100 = AW00001...
puts: (YB000000, YB000001, YB000002, YB00000F)
The register numbers increase continuously from YW, YL, and YF00001 in
order of the integer, double integer, and real number outputs.
YW00001, YW00002, YW00003, ......, YW00016
YL00001, YL00003, YL00005, ......, YL00015
YF00001, YF00003, FY00005, ......, YF00015
Function Register
, XL00015
……
3 -38
3.6.6 Register Ranges in Programs
Figure 3.17 shows the ranges that can be called for registers in programs.
DWG H03 (Drawing)
3.6 Registers
Registers common to all drawings
Program
500 steps max.
B
Registers for individual drawings
Constant data. 16,384 words max.
(#B, #W, #L, #Fnnnnn)
Individual data. 16,384 words max.
(DB, DW, DL, DFnnnnn)
FUNC-0000 (Function)
Program
500 steps max.
C
Registers for individual functions
Function Input registers 17 words
(XB, XW, YL, YFnnnnn)
Function output registers 17 words
(YB, YW, YL, YFnnnnn)
Internal function registers 64 words
(ZB, ZW, ZL, ZFnnnnn)
Constant data. 16,384 words max.
(#B, #W, #L, #Fnnnnn)
Individual data. 16,384 words max.
(DB, DW, DL, DFnnnnn)
A
D
External function
registers
(AB, AW, AL,
AFnnnnn)
A
System registers
(SB, SW, SL, SFnnnnn)
Data registers
(MB, MW, ML, MFnnnnn)
Input registers
(IB, IW, IL, IFnnnnn)
Output registers
(OB, OW, OL, OFnnnnn)
Constant registers
(CB, CW, CL, CFnnnnn)
3
A:Registers that are common to all drawings can be referenced from any drawing or function.
B:Registers that are unique to each drawing can be referenced only from within that drawing.
C:Registers that are unique to each function can be referenced only from within that function.
D:Registers that are common to all drawings and registers that are unique to each drawing can be
referenced from a function using the external function registers.
Figure 3.17 Referencing Ranges for Registers in Programs
3 -39
Basic System Operation
3.7.1 Symbols in Drawings
3.7 Managing Symbols
This section describes symbol management and upward linking, together with the automatic allocation of register numbers.
3.7.1 Symbols in Drawings
The symbols used in drawings are all managed with a symbol table, such as the one shown in
Table 3.18. For details, refer to the MP9jj Ladder programming manual (SIEZ-C887-1.2).
Table 3.18 Drawing Symbol Table (Example)
3
No.
* If a program is written using data configurations such as arrays or indexed data, de-
Register No.SymbolSize *Remarks
0IB00000STARTPBL1The register number is expressed as a hexade-
cimal number.
1OB00000STARTCOM1The register number is expressed as a hexade-
cimal number.
2MW00000SPDMAS1
3MB000010WORK-DB16
4MW00010PIDDATA10
5MW00020LAUIN1
6MW00021LAUOUT1
:
N
fine the size to be used in the data configuration. For example, if the data is referenced as PIDDATA_1 and i varies in a range of 0 to 9, define the size as 10.
3 -40
3.7.2 Symbols in Functions
All symbols used in the functions are managed with the function symbol table shown in Table
3.19. For the method of defining the function symbol table, refer to the MP9jj Ladder programming manual (SIEZ-C887-1.2) .
Table 3.19 Function Symbol Table
No.Register No.SymbolSize *Remarks
0XB0000001
1XW000011
2AW000011
3AB00000F1
4YB0000001
5YW000011
3.7 Managing Symbols
3
6ZB0000004
7ZW000011
8ZW000021
:
N
* If a program is prepared using data configurations such as arrays or indexed data,
define the size to be used in the data configuration. For example, if the data is referenced as PIDDATA_1 and i varies in a range of 0 to 9, define the size as 10.
3 -41
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.