Yaskawa MP940 User Manual

Page 1
YASKAWA
Machine Controller MP940
USER'S MANUAL DESIGN AND MAINTENANCE
YASKAWA
MANUAL NO. SIEZ-C887-4.1
Page 2

Safety Information

The following conventions are used to indicate precautions in this manual. Failure to heed
precautions provided in this manual can result in serious or possibly even fatal injury or
damage to the products or to related equipment and systems.
Safety Information
WARNING
Caution
Prohibited
Mandatory
Indicates precautions that, if not heeded, could possibly result in loss of life or seri­ous injury.
Indicates precautions that, if not heeded, could result in relatively serious or minor injury, damage to the product, or faulty operation.
In some situations, the precautions indicated could have serious consequences if not heeded.
Indicates prohibited actions that must not be performed. For example, this symbol
would be used to indicate that fire is prohibited as follows: .
Indicates compulsory actions that must be performed. For example, this symbol
would be used as follows to indicate that grounding is compulsory: .
iii
Page 3

Visual Aids

The following aids are used to indicate certain types of information for easier reference.
Indicates important information that should be memorized.
Also, indicates low-level precautions that, if not heeded, may cause an alarm to sound but will not result in the device being damaged.
INFO
Indicates additional information or information that is useful to have memorized.
Describes technical terms that are difficult to understand, or appear in the text with­out an explanation being given.
Copyright © Yaskawa Corporation, 2000.
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 permis-
sion 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.
iv
Page 4

CONTENTS

Safety Information - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - iii Visual Aids - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - iv About this Manual - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xiii Related Manuals - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xiii Using This Manual - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xiv Safety Precautions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xv
1 MP940 Overview and Features
1.1 Appearance of MP940 Modules - - - - - - - - - - - - - - - - - - - - - 1-2
1.2 List of Modules - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1-2
1.3 Features of the MP940 - - - - - - - - - - - - - - - - - - - - - - - - - - - 1-3
1.3.1 Single-axis Controller with Enhanced Essential Functions - - - - - - - - - -1-3
1.3.2 Total Synchronization between Controller and Servo Amplifier- - - - - - -1-4
1.3.3 Reduced Wiring and Compact Size - - - - - - - - - - - - - - - - - - - - - - - - - -1-4
1.3.4 Wide Range of Motion Controls - - - - - - - - - - - - - - - - - - - - - - - - - - - -1-4
1.3.5 High-precision Synchronous Control - - - - - - - - - - - - - - - - - - - - - - - - -1-5
1.3.6 Field Networks - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -1-6
CONTENTS
2 Specifications and Functions
2.1 General Specifications- - - - - - - - - - - - - - - - - - - - - - - - - - - - 2-2
2.2 Hardware Specifications - - - - - - - - - - - - - - - - - - - - - - - - - - 2-3
2.3 Function Lists - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2-5
2.3.1 MP940 Motion Control Function Specifications- - - - - - - - - - - - - - - - - -2-5
2.3.2 PLC Function Specifications - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -2-6
2.3.3 Motion Command Descriptions - - - - - - - - - - - - - - - - - - - - - - - - - - - - -2-8
2.3.4 Ladder Instructions and Standard System Functions- - - - - - - - - - - - - 2-13
2.4 Main CP-717 Functions - - - - - - - - - - - - - - - - - - - - - - - - - - 2-21
2.5 Function Tree Structure - - - - - - - - - - - - - - - - - - - - - - - - - - 2-22
2.6 SERVOPACK Specifications- - - - - - - - - - - - - - - - - - - - - - - 2-23
2.6.1 Outer Appearance and Nameplate Example - - - - - - - - - - - - - - - - - -2-23
2.6.2 Model Numbers- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -2-23
v
Page 5
3 Basic System Operation
3.1 Operating Modes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-3
3.1.1 Online Operating Mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-3
3.1.2 Offline Stop Mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-3
3.2 Start and Stop Sequences - - - - - - - - - - - - - - - - - - - - - - - - - 3-5
3.2.1 DIP Switch Settings - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-5
3.2.2 Start Sequence- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-7
3.3 Scan Processing - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-10
3.3.1 Overview of Scan Processing - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-10
3.3.2 S Scan Details- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-11
3.3.3 Setting Scan Times- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-12
3.3.4 Setting the System Scan Time - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-13
3.3.5 Setting Scan Time Definitions - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-14
3.3.6 Saving Scan Time Definitions- - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-15
3.3.7 Completing Scan Time Definitions - - - - - - - - - - - - - - - - - - - - - - - - - 3-15
3.4 User Programs - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-16
3.4.1 Drawings (DWGs)- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-16
3.4.2 Execution Control of Parent Drawings- - - - - - - - - - - - - - - - - - - - - - - 3-17
3.4.3 Motion Programming- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-20
3.5 Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-28
3.5.1 Standard System Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-28
3.5.2 Creating User Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-29
3.5.3 Determining the I/O Specifications - - - - - - - - - - - - - - - - - - - - - - - - - 3-29
3.5.4 Defining Function I/O - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-30
3.5.5 Creating the Body of the Function - - - - - - - - - - - - - - - - - - - - - - - - - 3-31
3.5.6 Creating the Program that Calls the Function - - - - - - - - - - - - - - - - - 3-32
3.6 Registers - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-34
3.6.1 Register Designation Methods - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-34
3.6.2 Data Types- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-35
3.6.3 Types of Register - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-38
3.6.4 Using Subscripts I and J - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-40
3.6.5 I/O and Registers in Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-42
3.6.6 Register Ranges in Programs - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-43
3.7 Managing Symbols - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-44
3.7.1 Symbols in Drawings- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-44
3.7.2 Symbols in Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-44
3.7.3 Upward Linking of Symbols - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-45
3.7.4 Automatic Register Number Allocation - - - - - - - - - - - - - - - - - - - - - - 3-45
vi
Page 6
4 MP940 Functions
4.1 MP940 Function Configuration - - - - - - - - - - - - - - - - - - - - - - 4-3
4.1.1 Overview - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -4-3
4.1.2 Simulated MP940 Building Block Configuration - - - - - - - - - - - - - - - - -4-5
4.2 Serial Communications Function - - - - - - - - - - - - - - - - - - - - 4-6
4.2.1 Overview - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -4-6
4.2.2 System Configuration- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -4-6
4.2.3 Communications Specifications- - - - - - - - - - - - - - - - - - - - - - - - - - - - -4-7
4.2.4 Connectors - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -4-8
4.2.5 Time Required for Transmission - - - - - - - - - - - - - - - - - - - - - - - - - - - -4-9
4.2.6 Serial Communications Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-11
4.2.7 Opening the Serial Definition Window - - - - - - - - - - - - - - - - - - - - - - -4-17
4.2.8 General-purpose Serial Definitions - - - - - - - - - - - - - - - - - - - - - - - - -4-18
4.2.9 Saving General-purpose Serial Definition Data- - - - - - - - - - - - - - - - -4-21
4.2.10 Deleting General-purpose Serial Definition Data - - - - - - - - - - - - - - -4-21
CONTENTS
4.3 LIO Function- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-22
4.3.1 Overview - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -4-22
4.3.2 LIO Specifications - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -4-23
4.3.3 Opening the Local I/O Definition Window - - - - - - - - - - - - - - - - - - - - -4-26
4.3.4 LIO Definitions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -4-27
4.3.5 Saving LIO Definition Data - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -4-28
4.3.6 Deleting LIO Definition Data - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -4-28
4.4 CNTR Function - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-29
4.4.1 Overview - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -4-29
4.4.2 Counter Specifications - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -4-30
4.4.3 Counter Function Configuration - - - - - - - - - - - - - - - - - - - - - - - - - - -4-31
4.4.4 Pulse Count Method - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -4-32
4.4.5 Reversible Counter Mode- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -4-34
4.4.6 Coincidence Output and Interrupt Functions- - - - - - - - - - - - - - - - - - -4-34
4.4.7 PI Latch Function - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -4-36
4.4.8 Electronic Gear - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -4-36
4.4.9 Opening the Counter Module Definition Window- - - - - - - - - - - - - - - - 4-40
4.4.10 Defining Counter I/O - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -4-41
4.4.11 Setting I/O Data - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -4-42
4.4.12 Saving Counter I/O Definition Data - - - - - - - - - - - - - - - - - - - - - - - -4-44
4.4.13 Deleting Counter I/O Definition Data - - - - - - - - - - - - - - - - - - - - - - -4-44
4.5 MECHATROLINK Functions - - - - - - - - - - - - - - - - - - - - - - - 4-45
4.5.1 MECHATROLINK Overview - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -4-45
4.5.2 MECHATROLINK Communications Specifications - - - - - - - - - - - - - -4-45
4.5.3 Master and Slaves- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -4-46
4.5.4 MECHATROLINK Connections - - - - - - - - - - - - - - - - - - - - - - - - - - - -4-51
4.5.5 Opening the MECHATROLINK Window- - - - - - - - - - - - - - - - - - - - - -4-52
vii
Page 7
4.5.6 Setting MECHATROLINK Definitions - - - - - - - - - - - - - - - - - - - - - - - 4-53
4.5.7 Saving MECHATROLINK Definitions - - - - - - - - - - - - - - - - - - - - - - - 4-56
4.5.8 Deleting MECHATROLINK Definitions - - - - - - - - - - - - - - - - - - - - - - 4-56
4.5.9 Ending MECHATROLINK Definitions - - - - - - - - - - - - - - - - - - - - - - - 4-56
4.6 DeviceNet Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-57
4.6.1 System Configuration - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-57
4.6.2 I/O Communications Function - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-58
4.6.3 Communications Specifications - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-58
4.6.4 260IF Module Setup - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-59
4.7 SVA Function - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-65
4.7.1 Overview - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-65
4.7.2 Separate and One-unit Systems- - - - - - - - - - - - - - - - - - - - - - - - - - - 4-65
4.7.3 MP940 Servo Control Function - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-66
4.7.4 Setting Parameters of the SGDH SERVOPACK- - - - - - - - - - - - - - - - 4-70
4.8 Flash Memory Operation - - - - - - - - - - - - - - - - - - - - - - - - - 4-77
4.8.1 Overview - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-77
4.8.2 Saving to Flash- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-77
4.8.3 Starting Flash Memory - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-79
5 System Startup
5.1 Handling the SERVOPACK - - - - - - - - - - - - - - - - - - - - - - - - 5-3
5.2 Part Names - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5-4
5.2.1 MP940 Module - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5-4
5.2.2 Accessories and Options - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5-15
5.3 Connection Methods - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5-16
5.3.1 Connectors - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5-16
5.3.2 Connector Specifications - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5-17
5.3.3 Serial Port Connector Pin Arrangements and I/O Circuits - - - - - - - - - 5-18
5.3.4 I/O Connector Pin Arrangement and I/O Circuits - - - - - - - - - - - - - - - 5-23
5.3.5 Power Supply Connector Cable - - - - - - - - - - - - - - - - - - - - - - - - - - - 5-25
5.3.6 MECHATROLINK Cable - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5-26
5.4 Connecting Peripheral Devices- - - - - - - - - - - - - - - - - - - - - 5-28
5.4.1 Single Phase Power Supply Specifications - - - - - - - - - - - - - - - - - - - 5-28
5.4.2 Three-phase Power Supply Specifications- - - - - - - - - - - - - - - - - - - - 5-29
5.4.3 Standard Cable Table - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5-30
5.5 SERVOPACK Main Circuit Connection - - - - - - - - - - - - - - - 5-33
5.5.1 Names and Descriptions of Main Circuit Terminals - - - - - - - - - - - - - - 5-33
5.5.2 Typical Main Circuit Wiring- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5-34
5.5.3 Wiring Main Circuit Terminal Blocks - - - - - - - - - - - - - - - - - - - - - - - - 5-35
viii
Page 8
CONTENTS
5.6 SERVOPACK I/O Signals- - - - - - - - - - - - - - - - - - - - - - - - - 5-37
5.6.1 Examples of I/O Signal Connections - - - - - - - - - - - - - - - - - - - - - - - -5-37
5.6.2 List of CN1 Terminals- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -5-38
5.6.3 I/O Signal Names and Functions- - - - - - - - - - - - - - - - - - - - - - - - - - -5-39
5.6.4 Interface Circuits - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -5-41
5.7 Wiring Encoders - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5-43
5.7.1 Connecting an Encoder (CN2) and Output Signals from the SERVOPACK (CN1) - - - - - - - - - - - - - - - - - - - - - - - - - - - - -5-43
5.7.2 CN2 Encoder Connector Terminal Layout and Types - - - - - - - - - - - -5-44
5.8 System Startup - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5-46
5.8.1 Overview of the Startup Procedure - - - - - - - - - - - - - - - - - - - - - - - - -5-46
5.8.2 Test System Configuration - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -5-47
5.8.3 Test System Outline - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -5-48
5.8.4 Equipment Preparations- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -5-49
5.8.5 Mounting the MP940 Module - - - - - - - - - - - - - - - - - - - - - - - - - - - - -5-50
5.8.6 Mounting the Battery Holder - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -5-52
5.8.7 Connections and Wiring - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -5-54
5.8.8 MP940 Initialization - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -5-55
5.8.9 Starting the CP-717 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -5-57
6 Parameters
6.1 Parameter Classifications- - - - - - - - - - - - - - - - - - - - - - - - - - 6-2
6.2 Motion Setting Parameters- - - - - - - - - - - - - - - - - - - - - - - - - 6-3
6.2.1 Opening the Motion Parameters Window - - - - - - - - - - - - - - - - - - - - - -6-3
6.2.2 Setting Motion Parameters - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -6-4
6.2.3 Deleting Motion Parameters - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -6-7
6.2.4 Saving Motion Parameters - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -6-8
6.3 SVA Parameter Details - - - - - - - - - - - - - - - - - - - - - - - - - - - 6-9
6.3.1 Motion Fixed Parameter Details - - - - - - - - - - - - - - - - - - - - - - - - - - - -6-9
6.3.2 Motion Setting Parameter Details - - - - - - - - - - - - - - - - - - - - - - - - - -6-17
6.3.3 Motion Monitoring Parameter Details- - - - - - - - - - - - - - - - - - - - - - - -6-37
6.4 Parameters for SGDH SERVOPACK- - - - - - - - - - - - - - - - - 6-46
6.4.1 Parameter Configurations- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -6-46
6.4.2 Function Selection Constants - - - - - - - - - - - - - - - - - - - - - - - - - - - - -6-46
6.4.3 Gain-related Parameters - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -6-53
6.4.4 Position-related Parameters - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -6-59
6.4.5 Speed-related Parameters - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -6-60
6.4.6 Torque-related Parameters - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -6-62
6.4.7 Sequence-related Parameters - - - - - - - - - - - - - - - - - - - - - - - - - - - -6-66
6.4.8 Other Parameters - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -6-74
ix
Page 9
7 Absolute Position Detection
7.1 Structure of the Absolute Position Detection Function- - - - - - 7-2
7.1.1 Description of the Function - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 7-2
7.1.2 Structure of Absolute Position Detection - - - - - - - - - - - - - - - - - - - - - - 7-2
7.2 Starting the Absolute Position Detection Function- - - - - - - - - 7-6
7.2.1 System Startup Procedure - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 7-6
7.2.2 Setting Related Parameters - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 7-7
7.2.3 Initializing the Absolute Encoder- - - - - - - - - - - - - - - - - - - - - - - - - - - - 7-8
7.2.4 Multi-turn Limit Setting- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 7-11
7.3 Using an Absolute Encoder - - - - - - - - - - - - - - - - - - - - - - - 7-14
7.3.1 Finite Length Mode Axis - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 7-14
7.3.2 Infinite Length Mode Axis - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 7-18
8 Maintenance and Inspection
8.1 Inspection Items - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 8-2
8.1.1 Daily Inspections - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 8-2
8.1.2 Regular Inspections - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 8-3
8.2 MP940 Module Battery - - - - - - - - - - - - - - - - - - - - - - - - - - - 8-4
8.2.1 Battery Life- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 8-4
8.2.2 Battery Replacement- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 8-4
9 Troubleshooting
9.1 Overview of Troubleshooting - - - - - - - - - - - - - - - - - - - - - - - 9-2
9.1.1 Troubleshooting Methods - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 9-2
9.1.2 Basic Troubleshooting Flow - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 9-3
9.1.3 Indicator Errors- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 9-3
9.2 System Errors- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 9-5
9.2.1 Overview of System Errors - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 9-5
9.2.2 Processing Flow When a System Error Occurs - - - - - - - - - - - - - - - - - 9-6
9.2.3 Processing Flow When a User Program Error Occurs - - - - - - - - - - - - 9-7
9.2.4 System Register Configuration- - - - - - - - - - - - - - - - - - - - - - - - - - - - - 9-8
9.3 Motion Errors - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 9-19
9.3.1 Description of Motion Errors- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 9-19
9.3.2 Processing Flow When a Motion Error Occurs - - - - - - - - - - - - - - - - - 9-20
x
Page 10
10 SERVOPACK Inspection, Maintenance, and Troubleshooting
10.1 Servodrive Inspection and Maintenance - - - - - - - - - - - - - 10-2
10.1.1 Servomotor Inspection - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -10-2
10.1.2 SERVOPACK Inspection - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -10-2
10.1.3 Replacing Battery for Absolute Encoder - - - - - - - - - - - - - - - - - - - -10-3
10.2 Troubleshooting - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 10-5
10.2.1 Troubleshooting Problems with Alarm Displays- - - - - - - - - - - - - - - -10-5
10.2.2 Troubleshooting Problems with No Alarm Display - - - - - - - - - - - -10-31
10.2.3 Alarm Display Table - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 10-33
11 Motion Control
11.1 Overview of Motion Control- - - - - - - - - - - - - - - - - - - - - - - 11-2
11.1.1 Motion Control for the MP940 - - - - - - - - - - - - - - - - - - - - - - - - - - - - 11-2
11.1.2 Motion Control Methods - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 11-2
11.1.3 Examples of Motion Control Applications - - - - - - - - - - - - - - - - - - - - 11-5
CONTENTS
11.2 Control Modes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 11-7
11.2.1 Overview of Control Modes- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 11-7
11.2.2 Speed Control Mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 11-7
11.2.3 Torque Control Mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 11-12
11.2.4 Phase Control Mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 11-15
11.2.5 Zero Point Return Mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 11-23
11.3 Position Control - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 11-28
11.3.1 Prerequisites for Position Control - - - - - - - - - - - - - - - - - - - - - - - - 11-28
11.3.2 Precautions in Changing to Position Control Mode - - - - - - - - - - - - 11-43
11.3.3 Position Control without Using Motion Commands - - - - - - - - - - - - 11-47
11.4 Position Control Using Motion Commands - - - - - - - - - - - 11-50
11.4.1 Overview of Motion Commands- - - - - - - - - - - - - - - - - - - - - - - - - - 11-50
11.4.2 Positioning (POSING)- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 11-52
11.4.3 External Positioning (EX_POSING) - - - - - - - - - - - - - - - - - - - - - - - 11-58
11.4.4 Zero Point Return (ZRET)- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 11-61
11.4.5 Interpolation (INTERPOLATE)- - - - - - - - - - - - - - - - - - - - - - - - - - - 11-73
11.4.6 Interpolation with Position Detection (LATCH)- - - - - - - - - - - - - - - - 11-74
11.4.7 Fixed Speed Feed (FEED) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 11-75
11.4.8 Fixed Length Feed (STEP) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 11-78
11.4.9 Zero Point Setting (ZSET)- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 11-81
xi
Page 11
A Dimensions- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -A-1
A.1 External of MP940 Module - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - A-2
A.2 Dimensions of MP940D - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - A-2
B Lists of Parameters - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -B-1
B.1 Classification of Parameters- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - B-2
B.2 Parameters- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - B-2
B.3 Switches - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - B-6
B.4 Input Signal Selections - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - B-10
B.5 Output Signal Selections - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - B-11
B.6 Auxiliary Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - B-12
B.7 Monitor Modes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - B-13
C Motion Parameter Tables - - - - - - - - - - - - - - - - - - - - - - - - - -C-1
C.1 Motion Fixed Parameters- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -C-2
C.2 Motion Setting Parameters- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C-5
C.3 Motion Monitoring Parameters - - - - - - - - - - - - - - - - - - - - - - - - - - - - -C-12
D Lists of System Registers- - - - - - - - - - - - - - - - - - - - - - - - - -D-1
D.1 System (S) Register Allocations - - - - - - - - - - - - - - - - - - - - - - - - - - - - -D-2
D.2 System Service Registers - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -D-2
D.3 Scan Execution Status and Calendar - - - - - - - - - - - - - - - - - - - - - - - - - D-5
D.4 System Program Software Number and Available Program Memory - - - D-5
Revision History
xii
Page 12

About this Manual

This manual describes the design and maintenance for the MP940 Machine Con-
troller, including the following information.
• Overview and component specifications
• Installation and wiring
• Examples of internal panel layout and drilling plan
Read this manual carefully to ensure the proper use of the MP940 Machine Control-
ler. Also, keep this manual in a safe place so that it can be referred to whenever necessary.

Related Manuals

About this Manual
Refer to the following related manuals as required.
Thoroughly check the specifications, restrictions, and other conditions of the prod-
uct before attempting to use it.
Manual Name Manual No. Contents
MP9 Machine Controller User’s Manual:
Ladder Programming
MP9 Machine Controller User’s Manual:
Motion Programming
MP9 Machine Controller User’s Manual:
Programming Panel Software (for simple operation/standard operation)
Σ - II Series SGM H/SGDH User's Manual: Design and Maintenance
SIEZ-C887-1.2 Describes the processing instructions used in
MP9 ladder programs.
SIEZ-C887-1.3 Describes the motion programming language
used for the MP9.
SIEZ-C887-2.3 (for simple operation) (To be prepared), SIEZ-C887-2.4 (for standard operation) (To be prepared)
SIE-S800-32.2 Describes SGM H/SGDH functions,
Describes the CP-717 Programming Panel Software used for designing and maintaining the MP9.
specifications, and operating procedures.
xiii
Page 13

Using This Manual

Intended Audience
This manual is intended for the following users.
• Those responsible for estimating the MP940 system
• Those responsible for deciding whether to apply the MP940 system
• Those responsible for designing the MP940 system so that it can be mounted in the con-
trol and operating panels
• Those responsible for making, inspecting, testing, adjusting, and maintaining the control
and operating panels in which the MP940 is mounted
Description of Technical Terms
In this manual, the following terms are defined as follows:
• MP940 = MP940 Machine Controller, which consists of a Power Supply Module, CPU
Module, I/O Modules, and other Modules
• PP = Programming Panel
• PC = Programmable Logic Controller
• “--” in “MOV [axis1]--...” represents numeric data for axis 1.
Inverted Signals
In this manual, a slash (/) is placed in front of the name of any signal that is valid when low
(L).
• S-ON
P-CON
= /S-ON
/P-CON
xiv
Page 14

Safety Precautions

Caution
Caution
MP940
SERVOPACK
Spring
Spring mounting hook
Mounting holes
This section describes precautions that apply to correct use of devices. Before installing,
operating, maintaining or inspecting devices, always read this manual and all other docu-
ments provided to ensure correct programming. Before using the equipment, familiarize
yourself with equipment details, safety information, and all other precautions.
Storage and Transportation
• If disinfectants or insecticides must be used to treat packing materials such as wooden frames, pal-
lets, or plywood, the packing materials must be treated before the product is packaged, and meth-
ods other than fumigation must be used.
Example: Heat treatment, where materials are kiln-dried to a core temperature of 56°C for
30 minutes or more.
If the electronic products, which include stand-alone products and products installed in machines, are packed with fumigated wooden materials, the electrical components may be greatly damaged by the gases or fumes resulting from the fumigation process. In particular, disinfectants containing halogen, which includes chlo­rine, fluorine, bromine, or iodine can contribute to the erosion of the capacitors.
Safety Precautions
Installation
• Always mount the Module securely using the Module mounting spring.
A loose spring may result in a malfunction of the MP940.
• Always turn OFF the MP940 Module before installing or removing it.
• Insert the connectors of the cables to be connected to the Module and secure them well.
Incorrect insertion of the connectors may result in a malfunction of the MP940.
xv
Page 15
Wiring
Caution
• Always connect a power supply that meets the specifications.
Connecting an inappropriate power supply may cause fires.
• Wiring must be performed by qualified personnel.
Incorrect wiring may cause fires, product failure, or malfunctions.
• Do not accidentally leave foreign matter such as wire chips in the Module when wiring.
This may cause fires, failures, and malfunctions.
Mandatory
Manditory
• Always ground the FG terminal to a ground resistance 100 or less.
Failure to ground the MP940 may result in electrical shocks or malfunctions.
Select, separate, and lay external cables correctly.
• Consider the following items when selecting the I/O signal lines (external cables) to connect the MP940 to external devices.
• Mechanical strength
• Noise interference
• Wiring distance
• Signal voltage, etc.
• Separate the I/O signal lines from the power lines both inside and outside the control panel to reduce 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 separat or
Digital I/O signal
ディジタル 入出力信号
cables
ケーブル
xvi
Page 16
Safety Precautions
Application
WARNING
• Do not touch any Module terminals when the system power is ON.
There is a risk of electrical shock.
Caution
• Do not attempt to modify the MP940 programs, force outputs, switch between RUN and STOP, or performed other similar operations while the MP940 is operating.
Incorrect programming or operation may damage the equipment or cause an accident.
Maintenance
WARNING
• 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.
Prohibited
• Do not attempt to disassemble or modify the MP940 in any way.
Doing so can cause fires, product failure, or malfunctions.
• The customer must not replace any built-in fuses.
If the customer replaces a built-in fuse, the MP940 may malfunction or break down. The built-in fuse must always be replaced by Yaskawa service staff.
xvii
Page 17
General Precautions
Always note the following to ensure safe use.
• The MP940 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 con­trol, or underwater use must contact Yaskawa Electric Corporation beforehand.
• The MP940 has been manufactured under strict quality control guidelines. However, if this product is to be installed in any location in which a failure of the MP940 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.
• Drawings in this manual show typical product examples that may differ somewhat from the product delivered.
• 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.
• 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.
• 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.
• 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.
xviii
Page 18
1 MP940 Overview and
Features
This chapter provides an overview and outlines the features of the MP940
Modules.
1.1 Appearance of MP940 Modules- - - - - - - - - - - - - - - - - - - - - - 1-2
1.2 List of Modules - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1-2
1.3 Features of the MP940 - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1-3
1.3.1 Single-axis Controller with Enhanced Essential Functions - - - - - - - - - 1-3
1.3.2 Total Synchronization between Controller and Servo Amplifier - - - - - - 1-4
1.3.3 Reduced Wiring and Compact Size - - - - - - - - - - - - - - - - - - - - - - - - - 1-4
1.3.4 Wide Range of Motion Controls - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1-4
1.3.5 High-precision Synchronous Control- - - - - - - - - - - - - - - - - - - - - - - - - 1-5
1.3.6 Field Networks - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1-6
1
1-1
Page 19
MP940 Overview and Features

1.1 Appearance of MP940 Modules

The MP940 is a single-axis controller with functions such as communications, local I/O,
counters, motion control, and so on, and with a bus connection to an SGDH SERVOPACK.
L1
L2
L1C L2C B1 B2
MP940 (JEPMC-MC400) MP940D (JEPMC-MC410)

1.2 List of Modules

The following table lists the Modules and devices used for the MP940 system.
MP940 Module for MECHATROLINK
MP940 Module for DeviceNet
MP940
TX
BAT
R
X RDY RUN
ALM
1 BAT
PRT1
M
PRT2
E C
RUN
654321
NO
INIT TEST FLASH
PP COPY
PORT1
PORT2
POWER
+24V
GND
FG
H A T R
2
O L I N K
I/O
LED
L1
L2
L1C L2C B1 B2
654321
NO
Table 1.1 List of Modules
Group Name Description
JEPMC-MC400 MP940
JEPMC-MC410 MP940D
MP940
BAT
RDY
RUN ALM BAT
PRT1 PRT2
RUN
INIT TEST FLASH PP COPY
PORT1
PORT2
POWER
+24V
GND
FG
MS/NS
DNET
I/O
LED
1-2
Page 20

1.3 Features of the MP940

The MP940 Machine Controller is a single-axis controller which combines controller and SER-
VOPACK features into a single unit. It provides a wide range of control features, from indepen-
dent positioning to fast and accurate synchronous control.

1.3.1 Single-axis Controller with Enhanced Essential Functions

1.3
Features of the MP940
The MP940 is configured from the functional modules shown in the following table, based
1
on servo control.
Functional Module Contents
MP940 CPU
SERIAL Serial communications, RS-232C, RS-422/485
LIO Local I/O: DI (8 bits), DO (8 bits), AO (1 word)
SVA Motion control functions
CNTR Counter functions
MLINK or DevNet
SGDH MP940
M
Current control
Speed control
MECHATROLINK interface or DeviceNet interface
SVA
MP940
CPU
Local I/O
DI
DO
AO
PG
Counter
Shared memory
RS-232C
CP-717
Programming Device
1-3
SERIAL CNTR
RS-422/485
MLINK or DevNet
MLINK or DevNet
MLINK or DevNet
Page 21
MP940 Overview and Features
1.3.2
Total Synchronization between Controller and Servo Amplifier

1.3.2 Total Synchronization between Controller and Servo Amplifier

The Controller and SGDH SERVOPACK have a bus connection for totally synchronized
execution that enables fast and accurate control with no startup or monitoring delays.
Any of the following control cycles can be set.
• 500 µs, 1 ms, 2 ms, 4 ms,

1.3.3 Reduced Wiring and Compact Size

Combining the Controller and SERVOPACK into a single unit has reduced wiring costs and
achieved space saving.

1.3.4 Wide Range of Motion Controls

• Motion program instructions are executed to perform positioning and linear interpola-
tion.
• High-speed position control, synchronous phase control, speed control, and torque con-
trol can be performed.
• Highly effective motion control is possible for electronic shafts and gears.
Servo Control Examples
Position, synchronous phase, speed, and torque control are possible with 4-mode control.
V
Synchro-
Speed
nous phase
Fig 1.1 4-Mode Control
To rq u e
Position
T
1-4
Page 22
Synchronous Phase Control Application Examples
Electronic Cams
1.3
Features of the MP940
SERVOPACK
X

1.3.5 High-precision Synchronous Control

Various types of position data can be monitored and SERVOPACK parameters can be
changed at high speed during machine operation. This data can be used for high-precision
synchronous control by executing READ and WRITE in ladder logic programs or motion
programs.
• Mode Changes during Operation
The mode can be changed to position control, torque control, speed control, or synchro-
nous phase control during operation.
• Various Operation Commands
Speed loop P/PI switching, external torque control, and speed limits for torque control
can be specified from the MP940 during operation.
θ
Servo­motor
MP940
1
Ball screw
• Read/Write SERVOPACK Parameters
User-set SERVOPACK parameters, such as position loop gain, speed loop gain, speed
loop integral time constant, and so on, can be changed during operation.
• Position Data Monitoring
Position data, command speeds, speed monitoring, and external encoder data can be ref-
erenced at high speed by the program.
1-5
Page 23
MP940 Overview and Features
1.3.6
Field Networks
MP940SGDH
Shared memory

1.3.6 Field Networks

Two types of field network are supported to reduce wiring: One for MECHATROLINK
(JEPMC-MC400) and one for DeviceNet (JEPMC-MC410).
Speed Torque
Speed reference Torque reference Torque limit Speed P/PI switching
Parameters
Monitor data
Position Speed Torque
Mode change command
Operation commands
Read/Write parameters
Referencing monitor data
1-6
Page 24

2 Specifications and Functions

This chapter outlines MP940 Module specifications and functions.
2.1 General Specifications - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2-2
2.2 Hardware Specifications - - - - - - - - - - - - - - - - - - - - - - - - - - - 2-3
2.3 Function Lists - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -2-5
2.3.1 MP940 Motion Control Function Specifications - - - - - - - - - - - - - - - - - 2-5
2.3.2 PLC Function Specifications - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2-6
2.3.3 Motion Command Descriptions - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2-8
2.3.4 Ladder Instructions and Standard System Functions - - - - - - - - - - - - 2-13
2.4 Main CP-717 Functions - - - - - - - - - - - - - - - - - - - - - - - - - - 2-21
2.5 Function Tree Structure - - - - - - - - - - - - - - - - - - - - - - - - - - 2-22
2.6 SERVOPACK Specifications - - - - - - - - - - - - - - - - - - - - - - - 2-23
2.6.1 Outer Appearance and Nameplate Example - - - - - - - - - - - - - - - - - - 2-23
2.6.2 Model Numbers - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2-23
2
2-1
Page 25
Specifications and Functions

2.1 General Specifications

The following table lists the general specifications of the MP940 Modules.
Table 2.1 General Specifications of the MP940 Modules
Item Specifications
Environmen­tal Conditions
Electrical Op­erating Con­ditions
Mechanical Operating Conditions
Installation Require­ments
Ambient Operating Tempera­ture
Storage Tempera­ture
Ambient Operating Humidity
Ambient Storage Hu­midity
Pollution Level
Corrosive Gas
Operating Altitude
Noise Re­sistance
Vibration Resistance
Shock Re­sistance
Ground Cooling
Method
0 to 55ºC
-20 to 85ºC
30% to 95% (with no condensation)
5% to 95% (with no condensation)
Pollution level 1 (conforming to JIS B 3501)
There must be no combustible or corrosive gas.
2,000 m above sea level or lower
Conforming to JIS B 3502: 1,500 V (p-p) in either normal or common modes with a
pulse width of 100 ns/1 µs and a rise time of 1 ns (tested with impulse noise simulator)
Conforming to JIS B 3502: 10 to 57 Hz with single-amplitude of 0.075 mm
57 to 150 Hz with fixed acceleration of 9.8 m/s
10 sweeps each in X, Y, and Z directions
(sweep time: 1 octave/min)
Conforming to JIS B 3502:
Peak acceleration of 147 m/s the X, Y, and Z directions
Ground to 100 max. Natural cooling
2
2
twice for 11 ms each in
2-2
Page 26

2.2 Hardware Specifications

The following table shows the hardware specifications of the MP940 Module.
Table 2.2 Hardware Specifications of the MP940 Module
Item Specifications
Name MP940
(for MECHATROLINK)
Model Number JEPMC-MC400 JEPMC-MC410
Communications Port (Serial Communica­tions)
Network Transmission speed:
Indicators Module Status LED Indica-
Setting Switches Mode Setting DIP Switch-esRUN/INIT/TEST/FLASH/PP/COPY
RS-232C (1 Port) Baud rate setting: 9.6/19.2 Kbps
MDR-14 (special pin assignment) Protocol: • MEMOBUS
• No-protocol
• MELSEC communications
RS-422/485 (1 Port) Baud rate setting: 9.6/19.2 Kbps
MDR-14 (special pin assignment)
Protocol: • MEMOBUS
• No-protocol
• MELSEC communications
4 Mbps Communications cycle:
1 ms, 2 ms, 4 ms Connected nodes: 14 max.
(When communications cycle is set to 2 ms)
READY (green)/RUN (green)/ALM (red)/BATALM (red)/PRT1
tors
Operation LED Indicators RX (green)
(green)/PRT2 (green)
TX (green)
MP940D (for DeviceNet)
Transmission speed: 125 kbps,
250 kbps, 500 kbps Mode: Slave
Number of nodes: 63 max.
MS (red/green) NS (red/green)
2.2
Hardware Specifications
2
Piano Switch (MODE) for DeviceNet Communica­tions Settings
Rotary Switches (NA) for DeviceNet MAC ID Setting
PRO, DE1: Baud rate setting
X1: Slave/Master selection X2: Not used.
X1, X10: Node MAC ID (0 to 63)
2-3
Page 27
Specifications and Functions
Input Signals Inputs 8 points/common
Output Signals Outputs 8 points/common
Pulse Inputs Pulse Input Circuit 5 V differential, maximum 1 MHz input
Analog Input SGDH-E SERVOPACK
Analog Outputs Resolution 16 bits
Power Supply Input Input Signal 24 VDC ±20% (19.2 to 28.8 VDC)
Dimensions 44 x 142 x 128 mm (W x H x D)
Item Specifications
Input Format Combined sinking/sourcing
Input Type Type 1 (JIS-B3501)
Isolation Method Photocoupler isolation
Working Voltage 17.4 to 28.8 VDC
35 VDC (peak)
Rated Current 5.3 mA
Input Impedance Approx. 4.4 k
Operating Voltage ON voltage: 15 VDC or more
OFF voltage: 5 VDC or less
OFF Current 0.9 mA max.
Response Times OFF to ON: 0.5 ms or less
ON to OFF: 1.5 ms or less
Output Format Sink output
Output Type Transistor output
Isolation Method Photocoupler isolation
Load Voltage 19.2 to 28.8 VDC
35 VDC (peak)
Load Current 0.1 A/circuit, 0.8 A/common
ON Voltage 1.0 V max.
External Power Supply 24 VDC ±20%
15 mA
Output Protection 1 fuse per common
Fuse Rating 1.5 A (fusing time: Within 5 seconds at 3A)
Response Times OFF to ON: 0.25 ms or less
ON to OFF: 1 ms or less
Pulse Input Method A/B phase input (selected from 1x, 2x, and 4x), A/B mode, sign
mode, up-down mode
Pulse Counter Latch (External signal can be switched to 5 V, 12 V, or 24 V.)
Output Range 0 to ±10 V
Input Current 0.4 A
Fuse Rating 1.5 A
Safety Standards Conforms to UL and CSA.
2-4
Page 28

2.3 Function Lists

2.3.1 MP940 Motion Control Function Specifications

The following table lists the motion control function specifications for the MP940.
Table 2.3 MP940 Motion Control Function Specifications
Item Specification
Number of Controlled Axes 1 axis
Control Specifications PTP Control Linear, rotary, and infinite-length
Interpolation Linear
Speed Reference Output
Torque Reference Output
Position Control Positioning, external positioning, zero point return, interpo-
Phase Control Ye s
Position Control Reference Unit mm, inch, deg, pulse
Reference Unit Minimum Setting
Maximum Pro­grammable Value
Speed Reference Unit
Acceleration/Decel­eration Type
Override Function 0% to 327.67% (in increments of 0.01%)
Coordinate System Rectangular coordinates
Zero Point Return Eight types
Programs Language Special motion language
Number of Tasks Up to eight programs can be executed in parallel.
Number of Pro­grams
Program Capacity 80 Kbytes
Applicable SERVOPACK Analog: SGDH-AE
Encoder Incremental or absolute
Speed Control Speed Reference -327.68 to +327.67 %/Rated speed
Acceleration/Decel­eration Type
Ye s
Ye s
lation, interpolation with position detection function, fixed speed feed, fixed length feed
1, 0.1, 0.01, 0.001, 0.0001, 0.00001
-2147483648 to +2147483647 (signed 32-bit value)
mm/min, inch/min, deg/min, pulse/min
Linear, asymmetric, S-curve
• DEC1 + Phase C
• DEC2 + Phase C
• DEC1 + LMT
• Phase C
Up to 32
With torque limit function
Linear, asymmetric, S-curve (moving average)
2.3
Function Lists
• DEC1 + ZERO
• DEC2 + ZERO
• DEC1 + LMT + ZERO
• ZERO
2
2-5
Page 29
Specifications and Functions
2.3.2
PLC Function Specifications
Torque Control Torque Reference -327.68 to +327.67 %/Rated torque
Phase Control Speed Reference
Commands
Item Specification
With speed limit function
-327.68 to +327.67 %/Rated speed
Unit
Speed Compensa­tion
Position Compen­sation
-327.68 to +327.67 %/Rated speed
-2147483648 to +2147483647 pulses
Axis Move Commands: 5 commands
MOV, MVS, ZRN, SKP, EXM Basic Control Commands: 5 commands ABS, INC, POS, MVM, PLD
Speed and Acceleration/Deceleration Commands: 8 com­mands
ACC, DCC, SCC, VEL, IAC, IDC, IFP, FMX
High-level Control Commands: 4 commands PFN, INP, SNG, UFC
Control Commands: 10 commands MSEE, TIM, IOW, END, RET, EOX, IF
ELSE IEND, WHILE WEND, SFORK JOINTO SJOINT
Math and Sequence Control Commands: 32 commands =, +, -, *, /, MOD, |, ^, &, !, (), S{}, R{}, SIN, COS, TAN,
ASN, ACS, ATN, SQRT, BIN, BCD, ==, <>, >, <, >=, <=, SFR, SFL, BLK, CLR

2.3.2 PLC Function Specifications

The following table lists the PLC function specifications.
Table 2.4 PLC Function Specifications
Item Specifications
Program Capacity Equivalent to 2 Ksteps (varies according to amount of motion program used; 40 Ksteps
max.)
Control Method Sequence: scan methods
Programming Lan­guage
Scanning Time slicing within servo-control scan (S scan) period.
CP language Ladder logic diagram: Relay circuit
Text-type language: Numeric operations, logic operations, etc.
Servo-control scan time setting: 0.5 / 1.0 / 2.0 / 4.0 ms
High-speed scan time setting:
Low-speed scan time setting:
0.5 to 32.0 ms (0.01-ms units); S-scan integer multiple
2.0 to 100 ms (0.01-ms units); S-scan integer multiple
2-6
Page 30
Item Specifications
User Drawings, Func­tions, and Motion Pro­grams
Data Memory Common data (M) registers:
Trace Memory Data trace: 4 Kwords (4 Kwords x 1 group)
Memory Backup Program memory: CMOS battery backup
Data Types Bit (relay):
Register Designation Method
Instructions Program control instructions:
Start drawings (DWG.A):
Servo-control scan process drawings (DWG.S):
High-speed scan process drawings (DWG.H):
Low-speed scan process drawings (DWG.L):
Interrupt processing drawings (DWG.I):
Number of steps: User functions:
Motion programs:
Revision history of drawings and motion programs Security function for drawings and motion programs
System (S) registers:
Drawing local (D) registers: Drawing constant (#) registers: Input (I) registers:
Output (O) registers: Constant (C) registers:
ON/OFF
Integer:
Double integer: Real number:
Register number:
Symbolic designation:
Direct I/O instructions: Relay circuit instructions:
Logic operation instructions: Numeric operation instructions: Numeric conversion instructions:
Numeric comparison instructions: Data manipulation instructions: Basic function instructions:
Table data manipulation instructions: DDC instructions: System functions:
-32768 to +32767
-2147483648 to +2147483647
± (1.175E - 38 to 3.402E + 38)
Direct designation of register number
Up to 8 alphanumeric characters (up to 200 symbols per drawing) With automatic number or symbol assignment
4 drawings max. Up to three hierarchical draw­ing levels.
16 drawings max. Up to three hierarchical drawing levels.
16 drawings max. Up to three hierarchical drawing levels
32 drawings max. Up to three hierarchical drawing levels
8 drawings max. Up to three hierarchical draw­ing levels
Up to 500 steps per drawing Up to 32 functions
Up to 32
32 Kwords 1 Kwords
Up to 16 Kwords per drawing Up to 16 Kwords per drawing 2 Kwords (including internal input registers)
2 Kwords (including internal output registers) 32 Kwords
14 instructions
2 instructions
14 instructions
3 instructions
16 instructions
9 instructions
7 instructions 14 instructions 10 instructions
11 instructions 13 instructions
6 instructions
2.3
Function Lists
(including set and reset coils)
2
2-7
Page 31
Specifications and Functions
2.3.3
Motion Command Descriptions

2.3.3 Motion Command Descriptions

Classifica-
tion
Axis Move Com­mands
Basic Control Com­mands
Command Name Programming Format Function/Meaning
MOV POSITIONING
MVS LINEAR INTER-
ZRN ZERO POINT
SKP SKIP
EXM EXTERNAL PO-
ABS ABSOLUTE
INC INCREMENTAL
POS CURRENT POSI-
MVM MOVE ON MA-
PLD PROGRAM CUR-
The following table describes the motion commands.
Table 2.5 Motion Command Descriptions.
MOV [axis1] - ; *
POLATION
RETURN
SITIONING
MODE
MODE
TION SET
CHINE COORDI­NATE
RENT POSI­TION UPDATE
MVS [axis1] - F - ;
ZRN [axis1] - ;
SKP [axis1] - SS - F - ;
EXMaxis1]- D - ;
ABS; Treats all subsequent coordinate words as
INC; Treats all subsequent coordinate words as
POS [axis1] - ;
MVM MOV [axis1] - ; or
MVM MVS [axis1] - ;
PLD [axis1] ; Updates the program current position for
Executes positioning at rapid traverse speed.
Executes linear travel at interpolation feed speed F.
Returns axis to its zero point.
If the SKIP signal turns ON during a linear interpolation operation, skips the remaining movement and proceeds to the next block.
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.
absolute values.
incremental values.
Changes the current values to the desired coordinate values. Subsequent move com­mands use this new coordinate system.
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.
” in MOV[axis1] •••; denotes the numeric data for axis 1.
2-8
Page 32
2.3
Function Lists
Classifi-
cation
Speed and Ac­celera­tion/ Decelera­tion Com­mands
High-lev­el Control Com­mands
Command Name Programming Format Function/Meaning
ACC ACCELERA-
TION TIME CHANGE
DCC DECELERA-
TION TIME CHANGE
SCC S-CURVE TIME
CONSTANT CHANGE
VEL SET VELOCITY
IAC INTERPOLA-
TION ACCELER­ATIO N T I M E CHANGE
IDC INTERPOLA-
TION DECELER­ATIO N T I M E CHANGE
IFP INTERPOLA-
TION FEED SPEED RATIO SETTING
FMX MAXIMUM IN-
TERPOLATION FEED SPEED SETTING
PFN IN-POSITION
CHECK
INP SECOND IN-PO-
SITION CHECK
SNG IGNORE SIN-
GLE BLOCK SIG­NAL
UFC USER FUNC-
TION CALL
ACC [axis1] - ;
DCC [axis1] - ;
SCC [axis1] - ;
VEL [axis1] - ;
IAC T - ;
IDC T - ;
IFP P - ;
FMX T - ;
MVS [axis1] PFN; or PFN [axis1] ;
INP [axis1] - [axis2] - …;
SNG MVS [axis1]100. [axis2]200. F1000;
UFC Function_name Input_data, Input_address, Output_data;
Sets the acceleration time for linear acceleration/deceleration.
Sets the deceleration time for linear acceleration/deceleration.
Sets the time constant for moving aver­age acceleration/deceleration.
Sets the feed speed.
Sets the acceleration time for linear acceleration/deceleration for interpola­tion travel.
Sets the deceleration time for linear acceleration/deceleration for interpola­tion travel.
Designates the maximum feed % for the speed designation during an interpola­tion feed.
Sets the maximum speed during an inter­polation feed.
The interpolation acceleration time is the time from zero until this speed is reached.
Proceeds to the next block after the posi­tioning commanded by the interpolation travel command in the same block or a previous block enters the positioning completion range (parameter setting).
A block with this command will be exe­cuted continuously, even in single-block operation mode.
SNG cannot be designated on its own.
Calls a function created by the user.
2
2-9
Page 33
Specifications and Functions
2.3.3
Motion Command Descriptions
Classifi-
cation
Se­quence Com­mands
Command Name Programming Format Function/Meaning
= SUBSTITUTE (Result) = (Arithmetic expression) Substitutes operation results. Performs
calculations from left to right (with no
order of priority).
+ ADD
- SUBTRACT
* MULTIPLY
/ DIVIDE
MOD REMAINDER
MW = MW + MW - ; MW = MW + 123456; MW = 123456 + MW - ;
MW = MW - MW - ; MW = MW - 123456; MW = 123456 - MW - ;
MW = MW MW - ; MW = MW 123456; MW = 123456 MW - ;
MW = MW /MW - ; MW = MW /123456; MW = 123456 /MW - ;
MW = MW /MW - ; MW = MOD;
Performs integer and real number addi-
tion. Calculates combinations of integers
and real numbers as real numbers.
Performs integer and real number sub-
traction. Calculates combinations of inte-
gers and real numbers as real numbers.
Performs integer and real number multi-
plication. Calculates combinations of
integers and real numbers as real num-
bers.
Performs integer and real number divi-
sion. Calculates combinations of integers
and real numbers as real numbers.
When programmed in the next block
after a division, MOD stores the remain-
der in the designated register.
| OR (logical OR)
MB = MB | MB - ;
Performs bit/integer logical OR.
MB = MB | 1; MW = MW | MW - ; MW = MW | H00FF;
^ XOR (logical ex-
clusive OR)
& AND (logical
AND)
MW = MW ^ MW - ; MW = MW ^ H00FF;
MB = MB & MB - ; MB = MB & 1;
Performs integer logical exclusive OR.
Performs bit/integer logical AND.
MW = MW & MW - ; MW = MW & H00FF;
! NOT (logical
complement)
MB = !MB - ; MB = !1;
Performs bit/integer logical complement
(inverts bits).
MW = !MW - ; MW = !H00FF;
() PARENTHESES
S{} SET BIT
MW = MW & (MW | MW―);
S{MB } = MB & MB - ;
The logical arithmetic expression inside
parentheses is calculated first.
If the logical operation result is “true,"
the designated bit turns ON. The desig-
nated bit does not turn OFF, even if the
logical operation result is “false."
R{} RESET BIT
R{MB } = MB & MB - ;
If the logical operation result is “true,"
the designated bit turns OFF. The desig-
nated bit does not turn ON, even if the
logical operation result is “false."
SIN SINE
COS COSINE
SIN(MW - ); SIN(90)
COS(MW - ); COS(90)
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.
2-10
Page 34
2.3
Function Lists
Classifi-
cation
Se­quence Com­mands
Command Name Programming Format Function/Meaning
TAN TA NGENT
ASN ARC SINE
ACS ARC COSINE
ATN ARC TANGENT
SQT SQUARE ROOT
BIN BCD-TO-BINARY
BCD BINARY-TO-BCD
== MATCH
<> MISMATCH
> GREATER THAN
< LESS THAN
>= GREATER THAN
OR EQUAL TO
<= LESS THAN OR
EQUAL TO
SFR RIGHT SHIFT
SFL LEFT SHIFT
BLK BLOCK MOVE
CLR CLEAR
TAN(MF - ); TAN(45.0)
ASN(MF - ); ASN(90.0)
ACS(MF - ); ACS90.0);
ATN(MW - ); ATN45);
SQT(MW - ); SQT(100)
BIN (MW - );
BCD (MW - );
IF MW == MW - ; WHILE MW == MW - ;
IF MW <> MW - ; WHILE MW <> MW - ;
IF MW > MW - ; WHILE MW > MW - ;
IF MW < MW - ; WHILE MW < MW - ;
IF MW >= MW - ; WHILE MW >= MW - ;
IF MW <= MW - ; WHILE MW <= MW - ;
SFR MB - N - W - ;
SFL MB - N - W - ;
BLK MW MW - W - ;
CLR MB W - ;
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.
Obtains the arc tangent of the integer or real number (deg), and returns a real value.
Obtains the square root of the integer or real number, and returns a real value.
Converts BCD data to binary data.
Converts binary data to BCD data.
Used in an IF or WHILE conditional expression. If the left side and right side match, the condition is “true."
Used in an IF or WHILE conditional expression. If the left side and right side do not match, the condition is “true."
Used in an IF or WHILE conditional expression. If the left side is greater than the right side, the condition is “true."
Used in an IF or WHILE conditional expression. If the left side is less than the right side, the condition is “true."
Used in an IF or WHILE conditional expression. If the left side is greater than or equal to the right side, the condition is “true."
Used in an IF or WHILE conditional expression. If the left side is less than or equal to the right side, the condition is “true."
Shifts only the designated number of word variables to the right.
Shifts only the designated number of word variables to the left.
Moves the block (constant designation) beginning with the designated bit (word) variable.
Sets the number of constants specified in the variable group beginning with the designated bit (word) variable to OFF (“0").
2
2-11
Page 35
Specifications and Functions
2.3.3
Motion Command Descriptions
Classifi-
cation
Control Com­mands
Command Name Programming Format Function/Meaning
MSEE SUBROUTINE
MSEE MPS - ;
Executes the MPS- subroutine.
CALL
TIM DWELL TIME
TIM T - ;
Waits for the period of time specified by
T, and then proceeds to the next block.
IOW I/O WAIT
IOW MB == ∗∗∗;
Stops execution of the motion program
until the conditional expression given in
the command is satisfied.
END PROGRAM END END; Ends the motion program.
RET SUBROUTINE
RET; Ends the subroutine.
RETURN
EOX ONE SCAN WAIT EOX; Separates continuous sequence instruc-
tions and forces a wait of one scan before
continuing execution.
IF ELSE IEND
Branching com­mands
IF (conditional expression) ; (process 1) ELSE; (process 2)
Executes process 1 if the conditional
expression is satisfied, and executes pro-
cess 2 if the conditional expression is not
satisfied.
IEND;
WHILE WEND
SFORK JOINTO SJOINT
Repeat com­mands
Selective execu­tion commands
WHILE (conditional expression) ;
WEND;
SFORK conditional expression 1? label 1, Conditional expression 2? label 2, •••;
Label 1: Process 1
Repeatedly executes WHILE to WEND
processing for as long as the conditional
expression is satisfied.
Executes process 1 if conditional expres-
sion 1 is satisfied, and executes process 2
if the conditional expression 2 is satis-
fied.
JOINTO label X Label 2: Process 2 JOINTO label X
Label
・ ・
Label X: SJOINT;
2-12
Page 36

2.3.4 Ladder Instructions and Standard System Functions

The following table lists the ladder instructions and standard system functions.
Table 2.6 Ladder Instructions and Standard System Functions
Type Name Symbol Description
Program Control Instructions
Direct I/O In­structions
CHILD DRAW­ING CALL
MOTION PRO­GRAM CALL
FOR Structure FOR
WHILE Struc­ture
IF Structure IFON/IF-
DRAWING END
COMMENT "nnnnnnn" A character string enclosed in quotation marks is treated as a comment.
FUNCTION CALL
FUNCTION IN­PUT
FUNCTION OUTPUT
INPUT STRAIGHT
OUTPUT STRAIGHT
SEE Designate the child drawing number or the grandchild drawing number
to be called after SEE.
SEE H01
MSEE Designate the motion program number and the MSEE work register
address to be called after MSEE.
MSEE MPM001 DA00000
Repeats execution statement 1
: :
FEND
WHILE
ON/OFF
WEND
OFF
ELSE
IEND
DEND End of drawing (DWG)
FSTART Calls a function.
FIN Function input instruction
FOUT Function output instruction
XCALL Calls an extension program.
INS
OUTS
FOR V = a to b by c
V: Can designate any integer register I or J. a, b, c: Can designate an any integer value (b > a > 0, c > 0). FEND: End of FOR instruction.
Repeats execution statement 2 WEND: End of WHILE-ON/OFF instruction
Conditional execution statement
IEND: End of IFON/IFOFF instruction
Stores input data from the designated input register in the function input register.
Stores output data from the function output register in the designated output register.
INS MA00100 ─────○───┤ Executes the input and storage of data with interrupts disabled.
OUTS MA00100 ─────○───┤ Executes the setting and output of data with interrupts disabled.
2.3
Function Lists
2
2-13
Page 37
Specifications and Functions
2.3.4
Ladder Instructions and Standard System Functions
Type Name Symbol Description
Relay Circuit In-
NO CONTACT No limit in a series circuit.
structions
NC CONTACT No limit in a series circuit.
RISING PULSE No limit in a series circuit.
FALLING PULSE
10-MS ON-DE­LAY TIMER
10-MS OFF­DELAY TIMER
1-S ON-DELAY TIMER
1-S OFF-DE­LAY TIMER
COIL
Bit designation of any register as a relay number is possible.
Bit designation of any register as a relay number is possible.
Bit designation of any register as a relay number is possible.
No limit in a series circuit. Bit designation of any register as a relay number is possible.
Set value: Timer register
Set value = Any register or constant (setting unit: 10 ms) Timer register = M or D register
Ts
Set value: Timer register
s
Set value = Any register or constant (setting unit: 1 s)
Ts
Timer register = M or D register
MB000000 MW0200 = 0001 MB000000
Logic Operation Instructions
IFON
SET COIL
MB000010MB000000
MB000010 turns ON when MB000000 turns ON. From then onwards, it remains ON even when MB000000 turns OFF.
RESET COIL
MB000010MB000020
MB000010 turns OFF when MB000020 turns ON. From then onwards, it remains OFF even when MB000020 turns OFF.
Branching/con­vergence
AND Integer designation of any register or constant is possible.
OR Integer designation of any register or constant is possible.
A branching or convergence symbol can be connected to any of the above relay instructions.
XOR Integer designation of any register or constant is possible.
ADDITION + Ordinary numeric addition (with operation error)
SUBTRAC-
- Ordinary numeric subtraction (with operation error)
TION
EXTENDED
++ Closed numeric addition (without operation error)
ADDITION
EXTENDED
-- Closed numeric subtraction (without operation error)
SUBTRAC-
MW00280 + 00100 MW00220
MW00280 - 00100 MW00220
0 32767 32768 0→→
0 32768 32767 0
TION
2-14
Page 38
Type Name Symbol Description
Numeric Opera­tion Instructions
INTEGER EN­TRY
Starts an integer operation.
MW00280 + 00100 MW00220
2.3
Function Lists
REAL NUM­BER ENTRY
STORE Stores the operation result in the designated register.
MULTIPLICA­TION
DIVISION
INCREMENT INC Adds 1 to the designated register.
DECREMENT DEC Subtracts 1 from the designated register.
MOD MOD Gets the remainder of the division result.
REM REM Gets the remainder of the division result.
ADD TIME TMADD Addition of hours, minutes, and seconds
SUBTRACT TIME
SPEND TIME SPEND Calculates the elapsed time between two times.
×
÷
TMSUB Subtraction of hours, minutes, and seconds
Starts a real number operation.
MW00280 + 00100 MW00220
For integer and long integers, in combination.
INC MW00100
DEC MW00100
MW00100 01000 00121
MOD MW00101
MF00200 REM 1.5 MF00202
TMADD MW00000, MW00100
TMSUB MW00000, MW00100
SPEND MW00000, MW00100
×÷
use and×÷
2
2-15
Page 39
Specifications and Functions
2.3.4
Ladder Instructions and Standard System Functions
Type Name Symbol Description
Numeric Conver­sion Instructions
Numeric Com­parison Instruc­tions
SIGN INVER­SION
1'S COMPLE­MENT
ABSOLUTE VALUE CON­VERSION
BINARY CON­VERSION
BCD CONVER­SION
PARITY CON­VERSION
ASCII CON­VERSION 1
ASCII CON­VERSION 2
ASCII CON­VERSION 3
< < Leaves ON/OFF in B register for comparison instruction results.
= =
INV
COM
ABS
BIN
BCD
PAR ITY Calculates the number of binary bits that are ON.
ASCII The designated character string is converted to ASCII code and substi-
BINASC Converts 16-bit binary data to 4-digit hexadecimal ASCII code.
ASCBIN Converts the numeric value indicated by a 4-digit hexadecimal ASCII
⊥⊥⊥ ⊥
MW00100 INV
If MW00100 = 99, the operation result = -99.
MW00100 CON
If MW00100 = FFFFH, the operation result = 0000H.
MW00100 ABS
If MW00100 = -99, the operation result = 99.
MW00100 BIN If MW00100 = 1234H (hexadecimal), the operation result = 1234 (decimal).
MW00100 BCD If MW00100 = 1234 (decimal), the operation result = 1234H (hexa­decimal).
If MW00100 = F0F0H, the operation result = 8.
tuted in the register.
MW00200 "ABCDEFG"
BINASC MW00100
code to 16-bit binary data.
ASCBIN MW00100
MB000010
MW00000 < 10000
MB000010
≥≥
> >
RANGE CHECK
RCHK Checks whether or not the value in the A register is in range.
2-16
IFON
MW00100 RCHK -1000, 1000
Page 40
Type Name Symbol Description
Data Operation Instructions
BIT ROTATION RIGHT
MOVE BITS MOVB Source Desti. Width
MOVE WORD MOVW Source Disti. Width
EXCHANGE XCHG Source1 Source2 Width
SET WORDS SETW Desti. Data Width
BYTE-TO­WORD EXPAN­SION
WORD-TO­BYTE COM­PRESSION
BINARY SEARCH
SORT SORT Sorts registers within the designated register range.
BIT SHIFT LEFT
BIT SHIFT RIGHT
COPY WORD COPYW Copies the designated register range.
BYTE SWAP BSWAP The upper and lower bytes of the designated word are swapped.
ROTR Bit-addr Count Width
ROTR MB00100A N=1 W=20
MOVB MB00100A MB00200A W=20
MOVW MB00100 MB00200 W=20
XCHG MB00100 MB00200 W=20
SETW MW00200 D=00000 W=20
BEXTD Expands the byte data stored in the word registers into words.
BEXTD MW00100 to MW00200 B=10
BPRESS Collects the lower bytes of the word data stored in the word register
area.
BPRESS MW00100 to MW00200 B=10
BSRCH Retrieves the register position that matches the data within the desig-
nated register range. BSRC MW00000 W=20 D=100 R=MW00100
SORT MW00000 W=100
SHFTL Shifts the designated bit strings to the left.
SHFTL MB00100A N=1 W=20
SHFTR Shifts the designated bit strings to the right.
SHFTR MB00100A N=1 W=2
COPYW MW00100 MW00200 W=20
BSWAP MW00100
2.3
Function Lists
2
2-17
Page 41
Specifications and Functions
2.3.4
Ladder Instructions and Standard System Functions
Type Name Symbol Description
Basic Function Instructions
SQUARE ROOT
SINE SIN Input = degrees
COSINE COS Input = degrees
TANGENT TA N Input = degrees
ARC SINE ASIN
SQRT Taking the square root of a negative number results in the square root
of the absolute value multiplied by -1.
MF00100 SQRT
MF00100 SIN
MF00100 SIN
MF00100 COS
MF00100 SIN
MF00100 TAN
MF00100 SIN
MF00100 ASIN
MF00100 SIN
ARC COSINE ACOS
ARC TANGENT ATAN
EXPONENT EXP
NATURAL
LN
LOGARITHM
COMMON
LOG
LOGARITHM
MF00100 ACOS
MF00100 SIN
MF00100 ATAN
MF00100 SIN
MF00100 EXP
MF00100 SIN
e MF00100
MF00100 LN
MF00100 SIN
(FM00100)
log
e
MF00100 LOG
MF00100 SIN
log
(FM00100)
10
2-18
Page 42
Type Name Symbol Description
DDC Instructions DEAD ZONE A DZA
DEAD ZONE B DZB
UPPER LIMIT LIMIT
PI CONTROL PI
PD CONTROL PD
PID CONTROL PID
Table Data Oper­ation Instructions
FIRST-ORDER LAG
PHASE LEAD/ LAG
FUNCTION GENERATOR
INVERSE FUNCTION GENERATOR
LINEAR AC­CELERATOR/ DECELERA­TOR 1
LINEAR AC­CELERATOR/ DECELERA­TOR 2
PULSE WIDTH MODULATION
TABLE READ TBLBR TBLBR TBL1, MA00000, MA00100
TABLE WRITE TBLBW TBLBW TBL1, MA00000, MA00100
ROW SEARCH TBLSRL TBLSRL TBL1, MA00000, MA00100
COLUMN SEARCH
TABLE CLEAR TBLCL TBLCL TBL1, MA00000
TABLE BLOCK MOVE
QUEUE TABLE READ
QUEUE TABLE READ AND IN­CREMENT
QUEUE TABLE WRITE
QUEUE TABLE WRITE AND INCREMENT
QUEUE POINTER CLEAR
LAG
LLAG
FGN
IFGN
LAU
SLAU
PWM
TBLSRC TBLSRC TBL1, MA00000, MA00100
TBLMV TBLMV TBL1, TBL2, MA00000
QTBLR QTBLR TBL1, MA00000, MA00100
QTBLRI QTBLRI TBL1, MA00000, MA00100
QTBLW QTBLW TBL1, MA00000, MA00100
QTBLWI QTBLWI TBL1, MA00000, MA00100
QTBLCL QTBLCL TBL1
⊥⊥⊥⊥⊥⊥⊥ ⊥ ⊥ ⊥
MW00100 DZA 00100
MW00100 DZB 00100
MW00100 LIMIT -00100 00100
MW00100 PI MA00200
MW00100 PD MA00200
MW00100 PID MA00200
MW00100 LAG MA00200
MW00100 LLAG MA00200
MW00100 FGN MA00200
MW00100 IFGN MA00200
MW00100 LAU MA00200
MW00100 SLAU MA00200
MW00100 PWM MA00200
2.3
Function Lists
2
2-19
Page 43
Specifications and Functions
2.3.4
Ladder Instructions and Standard System Functions
Type Name Symbol Description
Standard Sys­tem Functions
COUNTER COUNTER Increments or decrements a counter.
FIRST-IN FIRST-OUT
TRACE TRACE Data trace execution control
DATA TRACE READ
SEND MES­SAGE
RECEIVE MES­SAGE
FINFOUT First-in, first-out
DTRC-RD Data readout from data trace memory to user memory
MSG-SND Sending a message from a Communications Module
MSG-RCV Receiving a message from a Communications Module
2-20
Page 44

2.4 Main CP-717 Functions

The CP-717 is configured of five managers for managing and controlling the MP940 system.
The main functions developed for each of these managers are shown in the following table.
Manager Function Description
File Manager CP-717 system and file configuration is displayed in a tree structure, and
Engineering Manag-erCalls engineering tools, and can perform various monitoring operations
Print/List Manager Print processing Lists the jobs currently being printed and the jobs
User Menu Manager Shortcut registra-
Communications Process Manager
2.4
Main CP-717 Functions
various methods of file control are available. Online and offline control are both possible.
File control The folders and files required for the system con-
figuration are organized in a tree structure.
User administration This is a user security function centered on log-on
and log-off.
File transfer Transfers data between programming device and
Machine Controller.
Command startup Starts tools.
when in online mode with the MP940.
Command execu­tion
Definition settings Defines Module configuration, systems, scan time,
Ladder logic pro­gramming
Utilities Provides register lists, cross references, disabled
Motion program­ming
tion
Communications processing
Provides all programming device functions. File Manager can also be called.
application data, data trace, groups, and motion parameters.
Provides a programming environment based on new production, properties, constant tables, I/O conversion tables, interlock tables, element assem­bly tables, and adjustment panels.
coil lists, comment lists, and register number replacement tools.
Provides a motion programming environment based on the Motion Editor.
that are queued for printing. Can also cancel the print command.
Creates a shortcut icon on the desktop.
Sets transfer parameters and manages communica­tions with the MP940.
2
2-21
Page 45
Specifications and Functions

2.5 Function Tree Structure

The following diagram shows the commands started from each manager. With the CP-717 the
File Manager Window is displayed first.
Configuration
Communications
User Menu Manager
Definitions
Group Definitions
Scan Setting
Data Trace
List Manager
Motion
New Programs
Existing Programs
Position Monitoring
Engineering Manager
Menu Lists
Tools
Register Lists
Cross-Reference
Disable Lists
File Manager
C Register
C Register List
Print Setting
Transfer
Register Lists
Tables
Table Data List
User Manager
Online/Offline
Properties
Programs
New Drawings
Properties
Main Programs
Module Configura­tion
SERIAL
System Definitions
Application Settings
Task Monitoring
Motion Alarm
LIO
Comments
Register Number Replacement
SVA
2-22
CNTR
MLINK
Constant Table
I/O Conversion Table
Interlock Table
Element Assembly Ta bl e
Adjustment Panel
Page 46

2.6 SERVOPACK Specifications

pply

2.6.1 Outer Appearance and Nameplate Example

YASKAWA
SERVOPACK
SGDH-
MODE/SET
DATA/ POWER
CHARGE
L1
C N
L2
L3
12
C N 1
L1C L2C B1 B2 B3
C
U
N 2
V
W
Σ-II Series SGDH SERVOPACK
2.6
SERVOPACK Specifications
SERVOPACK model number
SGDH-30AE
18.6
Serial number
Applicable power
24.8
3.0(4.0)
Applicable motor capacity
su
2

2.6.2 Model Numbers

Maximum applicable Servomotor capacity (Refer to the following table.)
Specified form E: With built-in functions for Option Unit
Option specifications None: Base-mounted R: Rack-mounted (Available only for 5 kW max.) P: Duct ventilation (Available only for 6 or 7.5 kW.)
SGDH- 10 A E
Σ-II Series
SGDH SERVOPACK
Volta ge
A: 200 V B: 100 V D: 400 V
*The 100-V voltage applies to 0.2-kW SGMAH and SGMPH Servomotor models only.
- □
2-23
Page 47
Specifications and Functions
2.6.2
Model Numbers
INFO
Max. Applicable Motor
Capacity Symbol
Capacity (kW)
Max. Applicable Motor
Capacity Symbol
Capacity (kW)
A3 0.03 08 0.75
A5 0.05 10 1.0
01 0.10 15 1.5
02 0.20 20 2.0
04 0.40 30 3.0
05 0.50
Note: The only 100-V servomotor models are the SGMAH and SHMPH
Servomotors of 0.2 kW or less.
For details on SERVOPACK and Servomotor specifications and functions, refer to Σ-II Series SGM/ SGDH User's Manual: Design and Maintenance (SIE-S800-32.2).
2-24
Page 48

3 Basic System Operation

This chapter explains the basic operation of the MP940 system.
3.1 Operating Modes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -3-3
3.1.1 Online Operating Mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-3
3.1.2 Offline Stop Mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-3
3.2 Start and Stop Sequences- - - - - - - - - - - - - - - - - - - - - - - - - - 3-5
3.2.1 DIP Switch Settings - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-5
3.2.2 Start Sequence- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-7
3.3 Scan Processing - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-10
3.3.1 Overview of Scan Processing - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-10
3.3.2 S Scan Details - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-11
3.3.3 Setting Scan Times- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-12
3.3.4 Setting the System Scan Time - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-13
3.3.5 Setting Scan Time Definitions - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-14
3.3.6 Saving Scan Time Definitions - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-15
3.3.7 Completing Scan Time Definitions - - - - - - - - - - - - - - - - - - - - - - - - - 3-15
3
3.4 User Programs - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-16
3.4.1 Drawings (DWGs)- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-16
3.4.2 Execution Control of Parent Drawings - - - - - - - - - - - - - - - - - - - - - - 3-17
3.4.3 Motion Programming- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-20
3.5 Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-28
3.5.1 Standard System Functions- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-28
3.5.2 Creating User Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-29
3.5.3 Determining the I/O Specifications - - - - - - - - - - - - - - - - - - - - - - - - - 3-29
3.5.4 Defining Function I/O - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-30
3.5.5 Creating the Body of the Function - - - - - - - - - - - - - - - - - - - - - - - - - 3-31
3.5.6 Creating the Program that Calls the Function - - - - - - - - - - - - - - - - - 3-32
3-1
Page 49
Basic System Operation
3.6 Registers - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-34
3.6.1 Register Designation Methods - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-34
3.6.2 Data Types- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-35
3.6.3 Types of Register - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-38
3.6.4 Using Subscripts I and J - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-40
3.6.5 I/O and Registers in Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-42
3.6.6 Register Ranges in Programs - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-43
3.7 Managing Symbols - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-44
3.7.1 Symbols in Drawings- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-44
3.7.2 Symbols in Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-44
3.7.3 Upward Linking of Symbols - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-45
3.7.4 Automatic Register Number Allocation - - - - - - - - - - - - - - - - - - - - - - 3-45
3-2
Page 50

3.1 Operating Modes

This section explains the online operating mode and the offline stop mode, both of which indi-
cate the MP940 operating status.
3.1
Operating Modes
Operating mode
Fig 3.1 MP940 Operating Modes

3.1.1 Online Operating Mode

When the power for the MP940 is turned ON, the RDY and RUN indicators will light (the
ALM indicators will not light), and the Module will enter the online operating mode. This
means that the user program and I/O operations are being executed in the MP940 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 10 SERVOPACK
Inspection, Maintenance, and Troubleshooting.
Online operating mode
RDY and RUN indicators lit User program and I/O operation executing
Offline stop mode
RDY or RUN indicators unlit User program stopped
3

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:
1. When the program memory has not been initialized (see * 1.)
2. When a serious failure, such as watchdog timer error, has occurred (see * 1.)
3. When a STOP operation has been performed from the CP-717 (see * 2.)
4. When the RUN/STOP switch has been set to OFF (STOP) and the power has been
turned ON (see * 3.)
Note: 1. The above cases apply when a user program error occurs, or when
2. The online operating mode is entered by performing a RUN oper-
there is a hardware fault in the MP940. For details on the error content and the action to be taken, see Chapter 10 SERVOPACK Inspection, Maintenance, and Troubleshooting.
ation.
3-3
Page 51
Basic System Operation
3.1.2
Offline Stop Mode
3. The online operating mode is entered by turning ON (RUN) the RUN/STOP switch.
3-4
Page 52

3.2 Start and Stop Sequences

This section explains the start and stop sequences of the MP940. 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 the following figure, there are six pins on the DIP switch on the CPU Module. The fol-
lowing table shows the function of each pin.
Table 3.1 DIP Switch Pin Functions
Pin Name Setting Function
654321
RUN
INIT
TEST
FLASH
P.P
COPY
NO
ONOFF
6 RUN ON User program operating ON
5 INITIAL ON Pin 4 OFF:
4 TEST ON Terminal mode/initialization mode OFF
3 FLASH ON Copy program data from flash memory to RAM ON
2 PP
Default
1 COPY ON Copy M register from flash memory. ON
3.2
Start and Stop Sequences
Default Setting
OFF User program stopped
OFF
ON: Memory clear
OFF Pin 4 OFF:
ON: Setting disabled
OFF Online
OFF Do not copy program data from flash memory
to RAM
ON Defaults for port 1 only OFF
OFF Use memory settings
OFF Do not copy M register from flash memory.
3
• NO is indicated at the arrow at the lower right of the DIP switch. When a pin is moved to
the right side it is ON, and when moved to the left it is OFF.
• If using the CPU Module without backup for the battery, be sure to set the pin no.5 (INI-
TIAL) to ON.
3-5
Page 53
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 and OFF, memory will be initialized, and the user programs and definition data will be
deleted.
1 2 3 4 5
Turn OFF the MP940 power.
Turn ON the DIP switch pins for INIT and TEST.
6
RUN
5
INITIAL
TEST
FLASH
P.P
1234
COPY
NO
Turn ON the power, and check that the RDY and RUN indicators flash, and then wait for 4 to 5 seconds (Flashes until the power is turned OFF).
Turn OFF the power, and return the DIP switch pins to their orig­inal settings, with only the RUN pin ON.
6
RUN
5
INITIAL
TEST
FLASH
P.P
1234
COPY
NO
Turn ON the power again.
Always initialize memory if you remove the battery when the Module power supply is
turned OFF.
3-6
Page 54

3.2.2 Start Sequence

The MP940 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 indica-
tor 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 10 SERVOPACK Inspection, Mainte-
nance, and Troubleshooting. The following table shows the MP940 indicators.
Normal Lit Unlit Unlit Unlit The user program is stopped.
Error Unlit Unlit Lit Unlit Hardware reset status (while display is continu-
Alarm - - - Lit Battery alarm
Other
Type
3.2
Start and Stop Sequences
Table 3.2 Indicators and Indicator Patterns
Indicator
RDY RUN ALM BAT
Lit Lit Unlit Unlit The user program is executing normally.
ing)
Unlit Unlit Unlit Unlit During initial execution (while display is con-
tinuing)
Unlit - Lit Unlit A serious error has occurred.
Unlit Unlit
Lit Lit Lit Unlit • Calculation error
Reported to the system (S) register (no indicator dis­play)
Flashing Flashing
RDY and RUN flash repeat­edly at the same time.
Unlit Unlit Lit Unlit Offline test mode
Flashing
Unlit • Flashing twice: RAM error
• Flashing three times: ROM error
• Flashing four times: Peripheral LSI error
• I/O error
Hardware status (power loss, RUN/STOP, test mode, etc.)
Unlit Unlit Memory initialization has been completed for
the DIP switch settings.
Meaning
3
3-7
Page 55
Basic System Operation
3.2.2
Start Sequence
MP940 Start Sequence and Basic Operation
Power ON
Interrupt signal
Test mode
switch
Program mem-
ory check
Program data: Memory clear
Startup self­diagnosis
Detect RUN switch
Start watchdog timer
Execute DWG.A
S scan synchronization
DWG.S S scan process
= Test mode
= Normal mode
= Not damaged
= Damaged
Ground
Online self­diagnosis
Offline self­diagnosis
Execute DWG.I
End after one execution
DWG.H H scan process
DWG.L L scan process
3-8
Time slice execution
Page 56
3.2
Start and Stop Sequences
The MP940 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. Operation Stop
The MP940 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.)
Note: 1. The MP940 can be restarted only by turning ON the power again.
2. Restart the system by turning the power OFF and ON. 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-9
Page 57
Basic System Operation
3.3.1
Overview of Scan Processing

3.3 Scan Processing

3.3.1 Overview of Scan Processing

Types of Scans
There are three types of MP940 scan processing: S (system) scans, H (high-speed) scans,
and L (low-speed) scans. Scan processing is executed using time slicing within the S-scan
cycle, with the S scan as the basic cycle.
Background processing time for PP processing must be ensured by setting a ratio for alloca-
tion to background processing within the S scan cycle.
Scan Type Details
S scan (system scan) • Basic cycle for scan processing: Select 0.5, 1.0, 2.0, or
4.0 ms.
• S, H, and L scan processing is all executed with time slic­ing within the S-scan cycle.
H scan (high-speed scan) • Set as an integer multiple of S-scan cycle.
• Executed with time slicing within S-scan cycle.
L scan (low-speed scan) • Set as an integer multiple of S-scan cycle.
• Executed with time slicing within S-scan cycle.
Service Scans for Each Function
Except for SVA, the scan for executing I/O processing can be selected for each function.
Function
CNTR S/H/L Processed in sync with S, H, or L.
LIO (DI/DO/AI/AO) S/H/L Processed in sync with S, H, or L.
MECHATROLINK (distributed I/O, etc.)
SVA S/H Scan fixed (not selectable).
Scans Possible for
Servicing
H/L Processed in sync with H, or L.
Parameters can be set to select synchronization with the Phase Control Mode and the Position Control Mode.
Phase Control Mode Synchronization Selection (OBC0016) 0: H scan (default); 1: S scan
Position Control Mode Parameter Synchronization Selection (OBC0017) 0: H scan; 1: S scan (default)
Remarks
3-10
Page 58

3.3.2 S Scan Details

) r
The following diagram shows the internal processing and order of processing of an S scan.
S scan cycle (0.5, 1.0, 2.0, or 4.0 ms)
3.3
Scan Processing
C
L
N
I
T
O
R
HS SS BG
(always completed within scan)
Required
Timer
R
I
SA HA LA
O
(If not completed within 1 scan,
will be executed in next scan.)
Items Always Completed within S Scan
C
L
N
I
T
O
R
HS SS
SA
S-scan application (DWG.S)
S-scan system processing (SVA control loop, etc.)
H-scan system processing (SVA acceleration/ deceleration processing, etc.) (Executed once for each H scan cycle.)
Local I/O processing (DI/DO/AI/AO)
C
R
O
I
M
O
With time limit
Remain­der
Back­ground pro­cessing
3
Timesharing Items
R
I
HA LA
O
C O M
3-11
R
I
O
L-scan application (DWG.L)
H-scan application (DWG.H)
Distributed I/O (MECHATROLINK processing (synchronized to eithe H or L scan)
Serial communications
Page 59
Basic System Operation
3.3.3
Setting Scan Times
Background
Background task (PP processing)
BG
Precautions for Scan Processing
• When processing is to be completed within the S scan, have it completed in approximately 1/2 the time of the S-scan cycle setting.
• Set the ratio allocated to background processing.
Scan Operations
The various scan processing operations are as shown in the following diagram.

3.3.3 Setting Scan Times

Opening the Scan Time Settings Window
From the CP-717 File Manager, double-click on Scan Time Settings in the Definition Folder.
S-scan cycle
DWG.S S-scan processing
DWG.H H-scan processing
DWG.L L-scan processing
Executed with time slicing.
3-12
Page 60
The Scan Time Settings Window will be displayed.

3.3.4 Setting the System Scan Time

3.3
Scan Processing
The MP940 has three scan time levels (system, high-speed, and low-speed). The scan time
setting determines the program execution flow. The system scan time must be set first,
before the other two levels. The high-speed and low-speed scan times are set based on the
system scan time.
The setting range for each of the three scan time levels is shown in the following table. For
details, refer to the MP940 User's Manual: Design and Maintenance Manual.
Scan Time Level Setting Range
System scan 0.5, 1, 2, or 4 ms
High-speed scan 0.5 to 32 ms (system scan integer multiple)
Low-speed scan 2.0 to 100 ms (system scan integer multiple)
Opening the Settings Window
Select Settings (S) and then Basic Control Cycle (B) from the View (V) Menu.
3
3-13
Page 61
Basic System Operation
3.3.5
Setting Scan Time Definitions
Setting Details
Set Time Sets the system scan time value.
The lower number is the value that is currently set.
Maximum Time Sets the maximum system scan time value.
The lower number is the maximum valued measured by the system up to this point.
Current Time Indicates the present value for the system scan time.
Number of Steps Indicates the number of steps for the system scan time.
Background Time Indicates the percentage of the overall system that is being used
for background processing.
Watchdog Set Sets a watchdog time which is the estimated time limit for the
system scan.
• The power supply must first be turned OFF before changing the basic control cycle.
• Even when the memory is cleared, the basic control cycle will not be returned to the default value but the present value will be applied. To return to the default value, turn the power OFF and back ON again.

3.3.5 Setting Scan Time Definitions

In the Online Mode, the Machine Controller’s high-speed scan time will be displayed. In the
Offline Mode, the scan time data saved on the hard disk will be displayed.
3-14
Page 62
3.3
Scan Processing
Setting Details
High Speed Scan Set Time: Input the set value for the scan time.
Maximum Time: The maximum value for the scan time will be displayed. To reset the maximum scan time value, input 0. In the Offline Mode “0” is displayed.
Current Time: The present value for the scan time will be dis­played. In the Offline Mode “0” is displayed.
Steps: The total number of steps for the scan processing draw­ing is displayed.
Low Speed Scan Set the low-speed scan time. For the meaning of each data
item, refer to the description under the high-speed scan time.
Start-up DWG Steps Process Drawing
Interrupt DWG Steps The total number of steps for the interrupt processing drawing
User Function Steps The total number of steps for user functions is displayed.
Total Step Steps The total number of steps for all drawings is displayed.
Program Memory Total: The total amount of program memory used is displayed
The number of steps for the startup processing drawing is dis­played.
is displayed.
(i.e., the total for drawings, functions, and motion programs). In the Offline Mode “0” is displayed.
Available: The remaining program memory is displayed. In the Offline Mode “0” is displayed.
3
INFO
In the Online Mode, the maximum scan time value can be cleared to 0 by entering “0” in the
maximum value field and saving it. After the previous maximum value has been cleared, a
new maximum value will begin to be determined.

3.3.6 Saving Scan Time Definitions

Use the following procedure to save a scan time definition.
1. Select Save(S) from the File(F) Menu.
2. Click the Ye s (Y ) Button in the Scan Time Message Box.
3. Click the OK Button in the message box.

3.3.7 Completing Scan Time Definitions

The scan time settings are completed by closing the Scan Time Window.
To close the window, select Close(C) from the File(F) Menu.
3-15
Page 63
Basic System Operation
3.4.1
Drawings (DWGs)

3.4 User Programs

3.4.1 Drawings (DWGs)

This section explains the basic operation of the MP940, such as the types of user program, the
priority levels, and the execution processing methods.
User programs are managed in units of programming called drawings. Each drawing is iden-
tified 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.
• Parent Drawings
Parent drawings are executed automatically by the system program when the execution
condition is established. See the Types and Priority Levels of Parent Drawings Table
below for execution conditions.
• Child Drawings
Child drawings are executed by being called from a parent drawing using the SEE com-
mand.
• Grandchild Drawings
Grandchild drawings are executed by being called from a child drawing using the SEE
instruction.
• Operation Error Drawings
Operation error drawings are executed automatically by the system program when an
operation error occurs.
• Functions
Functions are executed by being called from a parent, child, or grandchild drawing
using the FSTART instruction.
• 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, I, S, H, L)
according to the purpose of the process. The priority levels and execution conditions are as
shown in the following table.
Table 3.3 Types and Priority Levels of Parent Drawings
Type of Parent
Drawing
DWG.A Startup process 1 Started when power is turned ON (executed once
DWG.I Interrupt process 2 Executed by external interrupts, such as Optional
Role of Drawing
Priority
Level
Execution Condition
only when the power is turned ON)
Module DI interrupts or counter interrupts.
3-16
Number of
Drawings
4
8
Page 64
3.4
g
User Programs
Type of Parent
Drawing
Role of Drawing
Priority
Level
Execution Condition
DWG.S Servo-control scans 3 Fixed-cycle startup (Executed with each servo-con-
trol scan time.)
DWG.H High-speed scan process 4 Servo-control scan (S scan) (Executed by time slic-
ing within cycle.)
DWG.L Low-speed scan process 5 Servo-control scan (S scan) (Executed by time slic-
ing within cycle.)
The following table gives details of the number of drawings for each type of drawing.
Table 3.4 Details of Drawings
Drawing
DWG.A DWG.I DWG.S DWG.H DWG.L
Number of Drawings
Parent Drawing 1(A) 1(I) 1(S) 1(H) 1(L)
Operation Error Drawing 1(A00) 1(I00) 1(S00) 1(H00) 1(L00)
Child Drawings Maximum
Grandchild Drawings
total of 2 drawings
Maximum total of 6 drawings
Maximum total of 14 drawings
Maximum total of 14 drawings

3.4.2 Execution Control of Parent Drawings

Each drawing is executed based on its priority level, as shown in the following figure.
Number of
Drawings
16
16
32
Maximum total of 30 drawings
3
Power ON
DWG.A Startup drawing
S-scan cycle
DWG.S S-scan process
DWG.H H-scan process
DWG.L L-scan process
Operation error
DWG.X00 Operation error drawing
X,A,I,S,H,L
Continue with
inal process
ori
Executed by time slicing.
Interrupt signal
DWG. I Interrupt drawing
Continue with original process
Fig 3.2 Execution Control of Parent Drawings
3-17
Page 65
Basic System Operation
3.4.2
Execution Control of Parent Drawings
Hierarchical 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 draw-
ing 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 drawing is called from that child drawing. This is called the hierarchical arrange-
ment of drawings.
Execution of Drawings
The user prepares each processing program with the parent drawing, child drawing, grand-
child drawing hierarchy, as shown in the following figure.
Parent Drawing
DWG.X DWG.X01.01
Child Drawings
DWG.X01
Grandchild Drawings
DWG.X01.02
Motion programs User functions
MPM001
・ ・ ・
DWG.X01.03
MPM002
DWG.Xnn
・ ・
MPM015
Note: Substitute A, I, H, or L for X.
Fig 3.3 Hierarchical Arrangement of Drawings
Note: 1. A parent drawing is executed automatically by the system, because
the execution condition is determined for each one. In other words, a parent drawing is automatically called by the system. See
3.4.1 Drawings (DWGs) the table on Types and Priority Levels of Parent Drawings below. The user can execute any child or grand­child drawing by programming an instruction that calls a drawing (the SEE instruction) in a parent or child drawing.
FUNC-001
・ ・
FUNC-006
・ ・
FUNC-032
・ ・
FUNC-064
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 corre­sponding to the drawing will be called.
4. Motion programs must be called from H drawings using the MSEE instruction. The MSEE instruction can be used from any H drawing, i.e., from parent, child, or grandchild H drawings.
3-18
Page 66
3.4
User Programs
INFO
• 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 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.
• 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.
Execution Processing Method of Drawings
Drawings in the hierarchy are executed by the lower-level drawings being called from
upper-level drawings. The following figure shows the hierarchical arrangement of drawings,
using the example of DWG.A.
Starts according to the system program execution condition
Parent Drawing Child Drawings Grandchild Drawings
DWG.A
SEE A01
DWG.A01
SEE A01.01
DWG.A01.01
FUNC-001
Functions
FUNC-001
3
DEND
SEE A02
Drawing notation:
SEE A01.02
DEND
DWG.A02
Operation error
DWG.X YY . ZZ
:DWG. X 00
Started auto­matically by the system.
DEND
DWG.A01.02
DEND
FUNC-001
DEND
DWG.A00
DENDDEND
Grandchild drawing No. (01 to 99)
Child drawing No. (01 to 99) Type of parent drawing (A, I, S, H, L)
Operation error drawing (A, I, S, H, L)
3-19
Page 67
Basic System Operation
3.4.3
Motion Programming

3.4.3 Motion Programming

Overview
Motion programming is a textual motion programming language. Motion programming can
be used to create 32 programs separate from the ladder drawings.
Two types of motion program are provided: Main programs (MPM) that can be called
from DWG.H, and subroutines (MPS) that can be called from the main programs.
Table 3.5 Types of Motion Program
Classification
Main Programs
Designation
Method
MPM 1 to 32
Subroutines MPS
1 to 32
Feature
Can be called from DWG.H drawings.
Can be called from the main programs.
Number of
Programs
A total of up to 32 main programs and subroutines can be created.
• Motion programs must be referenced from an H drawing using the MSEE command.
• Each MPM and MPS program number must be unique.
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.
ABS;
MOTION PROGRAM CALL command
MSEE MPM001 DA0000
MPM number
Ladder Logic Program Motion Program
Fig 3.4 Starting a Motion Program by Direct Designation
MOV
MVS
IOW MB0001
MOV
[X]
[X]
[X]
_
_ F
_
・ ・
3-20
Page 68
0 3
Setting device
Fig 3.5 Starting a Motion Program by Indirect Designation
3.4
ABS;
MOTION PROGRAM CALL command
MSEE MW00200 DA0000
MPM number
MW00200
Ladder Logic Program Motion Program
MOV
MVS
IOW MB0001
MOV
[X]
[X]
[X]
_ F
・ ・
User Programs
_
_
3
3-21
Page 69
Basic System Operation
3.4.3
Motion Programming
The system program is started according to the execution condition.
Motion Program Execution Processing Method
A motion program must be executed from DWG.H using the MSEE instruction. Motion pro-
grams can be executed from any H drawing, i.e., from parent, child, and grandchild H draw-
ings.
Parent Drawing
DWG.H
SEE H01
MSEE
MPM002
DEND
Child Drawing
DWG.H01
SEE H01.01
MSEE
MSEE
MPM002
MPM002
DEND
Grandchild Drawing
DWG.H01.01
MSEE
MPM001
DEND
See note
See note
Motion Programs
MPM00
1
VEL [a1]5000 FMX T10000000; IAC T25; IDC T30; MOV [a1]300. MVS [a1]200. . . . .
END
MPM00
2
END
MPM00
3
MSEE
MPS001
END
Subroutine
MPS00
1
RET
INFO
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.
Motion programs are called in the scanning cycle, but as with ladder logic programs, all pro-
grams cannot be executed in one scan. Motion programs are executed and controlled by spe-
cial system motion management functions.
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 next
section.)
The following restrictions apply to calling motion programs. Call motion program with care.
• More than one motion program with the same number cannot be called using the MSEE instruction.
• Subroutines (MPSxxx) cannot be called from the ladder logic program MSEE instruction. They can be called only from within motion programs (MPMxxx and MPSxxx).
• The same subroutine cannot be called from two different locations at the same time.
3-22
Page 70
3.4
User Programs
Executing Motion Programs
To execute a motion program called from a DWG.H drawing by the MSEE instruction, pro-
gram 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.
Bit Signal Name Signal Type
b0: Program operation start request Differential input
b1: Program pause request NO contact (Nor-
mally open contact)
b2: Program stop request NO contact
b3: Program debugging mode selection NO contact
b4: Program debugging start request Differential input
b5: Alarm reset request NO contact
b8: Skip 1 information NO contact
b9: Skip 2 information NO contact
3
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 speci-
fied 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 NO 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-23
Page 71
Basic System Operation
3.4.3
Motion Programming
The following illustration shows the method for executing a motion program.
External control sig­nals Operation start Pause Stop
MSEE work register address
Motion management functions
Program operation start Program pause Program stop
Program con-
DWG.H
Ladder logic pro­gram for motion program control
MSEE MPM001
DA00000
・ ・ ・ ・ ・ ・ ・ ・ ・ ・
DEND
Ladder logic program Motion program
trol signals
Motion pro­gram number
MSEE work register
Status
Control signals
DWG.H
VEL [a1]5000 FMX TI0000000; IAC T25; IDC T30; MOV [a1]300. MVS [a1]200.
   ・    ・    ・
END
Motion Program Status Flags
The first word of a MSEE work register consists of motion program status flags, which indi-
cate the status of motion program execution. The following table shows the status flags.
Bit Status
b0: Program is running.
b1: Program is temporarily stopped.
b2: (Reserved by the system)
b3: (Reserved by the system)
b4: Program is being debugged.
b8: Program alarm has been generated.
bB: Debugging mode (EWS debugging)
bE: Main program duplication error
bF: Main program number limit error
3-24
Page 72
3.4
User Programs
Example 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.
IB00007 DB000010
1 0000
IB00000 DB000010
1 0002
IB00001 DB000011
1 0004
IB00002 DB000012
1 0006
IB00005 DB000015
1 0008
1 0010 MSEE MPM001 DA00000
IB00005 DBC0006
1 0012
OBC0010
OBC0006
Servo ON/OFF
Program operation start
Program pause
Program stop request
Alarm reset (motion program)
Motion program call
Axis alarm reset
The contents of this ladder logic program are shown in the following table.
Step
Number
0 Turns ON or OFF the servo power supply.
2 to 8 The signals connected to the MP940 external input signals are stored as the motion
program control signals.
IW0000 (external input signals) DW00001 (second word of MSEE work
registers)
• Program operation start
• Program pause
• Program stop request
• Alarm reset
10 Calls motion program MPM001
MSEE MPM001
DA00000
12
1. Motion program number
2. MSEE work register address
12 Resets the alarm (bit 6 of OWC000) using the alarm reset signal (IB00005), and
clears the alarm for each axis.
Program Content
3
When the external input signals (IB00000 to IB00005) connected to the MP940 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-25
Page 73
Basic System Operation
3.4.3
Motion Programming
The following table shows an example of external input signals required to create the mini-
mum ladder logic program for running motion programs on the MP940.
Table 3.6 External Input Signals and Motion Program Control Signals
External
Signal
Address
IB00000: Program operation start B0: Program operation start request
IB00001: Program pause B1: Program pause request
IB00002: Program stop B2: Program stop request
IB00003: Program debugging mode B3: Program debugging mode selection
IB00004: Program debugging start B4: Program debugging start request
IB00005: Alarm reset B5: Alarm reset request
External Signal Name BIT Motion Program Control Signal
3-26
Page 74
3.4
User Programs
Automatic Generation of Motion Management Ladder Logic Programs
An automatic generation function for the ladder logic programs used to control motion pro-
grams is provided with the MP940. This function enables JOG operations and program oper-
ations to be performed without the need for special ladder logic programs to be created, and
greatly reduces the system startup time.
Input signals by group
Number of motion programs that can be started simultaneously by an H drawing
Group 1
Automatic generation of motion management ladder logic programs
Input signals by axis
3
INFO
H01
Main motion management ladder logic program for Group 1
H01.01
Manual manage­ment lad­der logic program for axis 1
The ladder logic programs that are generated for motion program control are created auto-
matically using the external input signals that are allocated on the Group Definition Screen.
These ladder logic programs can also be used as is. It is recommended, however, that they be
used as templates to be optimized (changed) to suit individual system requirement.
3-27
Page 75
Basic System Operation
3.5.1
Standard System Functions

3.5 Functions

This section explains the methods of using and the advantages of the MP940 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 hierar-
chies. Moreover, a function can also be called from another function that was previously cre-
ated.
The following advantages can be obtained by using functions:
• Programs can be easily divided into parts.
• 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

Nine functions, including the transfer function, are provided by the system as standard func-
tions. See the following table for details. The user cannot change the standard system func-
tions.
Table 3.7 List of Standard System Functions
Type
System Func­tions
Name Symbol Description
Counter COUNTER Up/down counter
First-in first-out FINFOUT First-in or first-out stack
Trace function TRACE Data trace execution control
Data trace read DTRC-RD Data readout from data trace memory to user
Send message function
Receive message function
memory
MSG-SND Sending a message from a Communications
Module
MSG-RCV Receiving a message from a Communications
Module
3-28
Page 76

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 32 per drawing.
The methods for creating user functions is explained according to the following procedure.
3.5
Functions
INFO
Determining I/O Specifica­tions
Defining Function I/O Input using the CP-717.
Programming the Function
Preparing the Program for Calling the Function
Determine the number of inputs and outputs and the data types.
Prepare in the same way as the drawings, except that differ­ent registers are used. Program according to the correspon­dence between the register numbers used in the body of the function program and the I/O data used when calling the function.
Input using the following procedure:
1. Use the FSTART instruction to input the function name.
2. Use the FIN instruction to connect the input data.
3. Use the FOUT instruction to connect the output data.
• For details on CP-717 operations, refer to MP9 Machine Controller User’s Manual Program- ming Panel Software (SIEZ-C887-2.3 (for simple operation) (To be prepared), SIEZ-C887-2.4 (for
standard operation) (To be prepared)).
• For details on using instructions such as FSTART, refer to MP9 Machine Controller User’s Manual Programming (SIEZ-C887-1.2).
3

3.5.3 Determining 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 the following table.
Table 3.8 Overview of Function Definition Values
Specification to be
Determined
Function Name Up to eight characters can be input.
Number of Inputs The number of arguments input into a function. Up to 16 can be
input. Up to 17 arguments are possible if the address input is also counted.
Number of Address Inputs*
Number of Outputs The number of outputs from the function. Up to 16 can be input.
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.
3-29
Overview
Page 77
Basic System Operation
3.5.4
Defining Function I/O

3.5.4 Defining 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 MP9

Machine Control-
ler User's Manuals Programming Panel Software (SIEZ-C887-2.3 (for simple operation)
(To be prepared), SIEZ-C887-2.4 (for standard operation) (To be prepared)).
The following figure 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
Fig 3.6 Graphic Representation of a Function 1 (Example)
Note: 1. After creating the graphic representation of the function, define the
data types of the function inputs, outputs, and address inputs.
2. Three data types can be defined: Bit, integer, and double integer.
3. When the data types are defined, the system automatically allo­cates inputs to the X registers, outputs to the Y registers, and address inputs to the A registers.
OUT_01
OUT_02
OUT_03
OUT_04
3-30
Page 78
The following figure shows an example of the I/O definitions of a function.
TEST
3.5
Functions
Bit numeric input
Bit numeric input
Real number numeric input
Integer numeric input
===>
===>
IN_01
BIT1
IN_02
BIT2
IN_03
FLT1
IN_04
INT1 INT2
IN_05
ADR
OUT_01
OUT_02
OUT_03
LNG1
OUT_04
BIT3
BIT4
Bit numeric output
Bit numeric output
Double integer numeric output
===>
Integer numeric output
===>
Fig 3.7 Graphic Representation of a Function 2 (Example)
I/O signal addresses are automatically allocated from the highest signal on the graphic repre-
sentation. For the example given in the figure shown above, the allocation of each I/O regis-
ter will be as shown in the following table.
Table 3.9 Allocation of I/O Registers
Name Data Type I/O Register
IN _ 01BIT1
IN _ 02BIT2
IN _ 03FLT1
IN _ 04INT1
IN _ 05ADR
OUT _ 01BIT3
OUT _ 02BIT4
OUT _ 03LNG1
OUT _ 04INT2
Bit XB000000
Bit XB000001
Real number XF00001
Integer XW00003
Address input AW00000
Bit YB000000
Bit YB000001
Double integer YL00001
Integer YW00003
3
Note: XW00000 and YW00000 of the X and Y registers are used for bit
data.
The function I/O registers shown in the above figure are allocated automatically. The exter-
nal framework of the function is completed at this stage.

3.5.5 Creating the Body of the Function

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.
3-31
Page 79
Basic System Operation
3.5.6
Creating the Program that Calls the Function

3.5.6 Creating 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
MP9

Machine Controller User’s Manual Ladder Programming (SIEZ-C887-1.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.
Example: I/O data is provided for the graphic representation as shown in the following
illustration.
TEST
DB000000
DB000001
DF00001
DW00003
===>
===>
BIT1
BIT2
FLT1
INT1 INT2
ADR MA00300
BIT3
BIT4
LNG1
====>
====>
DB000020
DB000021
DL00010
DW00012
Fig 3.8 Graphic Representation for which Input Data is Provided (Example)
Table 3.10 Relationship Between I/O Data and Internal Function Registers
Name I/O Data Internal Function Register
BIT1 DB000000
BIT2 DB000001
FLT1 DF00001
INT1 DW00003
ADR MA00300
BIT3 OB00020
BIT4 OB00021
LNG1 DL00010
INT2 DW0012
 XB000000
 XB000001
 XF00001
 XW00003
 AW00000
 YB000000
 YB000001
 YL00001
 YW00003
3-32
Page 80
3.5
Functions
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.
Internal function External registers
INFO
AW00000 AW00001 AW00002 AW00003
Fig 3.9 Pointer Designation for Address Input Registers
Pointer
MW00300 MW00301 MW00302 MW00303
MA00300
4. Create a motion program that calls the function.
User functions can also be called from motion programs.
The user functions shown in the Relationship Between I/O Data and Internal Function
Registers Table 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:
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 • • • ;
MVS [X]100. F10000;
. . .
Condition
DB000020==ON
3
3-33
Page 81
Basic System Operation
3.6.1
Register Designation Methods

3.6 Registers

3.6.1 Register Designation Methods

This section explains the types of register used by MP940 user programs and how these regis-
ters are used.
Registers can be designated by direct designation of the register number or by symbolic des-
ignation. These two types of register designation can be used together in the same user pro-
gram. When symbolic designation is used, the correspondence between the symbols and the
register numbers is defined in the symbol table that is described later.
The following table shows the register designation methods.
Table 3.11 Register Designation Methods
Designation Type Description
Direct Register Number Designation
Symbol Designation Bit registers: RESET1-A.X
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 num-
ber.
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.
Direct Register Number Designation
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-34
Can designate the subscript i or j.
Page 82

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 MP9
C887-1.2). The following table shows the data types and their numeric ranges.
Symbol Designation
Symbol:[Symbol Name] [.] [Subscript]
Required if a subscript is to be used (symbol name and subscript delimiter)
(Name given to the register, 8 characters or less)
X X X X X X X X
Alphabetic character or symbol (A numeral cannot be designated at the beginning of a symbol name.)

Machine Controller User’s Manual Ladder Programming (SIEZ-
Can designate the subscript i or j.
Alphanumeric characters or symbols
3.6
Registers
3
Table 3.12 Data Types and Numeric Range
Type
Data Type
Numeric Range Remarks
B Bit ON, OFF Used in relay circuits.
W Integer -32768 to +32767
(8000H) (7FFFH)
Used in numeric operations. The values in parentheses ( ) are used in logic operations.
L Double
integer
-2147483648 to +2147483647 (80000000H) (7FFFFFFFH)
Used in numeric operations. The values in parentheses ( ) are used in logic operations.
F Real num-
±(1.175E-38 to 3.402E+38), 0 Used in numeric operations.
ber
A Address 0 to 32767 Used only for pointer designa-
tions.
Register Designations and Data Types
[ MB001006 ]
FEDCBA9876543210
[ MW00100 ]
[ MW00101 ]
[ ML00100 ]
[ MF00100 ]
[ MW00102 ]
[ MW00103]
[ ML00102 ]
[ MF00102 ]
[ MB00103A ]
3-35
Page 83
Basic System Operation
3.6.2
Data Types
Pointer Designations
Memory address
nn
[ MA00100 ]
Register area
・ ・ ・
[ MB001003 ]
[ MW00100 ] [ MW00101 ] [ MW00102 ]
[ MW00103 ]
Examples of Use by Data Type
Bits
Bits are used for relay circuit ON/OFF or for logic operations.
MB000101IB000100
[ ML00100 ] [ MF00100 ]
IB000001
IFON
OB000001
1
OB000001
• Motion Program Example
MB000101=IB000100; IF IB000001==1;
DB000001=DB000001 | 1
Words
Words are used for numeric operations and logic operations.
MW00100
MW00102
MW00104 INV
H00FF
12345
MW00101
MW00103
MW00105
• Motion Program Example
MW00101=MW00100 00FFH; MW00103=MW00102+12345; MW00105=MW00104;
3-36
Page 84
Double Integers
Double integers are used for numeric operations and logic operations.
3.6
Registers
ML00100
ML00106
ML00112
ML00102
×
ML00108 ÷ 18000
BIN
ML00104
ML00110
ML00114
• Motion Program Example
ML00104=ML00100+ML00102; ML00110=ML00106*ML00108/18000;
ML00114=BINML00112);
Real Numbers
Real numbers are used for floating-point numeric operations.
1.23456
DF00100
(1.23456)
DF00102 SIN
DF00104
(30.0) (0.5)
DF00200 TAN
DF00202
(45.0) (1.0)
3
• Motion Program Example
DF00100=1.23456; DF00104=SINDF00102); DF00202=TANDF00200);
Addresses
Addresses are used only for pointer designations.
MF00200 to MF00228 are used as the parameter table in the following example
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
⇒MF00022
PID output value
Input value
⇒MW00022
LAG output value
3-37
Page 85
Basic System Operation
3.6.3
Types of Register

3.6.3 Types of Register

Registers in Drawings
The seven types of register shown in the following table can be used in all drawings and
motion programs.
Type
S System registers SB, SW, SL, SFnnnnn
M Data registers MB, MW, ML,
I Input registers IB, IW, IL, IFhhhh
O Output registers OB, OW, OL, OFhhhh
C Constant registers CB, CW, CL, CFnnnnn
# # registers #B, #W, #L, #Fnnnnn
D D registers DB, DW, DL, DFnnnnn
Name Designation Method Range Description Characteristic
(SAnnnnn)
MFnnnnn (MAnnnnn)
(IAhhhh)
(OAhhhh)
(CAnnnnn)
(Annnnn)
(DAnnnnn)
Table 3.13 Types of Drawing Register
SW00000 to SW01023
MW00000 to MW32767
IW0000 to IW07FF
OW0000 to OW07FF
CW00000 to CW32767
#W00000 to #W16383
DW00000 to DW16383
System registers provided by the sys­tem. 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 draw­ings. Used as interfaces between draw­ings. 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 called only in the program. Register number nnnnn is expressed as a decimal number.
# registers can be called 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 num­ber nnnnn is expressed as a decimal number.
D registers are unique to each drawing and can be used only in the corre­sponding drawing. The actual range used is specified by the user on the CP-717. Register num­ber nnnnn is expressed as a decimal number.
Common to all drawings
Unique to each drawing
INFO
• The # registers cannot be used in motion programs.
• The following registers are saved in flash memory.
• M registers
• C registers
• # registers (Saved with the user program.)
• D registers (Saved with the user program.)
3-38
Page 86
Registers in Functions
The 11 types of register shown in the following table can be used in functions.
Type
X Function input regis-
Y Function output regis-
Z Internal function reg-
A External function reg-
# # registers #B, #W, #L, #Fnnnnn
D D registers DB, DW, DL, DFnnnnn
Name Designation Method Range Description Characteristic
XB, XW, XL, XFnnnnn XW00000 to
ters
YB, YW, YL, YFnnnnn YW00000 to
ters
ZB, ZW, ZL, ZFnnnnn ZW0000 to
isters
AB, AW, AL, AFhhhh AW0000 to
isters
(Annnnn)
(DAnnnnn)
Table 3.14 Types of Function Register
Input to a function.
XW00016
YW00016
ZW00063
AW32767
#W00000 to #W16383
DW00000 to DW16383
Bit input: XB000000 to XB00000F
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 YB00000F Integer input: YW00001 to YW00016 Double integer input: YL00001 to
YL00015 Register number nnnnn is expressed as a
decimal number.
Internal registers unique to each func­tion. Can be used in the function for internal processes. Register number nnnnn is expressed as a decimal num­ber.
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.
Registers that can only be called 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 num­ber.
Internal registers unique to each func­tion. 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 num­ber.
3.6
Registers
Unique to each function
3
3-39
Page 87
Basic System Operation
3.6.4
Using Subscripts I and J
Type
S System registers SB, SW, SL, SFnnnnn
M Data registers MB, MW, ML,
I Input registers IB, IW, IL, IFhhhh
O Output registers OB, OW, OL, OFhhhh
C Constant registers CB, CW, CL, CFnnnnn
Name Designation Method Range Description Characteristic
(SAnnnnn)
MFnnnnn (MAnnnnn)
(IAhhhh)
(OAhhhh)
(CAhhhh)
Note: SA, MA, IA, OA, DA, #A, and CA can be used within functions.

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.
Subscripts Attached to Bit Data
Same as the registers for drawings. These registers can be called from any drawings or func-
tion. Use them carefully when the same function is refer­enced from drawings with different priority levels.
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.
2
MB000000i
Equivalent
MB0000002
Subscripts Attached to Integer Data
When a subscript is attached to integer data, the value of I or J is added to the register num-
ber. 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
MW00031
3-40
Page 88
3.6
Subscripts Attached to Double Integer Data
When a subscript is attached to double integer data, the value of I or J is added to the register
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:
Registers
ML00000J when J = 0: ML00000
ML00000J when J = 1: ML00001
Higher-place word
MW00001 MW00000
MW00002
Lower-place word
MW00001
Subscripts Attached to Real Number Data
When a subscript is attached to real number data, the value of I or J is added to the register
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 MW00000
MF00000J when J = 0: MF00000
MW00002
MF00000J when J = 1: MF00001
Programming Example Using Subscripts
The programming code shown in the following figure sets the sum of 100 registers from
MW00100 to MW00199 in MW00200 using subscript J.
Lower-place word
MW00001
3
INFO
00000
FOR J = 00000 to 00099 by 00001
MW00200 + MW00100j
FEND
MW00200
MW00200
Fig 3.10 Programming Example Using a Subscript
Subscripts I and J cannot be used in motion programs.
• Subscripts I and J must be initialized.
• Subscripts I and J are treated as unsigned values. Do not use numbers smaller than 0.
3-41
Page 89
Basic System Operation
3.6.5
I/O and Registers in Functions

3.6.5 I/O and Registers in Functions

The following table shows the I/O and registers referenced in functions.
Table 3.15 Correspondence Between I/O and Registers in Functions
Function I/O Function Register
Bit inputs The bit numbers increase continuously from XB000000 in order of the bit inputs:
XB000000, XB000001, XB000002, ......, XB00000F
Integer, double integer, and real number inputs
Address inputs The address input values correspond to register numbers 0 of the external register:
Bit outputs The bit number increases continuously from YB000000 in order of bit outputs:
Integer, double integer, and real number outputs
The register numbers increase continuously from XW, XL, and XF00001 in order of the integer, double integer, and real number inputs:
(XW00001, XW00002, XW00003, ......, XW00016)
(XL00001, XL00003, XL00005, ......, XL00015)
(XF00001, XF00003, XF00005, ......, XF00015)
Input value = MA00100: MW00100 = AW00000, MW00101 = AW00001...
(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, YF00005, ......, YF00015)
3-42
Page 90

3.6.6 Register Ranges in Programs

DWG H03 (Drawing)
3.6
Registers common to all drawings
Registers
Program
500 steps max.
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-000 (Function)
FUNC-000(関数)
Program
500 steps max.
Registers for individual functions
Function Input registers 17 words (XB, XW, YL, YFnnnnn)
External function reg­isters (AB, AW, AL, AFnnnnn)
System registers (SB, SW, SL, SFnnnnn)
Data registers (MB, MW, ML, MFnnnnn)
Input registers (IB, IW, IL, IFnnnnn)
Output registers (OB, OW, OL, OFnnnnn)
3
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)
1. Registers that are common to all drawings can be called from any drawing or function.
2. Registers that are unique to each drawing can be called only from within that drawing.
3. Registers that are unique to each function can be called only from within that function.
4. Registers that are common to all drawings and registers that are unique to each drawing can be called from a function using the external function registers.
3-43
Constant registers (CB, CW, CL, CFnnnnn)
Page 91
Basic System Operation
3.7.1
Symbols in Drawings

3.7 Managing Symbols

3.7.1 Symbols in Drawings

The symbols used in drawings are all managed with a symbol table, such as the one shown
in the following table. For details, refer to the MP9
Ladder Programming (SIEZ-C887-1.2).

Machine Controller User’s Manual
Table 3.16 Drawing Symbol Table (Example)
No. Register No. Symbol Size * Remarks
0 IB0000 STARTPBL 1 The register number is expressed
as a hexadecimal number.
1 OB0000 STARTCOM 1 The register number is expressed
as a hexadecimal number.
2 MW00000 SPDMAS 1
3 MB000010
4 MW00010 PIDDATA 10
5 MW00020 LAUIN 1
6 MW00021 LAUOUT 1
: :
N
WORK DB
16
If a program is written 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_I and i varies in a range of 0 to 9, define the size as 10.

3.7.2 Symbols in Functions

All symbols used in the functions are managed with the function symbol table shown below.
For details, refer to the MP9
(SIEZ-C887-1.2).
No. Register No. Symbol Size * Remarks
0 XB000000 1
1 XW00001 1
2 AW00001 1
3 AB00000F 1
4 YB000000 1
5 YW00001 1
6 ZB000000 4
7 ZW00001 1
8 ZW00002 1
: :
N

Machine Controller User’s Manual Ladder Programming
Table 3.17 Function Symbol Table
3-44
Page 92
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_I and i varies in a range of 0 to 9, define the size as 10.

3.7.3 Upward Linking of Symbols

The following table shows the symbols that can be linked and the symbols tables that are
subject to linking. For details on the upward linking of symbols, refer to the MP9
Machine Controller User’s Manual Ladder Programming (SIEZ-C887-1.2) and the
MP9

Machine Controller User’s Manual Programming Panel Software (SIEZ-C887-2.3
(for simple operation) (To be prepared), SIEZ-C887-2.4 (for standard operation) (To be pre-
pared)).
Table 3.18 Linkable Symbols and Symbol Table for Linking
3.7
Managing Symbols

Parent Drawing
Child Drawings
Grandchild Drawings
Symbol Table
Symbol Table
Symbols
Parent
Drawing
Child Drawing
Parent Drawing Symbols No No No
Child Drawing Symbols Ye s No No
Grandchild Drawing Symbols Ye s Ye s No
Symbols Within A Function No No No
DWG H
Symbol Table
DWG H01
Symbol Ta bl e
Symbol Ta bl e
DWG H02
Symbol Ta bl e
DWG H02.01DWG H02.03DWG H02.01
Symbol Ta bl e
Symbol Table
DWG L
Symbol Table
DWG L02
Symbol Table
DWG L02.05DWG L02.02
Symbol Table
Grandchild
Drawing
DWG L04
Symbol Table
DWG L04.01
Symbol Table
3

3.7.4 Automatic Register Number Allocation

The following table shows the register numbers for which automatic allocation is possible
and those for which it is not possible. For details on the automatic allocation of register num-
bers, refer to the MP9
C887-1.2) and the MP9
ware (SIEZ-C887-2.3 (for simple operation) (To be prepared), SIEZ-C887-2.4 (for standard
operation) (To be prepared)).

Machine Controller User’s Manual Ladder Programming (SIEZ-

Machine Controller User’s Manual Programming Panel Soft-
3-45
Page 93
Basic System Operation
3.7.4
Automatic Register Number Allocation
Table 3.19 Automatic Allocation of Register Numbers
Drawing Symbol Table
Automatic
Number
Allocation
Function Symbol Table
Automatic
Allocation
CP-717 CP-717
System registers S Ye s System registers S Ye s
Input registers I Ye s Input registers I Ye s
Output registers O Ye s Output registers O Ye s
Data registers M Ye s Data registers M Ye s
# registers # Yes # registers # Yes
C registers C Ye s C registers C Ye s
D registers D Ye s D registers D Ye s
Function input
X No
registers
Function output
Y No
registers
Internal function
Z Ye s
registers
External function
A No
registers
Number
Note: Yes: Automatic number allocation possible
No: Automatic number allocation not possible
3-46
Page 94

4 MP940 Functions

This chapter explains the various MP940 functions.
4.1 MP940 Function Configuration - - - - - - - - - - - - - - - - - - - - - -4-3
4.1.1 Overview - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-3
4.1.2 Simulated MP940 Building Block Configuration - - - - - - - - - - - - - - - - - 4-5
4.2 Serial Communications Function - - - - - - - - - - - - - - - - - - - - -4-6
4.2.1 Overview - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-6
4.2.2 System Configuration - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-6
4.2.3 Communications Specifications - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-7
4.2.4 Connectors - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-8
4.2.5 Time Required for Transmission- - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-9
4.2.6 Serial Communications Protocol - - - - - - - - - - - - - - - - - - - - - - - - - - 4-11
4.2.7 Opening the Serial Definition Window - - - - - - - - - - - - - - - - - - - - - - - 4-17
4.2.8 General-purpose Serial Definitions - - - - - - - - - - - - - - - - - - - - - - - - - 4-18
4.2.9 Saving General-purpose Serial Definition Data - - - - - - - - - - - - - - - - 4-21
4.2.10 Deleting General-purpose Serial Definition Data - - - - - - - - - - - - - - 4-21
4
4.3 LIO Function - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-22
4.3.1 Overview - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-22
4.3.2 LIO Specifications- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-23
4.3.3 Opening the Local I/O Definition Window - - - - - - - - - - - - - - - - - - - - 4-26
4.3.4 LIO Definitions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-27
4.3.5 Saving LIO Definition Data - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-28
4.3.6 Deleting LIO Definition Data - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-28
4-1
Page 95
MP940 Functions
4.4 CNTR Function - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-29
4.4.1 Overview - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-29
4.4.2 Counter Specifications- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-30
4.4.3 Counter Function Configuration - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-31
4.4.4 Pulse Count Method - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-32
4.4.5 Reversible Counter Mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-34
4.4.6 Coincidence Output and Interrupt Functions - - - - - - - - - - - - - - - - - - 4-34
4.4.7 PI Latch Function - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-36
4.4.8 Electronic Gear- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-36
4.4.9 Opening the Counter Module Definition Window - - - - - - - - - - - - - - - 4-40
4.4.10 Defining Counter I/O - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-41
4.4.11 Setting I/O Data - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-42
4.4.12 Saving Counter I/O Definition Data - - - - - - - - - - - - - - - - - - - - - - - - 4-44
4.4.13 Deleting Counter I/O Definition Data - - - - - - - - - - - - - - - - - - - - - - - 4-44
4.5 MECHATROLINK Functions- - - - - - - - - - - - - - - - - - - - - - - 4-45
4.5.1 MECHATROLINK Overview- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-45
4.5.2 MECHATROLINK Communications Specifications - - - - - - - - - - - - - - 4-45
4.5.3 Master and Slaves - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-46
4.5.4 MECHATROLINK Connections - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-51
4.5.5 Opening the MECHATROLINK Window - - - - - - - - - - - - - - - - - - - - - 4-52
4.5.6 Setting MECHATROLINK Definitions - - - - - - - - - - - - - - - - - - - - - - - 4-53
4.5.7 Saving MECHATROLINK Definitions - - - - - - - - - - - - - - - - - - - - - - - 4-56
4.5.8 Deleting MECHATROLINK Definitions - - - - - - - - - - - - - - - - - - - - - - 4-56
4.5.9 Ending MECHATROLINK Definitions - - - - - - - - - - - - - - - - - - - - - - - 4-56
4.6 DeviceNet Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-57
4.6.1 System Configuration - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-57
4.6.2 I/O Communications Function - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-58
4.6.3 Communications Specifications - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-58
4.6.4 260IF Module Setup - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-59
4.7 SVA Function - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-65
4.7.1 Overview - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-65
4.7.2 Separate and One-unit Systems- - - - - - - - - - - - - - - - - - - - - - - - - - - 4-65
4.7.3 MP940 Servo Control Function - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-66
4.7.4 Setting Parameters of the SGDH SERVOPACK- - - - - - - - - - - - - - - - 4-70
4.8 Flash Memory Operation - - - - - - - - - - - - - - - - - - - - - - - - - 4-77
4.8.1 Overview - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-77
4.8.2 Saving to Flash- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-77
4.8.3 Starting Flash Memory - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4-79
4-2
Page 96

4.1 MP940 Function Configuration

4.1.1 Overview

The MP940 is a single-axis controller with a bus connection to an SGDH SERVOPACK.
Functional modules, such as communications, local I/O, and so on, are built into a single
integrated unit.
The MP940 is configured from the functional modules shown in the following table, based
on servo control. The initial settings for each of these functional modules must be made
according to the module configuration definitions explained in this chapter.
MP940 Functional Modules
The functional modules for the MP940 are shown in the following table.
Functional Module Details
MP940 CPU
SERIAL Serial communications: RS-232C, RS-422/485
LIO Local I/O: DI (8 bits), DO (8 bits), AO (1 word)
SVA Motion functions
CNTR Counter functions
MLINK or DevNet
4.1
MP940 Function Configuration
MECHATROLINK interface or DeviceNet interface function
4
4-3
Page 97
MP940 Functions
4.1.1
Overview
MP940 Function Block Diagram
The following is a block diagram showing MP940 functions.
SGDH MP940
M
PG
Current control
Counter
A/DAI
Speed control
Shared memory
Programming Device
SVA
RS-232C
CP-717
MP940
CPU
SERIAL CNTR
RS-422/485
MLINK or DevNet
MLINK or DevNet
Local I/O
MLINK or DevNet
DI
DO
AO
4-4
Page 98

4.1.2 Simulated MP940 Building Block Configuration

The MP940 is a one-unit Machine Controller that saves space by incorporating into a single
unit several hardware modules comprising separate functional units.
Parameter settings for each of these functional modules are made in the same operating envi-
ronment as for building-block Machine Controllers. This makes it easy to simulate a build-
ing-block structure when developing an all-in-one configuration. The following diagram
shows how the MP940 can be configured in such a simulated building-block structure.
MP940
MP940
TX
BAT
RX
RDY
RUN
ALM
1
BAT
PRT1
M
PRT2
E C
RUN
654321
H
INIT
A
TEST
T R
FLASH
2
O
PP
L
COPY
I
NO
N K
PORT1
I/O
PORT2
POWER
LE
+24V
D GND
FG
MP940
Simulated building-block structure
SERIAL LIO SVA CNTR MLINK
4.1
MP940 Function Configuration
Main Window for Module Configuration Definitions
With the MP940, slot numbers 00 to 06 in Rack 1 must be set. Slot No. 1 is reserved for sys-
tem use.
4
4-5
Page 99
MP940 Functions
4.2.1
Overview

4.2 Serial Communications Function

4.2.1 Overview

The MP940 provides one serial communications interface for RS-232C and another for RS-422/
485. Each interface can handle a variety of communications protocols, including the Yaskawa
MEMOBUS communications protocol. The RS-232C interface at port 1 can also be used as an
engineering port, making it possible to connect a CP-717 for MP940 programming and monitor-
ing.
The MP940 will operate as either a master or slave, depending on the protocol set for serial
communications.
With serial communications, data is sent and received using MSG-SND and MSG-RCV func-
tions in a DWG/function program.
MP940
BAT
RDY RUN ALM BAT PRT1 PRT2
RUN
654321
INIT TEST FLASH PP COPY
NO
PORT1
PORT1
RS-232C
TX R X
1
M E C H A T R
2
O L I N K
I/O
Communica­tions CPU
Communica­tions proces­sor 1
Communica­tions proces­sor 2
RS-232C
RS-422/
485
PORT1
PORT2
PORT2
RS-422/485

4.2.2 System Configuration

Standard System Configuration
In this example, a CP-717 Programming Device and a display panel are connected to an
MP940 SERIAL Module.
RS-422
RS-422
Display panel
PORT2
POWER
+24V
GND
FG
LED
MP940
MP940
RS-232C
RS-232C
CP-717
CP-717
Notebook computer
4-6
Page 100
4.2
Serial Communications Function
In this example, a CP-717 Programming Device is connected to the RS-232C port, and
external devices are connected branching from the RS-485 port.
MP940
MP940
RS-232C
CP-717
CP-717
RS-232C
Notebook computer
RS-485
RS-485
External device
External device
External device
External device
System Configuration with Controllers by Other Manufacturers
In this example, a MELSEC Controller by Mitsubishi Electric is connected to an MP940 in a
serial circuit.
MELSEC
MELSEC
GPP
CPU
AJ7
1UC
24
MELSEC protocol
Serial
MP940
RS-232C
Notebook computer
CP-717
4

4.2.3 Communications Specifications

The following table shows the MP940 Module communications specifications for the serial
communications function.
Table 4.1 Serial Communications Specifications
Item Specifications
Interface RS-232C: 1 circuit
RS-422/485: 1 circuit
Connector RS-232C (port 1): MDR 14-pin, female
RS-422/485 (port 2): MDR 14-pin, female
Transmission Distance RS-232C: 15 m max.
Baud rate RS-232C (port 1): 9600, 14400, 19200 bps
Synchronization Method Non-synchronous (Start/stop synchronizing)
Communications Protocol MEMOBUS (Master/Slave), MELSEC communications, no protocol
Connection Format RS-232C: 1:1
Communications Format (Can be set.) Data length: 7/8 bits
RS-422/485: 300 m max.
RS-422/485 (port 2): 9600, 14400, 19200 bps
RS-422: 1:1 RS-485: 1:N
Stop bits: 1/2 bits (port 1 only)
Always 1 for port 2.
Parity bits: Even, odd, or none
4-7
Loading...