OMRON CJ1W-MCH71 - Motion Controller

CJ1W-MCH71 - Motion Controller OMRON - Free user manual and instructions

Find the device manual for free CJ1W-MCH71 OMRON in PDF.

📄 717 pages English EN Download 💬 AI Question
Notice OMRON CJ1W-MCH71 - page 4
View the manual : Français FR English EN
Pick your language and provide your email: we'll send you a specifically translated version.

User questions about CJ1W-MCH71 OMRON

0 question about this device. Answer the ones you know or ask your own.

Ask a new question about this device

The email remains private: it is only used to notify you if someone responds to your question.

No questions yet. Be the first to ask one.

Download the instructions for your Motion Controller in PDF format for free! Find your manual CJ1W-MCH71 - OMRON and take your electronic device back in hand. On this page are published all the documents necessary for the use of your device. CJ1W-MCH71 by OMRON.

USER MANUAL CJ1W-MCH71 OMRON

OMRON products are manufactured for use according to proper procedures by a qualified operator and only for the purposes described in this manual.

The following conventions are used to indicate and classify precautions in this manual. Always heed the information provided with them. Failure to heed precautions can result in injury to people or damage to property.

DANGER

Indicates an imminently hazardous situation which, if not avoided, will result in death or serious injury. Additionally, there may be severe property damage.

WARNING

Indicates a potentially hazardous situation which, if not avoided, could result in death or serious injury. Additionally, there may be severe property damage.

Caution

Indicates a potentially hazardous situation which, if not avoided, may result in minor or moderate injury, or property damage.

OMRON Product References

All OMRON products are capitalized in this manual. The word "Unit" is also capitalized when it refers to an OMRON product, regardless of whether or not it appears in the proper name of the product.

The abbreviation "Ch," which appears in some displays and on some OMRON products, often means "word" and is abbreviated "Wd" in documentation in this sense.

The abbreviation "PLC" means Programmable Controller. "PC" is used, however, in some Programming Device displays to mean Programmable Controller.

Visual Aids

The following headings appear in the left column of the manual to help you locate different types of information.

Note Indicates information of particular interest for efficient and convenient operation of the product.

1,2,3... 1. Indicates lists of one sort or another, such as procedures, checklists, etc.

OMRON, 2004

All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permission of OMRON.

No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON 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, OMRON 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.

Introduction

We are flattered that you have purchased OMRON SYSMAC CS/CJ-series advanced Motion Control Unit.

Motion control Unit CS1W-MCH71/CJ1W-MCH71 (the abbreviation "MC Unit" is in this mean) is a high performance CPU unit of the programmable controller SYSMAC CS/CJ-series that has been produced by OMRON's advanced technology for control and abundant experience.

This instruction manual describes MC Unit's specifications and procedures for operation.

Please read each section in its entirety and be sure you understand the information provided in the section and relate sections before attempting any of the procedures or operation given.

MC Units

Unit Versions

Notation of Unit Versions on Products

A "unit version" has been introduced to manage MC Units according to differences in functionality accompanying Unit upgrades.

The unit version is given to the right of the lot number on the nameplate of the applicable MC Units, as shown below.

MC Unit

OMRON CJ1W-MCH71 - Unit Versions - 1

Identifying Unit Versions

The unit version of the MC Units begins at version 2.0.

A unit version label is provided with the Advanced Motion Control Unit. This label can be attached to the front of the Motion Control Unit to differentiate between Motion Control Units of different Unit versions.

OMRON CJ1W-MCH71 - Unit Versions - 2

Confirming Unit Versions with Support Software

The unit version 2.1 or later can be confirmed in Unit Manufacturing Information of CX-Programmer version 4.0 or higher. Unit version 2.0 cannot be confirmed in Unit Manufacturing Information. Use the CX-Motion-MCH Support Tool for Motion Control Units to confirm the unit version.

Example: Confirming Unit Version 2.1 or Later Using CX-Programmer Version 4.0 or Higher

  1. In the I/O Table Window, right-click the Motion Control Unit and select Unit Manufacturing Information.
  2. The following Unit Manufacturing Information Dialog Box will be displayed.

OMRON CJ1W-MCH71 - Example: Confirming Unit Version 2.1 or Later Using CX-Programmer Version 4.0 or Higher - 1

  1. Unit version 3.1 will be displayed in the Unit Manufacturing Information Dialog Box.

Example: Confirming Unit Version 3.0 Using CX-Motion-MCH Support Tool

Use the CX-Motion-MCH Support Tool for Motion Control Units to confirm the unit version, as shown in the following table.

Method for confirming the internal system software versionThe system software version in the Motion Control Unit can be checked in the Unit information from the online menus.
Corresponds to the unit versionInternal system software version
CJ1W-MCH71CS1W-MCH71
Unit Ver. 2.0:1.05xxxx1.05xxxx
Unit Ver. 2.1:1.06xxxx---
Unit Ver. 3.0:1.07xxxx1.08xxxx
Unit Ver. 3.11.09xxxx1.09xxxx

Functions Supported by CJ1W-MCH71 Units Version 2.1 or Later

Unit versionUnit Ver. 2.0Unit Ver. 2.1Unit Ver. 3.0Unit Ver. 3.1
Internal system software version1.051.061.071.09
MC Unit modelCJ1W-MCH71
FunctionsReading unit version functionNot supportedSupportedSupportedSupported
Expanded allocations in Custom I/O AreaNot supportedSupportedSupportedSupported
Data tracingNot supportedNot supported\( Supported^{*1} \)\( Supported^{*1} \)
DebuggingNot supportedNot supported\( Supported^{*1} \)\( Supported^{*1} \)
ZonesNot supportedNot supported\( Supported^{*1} \)\( Supported^{*1} \)
Signed master axis MOVELINK com- mandNot supportedNot supportedSupportedSupported
Indirect writing of position dataNot supportedNot supportedSupportedSupported
Setting the number of parallel branches for each taskNot supportedNot supported\( Supported^{*1} \)\( Supported^{*1} \)
Present position preset to establish originNot supportedNot supported\( Supported^{*1} \)\( Supported^{*1} \)
Status of program start bitNot supportedNot supportedSupportedSupported
Servo OFF for deceleration stop signalNot supportedNot supported\( Supported^{*1} \)\( Supported^{*1} \)
Re-execution of WAIT commandNot supportedNot supportedSupportedSupported
Main power statusNot supportedNot supportedSupportedSupported
Servo Driver statusNot supportedNot supportedSupportedSupported
Increased precision of CAMBOX com- mandNot supportedNot supportedSupportedSupported
Improved restarting after restoration---------Supported
Expanded bank switching for interpo- lation acceleration/deceleration times---------Supported
Internal overrides---------Supported
Connecting to SMARTSTEP Junior Servo Drivers---------\( Supported^{*2} \)
Improved backup and restore func- tions---------\( Supported^{*2} \)
Program and CAM data read protec- tion---------\( Supported^{*2} \)
Applicable Support ToolCX-Motion-MCH· Functions for unit version 3.0 indicated by “*1” can be used with CX- Motion-MCH version 2.0 or higher.· Functions for unit version 3.1 indicated by “*2” can be used with CX- Motion-MCH version 2.1 or higher.

CJ1W-MCH71 Unit Versions and Manufacturing Dates/Lot Numbers

ClassificationTypeModelManufacturing dates
Up to early November 2004From middle of November 2004From early June 2005From early July 2007
CPU Bus UnitMC UnitCJ1W-MCH71Unit version 2.0Unit version 2.1 (Lot No.: 041117 and later)Unit version 3.0 (Lot No.: 050615 and later)Unit version 3.1 (Lot No.: 070615 and later)

Functions Supported by CS1W-MCH71 Units Version 2.0 or Later

Unit versionPre-Ver. 2.0Unit Ver. 2.0Unit Ver. 3.0Unit Ver. 3.1
Internal system software version1.00 to 1.041.051.081.09
MC Unit modelCS1W-MCH71
FunctionsJogging---SupportedSupportedSupported
Communications levels---SupportedSupportedSupported
Communications cycle and unit cycle---SupportedSupportedSupported
LATCH command processing time---SupportedSupportedSupported
Latch status refresh time---SupportedSupportedSupported
Using interpolation commands during pass operation---SupportedSupportedSupported
Acceleration/deceleration time during pass operation---SupportedSupportedSupported
Deceleration time during pass operation---SupportedSupportedSupported
Torque to position control switching---SupportedSupportedSupported
Expanded allocations in Custom I/O Area------Supported*1Supported*1
Digital input values changed to improve noise immunity------SupportedSupported
Faster unit cycle and communications cycle times------SupportedSupported
Signed master axis MOVELINK command------SupportedSupported
Indirect writing of position data------SupportedSupported
Status of program start bit------SupportedSupported
Re-execution of WAIT command------SupportedSupported
Main power status------SupportedSupported
Servo Driver status------SupportedSupported
Increased precision of CAMBOX command------SupportedSupported
Data tracing------Supported*1Supported*1
Debugging------Supported*1Supported*1
Zones------Supported*1Supported*1
Setting the number of parallel branches for each task------Supported*1Supported*1
Present position preset to establish origin------Supported*1Supported*1
Servo OFF for deceleration stop signal------Supported*1Supported*1
Improved restarting after restoration---------Supported
Expanded bank switching for interpolation acceleration/deceleration times---------Supported
Internal overrides---------Supported
Connecting to SMARTSTEP Junior Servo Drivers---------Supported*2
Improved backup and restore functions---------Supported*2
Program and CAM data read protection---------Supported*2
Applicable Support ToolCX-Motion-MCH • Functions for unit version 3.0 indicated by “**1” can be used with CX-Motion-MCH version 2.0 or higher. • Functions for unit version 3.1 indicated by “**2” can be used with CX-Motion-MCH version 2.1 or higher.

CS1W-MCH71 Unit Versions and Manufacturing Dates/Lot Numbers

ClassificationTypeModelManufacturing dates
From early June 2004From July 2004From March 2007From early July 2007
CPU Bus UnitMC UnitCS1W-MCH71Pre-Ver. 2.0Unit version 2.0 (Lot No.: 040715 and later)Unit version 3.0 (Lot No.: 070313 and later)Unit version 3.1 (Lot No.: 070615 and later)

Guide to Version Upgrades

Guide to CJ1W-MCH71 Version Upgrade

Function Upgrades from Unit Version 3.0 to 3.1

Restarting after Restoration

Previous versions (Unit Ver. 3.0 and earlier)Current version (Unit Ver. 3.1)
After data has been restored from the CPU Unit's flash memory, the Unit must be restarted by cycling the CPU Unit's power supply.After data has been restored from the CPU Unit's flash memory, the Unit is restarted using a bit between A50100 and A50115 in the Auxiliary Area of the CPU Unit. For details, refer to 7-1 Overview.

Expanded Bank Switching for Interpolation Acceleration/Deceleration Times

Previous versions (Unit Ver. 3.0 and earlier)Current version (Unit Ver. 3.1)
The acceleration time and deceleration time used for interpolation operations cannot be set separately.The acceleration time and deceleration time used for interpolation operations can be set separately. P00004, bit 13: Bank switching method selection 0: Select the same bank for acceleration and deceleration (same as for version 3.0). 1: Select different banks for the acceleration time and deceleration time. Parameters P00M11 to P00M15 are used to set acceleration times, and P00M16 to P00M20 are used to set deceleration times. For details, refer to 6-1 Basic Information.

Internal Overrides

Previous versions (Unit Ver. 3.0 and earlier)Current version (Unit Ver. 3.1)
There is a function for changing the axis feed rate from a ladder program, but not from a motion program.The feed rate when the following commands are executed can be changed from a motion program. Commands for which an override can be speci-fied from the motion program: MOVE Rapid feed rate DATUM Origin return feed rate MOVEI Rapid feed rate, external position-ing rate MOVET Rapid feed rate The actual speed is as follows: Actual speed = Axis feed rate x (Axis override + Internal override) For details, refer to 6-1 Basic Information.

Connecting to SMART STEP Junior Servo Drivers

Previous versions (Unit Ver. 3.0 and earlier)Current version (Unit Ver. 3.1)
Cannot be connected.Can be connected.

Backup and Restore Functions

Previous versions (Unit Ver. 3.0 and earlier)Current version (Unit Ver. 3.1)
The origin compensation value when an absolute encoder is used is backed up using the CPU Unit's easy backup function.Origin compensation values can be backed up even with CX-Motion-MCH version 2.1. For details, refer to Section 11 Backup and Restore in the CX-Motion-MCH Operation Manual (Cat. No. W448).

Program and CAM Data Read Protection

Previous versions (Unit Ver. 3.0 and earlier)Current version (Unit Ver. 3.1)
There is no program and CAM data read protection.The CX-Motion-MCH version 2.1 read protection function (password setting), can be used to prevent third-parties from reading program and CAM data. For details, refer to Section 12 Read Protection in the CX-Motion-MCH Operation Manual (Cat. No. W448).

Improved Functions from Unit Ver. 2.1 Compared to Unit Ver. 3.0

Data Tracing

Previous versions (Unit Ver. 2.1 and earlier)Current version (Unit Ver. 3.0)
Data tracing is not supported.A data tracing function is provided that can simultaneously collect a maximum of 32 data items. This function does not affect previous functionality. Previously reserved parameters and variables are used to set and reference data trace conditions and status. For details, refer to 9-6 Data Tracing.

Debugging

Previous versions (Unit Ver. 2.1 and earlier)Current version (Unit Ver. 3.0)
Breakpoints cannot be set.Debugging is supported using breakpoints that are set using the Support Tool, and debugging is supported for direct operation. These functions do not affect previous functionality, but the following bit has been added to the Unit status to indicate that debugging is being executed from the Support Tool. • CIO n+15, bit 09: Operating mode (Reserved in previous unit versions.) 0: Normal mode 1: Support Tool mode (debugging)

Zones

Previous versions (Unit Ver. 2.1 and earlier)Current version (Unit Ver. 3.0)
Zones are not supported.A maximum of 32 zone bits are available. Zone bit: A bit that turns ON when any variable is within the set range, and turns OFF when the variable is outside of the range. The previous function and the new function can be switched using the following parameter. • Parameter number: P00011 (Reserved in previous unit versions.) • Setting: 0 to 32 0: Default. Same as previous function. 1 to 32: Use zone bits 1 to 32. Parameters and variables that were previously reserved are used to set zone upper and lower limits. For details, refer to 9-7 Zones.

Signed Master Axis MOVELINK Command

Previous versions (Unit Ver. 2.1 and earlier)Current version (Unit Ver. 3.0)
The main axis input sign is ignored and data is read as an absolute travel distance.The main axis input sign is evaluated and the data is read as a signed travel distance. This function enables the main axis to use the feedback speed of an axis traveling at low speed.

Indirect Writing of Position Data

Previous versions (Unit Ver. 2.1 and earlier)Current version (Unit Ver. 3.0)
Position data can be indirectly read but cannot be indirectly written.Position data can be both read and written indirectly. Example: Indirect Writing @ PL0000 = 1234; “1234” will be assigned as the contents of the address set in PL0000. This function does not affect previous functionality.

Setting the Number of Parallel Branches for Each Task

Previous versions (Unit Ver. 2.1 and earlier)Current version (Unit Ver. 3.0)
The number of branches and the number of commands that can be executed are the same for each task.The number of branches and the number of instructions that can be executed can be set individually for each task, enabling fine adjustment of the Unit cycle. The previous function and the new function can be switched using the following parameter. • Parameter number: P00004 • Bit 11 (Reserved in previous unit versions.) 0: Default. Same as previous function. 1: Individually set the number of branches and the number of commands that can be executed in each task. Previously reserved parameters are used to set the number of parallel branches individually for each task.

Present Position Preset to Establish Origin

Previous versions (Unit Ver. 2.1 and earlier)Current (Unit Ver. 3.0)
The origin is not established when the present position is set to the preset value.The origin is established when the present position is set to the preset value. The previous function and the new function can be switched using the following parameter. • Parameter number: P00004 • Bit 12 (Reserved in previous unit versions.) 0: Default. Same as previous function. 1: Origin established for preset.

Program Start Bit Status

Previous versions (Unit Ver. 2.1 and earlier)Current (Unit Ver. 3.0)
An operation completed bit alone cannot be used to detect the end of programs with processing times that are shorter than the Unit cycle time.The start bit ON/OFF status in the CPU Unit is output to the task status bit. Example for Axis 1: • n+17 bit 06: start bit (Reserved in previous unit versions.) 0: Start bit from CPU Unit OFF 1: Start bit from CPU Unit ON The end of the relevant program can be detected if this bit is ON and the operation completed bit is ON.

Servo OFF for Deceleration Stop Signal

Previous versions (Unit Ver. 2.1 and earlier)Current (Unit Ver. 3.0)
When the deceleration stop signal for the Unit turns ON, all axes are decelerated to a stop.When the deceleration stop signal for the Unit turns ON, the servo can be turned OFF for all axes. The operation for servo OFF is set in the Servo Driver parameters. The previous function and the new function can be switched using the following parameter. • Parameter number: P00004 • Bit 10 (Reserved in previous unit versions.) 0: Default. Same as previous function. 1: Servo OFF

Re-execution of WAIT Command

Previous versions (Unit Ver. 2.1 and earlier)Current (Unit Ver. 3.0)
If the program is stopped while WAIT command execution is in effect (i.e., when the deceleration stop bit is ON) and then re-started by setting the Start Mode to 1, the program is started from the next block after the WAIT command.If the program is stopped while WAIT command execution is in effect (i.e., when the deceleration stop bit is ON) and then re-started by setting the Start Mode to 1, the WAIT command is re-executed.

Main Power Status

Previous versions (Unit Ver. 2.1 and earlier)Current (Unit Ver. 3.0)
The main power status (ON/OFF) is written to a system variable.The main power status (ON/OFF) is written to both a system variable and a status bit for each axis. Example for Axis 1: • x+32 bit 12: Main power ON bit (reserved in previous unit versions) 0: Main power OFF 1: Main power ON The servo can be effectively locked from the CPU Unit after confirming that this bit is ON.

Servo Driver Status

Previous versions (Unit Ver. 2.1 and earlier)Current (Unit Ver. 3.0)
The Servo Driver warning and alarm codes are stored in the error log. The Servo status (torque limit, limit inputs, etc.) is output to system variables (SW021C and SW021D for axis 1.)In addition to the functionality supported in previous unit versions, Servo Driver warning codes, alarm codes, and status (torque limit, limit inputs, etc.) are also output to the following output variables that were reserved in previous unit versions. OW0210: Axis 1 Warning code/alarm code OW0211: Axis 1 Status (same as SW021C) OW0212: Axis 1 Status (same as SW021D) to OW026D: Axis 32 Warning code/alarm code OW026E: Axis 32 Status (Same as SW07EC) OW026F: Axis 32 Status (Same as SW07ED)

Compliance with RoHS Directive

Previous versions (Unit Ver. 2.1 and earlier)Current version (Unit Ver. 3.0)
Lead was included in the cream solder used to mount chip components, in the flow solder used in assembly, and in thread solder.As shown below, lead is not used. There is no change in specifications (including outer appearance) resulting from this change.
Solder typeMain componentsSolder typeMain components
Cream solderTin and leadCream solder(1) Tin, silver, indium, and bismuth (2) Tin, silver, and copper
Flow solderTin and lead
Thread solderTin and leadFlow solder(1) Tin and copper (2) Tin, silver, and copper
Thread solderTin, silver, and copper
Note: Either 1 or 2 shown above is used.
There is no mark indicating compliance with the RoHS Directive.The RoHS compliance mark is displayed.

Increased Precision of CAMBOX Command

Previous versions (Unit Ver. 2.1 and earlier)Current (Unit Ver. 3.0)
If the slave axis CAM table is switched during continuous master axis travel, part of the slave axis travel is eliminated when the CAM table is switched. Example: CAMBOX [J01]1 [J02]10000 K10000 Q8 B0;Cam 1 CAMBOX [J01]2 [J02]10000 K10000 Q8 B0;Cam 2 CAMBOX [J01]3 [J02]10000 K10000 Q8 B0;Cam 3 Slave axis displacement 0 Slave axis speed 0 This amount of travel is eliminated.The slave axis will travel the set amount, even if the slave axis CAM table is switched during continuous master axis travel. Example: CAMBOX [J01]1 [J02]10000 K10000 Q8 B0;Cam 1 CAMBOX [J01]2 [J02]10000 K10000 Q8 B0;Cam 2 CAMBOX [J01]3 [J02]10000 K10000 Q8 B0;Cam3 Slave axis displacement 0 Slave axis speed 0 This amount of travel is eliminated.

Functions Added in Version Upgrade

The following table provides a comparison between the functions provided in the upgrade to unit version 2.1 or later of CJ1W-MCH71 SYSMAC CJ-series Motion Control Units from the previous unit version 2.0.

Reading Unit Versions

Previous version (Unit Ver. 2.0)Present version (Unit Ver. 2.1)
The MC Unit's unit version code could not be read by accessing the Unit Manufacturing Information in CX-Programmer Ver.4.0.The MC Unit's unit version code can be read by accessing the Unit Manufacturing Information in CX-Programmer Ver.4.0.

Expanded Allocations in Custom I/O Area

Previous version (Unit Ver. 2.0)Present version (Unit Ver. 2.1)
Only the I/O variable area determined in advance could be allocated to the Cus-tom I/O Area.In addition to the I/O variable area, sys-tem variables, global general variables, position data, and task variables for user-specified addresses can be allocated in the Custom I/O Area.

Expanded Custom I/O Area Allocations

Overview

The CPU Unit can control MC Units with the following three different methods of data I/O.

  1. Data exchange with allocated bit area words.
  2. Data exchange with allocated DM Area words.
  3. Data exchange with allocated Custom Area words.

OMRON CJ1W-MCH71 - Overview - 1

The function for exchanging data in the Custom I/O Area has been enhanced with MC Units with unit version 2.1, as shown in the following table.

For details on previous specifications, refer to SECTION 7 PC Interface Area.

No.ClassificationMC Unit Variable AreaArea size
Previous version(Unit Ver. 2.0)Present version(Unit Ver. 2.1)
1General I/O AIW0B00 to IW0B9F or OW0B00 to OW0B9FThe variable area and addresses can be allocated for the following variables. • System variables • Global general variables • Input variables0 to 160 words
2General I/O BIW0BA0 to IW0C3F or OW0BA0 to OW0C3F0 to 160 words
3General I/O CIW0C40 to IW0CDF or OW0C40 to OW0CDF0 to 160 words
4General I/O DIW0CE0 to IW0D7F or OW0CE0 to OW0D7FOutput variables • Position data • Task variable0 to 160 words
5General I/O EIW0D80 to IW0E1F or OW0D80 to OW0E1F0 to 160 words
6General I/O FIW0E20 to IW0EBF or OW0E20 to OW0EBF0 to 160 words
7General I/O GIW0EC0 to IW0F5F or OW0EC0 to OW0F5F0 to 160 words
8General I/O HIW0F60 to IW0FFF or OW0F60 to OW0FFF0 to 160 words

Guide to CS1W-MCH71 Version Upgrade

Function Upgrades from Unit Version 3.0 to 3.1

Restarting after Restoration

Previous versions (Unit Ver. 3.0 and earlier)Current version (Unit Ver. 3.1)
After data has been restored from the CPU Unit's flash memory, the Unit must be restarted by cycling the CPU Unit's power supply.After data has been restored from the CPU Unit's flash memory, the Unit is restarted using a bit between A50100 and A50115 in the Auxiliary Area of the CPU Unit. For details, refer to 7-1 Overview.

Expanded Bank Switching for Interpolation Acceleration/Deceleration Times

Previous versions (Unit Ver. 3.0 and earlier)Current version (Unit Ver. 3.1)
The acceleration time and deceleration time used for interpolation operations cannot be set separately.The acceleration time and deceleration time used for interpolation operations can be set separately. P00004, bit 13: Bank switching method selection 0: Select the same bank for acceleration and deceleration (same as for version 3.0). 1: Select different banks for the acceleration time and deceleration time. Parameters P00M11 to P00M15 are used to set acceleration times, and P00M16 to P00M20 are used to set deceleration times. For details, refer to 6-1 Basic Information.

Internal Overrides

Previous versions (Unit Ver. 3.0 and earlier)Current version (Unit Ver. 3.1)
There is a function for changing the axis feed rate from a ladder program, but not from a motion program.The feed rate when the following commands are executed can be changed from a motion program. Commands for which an override can be speci-fied from the motion program: MOVE Rapid feed rate DATUM Origin return feed rate MOVEI Rapid feed rate, external position-ing rate MOVET Rapid feed rate The actual speed is as follows: Actual speed = Axis feed rate x (Axis override + Internal override) For details, refer to 6-1 Basic Information.

Connecting to SMART STEP Junior Servo Drivers

Previous versions (Unit Ver. 3.0 and earlier)Current version (Unit Ver. 3.1)
Cannot be connected.Can be connected.

Backup and Restore Functions

Previous versions (Unit Ver. 3.0 and earlier)Current version (Unit Ver. 3.1)
The origin compensation value when an absolute encoder is used is backed up using the CPU Unit's easy backup function.Origin compensation values can be backed up even with CX-Motion-MCH version 2.1. For details, refer to Section 11 Backup and Restore in the CX-Motion-MCH Operation Manual (Cat. No. W448).

Program and CAM Data Read Protection

Previous versions (Unit Ver. 3.0 and earlier)Current version (Unit Ver. 3.1)
There is no program and CAM data read protection.The CX-Motion-MCH version 2.1 read protection function (password setting), can be used to prevent third-parties from reading program and CAM data. For details, refer to Section 12 Read Protection in the CX-Motion-MCH Operation Manual (Cat. No. W448).

Function Upgrades from Unit Version 2.0 to 3.0

Expanded Allocations in Custom I/O Area

Previous version (Unit Ver. 2.0)Present version (Unit Ver. 3.0)
Only the I/O variable area determined in advance could be allocated to the Cus-tom I/O Area.In addition to the I/O variables, system variables, global general variables, position data, and task variables for user-specified addresses can be allocated to the Custom I/O Area.

Digital Input Values Changed to Improve Noise Resistance

Previous version (Unit Ver. 2.0)Current version (Unit Ver. 3.0)
Rated input voltage: 24 VDC ±10% Rated input current: 4.06 to 4.48 mA ON voltage: 9.5 V min. OFF voltage: 4.5 V max.Rated input voltage: 24 VDC ±10% Rated input current: 4.02 to 4.52 mA ON voltage: 14 V min. OFF voltage: 6V max. (Any sensors that were previous used can still be used.)

Parameter Added for Faster Unit Cycle and Communications Cycle Time

Previous version (Unit Ver. 2.0)Current version (Unit Ver. 3.0)
Unit cycle [us] = (115.0 × Number of axes) + (165 × Number of motion tasks × Number of parallel branches) + (0.3 × Number of general allocation words) + 350.0Unit cycle [us] = (85 × Number of axes) + (120 × Number of motion tasks × Number of parallel branches) + (0.3 × number of general allocation words) + 200
Communications cycle [us] = ((Number of allocated Units + Number of retries) × 133.3+26.2) × 1.1Communications cycle [us] = ((Number of allocated Unit + Number of retries) × 102.7 + 19.2) × 1.1 Use the following parameter to switch the performance. • Parameter number: P00004 • Bit: 09 (previously reserved) 0: Initial value. Performance is the same as before. 1: Selects faster performance.

Signed Master Axis MOVELINK Command

Previous version (Unit Ver. 2.0)Current version (Unit Ver. 3.0)
The main axis input sign is ignored and data is read as an absolute travel distance.The main axis input sign is evaluated and the data is read as a signed travel distance. This function enables the main axis to use the feedback speed of an axis traveling at low speed.

Indirect Writing of Position Data

Previous version (Unit Ver. 2.0)Current version (Unit Ver. 3.0)
Position data can be indirectly read but cannot be indirectly written.Position data can be both read and written indirectly. Example: Indirect Writing @PL0000 = 1234; “1234” will be assigned as the contents of the address set in PL0000. This function does not affect previous functionality.

Program Start Bit Status

Previous version (Unit Ver. 2.0)Current version (Unit Ver. 3.0)
An operation completed bit alone cannot be used to detect the end of programs with processing times that are shorter than the Unit cycle time.The start bit ON/OFF status in the CPU Unit is output to the task status bit. Example for Axis 1: • n+17 bit 06: start bit (Reserved in previous unit versions.) 0: Start bit from CPU Unit OFF 1: Start bit from CPU Unit ON The end of the relevant program can be detected if this bit is ON and the operation completed bit is ON.

Re-execution of WAIT Command

Previous version (Unit Ver. 2.0)Current version (Unit Ver. 3.0)
If the program is stopped while WAIT command execution is in effect (i.e., when the deceleration stop bit is ON) and then re-started by setting the Start Mode to 1, the program is started from the next block after the WAIT command.If the program is stopped while WAIT command execution is in effect (i.e., when the deceleration stop bit is ON) and then re-started by setting the Start Mode to 1, the WAIT command is re-exe-cuted.

Main Power Status

Previous version (Unit Ver. 2.0)Current version (Unit Ver. 3.0)
The main power status (ON/OFF) is written to a system variable.The main power status (ON/OFF) is written to both a system variable and a status bit for each axis. Example for Axis 1: • x+32 bit 12: Main power ON bit (reserved in previous unit versions) 0: Main power OFF 1: Main power ON The servo can be effectively locked from the CPU Unit after confirming that this bit is ON.

Servo Driver Status

Previous version (Unit Ver. 2.0)Current version (Unit Ver. 3.0)
The Servo Driver warning and alarm codes are stored in the error log. The Servo status (torque limit, limit inputs, etc.) is output to system variables (SW021C and SW021D for axis 1.)In addition to the functionality supported in previous unit versions, Servo Driver warning codes, alarm codes, and status (torque limit, limit inputs, etc.) are also output to the following output variables that were reserved in previous unit versions. OW0210: Axis 1 Warning code/alarm code OW0211: Axis 1 Status (same as SW021C) OW0212: Axis 1 Status (same as SW021D) to OW026D: Axis 32 Warning code/alarm code OW026E: Axis 32 Status (Same as SW07EC) OW026F: Axis 32 Status (Same as SW07ED)

Compliance with RoHS Directive

Previous version (Unit Ver. 2.0)Current version (Unit Ver. 3.0)
Lead was included in the cream solder used to mount chip components, in the flow solder used in assembly, and in thread solder.As shown below, lead is not used. There is no change in specifications (including outer appearance) resulting from this change.
Solder typeMain componentsSolder typeMain components
Cream solderTin and leadCream solder(1) Tin, silver, indium, and bismuth (2) Tin, silver, and copper
Flow solderTin and lead
Thread solderTin and leadFlow solder(1) Tin and copper (2) Tin, silver, and copper
Thread solderTin, silver, and copper
Note: Either 1 or 2 shown above is used.
There is no mark indicating compliance with the RoHS Directive.The RoHS compliance mark is displayed.

Increased Precision of CAMBOX Command

Previous version (Unit Ver. 2.0)Current version (Unit Ver. 3.0)
If the slave axis CAM table is switched during continuous master axis travel, part of the slave axis travel is eliminated when the CAM table is switched. Example: CAMBOX [J01]1 [J02]10000 K10000 Q8 B0;Cam 1 CAMBOX [J01]2 [J02]10000 K10000 Q8 B0;Cam 2 CAMBOX [J01]3 [J02]10000 K10000 Q8 B0;Cam 3 Slave axis displacement 0 Slave axis speed 0 This amount of travel is eliminated.The slave axis will travel the set amount, even if the slave axis CAM table is switched during continuous master axis travel. Example: CAMBOX [J01]1 [J02]10000 K10000 Q8 B0;Cam 1 CAMBOX [J01]2 [J02]10000 K10000 Q8 B0;Cam 2 CAMBOX [J01]3 [J02]10000 K10000 Q8 B0;Cam3 Slave axis displacement 0 Slave axis speed 0 This amount of travel is eliminated.

The following functions can be used with CX-Motion-MCH version 2.0 or higher (available from August 2006).

Data Tracing

Previous version (Unit Ver. 2.0)Current version (Unit Ver. 3.0)
Data tracing is not supported.A data tracing function is provided that can simultaneously collect a maximum of 32 data items. This function does not affect previous functionality. Previously reserved parameters and variables are used to set and reference data trace conditions and status.

Debugging

Previous version (Unit Ver. 2.0)Current version (Unit Ver. 3.0)
Breakpoints cannot be set.Debugging is supported using breakpoints that are set using the Support Tool, and debugging is supported for direct operation. These functions do not affect previous functionality, but the following bit has been added to the Unit status to indicate that debugging is being executed from the Support Tool. • CIO n+15, bit 09: Operating mode (Reserved in previous unit versions.) 0: Normal mode 1: Support Tool mode (debugging)

Zones

Previous version (Unit Ver. 2.0)Current version (Unit Ver. 3.0)
Zones are not supported.A maximum of 32 zone bits are available. Zone bit: A bit that turns ON when any variable is within the set range, and turns OFF when the variable is outside of the range. The previous function and the new function can be switched using the following parameter. • Parameter number: P00011 (Reserved in previous unit versions.) • Setting: 0 to 32 0: Default. Same as previous function. 1 to 32: Use zone bits 1 to 32. Parameters and variables that were previously reserved are used to set zone upper and lower limits.

Setting the Number of Parallel Branches for Each Task

Previous version (Unit Ver. 2.0)Current version (Unit Ver. 3.0)
The number of branches and the number of commands that can be executed are the same for each task.The number of branches and the number of instructions that can be executed can be set individually for each task, enabling fine adjustment of the Unit cycle. The previous function and the new function can be switched using the following parameter. • Parameter number: P00004 • Bit 11 (Reserved in previous unit versions.) 0: Default. Same as previous function. 1: Individually set the number of branches and the number of commands that can be executed in each task. Previously reserved parameters are used to set the number of parallel branches individually for each task.

Present Position Preset to Establish Origin

Previous version (Unit Ver. 2.0)Current version (Unit Ver. 3.0)
The origin is not established when the present position is set to the preset value.The origin is established when the present position is set to the preset value. The previous function and the new function can be switched using the following parameter. • Parameter number: P00004 • Bit 12 (Reserved in previous unit versions.) 0: Default. Same as previous function. 1: Origin established for preset.

Servo OFF for Deceleration Stop Signal

Previous version (Unit Ver. 2.0)Current version (Unit Ver. 3.0)
When the deceleration stop signal for the Unit turns ON, all axes are decelerated to a stop.When the deceleration stop signal for the Unit turns ON, the servo can be turned OFF for all axes. The operation for servo OFF is set in the Servo Driver parameters. The previous function and the new function can be switched using the following parameter. • Parameter number: P00004 • Bit 10 (Reserved in previous unit versions.) 0: Default. Same as previous function. 1: Servo OFF

Function Improvements for Unit Version 2.0

Jogging

Previous versionsCurrent version (Unit Ver. 2.0)
The JOG feed direction is set or reversed as follows: • Use the JOG/STEP Direction Bit to specify the feed direction. • Turn ON the JOG Bit. • To reverse the feed direction, turn OFF the JOG Bit. • After the axis is stopped, reverse the JOG/STEP Direction Bit. • Turn ON the JOG Bit. The feed direction will be reversed.As shown below, a setting for reverse operation has been added. • Use the JOG/STEP Direction Bit to spec-ify the feed direction. • Turn ON the JOG Bit. • The feed direction is reversed by reversing the JOG/STEP Direction Bit even while the JOG Bit still ON. Use the following parameter to switch the previous function and the new one. • Parameter number: P00004 • Bit: 05 (previously reserved) 0: Initial value. Same as previous func-tion. 1: Selects new function.

Communications Levels

Previous versionsCurrent version (Unit Ver. 2.0 or later)
The MC Unit supported communications on up to three levels.The MC Unit supports communications on up to eight levels, according to the eight levels supported by the CPU Unit. The CPU Unit supports eight levels with unit version 2.0 or later.

Communications Cycle and Unit Cycle

Previous versionsCurrent version (Unit Ver. 2.0 or later)
The MC Unit communications cycle and unit cycle times are as follows: Communications cycle: 1 ms, 2 ms, 4 ms Unit cycle: 1 ms, 2 ms, 4 ms, 8 ms• Supporting a communications cycle of 3 ms enable more precise performance. Communications cycle: 1 ms, 2 ms, 3 ms, 4 ms Unit cycle: 1 ms, 2 ms, 3 ms, 4 ms, 6 ms, 8 ms • Use the following parameter to switch the previous function and the new one. Parameter number: P00004 Bit: 03 (previously reserved) 0: Initial value. Same as previous function. 1: Enables use of 3 ms.

LATCH Command Processing Time

Previous versionsCurrent version (Unit Ver. 2.0 or later)
The time from when the LATCH command is executed until the external latch signal is detected is as follows: • When latch signals are received at any position: 105 to 232 ms • When only latch signals in a specified position range are received: 105 to 232 msAs shown below, performance is improved in cases where latch signals are received at any position. • When latch signals are received at any position: 3 to 24 ms • When only latch signals in a specified position range are received: 105 to 232 ms

Latch Status Refresh Time

Previous versionsCurrent version (Unit Ver. 2.0 or later)
After a LATCH command is executed, the time from when the latch signal is input until it is reflected in the system variable (the variable showing latch completion) is 14.5 to 85.5 ms.The performance has been improved as follows:7.5 to 37.5 ms

Using Interpolation Commands during Pass Operation

Previous versionsCurrent version (Unit Ver. 2.0 or later)
To execute pass operation from a stopped axis, two interpolation commands are required for the initial operation. Example: PASSMODE; MOVEL [J01]100 F10000; MOVEL [J02]400 F10000; WHILE #MW0000==0; INC MOVEL [J02]100 F1000; WEND; :To execute pass operation from a stopped axis, only one interpolation command is required. Example: : PASSMODE; WHILE #MW0000==0; INC MOVEL [J02]100 F1000; WEND; :

Acceleration/Deceleration Times during Pass Operation

Previous versionsCurrent version (Unit Ver. 2.0 or later)
Changing the acceleration/ deceleration times during pass operation was complex at any time. It was necessary to use the PARALLEL command to execute parallel processing.The acceleration/deceleration times can be changed during pass operation. As shown below, switching is made easy by using a newly added parameter. MOVEL [J01]1000 F1000 ← The time set in bank 2 #W0A00 = 2; is used for passing to the next position. MOVEL [J01]5000 F1000 The following ten newly added parameters use part of the task parameter area that was previously reserved. Setting range: 0 to 60,000 (ms)
NumberName
P00M11Interpolation feed acceleration/ deceleration time, Bank 1
::
P00M20Interpolation feed acceleration/ deceleration time, Bank 10

Deceleration Time during Pass Operation

Previous versionsCurrent version (Unit Ver. 2.0 or later)
The interpolation feed deceleration time is used to decelerate to a stop during pass operation. Example: Pass Mode Selection, P00M06 = 0 Interpolation feed acceleration time Ta = P0MM02 Interpolation feed deceleration time Td = P00M03 Program PASSMODE; INC MOVEL [J01]1000 F100000; INC MOVEL [J01]1000 F100000; END;The interpolation time used during pass operation (the interpolation feed acceleration time or the interpolation feed deceleration time) is used to decelerate to a stop during pass operation. Example: Pass Mode Selection, P00M06 = 0 Interpolation feed acceleration time Ta = P0MM02 Interpolation feed deceleration time Td = P00M03 Program PASSMODE; INC MOVEL [J01]1000 F100000; INC MOVEL [J01]1000 F10O000; END;
Speed Ta Ta Td TimeTo stop at the interpolation feed deceleration speed as previously, add STOP-MODE before the final interpolation command as shown below. PASSMODE; INC MOVEL [J01]1000 F100000; STOPMODE; INC MOVEL [J01]1000 F100000; END;

Torque to Position Control Switching

Previous versionsCurrent version (Unit Ver. 2.0 or later)
Switching from torque control to position control using the TORQUR command is executed when the axis feedback speed reaches 0.• Switching from torque control to position control using the TORQUR command is executed by switching to position control when the axis feedback speed reaches the speed specified in a parameter (specified by a percentage of the rated speed). • The following newly added parameter uses part of the axis parameter area that was previously reserved.
Number Name
P3AA09 Position control switching speed
Setting range: 0 to 32,767 (0.01%)

Speed to Position Control Switching

Previous versionsCurrent version (Unit Ver. 2.0 or later)
Switching from speed control to position control using the SPEEDDR command is executed when the axis feedback speed reaches 0.• Switching from speed control to position control using the SPEEDDR command is executed when the axis feedback speed reaches the speed specified in a parameter (specified by a percentage of the rated speed). • The following newly added parameter uses part of the axis parameter area that was previously reserved.
Number Name
P3AA09 Position control switching speed
Setting range: 0 to 32,767 (0.01%)

TABLE OF CONTENTS

PRECAUTIONS. xli

1 Intended Audience. xlii
2 General Precautions. xlii
3 Safety Precautions xlii
4 Application Precautions. xlv
5 Operating Environment Precautions xlv
6 Conformance to EC Directives xlv

SECTION 1 Features and System Configuration 1

1-1 Features 2
1-2 System Configuration 4
1-3 Basic Operations 6
1-4 Control System Configuration and Principles 11
1-5 Performance Specifications 12
1-6 Command List 18
1-7 Performance. 21

SECTION 2 Basic Procedures. 25

2-1 Basic Operation Flow 26
2-2 Overview of CX-Motion-MCH 28

SECTION 3 Installation and Wiring 31

3-1 Nomenclature and Functions 32
3-2 Installation 34
3-3 External I/O Circuitry 38
3-4 Wiring 42
3-5 Connecting MECHATROLINK Devices. 43

SECTION 4 MC Unit Internal Data Configuration and Setting. 55

4-1 Data Configuration 56
4-2 System Parameters. 58
4-3 Variables 105
4-4 Position Data 107
4-5 System Variables 111
4-6 I/O Variables 160
4-7 Present Position Preset. 190
4-8 Servo Parameter. 191
4-9 CAM Data 210

TABLE OF CONTENTS

SECTION 5

Data Transfer and Storage. 211

5-1 Data Transfer and Storage 212
5-2 IOWR Instruction to Transfer Data 221
5-3 IORD Instruction to Transfer Data 228
5-4 Saving Data 234

SECTION 6

Programming 239

6-1 Basic Information 240
6-2 Command Overview 286
6-3 Command Details 298

SECTION 7

PC Interface Area. 373

7-1 Overview 374
7-2 Operating Mode 382
7-3 Allocations for the CPU Unit 396
7-4 Interface Specifics 420

SECTION 8

Establishing the Origin. 531

8-1 Overview 532
8-2 Input Signals Required for Origin search 534
8-3 Origin Search Methods and Parameters 534
8-4Origin Search Operations 536
8-5 Absolute (ABS) Encoders 539
8-6 ABS Encoder Origin Setting 540

SECTION 9

Other Operations 545

9-1 Teaching 546
9-2 Debugging the Program 553
9-3 Coordinate System. 558
9-4 Backup and Restore Function 566
9-5 Servo Driver Status Output 569
9-6 Data Tracing 570
9-7 Zones 571

TABLE OF CONTENTS

SECTION 10

Program Example. 573

10-1 Program Example 574
10-2 Slave Modules 607
10-3 Others. 619

SECTION 11

Troubleshooting 627

11-1 Troubleshooting 628
11-2 Countermeasures 634
11-3 Error Indicators 638
11-4 Unit-related Alarm Codes 639
11-5 Motion Task-related Alarm Codes. 642
11-6 Axis-related Alarm Codes 648
11-7 MLK Device Alarm Codes 653
11-8 Servo DriverWarnings. 655
11-9 Error Log 656

SECTION 12

Maintenance and Inspection 659

12-1 Routine Inspection 660

Appendices

A Performance 663
B Main Parameter Settings when Connecting W-series Servo Driver with Built-in MECHATROLINK-II Communications 667

Revision History 671

About this Manual:

This manual describes the installation and operation of the CJ1W-MCH71 and CS1W-MCH71 Motion Control Units (MC Units) and includes the sections described below.

Please read this manual carefully and be sure you understand the information provided before attempting to install or operate the MC Unit. Be sure to read the precautions provided in the following section.

Precautions provides general precautions for using the Motion Control Unit, Programmable Controller, and related devices.

Section 1 introduces the features and system configuration of the CJ1W-MCH71 and CS1W-MCH71 Motion Control Units. It also describes product operating principles and provides product specifications.

Section 2 provides an overview of the basic procedures required to use the CJ1W-MCH71 and CS1W-MCH71 Motion Control Units.

Section 3 describes the names of Unit parts and how to install and wire the CJ1W-MCH71 and CS1WMCH71 Motion Control Units.

Section 4 describes the data configuration uses to set up, operate, and monitor the CJ1W-MCH71 and CS1W-MCH71 Motion Control Units and related devices.

Section 5 describes how to transfer data between the CPU Unit and the CJ1W-MCH71 and CS1W-MCH71 Motion Control Units and how data is stored.

Section 6 describes how to program CJ1W-MCH71 and CS1W-MCH71 Motion Control Units operation, including the program configuration and the specific commands used in programming.

Section 7 describes the interface area in the CPU Unit used to control and monitor the CJ1W-MCH71 and CS1W-MCH71 Motion Control Units.

Section 8 describes how to establish the origin in the positioning system.

Section 9 describes special operations for the CJ1W-MCH71 and CS1W-MCH71 Motion Control Units, including teaching, program debugging, coordinate systems, and backup functions.

Section 10 provides a programming example to demonstrate how the CJ1W-MCH71 and CS1WMCH71 Motion Control Units can be used.

Section 11 describes how to troubleshoot problems that may occur when using the CJ1W-MCH71 and CS1W-MCH71 Motion Control Units.

Section 12 describes the maintenance and inspection procedures required to keep the CJ1W-MCH71 and CS1W-MCH71 Motion Control Units in optimum condition.

The Appendix describes the performance of the Motion Control Units.

Registered Trademark

  • MECHATROLINK is a registered trademark of the MECHATROLINK Members Association.

Read and Understand this Manual

Please read and understand this manual before using the product. Please consult your OMRON representative if you have any questions or comments.

Warranty and Limitations of Liability

WARRANTY

OMRON's exclusive warranty is that the products are free from defects in materials and workmanship for a period of one year (or other period if specified) from date of sale by OMRON.

OMRON MAKES NO WARRANTY OR REPRESENTATION, EXPRESS OR IMPLIED, REGARDING NONINFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR PARTICULAR PURPOSE OF THE PRODUCTS. ANY BUYER OR USER ACKNOWLEDGES THAT THE BUYER OR USER ALONE HAS DETERMINED THAT THE PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR INTENDED USE. OMRON DISCLAIMS ALL OTHER WARRANTYES, EXPRESS OR IMPLIED.

LIMITATIONS OF LIABILITY

OMRON SHALL NOT BE RESPONSIBLE FOR SPECIAL, INDIRECT, OR CONSEQUENTIAL DAMAGES, LOSS OF PROFITS OR COMMERCIAL LOSS IN ANY WAY CONNECTED WITH THE PRODUCTS, WHETHER SUCH CLAIM IS BASED ON CONTRACT, WARRANTY, NEGLIGENCE, OR STRICT LIABILITY.

In no event shall the responsibility of OMRON for any act exceed the individual price of the product on which liability is asserted.

IN NO EVENT SHALL OMRON BE RESPONSIBLE FOR WARRANTY, REPAIR, OR OTHER CLAIMS REGARDING THE PRODUCTS UNLESS OMRON'S ANALYSIS CONFIRMS THAT THE PRODUCTS WERE PROPERLY HANDLED, STORED, INSTALLED, AND MAINTAINED AND NOT SUBJECT TO CONTAMINATION, ABUSE, MISUSE, OR INAPPROPRIATE MODIFICATION OR REPAIR.

Application Considerations

SUITABILITY FOR USE
OMRON shall not be responsible for conformity with any standards, codes, or regulations that apply to the combination of products in the customer's application or use of the products.
At the customer's request, OMRON will provide applicable third party certification documents identifying ratings and limitations of use that apply to the products. This information by itself is not sufficient for a complete determination of the suitability of the products in combination with the end product, machine, system, or other application or use.
The following are some examples of applications for which particular attention must be given. This is not intended to be an exhaustive list of all possible uses of the products, nor is it intended to imply that the uses listed may be suitable for the products: · Outdoor use, uses involving potential chemical contamination or electrical interference, or conditions or uses not described in this manual. · Nuclear energy control systems, combustion systems, railroad systems, aviation systems, medical equipment, amusement machines, vehicles, safety equipment, and installations subject to separate industry or government regulations. · Systems, machines, and equipment that could present a risk to life or property.
Please know and observe all prohibitions of use applicable to the products.
NEVER USE THE PRODUCTS FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR PROPERTY WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE HAS BEEN DESIGNED TO ADDRESS THE RISKS, AND THAT THE OMRON PRODUCTS ARE PROPERLY RATED AND INSTALLED FOR THE INTENDED USE WITHIN THE OVERALL EQUIPMENT OR SYSTEM.
PROGRAMMABLE PRODUCTS
OMRON shall not be responsible for the user's programming of a programmable product, or any consequence thereof.

Disclaimers

CHANGE IN SPECIFICATIONS

Product specifications and accessories may be changed at any time based on improvements and other reasons.

It is our practice to change model numbers when published ratings or features are changed, or when significant construction changes are made. However, some specifications of the products may be changed without any notice. When in doubt, special model numbers may be assigned to fix or establish key specifications for your application on your request. Please consult with your OMRON representative at any time to confirm actual specifications of purchased products.

DIMENSIONS AND WEIGHTS

Dimensions and weights are nominal and are not to be used for manufacturing purposes, even when tolerances are shown.

PERFORMANCE DATA

Performance data given in this manual is provided as a guide for the user in determining suitability and does not constitute a warranty. It may represent the result of OMRON's test conditions, and the users must correlate it to actual application requirements. Actual performance is subject to the OMRON Warranty and Limitations of Liability.

ERRORS AND OMISSIONS

The information in this manual has been carefully checked and is believed to be accurate; however, no responsibility is assumed for clerical, typographical, or proofreading errors, or omissions.

This section provides general precautions for using the CJ1W-MCH71 and CS1W-MCH71 Motion Control Units and related devices.

The information contained in this section is important for the safe and reliable application of the CJ1W-MCH71 or CS1W-MCH71 Motion Control Unit. You must read this section and understand the information contained before attempting to set up or operate a CJ1W-MCH71 or CS1W-MCH71 Motion Control Unit.

1 Intended Audience xlii
2 General Precautions xlii
3 Safety Precautions. xiii
4 Application Precautions xlv
5 Operating Environment Precautions xlv
6 Conformance to EC Directives xlv

6-1 Applicable Directives xlv
6-2 Concepts xlv
6-3 Conformance to EC Directives. xlvi
6-4 Installation within Control Panel xlv

1 Intended Audience

This manual is intended for the following personnel, who must also have knowledge of electrical systems (an electrical engineer or the equivalent).

  • Personnel in charge of installing FA systems.
  • Personnel in charge of designing FA systems.
  • Personnel in charge of managing FA systems and facilities.

2 General Precautions

The user must operate the product according to the performance specifications described in the operation manuals.

Before using the product under conditions which are not described in the manual or applying the product to nuclear control systems, railroad systems, aviation systems, vehicles, combustion systems, medical equipment, amusement machines, safety equipment, and other systems, machines, and equipment that may have a serious influence on lives and property if used improperly, consult your OMRON representative.

Make sure that the ratings and performance characteristics of the product are sufficient for the systems, machines, and equipment, and be sure to provide the systems, machines, and equipment with double safety mechanisms.

This manual provides information for programming and operating the Unit. Be sure to read this manual before attempting to use the Unit and keep this manual close at hand for reference during operation.

WARNING

It is extremely important that a PLC and all PLC Units be used for the specified purpose and under the specified conditions, especially in applications that can directly or indirectly affect human life. You must consult with your OMRON representative before applying a PLC System to the above-mentioned applications.

3 Safety Precautions

DANGER
Never attempt to disassemble any Units while power is being supplied. Doing so may result in serious electronic shock.
Never touch any of the terminals while power is being supplied. Doing so may result in serious electronic shock.
Provide safety measures in external circuits (i.e., not in the Programmable Controller or MC Unit) to ensure safety in the system if an abnormality occurs due to malfunction of the PLC or MC unit. Not providing sufficient safety measures may result in serious accidents.
• Emergency- stop circuits, interlock circuits, limit circuits, and similar safety measures must be provided in external control circuits. • The PLC will turn OFF all outputs when its self-diagnosis function detects any error or when a severe failure alarm (FALS) instruction is executed. As a countermeasure for such errors, external safety measures must be provided to ensure safety in the system. • The PLC or MC Unit outputs may remain ON or OFF due to deposits on or burning of the output relays, or destruction of the output transistors. As a countermeasure for such problems, external safety measures must be provided to ensure safety in the system. • When the 24-VDC (service power supply to the PLC) is overloaded or short-circuited, the voltage may drop result in the outputs being turned OFF. As a countermeasure for such problems, external safety measures must be provided to ensure safety in the system. • Provide safety measures in external circuits to ensure safety in system if an abnormality occurs due to malfunction of MC Unit connectors.
WARNING
Execute online edit only after confirming that the cycle time extension will not cause any adverse effects. Some input signals may not be read if the cycle time is extended.!
Confirm the safety of the destination node before transferring program to the node or changing the contents of I/O memory. Doing either of these without confirming safety may result in injury.!
Do not save data into the flash memory during memory operation or while the motor is running. Otherwise, unexpected operation may be caused.!
Do not reverse the polarity of the 24-V power supply. The polarity must be correct. Otherwise, the motor may start running unexpectedly and may not stop.!
When positioning is performed using Teaching function, positioning specification in the motion program must be [Absolute specification]. If [Incremental specification] is specified, positioning will be executed at the different point from where Teaching conducted.!

4 Application Precautions

Observe the following precautions when using the MC Unit or the PLC.

  • Install external breakers and take other safety measures against short-circuiting in external wiring. Insufficient safety measures against short-circuiting may result in burning.

  • Always turn off after power supply to the Unit before attempting any of the following. Not turning OFF the power supply may result in malfunction or electric shock.

  • Mounting or dismounting the MC Unit or any other unit.

  • Assembling the Units.
  • Setting Rotary switches.
  • Connecting Cables or wiring the system.
  • Connecting or disconnecting the connectors.

  • Confirming that no adverse effect will occur in the system before attempting any of the following. Not doing so may result in an unexpected operation.

  • Changing the operation mode of the PLC (including the setting of the startup operating mode).

  • Changing the present value of any word or any set value in memory.
  • Force-setting /force-resetting any bit in memory.

  • Always connect to a ground of 100 or less when installing the Units. Not connecting to a ground of 100 or less may result in electric shock.

  • Before touching the Unit, be sure to first touch a grounded metallic object in order to discharge any static built-up. Not doing so may result in malfunction or damage.
  • Be sure that all the mounting screws, terminal screws, and cable connector screws are tightened to the torque specified in this manual. Incorrect tightening torque may result in malfunction.
  • Tighten the mounting screws at the bottom of the Unit to a torque of 0.4 N·m. Incorrect tightening torque may result in malfunction.
  • Perform wiring according to specified procedures.
  • Leave the label attached to the Unit when wiring. Removing the label may result in malfunction if foreign matter enters the Unit.
  • Remove the label after the completion of wiring to ensure proper heat dissipation. Leaving the label attached may result in malfunction.
  • Check the pin numbers before wiring the connectors.
  • Use crimp terminals for wiring. Do not connect bare stranded wires directly to terminals. Connection of bare stranded wires may result in burning.
  • Be sure that the connectors, terminal blocks, I/O cables, cables between drivers, and other items with locking devices are properly locked into place. Improper locking may result in malfunction.
  • Always use the power supply voltage specified in this manual. An incorrect voltage may result in malfunction or burning.
  • Take appropriate measures to ensure that the specified power with the rated voltage and frequency is supplied. Be particularly careful in places where the power supply is unstable. An in correct power supply may result in malfunction.
  • Do not apply voltages to the Input Units in excess of the rated input voltage. Excess voltage may result in burning.
  • Do not apply voltages or connect loads to the Output Units in excess of the maximum switching capacity. Excess voltages or loads may result in burning.
  • Check carefully all wiring and switch setting before turning ON the power supply. Incorrect wiring may result in burning.
  • Separate the line ground terminal (LG) from the functional ground terminal (GR) on the Power Supply Unit before performing withstand voltage tests or insulation resistance tests. Not doing so may result in burning.
  • Do not place objects on the top of the cables or other wiring lines. Doing either of these may break the cables.

  • Do not pull on the cables or bend the cables beyond their natural limit. Doing so may break the cables.

  • Do not turn off the power supply to the Unit while data is being written to flash memory. Doing so may cause problems with flash memory.
  • Confirm that user program for proper execution before actually running it on the Unit. Not checking the program may result in an unexpected operation.
  • Check the user program for proper execution before actually running it on the Unit.

Not checking the program may result in an unexpected operation.

  • Resume operation only after transferring to the new MC Unit the contents of the parameters, position data, and other data required for resuming operation.
    Not doing so may result in an unexpected operation.
  • Resume operation only after transferring to the new CPU Unit the contents of the DM Area, HR Area, and other data required for resuming operation. Not doing so may result in an unexpected operation.
  • After transferring the system parameters, servo parameters, programs, position data, and CAM data to the MC Unit, be sure to save the data in flash memory within the MC Unit (using the data save command from the Support Tool or CPU Unit) before turning OFF the power supply to the Unit. Transferring the data to the MC Unit will simply save the data in the internal memory (S-RAM) of the MC Unit and this data will be cleared when the power supply to the Unit is turned OFF.
  • After transferring the system parameter data to the MC Unit and saving the data to flash memory, be sure to reset the power supply to the unit or restart the Unit. Otherwise, some of the unit parameters and machine parameters will not be changed.
  • The Machine lock function is enabled in each axis, for the effects on the operations with multiple axes such as interpolation operation be sure to machine lock all of relative axes in order to prevent the interference with other axes or devices.
  • If axes are stopped during a synchronized operation, however, the synchronization of the master axis and slave axes positions will be cancelled. For that reason, be aware of the interference with other axes or devices when restarting up.
  • When the load OFF status is occurred in the CPU Unit during manual operation such as JOG, which is performed by operating input variables from the MC Unit's program, the operation will be continued for one-cycle of the Unit. Using the WHILE command to repeat until given condition is satisfied, however, it continues to operate even load-OFF has occurred, be aware of the interference with other axes or devices.
  • Do not attempt to take any Units apart, to repair any Units, or to modify any Units in anyway.
  • The control distance will be longer if stopping at the maximum torque is changed to stopping by turning OFF the servo when a limit sensor is detected.

5 Operating Environment Precautions

  • The installation must be conducted correctly.
  • Do not operate the control system in the following places.

  • Locations subject to direct sunlight

  • Locations subject to temperatures or humidity outside the range specified in the specifications
  • Locations subject to condensation as the result of severe changes in temperature.
  • Locations subject to corrosive or flammable gases.
  • Locations subject to dust (especially iron dust) or salts.
  • Locations subject to exposure to water, oil, or chemicals.
  • Locations subject to shock or vibration.

  • Take appropriate and sufficient countermeasures when installing systems in the following locations. Inappropriate and insufficient measures may result in malfunction.

  • Locations subject to static electricity or other sources of noise.

  • Locations subject to strong electromagnetic fields.
  • Locations subject to possible exposure to radioactivity.

  • Locations close to power supplies.

6 Conformance to EC Directives

6-1 Applicable Directives

EMC Directives

6-2 Concepts

EMC Directives

OMRON devices that comply with EC Directives also conform to the related EMC standards to that they can be more easily built into other devices or machines. The actual products have been checked for conformity to EMC standards (see the following note). The customer, however, must check whether the products conform to the standard in the system used by the customer.

EMC related performance of the OMRON devices that comply with EC Directives would vary depending on the configuration, wiring, and other conditions of the equipment or control panel in which the OMRON devices are installed.

The customer must, therefore, perform final checks to confirm that devices and the overall machine conform to EMC standards.

Note Applicable EMC (Electro-Magnetic Compatibility) standards are as follows:

EMS (Electro-Magnetic Susceptibility): EN61000-6-2,

EMI (Electro-Magnetic Interference): EN55011

EN55011 Radiated emission 10-m regulations

6-3 Conformance to EC Directives

The MC Unit complies with EC Directives. To ensure that the machine or device in which an MC Unit is used complies with EC Directives, the MC Unit must be installed as directed below:

  1. The MC Unit must be installed within a control panel.
    Use a control panel like SA20-712 (Nitto Electronics) or similar to this.
  2. Reinforced insulation or double insulation must be used for the DC power supplies used for the communications and I/O power supplies.
  3. MC Units complying with EC Directives also conform to the Common Emission Standard (EN50081-2). With regard to the radiated emission (10-m regulations), countermeasures will vary depending on the devices connected to the control panel, wiring, the configuration of the system, and other conditions. The customer must, therefore, perform final checks to confirm that devices and the overall machine conform to EC Directions.

6-4 Installation within Control Panel

Unnecessary clearance in cable inlet or outlet ports, operation panel mounting holes, or in the control panel door may cause electromagnetic wave leakage or interference. In this case, the product may fail to meet EC Directives. In order to prevent such interference, fill clearances in the control panel with conductive packing. (In places where conductive packing comes in contact with the control panel, ensure electrical conductivity by removing the paint coating or masking these parts when painting.)

SECTION 1

Features and System Configuration

The section introduces the features and system configuration of the CJ1W-MCH71 and CS1W-MCH71 Motion Control Units. It also describes product operating principles and provides product specifications.

1-1 Features 2

1-1-1 Overview. 2
1-1-2 Features. 3

1-2 System Configuration 4

1-2-1 System Configuration Example 4
1-2-2 Peripheral Devices (Models and Specifications) 5

1-3 Basic Operations 6

1-3-1 Applicable Machines 6
1-3-2 Position Control 6
1-3-3 Speed Control 8
1-3-4 Torque Control 8
1-3-5 Synchronous Control 8
1-3-6 Other Functions 10

1-4 Control System Configuration and Principles. 11

1-4-1 Control System Configuration 11
1-4-2 Control System Principles 12
1-4-3 Feedback Pulse 12

1-5 Performance Specifications. 12

1-5-1 General Specifications 12
1-5-2 Functions and Performance Specifications. 12

1-6 Command List. 18
1-7 Performance 21

1-1 Features

1-1-1 Overview

The MC Unit is a CS/CJ-series Motion Control Unit that can control thirty axes. An internal motion language programming is mounted, so that it can perform the advanced motion control operations.

1. Position Control

  • Point-to-Point Control: With point-to-point (PTP) control, positioning is controlled independently for each axis. The pathway varies according to the travel distances, the feed rates, and so on.
  • Continuous Path Control: With continuous path (CP) control, not only the start position and target position are controlled but also the path between those points. Functions such as linear interpolation, circular interpolation, helical circular interpolation, and traverse can be performed.

2. Speed Control

It makes the motor run at the specified speed, it also specifies the rate of speed change.

3. Torque Control

It generates specified Torque and specifies the rate of Torque change.

4. Synchronous Control

  • Electronic Shaft: Functions the same as for the rolls connected to the gearbox with a gearshift.
  • Electronic Cam: Functions the same as for the Machine CAM.

The MC Unit has been developed for use in simple positioning applications using servomotors. Applicable machines are as follows:

  • Conveyor Systems: X/Y tables, palletizers/depalletzers, loaders/unloaders, etc. (Palletizers and depalletzers are devices used for loading goods onto pallets or for unloading them from pallets. Loaders and unloaded are devices that have shelves corresponding with the steps of a multi-step press and used for inserting or removing all the materials at one time.)
  • Assembling Systems: Simple robots (including orthogonal robots), simple automated assembling machines (such as coil winding, polishing, hole punching), etc.

Note The MC Unit is not designed to perform the interpolation movement like a linear interpolation, a circular interpolation, or a helical circular interpolation with horizontal articulated robots or cylindrical robots, because it does not support coordinate conversions (cylindrical coordinate rotation function). The MC Unit can, however, perform PTP control with these robots.

1-1-2 Features

Simple System Architecture·Independent control of multiple axes (Up to 30 physical axes; including virtual axes total is 32) ·Each axis can be set as either a physical or virtual axis. ·Additional unit is not required.
Easiest Information Management·High-speed channel with servo driver enables parameters' setting of servo driver, status monitoring. These functions are possible from the Support Tool or PT. ·Backup using Memory Card in CPU Unit.
Various motion controls ~Distributed control system~·Besides CPU Unit of PLC, executes motion program for motion control. ·Regarding to motion task, up to 8 motion programs can be simultaneously executed. In each of these 8 programs, programs can be executed in parallel.
High-speed and flexibility·It is possible to realize variety of applications because of its availability for Synchronous Controls (Electric Shaft, Electronic Cam, Trailing Synchroniz- zation), Speed Control, Torque Control, and Position Control. ·The minimum length of servo communication cycle is 1 ms. ·It is possible to switch position, speed, and torque command during axis movement (there are few restrictions). ·The accurate controls of MC Unit and Servo driver or dispersion module are possible conducting a completely synchronized processing at fixed intervals.
Easy Debugging·Up to 32 data items can be traced simultaneously to enable debugging operations, such as checking the starting timing, to be easily performed using the support tool. ·Motion program consecutive operations, single-step operations, and breakpoint settings can be executed using the Support Tool. Note These functions can be used when CX-Motion-MCH version 2.0 or higher is used in combination with a Motion Control Unit of unit ver-sion 3.0 or later.
Combination of basic functions makes variety of synchronizations possible·Electronic Shaft function ·Electronic cam function (Time, position) ·Virtual axis function ·Axis movement function for superimposed axis, ADDAX ·Resist function (with present position hardware latch and window func- tion). ·Electronic link operation ·Trailing synchronization ·Target position change function ·Speed command ·Torque command ·Time-fixed positioning

1-2 System Configuration

1-2-1 System Configuration Example

The MC Unit is adopted a high-speed communication pathway to simplify its wiring. It makes it possible to have up to 30 axes for controls.

OMRON CJ1W-MCH71 - 1-2-1 System Configuration Example - 1

Note

(1) MECHATROLINK is a registered trademark of the MECHATROLINK Members Association.
(2) A W-series Servo Driver requires a YASKAWA MECHATROLINK-II I/F Unit (JUSP-NS115).
(3) Each of the products of the following version can be used. The version name is identified on the nameplate of each product. W-series servo driver: VER.39 or Later I/F Unit: VER **03 Later, or Equal
(4) When MECHATROLINK-II devices are connected up to 16 nodes (within 30m ) or 15 nodes (within 50m ), a repeater unit is not required. A repeater unit is required to connect MECHATROLINK-II devices more than the cases above.
(5) Always attach a Terminator to the last MECHATROLINK-II device on the network.

OMRON CJ1W-MCH71 - Note - 1

1-2-2 Peripheral Devices (Models and Specifications)

Support Tool

NameRemarks
CX-Motion-MCH Motion Control Support ToolIncluded in CX-One FA Integrated Tool Package

MECHATROLINK-II Devices and Cables

NameYASKAWA ModelOMRON ModelSpecification Overview
MECHATROLINK-II Interface UnitJUSP-NS115FNY-NS115For W-series Servo Driver
DC24V I/O ModuleJEPMC-I02310FNY-I02310Input: 64 Output: 64
Counter ModuleJEPMC-PL2900FNY-PL2900Reversing Counter 2CH
Pulse Output moduleJEPMC-PL2910FNY-PL2910Pulse Positioning
MECHATROLINK-II Cables for W-Series (With USB connectors and Ring Core)JEPMC-W6003-A5FNY-W6003-A50.5 m
JEPMC-W6003-01FNY-W6003-011.0 m
JEPMC-W6003-03FNY-W6003-033.0 m
JEPMC-W6003-05FNY-W6003-055.0 m
JEPMC-W6003-10FNY-W6003-1010.0 m
JEPMC-W6003-20FNY-W6003-2020.0 m
JEPMC-W6003-30FNY-W6003-3030.0 m
Terminator for MECHATROLINK-IIJEPMC-W6022FNY-W6022Terminating resistance (One Terminator is always required.)
Repeater for MECHATROLINK-IIJEPMC-REP2000FNY-REP2000Repeater

Note MECHATROLINK-related products are manufactured by YASKAWA ELECTRIC CORPORATION.

We, OMRON, can take orders for them. When ordering them through OMRON, follow OMRON's ordering format. (The delivered products will be of YASKAWA BRAND.)

Ask our sales representatives about the price at when ordering them through OMRON.

1-3 Basic Operations

1-3-1 Applicable Machines

The MC Unit was developed for the purpose of motion control using servomotors.

Even though it depends on the machine accuracy, use an encoder, which is capable to detect 5-10 times more accurate than the machine accuracy.

Applicable machines

1,2,3...

  1. Assembling Systems

Simple robots, package machinery (horizontal type forming and vertical type forming), filling machine, grinder, drilling machinery, simple automated assembling machines, etc.

  1. Conveyor Systems

XY tables, palletizers/depalletzers, loaders/unloaders, etc.

Note

The MC Unit is not designed to perform linear interpolation, circular interpolation, or helical circular interpolation with horizontal articulated robots or cylindrical robots, because it does not support coordinate conversions. The MC Unit can, however, perform PTP control with these robots.

1-3-2 Position Control

The MC Unit offers the following three types of motion control:

  • PTP Control
  • CP Control (linear interpolation and circular interpolation)
  • Interrupt Feeding

Control programs are created in the Motion language.

PTP Control

PTP control is used to control each axis (J01 and J02 axis) independently. Positioning time depends on the travel distance and speed of each axis.

Example: Moving from the origin to the J01-axis coordinate of 100 and J02-axis coordinate of 50 at the same speed.

Positioning is executed separately for each axis, so travel between the two points is carried out as shown in the diagram below:

OMRON CJ1W-MCH71 - PTP Control - 1

CP Control

CP Control is used to position by designing not only the starting point and the target point, but also the path between these two points. Both linear interpolation and circular interpolation are possible.

OMRON CJ1W-MCH71 - CP Control - 1

If [axis name 3] is added, helical interpolation is added to the linear interpolation. (The linear interpolation portion for multiple revolutions specifies the total travel distance.)

OMRON CJ1W-MCH71 - CP Control - 2

Interrupt Feeding

Interrupt feeding is used to perform position control for a fixed distance when the external signal is input.

Positioning with no interrupt signal is also possible.

OMRON CJ1W-MCH71 - Interrupt Feeding - 1

1-3-3 Speed Control

Make the motor run at a specified speed. It is also possible to specify the speed change rate.

OMRON CJ1W-MCH71 - 1-3-3 Speed Control - 1

1-3-4 Torque Control

The designated torque can be generated. It is also possible to specify the torque change rate.

OMRON CJ1W-MCH71 - 1-3-4 Torque Control - 1

1-3-5 Synchronous Control

Listed below are the synchronous controls of this unit.

Electronic Shaft
Electronic cam
- Linking motions
- Trailing synchronization
Super position control

Each of above controls is programmed by motion language.

Electronic Shaft

This function can be used like rolls connected to gearbox with gearshift.

The slave axis synchronizes with the master axis at a specified ratio.

Electronic cam

This function can be used like the cam mechanism of a machine.

The slave axis synchronizes with the master axis according to the cam table.

This function can be used like the link mechanism of a machine.

The slave axis synchronizes with the master axis following the specified acceleration, constant speed, and deceleration areas.

(In the diagram below, vertical and horizontal axes indicate speed and time respectively.)

OMRON CJ1W-MCH71 - Link operation - 1

Trailing Synchronization

Trailing is started when the slave axis is standing by and the marker sensor is turned ON. Once it catches up with the master axis, synchronous operation is initiated.

OMRON CJ1W-MCH71 - Trailing Synchronization - 1

Travel Distance Superimpose

The travel distance of the master axis is superimposed on the slave axis. This function can be used like the differential gear of a machine.

OMRON CJ1W-MCH71 - Travel Distance Superimpose - 1

Data Tracing (Supported for unit version 3.0 and later.)

  • Up to 32 data items can be traced simultaneously, with any bit (start bit, in-position bit, etc.) or data item (position command, speed command, etc.) taken as one item.
  • A pre-trigger function is provided. As shown in the following diagram, when the condition is satisfied for the trigger signal that was set, this function can collect data prior to the condition being met.

OMRON CJ1W-MCH71 - Travel Distance Superimpose - 2

1-3-6 Other Functions

Origin Search

Establishes the origin for a specified axis.

Jogging

Starts and stops a specified axis at a specified speed.

Error Counter Reset

Forcibly resets the error counter to zero and stops axis operation after completing a deceleration command.

Present Position Preset

Changes the present position to specified position data.

Teaching

Obtains the present position to create position data.

Override (Real-time Speed Change)Changes the speed during PTP, linear interpolation, or circular interpolation operations.
Backlash CorrectionCompensates errors caused by faulty meshing in the mechanical system.
Unlimited FeedingControls axes such as turntables and conveyors that are fed only in one direction unlimtimately.
DebuggingIt is possible to execute just one line of a program through single block operation. It is also possible to run programs without operating the machine system through Machine Lock.
Data StorageBackups and restores data using PLC memory cards.
Arithmetical Operation CommandPerforms Simple arithmetic operation, Functions, and Logic Operations.
Zones (Supported For unit version 3.0 and later.)·A zone bit turns ON when any variable (including feedback present position, feedback speed, etc.) is within the set range, and OFF when outside of the set range. ·A maximum of 32 zones can be set.

1-4 Control System Configuration and Principles

The servo system used by and the internal operations of the MC Unit are briefly described below.

1-4-1 Control System Configuration

Semi-closed Loop System

The MC unit uses the servo system called the semi-closed loop system.

This system is designed to detect actual machine travel distance for a command value using rotations of the motor and the detected value is fed back to the MC unit. The unit computes and compensates the error between the command value and actual travel distance to make it zero.

OMRON CJ1W-MCH71 - Semi-closed Loop System - 1

The semi-closed loop system is the mainstream in modern servo systems applied to positioning devices for industrial applications.

1-4-2 Control System Principles

OMRON CJ1W-MCH71 - 1-4-2 Control System Principles - 1
Internal Operations of the MC Unit

1-4-3 Feedback Pulse

Normal rotation/Counter rotation of a motor
OMRON CJ1W-MCH71 - 1-4-3 Feedback Pulse - 1
(CCW) is the forward rotation and (CW) is the reverse rotation when viewed from the output shaft side of the motor.

1-5 Performance Specifications

1-5-1 General Specifications

ItemSpecifications
ModelCJ1W-MCH71CS1W-MCH71
Power supply voltage5 VDC (from Backplane)
24 VDC (from external power supply)
Voltage fluctuation tolerance4.5 to 5.5 VDC (from Backplane)4.75 to 5.25 VDC (from Backplane)
21.6 to 26.4 VDC (from external power supply)
Internal current consumption5 VDC 0.6 A max.5 VDC 0.8 A max.
24 VDC 0.3 A max.
Weight (Connectors excluded)210 g max.300 g max.
Safety standardsUL, CSA, C-TICK, and EC compliant.
Dimensions (mm)90 (H) × 79.8 (W) × 65 (D) (single)130 (H) × 35 (W) × 100.5 (D) (single)
AltitudeAt 2,000 m elevation or lower.

Specifications other than those shown above conform to the general specifications for the SYSMAC CS/CJ series.

1-5-2 Functions and Performance Specifications

ItemSpecifications
ModelCJ1W-MCH71CS1W-MCH71
Applicable PLCCJ-series PLCs with CPU Units with unit version 2.0 or laterCS-series PLCs with CPU Units with lot number 030418 or later (Refer to Note on page 16.)
ItemSpecifications
Type of UnitCPU Bus Unit
MountingCPU unit or expansion rack
Number of UnitsOne CJ1W-MCH71 Motion Control Unit requires the space of three standard Unit. (Refer to Note (1) on page 16.)One slot
Method for data transfer with CPU UnitCIO Area for CPU Bus UnitOccupies the area for 1 unit (25 words)
For units and tasks: 11 to 25 words (Depending on the number of motion tasks)
DM Area for CPU Bus UnitOccupies the area for 1 unit (100 words)
For units and tasks: 32 to 74 words (Depending on the number of motion tasks)
Custom Bit AreaFor axes: 0-64 words (Depending on the greatest number of the axis used)
Custom Data AreaFor axes: 0-128 words (Depending on the greatest number of the axis used)
Custom Data AreaFor General I/O: 0-1280 words (Depending on setting)
Controlled DevicesMECHATROLINK-II below supported • W-series Servo Driver with built-in communications functions • W-series Servo Driver (OMRON) + Communications I/F Unit (YASKAWA) • Various I/O units (YASKAWA) • SMARTSTEP Junior Servo Drive Up to 30 nodes * When MECHATROLINK-II devices are connected up to 16 nodes (within 30 m) or 15 nodes (within 50m), a repeater unit is not required. A repeater unit is required to connect MECHATROLINK-II devices more than the cases described above.
Built-in program languageDedicated motion control language
ControlControl methodMECHATROLINK-II • Position commands, Speed commands, Torque commands
Number of controlled axes32 axes max. Physical axes/Virtual axes: 30 axes max. (Either can be selected for each axis) Dedicated for virtual axes: 2 axes
Operating modesRUN mode, CPU mode, Tool mode/System (Depending on the tool)
Automatic/Manual ModeAutomatic mode: Executing built-in programs of MC Unit controls motion. Manual mode: Executing commands from CPU Unit (PC interface area) controls motion. Note The Automatic or Manual Mode is set according to the PC Interface area of the CPU Unit.
Control unitMinimum setting unit1, 0.1, 0.01, 0.001, 0.0001
Unitsmm, inch, deg, pulse
Maximum position command value-2147483647 to 2147483647 pulses (signed 32-bit) Mode for unlimited axes feeding is possible. Example: With 16-bit encoder (65536 pulse/rev), Minimum setting unit: 0.001 mm, 10 mm/rev, the position command value range will be from -327679999 to 327679999 command units.
ItemSpecifications
Control operations based on commands from the CPU UnitServo lock/unlockExecutes Servo driver lock or unlock
JoggingExecutes continuous feeding independently for each axis, by means of speed set in system parameter x override.
STEP operationFeeds a specified distance for a specified axis.
Origin searchDefines the machines origin according to the search method set in the system parameters.
Forced originForcibly sets the present position to 0 to establish it as the origin.
Absolute origin settingSets the origin when an absolute encoder is used. Offset value: Signed 32-bit (pulses)
Error counter resetForcibly resets the error counter to 0.
Present position pre-setSets the present position to a user-specified value.
Machine lockProhibits the output of motion commands to the axes.
Single blockExecutes the motion program one block at a time.
Auto/manual changeSwitches between auto mode and manual mode.
Control Operations according to motion programPositioning (PTP)Executes positioning independently for each axis at the speed set in the system parameters. Simultaneous specification: 8 axes max. /block Simultaneous execution: 32 blocks max. /unit
Linear interpolationExecutes linear interpolation for up to 8 axes simultaneously at the specified interpolation speed. Simultaneous specification: 8 axes max. /block Simultaneous execution: 32 blocks max. /system
Circular interpolationExecutes clockwise or counterclockwise circular interpolation for two axes at their specified interpolation speed. Simultaneous specification: 2 or 3 axes/block Simultaneous execution: 16 blocks max. /system
Origin searchDefines the machine origin according to the search method set in the system parameters. An offset can be specified for the position after the origin search. The absolute encoder can also execute origin search.
Interrupt feedingBy means of inputs to the servo driver, moves a specified axis for a specified travel distance to perform positioning.
Time-specified PositioningExecutes positioning with time specified.
Traverse functionPerforms winding operation (traverse control) with two specified axes.
Electronic Cam, Single AxisExecute cam operation according to the specified cam table data with reference to elapse of time.
Synchronous Electronic camExecutes cam operation according to the specified cam table data with reference to the position of the specified axis.
Link operationExecutes link operation according to set conditions with reference to the position of the specified axis.
Electronic ShaftExecutes synchronous operation at a speed calculated with the speed of the specified axis and gear ratio.
Trailing synchronous operationExecutes trailing + synchronous operations with reference to the position of the spec-ified axis.
Speed commandOutputs speed commands to the specified axis.
Torque commandOutputs torque commands to the specified axis.
Acceleration /deceleration curveTrapezoidal or S-shape
Acceleration/ deceleration timeAcceleration/ deceleration time60000 ms max.
S-shape time constant30000 ms max.
External I/OFor high-speed servo communication busOne port for MECHATROLINK-II
Servo encoderIncremental rotary encoder Absolute rotary encoder (Unlimited length ABS supported with some conditions)
I/ODeceleration stop input (or servo-OFF stop): 1 pt General input: 2 pts General output: 2 pts
External power supply for I/O24 V
Feed rateRapid feed rate1 to 2147483647 [Command unit/min]
Interpolation feed rate1 to 2147483647 [Command unit/min]
OverrideChanges the operation speed by applying a given factor to the speed specified by the system parameters or the motion program. 0.00 to 327.67% (Setting unit: 0.01%, can be specified for each axis or task)
Internal override (supported for unit version 3.1 and later)The feed rate of the following commands can be set by the motion program. Command Rate to which override is applied MOVE Rapid feed rate DATUM Origin return feed rate MOVEI Rapid feed rate, external positioning rate MOVET Rapid feed rate The actual feed rate is calculated using the following formula. Actual feed rate = Axis feed rate × (Axis override + Internal override)
Axis controlBacklash compensationCompensates mechanical backlash (the mechanical play between driving and driven axes) with a value registered in advance. This function uses a parameter in the servo driver.
In-positionThis function is used whether a positioning is completed or not. This function uses a parameter in the servo driver.
Position loop gainThis is the position loop gain of the servo driver. This function uses a parameter in the servo driver.
Feed forward gainThe command values created in the MC Unit are multiplied by this feed forward gain. This function uses a parameter in the Servo Driver.
ProgramNumber of tasksMotion task: 8 tasks max.
Parallel branching in taskMotion task: 8 branches max.
Number of programs256 programs max. /unit The program Nos. used for programs are from 0000 to 0999.
Program numbers0000 to 0499: Main programs for motion tasks 0500 to 0999: Sub-programs for motion tasks
Program capacity2 Mbytes 8000 blocks max. /unit by motion program conversion.
Number of blocks800 blocks/program
Position data capacity10240 points/unit
Sub-program nesting5 levels max.
StartStarts program operation from program (of another task)
Start modeMotion task: Initial, continue, next
Deceleration stopMotion task: Executes deceleration stop regardless of block
Block stopMotion task: Executes deceleration stop at the end of the block currently being executed.
Single-block modeMotion task: the program is executed one block at a time.
Breakpoints (supported for unit version 3.0 and later.)Breakpoints can be set for any block using the Support Tool. When a breakpoint is set for a block, program execution will stop after that block has been executed.
Saving pro-gram dataMC UnitFlash memory backup
Zones (supported for unit version 3.0 and later.)The zone bit turns ON when any variable (including feedback present position, feedback speed, etc.) is within the set range, and OFF when outside of the set range.A maximum of 32 zones can be set.
Data tracing (supported for unit version 3.0 and later.)A maximum of two groups can be simultaneously traced, with 1 to 16 data items in each group.Note The items that can be traced are bits and data. These are each handled as a single item.The number of data samples that can be collected is 2,048 samples when 16 items are set for tracing to 32,768 when only 1 item is set for tracing.
Self-diagnostic functionWatchdog, FLASH-ROM check, RAM check, etc.
Error detection functionDeceleration stop input, unit number error, CPU Unit error, software limit over errors, etc.
Error log functionThe error log is to be read from the CPU Unit by means of the IORD instructions as needed.
Alarm resetAlarm reset
Program and CAM data read protection (supported for unit version 3.1 and later)Third party access to program and CAM data can be restricted using the CX-Motion-MCH version 2.1 read protection function (password setting).

Note

(1) To determine the number of MC Units that can be mounted under one CPU Unit, examine the followings:
- Maximum number of CPU Bus Units that can be allocated words in the CPU Unit being used
- The capacity of the power supply unit used for each rack (CPU Unit and Expansion Rack) and the current consumption of the units mounted on the racks. (Refer to the CPU Unit's operation manual for details on calculation methods.)
- Number of Units (CJ1W-MCH71 only) Each MC Unit requires the space of three standard Units. Although normally up to 10 CPU Bus Units can be connected in the CPU Rack or in each Expansion Rack, a maximum of only 3 MC Units can be mounted per Rack.

(2) The user must prepare the required power supply.
(3) The service life for the flash memory is 100,000 writing operations.
(4) The IOWR/IORD instructions can be used with CJ-series CPU Units with unit version 2.0 or later.

CS-series CPU Unit models are in the format CS1□-CPU□□H. The following conditions apply to certain CPU Units.

(1) CPU Units manufactured prior to January 7, 2002 (Lot No. 020107) do not support the IOWR/IORD instruction.
(2) Standard CPU Units manufactured after April 18, 2003 (Lot No. 030418) support the IOWR/IORD instruction.

The maximum command values and software limit values will be as shown in the following table corresponding to the position command decimal point position.

Position command decimal point (Setting value for P5AA02)Setting ranges
1 (0)-2147483648 to 2147483647
0.1 (1)-214748364.8 to 214748364.7
0.01 (2)-21474836.48 to 21474836.47
0.001 (3)-2147483.648 to 2147483.647
0.0001 (4)-214748.3648 to 214748.3647

The actual ranges that can be set may be smaller than those shown above depending on the pulse rate. The setting values must satisfy the following conditions:

With INC Specification:

Minimum value: -2147483648

Maximum value: 2147483647

With Limited Length Axis ABS Specification:

Minimum value: -(P5AA04 × P5AA06 × 2147483647) / (Encoder resolution × P5AA05)

Maximum value: (P5AA04 × P5AA06 × 2147483647)/(Encoder resolution × P5AA05)

With Unlimited Length Axis ABS Specification:

Minimum value: - (P5AA04 - 1)

Maximum value: P5AA04 - 1

P5AA04: Command unit/1 machine rotation

P5AA05: Gear ratio 1 (Motor rotation speed)

P5AA06: Gear ratio 2 (Machine rotation speed)

Example: With Limited length axis ABS specification, 1mm/rev, 16384 pulses/ rev with multiplication factor, and Minimum setting unit: 0.0001mm; The value will be from -131072000 to 131071999.

Additionally, the present positions that can be displayed on the Support Tool are to be within the range described in the above table.

The basic concept for immediate value:

There are integer and decimal immediate values; the applicable numeric value range for the MC Unit is shown below:

Integer: Numeric value without decimal point

Minimum value: -2147483648

Maximum value: 2147483647

Decimal: Numeric value with decimal point

Minimum value: -2147483648.

Maximum value: 2147483647.

Maximum number of decimals: 30 digits

Maximum number of digits excluding zero: 10 digits

(Negative definite: 2147483648, Positive definite: 2147483647)

Maximum number of decimals

Number of decimals123456789101112131415161718192021222324252627282930
Negative definite-0.0.0000000000000000002147483648
Positive definite+0.00000000000000000002147483647
Maximum number of digits excluding 0
Maximum number of decimals

1-6 Command List

ItemContentsPage
Operating modesThe following 2 modes are provided:Manual Modes: Operation according to commands from CPU Unit PC interface area.Automatic Mode: Operation according to commands in program.384510
Manual modeJOGSTEPOrigin SearchJoggingMoves axes continuously by manual operation.476
Deceleration stop(Axis)Decelerates manual mode operations (Jogging, STEP, Origin search) and stop.472
STEP operationFeeds a specified axis for a specified distance.480
Manual origin searchSearches for the machine origin (Possible with either Incremental or Absolute encoder)484
Manual origin returnMoves the axis to the origin in the reference coordinate system.489
Forced originForcibly sets the present position to 0 to establish it as the origin. (In the absolute encoder system, only the present position of the MC Unit will be set to 0.)498
Present position pre-setSets the present position to a user-specified value.512
Absolute origin settingSets the origin for an absolute encoder.500
AutomaticPositioning (PTP)Execute positioning independently for each axis at the specified speed or the speed set in the system parameters.298
Positioning with linear interpolationExecutes linear interpolation at the specified interpolation feed rate for up to 8 axes simultaneously300
Positioning with circular interpolationExecutes clockwise or counterclockwise 2-axis circular interpolation at the specified interpolation feed rate.301
Positioning with helical circular interpolationExecutes clockwise or counterclockwise 2-axis circular interpolation and 1-axis linear interpolation (i.e., helical interpolation) at the specified interpolation feed rate.301
Origin searchDefines the machine origin according to the search method set in the system parameters.305
Interrupt feedingMoves a specified axis for a specified distance when a general input is turned ON.308
Time-specified positioningExecutes positioning to a specified position with time specified.309
Target position changeChanges target position of an operating axis to a specified position.338
Internal OverrideThe feed rate of the following commands can be set by the motion program. Command Rate to which override is applied MOVE Rapid feed rate DATUM Origin return feed rate MOVEI Rapid feed rate, external positioning rate MOVET Rapid feed rate264
TraverseExecute winding (traverse) function.311
Electronic Shaft functionExecutes synchronous operation at a speed calculated with the speed of the specified master axis and a specified gear ratio.329
Electronic cam (Single axis)Executes cam operation in a specified time period using a specified cam table.313
Electronic cam (Synchronous)Synchronizes the slave axis to the master axis using cam table.320
Link operationSynchronizes the slave axis to the master axis with specified acceleration, constant speed, and deceleration areas.316
Trailing synchronizationSlave axis starts trailing master axis at the rise of marker sensor when standing by. Once it catches up with master, synchronization starts.331
Travel distance superimposeSuperimposes travel distance of the master axis on the slave axis. It functions like the differential gear.332
Speed controlRotates the motor at the specified speed. Speed change rate can also be specified.333
Torque controlGenerates the specified torque. Torque change rate can also be specified.336
Virtual axisThis is an axis without an actual axis. It is used as a master axis to perform an ideal operation.282
Counter latchThe present position of an axis can be stored in hardware.345
Switching to Pass ModeChanges to Pass Mode, in which operations are executed continuously with no deceleration stop.342
Dwell timerPauses positioning for a specified time.350
Arithmetic commandPerforms arithmetic, function, and logic operations.361 363 365
Program startExecutes a program from the beginning block, resumes a program execution from the block where it was stopped, or resumes a program from the next block to the one where it was stopped.443
Single blockExecutes programs one block at a time.458
Block stopStops program execution at the end of the block being executed.453
Automatic/ Man-ual modeBacklash compensationCompensates mechanical backlash (mechanical play between driving and driven axes) with the value registered in advance. (This is a function of the servo driver.)203
Error counter resetForcibly resets the error counter to 0, and stops axis operation. (Enabled when no speed reference is given to the servo driver)493
Unlimited feed mode/ Unlimited present position displayMoves the axis with no limit. In this mode, data range for updating the present position can be specified.559
Present position pre-setChanges the present position to the specified position data.56
Trapezoid/S-curve acceleration and decelerationEither trapezoid or S-curve acceleration / deceleration can be specified for starting and stopping each axis.248
Axis alarm resetReset alarms occurring on axes.515
Unit alarm resetReset alarms occurring on units.420
Task alarm resetReset alarms occurring on tasks.465
TeachingCreates position data for the specified axis.546
Deceleration stop (Task)Decelerates each task to a stop.448
OverrideChanges the operating speed by applying a specified percentage to the speed specified in the system parameters or programs.462 503
Servo-lockEstablishes the position loop and turns ON the RUN command output to the servo driver.474
Servo-unlockReleases the position loop and turns OFF the RUN command output to the servo driver.474
Machine lockUpdates the position display without moving control axes. This is used for debugging program.506
CommonData tracingTraces data, such as command bits and feedback positions, using the Support Tool.570
DebuggingPerforms program operation, stopping, single-step operation, or stopping at any block from the Support Tool.553
ZonesA special bit is turned ON when any constant (e.g., feedback position) is within a set range without a special motion programming.571
Data transfer and storageData transferTransfer data from the CPU to the MC Unit and vice versa in a short period of time using IOWR/IORD instruction in the ladder program.56 221
Data linkCustom data can be exchanged during I/O refresh by setting custom I/O area in the words allocated in the DM area of CPU Unit.378 402
Saving dataStores programs, CAM data, parameters, position data, etc. in the MC Unit's flash memory.213
Backup and restoreBacks up or restores all the data in the MC Unit using the easy backup function and Support Software of the CPU Unit.566

1-7 Performance

ItemPerformance dataDescription
Unit cycleTm = 1, 2, 3, 4, 6, or 8This is the cycle in which motion tasks are executed in the MC Unit. The length of this cycle is determined by the number of axes, the number of motion tasks, the use of parallel execution, the number of allocated general-purpose words, and the communications cycle time. Tm will be equal to Ts or twice Ts. Refer to Appendix A Performance for details.
Communications cycleTs = 1, 2, 3, or 4This is the communications cycle for MECHA-TROLINK-II. The length of this cycle is determined by the number of allocated stations and the number of communications retries. Refer to Appendix A Performance for details.
Operation startup time and other performance---Refer to Appendix A Performance for details.

Processing Cycle of MC Unit

The MC Unit holds Control Cycle for the entire Unit and Communication Control Cycle.

The system software calculates each control cycle, and it operates using a Unit cycle to communications cycle ratio of 1:1 or 2:1.

Calculation methods for each control cycle are as follows:

  • The Unit cycle is calculated.
  • The Communication Cycle is calculated.
  • The ratio between the Unit cycle and communications cycle is adjusted.

Calculation Method for Unit Cycle

The basic formula for calculating the Unit Cycle is shown below:

When P00004 bit 11 (number of parallel branches) is 0:

Unit cycle [ s] = (85 × Number of axes) + (120 × Number of motion tasks × Number of parallel branches) + (0.3 × Number of general allocated words) + 200.... (1)

  • No. of axes: No. of axes allocated in [P1AA01: Physical axis setting] (Sum of virtual and actual axes)
  • No. of Motion tasks: P00001 [No. of Motion tasks]
  • No. of parallel branches: P00002 [No. of parallel branches]
  • No. of general allocated words:
  • No. of Allocated words to be used as general purpose I/O (Sum of inputs and outputs)

When P00004 bit 11 (number of parallel branches) is 1 (Supported for unit Ver. 3.0 and later):

Unit cycle [ s] = (85× Number of axes) ^+ (120× Number of parallel branches i ^+ (0.3× Number of general allocated words) ^+ 200.....(1)

ΣNumber of parallel branches i: Sum of the parallel branches set for individual task, P00M21

Example: If two tasks are used, and the task 1 P00M21 is 4 and the task 2 P00M21 is 2, then this value will be 2 + 4 = 6 .

Calculation Method for Communications Cycle

Note for P00003 [Unit Scan time]

When P00003 [Unit Scan time] is greater than the result of the formula (1), the formula (2) below is to be used.

$$ \text {U n i t C y c l e} [ \mu s ] = P 0 0 0 0 3 \times 1 0 0 0 - - (2) $$

Determining Unit Cycle

The Unit Cycle can be determined by rounding up the Unit Cycle [ s] that was found by the formula (1) or (2) to 1 ms, 2 ms, 3 ms, 4 ms, 6 ms, or 8 ms.

If the unit cycle time exceeds 8 ms, 8 ms is set.

Basic formula for calculating Communications Cycle is shown below:

$$ \begin{array}{l} \text {C o m m u n i c a t i o n s C y c l e} [ \mu s ] = ((\text {N o . o f a l l o c a t e d n o d e s} + \text {N o . o f R e t r i e s}) \times \ 1 0 2. 7 + 1 9. 2) \times 1. 1 - - (3) \end{array} $$

  • No. of Allocated Node: No. of MECHATROLINK-II slaves (only physical axes) allocated in [P1AA01: Physical Axis Setting]
  • No. of Retries: No. of retries specified in [P00009: MECHATROLINK No. of retrial nodes setting] (= 0 - 7) .

If the Communications cycle was less than 1ms, the formula (4) below is to be used.

$$ \text {C o m m u n i c a t i o n s c y c l e} [ \mu s ] = 1 0 0 0 - - (4) $$

Determining Communications Cycle

The Communications Cycle can be determined by rounding up the Communications Cycle [μs] that was found by the formula (3) or (4) to 1 ms, 2 ms, 3 ms, or 4 ms.

If the communications cycle time exceeds 4 ms, 4 ms is set.

Note

The formula used in this section applies when P00004 bit 09 is 1 for a CJ1W-MCH71 or CS1W-MCH71 Motion Control Unit with unit version 3.0 or later.

If the unit version is 2.0 or earlier, or the unit is version 3.0 or later but P00004 bit 09 is 0, the following formula applies.

Unit cycle [ s] = (115.0× Number of axes) ^+ (165.0× Number of motion tasks × Number of parallel branches) ^+ (0.3× Number of general allocated words) ^+ 350.0

Communications cycle [ s] = ((No. of allocated nodes + No. of Retries) × 133.3 + 26.2) × 1.1

Adjusting and Matching Unit Cycle and Communications Cycle

Determine the combination of the Unit Cycle and Communications Cycle using the following table:

The processing cycle time of the MC Unit can be found using the following table and the unit cycle and communications cycle times that have been calculated.

Communications cycleUnit cycle
1 ms2 ms3 ms4 ms*16 ms8 ms
1 ms1 ms:1 ms2 ms:1 ms3 ms:3 ms4 ms:2 ms6 ms:3 ms8 ms:4 ms
2 ms2 ms:2 ms2 ms:2 ms3 ms:3 ms4 ms:2 ms6 ms:3 ms8 ms:4 ms
3 ms*23 ms:3 ms3 ms:3 ms3 ms:3 ms4 ms:4 ms*36 ms:3 ms8 ms:4 ms
4 ms4 ms:4 ms4 ms:4 ms4 ms:4 ms4 ms:4 ms8 ms:4 ms8 ms:4 ms

Example: If the unit cycle time calculated under Calculation Method for Unit Cycle is 4 ms (1) and the communications cycle time calculated under Calculation Method for Communications Cycle is 3 ms (2), the MC Unit processing time, which combines the unit cycle time and communications cycle time, would be 4 ms:4 ms (*3).

SECTION 2

Basic Procedures

This section provides an overview of the basic procedures required to use the CJ1W-MCH71 and CS1W-MCH71 Motion Control Units.

2-1 Basic Operation Flow 26
2-2 Overview of CX-Motion-MCH 28

2-2-1 Functions 28
2-2-2 Installing and Uninstalling the Software 29
2-2-3 Operation Procedure 30

2-1 Basic Operation Flow

This Section gives an overview of the procedures required to use a MC Unit.

OPR.Operation FlowReference
SetupSTART Install MC Unit Set Unit No. for MC Unit Connect Support Tool/CX-Programmer Connect MC Unit with External Input Devices Connect Servo Driver and Servomotor Connect Servo Driver and MC UnitSECTION 3 Installation and Wiring 3-2 Installation 3-1 Nomenclature and Functions 3-4 Wiring
MC Unit SettingTurn ON the Power to the PLC Create the I/O table of PLC Set MC Unit Allocation Area in PLC DM Area Power OFF and ON the PLC Use CX-Motion-MCH to set the system parameters, transfer them to MC Unit, and save them to flash Use CX-Motion-MCH to create motion programs and position data. Transfer them to MC Unit and save them to flash memory. Turn ON the power to the PLC or restart MC Unit to enable settings.Users Manual for CS/CJ Series CPU Unit SECTION 7 PC Interface Area 7-3 Allocations for the CPU Unit SECTION 4 MC Unit Internal Data Configuration and Setting 4-2 System Parameters 4-4 Position Data SECTION 6 Programming
Trial OPRA Use Manual Mode to execute Servo Lock Use Manual Mode to execute Jogging Use Manual Mode to execute Origin Search Switch to the Automatic Mode to start the motion program from PLC and operate the system.SECTION 7 PC Interface Area 7-3 Allocations for the CPU Unit 7-4 Interface Specifics SECTION 8 Establishing the Ori-gin
DebugError Occurrence YES Check LED display on the MC Unit Read Alarm codes of MC Unit Eliminate the cause of error and clear it.SECTION 11 Troubleshooting
RunRun PLC to operate MC UnitSECTION 10 Program Example
MaintenanceMaintenance and inspection • Replacing a MC Unit • Replacing Servo driver • Replacing the NS115 ENDSECTION 12 Maintenance and Inspection

Note For details of the procedure, refer to HELP of the Support Tool.

2-2 Overview of CX-Motion-MCH

The CX-Motion-MCH is a software package that can be used to set, create, and print various data required to control MC Units (such as system parameters, position data, motion task programs, and CAM data), transfer the data to and from the MC Unit, and monitor the operating status of the MC Unit.

The CX-Motion-MCH runs on Windows 98, Me, NT 4.0, 2000, XP, or Vista.

2-2-1 Functions

GroupFunctionDetails
Editing projectsCreate projectUsed to create project files (*.mnh)
Add/delete Motion Control UnitUsed to add or delete MC Unit data in a project.
Add/delete motion taskUsed to add or delete motion tasks in a project.
Add/delete axisUsed to add or delete axes in a project.
Add/delete programUsed to add or delete programs in a project.
Add/delete subprogramUsed to add or delete subprograms in a project
Add/delete CAM tableUsed to add or delete CAM tables in a project.
Editing dataEdit system parame-tersUsed to edit system parameters (unit settings, tasks, and settings).
Edit servo parame-tersUsed to edit servo parameters.
Edit motor parame-tersUsed to edit motor parameters.
Edit position dataUsed to edit position data.
Edit program or sub-programUsed to edit programs or subprograms.
Edit CAM tableUsed to edit CAM tables.
Edit symbolUsed to edit symbols.
Saving and reading project filesSave projectUsed to save data as a project file (*.mnh).
Read projectUsed to read a project file (*.mnh).
Importing and exporting dataImportUsed to import CX-Motion-MCH files, position data, programs, and CAM data.
ExportUsed to export position data, programs, and CAM data.
Backup and RestoreBackup and RestoreBacks up the origin compensation value.
PrintingPrintUsed to print various project data.
OnlineInitial settingUsed to setup CPU Unit or MC Unit.
Communications settingUsed to make settings for communications with the PLC.
DownloadUploadCompareUsed to download, compare, or upload system parameters, servo parameters, position data, programs, and CAM data.
Write to flash memoryUsed to write RAM data inside the MC Unit to flash memory inside the MC Unit.
Status monitorUsed to display the error information, program number in progress, and axes' present positions.
General monitorUsed to display and change the MC Unit's variables, such as the system variables, global variables, input variables, output variables, position data, and task variables.
Test RunUsed to execute the following operations: Servo locks, JOG operations, STEP operations, origin searches, origin returns, forced origins, setting an absolute origin, teaching, and resetting errors.
Debug the ProgramUsed to debug the motion program. Motion programs can be debugged by setting breakpoints and by using single step execution.
Data TraceData TraceUsed to set the trigger conditions and items. The results of the trace operation are displayed graphically.
ErrorError logUsed to display the error log.
Error informationUsed to display error code and error name.
Program and CAM data read protectionProgram and CAM data read protectionThird party access to program and CAM data can be restricted using the read protection function (password setting).

2-2-2 Installing and Uninstalling the Software

Required Software

The following software must be installed on the same computer to use the CXMotion-MCH.

  1. CX-Motion-MCH
  2. CX-Server (the communications driver, including the CX-Server Driver Management Tool)

CX-Motion-MCH Availability

The CX-Motion-MCH is available only as a component of the CX-One FA Integrated Tool Package.

Refer to the CX-One Ver.2.1 Setup Manual (W463, provided with the CX-One) for the

CX-One installation and uninstallation procedures.

Cat. No.ModelManual nameContents
W463CXONE-AL☐☐C-EV2 /AL☐☐D-EV2CX-One Ver.2.1 Setup ManualAn overview of the CX-One FA Integrated Tool Package and the CX-One installation procedure

2-2-3 Operation Procedure

The overall procedure for using the CX-Motion-MCH is given below. Refer to the SYSMAC CX-Motion-MCH Operation Manual (W448) for details.

OMRON CJ1W-MCH71 - 2-2-3 Operation Procedure - 1

SECTION 3

Installation and Wiring

This section describes the names of Unit parts and how to install and wire the CJ1W-MCH71 and CS1W-MCH71 Motion Control Units.

3-1 Nomenclature and Functions 32

3-1-1 Nomenclature 32
3-1-2 Area Allocations 33

3-2 Installation 34

3-2-1 System Configuration Precautions 34
3-2-2 Mounting to the Backplane 35
3-2-3 Unit Handling Precautions 36
3-2-4 Dimensions 37

3-3 External I/O Circuitry 38

3-3-1 MECHATROLINK-II Connector 38
3-3-2 I/O Connectors 38
3-3-3 Wiring Connectors 39
3-3-4 I/O Circuits (CJ1W-MCH71 and CS1W-MCH71 Units Version 3.0 and Later) 40
3-3-5 I/O Circuits (CS1W-MCH71 Unit Version 2.0 and Earlier) 41

3-4 Wiring 42
3-4-1 Wiring Precautions 42

3-5 Connecting MECHATROLINK Devices. 43

3-5-1 Method of Connecting MECHATROLINK Devices 44
3-5-2 Servo Driver (W-series WT□□□) 44
3-5-3 24 VDC I/O Module 47
3-5-4 Counter Module, Pulse Output Module 51

3-1 Nomenclature and Functions

3-1-1 Nomenclature

OMRON CJ1W-MCH71 - 3-1-1 Nomenclature - 1

LED Indicators

OMRON CJ1W-MCH71 - LED Indicators - 1

OMRON CJ1W-MCH71 - LED Indicators - 2

NameColorStatusContent
RUN (RUN)GreenLitMotion Control Unit is operating normally.
Not litNot recognized by PLC, or MC Unit is broken.
ERC (MC Unit Error)RedLitAn error has occurred in the MC Unit.
Not litMC Unit is operating normally.
ERH (CPU Unit Error)RedLitAn error has occurred in the CPU Unit.
Not litCPU Unit is operating normally.
ER1 (See note.) (Internal error status)YellowLitAn internal error has occurred.
Not litMC Unit is operating normally.
ER2 (See note.) (Internal error status)YellowLitAn internal error has occurred.
Not litMC Unit is operating normally.
ER3 (See note.) (Internal error status)YellowLitAn internal error has occurred.
Not litMC Unit is operating normally.
ER4 (See note.) (Internal error status)YellowLitAn internal error has occurred.
Not litMC Unit is operating normally.
SSIYellowLitNot used.
Not litNot used.
MLK (MECHATROLINK-II)YellowLitMLK is operating normally.
Not litAn error has occurred in the MLK.

Note When the ERC or ERH indicator is lit, these four indicators show the internal error status.

Unit Number Setting Switch

Several MC Units can be mounted on one CS/CJ series PLC.

It is necessary to set the unit numbers to identify these units when several MC or CPU Bus Units are mounted.

The rotary switch located on the forehead of MC Unit can set the unit numbers.

(Examples)

OMRON CJ1W-MCH71 - Unit Number Setting Switch - 1

OMRON CJ1W-MCH71 - Unit Number Setting Switch - 2
Unit Number: 6

OMRON CJ1W-MCH71 - Unit Number Setting Switch - 3

OMRON CJ1W-MCH71 - Unit Number Setting Switch - 4
Unit Number: 12 (Hexadecimal)

The maximum of 16 MC Units can be mounted to one CS-series PLC, and a maximum of 12 MC Units can be mounted to one CJ-series PLC.

With a CJ-series PLC, up to 10 CPU Bus Units can normally be connected in the CPU Rack or in each Expansion Rack. Each CJ1W-MCH71 MC Unit, however, requires the space of three standard Units. Therefore, a maximum of only 3 MC Units plus one other CPU Bus Unit can be mounted per Rack.

The same unit number cannot be used twice in one PLC.

OMRON CJ1W-MCH71 - Unit Number Setting Switch - 5

Caution Please check if the power is OFF when you start the settings.

OMRON CJ1W-MCH71 - Unit Number Setting Switch - 6
DIP Switch on the Back Panel of the Unit

These switches are inside the case and are used for special purposes like shipping inspection mode, etc. Therefore, do not operate them.

12Status
OFFOFFNormal operation
ONOFFReserved for shipping inspection by OMRON (Do not set.)
OFFONReserved for shipping inspection by OMRON (Do not set.)
ONONReserved for shipping inspection by OMRON (Do not set.) (See note.)

Note

If the power is turned ON under this setting, the MC Unit will be started after various user settings are set beck to their factory default values.

3-1-2 Area Allocations

Word Allocations Using Unit Numbers

CPU Bus Unit Allocated Bit Area

The bit and DM areas used by the MC Unit are allocated based on the unit number.

The bit area is allocated 25 words for each unit number starting from the word 1500.

Unit numberBit areaUnit numberBit area
0Words 1500-15248Words 1700-1724
1Words 1525-15499Words 1725-1749
2Words 1550-157410Words 1750-1774
3Words 1575-159911Words 1775-1799
4Words 1600-162412Words 1800-1824
5Words 1625-164913Words 1825-1849
6Words 1650-167414Words 1850-1874
7Words 1675-169915Words 1875-1899

CPU Bus Unit Allocated DM Area (DM Parameter Area)

The DM area is allocated 100 words for each unit number starting from the words D30000.

Unit numberDM areaUnit numberDM area
0Words 30000-300998Words 30800-30899
1Words 30100-301999Words 30900-30999
2Words 30200-3029910Words 31000-31099
3Words 30300-3039911Words 31100-31199
4Words 30400-3049912Words 31200-31299
5Words 30500-3059913Words 31300-31399
6Words 30600-3069914Words 31400-31499
7Words 30700-3079915Words 31500-31599

3-2 Installation

3-2-1 System Configuration Precautions

CJ1W-MCH71

  • When using the IOWR/IORD instructions for the MC Unit, be sure that a version 2.0 or later CJ1-H/CJ1M CPU Unit is being used.
  • I/O bit numbers of the CPU Bus Unit are allocated based on the setting of the Unit Number Setting Switch on the front panel of the Unit, not on the position in which the Unit has been connected.
  • MC Units can be connected in either the CPU Rack or in Expansion Racks. A maximum of 3 MC Units can be connected per Rack. The total number of MC Units for the CPU Rack and all Expansion Racks is thus 12 MC Units maximum.
  • When mounting a relay output unit on the very right of the MC Unit, make sure to use the surge absorber for the relay output line.

OMRON CJ1W-MCH71 - 3-2-1 System Configuration Precautions - 1

When MECHATROLINK-II devices are connected up to 16 nodes (within 30m ) or 15 nodes (within 50m ), no repeater unit is required. A repeater unit is required to connect MECHATROLINK-II devices more than the cases above.

CS1W-MCH71

  • When using the IOWR/IORD instructions for the MC Unit, be sure that the CS1□-CPU□□H CPU Unit being used was manufactured on April 18, 2003 (Lot No. 030418) or later.
  • The I/O words allocated to a CPU Bus Unit are based on the setting of the unit number setting switch on the front panel of the Unit, not on the position in which the Unit has been mounted.
  • The Units can be mounted to the CS1W-BC□□3 or CS1W-BC□□2 CPU Backplane, or the CS1W-BI□□3 or CS1W-BI□□2 Expansion Backplane.

  • When mounting a relay output unit on the very left of the MC Unit, make sure to use the surge absorber for the relay output line.

OMRON CJ1W-MCH71 - 3-2-1 System Configuration Precautions - 2

3-2-2 Mounting to the Backplane

CJ1W-MCH71

Use the following steps to mount or remove MC Units.

The Units that make up a CJ-series PLC can be connected simply by pressing the Units together and locking the sliders by moving them toward the back of the Units. The End Cover is connected in the same way to the Unit on the far right side of the PLC. Follow the procedure listed below to connect PLC components.

1,2,3... 1. The following diagram shows the connection of two Units that make up a CJ-series PLC. Join the Units so that the connectors fit exactly.

OMRON CJ1W-MCH71 - 3-2-2 Mounting to the Backplane - 1

  1. The yellow sliders at the top and bottom of each Unit lock the Units together. Move the sliders toward the back of the Units as shown below until they click into place.

Note If the locking tabs are not secured properly, the CJ-series may not function properly. Be sure to slide the locking tabs until they are securely in place.

OMRON CJ1W-MCH71 - 3-2-2 Mounting to the Backplane - 2

  1. Attach the End Cover to the Unit on the far right side of the Rack.

Note If the sliders are not locked securely, the MC Unit may not function properly. Be sure the sliders are completely locked into place.

To separate two Units, slide the sliders to the release position to release the lock.

CS1W-MCH71

1,2,3... 1. Hook the top mounting hooks on the base of the Unit on the Backplane.

OMRON CJ1W-MCH71 - CS1W-MCH71 - 1

OMRON CJ1W-MCH71 - CS1W-MCH71 - 2

  1. Correctly insert the Unit into the Backplane connectors.

OMRON CJ1W-MCH71 - CS1W-MCH71 - 3

OMRON CJ1W-MCH71 - CS1W-MCH71 - 4

  1. Tighten the screw on the bottom of the Unit with a Phillips screwdriver. Leave enough space for ventilation and accessibility between the Unit and the ducts for attachment and removal of the Unit as shown in the figure below.

Note Tighten the bottom screw to a torque of 0.4 N·m.

To remove the Unit, loosen the screw on the bottom of the Unit with a Phillips driver, and then lift the Unit from below.

OMRON CJ1W-MCH71 - CS1W-MCH71 - 5

3-2-3 Unit Handling Precautions

Always turn OFF the CPU Unit before mounting or removing a MC Unit or connecting or disconnecting cables to or from the MC Unit.

Place the port connecting cables in a different duct from those for high-voltage lines or power lines to prevent the effects of electrical noise from these lines.

Do not remove the protective label from the top of the unit until wiring has been completed. This label prevents wire strands and other foreign matter from entering the Unit during wiring. Remove the label after wiring has been completed to allow air circulation needed for cooling.

OMRON CJ1W-MCH71 - 3-2-3 Unit Handling Precautions - 1

3-2-4 Dimensions

OMRON CJ1W-MCH71 - 3-2-4 Dimensions - 1
CJ1W-MCH71

OMRON CJ1W-MCH71 - 3-2-4 Dimensions - 2

CS1W-MCH71

OMRON CJ1W-MCH71 - 3-2-4 Dimensions - 3

OMRON CJ1W-MCH71 - 3-2-4 Dimensions - 4

3-3 External I/O Circuitry

ItemDescription
Connector nameCN1MECHATROLINK-II connector
Applicable connectorUSB connectorDUSB-ARA41-T11 (DDK)
Mating connectorUSB connectorDUSB-APA41-B1-C50 (DDK) *Including shell.
Pin arrangement
No.SignalI/ODescription
1(NC)------
2SRD-I/OSend/Receive Data (-)
3SRD+I/OSend/Receive Data (+)
4SLD---Shield Ground

MECHATROLINK-II Standard Cable

USB connectors on both ends: JEPMC-W6003-**

3-3-2 I/O Connectors

ItemClassificationComponent and Maker
Connector nameCN2I/O connector
Applicable connec- torMDR connector10214-52A2JL (3M)
Mating connectorConnector10114-3000VE (3M)
Housing10314-52F0-008 (3M)
ItemClassificationComponent and Maker
Pin arrangement
No.SignalI/ODescriptionNo.SignalI/ODescription
1DI_24VPDI common8DI_24VPDI common
2DI_00IDI input (Decel- eration stop)9DI_01IDI input (Reserved)
3DI_02IDI input 110DI_03IDI input 2
4---------11---------
5DO_24VP---12DO_24VP---
6DO_COMPDO common13DO_COMPDO common
7DO_00O.C.DO00 output14DO_01O.C.DO01 output
P: Power supply input I: Input signal O.C.: Open collector output

CJ1W-MCH71 Pin Arrangement

OMRON CJ1W-MCH71 - CJ1W-MCH71 Pin Arrangement - 1

3-3-3 Wiring Connectors

Procedure:

1,2,3... 1.Pass each wire through heat-shrink tubing.
2. Spot-solder the wires and connector terminals
3. Solder the wires

OMRON CJ1W-MCH71 - 3-3-3 Wiring Connectors - 1

  1. Pull the heat-shrink tubing back over the soldered area and heat the tubing to shrink it.

OMRON CJ1W-MCH71 - 3-3-3 Wiring Connectors - 2

3-3-4 I/O Circuits (CJ1W-MCH71 and CS1W-MCH71 Units Version 3.0 and Later)

Connector Interface Circuits

24VDC Digital Output (2 outputs)

ItemSpecificationsCircuitry
Max. Output Current100 mA/24 VDC+V DO_00 L DO_01 L DO_COM 24 VDC
Leakage current1 mA max.
Residual Voltage1.5 V max.
External Supply Voltage24 VDC ±10%
Number of Common2

24 VDC Digital Input

ItemSpecificationsCircuitry
Rated Input Voltage24 VDC ±10%DI_002.7 kΩ 680 Ω
Rated Input Current4.02 to 4.52 mA (24 VDC)
ON Voltage14 V min.DI_012.7 kΩ 680 Ω
OFF Current6 V max.
ON Response Time1 ms max.
OFF Response Time1 ms max.
Number of com-mons4DI_022.7 kΩ 680 Ω
24 VDCDI_032.7 kΩ 680 Ω
24VDI_24V2.7 kΩ

3-3-5 I/O Circuits (CS1W-MCH71 Unit Version 2.0 and Earlier)

24 VDC Digital Output (2 outputs)

Connector Interface Circuits

ItemSpecificationsCircuitry
Max. Output Current100 mA/24 VDC
Leakage current1 mA max.
Residual Voltage1.5 V max.
External Supply Voltage24 VDC ±10%
Number of Common2

24 VDC Digital Input

ItemSpecificationsCircuitry
Rated Input Voltage24 VDC ±10%DI_002.7 kΩ 1 kΩ
Rated Input Current4.06 to 4.48 mA (24 VDC)
ON Voltage9.5 V min.DI_012.7 kΩ 1 kΩ
OFF Current4.5 V max.
ON Response Time1 ms max.
OFF Response Time1 ms max.
Number of com-mons4DI_022.7 kΩ 1 kΩ
2.01 μF
2.7 kΩ
2.7 kΩ
2.7 kΩ
2.7 kΩ
2.7 kΩ
2.7 kΩ
2.7 kΩ
2.7 kΩ
2.7 kΩ
2.7 kΩ 2.7 kΩ
2.7 kΩ
2.7 kΩ
2.7 kΩ
2.7 kΩ
2.7 kΩ
2.7 kΩ
2.7 kΩ
2.7 kΩ
DI_03
DI_04V

3-4 Wiring

3-4-1 Wiring Precautions

Heed the following precautions when wiring the MC Unit to the servo drivers and motors.

Electronically controlled equipment may malfunction because of noise generated by power supply lines or external loads. Such malfunctions are difficult to reproduce; hence, determining the cause often requires a great deal of time.

The following tips should aid in avoiding noise malfunction and improving system reliability.

Use electrical wires or cables of designated sizes as specified in the instruction manual for the servo driver.

Separate power cables (AC power supply lines and motor power supply lines) from control cables (pulse output lines and external input signal lines). Do not group the two types of cable together or place them in the same conduit.

Using the laminated ceramic capacitor of 1 F for the output of 24 VDC power supply will improve noise-resistance.

Use shielded cables for control lines.

For inductive loads such as relays or solenoid valves, connect surge absorbers.

The connecting cable for the servo driver must be the specified cable with ring core.

OMRON CJ1W-MCH71 - 3-4-1 Wiring Precautions - 1

Note

(1) Connect a surge-absorbing diode or surge absorber close to the relay. Use a surge absorbing diode with a voltage tolerance at least five times greater than the circuit voltage.
(2) Noise may interfere from the power supply line if the same power supply as the electric welder or spark erosion machine is used for the MC Unit, or if there is a source of high-frequency noise around. If it occurs, insert the noise filter at the input section of the power supply.
(3) Use the twisted pair-cable for the power line.
(4) Provide grounding of 100 or less and use the thickest possible wire, greater than 1.25 square mm.

This section explains the method of connecting the MC Unit to devices with MECHATROLINK-II.

(As for the method of setting parameters, refer to 10-2 Slave Modules (page 607).)

Note

For details, refer to YASKAWA ELECTRIC CORPORATION's -II SERIES SGDH MECHATROLINK-II APPLICATION MODULE USER'S MANUAL MODEL: JUSP-NS115 (MANUAL NO. SIEPC71080001*)".

Connection cable

To connect MECHATROLINK devices to MC units, use the connecting cables (sold separately) in the table below.

NameModel (OMRON)Model (YASKAWA)Length
MECHATROLINK-II cable (For W-series or SMART-STEP Junior Servo Drive) (With ring core and USB connector on both ends)FNY-W6003-A5JEPMC-W6003-A50.5 m
FNY-W6003-01JEPMC-W6003-011.0 m
FNY-W6003-03JEPMC-W6003-033.0 m
FNY-W6003-05JEPMC-W6003-055.0 m
FNY-W6003-10JEPMC-W6003-1010.0 m
FNY-W6003-20JEPMC-W6003-2020.0 m
FNY-W6003-30JEPMC-W6003-3030.0 m

The terminating resistance (sold separately) in the table below should be connected to the MECHATROLINK-II termination.

NameModel (OMRON)Model (YASKAWA)
Terminating resistance for MECHA-TROLINK-IIFNY-W6022JEPMC-W6022

Repeater unit

When MECHATROLINK-II devices are connected up to 16 nodes (within 30m ) or 15 nodes (within 50m ), no repeater unit is required. A repeater unit is required to connect MECHATROLINK-II devices more than the cases above.

NameModel (OMRON)Model (YASKAWA)
Repeater for MECHATROLINK-IIFNY-REP2000JEPMC-REP2000

3-5-2 Servo Driver (W-series WT□□□)

W-series Servo Driver requires YASKAWA MECHATROLINK-II Interface Unit model JUSP-NS115.

Each version of the following products can be used. The version name is indicated on the nameplates of each product.

W-series Servo Driver: Ver.39 or later

I/F Unit: VER.***03 or later

Note Using either a W-series Servo Driver or an I/F Unit of older versions can be the cause of abnormal operations. Make sure to use the versions mentioned above.

Attaching I/F Unit NS115

OMRON CJ1W-MCH71 - Attaching I/F Unit NS115 - 1

Communications setting

Set MECHATROLINK communications using SW1 and SW2.

Transmission setting

MECHATROLINK communications can be specified using the DIP switches (SW2). See the table below.

Any change of the settings becomes valid after turning OFF the power once, then ON again.

SW2NameSettingContentDefault setting
Bit 1Baud rateOFF4 MbpsON (Do not change.)
ON10 Mbps
Bit 2No. of Transmitted bytesOFF17 bytesON (Do not change.)
ON30 bytes
Bit 3Station addressOFFRefer to Station address settingOFF
ON
Bit 4ReservedOFF---OFF

OMRON CJ1W-MCH71 - Transmission setting - 1
SW2(Default setting)

Station address setting

The station address can be set as shown in the table below using the rotary switch (SW1) and piano switch (SW2 bit 3).

The piano switch 3 of SW2 specifies the number of 10s and SW1 specifies the number of units.

Do not change the setting while the power is being supplied.

Bit 3 of SW2SW1Station No.SW1 default setting
OFF0Do not set.1
1 to F1 to 15 (1 to FH)
ON0 to F16 to 30 (10H to 1EH)

OMRON CJ1W-MCH71 - Station address setting - 1
Example of connecting I/O signals

A typical connecting example with standard settings (default settings) is shown here.

OMRON CJ1W-MCH71 - Station address setting - 2
Connect shield to connector shell.

Note (1) P indicates twisted-pair wires.

(2) When using an ABS encoder, connect a backup battery only when there is no battery connected to CN8.
(3) Allocate signals using parameters.

CN1 terminal layout
CN1 terminal layout

2SGGND1SGGND27/BK+ (See note 3.)Brake interlock output26/COIN-Positioning complete output
329/S-RDY+Servo ready output28/BK-(See note 3.)Brake interlock output
4530/S-RDY-Servo ready output
6SGGND731ALM+Servo alarm output32ALM-Servo alarm output
893334
10SGGND113536
121337ALO1Alarm code output (Open-collector output)38ALMO2Alarm code output
141539ALO340
161741/DEC (See note 3.)Origin return deceleration LS input42P-OTForward run prohibited input
181943N-OTReverse run prohibited input44/EXT1 (See note 3.)External latch signal 1 input
2021BAT(+)Battery (+)45/EXT2 (See note 3.)External latch signal 2 input46/EXT3 (See note 3.)External latch signal 3 input
22BAT(-)Battery (-)2347+24VINExternal power supply input48
2425/COINPositioning completed output4950

Note

(1) Connector shell: Connected to FG (Frame ground)
(2) Do not use unused terminals for relays.
(3) Allocate signals using parameters.
(4) For details, refer to YASKAWA ELECTRIC CORPORATION's Σ-II SERIES SGDH MECHATROLINK-II APPLICATION MODULE USER'S MANUAL MODEL: JUSP-NS115 (MANUAL NO. SIEPC71080001*)".

3-5-3 24 VDC I/O Module

Communications setting

Set MECHATROLINK communications using SW1 and SW2.

OMRON CJ1W-MCH71 - 3-5-3 24 VDC I/O Module - 1

SW1(Default setting)

Transmission settings

MECHATROLINK communications can be specified using the DIP switch (SW1). See the table below.

Any change of the settings becomes valid after turning OFF the power once, and then ON again.

OMRON CJ1W-MCH71 - Transmission settings - 1
SW2(Default setting)

SW1NameSettingContentDefault setting
1Baud rateOFF4 MbpsON (Do not set to OFF.)
ON10 Mbps
2No. of Transmitted bytesOFF17 bytesOFF
ON30 bytes
3Station addressOFFRefer to Station address settingOFF
ON
---ReservedOFF---OFF

Station address setting

Station address can be set as shown in the table below using the rotary switch (SW2) and piano switch (SW1 bit 3).

The bit 3 of SW1 specifies the number of 10s while the SW2 specifies the number of units.

Do not change the setting while the power is being supplied.

Bit 3 of SW1SW2Station addressSW2 default setting
OFF0Do not set.0
1 to F1 to 15 (1 to FH)
ON0 to F16 to 30 (10H to 1EH)

64-point I/O module (IO2310) connector pin layout, signal names, and wiring example

For details, refer to YASKAWA ELECTRIC CORPORATION's "Machine Controller MP900 Series MECHATROLINK System USER'S MANUAL (MANUAL NO. SIEZ-C887-5.1*)".

OMRON CJ1W-MCH71 - 64-point I/O module (IO2310) connector pin layout, signal names, and wiring example - 1

OMRON CJ1W-MCH71 - 64-point I/O module (IO2310) connector pin layout, signal names, and wiring example - 2

OMRON CJ1W-MCH71 - 64-point I/O module (IO2310) connector pin layout, signal names, and wiring example - 3

OMRON CJ1W-MCH71 - 64-point I/O module (IO2310) connector pin layout, signal names, and wiring example - 4

3-5-4 Counter Module, Pulse Output Module

Communications setting

For counter modules and pulse output modules, MECHATROLINK communications can be set using the DIP switches.

OMRON CJ1W-MCH71 - Communications setting - 1
SW(Default setting)

Transmission setting

MECHATROLINK communications can be specified using the DIP switches (SW) 6 to 8.

See the table below.

Any change of the settings becomes valid after turning OFF the power once, then ON again.

PinNameSettingContentDefault setting
6Baud rateOFF4 MbpsOFF
ON10 Mbps
7Transmission bytesOFF17 byteOFF
ON30 byte
8Station addressOFFRefer to Station address settingON (Do not set to OFF.)
ON

Station address setting

Station address can be set as shown in the table below using the DIP switch 1 to 5 (SW).

The bit 5 of SW specifies the number of 10s while the bit 1 to 4 of SW specifies the number of units.

Do not change the setting while the power is being supplied.

SWStation address
54321
OFFOFFOFFOFFOFFDo not set.
OFFOFFOFFOFFON1 (01H): Default setting
OFFOFFOFFONOFF2 (02H)
OFFOFFOFFONON3 (03H)
toto
OFFONONONON15 (0FH)
ONOFFOFFOFFOFF16 (10H)
ONOFFOFFOFFON17 (11H)
ONOFFOFFONOFF18 (12H)
ONOFFOFFONON19 (13H)
toto
ONONONONONDo not set.

Counter module (PL2900) Circuit Configuration and signal connection

OMRON CJ1W-MCH71 - Counter module (PL2900) Circuit Configuration and signal connection - 1

Signal arrangement of the terminal block

13PHA1-5PHB17PHB1+9N111OUT-13N215RST217PHA2-19PHB221PHB2+23+24V
2PHA14PHA1+6PHB1-8L110RST112IN-14L216PHA218PHA2+20PHB2-220(24V)

For details, refer to YASKAWA ELECTRIC CORPORATION's "Machine Controller MP900 Series MECHATROLINK System USER'S MANUAL (MANUAL NO. SIEZ-C887-5.1*)".

Pulse output module (PL2910)

Circuit configuration and signal arrangement

OMRON CJ1W-MCH71 - Circuit configuration and signal arrangement - 1

Signal arrangement of the terminal block

1 FG3 CCW15 CW17 COFF19 BFRE111 OVER113 TIMG115 +5V17 OUT119 ZERO121 IN123 +24V
2 CCW24 CW26 COFF28 BFRE210 OVER212 TIMG214 0(5V)16 OUT218 ZERO220 IN222 0(24V)

For details, refer to YASKAWA ELECTRIC CORPORATION's "Machine Controller MP900 Series MECHATROLINK System USER'S MANUAL (MANUAL NO. SIEZ-C887-5.1*)".

This section describes the data configuration uses to set up, operate, and monitor the CJ1W-MCH71 and CS1W-MCH71 Motion Control Units and related devices.

4-1 Data Configuration 56

4-1-1 DATA 56
4-1-2 Data Configuration 58

4-2 System Parameters 58

4-2-1 Description of System Parameters 58
4-2-2 System Parameters 59

4-2-3 Data Configuration and Content of System Parameters 66
4-2-4 Concept of Parameters 103
4-2-5 Timing that Enables Transferred System Parameters. 105

4-3 Variables 105
4-3-1 Overview of Variables 105

4-4 Position Data. 107

4-4-1 Position Data Address. 108
4-4-2 Position Data Configuration 108
4-4-3 Indirect Specification 108
4-4-4 Methods Used to Read, Write and Transfer Position Data. 110

4-5 System Variables. 111

4-5-1 System Variables. 111

4-6 I/O Variables 160

4-6-1 I/O Variables Overview 160
4-6-2 List of Input Variables 160
4-6-3 List of Output Variables 175

4-7 Present Position Preset 190
4-8 Servo Parameter 191

4-8-1 Servo Parameter Overview 191
4-8-2 Data Configuration and Contents of Servo Parameters 192
4-8-3 Motor Parameters 203
4-8-4 Setting Method Using Combination of W Series and NS115 206

4-9 CAM Data. 210

4-1 Data Configuration

Data Type

There are five different types of date for MC Unit.

1,2,3...

  1. System parameters

Unit parameters

Motion task parameters

Axis parameters (allocation, speed, position, origin, and machine)

  1. Variables

System variables

Global general variables

Input variables

Output variables

Position data

Task variables

  1. Present position preset
  2. Servo parameter axis specification
  3. Servo parameter

Note Neither CAM data nor programs are treated as data. For more details, see 4-9 CAM Data (Page 210) and SECTION 6 Programming.

4-1-1 DATA

ClassificationIORD/IOWR Control AddressVariablesWORDContents
Variables
Position data0000h-27FFhPLhhhh10240Data indicating positions, Total number is 10240.
System variables3000h-33FFhS*hhh1024Statuses such as the operating mode, error log, etc. of MC Unit
Global general VariablesNilM*hhh8192Variables that can be accessed from all tasks.Use for data communications between tasks and operations.
Input variablesNilI*hhh2048Input status from CPU Unit or MECHATROLINK-II devices
Output variablesNilO*hhh2048Executes outputs from programs to CPU Unit or MECHATROLINK-II devices
Task variablesNilD*hhh128 × 9 tasksVariables that can be used only in each task. Use as works in operation.
Present position preset4000h-401FhNil32Sets each axis's preset value for present position.
ClassificationIORD/IOWR Control AddressVariablesWORDContents
System parameter
Unit5000h-501FhNil4096·System parameters are consisted of unit parameters, task parameters and axis parameters. ·The system information used by the MC Unit, such as number of axes and tasks, feed rate, operat-ing range etc.
Motion task5020h-511Fh
Reserved5120h-513Fh
Data tracing5140h-51BFh
Reserved51C0h-533Fh
Axis: Allocations5340h-55BFh
Axis: Speed55C0h-583Fh
Axis: Position5840h-5ABFh
Axis: Origin5AC0h-5D3Fh
Axis: Machine5D40h-5FBFh
Zones5FC0h-5FFFh
Servo parameter axis Specification6000h6000h1Specifies the axis to access.
Servo parameter7000h-78FFhNil4096Parameters of servo driver.

Data Access Method

  • The letters to identify data access type, hhhh: 4 digits hexadecimal address

The following methods are used to access to each data. For further details, refer to SECTION 5 Data Transfer and Storage (Page 212).

1,2,3...

  1. Use the Support Tool (CX-Motion-MCH).
  2. Execute IOWR/ORD instructions (Intelligent I/O Write/Read) from the ladder program.
  3. Variables can be used in the MC Unit's programs.

"IORD/IOWR Control Address" is the internal address to identify data when IORD/IOWR instructions are executed from the ladder program. Global variables, input variables, output variables, or task variables cannot be accessed. See 4-3 Variables (Page 105) for details.

Basic Data Usage

System parameters:Created with the Support Tool (CX-Motion-MCH), and transferred to the MC Unit. Using the IOWR instruction during CPU Unit's operation can change the system parameters as needed.

Position data: Created with the Support Tool (CX-Motion-MCH), and transferred to the MC Unit. Using the IOWR instruction during CPU Unit's operation can change the position data as needed. It is possible to change the position data also by using MC Unit's program.

System variables: Read with the IORD instruction from the ladder program while the CPU Unit is running. It is also possible to read it from MC Unit's programs.

Servo parameters: Created with the Support Tool (CX-Motion-MCH), and transferred to the MC Unit. Using the IOWR instruction during the CPU Unit's operation can change the system parameters as needed. To use the IOWR instruction, the axis whose parameters are to be changed has to be specified in advance.

Other variables: Global general variables, input variables, output variables, and task variables can be used in MC Unit's programs.

4-1-2 Data Configuration

OMRON CJ1W-MCH71 - 4-1-2 Data Configuration - 1

4-2 System Parameters

The system parameters are consisted of the following three different parameters.

  • Unit parameters
    Motion task parameters
  • Axis parameters (Allocations, Speed, Position, origin, Machine)

4-2-1 Description of System Parameters

The following table describes the functions of each parameter group.

ParametersNumberIORD/IOWR Addresses (See note 3.)Functions
UnitP00001-P000105000h-5009hUsed to specify information inherent to the Unit, such as the number of axes used and the number of tasks.
Motion taskP00M01-P00M21 (See note 1.)5020h-5114hUsed to specify usage of each motion task such as max. interpolation feed rate.
Data tracingP05T01-P05T45 (See note 4.)---Sets the trace conditions and the data to be traced.
ParametersNumberIORD/IOWR Addresses (See note 3.)Functions
AxesAllocationsP1AA01-P1AA09 (See note 2.)5340h-55B4hSpecifies axis type and device to be used for each axis.
SpeedP2AA01-P2AA12 (See note 2.)55C0h-5837hSpecifies max. rapid feed rate and type of acceleration and deceleration etc. for each axis.
PositionP3AA01-P3AA09 (See note 2.)5840h-5AB4hSpecifies the methods regarding to position such as software limit, error counter warning etc. for each axis.
OriginP4AA01-P4AA12 (See note 2.)5AC0h-5D37hSpecifies the method of origin search for each axis.
MachineP5AA01-P1AA09 (See note 2.)5D40h-5FB4hSpecifies the machine information such as unit systems, gear ratio, etc. to be used for each axis.
ZonesP6ZZ01-P6ZZ02 (See note 5.)5FC0h-5FFFhSets the variables to be monitored using the zone function, and sets the bits for outputting the monitoring results.

Note

(1) The task number 1 to 8 is to be inserted in M.
(2) The axis number 1 to 32 is to be inserted in AA.
(3) The IORD/IOWR addresses in this table are the actual address range (excluding reserved ones).
(4) The group number (1 or 2 is inserted in place of T)
The trace parameters can be written only by using the Support Tool.
(5) The zone bit number (1 to 32 is inserted in place of ZZ)
(6) The parameter number is notated in 5-digit decimal in this manual.

P
Detail numberFor the Unit: 1 to 32For motion tasks: 1 to 32For tracing: 1 to 45For zones: 1 or 2Axis allocations: 1 to 20Axis-speed: 1 to 20Axis-position: 1 to 20Axis-origin: 1 to 20Axis-machine: 1 to 20
Group number
UnitMotion taskTracingAxis: AllocationsSpeedPositionOriginMachineZone000001-008050 + Group number100 + Axis No.200 + Axis No.300 + Axis No.400 + Axis No.500 + Axis No.600 + Zone bit number“00M” (M=1 to 8)“05T” (T=1 to 2)“1AA” (AA=1 to 32)“2AA” (AA=1 to 32)“3AA” (AA=1 to 32)“4AA” (AA=1 to 32)“5AA” (AA=1 to 32)“6ZZ” (ZZ=1 to 32)

4-2-2 System Parameters

Unit Parameters

NumberAddressNameFunctionPage
P000015000hNo. of motion tasksSets how many motion tasks are to be used.67
P000025001hNo. of parallel branchesSets the numbers of parallel branches and simultaneous execution commands common in each motion task.67
P000035002hUnit scan timeSpecifies the unit scan time.68
P000045003hUnit function select·Specifies method of specifying the speed in helical circular interpolation under MOVEC command. ·Specifies center-positioning method for MOVEC command ·Specifies the speed command unit for SPEED command/feedback speed. ·Selects output method for positioning completed/positioning completed 2 signals. ·Specifies the method for changing the direction for JOG operation. ·Specifies support for 3-ms communications cycle. ·Specifies the type of continuous operation for multi-turn operation for an infinite axis ·Specifies behavior when an overtravel alarm occurs ·Specifies the number of parallel branches for each Unit and each task. ·Specifies origin establishment and status hold for present position preset. ·Specifies the operation (deceleration stop or servo OFF) for deceleration stop signal inputs.68
P000055004hReserved
P000065005hGeneral I/O Dis-abled/EnabledSpecifies general I/O signals disable/enable for MC unit.70
P000075006hInput control 1 from PLCSpecifies whether input signals from CPU to the Unit or motion tasks are enabled or disabled.71
P000085007hInput control 2 from PLCSpecifies whether input signals from CPU to axes are enabled or disabled.72
P000095008hSetting for the No. of MECHATROLINK-II Retrial Nodes, With/ without C2 master·No. of retrial nodes: Specifies the number of nodes to be retried within MECHATROLINK-II communication cycle. ·With/without C2 master: Set this parameter when there is a master unit other than MC unit. (reserved)74
P000105009hMECHATROLINK-II Delay in Communi-cation StartSpecifies the time to make the communication start delayed in order to wait for slave startup.74
P00011500AhNumber of zone bitsSpecifies the number of zone bits to be used.page 75
P00012500BhZone data leading addressSpecifies the leading address for the zone data (upper and lower limits) used by the zone bits.page 75
P00013 -P00032500Ch -501FhReserved---

Motion Task Parameters

Note Abbreviation in the No. column: M = 1 to 8 (motion task number) Abbreviation in the address column: M = 0 to 7 (motion task number - 1)

No. M = 1-8Address M = 0-7NameFunctionPage
P00M015020h + (M * 20h)Max. interpolation feed rateSets the maximum feed rate (F command) in interpolation operation76
P00M025021h + (M * 20h)Interpolation feed acceleration timeSets the time required to accelerate from zero to max. interpolation feed rate.76
P00M035022h + (M * 20h)Interpolation feed deceleration timeSets the time required to decelerate from max. interpolation feed rate to zero in interpolation.77
P00M045023h + (M * 20h)Interpolation S-curve filter enabledSelects enable /disable of S-curve filter at the interpolation feed rate.77
P00M055024h + (M * 20h)Interpolation S-curve time constantSets the S-curve filter time constant at the interpolation feed rate.78
P00M065025h + (M * 20h)Pass mode selectSets the combination of the interpolation Accel/decel time and Pass mode with fixed acceleration disabled/enabled.78
P00M075026h + (M * 20h)Initial modal data 1 MOVE command value selectSpecifies the initial value if ABL/INC specification has been omitted in a motion program.79
P00M085027h + (M * 20h)Initial modal data 2 operating mode selectSpecifies the initial value if PASSMODE/STOPMODE specification has been omitted in a motion program.79
P00M095028h + (M * 20h)Initial model data 3 interpolation feed rateSpecifies the initial value if interpolation feed rate (F com-mand) has been omitted in a motion program.79
P00M105029h + (M * 20h)Interpolation feed decimal point positionSets the method of interpreting the speed command value specified by an immediate value with a decimal point.80
P00M11 - P00M20502Ah + (M * 20h) - 5033h + (M * 20h)Interpolation feed acceleration/deceler-ation bank 1 - Interpolation feed acceleration/deceler-ation bank 10Specifies the acceleration/deceleration times to use dur-ing interpolation. Banks are used to enable quickly switching acceleration/deceleration times with the PARAM command.80
Interpolation feed acceleration banks 1 to 5 - Interpolation feed deceleration banks 1 to 5
P00M215034h + (M * 20h)Number of parallel branches in each taskSpecifies the number of parallel branches used in a motion task and the number of commands simultaneously executed.page 82
P00M22 - P00M325035h + (M * 20h) - 503Fh + (M * 20h)Reserved---

Trace Parameters (Supported for unit version 3.0 and later
Note Abbreviation in the No. column: T = 1 or 2 (trace group number)

No.M = 1-8AddressM = 0-7NameFunctionPage
P05T01---Number of trace points and trace dataThese parameters are used to set trigger conditions, numbers of data items to be traced, addresses of variables to be traced, and trace timing. These parameters can be set only by using the Sup-port Tool. They cannot be set by IOWR instructions in ladder programs or by PARAM commands in motion programs.When these parameters are saved from the ladder program, they are saved in the MC Unit's FROM just as with other parameters.The CPU easy backup operation can also be used to save these parameters to CF (Compact Flash), and to the MC Unit's F-ROM from the CF.For details on these parameters, refer to the CX-Motion-MCH Operation Manual (supported by version 2.0 or later).---
P05T02---Trace start at power ON
P05T03---Delay
P05T04---Trace start trigger 1: Left-side variable type/form
P05T05---Trace start trigger 1: Left-side address
P05T06---Trace start trigger 1: Criteria
P05T07---Trace start trigger 1: Right-side variable type
P05T08---Trace start trigger 1: Right-side address or immediate value
P05T09---Trace start trigger 2: Left-side variable type/form
P05T10---Trace start trigger 2: Left-side address
P05T11---Trace start trigger 2: Criteria
P05T12---Trace start trigger 2: Right-side variable type
P05T13---Trace start trigger 2: Right-side address or immediate value
P05T14---Trace item 1: Form/type
P05T15---Trace item 1: Address
P05T16---Trace item 2: Form/type
P05T17---Trace item 2: Address
P05T18---Trace item 3: Form/type
P05T19---Trace item 3 Address
P05T20---Trace item 4: Form/type
P05T21---Trace item 4: Address
P05T22---Trace item 5: Form/type
P05T23---Trace item 5: Address
P05T24---Trace item 6: Form/type
P05T25---Trace item 6: Address
P05T26---Trace item 7: Form/type
P05T27---Trace item 7: Address
P05T28---Trace item 8: Form/type
P05T29---Trace item 8: Address
P05T30---Trace item 9: Form/type
P05T31---Trace item 9: Address
P05T32---Trace item 10: Form/type
P05T33---Trace item 10: Address
P05T34---Trace item 11: Form/type
P05T35---Trace item 11: Address---
P05T36---Trace item 12: Form/type
P05T37---Trace item 12 Address
P05T38---Trace item 13: Form/type
P05T39---Trace item 13 Address
P05T40---Trace item 14: Form/type
P05T41---Trace item 14 Address
P05T42---Trace item 15: Form/type
P05T43---Trace item 15 Address
P05T44---Trace item 16: Form/type
P05T45---Trace item 16 Address

Axis-Allocation Parameters

Note Abbreviation in the No. column: AA = 1 to 32 (axis number)

Abbreviation in the address column: AA = 0 to 31 (axis number - 1)

No. AA = 1-32Address AA = 0-31NameFunctionPage
P1AA015340h + (AA * 14h)Physical axis settingSpecifies the usage of physical axis.82
P1AA025341h + (AA * 14h)MECHATROLINK-II device classificationSets classification of devices connected as MECHA-TROLINK-II slave nodes.83
P1AA035342h + (AA * 14h)Input allocation pointsSpecifies the No. of points for input signals of MECHA-TROLINK-II slave nodes allocated to input variables of MC Unit.83
P1AA045343h + (AA * 14h)Output allocation pointsSpecifies the No. of points for output signals of MECHA-TROLINK-II slave nodes allocated to output variables of MC Unit.84
P1AA055344h + (AA * 14h)Axis allocation first addressThis is the setting for the counter input/pulse output count values of MECHATROLINK-II output to the present position of MC Unit.84
P1AA065345h + (AA * 14h)MECHATROLINK-II communications error detectionSets the No. of allowable times of communications errors on MECHATROLINK-II device.84
P1AA075346h + (AA * 14h)Reserved---
P1AA085347h + (AA * 14h)Reserved---
P1AA095348h + (AA * 14h)Reserved---
P1AA105349h + (AA * 14h)Reserved---
- P1AA205353h + (AA * 14h)

Axis-Speed Parameters

Note Abbreviation in the No. column: AA = 1 to 32 (axis number)

Abbreviation in the address column: AA = 0 to 31 (axis number - 1)

No.AA = 1-32AddressAA = 0-31NameFunctionPage
P2AA0155C0h + (AA * 14h)Max. rapid feed rateSets the maximum speed on machine's side for MOVE Command, etc.85
P2AA0255C1h + (AA * 14h)Max. manual feed rateSets maximum speed on machine's side in JOG, STEP, DATUM operations.86
P2AA0355C2h + (AA * 14h)Rapid feed rateSets the speed on machine's side for MOVE command, etc.86
P2AA0455C3h + (AA * 14h)Manual feed rateSets the speed on machine's side in JOG, STEP operations.86
P2AA0555C4h + (AA * 14h)Rapid feed acceleration timeSets the time required to accelerate from zero to max. rapid feed rate.86
P2AA0655C5h + (AA * 14h)Rapid feed deceleration timeSets the time required to decelerate from the max. rapid feed rate to zero.87
P2AA0755C6h + (AA * 14h)Manual feed acceleration timeSets the time required to accelerate from zero to maximum manual feed rate87
P2AA0855C7h + (AA * 14h)Manual feed deceleration timeSets the time required to decelerate from max. manual feed rate to zero.87
P2AA0955C8h + (AA * 14h)Rapid feed S-curve filter enabledSelect the S-curve filter enable/ disable at rapid feed rate.88
P2AA1055C9h + (AA * 14h)Manual feed S-curve filter enabledSelect the S-curve filter enable/ disable at manual feed rate.88
P2AA1155CAh + (AA * 14h)Rapid feed S-curve time constantSets the S-curve filter time constant at raid feed rate.88
P2AA1255CBh + (AA * 14h)Manual feed S-curve time constantSets the S-curve filter time constant at manual feed rate.88
P2AA1355CCh + (AA * 14h)Reserved---
P2AA20-55D3h + (AA * 14h)

Axis-Position Parameters

Note Abbreviation in the No. column: AA = 1 to 32 (axis number)

Abbreviation in the address column: AA = 0 to 31 (axis number - 1)

No. AA = 1-32Address AA = 0-31NameFunctionPage
P3AA015840h + (AA * 14h)STEP operation travel distanceSets travel distance for STEP operation.89
P3AA025841h + (AA * 14h)Positive direction software limitSets positive direction software limit value.89
P3AA035842h + (AA * 14h)Negative direction software limitSets negative direction software limit value.89
P3AA045843h + (AA * 14h)Software limit enabled/disabledSets whether software Limit is enabled/disabled.90
P3AA055844h + (AA * 14h)Error warning valueSets enabled/disabled of warning and the No. of error pulses that causes warning.90
P3AA065845h + (AA * 14h)Position error alarm detection valueSets enabled/disabled of alarm and the No. of error pulses that causes alarm.90
P3AA075846h + (AA * 14h)No. 2 in-position rangeSets the range for turning ON the positioning completed signal of interpolation feed in Stop mode.91
P3AA085847h + (AA * 14h)Reserved---
P3AA095848h + (AA * 14h)Position control switching speedSpecifies the speed to switch from torque control to position control or from speed control to position control as a percentage of the rated speed.91
P3AA105849h + (AA * 14h)Reserved---
- P3AA20- 5853h + (AA * 14h)

Axis-Origin Parameters

Note Abbreviation in the No. column: AA = 1 to 32 (axis number)

Abbreviation in the address column: AA = 0 to 31 (axis number - 1)

No.AA = 1-32AddressAA = 0-31NameFunctionPage
P4AA015AC0h + (AA * 14h)Origin search methodSets the origin search method.92
P4AA025AC1h + (AA * 14h)Origin search start directionSets origin search start direction for origin search method 1.93
P4AA035AC2h + (AA * 14h)Phase-Z (Phase-C) detection directionSets phase-Z (phase-C) detection direction for origin search methods 1, 2, and 3.93
P4AA045AC3h + (AA * 14h)Origin deceleration methodSets whether to use origin proximity or limit input signal as origin deceleration input signal for origin search method 1 and 3.94
P4AA055AC4h + (AA * 14h)Reserved---
P4AA065AC5h + (AA * 14h)Origin determine signalSpecifies signal to determine (latch) an origin.94
P4AA075AC6h + (AA * 14h)Origin search feed rateSets the speed of the 1st level for 3-level speed origin search.94
P4AA085AC7h + (AA * 14h)Origin search approach speedSets the speed of the 2nd level for 3-level speed origin search, or sets the speed of the 1st level for 2-level speed origin search.94
P4AA095AC8h + (AA * 14h)Origin search creep speedSets the speed of the 3rd level for 3-level speed origin search, or sets the speed of the 2nd level for 2-level speed origin search.95
P4AA105AC9h + (AA * 14h)Reference (Machine) origin offsetSets the offset amount (except for DATUM command) in origin search.95
P4AA115ACAh + (AA * 14h)Origin search final travel distanceSets the additional travel distance starting from the origin signal input position towards the detection direction.95
P4AA125ACBh + (AA * 14h)ABS origin offsetSets offset amount for ABS origin setting.96
P4AA13 - P4AA205ACCh + (AA * 14h) - 5AD3h + (AA * 14h)Reserved---

Axis-Machine Parameters

Note Abbreviation in the No. column: AA = 1 to 32 (axis number)

Abbreviation in the address column: AA = 0 to 31 (axis number - 1)

No.AA = 1-32AddressAA = 0-31NameFunctionPage
P5AA015D40h + (AA * 14h)UnitsSets the units for present positions.96
P5AA025D41h + (AA * 14h)Position command decimal point positionSets the method of interpreting the position command specified by an immediate value with decimal point.96
P5AA035D42h + (AA * 14h)Speed command decimal point positionSets the method of interpreting the speed command specified by an immediate value with a decimal point.97
P5AA045D43h + (AA * 14h)Command unit/one machine rotationSets the command unit (travel distance) per one machine rotation.98
P5AA055D44h + (AA * 14h)Gear ratio 1 (Motor rotation speed)Sets the No. of motor rotations related to the gear ratio between motor and machine.98
P5AA065D45h + (AA * 14h)Gear ratio 2 (Machine rotation speed)Sets the No. of machine rotations related to the gear ratio between motor and machine.99
P5AA075D46h + (AA * 14h)Axis feed modeSets whether a concerned axis is operated as limited length or unlimited length.99
P5AA085D47h + (AA * 14h)External input signal select 1• Sets the latch input signal for MOVEI command (interrupt feeding).• Sets the latch input signal for MOVELINK command (link operation start).• Sets the latch input signal for CAMBOX command (electronic cam synchronous start).• Sets the latch input signal for SYNC command (trail synchronization start).99
P5AA095D48h + (AA * 14h)External input signal select 2Sets the latch input signal for LATCH command (present position latch).100
P5AA105D49h + (AA * 14h)Reserved---
P5AA115D4Ah + (AA * 14h)Reserved---
P5AA12 - P5AA205D4Bh + (AA * 14h) - 5D53h + (AA * 14h)Reserved---

Zone Parameters

Note Abbreviation in the No. column: ZZ = 1 to 32 (axis number)

Abbreviation in the address column: ZZ = 0 to 31 (axis number -1)

No. AA = 1-32Address AA = 0-31NameFunctionPage
P6ZZ015FC0h + (ZZ * 2)Zone bit reference addressSets the address of the variable (such as feedback present position) to be monitored.page 101
P6ZZ025FC1h + (ZZ * 2)Zone bit output addressSets the address to which the monitoring results (ON/OFF) are to be output.page 101

4-2-3 Data Configuration and Content of System Parameters

Parameters with "Yes" in "Immediate updating" column are updated without switching OFF the Unit once, and then ON again.

In the setting range and initial value columns, the upper value is in hexadecimal while the lower value in parenthesis is in decimal.

Unit Parameters

No.Address in MC UnitNameTypeUnitImmediate updating
P000015000hNo. of motion tasksDataTaskNo
Data configuration 31 00 No. of motion tasksSetting range 00000001 to 00000008 Hex (1 to 8)Initial value 00000001 (1)

Explanation

Specifies the upper limit for No. of tasks to be used. Task No. up to the value set here can be used.

Note This setting closely relates to the Unit's processing time. For details, see 1-7 Performance Calculation Method for Unit Cycle on page 21.

No.Address in MC UnitNameTypeUnitImmediate updating
P000025001hNo. of parallel branchesData---No
Data configuration 31 00 No. of parallel branchesSetting range 00000001 to 00000008 Hex (1 to 8)Initial value 00000001 (4)

Explanation

Specifies the numbers of both parallel branching and simultaneous execution commands in each motion task.

The number of branches specified in this parameter is used for each task.

Note When P00004 bit 11 (number of parallel branches) is ON, P00M21 (number of parallel branches per task) is used.

This setting affects the maximum number of branches for the PARALLEL (parallel execution) command. (It is limited by the value set here.) When the number of parallel branches in a motion program is smaller than the value set in this parameter, the value obtained from dividing the value in the parameter by the actual number of branches becomes the number of commands that can be executed simultaneously for each row of each branched program.

The number of multiple execution commands in each unit cycle is applied to the simultaneous execution.

Example: The program execution time is calculated as follows when the unit cycle time is 2 ms, the number of parallel branches is 4, and 100 blocks (lines) are executed in motion task 1 (assuming that the program contains only multiple-execution commands that do not have wait time):

100 blocks/4 blocks × 2 ms = 50 ms

(For details, see 6-1-3 Advancement of the Motion Program (Page 242))

Note This setting closely relates to the Unit's processing time. For details, see 1-7 Performance Calculation Method for Unit Cycle on page 21.

No.Address in MC UnitNameTypeUnitImmediate updating
P000035002hUnit cycle timeDatamsNo
Data configurationSetting range 00000001 to 00000010 Hex (0 to 16)Initial value
310000000000 (0)
Unit cycle time

Explanation

  • Sets the unit cycle time.
  • Only setting the longer time than the time set automatically is valid.
  • This parameter is set to use the same cycle time (i.e., the same performance) for two or more MC Units when the MC Units control different numbers of axes.

Example:

Cycle time calculated for MC Unit 1: 1 ms

Cycle time calculated for MC Unit 2: 2 ms

In this case, the cycle time for MC Unit 1 would be set to 2 ms.

  • The time set automatically will be reflected in the system variable SW0000. (See 4-5 System Variables for details.)

For details of the enabling condition, see 1-7 Performance Calculation Method for Unit Cycle on page 21.

No.Address in MC UnitNameTypeUnitImmediate updating
P000045003hUnit function selectBit---No
Data configurationInitial value
312824201612080400
000000000000000000000000000000000000000000

Explanation

This parameter is used for setting the following functions. Set the bits corresponding to each function.

BitFunction and explanation
00Helical circular interpolation speed (Sets the method for specifying the speed in helical circular interpolation executed with MOVEC command.) 0: Speed on the circumference 1: Tangential speed
01Circular interpolation center position (Sets the method for specifying the center position for MOVEC command.) Refer to the description of the MOVEC command for details. 0: Always specify relative positions. 1: Specify relative or absolute positions.
02Speed command value (Specifies the speed command unit for SPEED command and the unit for feedback speed 2 and speed command 2 in present value monitoring.) 0: Rated % specified 1: r/min specified
03Communications cycle support Specifies the communications cycle. Normally set this parameter to 1. A setting of 0 is provided for compatibility with the CS1W-MCH71. 0: Support 1 ms, 2 ms, and 4 ms communications cycles. 1: Support 1 ms, 2 ms, 3 ms, and 4 ms communications cycles.
04Positioning completed signal select(Specifies the condition for turning OFF the positioning completed signal.)0: Turns OFF when starting the position command output1: Turns OFF when moving out of the in-position range
05Direction switching method for JOG operationSpecifies the direction for switching the direction for the JOG operation. Refer to JOG Operation on page 476 for details.0: Switch direction when stopped using the JOG/STEP direction bit.1: Switch direction when stopped or when moving using the JOG/STEP direction bit.
06Continuing operation for multi-turn operation with infinite axisSpecifies the behavior when continuing operation after is has been stopped for an infinite length axis with a command position greater than 1 turn. Refer to When a program is stopped in the middle of a block for an infinite length axis on page 388 for details.This function is effective for three commands: MOVE, MOVEL, and MOVET.0: Cancel part of operation greater than one turn and continue operation to a position within one turn.1: Continue operation toward command position.
07Behavior for overtravelSpecifies the behavior for when overtravel is detected during axis operation.0: Stop according to Pn001.1 in the Servo Driver.1: Stop according to Pn001.0 in the Servo Driver and then turn OFF the servo.If this parameter is set to 1 and Pn001.0 is set to 2, the motor will be placed in free-run status and then the servo will be turned OFF. Caution is required when using these settings because the braking distance may increase.
08Custom I/O area address setting (Supported for unit version 2.1 and later.)Set the addresses of the customer I/O area. Refer to 7-1 Overview for details.0: IW0B00 to IW0FFF or OW0B00 to OW0FFF (Fixed, specification for unit version 2.0.)1: Specified in DM Area words m+74 to m+89 allocated to the MC Unit as a CPU Bus Unit (Specification added for unit version 2.1 and later.)
09CS1W-MCH71: Selects the performance for the unit cycle time and communications cycle time. (Supported for unit version 3.0 and later.)CJ1W-MCH71: Not used.0: Initial value is performance equivalent to unit version 2.01: Performance equivalent to unit version 3.0 and laterFor information on the performance of the unit cycle time and communications cycle time, refer to 1-7Performance and Appendix A Performance.
10Deceleration stop input signal selection (Supported for unit version 3.0 and later.)Selects either deceleration stop or servo OFF when the MC Unit's deceleration stop input signal (I/O connector pin 2) turns ON.0: Decelerate all axes to a stop, and then hold the present position with servo lock.1: Use servo OFF to stop all axes.The operation with servo OFF depends on Pn001.0 for the Servo Driver.Note When 2 is selected for Pn001.0, the Servomotor goes into a free run state before servo OFF, so the mechanical braking distance is extended.
11Number of parallel branches (Supported for unit version 3.0 and later.)Selects whether P00002 (Unit parameters) or P00M21 (task parameters) is to be used to set the number of parallel branches for each task.0: The value set for P00002 is used as the number of parallel branches in each task.1: The values set for P00M21 are used as the number of parallel branches in each task.Setting the optimum value for each task, such as two parallel branches for Task 1 and four parallel branches for Task 2, can speed up the Unit cycle and optimize the number of program blocks that can be processed in a single Unit cycle.
12Present position preset (Supported for unit version 3.0 and later.) Selects whether the origin is to be established or the immediately prior status is to be retained when a present position preset is executed. 0: Retain the immediately prior status. 1: Establish the origin according to the preset value.
13Interpolation acceleration/deceleration bank switching option (supported for unit version 3.1 and later) Selects the bank switching method for acceleration and deceleration times used during interpolation. 0: Selects the same banks for acceleration and deceleration times. 1: Selects different banks for acceleration and deceleration times. MOVEL, MOVEC, and MOVETRAV can be specified separately. Enabled for both pass mode and stop mode.
14 to 31Reserved
No.Address in MC UnitNameTypeUnitImmediate updating
P000065005hGeneral I/O disabled/enabledBit---No
Data configuration31 28 24 20 16 12 08 04 00000000 (0)

Explanation

Sets whether the general I/O of MC Unit is enabled or disabled. Set the bits corresponding to each input or output.

BitFunction and explanation
00Deceleration stop input Sets whether the deceleration stop input signal is enabled or disabled. The stop method (deceleration stop or servo OFF) when the deceleration stop input signal turns ON is selected using P00004 bit 10. 0: Disabled 1: Enabled
01Reserved
02General input 1 Sets whether general input 1 signal is enabled or disabled. 0: Disabled 1: Enabled
03General input 2 Sets whether general input 2 signal is enabled or disabled. 0: Disabled 1: Enabled
04 to 15Not used
16General output 1 Sets whether general output 1 signal is enabled or disabled. 0: Disabled 1: Enabled
17General output 2 Sets whether general output 2 signal is enabled or disabled. 0: Disabled 1: Enabled
18 to 31Not used
No.Address in MC UnitNameTypeUnitImmediate updating
P000075006hInput control 1 from PLCBit---No
Data configurationInitial value
312824201612080400
000000000Motion task setting00000000000000000

Explanation

Sets whether the input from CPU to MC Unit is enabled or disabled.

By setting 1 (ignored), no input from CPU can be accepted by the area.

Set the bits corresponding to the Unit or each motion task.

BitFunction and explanation
00Unit Sets whether the input to the Unit control bit area (n+0 to n+2) and the Unit control data area (m+20) are enabled or disabled. 0: Normal 1: Ignored
01Reserved
02 to 15Not used
16Motion task 1 Sets whether the input to the Motion task 1 control area (n+4) and the Motion task 1 control data area (m+22 to 23) are enabled or disabled. 0: Normal 1: Ignored
17Motion task 2 Sets whether the input to the Motion task 2 control area (n+5) and the Motion task 2 control data area (m+24 to 25) are enabled or disabled. 0: Normal 1: Ignored
18Motion task 3 Sets whether the input to the Motion task 3 control area (n+6) and the Motion task 3 control data area (m+26 to 27) are enabled or disabled. 0: Normal 1: Ignored
19Motion task 4 Sets whether the input to the Motion task 4 control area (n+7) and the Motion task 4 control data area (m+28 to 29) are enabled or disabled. 0: Normal 1: Ignored
20Motion task 5 Sets whether the input to the Motion task 5 control area (n+8) and the Motion task 5 control data area (m+30 to 31) are enabled or disabled. 0: Normal 1: Ignored
21Motion task 6 Sets whether the input to the Motion task 6 control area (n+9) and the Motion task 6 control data area (m+32 to 33) are enabled or disabled. 0: Normal 1: Ignored
22Motion task 7 Sets whether the input to the Motion task 7 control area (n+10) and the Motion task 7 control data area (m+34 to 35) are enabled or disabled. 0: Normal 1: Ignored
23Motion task 8 Sets whether the input to the Motion task 8 control area (n+11) and the Motion task 8 control data area (m+36 to 37) are enabled or disabled. 0: Normal 1: Ignored
24 to 31Not used
No.Address in MC UnitName
P000085007hInput control 2 from PLC
Data configuration31 28 24 20 16 12 08 04 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Initial value000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Explanation

Sets whether the input from CPU to MC Unit is enabled or disabled.

By setting 1 (Ignored), no input from CPU can be accepted by the area.

Set the bits corresponding to each axis.

BitFunction and explanationBitFunction and explanation
00Axis 1 Sets whether input to Axis 1 control bit area (x+0) and Axis 1 control data area (d+0) are enabled or disabled. 0: Normal 1: Ignored16Axis 17 Sets whether input to Axis 17 control bit area (x+16) and Axis 17 control data area (d+16) are enabled or disabled. 0: Normal 1: Ignored
01Axis 2 Sets whether input to Axis 2 control bit area (x+1) and Axis 2 control data area (d+1) are enabled or disabled. 0: Normal 1: Ignored17Axis 18 Sets whether input to Axis 18 control bit area (x+17) and Axis 18 control data area (d+17) are enabled or disabled. 0: Normal 1: Ignored
02Axis 3 Sets whether input to Axis 3 control bit area (x+2) and Axis 3 control data area (d+2) are enabled or disabled. 0: Normal 1: Ignored18Axis 19 Sets whether input to Axis 19 control bit area (x+18) and Axis 19 control data area (d+18) are enabled or disabled. 0: Normal 1: Ignored
03Axis 4 Sets whether input to Axis 4 control bit area (x+3) and Axis 4 control data area (d+3) are enabled or disabled. 0: Normal 1: Ignored19Axis 20 Sets whether input to Axis 20 control bit area (x+19) and Axis 20 control data area (d+19) are enabled or disabled. 0: Normal 1: Ignored
04Axis 5 Sets whether input to Axis 5 control bit area (x+4) and Axis 5 control data area (d+4) are enabled or disabled. 0: Normal 1: Ignored20Axis 21 Sets whether input to Axis 21 control bit area (x+20) and Axis 21 control data area (d+20) are enabled or disabled. 0: Normal 1: Ignored
05Axis 6 Sets whether input to Axis 6 control bit area (x+5) and Axis 6 control data area (d+5) are enabled or disabled. 0: Normal 1: Ignored21Axis 22 Sets whether input to Axis 22 control bit area (x+21) and Axis 22 control data area (d+21) are enabled or disabled. 0: Normal 1: Ignored
06Axis 7Sets whether input to Axis 7 control bit area(x+6) and Axis 7 control data area(d+6) are enabled or disabled.0: Normal1: Ignored22Axis 23Sets whether input to Axis 23 control bit area(x+22) and Axis 23 control data area(d+22) are enabled or disabled.0: Normal1: Ignored
07Axis 8Sets whether input to Axis 8 control bit area(x+7) and Axis 8 control data area(d+7) are enabled or disabled.0: Normal1: Ignored23Axis 24Sets whether input to Axis 24 control bit area(x+23) and Axis 24 control data area(d+23) are enabled or disabled.0: Normal1: Ignored
08Axis 9Sets whether input to Axis 9 control bit area(x+8) and Axis 9 control data area(d+8) are enabled or disabled.0: Normal1: Ignored24Axis 25Sets whether input to Axis 25 control bit area(x+24) and Axis 25 control data area(d+24) are enabled or disabled.0: Normal1: Ignored
09Axis 10Sets whether input to Axis 10 control bit area(x+9) and Axis 10 control data area(d+9) are enabled or disabled.0: Normal1: Ignored25Axis 26Sets whether input to Axis 26 control bit area(x+25) and Axis 26 control data area(d+25) are enabled or disabled.0: Normal1: Ignored
10Axis 11Sets whether input to Axis 11 control bit area(x+10) and Axis 11 control data area(d+10) are enabled or disabled.0: Normal1: Ignored26Axis 27Sets whether input to Axis 27 control bit area(x+26) and Axis 27 control data area(d+26) are enabled or disabled.0: Normal1: Ignored
11Axis 12Sets whether input to Axis 12 control bit area(x+11) and Axis 12 control data area(d+11) are enabled or disabled.0: Normal1: Ignored27Axis 28Sets whether input to Axis 28 control bit area(x+27) and Axis 28 control data area(d+27) are enabled or disabled.0: Normal1: Ignored
12Axis 13Sets whether input to Axis 13 control bit area(x+12) and Axis 13 control data area(d+12) are enabled or disabled.0: Normal1: Ignored28Axis 29Sets whether input to Axis 29 control bit area(x+28) and Axis 29 control data area(d+28) are enabled or disabled.0: Normal1: Ignored
13Axis 14Sets whether input to Axis 14 control bit area(x+13) and Axis 14 control data area(d+13) are enabled or disabled.0: Normal1: Ignored29Axis 30Sets whether input to Axis 30 control bit area(x+29) and Axis 30 control data area(d+29) are enabled or disabled.0: Normal1: Ignored
14Axis 15Sets whether input to Axis 15 control bit area(x+14) and Axis 15 control data area(d+14) are enabled or disabled.0: Normal1: Ignored30Axis 31Sets whether input to Axis 31 control bit area(x+30) and Axis 31 control data area(d+30) are enabled or disabled.0: Normal1: Ignored
15Axis 16Sets whether input to Axis 16 control bit area(x+15) and Axis 16 control data area(d+15) are enabled or disabled.0: Normal1: Ignored31Axis 32Sets whether input to Axis 32 control bit area(x+31) and Axis 32 control data area(d+31) are enabled or disabled.0: Normal1: Ignored
No.Address in MC UnitNameTypeUnitImmediate updating
P000095008hSetting for the No. of MECHA-TROLINK-II retrial nodesData---No
Data configuration31 16 00000000 (0)

Explanation

BitFunction and explanation
00 to 15Not used
16 to 19No. of retrying nodes This setting decides how many retries are performed within a communication cycle in the case of a MECHATROLINK-II communications error. (Not for each and every node, but for a maximum of 7 nodes in a system) 0 to 7 Hex (0 to 7)
20 to 31Not used

OMRON CJ1W-MCH71 - Explanation - 1
Operation with the number of retrial nodes set

Note

(1) Setting the number of retrial nodes makes MC Unit reserve the time in the cycle time for the specified number of retries.
(Even without any communications error or retries, the processing time for them is added to the cycle time.)
(2) This setting closely relates to the communications cycle. For details, see 1-7 Performance Calculation Method for Communications Cycle on page 22.

No.Address in MC UnitNameTypeUnitImmediate updating
P000105009hMECHATROLINK-II delay in com-munication startData---No
Data configuration 31 Delay in communications startSetting range 00000000 to 0000EA60 Hex (0 to 60000)Initial value 00000000 (0)

Explanation

  • Specifies the time to make the communication start delayed in order to wait for slave startup.

  • A period of time set here is waited for after the power to the MC Unit has been turned ON, and then starts communications with the slaves.

No.Address in MC UnitNameTypeUnitImmediate updating
P00011500AhNumber of zone bitsData---No
Data configuration 31 00 Number of zone bitsSetting range 00000000 to 00000020 Hex (0 to 32)Initial value 00000000 (0)

Explanation

  • Set 1 to 32 zone bits.
  • In Pn0012, set the leading address for the zone data (upper and lower limits) for which the zone bits are to be used.
  • If 0 is set for Pn00011, zone bits will not be used.
  • For details on zone bit operations, refer to 9-7 Zones.
No.Address in MC UnitNameTypeUnitImmediate updating
P00012500BhZone data leading addressData---No
Data configuration31 16 15 00Variable type AddressInitial value
00000000 (0)

Explanation

  • Set the leading address for the zone data for the zone bits that are to be used.

Note Zone data is made of long words (32 bits).

BitsFunction and explanation
00 to 15Address Sets the leading address for the specified variable. Refer to the variable type for the address range. 0000 to 0FFF (0 to 4,095)
16 to 31Variable type Sets the variable area for setting the zone data. 0002: Global general purpose variables (Address range: 0000 to 1FFC Hex) 0003: Input variables (address range: 0000 to 0FFC Hex) 0004: Output variables (address range: 0000 to 0FFC Hex) 0005: Position data (address range: 0000 to 27FE Hex) 0006: Task variable 1 (address range: 0000 to 007C Hex) 0007: Task variable 2 (address range: 0000 to 007C Hex) 0008: Task variable 3 (address range: 0000 to 007C Hex) 0009: Task variable 4 (address range: 0000 to 007C Hex) 000A: Task variable 5 (address range: 0000 to 007C Hex) 000B: Task variable 6 (address range: 0000 to 007C Hex) 000C: Task variable 7 (address range: 0000 to 007C Hex) 000D: Task variable 8 (address range: 0000 to 007C Hex)

Example: With two zone bits (P00011 = 2) , make the following settings to set

zone data for position data PL0000 to PL0003.

P0012 = 00050000 Hex

Position dataName and description
PL0000Zone 1 lower limitZone data
PL0001Zone 1 upper limit
PL0002Zone 2 lower limit
PL0003Zone 2 upper limit
PL0004Position data used by program
::
::
  • To save zone data to the F-ROM in the MC Unit, set the zone data to position data with the variable type set to position data.

Position data can be saved to F-ROM using the Support Tool or a save command from the ladder program.

Motion Task Parameters

Note Abbreviation in the No. column: M = 1 - 8 (motion task number)

Abbreviation in the address column: M = 0 - 7 (motion task number-1)

No.Address in MC UnitNameTypeUnitImmediate updating
P00M015020h + (M * 20h)Max. interpolation feed rateDataCommand unit/minYes
Data configuration Setting range 00000001 to 7FFFFFFHex 00002710 (10000) 31 Max. interpolation feed rateInitial value
00002710 (10000)

Explanation

  • This parameter sets the max. interpolation feed rate. (Operand F)

The max speed is limited by (32767 command unit/unit scan).

P00M01 [command unit/min] ≤ 1966020000/Ts [ms]

Ts [s]: Unit scan time

This indicates the unit cycle time of MC Unit determined by the numbers of tasks, axes, parallel branches, and refreshed words.

1966020000:

The upper limit of speed resolution is 32767 [command unit/unit scan]. The value 1966020000 is obtained by converting 32767 [command unit/unit scan] to the unit of minutes (32767 × 60 × 1000) .

Note The setting of this parameter limits the speed changed with override and the speed specified with Operand F.

No.Address in MC UnitNameTypeUnitImmediate updating
P00M025021h + (M * 20h)Interpolation feed acceleration timeDatamsYes
Data configuration Setting rangeInitial value
310000000000 to 0000EA60 Hex (0 to 60000)00000064 (100)
Acceleration time

Explanation

Pass Mode (P00M06) = 0 or 1
Sets the time required to accelerate from zero to the feed rate specified in the interpolation command.
Pass Mode (P00M06) = 2 or 3
Sets the time required to accelerate from zero to the maximum interpolation feed rate (P00M06).

Note

(1) Enabling S-curve filter causes the delay for the S-curve time constant.
(2) This parameter cannot be changed during operation.
(3) For details of Accel/decel patterns, see 6-1-5 Axis Movement Operation (Page 248).

No.Address in MC UnitNameTypeUnitImmediate updating
P00M035022h + (M * 20h)Interpolation feed deceleration timeDatamsYes
Data configuration Setting rangeInitial value
310000000000 to 0000EA60 Hex (0 to 60000)00000064 (100)
Deceleration time

Explanation

Pass Mode (P00M06) = 0 or 1
Sets the time required to decelerate from the feed rate specified in the interpolation command to zero.
Pass Mode (P00M06) = 2 or 3
Sets the time required to decelerate from the maximum interpolation feed rate (P00M06) to zero.

Note

(1) Enabling S-curve filter causes the delay for the S-curve time constant.
(2) This parameter cannot be changed during operation.
(3) For details of Accel/decel patterns, see 6-1-5 Axis Movement Operation (Page 248).

No.Address in MC UnitNameTypeUnitImmediate updating
P00M045023h + (M * 20h)Interpolation S-curve filter enabledData---Yes
Data configuration Setting range 00000000 to 00000001 Hex 00 (0 to 1)Initial value
00000000 (0)
S-curve filter enabled

Explanation

Select enabled/disabled of S-curve filter at the interpolation feed rate.

0: Disabled (Symmetrical)

1: Enabled (S-curve)

Note For details of Accel/decel patterns, see 6-1-5 Axis Movement Operation (Page 248).

No.Address in MC UnitNameTypeUnitImmediate updating
P00M055024h + (M * 20h)Interpolation S-curve time constantDatamsYes
Data configuration Setting rangeInitial value
310000000000 to 00007530 Hex (0 to 30000)00000064 (100)
S-curve time constant

Explanation

Sets the S-curve filter time constant at the interpolation feed rate.

No.Address in MC UnitNameTypeUnitImmediate updating
P00M065025h + (M * 20h)Pass mode selectData---No
Data configuration Setting rangeInitial value
310000000000 to 00000003 Hex (0 to 3)00000000 (0)
Pass mode select

Explanation

Sets the combination of the interpolation Accel/decel time and Pass mode with fixed acceleration enabled/disabled.

0: Interpolation acceleration time + Pass mode with fixed acceleration disabled
1: Interpolation deceleration time + Pass mode with fixed acceleration disabled
2: Interpolation acceleration time + Pass mode with fixed acceleration enabled
3: Interpolation deceleration time + Pass mode with fixed acceleration enabled

Note

(1) 2 and 3 are enabled when specifying only 1 axis with MOVEL command.
(2) Interpolation override in Pass mode with fixed acceleration is disabled during deceleration caused by insufficient remaining travel distance.
(3) Pass mode with fixed acceleration cannot complete the passing operation under the following condition. After a deceleration stop, the next operation is executed.

Distance required for deceleration stop from current speed > Travel distance of the next block
(4) The bank switching method for acceleration and deceleration times can be selected for unit version 3.1 and later by switching P0004 (unit function selection) bit 13 (interpolation acceleration/deceleration bank switching option).

0: Selects the same banks for acceleration and deceleration times.
1: Selects different banks for acceleration and deceleration times.

MOVEL, MOVEC, and MOVETRAV can be specified separately. Enabled for both pass mode and stop mode.

(5) There are several acceleration/deceleration times that can be used in the pass operation. For details, see 6-1-5 Axis Movement Operation (Page 248).

No.Address in MC UnitNameTypeUnitImmediate updating
P00M075026h + (M * 20h)Initial modal data 1 MOVE command value selectData---No
Data configuration Setting range 00000000 to 00000001 Hex 00 (0 to 1)Initial value
00000000 (0)
31 MOVecommand value select

Explanation

Specifies the initial value if ABS/INC specification has been omitted in a motion program.

0: ABL (Operation is executed defining the target position as the absolute position.)
1: INC (Operation is executed defining the target position as the relative position.)

No.Address in MC UnitNameTypeUnitImmediate updating
P00M085027h + (M * 20h)Initial modal data 2 Operating mode selectData---No
Data configuration Setting rangeInitial value
310000000000 to 00000001 Hex (0 to 1)00000000 (0)
Operating mode select

Explanation

Specifies the initial value if PASSMODE/STOPMODE specification has been omitted in a motion program.

0: Operation is executed in Pass mode.
1: Operation is executed in Stop mode.

No.Address in MC UnitNameTypeUnitImmediate updating
P00M095028h + (M * 20h)Initial modal data 3 Interpolation feed rateDataCommand unit/ minNo
Data configuration Setting range 00000001 to 7FFFFFFHex 00000001 to 7FFFFFFHex 1 to 2147483647)Initial value
00002710 (10000)
Interpolation feed rate

Explanation

  • Specifies the initial value if interpolation feed rate (F command) has been omitted in a motion program.

The max speed is limited by (32767 command unit/unit scan).

P00M09 [command unit/min] ≤ 1966020000/Ts [ms]

Ts[s]: Unit scan time

This indicates the unit cycle time of MC Unit determined by the numbers of tasks, axes, parallel branches, and refreshed words.

1966020000:

The upper limit of speed resolution is 32767 [command unit/unit scan]. The value 1966020000 is obtained by converting 32767 [command unit/unit scan] to the unit of minutes (32767 × 60 × 1000) .

No.Address in MC UnitNameTypeUnitImmediate updating
P00M105029h + (M * 20h)Interpolation feed decimal point positionData---No
Data configuration Setting range 00000000 to 00000004 Hex 00 (0 to 4)Initial value
00000000 (0)
31
Interpolation feed decimal point position

Explanation

Sets the method of interpreting the speed command value specified by an immediate value with a decimal point.

0:×1
1:×10
2:×100
3:×1000
4:×10000

Ex) When controlling X-axis with task 1 and selecting × 10 of interpolation feed decimal point position (P00M10) for task 1,

MOVEL [J01]100.00 F100.;

is processed as,

MOVEL [J01]100.00 F1000;

Note The following notations have the same meaning when Interpolation feed decimal point position (P00M10) is × 10 .

Please note that they are treated differently from position command values.

MOVEL [J01]100.00 F1000;

MOVEL [J01]100.00 F100.;

MOVEL [J01]100.00 F100.0;

No.Address in MC UnitNameTypeUnitImmediate updating
P00M11 to P00M20502Ah + (M * 20h) to 5033h + (M * 20h)P00004 bit 13 = 0 • Interpolation feed acceleration/ deceleration times banks 1 to 10.DatamsYes
P00004 bit 13 = 1 • Interpolation feed acceleration time banks 1 to 5. Interpolation feed deceleration time banks 1 to 5.
The bank switching method for acceleration and deceleration times can be selected for unit version 3.1 and later by switching P0004 (unit function selection) bit 13 (interpolation acceleration/deceleration bank switching option).
1. P00004 bit 13 = 0 Selects the same banks for acceleration and deceleration times.Initial value
Data configurationSetting range00000064 (100)
310000000000 to 0000EA60 Hex (0 to 60000)
Interpolation feed acceleration/deceleration bank 1 to 10

Explanation

They set the acceleration/deceleration times for interpolation feeding (MOVEL, MOVEC, and MOVETRAV).

The following variables are provided and the bank number for each task can be specified by substituting it for the variable to switch the acceleration/deceleration time to be used.

VariableBitsName
IW0A0000 to 15Acceleration/deceleration bank selection for motion task 1 (initial value: 0)
IW0A0100 to 15Acceleration/deceleration bank selection for motion task 2 (initial value: 0)
IW0A0200 to 15Acceleration/deceleration bank selection for motion task 3 (initial value: 0)
IW0A0300 to 15Acceleration/deceleration bank selection for motion task 4 (initial value: 0)
IW0A0400 to 15Acceleration/deceleration bank selection for motion task 5 (initial value: 0)
IW0A0500 to 15Acceleration/deceleration bank selection for motion task 6 (initial value: 0)
IW0A0600 to 15Acceleration/deceleration bank selection for motion task 7 (initial value: 0)
IW0A0700 to 15Acceleration/deceleration bank selection for motion task 8 (initial value: 0)

Setting range for acceleration/deceleration bank selections:

1 to 10: Select the acceleration/deceleration time in banks 1 to 10.

Other: Selects P00M02 (interpolation feed acceleration time) and

P00M03 (interpolation feed deceleration time).

The setting of system parameter P00M06 (pass mode select) determines whether the value is used as the acceleration time or as the deceleration time.

P00M06 = 0 or 2: Used as acceleration time.

P00M06 = 1 or 3: Used as deceleration time.

Refer to Operating Mode under 6-1 Basic Information (Page 252) for details.

  1. P00004 bit 13 = 1 (Supports unit version 3.1 and later)

Selects different banks for acceleration and deceleration times.

Data configuration

31

1615

Interp

Isolation feed deceleration

time banks 1 to 5

Interpolation acceleration time banks 1 to 5

Explanation

Sets the acceleration/deceleration times for interpolation feeding (MOVEL, MOVEC, and MOVETRAV). The following variables are provided and the bank number for each task can be specified by substituting it for the variable to switch the acceleration/deceleration time to be used.

VariableBitsName
IW0A0000 to 15Acceleration bank selection for motion task 1 (initial value: 100)
IW0A0100 to 15Acceleration bank selection for motion task 2 (initial value: 100)
IW0A0200 to 15Acceleration bank selection for motion task 3 (initial value: 100)
IW0A0300 to 15Acceleration bank selection for motion task 4 (initial value: 100)
IW0A0400 to 15Acceleration bank selection for motion task 5 (initial value: 100)
IW0A0500 to 15Acceleration bank selection for motion task 6 (initial value: 100)
IW0A0600 to 15Acceleration bank selection for motion task 7 (initial value: 100)
IW0A0700 to 15Acceleration bank selection for motion task 8 (initial value: 100)
IW0A0816 to 31Deceleration bank selection for motion task 1 (initial value: 100)
IW0A0916 to 31Deceleration bank selection for motion task 2 (initial value: 100)
IW0A0A16 to 31Deceleration bank selection for motion task 3 (initial value: 100)
IW0A0B16 to 31Deceleration bank selection for motion task 4 (initial value: 100)
IW0A0C16 to 31Deceleration bank selection for motion task 5 (initial value: 100)
IW0A0D16 to 31Deceleration bank selection for motion task 6 (initial value: 100)
IW0A0E16 to 31Deceleration bank selection for motion task 7 (initial value: 100)
IW0A0F16 to 31Deceleration bank selection for motion task 8 (initial value: 100)

Setting range for interpolation feed acceleration time:

1 to 5 P00M11 to P00M15 are used for the interpolation feed acceleration time.
Other P00M02 is used for the interpolation feed acceleration time.
1 to 5 P00M16 to P00M20 are used for the interpolation deceleration time.
Other P00M03 uses interpolation the feed deceleration time.

Setting range for interpolation feed deceleration time:

Use of the acceleration or deceleration times is permanently enabled regardless of the state of system parameter P00M06 (pass mode option). Refer to Operating Mode under 6-1 Basic Information (Page 252) for details.

No.Address in MC UnitNameTypeUnitImmediate updating
P00M215034h + (M * 20h)Number of parallel branches in each taskData---No
Data configuration Setting rangeInitial value
310000000000 to 00000008 Hex (0 to 8)00000000 (0)
Number of parallel branches

Explanation

  • Set the number of parallel branches to be used for task number M (1 to 32) and the number of commands (1 to 8) to be executed simultaneously.
  • This parameter is enabled when P00004 bit 11 is ON.
  • The Unit cycle is determined by the number of tasks used, the number of axes, the number of parallel branches, and the number of words in the general allocation. For information on these relative expressions, refer to 1-7 Performance. The Unit cycle can be shortened by using this parameter when required by the application.

Note When P00M21 is set to 0, the number of parallel branches for the task will be processed as 1 even if P00004 bit 11 is ON.

Axis-Allocation Parameters

Note Abbreviation in the No. column: AA = 1 to 32 (axis number) Abbreviation in the address column: AA = 0 to 31 (axis number - 1)

No.Address in MC UnitNameTypeUnitImmediate updating
P1AA015340h + (AA * 14h)Physical axis settingData---No
Data configuration Setting rangeInitial value
310000000000 to 00000020 Hex (0 to 32)00000000 (0)
Physical axis setting

Explanation

Sets the usage of the physical axes (J01 to J32) to be used with MCH.

SettingDescription
00000000 Hex (0)Not used as physical axes.
00000001 to0000001E Hex (1 to 30)These axes are used as real axes.MECHATROLINK-II devices are used for real axes.Sets the node addresses of MECHATROLINK-II devices Node addresses of MECHATROLINK-II devices 1 to 30 correspond to the setting values 1 to 30.
00000020 Hex (32)This axis is used as a virtual axis.
Other than the aboveReservedDo not set.

Note

(1) For details of the differences between the virtual axis and the actual axis, see 6-1-13 Virtual Axis (Page 282).
(2) This setting relates to the unit cycle and communications cycle. For details, see 1-7 Performance Calculation Method for Unit Cycle, Calculation Method for Communications Cycle on page 22.

No.Address in MC UnitNameTypeUnitImmediate updating
P1AA025341h + (AA * 14h)MECHATROLINK-II device classi-ficationData---No
Data configuration Setting rangeInitial value
310000000000, 00000064 Hex(0, 100)00000000 (0)
Classification

Explanation

Sets the types of devices connected as MECHATROLINK-II slaves.

SettingExplanation
00000000 Hex (0)A Servo Driver is used.
00000064 Hex (100)I/O, counter, and pulse output modules are used as an I/O axis.
Other than the aboveReserved Do not set.

Note

For details of differences between axes allocated as I/O and servo axes, see 6-1-14 I/O Axis (page 283).

No.Address in MC UnitNameTypeUnitImmediate updating
P1AA035342h + (AA * 14h)Input allocation points (No. of words)Data16 points (word)No
Data configuration Setting rangeInitial value
310000000000 to 0000000F Hex (0 to 15)00000000 (0)
Input allocation points

Explanation

Specifies the No. of points (words) for input signals of MECHATROLINK-II slave nodes allocated to input variables of MC Unit.

Note

With only 1 axis, words for the No. of words specified in the input variable IW0010 are allocated and they link with the inputs of MECHATROLINK-II slave nodes.

No.Address in MC UnitNameTypeUnitImmediate updating
P1AA045343h + (AA * 14h)Output allocation points (No. of words)Data16 points (word)No
Data configuration Setting range 00000000 to 0000000F Hex 00 (0 to 15)Initial value
00000000 (0)
31 Output allocation points

Explanation

Specifies the No. of points (words) for output signals of MECHATROLINK-II slave nodes allocated to output variables of MC Unit.

Note With only 1 axis, words for the No. of words specified in the output variable OW0010 are allocated and they link with the outputs of MECHATROLINK-II slave nodes.

No.Address in MC UnitNameTypeUnitImmediate updating
P1AA055344h + (AA * 14h)Axis allocation first addressData---No
Data configurationInitial value
3116150000000000 (0)
Variable typeAddress

Explanation

  • When using MECHATROLINK-II counter module or pulse output module as a physical axis, the present position of these counters can be output to the feedback position in the current coordinate system (address SL0200 for axis 1) of the applicable physical axis. Some modules have 2 counters, however, only 1 counter can be specified.
  • Sets the address of the Counter present position to be output to the present position.
  • The Counter present position is stored in the input variable area allocated in Input allocation points.
BitExplanation
00 to 15Specifies the first address. 0000 to 0FFF Hex (0 to 4095)
16 to 31Specifies whether the present position is imported or not. 0000 Hex (0): Counter's feedback position in the current coordinate system (address SL0200 for axis 1) is not imported into the physical axes. 0001 Hex (1): Counter's feedback position in the current coordinate system (address SL0200 for axis 1) is imported.
No.Address in MC UnitNameTypeUnitImmediate updating
P1AA065345h + (AA * 14h)MECHATROLINK-II communica-tions error detectionData---No
Data configuration Setting rangeInitial value
310000000000 to 00000005 Hex(0 to 5)00000000 (0)
Communications error detection

Explanation

Sets the No. of allowable times of communications errors on MECHA-TROLINK-II device.

The setting of this parameter is valid only for I/O (specified in P1AA02: MECHATROLINK-II device classification).

When the allowable times set here are exceeded, [300Bh: Communications alarm] will occur.

No.Address in MC UnitNameTypeUnitImmediate updating
P1AA075346h + (AA * 14h)ReservedData---No
Data configurationInitial value
310000000000 (0)
Reserved

Explanation

Reserved

Axis-Speed Parameters

Note Abbreviation in the No. column: AA = 1 to 32 (axis number) Abbreviation in the address column: AA = 0 to 31 (axis number - 1)

No.Address in MC UnitNameTypeUnitImmediate updating
P2AA0155C0h + (AA * 14h)Max. rapid feed rateDataCommand unit/ minYes
Data configuration Setting range 00000001 to 7FFFFFFHex 31 00 (1 to 2147483647) Max. rapid feed rateInitial value
00002710 (10000)

Explanation

  • Sets the maximum speed on machine's side for when operating with commands, such as MOVE, MOVEL commands, etc., that include interpolation.

The maximum rapid feed rate can be set using the following calculation formula:

P2AA01 [command unit/min] = P5AA04 [command unit/1 machine rotation] × Max. No. of motor rotations [rotation/min] × P5AA06 [machine rotation speed]/P5AA05 [motor rotation speed]

The maximum speed is limited by (32767 command unit/unit scan).

P2AA01 [command unit/min] ≤ 1966020000/ Ts [ms]

Ts[s]: Unit scan time

This indicates the unit cycle time of MC Unit determined by the numbers of tasks, axes, parallel branches, and refreshed words.

1966020000:

The upper limit of speed resolution is 32767 [command unit/unit scan]. The value 1966020000 is obtained by converting 32767 [command unit/unit scan] to the unit of minutes (32767 × 60 × 1000) .

Note The setting of this parameter limits the speed changed by override, the speed specified by Operand V of MOVEI command, the speed changed by override in MOVET command.

No.Address in MC UnitNameTypeUnitImmediate updating
P2AA0255C1h + (AA * 14h)Max. manual feed rateDataCommand unit/ minYes
Data configuration Setting range 00000001 to 7FFFFFFHex 31 00 (1 to 2147483647) Max. manual feed rateInitial value 00002710 (10000)

Explanation

Sets the maximum speed on machine's side when operating with JOG, STEP operations, and DATUM command.

The max speed is limited by (32767 command unit/unit scan).

Note The setting of this parameter limits the speed changed by override.

No.Address in MC UnitNameTypeUnitImmediate updating
P2AA0355C2h + (AA * 14h)Rapid feed rateDataCommand unit/ minYes
Data configuration Setting range 00000001 to 7FFFFFFHex 00000001 to 7FFFFFFHex 00000001 to 7FFFFFFHex 00000001 to 7FFFFFFHex 00000001 to 7FFFFFFHex 00000001 to 7FFFFFFHex 00000001 to 7FFFFFFHex 00000001 to 7FFFFFFHex 1 to 2147483647)Initial value
31 Rapid feed rate00002710 (10000)

Explanation

Sets the speed (a value with override 100% ) on machine's side for when operating with MOVE, MOVEI commands.

The max speed is limited by (32767 command unit/unit scan).

Note Speed can be changed during operation using override.

No.Address in MC UnitNameTypeUnitImmediate updating
P2AA0455C3h + (AA * 14h)Manual feed rateDataCommand unit/ minYes
Data configuration Setting range00000001 to 7FFFFFFHex00002710 (10000)31 Manual feed rateInitial value
00002710 (10000)

Explanation

Sets the speed (a value with override 100% ) on machine's side for when performing JOG and STEP operations.

The max speed is limited by (32767 command unit/unit scan).

Note Speed can be changed during operation using override.

No.Address in MC UnitNameTypeUnitImmediate updating
P2AA0555C4h + (AA * 14h)Rapid feed acceleration timeDatamsYes
Data configuration Setting rangeInitial value
310000000000 to 0000EA60 Hex (0 to 60000)00000064 (100)
Acceleration time

Explanation

Sets the time required to accelerate from zero to max. rapid feed rate.

Note (1) Enabling S-curve filter causes the delay for the S-curve time constant.
(2) This parameter cannot be changed during operation.

No.Address in MC UnitNameTypeUnitImmediate updating
P2AA0655C5h + (AA * 14h)Rapid feed deceleration timeDatamsYes
Data configuration Setting rangeInitial value
310000000000 to 0000EA60 Hex (0 to 60000)00000064 (100)
Deceleration time

Explanation

Sets the time required to decelerate from max. rapid feed rate to zero.

Note (1) Enabling S-curve filter causes the delay for the S-curve time constant.
(2) This parameter cannot be changed during operation.

No.Address in MC UnitNameTypeUnitImmediate updating
P2AA0755C6h + (AA * 14h)Manual feed acceleration timeDatamsYes
Data configuration Setting range 00000000 to 0000EA60 Hex 00 (0 to 60000)Initial value
00000064 (100)
Acceleration time

Explanation

Sets the time required to accelerate from zero to max. manual feed rate.

Note (1) Enabling S-curve filter causes the delay for the S-curve time constant.

(2) This parameter cannot be changed during operation.
(3) For details of Accel/decel patterns, see 6-1-5 Axis Movement Operation (Page 248).

No.Address in MC UnitNameTypeUnitImmediate updating
P2AA0855C7h + (AA * 14h)Manual feed deceleration timeDatamsYes
Data configuration Setting range 00000000 to 0000EA60 Hex 00 (0 to 60000)Initial value
00000064 (100)
Deceleration time

Explanation

Sets the time required to decelerate from max. manual feed rate to zero.

Note (1) Enabling S-curve filter causes the delay for the S-curve time constant.

(2) This parameter cannot be changed during operation.
(3) For details of Accel/decel patterns, see 6-1-5 Axis Movement Operation (Page 248).

No.Address in MC UnitNameTypeUnitImmediate updating
P2AA0955C8h + (AA * 14h)Rapid feed S-curve filter enabledData---No
Data configuration Setting range 00000000 to 00000001 Hex 00 (0 to 1)Initial value
00000000 (0)
S-curve filter enabled

Explanation

Selects the S-curve filter enable/disable at rapid feed rate.

0:Disabled

1: Enabled

Note For details of Accel/decel patterns, see 6-1-5 Axis Movement Operation (Page 248).

No.Address in MC UnitNameTypeUnitImmediate updating
P2AA1055C9h + (AA * 14h)Manual feed S-curve filter enabledData---Yes
Data configuration Setting range 00000000 to 00000001 Hex 00 (0 to 1)Initial value
00000000 (0)
S-curve filter enabled

Explanation

Selects the S-curve filter enable/disable at manual feed rate.

0:Disabled

1: Enabled

Note For details of Accel/decel patterns, see 6-1-5 Axis Movement Operation (Page 248).

No.Address in MC UnitNameTypeUnitImmediate updating
P2AA1155CAh + (AA * 14h)Rapid feed S-curve time constantDatamsYes
Data configuration Setting range00000000 to 00007530 Hex0 to 30000)Initial value
0000000064 (100)
S-curve time constant

Explanation

Sets the S-curve filter time constant at rapid feed rate.

Note For details of Accel/decel patterns, see 6-1-5 Axis Movement Operation (Page 248).

No.Address in MC UnitNameTypeUnitImmediate updating
P2AA1255CBh + (AA * 14h)Manual feed S-curve time constantDatamsYes
Data configuration Setting range00000000 to 00007530 Hex00000064 (100)
S-curve time constant

Explanation

Sets the S-curve filter time constant at manual feed rate.

Note For details of Accel/decel patterns, see 6-1-5 Axis Movement Operation (Page 248).

Axis-Position Parameters

Note Abbreviation in the No. column: AA = 1 to 32 (axis number)

Abbreviation in the address column: AA = 0 to 31 (axis number - 1)

No.Address in MC UnitNameTypeUnitImmediate updating
P3AA015840h + (AA * 14h)STEP operation travel distanceDataCommand unitYes
Data configuration Setting range00000000 to 7FFFFFFHex0 (0 to 2147483647)Initial value
000003E8 (1000)
Travel distance

Explanation

Sets the travel distance for STEP operation.

No.Address in MC UnitNameTypeUnitImmediate updating
P3AA025841h + (AA * 14h)Positive direction software limitDataCommand unitNo
Data configuration Setting rangeInitial value
310080000000 to 7FFFFFFHex(-2147483648 to 2147483647)7FFFFFF(2147483647)
+ direction software limit

Explanation

Sets the software limit value in the positive direction.

An error will occur when the command value created in every unit scan exceeds this software limit.

The value has to satisfy the following conditions:

P3AA02 [command unit] = + direction upper limit/minimum setting unit

P3AA03 [command unit] = - direction upper limit/minimum setting unit

P3AA03 < P3AA02

Ex) When positioning X-axis (ball screw) in 0.01 mm unit (P5AA01, P5AA2)

within -100 to 100mm , the following values are to be set:

P3AA02 = 100mm/0.01 mm = 10000 [command unit]

P3AA03 = -100mm/0.01 mm = -10000 [command unit]

Note The setting of this parameter is ignored in the following cases:

  • When Software limit enabled/disabled (P3AA04) is set to either 0 or 2.
  • When an origin has not been defined.
  • When Axis feed mode (P5AA07) is set to 0010h (unlimited length).
No.Address in MC UnitNameTypeUnitImmediate updating
P3AA035842h + (AA * 14h)Negative direction software limitDataCommand unitNo
Data configuration Setting rangeInitial value
310080000000 to 7FFFFFFHex (-2147483648 to 2147483647)80000000 (-2147483648)
- direction software limit

Explanation

Sets the software limit value in the negative direction.

An error will occur when the command value created in every unit scan is smaller than this software limit.

(See the setting example of P3AA02: + direction software limit on page 89.)

Note The setting of this parameter is ignored in the following cases:

  • When Software limit enabled/disabled (P3AA04) is set to either 0 or 2.
  • When an origin has not been defined.
  • When Axis feed mode (P5AA07) is set to 0010h (unlimited length).
No.Address in MC UnitNameTypeUnitImmediate updating
P3AA045843h + (AA * 14h)Software limit enabled/disabledData---No
Data configuration Setting range 00000000 to 00000003 Hex 00 (0 to 3)Initial value
00000000 (0)
31
Software limit enabled/disabled

Explanation

Sets whether software limit is enabled or disabled.

0: Disabled in both directions, + and -
1: Enabled only in + direction
2: Enabled only in - direction
3: Enabled in both directions, + and -

Note For details of software limit, see 9-3 Coordinate System (Page 558).

No.Address in MC UnitNameTypeUnitImmediate updating
P3AA055844h + (AA * 14h)Error warning valueDataPulseYes
Data configuration Setting rangeInitial value
310000000000 to 7FFFFFFHex (0 to 2147483647)7FFFFFF (2147483647)
Warning value

Explanation

Sets the No. of error pulses that causes warning.

The error counter warning bit will turn ON if the position error exceeds the value set in this parameter.

Note Setting this parameter to 0 disables warning detection.

No.Address in MC UnitNameTypeUnitImmediate updating
P3AA065845h + (AA * 14h)Position error alarm detection valueDataPulseYes
Data configuration Setting range00000000 to 7FFFFFFHex0 to 2147483647)Alarm detection valueInitial value
7FFFFFF(2147483647)

Explanation

Sets the No. of error pulses that causes alarm.

Note Setting this parameter to 0 disables alarm detection.

No.Address in MC UnitNameTypeUnitImmediate updating
P3AA075846h + (AA * 14h)No. 2 in-position rangeDataPulseYes
Data configuration Setting rangeInitial value
310000000000 to 0000FFFF Hex (0 to 65535)0000FFFF (65535)
No. 2 in-position range

Explanation

Sets the range for turning ON the positioning completed signal of interpolation feed in Stop mode.

Note For details, see 6-1-5 Axis Movement Operation (Page 248).

No.Address in MC UnitNameTypeUnitImmediate updating
P3AA085847h + (AA * 14h)ReservedData---No
Data configurationInitial value
310000000000 (0)
Reserved

Explanation

Reserved

No.Address in MC UnitNameTypeUnitImmediate updating
P3AA095848h + (AA * 14h)Position control switching speedData0.01%Yes
Data configuration Setting rangeInitial value
310000000000 to 00007FFF Hex (0 to 32767)00000000 (0)
Position control switching speed

Explanation

For torque control, specifies the feedback speed at which to return from torque control to position control (when using the TORQUR command) as a percentage of the motor's rated speed.

For speed control, specifies the feedback speed at which to return from speed control to position control (when using the SPEEDR command) as a percentage of the motor's rated speed.

If 0 is set, position control will be returned to at a feedback speed of 0.

Ex) Torque Control

The following example is for a motor rated speed of 3,000 r/min and a position control switching speed of 1000 (in increments of 0.01% , i.e., 10% ).

TORQUE [J01] 100 T100;

TORQUER [J01] T100; Outputs from a torque of 100% to a MOVE [J01] 10000; torque of 0% .

Switches to position control mode when the motor speed reaches 300 r/min or lower (i.e., 3,000 r/min × 10%). After returning to position mode, the system waits for the positioning complete flag to turn ON. When the positioning completed flag turns ON, the next command (MOVE) is executed.

Axis-Origin Parameters

Note Abbreviation in the No. column: AA = 1 to 32 (axis number)

Abbreviation in the address column: AA = 0 to 31 (axis number - 1)

No.Address in MC UnitNameTypeUnitImmediate updating
P4AA015AC0h + (AA * 14h)Origin search methodData---No
Data configuration Setting range 00000000 to 00000003 Hex 00 (0 to 3)Initial value
00000001 (1)
Origin search method

Explanation

Sets the origin search method.

SettingExplanation
0Origin at power ON The motor position at powering ON is automatically defined as the origin. If an origin search is performed in this mode, the starting position of the origin search is defined as an origin.
1Limit reversal Input of the limit input signal during an origin search reverses the operation. After starting an origin search in the origin search start direction at the origin search feed rate, the speed is changed to the origin search approach speed at the rise of the origin proximity input signal (Norrally Open contact). At the rise of the origin determine signal after the fall of the origin proximity input signal, the speed changes to the origin search creep speed to travel for the final interval and finally an origin is established.
22-level speed in 1 direction Origin search is executed only in 1 direction. After starting an origin search in the phase-Z detection direction at the origin search approach speed, the speed changes to the origin search creep speed at the rise of the origin determine signal input to travel for the final interval and an origin is determined. Inputting the limit input signal before inputting the origin determine input signal activates the alarm.
33-level speed in 1 direction Origin search is executed only in 1 direction. After starting an origin search in the phase-Z detection direction at the origin search feed rate, the speed is changed to the origin search approach speed at the rise of the origin proximity input signal (Normally Open contact). At the rise of the origin determine signal input after the fall of the origin proximity signal input, the speed changes to the origin search creep speed to travel for the final interval and finally an origin is established. Inputting the limit input signal before inputting the origin proximity input signal activates the alarm.

Note For details of origin search operations, see SECTION 8 Establishing the Origin (Page 532).

No.Address in MC UnitNameTypeUnitImmediate updating
P4AA025AC1h + (AA * 14h)Origin search start directionData---No
Data configuration Setting rangeInitial value
310000000000 to 00000001 Hex (0 to 1)00000000 (0)
Origin search start direction

Explanation

Sets the origin search start direction for the origin search method 1 (Limit reversal).

0: Same as the phase-Z detection direction

1: Opposite to the phase-Z detection direction

Note The setting of this parameter is ignored in other origin search methods.

No.Address in MC UnitNameTypeUnitImmediate updating
P4AA035AC2h + (AA * 14h)Phase-Z (Phase-C) detection directionData---No
Data configuration Setting rangeInitial value
310000000000 to 00000001 Hex (0 to 1)00000000 (0)
Phase-Z (Phase-C) detection direction

Explanation

Sets the phase-Z (phase-C) detection direction for origin search methods 1, 2, and 3 (other than 0:Origin at power ON).

0: + direction

1: - direction

Note The setting of this parameter is ignored in the origin search method 0: Origin at power ON.

No.Address in MC UnitNameTypeUnitImmediate updating
P4AA045AC3h + (AA * 14h)Origin deceleration methodData---No
Data configuration Setting range 00000000 to 00000001 Hex 00 (0 to 1)Initial value
00000000 (0)
Origin deceleration method

Explanation

Sets whether to use the origin proximity input signal or the limit input signal as the origin deceleration signal for origin search methods 1: Limit reversal and 3: 3-level speed in 1 direction.

0: Uses the origin proximity input signal as the origin deceleration signal.

1: Uses CW and CCW as the origin deceleration signal.

Note The setting of this parameter is ignored in origin search methods 0: Origin at power ON and 2: 2-level speed in 1 direction.

No.Address in MC UnitNameTypeUnitImmediate updating
P4AA065AC5h + (AA * 14h)Origin determine signalData---No
Data configuration Setting range 00000000 to 00000003 Hex 00 (0 to 3)Initial value
00000000 (0)
Origin determine signal

Explanation

Specifies the signal to determine (latch) an origin.

0: Defines the phase-Z (phase-C) as an origin
1: Defines the external input signal 1 as an origin
2: Defines the external input signal 2 as an origin
3: Defines the external input signal 3 as an origin

Note The setting of this parameter is ignored in the origin search method 0: Origin at power ON.

No.Address in MC UnitNameTypeUnitImmediate updating
P4AA075AC6h + (AA * 14h)Origin search feed rateDataCommand unit/ minYes
Data configuration Setting range 00000001 to 7FFFFFFHex 31 00 (1 to 2147483647)Initial value
00002710 (10000)
Feed rate

Explanation-

Sets the speed of the 1st level for 3-level speed origin search.

The maximum speed is limited by (32767 command unit/unit scan).

No.Address in MC UnitNameTypeUnitImmediate updating
P4AA085AC7h + (AA * 14h)Origin search approach speedDataCommand unit/ minYes
Data configuration Setting range00000001 to 7FFFFFFHex000003E8 (1000)Initial value
3100(1 to 2147483647)000003E8 (1000)
Approach speed

Explanation

Sets the speed of the 2nd level for 3-level speed origin search, or sets the speed of the 1st level for 2-level speed origin search.

The maximum speed is limited by (32767 command unit/unit scan).

No.Address in MC UnitNameTypeUnitImmediate updating
P4AA095AC8h + (AA * 14h)Origin search creep speedDataCommand unit/ minYes
Data configuration Setting range 00000001 to 7FFFFFFHex 31 00 (1 to 2147483647)Initial value
00000064 (100)
Creep speed

Explanation

Sets the speed of the 3rd level for 3-level speed origin search, or sets the speed of the 2nd level for 2-level speed origin search.

The maximum speed is limited by (32767 command unit/unit scan).

No.Address in MC UnitNameTypeUnitImmediate updating
P4AA105AC9h + (AA * 14h)Reference (Machine) origin offsetDataCommand unit/ minYes
Data configuration Setting range 31 00 80000000 to 7FFFFFFHex (-2147483648 to 2147483647)Initial value
00000000 (0)
Offset amount

Explanation

Sets the offset amount (except for DATUM command) in an origin search.

(The present position after an origin search is recognized as the position (the value) preset in this parameter.)

Note In the origin search with DATUM command, the setting of this parameter is ignored. Instead, the operand (offset value) in the command is used.

No.Address in MC UnitNameTypeUnitImmediate updating
P4AA115ACAh + (AA * 14h)Origin search final travel distanceDataCommand unit/ minYes
Data configuration Setting range00000000 to 7FFFFFFHex00000000 (0 to 2147483647)Initial value
00000000 (0)
Travel distance

Explanation

Sets the final travel distance in origin searches.

After the rise of the origin determine signal, the axis travels in the direction specified in P4AA03: Phase-Z (Phase-C) detection direction for the distance specified in this parameter.

Note This is the travel distance after the rise of the origin determine signal. Therefore, make sure that the final travel distance does not exceed the positions of limit input signals. (Otherwise, the alarm [3010h: Over travel reverse alarm] will occur.)

No.Address in MC UnitNameTypeUnitImmediate updating
P4AA125ACBh + (AA * 14h)ABS origin offsetDataCommand unitYes
Data configuration Setting rangeInitial value
310080000000 to 7FFFFFFHex(-2147483648 to 2147483647)00000000 (0)
Offset amount

Explanation

Sets the offset amount for ABS origin setting.

When the ABS origin setting bit is turned ON, the compensation value of the absolute encoder is saved to the F-ROM in MC Unit. Simultaneously, the present position on the machine coordinate system is preset to the setting value in this parameter.

Axis-Machine Parameters

Note Abbreviation in the No. column: AA = 1 to 32 (axis number)

Abbreviation in the address column: AA = 0 to 31 (axis number - 1)

No.Address in MC UnitNameTypeUnitImmediate updating
P5AA015D40h + (AA * 14h)UnitsData---No
Data configuration Setting rangeInitial value
310000000000 to 00000003 Hex (0 to 3)00000000 (0)
Units

Explanation

Sets the unit for displaying present positions.

0: mm
1:inch
2: deg
3: pulse

Units for positioning are specified in the parameters P5AA01 and P5AA02.

Ex) Positioning X-axis (ball screw) in 0.01 mm unit.

Positioning Y-axis (turn table) in 0.01 deg unit.

No.Address in MC UnitNameTypeUnitImmediate updating
P5AA025D41h + (AA * 14h)Position command decimal point positionData---No
Data configuration Setting range 00000000 to 00000004 Hex 00 Position command decimal point positionInitial value
00000003 (3)

Explanation

Sets the method of interpreting the position command specified by an immediate value with a decimal point.

0:1
1:0.1
2:0.01
3:0.001
4:0.0001

Note When pulse is selected for the unit, this parameter is treated as 0.

  • When a position command value has a decimal point, processing is as follows:

Ex 1) When the decimal point position of the position command value for X-axis is 1:
MOVE [J01]100.0;
is processed as,
MOVE [J01]100;
Ex 2) When the decimal point position of the X-axis position command value for X-axis is 0.01:
MOVE [J01]100.0;
is processed as,
MOVE [J01]10000;

Note The following notations have the same meaning.

MOVE [J01]100.00;

MOVE [J01]100.000;

MOVE [J01]100.;

If there is no decimal point in the position command value, it is used unaltered.

  • When specifying a position command value with a variable using real data of the data access size, the decimal point position set in this parameter is used for processing.

Ex) When the decimal point position of the position command value for X-axis is 0.01:

MF1000 = 123.4567;

MOVE [J01]MF1000;

is processed as,

MOVE [J01]12345;

No.Address in MC UnitNameTypeUnitImmediate updating
P5AA035D42h + (AA * 14h)Speed command decimal point positionData---No
Data configuration Setting rangeInitial value
310000000000 to 00000004 Hex (0 to 4)00000000 (0)
Speed command decimal point position

Explanation

Sets the method of interpreting the speed command specified by an immediate value with a decimal point.

0:×1
1:×10
2:×100
3:×1000
4:×10000

Ex) When controlling X-axis with task 1 and the speed command decimal point position (P5AA03) for task 1 is × 10 :

MOVEI [J01]100.00 D2000.0 V100.;

is processed as,

MOVEI [J01]100.00 D2000.0 V1000;

Note The following notations have the same meaning when Speed command decimal point position (P5AA03) is × 10 .

Please note that they are treated differently from position command values.

MOVEI [J01]100.00 D2000.0 V1000;

MOVEI [J01]100.00 D2000.0 V100.;
MOVEI [J01]100.00 D2000.0 V100.0;

No.Address in MC UnitNameTypeUnitImmediate updating
P5AA045D43h + (AA * 14h)Command unit/1 machine rotationDataCommand unitNo
Data configuration Setting range 00000001 to 7FFFFFFHex 00002710 (10000)
31 Command unit/1 machine rotation (1 to 2147483647)

Explanation

Sets the resolution of a command for 1 machine rotation.

(The value set here is treated as command units.)

Ex) When positioning X-axis (ball screw with the lead of 10mm ) in 0.01mm unit (P5AA01, P5AA02), the resolution is, 10mm / 0.01mm = 1000 [command unit/1 machine rotation]
Ex) When positioning Y-axis (turn table of 360 deg per rotation) in 0.01 deg unit (P5AA01, P5AA02), the resolution is, 360 deg/0.01 deg = 36000 [command unit/1 machine rotation]

Note

(1) When pulse is selected for the unit, the setting of this parameter is ignored.
(2) When deg is selected for the unit, set the value that can be obtained by (360 × 10^position command decimal point position) .
(3) When the following formula is not satisfied, the alarm [3040h: Gear ratio range error] will occur. 1 / 2147483647 ≤ (P5AA04 × P5AA06) / (value in the parameter 9001h × P5AA05) ≤ 2147483647

No.Address in MC UnitNameTypeUnitImmediate updating
P5AA055D44h + (AA * 14h)Gear ratio 1 (Motor rotation speed)DataRotationNo
Data configuration Setting rangeInitial value
310000000001 to 00989680 Hex (1 to 10000000)00000001 (1)
Gear ratio 1

Explanation

Sets the No. of motor rotations related to the gear ratio between motor and machine.

Note

(1) When pulse is selected for the unit, the setting of this parameter is ignored.
(2) When the following formula is not satisfied, the alarm 3040h: Gear ratio range error will occur. 1 / 2147483647 ≤ (P5AA04 × P5AA06) / (value in the parameter 9001h × P5AA05) ≤ 2147483647
(3) For details of the concept of setting gear ratio, see 4-2-4 Concept of Parameters (Page 103).

No.Address in MC UnitNameTypeUnitImmediate updating
P5AA065D45h + (AA * 14h)Gear ratio 2 (Machine rotation speed)DataRotationNo
Data configuration Setting range 00000001 to 00989680 Hex 00000001 (1 to 10000000)Initial value
31 Gear ratio 200000001 (1)

Explanation

Sets the No. of machine rotations related to the gear ratio between motor and machine.

Note

(1) When pulse is selected for the unit, the setting of this parameter is ignored.
(2) When the following formula is not satisfied, the alarm 3040h: Gear ratio range error will occur. 1 / 2147483647≤ (P5AA04× P5AA06) / (value in the parameter 9001h× P5AA05) ≤ 2147483647
(3) For details of the concept of setting gear ratio, see 4-2-4 Concept of Parameters (Page 103).

No.Address in MC UnitNameTypeUnitImmediate updating
P5AA075D46h + (AA * 14h)Axis feed modeData---No
Data configuration31 07 04 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Initial value
000000000 (0)

Explanation

BitFunction and explanation
00 to 03Reserved
04 to 07Sets the method of managing the coordinate system for position commands. 0: Limited length (On the mechanical configuration, the axis has traveling limits.) 1: Unlimited length (On the mechanical configuration, the axis does not have traveling limits.)
08 to 31Reserved

Note For details of coordinate systems corresponding to modes, see 9-3 Coordinate System (Page 558).

No.Address in MC UnitNameTypeUnitImmediate updating
P5AA085D47h + (AA * 14h)External input signal select 1Data---Yes
Data configuration31 24 16 08 00WInitial value00000000 (0)

Explanation

  • Specifies the external input signal for each function at a latch request.
BitFunction and explanation
00 to 07Z: Specifies the latch input signal for MOVEI command (Interrupt feeding).
08 to 15Y: Specifies the latch input signal for MOVELINK command (Link operation start).
16 to 23X: Specifies the latch input signal for CAMBOX command (Cam synchronous start).
24 to 31W: Specifies the latch input signal for SYNC command (Trail synchronization start).
  • Setting range: 00 to 03 Hex (0 to 3)

00 Hex (0): Phase-Z (Phase-C) signal is used as the latch request signal.
01 Hex (1): External input signal 1 is used as the latch request signal.
02 Hex (2): External input signal 2 is used as the latch request signal.
03 Hex (3): External input signal 3 is used as the latch request signal.

Note To set this parameter, the input terminal has to be enabled in the servo parameter Pn511.

(It is allocated according to the initial setting; however, it will require special attention when the user has customized the setting of the parameter.)

No.Address in MC UnitNameTypeUnitImmediate updating
P5AA095D48h + (AA * 14h)External input signal select 2Data---Yes
Data configurationInitial value
3116150000000000 (0)
Variable typeAddress

Explanation

  • Specifies the external input signal for each function at a latch request.
BitFunction and explanation
00 to 07X: Specifies the latch input signal for LATCH command (Present position latch).
08 to 31Reserved
  • Setting range: 00 to 03 Hex (0 to 3)

00 Hex (0): Phase-Z (Phase-C) signal is used as the latch request signal.
01 Hex (1): External input signal 1 is used as the latch request signal.
02 Hex (2): External input signal 2 is used as the latch request signal.
03 Hex (3): External input signal 3 is used as the latch request signal.

Note To set this parameter, the input terminal has to be enabled in the servo parameter Pn511.

(It is allocated according to the initial setting; however, it will require special attention when the user has customized the setting of the parameter.)

Zone Parameters

Note Abbreviation in the No. column: ZZ = 1 to 32 (axis number)

Abbreviation in the address column: ZZ = 0 to 31 (axis number - 1)

No.Address in MC UnitNameTypeUnitImmediate updating
P6ZZ015FC0h + (ZZ * 2h)Zone bit reference addressData---No
Data configuration31 16 15 00Variable type AddressInitial value
00000000 (0)

Explanation

Set the address for the variable (such as the feedback present position) that is to be monitored.

The monitored variable is long word (32 bits) data.

The zone bit set in P6ZZ02 will turn ON when the variable value set here is within the zone data range (specified in P00012).

BitFunction and explanation
00 to 15Address Set the leading address for the specified variable. Refer to the variable type for the address range. 0000 to 0FFF (0 to 4,095)
16 to 31Variable type Set the variable area to be referenced by the zone bit. 0001: System variable (address range: 0000 to 07FE Hex) 0002: Global general-purpose variable (address range: 0000 to 1FFE Hex) 0003: Input variable (address range: 0000 to 0FFE Hex) 0004: Output variable (address range: 0000 to 0FFE Hex) 0005: Position data (address range: 0000 to 27FF Hex) 0006: Task variable 1 (address range: 0000 to 007E Hex) 0007: Task variable 2 (address range: 0000 to 007E Hex) 0008: Task variable 3 (address range: 0000 to 007E Hex) 0009: Task variable 4 (address range: 0000 to 007E Hex) 000A: Task variable 5 (address range: 0000 to 007E Hex) 000B: Task variable 6 (address range: 0000 to 007E Hex) 000C: Task variable 7 (address range: 0000 to 007E Hex) 000D: Task variable 8 (address range: 007E Hex)

Example: To reference position data PL0002, set P6ZZ01 to 0050002 Hex.

No.Address in MC UnitNameTypeUnitImmediate updating
P6ZZ025FC1h + (ZZ * 2h)Zone bit output addressData---No
Data configuration31 16 15 00Address BitInitial value
00000000 (0)

Explanation

  • Set the zone bit to output the monitoring results (ON/OFF).

  • Zone bits are specified by an address and a bit. Only the output variable area can be referenced within the range of the word (16 bits) data.

BitFunction and explanation
00 to 15Address Set the bit to be turned ON and OFF. 0000 to 000F Hex: 0000 corresponds to bit 0, and 000F cor-re-sponds to bit 15.
16 to 31Address Set the output variable address. 0B00 to 0FFF Hex

To set bit 10 of output variable 0W0010 as a zone bit, set P6ZZ02 to 0010000A Hex.

4-2-4 Concept of Parameters

Gear Ratio

This section explains the concept of the gear ratio.

In case of position command:

In a machine configuration where the motor axis rotation (m) results in the machine axis rotation (n), set the gear ratio as shown below:

[P5AA05: Gear ratio 1 (Motor rotation speed)] = m

[P5AA06: Gear ratio 2 (Machine rotation speed) = n]

Example)

If P5AA05 = 2 and P5AA06 = 1, giving a command to rotate the machine axis at 1000 r/min will make the motor axis rotate at 2000 r/min.

In cases of Speed Command and Torque Command:

Only the SPEED and TORQUE commands can control speed and torque respectively. These commands are for the motor axes, so there is no need to set the gear ratio.

Example)

Even when P5AA05 = 2 and P5AA06 = 1 are set, giving a command to rotate at 1000r/min with the SPEED command will make the motor axis rotate at 1000r/min.

Relations between Command Unit and Pulses

The relations between the command unit on the machine side and pulses on the motor side can be described by the following formulas:

9001h [No. of encoder pulses/ Pulses [on Motor] = Command unit [on Machine] × One motor rotation] × P5AA05 [on Motor] P5AA04 [Command unit/One machine rotation] × P5AA06 [on Machine] 
P5AA04 [Command unit/One machine rotation] Command unit [on Machine] = Pulses [on Motor] × P5AA06 [on Machine] 9001h [No. of encoder pulses/ One motor rotation] × P5AA05 [on Motor] 

If the following formula cannot be satisfied, the alarm [3040h: Gear ratio range error] will occur.

1/2147483647 ≤ (P5AA04 × P5AA06)/(9001h × P5AA05) (fraction to be reduced) ≤ 2147483647

Command unit limit:

The maximum value of the command unit system has to satisfy the following formula because pulse command system is described with the range in 32-bit:

Command unit limit ≤ Command unit position ≤ Command unit limit

P5AA04 [Command unit/One machine rotation] Command unit limit [on machine] = 2147483647 × P5AA06 [on Machine] [on Motor] 9001h [No. of encoder pulses/ One motor rotation] × P5AA05 [on Motor] 

Speed

When specifying a position exceeding the value obtained by the above formula in a program, the alarm [2009h: Position specification error] will occur.

Additionally, the upper limit of the [Command unit limit], 2147483647, will limit the exceeding value.

The speed unit for the position command is the Command unit/min at machine axes.

The overview of the relations between the machine axis speed [command unit/min] and motor axis rotations [r/min] can be described by the following formula.

Motor axis speed [Motor rev/min] = axis speed [Command unit/min]P5AA04 [Command unit/One machine rotation] × 5AA05 [on Motor]P5AA06 [on Machine]

Minimum speed to avoid intermittent output:

Minimum speed command is 1 command unit/unit scan. When outputting slower speed than this, the output will be intermittent on the waveform.

Minimum speed [Command unit/min] = 1 [Command unit/ms] × 60 [sec/min] × 1000 [ms/sec] × unit scan time [ms]

Precision of feedback speed 1 and 2:

Precision of feedback speed 1 and 2 output to the system variable is as follows:

  • Precision of feedback speed 1

Feedback speed, based on the unit [pulses/ms], is ultimately converted into the divisions of the minimum speed mentioned above, and will be output.

Therefore, the minimum speed will be the resolution of the feedback speed 1.

Ex) When the unit cycle is 4 [ms]:

$$ \begin{array}{l} \text {M i n i m u m s p e e d} [ \text {c o m m a n d u n i t / m i n} ] = 1 \times 6 0 \times 1 0 0 0 \times 4 \ = 2 4 0 0 0 0 [ \text {c o m m a n d u n i t / m i n} ] \ \end{array} $$

From the above, the feedback speed 1 will change in the unit of 240000 [command units/min].

  • Precision of feedback speed 2

Precision of feedback speed [r / min] = 1 [pulses/ms] × 1000× 60 / 9001h [No. of encoder pulses/motor rotation])/unit cycle [ms]

Ex) When encoder resolution is 16 bits [10000h pulses/r] and unit cycle is 4 [ms]:

$$ \begin{array}{l} \text {P r e c i s i o n} = 1 \times 1 0 0 0 \times 6 0 / 6 5 3 6 / 4 \ = 0. 2 2 8 [ \mathrm {r} / \mathrm {m i n} ] = 0. 2 2 [ \mathrm {r} / \mathrm {m i n} ] \ \end{array} $$

From the above, the feedback speed 2 will change in the unit of 0.22 [r/min].

Setting rated 1000 [r/min] when the unit is [%] , it will be in the unit of 0.22/ 1000 = 0.02% .

Speed indication for not causing [A94] when inputting the limit sensor signal:

When the limit sensor signal is input to the servo driver during rotations, the warning [A94: Data Setting Warning] may occur on NS115 due to communications delay. There is no deviation in positioning, yet the speed that causes the alarm is to be explained in the following:

Speed that causes A94 [Command unit/min] = Speed command MAX [Pulse]/delay in Communications cycle [ms] × gear reverse conversion [Command unit/pulse] × 60 [sec/min] × 1000 [ms/sec]

  • Speed command MAX: In case of NS115, it is fixed at 32767[pulse].
  • Delay in Communications cycle: No. of times until MC Unit detects the limit sensor signal input (to be converted to Communications cycle) × communications cycle

  • When Communications cycle: Unit Cycle = 1:1, 9 scans

  • When Communications cycle: Unit Cycle = 1:2, 11 scans

Note The delay of the NS115, 2 scans for the uplink and 1 scan for the downlink, is added to the value showed in 1-7 Performance.

  • Gear reverse conversion: Previous Pulse a Command unit conversion formula

Example)

When Communications cycle = 1 ms, Unit Cycle = 2 ms (1:2), No. of encoder pulses = 65536

Command unit/One machine rotation = 10000, and gear ratio 1 = gear ratio 2 = 1:

The speed that causes A94 = 32767/11*(10000/65536) × 60 × 1000 = Approximately 27271895 [Command unit/min]

4-2-5 Timing that Enables Transferred System Parameters

Note Make sure to turn the MC Unit power OFF once, and then ON again after system parameters have been transferred. The unit parameters and machine parameters will not change unless the power is turned back ON.

The parameters that are marked 'Yes' on the immediate updating columns can be changed without the power OFF/ON.

  • A part of motion task parameters
  • Axis - speed parameters
    A part of Axis - position parameters
  • A part of Axis - machine parameters

4-3 Variables

There are six types of MC Unit variables as shown below:

  • Position data
  • System variables
  • Global general variables
  • Input variables
    Output variables
  • Task variables

4-3-1 Overview of Variables

NamePurposeSizeBackup to FLASH ROMR/W
Global variables
Position DataData to indicate positions.10240 positions (40960 byte)YESR/W
System vari-ablesStatus of MC Unit such as operating modes, error logs, etc.2048 words (4096 byte)NOR
Global general variablesCan be accessed from all the tasks, and used for Communicating data between oper-ations and tasks.8192 words (16384 byte)NOR/W
Input variablesStatus of the input from CPU Unit or MECHATROLINK-II devices.4096 words (8192 byte)NOR/W
Output variablesOutputs for CPU Unit or MECHATROLINK-II are executed from a program.4096 words (8192 byte)NOR or R/W
Variables exclusively for tasks
Task variablesCan be used only in each task, and are used as workspace, etc. during operations.128 words × 8 tasks (2048 byte)NOR/W

Note

(1) For Position Data, see 4-4 Position Data (Page 107).
(2) For System variables, see 4-5 System Variables (Page 111).
(3) For Input variables and Output variables, see 4-6 I/O Variables (Page 160).
(4) CAM Data will not be treated as a variable.

Rules for Writing Variables

Use the following format to write variables.

Put # in front of variables.

#VThhhh[b]

V: Variable type

T: Data access type

hhh: Addresses of Data (in hexadecimal)

b: Bit number for bit-type data access (in hexadecimal)

Example)

PL0000 = 10000;

MOVE[J01]#PL0000;

Variable Type and Address Range

Use 4-digit hexadecimal notation for data addresses.

Data addresses indicate the first address of integer data regardless of the access type.

TypeNotationAddress range
Position DataPLhhhhPL0000 - PL27FF
System variablesS*hhhSW0000 - SW07FF
Global general variablesM*hhhMW0000 - MW1FFF
Input variablesI*hhhIW0000 - IW0FFF
Output variablesO*hhhOW0000 - OW0FFF
Task variablesD*hhhDW0000 - DW007F

Note

Task variables can use 128 words in each task.

Data Access Type

There are four data access types as shown in the following table.

TypeNotationNumerical rangeRemark
Bit typeB1 (ON), 0 (OFF)
Integer typeW-32768 to +32767 (8000 Hex to 7FFF Hex)Signed word data (16-bit)
Double-length integer typeL-2147483648 to +2147483647 (80000000 Hex to 7FFFFFF Hex)Signed double-length data (32-bit)
Real number typeF±(1.175E-38 to 3.402E+38), 0Single-precision floating decimal point (32-bit)

Precautions When Accessing the Same Address with Different Access Type

The variables at the same address share the same physical space.

The beginning of the global general variableBit typeInteger typeDouble-length integer typeReal number type
MB0000bMW0000ML0000MF0000
MB0001bMW0001
MB0002bMW0002ML0002MF0002
MB0003bMW0003

Note

Odd-number addresses cannot be specified with Double-length integer type or Real number type. Make sure to specify even-number addresses. The position data can be specified with odd-numbers.

Leading address of position data

Double-length integer type
PL0000
PL0001
PL0002
PL0003

Followings are the examples:

(1) ML0000 = 1234 --- Write 1234 in the Double-length integer type.
(2) MF0000 = 1234 --- Write 1234 in the real number type.

The variables of the same address share the same physical space even though the types are different. Therefore, the memory image after execution of (1) and (2) will be as described in the table below. If the same address is accessed using a different access type, a different value will be read. So it needs special attention.

CaseOriginal valueIn hexadecimalDisplay in different type
(1)1234000004D2hex1.729202E-042 (Real number type)
(2)1.234000E+003449A4000hex1150959616 (Integer type)

Bit Specification

If the bit type is selected for data access, the bit position in 16-bit word data needs to be specified with Bit No.

Example) "MB10002" indicates the second bit of MW1000.

There are 10240 of position data that can be used. In a motion program, positioning is executed by specifying a position directly or by specifying a position in the position data (indirect specification). Position data is transferred between an MC Unit and the Support Tool by using the Support Tool (MC-Miel) or IOWR/IORD instructions.

4-4-1 Position Data Address

Specify position data at the following addresses in MC Unit memory. Specify the addresses in hexadecimal when using IOWR/IORD instructions.

DataIORD/IOWR control Address rangeNo. of transferred words
Position Data0000 to 27FF Hex (deci-mal:0000 to10239)1 word: 0002 Hex, 2 words: 0004 Hex, 3 words: 0006 Hex, 4 words: 0008 Hex

In MC Unit programming, the position data address is specified as a type of variable as shown below:

PL

: Specify 0000 to 27FF as the address No.

(Example)

MOVE_[J1]#PL01FF

4-4-2 Position Data Configuration

Each position data is comprised of two words (4 bytes). Though the position data of the MC Unit does not have a decimal point decimal, however, a decimal point is added to the data based on the setting of Position command decimal point position (P5AA02) in Axis-machine parameters.

Data Range

-2147483648 to +2147483647 (80000000 Hex to 7FFFFFFHex)

1500
Position Data (Signed 32-bit, lower 16 bits)
Position Data (Signed 32-bit, upper 16 bits)

Example 1: Position data 12345 (00003039 Hex)

1512110807040300
j+03039
j+10000

When Units (P5AA01) of Axis-machine parameters is 0: mm and Position command decimal point position (P5AA02) is 3: 0.001, the position data 12345 is handled as 12.345 mm.

Example 2: Position data -12345 (FFFFFFC7 Hex)

1512110807040300
j+0CFC7
j+1FFFF

When Units (P5AA01) of Axis-machine parameters is 1: inch and Position command decimal point position (P5AA02) is 2: 0.01, the position data -12345 is handled as -123.45 inch.

4-4-3 Indirect Specification

Indirect specification can be used only for position data.

1,2,3... 1. Add the symbol @ in front of position data, indicating to use the position data specified by the stored data (address).

  • As shown below, @PL0001 specifies the stored data 0012 of the position data PL0100.

OMRON CJ1W-MCH71 - 4-4-3 Indirect Specification - 1

  1. Indirect specification can be also used as an operand of a command.

Example 1: MOVE_[J1] @PL0100 (= MOVE_[J1]#PL0012)

Example 2: In the above example, #PL0001 = @PL0100+1 has the same meaning as #PL0001 = #PL0012+1.

  1. Indirect specification can be used for writing as well (Unit Ver. 3.0 or later).

Example: In the above example, @PL0001 = 1 has the same meaning as P0100 = 1.

Indirect specification is always written on the left side (for @PL001 = 1, @PL001 is the left side) for writing.

Indirect specification for writing is enabled only when combined with the following operators.

ClassificationFunctionCommand
Simple ArithmeticAssign=
Simple ArithmeticAdd+
Simple ArithmeticSubtract
Simple ArithmeticMultiply*
Simple ArithmeticDivide/
Simple ArithmeticQuotient%
Simple ArithmeticExponent^
Logic OperationOR (Logical OR)|
Logic OperationXOR (Logical exclusive OR)~
Logic OperationAND (Logical AND)&
Logic OperationNOT (Reverse)!

Example: @PL0001 = 1000/30;

@PL0002 = #PL0002*10;

Example of incorrect usage: @PL0001 = SIN#MF0010;← Functions cannot be used.

  1. The address range check is performed when executing the command. If the specified address is outside of the range, the alarm [2003h: Variable address error] will occur and the program will be stopped.

4-4-4 Methods Used to Read, Write and Transfer Position Data

Position data is created or transferred with the following methods.

No.MethodRange
1Position data is read or written using the IORD or IOWR instruction.Individual
2Data can be loaded and saved using the Support Tool.All or individual

OMRON CJ1W-MCH71 - 4-4-4 Methods Used to Read, Write and Transfer Position Data - 1

4-5 System Variables

4-5-1 System Variables

System variables are all in read-only area; they cannot be written.

When reading with the IORD instruction, the size is always two words (4 bytes).

Variable AddressIORD AddressGroupNameDescriptionUnitUpdate timing
SW00003000UnitUnit Cycle TimeOutputs unit cycle time (SH4).0.5 msWhen power is turned ON
SW0001UnitMECHATROLINK-II Communication CycleOutputs the MECHATROLINK-II Com-munication Cycle.0.5 msWhen power is turned ON
SW00023001UnitOperation ModeOutputs the MC Unit operation mode 0: RUN mode 1: CPU mode 2: Tool modeNilWhen operation mode is changed
SW0003Product ID (Supported in Unit Ver. 3.0 or later)Bit 00 0: CS1W-MCH71 Unit Ver. 2.0 or earlier 1: Other unit versionsNilWhen power is turned ON
SW00043002UnitForced Stop Request from the Tool: Detail of the requestIndicates forced stop request from the tool. Bit00: Axis: task stop Bit01: Axis, task stop cancel Bit06: Cam Data buffer copy Bit07: Program buffer copyNilFINS: Task Control setting
SW0005Forced Stop Request from the Tool: Object 1Indicates forced stop request from the tool. Bit00-07: 0/1 Motion task 1-8With/without forced stop request Bit08: 0/1 ReservedNilFINS: Task Control Setting
SW00063003Forced Stop Request from the Tool: Object 2Indicates forced stop request from the tool. Bit00-31: 0/1 Axis 1-32With/without forced stop requestNilFINS: Task Control Setting
SW0007
SW00083004ReservedReservedReservedReserved
SW0009Status of Forced Stop from the Tool: Object 1Indicates status of forced stop from the tool. Bit00-07: 0/1 Motion task 1-8in progress/being stopped Bit08: 0/1 ReservedNilUnit Scan
SW000A3005Status of Forced Stop from the Tool: Object 2Indicates status of forced stop from the tool. Bit00-31: 0/1 Axis 1-32in progress/being stoppedNilUnit Scan
SW000B
SW000C3006UnitNo. of Unit Scan Execu-tionsIndicates the No. of unit scan execu-tions.TimesUnit Scan
SW000D
SW000E3007UnitNo. of Self-diagnosis executionsIndicates the No. of self-diagnosis execu-tions in background.TimesWhen executing Self-diagnosis
SW000F
SW00103008UnitError log: No. of stored recordsOutputs No. of error logs after the power has been turned ON. 0-20RecordError occurrence
SW0011Error log: No. of actual recordsOutputs No. of error logs after the power has been turned ON. (For system management) 0-64000 The most recent error is stored in the error log whose number is the remain-der of the value output here divided by 20.RecordError occurrence
SW00123009UnitError log 1: Error codeOutputs error code of the Error logNilError occurrence
SW0013Error log 1: Detailed InformationOutputs detailed information of Error logNilError occurrence
SW0014300AError log 1: Minute, SecondOutputs the time when error occurred (Minute, Second)Minute, Second (BCD)Error occurrence
SW0015Error log 1: Day of the Month, HourOutputs the time when error occurred (Day of the Month, Hour)Day of the Month, Hour (BCD)Error occurrence
SW0016300BError log 1: Year, MonthOutputs the time when error occurred (Year, Month)Year, Month (BCD)Error occurrence
SW0017ReservedReservedReservedReserved
SW0018300CUnitError log 2:Same as for Error log 1Same as for Error log 1Same as for Error Log 1
SW0019
SW001A300D
SW001B
SW001C300E
SW001DReservedReservedReservedReserved
SW001E300FUnitError log 3:Same as for Error log 1Same as for Error log 1Same as for Error log 1
SW001F
SW00203010
SW0021
SW00223011
SW0023ReservedReservedReservedReserved
SW00243012UnitError log 4:Same as for Error log 1Same as for Error log 1Same as for Error log 1
SW0025
SW00263013
SW0027
SW00283014
SW0029ReservedReservedReservedReserved
SW002A3015UnitError log 5:Same as for Error log 1Same as for Error log 1Same as for Error log 1
SW002B
SW002C3016
SW002D
SW002E3017
SW002FReservedReservedReservedReserved
SW00303018UnitError log 6:Same as for Error log 1Same as for Error log 1Same as for Error log 1
SW0031
SW00323019
SW0033
SW0034301A
SW0035ReservedReservedReservedReserved
SW0036301BUnitError log 7:Same as for Error log 1Same as for Error log 1Same as for Error log 1
SW0037
SW0038301C
SW0039
SW003A301D
SW003BReservedReservedReservedReserved
SW003C301EUnitError log 8:Same as for Error log 1Same as for Error log 1Same as for Error log 1
SW003D
SW003E301F
SW003F
SW00403020
SW0041ReservedReservedReservedReserved
SW00423021UnitError log 9:Same as for Error log 1Same as for Error log 1Same as for Error log 1
SW0043
SW00443022
SW0045
SW00463023
SW0047ReservedReservedReservedReserved
SW00483024UnitError log 10:Same as Error log 1Same as for Error log 1Same as for Error log 1
SW0049
SW004A3025
SW004B
SW004C3026
SW004DReservedReservedReservedReserved
SW004E3027UnitError log 11:Same as Error log 1Same as for Error log 1Same as for Error log 1
SW004F
SW00503028
SW0051
SW00523029
SW0053ReservedReservedReservedReserved
SW0054302AUnitError log 12:Same as for Error log 1Same as for Error log 1Same as for Error log 1
SW0055
SW0056302B
SW0057
SW0058302C
SW0059ReservedReservedReservedReserved
SW005A302DUnitError log 13:Same as for Error log 1Same as for Error log 1Same as for Error log 1
SW005B
SW005C302E
SW005D
SW005E302F
SW005FReservedReservedReservedReserved
SW00603030UnitError log 14:Same as for Error log 1Same as for Error log 1Same as for Error log 1
SW0061
SW00623031
SW0063
SW00643032
SW0065ReservedReservedReservedReserved
SW00663033UnitError log 15:Same as for Error log 1Same as for Error log 1Same as for Error log 1
SW0067
SW00683034
SW0069
SW006A3035
SW006BReservedReservedReservedReserved
SW006C3036UnitError log 16:Same as for Error log 1Same as for Error log 1Same as for Error log 1
SW006D
SW006E3037
SW006F
SW00703038
SW0071ReservedReservedReservedReserved
SW00723039UnitError log 17:Same as for Error log 1Same as for Error log 1Same as for Error log 1
SW0073
SW0074303A
SW0075
SW0076303B
SW0077ReservedReservedReservedReserved
SW0078303CUnitError log 18:Same as for Error log 1Same as for Error log 1Same as for Error log 1
SW0079
SW007A303D
SW007B
SW007C303E
SW007DReservedReservedReservedReserved
SW007E303FUnitError log 19:Same as for Error log 1Same as for Error log 1Same as for Error log 1
SW007F
SW00803040
SW0081
SW00823041
SW0083ReservedReservedReservedReserved
SW00843042UnitError log 20:Same as for Error log 1Same as for Error log 1Same as for Error log 1
SW0085
SW00863043
SW0087
SW00883044
SW0089ReservedReservedReservedReserved
SW008A3045Unit(Unit Ver. 3.0 or later)Zone setting status bits (No. 1 to No. 16)Outputs whether the zone bit settings (reference value and output address) are correct. No. 1 corresponds to bit 0, and No. 16 corresponds to bit 15. 0: The zone settings (reference value and output address) are incorrect. 1: The zone settings (reference value and output address) are correct.NilWhen power is turned ON.
SW008BZone setting status bits (No. 17 to No. 32)Outputs whether the zone bit settings (reference value and output address) are correct. No. 17 corresponds to bit 0, and No. 32 corresponds to bit 15. 0: The zone settings (reference value and output address) are incorrect. 1: The zone settings (reference value and output address) are correct.NilWhen power is turned ON.
SW008C3046
SW008D
SW008E3047
SW008F
SW00903048UnitClock Data: Minute, SecondOutputs the clock Data (Minute, Second) received from CPU.Minute, Second (BCD)In the process of refresh service
SW0091UnitClock Data: Day of the Month, HourOutputs the clock Data (Day of the Month, Hour) received from CPU.Day of the Month, Hour (BCD)In the process of refresh service
SW00923049UnitClock Data: Year, MonthOutputs the clock Data (Year, Hour) received from CPU.Year, Month (BCD)In the process of refresh service
SW0093UnitDay of the weekOutputs the Clock Data (Day of the Week) received from CPU.Day of the week (BCD)In the process of refresh service
SW0094304AReservedReserved
SW0095ReservedReserved
SW0096304BUnitReservedReservedReservedReserved
SW0097
SW0098304CUnitRelease date: Main side: Month, Day Release date: Main side: Year, Tracking codeDisplays the system release date (month and day) on the main side. Displays the system release date (year and Tracking code) on the main side.Month, day (BCD) Year, Tracking code (BCD)When power is turned ON. When power is turned ON.
SW0099
SW009A304DUnitRelease date: Sub side: month, day Release date: Sub side: Year, Tracking codeDisplays the system release date (month and day) on the sub side. Displays the system release date (year and Tracking code) on the sub side.Month, day (BCD) Year, Tracking code (BCD)When power is turned ON. When power is turned ON.
SW009B
SW009C304EUnitReservedReservedReservedReserved
SW009D
SW009E304F
SW009F
SW00A03050
SW00A1
SW00A23051UnitTotal No. of programsOutputs total No. of programs 256ProgramAlways
SW00A3Remaining No. of pro-gramsOutputs the remaining No. of programs that can be saved 0-256ProgramAlways
SW00A43052Total memory capacity of the program areaOutputs total memory capacity of the program area 2,097,152 (2MB)ByteAlways
SW00A5
SW00A63053Remaining memory capacity of the program areaOutputs remaining memory capacity of the program area 0-2,097,152 (2MB)ByteAlways
SW00A7
SW00A83054Total quantities of Cam DataOutputs the total quantities of Cam Data 32SetAlways
SW00A9Remaining Quantities of Cam DataOutputs the remaining quantities of Cam Data that can be stored 0-32SetAlways
SW00AA3055Total memory capacity of Cam Data areaOutputs the whole memory capacity of Cam Data area 131,072 (128KB)ByteAlways
SW00AB
SW00AC3056Remaining memory capacity of Cam Data areaOutputs the remaining memory capacity of Cam Data area 0-131,072 (128KB)ByteAlways
SW00AD
SW00AE3057UnitAllocation valid axisIndicates the axis whose allocation is valid and recognized by MC Unit. 0-31bit: 1st to 32nd axis 0: invalid/1: validNilWhen power is turned ON
SW00AF

Motion Tasks

Variable AddressIORD AddressGroupNameDescriptionUnitUpdate timing
SW00B03058Motion TaskTask status 1: Main pro-gram No.Outputs the program No. of the Main Program currently being executed 0-499, 2000No.When a program is started
SW00B1Task status 1: Sub-pro-gram No.Outputs the program No. of the Sub-program currently being executed 500-999No.When GOSUB command is being executed
SW00B23059Task status 1: Single execution command block No.1Outputs the block No. of single execu-tion command currently being executed 0 (Not executing), 1-800BlockWhen single execu-tion command is stepping
SW00B3Task status 1: Multiple execution command block No.1Outputs the block No. of multiple execu-tion command currently being executed 0 (Not executing), 1-800BlockWhen multiple execution command is stepping
SW00B4305ATask status 1: Single execution command block No.2Outputs the block No. of single execu-tion command in each parallel branch (Not executing), 1-800BlockWhen single execu-tion command is stepping
SW00B5Task status 1: Multiple execution command block No.2Outputs the block No. of multiple execu-tion command in each parallel branch 0 (Not executing), 1-800BlockWhen multiple execution command is stepping
SW00B6305BTask status 1: Single execution command block No.3Outputs the block No. of single execu-tion command in each parallel branch 0 (Not executing), 1-800BlockWhen single execu-tion command is stepping
SW00B7Task status 1: Multiple execution command block No.3Outputs the block No. of multiple execu-tion command in each parallel branch 0 (Not executing), 1-800BlockWhen multiple execution command is stepping
SW00B8305CTask status 1: Single execution command block No.4Outputs the block No. of single execu-tion command in each parallel branch 0 (Not executing), 1-800BlockWhen single execu-tion command is stepping
SW00B9Task status 1: Multiple execution command block No.4Outputs the block No. of multiple execu-tion command in each parallel branch 0 (Not executing), 1-800BlockWhen multiple execution command is stepping
SW00BA305DTask status 1: Single execution command block No.5Outputs the block No. of single execu-tion command in each parallel branch 0 (Not executing), 1-800BlockWhen single execu-tion command is stepping
SW00BBTask status 1: Multiple execution command block No.5Outputs the block No. of multiple execu-tion command in each parallel branch 0 (Not executing), 1-800BlockWhen multiple execution command is stepping
SW00BC305ETask status 1: Single execution command block No.6Outputs the block No. of single execu-tion command in each parallel branch 0 (Not executing), 1-800BlockWhen single execu-tion command is stepping
SW00BDTask status 1: Multiple execution command block No.6Outputs the block No. of multiple execu-tion command in each parallel branch 0 (Not executing), 1-800BlockWhen multiple execution command is stepping
SW00BE305FTask status 1: Single execution command block No.7Outputs the block No. of single execu-tion command in each parallel branch 0 (Not executing), 1-800BlockWhen single execu-tion command is stepping
SW00BFTask status1: Multiple execution command block No.7Outputs the block No. of multiple execu-tion command in each parallel branch 0 (Not executing), 1-800BlockWhen multiple execution command is stepping
SW00C03060Task status 1: Single execution command block No.8Outputs the block No. of single execu-tion command in each parallel branch 0 (Not executing), 1-800BlockWhen single execu-tion command is stepping
SW00C1Task status1: Multiple execution command block No.8Outputs the block No. of multiple execu-tion command in each parallel branch 0 (Not executing), 1-800BlockWhen multiple execution command is stepping
SW00C23061Breakpoint program number (Unit Ver. 3.0 and later)Outputs the program No. for which breakpoint is set. 0-999NumberWhen breakpoint is set or cleared
SW00C3Breakpoint block num-ber (Unit Ver. 3.0 and later)Outputs the block No. for which break- point is set. 0 (No breakpoint set), 1-800BlockWhen breakpoint is set or cleared
SW00C43062ReservedReservedReservedReserved
SW00C5
SW00C63063
SW00C7
SW00C83064
SW00C9
SW00CA3065
SW00CB
SW00CC3066
SW00CD
SW00CE3067
SW00CF
SW00D03068Motion taskTask status 2:Same as for Task status 1Same as for Task status 1Same as for Task status 1
SW00D1
SW00D23069
SW00D3
SW00D4306A
SW00D5
SW00D6306B
SW00D7
SW00D8306C
SW00D9
SW00DA306D
SW00DB
SW00DC306E
SW00DD
SW00DE306F
SW00DF
SW00E03070
SW00E1
SW00E23071
SW00E3
SW00E43072ReservedReservedReservedReserved
SW00E5
SW00E63073
SW00E7
SW00E83074
SW00E9
SW00EA3075
SW00EB
SW00EC3076
SW00ED
SW00EE3077
SW00EF
SW00F03078Motion taskTask status 3:Same as for Task status 1:Same as for Task status 1Same as for Task status 1
SW00F1
SW00F23079
SW00F3
SW00F4307A
SW00F5
SW00F6307B
SW00F7
SW00F8307C
SW00F9
SW00FA307D
SW00FB
SW00FC307E
SW00FD
SW00FE307F
SW00FF
SW01003080
SW0101
SW01023081
SW0103
SW01043082ReservedReservedReservedReserved
SW0105
SW01063083
SW0107
SW01083084
SW0109
SW010A3085
SW010B
SW010C3086
SW010D
SW010E3087
SW010F
SW01103088Motion taskTask status 4:Same as for Task status 1:Same as for Task status 1Same as for Task status 1
SW0111
SW01123089
SW0113
SW0114308A
SW0115
SW0116308B
SW0117
SW0118308C
SW0119
SW011A308D
SW011B
SW011C308E
SW011D
SW011E308F
SW011F
SW01203090
SW0121
SW01223091
SW0123
SW01243092ReservedReservedReservedReserved
SW0125
SW01263093
SW0127
SW01283094
SW0129
SW012A3095
SW012B
SW012C3096
SW012D
SW012E3097
SW012F
SW01303098Motion taskTask status 5:Same as for Task status 1:Same as for Task status 1Same as for Task status 1
SW0131
SW01323099
SW0133
SW0134309A
SW0135
SW0136309B
SW0137
SW0138309C
SW0139
SW013A309D
SW013B
SW013C309E
SW013D
SW013E309F
SW013F
SW014030A0
SW0141
SW014230A1
SW0143
SW014430A2ReservedReservedReservedReserved
SW0145
SW014630A3
SW0147
SW014830A4
SW0149
SW014A30A5
SW014B
SW014C30A6
SW014D
SW014E30A7
SW014F
SW015030A8Motion taskTask status 6:Same as for Task status 1:Same as for Task status 1Same as for Task status 1
SW0151
SW015230A9
SW0153
SW015430AA
SW0155
SW015630AB
SW0157
SW015830AC
SW0159
SW015A30AD
SW015B
SW015C30AE
SW015D
SW015E30AF
SW015F
SW016030B0
SW0161
SW016230B1
SW0163
SW016430B2ReservedReservedReservedReserved
SW0165
SW016630B3
SW0167
SW016830B4
SW0169
SW016A30B5
SW016B
SW016C30B6
SW016D
SW016E30B7
SW016F
SW017030B8Motion taskTask status 7:Same as for Task status 1:Same as for Task status 1Same as for Task status 1
SW0171
SW017230B9
SW0173
SW017430BA
SW0175
SW017630BB
SW0177
SW017830BC
SW0179
SW017A30BD
SW017B
SW017C30BE
SW017D
SW017E30BF
SW017F
SW018030C0
SW0181
SW018230C1
SW0183
SW018430C2ReservedReservedReservedReserved
SW0185
SW018630C3
SW0187
SW018830C4
SW0189
SW018A30C5
SW018B
SW018C30C6
SW018D
SW018E30C7
SW018F
SW019030C8Motion taskTask status 8:Same as for Task status 1:Same as for Task status 1Same as for Task status 1
SW0191
SW019230C9
SW0193
SW019430CA
SW0195
SW019630CB
SW0197
SW019830CC
SW0199
SW019A30CD
SW019B
SW019C30CE
SW019D
SW019E30CF
SW019F
SW01A030D0
SW01A1
SW01A230D1
SW01A3
SW01A430D2ReservedReservedReservedReserved
SW01A5
SW01A630D3
SW01A7
SW01A830D4
SW01A9
SW01AA30D5
SW01AB
SW01AC30D6
SW01AD
SW01AE30D7
SW01AF
SW01B030D8Tracing (Unit Ver. 3.0 and later)Trace status 1: Number of trace pointsOutputs the number of data trace points set for the trace status. 0 or 128 to 32768 0: Default value or when 0 is set by the Support ToolPointWhen power is turned ON or when trace condition setting is received
SW01B1Trace status 1: Execution statusOutputs the execution status of the trace operation. 0: Tracing stopped 1: Tracing being executedNilUnit scan
SW01B230D9Trace status 1: Error informationOutputs error information while tracing is being executed. 0: Normal 1: Trace condition setting error The trace condition setting is incor-rect.NilWhen the trace start is received
SW01B3Trace status 1: Trigger statusOutputs whether or not the trigger condition has been satisfied. 0: Trigger condition not satisfied 1: Trigger condition satisfiedNilUnit scan (during trace execution)
SW01B430DATrace status 1: Sam-pling counterOutputs the number of times data has been sampled after tracing starts.TimesUnit scan (during trace execution)
SW01B5Trace status 1: Data sampling counterOutputs the number of times data has been sampled after tracing starts. Delay time is not included.TimesUnit scan (during trace execution)
SW01B630DBTrace status 2: Number of trace pointsSame as for trace status 1.Same as for trace status 1.Same as for trace status 1.
SW01B7Trace status 2: Execution statusSame as for trace status 1.Same as for trace status 1.Same as for trace status 1.
SW01B830DCTrace status 2: Error informationSame as for trace status 1.Same as for trace status 1.Same as for trace status 1.
SW01B9Trace status 2: Trigger statusSame as for trace status 1.Same as for trace status 1.Same as for trace status 1.
SW01BA30DDTrace status 2: Sam-pling counterSame as for trace status 1.Same as for trace status 1.Same as for trace status 1.
SW01BBTrace status 2: Data sampling counterSame as for trace status 1.Same as for trace status 1.Same as for trace status 1.
SW01BC30DEReservedReserved
SW01BD
SW01BE30DFReservedReserved
SW01BF
SW01C030E0ReservedReserved
SW01C1
SW01C230E1ReservedReserved
SW01C3
SW01C430E2ReservedReserved
SW01C5
SW01C630E3ReservedReserved
SW01C7
SW01C830E4ReservedReserved
SW01C9
SW01CA30E5ReservedReserved
SW01CB
SW01CC30E6ReservedReserved
SW01CD
SW01CE30E7ReservedReserved
SW01CF
SW01D030E8ReservedReservedReservedReserved
SW01D1
SW01D230E9
SW01D3
SW01D430EA
SW01D5
SW01D630EB
SW01D7
SW01D830EC
SW01D9
SW01DA30ED
SW01DB
SW01DC30EE
SW01DD
SW01DE30EF
SW01DF
SW01E030F0
SW01E1
SW01E230F1
SW01E3
SW01E430F2
SW01E5
SW01E630F3
SW01E7
SW01E830F4
SW01E9
SW01EA30F5
SW01EB
SW01EC30F6ReservedReservedReservedReserved
SW01ED
SW01EE30F7
SW01EF
SW01F030F8
SW01F1
SW01F230F9
SW01F3
SW01F430FA
SW01F5
SW01F630FB
SW01F7
SW01F830FC
SW01F9
SW01FA30FD
SW01FB
SW01FC30FE
SW01FD
SW01FE30FF
SW01FF

Axis

Variable AddressIORD AddressGroupNameDescriptionUnitUpdate timing
SW02003100AxisAxis 1 status: Current Coordinate System FB positionOutputs the FB position on coordinate system currently being selected -2147483648 to 2147483647Command unitUnit scan
SW0201
SW02023101Axis 1 status: Machine Coordinate System FB positionOutputs the FB position on machine coordinate system -2147483648 to 2147483647Command unitUnit scan
SW0203
SW02043102Axis 1 status: Current Coordinate System Command positionOutputs the command position on coordinate system currently being selected -2147483648 to 2147483647 Same value as FB position on current coordinate system when executing the SPEED or TORQUE commands.Command unitUnit scan
SW0205
SW02063103Axis 1 status: Machine Coordinate System Command positionOutputs the command position on machine coordinate system -2147483648 to 2147483647 Same value as FB position on machine coordinate system when executing the SPEED or TORQUE commands.Command unitUnit scan
SW0207
SW02083104Axis 1 status: Counter latch positionOutputs the counter latch position on machine coordinate system -2147483648 to 2147483647Command unitAt latch completion
SW0209
SW020A3105Axis 1 status: Feed back Speed 1Outputs the FB speedCommand unit/minUnit scan
SW020B
SW020C3106Axis 1 status: Feed Back Speed 2Outputs the FB speed (% specification of motor rated speed or r/min) The unit is set in bit 2 of P00004.0.01% of motor rated speed, or 0.01r/minUnit scan
SW020D
SW020E3107AxisAxis 1 status: Com-mand Speed 1Outputs command speedSame value as feedback speed 1 when executing the TORQUE command.Command unit/minUnit scan
SW020F
SW02103108Axis 1 status: Com-mand Speed 2Outputs the command speed (% specifi-cation of motor rated speed or r/min)The unit is set in bit 2 of P00004.Same value as feedback speed 2 when executing the TORQUE command.0.01% of motor rated speed, or 0.01r/minUnit scan
SW0211
SW02123109Axis 1 status: ErrorsOutputs ErrorsPulseUnit scan
SW0213
SW0214310AAxis 1 Status: Torque command valueOutputs Torque command value0.01% of Max. motor torque (when Torque com-mand in progress) or, 0.01% of motor rated torque.(When posi-tion/speed In progress)Unit scan
SW0215
SW0216310BAxis 1 status: Work-piece origin shift amountOutputs the workpiece origin shift amount-2147483648 to 2147483647Command unitWhen coordinate system is selected
SW0217
SW0218310CAxis 1 status: Origin margin in pulsesOutputs the distance between the final change position of the deceleration LS and origin determine signal (phase Z or origin LS).If deceleration LS is not used, outputs 0.-2147483648-2147483647Command unitWhen origin search is completed
SW0219
SW021A310DAxis 1 status: Number of multi-turnsOutputs the number of times upper and lower limits on the machine coordinate system are exceeded.ABS encoder: Cleared to 0 at origin setting completion*If Movement exceeding the multi-turns limit is executed it is not guaranteed.INC encoder: Clear to 0 at origin search completion-2147483648 to 2147483647TurnUnit scan
SW021B
SW021C310EAxis 1 status: MECHA-TROLINK-II Servo sta-tusServo status: Reflects the MECHA-TROLINK-II servo status.NilUnit scan
SW021DI/O monitor: Reflects the MECHA-TROLINK-II I/O monitor
SW021E310FAxis 1 status: ABS position setting value 1Multi-turns valueABS encoder multi-turns value at the origin setting.TurnWhen the power is turned ON When ABS setting is completed
SW021F
SW02203110Axis 1 status: ABS position setting value 2No. of Initial incremen-tal pulsesNo. of Initial incremental pulses of ABS encoder at the origin setting.PulseWhen the power is turned ON When ABS setting is complete
SW0221
SW02223111ReservedReservedReservedReserved
SW0223
SW02243112
SW0225
SW02263113
SW0227
SW02283114AxisAxis 1 status: Command execution statusOutputs the latest command No. See Command Code in Command Execution Status on page 158NilUnit scan
SW0229Axis 1 status: Acceleration/deceleration statusOutputs acceleration/deceleration status in relations to real-time target speed including override0: Others (Not moving, during Synchron-ization, etc.)1: Accelerating2: At Constant speed3: Decelerating4: PassingNilUnit scan
SW022A3115Axis 1 status: Latch statusOutputs counter latch status0: No latch request1: Parameter being overwritten2: Latch being requested3: Latch completed (next request: disabled)4: Latch completed (next request: enabled)This status has the following influence on OW0440 bit100: SW022A = 0, 1, 21: SW022A = 3, 4NilUnit scan
SW022BAxis 1 status: Executing cam table number (Supported in Unit Ver. 3.0 or later)Outputs the number of the cam table currently executing. The number is output during execution of CAM and CAM-BOX commands.0: Cam table not being executed1 to 32: Cam table number100: Global general variables200: Position dataThen number will be 0 while program execution is interrupted.Negative values indicate reverse order of data number, just like they do in motion programs.NilUnit scan
SW022C3116ReservedReservedReservedReserved
SW022D
SW022E3117
SW022F
SW02303118AxisAxis 2 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0231
SW02323119
SW0233
SW0234311A
SW0235
SW0236311B
SW0237
SW0238311C
SW0239
SW023A311D
SW023B
SW023C311E
SW023D
SW023E311F
SW023F
SW02403120
SW0241
SW02423121
SW0243
SW02443122
SW0245
SW02463123
SW0247
SW02483124
SW0249
SW024A3125
SW024B
SW024C3126
SW024D
SW024E3127
SW024F
SW02503128ReservedReservedReservedReserved
SW0251
SW02523129
SW0253
SW0254312A
SW0255
SW0256312B
SW0257
SW0258312CAxis 2 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0259
SW025A312D
SW025BReservedReservedReservedReserved
SW025C312E
SW025D
SW025E312F
SW025F
SW02603130AxisAxis 3 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0261
SW02623131
SW0263
SW02643132
SW0265
SW02663133
SW0267
SW02683134
SW0269
SW026A3135
SW026B
SW026C3136
SW026D
SW026E3137
SW026F
SW02703138
SW0271
SW02723139
SW0273
SW0274313A
SW0275
SW0276313B
SW0277
SW0278313C
SW0279
SW027A313D
SW027B
SW027C313E
SW027D
SW027E313F
SW027F
SW02803140ReservedReservedReservedReserved
SW0281
SW02823141
SW0283
SW02843142
SW0285
SW02863143
SW0287
SW02883144Axis 3 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0289
SW028A3145
SW028BReservedReservedReservedReserved
SW028C3146
SW028D
SW028E3147
SW028F
SW02903148AxisAxis 4 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0291
SW02923149
SW0293
SW0294314A
SW0295
SW0296314B
SW0297
SW0298314C
SW0299
SW029A314D
SW029B
SW029C314E
SW029D
SW029E314F
SW029F
SW02A03150
SW02A1
SW02A23151
SW02A3
SW02A43152
SW02A5
SW02A63153
SW02A7
SW02A83154
SW02A9
SW02AA3155
SW02AB
SW02AC3156
SW02AD
SW02AE3157
SW02AF
SW02B03158ReservedReservedReservedReserved
SW02B1
SW02B23159
SW02B3
SW02B4315A
SW02B5
SW02B6315B
SW02B7
SW02B8315CAxis 4 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW02B9
SW02BA315D
SW02BBReservedReservedReservedReserved
SW02BC315E
SW02BD
SW02BE315F
SW02BF
SW02C03160AxisAxis 5 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW02C1
SW02C23161
SW02C3
SW02C43162
SW02C5
SW02C63163
SW02C7
SW02C83164
SW02C9
SW02CA3165
SW02CB
SW02CC3166
SW02CD
SW02CE3167
SW02CF
SW02D03168
SW02D1
SW02D23169
SW02D3
SW02D4316A
SW02D5
SW02D6316B
SW02D7
SW02D8316C
SW02D9
SW02DA316D
SW02DB
SW02DC316E
SW02DD
SW02DE316F
SW02DF
SW02E03170ReservedReservedReservedReserved
SW02E1
SW02E23171
SW02E3
SW02E43172
SW02E5
SW02E63173
SW02E7
SW02E83174Axis 5 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW02E9
SW02EA3175
SW02EBReservedReservedReservedReserved
SW02EC3176
SW02ED
SW02EE3177
SW02EF
SW02F03178AxisAxis 6 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW02F1
SW02F23179
SW02F3
SW02F4317A
SW02F5
SW02F6317B
SW02F7
SW02F8317C
SW02F9
SW02FA317D
SW02FB
SW02FC317E
SW02FD
SW02FE317F
SW02FF
SW03003180
SW0301
SW03023181
SW0303
SW03043182
SW0305
SW03063183
SW0307
SW03083184
SW0309
SW030A3185
SW030B
SW030C3186
SW030D
SW030E3187
SW030F
SW03103188ReservedReservedReservedReserved
SW0311
SW03123189
SW0313
SW0314318A
SW0315
SW0316318B
SW0317
SW0318318CAxis 6 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0319
SW031A318D
SW031BReservedReservedReservedReserved
SW031C318E
SW031D
SW031E318F
SW031F
SW03203190AxisAxis 7 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0321
SW03223191
SW0323
SW03243192
SW0325
SW03263193
SW0327
SW03283194
SW0329
SW032A3195
SW032B
SW032C3196
SW032D
SW032E3197
SW032F
SW03303198
SW0331
SW03323199
SW0333
SW0334319A
SW0335
SW0336319B
SW0337
SW0338319C
SW0339
SW033A319D
SW033B
SW033C319E
SW033D
SW033E319F
SW033F
SW034031A0ReservedReservedReservedReserved
SW0341
SW034231A1
SW0343
SW034431A2
SW0345
SW034631A3
SW0347
SW034831A4Axis 7 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0349
SW034A31A5
SW034BReservedReservedReservedReserved
SW034C31A6
SW034D
SW034E31A7
SW034F
SW035031A8AxisAxis 8 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0351
SW035231A9
SW0353
SW035431AA
SW0355
SW035631AB
SW0357
SW035831AC
SW0359
SW035A31AD
SW035B
SW035C31AE
SW035D
SW035E31AF
SW035F
SW036031B0
SW0361
SW036231B1
SW0363
SW036431B2
SW0365
SW036631B3
SW0367
SW036831B4
SW0369
SW036A31B5
SW036B
SW036C31B6
SW036D
SW036E31B7
SW036F
SW037031B8ReservedReservedReservedReserved
SW0371
SW037231B9
SW0373
SW037431BA
SW0375
SW037631BB
SW0377
SW037831BCAxis 8 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0379
SW037A31BD
SW037BReservedReservedReservedReserved
SW037C31BE
SW037D
SW037E31BF
SW037F
SW038031C0AxisAxis 9 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0381
SW038231C1
SW0383
SW038431C2
SW0385
SW038631C3
SW0387
SW038831C4
SW0389
SW038A31C5
SW038B
SW038C31C6
SW038D
SW038E31C7
SW038F
SW039031C8
SW0391
SW039231C9
SW0393
SW039431CA
SW0395
SW039631CB
SW0397
SW039831CC
SW0399
SW039A31CD
SW039B
SW039C31CE
SW039D
SW039E31CF
SW039F
SW03A031D0ReservedReservedReservedReserved
SW03A1
SW03A231D1
SW03A3
SW03A431D2
SW03A5
SW03A631D3
SW03A7
SW03A831D4Axis 9 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW03A9
SW03AA31D5
SW03ABReservedReservedReservedReserved
SW03AC31D6
SW03AD
SW03AE31D7
SW03AF
SW03B031D8AxisAxis 10 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW03B1
SW03B231D9
SW03B3
SW03B431DA
SW03B5
SW03B631DB
SW03B7
SW03B831DC
SW03B9
SW03BA31DD
SW03BB
SW03BC31DE
SW03BD
SW03BE31DF
SW03BF
SW03C031E0
SW03C1
SW03C231E1
SW03C3
SW03C431E2
SW03C5
SW03C631E3
SW03C7
SW03C831E4
SW03C9
SW03CA31E5
SW03CB
SW03CC31E6
SW03CD
SW03CE31E7
SW03CF
SW03D031E8ReservedReservedReservedReserved
SW03D1
SW03D231E9
SW03D3
SW03D431EA
SW03D5
SW03D631EB
SW03D7
SW03D831ECAxis 10 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW03D9
SW03DA31ED
SW03DBReservedReservedReservedReserved
SW03DC31EE
SW03DD
SW03DE31EF
SW03DF
SW03E031F0AxisAxis 11 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW03E1
SW03E231F1
SW03E3
SW03E431F2
SW03E5
SW03E631F3
SW03E7
SW03E831F4
SW03E9
SW03EA31F5
SW03EB
SW03EC31F6
SW03ED
SW03EE31F7
SW03EF
SW03F031F8
SW03F1
SW03F231F9
SW03F3
SW03F431FA
SW03F5
SW03F631FB
SW03F7
SW03F831FC
SW03F9
SW03FA31FD
SW03FB
SW03FC31FE
SW03FD
SW03FE31FF
SW03FF
SW04003200ReservedReservedReservedReserved
SW0401
SW04023201
SW0403
SW04043202
SW0405
SW04063203
SW0407
SW04083204Axis 11 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0409
SW040A3205
SW040BReservedReservedReservedReserved
SW040C3206
SW040D
SW040E3207
SW040F
SW04103208AxisAxis 12 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0411
SW04123209
SW0413
SW0414320A
SW0415
SW0416320B
SW0417
SW0418320C
SW0419
SW041A320D
SW041B
SW041C320E
SW041D
SW041E320F
SW041F
SW04203210
SW0421
SW04223211
SW0423
SW04243212
SW0425
SW04263213
SW0427
SW04283214
SW0429
SW042A3215
SW042B
SW042C3216
SW042D
SW042E3217
SW042F
SW04303218ReservedReservedReservedReserved
SW0431
SW04323219
SW0433
SW0434321A
SW0435
SW0436321B
SW0437
SW0438321CAxis 12 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0439
SW043A321D
SW043BReservedReservedReservedReserved
SW043C321E
SW043D
SW043E321F
SW043F
SW04403220AxisAxis 13 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0441
SW04423221
SW0443
SW04443222
SW0445
SW04463223
SW0447
SW04483224
SW0449
SW044A3225
SW044B
SW044C3226
SW044D
SW044E3227
SW044F
SW04503228
SW0451
SW04523229
SW0453
SW0454322A
SW0455
SW0456322B
SW0457
SW0458322C
SW0459
SW045A322D
SW045B
SW045C322E
SW045D
SW045E322F
SW045F
SW04603230ReservedReservedReservedReserved
SW0461
SW04623231
SW0463
SW04643232
SW0465
SW04663233
SW0467
SW04683234Axis 13 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0469
SW046A3235
SW046BReservedReservedReservedReserved
SW046C3236
SW046D
SW046E3237
SW046F
SW04703238AxisAxis 14 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0471
SW04723239
SW0473
SW0474323A
SW0475
SW0476323B
SW0477
SW0478323C
SW0479
SW047A323D
SW047B
SW047C323E
SW047D
SW047E323F
SW047F
SW04803240
SW0481
SW04823241
SW0483
SW04843242
SW0485
SW04863243
SW0487
SW04883244
SW0489
SW048A3245
SW048B
SW048C3246
SW048D
SW048E3247
SW048F
SW04903248ReservedReservedReservedReserved
SW0491
SW04923249
SW0493
SW0494324A
SW0495
SW0496324B
SW0497
SW0498324CAxis 14 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0499
SW049A324D
SW049BReservedReservedReservedReserved
SW049C324E
SW049D
SW049E324F
SW049F
SW04A03250AxisAxis 15 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW04A1
SW04A23251
SW04A3
SW04A43252
SW04A5
SW04A63253
SW04A7
SW04A83254
SW04A9
SW04AA3255
SW04AB
SW04AC3256
SW04AD
SW04AE3257
SW04AF
SW04B03258
SW04B1
SW04B23259
SW04B3
SW04B4325A
SW04B5
SW04B6325B
SW04B7
SW04B8325C
SW04B9
SW04BA325D
SW04BB
SW04BC325E
SW04BD
SW04BE325F
SW04BF
SW04C03260ReservedReservedReservedReserved
SW04C1
SW04C23261
SW04C3
SW04C43262
SW04C5
SW04C63263
SW04C7
SW04C83264Axis 15 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW04C9
SW04CA3265
SW04CBReservedReservedReservedReserved
SW04CC3266
SW04CD
SW04CE3267
SW04CF
SW04D03268AxisAxis 16 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW04D1
SW04D23269
SW04D3
SW04D4326A
SW04D5
SW04D6326B
SW04D7
SW04D8326C
SW04D9
SW04DA326D
SW04DB
SW04DC326E
SW04DD
SW04DE326F
SW04DF
SW04E03270
SW04E1
SW04E23271
SW04E3
SW04E43272
SW04E5
SW04E63273
SW04E7
SW04E83274
SW04E9
SW04EA3275
SW04EB
SW04EC3276
SW04ED
SW04EE3277
SW04EF
SW04F03278ReservedReservedReservedReserved
SW04F1
SW04F23279
SW04F3
SW04F4327A
SW04F5
SW04F6327B
SW04F7
SW04F8327CAxis 16 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW04F9
SW04FA327D
SW04FBReservedReservedReservedReserved
SW04FC327E
SW04FD
SW04FE327F
SW04FF
SW05003280AxisAxis 17 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0501
SW05023281
SW0503
SW05043282
SW0505
SW05063283
SW0507
SW05083284
SW0509
SW050A3285
SW050B
SW050C3286
SW050D
SW050E3287
SW050F
SW05103288
SW0511
SW05123289
SW0513
SW0514328A
SW0515
SW0516328B
SW0517
SW0518328C
SW0519
SW051A328D
SW051B
SW051C328E
SW051D
SW051E328F
SW051F
SW05203290ReservedReservedReservedReserved
SW0521
SW05223291
SW0523
SW05243292
SW0525
SW05263293
SW0527
SW05283294Axis 17 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0529
SW052A3295
SW052BReservedReservedReservedReserved
SW052C3296
SW052D
SW052E3297
SW052F
SW05303298AxisAxis 18 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0531
SW05323299
SW0533
SW0534329A
SW0535
SW0536329B
SW0537
SW0538329C
SW0539
SW053A329D
SW053B
SW053C329E
SW053D
SW053E329F
SW053F
SW054032A0
SW0541
SW054232A1
SW0543
SW054432A2
SW0545
SW054632A3
SW0547
SW054832A4
SW0549
SW054A32A5
SW054B
SW054C32A6
SW054D
SW054E32A7
SW054F
SW055032A8ReservedReservedReservedReserved
SW0551
SW055232A9
SW0553
SW055432AA
SW0555
SW055632AB
SW0557
SW055832ACAxis 18 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0559
SW055A32AD
SW055BReservedReservedReservedReserved
SW055C32AE
SW055D
SW055E32AF
SW055F
SW056032B0AxisAxis 19 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0561
SW056232B1
SW0563
SW056432B2
SW0565
SW056632B3
SW0567
SW056832B4
SW0569
SW056A32B5
SW056B
SW056C32B6
SW056D
SW056E32B7
SW056F
SW057032B8
SW0571
SW057232B9
SW0573
SW057432BA
SW0575
SW057632BB
SW0577
SW057832BC
SW0579
SW057A32BD
SW057B
SW057C32BE
SW057D
SW057E32BF
SW057F
SW058032C0ReservedReservedReservedReserved
SW0581
SW058232C1
SW0583
SW058432C2
SW0585
SW058632C3
SW0587
SW058832C4Axis 19 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0589
SW058A32C5
SW058BReservedReservedReservedReserved
SW058C32C6
SW058D
SW058E32C7
SW058F
SW059032C8AxisAxis 20 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0591
SW059232C9
SW0593
SW059432CA
SW0595
SW059632CB
SW0597
SW059832CC
SW0599
SW059A32CD
SW059B
SW059C32CE
SW059D
SW059E32CF
SW059F
SW05A032D0
SW05A1
SW05A232D1
SW05A3
SW05A432D2
SW05A5
SW05A632D3
SW05A7
SW05A832D4
SW05A9
SW05AA32D5
SW05AB
SW05AC32D6
SW05AD
SW05AE32D7
SW05AF
SW05B032D8ReservedReservedReservedReserved
SW05B1
SW05B232D9
SW05B3
SW05B432DA
SW05B5
SW05B632DB
SW05B7
SW05B832DCAxis 20 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW05B9
SW05BA32DD
SW05BBReservedReservedReservedReserved
SW05BC32DE
SW05BD
SW05BE32DF
SW05BF
SW05C032E0AxisAxis 21 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW05C1
SW05C232E1
SW05C3
SW05C432E2
SW05C5
SW05C632E3
SW05C7
SW05C832E4
SW05C9
SW05CA32E5
SW05CB
SW05CC32E6
SW05CD
SW05CE32E7
SW05CF
SW05D032E8
SW05D1
SW05D232E9
SW05D3
SW05D432EA
SW05D5
SW05D632EB
SW05D7
SW05D832EC
SW05D9
SW05DA32ED
SW05DB
SW05DC32EE
SW05DD
SW05DE32EF
SW05DF
SW05E032F0ReservedReservedReservedReserved
SW05E1
SW05E232F1
SW05E3
SW05E432F2
SW05E5
SW05E632F3
SW05E7
SW05E832F4Axis 21 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW05E9
SW05EA32F5
SW05EBReservedReservedReservedReserved
SW05EC32F6
SW05ED
SW05EE32F7
SW05EF
SW05F032F8AxisAxis 22 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW05F1
SW05F232F9
SW05F3
SW05F432FA
SW05F5
SW05F632FB
SW05F7
SW05F832FC
SW05F9
SW05FA32FD
SW05FB
SW05FC32FE
SW05FD
SW05FE32FF
SW05FF
SW06003300
SW0601
SW06023301
SW0603
SW06043302
SW0605
SW06063303
SW0607
SW06083304
SW0609
SW060A3305
SW060B
SW060C3306
SW060D
SW060E3307
SW060F
SW06103308ReservedReservedReservedReserved
SW0611
SW06123309
SW0613
SW0614330A
SW0615
SW0616330B
SW0617
SW0618330CAxis 22 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0619
SW061A330D
SW061BReservedReservedReservedReserved
SW061C330E
SW061D
SW061E330F
SW061F
SW06203310AxisAxis 23 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0621
SW06223311
SW0623
SW06243312
SW0625
SW06263313
SW0627
SW06283314
SW0629
SW062A3315
SW062B
SW062C3316
SW062D
SW062E3317
SW062F
SW06303318
SW0631
SW06323319
SW0633
SW0634331A
SW0635
SW0636331B
SW0637
SW0638331C
SW0639
SW063A331D
SW063B
SW063C331E
SW063D
SW063E331F
SW063F
SW06403320ReservedReservedReservedReserved
SW0641
SW06423321
SW0643
SW06443322
SW0645
SW06463323
SW0647
SW06483324Axis 23 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0649
SW064A3325
SW064BReservedReservedReservedReserved
SW064C3326
SW064D
SW064E3327
SW064F
SW06503328AxisAxis 24 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0651
SW06523329
SW0653
SW0654332A
SW0655
SW0656332B
SW0657
SW0658332C
SW0659
SW065A332D
SW065B
SW065C332E
SW065D
SW065E332F
SW065F
SW06603330
SW0661
SW06623331
SW0663
SW06643332
SW0665
SW06663333
SW0667
SW06683334
SW0669
SW066A3335
SW066B
SW066C3336
SW066D
SW066E3337
SW066F
SW06703338ReservedReservedReservedReserved
SW0671
SW06723339
SW0673
SW0674333A
SW0675
SW0676333B
SW0677
SW0678333CAxis 24 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0679
SW067A333D
SW067BReservedReservedReservedReserved
SW067C333E
SW067D
SW067E333F
SW067F
SW06803340AxisAxis 25 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0681
SW06823341
SW0683
SW06843342
SW0685
SW06863343
SW0687
SW06883344
SW0689
SW068A3345
SW068B
SW068C3346
SW068D
SW068E3347
SW068F
SW06903348
SW0691
SW06923349
SW0693
SW0694334A
SW0695
SW0696334B
SW0697
SW0698334C
SW0699
SW069A334D
SW069B
SW069C334E
SW069D
SW069E334F
SW069F
SW06A03350ReservedReservedReservedReserved
SW06A1
SW06A23351
SW06A3
SW06A43352
SW06A5
SW06A63353
SW06A7
SW06A83354Axis 25 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW06A9
SW06AA3355
SW06ABReservedReservedReservedReserved
SW06AC3356
SW06AD
SW06AE3357
SW06AF
SW06B03358AxisAxis 26 statusSame as for Axis 1 OstatusSame as for Axis 1 statusSame as for Axis 1 status
SW06B1
SW06B23359
SW06B3
SW06B4335A
SW06B5
SW06B6335B
SW06B7
SW06B8335C
SW06B9
SW06BA335D
SW06BB
SW06BC335E
SW06BD
SW06BE335F
SW06BF
SW06C03360
SW06C1
SW06C23361
SW06C3
SW06C43362
SW06C5
SW06C63363
SW06C7
SW06C83364
SW06C9
SW06CA3365
SW06CB
SW06CC3366
SW06CD
SW06CE3367
SW06CF
SW06D03368ReservedReservedReservedReserved
SW06D1
SW06D23369
SW06D3
SW06D4336A
SW06D5
SW06D6336B
SW06D7
SW06D8336CAxis 26 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW06D9
SW06DA336D
SW06DBReservedReservedReservedReserved
SW06DC336E
SW06DD
SW06DE336F
SW06DF
SW06E03370AxisAxis 27 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW06E1
SW06E23371
SW06E3
SW06E43372
SW06E5
SW06E63373
SW06E7
SW06E83374
SW06E9
SW06EA3375
SW06EB
SW06EC3376
SW06ED
SW06EE3377
SW06EF
SW06F03378
SW06F1
SW06F23379
SW06F3
SW06F4337A
SW06F5
SW06F6337B
SW06F7
SW06F8337C
SW06F9
SW06FA337D
SW06FB
SW06FC337E
SW06FD
SW06FE337F
SW06FF
SW07003380ReservedReservedReservedReserved
SW0701
SW07023381
SW0703
SW07043382
SW0705
SW07063383
SW0707
SW07083384Axis 27 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0709
SW070A3385
SW070BReservedReservedReservedReserved
SW070C3386
SW070D
SW070E3387
SW070F
SW07103388AxisAxis 28 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0711
SW07123389
SW0713
SW0714338A
SW0715
SW0716338B
SW0717
SW0718338C
SW0719
SW071A338D
SW071B
SW071C338E
SW071D
SW071E338F
SW071F
SW07203390
SW0721
SW07223391
SW0723
SW07243392
SW0725
SW07263393
SW0727
SW07283394
SW0729
SW072A3395
SW072B
SW072C3396
SW072D
SW072E3397
SW072F
SW07303398ReservedReservedReservedReserved
SW0731
SW07323399
SW0733
SW0734339A
SW0735
SW0736339B
SW0737
SW0738339CAxis 28 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0739
SW073A339D
SW073BReservedReservedReservedReserved
SW073C339E
SW073D
SW073E339F
SW073F
SW074033A0AxisAxis 29 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0741
SW074233A1
SW0743
SW074433A2
SW0745
SW074633A3
SW0747
SW074833A4
SW0749
SW074A33A5
SW074B
SW074C33A6
SW074D
SW074E33A7
SW074F
SW075033A8
SW0751
SW075233A9
SW0753
SW075433AA
SW0755
SW075633AB
SW0757
SW075833AC
SW0759
SW075A33AD
SW075B
SW075C33AE
SW075D
SW075E33AF
SW075F
SW076033B0ReservedReservedReservedReserved
SW0761
SW076233B1
SW0763
SW076433B2
SW0765
SW076633B3
SW0767
SW076833B4Axis 29 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0769
SW076A33B5
SW076BReservedReservedReservedReserved
SW076C33B6
SW076D
SW076E33B7
SW076F
SW077033B8AxisAxis 30 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0771
SW077233B9
SW0773
SW077433BA
SW0775
SW077633BB
SW0777
SW077833BC
SW0779
SW077A33BD
SW077B
SW077C33BE
SW077D
SW077E33BF
SW077F
SW078033C0
SW0781
SW078233C1
SW0783
SW078433C2
SW0785
SW078633C3
SW0787
SW078833C4
SW0789
SW078A33C5
SW078B
SW078C33C6
SW078D
SW078E33C7
SW078F
SW079033C8ReservedReservedReservedReserved
SW0791
SW079233C9
SW0793
SW079433CA
SW0795
SW079633CB
SW0797
SW079833CCAxis 30 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW0799
SW079A33CD
SW079BReservedReservedReservedReserved
SW079C33CE
SW079D
SW079E33CF
SW079F
SW07A033D0AxisAxis 31 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW07A1
SW07A233D1
SW07A3
SW07A433D2
SW07A5
SW07A633D3
SW07A7
SW07A833D4
SW07A9
SW07AA33D5
SW07AB
SW07AC33D6
SW07AD
SW07AE33D7
SW07AF
SW07B033D8
SW07B1
SW07B233D9
SW07B3
SW07B433DA
SW07B5
SW07B633DB
SW07B7
SW07B833DC
SW07B9
SW07BA33DD
SW07BB
SW07BC33DE
SW07BD
SW07BE33DF
SW07BF
SW07C033E0ReservedReservedReservedReserved
SW07C1
SW07C233E1
SW07C3
SW07C433E2
SW07C5
SW07C633E3
SW07C7
SW07C833E4Axis 31 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW07C9
SW07CA33E5
SW07CBReservedReservedReservedReserved
SW07CC33E6
SW07CD
SW07CE33E7
SW07CF
SW07D033E8AxisAxis 32 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW07D1
SW07D233E9
SW07D3
SW07D433EA
SW07D5
SW07D633EB
SW07D7
SW07D833EC
SW07D9
SW07DA33ED
SW07DB
SW07DC33EE
SW07DD
SW07DE33EF
SW07DF
SW07E033F0
SW07E1
SW07E233F1
SW07E3
SW07E433F2
SW07E5
SW07E633F3
SW07E7
SW07E833F4
SW07E9
SW07EA33F5
SW07EB
SW07EC33F6
SW07ED
SW07EE33F7
SW07EF
SW07F033F8ReservedReservedReservedReserved
SW07F1
SW07F233F9
SW07F3
SW07F433FA
SW07F5
SW07F633FB
SW07F7
SW07F833FCAxis 32 statusSame as for Axis 1 statusSame as for Axis 1 statusSame as for Axis 1 status
SW07F9
SW07FA33FD
SW07FBReservedReservedReservedReserved
SW07FC33FE
SW07FD
SW07FE33FF
SW07FF

Command Code in Command Execution Status

In the system parameter Command execution status (SW0228 for axis 1), one of the command codes in the table below will be displayed.

They are used to monitor the execution status of the operation in the program.

ClassificationCommand nameCommandCodeRemark
No operationNot executing---0000h
Axis movementPositioningMOVE0001h
Linear interpolationMOVEL0002h
Circular interpolationMOVEC0003h
Origin searchDATUM0004h
Interrupt feedingMOVEI0005h
Time-specified positioningMOVET0006h
TraverseMOVETRAV0007h
Electronic CAM single axisCAM0008h
Axis operationLink operationMOVELINK0015h
Electronic CAM SynchronousCAMBOX0016h
Electronic shaftCONNECT0017h
Trailing synchronizationSYNC0018h
Travel distance superimposeADDAX0019h
Speed commandSPEED001Ah
Torque commandTORQUE001Bh
Axis operation endSynchronization endSYNCR0029hIf there is no travel distance specifica-tion, the code of the synchronous com-mand code is maintained.

Note

With Target Position Change command (MOVEMODI), the command code of MOVE or MOVEL in the previous block is maintained.

The system parameter MECHATROLINK-II servo status (SW021C, SW021D for axis 1) shows the status of the servo driver.

Axis addresses are calculated using the following equation.

Axis i Servo status address 1 (hexadecimal) = SW021C (Hex) + 30 (Hex) × (i - 1)

Axis i Servo status address 2 (hexadecimal) = SW021D (Hex) + 30 (Hex) × (i - 1)

i = 1 to 32

Examples: Axis 2 axis Servo status address 1 (hexadecimal) = SW021C

(Hex) + 30(Hex) × (2 - 1) = SW024C(Hex)

Axis 2 axis Servo status address 2 (hexadecimal) = SW021D

(Hex) + 30(Hex) × (2 - 1) = SW024D(Hex)

AddressBitAbbreviationNameON/OFF
SW021CD00-03------Always at 0
D04PONMain power ON0: Main power OFF
1: Main power ON
D05-08------Always at 0
D09T_LIMTorque control0: Not controlling torque
1: Controlling torque
D10------Always at 0
D11NEARPositioning proximity: In position con-trol mode0: Outside of the range of position-ing proximity
1: Within the range of positioning proximity
V_LIMSpeed control: In torque control mode0: Speed limit has not been detected.
1: Speed limit has been detected.
D12-13------Always be 0
D14-15---Reserved
SW021DD00P_OTForward rotation drive prohibit Input0: OFF
1: ON
D01N_OTReverse rotation drive prohibit Input0: OFF
1: ON
D02DECOrigin search deceleration limit switch input0: OFF
1: ON
D03PAEncoder phase-A input0: OFF
1: ON
D04PBEncoder phase-B input0: OFF
1: ON
D05PCEncoder phase-C input0: OFF
1: ON
D06EXT1No. 1 external latch input0: OFF
1: ON
D07EXT2No. 2 external latch input0: OFF
1: ON
D08EXT3No. 3 external latch input0: OFF
1: ON
D09BRKBrake output0: Cancellation
1: Locked
D10-11---Reserved
D12IO12CN1 input signal selected in Pn81E.0.0: OFF
1: ON
D13IO13CN1 input signal selected in Pn81E.1.0: OFF
1: ON
D14IO14CN1 input signal selected in Pn81E.2.0: OFF
1: ON
D15IO15CN1 input signal selected in Pn81E.3.0: OFF
1: ON

4-6 I/O Variables

On the MC Unit, the following signals can be used as I/O variables; I/O connector signals of the MC Unit, the bit areas/data areas between the CPU Unit and the MC Unit, and I/O signals between MECHATROLINK-II devices and the MC Unit.

4-6-1 I/O Variables Overview

CPU Unit

OMRON CJ1W-MCH71 - 4-6-1 I/O Variables Overview - 1

The R/W columns indicate the restriction on reading and writing from a program in the MC Unit. Of the output variables, the status output area cannot be written from the user program.

Writing data from a program in the MC Unit to the input variables linked to bit areas/data areas between the CPU Unit and the MC Unit enables the MC Unit to control the Unit, tasks, and axes.

Writing data from a program in the MC Unit to the output variables linked to the output signals of the MC Unit's I/O connector or MECHATROLINK-II output devices enables the MC Unit to control output signals.

4-6-2 List of Input Variables

Input Variables

Input variableSizePC21 Bus Cyclic areaClassificationAccess
IW00001---MC Unit external input terminalR/W
IW0001-IW000F15---ReservedR/W
IW0010-IW020F512---MECHATROLINK-II input Axis 1-32R/W
IW0210-IW02FF240---ReservedR/W
IW0300-IW03023n - n+2Unit control bitR/W
IW03031---ReservedR/W
IW0304-IW03052---Zone control bitsR/W
IW0306-IW030F10---ReservedR/W
IW03101m+20Unit control dataR/W
IW0311-IW031F15---ReservedR/W
IW03201n+3ReservedR/W
IW0321-IW032F15---ReservedR/W
IW03301m+21ReservedR/W
IW0331-IW033F15---ReservedR/W
IW0340-IW03478n+4 - n+11Motion task 1-8 Control bitR/W
IW0348-IW035F24---ReservedR/W
IW0360-IW036F16m+22 - m+37Motion task 1-8 Control dataR/W
IW0370-IW043F208---ReservedR/W
IW0440-IW045F32x - x+31Axis 1-32 Control bitR/W
IW0460-IW047F32---ReservedR/W
IW0480-IW049F32d - d+31Axis1-32 Control DataR/W
IW04A0-IW04BF32---Axes 1 to 32 internal overrideR/W
IW04C0-IW04DF32---ReservedR/W
IW04E0-IW09FF1312---ReservedR/W
IW0A00-IW0A078---1. P0004 bit 13 = 0: Motion tasks 1 to 8 are acceleration/ deceleration time banks2. P0004 bit 13 = 1: Motion tasks 1 to 8 are acceleration time banksR/W
IW0A08-IW0A0F8---P0004 bit 13 = 1: Motion tasks 1 to 8 are deceleration banksR/W
IW0A10-IW0A3F56---ReservedR/W
IW0A40-IW0AFF192---ReservedR/W
IW0B00-IW0FFF1280Custom areaGeneral I/O A-HR/W

The column "Access" indicate the restriction on both read/ write from motion programs. Of the output variables, the status output area cannot be written from the user program.

Writing data from motion programs to the input variables allocated to the PLC bit area enables the MC Unit to control the Unit, tasks, and axes.

Writing data from motion programs to the output variables allocated to the MECHATROLINK-II output devices and the MC Unit external output terminals enables the MC Unit to control the signal outputs.

Input variables indicate the data, which will be input to the MC Unit.

Details of Input Variables

Variable Address R: ■ R/W: ■bitSizeCPU Unit WordClassificationNameSpecifications
IW0000001---MC Unit External Input TerminalsExternal deceleration stop inputReflects the input from the external deceleration stop input terminal.
01ReservedReserved
02External general input 1Reflects the input from the external general input 1 terminal.
03External general input 2Reflects the input from the external general input 2 terminal.
04-15ReservedReserved
IW000100-1515---ReservedReservedReserved
IW000F
IW001000-1516---MECHATROLINK-II Input Axis 1MECHATROLINK-II Input Axis1 CH1MECHATROLINK-II Input Axis1 CH1
IW0011MECHATROLINK-II Input Axis1 CH2MECHATROLINK-II Input Axis1 CH2
IW0012MECHATROLINK-II Input Axis1 CH3MECHATROLINK-II Input Axis1 CH3
IW0013MECHATROLINK-II Input Axis1 CH4MECHATROLINK-II Input Axis1 CH4
IW0014MECHATROLINK-II Input Axis1 CH5MECHATROLINK-II Input Axis1 CH5
IW0015MECHATROLINK-II Input Axis1 CH6MECHATROLINK-II Input Axis1 CH6
IW0016MECHATROLINK-II Input Axis1 CH7MECHATROLINK-II Input Axis1 CH7
IW0017MECHATROLINK-II Input Axis1 CH8MECHATROLINK-II Input Axis1 CH8
IW0018MECHATROLINK-II Input Axis1 CH9MECHATROLINK-II Input Axis1 CH9
IW0019MECHATROLINK-II Input Axis1 CH10MECHATROLINK-II Input Axis1 CH10
IW001AMECHATROLINK-II Input Axis1 CH11MECHATROLINK-II Input Axis1 CH11
IW001BMECHATROLINK-II Input Axis1 CH12MECHATROLINK-II Input Axis1 CH12
IW001CMECHATROLINK-II Input Axis1 CH13MECHATROLINK-II Input Axis1 CH13
IW001DMECHATROLINK-II Input Axis1 CH14MECHATROLINK-II Input Axis1 CH14
IW001EMECHATROLINK-II Input Axis1 CH15MECHATROLINK-II Input Axis1 CH15
IW001FMECHATROLINK-II Input Axis1 CH16MECHATROLINK-II Input Axis1 CH16
IW002000-1516---MECHATROLINK-II Input Axis 2Same as for MECHA-TROLINK-II Input Axis1Same as for MECHATROLINK-II Input Axis1
IW002F
IW003000-1516---MECHATROLINK-II Input Axis3Same as for MECHA-TROLINK-II Input Axis1Same as for MECHATROLINK-II Input Axis1
IW003F
IW004000-1516---MECHATROLINK-II Input Axis4Same as for MECHA-TROLINK-II Input Axis1Same as for MECHATROLINK-II Input Axis1
IW004F
IW005000-1516---MECHATROLINK-II Input Axis5Same as for MECHA-TROLINK-II Input Axis1Same as for MECHATROLINK-II Input Axis1
IW005F
IW006000-1516---MECHATROLINK-II Input Axis6Same as for MECHA-TROLINK-II Input Axis1Same as for MECHANOLINK-II Input Axis1
IW006F
IW007000-1516---MECHATROLINK-II Input Axis7Same as for MECHA-TROLINK-II Input Axis1Same as for MECHANOLINK-II Input Axis1
IW007F
IW008000-1516---MECHATROLINK-II Input Axis8Same as for MECHA-TROLINK-II Input Axis1Same as for MECHANOLINK-II Input Axis1
IW008F
IW009000-1516---MECHATROLINK-II Input Axis9Same as for MECHA-TROLINK-II Input Axis1Same as for MECHANOLINK-II Input Axis1
IW009F
IW00A000-1516---MECHATROLINK-II Input Axis10Same as for MECHA-TROLINK-II Input Axis1Same as for MECHANOLINK-II Input Axis1
IW00AF
IW00B000-1516---MECHANOLINK-II Input Axis11Same as for MECHA-TROLINK-II Input Axis1Same as for MECHANOLINK-II Input Axis1
IW00BF
IW00C000-1516---MECHANOLINK-II Input Axis12Same as for MECHA-TROLINK-II Input Axis1Same as for MECHANOLINK-II Input Axis1
IW00CF
IW00D000-1516---MECHANOLINK-II Input Axis13Same as for MECHA-TROLINK-II Input Axis1Same as for MECHANOLINK-II Input Axis1
IW00DF
IW00E000-1516---MECHATROLINK-II Input Axis14Same as for MECHA-TROLINK-II Input Axis1Same as for MECHATROLINK-II Input Axis1
IW00EF
IW00F000-1516---MECHATROLINK-II Input Axis15Same as for MECHA-TROLINK-II Input Axis1Same as for MECHATROLINK-II Input Axis1
IW00FF
IW010000-1516---MECHATROLINK-II Input Axis16Same as for MECHA-TROLINK-II Input Axis1Same as for MECHATROLINK-II Input Axis1
IW010F
IW011000-1516---MECHATROLINK-II Input Axis17Same as for MECHA-TROLINK-II Input Axis1Same as for MECHATROLINK-II Input Axis1
IW011F
IW012000-1516---MECHATROLINK-II Input Axis18Same as for MECHA-TROLINK-II Input Axis1Same as for MECHATROLINK-II Input Axis1
IW012F
IW013000-1516---MECHATROLINK-II Input Axis19Same as for MECHA-TROLINK-II Input Axis1Same as for MECHATROLINK-II Input Axis1
IW013F
IW014000-1516---MECHATROLINK-II Input Axis20Same as for MECHA-TROLINK-II Input Axis1Same as for MECHATROLINK-II Input Axis1
IW014F
IW015000-1516---MECHATROLINK-II Input Axis21Same as for MECHA-TROLINK-II Input Axis1Same as for MECHATROLINK-II Input Axis1
IW015F
IW016000-1516---MECHATROLINK-II Input Axis22Same as for MECHA-TROLINK-II Input Axis1Same as for MECHATROLINK-II Input Axis1
IW016F
IW017000-1516---MECHATROLINK-II Input Axis23Same as for MECHA-TROLINK-II Input Axis1Same as for MECHATROLINK-II Input Axis1
IW017F
IW018000-1516---MECHATROLINK-II Input Axis24Same as for MECHA-TROLINK-II Input Axis1Same as for MECHATROLINK-II Input Axis1
IW018F
IW019000-1516---MECHATROLINK-II Input Axis25Same as for MECHA-TROLINK-II Input Axis1Same as for MECHATROLINK-II Input Axis1
IW019F
IW01A000-1516---MECHATROLINK-II Input Axis26Same as for MECHA-TROLINK-II Input Axis1Same as for MECHATROLINK-II Input Axis1
IW01AF
IW01B000-1516---MECHATROLINK-II Input Axis27Same as for MECHA-TROLINK-II Input Axis1Same as for MECHATROLINK-II Input Axis1
IW01BF
IW01C000-1516---MECHATROLINK-II Input Axis28Same as for MECHA-TROLINK-II Input Axis1Same as for MECHATROLINK-II Input Axis1
IW01CF
IW01D000-1516---MECHATROLINK-II Input Axis29Same as for MECHA-TROLINK-II Input Axis1Same as for MECHATROLINK-II Input Axis1
IW01DF
IW01E000-1516---MECHATROLINK-II Input Axis30Same as for MECHA-TROLINK-II Input Axis1Same as for MECHATROLINK-II Input Axis1
IW01EF
IW01F000-1516---MECHATROLINK-II Input Axis31Same as for MECHA-TROLINK-II Input Axis1Same as for MECHATROLINK-II Input Axis1
IW01FF
IW020000-1516---MECHATROLINK-II Input Axis32Same as for MECHA-TROLINK-II Input Axis1Same as for MECHATROLINK-II Input Axis1
IW020F
IW021000-15240---ReservedReservedReserved
IW02FF
IW0300001n+0Unit Control BitsUnit alarm reset0: No1: Does not turn ON Unit alarm bit↑: Clears the alarm occurring on the unit level:No
01System Parameter Save0: No1: No↑: Saves system parameters in MC Unit's Flash ROM/ servo parameters in Flash ROM and EEPROM of servo driver:No
02Position Data Save0: No1: No↑: Saves position data in Flash ROM↓: No
03Teaching Condition Setting0: No1: No↑: Sets teaching axis, reads teaching address↓: No
04Teaching Type0: Feedback present position1: Command present position↑: No↓: No
05Teaching Execution0: No1: No↑: Writes present positions in position data according to teaching type↓: No
06Servo parameter Save0: No1: No↑: Serves servo parameter to Flash ROM/ EEPROM in servo driver↓: No
07-11ReservedReserved
12-15Present Value MonitorSelectSelects Data to be output to present value monitor0: Zero output1: FB position (selected coordinate system)2: FB position (machine coordinate system)3: Command position (selected coordinate system)4:Command position (machine coordinate system)5: FB speed 1 (speed command unit)6: FB speed 2 (by parameters)7: Command speed1 (Speed Command Unit)8: Command speed 2 (depends on parameters)9: Errors10: Torque command11-15: Reserved for system
IW030100-151n+1Unit Control BitsTeaching Axis Setting 1-160: No1: Specifies the axis as teaching object↑: No↓: No
IW030200-151n+2Teaching Axis Setting 17-320: No1: Specifies the axis as teaching object↑: No↓: No
IW030300-151------ReservedReserved
IW030400-151------Zone Reservation Bits (No. 1 to 16)Enables or disables zone bits No. 1 to 16.No. 1 corresponds to bit 0, and No. 16 corresponds to bit 150: Disable (Do not use)1: Enable (Use)
IW030500-151------Zone Reservation Bits (No. 17 to 32)Enables or disables zone bits No. 17 to 32.No. 17 corresponds to bit 0, and No. 32 corresponds to bit 150: Disable (Do not use)1: Enable (Use)
IW030600-1513---ReservedReservedReserved
IW030F
IW031000-151m+20Unit Control DataTeaching AddressSpecifies the teaching start address0-10239
IW031100-1515---ReservedReservedReserved
IW031F
IW0320001n+3Reserved
01
02
03-15ReservedReserved
IW032100-1515---ReservedReservedReserved
IW032F
IW033000-151m+21ReservedReservedReserved
IW033100-1515---ReservedReservedReserved
IW033F
IW0340001n+4Motion Task 1ControlMotion Task Alarm Reset0: No1: Does not turn ON Motion taskalarm bit↑: Clears alarm occurring onmotion task level↓No
01Motion Program Start0: No1: No↑: Starts motion program accord-ing to specified Start mode↓: No
02-03Start Mode0,3: Reads program No. and executes program from top1: Resumes program executionfrom middle of the block whoseNo. is being displayed as the running block No.2: Resumes program executionfrom the next block to the onewhose No. is being displayed asrunning block No.
04Deceleration Stop0: No1: Prohibits motion program start↑:Executes deceleration stopregardless of the block↓: No
05Block Stop0: No1: Prohibits motion program start↑:Executes deceleration stop atthe end of the block currentlybeing executed↓: No
06Single Block OperatingMode0: Turns OFF single-block operat-ing mode1: Turns On single-block operat-ing mode↑: No↓: No
07Task Override Enable0: Disables task override value(Override: 100%)1: Enables task override value↑: No↓: No
08-15ReservedReserved
IW034100-157n+5Motion Task 2ControlSame as for Motion Task 1Same as for Motion Task 1
IW0342n+6Motion Task 3ControlSame as for Motion Task 1Same as for Motion Task 1
IW0343n+7Motion Task 4ControlSame as for Motion Task 1Same as for Motion Task 1
IW0344n+8Motion Task 5ControlSame as for Motion Task 1Same as for Motion Task 1
IW0345n+9Motion Task 6ControlSame as for Motion Task 1Same as for Motion Task 1
IW0346n+10Motion Task 7ControlSame as for Motion Task 1Same as for Motion Task 1
IW0347n+11Motion Task 8ControlSame as for Motion Task 1Same as for Motion Task 1
IW034800-1524---ReservedReservedReserved
IW035F
IW036000-151m+22Motion Task 1 Control DataMotion Task 1 Program No.Specifies program No. to be executed by Motion Task 0-499
IW036100-151m+23Motion Task 1 OverrideSets override value to be used in motion program 0.00 to 327.67 [%] (unit: 0.01%)
IW036200-152m+24Motion Task 2 Control DataSame as for Motion Task 1Same as for Motion Task 1
IW0363m+25
IW036400-152m+26Motion Task 3 Control DataSame as for Motion Task 1Same as for Motion Task 1
IW0365m+27
IW036600-152m+28Motion Task 4 Control DataSame as for Motion Task 1Same as for Motion Task 1
IW0367m+29
IW036800-152m+30Motion Task 5 Control DataSame as for Motion Task 1Same as for Motion Task 1
IW0369m+31
IW036A00-152m+32Motion Task 6 Control DataSame as for Motion Task 1Same as for Motion Task 1
IW036Bm+33
IW036C00-152m+34Motion Task 7 Control DataSame as for Motion Task 1Same as for Motion Task 1
IW036Dm+35
IW036E00-152m+36Motion Task 8 Control DataSame as for Motion Task 1Same as for Motion Task 1
IW036Fm+37
IW037000-15208---ReservedReservedReserved
IW043F
IW0440001x+0Axis 1 Control BitsAxis Alarm Reset0: No1: Does not turn ON Axis alarm bit↑: Clears alarm occurring on axis level, and clears alarm at MECHATROLINK-II slaves↓: No
01Deceleration Stop0: No1: Prohibits JOG, STEP, Origin search, and Machine origin return in manual mode↑: Deceleration stop (JOG, STEP, Origin search, and Machine origin return)↓: No
02Servo Lock0: No1: No↑: Starts servo-lock↓: No
03Servo Unlock0: No1: Prohibits servo-lock↑: Cancels servo-lock status↓: No
04JOG0: No1: Continues JOG operation↑: Starts JOG operation↓: Stops JOG operation
05STEP0: No1: Continues STEP operation↑: Starts STEP operation↓: Stops STEP operation
06Origin Search0: No1: Continues origin search↑: Starts origin search↓: Stops origin search
07Machine Origin Return0: No1: Continues Machine origin return (PTP)↑: Starts Machine origin return (PTP)↓: Stops Machine origin return (PTP)
08Error Counter Reset0: No1: No↑: Resets error counter*Command position = present position↓: No
09Forced Origin0: No1: No↑: Forces to set the present position to 0 to establish it as the origin (not during axis movement)↓: No
10ABS Origin Setting0: No1: No↑: Sets the ABS encoder origin↓: No
11Axis Override Enable0: Enables axis override value(Override: 100%)1: Enables axis override value↑: No↓: No
IW0440121x+0Axis 1 Control BitsJOG/STEP Direction0: JOG and STEP operation in + direction 1: JOG and STEP operation in - direction ↑: No ↓: No
13Axis Machine Lock0: Cancels axis machine lock mode 1: Axis machine lock mode ↑: No ↓: No
14ReservedReserved
15Manual/Automatic Mode0: Manual mode 1: Automatic mode ↑: Stops manual operation in progress with deceleration stop ↓: Stops automatic operation in progress with deceleration stop
IW044100-1531x+1Axis 2 Control BitsSame as for Axis 1Same as for Axis 1
IW0442x+2Axis 3 Control BitsSame as for Axis 1Same as for Axis 1
IW0443x+3Axis 4 Control BitsSame as for Axis 1Same as for Axis 1
IW0444x+4Axis 5 Control BitsSame as for Axis 1Same as for Axis 1
IW0445x+5Axis 6 Control BitsSame as for Axis 1Same as for Axis 1
IW0446x+6Axis 7 Control BitsSame as for Axis 1Same as for Axis 1
IW0447x+7Axis 8 Control BitsSame as for Axis 1Same as for Axis 1
IW0448x+8Axis 9 Control BitsSame as for Axis 1Same as for Axis 1
IW0449x+9Axis 10 ControlBitsSame as for Axis 1Same as for Axis 1
IW044Ax+10Axis 11 ControlBitsSame as for Axis 1Same as for Axis 1
IW044Bx+11Axis 12 ControlBitsSame as for Axis 1Same as for Axis 1
IW044Cx+12Axis 13 ControlBitsSame as for Axis 1Same as for Axis 1
IW044Dx+13Axis 14 ControlBitsSame as for Axis 1Same as for Axis 1
IW044Ex+14Axis 15 ControlBitsSame as for Axis 1Same as for Axis 1
IW044Fx+15Axis 16 ControlBitsSame as for Axis 1Same as for Axis 1
IW0450x+16Axis 17 ControlBitsSame as for Axis 1Same as for Axis 1
IW0451x+17Axis 18 ControlBitsSame as for Axis 1Same as for Axis 1
IW0452x+18Axis 19 ControlBitsSame as for Axis 1Same as for Axis 1
IW0453x+19Axis 20 ControlBitsSame as for Axis 1Same as for Axis 1
IW0454x+20Axis 21 ControlBitsSame as for Axis 1Same as for Axis 1
IW0455x+21Axis 22 ControlBitsSame as for Axis 1Same as for Axis 1
IW0456x+22Axis 23 ControlBitsSame as for Axis 1Same as for Axis 1
IW0457x+23Axis 24 ControlBitsSame as for Axis 1Same as for Axis 1
IW0458x+24Axis 25 ControlBitsSame as for Axis 1Same as for Axis 1
IW0459x+25Axis 26 ControlBitsSame as for Axis 1Same as for Axis 1
IW045Ax+26Axis 27 ControlBitsSame as for Axis 1Same as for Axis 1
IW045Bx+27Axis 28 ControlBitsSame as for Axis 1Same as for Axis 1
IW045Cx+28Axis 29 ControlBitsSame as for Axis 1Same as for Axis 1
IW045Dx+29Axis 30 ControlBitsSame as for Axis 1Same as for Axis 1
IW045Ex+30Axis 31 ControlBitsSame as for Axis 1Same as for Axis 1
IW045Fx+31Axis 32 ControlBitsSame as for Axis 1Same as for Axis 1
IW046000-1532---ReservedReservedReserved
IW047F
IW048000-151d+0Axis 1 ControlDataAxis 1 OverrideSets override value to be used foraxis0.00 to 327.67 [%] (unit: 0.01%)
IW048100-1531d+1Axis 2 ControlDataAxis 2 OverrideSame as for Axis 1
IW0482d+2Axis 3 ControlDataAxis 3 OverrideSame as for Axis 1
IW0483d+3Axis 4 ControlDataAxis 4 OverrideSame as for Axis 1
IW0484d+4Axis 5 ControlDataAxis 5 OverrideSame as for Axis 1
IW0485d+5Axis 6 ControlDataAxis 6 OverrideSame as for Axis 1
IW0486d+6Axis 7 ControlDataAxis 7 OverrideSame as for Axis 1
IW0487d+7Axis 8 ControlDataAxis 8 OverrideSame as for Axis 1
IW0488d+8Axis 9 ControlDataAxis 9 OverrideSame as for Axis 1
IW0489d+9Axis 10 ControlDataAxis 10 OverrideSame as for Axis 1
IW048Ad+10Axis 11 ControlDataAxis 11 OverrideSame as for Axis 1
IW048Bd+11Axis 12 ControlDataAxis 12 OverrideSame as for Axis 1
IW048Cd+12Axis 13 ControlDataAxis 13 OverrideSame as for Axis 1
IW048Dd+13Axis 14 ControlDataAxis 14 OverrideSame as for Axis 1
IW048Ed+14Axis 15 ControlDataAxis 15 OverrideSame as for Axis 1
IW048Fd+15Axis 16 ControlDataAxis 16 OverrideSame as for Axis 1
IW0490d+16Axis 17 ControlDataAxis 17 OverrideSame as for Axis 1
IW0491d+17Axis 18 ControlDataAxis 18 OverrideSame as for Axis 1
IW0492d+18Axis 19 ControlDataAxis 19 OverrideSame as for Axis 1
IW0493d+19Axis 20 ControlDataAxis 20 OverrideSame as for Axis 1
IW0494d+20Axis 21 ControlDataAxis 21 OverrideSame as for Axis 1
IW0495d+21Axis 22 ControlDataAxis 22 OverrideSame as for Axis 1
IW0496d+22Axis 23 ControlDataAxis 23 OverrideSame as for Axis 1
IW0497d+23Axis 24 ControlDataAxis 24 OverrideSame as for Axis 1
IW0498d+24Axis 25 ControlDataAxis 25 OverrideSame as for Axis 1
IW0499d+25Axis 26 ControlDataAxis 26 OverrideSame as for Axis 1
IW049Ad+26Axis 27 ControlDataAxis 27 OverrideSame as for Axis 1
IW049Bd+27Axis 28 ControlDataAxis 28 OverrideSame as for Axis 1
IW049Cd+28Axis 29 ControlDataAxis 29 OverrideSame as for Axis 1
IW049Dd+29Axis 30 ControlDataAxis 30 OverrideSame as for Axis 1
IW049Ed+30Axis 31 ControlDataAxis 31 OverrideSame as for Axis 1
IW049Fd+31Axis 32 ControlDataAxis 32 OverrideSame as for Axis 1
IW04A000-151---Axis 1 ControlDataAxis 1 internal overrideUsed by adding it to the axis over-ride value.
IW04A100-1531---Axis 2 ControlDataAxis 2 internal overrideSame as for Axis 1
IW04A2Axis 3 ControlDataAxis 3 internal overrideSame as for Axis 1
IW04A3Axis 4 ControlDataAxis 4 internal overrideSame as for Axis 1
IW04A4Axis 5 ControlDataAxis 5 internal overrideSame as for Axis 1
IW04A5Axis 6 ControlDataAxis 6 internal overrideSame as for Axis 1
IW04A6Axis 7 ControlDataAxis 7 internal overrideSame as for Axis 1
IW04A7Axis 8 ControlDataAxis 8 internal overrideSame as for Axis 1
IW04A8Axis 9 ControlDataAxis 9 internal overrideSame as for Axis 1
IW04A9Axis 10 ControlDataAxis 10 internal overrideSame as for Axis 1
IW04AAAxis 11 ControlDataAxis 11 internal overrideSame as for Axis 1
IW04ABAxis 12 ControlDataAxis 12 internal overrideSame as for Axis 1
IW04ACAxis 13 ControlDataAxis 13 internal overrideSame as for Axis 1
IW04ADAxis 14 ControlDataAxis 14 internal overrideSame as for Axis 1
IW04AEAxis 15 ControlDataAxis 15 internal overrideSame as for Axis 1
IW04AFAxis 16 ControlDataAxis 16 internal overrideSame as for Axis 1
IW04B0Axis 17 ControlDataAxis 17 internal overrideSame as for Axis 1
IW04B1Axis 18 ControlDataAxis 18 internal overrideSame as for Axis 1
IW04B2Axis 19 ControlDataAxis 19 internal overrideSame as for Axis 1
IW04B3Axis 20 ControlDataAxis 20 internal overrideSame as for Axis 1
IW04B4Axis 21 ControlDataAxis 21 internal overrideSame as for Axis 1
IW04B5Axis 22 ControlDataAxis 22 internal overrideSame as for Axis 1
IW04B6Axis 23 ControlDataAxis 23 internal overrideSame as for Axis 1
IW04B7Axis 24 ControlDataAxis 24 internal overrideSame as for Axis 1P
IW04B8Axis 25 ControlDataAxis 25 internal overrideSame as for Axis 1
IW04B9Axis 26 ControlDataAxis 26 internal overrideSame as for Axis 1
IW04BAAxis 27 ControlDataAxis 27 internal overrideSame as for Axis 1
IW04BBAxis 28 ControlDataAxis 28 internal overrideSame as for Axis 1
IW04BCAxis 29 ControlDataAxis 29 internal overrideSame as for Axis 1
IW04BDAxis 30 ControlDataAxis 30 internal overrideSame as for Axis 1
IW04BEAxis 31 ControlDataAxis 31 internal overrideSame as for Axis 1
IW04BF00-1531---Axis 32 ControlDataAxis 32 internal overrideSame as for Axis 1
IW04C000-151---Axis 1 ControlDataReservedReserved
IW04C100-1531---Axis 2 ControlDataReservedReserved
IW04C2Axis 3 ControlDataReservedReserved
IW04C3Axis 4 ControlDataReservedReserved
IW04C4Axis 5 ControlDataReservedReserved
IW04C5Axis 6 ControlDataReservedReserved
IW04C6Axis 7 ControlDataReservedReserved
IW04C7Axis 8 ControlDataReservedReserved
IW04C8Axis 9 ControlDataReservedReserved
IW04C9Axis 10 ControlDataReservedReserved
IW04CAAxis 11 ControlDataReservedReserved
IW04CBAxis 12 ControlDataReservedReserved
IW04CCAxis 13 ControlDataReservedReserved
IW04CDAxis 14 ControlDataReservedReserved
IW04CEAxis 15 ControlDataReservedReserved
IW04CFAxis 16 ControlDataReservedReserved
IW04D0Axis 17 ControlDataReservedReserved
IW04D1Axis 18 ControlDataReservedReserved
IW04D2Axis 19 ControlDataReservedReserved
IW04D3Axis 20 ControlDataReservedReserved
IW04D4Axis 21 ControlDataReservedReserved
IW04D5Axis 22 ControlDataReservedReserved
IW04D6Axis 23 ControlDataReservedReserved
IW04D7Axis 24 ControlDataReservedReserved
IW04D8Axis 25 ControlDataReservedReserved
IW04D9Axis 26 ControlDataReservedReserved
IW04DAAxis 27 ControlDataReservedReserved
IW04DBAxis 28 ControlDataReservedReserved
IW04DCAxis 29 ControlDataReservedReserved
IW04DD00-1531---Axis 30 Control DataReservedReserved
IW04DEAxis 31 Control DataReservedReserved
IW04DFAxis 32 Control DataReservedReserved
IW04E000-151376---ReservedReservedReserved
IW09FF
IW0A0000-151---Motion task 1 control data1. P0004 bit 13 = 0: Motion tasks 1 to 8 are acceleration/deceleration time banks 2. P0004 bit 13 = 1: Motion tasks 1 to 8 are acceleration time banks1. P0004 bit 13 = 0: Selects sys-tem parameter to use as interpolation feed acceleration/ deceleration time 1 to 10: P00M11 to P00M20 are used as interpolation feed acceleration/deceleration times Other: P00M02: Uses interpolation feed acceleration timeP00M03: Uses interpolation feed deceleration time 2. P0004 bit 13 = 1: Interpolation feed acceleration time setting 1 to 5: P00M11 to P00M15 are used as interpolation feed acceleration times Other: P00M02: Used as interpolation acceleration time
IW0A0100-157---Motion task 2 control dataSame as for motion task 1Same as for motion task 1
IW0A02Motion task 3 control dataSame as for motion task 1Same as for motion task 1
IW0A03Motion task 4 control dataSame as for motion task 1Same as for motion task 1
IW0A04Motion task 5 control dataSame as for motion task 1Same as for motion task 1
IW0A05Motion task 6 control dataSame as for motion task 1Same as for motion task 1
IW0A06Motion task 7 control dataSame as for motion task 1Same as for motion task 1
IW0A07Motion task 8 control dataSame as for motion task 1Same as for motion task 1
Variable Address R: R/W:bitSizeCPU Unit WordClassificationNameSpecifications
IW0A0800-151---Motion task 1 control dataP0004 bit 13 = 1:Motion tasks 1 to 8 deceleration time banksP0004 bit 13 = 1: Interpolation feed deceleration time setting 1 to 5:P00M16 to P00M20 are used as interpolation feed deceleration times Other:P00M03: Used as interpolation feed deceleration time
IW0A097---Motion task 2 control dataSame as for motion task 1Same as for motion task 1
IW0A0AMotion task 3 control dataSame as for motion task 1Same as for motion task 1
IW0A0BMotion task 4 control dataSame as for motion task 1Same as for motion task 1
IW0A0CMotion task 5 control dataSame as for motion task 1Same as for motion task 1
IW0A0DMotion task 6 control dataSame as for motion task 1Same as for motion task 1
IW0A0EMotion task 7 control dataSame as for motion task 1Same as for motion task 1
IW0A0FMotion task 8 control dataSame as for motion task 1Same as for motion task 1
IW0A1000-1548---ReservedReservedReserved
IW0A3F
IW0A4000-15192---ReservedReservedReserved
IW0AFF
IW0B0000-15160a_AGeneral I/O AGeneral I/O A CH1-160Reflects data from General I/O A (CPU to MC Unit)
IW0B9F
IW0BA000-15160a_BGeneral I/O BGeneral I/O B CH1-160Same as for General I/O A
IW0C3F
IW0C4000-15160a_CGeneral I/O CGeneral I/O C CH1-160Same as for General I/O A
IW0CDF
IW0CE000-15160a_DGeneral I/O DGeneral I/O D CH1-160Same as for General I/O A
IW0D7F
IW0D8000-15160a_EGeneral I/O EGeneral I/O E CH1-160Same as for General I/O A
IW0E1F
IW0E2000-15160a_FGeneral I/O FGeneral I/O F CH1-160Same as for General I/O A
IW0EBF
IW0EC000-15160a_GGeneral I/O GGeneral I/O G CH1-160Same as for General I/O A
IW0F5F
IW0F6000-15160a_HGeneral I/O HGeneral I/O H CH1-160Same as for General I/O A
IW0FFF

4-6-3 List of Output Variables

Output variables

Input variableSizePC21 Bus Cyclic areaClassificationAccess
OW00001---MC Unit external output terminalR/W
OW0001-OW000F15---ReservedR/W
OW0010-OW020F512---MECHATROLINK-II output Axis 1-32R/W
OW0210-OW026F96---Slave Status Axis 1 to 32R
OW0270-OW02FF144---ReservedR
OW0300-OW03034n+12 - n+15Unit status bitsR
OW0304-OW03052---Zone monitoring status bitsR
OW0306-OW030F10---ReservedR
OW0310-OW03112m+38 - m+39Unit status dataR
OW0312-OW031F14---ReservedR
OW03201n+3ReservedR
OW0321-OW032F15---ReservedR
OW0330-OW03311m+21ReservedR
OW0332-OW033F15---ReservedR
OW0340-OW03478n+17 - n+24Motion task 1-8 Status bitsR
OW0348-OW035F24---ReservedR
OW0360-OW037F32m+42 - m+73Motion task 1-8 Status dataR
OW0380-OW043F192---ReservedR
OW0440-OW045F32x+32 - x+63Axis 1-32 Status bitsR
OW0460-OW047F32---ReservedR
OW0480-OW04DF96d+32 - d+127Axis1-32 Status dataR
OW04E0-OW0AFF1568---ReservedR
OW0B00-OW0FFF1280Custom areaGeneral I/O A-HR/W

The column "Access" in the above table indicate the restrictions for Reading and Writing from motion programs. It is prohibited to write from a user's program in the status output area.

Writing data from motion programs to the input variables allocated to the bit area in the PLC enables the MC Unit to control the Unit, tasks and axes.

Writing data from motion programs to the output variables allocated to MECHATROLINK-II output devices and the MC Unit external output terminals enables the MC Unit to control the signal outputs.

Output variables indicate the data that is output from the MC Unit.

Details of Output Variables

Variable Address R:■ R/W:■bitSizeCPU Unit WordClassificationNameSpecifications
OW0000001---MC Unit External Output TerminalExternal General Output 1Sets output to external general output 1 terminal.
01External General Output 2Sets output to external general output 2 terminal.
02-15ReservedReserved
OW000100-1515---ReservedReservedReserved
OW000F
OW001000-1516---MECHATROLINK-IIOutput Axis 1MECHATROLINK-II Output Axis 1 CH1MECHATROLINK-II Output Axis 1 CH1
OW0011MECHATROLINK-II Output Axis 1 CH2MECHATROLINK-II Output Axis 1 CH2
OW0012MECHATROLINK-II Output Axis 1 CH3MECHATROLINK-II Output Axis 1 CH3
OW0013MECHATROLINK-II Output Axis 1 CH4MECHATROLINK-II Output Axis 1 CH4
OW0014MECHATROLINK-II Output Axis 1 CH5MECHATROLINK-II Output Axis 1 CH5
OW0015MECHATROLINK-II Output Axis 1 CH6MECHATROLINK-II Output Axis 1 CH6
OW0016MECHATROLINK-II Output Axis 1 CH7MECHATROLINK-II Output Axis 1 CH7
OW0017MECHATROLINK-II Output Axis 1 CH8MECHATROLINK-II Output Axis 1 CH8
OW0018MECHATROLINK-II Output Axis 1 CH9MECHATROLINK-II Output Axis 1 CH9
OW0019MECHATROLINK-II Output Axis 1 CH10MECHATROLINK-II Output Axis 1 CH10
OW001AMECHATROLINK-II Output Axis 1 CH11MECHATROLINK-II Output Axis 1 CH11
OW001BMECHATROLINK-II Output Axis 1 CH12MECHATROLINK-II Output Axis 1 CH12
OW001CMECHATROLINK-II Output Axis 1 CH13MECHATROLINK-II Output Axis 1 CH13
OW001DMECHATROLINK-II Output Axis 1 CH14MECHATROLINK-II Output Axis 1 CH14
OW001EMECHATROLINK-II Output Axis 1 CH15MECHATROLINK-II Output Axis 1 CH15
OW001FMECHATROLINK-II Output Axis 1 CH16MECHATROLINK-II Output Axis 1 CH16
OW002000-1516---MECHATROLINK-IIOutput Axis 1 CH2Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW002F
OW003000-1516---MECHATROLINK-IIOutput Axis 1 CH3Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW003F
OW004000-1516---MECHATROLINK-IIOutput Axis 1 CH4Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW004F
OW005000-1516---MECHATROLINK-IIOutput Axis 1 CH5Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW005F
OW006000-1516---MECHATROLINK-IIOutput Axis 1 CH6Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW006F
OW007000-1516---MECHATROLINK-IIOutput Axis 1 CH7Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW007F
OW008000-1516---MECHATROLINK-IIOutput Axis 1 CH8Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW008F
OW009000-1516---MECHATROLINK-IIOutput Axis 1 CH9Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW009F
OW00A000-1516---MECHATROLINK-IIOutput Axis 1 CH10Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW00AF
OW00B000-1516---MECHATROLINK-IIOutput Axis 1 CH11Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW00BF
OW00C000-1516---MECHATROLINK-IIOutput Axis 1CH12Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW00CF
OW00D000-1516---MECHATROLINK-IIOutput Axis 1CH13Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW00DF
OW00E000-1516---MECHATROLINK-IIOutput Axis 1CH14Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW00EF
OW00F000-1516---MECHATROLINK-IIOutput Axis 1CH15Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW00FF
OW010000-1516---MECHATROLINK-IIOutput Axis 1CH16Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW010F
OW011000-1516---MECHATROLINK-IIOutput Axis 1CH17Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW011F
OW012000-1516---MECHATROLINK-IIOutput Axis 1CH18Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW012F
OW013000-1516---MECHATROLINK-IIOutput Axis 1CH19Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW013F
OW014000-1516---MECHATROLINK-IIOutput Axis 1CH20Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW014F
OW015000-1516---MECHATROLINK-IIOutput Axis 1CH21Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW015F
OW016000-1516---MECHATROLINK-IIOutput Axis 1CH22Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW016F
OW017000-1516---MECHATROLINK-IIOutput Axis 1CH23Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW017F
OW018000-1516---MECHATROLINK-IIOutput Axis 1CH24Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW018F
OW019000-1516---MECHATROLINK-IIOutput Axis 1CH25Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW019F
OW01A000-1516---MECHATROLINK-IIOutput Axis 1CH26Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW01AF
OW01B000-1516---MECHATROLINK-IIOutput Axis 1CH27Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW01BF
OW01C000-1516---MECHATROLINK-IIOutput Axis 1CH28Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-II Output Axis 1
OW01CF
OW01D000-1516---MECHATROLINK-IIOutput Axis 1CH29Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-IIOutput Axis 1
OW01DF
OW01E000-1516---MECHATROLINK-IIOutput Axis 1CH30Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-IIOutput Axis 1
OW01EF
OW01F000-1516---MECHATROLINK-IIOutput Axis 1CH31Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-IIOutput Axis 1
OW01FF
OW020000-1516---MECHATROLINK-IIOutput Axis 1CH32Same as for MECHA-TROLINK-II Output Axis 1Same as for MECHATROLINK-IIOutput Axis 1
OW020F
OW021000-1516---Slave Status Axis 1 (Supported in Unit Ver. 3.0 or later)Alarm/warning codeStores the alarm or warning code when an alarm or warning has occurred in the MECHATROLINK-II Slave.This code is set to 0 when the Axis Alarm Reset for the axis is turned ON.
OW021100-1516---Servo Status 1Stores the same value as Servo Status (SW021C). Refreshed each Unit cycle.
OW021200-1516---Servo Status 2Stores the same value as Servo Status (SW021D). Refreshed each Unit cycle.
OW021300-1516---Slave Status Axis 2Alarm/warning codeSame as for Axis 1
OW021400-1516---Servo Status 1Same as for Axis 1
OW021500-1516---Servo Status 2Same as for Axis 1
OW021600-1516---Slave Status Axis 3Alarm/warning codeSame as for Axis 1
OW021700-1516---Servo Status 1Same as for Axis 1
OW021800-1516---Servo Status 2Same as for Axis 1
OW021900-1516---Slave Status Axis 4Alarm/warning codeSame as for Axis 1
OW021A00-1516---Servo Status 1Same as for Axis 1
OW021B00-1516---Servo Status 2Same as for Axis 1
OW021C00-1516---Slave Status Axis 5Alarm/warning codeSame as for Axis 1
OW021D00-1516---Servo Status 1Same as for Axis 1
OW021E00-1516---Servo Status 2Same as for Axis 1
OW021F00-1516---Slave Status Axis 6Alarm/warning codeSame as for Axis 1
OW022000-1516---Servo Status 1Same as for Axis 1
OW022100-1516---Servo Status 2Same as for Axis 1
OW022200-1516---Slave Status Axis 7Alarm/warning codeSame as for Axis 1
OW022300-1516---Servo Status 1Same as for Axis 1
OW022400-1516---Servo Status 2Same as for Axis 1
OW022500-1516---Slave Status Axis 8Alarm/warning codeSame as for Axis 1
OW022600-1516---Servo Status 1Same as for Axis 1
OW022700-1516---Servo Status 2Same as for Axis 1
OW022800-1516---Slave Status Axis 9Alarm/warning codeSame as for Axis 1
OW022900-1516---Servo Status 1Same as for Axis 1
OW022A00-1516---Servo Status 2Same as for Axis 1
OW022B00-1516---Slave Status Axis 10Alarm/warning codeSame as for Axis 1
OW022C00-1516---Servo Status 1Same as for Axis 1
OW022D00-1516---Servo Status 2Same as for Axis 1
OW022E00-1516---Slave Status Axis 11Alarm/warning codeSame as for Axis 1
OW022F00-1516---Servo Status 1Same as for Axis 1
OW023000-1516---Servo Status 2Same as for Axis 1
OW023100-1516---Slave Status Axis 12Alarm/warning codeSame as for Axis 1
OW023200-1516---Servo Status 1Same as for Axis 1
OW023300-1516---Servo Status 2Same as for Axis 1
OW023400-1516---Slave Status Axis 13Alarm/warning codeSame as for Axis 1
OW023500-1516---Servo Status 1Same as for Axis 1
OW023600-1516---Servo Status 2Same as for Axis 1
OW023700-1516---Slave Status Axis 14Alarm/warning codeSame as for Axis 1
OW023800-1516---Servo Status 1Same as for Axis 1
OW023900-1516---Servo Status 2Same as for Axis 1
OW023A00-1516---Slave Status Axis 15Alarm/warning codeSame as for Axis 1
OW023B00-1516---Servo Status 1Same as for Axis 1
OW023C00-1516---Servo Status 2Same as for Axis 1
OW023D00-1516---Slave Status Axis 16Alarm/warning codeSame as for Axis 1
OW023E00-1516---Servo Status 1Same as for Axis 1
OW023F00-1516---Servo Status 2Same as for Axis 1
OW024000-1516---Slave Status Axis 17Alarm/warning codeSame as for Axis 1
OW024100-1516---Servo Status 1Same as for Axis 1
OW024200-1516---Servo Status 2Same as for Axis 1
OW024300-1516---Slave Status Axis 18Alarm/warning codeSame as for Axis 1
OW024400-1516---Servo Status 1Same as for Axis 1
OW024500-1516---Servo Status 2Same as for Axis 1
OW024600-1516---Slave Status Axis 19Alarm/warning codeSame as for Axis 1
OW024700-1516---Servo Status 1Same as for Axis 1
OW024800-1516---Servo Status 2Same as for Axis 1
OW024900-1516---Slave Status Axis 20Alarm/warning codeSame as for Axis 1
OW024A00-1516---Servo Status 1Same as for Axis 1
OW024B00-1516---Servo Status 2Same as for Axis 1
OW024C00-1516---Slave Status Axis 21Alarm/warning codeSame as for Axis 1
OW024D00-1516---Servo Status 1Same as for Axis 1
OW024E00-1516---Servo Status 2Same as for Axis 1
OW024F00-1516---Slave Status Axis 22Alarm/warning codeSame as for Axis 1
OW025000-1516---Servo Status 1Same as for Axis 1
OW025100-1516---Servo Status 2Same as for Axis 1
OW025200-1516---Slave Status Axis 23Alarm/warning codeSame as for Axis 1
OW025300-1516---Servo Status 1Same as for Axis 1
OW025400-1516---Servo Status 2Same as for Axis 1
OW025500-1516---Slave Status Axis 24Alarm/warning codeSame as for Axis 1
OW025600-1516---Servo Status 1Same as for Axis 1
OW025700-1516---Servo Status 2Same as for Axis 1
OW025800-1516---Slave Status Axis 25Alarm/warning codeSame as for Axis 1
OW025900-1516---Servo Status 1Same as for Axis 1
OW025A00-1516---Servo Status 2Same as for Axis 1
OW025B00-1516---Slave Status Axis 26Alarm/warning codeSame as for Axis 1
OW025C00-1516---Servo Status 1Same as for Axis 1
OW025D00-1516---Servo Status 2Same as for Axis 1
OW025E00-1516---Slave Status Axis 27Alarm/warning codeSame as for Axis 1
OW025F00-1516---Servo Status 1Same as for Axis 1
OW026000-1516---Servo Status 2Same as for Axis 1
OW026100-1516---Slave Status Axis 28Alarm/warning codeSame as for Axis 1
OW026200-1516---Servo Status 1Same as for Axis 1
OW026300-1516---Servo Status 2Same as for Axis 1
OW026400-1516---Slave Status Axis 29Alarm/warning codeSame as for Axis 1
OW026500-1516---Servo Status 1Same as for Axis 1
OW026600-1516---Servo Status 2Same as for Axis 1
OW026700-1516---Slave Status Axis 30Alarm/warning codeSame as for Axis 1
OW026800-1516---Servo Status 1Same as for Axis 1
OW026900-1516---Servo Status 2Same as for Axis 1
OW026A00-1516---Slave Status Axis 31Alarm/warning codeSame as for Axis 1
OW026B00-1516---Servo Status 1Same as for Axis 1
OW026C00-1516---Servo Status 2Same as for Axis 1
OW026D00-1516---Slave Status Axis 32Alarm/warning codeSame as for Axis 1
OW026E00-1516---Servo Status 1Same as for Axis 1
OW026F00-1516---Servo Status 2Same as for Axis 1
OW027000-15144---ReservedReservedReserved
OW02FF
OW0300001n+12Alarm Identifica-tionAlarm Occurring0: No alarm1: An alarm occurred on MC Unit (linked to ERC indicator).
01Unit Alarm Occurring0: No alarm1: An alarm occurred on Unit level
02Reserved
03-10Motion Task Alarm Occur-ring 1-80: No alarm1: An alarm occurred on motion task level
11-15ReservedReserved
OW030100-151n+13Axis Alarm Occurring 1-160: No alarm1: An alarm occurred on axis
OW030200-151n+14Axis Alarm Occurring 17-320: No alarm1: An alarm occurred on axis
OW0303001n+15Unit StatusUnit Ready0: Unit is not ready to receive commands1: Unit is ready to receive commands
01Unit Alarm0: No alarm1: An alarm occurred on Unit level
02F-ROM Save Completed0: Saving neither parameters nor position data has been completed1: Saving either parameters or position data has been completed (error completion included)
03Teaching Warning0: Teaching condition setting and execution completed normally1: Condition error, Command disabled, No origin, or address over flow
04Teaching Condition Setting Completed0: When Teaching condition setting is OFF1: Teaching condition setting completed (error completion included)
05Teaching Execution Com- pleted0: When teaching execution is OFF1: Teaching execution completed (error completed included)
06MECHATROLINK-II Device Search Execution0: Normal status1: Started MECHATROLINK-II device search
07External Forced Stop Request0: No external forced stop request from FINS, etc. (not from input variable)1: External forced stop requested from FINS, etc. (not from input variable)
08External Forced Stop Status0: No forced stop request, or pro- cessing for stopping1: Stopped by forced stop request
09Operating Mode (Supported in Unit Ver. 3.0 or later)Gives the current MC Unit operat- ing mode.0: RUN or CPU mode1: Tool mode
10ReservedReserved
11ReservedReserved
12-15Present Value Monitor Sta- tusDisplays the present value moni- toring output status0: Zero output1: FB position (selected coordi- nate system)2: FB position (machine coordi- nate system)3: Command position (selected coordinate system)4: Command position (machine coordinate system)5: FB speed 1 (speed command unit)6: FB speed 2 (depends on parameters)7: Command speed 1 (speed command unit)8: Command speed 2 (depends on parameters)9: Error10: Torque command11-15: Reserved for system
OW030400-151------Zone Monitoring Status Bits (No. 1 to 16) (Supported for unit version 3.0 and later.)Outputs whether zone bits No. 1 to 16 can be used. No. 1 corresponds to bit 0, and No. 16 corresponds to bit 15. 0: The upper or lower limit setting for the zone is incorrect, or the Zone Enable Bit is OFF (disabled). 1: The upper and lower limit settings for the zone are correct and the Zone Enable Bit is ON (enabled).
OW030500-151------Zone Monitoring Status Bits (No. 17 to 32) (Supported for unit version 3.0 and later.)Outputs whether zone bits No. 17 to 32 can be used. No. 17 corresponds to bit 0, and No. 32 corresponds to bit 15. 0: The upper or lower limit setting for the zone is incorrect, or the Zone Enable Bit is OFF (disabled). 1: The upper and lower limit settings for the zone are correct and the Zone Enable Bit is ON (enabled).
OW030600-1512---ReservedReservedReserved
OW030F
OW031000-151m+38Unit Status DataUnit Alarm CodeOutputs the alarm code for alarm occurring on Unit level
OW031100-151m+39Teaching Address MonitoringOutputs an address currently being the teaching object
OW031200-1514---ReservedReservedReserved
OW031F
OW0320001n+16Reserved
01
02-15ReservedReserved
OW032100-1515---ReservedReservedReserved
OW032F
OW033000-151m+40Reserved
OW033100-151m+41
OW033200-1514---ReservedReservedReserved
OW033F
OW0340001n+17Motion Task 1 Sta-tusMotion Task Alarm0: No alarm occurring on motion task level1: An alarm occurred on motion task level
01Motion Program Operating0: Motion task is not executing motion program1: Motion task is in program operation (Turned OFF after completion of deceleration/block stop)
02Motion Program Operation Completed0: When program operation is started1: Executed END command
03In Block Stop0: Block not stopped1: Block stopped
04Speed Clamp Warning0: Speed not clamped1: Speed clamped due to maximum speed limit
05Start Warning0: Motion program operation started1: Motion program operation could not be started (Axis declaration, Axis mode)
06Start Bit (Supported in Unit Ver. 3.0 or later)0: Motion Program Operating Bit is OFF (0/disabled)1: Motion Program Operating Bit is ON (1/enabled)
07-15ReservedReserved
OW034100-157n+18Motion Task 2 Sta-tusSame as for Motion Task 1 StatusSame as for Motion Task 1 Status
OW0342n+19Motion Task 3 Sta-tusSame as for Motion Task 1 StatusSame as for Motion Task 1 Status
OW0343n+20Motion Task 4 Sta-tusSame as for Motion Task 1 StatusSame as for Motion Task 1 Status
OW0344n+21Motion Task 5 Sta-tusSame as for Motion Task 1 StatusSame as for Motion Task 1 Status
OW0345n+22Motion Task 6 Sta-tusSame as for Motion Task 1 StatusSame as for Motion Task 1 Status
OW0346n+23Motion Task 7 Sta-tusSame as for Motion Task 1 StatusSame as for Motion Task 1 Status
OW0347n+24Motion Task 8 Sta-tusSame as for Motion Task 1 StatusSame as for Motion Task 1 Status
OW034800-1524---ReservedReservedReserved
OW035F
OW036000-151m+42Motion Task 1 Sta-tus DataMotion Task Alarm CodeOutputs the alarm code for alarm occurring on motion task level
OW036100-151m+43Executing Motion Program No.The program No. of the program currently being executed by a motion task, or temporarily stopped is output
OW036200-151m+44Executing Motion Block No. (Single execution command)The block No. of the single execution command currently being executed by a motion task, or temporarily stopped, is out-put.During execution of parallel branching, the block No. of the leftmost block is output
OW036300-151m+45Executing Motion Block No. (Multiple execution command)The block No. of the multiple execution command currently being executed by a motion task, or temporarily stopped is output.During execution of parallel branching, the block No. of the leftmost block is output.
OW036400-1528m+46Motion task 2 Sta-tus DataSame as for Motion Task 1 Status DataSame as for Motion Task 1 Status Data
OW0365m+47
OW0366m+48
OW0367m+49
OW0368m+50Motion task 3 Sta-tus DataSame as for Motion Task 1 Status DataSame as for Motion Task 1 Status Data
OW0369m+51
OW036Am+52
OW036Bm+53
OW036Cm+54Motion task 4 Sta-tus DataSame as for Motion Task 1 Status DataSame as for Motion Task 1 Status Data
OW036Dm+55
OW036Em+56
OW036Fm+57
OW0370m+58Motion task 5 Sta-tus DataSame as for Motion Task 1 Status DataSame as for Motion Task 1 Status Data
OW0371m+59
OW0372m+60
OW0373m+61
OW0374m+62Motion task 6 Sta-tus DataSame as for Motion Task 1 Status DataSame as for Motion Task 1 Status Data
OW0375m+63
OW0376m+64
OW0377m+65
OW0378m+66Motion task 7 Sta-tus DataSame as for Motion Task 1 Status DataSame as for Motion Task 1 Status Data
OW0379m+67
OW037Am+68
OW037Bm+69
OW037Cm+70Motion task 8 Sta-tus DataSame as for Motion Task 1 Status DataSame as for Motion Task 1 Status Data
OW037Dm+71
OW037Em+72
OW037Fm+73
OW038000-15192---ReservedReservedReserved
OW043F
OW0440001x+32Axis 1 Status BitsAxis Alarm0: No alarm on axis or MECHA-TROLINK-II slave1: An alarm occurred on axis or MECHATROLINK-II slave
01Machine Origin0: Machine coordinate system FB position is outside of origin in-position range1: Machine coordinate system FB position is within origin position in-position range
02Busy0: None of the functions listed below is being executed1: One of the functions listed below is being executed or command is ON(JOG, STEP, Origin search, Machine origin return, Error counter reset, Forced origin, or ABS origin setting)
03In Servo Lock0: In Servo-lock1: In Servo-unlock
04No Origin0: Origin on machine coordinate system is established1: Origin on machine coordinate system is not established
05Axis Operating0: No axis operating command1: Axis operating command being output
06Positioning Completed0: Command value being output or outside of in-position range1: Command value not being output and within in-position range
07Positioning Completed (No.2)0: Command value being output or outside of NO.2 in-position range1: Command value not being output and within No.2 in-position range
08Error Counter Warning0: Error amount is within the range of error counter warning value1: Error amount is outside (exceeded) of the range of error counter warning value
09Axis Machine Lock Status0: Cancels axis machine lock mode1: In axis machine lock mode
10Counter Latch Completed0: Counter latch not completed1: Counter latch completed
11MECHATROLINK Warning0: No warning detected on MECHATROLINK-II device1: Warning detected on MECHA-TROLINK-II device
12Main power ON(Supported in Unit Ver. 3.0 or later)0: Servo Driver 's main power OFF1: Servo Driver 's main power ON
13Command Disabled/Enabled0: Not allocated or implemented1: Allocated and implemented (always 1 for virtual axis)
14Axis Not Used/Used0: Axis not used1: Axis in use (Manual: During JOG execution, etc., Automatic: Axis declared in a running program)
15In Manual/Automatic Mode0: In manual mode1: In automatic mode
OW044100-1531x+33Axis 2 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW0442x+34Axis 3 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW0443x+35Axis 4 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW0444x+36Axis 5 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW0445x+37Axis 6 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW0446x+38Axis 7 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW0447x+39Axis 8 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW0448x+40Axis 9 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW0449x+41Axis 10 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW044Ax+42Axis 11 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW044Bx+43Axis 12 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW044Cx+44Axis 13 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW044Dx+45Axis 14 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW044Ex+46Axis 15 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW044Fx+47Axis 16 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW0450x+48Axis 17 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW0451x+49Axis 18 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW0452x+50Axis 19 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW0453x+51Axis 20 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW0454x+52Axis 21 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW0455x+53Axis 22 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW0456x+54Axis 23 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW0457x+55Axis 24 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW0458x+56Axis 25 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW0459x+57Axis 26 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW045Ax+58Axis 27 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW045Bx+59Axis 28 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW045Cx+60Axis 29 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW045Dx+61Axis 30 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW045Ex+62Axis 31 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW045Fx+63Axis 32 Status BitsSame as for Axis 1 StatusBitsSame as for Axis 1 Status Bits
OW046000-1532---ReservedReservedReserved
OW047F
OW048000-151d+32Axis 1 Status DataAxis Alarm CodeOutput the alarm code for alarm occurring on axis or MECHA-TROLINK-II slave
OW048100-152d+33Present Value MonitorSelected from the following 8 items for output1: FB position (selected coordinate system)2: FB position (machine coordinate system)3: Command position (selected coordinate system)4: Command position (machine coordinate system)5: FB speed6: Command speed7: Error8: Torque Command
OW0482d+34
OW048300-1593d+35Axis 2 Status DataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW0484d+36
OW0485d+37
OW0486d+38Axis 3 Status DataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW0487d+39
OW0488d+40
OW0489d+41Axis 4 Status DataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW048Ad+42
OW048Bd+43
OW048Cd+44Axis 5 Status DataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW048Dd+45
OW048Ed+46
OW048Fd+47Axis 6 Status DataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW0490d+48
OW0491d+49
OW0492d+50Axis 7 Status DataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW0493d+51
OW0494d+52
OW0495d+53Axis 8 Status DataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW0496d+54
OW0497d+55
OW0498d+56Axis 9 Status DataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW0499d+57
OW049Ad+58
OW049Bd+59Axis 10 Status DataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW049Cd+60
OW049Dd+61
OW049Ed+62Axis 11 Status DataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW049Fd+63
OW04A0d+64
OW04A1d+65Axis 12 Status DataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW04A2d+66
OW04A3d+67
OW04A4d+68Axis 13 Status DataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW04A5d+69
OW04A6d+70
OW04A700-1593d+71Axis 14 StatusDataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW04A8d+72
OW04A9d+73
OW04AAd+74Axis 15 StatusDataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW04ABd+75
OW04ACd+76
OW04ADd+77Axis 16 StatusDataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW04AEd+78
OW04AFd+79
OW04B0d+80Axis 17 StatusDataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW04B1d+81
OW04B2d+82
OW04B3d+83Axis 18 StatusDataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW04B4d+84
OW04B5d+85
OW04B6d+86Axis 19 StatusDataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW04B7d+87
OW04B8d+88
OW04B9d+89Axis 20 StatusDataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW04BAd+90
OW04BBd+91
OW04BCd+92Axis 21 StatusDataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW04BDd+93
OW04BEd+94
OW04BFd+95Axis 22 StatusDataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW04C0d+96
OW04C1d+97
OW04C2d+98Axis 23 StatusDataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW04C3d+99
OW04C4d+100
OW04C5d+101Axis 24 StatusDataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW04C6d+102
OW04C7d+103
OW04C8d+104Axis 25 StatusDataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW04C9d+105
OW04CAd+106
OW04CBd+107Axis 26 StatusDataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW04CCd+108
OW04CDd+109
OW04CEd+110Axis 27 StatusDataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW04CFd+111
OW04D0d+112
OW04D1d+113Axis 28 StatusDataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW04D2d+114
OW04D3d+115
OW04D4d+116Axis 29 StatusDataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW04D5d+117
OW04D6d+118
OW04D7d+119Axis 30 StatusDataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW04D8d+120
OW04D9d+121
Variable Address R: ▪ R/W: ▪bitSizeCPU Unit WordClassificationNameSpecifications
OW04DA00-1593d+122Axis 31 Status DataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW04DBd+123
OW04DCd+124
OW04DDd+125Axis 32 Status DataSame as for Axis 1 Status DataSame as for Axis 1 Status Data
OW04DEd+126
OW04DFd+127
OW04E000-151568---ReservedReservedReserved
OW0AFF
OW0B0000-15160a_AGeneral I/O AGeneral I/O A CH1-160Sets Data to be output to general I/O A (MC Unit to CPU)
OW0B9F
OW0BA000-15160a_BGeneral I/O BGeneral I/O B CH1-160Same as for General I/O A
OW0C3F
OW0C4000-15160a_CGeneral I/O CGeneral I/O C CH1-160Same as for General I/O A
OW0CDF
OW0CE000-15160a_DGeneral I/O DGeneral I/O D CH1-160Same as for General I/O A
OW0D7F
OW0D8000-15160a_EGeneral I/O EGeneral I/O E CH1-160Same as for General I/O A
OW0E1F
OW0E2000-15160a_FGeneral I/O FGeneral I/O F CH1-160Same as for General I/O A
OW0EBF
OW0EC000-15160a_GGeneral I/O GGeneral I/O G CH1-160Same as for General I/O A
OW0F5F
OW0F6000-15160a_HGeneral I/O HGeneral I/O H CH1-160Same as for General I/O A
OW0FFF

4-7 Present Position Preset

  • Using the IOWR instruction of the CPU unit, the present position can be preset to the desired value.
  • With MC Units prior to unit version 3.0, the origin could not be established when using a preset. With unit version 3.0 and later it can. To establish the origin, set the following parameter: P00004 Bit12

0: When the present position is set to the preset value, the origin status immediately prior to the preset is retained. This is the same functionality as for previous unit versions.
1: When the present position is set to the preset value, the origin is established. In other words, when the preset operation has been normally completed, the No-origin Flag turns OFF (disabled).
- As for the IOWR instruction, refer to 5-2 IOWR Instruction to Transfer Data (Page 221).

Address of Present Position Preset

Axis No.Address
14000
24001
::
31401E
32401F

Ladder Diagram Example

  • The following shows the ladder diagram that executes the present position preset.
  • MC Unit having the unit No. 0, the present position of Axis 1 is modified to the preset values in DM100 and 101.

OMRON CJ1W-MCH71 - Ladder Diagram Example - 1

Setting Content [DM]

OMRON CJ1W-MCH71 - Setting Content [DM] - 1

Caution

Executing the present position preset of a master axis during execution of synchronization with Feedback value specified in the master axis classification causes the MC Unit to operate the slave axis misconceiving that the master axis moved from the position before the preset to the one after the preset.

4-8 Servo Parameter

4-8-1 Servo Parameter Overview

Parameters in the servo driver can be edited using the Support Tool for MC Unit. It is also possible to read or write data from or to the servo driver using IORD/IOWR instructions of the CPU Unit.

These functions enable the PLC to manage the parameters of the servo driver.

Refer to the servo driver's manual for more details.

Note

Servo parameters operate with the setting saved in the servo driver. Therefore, it will be required to setup parameters of a driver when the driver is replaced.

Basic Procedures for Using CX-Motion-MCH Support Software

  1. Connect the servo driver and Motion Control Unit.

  2. Select the servo parameters in the project tree and select Online - Transfer- From Servo from the menu bar, click the icon in the toolbar, or right-click and select Transfer - From Servo from the pop-up menu to read the parameters from the servo drive to the computer.

  3. If data is to be edited offline, load the CX-Motion-MCH file saved in the computer.
  4. If the servo driver parameters are saved in the Motion Control Unit, select the servo parameters in the project tree and select Online - Transfer - From MC from the menu bar, click the icon in the toolbar, or right-click and select Transfer - From MC from the pop-up menu to read the parameters from the Motion Control Unit to the computer.
  5. Select the servo parameters in the project tree and select Online - Transfer - To MC from the menu bar, click the icon in the toolbar, or right-click and select Transfer - To MC from the pop-up menu to write the parameters from the computer to the Motion Control Unit.

Transfer Using IORD/ IOWR Instructions

Specify the address (7000 Hex - 78FF Hex) corresponding to the parameter No. (Pn000 - Pn8FF) of the serve driver. The three rightmost digits of the MC Unit address should match with the parameter No.

Parameter No.MC Unit Address
Pn0007000 Hex
Pn0017001 Hex
::
Pn8FF78FFHex

Note For details on IORD/IOWR instructions, refer to 5-2 IOWR Instruction to Transfer Data (Page 221) and 5-3 IORD Instruction to Transfer Data (Page 228).

4-8-2 Data Configuration and Contents of Servo Parameters

The parameters with the combination of W-series servo driver and NS115 are classified as shown below.

ClassificationShade in the list
Parameters exclusively for the linear motor
Parameters of unused functions
Parameters to be overwritten by the MC Unit
Parameters that operate only with fixed valuesFixed value

S: System reserved constant
R: Reserved constant (Do not change the setting.)
N: Disable constant (Do not change the setting because nothing will be changed.)

: Always enabled (Called Online User Constant)

Enable when DEN = 1 (Do not change when DEN = 0. If changed, proper operations are not guaranteed.) (Called Online User Constant)

: Restoring the power/CONFIG is required. (Called Offline User Constant)

TypeUser constant No.NameSizeUnitLower limitUpper limitthe Support Tool initial valueEn- able
Pn000Basic function selection switch2---0000H1FF1H0000HΔ
0Rotation direction select0CCW direction as forward rotation0Δ
1CW direction as forward rotationΔ
1Control method0-BSetting has no effect. Do not set.0Δ
2Axis address0-FSets an axis address for servo pack.0Δ
3Rotary/Linear startup select (Without an encoder)0Starts as a rotary type.0Δ
1Starts as a linear type.
Pn001Advanced function selection switch 12---0000H1122H0000HΔ
0Stopping method in case of servo-OFF or servo alarm]0Stops the motor using the dynamic brake (DB).0Δ
1Stops the motor using the dynamic brake (DB), and then cancels the DB.
2Makes the motor free-run status without using DB.
1Stop method in case of Over travel (OT)0The same stopping method as for Pn001.0.0Δ
1Makes the motor decelerate to stop with the torque set in Pn406 as maximum torque, and the motor will be in servo-lock state.
2Makes the motor decelerate to stop with the torque set in Pn406 as maximum torque, and the motor will be in free-run state.
2AC/DC power supply input select0DC power supply input not supported: Input AC power supply to L1, L2, (or L3) terminal.0Δ
1DC power supply input supported: Input DC power supply to (+) 1(-) terminal.
3Warning code output select0AL01, ALO2, and ALO3 output only alarm codes.0Δ
1AL01, ALO2, and ALO3 output both alarm codes and warning codes. When outputting the warning codes, the ALM signal output stays ON (Normal).
Pn002Advanced function selection switch 22---0000H4113H0000HΔ
0Speed/position control option (T-REF allocation)0Nil0Δ
1Uses T-REF as external torque limit input.
2Uses T-REF as torque feed forward input.
3Uses T-REF terminal as external torque limit input when P-CL and N-CL are enabled.
1Torque control option (V-REF allocation)0Nil0Δ
1Uses V-REF as external speed limit input.
2Absolute encoder usage0Uses an absolute encoder as an absolute encoder.0Δ
1Uses an absolute encoder as an incremental encoder.
3Fully-closed PG pulse usage0Not Used0Δ
1Uses without phase-C.
2Uses with phase-C.
3Uses in reverse rotation mode without phase-C.
4Use as reverse rotation mode with phase-C.
Pn003Advanced function selection switch 32---0000H00FFH0002H
0Analog monitor 10Motor rotation speed Rotary: 1 V/1000 r/min, Linear: 1 V/1000 mm/s2
1Speed command Rotary: 1 V/1000 r/min, Lin- ear: 1 V/1000 mm/s
2Torque/thrust command: 1 V/100%
3Position error: 0.05 V/1 command unit
4Position error: 0.05 V/100 command unit
5Command pulse frequency [r/min conver- sion] Rotary: 1 V/1000 r/min, Linear: 1 V/ 1000 mm/s
6Motor rotation speed × 4 Rotary: 1 V/250 r/min × 10 Linear: 1 V/100 mm/s
7Motor rotation speed × 8 Rotary: 1 V/125 r/min × 100 Linear: 1 V/10 mm/s
8RReserved
9RReserved
ARReserved
BRReserved
CRReserved
DRReserved
ERReserved
FRReserved
1Analog monitor 20-FSame as above0
2Reserved---0
3Reserved---0
Pn004SReserved2---0000H1210H0200H
0Reserved---0
1RReserved constant00
1
2RReserved constant00 Automatically set to 2
1
3RReserved constant00
1
Pn005Advanced function selection switch 52---0000H0001H0000H
0Brake control function select0Controls the brake by servo.0
1Controls the brake by controller.
1Reserved---0
2Reserved---0
3Reserved---0
LinearPn080Function select application switch2---0000H0011H0000H
0Pole sensor select0With0
1Without
1Motor rotation direction select0Phase A advances in direction order of phases U, V, and W.0
1Phase B advances in direction order of phases U, V, and W.
2Reserved---0
3Reserved---0
Pn100Speed loop gain2Hz1200040
Pn101Speed loop integration time constant20.01 ms15512002000
Pn102Position loop gain21/s1200040
Pn103Inertia ratio2%0100000
Pn104Speed loop gain 22Hz1200040
Pn105Speed loop integration time constant 220.01 ms15512002000
Pn106Position loop gain 221/s1200040
RotaryPn107Bias2r/min0100000
Pn108Bias additional width2Pulse02507
Pn109Feed forward2%01000
Pn10AFeed forward filter time constant20.01 ms064000
Pn10BAdvanced gain-related switch2---------0000H
0Mode switch select0Internal torque command is the switching condition.(Level setting: Pn10C)4
1Speed command is the switching condi-tion.(Level setting: Pn10D)
2Acceleration is the switching condition.(Level setting: Pn10E)
3Error pulse is the switching condition.(Level setting: Pn10F)
4No mode switching function
1Speed loop control method0PI control0
1IP control
2Reserved---0
3RReserved0---0
1---
2---
Pn10CMode switch (Torque command)2%0800200
RotaryPn10DMode switch (Speed command)2r/min0100000
RotaryPn10EMode switch (Acceleration)210 r/ min/s030000
Pn10FMode switch (Error pulse)2Pulse0100000
Pn110Real-time auto tuning-related switch2---0000H3212H0010H
0Online auto tuning method0Tuning just at beginning of an operation.0
1Always tuning
2No auto tuning
1Speed FB compensation function select0With1
1Without
2Viscous friction compen-sation function select0Friction compensation: Nil0
1Friction compensation: Small
2Friction compensation: Large
3RReserved0---0
1---
2---
3---
Pn111Speed FB compensation2---1100100
Pn112RReserved2%01000100
Pn113RReserved20.1 Hz0100001000
Pn114RReserved2---0400200
Pn115RReserved20.1 ms0100032
Pn116RReserved20.1 ms0100016
Pn117RReserved2%20100100
Pn118RReserved2%50100100
Pn119RReserved21/s1200060
Pn11ARReserved20.1%120001000
Pn11BRReserved2Hz115050
Pn11CRReserved2Hz115070
Pn11DRReserved2%0150100
Pn11ERReserved2%0150100
Pn11FPosition integration time constant2ms020000
Pn120RReserved20.01 ms0512000
Pn121RReserved2Hz125050
Pn122RReserved2Hz02500
Pn123RReserved2%01000
LinearPn180Bias2mm/s04500
LinearPn181Mode switch (Speed Command)2mm/s050000
LinearPn182Mode switch (Acceleration rate)2mm/s2030000
Pn200SPosition control command mode select switch2---0000H1239H0100HΔ
0NCommand pulse mode0-9Disabled0Δ
1NClear signal mode0-3Disabled0Δ
2SClear operation1Does not clear the error counter.(Cleared only with the CLR signal)0 Automatically set to 1Δ
OtherDo not set. (It is automatically set to 1.)
3NFilter select0-1Disabled0Δ
RotaryPn201PG dividing ratio2---161638416384Δ
Pn202Electronic gear ratio (numerator)2---1655351Δ
Pn203Electronic gear ratio (denominator)2---1655351Δ
Pn204Reserved20.01 ms064000
RotaryPn205Multi-turns limit setting *12rev06553565535Δ
RotaryPn206No. of full-closed pulses2P/R256553516384Δ
Pn207SPosition command function switch2---0000H0011H0010HΔ
0Reserved0---0Δ
1---
1SPosition control option1Uses V-REF as the speed feed forward input.1Δ
0Do not set. (It is automatically set to 1.)
2-3Reserved---0
Pn208Reserved20.01 ms064000
LinearPn280Linear scale pitch2um0655350Δ
LinearPn281Encoder output resolution2Pulse/ Scale pitch (Pn280)125620Δ
Pn300NSpeed command input gain20.01V/ Rated speed153000600
RotaryPn301NInternal speed setting 12r/min010000100
RotaryPn302NInternal speed setting 22r/min010000200
RotaryPn303NInternal speed setting 32r/min010000300
RotaryPn304JOG speed2r/min010000500
Pn305Soft start acceleration time2ms0100000
Pn306Soft start deceleration time2ms0100000
Pn307Speed command filter time constant20.01 ms06553540
Pn308Speed FB filter time constant20.01 ms0655350
LinearPn380NInternal speed setting 12mm/s0500010
LinearPn381NInternal speed setting 22mm/s0500020
LinearPn382NInternal speed setting 32mm/s0500030
LinearPn383JOG speed2mm/s0500050
Pn400NTorque/Thrust gain20.1 V/ Rated torque1010030
Pn401Torque/Thrust filter time constant20.01 ms065535100
RotaryPn402Forward torque limit2%0800800
RotaryPn403Reverse torque limit2%0800800
Pn404External input forward torque/Thrust limit2%0800100
Pn405External input reverse torque/Thrust limit2%0800100
Pn406Emergency stop torque/Thrust2%0800800
RotaryPn407Speed limit in torque control2r/min01000010000
Pn408Torque/Thrust control function switch2---0000H0001H0000H
0Notch filter function select0Nil0
1Uses the notch filter for torque command.
1Reserved---0
2Reserved---0
3Reserved---0
Pn409Notch filter frequency2Hz5020002000
LinearPn480Speed limit during thrust control2mm/s050005000
LinearPn481Magnetic pole detection speed loop gain2Hz1200040
LinearPn482Magnetic pole detection speed loop integral time20.01 ms15512003000
LinearPn483Forward rotation thrust limit2%080030
LinearPn484Reverse rotation thrust limit2%080030
Pn500Positioning completed width2Com-mand unit (pulse for /COIN output)02507
RotaryPn501Clamp at zero level2r/min01000010
RotaryPn502Rotation detection level2r/min11000020
RotaryPn503Speed conformity signal detection width2r/min010010
Pn504NEAR signal width2Com-mand unit (pulse for /NEAR output)12507
Pn505Error counter overflow level2256 pulse1327671024
Pn506Brake command-Servo OFF delay time210 ms0500
RotaryPn507Brake command output speed level2r/min010000100
Pn508Servo OFF-Brake command wait time210 ms1010050
Pn509Temporary power interruption hold time2ms20100020
TypeUser constant No.NameSizeUnitLower limitUpper limitthe Support Tool initial valueEn- able
Sequence related con-stantPn50ASInput signal select 12---0000HFFFFH2881HΔ
\(0^S\)Input signal allocation mode1Custom setting1
0Do not set. (It is automatically set to 1.)
\(1^S\)/S-ON signal allocation8Do not set. (It is automatically set to 8.)8
\(2^S\)/P-CON signal allocation8Do not set. (It is automatically set to 8.)8
3P-OT signal allocation0Input from SI0 (CN1-40) input terminal.2Δ
1Input from SI1 (CN1-41) input terminal.
2Input from SI2 (CN1-42) input terminal.
3Input from SI3 (CN1-43) input terminal.
4Input from SI4 (CN1-44) input terminal.
5Input from SI5 (CN1-45) input terminal.
6Input from SI6 (CN1-46) input terminal.
7Fixed at enable the signal.
8Fixed at disable the signal.
9Input reverse signal from SI0 (CN1-40) input terminal.
AInput reverse signal from SI1 (CN1-41) input terminal.
BInput reverse signal from SI2 (CN1-42) input terminal.
CInput reverse signal from SI3 (CN1-43) input terminal.
DInput reverse signal from SI4 (CN1-44) input terminal.
EInput reverse signal from SI5 (CN1-45) input terminal.
FInput reverse signal from SI6 (CN1-46) input terminal.
Pn50BSInput signal select 22---0000HFFFFH8883HΔ
\(0^S\)N-OT signal allocation0-FSame as above.3Δ
\(1^S\)/ALM-RST signal alloca-tion8Do not set. (It is automatically set to 8.)8
\(2^S\)/P-CL signal allocation0-FAllocation of forward current limiting signal.8Δ
\(3^S\)N-CL signal allocation0-FAllocation of reverse current limiting signal.8Δ
Pn50CSInput signal select 32---0000HFFFFH8888H
\(0^S\)/SPD-D signal allocation8Same as above. Do not set. (It is automat-cally set to 8.)8
\(1^S\)/SPD-A signal allocation8Same as above. Do not set. (It is automat-cally set to 8.)8
\(2^S\)/SPD-B signal allocation8Same as above. Do not set. (It is automat-cally set to 8.)8
\(3^S\)/C-SEL signal allocation8Same as above. Do not set. (It is automat-cally set to 8.)8
Pn50DSInput signal select 42---0000HFFFFH8888H
\(0^S\)/ZCLAMP signal alloca-tion8Same as above. Do not set. (It is automat-cally set to 8.)8
\(1^S\)/INHIBIT signal alloca-tion8Same as above. Do not set. (It is automat-cally set to 8.)8
\(2^S\)/G-SEL signal allocation8Same as above. Do not set. (It is automat-cally set to 8.)8
\(3^S\)P-DET signal allocation8Same as above. Do not set. (It is automat-cally set to 8.)8
TypeUser constant No.NameSizeUnitLower limitUpper limitthe Support Tool initial valueEn- able
Sequence related con-stantPn50EOutput signal select 12---0000H3333H3001HΔ
0/COIN signal allocation0Not used1Δ
1Output from SO1 (CN-25, 26) output termi-nal.
2Output from SO2 (CN-27, 28) output termi-nal.
3Output from SO3 (CN-29, 30) output termi-nal.
1/V-CMP signal allocation0-3Same as above.0Δ
2/TGON signal allocation0-3Same as above.0Δ
3/S-RDY signal allocation0-3Same as above.3Δ
Pn50FOutput signal select 22---0000H3333H0200HΔ
0/CLT signal allocation0-3Same as above.0Δ
1/VLT signal allocation0-3Same as above.0Δ
2/BK signal allocation0-3Same as above.2Δ
3/WARN signal allocation0-3Same as above.0Δ
Pn510Output signal select 32---0000H0033H0000HΔ
0/NEAR signal allocation0-3Same as above.0Δ
1/C-PHASE signal alloca-tion0-3Same as above.0Δ
2Reserved0---0
3Reserved0---0
TypeUser constant No.NameSizeUnitLower limitUpper limitthe Support Tool initial valueEnable
Sequence related constantPn511Output signal select 52---0000HFFFFH6541HΔ
0/DEC signal allocation0Input from SI0 (CN1-40) input terminal.1Δ
1Input from SI1 (CN1-41) input terminal.
2Input from SI2 (CN1-42) input terminal.
3Input from SI3 (CN1-43) input terminal.
4Input from SI4 (CN1-44) input terminal.
5Input from SI5 (CN1-45) input terminal.
6Input from SI6 (CN1-46) input terminal.
7Fixed at enable the signal.
8Fixed at disable the signal.
9Input reverse signal from SI0 (CN1-40) input terminal.
AInput reverse signal from SI1 (CN1-41) input terminal.
BInput reverse signal from SI2 (CN1-42) input terminal.
CInput reverse signal from SI3 (CN1-43) input terminal.
DInput reverse signal from SI4 (CN1-44) input terminal.
EInput reverse signal from SI5 (CN1-45) input terminal.
FInput reverse signal from SI6 (CN1-46) input terminal.
1/EXT1 signal allocation4Input from SI4 (CN1-44) input terminal.4Δ
5Input from SI5 (CN1-45) input terminal.
6Input from SI6 (CN1-46) input terminal.
7Fix the signal 'enable'.
8Fix the signal 'disable'.
DInput reverse signal from SI4 (CN1-44) input terminal.
EInput reverse signal from SI5 (CN1-45) input terminal.
FInput reverse signal from SI6 (CN1-46) input terminal.
0-39-FFixed at disable the signal.
2/EXT2 signal allocation0-FSame as above.5Δ
3/EXT3 signal allocation0-FSame as above.6Δ
Pn512Output signal reverse2---0000H0111H0000HΔ
0Output signal reverse for SO1 (CN1-25, 26)0Not reversed0Δ
1Reversed
1Output signal reverse for SO1 (CN1-27, 28)0,1Same as above.0Δ
2Output signal reverse for SO1 (CN1-29, 30)0,1Same as above.0Δ
3Reserved0---0Δ
RotaryPn51AMotor-load deviation level between positions2Pulse13276710
Pn51EDeviation counter overflow warning detection level2%0100100
LinearPn580Clamp level at zero.2mm/s0500010
LinearPn581Rotation detection level2mm/s1500020
LinearPn582Speed conformity signal detection width2mm/s010010
LinearPn583Brake command output speed level2mm/s05000100
TypeUser constant No.NameSizeUnitLower limitUpper limitthe Support Tool initial valueEn- able
Pn600Regenerative resistor capacity (set the capacity when connecting an external regenerative resistor)210 W010000
Pn601RReserved constant2---010000
CommunicationsPn800Communication control2---0000H0F73H0000H
0MECHATROLINK-II communications check mask(For debugging)0Normal0
1Communication error (A.E6) ignored.
2WDT error (A.E5) ignored
3Communication error (A.E6) and WDT error(A.E5) both ignored.
1Warning check mask(For debugging)0Normal0
1Data setting warning (A.94) ignored
2Command warning (A.95) ignored.
3A.94 and A.95 ignored.
4Communication error (A.96) ignored.
5A.94 and A.96 ignored.
6A.95 and A.96 ignored.
7A.94, A95, and A96 ignored.
2Communication error count when single trans-fer0-FDetect the communication error (A.E6) twice in a row plus the setting value.0
3Reserved0---0
SequencerelationsPn801Advanced function select 6 (Soft LS)2---0000H0113H0003H
0Software limit function0Software limit enabled3
1Forward software limit disabled
2Reverse software limit disabled
3Both Forward/reverse software limits dis-abled
1Reserved0---0
2Software limit checked by commands.0No software limit check by commands.0
1Software limit check by a command is con-ducted.
3Reserved0---0
Pn802Reserved constant2---0000H0000H0000H
0Reserved0---0
1Reserved0---0
2Reserved0---0
3Reserved0---0
Pn803Origin position range2Com-mand unit025010
Position relationsPn804Pn805Positive software limit value4Com-mand unit-230+1230-18192*99999
Pn806Pn807Negative software limit value4Com-mand unit-230+1230-1-8192*99999
Pn808Pn809ABS PG origin position Offset *54Com-mand unit-230+1230-10
Acceleration/ decelerationPn80AFirst-stop linear acceleration constant.210000 Com-mand unit/s2165535100
Pn80BSecond-stop linear acceleration con-stant.210000 Com-mand unit/s2165535100
Pn80CAcceleration rate switching speed2100 Com-mand unit/s20655350
Pn80DFirst-stop linear deceleration constant.210000 Com-mand unit/s2165535100
Pn80ESecond-stop linear deceleration con-stant.210000 Com-mand unit/s2165535100
Pn80FDeceleration rate switching speed.2100 Com-mand unit/s20655350
Acceleration/ deceleration filterPn810Exponential acceleration/deceleration bias.2Com-mand unit/s20327670
Pn811Exponential acceleration/deceleration time constant20.1 ms051000
Pn812Moving average time20.1 ms051000
MonitorPn813Option monitor2---0000H0099H0032H
0Option monitor 1 select0Follows the analog monitor 1 (Pn003.0)2
1Follows the analog monitor 1 (Pn003.1)
2Initial multi-turns data (IMTDATA)
3Encoder count direct value (PGCNT: after multiplication by 4)
4Motor PG initial multi-turns data direct value.
5Motor PG counter direct value.
6Motor PG count latch direct value.
7Reserved
8Full-closed PG counter direct value.
9Full-closed PG counter latch direct value.
1Option monitor 2 select0-9Same as above.3
2Reserved0---0
3Reserved0---0
Command supplementPn814 Pn815Final travel distance for external posi- tIoning4Com- mand unit\( -2^{30}+1 \)\( 2^{30}-1 \)100
Pn816Origin return mode setting2---0000H0001H0000H
0Origin return direction0Forward rotation direction0
1Reverse rotation direction
1Reserved0---0
2Reserved0---0
3Reserved0---0
Pn817Origin return approach speed 12100 Com- mand unit/s06553550
Pn818Origin return approach speed 22100 Com- mand unit/s0655355
Pn819 Pn81AOrigin return final travel distance4Com- mand unit\( -2^{30}+1 \)\( 2^{30}-1 \)100
Pn81BBacklash compensation amount20.1 Com- mand unit-32768327670000H
Pn81CReserved constant2---0000H
Pn81DCompensation function select2---0000H0001H0000H
Pn81EInput signal monitor select2---0000H7777H0000H
0IO12 allocation0No allocations0
1Monitors SI0 (CN1-40) input terminal.
2Monitors SI1 (CN1-41) input terminal.
3Monitors SI2 (CN1-42) input terminal.
4Monitors SI3 (CN1-43) input terminal.
5Monitors SI4 (CN1-44) input terminal.
6Monitors SI5 (CN1-45) input terminal.
7Monitors SI6 (CN1-46) input terminal.
1IO13 allocation0-7Same as above.0
2IO14 allocation0-7Same as above.0
3IO15 allocation0-7Same as above.0
Pn81FReserved constant2---0000H
Pn820 Pn821Forward latch possible range4Com- mand unit\( -2^{31} \)\( 2^{31}-1 \)00000000H
Pn822 Pn823Reverse latch possible range4Com- mand unit\( -2^{31} \)\( 2^{31}-1 \)00000000H

4-8-3 Motor Parameters

The values for the following parameters are automatically set when the motor model is selected on the Support Tool. Some of the parameters need to be adjusted in the following cases.

  • When using an absolute encoder as an incremental encoder (related parameter: 9003h)
  • When using the axis as an infinite length axis in the system with an absolute encoder (related parameter: 900Ch)

In the initial value column, the upper value is in hexadecimal and the lower value in parenthesis is in decimal.

No.NameConfiguration and explanationTypeInitial valueUnitImmediate updating
9001No. of encoder pulses31 00No. of encoder pulsesBit00000000(0)---No
• Sets the No. of encoder pulses for 1 motor rotation.(Ex) With 13-bit encoder: 8192 pulses = 2000 HexWith 16-bit encoder: 65536 pulses = 10000 HexNote Selecting the motor model automatically sets this parameter.
9002Encoder type15 00Encoder typeBit0000 (0)---No
• Sets the encoder type.0000 Hex: Incremental encoder0100 Hex: Absolute encoderNote Selecting the motor model automatically sets this parameter.
9003Absolute encoder usage15 00UsageBit0000 (0)---No
• Sets the usage of an absolute encoder.0000 Hex: Use it as an absolute encoder0100 Hex: Use it as an incremental encoderSupplementary:When using an absolute encoder as an incremental encoder, the present position does not show 0 at switching ON the MC Unit. This is a normal condition because the MC Unit is counting the initial incremental pulses of the absolute encoder.
9004Rated rotation speed15 00Motor rated speedData0000 (0)100 r/minNo
• Sets the motor rated speed.Note Selecting the motor model automatically sets this parameter.
9005Rated speed index15 00Speed indexData0000 (0)---No
• Sets the unit system for the rated speed.Note Make sure to set this parameter to 0000 Hex.
9006Max. rapid speed15 00Max. speedData0000 (0)100 r/minNo
• Sets the max. speed of the motor.Note Selecting the motor model automatically sets this parameter.
9007Max. rapid speed index15 00 Max. speed unit • Sets the unit system for the max. speed. Note Make sure to set this parameter to 0000 Hex.Data0000 (0)---No
9008Rated torque (reserved)31 00 Rated torque • Sets the rated torque of the motor. Note Selecting the motor model automat- cally sets this parameter.Data00000000 (0)0.0001 N·m--
9009Max. torque (reserved)31 00 Max. torque • Sets the max. torque of the motor. Note Selecting the motor model automat- cally sets this parameter.Data00000000 (0)0.0001 N·m--
900ALatch range (+) No.15 00 + Latch range • This is the address of + Latch range. Note Selecting the motor model automat- cally sets this parameter. Note Entering numerical value cannot change this parameter.Data0000 (0)---No
900BLatch range (-) No.15 00 - Latch range • This is the address of - Latch range. Note Selecting the motor model automat- cally sets this parameter. Note Entering numerical value cannot change this parameter.Data0000 (0)---No
900CMulti-turn limit15 00 Multi-turn • Sets the No. of multi-turns of an absolute encoder. When using an axis as an infinite length axis, make sure to set the same value set in Pn205 of the servo driver. • Setting range 0 to FFFF Hex (0 to 65535)DataFFFF (65535)---No
900DPosition loop gain address15 00Position loop gain addressThis is the address of the position loop gain.Note Selecting the motor model automatically sets this parameter.Note Entering numerical value cannot change this parameter.Data0000 (0)---No
900EPosition loop gain index15 00Position loop gain indexSets the unit system for the position loop gain.Set 0000 Hex when the W Series and NS115 are combined, and set 0001h for W-series Servo Drivers with built-in communications.Data0000 (0)---No

4-8-4 Setting Method Using Combination of W Series and NS115

This section explains the servo driver's parameter setting method with combination of W-series servo driver and NS115.

The following user constants are expressed as restricted constant, determined constant, expansion constant, and disabled constant.

Determined constant: To be reset to the settings in the following table if the value is outside of the setting value when the power is turned ON.

Approximately three seconds will be added during the re-setting.

Expansion constant: This is the parameter to expand a function when installing the NS115.

Disabled constant: Neither alarm nor warning occurs even when changed.

User constant No.NameContentSettingRemark
Pn004.1Electronic gear conversion of the feedback count in position controlNo conversion0Determined constant
Pn004.2Control mode switchExecute1Determined constant
Pn004.3Access cycle S-shape filterDisable0Determined constant
Pn200.2Clear operationCleared only with CLR command.1Determined constant
Pn207.1Position control optionSpeed feed forward on V-REF1Determined constant
Pn50A.0Input allocationInput signal custom setting1Determined constant
Pn50A.1/SVONDisable8Determined constant
Pn50B.1/ALMRSTDisable8Determined constant
Pn50C/SPD-D, -A, -B, /C-SELDisable8888Determined constant
Pn50D/ZCLAMP, /INH, /G-SEL, /P-DETDisable8888Determined constant
Pn002.3Full-closed encoder usageExpansion constant
Pn005Advanced function select switch 5Expansion constant
Pn206No. of Full-closed encoder pulsesExpansion constant
Pn511Input signal select 5Expansion constant
Pn200.0Command pulse mode0Disabled constant
Pn200.1Clear signal mode0Disabled constant
Pn200.3Filter select0Disabled constant
Pn300Speed command input gainDisabled constant
Pn301,2,3Internal setting speed 1, 2, 3Disabled constant
Pn400Torque command input gainDisabled constant

I/O Signal (W-series CN1) Setting

The standard setting of I/O signals (CN1) when the NS115 is mounted is described below.

Make sure that it has been changed to the standard setting prior to use.

OMRON CJ1W-MCH71 - I/O Signal (W-series CN1) Setting - 1

User's constant No.ContentW-series default settingDefault setting with NS115 mountedthe Support Tool initial value
Pn50AInput signal select 18100H8881H2881H
Pn50BInput signal select 26548H6588H8883H
Pn511Input signal select 58888H8888H6541H
Pn50EOutput signal select 13211H3211H3001H
Pn50FOutput signal select 20000H0000H0200H
Pn510Output signal select 30000H0000H0000H

Expanded Function

The following functions will become available by mounting NS115.

1,2,3... 1. Full-closed control
2. Input signal select

Full-closed Control

The full-closed control setting can be performed using the following user constants.

TypeUser's constant No.NameSizeUnitLower limitUpper limitthe Support Tool initial valueEn- able
Function select con-stantPn002Advanced function select switch 22---0000H4112H0000HΔ
3Full-closed encoder usage0Not used0Δ
1Used without phase-C
2Used with phase-C
3Used in reverse rotation mode without phase-C
4Used in reverse rotation mode with phase-C
Position rela-tionsPn206No. of full-closed encoder pulses2P/R (×1)5126553516384Δ

Related user's constant

Pn202Electronic gear (numerator)
Pn203Electronic gear (denominator)

  • Full-closed encoder pulse mode 5V differential line driver output (EIA Standard RS-422A compliance)
  • Full-closed encoder pulse signal mode Two pulses with phase difference of 90 degree: Phase-A, Phase-B Latch pulse (origin pulse): Phase-C (can be used) Maximum receivable frequency: 1 Mbps (per one phase)

OMRON CJ1W-MCH71 - Full-closed Control - 1

  • Set the No. of full-closed encoder pulses per one motor rotation with the value (x1 multiplication).
  • If an integer cannot be obtained, set the closest integer.
  • There will be deviations in the speed monitors of position loop gain, feed forward, and command pulse, but no position deviation should result.

  • The full-closed control does not support an absolute encoder, but an incremental encoder.
  • If the encoder that is attached on the motor is an absolute encoder, the usage is the same as for an incremental encoder.

Setting for Reverse Rotations

Motor rotation direction seen from the load side during forward rotation commandPhase relations of the full-closed PG input during forward rotationPn000.0 settingPn002.3 settingFull-closed PG input phase relations during CCW direction rotation seen from the load side
CCW directionDiagram 8.301, 2Diagram 8.3
Diagram 8.43, 4Diagram 8.4
CW directionDiagram 8.311, 2Diagram 8.4
Diagram 8.43, 4Diagram 8.3
Full-closed PG inputFull-closed PG input
Phase APhase ATime
Phase BPhase BDiagram 8.4

OMRON CJ1W-MCH71 - Full-closed Control - 1
Electronic gear
Input Signal Select 5

Through the following user constants setting, it is possible to allocate the signals in the table below to the CN1 input signals.

TypeUser's constant No.NameSizeUnitLower limitUpper limitthe Support Tool initial valueEn- able
Pn511Input signal select 52---0000HFFFFH6541HΔ
0/DEC signal allocation0Input from SI0 (CN1-40) input terminal1Δ
1Input from SI1 (CN1-41) input terminal
2Input from SI2 (CN1-42) input terminal
3Input from SI3 (CN1-43) input terminal
4Input from SI4 (CN1-44) input terminal
5Input from SI5 (CN1-45) input terminal
6Input from SI6 (CN1-46) input terminal
7Fixed at enabled the signal.
8Fixed at disabled the signal.
9Input reverse signal from SI0 (CN1-40) input terminal.
AInput reverse signal from SI1 (CN1-41) input terminal.
BInput reverse signal from SI2 (CN1-42) input terminal.
CInput reverse signal from SI3 (CN1-43) input terminal.
DInput reverse signal from SI4 (CN1-44) input terminal.
EInput reverse signal from SI5 (CN1-45) input terminal.
FInput reverse signal from SI6 (CN1-46) input terminal.
1/EXT1 signal allocation4Input from SI4 (CN1-44) input terminal.4Δ
5Input from SI5 (CN1-45) input terminal.
6Input from SI6 (CN1-46) input terminal.
7Fixed at enabled the signal.
8Fixed at disabled the signal.
DInput reverse signal from SI4 (CN1-44) input terminal
EInput reverse signal from SI5 (CN1-45) input terminal.
FInput reverse signal from SI6 (CN1-46) input terminal.
0-39-CFixed at disabled the signal.
2/EXT2 signal allocation0-FSame as above.5Δ
3/EXT3 signal allocation0-FSame as above.6Δ

4-9 CAM Data

CAM data indicates the entire CAM tables used in the commands CAM (Electronic Cam, Single axis) and CAMBOX (Electronic Cam, Synchronous). The CAM tables are used either separately or all at once from a motion program.

Cam Data Configuration

The tables below describe the data configuration of CAM data.

ItemData
Total capacity128 kbyte
No. of Cam tables1-32
Maximum No. of data sets per CAM table16000 sets
DataSizeRangeLength
Cam table No.2 byte1-32Fixed length
No. of data sets2 byte1-16,000
Title64 byteASCII
Password8 byteASCII
CAM data size4 byte12-128,004 (Byte size below decimal point)
Decimal point position2 byte0-65535
Reserved2 byte---
Phase4 byte (integer-2147483648--+2147483647Flexible length
Displacement4 byte (integer)-2147483648--+2147483647
::
Phase4 byte (integer)-2147483648--+2147483647
Displacement4 byte (integer)-2147483648--+2147483647

Methods to Create/Write/Read

No.MethodRange
1Create/load save from MC Unit the Support ToolIndividual, All

OMRON CJ1W-MCH71 - Methods to Create/Write/Read - 1

SECTION 5

Data Transfer and Storage

This section describes how to transfer data between the CPU Unit and the CJ1W-MCH71 and CS1W-MCH71 Motion Control Units and how data is stored.

5-1 Data Transfer and Storage 212

5-1-1 Data Transfer Overview 212
5-1-2 Data Storage Overview 213
5-1-3 Types of Data for Transfer and Storage 213
5-1-4 Transfer and Storage of Servo Parameters 215

5-2 IOWR Instruction to Transfer Data 221

5-2-1 Overview 221
5-2-2 IOWR: Intelligent I/O Write 222
5-2-3 Flags 223
5-2-4 Precautions When Using IOWR 223
5-2-5 IOWR Program Example 223

5-3 IORD Instruction to Transfer Data 228

5-3-1 Overview 228
5-3-2 IORD: Intelligent I/O Read 228
5-3-3 Flags 230
5-3-4 Precautions when Executing IORD Instruction 230
5-3-5 IORD Program Example 230

5-4 Saving Data 234

5-4-1 Flash Memory 234
5-4-2 Data Saving Procedure 235
5-4-3 Ladder Program Example of Saving the Data Transferred Using IOWR Instruction 235

5-1 Data Transfer and Storage

5-1-1 Data Transfer Overview

The following methods are available for transferring data between CPU and MC Units.

1,2,3... 1. Download or upload data from the Support Tool

Programs, system parameters, servo parameters, position data, Cam data created with the Support Tool, can be downloaded to or uploaded from the MC Unit.

The system parameters, servo parameters, and position data in the MC Unit can be uploaded to CX-Motion-MCH. Servo parameters can be transferred to the memory in the servo driver.

OMRON CJ1W-MCH71 - 1,2,3... 1. Download or upload data from the Support Tool - 1

2. Read and write data in the MC Unit directly using IOWR/IORD instructions in the ladder program

The IOWR/IORD instructions can be used to read or write data while the CPU Unit is running.

OMRON CJ1W-MCH71 - Read and write data in the MC Unit directly using IOWR/IORD instructions in the ladder program - 1
Note Make sure that parameters and data are appropriate to operate.

5-1-2 Data Storage Overview

Transferred data and parameters are written to the internal memory of the MC Unit where they will be used for operation, but they will be lost if the MC Unit is turned OFF or the MC Unit is restarted from the CPU Unit. The data must be saved in the flash memory using the bit area to keep the data in the MC Unit.

Refer to 5-4 Saving Data (page 234) for more details on storing data in flash memory.

Once data has been saved, it is stored in the flash memory of the MC Unit. The data will be available from the next time the MC Unit is turned ON or the MC Unit is restarted.

These data simply transferred without being saved will be lost when the MC Unit is turned OFF or the Unit is restarted.

OMRON CJ1W-MCH71 - 5-1-2 Data Storage Overview - 1

Note

(1) Data that has been saved in the flash memory will be automatically read to the internal memory when the MC Unit is turned ON or the Unit is restarted.
(2) Do not turn OFF the MC Unit or restart the Unit while data is being saved. Doing so may damage the flash memory in the MC Unit. It may take up to 30 seconds to save data.
(3) Data cannot be saved while data is being transferred or the Unit is busy.
(4) Flash memory has a limited service life. Data can be written up to 100,000 times.

5-1-3 Types of Data for Transfer and Storage

The following types of data can be transferred using CX-Motion-MCH, or directly by executing IOWR/IORD instructions.

Refer to SECTION 4 MC Unit Internal Data Configuration and Setting (page 55) for details on the data and addresses.

Yes: Possible No: Not possible Save: Saved in Flash Memory

DataContentData con-figurationRead/Write/Save
Support Tool (See note 1.)IOWR/IORD
ReadWriteSaveReadWriteSave
ProgramsPrograms for MC Unit-YesYesYesNoNoNo
Cam dataData for Electronic Cam-YesYesYesNoNoNo
Variables
Position dataData indicating positions2 words/positionYesYesYesYesYesSee note 2.
System variableStatus for MC Unit2 words/positionNoNoNoYesNoNo
Global general variableThese variables can be accessed from all tasks-NoNoNoNoNoNo
Input variableInput status from CPU Unit, MECHATROLINK-II devices-NoNoNoNoNoNo
Output variableOutput from programs to CPU Unit or MECHA-TROLINK-II devices-See*3NoNoNoNoNo
Task variableThese variables can be used only in each task-NoNoNoNoNoNo
Present position presetSets present position pre-set value for each axis2 words/positionNoNoNoNoYesNo
System parameters
UnitSystem parameters are: Unit parameters, Task parameters, Axis-parameters, Number of axes to use, number of tasks, feed rate, operation range, and etc. data for the system is stored.2 words/positionYesYesYesYesYesSee note 2.
Motion task
Axis: allocations
Axis: speed
Axis: position
Axis: origin
Axis: machine
Reserved
Axis specification for servo parameter (See note 4.)Specify axis to be accessed2 words/positionNoNoNoYesYesNo
Servo parameterParameters for servo driver2 words/positionYesYesYesYesYesSee note 2.

Note

(1) From CX-Motion-MCH, all the data are read or written at the same time. The data cannot be read or written partially.
(2) Turn ON either the bit "Parameter Save" or "Position Data Save" in PC Interface Area to save in Flash Memory.
(3) Alarm codes can be read.
(4) To read/write servo parameters, specify the axis in advance.
(5) Parameters changed with MC Unit programs cannot be saved.

5-1-4 Transfer and Storage of Servo Parameters

The following table shows the methods for transferring and saving servo parameters.

No.TriggerOperationObject
1the Support ToolReadRAM of the servo driver
2RAM of the MC Unit
3IORD instruction of the CPU UnitRAM of the servo driver
4the Support ToolWriteRAMs of the servo driver and the MC Unit
5IOWR instruction of the CPU UnitRAMs of the servo driver and the MC Unit
6PARAM command of the MC UnitRAM of the servo driver
7the Support ToolSaveEEPROM of the servo driver and Flash ROM of the MC Unit
8The “Parameter Save” bitEEPROM of the servo driver and Flash ROM of the MC Unit

Overview of Operation and Data

1,2,3... 1. Reading from Servo Driver Using Support Tool

Servo parameters are read from the servo driver. The servo parameters in the MC Unit will not be affected.

OMRON CJ1W-MCH71 - 1,2,3... 1. Reading from Servo Driver Using Support Tool - 1

2. Reading from MC Unit Using FINS Commands

The servo parameters are read from the RAM of the MC Unit.

OMRON CJ1W-MCH71 - Reading from MC Unit Using FINS Commands - 1

3. Reading by IORD Instruction

Servo parameters are read from the servo driver. The servo parameters in the MC Unit will not be affected.

OMRON CJ1W-MCH71 - Reading by IORD Instruction - 1

4. Writing by Support Tool

  • The servo parameters will be written in both the MC Unit and servo driver.
  • The written servo parameters will be the object of Flash ROM save.
  • Writing is executed regardless of whether it is immediately enabled or enabled when the power is turned ON.

OMRON CJ1W-MCH71 - Writing by Support Tool - 1

5. Writing by IOWR Instruction

  • The servo parameters are written in the RAMs of both the MC Unit and the servo driver.
  • Writing is executed regardless of whether it is immediately enabled or enabled when the power is turned ON.

OMRON CJ1W-MCH71 - Writing by IOWR Instruction - 1

6. Writing by PARAM Command

  • This is just a temporary writing, so it will not be the object of Flash ROM save.
  • Only the servo parameters in the RAM of the servo driver will be overwritten.
  • Writing is executed regardless of whether it is immediately enabled or enabled when the power is turned ON.

OMRON CJ1W-MCH71 - Writing by PARAM Command - 1

  • Contents of EEPROM and RAM in the servo driver will be identical with each other. (They are not identical while change is in process, however, they will be identical after writing.)
  • When a servo parameter that is not immediately enabled is changed, the parameter that was written would be different from the one having been read.

  • Saving by Support Tool

8. Saving by Allocated IF Area

Saves the servo parameters of the MC Unit to servo driver's EEPROM and MC Unit's Flash ROM.

OMRON CJ1W-MCH71 - Saving by Allocated IF Area - 1

Precautions when

Replacing a Servo Driver

Servo parameters stored in the servo driver are used for actual operations.

For that reason, make sure to read the servo parameters before the replacement, and restore them into the newly replaced servo driver.

5-2 IOWR Instruction to Transfer Data

5-2-1 Overview

Position data, system parameters, and servo parameters can be written to the MC Unit by executing the CPU Unit's IOWR instruction. Present position preset is also executed by IOWR instruction.

OMRON CJ1W-MCH71 - 5-2-1 Overview - 1

Procedure for Writing Data

OMRON CJ1W-MCH71 - Procedure for Writing Data - 1

5-2-2 IOWR: Intelligent I/O Write

IOWR@IOWR
CC
SS
WW
OperandDescription
C: Control codeMC Unit address (Hex)
Specifies the first address in the MC Unit where data will be written (in hexadecimal).
S: First source wordFirst source word
Specifies the first word in the CPU Unit from which data is to be transferred. Refer to CS/CJ-series manual for each word detail.
AreaValue used for specification
C/O Area (I/O bits, etc.)0000-6143
Work AreaW000-511
Holding Bit areaH000-511
Auxiliary areaA000-959
Timer AreaT0000-4095
Counter AreaC0000-4095
DM AreaD00000-32767
EM AreaE00000-32767
DM Area with bank designationEn_00000-32767 (n = 0 to C)
Indirect DM/EM (BIN)@D00000-32767 @E00000-32767 @En_00000-32767 (n = 0 to C)
Indirect DM/EM (BCD)*D00000-32767 *E00000-32767 *En_00000-32767 (n = 0 to C)
D: Destination unit number and total number of words writtenTotal number of words transferred (Hex)Destination unit number (Hex)
Total number of words transferred (Hex) Destination unit number (Hex)
Specifies the total number of transferred words (No. of transferred words) and unit number of data transfer destination (destination unit No.).
Total number of words to transfer: 0002 to 0008 Hex (8 words)
• System parameter: 0002 Hex
• Servo parameter axis specification:0002 Hex
• Servo parameter: 0002 Hex
• Position data: 0002, 0004, 0006, 0008 Hex (Up to 4 synchronous writing is possible)
• Present position preset: 0002 Hex
Destination unit number
• 8000-800F Hex
Example)
Transferring three of position data (6 words) to unit number 3: #00068003 (total number of words transferred: 0006 [6 words], unit No.8003 [No.3])

5-2-3 Flags

NameSymbolONOFF
Error FlagER·The total No. of words transferred in D is not between 0000 and 0008 Hex. ·The unit No. in D is not between 8000 and 800F Hex. ·The specified CPU Bus Unit does not support the IOWR instruction. ·The specified CPU Bus Unit has a setting error or Unit error. ·An error has occurred. ·Position data to be transferred was not in the specified format or not within acceptable range. ·The specified address does not exist in the MC Unit. ·Data in the specified MC Unit address is read-only data. ·The specified No. of position data words to be transferred was not a multiple of two. ·The No. of system parameter words to be transferred was not two. ·The value of the MC Unit address plus the number of words transferred divided by 2 exceeded 27FFHex (upper position data limit 10240). ·More than 8 words were specified for position data transfer.·The conditions other than the ones described on the left
Equals Flag=·The IOWR was completed successfully.·The IOWR was not completed normally. ·A previous transfer has not been completed.

5-2-4 Precautions When Using IOWR

When transferring data by IOWR instruction, be sure to transfer the data with the total number of transferred words (2 to 8 words). Do not start or end transferring in the middle of the data. Doing so will turn ON the ER flag.

When performing continuous transfer of data by IOWR instruction, make sure that the Equals Flag is ON before executing the next IOWR instruction. For details, refer to Ladder Program Example on page 226.

5-2-5 IOWR Program Example

This section provides a detailed example of data transfer when the MC Unit is mounted on a CJ-series PLC and the unit number is set to zero. In this example, it is assumed that operands in the IOWR and the transferred data are correct.

When debugging, create a ladder program that refers to the ER flag or the [Alarm] bit (n+12 words bit 00).

Example 1) Transfer four of position data to the data addresses PL0456 Hex to PL0459 Hex in the MC Unit.

Position data to be transferred Destination addresses

34567890 PL0456

12345678 PL0457

-38765432 PL0458

123456 PL0459

Ladder Program Example

OMRON CJ1W-MCH71 - Ladder Program Example - 1

Data Settings [DM]

OMRON CJ1W-MCH71 - Data Settings [DM] - 1
Example 2) Change the manual feed acceleration time to 500 [ms]

Ladder Program Example

OMRON CJ1W-MCH71 - Ladder Program Example - 1

Data Settings [DM]

OMRON CJ1W-MCH71 - Data Settings [DM] - 1

Example 3) Write the servo parameters using IOWR instruction

  • To write the servo parameters, the servo parameter axis has to be specified in advance. Write the axis No. in 6000h of IORD/IOWR control code (address in the MC Unit).
  • The setting value for the servo parameter axis specification is to be [Axis No. - 1] as shown below:
Axis No.Setting value for specifying axis
10h
21h
32h
::
301Dh
311Eh
321Fh
  • IORD/IOWR control addresses (address in MC Unit) corresponding to the parameter Nos. of the servo driver (Pn000 to Pn8FF) are as shown below:
Parameter No.Address in MC Unit
Pn0007000h
Pn0017001h
Pn0027002h
::
Pn8FD78FDh
Pn8FE78FEh
Pn8FF78FFh

Procedure

1,2,3... 1. Set the data in the data area of the transfer source.

  1. Specify the servo parameter axis.
  2. Transfer the parameter setting values for the number needed.

Ladder Program Example

The parameter axis for the servo driver is set to the values in D0100 and D0101. 2-word data in D0110 and D0111 are written in the servo driver parameter No. Pn000.

OMRON CJ1W-MCH71 - Ladder Program Example - 1

Timing Chart in Executing IOWR Instruction (Address Specification)

The following describes the timing and processing when IOWR instruction is executed.

OMRON CJ1W-MCH71 - Timing Chart in Executing IOWR Instruction (Address Specification) - 1

1,2,3...

  1. At first, on the CPU Unit, check if specifications of IOWR instruction's operands are correct.

(Format check) If they are not correct, the ER Flag will turn ON to interrupt the IOWR instruction.

  1. And then, on the MC Unit, check if the data in operands is applicable for processing in the MC Unit. (Data check)

If the data is applicable for processing, the = Flag will turn ON.

If the data is not applicable for processing, the = Flag will not turn ON and the instruction will be interrupted.

Transfer should be completed by the rise of the = Flag.

5-3 IORD Instruction to Transfer Data

5-3-1 Overview

Position data, system variables, system parameters, and servo parameters can be read by executing the CPU Unit's IORD instruction.

OMRON CJ1W-MCH71 - 5-3-1 Overview - 1
Note: To read servo parameters, it is necessary to specify the servo parameter axis in advance.

Procedure for Reading Data

OMRON CJ1W-MCH71 - Procedure for Reading Data - 1

5-3-2 IORD: Intelligent I/O Read

OMRON CJ1W-MCH71 - 5-3-2 IORD: Intelligent I/O Read - 1

OperandDescription
C: Control codeMC Unit address (Hex)
Specifies the first address of the data in the MC Unit to be read.
D: No. of transferred words/Transfer source unit No.W+1 WNo. of transferred words (Hex) Transfer source unit No. (Hex)
Specifies the total No. of transferred words (No. of transferred words) and unit number of data transfer destination (destination unit No.).No. of transferred words: 0002 to 0008 Hex (8 words)· System parameter: 0002 Hex· Servo parameter axis specification:0002 Hex· Servo parameter: 0002 Hex· Position data: 0002, 0004, 0006, 0008 Hex (Up to 4 position data can be read simultaneously)· System variables: 0002, 0004, 0006, 0008 Hex (Up to 4 position data can be read simultaneously)Transfer source unit No.:· 8000-800F HexEx) When reading 3 position data (6 words) from the unit No.3, set as the operand as shown below:#00068003 (No. of transferred words: 0006 [6 words], unit No. 8003 [No.3])
S: Transfer destination first wordTransfer destination first word No.
Transfer destination first word No.Specifies the first word of the CPU Unit in which the data to be transferred has been set.Refer to the CJ-series manuals for more details.
AreaValue used for specification
CIO Area0000-6143
Work AreaW000-511
Holding Bit areaH000-511
Auxiliary areaA000-959
Timer AreaT0000-4095
Counter AreaC0000-4095
DM AreaD00000-32767
EM AreaE00000-32767
DM Area with bank designationEn_00000-32767 (n = 0 to C)
Indirect DM/EM (BIN)@D00000-32767@E00000-32767@En_00000-32767 (n = 0 to C)
Indirect DM/EM (BCD)*D00000-32767*E00000-32767*En_00000-32767 (n = 0 to C)

5-3-3 Flags

NameSymbolONOFF
Error FlagER·The No. of transferred words in D is not between 0000 and 0008 Hex. ·The unit number data in D is not between 8000 and 800F Hex. ·The specified CPU Bus Unit does not support the IORD instruction. ·The specified Unit has a setting error or unit error. ·The read position data was not in the specified format or not within acceptable range. ·The specified MC Unit address does not exist. ·The specified No. of position data words transferred was not a multiple of two. ·The specified No. of system parameter words transferred was not a multiple of two. ·The value of the MC Unit address plus the number of transferred words divided by 2 exceeded 27FF Hex (upper position data limit 10240). ·More than 8 words were specified for position data transfer.·The conditions other than the ones described on the left.
Equals Flag=·The IORD instruction was completed successfully.·The IORD instruction was not completed normally. ·A previous transfer has not been completed.

5-3-4 Precautions when Executing IORD Instruction

When transferring the data by IORD instruction, make sure to transfer the data with the total number of transferred words (2 to 8 words). Do not start or end transferring the data in the middle of the data. Doing so will turn ON the ER flag.

When performing continuous transfer of data by IORD instruction, make sure that the Equals Flag is ON before executing the next IORD instruction. For details, refer to Ladder Program Example on page 233.

5-3-5 IORD Program Example

This section provides a detailed example of data transfer when the MC Unit is mounted on a CJ-series PLC and the unit number is set to zero. In this example, it is assumed that operands in the IORD and the transferred data are correct.

When debugging, create a ladder program that refers to the ER flag or the [Alarm] bit (n+12 words bit 00).

Example 1) Read four position data (PL0456 to PL0459 Hex) in the MC Unit to the D00100 toD00107.

Position data to be read Destination address

PL0456 4567890 → D00100 to D00101

PL0457 12345678 → D00102 to D00103

PL0458 -38765432 → D00104 to D00105

PL0459 123456 → D00106 to D00107

Ladder Program Example

OMRON CJ1W-MCH71 - Ladder Program Example - 1

Data after Reading [DM]

OMRON CJ1W-MCH71 - Data after Reading [DM] - 1
Example 2) Read the Axis 1 Manual Feed Acceleration Time (500[ms]) to D00100 to D00101.

Ladder Program Example

OMRON CJ1W-MCH71 - Ladder Program Example - 1

Data after Reading [DM]

OMRON CJ1W-MCH71 - Data after Reading [DM] - 1
Example 3) Read the servo parameters using IORD instruction

  • To read the servo parameters, the servo parameter axis has to be specified for the IOWR instruction in advance. Write the axis No. in 6000h of IORD/IOWR control code (address in the MC Unit).

  • Setting values for specifying the servo parameter axis are to be [Axis No. -1] as shown below:

Axis No.Setting value for axis specification
10h
21h
32h
::
301Dh
311Eh
321Fh
  • IORD/IOWR control addresses (addresses in the MC Unit) corresponding to the parameter Nos. (Pn000 to Pn8FF) of the servo driver are as shown below:
Parameter No.Address in MC Unit
Pn0007000h
Pn0017001h
Pn0027002h
::
Pn8FD78FDh
Pn8FE78FEh
Pn8FF78FFh

Procedure

1,2,3... 1. Set the data in the data area of the transfer source.

  1. Specify the servo parameter axis.
  2. Read the parameter setting values for the number needed.

Ladder Program Example

The parameter axis of the servo driver is set to the values in D0100 and D0101. The value in the parameter Pn000 of the servo driver is read and stored in D0110 and D0111.

OMRON CJ1W-MCH71 - Ladder Program Example - 1

Timing Chart in Executing IORD Instruction (Address Specification)

The following describes the timing and processing when executing IORD instruction.

OMRON CJ1W-MCH71 - Timing Chart in Executing IORD Instruction (Address Specification) - 1

1,2,3...

  1. At first, on the CPU Unit, check if IORD instruction's operands specifications are correct. (Format check) If they are not correct, the ER Flag turns ON to interrupt the IORD instruction.
  2. And then, on the MC Unit, check the data specified with the operands is applicable for processing in the MC Unit. (Data check) If the data is not applicable for processing, the = Flag will not turn ON and the instruction will be interrupted.
  3. Finally, transfer the specified data from the MC Unit to the CPU Unit. When transfer is completed, the = Flag will be turned ON.

5-4 Saving Data

Data transferred to the MC Unit will be erased either when the power is turned OFF or when the MC Unit is restarted from the CPU Unit. To preserve the data that has been transferred, it must be saved to the Flash Memory in the MC Unit. Once it is saved in the Flash Memory, it can be read and used from the next time the power is turned ON or the Unit is restarted. When the data is saved, all the data including parameters existing at that point are saved.

Note

(1) Do not turn OFF the power or restart the CPU while data is being saved. It may cause a failure of the Flash Memory in the MC Unit, or cause the MC Unit to operate abnormally.
(2) Flash memory has a limited service life. Data can be written up to 100,000 times.
(3) Do not save any data during program operations or when motors are operating. Unexpected operation may result.
(4) It may take a maximum of 30 seconds to save the data into the Flash Memory.

5-4-1 Flash Memory

The data listed below can be saved in the Flash Memory.

  • Programs
  • Cam data
  • System parameters
  • Servo parameters
  • Position data

5-4-2 Data Saving Procedure

The PC Interface Area (bit area) is used to save the transferred data in MC Unit.

Procedure

Saving parameters: n+0 word Bit 01

Saving position data: n+0 word Bit 02

Status

Flash save completed: n+15 word Bit 02

Refer to SECTION 7 PC Interface Area (page 373) for details.

5-4-3 Ladder Program Example of Saving the Data Transferred Using IOWR Instruction

In this example, Position data is transferred to the position data address in the MC Unit using the IOWR instruction. The transferred position data is then saved in the Flash Memory.

Program Example:

Transferring One Data Item

OMRON CJ1W-MCH71 - Transferring One Data Item - 1

Program Example:

Transferring More Than

One Data Item

OMRON CJ1W-MCH71 - One Data Item - 1

OMRON CJ1W-MCH71 - One Data Item - 2

SECTION 6 Programming

This section describes how to program CJ1W-MCH71 and CS1W-MCH71 Motion Control Unit operation, including the program configuration and the specific commands used in programming.

6-1 Basic Information 240

6-1-1 Program and Task Configuration 240
6-1-2 Task Execution Format 241
6-1-3 Advancement of the Motion Program 242
6-1-4 Program System 248
6-1-5 Axis Movement Operation 248
6-1-6 Synchronous Command 271
6-1-7 Modal Data 275
6-1-8 Nesting 276
6-1-9 Unit for Time 276
6-1-10 Conditional Expression. 276
6-1-11 Arithmetic Command 277
6-1-12 Data Used for Operand. 281
6-1-13 Virtual Axis. 282
6-1-14 I/O Axis 283
6-1-15 Parameters having Influence on Axis Operation 284
6-1-16 Coordinate System 285

6-2 Command Overview 286

6-2-1 Command List 286
6-2-2 Command Format. 290
6-2-3 Command List (Operand List) 295
6-2-4 Program Number and Axis Declaration 297
6-2-5 Default Mode and Coordinate System 297

6-3 Command Details 298

6-3-1 Expression in This Section 298
6-3-2 Axis Movement. 298
6-3-3 Command for Axis Operations/Operation Cancel 316
6-3-4 Setting Command 338
6-3-5 Control Command 347
6-3-6 Simple Arithmetic Operation 361
6-3-7 Logic Operation 363
6-3-8 Function 365
6-3-9 Bit Operation 367
6-3-10 Data Operation 368

6-1 Basic Information

6-1-1 Program and Task Configuration

The programs are written by the user to control the application using the MC Unit. The tasks are units for work to execute the programs. The MC Unit can have up to 8 motion tasks for axis control.

The motion tasks are primarily used to execute operations related to axis movement and through declaring axes to be used by the motion program, a motion task can have 1 to 32 axes.

Note that the same one axis cannot be shared among several motion tasks simultaneously. To use a single axis for multiple tasks, exit the program used for the relevant axis. After exiting the program, run the other programs to be used by the relevant axis.

There is no need to use the motion tasks in the applications that use only the allocation bit area of the CPU Unit to operate, i.e. applications that do not require the motion program.

OMRON CJ1W-MCH71 - 6-1-1 Program and Task Configuration - 1

Exchanging Data Between Tasks

It is possible to exchange data between tasks through the global general variable. Since exchanging data between motion tasks is also possible through the global general variable, a simplified interlock can be provided.

OMRON CJ1W-MCH71 - Exchanging Data Between Tasks - 1

Programming Language

Motion tasks are described with the common language.

6-1-2 Task Execution Format

Motion tasks are executed stepwise, and a maximum of 8 tasks can be executed individually in parallel.

OMRON CJ1W-MCH71 - 6-1-2 Task Execution Format - 1

The Unit Cycle is either the same or twice the MECHATROLINK-II (MLK) communications cycle.

Communications cycle (ms)Unit Cycle (ms)
11 or 2
22 or 4
33 or 6
44 or 8

For details, refer to 1-7 Performance on page 21.

All running motion tasks are executed in task number order in each Unit Cycle. The number of commands that can be executed in each Unit Cycle depends on the number of parallel branches and the type of command (single execution or multiple execution). For details, refer to 6-1-3 Advancement of the Motion Program on page 242.

OMRON CJ1W-MCH71 - 6-1-2 Task Execution Format - 2

6-1-3 Advancement of the Motion Program

This section describes how execution of respective blocks advances (stepping or steps for processing). Each program is executed by a motion task separately, so the stepping of respective blocks can be considered independent as well.

Basic Concept

1,2,3... 1. The maximum number of motion commands that can be executed in a motion task in one Unit cycle (1, 2, 3, 4, 6, or 8 ms) can be specified in MC Units.

The maximum number of commands is specified using the following parameters.

Unit Versions Earlier Than 3.0:

System parameter P00002 (Number of parallel branches) (Default: 4)

With the default, a maximum of four commands can be executed in a single motion task.

When two tasks are used, a maximum of eight commands (2 tasks x 4 commands = 8) can be executed in a single Unit cycle.

Unit version 3.0 or later:

  • When system parameter P00004 (Unit function selection) bit 11 is 0 (default)

The number is specified using system parameter P00002 (Number of parallel branches). (Default: 4)

With the default, a maximum of four commands can be executed in a single motion task.

When two tasks are used, a maximum of eight commands (2 tasks × 4 commands = 8 ) can be executed in a single Unit cycle.

  • When system parameter P00004 (Unit function selection) bit 12 is 1

The number is specified using motion task parameter P00M21 (Number of parallel branches per task). (Default: 0)

It is specified individually for each task.

An upper limit can be set for the commands executed for each task, such as four commands for task 1 and six commands for task 2 when two tasks are used

As shown in 1-7 Performance, the Unit cycle time depends on the number of commands executed, so this is used when it is desirable to shorten the Unit cycle or to speed up commands related to operations (arithmetic, logic, etc.) in the same cycle.

  1. The maximum number of branches when using the PARALLEL command is determined by parameter P00002 (Number of parallel branches) described above, or by P00M21 (Number of parallel branches per task).

The parameter sets the upper limit on the number of commands that can be executed at one time, so this value restricts the maximum number of parallel branches as well.

When the number of parallel branches written in a motion program is smaller than the value in P00002, the value in P00002 is divided by the actual number of parallel branches to calculate the number of commands that can be executed simultaneously in the branches.

If the number of parallel branches written in a motion program is greater, the alarm [200D: Rotation specification error] will occur during execution.

  1. The commands used in motion tasks can be classified into two groups: [Single execution command] and [Multiple execution command].

  2. Single Execution Command

In a motion task, two single execution commands cannot be executed simultaneously in one Unit Cycle. Commands related to axis movements, etc. that take time to finish the specified processing are usually of this type. However, it is possible to execute these commands along with a multiple execution command or to execute then in another branch during parallel branch execution.

Example: MOVE [J01] 1000; Executes positioning of axis 1 to 1000. #MW10000 = 1; This command is executed when axis 1 starts moving without waiting for positioning to be completed.

Use the NOPS command shown below to wait for positioning to be completed before executing the next command.

Example: MOVE [J01] 1000; Executes positioning of axis 1 to 1000. NOPS; Waits for axis 1 positioning to be completed. #MW10000 = 1; Executes this command only after axis 1 positioning has been completed.

  • Multiple Execution Command

In a motion task, two or more multiple execution commands can be executed simultaneously in one Unit Cycle. A command of this type can be executed along with a single execution command or other multiple execution commands. Commands related to operations (arithmetic, logic, etc.) are usually of this type.

In the respective tables in this section, the word 'SINGLE' is used to indicate the [Single execution command], and 'MULTI' to indicate the [Multiple execution command].

Refer to the 6-2-1 Command List (page 286) for the type of each command.

  1. Multiple execution commands are executed under the following conditions:

  2. When there are no commands being executed.

  3. When a single execution command, which has a lower block number than that of the multiple execution command, is being executed. (A multiple execution command is not executed before any earlier single command not executed yet.)

Stepping in the Stop Mode

In the stop mode, the motion program advances following the 'Basic Concept' in the previous page.

Nevertheless, in the 'Single Block Operation Mode', regardless of SINGLE/MULTI, one block is executed at a time.

Operation image:

It takes three cycles to execute one single execution command and the maximum number of simultaneous executions is set to four. No parallel branching.

No.CommandCycleComments
123456789
1SINGLESINGLE execution
2SINGLEThis is SINGLE, so execution begins after command No.1 is completed.
3MULTIThis is MULTI, so it is executed along with command No.2.
4MULTIThis is MULTI, so it is executed along with command No.2.
5MULTIThis is MULTI, so it is executed along with command No.2. (The 4th command executed simultaneously)
6MULTIThis is MULTI, so it is executed along with command No.2.
7MULTIThis is MULTI, so it is executed along with command No.2.
8MULTIThis is MULTI, so it is executed along with command No.2. (The 4th command executed simultaneously)
9MULTI
10MULTI
11MULTI
12SINGLEThis is SINGLE, so execution begins after command No.2 is completed.
13MULTIThis is MULTI, so it is executed along with command No. 12.

The diagram below is the operation image of the above table if 3 single execution commands are axis movement commands for Axis 1, 2, and 3 and all the multiple execution commands are operation-related (arithmetic, logic, etc.) commands.

OMRON CJ1W-MCH71 - Stepping in the Stop Mode - 1

Stepping in Pass Mode

When a movement command is being executed in Pass Mode, execution of the next block starts when deceleration starts for the current block. Even with single execution commands, two blocks will be executed simultaneously in one cycle. Other single or multiple execution commands (besides the movement commands) operate just as they do in the Stop Mode

In the 'Single Block Operation Mode', regardless of SINGLE/MULTI, one block is executed at a time, so executions do not overlap even in a movement command.

Operation image:

It takes three cycles to execute one single execution command and the maximum number of simultaneous executions is set to four. No Parallel Branching.

No.CommandCycleComments
123456789101112
1SINGLE (Not axis movement)It does not overlap with No.2.
2SINGLE (Axis movement)Execution starts after com-mand No.1 is completed.
3SINGLE (Axis movement)Execution starts when com-mand No.2 starts deceleration.
4MULTIExecuted during execution of command No.3.
5MULTIExecuted during execution of command No.3.
6SINGLE (Axis movement)Execution starts when com-mand No.3 starts deceleration.
7MULTIExecuted during execution of command No.6.
8MULTIExecuted during execution of command No.6.
9SINGLE (Axis movement)Execution starts when com-mand No.6 starts deceleration.

The diagram below is the operation image of the above table if 4 single execution commands (No.2, 3, 6, and 9) are axis movement commands for Axis 1, 2, 3, and 4 and all the multiple execution commands are operation-related (arithmetic, logic, etc.) commands.

OMRON CJ1W-MCH71 - Operation image: - 1
Stepping When Parallel Branch is executed

When parallel branch is executed, the branched program steps per sequence.

The execution of commands within the same scan is restricted by system parameters just as it is in the Stop Mode. When the number of parallel branches written in the motion program is smaller than the maximum number of simultaneous executions, the number of commands that can be executed simultaneously in a sequence can be obtained by dividing the maximum number of simultaneous executions by the number of parallel branches (the remainder to be omitted).

In the 'Single Block Operation Mode', regardless of SINGLE/MULTI, one block is executed at a time.

Operation image 1:

It takes three cycles to execute one single execution command and the maximum number of simultaneous executions is set to two. The number of parallel Branches is set to two. (In this case, the number of simultaneous executions per branch is one.)

No.CommandCom-mandCycleCycle
123456789123456789
1PARALLEL
2SINGLEMULTI
3MULTIMULTI
4MULTIMULTI
5MULTISINGLE
6JOINTJOINT
7JWAIT

The following diagram can be applicable as for an operation image if the single execution commands moving axes 1 and 2 while the multiple execution commands perform calculations.

The diagram below is the operation image of the above table if 2 single execution commands are axis movement commands for Axis 1 and 2 and all the multiple execution commands are operation-related (arithmetic, logic, etc.) commands.

OMRON CJ1W-MCH71 - Operation image: - 2

Operation Image (2):

It takes three cycles to execute one single execution command and the maximum number of simultaneous executions is set to four. The number of parallel branches is set to two. (In this case, the number of simultaneous executions per branch is two.)

No.CommandCommandCycleCycle
123456789123456789
1PARALLEL
2SINGLEMULTI
3MULTIMULTI
4MULTIMULTI
5MULTISINGLE
6JOINTJOINT
7JWAIT

The diagram below is the operation image of the above table if 2 single execution commands are axis movement commands for Axis 1 and 2 and all the multiple execution commands are operation-related (arithmetic, logic, etc.) commands.

OMRON CJ1W-MCH71 - Operation image: - 3

Note

(1) JOINT command is treated as a single execution command because it always waits for completion of the previous block execution.
(2) JWAIT command is treated as a single execution command because it always waits for completion of JOINT command's execution in each sequence.

6-1-4 Program System

This section explains the program of the MC Unit.

  • Programs are composed of the motion task main programs and motion task sub-programs.

OMRON CJ1W-MCH71 - 6-1-4 Program System - 1

  • A program can contain up to 800 blocks.

OMRON CJ1W-MCH71 - 6-1-4 Program System - 2

  • A block contains a command, a semi-colon, and a comment (this may be omitted).

OMRON CJ1W-MCH71 - 6-1-4 Program System - 3

  • An NSTOP command, and an ABL/INC command, can be added at the beginning of a block.

OMRON CJ1W-MCH71 - 6-1-4 Program System - 4

6-1-5 Axis Movement Operation

Acceleration/Deceleration Pattern

  • Setting acceleration/deceleration patterns with the following system parameters makes it possible to select symmetrical/asymmetrical acceleration/deceleration patterns.
  • Acceleration/deceleration time cannot be changed during axis movement.
No.NameUsage
P00M02Interpolation feed acceleration timeMotion commands: MOVEL/MOVEC/MOVETRAV (Operand F sets the speed.)
P00M03Interpolation feed deceleration time
P2AA05Rapid feed acceleration timeMotion commands: MOVE/MOVEI/DATUM/MOVET (Factors other than Operand F (parameters, etc.) set the speed)
P2AA06Rapid feed deceleration time
P2AA07Manual feed acceleration timeAxis control bits: JOG/STEP/Machine origin return/Origin search
P2AA08Manual feed deceleration time
  • S-curve acceleration/deceleration can be realized by multiplying movement averaging filter and trapezoidal acceleration/deceleration.

OMRON CJ1W-MCH71 - Acceleration/Deceleration Pattern - 1
S-curve time constant = Delay until operation reaches the intended speed

  • Enable/disable or S-curve time constant for S-shape acceleration/deceleration can be set using the following system parameters:
No.NameUsage
P00M04Interpolation feed S-curve filter enableMotion commands: MOVEL/MOVEC (Operand F sets the speed.)
P00M05Interpolation S-curve time constant
P2AA09Rapid feed S-curve filter enableMotion commands: MOVE/MOVEI/MOVET (Factors other than Operand F (parameters, etc.) set the speed)
P2AA11Rapid feed time constant
P2AA10Rapid feed S-curve filter enableAxis control bits: JOG/STEP
P2AA12Manual feed time constant
  • If the travel time is less than the acceleration time plus the deceleration time, a triangular curve will be created, as shown below.

Case 1:
PTP Operation Commands (MOVE, MOVEI, DATUM, and MOVET)
The rates of acceleration and deceleration will be maintained while moving in a triangular curve.

P2AA01: Maximum rapid feed rate
P2AA05: Rapid feed acceleration time
P2AA06: Rapid feed deceleration time

OMRON CJ1W-MCH71 - Acceleration/Deceleration Pattern - 2
Case 2: Interpolation Commands (MOVEL, MOVEC, and MOVETRAV)

1) P00M06 (pass mode) = 0 or 1

The rates of acceleration and deceleration will be maintained while moving in a triangular curve.

F speed: Speed specified in the interpolation command

P00M02: Interpolation feed acceleration time

P00M03: Interpolation feed deceleration time

OMRON CJ1W-MCH71 - Acceleration/Deceleration Pattern - 3

2) P00M06 (pass mode) = 2 or 3

The rates of acceleration and deceleration will be maintained while moving in a triangular curve.

This setting differs from P00M06 (pass mode) = 0 or 1 in that the maximum interpolation feed rate is used when calculating the acceleration and deceleration times.

P00M01: Maximum interpolation feed rate

P00M02: Interpolation feed acceleration time

P00M03: Interpolation feed deceleration time

OMRON CJ1W-MCH71 - Acceleration/Deceleration Pattern - 4
- Relations between Axis Operation Function and Acceleration/Deceleration

Classifica- tionFunctionAcceleration timeDeceleration timeTime or Acceleration / DecelerationS-curve filter select S-curve filter time constant
Axis move-mentMOVEP2AA05: Rapid feed acceleration timeP2AA06: Rapid feed deceleration timeAcceleration/deceler-ationP2AA09: Rapid feed S-curve filter enable P2AA11: Rapid feed S-curve filter time constant
MOVELP00M02: Interpola- tion feed acceleration time Refer to Acceleration/ Deceleration Times and Pass Mode (page 254) for details.P00M03: Interpola- tion feed deceleration time Refer to Acceleration/ Deceleration Times and Pass Mode (page 254) for details.Normally: time Pass Mode with fixed acceleration: Acceler-ation/decelerationP00M04: Interpola- tion feed S-curve filter enable P00M05: Interpola- tion feed S-curve time constant
MOVECP00M02: Interpola- tion feed acceleration time Refer to Acceleration/ Deceleration Times and Pass Mode (page 254) for details.P00M03: Interpola- tion feed deceleration time Refer to Acceleration/ Deceleration Times and Pass Mode (page 254) for details.TimeP00M04: Interpola- tion feed S-curve filter enable P00M05: Interpola- tion feed S-curve time constant
DATUMP2AA05: Rapid feed acceleration timeAcceleration/deceler-ation---
MOVEIP2AA05: Rapid feed acceleration timeAcceleration/deceler-ationP2AA09: Rapid feed S-curve filter enable P2AA11: Rapid feed S-curve time constant
MOVETP2AA05: Rapid feed acceleration timeAcceleration/deceler-ationP2AA09: Rapid feed S-curve filter enable P2AA11: Rapid feed S-curve time constant
MOVETRAVP00M02: Interpola- tion feed acceleration time Refer to Acceleration/ Deceleration Times and Pass Mode (page 254) for details.P00M03: Interpola- tion feed deceleration time Refer to Acceleration/ Deceleration Times and Pass Mode (page 254) for details.Time---
CAMDepending on the CAM tableDepending on the CAM tableDepending on the CAM table---
Axis opera- tion startMOVELINKCalculated with oper- and A and other travel distancesCalculated with oper- and D and other travel distancesDepending on the travel distance. (Time image)---
CAMBOXDepending on the CAM tableDepending on the CAM tableDepending on the CAM table---
CONNECT------------
SYNCP2AA05: Rapid feed acceleration time Note When trailingAcceleration/deceler- ation Note When trailing---
ADDAX------------
SPEEDSpecified by operand TSpecified by operand TTime---
TORQUESpecified by operand TSpecified by operand TTime---
Axis opera- tion endSYNCRP2AA05: Rapid feed acceleration timeP2AA06: Rapid feed deceleration timeAcceleration/deceler- ation---
ADDAXR------------
SPEEDR---Specified by operand TAcceleration/deceler- ation---
TORQUER---Specified by operand TAcceleration/deceler- ation---
Axis con- trol bitsJOGP2AA07: Manual feed acceleration timeP2AA08: Manual feed deceleration timeAcceleration/deceler- ationP2AA10: Manual feed S-curve filter enable P2AA12: Manual feed S-curve time constant
STEPP2AA07: Manual feed acceleration timeP2AA08: Manual feed deceleration timeAcceleration/deceler- ationP2AA10: Manual feed S-curve filter enable P2AA12: Manual feed S-curve time constant
Origin searchP2AA07: Manual feed acceleration timeAcceleration/deceler- ation---
Machine ori- gin returnP2AA07: Manual feed acceleration timeP2AA08: Manual feed deceleration timeAcceleration/deceler- ation---

Operating Mode

Axis movement commands can be executed in either of two operating modes; one is Pass Mode and the other is Stop Mode. They can be changed using PASSMODE or STOPMODE command in a program.

Pass Mode:

In Pass Mode, when a consecutive operation has been specified, the program proceeds smoothly to the next operation without confirming completion of positioning.

Note that there are some commands that are always executed in Stop Mode.

Stop Mode:

In Stop Mode, when a consecutive operation has been specified, the program always confirms completion of positioning (in-position). Once positioning has been completed, the next operation is started.

For confirming positioning completion, either in-position range (set in the servo parameter) or No. 2 in-position range (set in system parameter) is used.

Which range is to be used depends on each command.

The following table shows the relations between each command and operating modes.

CommandFunctionStop ModePass ModeRemark
MOVEPOSITIONING×
MOVELLINEAR INTERPOLATION
MOVECCIRCULAR INTERPOLATION
DATUMORIGIN SEARCH×
MOVEIINTERRUPT FEEDING×
MOVETTIME-SPECIFIED POSITIONING×
MOVETRAVTRAVERSE○ or □Stop Mode for linked traverse
CAMELECTRONIC CAM, SINGLE AXIS×Acceleration/deceleration time is not known, so this command cannot be executed in Pass Mode.

Executed according to the selected mode.
× Always executed in Stop Mode.
□: The No. 2 in-position range is used.

Explanation of Pass Mode with fixed acceleration:

  • The Pass Mode operation is usually performed based on acceleration or deceleration time, however, the Pass Mode with fixed acceleration can be used when the parameter [P00M06: Pass Mode select] is set to 2 or 3, and the MOVEL command is executed with only one axis specified.
Parameter No.NameValue
P00M06Pass Mode Select0: Based on interpolation acceleration time + Pass Mode with fixed acceleration disabled1: Based on interpolation deceleration time + Pass Mode with fixed acceleration disabled2: Based on interpolation acceleration time + Pass Mode with fixed acceleration enabled3: Based on interpolation deceleration time + Pass Mode with fixed acceleration enabled
  • Interpolation override in Pass Mode with fixed acceleration will be disabled during deceleration due to shortage of remaining travel distance. (The very last value will be held.)
  • Under the following conditions in Pass Mode with fixed acceleration, the passing operation cannot be performed. The operation is stopped with deceleration once (does not wait for No.2 in-position, so it is not a Stop Mode operation), and proceeds to the next operation.

Distance required for deceleration stop from current speed > Travel distance of the next block

Restrictions and Conditions for Pass Mode

The following setting and programming conditions must be met to enable continuous axis operation without stopping in pass mode.

1,2,3...

  1. The number of parallel branches (P00002) divided by the number of parallel branches in the program must be 2 or higher.

Ex) If P00002 is set to 4 and there are no parallel branches used in the program (i.e., if the number of branches in the program is 1), 4 divided by 1 equal 4, so this condition would be met.

  1. Interpolation commands (MOVE, MOVEC, and MOVETRAV) must be used continuously.
Ex) Correct Notation MOVEL [J01] 100 [J02] 200; MOVEL [J01] 200 [J02] 300;Incorrect Notation MOVEL [J01] 100 [J02] 200; #IWOA00 = 1; Not an interpolation command, so op- eration will not be continuous.
MOVEL [J01] 300 [J02] 400;MOVEL [J01] 100 [J02] 200;
::
If the following conditions are met, multiple execution commands can be used between interpolation commands. • The pass mode (P00M06) is set to 0 or 1. • The operation time of one of the interpolation commands is longer than the processing time for the multiple execution command. Ex) PASSMODE; WHILE #MW0000 == 0; INC MOVEL [J02] 100 F1000; WEND;
Acceleration/Deceleration Times and Pass ModeThe acceleration/deceleration times can be changed as required during pass operation. Specifically, the numbers of the parameters where the acceleration/deceleration times are set are substituted for input variables to specify acceleration/deceleration times. This called bank selection. Bank selection is possible not only in pass mode, but also in stop mode. PRGRAM P000 Q00000003; PARAM P00111 = 100; Interpolation feed acceleration time bank 1 for task 1 PARAM P00112 = 200; Interpolation feed acceleration time bank 2 for task 1 : PARAM P00120 = 1000; Interpolation feed acceleration time bank 10 for task 1 : PASSMODE; #IW0A00 = 1; Selects task 1 bank 1 acceleration/deceleration time MOVE [J01] 1000 F100000; Accelerates using the selected acceleration/deceleration time #IW0A00 = 2; Selects task 1 bank 2 acceleration/deceleration time MOVE [J01] 20000 F200000; Passes using the selected acceleration/deceleration time : END;
NoteP00111 to P00120 are task parameters. They can be set in advance from the Support Tool running on a computer.

OMRON CJ1W-MCH71 - Restrictions and Conditions for Pass Mode - 1

Parameters and Variables Used for Bank Selection

The following system parameters and input variables are used for bank selections.

System Parameters

The following ten parameters are provided for each task.

No.NameSetting rangeInitial valueUnit
P00M11Interpolation feed acceleration/deceleration time bank 10-60000100ms
P00M12Interpolation feed acceleration/deceleration time bank 20-60000100ms
P00M13Interpolation feed acceleration/deceleration time bank 30-60000100ms
P00M14Interpolation feed acceleration/deceleration time bank 40-60000100ms
P00M15Interpolation feed acceleration/deceleration time bank 50-60000100ms
P00M16Interpolation feed acceleration/deceleration time bank 60-60000100ms
P00M17Interpolation feed acceleration/deceleration time bank 70-60000100ms
P00M18Interpolation feed acceleration/deceleration time bank 80-60000100ms
P00M19Interpolation feed acceleration/deceleration time bank 90-60000100ms
P00M20Interpolation feed acceleration/deceleration time bank 100-60000100ms

Input Variables

The following variables are used to specify banks for each task. If a value not between 0 and 10 is specified, the acceleration and deceleration times in P00M02 and P00M03 will be used.

No.BitsNameSetting rangeInitial value
IW0A0000-15Acceleration/deceleration bank selection for motion task 10-100
IW0A0100-15Acceleration/deceleration bank selection for motion task 20-100
IW0A0200-15Acceleration/deceleration bank selection for motion task 30-100
IW0A0300-15Acceleration/deceleration bank selection for motion task 40-100
IW0A0400-15Acceleration/deceleration bank selection for motion task 50-100
IW0A0500-15Acceleration/deceleration bank selection for motion task 60-100
IW0A0600-15Acceleration/deceleration bank selection for motion task 70-100
IW0A0700-15Acceleration/deceleration bank selection for motion task 80-100

Acceleration/Deceleration Times and Bank Selections

The acceleration/deceleration times used in pass mode are described below.

Programming Example

PASSMODE;

IW0A00 = X; Selects task 1 bank X acceleration/deceleration time

MOVE [J01] 10000 F100000;

IW0A00 = Y; Selects task 1 bank Y acceleration/deceleration time

MOVE [J01] 20000 F200000;

END;

Speed

OMRON CJ1W-MCH71 - Acceleration/Deceleration Times and Bank Selections - 1

P00M06Acceleration time (Ta)Passing time (Tp)Deceleration time (Td)
ValueMeaning
0Interpolation acceleration time + Pass mode with fixed acceleration disabledPreviously selected bankPreviously selected bankPreviously selected bank
1Interpolation deceleration time + Pass mode with fixed acceleration disabledP00M02Previously selected bankPreviously selected bank
2Interpolation acceleration time + Pass mode with fixed acceleration enabledPreviously selected bankAcceleration: Previously selected bankDeceleration: P00M03P00M03
3Interpolation deceleration time + Pass mode with fixed acceleration enabledP00M02Acceleration: P00M02Deceleration: Previously selected bankPreviously selected bank

Note Acceleration: When the current speed command is faster than the previous speed command

Deceleration: When the current speed command is slower than the previous speed command

Setting the Acceleration and Deceleration Times for Interpolation Separately (Unit Ver. 3.1 or Later)

Acceleration and deceleration times can be set separately for linear interpolation, circular interpolation, and traverse using the bank function.

Setting Procedure

1,2,3...

  1. Set P00004 (unit function selection) bit 13 (interpolation acceleration/deceleration bank switching option) to 1.

Data of banks 1 to 10 will be allocated for acceleration and deceleration times.

Parameter No.IORD/ IOWR AddressNameBitsValueInitial value
P000045003hUnit func-tion select13Interpolation acceleration/ deceleration bank switching option. Selects the bank switching method for acceleration and deceleration times used during interpolation accelera-tion/deceleration. 0: Selects the same banks for acceleration and deceleration times. 1: Selects different banks for acceleration and deceleration times.0

For example, the acceleration time can be set to bank 1 during acceleration, and the deceleration time can be set to bank 5 during deceleration.

Task No.NumberP00004.13 = 0P00004.13 = 1
NameName
M TaskP00M11Interpola- tion feed accelera- tion timeBank 1Interpola- tion feed accelera- tion timeBank 1
P00M12Bank 2Bank 2
P00M13Bank 3Bank 3
P00M14Bank 4Bank 4
P00M15Bank 5Bank 5
P00M16Bank 6Interpola- tion feed decelera- tion timeBank 1
P00M17Bank 7Bank 2
P00M18Bank 8Bank 3
P00M19Bank 9Bank 4
P00M20Bank 10Bank 5
  1. The following variables are used to specify the bank number during acceleration and deceleration.
Variable addressP00004.13 = 0P00004.13 = 1
NameSpecificationNameSpecification
IW0A00Acceleration/ deceleration bank selection for motion task 1Selects sys- tem parame- ters to use as interpolation feed accelera- tion/decelera- tion times. 1 to 10: Uses P00M11 to P00M20 as interpolation feed accelera- ation/deceler- ation times.Motion task 1 acceleration time bank selectionSelects sys- tem parame- ters to use as interpolation feed accelera- tion/decelera- tion times. 1 to 5: Uses P00M11 to P00M15 as interpolation feed accelera- ation time. Other: P00M02: Uses interpo- lation feed acceleration time
IW0A01Acceleration/ deceleration bank selection for motion task 2Motion task 2 acceleration time bank selection
IW0A02Acceleration/ deceleration bank selection for motion task 3Motion task 3 acceleration time bank selection
IW0A03Acceleration/ deceleration bank selection for motion task 4Other: P00M02: Uses interpo- lation feed acceleration timeMotion task 4 acceleration time bank selection
IW0A04Acceleration/ deceleration bank selection for motion task 5P00M03: Uses interpo- lation feed deceleration time.Motion task 5 acceleration time bank selection
IW0A05Acceleration/ deceleration bank selection for motion task 6Motion task 6 acceleration time bank selection
IW0A06Acceleration/ deceleration bank selection for motion task 7Motion task 7 acceleration time bank selection
IW0A07Acceleration/ deceleration bank selection for motion task 8Motion task 8 acceleration time bank selection
IW0A08Reserved---Motion Task 1 deceleration time bank selectionSelects system parameters to use as interpolation feed deceleration time.1 to 5: P00M16 to P00M20 are used as interpolation feed deceleration time. Other: P00M03: Uses interpolation feed deceleration time
IW0A09Reserved---Motion Task 2 deceleration time bank selection
IW0A0AReserved---Motion Task 3 deceleration time bank selection
IW0A0BReserved---Motion Task 4 deceleration time bank selection
IW0A0CReserved---Motion Task 5 deceleration time bank selection
IW0A0DReserved---Motion Task 6 deceleration time bank selection
IW0A0EReserved---Motion Task 7 deceleration time bank selection
IW0A0FReserved---Motion Task 8 deceleration time bank selection

Acceleration/Deceleration Times and Pass Mode

By setting P0004 bit 13 to 1, the acceleration and deceleration times for pass mode operation take on the values as shown in the following table.

Banks can be selected for values fixed by system parameters P00M02 (interp-. polation feed acceleration time) or P00M03 (interpolation feed deceleration time).

Value of P00M06Operating modeP00004.13 = 0P00004.13 = 1
Acceleration timeDeceleration timeAcceleration timeDeceleration time
0 Interpolation acceleration time + Pass mode with fixed acceleration disabledPass ModeBank selectionBank selectionAcceleration time bank selectionDeceleration time bank selection
Stop ModeBank selectionValue set for P00M03Acceleration time bank selectionDeceleration time bank selection
1 Interpolation deceleration time + Pass mode with fixed acceleration disabledPass ModeValue set for P00M02Bank selectionAcceleration time bank selectionDeceleration time bank selection
Stop ModeValue set for P00M02Bank selectionAcceleration time bank selectionDeceleration time bank selection
2 Interpolation acceleration time + Pass mode with fixed acceleration enabledPass ModeBank selectionValue set for P00M03Acceleration time bank selectionDeceleration time bank selection
Stop ModeBank selectionValue set for P00M03Acceleration time bank selectionDeceleration time bank selection
3 Interpolation deceleration time + Pass mode with fixed acceleration enabledPass ModeValue set for P00M02Bank selectionAcceleration time bank selectionDeceleration time bank selection
Stop ModeValue set for P00M02Bank selectionAcceleration time bank selectionDeceleration time bank selection

Timing of Bank Switching

In principle, bank switching is enabled when the block after bank switching is executed.

Operating modeValid timing
Not in pass operation during pass mode or stop modeEnabled when the block after switching is executed.
Acceleration and deceleration time is specified in pass operationEnabled when the block executed after switching begins to decelerate.
Fixed acceleration in pass operationEnabled when the block after switching is executed.

Overview of Bank Switching

Acceleration/deceleration time bank switching is specified in the motion program and not the ladder program.

When system parameter P00004 bit 13 is set to 1 (selects banks for acceleration/deceleration times separately), four patterns of operation images (one for each setting of P00M06) are possible.

Stop Mode (P00106 = 0: Acceleration Time Specification)

Enabled when the block after parameter change is executed.

Program Example:

Set P00M11 to P00M15 and P00M16 to P00M20 beforehand.

Execution with PROG P0001 Q0001; motion task 1 (P00106 = 0: acceleration time specification)

STOPMODE;

IW0A00=0; Acceleration bank 0 specification

IW0A08=0; Deceleration bank 0 specification

DATUM [J01]0 [J02]0;

ABL MOVEL [J01]100000 F1000000;

WAIT #SL0204 > 20000; Command position exceeds 20000

IW0A00=1; Acceleration bank 1 specification

IW0A08=1; Deceleration bank 1 specification

ABL MOVEL [J01]0 F1000000;

WAIT #SL0204 < 80000; Command position exceeds 80000

IW0A00=2; Acceleration bank 2 specification

IW0A08=2; Deceleration bank 2 specification

ABL MOVEL [J01]100000 F1000000;

END;

OMRON CJ1W-MCH71 - Stop Mode (P00106 = 0: Acceleration Time Specification) - 1

Interpolation acceleration time + Fixed acceleration pass mode disabled (P00106 = 0)

Enabled when the block executed after parameter change begins to decelerate.

Program Example:

Set P00M11 to P00M15/P00M16 to P00M20 beforehand.

Execution with PROG P0002 Q0001; motion task 1.

PASSMODE;

IW0A00=1; Acceleration bank 1 specification

DATUM [J01]0;

ABL MOVEL [J01]100000 F600000;

WAIT #SL0204 > 20000; Command position exceeds 20000

IW0A00=2; Acceleration bank 2 specification

ABL MOVEL [J01]200000 F1000000;

WAIT #SL0204 > 170000; Command position exceeds 170000

IW0A00=3; Acceleration bank 3 specification

ABL MOVEL [J01]300000 F600000;

ABL MOVEL [J01]400000 F1000000;

END;

OMRON CJ1W-MCH71 - Interpolation acceleration time + Fixed acceleration pass mode disabled (P00106 = 0) - 1

Interpolation deceleration time + Fixed acceleration pass mode disabled (P00106 = 1)

Enabled when the block executed after parameter change begins to decelerate.

Program Example:

Set P00M11 to P00M15/P00M16 to P00M20 beforehand.

Execution with PROG P0002 Q0001; motion task 1.

PASSMODE;

IW0A00=1; Acceleration bank 1 specification

IW0A08=1; Deceleration bank 1 specification

DATUM [J01]0;

ABL MOVEL [J01]100000 F600000;

WAIT #SL0204 > 20000; Command position exceeds 20000

IW0A08=2; Deceleration bank 2 specification

ABL MOVEL [J01]200000 F1000000;

WAIT #SL0204 > 170000; Command position exceeds 170000

IW0A08=3; Deceleration bank 3 specification

ABL MOVEL [J01]300000 F600000;

ABL MOVEL [J01]400000 F1000000;

END;

OMRON CJ1W-MCH71 - Interpolation deceleration time + Fixed acceleration pass mode disabled (P00106 = 1) - 1

Interpolation acceleration time + Fixed acceleration pass mode enabled (P00106 = 2)

Interpolation deceleration time + Fixed acceleration pass mode enabled (P00106 = 3)

Enabled when block after parameter change is executed.

Program Example:

Set P00M11 to P00M15/P00M16 to P00M20 beforehand.

Execution with PROG P0002, Q0001; motion task 1

PMD;

IW0A00=1; Acceleration bank 1 specification

IW0A08=1; Deceleration bank 1 specification

ZRN [JO1]0;

ABS MVS [J01]100000 F600000;

LOW #SL0204 > 20000; Command position exceeds 20000

IW0A00=2; Acceleration bank 2 specification

ABS MVS [J01]200000 F1000000;

LOW #SL0204 > 17000; Command position exceeds 170000

IW0A00=3; Acceleration bank 3 specification

ABS MVS [J01]300000 F1500000;

ABS MVS [J01]400000 F1000000;

LOW #SL0204 > 350000; Command position exceeds 350000

IW0A08=2; Deceleration bank 2 specification

ABS MVS [J01]500000 F600000;

LOW #SL0204 > 450000; Command position exceeds 450000

IW0A08=3; Deceleration bank 3 specification

END;

OMRON CJ1W-MCH71 - Interpolation deceleration time + Fixed acceleration pass mode enabled (P00106 = 3) - 1

Rapid Feed Rate

Rapid Feed Rate

The feed rate for the axis movement command MOVE and MOVEI can be set in the parameter [P2AA03: Rapid feed rate].

The speed can be changed using the same parameter [P2AA03: Rapid feed rate] before executing positioning.

Upper Limit of Command Value

The value set in the parameter [P2AA01: Maximum rapid feed rate] limits the speed after override, the speed specified in the operand V of MOVET command, or the speed after override for MOVET command.

Override

Changing Speed with the PLC

The speed can be changed during operations by multiplying override to the rapid feed rate.

The axis override is used for rapid feed rate.

Range of the axis override is between 0 and 327.67% . When a value outside of the range is set, the override 0% is used.

For details of the axis override, see 7-4-4 Axis Control Bits, Axis Status Bits (page 472).

OMRON CJ1W-MCH71 - Changing Speed with the PLC - 1

Changing Speed with the Program

The feed rate from the motion program can be added to the override that changes the axes feed rate from the ladder program in order to conduct high speed positioning.

The actual speed is calculated as follows:

Actual speed = Axes feed rate × (Axes override + Internal override)

Commands that can be specified by adding override from the motion program are listed in the following table.

Classifica- tionInstructionRate to which override is appliedRemarks
Axes move-mentMOVERapid feed rate---
DATUMOrigin return feed rate---
MOVEIRapid feed rate, external positioning rate---
MOVETRapid feed rate---
CAM---Override from ladder pro- gram is disabled.
  • The range of numerical values for axes override will not change even if the internal override is added.

  • The range of numerical values is 0.00% to 327.67% .

  • The axes override value is valid only when the axes override enable relay is ON. When it is OFF, the value is 100% .
  • If the entered value is not within the stated range, the following values will be assigned.

Negative values: 0%

Values exceeding 327.67%: 327.67%

  • Examples of Actual Calculated Speed Are Shown in the Following Table.
Axes overrideInternal overrideActual override
100.00%100.00%200.00%
100.00%-100.00%0.00%
-100.00%100.00%0.00%
-100.00%-100.00%0.00%
200.00%200.00%327.67%

Interpolation Feed Rate

Interpolation Feed Rate

The feed rate for the axis movement commands MOVEL, MOVEC, and MOVETRAV can be set in the Operand F in motion programs. Overwriting the value in F can change the feed rate though it is not valid during operations. During motion program execution, the previously specified interpolation speed will be held until the newly set speed is enabled. (Modal data.)

Upper Limit of Command Value

The value set in the parameter [P00M01: Maximum interpolation feed rate] limits the speed after override, the speed specified in the operand F.

If the speed of axes exceeds the speed specified in the parameter [P2AA01: Maximum rapid feed rate], the speed will be limited as shown in the table below:

CommandSpeed limit operation
MOVELInterpolation feed rate is limited in order to prevent the speed of the axis that has the longest travel distance from exceeding the speed specified in the parameter [P2AA01: Maximum rapid feed rate].
MOVECSpeed of axes is not checked.
MOVETRAVInterpolation feed rate is limited in order to prevent the speed of rotation axis from exceeding the speed specified in the parameter [P2AA01: Maximum rapid feed rate].

Override

Multiplying the override and the interpolation feed rate can change speed of the operation in progress. The task override is used for the interpolation feed rate. Range of the task override is between 0 and 327.67% . When a value outside of the range is set, the override 0% is used. If the distributed interpolation feed rates on the axes exceed the speeds specified in the parameter [P2AA01: Maximum rapid feed rate] for the axes, the maximum speed of the axis that has the longest travel distance (the fastest axis) will be used as the upper limit.

For details on the task override, see 7-4-3 Motion Task Control Bits (page 443).

OMRON CJ1W-MCH71 - Override - 1

Commands using the Counter Latch Function

The following six commands use the counter latch function:

CommandPurpose for using counter latch functionRole of latch signal
DATUM: Origin searchDetects originThe trigger to decide the final stop position
MOVEI: Interrupt feedingDetects external signal input positionThe trigger to decide the final stop position
MOVELINK: Link operationDetects link start positionThe trigger to start synchronization
CAMBOX: Electronic Cam, SynchronousDetects link start positionThe trigger to start synchronization
SYNC: Trailing Synchroniz- nizationDetects position of marker sensor ON.The trigger to start synchroni- zation
LATCH: Present position latchDetects latch positionThe trigger to store the latch position

With variables in the following table, whether or not the counter latch has been completed can be confirmed:

VariableSpecificationsRemark
Output variables: Axis status bits: bit 10 [Counter latch completed]0: Started to execute function that requires counter latch 1: Completed counter latchRelation to SW022A 0: SW022A = 0, 1, 2 1: SW022A = 3, 4
System variables: SW022A + 30 × (Axis No. - 1)0: No latch request 1: Parameter being overwritten 2: Latch being requested 3: Latch completed (next request: disabled) 4: Latch completed (next request: enabled)Only the latch signal input during "latch being requested" can be accepted.

Counter latch positions are stored in each variable shown in the following table:

Command: FunctionStorageContent
DATUM: Origin searchSystem variablesSW0208 + 30 × (Axis No. – 1)Counter latch position on machine coordinate system
MOVEI: Interrupt feeding
MOVELINK: Link operation
CAMBOX: Electronic Cam, Synchronous
SYNC: Trailing Synchronizatio
LATCH: Present position latch"Latch position storage address" in the operand of a commandCounter latch position on the currently selected coordinate system

Latch signals used for counter latch can be set in the following parameters:

CommandsParametersValue: Latch signals
DATUM: Origin searchP4AA06: Origin deter-mine signal0: Phase-C (Z) 1: External input signal 1 2: External input signal 2 3: External input signal 3
CommandsParametersValue: Latch signals
MOVEI: Interrupt feedingP5AA08: External input signal select 1@ @%%$$##h0: Phase-C (Z)
MOVELINK: Link operation## (MOVEI: Interrupt feeding)1: External input signal 1
CAMBOX: Electronic Cam, Synchronous$$ (MOVELINK: Link operation)2: External input signal 2
%% (CAMBOX: Electronic cam, Synchronous)3: External input signal 3
SYNC: Trailing Synchroniza- tion@@ (SYNC: Trailing Synchroniza- tion)
LATCH: Present position latchP5AA09: External input signal select 2000000##h0: Phase Z(C)
## (LATCH: Present position latch)1: External input signal 1
2: External input signal 2
3: External input signal 3

Simultaneous Commands (Overlap) to the Same One Axis

The operations when several commands are executed simultaneously on the same one axis are as follows:

Command executed simultaneouslyClassificationAxis movementAxis operationAxis operation cancelSetting
Function/NamePositioningLinear interpolationCircular interpolationOrigin searchInterrupt feedingTime-specified positioningElectrical CAM, Single axisLink operationElectronic CAM, SynchronousElectronic shatTrailing synchronizationTravel distance super imposeSpeed controlTorque controlTrailing synchronization cancelTravel distance super impose cancelSpeed control cancelTorque control cancelTarget position changeParameter value changeWorkpiece coordinate system OFFSET changePresent value latch
ClassificationFunction/NameCommandSteppingMOVEMOVELMOVECDATUMMOVEIMOVETMOVERAVCAMMOVELINK (M)MOVELINK (S)CAMEBOX (M)CAMEBOX (S)CONNECT (M)CONNECT (S)SYNC (M)SYNC (S)ADDAX (M)ADDAX (S)SPEEDTORQUESYNCADXAIRSPEEDTORQUERTORQUEMVOEMODIPARAMOFFPOSLATCH
Axis movementPositioningMOVEEEEEEEEAEAEAEAEAADDBBBBAAAA
Linear interpolationMOVELEEEEEEEAEAEAEAEAADDBBBBGAAA
Circular interpolationMOVECEEEEEEEAEAEAEAEAADDBBBBBAAA
Origin searchDATUMEEEEEEECECEAECEAADDBBBBBAAC
Interrupt feedingMOVEIEEEEEEECECEAECEAADDBBBBBAAC
Time-specified positioningMOVETEEEEEEEAEAEAEAEAADDBBBBBAAA
TraverseMOVETRAVEEEEEEEAEAEAEAEAADDBBBBBAAA
Electronic CAM, Single axisCAMEEEEEEEAEAEAEAEAADDBBBBBAAA
Axis operation cancelAxis operationAxis operation
Function NameAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis positionAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis operationAxis位置CommandFunction NameCommandFunction NameCommandSteppingCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandControlCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingControlCommandCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandSteppingCommandCommandStarexcapTime-specified positioning
Axis operation cancelTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACEcontrolTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE控制TSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE ControlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACEControlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE 控制TSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE controlTSURFACE
Command executed simultaneouslyClassificationAxis movementAxis operationAxis operation cancelSetting
Function/NamePositioningLinear interpolationCircular interpolationOrigin searchInterrupt feedingTime-specified positioningTraverseElectronic CAM, Single axisLink operationElectronic CAM, SynchronousElectronic shaftTrailing synchronizationTravel distance super imposeSpeed controlTorque controlTrailing synchronization cancelTravel distance super impose cancelSpeed control cancelTorque control cancelTarget position changeParameter value changeWorkpiece coordinate system OFFSET changePresent value latch
ClassificationFunction/NameCommandSteppingMOVEMOVELMOVECDATUMMOVEIMOVETMOVETRAVCAMMOVELINK (M)MOVELINK (S)CAMBOX (M)CAMBOX (S)CONNECT (M)CONNECT (S)SYNC (M)SYNC (S)ADDAX (M)ADDAX (S)SPEEDTORQUESYNCADDAXRSPEEDTORQUERTORQUERPARAMOFFPOSLATCH
SettingTarget position changeMOVEMODIAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Parameter value changePARAMAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Workpiece coordinate system OFFSET changeOFFPOSAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Present value LatchPresent value LatchAAACCAAACACAAACAAAAAAAAAAAAH
Meaning
ACan be executed.
BThe function executed later will be ignored.
CCan be executed when no latch is requested. However, when latch is being requested and the function is executed, the alarm [301Ah:Counter latch resource violation] will occur and the program will be interrupted. Also, if the function is executed when writing the latch range parameters, the alarm [2016h: Same axis specification multiplicity] will occur, and the program will be interrupted.
DAlarm [2014h: Control mode error] will occur, and the program will be interrupted.
EAlarm [2016h: Same axis specification multiplicity] will occur, and the program will be interrupted.
FAlarm [2018h: Synchronous slave axis specification error] will occur, and the program will be interrupted.
GOnly MOVEMODI during MOVEL: Can be executed if a single axis is specified for each command. Otherwise, the function executed later will be ignored.
HOnly latch cancel can be executed. Other cases will be as follows: When executed in parallel, the alarm [2016: Same axis specification multiplicity] will occur and the program will be interrupted. When executed in series, the alarm [301A: Counter latch resource violation] will occur and the program will be interrupted. When executed continuously, the alarm [2016: Same axis specification multiplicity] will occur and the program will be interrupted.
IOnly SPEEDR/TORQUER for the master axis: The function executed later will be ignored. Note that, however, if the master axis is under speed or torque control, SPEEDR/TORQUER will be executed to end the operation.

Changing Control Mode

There are three different types of control mode for the MC Unit; [Position control mode], [Speed control mode], and [Torque control mode].

Switching method and the behaviors are as shown below:

Mode before switchMode after switchSwitching methodBehavior
PositionSpeed• Execute SPEED command when the axis is being stopped.When executing SPEED command during axis movement, the alarm [2014: Control mode error] will occur.
PositionTorque• Execute TORQUE command when the axis is being stopped.When executing TORQUE command during axis movement, the alarm [2014: Control mode error] will occur.
SpeedPosition• Execute a command for position control mode after SPEED command was executed to switch to the position control mode.When executing a command for position control mode without executing SPEED command first, the alarm [2014: Control mode error] will occur.
•Execute MOVE command.When executing MOVE command without executing SPEED command, the speed of the operation changes smoothly.
SpeedTorque•Execute TORQUE command after SPEED command was executed to switch to position control mode. •Execute TORQUE command.When executing TORQUE command without executing SPEED command first, the torque command 0 is used after the switch because the torque command value in the speed control mode is unknown. To change torque smoothly, monitor the torque in speed control mode, and execute the block with torque command value that was monitored in TORQUE command of 0 torque change rate.
TorquePosition•Execute TORQUER commandWhen executing a command (MOVE, etc.) for position control mode in torque control mode, the alarm [2014: Control mode error] will occur.
TorqueSpeed•Execute SPEED command after TORQUER command was executed to switch to position control mode.When executing SPEED command in torque control mode, the alarm [2014: Control mode error] will occur.

To stop axis (speed = 0) in speed control mode started by SPEED command, execute the SPEEDDR command (speed control cancel).

The waveform at this point (i.e. when stopping) will follow the speed change rate specified in SPEEDCR command.

Similarly, to stop axis (torque = 0) in torque control mode started by TORQUE command, execute the TORQUER command (torque control cancel).

The waveform at this point (i.e. when stopping) will follow the torque change rate specified in TORQUER command.

Note

As in the following cases, however, the operation is stopped (or started) without executing SPEEDR or TORQUER command. Therefore, the speed change rate or torque change rate specified in the previous SPEED or TORQUE command is used.

  • When an alarm occurred
  • When a program ended
  • When a program was interrupted
  • When a program was restarted after interruption.

S-curve Filter & Stop Mode/Pass Mode

Movement averaging filter is used for the S-curve acceleration/deceleration of the MC Unit.

A command of the next block can be executed during S-curve deceleration. However, if the command is to be executed after completion of the previous command's output (as it should be for CAM, etc.), STOPMODE or PASS-MODE command can be used to control the execution.

When MOVEL MOVE command was executed in Pass Mode:

Program example:

PROG P0001 Q00000001;

PASSMODE;

INC MOVEL [J01] 10000 F100000; Interpolation feed S-curve filter enable

INC MOVE [J01] 10000; Rapid feed S-curve filter disable END;

OMRON CJ1W-MCH71 - When MOVEL  MOVE command was executed in Pass Mode: - 1

When MOVEL MOVE command was executed in Stop Mode:

Program example:

PROG P0001 Q00000001;

STOPMODE;

INC MOVEL [J01] 10000 F100000;

INC MOVE [J01] 10000;

END;

OMRON CJ1W-MCH71 - When MOVEL  MOVE command was executed in Stop Mode: - 1

6-1-6 Synchronous Command

There are five different types of synchronous commands.

  • MOVELINK: Link operation start
  • CAMBOX: Electronic cam, synchronous
  • CONNECT: Electronic shaft
    SYNC: Trailing synchronization
  • ADDAX: Travel distance superimpose

Master Axis

  • Any MC Unit axis can be used as a master axis. Axis declaration by PROG command (program start) is not required for the axes to be used only as master axes.

Slave Axis

  • Whether to use the specified speed of the master axis or the feedback speed can be selected using the operand of each synchronous command.
  • If a master axis is the virtual axis, feedback speed = specified speed.
  • For the counter axis, specified speed = feedback speed.
  • There is no limit on the number of slave axes per one master axis.
  • The axis that is already operating as a slave axis can be specified as a master axis for another synchronous command.

  • Only the axes that are declared by PROG command (program start) can be used as slave axes.

  • A master axis that is already operating cannot be specified as a slave axis for another synchronous command, except for that the master axis of ADDAX (Travel distance superimpose) command can be specified as a slave axis of another synchronous command.
  • When a slave axis already in synchronization is specified as a slave axis for another master axis, the alarm [2016h: Same axis specification multiplicity] will occur. In the cases below, however, the alarm will not occur and a new synchronous operation will be established.
Operating axisOverlapping commandOperation
MOVELINK slave axisMOVELINK slave axisInterrupts the current synchronization and establish a new synchronization.
CAMBOX slave axis
CAMBOX slave axisMOVELINK slave axis
CAMBOX slave axis
CONNECT slave axisCONNECT slave axis

Program Restart

When a program is stopped after establishing synchronization and resumed, the following operations will be as described below depending on the command.

The latest interrupted synchronization is re-executed. Whether the condition for starting the synchronization is met or not met will be reflected when it is restarted.

CONNECT:

The latest interrupted synchronization is re-executed.

SYNC:

There is no re-execution after interruption.

ADDAX:

The latest interrupted synchronization is re-executed.

Note

While a program is being stopped, synchronization is also being stopped. Therefore, there will be some position deviation between axes if the axis is moved.

Precautions in Using Synchronous Commands

The precautions are as follows:

1,2,3...

  1. Start the master axis of a synchronous command only after all the slave axes have recognized and processed the command.

Especially when the master and slave axes are in different tasks, or in different blocks of parallel branching, provide interlocking, etc. so that the master axis starts operating only after all the slave axes have recognized and processed the command.

Program example

OMRON CJ1W-MCH71 - Program example - 1

  1. Set the resolution for the master axis of the synchronous command higher than the one of slave axes.

Since slave axes cannot operate with the unit system smaller than the one of the master axis, setting a larger travel distance for slave axes than the travel distance 1 of the master axis causes off-and-on operations. Make sure to set parameters so that "Master axis travel distance > Slave axes travel distance" is true.

In this case, the problem lies not in the resolution for 1 motor rotation on each motor, but in the relations on travel distances between the master and slave axes in synchronization.

An example is shown using the following parameters.

Parameter setting value[J01][J02]
Axis parameterP5AA02Position command decimal point position24
P5AA04Command unit/1 machine rotation36000100000
P5AA05Gear ratio 1 (motor rotation speed)51
P5AA06Gear ratio 2 (machine rotation speed)11
Motor parameter9001hNo. of encoder pulses (×4)6553665536

Program

MOVELINK [J02]6000 [J01]100. A50. D50. Q5 I0. B0;

According to the conditions mentioned above, the travel distance (pulse) of each axis for linking distance will be as follows:

9001h [No. of encoder pulses/1 motor rotation] × P5AA05 [on motor]
Pulse [on motor] = Command unit [on machine] × P5AA04 [command unit/1 machine rotation] × P5AA06 [on machine]

  • No. of pulses for the linking distance of the master axis [J01]:

When 100. of [J01] is converted from the immediate value to the command unit,

Command unit = 100 /0.01(unit of P5AA02) = 10000 [on machine]

Put the result in the formula (1):

Pulse [on motor] = 10000 [on machine] × (65536 × 5) / (36000 × 1)

= 91022.22 = 91022 [pulse]---(2)

  • No. of pulses for the linking distance of the slave axis [J02]:

Pulse [on motor] = 6000 [on machine] × (65536 × 1) / (36000 × 1)
= 10922.6 = 10922 [pulse]---(3)

According to the results (2) and (3), the relations between the master axis [J01] and the slave axis [J02] on the travel distance (pulse) within the linking distance is:

Master axis [J01] Slave axis [J02]

91022 [pulse] > 10922 [pulse]

In this case, the travel distance of the master axis is larger than the one of the slave axis. Thus, the condition "Master axis travel distance > Slave axis travel distance" is satisfied.

Processing Required When the Command Execution Completion for MOVELINK, CAMBOX Is Set to "At the Same Time with the Command Start"

By setting the link option of the synchronous commands MOVELINK and CAMBOX to "At the same time with the command start" for the command execution completion, the program can execute a single execution command (axis movement, etc.) on a slave axis different from the one previously used.

However, when a new single execution command such as axis movement, etc. is to be executed after completion of the previous synchronous operation, the operation of the new command is started (specifying the same slave axis as the one previously, or currently being used causes an alarm.) before the synchronous operation is completed unless a program that monitors completion of the synchronous operation is arranged. The following is the program example.

Program

Task 1

PROG P0001 Q0000005; Declaration of the program

(1)MOVELINK [J01]2000 [J02]1000 A200 D200 Q1; Synchronizes J01 with J02
(2)#MW0000 = 0055; Writes "55" to global variable 0000
(3)MOVE [J03]1500; Moves J03 to the position 1500
(4)WAIT #SW0228 = = 0000; Stops stepping till J01 not being executed
(5)MOVE [J01]3000; Moves J01 to the position 3000

END;

Task 2

PROG P0001 Q0000002; Declaration of the program

(2)WAIT #MW0000 = = 0055; Stops stepping till global variable 0000 becomes "55"

MW0000 = 0; Writes "0" to global variable 0000

(6)MOVE [J02]2000; Moves J02 to the position 2000

END;

Timing chart

OMRON CJ1W-MCH71 - Timing chart - 1

Explanation

1,2,3...

  1. Having J02 as a master axis with the travel distance of 1000, J01 is moved to the position of 2000 through synchronization. In this operation, the acceleration interval of the slave axis is specified between the synchronization start position and 200 of the master axis travel distance while the deceleration interval is specified between the synchronization end position and 200 of the master axis travel distance. The program advances with the link option set to "1" (link operation is started at the same time as the command execution start, the command execution is completed at the same time as the command execution start).
  2. Using the global variable #MW0000, the program notifies task 2 that MOVELINK block has been executed. (It is used as interlocking for the master axis.) As the response, task 2 resets the content of the global variable (#MW0000 = 0); and then executes the command for (6).
  3. J03 is executed simultaneously during the operation of J01.
  4. Monitoring the command execution status of the system variable #SW0228 (for Axis 1), the advancement of task 1 is held until the command code becomes "0000" (no axis movement).
  5. J01 is finished with the MOVELINK command of (1) after (4), another single execution command can be executed.

6-1-7 Modal Data

Data that is selected by the following commands, and that can be omitted later in the program, is called modal data.

GroupCommandDescription
1ABL/INCInterprets the specified position either as an absolute value specification or as an incremental value specification.
2PASSMODE/ STOPMODESets the axis movement command operating mode to either Pass Mode or Stop Mode
3Operand FSets the speed command value of the interpolation command inOperand F

Initializing

When power is turned ON or when program execution is started in Start Mode 0 without executing END command, initialization is executed according to the default settings of the parameters. Default setting parameter is maintained for each task.

GroupCommandDefault valueParameter No.
1ABL/INCABLP00M07 (M = 1-8)
2PASSMODE/ STOPMODEPASSMODEP00M08 (M = 1-8)
3Operand FF = 0P00M09 (M = 1-8)

Calling Sub-program

If a sub-program has been called using the GOSUB command, all modal data is inherited. Also, when the operation returns to the main program from sub-program, all modal data is inherited.

Parallel Branching

If parallel branching has been executed using the PARALLEL command, modal data for all the branches is inherited.

Modal data that has been changed during each branch will not affect other branches.

When branches join together again, the modal data of the leftmost branch is inherited to subsequent blocks.

END Command Execution

The execution of END command does not initialize modal data.

6-1-8 Nesting

Nesting levels for nest-able commands are as follows:

CommandMotion task
GOSUB5 layers
WHILE-WEND10 layers
FOR-NEXT10 layers
IF-ELSE-ENDIF10 layers

6-1-9 Unit for Time

The unit for time used for the following commands is [ms].

The minimum command unit is 1msec, however, the actual resolution is determined based on the system scan cycle (remainder to be omitted).

CommandTime
MOVETPositioning time
CAMCam execution time
DwellDwell time

6-1-10 Conditional Expression

Conditional expressions can be used for the following commands.

CommandFunction
WAITWait for Condition to be Met
STOPOPOptional End
IFConditional Branching
WHILERepeat While

Conditional expressions are shown in the following table. Immediate values or variables are the only the objects of comparison. If other data types are used, the program cannot be downloaded.

Conditional ExpressionFormat
Equal to(Immediate value or Variable) == (Immediate value or Variable)
Not equal to(Immediate value or Variable)<> (Immediate value or Variable)
Greater than(Immediate value or Variable)>(Immediate value or Variable)
Less than(Immediate value or Variable)<(Immediate value or Variable)
Equal to or greater than(Immediate value or Variable)> = (Immediate value or Variable
Equal to or less than(Immediate value or Variable)< = (Immediate value or Variable)

6-1-11 Arithmetic Command

Data type

Bit Type:

  • For the operation using data of bit type, every operand in the operation must be bit type.
  • Integer immediate value [0] and [1] are treated as the bit type.

Other Types:

  • Besides bit type, all other types observe the priority sequence described below. Real-number type > Long type > Word type
  • Operation is performed with the type of the highest priority, and the operation result is converted to the type on the left and stored.
  • Integer immediate value is treated as long type, and decimal immediate value is treated as real-number type.

B: Bit type, W: Word type, L: Long type, F: Real-number type, @: Indirect specification

Classifi-cationFunctionCommandNotation exampleOperandRangeImmediate valueVariable
Inte-gerDeci-mal pointR/WBWLF@
Simple ArithmeticAssign=#MW- = #MW-;1st Term---NoNoWriteYesYesYesYesNo
2nd TermWithin the operation numerical value rangeYesYesReadYesYesYesYesYes
Add+#MW- = #MW- + #MW-;1st Term---NoNoWriteNoYesYesYesNo
2nd TermWithin the operation numerical value rangeYesYesReadNoYesYesYesYes
3rd TermWithin the operation numerical value rangeYesYesReadNoYesYesYesYes
Subtract-#MW- = #MW- - #MW-;1st Term---NoNoWriteNoYesYesYesNo
2nd TermWithin the operation numerical value rangeYesYesReadNoYesYesYesYes
3rd TermWithin the operation numerical value rangeYesYesReadNoYesYesYesYes
Multiply×#MW- = #MW-* #MW-;1st Term---NoNoWriteNoYesYesYesNo
2nd TermWithin the operation numerical value rangeYesYesReadNoYesYesYesYes
3rd TermWithin the operation numerical value rangeYesYesReadNoYesYesYesYes
Divide/#MW- = #MW- / #MW-;1st Term---NoNoWriteNoYesYesYesNo
2nd TermWithin the operation numerical value rangeYesYesReadNoYesYesYesYes
3rd TermWithin the operation numerical value rangeYesYesReadNoYesYesYesYes
Quotient%#MW- = #MW-% #MW-;1st Term---NoNoWriteNoYesYesYesNo
2nd TermWithin the operation numerical value rangeYesYesReadNoYesYesYesYes
3rd TermWithin the operation numerical value rangeYesYesReadNoYesYesYesYes
Exponent^#MW- = #MW- ^ #MW-;1st Term---NoNoWriteNoYesYesYesNo
2nd TermWithin the operation numerical value rangeYesYesReadNoYesYesYesYes
3rd TermWithin the operation numerical value rangeYesYesReadNoYesYesYesYes
Logic oper-ationsOR (Logical OR)|#MW- = #MW- | #MW;-1st Term---NoNoWriteYesYesYesNoNo
2nd TermLONGMIN- LONGMAXYesInte-gerReadYesYesYesNoYes
3rd TermLONGMIN- LONGMAXYesInte-gerReadYesYesYesNoYes
XOR (Logical exclusive OR)~#MW- = #MW- ~ #MW;-1st Term---NoNoWriteNoYesYesNoNo
2nd TermLONGMIN- LONGMAXYesInte-gerReadNoYesYesNoYes
3rd TermLONGMIN- LONGMAXYesInte-gerReadNoYesYesNoYes
AND (Logical AND)&#MW- = #MW- & #MW;-1st Term---NoNoWriteYesYesYesNoNo
2nd TermLONGMIN- LONGMAXYesInte-gerReadYesYesYesNoYes
3rd TermLONGMIN- LONGMAXYesInte-gerReadYesYesYesNoYes
NOT (Reverse)!#MW- = !#MW;-1st Term---NoNoWriteYesYesYesNoNo
2nd TermLONGMIN- LONGMAXYesInte-gerReadYesYesYesNoYes
FunctionsAbsolute valueABS#MF- = ABS#MF;-;1st Term---NoNoWriteNoYesYesYesNo
2nd TermWithin the operation numerical value rangeYesYesReadNoYesYesYesYes
SineSIN#MF- = SIN#MF;-;1st Term---NoNoWriteNoYesNoYesNo
2nd TermWithin the operation numerical value rangeYesYesReadNoYesNoYesNo
CosineCOS#MF- = COS#MF;-;1st Term---NoNoWriteNoYesNoYesNo
2nd TermWithin the operation numerical value rangeYesYesReadNoYesNoYesNo
TangentTAN#MF- = TAN#MF;-;1st Term---NoNoWriteNoNoNoYesNo
2nd TermWithin the operation numerical value rangeYesYesReadNoNoNoYesNo
ARC SineASIN#MF- = ASIN#MF;-;1st Term---NoNoWriteNoNoNoYesNo
2nd TermWithin the operation numerical value rangeYesYesReadNoNoNoYesNo
ARC CosineACOS#MF- = ACOS#MF;-;1st Term---NoNoWriteNoNoNoYesNo
2nd TermWithin the operation numerical value rangeYesYesReadNoNoNoYesNo
ARC Tan- gentATAN#MF- = ATAN#MF;-;1st Term---NoNoWriteNoYesNoYesNo
2nd TermWithin the operation numerical value rangeYesYesReadNoYesNoYesNo
Square rootSQR#MF- = SQR#MF;-;1st Term---NoNoWriteNoYesNoYesNo
2nd TermWithin the operation numerical value rangeYesYesReadNoYesNoYesNo
Normal logarithmEXP#MF- = EXP#MF;-;1st Term---NoNoWriteNoYesNoYesNo
2nd TermWithin the operation numerical value rangeYesYesReadNoYesNoYesNo
Natural logarithmLOG#MF- = LOG#MF;-;1st Term---NoNoWriteNoYesNoYesNo
2nd TermWithin the operation numerical value rangeYesYesReadNoYesNoYesNo
FunctionsDecimalFRAC#MF- = FRAC#MF-;1st Term---NoNoWriteNoNoNoYesNo
2nd TermWithin the opera- tion numerical value rangeYesYesReadNoNoNoYesNo
SignSGN#MF- = SGN#MF-;1st Term---NoNoWriteNoYesYesYesNo
2nd TermWithin the opera- tion numerical value rangeYesYesReadNoYesYesYesYes
Bit opera-tionsSpecified bit ONSET#MB- = SET#MB- & #MB-;1st Term---NoNoWriteYesNoNoNoNo
Logic operation expres-sion---------------------------
Specified bit OFFRESET#MB- = RESET#MB- & #MB-;1st Term---NoNoWriteYesNoNoNoNo
Logic operation expres-sion---------------------------
Shift rightSFTRSFTR #MB- N;-Object to be shifted---NoNoWriteNoYesYesNoNo
Shift amountObject to be shifted is the word type:1 to 16 Object to be shifted is the long type:1 to 32YesNoReadNoYesNoNoNo
Shift leftSFTLSFTL #MB- N;-Object to be shifted---NoNoWriteNoYesYesNoNo
Shift amountObject to be shifted is the word type:1 to 16 Object to be shifted is the long type:1 to 32YesNoReadNoYesNoNoNo
Data OperationsBCD→BINBIN#MW- = BIN#MW;-;1st Term---NoNoWriteNoYesYesNoNo
2nd TermIn BCD format, Word type: 0 to 9999 Long type: 0 to 99999999YesInte-gerReadNoYesYesNoYes
BIN→BCDBCD#MW- = BCD#MW;-;1st Term---NoNoWriteNoYesYesNoNo
2nd TermIn BCD format, Word type: 0 to 9999 Long type: 0 to 99999999YesInte-gerReadNoYesYesNoYes
Block transferXFERXFER #MW- #MW- N-Begin-ning of transfer source---NoNoReadNoYesNoNoNo
Begin-ning of transfer destina-tion---NoNoWriteNoYesNoNoNo
No. of transfersBoth transfer source and desti-nation are, Sys-tem variable: 1 to (2048 - address) Global general variable: 1 to (8192 - address) Input variable: 1 to (4096 - address) Output variable: 1 to (4096 - address) Task variable: 1 to (128 - address)YesNoReadNoYesNoNoNo
ClearCLEARCLEAR #MW- N-Begin-ning of clear---NoNoWriteNoYesNoNoNo
No. of clearsGlobal general variable: 1 to (8192 - address) Input variable: 1 to (4096 - address) Output variable: 1 to (4096 - address) Tasks variable: 1 to (128 - address)YesNoReadNoYesNoNo

6-1-12 Data Used for Operand

Immediate Value

There are two kinds of immediate values; integer and decimal number.

The ranges for each immediate value are listed below.

  • Integer: Value without decimal point

Minimum value: -2147483648

Maximum value: 2147483647

  • Decimal number: Value with decimal point

Minimum value: -2147483648.

Maximum value: 2147483647.

Maximum number of decimals: 30 digits

Maximum number of digits excluding 0: 10 digits

(Negative value: 2147483648, Positive value: 2147483647)

The decimal number with the greatest No. decimals is shown in the following table.

Number of digits after the decimal point123456789101112131415161718192021222324252627282930
Negative value-0-000000000000000000002147483648
Positive value+0-00000000000000000002147483647
Maximum number of digits excluding 0←--------10 digits--------→
Maximum number of digits after the decimal point←--------30 digits--------→

Variable

Depending on the operand, variables can be specified instead of immediate values.

Refer to 6-3 Command Details (page 298).

6-1-13 Virtual Axis

The following table describes the differences between virtual axes and real axes.

Function itemSpecifications
Device typeVirtual axis = Virtual Servo axis only.
Servo lock/unlockRequired as well as the real axis.
ABS origin settingIgnored
Axis machine lockIgnored
IORD/IOWR of Servo parametersPARAM commandAlarm [2019h: Parameter setting error] will occur and the program is stopped.
IORD/IOWRError completion
the Support ToolRequired as well as the real axis, Only writing into MC Unit possible.
Origin searchSame operation as machine origin return. (Positioning to the origin)
Hardware OTDoes not operate because external input cannot be input.
DATUM commandSame operation as execution of the following programs. (Same as when origin search is performed by control bits.)ORIGIN; Machine coordinate system selectABL MOVE [Jxx]0; Positioning to machine coordinate system origin.
MOVEI commandAlarm [3015h: Axis classification error] occurs and the program is stopped.
Master axis of SYNC commandAlarm [3015h: Axis classification error] occurs and the program is stopped.
Link option requiring latchAlarm [3015h: Axis classification error] occurs and the program is stopped.
SPEED/SPEEDR command (Speed control)Command is enabled as well as for the real axis.
TORQUE/TORQUER command (Torque control)Alarm [3015h: Axis classification error] occurs and the program is stopped.
LATCH commandAlarm [3015h: Axis classification error] occurs and the program is stopped.
Other operation commands (e.g., MOVE and MOVEL)Other operation commands can be specified in the same way as for real axes.
Establishing machine coordinate system originThe position where power is turned ON is determined as machine coordinate system origin. (Operates in [Origin at power ON] mode.) It is possible to determine a user-specified position as an origin using the axis control bit [Forced origin].
Present value monitorPresent coordinate system FB position= Present coordinate system command position
Machine coordinate system FB position= Machine coordinate system command position
Present coordinate system command positionSame as for the real axis
Machine coordinate system command positionSame as for the real axis
Counter latch positionAlways 0
Feedback speed 1= Command speed 1
Feedback speed 2Always 0
Command speed 1Same as for the real axis
Command speed 2Always 0
ErrorAlways 0
Torque command valueAlways 0
Workpiece origin shift amountSame as for the real axis
Origin marginAlways 0
No. of multi-turnsSame as for the real axis
MECHATROLINK servo statusAlways 0
Absolute position setting valueAlways 0
Error on the communication path (Synchronous communication error, etc.)Does not occur.

6-1-14 I/O Axis

The following table describes the differences between axes allocated as I/O and as servo.

Function itemSpecifications
Axis control bitsAll disabled except for "bit 00: Axis alarm reset."
Axis status bitsbitNameON/OFF status
00Axis alarmAs usual, turns ON/OFF.
01Machine originAlways OFF.
02BusyAlways OFF.
03Servo lockAlways OFF.
04No originAlways OFF.
05Axis startedAlways OFF.
06Positioning completedAlways OFF.
07Positioning completed (No.2)Always OFF.
08Error counter warningAlways OFF.
09Axis machine lock statusAlways OFF.
10Counter latch completedAlways OFF.
11M-10 WarningIntelligent I/O turns ON/OFF, as usual.
12ReservedAlways OFF.
13Command disabled/enabledAs usual, turns ON/OFF.
14Axis not used/usedAlways OFF.
15In manual/automatic modeAlways OFF.
Present value monitorAlways 0
Function itemSpecifications
PROG axis declarationIf specified, the alarm [201Ah: Axis declaration error] will occur.
Usage in each commandIf axis No. is specified on axes other than the synchronous master axis, the alarm [2007h: Axis reservation disable] will occur.
IORD/IOWR of Servo parametersPARAM commandAlarm [2019h: Parameter setting error] will occur and the program is stopped.
IORD/IOWR commandError completion
the Support ToolSame as for axes without allocation, only reading from the MC Unit can be performed normally.
Present value preset with IOWRError completion
Error on the communication pathOccurs.

6-1-15 Parameters having Influence on Axis Operation

The list below shows the parameters that affect the axis operation executed by program.

SectionNo.Name
UnitP00002No. of Parallel Branches
UnitP00004Unit Function Select
M taskP00M01Maximum Interpolation Feed rate
M taskP00M02Interpolation Feed Acceleration Time
M taskP00M03Interpolation Feed Deceleration Time
M taskP00M04Interpolation S-curve filter enable
M taskP00M05Interpolation S-curve Time Constant
M taskP00M06Pass Mode Select
M taskP00M07Modal Data Initial Value 1 Move Command Value Select
M taskP00M08Modal Data Initial Value 2 Operating Mode Select
M taskP00M09Modal Data Initial Value 3 Interpolation Feed rate
M taskP00M10Interpolation Speed Multiplier with Decimal Point
Axis allocationP1AA01Physical axis setting
Axis speedP2AA01Maximum Rapid Feed rate
Axis speedP2AA03Rapid Feed rate
Axis speedP2AA05Rapid Feed Acceleration Time
Axis speedP2AA06Rapid Feed Deceleration Time
Axis speedP2AA09Rapid feed S-curve filter enable.
Axis speedP2AA11Rapid feed S-curve time constant
Axis positionP3AA07No.2 In-position Range
Axis positionP3AA08Feed Forward Gain Enabled/Disabled
Axis originP4AA01Origin Search Method
Axis originP4AA02Origin Search Start Direction
Axis originP4AA03Phase-Z (C) Detection Direction
Axis originP4AA04Origin Deceleration Method
Axis originP4AA06Origin Determine Signal
Axis originP4AA07Origin Search Feed rate
Axis originP4AA08Origin Search Approach Speed
Axis originP4AA09Origin Search Creep Speed
Axis originP4AA11Origin Search Final Travel Distance
Axis originP5AA01Units
Axis machineP5AA02Position Command Decimal Point Position
Axis machineP5AA03Speed Multiplier with Decimal Point
Axis machineP5AA04Command unit/One Machine Rotation
Axis machineP5AA05Gear Ratio 1 (Motor Rotation Speed)
Axis machineP5AA06Gear Ratio 2 (Machine Rotation Speed)
Axis machineP5AA07Axis Feed Mode
Axis machineP5AA08External Input Signal Select 1
Axis machineP5AA09External Input Signal Select 2

6-1-16 Coordinate System

There are two types of coordinate systems.

Machine coordinate system: Coordinate system determined by the origin search and origin setting. It is fixed for the system.

Workpiece coordinate system: Coordinate system determined by adding the offset to the machine coordinate system. It is unique to the work and there are 3 for each axis

OMRON CJ1W-MCH71 - 6-1-16 Coordinate System - 1

Basics

  • Offset for the workpiece coordinate system is set when the OFFPOS command is executed, and it is switched to the workpiece coordinate system by executing WORK command.
  • Offset value (offset amount set by OFFPOS command) is the data for each axis. It has nothing to do with either motion programs or motion tasks.
  • The coordinate system select (coordinate system type and No. that have been set by ORIGIN/ WORK command) is the data for each motion program. It has nothing to do with axes or motion tasks.
Starting a New Program OperationIf a new main program is started (the first execution after power is turned ON, or execution in the Start Mode = 0 or 3), the machine coordinate system is always used. Although the offset value is inherited from the previous program, the coordinate system select is not inherited.
Calling Sub-ProgramWhen a sub-program is called, the offset value and coordinate system select are inherited to the sub-program.
When returning to the main program from the sub-program, all the modal data is inherited.
Parallel BranchingIf parallel branching has been executed using the PARALLEL command, the offset value and coordinate system select for all the branches are inherited. The offset value and coordinate system select that have been changed in a branch will affect other branches as well.
Executing End CommandIf a program is ended using the END command, neither the offset value nor coordinate system select are initialized.

6-2 Command Overview

6-2-1 Command List

There are two types of commands for the MC Unit.

  • Single Execution Command:

In a motion task, two or more commands of this type cannot be executed together in one scan. It can be executed simultaneously, however, with multiple execution commands or with another single execution command in another branch of parallel branches.

Commands related to movement are usually of this type.

  • Multiple Execution Command:

In a motion task, several commands of this type can be executed together in one scan. It can be executed simultaneously with a single execution command or other multiple execution commands in the same scan.

Commands related to operation (arithmetic, logical, etc.) are usually of this type.

The meanings of the symbols in the motion task column are as follows:

SymbolMeaning
SSingle Execution Command
MMultiple Execution Command
xNot executed as an independent command (no type).

Commands that can be used in the motion program are listed below:

Classifica- tionCommand/func- tion nameCodeApplicable taskSummaryCompletion condi- tion (Proceed to next block)
Motion
Axis move- mentPOSITIONINGMOVE@ SMoves each axis independently.In-position
LINEAR INTERPO- LATIONMOVEL@ SMoves axes with linear interpola- tion.Travel distance out- put completed.
CIRCULAR INTER- POLATIONMOVEC@ SMoves axes with circular interpola- tion.Travel distance out- put completed.
ORIGIN SEARCHDATUM@ SFinds machine origin according to input signals.In-position
INTERRUPT FEED- INGMOVEI@ SChanges target position by means of input signals.In-position
TIME-SPECIFIED POSITIONINGMOVET@ SPerforms positioning with speci- fied time period.In-position
TRVERSEMOVETRAV@ SExecutes winding (traverse) function of winder.Travel distance out- put completed.
ELECTRONIC CAM, SINGLE AXISCAM@ SExecutes cam operation accord- ing to cam table.In-position
Axis opera- tionLINK OPERATIONMOVELINK@ SSynchronizes the slave to the master based on travel distance of the master in acceleration and deceleration.Depends on the link option.
ELECTRONIC CAM, SYNCHRONOUSCAMBOX@ SExecutes cam operation accord- ing to cam table and master axis.Depends on the link option.
ELECTRONIC SHAFTCONNECT@ SSynchronizes the slave to the master in a fixed ratio to the master axis.Synchronization established.
TRAILING SYN- CHRONIZATIONSYNC@ SExecutes trailing + synchronizes the slave to the master axis.Synchronization established.
TRAVEL DISTANCE SUPERIMPOSEADDAX@ SSuperimposes travel distance between axes.Synchronization established.
SPEED CONTROLSPEED@ SOutputs speed commands.Specified speed reached.
TORQUE CON- TROLTORQUE@ SOutputs torque commands.Specified torque reached.
Axis opera- tion cancelSYNCHRONIZING ENDSYNCR@ SCancels MOVELINK, CAMBOX, CONNECT, or SYNC.In-position
TRAVEL AMOUNT SUPERIMPOSE CANCELADDAXR@ SCancels travel distance superim- pose.Synchronization can- celled.
SPEED CONTROL CANCELSPEEDDR@ SCancels speed controlSwitch to position control mode com- pleted
TORQUE CON- TROL CANCELTORQUER@ SCancels torque controlSwitch to position control mode com- pleted
ClassificationCommand/func-tion nameCodeApplicable taskSummaryCompletion condi-tion (Proceed to next block)
Motion
SettingsTARGET POSITION CHANGEMOVEMODI@ MChanges target position of an operating axis.Target position change completed.
ABSOLUTE SPECI-FICATIONABL@ MTreats coordinate values as absolute values.Coordinate mode changed.
INIncrementAL SPECIFICATIONINC@ MTreats coordinate values as incremental values.Coordinate mode changed.
CHANGE PARAMETER VALUEPARAM@ STemporarily changes parameter values.Parameter change completed.
PASS MODEPASSMODE@ MConnects interpolation blocks smoothly.Mode change com-pleted.
STOP MODESTOPMODE@ MWaits for in-position in each interpolation block.Mode change com-pleted.
MACHINE COORDI-NATE SYSTEM SELECTORIGIN@ SSets coordinate system to machine coordinate system.Coordinate system change completed.
WORKPIECE COORDINATE SYS-TEM SELECTWORK@ SSets coordinate system to work-piece coordinate system.Coordinate system change completed.
WORKPIECE COORDINATE SYS-TEM OFFSET CHANGEOFFPOS@ MChanges workpiece coordinate system offset values.Offset value change completed.
PRESENT POSI-TION LATCHLATCH@ SLatches the present position.Latch request recep-tion completed.
SINGLE BLOCK IgnOREDNSTOP@ XIgnores single block mode.---
Classifica-tionCommand/func-tion nameCodeApplicable taskSummaryCompletion condi-tion (Proceed to next block)
Motion
ControlPROGRAM STARTPROG@ MIndicates the start of program.Program start pro-cessing completed.
PROGRAM ENDEND@ SIndicates the end of program.Program end pro-cessing completed.
SUB-PROGRAM CALLGOSUB@ SCalls sub-programs.Sub-program call completed.
SUB-PROGRAM ENDRETURN@ SEnds sub-program, and returns to point where sub-program was called.Return completed.
DWELL TIMEDWELL@ SWaits for specified period of time, and then executes next block.Dwell time elapsed.
WAIT FOR CONDI-TION TO BE METWAIT@ MWaits for condition to be satisfied and executes the next block.Condition satisfied.
OPTIONAL ENDSTOPOP@ SAborts next block when condition is satisfied.Condition setting completed.
CONDITIONAL BRANCHINGIF@ MBranches depending on condi-tions.Condition check completed.
ELS@ M---
ENDIF@ MNo block being exe-cuted.
REPEAT WHILEWHILE@ MRepeats until a given condition is satisfied.Condition check completed.
WEND@ MNo block being exe-cuted.
REPEAT FORFOR@ MRepeats for a given number of times (variable, constant, or immediate value).Condition check completed.
NEXT@ MNo block being exe-cuted.
PARALLEL EXECU-TIONPARALLEL@ SExecutes specified sections in parallel.---
JOINT@ SNo block being exe-cuted (in branch).
JWAIT@ SAll JOINT execution completed.
SELECTIVE EXECUTIONSWITCH@ MExecutes specified sections selectively depending on condi-tions.Condition check completed.
CASE@ M---
BREAK@ MNo block being exe-cuted.
DEFAULT@ M---
SEND@ MNo block being exe-cuted.
NO OPERATION(SINGLE)NOPS@ SNo operation (as a single execu-tion command).---
NO OPERATION(MULTIPLE)NOPM@ MNo operation (as a multiple execu-tion command).---
ClassificationCommand/func-tion nameCodeApplicable taskSummaryCompletion condi-tion (Proceed to next block)
Motion
Simple arithmetic operationsASSIGN=@ MAssigns values to variables.Result assigned.
ADD+@ xPerforms addition.Result assigned.
SUBTRACT-@ xPerforms subtraction.Result assigned.
MULTIPLY*@ xPerforms multiplicationResult assigned.
DIVIDE/@ xPerforms division.Result assigned.
REMAINDER%@ xFinds the remainder of a division operation.Result assigned.
EXPONENT^@ xApplies exponents.Result assigned.
Logic operationsOR (LOGICAL OR)|@ xCalculates logical OR.Result assigned.
XOR (LOGICAL EXCLUSIVE OR)~@ xCalculates logical exclusive OR.Result assigned.
AND (LOGICAL AND)&@ xCalculates logical AND.Result assigned.
NOT (REVERSE)!@ xReverses bits.Result assigned.
FunctionsABSOLUTE VALUEABS@ xFinds the absolute value.Result assigned.
SINESIN@ xFinds the sine.Result assigned.
COSINECOS@ xFinds the cosine.Result assigned.
TANGENTTAN@ xFinds the tangent.Result assigned.
ARC SINEASIN@ xFinds the arc sine.Result assigned.
ARC COSINEACOS@ xFinds the arc cosine.Result assigned.
ARC TANGENTATAN@ xFinds the arc tangent.Result assigned.
SQUARE ROOTSQR@ xFinds the square root.Result assigned.
EXPONENTEXP@ xFinds the exponent.Result assigned.
NATURAL LOGA-RITHMLOG@ xFinds the natural logarithm.Result assigned.
DECIMALFRAC@ xFinds the decimal portion.Result assigned.
SIGNSGN@ xReturns 1 for 0 or greater, and -1 for negative values.Result assigned.
Bit operationsSPECIFIED BIT ONSET@ xTurns ON specified bits.Bit operation com-pleted.
SPECIFIED BIT OFFRESET@ xTurns OFF specified bits.Bit operation com-pleted.
SHIFT RIGHTSFTR@ MShifts to right for specified amount.Shift completed.
SHIFT LEFTSFTL@ MShifts to left for specified amount.Shift completed.
Data operationsBCD-TO-BINBIN@ xConverts BCD data to BIN data.Result assigned.
BIN-TO-BCDBCD@ xConverts BIN data to BCD data.Result assigned.
BLOCK TRANSFERXFER@ MTransfers data block.All data transferred.
CLEARCLEAR@ MClears data block to zero.All data cleared.

6-2-2 Command Format

The following notation is used for the format.

SymbolMeaning
<>Indicates the content, data
{ }Optional operand, omissionle
---N---The operand that can be specified up to the number shown.
-Required en quad
Classifica-tionNameFormat
Axis move-mentPositioningMOVE_<!--axis name>]<position command value>---8----
Linear interpolationMOVEL_<!--axis name>]<position command value>---8----{F<Interpolation feed rate>};
Circular interpolationCenter position specification:MOVEC_Q<rotation direction><horizontal axis name><horizontal axis position command value><vertical axis name><vertical axis position command value>I<horizontal axis center command>J<vertical axis center command>{[linear axis name]<linear axis command value}{L<number of turns}{F<interpolation feed rate>};Radius specification:MOVEC_Q<rotation direction><horizontal axis name><horizontal axis position command value><vertical axis name><vertical axis position command value>R<radius>{[linear axis name]><linear axis command value>} {F<interpolation feed rate>};Origin search{[linear axis name]><linear axis command value>} {F<interpolation feed rate>};
Interrupt feedingDATUM_<!--axis name>]<offset value>---8----;
Time-specified posi-tioningMOVEI_<!--axis name>]<position command value>D<fixed feed amount>V<speed after signal input>;
TraverseMOVET_<!--axis name>]<position command value>---8----T<positioning time>;
Electronic cam, sin-gle axisMOVETRAV_Q<operating mode><winding axis name><winding axis rotations>[traverse axis name]<traverse axis winding width>L<number of layers>[rotations at starting edge] {J<rotations at ending edge}> {F<winding axis speed>};
CAM_<!--axis name><Cam table number>K<displacement data multiplier>T<execu-tion time> {S<starting data number}> {E<ending data number>};
Axis oper-a-tionLink operationMOVELINK_<!--slave axis name><slave axis travel distance><master axis name><master axis travel distance in acceleration>D<master axis travel distance in deceleration>Q<link option> {l<link start position} {B<master axis classification>};
Electronic cam, syn-chronousCAMBOX_<!--slave axis name><Cam table number><master axis name><link dis-tance>K<displacement data multiplier> {S<starting data number}> {E<ending data number}> {Q<link option}> {l<link start position} {B<master axis classification>};
Electronic shaftCONNECT_<!--slave axis name><gear ratio numerator>---8----<master axis name><gear ratio denominator> {B<master axis classification>};
Trailing synchroniza-tionSYNC_<!--slave axis name><catch-up position offset><master axis name><marker sensor ON position> {B<master axis classification>};
Travel distance superimposeADDAX_<!--slave axis name><master axis name> {B<master axis classification>};
Speed controlSPEED_<!--axis name><speed command value>---8----T<speed change rate>;
Torque controlTORQUE_<!--axis name><torque command value>---8----T<torque change rate>;
Axis oper-a-tion cancelSynchronization can-celSYNCR_<!--slave axis name><travel distance for deceleration stop>---8----;
Travel distance superimpose cancelADDAXR_<!--slave axis name>---8----);
Speed control cancelSPEEDR_<!--axis name>---8---- T<speed change rate>;
Torque control can-celTORQUER_<!--axis name>---8---- T<torque change rate>;
ClassificationNameFormat
SettingTarget position changeMOVEMODI_[<axis name>]<changed target position>---8----;
Absolute specifica-tionABL; ABL_<other command>;
Incremental specifi-cationINC; INC_<other command>;
Parameter value set-tingPARAM_P<parameter number> = <parameter setting value>; PARAM [<axis name>]<servo parameter number> = <parameter setting value>;
Pass ModePASSMODE;
Stop ModeSTOPMODE;
Machine coordinate system selectORIGIN;
Workpiece coordi-nate system selectWORK_C<workpiece coordinate system number>;
Workpiece coordi-nate system offset changeOFFPOS_C<workpiece coordinate system number>[<axis name>] <workpiece coordinate system offset amount>---8----;
Present position latchLATCH_[<axis name>]<latch position storing variable>{l<latch check start position}{J<latch check end position.};
Single block ignoredNSTOP_<other command>;
ControlProgram startPROG_P<program number> Q<axis declaration>;
Program endEND;
Sub-program callGOSUB_P<sub><sub>sub-program number</sub>;<br>
Sub-program EndRETURN;
Dwell timeDWELL_T<dwell time>;
Wait for condition to be metWAIT<conditional expression>;
Optional endSTOPOP<conditional expression>;
Conditional branchingIF<conditional expression>;
<processing 1>
{ELSE;
<processing 2>}
ENDIF;
Repeat WHILEWHILE<conditional expression>;
<processing>
WEND;
Repeat FORFOR_W<work register for repeat count> L<repeat end value>S<number of increment steps>;
<processing>
NEXT;
Parallel executionPARALLEL_N<number of branches>;
<processing 1>
{JOINT;
---
<processing N>}
JWAIT;
Selective executionSWITCH<conditional variable>;
{CASE<conditional constant>;
<processing 1>
BREAK;
---}
{DEFAULT;}
<processing N>
SEND;
No operation (single)NOPS;
No operation (multi-ple)NOPM;
Simple arithmetic operationAssign<variable> = <numerical value>;
Add<variable> = <numerical value>+</numerical value>;
Subtract<variable> = <numerical value>--<numerical value>;
Multiply<variable> = <numerical value>*<numerical value>;
Divide<variable> = <numerical value>/<numerical value>;
Reminder<variable> = <numerical value%<numerical value>;
Exponent<variable> = <numerical value^<numerical value>;
Logic operationOR (logical OR)<variable> = <numerical value| <numerical value>;
XOR (logical exclusive OR)<variable> = <numerical value> ~ < numerical value>;
AND (logical AND)<variable> = <numerical value> & <numerical value>;
NOT (reverse)<variable> = <numerical value> != <numerical value>;
Classifica- tionNameFormat
FunctionsAbsolute value<variable> = ABS<numerical value>;
Sine<variable> = SIN<numerical value>;
Cosine<variable> = COS<numerical value>;
Tangent<variable> = TAN<numerical value>;
ARC Sine<variable> = ASINE<numerical value>;
ARC Cosine<variable> = ACOS<numerical value>;
ARC Tangent<variable> = ATAN<numerical value>;
Square root<variable> = SQR<numerical value>;
Exponent<variable> = EXP<numerical value>;
Natural logarithm<variable> = LOG<numerical value>;
Decimal<variable> = FRAC<numerical value>;
Sign<variable> = SGN<numerical value>;
Bit oper- tionsSpecified bit ON<variable> = SET<logic operation expression>;
Specified bit OFF<variable> = RESET<logic operation expression>;
Shift rightSFTR<shift object variable>_N<shift amount>;
Shift leftSFTL<shift object variable>_N<shift amount>;
Data oper- tionsBCD→BIN<variable> = BIN<numerical value>;
BIN→BCD<variable> = BCD<numerical value>;
Block transferXFER<transfer source first data>_<transfer destination first data>_N<number of transferred data>;
ClearCLEAR<first cleared data>_N<number of cleared data>;

6-2-3 Command List (Operand List)

The following table describes the operands that are used in commands.

OperandCommand: Meaning of the valueRemark
Axis nameMOVE: Position command valueThese operands require distinction of axis names.
MOVEL: Position command value
MOVEC: Position command value
DATUM: Origin offset
MOVEI: Position command value
MOVET: Position command value
MOVETRAV: Winding axis rotations
MOVETRAV: Traverse axis winding width
MOVELINK: Slave axis travel distance
MOVELINK: Master axis travel distance
CAM: Cam table number
CAMBOX: Cam table number
CAMBOX: Master axis linking distance
CONNECT: Gear ratio numerator
CONNECT: Gear ratio denominator
SYNCR: Travel distance for deceleration stop
ADDAX: <No numerical value specified>
SYNC: Catch-up position offset
SYNC: Marker sensor ON position
SPEED: Specified speed
SPEEDR: <No numerical value specified>
TORQUE: Specified torque
TORQUER: <No numerical value specified>
MOVEMODI: Changed target position
PARAM: Servo parameter number
OFFPOS: Workpiece coordinate system offset amount
LATCH: Latch position storing variable
AMOVELINK: Master axis travel distance at accelerationTravel distance at acceleration.
BMOVELINK: Master axis classificationIndicates the master axis classification in syn-chronization.
CAMBOX: Master axis classification
CONNECT: Master axis classification
SYNC: Master axis classification
ADDAX: Master axis classification
CWORK: Workpiece coordinate system numberIndicates coordinate system number.
OFFPOS: Workpiece coordinate system number
DMOVEL: Fixed feed amountIndicates the travel distance for deceleration and incremental travel distance.
MOVELINK: Master axis travel distance at deceleration
ECAM: Ending data numberIndicates the ending data number.
CAMBOX: Ending data number
FMOVEL: Interpolation feed rateIndicates interpolation feed rate.
MOVEC: Interpolation feed rate
MOVETRAV: Winding axis speed
IMOVEC: Horizontal axis center positionIndicates the first auxiliary position command.
MOVETRAV: Rotations at starting edge
MOVELINK: Link start position
CAMBOX: Link start position
LATCH: Latch check start position
JMOVEC: Vertical axis center positionIndicates the second auxiliary position com-mand.
MOVETRAV: Rotations at ending edge
LATCH: Latch check end position
KCAM: Displacement data multiplierIndicates coefficient like multiplier.
CAMBOX: Displacement data multiplier
LMOVEC: Number of turnsIndicates the number of repetitions.
MOVETRAV: Number of layers
FOR: Repeat end value
NPARALLEL: Number of branchesIndicates numerical values.
SFTR: Shift amount
SFTL: Shift amount
XFER: Number of transferred data
CLEAR: Number of cleared data
PPARAM: Parameter number = parameter setting valueIndicates the parameter number and program number.
PROG: Program number
GOSUB: Sub-program number
QMOVEC: Rotation direction specificationIndicates option items.
MOVETRAV: Operating mode
MOVELINK: Link option
CAMBOX: Link option
PROG: Axis declaration
RMOVEC: RadiusIndicates radius.
SCAM: Starting data numberIndicates the start number and number of steps.
CAMBOX: Starting data number
FOR: Number of increment steps
TMOVET: Positioning timeIndicates various times.
CAM: Execution time
SPEED: Speed change rate
SPEEDR: Speed change rate
TORQUE: Torque change rate
TORQUER: Torque change rate
DWELL: Dwell time
VMOVEI: Speed after signal inputIndicates axis feed rate.
WFOR: Work register for repeat countIndicates work register.
ExpressionWAIT: Conditional expressionIndicates expressions
STOPOP: Conditional expression
IF: Conditional expression
WHILE: Conditional expression
Variables, ConstantsSWITCH: Conditional variableEach variable and constant have specific mean-ing.
CASE: Conditional constant
Various operational commands: Various

6-2-4 Program Number and Axis Declaration

The program number and axes to be used in the program are specified in PROG command (Program Start). Refer to Program Start (PROG) on page 347.

Format

PROG_P Q ;

Program Number

The table below shows the relations between the program number and main program/sub-program for motion tasks.

Program No.Program
0000-0499Main program for motion tasks
0500-0999Sub-program for motion tasks

Axis Declaration

In "Axis Declaration", axes to be used in the program are specified with the bit train (32-bit) in hexadecimal corresponding to the physical axis numbers.

Program Example

When using the physical axes (numbers J02, J03, J04, J12, and J14) in the motion task main program "0000", the bit train for the axes to be used will be as shown below:

OMRON CJ1W-MCH71 - Program Example - 1

Therefore, in the PROG command, the following description is used: PROG P000 Q0000280E;

6-2-5 Default Mode and Coordinate System

Various modes and coordinate systems can be used when executing commands.

The following table shows the default settings for these.

Coordinate systemGeneral description
Coordinate systemMachine coordinate systemPositioning is performed on the reference (machine) coordinate system (Default setting)
Workpiece coordinate systemPositioning is performed on the workpiece coordinate system.
Travel distance specificationAbsolute specificationPositioning is performed with absolute positions. (Default setting)
Incremental specificationPositioning is performed with relative positions.
Operating modeStop ModeFor interpolation operations, the next operation is performed only after positioning is completed. (Default setting)
Pass ModeFor interpolation operations, the next operation is performed without waiting for positioning to be completed.

6-3 Command Details

6-3-1 Expression in This Section

This section provides detailed descriptions of the commands. Command formats, operands and application are described and programming examples are provided.

OMRON CJ1W-MCH71 - 6-3-1 Expression in This Section - 1

The following notation is used for the format.

NoteDescription
<>Indicates the content, data
{ }Optional operand, omissionle
---N---The operand that can be specified up to the number shown.
_Required en quad

6-3-2 Axis Movement

This section describes the details of each command.

Positioning (MOVE)

Positioning is performed with PTP control on up to eight axes simultaneously at rapid feed rate.

Command type

Single execution command

Format

MOVE_[] ---8---;

Ex: MOVE_[J01]100.01 [J02]-100.02;

Operand

Position command value

Axis name: 01 to J32

OperandSetting rangeDecimalVariable specificationINC/ABL influence
BitWordLong wordReal numberIndirect specification
Position command value-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 2.)YesYes

Note

(1) Word data is extended to long word data with a sign in the MC Unit.
(2) The actual value is determined by the setting value of the parameter [P5AA02: Position command decimal point position].

Description

  • The MOVE command executes positioning at rapid feed rate specified in the parameter [P2AA03: Rapid feed rate] to the position specified with the position command value.
  • If multiple axes are specified, all axes start moving simultaneously. The speed and travel distance of each axis determines completion of the movement.
  • MOVE command execution will be completed when positioning for all the specified axes is completed (in-position).
  • During the command execution, the command code "0001h" is output to the system variable "Command execution status" (SW0228 for Axis 1). (For details of command codes, see 4-5 System Variables Command Code in Command Execution Status on page 158.)

OMRON CJ1W-MCH71 - Description - 1

Linear Interpolation (MOVEL)

Positioning is performed on up to eight axes with linear interpolation at the specified interpolation feed rate.

Command type

Single execution command

Format

MOVEL_[] ---8--- {F};

Ex: MOVEL_[J01]100.01 [J02]-100.02 F10000.25;

Operand

Position command value

Axis name: J01 to J32

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
Position command value-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 2.)YesYes
Interpolation feed rate1 to 2147483647 (See note 3.)YesNoYes (See note 1.)YesYes (See note 4.)YesNo

Note

(1) Word data is extended to long word data with a sign in the MC Unit.
(2) The actual value is determined by the setting value of the parameter [P5AA02: Position command decimal point position].
(3) The maximum speed in actual operations will be limited by the maximum feed rate of the interpolation or axis.
(4) The actual value is determined by the setting value of the parameter [P00M10: Interpolation feed decimal point position].

Description

  • The MOVEL command executes linear interpolation at the specified interpolation feed rate to the position specified with the position command value.
  • The interpolation feed rate indicates the combined speed of all the specified axes.
  • The MOVEL command execution will be completed when the travel distance command output for all the specified axes is completed (or No.2 in-position completion).
  • During the command execution, the command code "0002h" is output to the system variable "Command execution status" (SW0228 for Axis 1). (For details of command codes, see 4-5 System Variables Command Code in Command Execution Status on page 158.)

OMRON CJ1W-MCH71 - Description - 1

Circular Interpolation (MOVEC)

This command executes positioning with circular interpolation on two axes at specified interpolation feed rate. Moreover, positioning with helical circular interpolation (2-axis circular interpolation + 1-axis linear interpolation) can be performed. Specifying the number of turns for helical circular interpolation can realize winding operation with multi-turns.

Command type

Single execution command

Format

Center position specification:

MOVEC_Q []
[]
I J
{[]} {L} {F};

Radius specification:

MOVEC_Q[]
[ \text{[]} \text{} \text{R} { \text{[]} \text{} } { \text{F} }; ]
Ex: Center position specification: MOVEC_Q1 [J01]100.00 [J02]200.00 I0 J0 F20000.00; Radius specification: MOVEC_Q1 [J01]100.00 [J02]200.00 R50.00 F20000.00;

Operand

Center position specification

Axis name: J01 to J32

OperandSetting rangeDecimalVariable specificationINC/ABL influence
BitWordLong wordReal numberIndirect specifi-cation
Rotation direction1, -1NoNoYes (See note 1.)YesYes (See note 2.)YesNo
Horizontal axis posi-tion command value-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 3.)YesYes
Vertical axis position command value-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 3.)YesYes
Horizontal axis cen-ter command-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 3.)YesSee note 5.
Vertical axis center command-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 3.)YesSee note 5.
Linear axis com-mand value-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 3.)YesYes
Number of turns1 to 2147483647/2πr-1 (Figures below decimal point to be omitted)NoNoYes (See note 1.)YesYes (See note 2.)YesNo
Interpolation feed rate1 to 2147483647YesNoYes (See note 1.)YesYes (See note 4.)YesNo

Note

(1) Word data is extended to long word data with a sign in the MC Unit.
(2) Figures below the decimal point are to be omitted.
(3) The actual value is determined by the setting value of the parameter [P5AA02: Position command decimal point position].
(4) The actual value is determined by the setting value of the parameter [P00M10: Interpolation feed decimal point position].
(5) When P00004 bit01 = 0 (ABL specification disable), there is no influence and INC specification is always used.

Radius Specification

Axis name: J01 to J32

OperandSetting rangeDecimalVariable specificationINC/ABL influence
BitWordLong wordReal numberIndirect specification
Rotation direction1, -1NoNoYes (See note 1.)YesYes (See note 2.)YesNo
Horizontal axis position command value-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 3.)YesYes
Vertical axis position command value-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 3.)YesYes
Radius-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 3.)YesYes
Linear axis command value-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 3.)YesYes
Interpolation feed rate1 to 2147483647YesNoYes (See note 1.)YesYes (See note 4.)YesNo

Note

(1) Word data is extended to long word data with a sign in the MC Unit.
(2) Figures below the decimal point are to be omitted.
(3) The actual value is determined by the setting value of the parameter [P5AA02: Position command decimal point position].
(4) The actual value is determined by the setting value of the parameter [P00M10: Interpolation feed decimal point position].

Description

  • The MOVEC command executes positioning with circular interpolation at the speed specified with [interpolation feed rate] to the position specified by [horizontal axis position command value] and [vertical axis position command value].
  • The rotation direction is clockwise when Q = 1 , and counter-clockwise when Q = -1 .
  • The circular arc center and radius are specified either by the center value or by the radius value.
  • For the center position specification, [horizontal axis center command] and [the vertical axis center command] are handled as shown below by the parameter [P00004.bit01: Circular arc interpolation center position].
P00004.01Handling of I/J
0: (ABL specification disabled)The value in I or J is always treated as the travel distance from the present position.
1: (ABL specification enabled)The value in I or J is treated as travel distance from spec-ified position or present position depending on ABL/INC specification.
  • When specifying the radius, [radius] is always treated as the distance to be moved from the present position.
  • The unit system of the horizontal axis is used for the radius.

OMRON CJ1W-MCH71 - Description - 1
Horizontal axis

  • When [Number of turns] is specified, multiple rotations will occur. In addition, multiple rotations can be specified only for center position specification. For radius specification, programs cannot be loaded (because the center position cannot be determined If the start position = the end position for radius specification.)
  • The number of rotations excluding the circular arc from the start point to the end point is specified for [Number of turns]. When the start position is not equal to the end position, the travel distance per block will be circular arc of [Number of turns] + a. When the start position is equal to the end position, the travel distance per block will be circular arc of [Number of turns] + 1.
  • If [Linear axis name] and [Linear axis command value] are added, helical circular interpolation can be realized. If [Number of turns] is specified to realize multiple rotations for helical circular interpolation, the end position has to be specified.

OMRON CJ1W-MCH71 - Description - 2

  • [Interpolation feed rate] is handled as shown in the table below depending on the interpolation type and the setting of the parameter [P00004.bit00: Helical circular interpolation speed].
Interpolation typeP00004.00Interpolation feed rate
Circular interpolation0 or 1Combined speed of the horizontal and vertical axes
Helical circular interpolation0 (speed on the circumference)Combined speed of the horizontal and vertical axes
Helical circular interpolation1 (speed on the tangent)Combined speed of the horizontal, vertical, and linear axes.
  • In radius specification, if [Radius] is positive, the center angle will be 180 degrees or smaller. If [Radius] is negative, the center angle will be 180 degrees or greater.

OMRON CJ1W-MCH71 - Description - 3

  • MOVEC command execution will be completed (or No.2 in-position complete) when the travel distance command output for all specified axes is completed.
  • During the command execution, the command code "0003h" is output to the system variable "Command execution status" (SW0228 for Axis 1). (For details of command codes, see 4-5 System Variables Command Code in Command Execution Status on page 158.)
  • When a circular arc cannot be drawn with the specified radius or center position, the radius is compensated to draw the arc. Having the radius in radius specification or the radius calculated with center specification as the initial value, the radius is increased to accomplish the radius at the end position along the rotating angle.
  • When executing circular interpolation on the axis with S-curve filter setting, an arc larger than the specified arc may be drawn. The greater the S-curve time constant is, the greater the overshoot amount (= Specified arc - Actual arc) will be. Operate only after thorough adjustment is made.

Origin Search (DATUM)

The DATUM command performs an origin search for the specified axis.

Command type

Single execution command

Format

DATUM_[]---8----;

Ex: DATUM_[J01]0 [J02]0;

Operand

Axis name: J01 to J32

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
Offset value-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 2.)YesNo (See note 3.)

Note

(1) Word data is extended to long word data with a sign in the MC Unit.
(2) The actual value is determined by the setting value of the parameter [P5AA02: Position command decimal point position].
(3) There is no influence. ABL specification is always used.

Description

  • DATUM command performs the origin search for the specified axis.
  • Specifying the offset will set the origin of the machine coordinate system after an origin search to other than zero. (Specify zero to set it to zero.)
  • The operation patterns and speeds are determined by the parameters shown in the table below:
No.NameValueContent
P4AA01Origin search method0: Origin at power ON1: Limit reversal2: 2-level speed in one direction3: 3-level speed in one directionSets the origin search method.
P4AA02Origin search start direction0: Same as phase-Z detection1: Opposite to phase-Z detectionSets the origin search start direction for origin search method 1.
P4AA03Phase-Z (C) detection direction0: Positive direction1: Negative directionSets the phase-Z (C) detection direction for ori-gin search method 1,2, and 3.
P4AA04Origin deceleration method0: Uses origin proximity1: Uses CW and CCWSpecifies whether the origin proximity or limit input signal is used as origin proximity input sig-nal for origin search method 1 and 3.
P4AA06Origin determine sig-nal0: Phase-Z (C)1: External input signal 12: External input signal 23: External input signal 3Sets the signal to determine (latch) the origin.
P4AA07Origin search feed rate1 to 2147483647*It is limited by 32767 command unit/unit scan.Specifies the speed for the 1st level of the 3- level speed origin search.
P4AA08Origin search approach speed1 to 2147483647*It is limited by 32767 command unit/unit scan.Specifies the speed for the 2nd level of the 3- level speed origin search, or for the 1st level of the 2-level speed origin search.
P4AA09Origin search creep speed1 to 2147483647*It is limited by 32767 command unit/unit scan.Specifies the speed for the 3rd level of the 3- level speed origin search, or for the 2nd level of the 2-level speed origin search.
P4AA10Machine coordinate origin offset-2147483648 to 2147483647Axis control bit: Offset for origin searchNot used for DATUM command
P4AA11Final travel distance in origin search0 to 2147483647Sets the final travel distance in origin search. This is added to the travel distance in the travel-ing direction.
  • Operation patterns are specified in the parameter [P4AA01: Origin search method], and there are four different origin search methods as shown below:
Origin search methodFunction
Origin at power ONThe position when the power is turned ON is defined as the origin. When DATUM is executed, the present position becomes the origin. There is no axis movement.
Limit reversalIt is durable even if the relations between the present position and the origin are not constant. Operation start: The operation is started in the origin search start direction at the origin search feed rate. CW/CCW input: The operation direction is reversed. Origin proximity signal input ON: Changes the speed to the origin search approach speed. Origin determine signal input ON after Origin proximity signal input OFF: Changes the speed to the origin search creep speed to travel for the final travel distance, and then defines the origin.
2-level speed in 1 directionThe relations between the present position and the origin must be constant. Operation start: The operation is started in the phase-Z detection direction at the origin search approach speed. Origin determine signal input: Changes the speed to the origin search creep speed to travel for the final travel distance, and then defines the origin.
3-level speed in 1 directionThe relations between the present position and the origin must be constant. Operation start: The operation is started in the phase-Z detection direction at the origin search feed rate. Origin proximity signal input ON: Changes the speed to the origin search approach speed. Origin determine signal input ON after Origin proximity signal input OFF: Changes the speed to the origin search creep speed to travel for the final travel distance, and then defines an origin.
  • The machine coordinate origin is defined externally using the signal specified in the parameter [P4AA06: Origin determine signal] (Expect for the origin search method 0: Origin at power ON).
  • After origin search completion, following settings are not canceled. The status before execution is maintained.

  • The workpiece coordinate system offset specified using OFFPOS command

  • The coordinate system number specified using ORIGIN or WORK command

  • For the origin search executed for an axis using the absolute encoder, the machine coordinate origin is defined using an external signal as well.

  • DATUM command execution will be completed when origin detection for all the specified axes is completed.
  • During the command execution, the command code "0004h" is output to the system variable "Command execution status" (SW0228 for Axis 1). (For details of command codes, see 4-5 System Variables Command Code in Command Execution Status on page 158.)

Interrupt feeding (MOVEI)

When the signal specified in the parameter [P5AA08: External Input signal select 1] is turned ON, positioning is performed moving the specified axis for the specified feed amount.

Command type

Single execution command

Format

MOVEI_[] DV;

Ex: MOVEI[J01]1000.00 D2000.00 V50000.00;

Axis name: J01 to J32

Operand

OperandSetting rangeDecimalVariable specificationINC/ABL influence
BitWordLong wordReal numberIndirect specification
Position command value-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 2.)YesYes
Fixed feed amount-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 2.)YesNo (See note 3.)
Speed after signal input1 to 147483647 (See note 4.)YesNoYes (See note 1.)YesYes (See note 5.)YesNo

Note

(1) Word data is extended to long word data with a sign in the MC Unit.
(2) The actual value is determined by the setting value of the parameter [P5AA02: Position command decimal point position].
(3) There is no influence. INC specification is always used.
(4) The maximum speed in actual operations will be limited by the maximum feed rate of the interpolation or axis.
(5) Figures below the decimal point are to be omitted.

Description

  • Positioning is executed to the position specified with the position command value at the speed specified in the parameter [P2AA03: Rapid feed rate].
  • If a signal specified in the parameter [P5AA08: External input signal select 1] is input during positioning, positioning is executed at the speed specified with Speed after signal input and for the distance specified with Fixed feed amount.

OMRON CJ1W-MCH71 - Description - 1

  • If the Fixed feed amount specified is smaller than the distance required from the signal input to the stop after deceleration, return operation is performed for the excessive distance after completion of deceleration stop.

OMRON CJ1W-MCH71 - Description - 2

  • Only one axis can be specified in one block.
  • MOVEI command execution will be completed when positioning for all the specified axes is completed (in-position).
  • During the command execution, the command code "0005h" is output to the system variable "Command execution status" (SW0228 for Axis 1). (For details of command codes, see 4-5 System Variables Command Code in Command Execution Status on page 158.)

Time-Specified Positioning (MOVET)

Positioning is executed to the specified position within the specified time period.

Command type

Single execution command

Format

MOVET_[] ---8--- T; Ex: MOVET_[J01]1000.00 [J02]2000.00 T100;

Operand

Axis name: J01 to J32

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
Position command value-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 2.)YesYes
Positioning time0 to 3600000 msNoNoYes (See note 1.)YesNoYesNo

Note

(1) Word data is extended to long word data with a sign in the MC Unit.
(2) The actual value is determined by the setting value of the parameter [P5AA02: Position command decimal point position].

Description

  • Positioning is performed to the position specified with the position command value within the time period specified with the positioning time.
  • Speed of each axis is determined by the following expression: [Speed of each axis] = Travel distance of each axis/positioning time
  • When the speed determined by the expression above exceeds the speed specified in the parameter [P2AA01: Maximum rapid feed rate], the alarm [200B: Time specification error] will occur before the operation. The speed after override during an operation is limited by the speed specified in the parameter as well.

  • The actual positioning time can be found using the following expression: [Actual positioning time] = Positioning time + [P2AA05: Rapid feed acceleration time] × [Speed of each axis]/[P2AA03: Rapid feed rate]

  • In specifying deceleration, the parameter [P2AA06: Rapid feed deceleration time] is ignored. Instead, the parameter [P2AA05: Rapid feed acceleration time] is used. (Symmetric linear acceleration/deceleration is always performed.)
  • The parameter [P2AA03: Rapid feed rate] is ignored.
  • If the override is not 100.00% , the positioning time specified cannot be kept.
  • Positioning time does not include the time required for completing in-position check.
  • MOVET command execution will be completed when positioning for all the specified axes is completed (in-position).
  • During the command execution, the command code "0006h" is output to the system variable "Command execution status" (SW0228 for axis 1). (For details of command codes, see 4-5 System Variables Command Code in Command Execution Status on page 158.)

OMRON CJ1W-MCH71 - Description - 1

Traverse

(MOVETRAV)

This command is provided for traverse, winding machine operations.

Command type

Single execution command

Format

MOVETRAV_Q []

[] L

{I}J}F};

Ex: MOVETRV_Q1 [J01]36000.00 [J02]40.00 L10 F2000.00;

Operand

Axis name: J01 to J32

OperandSetting rangeDecimalVariable specificationINC/ABL influence
BitWordLong wordReal numberIndirect specifi-cation
Operating mode1,2,3, or 4NoNoYes (See note 1.)YesYes (See note 2.)YesNo
Winding axis rota-tions-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 3.)YesNo (see note 4.)
Traverse axis wind-ing width-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 2.)YesNo (see note 4.)
Number of layers2147483647/360 × 10\(^{P5AA02}\) (See note 7.)Figures below decimal point to be omitted (Seeneote 3.)NoNoYes (See note 1.)YesYes (See note 2.)YesNo
Rotations at starting edge0 to 2147483647YesNoYes (See note 1.)YesYes (See note 3.)YesNo (see note 4.)
Rotations at ending edge0 to 2147483647YesNoYes (See note 1.)YesYes (See note 3.)YesNo (see note 4.)
Winding axis speed1 to 2147483647(See note 5.)YesNoYes (See note 1.)Yes (see note 6.)Yes (See note 3.)YesNo

Note

(1) Word data is extended to long word data with a sign in the MC Unit.
(2) Figures below the decimal point are to be omitted.
(3) The actual value is determined by the setting value of the parameter [P5AA02: Position command decimal point position.
(4) There is no influence. INC specification is always used.
(5) The maximum speed in actual operations is limited by the maximum feed rate of the interpolation or axis.
(6) The actual value is determined by the setting value of the parameter [P00M10: Interpolation feed decimal point position].
(7) Position command decimal point position

Description

OMRON CJ1W-MCH71 - Description - 1

  • Description of Operating mode is shown below. It cannot be specified with variables. When linked traverse is specified, only the blocks in the same operating mode can be linked.
    1: (Normal traverse, winding axis rotations = Rotations specification)
    2: (Normal traverse, winding axis rotations = Pitch specification)
    3: (Linked traverse, winding axis rotations = Rotations specification)
    4: (Linked traverse, winding axis rotations = Pitch specification)
  • Winding axis rotations vary depending on operation mode.

  • Rotations specification: Winding axis rotations per layer. Unit is [deg].

  • Pitch specification: Traverse axis travel distance per winding axis rotation

Unit is [command unit/rev].

  • When winding axis rotations = 0, the alarm [2009h: Position specification error] will occur.
  • A positive or negative value specified in Winding axis rotations corresponds to the rotation direction CCW or CW respectively.

Note The winding axis should be operated in the unlimited feed mode. (If it is operated in the limited feed mode, the alarm [3015h: Axis classification error] will occur.)

  • Traverse axis winding width specifies the traverse width ([No. of winds per layer] × [No. of pitches]). Unit is [command unit].
  • When Traverse axis winding width = 0, the alarm [2009h: Position specification error] will occur.
  • Rotations at starting edge and Rotations at ending edge specify the amount of winding at starting and ending edges. Unit is [deg].
  • Without specifying Rotations at starting edge and Rotations at ending edge, there will be no winding at the edges.
  • The linked traverse allows up to 100 linked blocks, and the operation as a whole is executed in Stop Mode.
  • The blocks, which were linked using the linked traverse function, are treated as one block.

  • In the linked traverse, up to 5 blocks are interpreted per unit scan. If more than 5 blocks are linked, the time [(No. of linked blocks/5) × Unit scan] will be required for the interpretation (i.e. from completion of executing the previous block to start of the linked traverse operation. (It will take longer to start execution. The operation does not stop during the linked traverse.)

  • Linked traverse always operates at the speed specified for the 1st traverse.
  • MOVETRAV command execution will be completed when travel distance command output for all the specified axes is completed.
  • During the command execution, the command code "0007h" is output to the system variable "Command execution status" (SW0228 for Axis 1). (For details of command codes, see 4-5 System Variables Command Code in Command Execution Status on page 158.)

Electronic Cam, Single Axis (CAM)

Positioning is performed within a specified execution time according to the specified CAM data.

Command type

Single execution command

Format

CAM_[] KT

Axis name: J01 to J32

Operand

OperandSetting rangeDecimalVariable specificationINC/ABL influence
BitWordLong wordReal numberIndirect specification
CAM table number±(1 to 32,100,200)NoNoYes (See note 1.)YesYes (See note 2.)YesNo
Displacement data multiplier-20000 to 20000YesNoYes (See note 1.)YesYes (See note 3.)YesNo
Execution time0 to 3600000msNoNoYes (See note 1.)YesNoYesNo
Starting data number0 to note 4NoNoYes (See note 1.)YesYes (See note 2.)YesNo
Ending data number0 to note 4NoNoYes (See note 1.)YesYes (See note 2.)YesNo

Note

(1) Word data is extended to long word data with a sign in the MC Unit.
(2) Figures below the decimal point are to be omitted.
(3) The minimum command unit is 0.01% .
(4) When CAM table is specified: The greatest CAM data number in CAM table

When specifying with global variable: 8188 (1FFC Hex)
When specifying with position data: 10238 (27FE Hex)

Description

  • Timed CAM operation is performed according to the CAM table specified with CAM table number.
  • Select CAM table to be used in CAM table number.

  • 1-32: Selects the CAM table of the specified number from CAM data.

  • 100: Selects the global general variable as CAM table.
  • 200: Selects the position data as CAM table.

  • If either the global variable or position data is used for CAM table, phase and displacement are to be specified as double-length integer type data.

OMRON CJ1W-MCH71 - Description - 1

  • If a minus sign is added to the CAM table number, the CAM data is read tracing the data numbers in the reverse order.
  • The range of Displacement data multiplier is from -200.00 to 200.0% (0.01% unit, limited to the values that can be obtained from the internal processing).
  • When "0" is specified in Displacement data multiplier, the operation proceeds to the next block without any axis movement after Execution time specified in T elapses.
  • If Starting data number specification is omitted, the starting data number will be 0.
  • If Ending data number specification is omitted, the ending data number is the greatest data number in that table.
  • If the specifications of [Starting data number] = [Ending data number] are made, the alarm [200Ch: Number specification error] will occur.
  • The CAM operation from the starting position to the ending position is executed within the execution time specified in T (Execution time).
  • When either of the following conditions is met, the phase will return to 0 (i.e. to the beginning or end of the table) and data is read.
Data reading directionData number
Forward(Starting data number) > (Ending data number)
Reverse(Starting data number) < (Ending data number)

Note that this operation is executed only when the CAM data is used as the CAM table. If the specifications described above are made when the global general variable or position data is used as the CAM table, the alarm [200Ch: Number specification error] will occur.

  • The data reading period is to be one cycle or less.
  • The word "Displacement" means the increased value from the CAM command start point.
Data No.PhaseDisplacement
100
2500400
310001600
415003600
520006400
6250010000
7300013600
8350016400
9400018400
10450019600
11500020000
12550019600
13600018400
14650016400
15700013600
16750010000
1780006400
1885003600
1990001600
209500400
21100000

OMRON CJ1W-MCH71 - Description - 2

  • CAM command execution will be completed when the command output for all the specified CAM data is completed.
  • During the command execution, the command code "0008h" is output to the system variable "Command execution status" (SW0228 for Axis 1). (For details of command codes, see 4-5 System Variables Command Code in Command Execution Status on page 158.)

Phase and Displacement of CAM Data

Restriction on phase:

  • To use the CAM data for "CAM (Electronic cam, single axis)" and "CAMBOX (Electronic cam, synchronous)" commands, the phase data should be arranged in an ascending order (i.e. the greater the data number is, the larger the phase will be).

  • When specifying the starting and ending points, the restriction varies depending on the used data as shown below:

DataRestriction
CAM dataEven with the starting and ending points specified, the other data will not be ignored. Therefore, the conditions mentioned above have to be met even for the unused area.
Position data/global general variableThe data other than the starting and ending points specified will be ignored. Therefore, the conditions mentioned above do not have to be met for the unused area.
  • When these conditions are not met, "CAM (Electronic cam, single axis)" and "CAMBOX (Electronic cam, synchronous)" commands may cause the axis to stop operating, or to operate in an unexpected way. To avoid accidents, make sure that the conditions are met.

Note

The position data and global general variable can be used while being overwritten real-time. Therefore, the MC unit does not internally check the conditions for the restrictions mentioned above. (This also applies to the cam data.)

Restriction on the displacement: Set it so that the value is within the setting range.

6-3-3 Command for Axis Operations/Operation Cancel

Positioning is performed synchronizing the slave axis to the specified master axis.

Command type

Single execution command

Format

MOVELINK_[] []

A D {Q} {I}

{B};

Ex: MOVELINK_[J02]2000.00 [J01]100000.00 A2000.00 D2000.00;

Operand

Axis name: J01 to J32

OperandSetting rangeDecimalVariable specificationINC/ABL influence
BitWordLong wordReal numberIndirect specification
Slave axis travel distance-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 2.)YesNo (See note 4.)
Master axis travel distance0 to 2147483647YesNoYes (See note 1.)YesYes (See note 2.)YesNo (See note 4.)
Master axis travel distance in acceleration0 to 2147483647YesNoYes (See note 1.)YesYes (See note 2.)YesNo (See note 4.)
Master axis travel distance in deceleration0 to 2147483647YesNoYes (See note 1.)YesYes (See note 2.)YesNo (See note 4.)
Link option0 to 5NoNoYes (See note 1.)YesYes (See note 3.)YesNo
OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
Link start position-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 2.)YesNo (See note 5.)
Master axis classifi- cation0 or 1NoNoYes (See note 1.)YesYes (See note 3.)YesNo

Note

(1) Word data is extended to long word data with a sign in the MC Unit.
(2) The actual value is determined by the setting value of the parameter [P5AA02: Position command decimal point position].
(3) Figures below the decimal point are to be omitted.
(4) There is no influence. INC specification is always used.
(5) There is no influence. ABL specification is always used.

Description

  • Synchronous operation is performed with the specifications of acceleration at the beginning of synchronization, ratio in synchronization, and deceleration at synchronization completion.

OMRON CJ1W-MCH71 - Description - 1

  • The travel distances of the master and slave axes for each interval is determined according to the Slave axis travel distance, Master axis travel distance, Master axis travel distance in acceleration, and Master axis travel distance in deceleration as shown in the table below:
IntervalMaster axisSlave axis
AccelerationMaster axis travel distance in acceleration[Slave axis travel distance] × [Master axis travel distance] × [Slave axis travel distance] × [Master axis travel distance] × [Slave axis travel distance] × [Master axis travel distance] × [Slave axis travel distance] × [Master axis travel distance] × [Slave axis travel distance] × [Master axis travel distance] × [Slave axis travel distance] × [Master axis travel distance] × [Slave axis travel distance] × [Master axis travel distance] × [Slave axis travel distance] × [Master axis travel distance] × [Slaveaxis travel distance] × [Master axis travel distance] × [Slaveaxis travel distance] × [Master axis travel distance] × [Slaveaxis travel distance] × [Master axis travel distance] × [Slaveaxis travel distance] × [Master axis travel distance] × [Slaveaxis travel distance] × [Master axis travel distance] × [Slaveaxis travel distance] × [Master axis travel distance] × [Slaveaxis travel distance] × [Master axis travel distance] × [Slaveaxis traveldistance] × [Master axis travel distance] × [Slaveaxis traveldistance] × [Master axis travel distance] × [Slaveaxis traveldistance] × [Master axis travel distance] × [Slaveaxis traveldistance] × [Master axis travel distance] × [Slaveaxis traveldistance] × [Master axis travel distance] × [Slaveaxis traveldistance] × [Master axis travel distance] × [Slaveaxis traveldistance] × [Master axis travel distance] × [Slaveaxis traveldistance]× [Master axis travel distance] × [Slaveaxis traveldistance] × [Master axis travel distance] × [Slaveaxis traveldistance] × [Master axis travel distance] × [Slaveaxis traveldistance] × [Master axis travel distance] × [Slaveaxis traveldistance] × [Master axis travel distance] × [Slaveaxis traveldistance] × [Master axis travel distance] × [Slaveaxis traveldistance] × [Master axis travel distance] × [Slaveaxis traveldistance] × [ Master axis travel distance] × [Slaveaxis traveldistance] × [Master axis travel distance] × [Slaveaxis traveldistance] × [Master axis travel distance] × [Slaveaxis traveldistance] × [Master axis travel distance] × [Slaveaxis traveldistance] × [Master axis travel distance] × [Slaveaxis traveldistance] × [Master axis travel distance] × [Slaveaxis traveldistance] × [Master axis travel distance] × [Slaveaxis traveldistance] × [Master axistraveldistance] × [Slaveaxis traveldistance] × [Master axis traveldistance] × [Slaveaxis traveldistance] × [Master axis traveldistance] × [Slaveaxis traveldistance] × [Master axis traveldistance] × [Slaveaxis traveldistance] × [Master axis traveldistance] × [Slaveaxis traveldistance] × [Master axis traveldistance] × [Slaveaxis traveldistance] × [Master axis traveldistance] × [Slaveaxis traveldistance] × [Master axis traveldistance] × [Slaveaxis traveldistance] × [Master axis traveldistance]\n\n
Constant speedMaster axis travel distance- Master axis travel distance in acceleration- Master axis travel distance in deceleration[Slave axis travel distance]- Slave axis travel distance in acceleration - Slave axis travel distance in deceleration
DecelerationMaster axis travel distance in deceleration[Slave axis travel distance] × [Master axis travel distance]
[Master axis travel distance in acceleration]+ Master axis travel distance at constant speed +[Master axis travel distance in deceleration]
22

When [Master axis travel distance] < [Master axis travel distance in acceleration] + [Master axis travel distance in acceleration], the actual master axis travel distance in acceleration + the actual master axis travel distance in deceleration = [Master axis travel distance] while maintaining the ratio between the acceleration and deceleration intervals. In this case, the master axis travel distance at constant speed is 0.

  • Master axis input ignores signs, and it is treated as the absolute travel distance. Therefore, only the signs of [Slave axis travel distance] determine the direction of the slave axis operation. For example, if the master axis travel direction is reversed during synchronization, the slave axis travel direction will not change.
  • The link option influences the following operations depending on the setting value.
Link optionCommand execution completionLink operation start
0 or omittedWhen slave axis travel distance output is completedWhen command execution is started
1When command execution is startedWhen command execution is started
2When slave axis travel distance output is completedWhen latch for master axis is detected
3When command execution is startedWhen latch for master axis is detected
4When slave axis travel distance output is completedWhen master axis reaches Link start position
5When command execution is startedWhen master axis reaches Link start position

Note The bit image shown below:

OMRON CJ1W-MCH71 - Description - 2

0/1= Slave axis travel distance output completed/With command execution is started
0/1/2 = When command execution is started/ When latch for master axis is detected/ When master axis reaches Link start position

  • [Master axis classification] determines whether to synchronize the slave axis with the master axis command value or feedback value.
Master axis classificationMaster axis value to synchronize with
0 or omittedCommand value
1Feedback value
  • Completion of command execution varies depending on the link option.
  • During the command execution, the command code "0015h" is output to the system variable "Command execution status" (SW0228 for Axis 1). (For details of command codes, see 4-5 System Variables Command Code in Command Execution Status on page 158.)

Precautions When Using MOVELINK Continuously

The timing may need to be adjusted using the NOPS command when the axis is continuously moved using the MOVELINK command. The following example is given as explanation.

As the following program shows, J05 and J04 are joined to the main axis J02 using the MOVELINK command.

If the slave axis J05 is moved immediately after positioning J02 (completion of line 2), the movement of J05 in line 1 is cancelled and J05 will be short one unit cycle of reaching the target position.

This happens because when the MOVELINK command in line 3 is executed, the MOVELINK command in line 1 has not yet completed processing one unit cycle, thereby cancelling this portion of the unit cycle upon the execution of line 3.

MOVELINK [J05]36400 [J02]#ML0002 A0 D0 Q1; (1)

MOVELINK [J04]36400 [J02]#ML0002 A0 D0 Q1;

INC MOVE [J02]#ML0002 (2)

MOVELINK [J05]16000 [J02]#ML0004 A0 D0 Q1; (3)

MOVELINK [J04]16000 [J02]#ML0004 A0 D0 Q1;

INC MOVE [J02]#ML0002

To deal with this problem, insert a NOPS command after the MOVE command as shown below. By inserting the NOPS command, the MOVELINK command will be executed after line 1 is completed.

MOVELINK [J05]36400 [J02]#ML0002 A0 D0 Q1;

MOVELINK [J04]36400 [J02]#ML0002 A0 D0 Q1;

INC MOVE [J02]#ML0002;

NOPS;

MOVELINK [J05]16000 [J02]#ML0004 A0 D0 Q1;

MOVELINK [J04]16000 [J02]#ML0004 A0 D0 Q1;

INC MOVE [J02]#ML0002;

NOPS;

Unit Versions Before Unit Ver. 3.0

If the next operation is executed while the Master axis is continuing to travel, some of the Slave axis travel distance (up to one Unit cycle of travel) will be eliminated.

CaseFirst commandNext commandRemarks
1CAMBOXCAMBOXPart of the travel distance specified in the first CAM table will be eliminated when switching from the first CAM table to the next CAM table.
2CAMBOXMOVELINKAs above.
3MOVELINKCAMBOXIf there is a deceleration area in the first MOVELINK command, part of the deceleration area will be eliminated when switching to the next command. If there is no deceleration area in the first MOVELINK command, the axis will travel the expected travel distance.
4MOVELINKMOVELINKAs above.

Example: Case 1

:
MOVELINK [J01]30000 [J02]30000 A5000 D5000 Q0;MOVELINK (1)
MOVELINK [J01]30000 [J02]30000 A5000 D5000 Q0;MOVELINK (2)
MOVELINK [J01]30000 [J02]30000 A5000 D5000 Q0;MOVELINK (3)
:

OMRON CJ1W-MCH71 - Unit Versions Before Unit Ver. 3.0 - 1

This travel distance will be eliminated.

Unit Ver. 3.0 or Later

The Slave axis will travel the expected distance even if the following operations are performed while the Master axis continues to travel.

CaseFirst commandNext commandRemarks
1CAMBOXCAMBOXMoves the expected travel distance.
2CAMBOXMOVELINKMoves the expected travel distance.
3MOVELINKCAMBOXMoves the expected travel distance.
4MOVELINKMOVELINKMoves the expected travel distance.

Set the link option (Q) using the following combinations to enable the axes to travel the expected travel distance.

First commandNext command
CommandLink option (conditions for command completion)CommandLink option (conditions for command completion)
CAMBOX8 (Slave axis travel distance output completed.)10 (Slave axis travel distance output completed.)12 (Slave axis travel distance output completed.)CAMBOX0 or omitted (Slave axis travel distance output completed.)1 (Command execution started.)8 (Slave axis travel distance output completed.)9 (Command execution started.)
MOVELINK0 or omitted (Slave axis travel distance output completed.)1 (Command execution started.)
MOVELINK0 or omitted (Slave axis travel distance output completed.)2 (Slave axis travel distance output completed.)4 (Slave axis travel distance output completed.)CAMBOX0 or omitted (Slave axis travel distance output completed.)1 (Command execution started.)8 (Slave axis travel distance output completed.)9 (Command execution started.)
MOVELINK0 or omitted (Slave axis travel distance output completed.)1 (Command execution started.)

Example: Case 1

CAMBOX [J01]1 [J02]10000 K10000 Q8 B0; Cam (1)

CAMBOX [J01]2 [J02]10000 K10000 Q8 B0; Cam (2)

CAMBOX [J01]3 [J02]10000 K10000 Q8 B0; Cam (3)

OMRON CJ1W-MCH71 - Unit Ver. 3.0 or Later - 1

Electronic Cam, Synchronous (CAMBOX)

The operation is executed based on the CAM table synchronizing the slave axis to the specified master axis.

Command type

Single execution command

Format

CAMBOX_[] [] K
{S} {E} [Q]
{I} {B;
Ex: CAMBOX[J02]1 [J01]100.00 K100.00;

Axis name: J01 to J32

Operand

OperandSetting rangeDecimalVariable specificationINC/ABL influence
BitWordLong wordReal numberIndirect specifi-cation
CAM table number±(1 to 32, 100, 200)NoNoYes (See note 1.)YesYes (See note 2.)YesNo
Link distance0 to 2147483647YesNoYes (See note 1.)YesYes (See note 3.)YesNo (See note 4.)
Displacement data multiplier-20000 to 20000YesNoYes (See note 1.)YesYes (See note 5.)YesNo
Starting data number0 to note 6NoNoYes (See note 1.)YesYes (See note 2.)YesNo
Ending data number0 to note 6NoNoYes (See note 1.)YesYes (See note 2.)YesNo
Link option1 to 5, 8 to 13NoNoYes (See note 1.)YesYes (See note 2.)YesNo
Link start position-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 3.)YesNo (See note 7.)
Master axis classifi-cation0 or 1NoNoYes (See note 1.)YesYes (See note 2.)YesNo

Note

(1) Word data is extended to long word data with a sign in the MC Unit.
(2) Figures below the decimal point are to be omitted.
(3) The actual value is determined by the setting value of the parameter [P5AA02: Position command decimal point position].
(4) There is no influence. INC specification is always used.
(5) The minimum command unit is 0.01% .

Real value = ((Value with decimal point or Variable of real number type) × 102)

Figures below the decimal point are to be omitted.

(6) When CAM table is specified: The greatest CAM data number in CAM table

When specified with the global variable: 8188 (1FFC Hex)

When specified with the position data: 10238 (27FE Hex)

(7) There is no influence. ABL specification is always used.

Description

  • The synchronous operation is executed based on the CAM table specified with CAM table number.
  • The operands, CAM table number, Displacement data multiplier, Starting data number, and Ending data number are handled in the same manner as CAM command.
  • Link distance specifies the master axis travel distance per phase cycle.
  • Link option influences the following operations depending on the setting value:
Link optionCommand execution completionLink operation startRepeat
0 or omittedWhen slave axis travel distance output is completedWhen command execution is startedRepeat
1When command execution is startedWhen command execution is startedRepeat
2When slave axis travel distance output is completedWhen latch for master axis is detectedRepeat
3When command execution is startedWhen latch for master axis is detectedRepeat
4When slave axis travel distance output is completedWhen master axis reaches Link start positionRepeat
5When command execution is startedWhen master axis reaches Link start positionRepeat
8When slave axis travel distance output is completedWhen command execution is startedOnly for one cycle from the starting to ending data number
9When command execution is startedWhen command execution is startedOnly for one cycle from the starting to ending data number
10When slave axis travel distance output is completedWhen latch for master axis is detectedOnly for one cycle from the starting to ending data number
11When command execution is startedWhen latch for master axis is detectedOnly for one cycle from the starting to ending data number
12When slave axis travel distance output is completedWhen master axis reaches Link start positionOnly for one cycle from the starting to ending data number
13When command execution is startedWhen master axis reaches Link start positionOnly for one cycle from the starting to ending data number

Note The bit image is shown below:

OMRON CJ1W-MCH71 - Note The bit image is shown below: - 1

  • When the master axis is in reverse rotation, the CAM data is read tracing the data numbers in the reverse order.
  • When Link option is one of 8 to 13 (Only for one cycle from the starting to ending data number), the synchronization will be completed once the master axis travels for Link distance in + or - direction from the synchronization start position.
  • But if the master axis reciprocates within the ranges of +Link distance] or -{Link distance}, the slave axis continues to move.
  • The position of the master axis at link start can be specified with Link start position.
  • Master axis classification determines whether to synchronize the slave axis with the master axis command value or feedback value.
Master axis classificationMaster axis value to synchronize with
0 or omittedCommand value
1Feedback value

Command execution completion varies depending on the link option.
- During the command execution, the command code "0016h" is output to the system variable "Command execution status" (SW0228 for Axis 1). (For details of command codes, see 4-5 System Variables Command Code in Command Execution Status on page 158.)

Phase and Displacement of CAM Data

Restriction on phase:

  • To use the CAM data for "CAM (Electronic cam, single axis)" and "CAMBOX (Electronic cam, synchronous)" commands, the phase data should be arranged in an ascending order (i.e. the greater the data number is, the larger the phase will be).
  • When specifying the starting and ending points, the restriction varies depending on the used data as shown below.
DataRestriction
CAM dataEven with the starting and ending points specified, the other data will not be ignored. Therefore, the conditions mentioned above have to be met even for the unused area.
Position data/Global general variableThe data other than the starting and ending points specified will be ignored. Therefore, the conditions mentioned above do not have to be met for the unused area.

Note

  • When these conditions are not met, "CAM (Electronic cam, single axis)" and "CAMBOX (Electronic cam, synchronous)" commands may cause the axis to stop operating, or to operate in an unexpected way. To avoid accidents, make sure that the conditions are met.

The position data and global general variable can be used while being overwritten real-time. Therefore, the MC unit does not internally check the conditions for the restrictions mentioned above. (This also applies to the cam data.)

Restriction on the displacement:

Set it so that the value is within the setting range.

Precautions When Using Cam Data Continuously

The timing may need to be adjusted using the NOPS command when the axis is continuously moved using the CAMBOX command. The following example is given as explanation.

As the following program shows, J05 and J04 are connected to the main axis J02 using the CAMBOX command. If the slave axis J05 is moved immediately after J02 positioning (completion of line 2), the movement of J05 in line 1 is cancelled and J05 will be short one unit cycle of reaching the target position. This happens because when the CAMBOX command in line 3 is executed, the CAMBOX command in line 1 has not yet completed processing one unit cycle, thereby cancelling this unit cycle upon the execution of line 3.

CAMBOX [J05]1 [J02]1000 K10000 Q9; (1)

CAMBOX [J04]2 [J02]1000 K10000 Q9;

INC MOVE [J02]1000; (2)

CAMBOX [J05]1 [J02]1000 K10000 Q9; (3)

CAMBOX [J04]2 [J02]1000 K10000 Q9;

INC MOVE [J02]1000;

To deal with this problem, insert a NOPS command after the MOVE command as shown below. By inserting the NOPS command, the CAMBOX command will be executed after line 1 is completed.

CAMBOX [J05]1 [J02]1000 K10000 Q9;

CAMBOX [J04]2 [J02]1000 K10000 Q9;

INC MOVE [J02]1000;

NOPS;

CAMBOX [J05]1 [J02]1000 K10000 Q9;

CAMBOX [J04]2 [J02]1000 K10000 Q9;

INC MOVE [J02]1000;

NOPS;

Unit Versions Before Unit Ver. 3.0

If the next operation is executed while the Master axis is continuing to travel, some of the Slave axis travel distance (up to one Unit cycle of travel) will be eliminated.

CaseFirst commandNext commandRemarks
1CAMBOXCAMBOXPart of the travel distance specified in the first CAM table will be eliminated when switching from the first CAM table to the next CAM table.
2CAMBOXMOVELINKAs above.
3MOVELINKCAMBOXIf there is a deceleration area in the first MOVELINK command, part of the deceleration area will be eliminated when switching to the next command. If there is no deceleration area in the first MOVELINK command, the axis will travel the expected travel distance.
4MOVELINKMOVELINKAs above.

Note The axis will travel the expected distance when operation is repeated using the CAMBOX command (link options 0 to 5).

Example: Case 1  
:  
CAMBOX [J01]1 [J02]10000 K10000 Q8 B0; Cam (1)  
CAMBOX [J01]2 [J02]10000 K10000 Q8 B0; Cam (2)  
CAMBOX [J01]3 [J02]10000 K10000 Q8 B0; Cam (3)  
: 

OMRON CJ1W-MCH71 - Unit Versions Before Unit Ver. 3.0 - 1

This travel distance will be eliminated.

Unit Ver. 3.0 or Later

The Slave axis will travel the expected distance even if the following operations are performed while the Master axis continues to travel.

CaseFirst commandNext commandRemarks
1CAMBOXCAMBOXMoves the expected travel distance.
2CAMBOXMOVELINKMoves the expected travel distance.
3MOVELINKCAMBOXMoves the expected travel distance.
4MOVELINKMOVELINKMoves the expected travel distance.

Set the link option (Q) using the following combinations to enable the axes to travel the expected travel distance.

First commandNext command
CommandLink option (conditions for command completion)CommandLink option (conditions for command completion)
CAMBOX8 (Slave axis travel distance output completed.)10 (Slave axis travel distance output completed.)12 (Slave axis travel distance output completed.)CAMBOX0 or omitted (Slave axis travel distance output completed.)1 (Command execution is started.)8 (Slave axis travel distance output completed.)9 (Command execution started)
MOVELINK0 or omitted (Slave axis travel distance output is completed.)1 (Command execution started.)
MOVELINK0 or omitted (Slave axis travel distance output completed.)2 (Slave axis travel distance output completed.)4 (Slave axis travel distance output completed.)CAMBOX0 or omitted (Slave axis travel distance output completed.)1 (Command execution started.)8 (Slave axis travel distance output completed.)9 (Command execution started.)
MOVELINK0 or omitted (Slave axis travel distance output completed.)1 (Command execution started.)

Example: Case 1

CAMBOX [J01]1 [J02]10000 K10000 Q8 B0; Cam (1)

CAMBOX [J01]2 [J02]10000 K10000 Q8 B0; Cam (2)

CAMBOX [J01]3 [J02]10000 K10000 Q8 B0; Cam (3)

OMRON CJ1W-MCH71 - Unit Ver. 3.0 or Later - 1

Electronic Shaft (CONNECT)

Command type

Format

Positioning is performed synchronizing the slave axis to the specified master axis based on the specified gear ratio.

Single execution command

CONNECT_[]---8---[] {B};

Ex: CONNECT_[J02]1 [J03]2 [J04]3 [J01]100;

Operand
Axis name: J01 to J32

OperandSetting rangeDecimalVariable specificationINC/ABL influence
BitWordLong wordReal numberIndirect specification
Gear ratio numerator-10000 to 10000NoNoYes (See note 1.)YesYes (See note 2.)YesNo
Gear ratio denominator1 to 10000NoNoYes (See note 1.)YesYes (See note 2.)YesNo
Master axis classification0 or 1NoNoYes (See note 1.)YesYes (See note 2.)YesNo

Note

(1) Word data is extended to long word data with a sign in the MC Unit.
(2) Figures below the decimal point are to be omitted.

Description

  • Synchronous operation is performed in the ratio Gear ratio numerator/Gear ratio denominator.
  • The value in Gear ratio denominator is common for all the slave axes. If there are different ratios within one block, they are to be reduced to a common denominator to set the ratios.
  • A negative value can also be set for Gear ratio numerator, which can make the travel directions of the master and slave axes opposite.

  • Master axis classification determines whether to synchronize the slave axis with the master axis command value or feedback value.

Master axis classificationMaster axis value to synchronize with
0 or omittedCommand value
1Feedback value
  • If the speed obtained by multiplying the master axis speed and the gear ratio exceeds the speed specified in the parameter [P2AA01: Maximum rapid feed rate], the alarm [3011h: Synchronizing slave axis excessive speed] will occur.
  • CONNECT command execution will be completed when the electronic shaft synchronization for all the specified axes are established.
  • During the command execution, the command code "0017h" is output to the system variable "Command execution status" (SW0228 for Axis 1). (For details of command codes, see 4-5 System Variables Command Code in Command Execution Status on page 158.)

OMRON CJ1W-MCH71 - Description - 1

Trailing Synchronization (SYNC)

The Trailing Synchronization (SYNC) command performs trailing synchronization operation with a specified master axis.

Command type

Single execution command

Format

SYNC_[] [] {B;

Ex: SYNC_[J02]100.00 [J01]20.0;

Operand

Axis name: J01 to J32

OperandSetting rangeDecimalVariable specificationINC/ABL influence
BitWordLong wordReal numberIndirect specification
Catch-up position offset-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 2.)YesNo (See note 3.)
Marker sensor ON position-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 2.)YesNo (See note 5.)
Master axis classification0 or 1NoNoYes (See note 1.)YesYes (See note 4.)YesNo

Note

(1) Word data is extended to long word data with a sign in the MC Unit.
(2) The actual value is determined by the setting value of the parameter [P5AA02: Position command decimal point position].
(3) There is no influence. INC specification is always used.
(4) Figures below the decimal point are to be omitted.
(5) There is no influence. ABL specification is always used.

Description

  • Synchronization proceeds in the order described below:
  • The slave axis will wait for the marker sensor signal after the execution is started. (It waits for the marker sensor signal input to the master axis.)
  • The slave axis will start trailing operation when the marker sensor signal is input. The trailing operation will be completed once the slave axis synchronizes with the position of the master axis (Marker sensor ON position + catch-up position offset).
  • The slave axis is operated synchronizing with the master axis in the ratio of 1 to 1.
  • Catch-up position offset is specified as the distance from Marker sensor ON position on the coordinate system of the slave axis.
  • Marker sensor ON position is specified as the position on the coordinate system of the slave axis.
  • If the speed in synchronization exceeds the speed specified in the parameter [P2AA01: Maximum rapid feed rate], the alarm [3011h: Synchronizing slave axis excessive speed] will occur.
  • Master axis classification determines whether to synchronize the slave axis with the master axis command value or feedback value.
Master axis classificationMaster axis value to synchronize with
0 or omittedCommand value
1Feedback value
  • SYNC command execution will be completed when the trailing operation is completed and the synchronization is established.
  • During the command execution, the command code "0018h" is output to the system variable "Command execution status" (SW0228 for Axis 1). (For details of command codes, see 4-5 System Variables Command Code in Command Execution Status on page 158.)

OMRON CJ1W-MCH71 - Description - 1

Synchronization Cancel (SYNCR)

Synchronous operation executed with the synchronous command is cancelled.

Command type

Single execution command

Format

SYNCR_[]{} ---8---;

Ex:SYNCR_[J02];

Operand

Axis name: J01 to J32

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
Travel distance for deceleration stop0 to 2147483647YesNoYes (See note 1.)YesYes (See note 2.)YesNo (See note 3.)

Note

(1) Word data is extended to long word data with a sign in the MC Unit.
(2) The actual value is determined by the setting value of the parameter [P5AA02: Position command decimal point position].
(3) There is no influence. INC specification is always used.

Description

  • Synchronization started with MOVELINK, CAMBOX, CONNECT, or SYNC command is canceled with deceleration stop.
  • The slave axis not performing synchronous operation is ignored.
  • The speed for deceleration stop follows the speed specified in the parameter [P2AA03: Rapid feed rate]. So, acceleration or deceleration may occur depending on the speed at the start of command execution.
  • The deceleration for deceleration stop observes the speed determined by the setting values in the parameter [P2AA03: Maximum rapid feed rate] and [P2AA06: Rapid feed deceleration time].
  • When Travel distance for deceleration stop is not specified, behavior will vary depending on the command.
CommandBehavior
MOVELINKImmediate stop
CAMBOXImmediate stop
CONNECTImmediate stop
SYNCDeceleration stop with the specified deceleration
  • If Travel distance for deceleration stop is smaller than the distance required for deceleration stop from the current speed (speed of the previous scan), return operation is performed after the deceleration stop.
  • SYNCRC command execution will be completed when positioning (including the return operation) for all the specified axes are completed (in-position).
  • During the command execution, the command code "0029h" is output to the system variable "Command execution status" (SW0228 for Axis 1). However, when the travel distance specification is omitted, the command code of the corresponding synchronous command is held. (For details of command codes, see 4-5 System Variables Command Code in Command Execution Status on page 158.)

Travel Distance Superimpose/Travel Distance Superimpose Cancel (ADDAX/ADDAXR)

The travel distance of the specified master axis is superimposed onto the slave axis operation.

Command type

Single execution command

Format

ADDAX_[] [] {B;

ADDAXR_{{[] ---8---};}

Ex: ADDAX[J02] [J01];

ADDAXR_[J02];

Operand

Axis name: J01 to J32

OperandSetting rangeDecimalVariable specificationINC/ABL influence
BitWordLong wordReal numberIndirect specification
Master axis classification0 or 1NoNoYes (See note 1.)YesYes (See note 2.)YesNo

Note

(1) Word data is extended to long word data with a sign in the MC Unit.
(2) Figures below the decimal point are to be omitted.

Description

  • The travel distance of the specified master axis is superimposed onto the slave axis operation.
  • Master axis classification determines whether to synchronize the slave axis with the master axis command value or feedback value.
Master axis classificationMaster axis value to synchronize with
0 or omittedCommand value
1Feedback value
  • Executing another ADDAX command on the axis that is already in superimposing operation can establish new superimposing relations (overwritten).
  • If the speed in superimposition exceeds the speed specified in the parameter [P2AA01: Maximum rapid feed rate], the alarm [3011h: Synchronizing slave axis excessive speed] will occur.
  • ADDAX command execution will be completed when superimposition is established.

  • If Slave axis name is omitted in ADDAXR command, all the superimposition being executed in the same motion task will be cancelled.

  • ADDAXR command execution will be completed when superimposition is cancelled.
  • During the command execution, the command code "0019h" is output to the system variable "Command execution status" (SW0228 for Axis 1). (For details of command codes, see 4-5 System Variables Command Code in Command Execution Status on page 158.)

OMRON CJ1W-MCH71 - Description - 1

Caution

When a command that has waiting conditions such as Stop Mode is executed on the slave axis, the waiting conditions may not be satisfied in some cases. See the following example:

Ex:

... ADDAX [J02] [J01];

PARALLEL N2;

MOVE [J01]1000.;

JOINT;

MOVE [J02] 500;

J02 is the slave axis in the superimposition. Positioning only up to 500. is not sufficient for in-position, which means that the MOVE command cannot be completed. Practically, it will be completed after the movement of [J01] (2 lines before) is completed. To avoid waiting for completion of [J01], it is necessary to replace use MOVEL in Pass Mode, etc.

Speed Control/Speed Control Cancel (SPEED/SPEEDR)

The speed of the axis is controlled in the speed control mode.

Command type

Single execution command

Format

SPEED_[] ---8--- T< speed change rate>;

SPEEDR_[] ---8----T;

Ex: SPEED_[J01]100.00 [J02]100.00 T100;
SPEEDR
[J01] [J02] _T100;

Operand
Axis Name: J01 to J32

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
Speed command valueSee note 1.YesNoYes (See note 2.)YesYes (See note 3.)YesNo (See note 4.)
Speed change rate0 to 60000msNoNoYes (See note 2.)YesYesYesNo

Note

(1) With Rated % specification (P00004 bit2 = 0):

This is the % specification for the motor rated rotations in the unit of 0.01% . The setting range is -500000 to 500000.

If the value 10000 is set, it is interpreted as 100% of the rated rotations.

The maximum speed in actual operations is limited by the maximum rotation speed of the motor.

With r/min specification (P00004 bit2 = 1):

This is the specification of rotations (r/min) in the unit of 0.01 r/min. Setting range is -10000000 to 10000000.

If the value 300000 is set, it is interpreted as 3000r / min

The maximum speed in actual operations is limited by the maximum rotation speed of the motor.

(2) Word data is extended to long word data with a sign in the MC Unit.
(3) With Rated % specification (P00004 bit2 = 0)

The minimum command unit is 0.01% .

The actual value = (Decimal immediate value or Variable of real number type) × 10^2

Figures below the decimal point are to be omitted.

In case of r/min specification (P00004 bit2 = 1)

The minimum command unit is 0.01% .

The actual value = ((Decimal immediate value or Variable of real number type) × 10²)

Figures below the decimal point are to be omitted.

(4) There is no influence. ABL specification is always used.

Description

  • The speed command is output to the specified axis.
  • The speed command unit is specified in the parameter [P00004.bit02: Unit function select, Speed command value]

[P00004.bit02] = 0 [0.01% of the rated speed]

[P00004.bit02] = 1 [0.01r/min]

  • If Speed change rate is set to 0, the specified speed is output instantly. (If the mode is switched from other mode to the speed control mode, this value can be used as the output speed default value.)
  • The Speed change rate is enabled for all the specified axes.
  • SPEED command execution will be completed when the speed command for all the specified axes reaches Speed command value.
  • The SPEEDDR command is processed as follows:

(1) The speed command is decelerated for all specified axes according to the speed change rate and the speed command is output as 0.
(2) The system waits until the feedback speed equals the speed in P3AA09 or lower.
(3) The mode is switched to positioning control mode and the system waits for the completion of positioning.

(4) Command execution is completed.

  • During the command execution, the command code "001Ah" is output to the system variable "Command execution status" (SW0228 for Axis 1). (For details of command codes, see 4-5 System Variables Command Code in Command Execution Status on page 158.)

Caution

The maximum time required from starting SPEED command to completing the command is 136ms + (Actual acceleration time/unit cycle).

OMRON CJ1W-MCH71 - Caution - 1

  • When executing the SPEED command, the following axis command position values are output to system variables (refer to 4-5 System Variables).

Current coordinate command position: Same value as current coordinate FB position

Machine coordinate current position: Same value as machine coordinate FB position

  • If MOVE command is executed without SPEEDR command, the mode can be switched from the speed control mode to the position control mode. To change the speed of SPEED command being executed to the rapid feed rate of MOVE command smoothly, the system automatically reads the position loop gain before starting execution of SPEED command except for the following cases:

1) When the position loop gain before execution of SPEED command is different from the position loop gain right after transition to the MOVE command.
2) When the position loop gain could not be read successfully due to incorrect setting of the servo reading parameter.

In order to prevent shock, follow the instructions below:

  • Do not use MOVE command right after acceleration or deceleration.
  • Set the unit cycle and communication cycle to be the same.
  • Decrease the speed specified in SPEED command.

  • The Speed change rate of SPEED/SPEEDR specifies the time to reach the motor rated speed from zero.

Program Image

SPEED [J01] T ; Speed control started

SPEED [J01]T ; Speed changed

SPEED [J01] T ; Speed and direction changed

SPEEDR [J01] T ; Speed control completed

OMRON CJ1W-MCH71 - Caution - 2

Torque Control/

Torque Control cancel (TORQUE/TORQUER)

The axes Torque can be controlled in Torque Control mode.

Command type

Single execution command

Format

TORQUE_[] ---8--- T;

TORQUER_[] ---8---_T;

Ex: TORQUE_[J01]100.00 [J02]100.00 _T100;

TORQUER_[J01][J02]_T100;

Operand

Axis name: J01 to J32

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
Torque command value-10000 to 10000 (See note 1.)NoNoYes (See note 2.)YesYes (See note 3.)YesNo (See note 4.)
Torque change rate0 to 60000msYesNoYes (See note 2.)YesNoYesNo

Note

(1) This is the % specification for the maximum motor torque in the unit of 0.01% . When the value 10000 is set, it is interpreted as 100% of the maximum torque. The maximum motor torque limits the maximum torque in actual operations.
(2) Word data is extended to long word data with a sign in the MC Unit.
(3) The minimum command unit is 0.01% . Real value = (Decimal immediate value or Variable of real number type) × 10^2 Figures below the decimal point are to be omitted.
(4) There is no influence. ABL specification is always used.

Description

  • The torque command is output to the specified axis. (Torque value on the motor axis is controlled.)
  • The torque command unit is fixed at 0.01% of the maximum torque.
  • If Torque change rate is set to 0, the specified torque is output instantly (If the mode is switched from other mode to the torque control mode, this value can be used as the output torque default value.)
  • Torque change rate is enabled for all the specified axes.
  • TORQUE command execution will be completed when the torque command for all the specified axes reaches Torque command value.
  • The TORQUER command is processed as follows:

(1) The torque command is deceleration for all specified axes according to the torque change rate and the torque command is output as 0.
(2) The system waits until the feedback speed equals the speed in P3AA09 or lower.
(3) The mode is switched to positioning control mode and the system waits for the completion of positioning.
(4) Command execution is completed.

  • During the command execution, the command code "001Bh" is output to the system variable "Command execution status" (SW0228 for Axis 1). (For details of command codes, see 4-5 System Variables Command Code in Command Execution Status on page 158.)

OMRON CJ1W-MCH71 - Description - 1

  • Torque change rate of TORQUE/TORQUER specifies the time to reach the motor maximum torque from 0.
Program image   
TORQUE [J01]<Tq1>T <T1>; Torque control started TORQUE [J01]<Tq2>T <T2>; Torque changed TORQUE [J01]<Tq3>T <T3>; Torque and direction changed TORQUER [J01] T <T4>; Torque control completed 

OMRON CJ1W-MCH71 - Description - 2

Caution

When executing the TORQUE command, the following axis command position values are output to system variables (refer to 4-5 System Variables).

Command speed 1: Same value as feedback speed 1

Command speed 2: Same value as feedback speed 2

6-3-4 Setting Command

Target Position Change (MOVEMODI)

The target position of the positioning command currently being executed is changed.

Command type

Multiple execution command

Format

MOVEMODI_[] --8--;

Ex: MOVEMODI_[J01]100.00 [J02]200.00;

Operand

Axis name: J01 to J32

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
Changed target posi- tion-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 2.)YesNo (See note 3.)

Note

(1) Word data is extended to long word data with a sign in the MC Unit.
(2) The actual value is determined by the setting value of the parameter [P5AA02: Position command decimal point position].
(3) There is no influence. ABL specification is always used.

Description

  • The target position of the axis being operated with MOVE command or MOVEL command of 1 axis specification in Stop Mode is changed to Changed target position.
  • MOVEMODI command is ignored during execution of commands other than the above or when it is executed for the axis not operating.
  • Changed target position is treated as the absolute position on the coordinate system currently being selected.
  • If Changed target position has already been passed, return operation is performed.
  • The relations between the remaining travel distance and acceleration/ deceleration on the axis of MOVEMODI object are as shown in the table below:
Speed statusRemaining travel distance
When remaining travel distance is increasedWhen remaining travel distance is decreased
In accelerationKeeps acceleratingIf there is still sufficient travel distance left, acceleration is maintained. If there is not sufficient travel distance, deceleration stop is executed and return operation is performed.
At constant speedStays at constant speedIf there is still sufficient travel distance left, constant speed is maintained. If there is not sufficient travel distance, deceleration stop is executed and return operation is performed.
In deceleration (Due to insufficient remaining travel distance)Stops decelerating and accelerates againDeceleration stop is executed and return operation is performed.
  • MOVEMODI command execution is completed when the target position is changed internally and completed successfully. There is no influence of the operation status of the axis whose target position has been changed.

OMRON CJ1W-MCH71 - Description - 1

Absolute Specification (ABL)

Command type

Format

Operand

Description

Incremental Specification (INC)

Command type

Format

Operand

Description

In axis operations, positioning is performed with absolute specification on each coordinate system.

Multiple execution command

ABL;

ABL_;

Ex: ABL_MOVE [J01]1000.00 [J02]2000.00;

Nil

Command values after ABL command are interpreted as absolute (target value) specification.

In axis operations, positioning is performed with relative specification.

Multiple execution command

INC;

INC_;

Ex: INC_MOVE [J01]1000.00 [J02]2000.00;

Nil

Command values after INC command are interpreted as incremental (incremental value) specification.

Change Parameter Value (PARAM)

The setting of the specified parameter is changed.

Command type

Single execution command

Format

PARAM_P = ;

PARAM_[[axis name>] = ;

Ex: PARAM P1 = 2;

Operand

Axis name: J01 to J32

OperandSetting rangeDecimalVariable specificationINC/ABL influence
BitWordLong wordReal numberIndirect specification
Parameter number0 to 65535NoNoYes (See note 1.)YesYes (See note 2.)YesNo
Parameter setting value-2147483648 to 2147483647NoNoYes (See note 1.)YesYes (See note 2.)YesNo
Servo parameter number000 to 8FF [Hex]NoNoYes (See note 1.)YesYes (See note 2.)YesNo

Note

(1) Word data is extended to long word data with a sign in the MC Unit.
(2) The actual value is determined by the setting value of the parameter [P5AA02: Position command decimal point position].

Description

  • System parameters or servo parameters are changed.
  • Only one parameter can be changed per command.
  • From a motion task, only system parameters related to the motion task itself and only system parameters or servo parameters related to the axis reserved by axis declaration can be changed.
  • The parameters that can be changed using PARAM command are the ones that can be changed after power is turned ON (i.e. the parameters that can be changed without turning OFF the power once, then ON again). If a parameter that cannot be changed is changed, the alarm [2019h: Parameter setting error] will occur.
  • Parameters changed using PARAM command remains enabled until any one of the following is executed:

  • Power is turned ON or Unit is restarted.

  • PARAM command is executed.
  • Parameter is changed using IOWR instruction.
  • Parameter is downloaded from a the Support Tool.

  • PARAM command execution will be completed when the parameter is overwritten successfully.

Caution

The following time is required from when the PARAM command execution starts until execution is completed.

Parameter typeUnit cycle Tm (ms)Execution time (ms)
Servo driver parame-ters1 ms, 2 ms{ (20/Tm) × 3 + 2} × Tm to { (20/Tm) × 4 + 2} × Tm
3 ms, 4 ms, 6 ms, or 8 ms{ (20/Tm) × 4 + 2} × Tm to { (20/Tm) × 5 + 2} × Tm
Other parameters1 ms, 2 ms, 3 ms, 4 ms, 6 ms, or 8 ms{ (20/Tm) × 1 + 2} × Tm to { (20/Tm) × 2 + 2} × Tm

For example, when changing the interpolation feed speed for motion task parameters with a unit cycle of 2 ms, the execution time will be 24 to 44 ms.

Pass Mode (PASSMODE)

The operating mode is switched to Pass Mode.

Command type

Multiple execution command

Format

PASSMODE;

Ex:PASSMODE;

Operand

Nil

Description

  • Interpolation blocks (MOVEL/MOVEC/MOVETRAV) after PASSMODE command are executed in Pass Mode.

Interpolation 1

Interpolation 2

Interpolation 3

  • There are four modes for linking speeds, one of which can be selected in the parameter [P00M06: Pass mode select].
P00M06NameOperation
0Interpolation acceleration time + Acceleration disabledOperation proceeds to the next using interpolation acceleration time of the previous block.
1Interpolation deceleration time+ Acceleration disabledOperation proceeds to the next using interpolation deceleration time of the previous block.
2Interpolation acceleration time+ Acceleration enabledOperation proceeds to the next using interpolation acceleration time of the previous block. For 1-axis linear interpolation, speeds are changed with fixed acceleration/deceleration.
3Interpolation deceleration time+ Acceleration enabledOperation proceeds to the next using interpolation deceleration time of the previous block. For 1-axis linear interpolation, speeds are changed with fixed acceleration/deceleration.

Stop Mode (STOPMODE)

The operating mode is switched to Stop Mode.

Command type

Multiple execution command

Format

STOPMODE;

Ex: STOPMODE;

Operand

Nil

Description

Interpolation blocks (MOVEL/MOVEC/MOVETRAV) following STOPMODE command proceeds to the next block after entering No. 2 in-position range specified in the parameter [P3AA07: No.2 in-position range]. (Interpolation for the next block will start after speed decreases to 0 and positioning enters No.2 in-position range.)

OMRON CJ1W-MCH71 - Description - 1
Interpolation for the next block will be executed after the previous block enters No.2 in-position range.

Machine Coordinate System Select (ORIGIN)Coordinate system is switched to the machine coordinate system.
Command typeSingle execution command
FormatORIGIN; Ex: ORIGIN;
OperandNil
Description• Coordinate values after ORIGIN command are treated as values on the machine coordinate system. Note Defining an origin using origin search, etc. sets the machine coordinate system. • All the axes that are declared with the previous PROG command (main PROG for main programs, sub PROG for subprograms) are the objects of ORIGIN command. • The selected coordinate system will stay enabled until ORIGIN/WORK commands are executed, or until a new program execution is started.
Workpiece Coordinate System Select (WORK)Coordinate system is switched to the workpiece coordinate system.
Command typeSingle execution command
FormatWORK_C<workpiece coordinate system number>; Ex: WORK_C1;

Operand

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
Workpiece coordi- nate system number1, 2, or 3 (See note 3.)NoNoYes (See note 1.)YesYes (See note 2.)YesNo

Note

(1) Word data is extended to long word data with a sign in the MC Unit.
(2) Figures below the decimal point are to be omitted.
(3) There are three workpiece coordinate systems for each axis.

Description

  • Coordinate values after WORK command are treated as values on the workpiece coordinate system.
  • There are three workpiece coordinate systems for each axis, and they are specified using coordinate system numbers.
  • All the axes that are declared with the previous PROG command (main PROG for main programs, sub PROG for subprograms) are the objects of WORK command.
  • Workpiece coordinate system will stay enabled until ORIGIN/WORK is executed, or until a new program execution is started.
  • Offsets for the workpiece coordinate systems against the machine coordinate system are set with OFFPOS command.

OMRON CJ1W-MCH71 - Description - 1

Workpiece Coordinate System Offset Change (OFFPOS)

The offset value of the workpiece coordinate system is changed.

Command type

Multiple execution command

Format

OFFPOS_C [] ---8---;

Ex: OFFPOS_C1 [J01]10.00 [J02]-100.00;

Operand

OperandSetting rangeDecimalVariable specificationINC/ABL influence
BitWordLong wordReal numberIndirect specification
Workpiece coordinate system number1, 2, or 3NoNoYes (See note 1.)YesYes (See note 2.)YesNo
Workpiece coordinate system offset value-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 3.)YesNo (See note 3.)

Note

(1) Word data is extended to long word data with a sign in the MC Unit.
(2) Figures below the decimal point are to be omitted.
(3) The actual value is determined by the setting value of the parameter [P5AA02: Position command decimal point position].
(4) There is no influence. INC specification is always used.

Description

  • Offset value of the workpiece coordinate system is changed.
  • The offset amount between the machine coordinate system origin and the workpiece coordinate system origin is specified in Workpiece coordinate system offset value.

  • The workpiece coordinate system offset value specified will be enabled when WORK command is executed. It means that the offset value will not be reflected in the operation until WORK command is executed again when using the coordinate system specified with Workpiece coordinate system number.

  • Workpiece coordinate system offset value specified will stay enabled until OFFPOS command is executed again.

Present Position Latch (LATCH)

The present position of the specified axis is stored.

Command type

Single execution command

Format

Axis name: J01 to J32

OperandSetting rangeDecimalVariable specificationINC/ABL influence
BitWordLong wordReal numberIndirect specification
Latch position storing variableR/W variable addressNoNoNoYesNoNoNo
Latch check start position-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 2.)YesNo (See note 3.)
Latch check end position-2147483648 to 2147483647YesNoYes (See note 1.)YesYes (See note 2.)YesNo (See note 3.)

Note

(1) Word data is extended to long word data with a sign in the MC Unit.
(2) The actual value is determined by the setting value of the parameter [P5AA02: Position command decimal point position].
(3) There is no influence. ABL specification is always used.

Description

  • The position of the specified axis is stored.
  • The latched position is assigned in Latch position storing variable.
  • Latch signal is accepted only in the sections specified in Latch check start position and Latch check end position.
  • The latch position assigned in Latch position storing variable, Latch check start position, and Latch check end position are values on the coordinate system currently being selected.
  • Present position latch is performed as shown below depending on the relations between Latch check start position and Latch check end position.
SpecificationOperation
Both start position and end position are omittedAccepting section is not specified.
Lower limitUpper limit
Start position is omittedAccepting section: Start position and after
Lower limit Start positionUpper limit
SpecificationOperation
End position is omittedAccepting section: End position and before
Lower limit End position Upper limit
Start position<End positionAccepting section: Start position and after, End position and before
Lower limit Start position End position Upper limit
Start position>End positionAccepting section: End position and before, Start position and after
Lower limit End position Start position Upper limit
Start position = End positionEnds latch check operation being executed
Lower limit Upper limit

Note Both lower and upper limits indicate the lower and upper limits of each coordinate system.

  • The latch check operation is ended by one of the following operations:
  • LATCH command is executed as Latch check start position = Latch check end position
  • END Command execution
  • LATCH command execution will be completed when latch check operation is started.
  • It may take 260ms max. (Latch startup time) until the MC Unit becomes able to actually accept the latch signal after starting LATCH command.

Note For details, see Appendix A Performance Calculation Method for the Counter Latch Startup Time on page 666.

  • As shown below, it takes the following time periods until the MC Unit becomes able to accept another LATCH command after completion of a LATCH command:

  • When Unit cycle: Communication cycle = 1: 1 6 × Unit cycle

  • When Unit cycle: Communication cycle = 2:1 4 × Unit cycle

  • Do not restart the MC Unit, or restore power only to the MC unit (including temporary power interruption) when the Unit is waiting for a latch signal after executing LATCH command in which the latch check position has been specified. When Latch check start/end positions are specified in LATCH command, the motor parameters [900A: Latch range (+) No.] and [900B: Latch range (-) No.] in the servo driver will be automatically updated. Restarting the MC Unit or restoring power only to the MC unit (including temporary power interruption) at this point will not bring back the parameter settings before being updated. In addition, executing an origin search, etc. using a latch signal under this condition may cause the axis to operate in an unexpected way since the latch signal input outside of the latch check range cannot be detected.

  • Especially, be cautious of temporary power interruption since it is impossible to know when it happens. Should it happen on the MC unit, make sure to clear the latch check range by setting the servo driver so that its power is also restored when it happens, or by using the following programs when restarting the MC Unit:

1,2,3... 1. Execute the program that only clears the latch check range:

Execute LATCH command to clear the range (Example 1)

PROG Pxxx Qxxxxxxxx; Program started

LATCH [Jxx] #xxxxxxxx; Latch range cleared (Latch resource acquired)

END; Program completed (Latch resource released)

Execute PARAM command to clear the range (Example 2)

PROG Pxxx Qxxxxxxxx; Program started

PARAM [Jxx]820 = 0; Servo parameter positive latch possible range cleared

PARAM [Jxx]822 = 0; Servo parameter negative latch possible range cleared

END; Program completed

  1. Add a command that intentionally clears the range before executing origin search, etc.:

Execute LATCH command to clear the range (Example 3)

LATCH [Jxx] #xxxxxxxx; Latch range cleared (latch resource acquired)

LATCH [Jxx] #xxxxxxxx 10 J0; Latch resource released

DATUM [Jxx]; Origin search

Execute PARAM command to clear the range (Example 4)

PARAM [Jxx]820 = 0; Servo parameter positive latch possible range cleared

PARAM [Jxx]822 = 0; Servo parameter negative latch possible range cleared

DATUM [Jxx]; Origin search

Single Block Ignored (NSTOP)

In single block mode, the block specified with NSTOP command does not stop at the end of the block and proceeds to the next block.

Command type

Not executed as an independent command (no type).

Format

NSTOP_;

Ex: NSTOP_MOVE [J01]100.00 [J02]-300.00;

Operand

Nil

Description

  • In single block mode, the block with NSTOP command at the beginning does not stop at the end of the block and proceeds to the next block.
  • When the motion task control bit [Block stop] is turned ON, stopping the operation is prioritized and the block is stopped regardless of this command's influence.

6-3-5 Control Command

Program Start (PROG)

The Program Start (PROG) command declares axes to be used in the program.

Command type

Multiple execution command

Format

PROG_P Q;

Ex: PROG_P1000 Q0000000F;

Operand

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
Program number0 to 1999NoNoNoNoNoNoNo
Axis declaration00000000 to FFFFFFF [hex]NoNoNoNoNoNoNo

Description

  • Program is started and axes to be used in the program are declared.
  • If this command is omitted, programs cannot be loaded.
  • Axis declaration describes the 32-bit string in hexadecimal corresponding to the physical axis numbers.

Example: If physical axes J02, J03, J04, J12, and J14 are used, program [PROG P000 Q0000280E;].

J32J31J30J29J28J27J26J25J24J23J22J21J20J19J18J17J16J15J14J13J12J11J10J09J08J07J06J05J04J03J02J01
OOOOO
0000280
  • The commands to axes are valid only if they have been issued to the declared axes (no restriction on the commands using I/O variables).
  • There is no restriction on referencing the axis in such case where an axis is used as a master axis in synchronization.
  • If PROG command is not present at the beginning of a program, the program cannot be loaded.
  • If the declared axis cannot be reserved due to the following reasons when motion main program is started, a warning will occur, and the motion program status bit: Start warning is turned ON.

  • Axis status bit: Command disabled/enabled is OFF.

  • Axis status bit: Axis not used/used is ON.
  • Axis status bit: Manual/Automatic mode is OFF.

  • If the axis declared in a sub-program cannot be reserved when calling a motion sub-program (when the axis is used in the main program, or in the sub-program called by the same main program), the alarm [2007h: Axis reservation disable] will occur.

  • The axis declared in a sub-program cannot be used for the main program that called the sub-program. The alarm [2007h: Axis reservation disable] will occur.

Program End (END)

The END command ends the main program.

Command type

Single execution command

Format

END;

Ex: END;

Operand

Nil

Description

  • END command ends the main program.
  • If END command is not present in the main program, the program cannot be loaded.

  • END command cancels axis operation commands (MOVELINK/CAMBOX/CONNECT/ADDAX/SYNC/ SPEED/TORQUE) being executed.

  • In execution of axis operation commands other than the above, END command execution will be completed after the axis status bits [Positioning completed] (x+32, bit06 for Axis 1) for all the axes operated with the program are turned ON (1).
  • Modal data is initialized according to the default setting (motion task).
  • All the axes reserved by axis declaration are released.
  • End command execution will be completed when all the processing above is completed.

Sub-Program Call (GOSUB)

The specified sub-program is called.

Command type

Single execution command

Format

GOSUB_PP sub-program number

Ex: GOSUB_P500;

Operand

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
Sub-program num- ber500 to 999 1500 to 1999NoNoYes (See note 1.)YesYes (See note 2.)YesNo

Note

(1) Word data is extended to long word data with a sign in the MC Unit.
(2) Figures below the decimal point are to be omitted.

Description

  • Sub-programs are executed.
  • Sub-programs can be nested up to 5 levels.
  • If the nesting limit is exceeded, the alarm [2002h: Sub-program nesting error] will occur.
  • GOSUB command execution will be completed when the operation moves to the sub-program successfully.

OMRON CJ1W-MCH71 - Description - 1

Sub-Program End (RETURN)Sub-program is ended.
Command typeSingle execution command
FormatRETURN; Ex: RETURN;
OperandNil
Description· Sub-program is ended and the operation returns to the program that called the sub-program. · If RETURN command is not present in a sub-program, the program cannot be loaded. · All the axes reserved by axis declaration are returned to the main program. · RETURN command execution will be completed when the operation returns the program that called the sub-program.
Dwell Time (DWELL)The operation waits for the specified time period.
Command typeSingle execution command
FormatDWELL_T<dwell time>; Ex: DWELL_T100;

Operand

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
Dwell time0 to 60000NoNoYes (See note.)YesNoYesNo

Note Word data is extended to long word data with a sign in the MC Unit.

Description

  • The operation waits for the time period specified in Dwell time. The unit is in [ms].
  • During DWELL command execution, if the motion program is stopped (except for block stop), waiting will be cancelled. When the program is resumed with the motion task control bit: [Start Mode] = 1 (resume from where the operation was stopped), waiting will be resumed for the remaining time.
  • DWELL command is not an axis movement command, however, it is the cancel object of STOPOP command. When it is cancelled, waiting will be immediately cancelled and the command execution is completed.
  • DWELL command execution will be completed when the specified waiting time period elapses.

Wait for Condition to be Met (WAIT) The next block will not be executed until the conditional expression is satisfied.

Command type

Multiple execution command

Format

WAIT_

Ex:WAIT_#DW0001 = = 1

The formats of conditional expressions are shown in the following table. Immediate values and variables are the only comparison objects. If a different data type is used, an alarm will occur in pre-analysis.

Conditional ExpressionFormat
Equal to(Immediate value or Variable) == (Immediate value or Variable)
Not equal to(Immediate value or Variable)<> (Immediate value or Variable)
Greater than(Immediate value or Variable)>(Immediate value or Variable)
Less than(Immediate value or Variable)<(Immediate value or Variable)
Equal to or greater than(Immediate value or Variable) >= (Immediate value or Variable)
Equal to or less than(Immediate value or Variable) <= (Immediate value or Variable)

Operand

Description

Nil

  • The next block will not be executed until Conditional expression is satisfied.
  • If the motion program is stopped (except for block stop) during WAIT command execution, waiting for condition to be satisfied is cancelled and the command execution is completed. It means that waiting will not be resumed even if it is re-started with the motion task control bit: [Start Mode] = 1 (resume from where the operation was stopped).
  • DWELL command is not an axis movement command, however, it is the cancel object of STOPOP command. When it is cancelled, waiting for condition to be satisfied will be immediately cancelled and the command execution is completed.
  • WAIT command execution will be completed when the conditional expression is satisfied.
  • The operation when the program restarts after operation is stopped using deceleration stop or other inputs while WAIT command execution is in effect is shown in the following table.
Unit versionStartup in start mode 1Startup in start mode 2
Units before Unit Ver. 3.0Executes next block after the WAIT command.Executes next block after the WAIT command.
Unit Ver. 3.0 or laterRe-executes the WAIT command.Executes next block after the WAIT command.

Optional End (STOPOP)

Command type

Format

If the conditional expression is satisfied, execution of the next block will be interrupted and then the block after the interrupted block will be executed.

Single execution command

STOPOP_;

Ex: STOPOP_#DW0001 = = 1;

The formats of conditional expressions are shown in the following table. Immediate values and variables are the only comparison objects. If a different data type is used, an alarm will occur in pre-analysis.

Conditional ExpressionFormat
Equal to(Immediate value or Variable) == (Immediate value or Variable)
Not equal to(Immediate value or Variable)<> (Immediate value or Variable)
Greater than(Immediate value or Variable)>(Immediate value or Variable)
Less than(Immediate value or Variable)<(Immediate value or Variable)
Conditional ExpressionFormat
Equal to or greater than(Immediate value or Variable) >= (Immediate value or Variable)
Equal to or less than(Immediate value or Variable) <= (Immediate value or Variable)
OperandNil
DescriptionIf the conditional expression is satisfied, execution of the next block is interrupted. Checking the conditional expression will be completed when execution of [Block to end the operation midway] is completed. Commands that can be interrupted are all the axis movement commands, DWELL command, and WAIT command. STOPOP command execution will be completed when condition settings are completed inside the system. Ex:STOPOP #DW0001 == 1; MOVE [J01] 10000; Axis travel command #DW0002 = 1; If #DW0001 becomes 1 during execution of MOVE, MOVE is interrupted, #DW0002 is set to 1 and then the next block is executed.
Conditional Branching (IF ELSE ENDIF)If the conditional expression is satisfied, processing 1 will be executed. If the conditional expression is not satisfied, processing 2 will be executed.
Command typeIF: Multiple execution command ELSE: Multiple execution command ENDIF: Multiple execution command
FormatIF_<conditional expression>; <processing 1> {ELSE; <processing 2>} ENDIF; Ex: IF #DW0001 == 1; MOVE [J01]100.00 [J02]200.00; ELSE; MOVE [J03]-100.00 [J04]-10.00; ENDIF; The formats of conditional expressions are shown in the following table. Immediate values and variables are the only comparison objects. If a different data type is used, an alarm will occur in pre-analysis.
Conditional ExpressionFormat
Equal to(Immediate value or Variable) == (Immediate value or Variable)
Not equal to(Immediate value or Variable)<> (Immediate value or Variable)
Greater than(Immediate value or Variable)-(Immediate value or Variable)
Less than(Immediate value or Variable)< (Immediate value or Variable)
Equal to or greater than(Immediate value or Variable) >= (Immediate value or Variable)
Equal to or less than(Immediate value or Variable) <= (Immediate value or Variable)

Operand

Description

Nil

  • If the conditional expression is satisfied, processing 1 will be executed. If the conditional expression is not satisfied, processing 2 will be executed.
  • Processing 1 is described between IF and ELSE (can be described over multiple lines).
  • Processing 2 is described between ELSE and ENDIF (can be described over multiple lines).
  • ELSE and processing 2 can be omitted.

OMRON CJ1W-MCH71 - Nil - 1

Repeat While (WHILE...WEND)

Command type

While the conditional expression is being satisfied, processing between WHILE and WEND is repeatedly executed.

WHILE: Multiple execution command

WEND: Multiple execution command

Format

WHILE_;

WEND;

Ex: WHILE #DW0001 == 1;
INC MOVE [J01]100.00 [J02]200.00;
WEND;

The formats of conditional expressions are shown in the following table. Immediate values and variables are the only comparison objects. If a different data type is used, an alarm will occur in pre-analysis.

Conditional ExpressionFormat
Equal to(Immediate value or Variable) == (Immediate value or Variable)
Not equal to(Immediate value or Variable)<> (Immediate value or Variable)
Greater than(Immediate value or Variable)>(Immediate value or Variable)
Less than(Immediate value or Variable)<(Immediate value or Variable)
Equal to or greater than(Immediate value or Variable) >= (Immediate value or Variable)
Equal to or less than(Immediate value or Variable)<= (Immediate value or Variable)

Operand

Description

Nil

  • As long as the conditional expression is being satisfied, processing between WHILE and WEND is repeatedly executed.
  • Processing can be described over multiple lines.

OMRON CJ1W-MCH71 - Nil - 1

Repeat FOR (FOR...NEXT)

Processing is repeated for the specified number of times.

Command type

FOR: Multiple execution command
NEXT: Multiple execution command

Format

(← can be omitted)
FOR_W L S;

NEXT;
Ex: FOR_W#DL0002 L1000 S1;
INC MOVE [J01]100.00 [J02]200.00;
NEXT;

Operand

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
Work registers for repeat countVariableNoNoNoYesNoNoNo
Repeat end value1 to 2147483647NoNoYes (See note 1.)YesYes (See note 2.)YesNo
Number of increment steps-2147483648 to 2147483647NoNoYes (See note 1.)YesYes (See note 2.)YesNo

Note

(1) Word data is extended to long word data with a sign in the MC Unit.
(2) Figures below the decimal point are to be omitted.

Description

  • Processing between FOR and NEXT will be repeatedly executed until Work resisters for repeat count becomes equal to or greater than Repeat end value.
  • When decrementing (when No. of increment steps is signed "minus"), the condition will be until Repeat end value becomes equal to or greater than Work register for repeat count.
  • Number of increment steps specifies the incrementing amount of Work resisters for repeat count. If negative value is set, it will be the decrementing amount.

OMRON CJ1W-MCH71 - Description - 1

Parallel Execution (PARALLEL...JOINT... JWAIT)

Processing is branched and executed in parallel.

Command type

PARALLEL: Single execution command

JOINT: Single execution command

JWAIT: Single execution command

Format

PARALLEL_N;

JOINT;

JOINT;

···

JWAIT;

Ex:PARALLEL_N2;

INC MOVE [J01]100.00 [J02]200.00;

JOINT;

ABL MOVE [J03]-100.00 [J04]-50.00;

JWAIT;

Operand

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
Number of branches1 to 8NoNoNoNoNoNoNo

Description

  • Processing for the number of branches specified in PARALLEL command is executed in parallel.
  • The parallel branches queue at JWAIT command and parallel branching is completed.

  • The number of parallel branches can be specified with Number of branches. The maximum number of branches for the Unit is specified in the parameter [P00002: Number of parallel branches].
    If Number of branches exceeds the parameter setting, the alarm [200Dh: Count specification error] will occur.

  • PARALLEL command cannot be used in sub-programs. If used, the program cannot be loaded.
  • END and PARALLEL commands cannot be used within processing 1, 2, and N (program end and parallel branch nesting cannot be executed inside parallel branching).
    Each of processing 1, 2, and N can be described over multiple lines.
  • The following sequence is fixed when commands are executed in the order, processing 1, processing 2, and processing N.
  • When using "PARALLEL_N1", JOINT command cannot be described.

OMRON CJ1W-MCH71 - Description - 1

Selective Execution (SWITCH...CASE...BR EAK...SEND)

Processing is selected and executed depending on the value of the conditional variable.

Command type

SWITCH: Multiple execution command

CASE: Multiple execution command

BREAK: Multiple execution command

DEFAULT: Multiple execution command

SEND: Multiple execution command

Format

SWITCH_;

{CASE_;

BREAK;

CASE_;

BREAK;

---}

{DEFAULT;}

SEND;

EX: SWITCH #DW0000;
CASE 0;
ABL MOVE [J03]-100.00 [J04]-50.00;
BREAK;
CASE 1;
INC MOVE [J01]-200.00 [J02]50.00;
BREAK;
DEFAULT;
INC MOVE [J01]0.00 [J02]0.00 [J03]0.00 [J05]
SEND;

Operand

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
Conditional VariableVariableNoNoNoNoNoNoNo
Conditional constantOperation numerical value rangeYesNoNoNoNoNoNo

Description

  • If Conditional variable specified in SWITCH command matches Conditional constant specified in CASE command, only processing between CASE command with the matching constant and BREAK command will be executed.
  • If Conditional variable does not match Conditional constant in any of CASE commands, processing between DEFAULT and SEND commands will be executed. If DEFAULT block is omitted, nothing will be executed.
  • CASE command within processing 1, 2, and N is ignored, which means that the same processing can be executed under a different condition.
  • There is no limit on the number of CASE commands (actually, the number of blocks per program limits it).
  • SWITCH command cannot be used within processing 1, 2, and N (selective branches can not be nested).
  • Processing 1, 2, and N can be described over multiple lines.

OMRON CJ1W-MCH71 - Description - 1

No Operation (Single) (NOPS)

No processing will occur.

Command type

Single execution command

Format

NOPS;

Ex: NOPS;

Operand

Nil

Description

  • No processing will occur, however, NOPS command functions as a single execution command.
  • NOPS command is used when motion program stepping has to be coordinated.

Example of Use

In positioning processes, NOPS is used when outputting data such as providing interlocking for external devices, etc. External devices indicate devices that are directly connected to the PLC or the general-purpose output of the MC unit.

The program example is shown below:

Program

PROG P0001 Q00000001; Program declared.

MOVE [J01]200000; J01 moved to the position 200000

NOPS; Block stopped till completion of single execution command MOVE

IW0B00 = 0055; Value output in Unit Cycle of MC unit next to the one where

MOVE [J01]300000; single execution command NOPS was executed
NOPS; J01 moved to the position 300000

IW0B00 = 0000; Block stopped till completion of single execution command MOVE

END; Value output in Unit Cycle of MC unit next to the one where single execution command NOPS was executed.

Timing chart

OMRON CJ1W-MCH71 - Timing chart - 1

Note Without NOPS command, the value of #IW0B00 changes on the timing described below:

Program

PROG P0001 Q00000001; Program declared

MOVE [J01]200000; J01 moved to the position 200000

IW0B00 = 0055; Value output in Unit Cycle of MC unit next to the one where MOVE [J01]300000; single execution command MOVE was executed. (See note.)

IW0B00 = 0000; J01 moved to the position 300000

END; Value output in Unit Cycle of MC unit next to the one where

Single execution command MOVE was executed. (See note.)

Note Being a multiple execution command, they are output without waiting for completion of the single execution command MOVE.

Timing chart

OMRON CJ1W-MCH71 - Timing chart - 1

No Operation (Multiple) (NOPM)

Command type

Format

Operand

Description

No processing will occur.

Multiple execution command

NOPM;

Ex: NOPM;

Nil

  • No processing will occur, however, NOPM command functions as a multiple execution command.
  • NOPM command is used when motion program stepping has to be coordinated.

Example of Use

With parallel execution command, etc., NOPM command is used to match (or delayed) the timing as in starting operations of axes in the same Unit Scan, etc.

The program example is shown below:

Program

PROG P0001 Q00000001; Program declared PARALLEL N2;

PL0000 = #ILOB00 * 1000; Result of (ILOB00 x 1000) assigned to PL0000

PL0001 = #ILOB02 * 500; Result of (ILOB02 x 500) assigned to PL0001

MOVEL [J01]#PL0000 F#PL0001; J01 moved to the position PL0000 at the speed PL0001

JOINT;

PL0002 = #ILOB02 * 1000; Result of (ILOB02 x 1000) assigned to PL0002

NOPM; Stepping Adjusted for simultaneous start of [J01], [J02]

MOVEL [J02]#PL0000 F#PL0002; J02 moved to the position PL0000 at the speed PL0002

JWAIT;

END;

Timing chart

OMRON CJ1W-MCH71 - Timing chart - 1
A: Assignment expression

Note Without NOPM command, [J01] and [J02] are started on the timing described below:

Program

PROG P0001 Q00000001; Program declared PARALLEL N2;

PL0000 = #ILOB00 * 1000; Result of (ILOB00 x 1000) assigned to PL0000

PL0001 = #ILOB02 * 500; Result of (ILOB02 x 500) assigned to PL0001

MOVEL [J01]#PL0000 F#PL0001; J01 moved to the position PL0000 at the speed PL0001

JOINT;

PL0002 = #ILOB02 * 1000; Result of (ILOB02 x 1000) assigned to PL0002

MOVEL [J02]#PL0000 F#PL0002; J02 moved to the position PL0000 at the speed PL0002

JWAIT;

END;

Timing chart

OMRON CJ1W-MCH71 - Timing chart - 1
A: Assignment expression

6-3-6 Simple Arithmetic Operation

ASSIGN (=)

Values are assigned for the specified variable.

Command type

Multiple execution command

Format

= ;

Ex: #MF1000 = 123.45;

Operand

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
First termVariableNoYesYesYesYesNoNo
Second termOperation numerical value range (See note.)YesYesYesYesYesYesNo

Note Both immediate values and variables can use the values within the ranges defined for each type.

  • Integer immediate value: -2147483648 to 2147483647
  • Decimal immediate value: -2147483648. to 2147483647.
  • Bit type: 0, 1
  • Word type: -32768 to 32767
  • Long word type: -2147483648 to 2147483647
    Real number type: ± (1.175E - 38 to 3.402E + 38) ,0
  • Indirect specification type: 0 to 10239

Description

  • The value in the second term is assigned to the first term.
  • If the types are different on both sides, the type on the right is converted to that of the left.
  • If the value on the right side cannot be stored in the left side, the alarm [2005h: Operation overflow] will occur.

Precaution for Handling the Data Types

1,2,3... 1. Bit type

  • When the bit type is used, all the operands must be the bit type.
  • The integer immediate values 0 and 1 are treated as the bit type.

2. Types other than the bit type

  • Types other than the bit type are prioritized in the following order Real number type > Long word type > Word type
  • Operation is performed in the type of the highest priority, and the operation result will be stored after being converted to the type on the left.
  • The integer immediate value is treated as long word type, and the decimal immediate value is treated as real number type.

Simple Arithmetic

Operations (+, -, *, /, %, ^)

This command executes the specified simple arithmetic operations.

Command type

+, -, *, /, %, and ^: Not executed as an independent command (no type).

Format

= Operator ;

Ex: #MF1000 = #MF0010 + #MF0012;

Operand

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
First termVariableNoNoYesYesYesNoNo
Second termOperation numerical value range (See note.)YesNoYesYesYesYesNo
Third termOperation numerical value range (See note.)YesNoYesYesYesYesNo

Note Both immediate values and variables can use the values within the ranges defined for each type.

  • Integer immediate value: -2147483648 to 2147483647
  • Decimal immediate value: -2147483648. to 2147483647.
    Bit type: 0, 1
  • Word type: -32768 to 32767
  • Long word type: -2147483648 to 2147483647
    Real number type: ± (1.175E - 38 to 3.402E + 38) ,0
  • Indirect specification type: 0 to 10239

Description

  • The following operators are used in operations.
OperatorFunctionDescription
+AddAdds the 2nd and 3rd terms, and assigns the result to the 1st term.
-SubtractSubtracts the 3rd term from the 2nd, and assigns the result to the 1st term.
*MultiplyMultiplies the 2nd and 3rd terms, and assigns the result to the 1st term.
/DivideDivides the 2nd term by the 3rd, and assigns the result for the 1st term.
%ReminderRemainder from the division of the 2nd term by the 3rd is assigned to the 1st term.
^ExponentRaises the 2nd and the 3rd terms, and assigns the result for the 1st.
  • If the types are different on both sides, the type on the right is converted to that of the left.
  • If the value on the right side cannot be stored in the left side, the alarm [2005h: Operation overflow] will occur.

Precaution for Handling the Data Types

1,2,3... 1. Bit type

  • When the bit type is used, all the operands must be the bit type.
  • The integer immediate values 0 and 1 are treated as the bit type.

2. Types other than the bit type

  • Types other than the bit type are prioritized in the following order: Real number type > Long word type > Word type
  • Operation is performed in the type of the highest priority, and the operation result will be stored after being converted to the type on the left.
  • The integer immediate value is treated as long word type, and the decimal immediate value is treated as real number type.

6-3-7 Logic Operation

Logic Operations (!, &, ~)

This specified logic operation is executed.

Command type

,\& , and : Not executed as an independent command (no type).

Format

= Operator ;

Ex: #MW1000 = #MW0010 & #MW0011;

Operand

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
First termVariableNoYes (See note.)YesYesNoNoNo
Second term-2147483648 to 2147483647NoYes (See note.)YesYesNoYesNo
Third term-2147483648 to 2147483647NoYes (See note.)YesYesNoYesNo

Note For XOR (LOGICAL EXCLUSIVE OR) () , the bit type cannot be used for variables.

Description

  • The logic operation is executed with logic operators on each bit corresponding to the second and third terms. The result will be output to the bit corresponding to the first term.
Logic operatorFunctionDescription
|OR (LOGICAL OR)Assigns the LOGICAL OR (OR) of the 2nd and 3rd terms to the 1st term.
&AND (LOGICAL AND)Assigns the LOGICAL AND (AND) of the 2nd and 3rd terms to the 1st term.
~XOR (LOGICAL EXCLUSIVE OR)Assigns the LOGICAL EXCLUSIVE OR (XOR) of the 2nd and 3rd terms to the 1st term.
  • If the types are different on both sides, the type on the right is converted to that of the left.
  • If the value on the right side cannot be stored in the left side, the alarm [2005h: Operation overflow] will occur.

  • The table below shows the result of logic operations.

Second termThird termLogical OR (OR)Logical AND (AND)Logical exclusive OR (XOR)
00000
01101
10101
11110

Precaution for Handling the Data Types

1,2,3... 1. Bit type

  • When the bit type is used, all the operands must be the bit type.
  • The integer immediate values 0 and 1 are treated as the bit type.

2. Types other than the bit type

  • Types other than the bit type are prioritized in the following order: Real number type > Long word type > Word type
  • Operation is performed in the type of the highest priority, and the operation result will be stored after being converted to the type on the left.
  • The integer immediate value is treated as long word type, and the decimal immediate value is treated as real number type.

Logic NOT (REVERSE) (!)

This command reverses bits.

Command type

Not executed as an independent command (no type).

Format

$$ < \text {F i r s t} > =! < \text {S e c o n d} >; $$

$$ \text {E x :} # \text {M W 1 0 0 0} =! # \text {M W 0 0 1 0}; $$

Operand

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
First termVariableNoYesYesYesNoNoNo
Second term-2147483648 to 2147483647Yes (See note.)YesYesYesNoYesNo

Note Figures below the decimal point are to be omitted.

Description

  • The reversed bits (NOT) on the right side are assigned to the left side.
  • If the types are different on both sides, the type on the right is converted to that of the left.
  • If the value on the right side cannot be stored in the left side, the alarm [2005h: Operation overflow] will occur.

Precaution for Handling the Data Types

1,2,3... 1. Bit type

  • When the bit type is used, all the operands must be the bit type.
  • The integer immediate values 0 and 1 are treated as the bit type.

2. Types other than the bit type

  • Types other than the bit type are prioritized in the following order: Real number type > Long word type > Word type

  • Operation is performed in the type of the highest priority, and the operation result will be stored after being converted to the type on the left.

  • The integer immediate value is treated as long word type, and the decimal immediate value is treated as real number type.

6-3-8 Function

Functions

The specified function operation is executed.

The following functions can be executed; ABSOLUTE VALUE (ABS), SINE (SIN), COSINE (COS), TANGENT (TAN), ARC SINE (ASIN), ARC COSINE (ACOS), ARC TANGENT (ATAN), SQUARE ROOT (SQR), EXPONENT (EXP), NATURAL LOGARITHM (LOG), DECIMAL (FRAC), and SIGN (SGN).

Command type

ABS: Not executed as an independent command (no type).
SIN: Not executed as an independent command (no type).
COS: Not executed as an independent command (no type).
TAN: Not executed as an independent command (no type).
ASIN: Not executed as an independent command (no type).
ACOS: Not executed as an independent command (no type).
ATAN: Not executed as an independent command (no type).
SQR: Not executed as an independent command (no type).
EXP: Not executed as an independent command (no type).
LOG: Not executed as an independent command (no type).
FRAC: Not executed as an independent command (no type).
SGN: Not executed as an independent command (no type).

Format

= Function ;

Ex: #MF1000 = SIN #MF0010;

Operand

ABS (Absolute Value), SGN (Sign)

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
First termVariableYesNoYesYesYesNoNo
Second termOperation numerical value range (See note.)NoNoYesYesYesYesNo

SIN (SINE), COS (COSINE), ATAN (ARC TANGENT), SQR (SQUARE ROOT), EXP (EXPONENT), LOG (NATURAL LOGARITHM)

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
First termVariableYesNoYesNoYesNoNo
Second termOperation numerical value range (See note.)NoNoYesNoYesNoNo

TAN (TANGENT), ASIN (ARC SINE), ACOS (ARC COSINE), FRAC (DECIMAL)

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
First termVariableYesNoNoNoYesNoNo
Second termOperation numerical value range (See note.)NoNoNoNoYesNoNo

Note Both immediate values and variables can use the values within the ranges defined for each type.

  • Integer immediate value: -2147483648 to 2147483647
  • Decimal immediate value: -2147483648. to 2147483647.
    Bit type: 0, 1
  • Word type: -32768 to 32767
  • Long word type: -2147483648 to 2147483647
    Real number type: ± (1.175E - 38 to 3.402E + 38) ,0

Note that the inputs of ASIN, ACOS, and ATAN commands must be 1 or less.

  • Indirect specification type: 0 to 10239

Description
- The following functional operations are executed:

NotationFunctionDescription
ABSABSOLUTE VALUEFinds the absolute value of the specified data.
SINSINEIf the value on the right side is integer type: Input unit is [0.01deg]. The range of the specified data is -32768 to 32767 [0.01deg]. If input is outside the specified range, the alarm [200Fh: Other operand error] will occur. If the value on the right side is real number type: Input unit is [deg]. If the value on the left side is integer type: The value 10,000 times the actual result is output. If the value on the left side is real number type: The result is output as it is.
COSCOSINEFinds the cosine of the specified data. If the value on the right side is integer type: Input unit is [0.01deg]. The range of the specified data is -32768 to 32767 [0.01deg]. If input is outside the specified range, the alarm [200Fh: Other operand error] will occur. If the value on the right side is real number type: Input unit is [deg]. If the value is on the left side is integer type: The value 10,000 times the actual result is output. If the value on the left side is real number type: The result is output as it is.
TANTANGENTFinds the tangent of the specified data. The specified data is real number type only.
ASINARC SINEFinds the arc sine of the specified data. (Unit: [deg]) The specified data is real number type only.
ACOSARC COSINEFinds the arc cosine of the specified data. (Units: [deg])The specified data is real number type only.
ATANARC TANGENTFinds the arc tangent of the specified data. (Units: [deg])The specified data is real number type only.
SQRSQUARE ROOTFinds the square root of the specified data.
EXPEXPONENTFinds the exponent of the specified data.
LOGNATURAL LOG-ARITHMFinds the natural logarithm of the specified data. (Base: e)
FRACDECIMALExtracts the decimal portion of the specified data.
SGNSIGNExtracts the sign of the specified data.Value of specified data ≥ 0 → 1Value of specified data < 0 → -1
  • If the types are different on both sides, the type on the right is converted to that of the left.
  • If the value on the right side cannot be stored in the left side, the alarm [2005h: Operation overflow] will occur.

Precaution for Handling the Data Types

1,2,3... 1. Bit type

  • When the bit type is used, all the operands must be the bit type.
  • The integer immediate values 0 and 1 are treated as the bit type.

2. Types other than the bit type

  • Types other than the bit type are prioritized in the following order: Real number type > Long word type > Word type
  • Operation is performed in the type of the highest priority, and the operation result will be stored after being converted to the type on the left.
  • The integer immediate value is treated as long word type, and the decimal immediate value is treated as real number type.

6-3-9 Bit Operation

Specified Bit ON/OFF (SET/RESET)

According to the result of logic operation expression, the SET/RST command turns ON or OFF the specified bit of the specified variable.

Command type

SET: Not executed as an independent command (no type).
RESET: Not executed as an independent command (no type).

Format

= SET ;
= RESET ;
Ex: #MB01000 = SET #MB01001 & #MB01002;

Operand)

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
First termVariableNoYesNoNoNoNoNo

Description

  • If the logic operation expression on the right side is true, SET command turns ON the bit specified on the left side.
  • If the logic operation expression on the right side is true, RESET command turns OFF the bit specified on the left side.

  • If the logic operation expression is false, SET or RESET command does not turn ON or OFF the specified bit.

  • When the logic operation is executed on each corresponding bit with the logic operator on the right side and if there is any bit having the result of 1, it is considered to be true. On the other hand, if all the bits are 0, it is considered to be false.

Shift Right/Shift Left (SFTR/SFTL)

The Shift Right/Shift left (SFTR/SFTL) command shifts variables.

Command type

SFTR: Multiple execution command
SHTL: Multiple execution command

Format

SFTR_N;
SFTL_N;
Ex: SFTR #MW1000 N2;

Operand

OperandSetting rangeDecimalVariable specificationINC/ABL influ-ence
BitWordLong wordReal numberIndirect specifi-cation
Shift object VariableVariableNoNoYesYesNoNoNo
Shift amountWord type (See note.): 1 to 16 Long word type (See note.): 1 to 32NoNoYesNoNoNoNo

Note Setting range varies depending on the type of the shift object.

Description

  • SFTR command shifts Shift object variable to the right for the amount specified in Shift amount.
  • SFTL command shifts Shift object variable to the left for the amount specified in Shift amount.
  • SFTR and SFTL commands are executed only inside word or long word type variables.

6-3-10 Data Operation

BCD to BIN (BIN)

BCD data is converted into BIN data.

Command type

Not executed as an independent command (no type).

Format

= BIN;

Ex: #MW1000 = BIN #MW1001;

Operand

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
First termVariableNoNoYesYesNoNoNo
Second termWord type: 0-9999 (See note.) Long type: 0-99999999NoNoYesYesNoYesNo

Note Setting range when viewed as BCD data.

Description

  • BIN command converts the specified value (BCD data) into binary (BIN code).
  • BIN command can be used only for integer data.

OMRON CJ1W-MCH71 - Description - 1

BIN to BCD (BCD)

The BCD command converts the BIN data into the BCD data.

Command type

Not executed as an independent command (no type).

Format

= BCD;

Ex: #MW1000 = BCD #MW1001;

Operand

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
First termVariableNoNoYesYesNoNoNo
Second termWord type: 0-9999 (See note.)NoNoYesYesNoYesNo
Long type: 0-99999999

Note Setting range when viewed as BIN data.

Description

  • BCD command converts the specified value (BIN data) to BCD code.
  • BCD command can be used only for integer data.

OMRON CJ1W-MCH71 - Description - 1

Block Transfer (XFER)

Data is transferred as a block.

Command type

Multiple execution command

Format

XFER__N;

Ex: XFER #MW1000_#MW1100_N2;

Operand

OperandSetting rangeDecimalVariable specificationINC/ABL influ- ence
BitWordLong wordReal numberIndirect specifi- cation
Transfer source first dataVariableNoNoYesNoNoNoNo
Transfer destination first dataVariableNoNoYesNoNoNoNo
Number of trans- ferred dataSystem vari- able:1 to (2048 - address) Global general variable:1 to (8192 - address) Input variable:1 to (4096 - address) Output vari- able:1 to (4096 - address) Task variable:1 to (128 - address)NoNoYesNoNoNoNo

Description

  • Data for the number of words specified in Number of transferred words is transferred from the address specified in Transfer source first data to the address specified in Transfer destination first data.
  • If the transfer source and destination overlap with each other, the overlap is automatically processed and data is transferred so that it is not corrupted.
  • 256 words can be transferred in one scan. If the size exceeds 256 words, it is transferred over several scans.

OMRON CJ1W-MCH71 - Description - 1

Clear (CLEAR)

The specified data is cleared to 0.

Command type

Multiple execution command

Format

CLEAR_N;

Ex: CLEAR #MW1000_N2;

Operand

OperandSetting rangeDecimalVariable specificationINC/ABL influence
BitWordLong wordReal numberIndirect specification
First cleared dataVariableNoNoYesNoNoNoNo
Number of cleared dataGlobal general variable:1 to (8192- address) Input variable:1 to (4096- address) Output variable:1 to (4096- address) Task variable: 1 to (128- address)NoNoYesNoNoNoNo

Description

  • Data for the number of words specified in Number of cleared data is cleared to 0 from the address specified in First cleared data.
  • 256 words can be transferred in one scan. If the size exceeds 256 words, it is transferred over several scans.

OMRON CJ1W-MCH71 - Description - 1

SECTION 7

PC Interface Area

This section describes the interface area in the CPU Unit used to control and monitor the CJ1W-MCH71 and CS1W-MCH71 Motion Control Units.

7-1 Overview 374

7-1-1 Data Exchange Area Overview 374
7-1-2 About I/O Refresh 375
7-1-3 Allocated Area List 375
7-1-4 CPU Unit's Influence 381

7-2 Operating Mode 382

7-2-1 Manual Mode/Automatic Mode 383
7-2-2 Manual Mode 384
7-2-3 Automatic Mode 386

7-3 Allocations for the CPU Unit 396

7-3-1 Allocations for the CPU Unit 396
7-3-2 DM Area Words for Unit (20 Words, CPU Unit MC Unit) 402
7-3-3 Custom Bit Area 411
7-3-4 Custom Data Area. 415

7-4 Interface Specifics 420

7-4-1 Unit Control Bits 420
7-4-2 Unit Status Bits 440
7-4-3 Motion Task Control Bits 443
7-4-4 Axis Control Bits, Axis Status Bits. 472

7-1 Overview

CPU Unit can control MC Unit with the following three different methods of data I/O.

1,2,3... 1. Data exchange with allocated PC area words.

  1. Data exchange with allocated DM area words.
  2. Data exchange with allocated Custom area words.

7-1-1 Data Exchange Area Overview

OMRON CJ1W-MCH71 - 7-1-1 Data Exchange Area Overview - 1

The following table shows the allocated PC interface area to be refreshed cyclically.

The number of motion tasks automatically sets the actual number of transferred words. In addition, [the area range setting] in the allocated DM area and [the physical axis setting] in axis allocation parameters determine the number of Custom area words.

AreaBrev- ityDirectionUsageRemarkNo. of words min.No. of words max.
Allocated PC AREA words (25 words)nOutputControl BitUnit and task control512
InputStatus BitUnit and task status613
Allocated DM Area words (100 words)mOutputArea range setting (Ini- tial setting)Only first time2020
OutputControl DataTask control418
InputStatus DataUnit and task status836
Custom Bit AreaxOutputControl BitAxis control032
InputStatus BitAxis status032
Custom Data AreadOutputControl DataAxis control032
InputStatus DataAxis status096
Custom I/O Areaa_ASettingGeneral I/O AGeneral I/O0160
a_BSettingGeneral I/O BGeneral I/O0160
a_CSettingGeneral I/O CGeneral I/O0160
a_DSettingGeneral I/O DGeneral I/O0160
a_ESettingGeneral I/O EGeneral I/O0160
a_FSettingGeneral I/O FGeneral I/O0160
a_GSettingGeneral I/O GGeneral I/O0160
a_HSettingGeneral I/O HGeneral I/O0160
23 (See note 1.)1551 (See note 2.)

Note

(1) The total number of words (in a normal operation) when No. of motion tasks = 1 , No. of Axes = 1 , and without custom area allocations
(2) The total number of words (in a normal operation) when No. of motion tasks = 8 , No. of Axes = 32 , and all of general I/O are allocated

7-1-2 About I/O Refresh

When the CPU Unit's Cycle Time is shorter than the MC Unit's Unit Cycle

CPU and MC Units exchange various data mentioned above (allocated bits, allocated DM, custom bit area, etc.) with each other asynchronously. Therefore, the following behaviors may be encountered.

Data will be notified to the MC Unit after the CPU Unit runs for several cycles. Therefore, it is required to prepare the ladder program to confirm that data has been notified from the CPU Unit to the MC Unit successfully.

Ex: Turn ON the origin search bit and then confirm that the busy flag of the axis is turned ON.

When the CPU Unit's Cycle Time is longer than the MC Unit's Unit Cycle

Data will be notified to the MC Unit after the CPU Unit runs for 1 cycle.

When the CPU Unit's Cycle Time and the MC Unit's Unit Cycle are exactly the same

There is a possibility that none of data is notified to the MC Unit. In this case, set a longer or shorter Cycle Time for the CPU Unit.

7-1-3 Allocated Area List

Word Allocation Based on the Unit Number

The bit area and the range of respective DM areas are allocated based on the unit number of the Unit.

Brevity codesAddresses in the CPU unit
nCPU Bus Unit allocated bit area wordsWord 1500 – 1899 n = 1500 + 25 × Unit Number
mCPU Bus Unit allocated DM area wordsD30000 – D31599 m = D30000 + 100 × Unit Number

CPU Bus Unit Allocated Bit Area Words

25 words are allocated for each Unit starting from the word 1500.

Unit NumberBit areaUnit NumberBit area
0Word 1500-15248Word 1700-1724
1Word 1525-15499Word 1725-1749
2Word 1550-157410Word 1750-1774
3Word 1575-159911Word 1775-1799
4Word 1600-162412Word 1800-1824
5Word 1625-164913Word 1825-1849
6Word 1650-167414Word 1850-1874
7Word 1675-169915Word 1875-1899

CPU Bus Unit Allocated DM Area Words

100 words are allocated for each Unit starting from D30000.

Unit NumberDM areaUnit NumberDM area
0D30000-300998D30800-30899
1D30100-301999D30900-30999
2D30200-3029910D31000-31099
3D30300-3039911D31100-31199
4D30400-3049912D31200-31299
5D30500-3059913D31300-31399
6D30600-3069914D31400-31499
7D30700-3079915D31500-31599

CPU Bus Unit Restart Flag

When starting CPU Bus Unit, turn it OFF once, and then ON again. It will automatically turn OFF after restart processing is completed. The respective bits correspond to the unit numbers.

Word No.Bit No.Function
A50100-15CPU Bus Unit Restart Flag

The Unit can be restarted using restored data simply by turning ON the CPU Unit Restart Flag (A50100 to A50115). There is no need to reset the power supply after restoring the data using the CPU easy backup function.

Standby for Unit Startup

These bits turn ON when the CPU Bus Unit is in the initial processing. The respective bits correspond to the unit numbers.

Word No.Bit No.Function
A30200-15CPU Bus Unit Initializing Flag

Custom Area Allocation

It is possible to allocate custom areas regardless of the unit numbers.

These areas are allocated through [Area range setting] in the allocated DM area words.

The area range setting is used when the power is turned ON for the first time. Therefore, if changed afterwards, it will be ignored. The change will be enabled at the next power ON.

AreaBrevityCPU Unit's Addresses
Custom Bit AreaxDepends on Unit area range setting (m+0, m+1)CIO, WR
Custom Data AreadDepends on Unit area range setting (m+2, m+3)CIO, WR, DM, EM
Custom I/O Areaa_ADepends on the general I/O area range setting. Unit version 2.0 or earlier: m+4 and m+5 Unit version 2.1 or later: m+4, m+5, m+74, and m+75CIO, WR, DM, EM
a_BDepends on the general I/O area range setting. Unit version 2.0 or earlier: m+6 and m+7 Unit version 2.1 or later: m+6, m+7, m+76, and m+77CIO, WR, DM, EM
a_CDepends on the general I/O area range setting. Unit version 2.0 or earlier: m+8 and m+9 Unit version 2.1 or later: m+8, m+9, m+78, and m+79CIO, WR, DM, EM
a_DDepends on the general I/O area range setting. Unit version 2.0 or earlier: m+10 and m+11 Unit version 2.1 or later: m+10, m+11, m+80, and m+81CIO, WR, DM, EM
a_EDepends on the general I/O area range setting. Unit version 2.0 or earlier: m+12 and m+13 Unit version 2.1 or later: m+12, m+13, m+82, and m+83CIO, WR, DM, EM
a_FDepends on the general I/O area range setting. Unit version 2.0 or earlier: m+14 and m+15 Unit version 2.1 or later:m+14, m+15, m+84, and m+85CIO, WR, DM, EM
a_GDepends on the general I/O area range setting. Unit version 2.0 or earlier: m+16 and m+17 Unit version 2.1 or later:m+16, m+17, m+86, and m+87CIO, WR, DM, EM
a_HDepends on the general I/O area range setting. Unit version 2.0 or earlier: m+18 and m+19 Unit version 2.1 or later: m+18, m+19, m+88, and m+89CIO, WR, DM, EM

Allocation of Custom Bit Area and Custom Data Area

The Custom bit area (brevity code: x) and Custom data area (brevity code: d) are the areas for controls and statuses related to axes. With [Bit area type (m + 0) ] and [Data area type (m + 2) ] of [Unit area range setting] in the allocated DM area words, the area types on the CPU Unit are specified. With [Bit area first address (m + 1) ] and [Data area first address (m + 3) ], the first address of each area on the CPU Unit is specified.

Up to the words for the biggest axis number set to other than [0:Unused] in the axis allocation parameter [P1AA01: Physical axis setting] are allocated.

NameFunction
Bit area typeArea type specification on the CPU Unit 0: Not used (no transfer) 1: CIO 2: WR 3 and higher: Reserved for system
Bit area first addressFirst address specification on the CPU Unit 0000H-(Upper limit varies depending on bit area type.)
Data area typeArea type specification on the CPU Unit 0: Not used (no transfer) 1: CIO 2: WR 3: DM 4: EM (Fix banks at 0 in the EM area) 5: and above: Reserved for system.
Data area first addressFirst address specification on the CPU Unit 0000H-(Upper limit varies depending on data area type.)
No.NamePurpose
P1AA01Physical axis settingThe greatest axis number that is going to be used determines the number of allocated.

Custom I/O Area Allocation

The Custom I/O Areas (brevity codes: a_A to a_H) are the areas used to exchange custom data between the CPU Unit and MC Unit. In the Custom I/O Areas, there are eight general I/O areas A to H, and a size of 1 to 160 words can be specified for each area.

Note

(1) Make sure that values of the data are appropriate for operations.
(2) Make sure to confirm the safety of devices prior to changing the allocation areas.

There are two methods that can be used to allocate the customer I/O areas. Bit 8 of system parameter P00004 is used to set the method to be used.

Fixed I/O Variable Areas (P00004 Bit 8 = 0)

For general I/O area A, the number of transferred words is specified with [PORT_A No. of transferred words (bits 00 to 07 of m+4)] of [General I/O area range setting] in the allocated DM area. The area type in the CPU Unit is specified with [PORT_A Area type (bits 08 to 14 of m+4)]. In addition, the transfer direction is specified with [PORT_A Direction]. The first address in the CPU Unit is specified with [PORT_A First address (m+5)].

In the MC Unit, the custom I/O areas can be treated as I/O variables in the motion program, when the transfer direction is [MC Unit to CPU]: output variables; when transfer direction is [CPU Unit to MC Unit]: input variables.

AreaInput variableOutput variable
General I/O AIW0B00OW0B00
General I/O BIW0BA0OW0BA0
General I/O CIW0C40OW0C40
General I/O DIW0CE0OW0CE0
General I/O EIW0D80OW0D80
General I/O FIW0E20OW0E20
General I/O GIW0EC0OW0EC0
General I/O HIW0F60OW0F60
NameFunction
PORT_A No. of transferred wordsNumber of words transferred for general I/O area A 1 to 160 words
Port_A Area typeCPU Unit area type for General I/O A: 0: Not used (no transfer). 1: CIO 2: WR 3: DM 4: EM (fixed at bank 0) 5 and higher: Reserved for system.
Port_A DirectionTransfer direction for General I/O A: 0: MC Unit to CPU Unit 1: CPU Unit to MC Unit
Port_A First AddressCPU Unit first address for general I/O A: 0000H to (Upper limit varies depending on Port_A Area type.)
  • General I/O area allocation is performed using [PORT_ Number of transferred words], [PORT_ Area type], [PORT_ Direction], and [PORT_ First address].
  • The destination of allocations in the MC Unit is as follows: When [PORT_ Direction] is 0 (MC Unit to CPU): Output variables When [PORT_Direction] is 1 (CPU to MC Unit): Input variables
  • The above data is valid only during PC21 bus initialization. It will be ignored if it is changed after the power is already ON.

Custom I/O Variable Areas (P00004 Bit 8 = 1) (Unit Ver. 2.1 or Later)

As shown in the following table, general I/O areas A to H can be allocated to any variables in the MC Unit.

AreaVariables
General I/O AVariable areas and custom addresses can be set for the following variables.
General I/O B• System variables • Global general variables • Input variables • Output variables • Position data • Task variables
General I/O C
General I/O D
General I/O E
General I/O F
General I/O G
General I/O H

For general I/O area A, the number of transferred words is specified with [PORT_A No. of transferred words (bits 00 to 07 of m+4)] of [General I/O area range setting] in the allocated DM area, just as when P00004 bit 8 is set to 0. The area type in the CPU Unit is specified with [PORT_A Area type (bits 08 to 14 of m+4)]. In addition, the transfer direction is specified with [PORT_A Direction]. The first address in the CPU Unit is specified with [PORT_A First address (m+5)].

NameFunction
PORT_A No. of transferred wordsNumber of words transferred for general I/O area A 1 to 160 words
Port_A Area typeCPU Unit area type for General I/O A: 0: Not used (no transfer). 1: CIO 2: WR 3: DM 4: EM (fixed at bank 0) 5 and higher: Reserved for system.
Port_A DirectionTransfer direction for General I/O A: 0: MC Unit to CPU Unit 1: CPU Unit to MC Unit
Port_A First AddressCPU Unit first address for general I/O A: 0000H to (Upper limit varies depending on Port_A Area type.)

For general I/O area A in the MC Unit, allocations are specified by setting the [PORT_A transfer area type at MC Unit] (m + 74) and the [PORT_A transfer first address at MC Unit] (m + 75) of [General I/O area range setting] in the allocated DM area.

MeaningWordBitsNameFunction
General I/O A area range setting (first time only) at MC Unitm+7400 to 15PORT_A transfer area type at MC UnitGeneral I/O A area transfer area type at MC Unit (hexadecimal) 0000: System variables 0001: Global general variables 0002: Input variables 0003: Output variables 0004: Position data 0005: Reserved 0006: Task variable 1 0007: Task variable 2 0008: Task variable 3 0009: Task variable 4 000A: Task variable 5 000B: Task variable 6 000C: Task variable 7 000D: Task variable 8 Other: Reserved
m+7500 to 15PORT_A transfer first address at MC UnitGeneral I/O area A first address of transfer source at MC Unit (hexadecimal) System variables 0000-07FF Global general variables 0000-1FFF Input variables 0000-0FFF Output variables 0000-0FFF Position data 0000-27FF Task variables 0000-007F
General I/O B to H area range setting (first time only) at MC Unitm+76 to m+89---Same as General I/O A area range settingSame as General I/O A area range setting

Note m: DM Area for CPU Bus Unit words D30000 to D31599 (100 words per Unit according to Unit No.)

Relationship between MC Unit Transfer Area Type, Transfer First Address, and Number of Transfer Words

The following combinations cannot be transferred. If these combinations are specified, the data will not be transferred, but an error will not occur.

1,2,3... 1. Writing data from the CPU Unit to the MC Unit system variables

  1. Writing data from the CPU Unit to the MC Unit output variables (OW0300 to OW04FF)
  2. Transferring data to an unsupported area (write/read: Examples 2 and 3 in following diagram)

OMRON CJ1W-MCH71 - Relationship between MC Unit Transfer Area Type, Transfer First Address, and Number of Transfer Words - 1

Observe the following points when transferring position data for the MC Unit.

  • Position data consists of two words. Therefore, specify twice the number of words to be transferred to the CPU Unit. If an odd number is specified, the final word will be discarded when the data is transferred.
  • Specify position data addresses in the format PLxxxx.

Example: If 160 words of position data are transferred from PL0000, the data from PL0000 to PL004F (80 items) will be transferred.

7-1-4 CPU Unit's Influence

CPU Unit Operating Mode Change

CS/CJ-series CPU Units have the following three operating modes:

1,2,3...

  1. RUN Mode

Programs can be executed normally.

  1. MONITOR Mode

Programs can be executed normally. Data saved in the memory can be modified.

  1. PROGRAM mode

Programs cannot be executed. Programming and debugging are possible.

The MC Unit operates as shown in the table below when the operating mode of the CPU Unit is changed:

CPU Unit operating mode changeMC Unit operation
RUN Mode or MONITOR Mode → PROGRAM ModeAll the axes decelerate and stop. *Note that, however, there will be no influence on the MC Unit operation when the MC Unit is in Tool Mode. (The CPU Unit does not control the MC Unit in Tool Mode.)
Other than the aboveThere is no influence on the MC Unit operation.

CPU Unit Status

The MC Unit operates as shown in the table below when the CPU Unit is in the following state:

CPU Unit statusMC Unit operation
CPU Unit fatal error: An error such as memory error occurred during operation and the operation cannot be continued.·When “CPU stopping” is notified, Servo OFF (See note.) is executed. ·This error is stored in the error log. ·From this point on, no commands can be accepted from the CPU Unit. Note that, however, various operations can be received from the Support Tool. (Event communications can be used.)
Load rejection: Load is rejected from applications in debugging.·When “Load rejection” is notified, the MC Unit interprets all the inputs from the CPU Unit as all “0”. Due to this, the program operation, the JOG operation, and so on, decelerate and stop.
Bus error:·When the Bus error is detected, Servo OFF (See note.) is executed. ·The error is stored in the error log. ·From this point on, no commands can be accepted.
CPU WDTUP:·When “WDT UP” is detected, the same processing as for CPU Unit fatal error is executed.
Power interruption:·When “Power interruption” is detected, Servo OFF (*1) is executed. ·From this point on, no commands can be accepted.
CPU standby: (When CPU Unit is turned ON)·This is ignored because there is no influence on execution of MC Unit functions.
Restarting CPU Bus Unit during operation ·User turned ON AR ·Routing table transfer (communication unit)·When Restart is detected, Servo OFF is executed on all the tasks and axes. ·After that, the same processing as for powering ON is executed.
Verification error: When CPU Unit is turned ON·“Verification error” is notified. ·The error is stored in the error log. ·From this point on, no commands can be accepted.

Note Output signals will not change even when Servo OFF is executed.

7-2 Operating Mode

This section describes the MC Unit internal modes, the function for controlling the MC Unit from the CPU Unit using manual/automatic modes, and CPU Unit ladder programming.

MC Unit Internal Modes

The MC Unit has three internal modes: RUN, CPU and Tool Modes.

All operations (manual mode/automatic mode) can be performed from the CPU Unit in RUN and CPU Modes.

Internal modeDescriptionOperation from CPU Unit
Manual ModeAutomatic Mode
RUN ModeThis is the normal mode for operating the MC Unit from the CPU Unit. The MC Unit will be in RUN Mode when the power is turned ON. When MC Unit is in RUN Mode, the Support Tool can use read functions only, e.g., it can read programs and parameters and monitor present values.All commands can be used.All commands can be used.
CPU ModeThis mode is used for debugging with the MC Unit operated from the CPU Unit. Switch to this mode using the Support Tool. Program read/write, parameter read/write, and other editing functions (read/write) can be used from the Support Tool and present values can be monitored in this mode. Data cannot be saved to flash memory, however, from the Support Tool.All commands can be used.All commands can be used.
Tool ModeThis mode is used for debugging with the MC Unit operated from the CPU Unit. Switch to this mode using the Support Tool. No operations can be performed from the CPU Unit when in this mode. Only commands from the Support Tool are accepted. All functions can be used from the Support Tool when in this mode, and present values can be monitored, i.e., program read/write, parameter read/write, other editing functions (read/write), and save to flash memory.Not all commands can be used. All MC Unit status data is refreshed as normal.Not all commands can be used. All MC Unit status data is refreshed as normal.

7-2-1 Manual Mode/Automatic Mode

  • There are two types of operating modes for MC Unit; one is Manual Mode and another is Automatic Mode.
  • The bit [Manual/Automatic mode] in the allocated bit area switches the mode between Automatic and Manual.
  • The mode can be set for each axis. ON (1) is Automatic Mode and OFF (0) is Manual Mode.
  • In Manual Mode, operations of the MC Unit are controlled directly from the CPU Unit using the PC interface areas.
  • In Automatic Mode, motion programs programmed with the motion language are executed.

Whether function can or cannot be executed in each operating mode

FunctionCommand methodManual ModeAutomatic Mode
Axis Alarm ResetAxis control bitYesYes
Deceleration StopAxis control bitYesNo
Servo LockAxis control bitYesYes
Servo UnlockAxis control bitYesYes
JOGAxis control bitYesNo
STEPAxis control bitYesNo
Origin SearchAxis control bitYesNo
Machine Origin ReturnAxis control bitYesNo
Error Counter ResetAxis control bitYesYes
Forced OriginAxis control bitYesNo
ABS Origin SettingAxis control bitYesNo
Axis Override EnableAxis control bitYesYes
JOG/STEP DirectionAxis control bitYesNo
Axis Machine LockAxis control bitYesYes
Manual/Automatic ModeAxis control bitYesYes
Present Position PresetIOWR instructionYesNo

Yes: Can be executed

No: Cannot be executed

7-2-2 Manual Mode

In Manual Mode, control for each axis is possible and the following functions can be executed.

Each function can be enabled and executed when the corresponding bit is turned ON. If 2 or more bits are turned ON (1) simultaneously, the processing will proceed following the priority shown below:

PriorityName of bitsSpecification
HighServo UnlockCancels Servo lock status.
Deceleration StopDecelerates to stop (JOG, STEP, Origin search, Machine origin return).
Axis Alarm ResetCleared the alarm occurring on the axis level and MLK slave alarm.
Error Counter ResetResetsethe error counter (Position command value = present position).
STEPStarts STEP operation (PTP operation for debugging).
JOGStarts JOG operation.
Machine Origin ReturnStarts machine origin return (PTP).
Origin SearchStarts origin search.
Forced OriginDefines the present position as the origin on the machine coordinate system.
Present Position Preset(IOWR)Changes the present position to the specified value.
ABS Origin SettingSets the origin of the ABS encoder.
LowServo LockStarts the servo lock status.

The following functions can be executed simultaneously with other functions:

Name of bitsSpecification
Axis Override EnableEnables the axis override value.
JOG/STEP DirectionSpecifies the JOG, and STEP operation direction.
Axis Machine LockStarts axis machine lock.
Manual/Automatic ModeSwitches between Manual and Automatic modes.

Whether another function can or cannot be executed during execution of a function

The following table shows whether another function can or cannot be executed when a function listed vertically on the left are being executed:

Yes: Can be executed No: Cannot be executed (Ignored)

Function currently being executedFunction to be executed along with the function currently being executed.
Servo UnlockDeceleration StopAxis Alarm ResetError Counter ResetSTEPJOGMachine Origin ReturnOrigin SearchForced OriginPresent Position PresetABS Origin SettingServo Lock
Servo Unlock---NoYesYesNoNoNoNoNoNoNoNo
Deceleration StopYes---YesYesNoNoNoNoNoNoNoNo
Axis Alarm ResetYesNo---YesNoNoNoNoNoNoNoNo
Error Counter ResetYesYesYes---NoNoNoNoNoNoNoNo
STEPYesYesYesYes---NoNoNoNoNoNoNo
JOGYesYesYesYesNo---NoNoNoNoNoNo
Machine Origin ReturnYesYesYesYesNoNo---NoNoNoNoNo
Origin SearchYesYesYesYesNoNoNo---NoNoNoNo
Forced OriginYesNoYesYesNoNoNoNo---NoNoNo
Present Position Preset (IOWR)YesNoYesYesNoNoNoNoNo---NoNo
ABS Origin SettingYesNoYesYesNoNoNoNoNoNo---No
Servo LockYesNoYesYesNoNoNoNoNoNoNo---

During execution of the following functions, the Busy flag will be turned ON. After execution of a function, turn the bit OFF, check if the BUSY flag is OFF, and then execute the other functions.

  • Error counter reset, STEP, JOG, Machine origin return, Origin search, Forced origin, and ABS origin setting

The following table shows whether deceleration stop can be executed or not and whether the Busy flag turns ON or stays OFF when the functions listed vertically on the left are being executed. Additionally, whether the functions listed vertically on the left can be executed under various conditions or not is shown:

FunctionCondition
Interruptibl by deceleration stopBUSY ON/OFFRestriction due to status:Yes: Can be executedNo: Cannot be executedRestriction due to communicationsYes: Can be executedNo: Cannot be executed
Automatic Mode ONBUSY ONAxis Operating ONNo Origin ONAxis Alarm OccurringServo UnlockOther stop request ONPositioning Completed OFFVirtual axisNot a Servo axisCommand Disabled/Enabled OFF
Axis Alarm ResetNoOFFYesYesYesYesYesYesYesYesYesYes
Deceleration Stop---OFFNoYesYesYesYesYesYesYesNoNo
Servo LockNoOFFYesYesYesYesNoYesYesYesYesNo
Servo UnlockNoOFFYesYesYesYesYesYesYesYesNoNo
JOGYesONNoNoYesYesNoNoNoYesYesNo
STEPYesONNoNoYesYesNoNoNoYesYesNo
Origin SearchYesONNoNoYesYesNoNoNoYesYesNo
Machine Origin ReturnYesONNoNoYesNoNoNoNoYesYesNo
Error Counter ResetNoONYesYesYesYesYesYesYesYesYesNo
Forced OriginNoONNoNoNoYesNoYesNoNoYesNo
ABS Origin SettingNoONNoNoNoYesNoYesNoNoNoNo
Axis Override EnableNoOFFYesYesYesYesNoNoNoYesYesNo
JOG/STEP DirectionNoOFFNoNoYesYesNoNoNoYesYesNo
Axis Machine LockNoOFFYesYesYesYesYesYesYesYesNoNo
Manual/Automatic ModeNoOFFYesYesYesYesYesYesYesYesYesYes
Present Position Preset (IOWR)NoOFFNoNoNoYesNoYesNoYesYesNo

7-2-3 Automatic Mode

  • In Automatic Mode, motion programs programmed with the motion language are executed.
  • Follow the procedure below to execute the motion program in Automatic Mode.
  • In this example, Axis 1 is operated with Motion task 1.

1,2,3... 1. Set the MC Unit to Automatic Mode.

To specify the axis to be used in the program, turn ON the axis control bit [Manual/Automatic mode (15 bits of word x + 0 )].

  1. Specify the program number to be executed.

Set the program number to be executed in the motion task control data [Motion program number (word m+22)] of motion task control data.

  1. Set the Start Mode for restarting the motion program interrupted in the middle of execution. (See note.)

Set the mode in the axis control bit [Start Mode (01 and 02 bits of word n+4)].

  1. Start the program.

Turn ON the Motion task control bit [Motion program start (01 bit of word n+4)].

Note There are three different patterns to stop a motion program:

1,2,3... 1. Motion task control bit [Deceleration stop] (Interruption):

Deceleration stop is executed regardless of the block (Stopped in the middle).

  1. Motion task control bit [Block stop]:

Operation is stopped at the end of the block currently being executed (Block stop).

  1. END command is executed.

The method of resuming the interrupted motion program can be selected in the Start Mode as show in the table below.

Start ModeOperation
0,3Reads the program number and execute the program from the beginning.
1Program is executed from the block indicated by Executing Motion Block No. Operation varies depending on the command or stopping status. • Resuming motion program when executing MOVE/MOVEL/MOVEC/MOVEI/MOVET commands: The program is resumed from where it was stopped. • Resuming motion program when executing MOVETRAV/MOVELINK/CAMBOX (1 cycle) commands: When stopped midway, the program resumes for the remaining travel distance. In case of block stop, the program for the entire travel distance is executed again. • Resuming motion program when executing commands DATUM/CAM For both midway stop and block stop, the program for the entire travel distance is executed again.
2Resumes the program from the next block of the block indicated by Executing Motion Block No.

Details of resuming motion programs interrupted in midway of MOVE/MOVEL/MOVEC/MOVEI/MOVET command execution (in Start Mode 1 or 2) are explained in the following pages.

When a program is stopped in the middle of a block for a finite length axis

The Executing Motion Block No. indicates the block where the motion program was stopped.

In case of ABL specification

...
ABL MOVE [J1] 2000 [J2] 0; _ When this block is interrupted
ABL MOVE [J1] 3000 [J2] 0;

···

Start ModeOperation
1 Resumes program from mid-way of the block indicated by Executing Block Number.Start point Interruption End point Start point End point Command's track Actual track Manual intervention Restart point
2 Resumes program from the next block of the one indicated by Executing Block Number.Start point Interruption End point Start point End point Command's track Actual track Manual intervention Restart point

In case of INC specification

INC MOVE [J1] 2000 [J2] 0; _ When this block is interrupted
INC MOVE [J1] 1000 [J2] 0;

Start ModeOperation
1 Resumes pro-gram from mid-way of the block indicated by Executing Block Number.Start point Interruption End point Start point End pointCommand's trackActual trackManual interventionRestart point
2 Resumes pro-gram from the next block of the one indicated by Executing Block Number.Start point Interruption End point Start point End pointCommand's trackActual trackManual interventionRestart point

When a program is stopped in the middle of a block for an infinite length axis

The Executing Motion Block No. indicates the block where the motion program was stopped. Operation will be as described below when operation is continued in the middle of a block in start mode 1.

MC Units manufactured before 2 February 2004 (Lot No. 040202xxxx)

  • Axis 1 is set to a turntable.
  • Axis 1 is set as an infinite length axis.
  • The command value for axis 1 is set between 0^ and 359^ .
  • The following command is executed. MOVE [J01]500
  • This command means to turn axis 1 once (360^) and then to position to 140^ in the second turn.
  • Assume that the above command is executed, but a deceleration stop is executed at 120^ in the first turn.
  • If operation is continued in start mode 1 after decelerating to a stop, axis 1 will be positioned to 140^ in the same turn (i.e., in the first turn in this example).

MC Units manufactured 2 February 2004 (Lot No. 040202xxxx) or later

The above operating modes can be combined with the MOVE, MOVEL, and MOVET commands with P00004 bit 06 (continuous operation using infinite length axis for multiple rotations) set to 1 to enable positioning to the final target position, as follows.

  • Axis 1 is set to a turntable.
  • Axis 1 is set as an infinite length axis.
  • The command value for axis 1 is set between 0^ and 359^ .
  • The following command is executed. MOVE [J01]500
  • This command means to turn axis 1 once (360^) and then to position to 140^ in the second turn.
  • Assume that the above command is executed, but a deceleration stop is executed at 120^ in the first turn.
  • If operation is continued in start mode 1 after decelerating to a stop, axis 1 will be positioned to the final target position (i.e., to 140^ in the second turn in this example).

When a program is stopped at the end of a block

The Executing Motion Block No. indicates the block number where the motion program was stopped.

In case of ABL specification

...
ABL MOVE [J1] 2000 [J2] 0; _ When this block is interrupted
ABL MOVE [J1] 3000 [J2] 0;

···

Start ModeOperation
1 Resumes pro- gram from mid- way of the block indicated by Exe- cuting Block Number.Block stop Start point End point Start point End point Command's track Actual track Restart point
2 Resumes pro- gram from the next block of the one indicated by Executing Block Number.Block stop Start point End point Start point End point Command's track Actual track Restart point

In case of INC specification

INC MOVE [J1] 2000 [J2] 0; _ When this block is interrupted
INC MOVE [J1] 1000 [J2] 0;

···

Start ModeOperation
1Resumes pro-gram from mid-way of the block indicated by Exe-cuting Block Number.Block stopEnd point Start point End pointCommand's trackActual trackRestart point
2Resumes pro-gram from the next block of the one indicated by Executing Block Number.Block stopEnd point Start point End pointCommand's trackActual trackRestart point

Ladder program example to execute motion programs

The procedure to execute the motion program is described as a ladder program below.

Note that, however, the following ladder program contains the circuits of only the minimum requirements to execute a motion program. Therefore, it is necessary to add circuits depending on the actual requirement for actual operations.

Ladder Program

OMRON CJ1W-MCH71 - Ladder Program - 1

For R1 to R3, use work bits.

In this program, the program [P0001] is executed in motion task 1.

For actual operation, change the axis on which the motion program is to be executed, motion task, and program number as needed.

Turn ON R1 in order to specify Automatic Mode.

Turn ON R2 for the following conditions:

1,2,3...

  1. Executing a program for the first time after the power is turned ON
  2. Executing a program from the first block
  3. When the program number was changed

Turning ON R3 will start the execution.

Motion Program Operating Bit

The Motion program operating bit turns ON during program execution, and turns OFF when program execution is completed or stopped.

OMRON CJ1W-MCH71 - Motion Program Operating Bit - 1

Motion Program Completed Bit

When a motion program is completed, the motion program completed bit turns ON (turns ON when the END command execution is completed). Even if the motion program starts on, the motion program operating bit turns OFF simultaneously when the motion program completed bit is turned ON.

OMRON CJ1W-MCH71 - Motion Program Completed Bit - 1

The list below is for the motion task 1. the list for motion tasks 2-8 is the same as motion task 1.

Related PC Interface Area List

ClassificationWordVariablebitNameSpecifications
Motion task 1 Control bitn+4IW034001Motion program start0: Nil1: Nil↑: Starts motion program operation following the specified Start Mode.↓: Nil
02-03Start Mode0,3: Reads the program number and executes the program from the beginning.1: Executes the program from the block indicated by Executing Motion Block Number. Operation at resum-ing interrupted programs varies depending on the command used or stopping status. For details, see 7-4-3 Motion Task Control Bits (page 443).2: Executes the program continuously from the next block of the block indicated by Executing Motion Block Number.
Motion task 1 Control datam+22IW036000-15Motion task 1 Program numberSpecifies the program number to be executed in motion tasks.0-499
Axis 1 Control bitx+0IW044015Manual/Automatic mode0: Manual mode1: Automatic mode↑: Decelerates to stop manual operation currently being executed.↓: Decelerates to stop automatic operation currently being executed.
Motion task 1 Status bitn+17OW034001Motion program operating0: Motion task is not executing a program operation.1: Motion task is executing a program operation. (Turned OFF after deceleration stop/block stop com-pletion)
02Motion program completed0: When program operation is started.1: END command was executed.
03Block being stopped0: Block not being stopped1: Block being stopped
05Start warning0: Motion program started operating successfully.1: Motion program could not start operating. (Axis declaration, Axis mode)
Axis 1 Status bitx+32OW044015In Manual/Automatic mode0: In Manual mode1: In Automatic mode

Explanation of the table

0: Indicates that the bit is OFF.

1: Indicates that the bit is ON.

↑: Indicates turning ON from 0 to 1.

: Indicates turning OFF from 1 to 0.

Decimal system is applied to the other values using multiple bits.

When controlling with the rise (or fall) of the bits from the CPU Unit to the MC Unit, the change of bits is processed in the MC Unit, not in the CPU Unit. Therefore, if instructions like DIFU/DIFD are used, the change of bits may not be reflected.

Ladder Program Example and Timing Chart

Ladder program example and timing chart for the program operation with axis movement (including deceleration stop) are shown below.

In this example, Axes 1 and 2 are operated with motion task 1 and the Motion task 1 Control bit [Deceleration stop] is used for stopping.

In the timing chart, Axes 1 and 2 are operated and they are stopped with deceleration stop in midway. After that, the operation is resumed in Start Mode 1 (Program execution is executed continuously from midway of the block indicated by the Executing Motion Block Number).

Ladder program

OMRON CJ1W-MCH71 - Ladder program - 1

Note When executing axis movement commands in a motion program, it is required to execute Servo lock for all the applicable axes (the bit [In Servo Lock] is ON), and to set the operating mode to Automatic Mode (the bit [In Manual/Automatic mode] is ON). Therefore, make sure to insert the conditions R1 and R2 of the above ladder program.

Word Allocation Example

The word allocation for the ladder program above is shown below (Unit number: 0):

Description in ladder programAxis 1Axis 2
R1 to R3 (Work bit)W50001 to W50003
x+0.15, x+1.15 (Manual/Automatic Mode)W20015 (See note.)W20115 (See note.)
n+4.02 (Start Mode 1)150402
n+4.04 (Deceleration Stop)150404
n+4.01 (Motion Program Start)150401
m+22 (Program Number Setting)DM30022
x+32.15, x+33.15 (Automatic Mode)W23215 (See note.)W23315 See note.)
x+32.03, x+33.03 (In Servo Lock)W23203 (See note.)W23303 (See note.)
x+32.13, x+33.13 (Command Enabled)W23205 (See note.)W23305 (See note.)
n+17.01 (Motion Program Operating)151701
n+12.00 (Alarm Occurring)151200
Automatic/Manual Mode Switch000100
Start Button000101
Program Number Setting Button000102
Pause Button000103
Start Mode Switch000104

Note When setting the custom bit area from WR200, the area range for the Unit is set as shown below:

m+0 Area type specification on the CPU 0002h (WR)

m+1 Bit area first address 00C8h (200)

OMRON CJ1W-MCH71 - Word Allocation Example - 1
Timing Chart
MC Unit and CPU Unit Process Cycle

  • Do NOT set the same Cycle Time as the Unit Cycle of the MC Unit or the Cycle Time of [1/integer] multiple when using the Minimum Cycle Time setting.

  • The CPU Unit and MC Unit exchange data in the asynchronous Bus system via shared memory. When the timings of both Units for accessing the shared memory overlap, the Unit that accessed later will not be able to exchange data in that processing cycle.

  • If the CPU Unit accessed later than the MC Unit, the CPU Unit will be able to access the memory in the next cycle. On the other hand, if the MC Unit accessed later than the CPU Unit and the access timings overlap between them in the next cycle, the MC Unit will not be able to access the memory in the next cycle.
  • MC Unit executes internal processing in a constant Unit Cycle 1 ms, 2 ms, 3 ms, 4 ms, 6 ms, or 8 ms depending on the settings such as the number of axes, number of tasks, and number of parallel branches.
  • When using the Minimum Cycle Time setting, the timings of the Units to access the shared memory will overlap in every cycle, which may cause the case where the MC Unit cannot exchange data at all.

  • If the output time of the signal output from either Unit (CPU or MC) is shorter than the processing cycle of the other Unit to which the signal is input, the latter Unit may not be able to detect the change of the signal.

  • To notify the change of the signal steadily, which is required when starting the motion program of the MC Unit from the CPU Unit, or in similar cases, it is necessary to make the start signal ON output time longer than the Unit Cycle of the MC Unit. To do so, handshake processing, such as that the start signal will be turned OFF observing the status of the bit [Motion program operating] output from the MC Unit, has to be executed. Note that, however, the status bit [Motion program operating] will be turned OFF when execution of the motion program is completed. Therefore, make sure that the Unit Cycle of the MC Unit is longer than the Cycle Time of the CPU Unit even when the number of commands in a program is small. Dwell Time (DWELL) command can be used in that case, for example.

7-3 Allocations for the CPU Unit

7-3-1 Allocations for the CPU Unit

CIO Output Area for the Unit (CPU→MC Unit, 12 words)

The symbols in the following tables indicate as below:

0: The bit is OFF.

1: The bit is ON.
Rising from 0 to 1.
: Falling from 1 to 0.

Decimal system is applied to the other values using multiple bits.

When controlling with the rise (or fall) of the bits from the CPU Unit to the MC Unit, the change of bits is processed in the MC Unit, not in the CPU Unit. Therefore, if instructions like DIFU/DIFD are used, the change of bits may not be reflected.

ClassificationWordVariablebitNameSpecifications
Unit control bitn+0IW030000Unit Alarm Reset0: Nil1: Does not turn ON the bit [Unit Alarm]↑: Clears the alarm occurring on Unit level↓: Nil
01System Parameter Save0: Nil1: Nil↑: Saves system parameters to the Flash ROM↓: Nil
02Position Data Save0: Nil1: Nil↑: Saves position data to the Flash ROM↓: Nil
03Teaching Condition Setting0: Nil1: Nil↑: Specifies axes for teaching, reads the teaching address↓: Nil
04Teaching Type0: Feedback present position1: Command present position↑: Nil↓: Nil
05Teaching Execution0: Nil1: Nil↑: Writes present position specified with teaching type to position data↓: Nil
06Servo Parameter Save0: Nil1: Nil↑: Saves servo parameters into Flash ROM/EEPROM in the Servo↓: Nil
07-11ReservedReserved
12-15Present Value Monitor SelectSelects data to be output to the present value monitor.0: Zero output1: Feedback position (coordinate system currently being selected)2: Feedback position (machine coordinate system)3: Command position (coordinate system currently being selected)4: Command position (machine coordinate system)5: Feedback speed 1 (command unit/min)6: Feedback speed 2 (depend on the parameter)7: Command speed 1 (command unit/min)8: Command speed 2 (depends on the parameter)9: Error10: Torque command11-15: Reserved for system
n+1IW030100-15Teaching Axis Setting 1-160: Nil1: Specifies axis as teaching object↑: Nil↓: Nil
n+2IW030200-15Teaching Axis Setting 17-320: Nil1: Specifies axis as teaching object↑: Nil↓: Nil
Reservedn+3IW032000ReservedReserved
01ReservedReserved
02ReservedReserved
03-15ReservedReserved
Motion task 1Control bitn+4IW034000Motion Task AlarmReset0: Nil1: Does not turn ON the bit [Motion Task Alarm]↑: Clears the alarm occurring on motion task level↓: Nil
01Motion ProgramStart0: Nil1: Nil↑: Starts the motion program operation following the specified Start Mode?↓: Nil
02-03Start Mode0, 3: Reads the program number and executes it from top.1: Executes the program from the block indicated by Executing Motion Block Number. Operation at resuming interrupted programs varies depending on the command used or stopping status. For details, see 7-4-3 Motion Task Control Bits (page 443).2: Executes program continuously from the next block of the one indicated by Executing Motion Block Number.
04Deceleration Stop0: Nil1: Prohibits motion program start↑: Executes deceleration stop regardless of block↓: Nil
05Block Stop0: Nil1: Prohibits motion program start?↑: Executes deceleration stop at the end of the block currently being executed↓: Nil
06Single-blockOperation Mode0: Single-block operation mode OFF1: Single-block operation mode ON↑: Nil↓: Nil
07Task OverrideEnable0: Enables task override value (override 100% is used)1: Enables task override value↑: Nil↓: Nil
08-15ReservedReserved
Motion task 2Control bitn+5IW034100-15Same as for Motion Task 1Same as for Motion Task 1
Motion task 3 Control bitn+6IW034200-15Same as for Motion Task 1Same as for Motion Task 1
Motion task 4 Control bitn+7IW034300-15Same as for Motion Task 1Same as for Motion Task 1
Motion task 5 Control bitn+8IW034400-15Same as for Motion Task 1Same as for Motion Task 1
Motion task 6 Control bitn+9IW034500-15Same as for Motion Task 1Same as for Motion Task 1
Motion task 7 Control bitn+10IW034600-15Same as for Motion Task 1Same as for Motion Task 1
Motion task 8 Control bitn+11IW034700-15Same as for Motion Task 1Same as for Motion Task 1

CIO Input Area Words for the Unit (MC Unit CPU, 13 words)

ClassificationWordVariablebitNameSpecifications
Alarm identifica- tionn+12OW030000Alarm Occurring0: No alarm 1: Alarm occurring in MC Unit (linked to LED [ERC] indicator)
01Unit Alarm Occurring0: No alarm occurring on Unit level 1: Alarm occurring on Unit level
02ReservedReserved
03-10Motion Task Alarm Occurring 1-80: No alarm occurring on motion task level 1: Alarm occurring on motion task level
11-15ReservedReserved
n+13OW030100-15Axis Alarm Occur- ring 1-160: No alarm occurring on axis 1: Alarm occurring on axis
n+14OW030200-15Axis Alarm Occur- ring 17-320: No alarm occurring on axis 1: Alarm occurring on axis
Unit status bitn+15OW030300Unit Ready0: Unit is not ready for accepting commands1: Unit is ready for accepting commands
01Unit Alarm0: No alarm occurring on Unit level or Unit Alarm Reset is ON1: Alarm occurring on Unit level
02Flash Save Com- pleted0: Neither parameter nor position data save is com- pleted1: Parameter or position data save completed (including error completion)
03Teaching Warning0: Teaching condition setting, execution completed successfully1: Condition error, Command disabled, No origin, Address overflow
04Teaching Condition Setting Completed0: When Teaching condition setting bit is OFF1: Teaching condition setting completed (including error completion)
05Teaching Execution Completed0: Teaching execution is OFF1: Teaching execution completed (including error completion)
06ReservedReserved
07External Forced Stop Request0: There is no forced stop request from anything other than input variables1: There is forced stop request from something other than input variables
08External Forced Stop Status0: No forced stop request, or processing for stop1: Stop by external forced stop request completed
09Operating Mode (Supported in Unit Ver. 3.0 or later)Displays the current MC Unit operating mode.0: RUN or CPU Mode1: Tool Mode
10-11ReservedReserved
12-15Present Value Moni- tor StatusIndicates the present value monitoring output sta- tus0: Zero output1: Feedback position (coordinate system currently being selected)2: Feedback position (machine coordinate system)3: Command position (coordinate system currently being selected)4: Command position (machine coordinate system)5: Feedback speed 1 (command unit/min)6: Feedback speed 2 (depends on the parameter)7: Command speed 1 (command unit/min)8: Command speed 2 (depends on the parameter)9: Error10: Torque command11-15: Reserved for system
Reservedn+16OW032000ReservedReserved
01ReservedReserved
02-15ReservedReserved
Motion task 1 Status bitn+17OW034000Motion Task Alarm0: No alarm occurring on motion task level or Motion Task Alarm Reset is ON1: Alarm occurring on motion task level
01Motion Program Operating0: Motion task is not executing program operation1: Motion task is executing program operation (turned OFF after deceleration/block stop is completed)
02Motion Program Operation completed0: When program operation is started1: END command was executed
03In Block Stop0: Not in Block Stop1: In Block Stop
04Speed Clamp Warning0: Speed not being clamped1: Speed clamped by maximum speed limit
05Start Warning0: Motion program started operating successfully1: Motion program could not start operating (Axis declaration, Axis mode)
06Start Bit (Supported in Unit Ver. 3.0 or later)Returns the Motion Program Operating Bit status from the CPU Unit.0: Motion Program Operating Bit OFF (0)1: Motion Program Operating Bit ON (1).
07-15ReservedReserved
Motion task 2 Status bitn+18OW034100-15Same as for Motion Task 1 StatusSame as for Motion Task 1 Status
Motion task 3 Status bitn+19OW034200-15Same as for Motion Task 1 StatusSame as for Motion Task 1 Status
Motion task 4 Status bitn+20OW034300-15Same as for Motion Task 1 StatusSame as for Motion Task 1 Status
Motion task 5 Status bitn+21OW034400-15Same as for Motion Task 1 StatusSame as for Motion Task 1 Status
Motion task 6 Status bitn+22OW034500-15Same as for Motion Task 1 StatusSame as for Motion Task 1 Status
Motion task 7 Status bitn+23OW034600-15Same as for Motion Task 1 StatusSame as for Motion Task 1 Status
Motion task 8 Status bitn+24OW034700-15Same as for Motion Task 1 StatusSame as for Motion Task 1 Status

7-3-2 DM Area Words for Unit (20 Words, CPU Unit MC Unit)

Default Setting Area
DM Output Area for the Unit (CPU MC Unit, 20 Words)

ClassificationWordVariablebitNameSpecifications
Unit area range settings(First time only)m---00-15Bit Area TypeSpecifies area type on CPU Unit0: Not used (no transfer)1: CIO2: WR3 and above: Reserved for system
m+1---00-15Bit Area First AddressSpecifies the first address on CPU Unit (Allocation for the axis number 1)0000H-(Upper limit varies depending on bit area type.)Note The transfer size is maximum effective axis number x 2 words
m+2---00-15Data Area TypeSpecifies area type on CPU Unit0: Not used (no transfer)1: CIO2: WR3: DM4: EM (fixed at Bank 0)5 and above: Reserved for system
m+3---00-15Data Area First AddressSpecifies the first address on CPU Unit (Allocation of the axis number 1)0000H-(Upper limit varies depending on bit area type.)Note The transfer size is maximum effective axis number x 4 words)
General I/O A area range settings(First time only)m+4---00-07PORT_A Number of Transferred WordsGeneral I/O A Number of Transferred Words1-160 words
08-14PORT_A Area TypeSpecifies area type on CPU Unit0: Not used (no transfer)1: CIO2: WR3: DM4: EM (fixed at Bank 0)5 and above: Reserved for system
15PORT_A DirectionGeneral I/O A Transfer Direction0: MC Unit → CPU1: CPU → MC Unit
m+5---0-15PORT_A First AddressCPU Unit First Address for General I/O A0000H-(Upper limit varies depending on PORT_A area type.)
General I/O B area range settingsm+6---Same as for General I/O A area range settings
m+7
General I/O C area range settingsm+8---Same as for General I/O A area range settings
m+9
General I/O D area range settingsm+10---Same as for General I/O A area range settings
m+11
General I/O E area range settingsm+12---Same as for General I/O A area range settings
m+13
General I/O F area range settingsm+14---Same as for General I/O A area range settings
m+15
General I/O G area range settingsm+16---Same as for General I/O A area range settings
m+17
General I/O H area range settingsm+18---Same as for General I/O A area range settings
m+19

Default Setting Area

Details of setting data for default setting area are explained here.

Custom Bit Area Settings

WordNameTiming for enabling the setting
mBit Area TypeWhen the power is turned ON, or when MC Unit is restarted
m+1Bit Area First Address
Data configuration 15 00 m m+1Setting range 0000 to 0002 Hex 0000 to XXXX Hex (XXXX varies depending on the bit area type.)
Area type
First address (Hex)

Explanation

  • Area type specification (word m)

Specifies the memory area of PLC to which the custom bit area is allocated.

00: Does not use the custom bit area

01: CIO area

Specifies CIO area of PLC starting from the specified first address (m + 1)

02:WR area

Specifies WR area of PLC starting from the specified first address (m + 1)

Note

When mounting several MC Units on the same PLC, make sure that the operation data areas of the MC Units do not overlap. Since MC Units do not detect the error even if custom bit areas of different Units are overlapping in PLC, a malfunction may result.

  • First address (word m+1)

When either CIO (0001) or WR (0002) area is specified for the custom bit area in the area type specification (word m), the first address is to be specified.

Set the first address in hexadecimal (Hex). The setting ranges are as follows:

CIO area: 0000 to 17BB Hex (0 to 6075)

WR area: 0000 to 01BB Hex (0 to 443)

When "Does not use the custom bit area (0000)" is specified in area type specification (word m), this setting is not necessary.

Setting example

Ex1:

m0001
m+10064

The custom bit area is allocated, as shown below, starting from word 0064Hex (100) of CIO area in PLC.

Control bitStatus bit
Axis 01100132
Axis 02101133
...
...
...
Axis 31130162
Axis 32131163

Ex2:

m0002
m+100C8

The custom bit area is allocated, as shown below, starting from word 00C8Hex (200) of CIO area in PLC.

Control bitStatus bit
Axis 01200232
Axis 02201233
...
...
...
Axis 31230262
Axis 32231263

Note

Custom bit area is allocated for 32 axes starting from the specified first address regardless of the setting of the axis parameter [P1AA01: Physical axis setting].

However, in the addresses corresponding to the axes that are set to "Not used" in the axis parameter [P1AA01: Physical axis setting], data is not transferred between CPU Unit and MC Unit.

Custom Data Area Settings

WordNameTiming for enabling the setting
m+2Data Area TypeWhen the power is turned ON, or when MC Unit is restarted
m+3Data Area First Address
Data configurationSetting range
15000000 to 0004 Hex
m+2Area type specification0000 to XXX Hex (XXXX varies depending on the data area type.)
m+3First address (Hex)

Explanation

  • Area type specification (word m + 2 )

Specifies the memory area of PLC to which the custom data area is allocated.

00: Does not use the custom data area

01: CIO area

Specifies CIO area of PLC starting from the specified first address ( + 3)

02:WR area

Specifies WR area of PLC starting from the specified first address ( + 3)

03: DM area (custom address)

Specifies DM area of PLC starting from the specified first address ( + 3)

04: EM area (custom word)

Specifies EM area of PLC starting from the specified first address ( + 3)

When EM area (04) is specified for the operation data area in area type specification (word m + 2 ), EM area is fixed at Bank No.0.

Note

Do not set the bank No. of the file memory on PLC. Specifying EM area of the file memory bank No. causes the alarm [0044h: CPU memory error].

When mounting several MC Units on the same PLC, make sure that operation data areas do not overlap. Since MC Units do not detect the error even if custom data areas of different Units are overlapping in PLC, a malfunction may result.

For details on bank and file memory for the EM Area, refer to the SYSMAC CS Series Programmable Controllers Operation Manual (W339) or the SYSMAC CJ Series Programmable Controllers Operation Manual (W393).

  • First address (word m+3)

When CIO (0001), WR (0002), DM (0003), or EM area (0004) is specified for the operation data area in the area type specification (word m + 2 ), the first address is to be specified.

Set the first address in hexadecimal (Hex). The setting ranges are as follows:

CIO area: 0000 to 177F Hex (0 to 6015)

WR area: 0000 to 017F Hex (0 to 383)

DM area: 0000 to 7F7F Hex (0 to 32639)

EM area: 0000 to 7F7F Hex (0 to 32639)

When "Does not use the custom data area (0000)" is specified in the area type specification (word m + 2 ), this setting is not necessary.

Setting example

m+20003
m+37530

The custom data area is allocated, as shown below, starting from word 7530Hex (30000) of DM area in PLC.

Control dataStatus data
3000030032 to 30034
3000130035 to 30037
Axis 313003030122 to 30124
Axis 323003130125 to 30127

Note

Custom data area is allocated for 32 axes starting from the specified first address regardless of the setting of the axis parameter [P1AA01: Physical axis setting].

However, in the addresses corresponding to the axes that are set to "Not used" in the axis parameter [P1AA01: Physical axis setting], data is not transferred between CPU Unit and MC Unit.

General I/O Area Settings (with PORT A)

WordNameTiming for enabling the setting
m+4PORT Area Type, No. of Transferred Words, Direction SpecificationWhen the power is turned ON, or when MC Unit is restarted
m+5PORT Area First Address
Data configuration 15 14 08 00 m+4 m+5Setting range 0000 to XYZZ Hex (X = 0 or 8, Y = 0 to 4, ZZ = 00 to A0) 0000 to XXX Hex (XXXX varies depending on the data area type.)
DirectionArea type specificationNo. of transferred words
First address (Hex)

Explanation

  • No. of transferred words (word m+4 bit00 to 07)

is the No. of words transferred between CPU Unit and

The No. of words specified here starting from the first address specified in (word m+5) is transferred.

  • Area type specification (word m+4 bit08 to 14)

Specifies the memory area of PLC to which the general I/O area is allocated.

00: Does not use the general I/O area

01: CIO area

Specifies CIO area of PLC starting from the specified first address ( + 5)

02:WR area

Specifies WR area of PLC starting from the specified first address ( + 5)

03: DM area (custom address)

Specifies DM area of PLC starting from the specified first address ( + 5)

04: EM area (custom word)

Specifies EM area of PLC starting from the specified first address ( + 5)

  • PORT direction (word m+4 bit15)

Specifies the direction of transferring general I/O.

0: MC Unit CPU Unit

Output variables of MC unit (with PORT_A: from OW0B00 on) for the specified No. of transferred words (word m+4 bit00 to 07) are transferred to the memory area of PLC specified with the area type specification (word m+4 bit08 to 14) and the first address (word m+5).

1: CPU Unit MC Unit

The specified No. of words (word m+4 bit00 to 07) is transferred from the memory area of PLC specified in the area type specification (word m+4 bit08 to 14) and the first address (word m+5) to input variables of MC Unit (with PORT_A: from IW0B00 on).

When EM area (04) is specified for the operation data area in the area type specification (word m+4 bit08 to 14), EM area is fixed at Bank No.0.

Note Do not set the bank No. of the file memory on PLC. Specifying EM area of the file memory bank No. causes the alarm [0044h: CPU memory error].

When mounting several MC Units on the same PLC, make sure that operation data areas do not overlap. Since MC Units do not detect the error even if general I/O areas of different Units are overlapping in PLC, a malfunction may result.

For details on bank and file memory for the EM Area, refer to the SYSMAC CS Series Programmable Controllers Operation Manual (W339) or the SYSMAC CJ Series Programmable Controllers Operation Manual (W393).

  • First address (word m+5)

When CIO (0001), WR (0002), DM (0003), or EM area (0004) is specified for the operation data area in the area type specification (word m+4 bit08 to 14), the first address is to be specified.

Set the first address in hexadecimal (Hex). The setting range varies depending on the setting of the No. of transferred words (word m+4 bit00 to 07).

When setting the No. of transferred words to its maximum “A0 Hex (160)”, the setting ranges are as follows:

CIO area: 0000 to 175F Hex (0 to 5983)

WR area: 0000 to 015F Hex (0 to 351)

DM area: 0000 to 7F5F Hex (0 to 32607)

EM area: 0000 to 7F5F Hex (0 to 32607)

When "Does not use the general I/O area (00)" is specified in the area type specification (word m+4 bit 08 to 14), this setting is not necessary.

Setting example

Ex1:

General I/O A (PORT_A)

m+4
m+5

840A
4E20

0Ahex (10) words of the custom I/O area starting from word 4E20Hex (20000) in EM area of PLC are transferred to input variables of MC Unit (IW0B00~).

PORT_A

On PLCDirectionOn MC Unit
EM 20000 to 20009IW 0B00 to 0B09

Ex2:

General I/O Am+4010A
(PORT_A)m+50000
General I/O Bm+68164
(PORT_B)m+71388
General I/O Cm+88205
(PORT_C)m+900C8
General I/O Dm+1084A0
(PORT_D)m+112710
General I/O Em+120000
(PORT_E)m+130000
General I/O Fm+14810A
(PORT_F)m+15000A
General I/O Gm+1603A0
(PORT_G)+17m7D00
General I/O Hm+180328
(PORT_H)m+197DA0

The custom I/O area is allocated to the memory area of PLC as shown below:

PORT_A

PORT_B

PORT_C

On PLCDirectionOn MC Unit
CIO 0000 to 0009OW 0B00 to 0B09
CIO 5000 to 5099IW 0BA0 to 0C03
WR 200 to 204IW 0C40 to 0C43

PORT_D

PORT_E

PORT_F

PORT_G

PORT_H

On PLCDirectionOn MC Unit
EM 10000 to 10159IW 0CE0 to 0D7F
Not used.------
CIO 0010 to 0019IW 0E20 to 0E29
DM 32000 to 32159OW 0EC0 to 0F5F
DM 32160 to 32199OW 0F60 to 0F87

General I/O Area Range Setting (with PORT_A)

WordNameTiming for enabling the setting
m+74PORT_A transfer area type at MC UnitWhen the power is turned ON, or when MC Unit is restarted
m+75PORT_A transfer first address at MC Unit
Data configuration 15 00 m+74 Area type (Hex) m+75 First address (Hex)Setting range Area type: 0000 to 000D Hex First address: 0000 to xxxx Hex (xxxx: Upper limit depends on area type.)

Explanation

  • Area type specification (word m+74)

Specifies in hexadecimal the area to transfer between the CPU Unit and the MC Unit.

0000: System variables

0001: Global general variables

0002: Input variables

0003: Output variables

0004: Position data

0005: Reserved

0006: Task variable 1

0007: Task variable 2

0008: Task variable 3

  • First address (word m+75)

Specifies in hexadecimal the first word to be transferred in the area specified for the Area Type. Address specifications are as follows:

System variables

0000-07FF

Global general variables

0000-1FFF

Input variables

0000-0FFF

Output variables

0000-0FFF

Position data

0000-27FF ("0000" and "27FF"

correspond to xxxx in PLxxxx.)

Task variables

0000-007F

The settings for PORT_B to PORT_H are the same (m + 76 to m + 89)

Setting example

The following settings are used to transfer 10 words (0A Hex words) of data from EM 20000 (4E20 Hex) in the EM Area of the PLC to position data PL0000 to PL0004 in the MC Unit for custom I/O area A.

  • Bit 08 of parameter P00004 is set to 1.

  • The following values are set for m + 4 and m + 5 .

General I/O Am+4840A
(PORT_A)m+54E20
  • The following values are set for m + 74 and m + 75 .
General I/O Am+740004
Range settingm+750000

Data Area
DM Output Area Words for the Unit (CPU Unit MC Unit, 18 words)

ClassificationWordVariablebitNameSpecifications
Unit control datam+20IW031000-15Teaching AddressSpecifies teaching start address 0-10239
Reservedm+21IW033000-15ReservedReserved
Motion task 1 Control datam+22IW036000-15Motion Task 1 Pro-gram No.Specifies program No. to be executed with motion task 0-499
m+23IW036100-15Motion Task 1 Over-rideSets override value to be used in motion program 0.00 to 327.67[%], 0.01% unit
Motion task 2 Control datam+24IW036200-15Same as for Motion Task 1Same as for Motion Task 1
m+25IW0363
Motion task 3 Control datam+26IW036400-15Same as for Motion Task 1Same as for Motion Task 1
m+27IW0365
Motion task 4 Control datam+28IW036600-15Same as for Motion Task 1Same as for Motion Task 1
m+29IW0367
Motion task 5 Control datam+30IW036800-15Same as for Motion Task 1Same as for Motion Task 1
m+31IW0369
Motion task 6 Control datam+32IW036A00-15Same as for Motion Task 1Same as for Motion Task 1
m+33IW036B
Motion task 7 Control datam+34IW036C00-15Same as for Motion Task 1Same as for Motion Task 1
m+35IW036D
Motion task 8 Control datam+36IW036E00-15Same as for Motion Task 1Same as for Motion Task 1
m+37IW036F

DM Input Area Words for the Unit (MC Unit CPU Unit, 36 words)

ClassificationWordVariablebitNameSpecifications
Unit Status datam+38OW031000-15Unit Alarm CodeOutputs the code of the alarm occurring on Unit level.
m+39OW031100-15Teaching Address MonitorOutputs address currently being object of teaching
Reservedm+40OW033000-15ReservedReserved
m+41OW033100-15ReservedReserved
Motion task 1 Status datam+42OW036000-15Motion Task Alarm CodeOutputs the code of the alarm occurring on motion task level.
m+43OW036100-15Executing Motion Program No.Outputs the program No. of the program currently being executed by a motion task or temporarily being stopped.
m+44OW036200-15Executing Motion Block No. (Single execution command)Outputs the block No. of the single execution command currently being executed by a motion task or temporarily being stopped. During execution of parallel branching, the block number of the leftmost block is output.
m+45OW036300-15Executing Motion Block No. (Multiple execution command)Outputs the block number of the multiple execution command currently being executed by a motion task or temporarily being stopped is output. During execution of parallel branching, the block number of the leftmost block is output.
Motion task 2 Status datam+46OW036400-15Same as Motion Task 1 Status dataSame as Motion Task 1 Status data
m+47OW036500-15
m+48OW036600-15
m+49OW036700-15
Motion task 3 Status datam+50OW036800-15Same as Motion Task 1 Status dataSame as Motion Task 1 Status data
m+51OW036900-15
m+52OW036A00-15
m+53OW036B00-15
Motion task 4 Status datam+54OW036C00-15Same as Motion Task 1 Status dataSame as Motion Task 1 Status data
m+55OW036D00-15
m+56OW036E00-15
m+57OW036F00-15
Motion task 5 Status datam+58OW037000-15Same as Motion Task 1 Status dataSame as Motion Task 1 Status data
m+59OW037100-15
m+60OW037200-15
m+61OW037300-15
Motion task 6 Status datam+62OW037400-15Same as Motion Task 1 Status dataSame as Motion Task 1 Status data
m+63OW037500-15
m+64OW037600-15
m+65OW037700-15
Motion task 7 Status datam+66OW037800-15Same as Motion Task 1 Status dataSame as Motion Task 1 Status data
m+67OW037900-15
m+68OW037A00-15
m+69OW037B00-15
Motion task 8 Status datam+70OW037C00-15Same as Motion Task 1 Status dataSame as Motion Task 1 Status data
m+71OW037D00-15
m+72OW037E00-15
m+73OW037F00-15

7-3-3 Custom Bit Area

Custom Bit Area (CPU MC Unit, 32 words)

ClassificationWordVariablebitNameSpecifications
Axis 1 Control bitsx+0IW044000Axis Alarm Reset0: Nil1: Does not turn ON the bit [Axis Alarm]↑: Clears the alarm occurring on axis level and MLK slave alarm↓: Nil
01Deceleration Stop0: Nil1: Prohibits JOG, STEP, Origin Search, Machine Origin Return in manual mode↑: Deceleration stop (JOG, STEP, Origin Search, Machine Origin Return)↓: Nil
02Servo Lock0: Nil1: Nil↑: Starts Servo lock↓: Nil
03Servo Unlock0: Nil1: Prohibits Servo lock↑: Cancels Servo lock state↓: Nil
04JOG0: Nil1: Continues JOG operation↑: Starts JOG operation↓: Stops JOG operation
05STEP0:Ni1: Continues STEP operation↑: Starts STEP operation↓: Stops STEP operation
06Origin Search0:Ni1: Continues Origin Search↑: Starts Origin Search↓: Stops Origin Search
07Machine Origin Return0: Nil1: Continues Machine Origin Return (PTP)↑: Starts Machine Origin Return (PTP)↓: Stops Machine Origin Return (PTP)
08Error Counter Reset0: Nil1: Nil↑: Resets error counter (Command position = Present position)↓: Interrupts error counter reset
09Forced Origin0: Nil1: Nil↑: Defines the present position as the origin on the machine coordinate system (invalid when the axis is moving)↓: Nil
Axis 1 Control bitsx+0IW044010ABS Origin Setting0: Nil1: Nil↑: Sets the absolute encoder origin↓: Nil
11Axis Override Enable0: Disables axis override value (override 100% is used)1: Enables axis override value↑: Nil↓: Nil
12JOG/STEP Direction0: Sets the JOG and STEP operation direction to positive1: Sets the JOG and STEP operation direction to negative↑: Nil↓: Nil
13Axis Machine Lock0: Not using Axis machine lock mode1: Using Axis machine lock mode↑: Nil↓: Nil
14ReservedReserved
15Manual/Automatic Mode0: Manual Mode1: Automatic Mode↑: Decelerates to stop the manual operation being executed↓: Decelerates to stop the automatic operation being executed
Axis 2 control bitsx+1IW044100-15Same as for Axis 1Same as for Axis 1
Axis 3 control bitsx+2IW044200-15Same as for Axis 1Same as for Axis 1
Axis 4 control bitsx+3IW044300-15Same as for Axis 1Same as for Axis 1
Axis 5 control bitsx+4IW044400-15Same as for Axis 1Same as for Axis 1
Axis 6 control bitsx+5IW044500-15Same as for Axis 1Same as for Axis 1
Axis 7 control bitsx+6IW044600-15Same as for Axis 1Same as for Axis 1
Axis 8 control bitsx+7IW044700-15Same as for Axis 1Same as for Axis 1
Axis 9 control bitsx+8IW044800-15Same as for Axis 1Same as for Axis 1
Axis 10 control bitsx+9IW044900-15Same as for Axis 1Same as for Axis 1
Axis 11 control bitsx+10IW044A00-15Same as for Axis 1Same as for Axis 1
Axis 12 control bitsx+11IW044B00-15Same as for Axis 1Same as for Axis 1
Axis 13 control bitsx+12IW044C00-15Same as for Axis 1Same as for Axis 1
Axis 14 control bitsx+13IW044D00-15Same as for Axis 1Same as for Axis 1
Axis 15 control bitsx+14IW044E00-15Same as for Axis 1Same as for Axis 1
Axis 16 control bitsx+15IW044F00-15Same as for Axis 1Same as for Axis 1
Axis 17 control bitsx+16IW045000-15Same as for Axis 1Same as for Axis 1
Axis 18 control bitsx+17IW045100-15Same as for Axis 1Same as for Axis 1
Axis 19 control bitsx+18IW045200-15Same as for Axis 1Same as for Axis 1
Axis 20 control bitsx+19IW045300-15Same as for Axis 1Same as for Axis 1
Axis 21 control bitsx+20IW045400-15Same as for Axis 1Same as for Axis 1
Axis 22 control bitsx+21IW045500-15Same as for Axis 1Same as for Axis 1
Axis 23 control bitsx+22IW045600-15Same as for Axis 1Same as for Axis 1
Axis 24 control bitsx+23IW045700-15Same as for Axis 1Same as for Axis 1
Axis 25 control bitsx+24IW045800-15Same as for Axis 1Same as for Axis 1
Axis 26 control bitsx+25IW045900-15Same as for Axis 1Same as for Axis 1
Axis 27 control bitsx+26IW045A00-15Same as for Axis 1Same as for Axis 1
Axis 28 control bitsx+27IW045B00-15Same as for Axis 1Same as for Axis 1
Axis 29 control bitsx+28IW045C00-15Same as for Axis 1Same as for Axis 1
Axis 30 control bitsx+29IW045D00-15Same as for Axis 1Same as for Axis 1
Axis 31 control bitsx+30IW045E00-15Same as for Axis 1Same as for Axis 1
Axis 32 control bitsx+31IW045F00-15Same as for Axis 1Same as for Axis 1

Custom Bit Area (MC Unit CPU, 32 words)

ClassificationWordVariablebitNameSpecifications
Axis 1 Status bitsx+32OW044000Axis Alarm0: No alarm occurring on axis or MLK slave or Axis Alarm Reset is ON.1: Alarm occurring on axis or MLK slave
01Machine Origin0: Machine coordinate system FB position is outside of the origin in-position range1: Machine coordinate system FB position is within the origin in-position range.
02Busy0: Not executing functions listed below.1: Executing the functions listed below or Command is ON JOG, STEP, Origin Search, Machine Origin Return, Error Counter Reset, Forced Origin, and ABS Origin Setting
03In Servo Lock0: In Servo Unlock1: In Servo Lock
04No Origin0: Origin on machine coordinate system is defined1: Origin on machine coordinate system is not defined(Always OFF for virtual axis and ABS encoder axis whose origin has been already set.)
05Axis Operating0: No axis operating command being output1: Axis operating command being output
06Positioning Com- pleted0: Outputting positioning command, or axis is outside of in-position range1: Not outputting positioning command and axis is within in-position range.
07Positioning Com- pleted (No.2)0: Outputting positioning command, or axis is outside of No.2 in-position range.1: Not outputting positioning command, and axis is within No.2 in-position range.
08Error Counter Warn- ing0: Error amount is within error counter warning range1: Error amount exceeded the error counter warning value
09Axis Machine Lock Status0: Not in Axis machine lock mode1: In Axis machine lock mode
10Counter Latch Com- pleted0: Counter latch not completed1: Counter latch completed
11MECHATROLINK Warning0: Warning is not detected on MECHA- TROLINK-II device1: Warning is detected on MECHATROLINK-II device
12Main power ON (Supported in Unit Ver. 3.0 or later)0: Servo Driver main circuit power OFF.1: Servo Driver main circuit power ON.
13Command Disabled/ Enabled0: Not allocated or not implemented1: Allocated and implemented(1 for virtual axis unconditionally)
14Axis Not Used/Used0: Axis is not used1: Axis is used(In Manual Mode: JOG, etc. being executed, In Automatic Mode: Axis declared in the program that is operating)
Axis 1 Status bitsx+32OW044015In Manual/Automatic Mode0: In Manual Mode 1: In Automatic Mode
Axis 2 Status bitsx+33OW044100-15Same as for Axis 1Same as for Axis 1
Axis 3 Status bitsx+34OW044200-15Same as for Axis 1Same as for Axis 1
Axis 4 Status bitsx+35OW044300-15Same as for Axis 1Same as for Axis 1
Axis 5 Status bitsx+36OW044400-15Same as for Axis 1Same as for Axis 1
Axis 6 Status bitsx+37OW044500-15Same as for Axis 1Same as for Axis 1
Axis 7 Status bitsx+38OW044600-15Same as for Axis 1Same as for Axis 1
Axis 8 Status bitsx+39OW044700-15Same as for Axis 1Same as for Axis 1
Axis 9 Status bitsx+40OW044800-15Same as for Axis 1Same as for Axis 1
Axis 10 Status bitsx+41OW044900-15Same as for Axis 1Same as for Axis 1
Axis 11 Status bitsx+42OW044A00-15Same as for Axis 1Same as for Axis 1
Axis 12 Status bitsx+43OW044B00-15Same as for Axis 1Same as for Axis 1
Axis 13 status bitsx+44OW044C00-15Same as for Axis 1Same as for Axis 1
Axis 14 Status bitsx+45OW044D00-15Same as for Axis 1Same as for Axis 1
Axis 15 Status bitsx+46OW044E00-15Same as for Axis 1Same as for Axis 1
Axis 16 Status bitsx+47OW044F00-15Same as for Axis 1Same as for Axis 1
Axis 17 Status bitsx+48OW045000-15Same as for Axis 1Same as for Axis 1
Axis 18 Status bitsx+49OW045100-15Same as for Axis 1Same as for Axis 1
Axis 19 Status bitsx+50OW045200-15Same as for Axis 1Same as for Axis 1
Axis 20 Status bitsx+51OW045300-15Same as for Axis 1Same as for Axis 1
Axis 21 Status bitsx+52OW045400-15Same as for Axis 1Same as for Axis 1
Axis 22 Status bitsx+53OW045500-15Same as for Axis 1Same as for Axis 1
Axis 23 Status bitsx+54OW045600-15Same as for Axis 1Same as for Axis 1
Axis 24 Status bitsx+55OW045700-15Same as for Axis 1Same as for Axis 1
Axis 25 Status bitsx+56OW045800-15Same as for Axis 1Same as for Axis 1
Axis 26 Status bitsx+57OW045900-15Same as for Axis 1Same as for Axis 1
Axis 27 Status bitsx+58OW045A00-15Same as for Axis 1Same as for Axis 1
Axis 28 Status bitsx+59OW045B00-15Same as for Axis 1Same as for Axis 1
Axis 29 Status bitsx+60OW045C00-15Same as for Axis 1Same as for Axis 1
Axis 30 Status bitsx+61OW045D00-15Same as for Axis 1Same as for Axis 1
Axis 31 Status bitsx+62OW045E00-15Same as for Axis 1Same as for Axis 1
Axis 32 Status bitsx+63OW045F00-15Same as for Axis 1Same as for Axis 1

7-3-4 Custom Data Area

Custom Data Area (CPU MC Unit, 32 words)

ClassificationWordVariablebitNameSpecifications
Axis 1 Control datad+0IW048000-15Axis 1 OverrideSets the override value to be used for the axis. 0.00 to 327.67 [%], 0.01% unit
Axis 2 Control datad+1IW048100-15Axis 2 OverrideSame as for Axis 1 Control data
Axis 3 Control datad+2IW048200-15Axis 3 OverrideSame as for Axis 1 Control data
Axis 4 Control datad+3IW048300-15Axis 4 OverrideSame as for Axis 1 Control data
Axis 5 Control datad+4IW048400-15Axis 5 OverrideSame as for Axis 1 Control data
Axis 6 Control datad+5IW048500-15Axis 6 OverrideSame as for Axis 1 Control data
Axis 7 Control datad+6IW048600-15Axis 7 OverrideSame as for Axis 1 Control data
Axis 8 Control datad+7IW048700-15Axis 8 OverrideSame as for Axis 1 Control data
Axis 9 Control datad+8IW048800-15Axis 9 OverrideSame as for Axis 1 Control data
Axis 10 Control datad+9IW048900-15Axis 10 OverrideSame as for Axis 1 Control data
Axis 11 Control datad+10IW048A00-15Axis 11 OverrideSame as for Axis 1 Control data
Axis 12 Control datad+11IW048B00-15Axis 12 OverrideSame as for Axis 1 Control data
Axis 13 Control datad+12IW048C00-15Axis 13 OverrideSame as for Axis 1 Control data
Axis 14 Control datad+13IW048D00-15Axis 14 OverrideSame as for Axis 1 Control data
Axis 15 Control datad+14IW048E00-15Axis 15 OverrideSame as for Axis 1 Control data
Axis 16 Control datad+15IW048F00-15Axis 16 OverrideSame as for Axis 1 Control data
Axis 17 Control datad+16IW049000-15Axis 17 OverrideSame as for Axis 1 Control data
Axis 18 Control datad+17IW049100-15Axis 18 OverrideSame as for Axis 1 Control data
Axis 19 Control datad+18IW049200-15Axis 19 OverrideSame as for Axis 1 Control data
Axis 20 Control datad+19IW049300-15Axis 20 OverrideSame as for Axis 1 Control data
Axis 21 Control datad+20IW049400-15Axis 21 OverrideSame as for Axis 1 Control data
Axis 22 Control datad+21IW049500-15Axis 22 OverrideSame as for Axis 1 Control data
Axis 23 Control datad+22IW049600-15Axis 23 OverrideSame as for Axis 1 Control data
Axis 24 Control datad+23IW049700-15Axis 24 OverrideSame as for Axis 1 Control data
Axis 25 Control datad+24IW049800-15Axis 25 OverrideSame as for Axis 1 Control data
Axis 26 Control datad+25IW049900-15Axis 26 OverrideSame as for Axis 1 Control data
Axis 27 Control datad+26IW049A00-15Axis 27 OverrideSame as for Axis 1 Control data
Axis 28 Control datad+27IW049B00-15Axis 28 OverrideSame as for Axis 1 Control data
Axis 29 Control datad+28IW049C00-15Axis 29 OverrideSame as for Axis 1 Control data
Axis 30 Control datad+29IW049D00-15Axis 30 OverrideSame as for Axis 1 Control data
Axis 31 Control datad+30IW049E00-15Axis 31 OverrideSame as for Axis 1 Control data
Axis 32 Control datad+31IW049F00-15Axis 32 OverrideSame as for Axis 1 Control data

Custom Data Area (MC Unit CPU, 96 words)

ClassificationWordVariablebitNameSpecifications
Axis 1 Status datad+32OW048000-15Axis Alarm CodeOutputs the code of the alarm occurring on axis or MECHATROLINK-II slave.
d+33OW048100-15Present Value MonitorSelects from the following ten items to output. Corresponds to the following system variables.
d+34OW048200-15• Feedback position (coordinating system currently being selected) • Feedback position (machine coordinate system) • Command position (coordinating system currently being selected) • Command position (machine coordinate system) • Feedback speed 1 • Feedback speed 2 • Command speed 1 • Command speed 2 • Error • Torque command Note that however, when [I/O axis] is specified in the parameter [P1AA02: MECHATROLINK-II device type], 0 will be always output regardless of the settings of [SL0200, SL0202].
Axis 2 Status datad+35OW048300-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+36OW0484
d+37OW0485
Axis 3 Status datad+38OW048600-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+39OW0487
d+40OW0488
Axis 4 Status datad+41OW048900-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+42OW048A
d+43OW048B
Axis 5 Status datad+44OW048C00-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+45OW048D
d+46OW048E
Axis 6 Status datad+47OW048F00-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+48OW0490
d+49OW0491
Axis 7 Status datad+50OW049200-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+51OW0493
d+52OW0494
Axis 8 Status datad+53OW049500-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+54OW0496
d+55OW0497
Axis 9 Status datad+56OW049800-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+57OW0499
d+58OW049A
Axis 10 Status datad+59OW049B00-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+60OW049C
d+61OW049D
Axis 11 Status datad+62OW049E00-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+63OW049F
d+64OW04A0
Axis 12 Status datad+65OW04A100-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+66OW04A2
d+67OW04A3
Axis 13 Status datad+68OW04A400-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+69OW04A5
d+70OW04A6
Axis 14 Status datad+71OW04A700-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+72OW04A8
d+73OW04A9
Axis 15 Status datad+74OW04AA00-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+75OW04AB
d+76OW04AC
Axis 16 Status datad+77OW04AD00-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+78OW04AE
d+79OW04AF
Axis 17 Status datad+80OW04B000-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+81OW04B1
d+82OW04B2
Axis 18 Status datad+83OW04B300-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+84OW04B4
d+85OW04B5
Axis 19 Status datad+86OW04B600-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+87OW04B7
d+88OW04B8
Axis 20 Status datad+89OW04B900-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+90OW04BA
d+91OW04BB
Axis 21 Status datad+92OW04BC00-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+93OW04BD
d+94OW04BE
Axis 22 Status datad+95OW04BF00-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+96OW04C0
d+97OW04C1
Axis 23 Status datad+98OW04C200-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+99OW04C3
d+100OW04C4
Axis 24 Status datad+101OW04C500-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+102OW04C6
d+103OW04C7
Axis 25 Status datad+104OW04C800-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+105OW04C9
d+106OW04CA
Axis 26 Status datad+107OW04CB00-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+108OW04CC
d+109OW04CD
Axis 27 Status datad+110OW04CE00-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+111OW04CF
d+112OW04D0
Axis 28 Status datad+113OW04D100-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+114OW04D2
d+115OW04D3
Axis 29 Status datad+116OW04D400-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+117OW04D5
d+118OW04D6
Axis 30 Status datad+119OW04D700-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+120OW04D8
d+121OW04D9
Axis 31 Status datad+122OW04DA00-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+123OW04DB
d+124OW04DC
Axis 32 Status datad+125OW04DD00-15Same as for Axis 1 Status dataSame as for Axis 1 Status data
d+126OW04DE
d+127OW04DF

Custom Area (CPU MC Unit, 8 Areas × 160 words)

ClassificationWordVariablebitNameSpecifications
General I/O Aa_AIW0B00 - IW0B9F or OW0B00 - OW0B9F00-15General I/O A Word 1-160Reflects the data from general output A (CPU→MC Unit), or sets the data to be output to general input A (MC Unit→CPU)
General I/O Ba_BIW0BA0 - IW0C3F or OW0BA0 - OW0C3F00-15General I/O B Word 1-160Same as for General I/O A
General I/O Ca_CIW0C40 - IW0CDF or OW0C40 - OW0CDF00-15General I/O C Word 1-160Same as for General I/O A
General I/O Da_DIW0CE0 - IW0D7F or OW0CE0 - OW0D7F00-15General I/O D Word 1-160Same as for General I/O A
General I/O Ea_EIW0D80 - IW0E1F or OW0D80 - OW0E1F00-15General I/O E Word 1-160Same as for General I/O A
General I/O Fa_FIW0E20 - IW0EBF or OW0E20 - OW0EBF00-15General I/O F Word 1-160Same as for General I/O A
General I/O Ga_GIW0EC0 - IW0F5F or OW0EC0 - OW0F5F00-15General I/O G Word 1-160Same as for General I/O A
General I/O Ha_HIW0F60 - IW0FFF or OW0F60 - OW0FFF00-15General I/O H Word 1-160Same as for General I/O A

7-4 Interface Specifics

This section provides detailed information on each bit in the PC IF Area and the functions of data in allocated DM Area.

Response Time

For each bit, description of 'Timing Chart' is provided. [T1] indicates the Unit Scan while [Tu] indicates being not fixed.

OMRON CJ1W-MCH71 - Response Time - 1

Note

The MC Unit supports processing of great amounts of data and varieties of peripheral devices to realize multi-axis applications. Due to the fact, it takes the MC Unit a certain period of time (8 seconds min.) to get ready for operation.

To make the MC Unit receive commands from the PLC without fail, the bit [Unit Ready] is provided. When sending commands from the PLC to the MC Unit, make sure to check the bit [Unit Ready].

For details of the bit [Unit Ready], see page 440.

7-4-1 Unit Control Bits

WordVariableBitNameI/O
n+0IW030000Unit Alarm ResetOutput

Function

  • If an error that requires stopping internal operation of the Unit occurs, it will be detected as an alarm.
  • Using Unit Alarm Reset after having removed the cause of the error can clear the alarm.

Command and Operation

NameSpecifications
Unit Alarm Reset0: Nil1: Does not turn ON the bit [Unit Alarm]↑: Clears the alarm occurring on Unit level↓: Nil

The alarm on Unit level will be cleared when the bit [Unit Alarm Reset] is turned ON.

Status Condition

NameSpecifications
Alarm Occurring0: No alarm occurring 1: Alarm occurring on MC Unit (linked to ERC indicator)
Unit Alarm Occurring0: No alarm occurring on Unit level 1: Alarm occurring on Unit level
Unit Alarm0: No Alarm occurring on Unit level or the bit [Unit Alarm Reset] is ON1: Alarm occurring on unit level
Unit Alarm CodeOutput the code of the alarm occurring on Unit level
  • When an alarm occurs on the Unit level, the bits [Alarm Occurring], [Unit Alarm Occurring], and [Unit Alarm] turn ON and the alarm code will be stored in the Unit status data [Unit Alarm Code].
  • If several alarms occur, only the code of the first alarm will be stored in [Unit Alarm Code].

Effect of Other Functions Nil

Effect on Other Functions When an alarm occurs, it affects other functions (operation failure, operation interruption, etc.)

System Parameter Nil

Program Example

OMRON CJ1W-MCH71 - Status Condition - 1

On MC Unit, there are three types of alarms:

  • Unit alarm
  • Task alarm
  • Axis alarm

Alarms are reset on the basis of each type. Therefore, execute the alarm reset over the Unit, Task, and Axis to clear an alarm occurring on the MC Unit without fail.

Timing Chart

Basic operation (Alarm Occurring):

Alarm Identification: Alarm Occurring1 0
Alarm Identification: Unit Alarm Occurring1 0
Unit Status Bit: Unit Alarm1 0
Unit Status Data: Alarm Code0XXXX
Internal Alarm Status1 0

Basic operation (Alarm Reset):

OMRON CJ1W-MCH71 - Basic operation (Alarm Reset): - 1

OMRON CJ1W-MCH71 - Basic operation (Alarm Reset): - 2
Alarm that cannot be reset occurs:

OMRON CJ1W-MCH71 - Basic operation (Alarm Reset): - 3
Alarm occurs when [Unit Alarm Reset] has been ON:

WordVariableBitNameI/O
n+0IW030001System Parameter SaveOutput

Function

With this function, system parameters that have been changed using IOWR instruction in the ladder program can be saved into the Flash ROM of the MC Unit.

Command and Operation

NameSpecifications
System Parameter Save0: Nil1: Nil↑: Saves system parameters in the Flash ROM.↓: Nil
  • System parameters will be saved when the bit [System Parameter Save] is turned ON.
  • Turning OFF the bit [System Parameter Save] after the command reception will not interrupt the processing.

Status Condition

NameSpecifications
Flash Save Com-pleted0: Neither parameter nor position data save is completed 1: Parameter or position data save is completed (including error completion)
  • When saving is completed (normal completion or error completion), the bit [Flash Save Completed] will turn ON.
  • The same status bit is used for saving position data. Therefore, it is not recommended to save system parameters simultaneously with position data.

Effect of Other Functions Nil

Effect on Other Functions Nil

System Parameter Nil

Program Example

OMRON CJ1W-MCH71 - Program Example - 1

Timing Chart Basic operation:

OMRON CJ1W-MCH71 - Timing Chart Basic operation: - 1

The timing chart will be the same as the above even at error completions. Use the bit [Unit Alarm] to confirm normal completion or error completion. (Confirm with the alarm as it seldom happens.)

OMRON CJ1W-MCH71 - Timing Chart Basic operation: - 2
If [System Parameter Save] is turned OFF before completion:

WordVariableBitNameI/O
n+0IW030002Position Data SaveOutput

Function

With this function, the position data that has been changed using IOWR instruction or teaching function from ladder program is saved into the Flash ROM of the MC Unit.

Command and Operation

NameSpecifications
Position Data Save0: Nil1: Nil↑: Saves position data in the Flash ROM↓: Nil
  • Position data will be saved when the bit [Position Data Save] is turned ON.
  • Turning OFF the bit [Position Data Save] after the command reception will not interrupt the processing.

Status Condition

NameSpecifications
Flash Save Com-pleted0: Neither parameter nor position data save is completed 1: Parameter or position data save is completed (including error completion)
  • When saving is completed (normal completion or error completion), the bit [Flash Save Completed] will turn ON.
  • The same status bit is used for saving system parameters. Therefore, it is not recommended to save position data simultaneously with system parameters.

Effect of Other Functions Nil

Effect on Other Functions Nil

System Parameter

Nil

Program Example

OMRON CJ1W-MCH71 - Status Condition - 1

Timing Chart

Basic Operation:

OMRON CJ1W-MCH71 - Status Condition - 2

The timing chart will be the same as the above even at error completions. Use the bit [Unit Alarm] to confirm normal completion or error completion. (Confirm with the alarm as it seldom happens.)

WordsVariablesBitsNameI/O
n+0IW030003Teaching Condition SettingOutput
n+0IW030004Teaching TypeOutput
n+0IW030005Teaching ExecutionOutput
n+1IW030100-15Teaching Axis Setting 1-16Output
n+2IW030200-15Teaching Axis Setting 17-32Output

Function

  • To use the actual positions on an application in motion programs as position data, the present positions are stored in position data.
  • Generally, there are following 2 operations:

  • Teaching Condition Setting:
    The axis and address of teaching object will be specified when the bit [Teaching Condition Setting] is turned ON.

  • Teaching Execution:

The present position will be stored in position data when the bit [Teaching Execution] is turned ON.

Command and Operation

NameSpecifications
Teaching Condition Setting0: Nil1: Nil↑: Specifies the Teaching axis, reads the Teaching address.↓: Nil
Teaching Type0: Feedback present position1: Command present position↑: Nil↓: Nil
Teaching Execution0:Nil1:Nil↑: Writes present position specified with Teaching type into position data↓: Nil
Teaching Axis Setting 1-160: Nil1: Specifies the axis as a teaching axis↑: Nil↓: Nil
Teaching Axis Setting 17-320: Nil1: Specifies the axis as a teaching axis↑: Nil↓: Nil
Teaching AddressSpecifies the teaching start address0-10239
  • [Teaching Axis Setting 1-16], [Teaching Axis Setting 17-32], and [Teaching Address] will be read when the bit [Teaching Condition Setting] is turned ON, and then, teaching will be ready to be started.
  • When the bit [Teaching Execution] is turned ON, the data specified with [Teaching Type] of the axes specified with the bits [Teaching Axis Setting 1-16] and [Teaching Axis Setting 17-32] will be stored in position data.
  • The bit [Teaching Type] will be referenced when the bit [Teaching Execution] is turned ON and it cannot be changed during execution of teaching.
  • If [Teaching Condition Setting] is omitted after teaching execution, the address of teaching object will be incremented for the number of axes specified with the bits [Teaching Axis Setting 1-16] and [Teaching Axis Setting 17-32].
  • Condition setting and execution can be performed simultaneously by turning ON the bits [Teaching Condition Setting] and [Teaching Execution] simultaneously. However, when an error occurred, there is no way to know which operation caused the error. Therefore, it is not recommended.

  • The bit [Teaching Address] will return to zero if the address after increment in teaching execution exceeds 10239 (27FFh).

Status Condition

NameSpecifications
Teaching Warning0: Teaching condition setting, execution completed successfully 1: Condition error, Command disabled, No origin, or Address overflow
Teaching Condition Setting Completed0: When the bit [Teaching Condition Setting] is OFF 1: Teaching condition setting completed (including error completion)
Teaching Execution Completed0: When the bit [Teaching Execution] is OFF 1: Teaching execution completed (including error completion)
Teaching Address MonitorOutput the address of current teaching object
  • The bit [Teaching Warning] indicates the error status of teaching condition setting and teaching execution. It turns ON simultaneously with either of the bits [Teaching Condition Setting Completed] or [Teaching Execution Completed] under the following conditions respectively:

When Teaching condition setting is executed:

  • When [Teaching Axis Setting 1-16] = [Teaching Axis Setting 17-32] = 0
  • When there are any non-allocated axes among the axes specified with the bits [Teaching Axis Setting 1-16] and [Teaching Axis Setting 17-32]
  • [Teaching Address] is outside of position data range
  • When the addition of [Teaching Address] and the addresses for the number of axes specified with the bits [Teaching Axis Setting1-16] and [Teaching Axis Setting 17-32] exceeds the position data range

When Teaching is executed:

  • When [Teaching Execution] was turned ON without teaching condition setting
  • When the bits [Command Disabled/Enabled] for the axes specified with [Teaching Axis Setting 1-16] and [Teaching Axis Setting 17-32] are OFF, or when the bits [No Origin] for any of the axes are ON.
  • When the addition of [Teaching Address Monitor] and the addresses for the number of teaching-object axes exceeds the position data range

  • The bit [Teaching Condition Setting Completed] indicates the completion status (normal or error) of teaching condition setting and it will be turned OFF when the bit [Teaching Condition Setting] is turned OFF.

  • The bit [Teaching Execution Completed] indicates the completion status (normal or error) of teaching execution and it will be turned OFF when the bit [Teaching Execution] is turned OFF.
  • The bit [Teaching Address Monitor] indicates the address of the teaching object. It will be incremented for the number of axes specified with [Teaching Axis Setting 1-16] and [Teaching Axis Setting 17-32] when teaching execution is completed normally.

Effect of Other Functions

ClassificationItemsEffect
Physical statusServo axisNo effect
Virtual axisNo effect
I/O axisNo effect
Counter axisNo effect
Control statusIn Position controlNo effect
In Speed controlNo effect
In Torque controlNo effect
Status bitsBusyNo effect
In Servo LockNo effect
No OriginCannot execute Teaching if it is turned ON.
Axis OperatingNo effect
Positioning CompletedNo effect
Positioning Completed (No.2)No effect
Axis Machine Lock StatusNo effect
Command Disabled/EnabledCannot execute Teaching if it is turned OFF.
Axis Not Used/UsedNo effect
In Manual/Automatic ModeNo effect

Effect on Other Functions Nil

System Parameter Nil

OMRON CJ1W-MCH71 - When Teaching is executed: - 1
Program Example

OMRON CJ1W-MCH71 - When Teaching is executed: - 2
Timing Chart
Teaching Condition Setting (Normal completion):

OMRON CJ1W-MCH71 - When Teaching is executed: - 3
Teaching Condition Setting (Error Completion):

OMRON CJ1W-MCH71 - When Teaching is executed: - 4
Teaching Execution (Normal completion):

OMRON CJ1W-MCH71 - When Teaching is executed: - 5
Teaching Execution (Error completion):

WordVariableBitNameI/O
n+0IW030006Servo Parameter SaveOutput

Function

With this function, the servo parameters that have been changed using IOWR instruction in the ladder program are saved into both the Flash ROM of the MC Unit and the EEPROM of the Servo.

Command and Operation

NameSpecifications
Servo Parameter Save0: Nil1: Nil↑: Saves servo parameters in the Flash ROM and EEPROM.↓: Nil
  • Servo parameters will be saved when the bit [Servo Parameter Save] is turned ON.
  • Turning OFF the bit [Servo Parameter Save] after the command reception will not interrupt the processing.

Status Condition

NameSpecifications
Flash Save Com-pleted0: Neither parameter nor position data save is completed 1: Parameter or position data save is completed (including error completion)
  • When saving is completed (normal completion or error completion), the bit [Flash Save Completed] will turn ON.
  • The same status bit is used for saving position data. Therefore, it is not recommended to save servo parameters simultaneously with position data.

Effect of Other Functions Nil Effect on Other Functions Nil System Parameter Nil

Program Example

OMRON CJ1W-MCH71 - Program Example - 1

Timing Chart

Basic Operation:

OMRON CJ1W-MCH71 - Basic Operation: - 1

The timing chart will be the same as the above even at error completions. Use the bit [Unit Alarm] to confirm normal completion or error completion. (Confirm with the alarm as it seldom happens.)

OMRON CJ1W-MCH71 - Basic Operation: - 2
If [Servo Parameter Save] is turned OFF before completion:

WordVariableBitNameI/O
n+0IW030012-15Present Value Monitor SelectOutput

Function

  • The present value of the operation data such as positions, speed, etc. unique to each axis is output as monitor data.
  • Though data unique to each axis is handled, selection is made for the Unit. (Monitor data cannot be selected for each axis.)

Command and Operation

NameFunction
Present Value Monior SelectSelects data to be output to present value monitor.
0: Zero output Outputs 0.
1: Feedback position (coordinate system currently being selected) Outputs feedback position on the selected coordinate system.
2: Feedback position (machine coordinate system) Outputs feedback position on the machine coordinate system.
3: Command position (coordinate system currently being selected) Outputs command position on the selected coordinate system.
4: Command position (machine coordinate system) Outputs command position on the machine coordinate system.
5: Feedback speed 1 Outputs feedback speed (command unit/min) About the precision, refer to page 103.
6: Feedback speed 2 Outputs feedback speed (% or r/min). About the precision, refer to page 103.
7: Command speed 1 Outputs command speed (command unit/min).
8: Command speed 2 Outputs command speed (% or r/min).
9: Error Outputs error.
10: Torque Outputs Torque command value.
11 and above: Reserved for system Outputs 0.

Status Condition

NameFunction
Present Value Monitor StatusIndicates the output status of present value monitor.
0: Zero output
1: Feedback position (coordinate system currently being selected)
2: Feedback position (machine coordinate system)
3: Command position (coordinate system currently being selected)
4: Command position (machine coordinate system)
5: Feedback speed 1
6: Feedback speed 2
7: Command speed 1
8: Command speed 2
9: Error
10: Torque
11 and above: Reserved for system.
NameFunction
Servo AxisVirtual AxisI/O axis, Counter axis
Present Value MonitorSelects from the following 11 to outputAlways zero
0: ZeroValue range: 0, Unit: Nil
1: Feedback position (selected coordinate system)Value range: -2147483648 to 2147483647,Unit: Command unitSame value as for 3
2: Feedback position (machine coordinate system)Value range: -2147483648 to 2147483647,Unit: Command unitSame value as for 4.
3: Command position (selected coordinate system)Value range: -2147483648 to 2147483647,Unit: Command unit
4: Command position (machine coordinate system)Value range: -2147483648 to 2147483647,Unit: Command unit
5: Feedback speed 1Value range: -, Unit: Command unit/minSame value as for 7.
6: Feedback speed 2Value range: -,Unit: 0.01% (motor rated speed) or 0.01 r/minSame value as for 8.
7: Command speed 1Value range: -, Unit: Command unit/min
8: Command speed 2Value range: -,Unit: 0.01% (motor rated speed) or 0.01 r/minAlways zero
9: ErrorValue range: -, Unit: pulseAlways zero
10: TorqueValue range: -,Unit: 0.01% (In Position/Speed control: motor rated torque)0.01%(In Torque control: motor maximum torque)Always zero
  • Output status of [Present Value Monitor] is reflected in the bit [Present Value Monitor Status].
  • The operation data such as axis position and speed is output to [Present Value Monitor].
  • When [Present Value Monitor Select] is set to "0" or "11" and above, 0 will be output to [Present Value Monitor Status] and [Present Value Monitor].
  • When the unit status bit [Command Disabled/Enabled] is OFF, 0 will be output to [Present Value Monitor].

Effect of Other Functions

ClassificationItemEffects
Physical StatusServo axisRefer to the table [Present value monitor] above.
Virtual axisRefer to the table [Present value monitor] above.
I/O axisRefer to the table [Present value monitor] above.
Counter axisRefer to the table [Present value monitor] above.
Control StatusIn Position controlNo effect
In Speed controlNo effect
In Torque controlNo effect
Status BitsBusyNo effect
In Servo LockNo effect
No OriginNo effect
Axis OperatingNo effect
Positioning CompletedNo effect
Positioning Completed (No.2)No effect
Axis Machine Lock StatusNo effect
Command Disabled/EnabledWhen OFF: [Present Value Monitor] = 0 When ON: No effect
Axis Not Used/UsedNo effect
In Manual/Automatic ModeNo effect

Effect on Other Functions Nil

System Parameter

No.NamePurpose
P00004Unit Function SelectDetermining the unit for the feedback speed 2

Program Example

OMRON CJ1W-MCH71 - Status Condition - 1

Timing Chart Basic operation:

OMRON CJ1W-MCH71 - Status Condition - 2

7-4-2 Unit Status Bits

WordVariableBitNameI/O
n+15OW030300Unit ReadyInput

Function

This bit indicates the status of operation preparation in the Unit.

Status Condition

WordsbitNameSpecifications
n+1500Unit Ready0: The Unit is not ready to accept commands.1: The Unit is ready to accept commands.
Effect on Other Functions·The bit [Unit Ready] will be turned ON after the power is turned ON, the initial processing is completed, and the motion task becomes ready to receive commands. ·During normal operations, the bit [Unit Ready] will be turned OFF when an alarm that requires the system stop occurs.
·When the bit [Unit Ready] is OFF, all the commands from the cyclic area will be ignored. ·Whether the motion program can be actually executed or not depends on the bit [Command Disabled/Enabled] of the axis declared by PROG command.

System Parameters Nil

Program Example The MC Unit supports processing of great amounts of data and varieties of peripheral devices to realize multi-axis applications. Due to the fact, it takes the MC Unit a certain period of time (8 seconds min.) to get ready for operation.

Additionally, the MC Unit and CPU Unit establish communications asynchronously. To make the MC Unit receive instructions from PLC without fail, make sure to send instructions from the CPU Unit to the MC Unit when the bit [Unit Ready] is ON.

OMRON CJ1W-MCH71 - System Parameters Nil - 1

Note Programs (for arithmetic operation, etc.) that do not use axes may start motion tasks with the bit [Unit Ready], however, programs that use axes require interlock for the used axes as shown above.

Timing Chart Nil

WordVariableBitNameI/O
n+15OW030307External Forced Stop RequestInput
08External Forced Stop StatusInput

Function

The bit [External Forced Stop Request] indicates the occurrence of a forced stop request from something other than the input variable. The bit [External Forced Stop Status] indicates the status of the stop caused by a forced stop request.

Status Condition

NameSpecifications
External Forced Stop Request0: No forced stop request from something (FINS, etc.) other than input variable 1: There is a forced stop request from something (FINS, etc.) other than input variable.
External Forced Stop Status0: No forced stop request, or processing for the stop 1: Stopped with a forced stop request

The bit [External Forced Stop Request] is turned ON on the timing starting the stop for all the slaves after receiving [Task Control Setting (axis, task stop)] successfully while it will be turned OFF when it receives [Task Control Setting (axis, task stop cancel)] successfully.

The bit [External Forced Stop Request] will be turned ON when the operating mode of the CPU Unit is switched to Program Mode. After confirming that all the axes and tasks have been stopped, the bit [External Forced Stop Request] will be turned OFF.

The bit [External Forced Stop Status] will be turned ON when processing for each stopping operation is completed after the rise of the bit [External Forced Stop Request].

Details of the above status are stored in the system variables shown below:

AddressNameDescription
SW0004Forced stop request from tool: Details of the requestIndicates the forced stop request from tool Bit00: Axis, task stop Bit01: Axis, task stop cancel Bit06: CAM data buffer copy Bit07: Program buffer copy
SW0005Forced stop request from tool: Object 1Indicates the forced stop request from tool Bit00-07: 0: There is no forced stop request for Motion task 1-8 1: There is a forced stop request for Motion task 1-8 Bit08: 0/1 Reserved
SW0006Forced stop request from tool: Object 2Indicates the forced stop request from tool Bit00-31: 0: There is no forced stop request for Axis 1-32 1: There is a forced stop request for Axis 1-32
SW0007
SW0008ReservedReserved
SW0009Forced stop status from tool: Object 1Indicates the forced stop status from tool Bit00-07: 0: Motion task 1-8 being executed 1: Motion task 1-8 being stopped Bit08: 0/1 Reserved
SW000AForced stop status from tool: Object 2Indicates the forced stop status from tool Bit00-31: 0: Axis 1-32 being operated 1: Axis 1-32 being stopped
SW000B

Effect on Other Functions

While the bit [External Forced Stop Request] is ON, all the commands except for FINS commands are ignored.

System Parameter

Nil

Timing Chart

Nil

7-4-3 Motion Task Control Bits

WordsVariablesBitsNameI/O
n+4IW034001Motion Program Start (Task 1)Output
--
n+11IW0347Motion Program Start (Task 8)
02-03Start Mode (Task 1)
-
Start Mode (Task 8)

Function

  • Specifying a program number and starting the motion task can execute the motion program that was stored in the MC Unit.

Command and Operation

NameSpecifications
Motion Program Start0: Nil1: Nil↑: Starts the motion program operation following the specified Start Mode.↓: Nil
Start Mode0,3: Reads program number and executes the program from top.1: Executes the program from the block indicated by Executing Motion Block Number. Operation at resuming interrupted programs varies depending on the command used or stopping status.2: Executes the program from the next block of the block indicated by Executing Motion Block Number.
Motion Program NumberSpecifies program number to be executed in motion task.0-499
  • Motion program execution can be started or resumed by turning ON the bit [Motion Program Start].
  • Turning ON the bit [Motion Program Start] when a motion program is being executed is ignored.
  • If there is an interrupted program ([Executing Motion Block Number] is not 0), the bit [Start Mode] will be referenced to determine the operation at resuming when the bit [Motion Program Start] is turned ON.
  • If there is no interrupted program ([Executing Motion Program Number] is 0), the bit [Start Mode] does not have any function, i.e. a program number is read to start the program from the begging.
  • After a program was interrupted, if one of the following conditions is met, the bit [Start Mode] will be disabled, i.e. a program number is read to start the program from the beginning:

The program number has been changed.

he program has been changed, deleted, or transferred.

The CAM data has been changed, deleted, or transferred.

(Note that all the programs and CAM data other than the ones being executed are also the objects.)

  • If the bit [Start Mode] is 0 or equivalent to 0, [Motion Program Number] will be referenced when [Motion Program Start] is turned ON.

  • In [Start Mode] = 1, the operation at resuming an interrupted program varies depending on the command being executed as shown below:

CommandOperation
MOVE/MOVEL/MOVEC/MOVEI/MOVETSee 7-2-3 Automatic Mode (page 386).
MOVETRAV/MOVELINK/CAMBOX (1 cycle)When interrupted midway of a block, resumes to finish the remaining travel distance. When interrupted at the end of a block, the entire program will be executed from the beginning again.
DATUM/CAMThe entire program is executed again from the beginning regardless of whether it was interrupted midway or at the end.

Status Condition

NameSpecifications
Start Bit (supported in Unit Ver. 3.0 or later)0: Motion Program Operating Bit OFF (0) 1: Motion Program Operating Bit ON (1)
Motion Program Operating0: Motion task is not executing program operation. 1: Motion task is executing program operation (turned OFF after deceleration or block stop completion).
Motion Program Operation Completed0: When program operation is started 1: END command was executed
Executing Motion Program NumberOutputs the program number of the program currently being executed with motion task or temporarily being stopped.
Executing Motion Block Number (Single execution command)• Outputs the block number of the single execution command currently being executed with motion task, or temporarily being stopped. • During execution of parallel branching, the block number of the leftmost block is output.
Executing Motion Block Number (Multiple execution command)• Outputs the block number of the multiple execution command currently being executed with motion task, or temporarily being stopped. • During execution of parallel branching, the block number of the leftmost block is output.
  • The bit [Start] returns the ON/OFF status of the bit [Motion Program Operating] from the CPU Unit as is.

When a program with a short execution time is executed, detection by the ladder program of whether the bit [Motion Program Operation Completed] at the end of the program has turned ON may not be possible. In this situation, perform the following processing in the ladder program to detect whether the program has completed.

Bit [Start] is ON and bit [Motion Program Operation Completed] is ON.

  • The bit [Motion Program Operating] indicates the execution status of the motion program. It will be turned ON during program execution, and OFF when deceleration stop or block stop is completed, or when the operation is completed with END command execution.
  • The bit [Motion Program Operation Completed] indicates the status of whether the program has been executed to the end or not. It will be turned ON when the operation is completed with END command execution, and it will be turned OFF when the next program operation is started.
  • [Executing Program Number] indicates the program number of the program being executed. It will be updated when a new program execution is started. If program operation is interrupted or completed, the value immediately before will be held.

  • [Executing Motion Block Number (Single execution command)] indicates the block number of the single execution command currently being executed. It will be updated only when a command execution is started. If program operation is interrupted or completed, the value immediately before will be held, and updated when execution of the next block is started in Pass Mode section.

Note

1-shot output may occur. In that case, depending on the Scan Time of the ladder program and the Unit Scan Time of the MC Unit, the output may not be reflected in the ladder program.

  • [Executing Motion Block Number (Multiple execution command)] indicates the block number of the multiple execution command currently being executed. It will be updated only when a command execution is started. If program operation is interrupted or completed, the value immediately before will be held.

Note

When several multiple execution commands are executed in one Unit Scan, regardless of the Scan Time of the ladder program or the Unit Scan Time of the MC Unit, complete execution status cannot be reflected in the ladder program.

Effect of Other Functions

  • When the bits [Deceleration Stop] and [Block Stop] are turned ON, motion program execution cannot be started by turning ON the bit [Motion Program Start].
  • The axes declared with PROG command of the program to be executed are influenced as shown below. When they could not be started, the bit [Start Warning] is turned ON.
ClassificationItemsEffect
Physical StatusServo axisNo effect
Virtual axisNo effect
I/O axisIf declared, the alarm [201Ah: Axis declaration error] will occur.
Counter axisIf declared, the alarm [201Ah: Axis declaration error] will occur.
Status BitsBusyNo effect
In Servo LockNo effect
No OriginNo effect
Axis OperatingNo effect
Positioning CompletedNo effect
Positioning Completed (No.2)No effect
Axis Machine Lock StatusNo effect
Command Disabled/EnabledCannot be executed when OFF
Axis Not Used/UsedCannot be executed when ON
In Manual/Automatic ModeCannot be executed when OFF

Effect on Other Function

Nil

System Parameter

Nil

OMRON CJ1W-MCH71 - Effect of Other Functions - 1
Program Example

OMRON CJ1W-MCH71 - Effect of Other Functions - 2
Timing Chart

Transition of Executing Motion Block Number:

Programs to be executed
Row No.
1PROG P100 Q00000003;
2ABL MOVE [J01]1000 [J02]1000;
3#MW1000 = 1000;
4#MW1000 = 2000;
5#MW1000 = 3000;
6ABLMOVE [J01]#MW1000 [J02]#MW1000;
7END;

OMRON CJ1W-MCH71 - Transition of Executing Motion Block Number: - 1

Note This is the case where 4 commands can be executed simultaneously in 1 scan.

WordVariableBitNameI/O
n+4IW034004Deceleration Stop (Task 1)Output
---
n+11IW0347Deceleration Stop (Task 8)

Function

Turn On the bit [Deceleration Stop] to stop the motion program being executed regardless of end of blocks.

Command and Operation

NameSpecifications
Motion Program Start0: Nil1: Nil↑: Starts the motion program following the specified Start Mode.↓: No
Start Mode0,3: Reads program number and executes the program from top.1: Executes the program from the block indicated by Executing Motion Block Number. Operation at resuming the interrupted program varies depending on the command used or stopping status.2: Executes the program continuously from the next block of the block indicated by Executing Motion Block Number.
Deceleration Stop0: No1: Prohibits motion program start.↑: Executes deceleration stop regardless of the blocks.↓: No
  • The motion program currently being executed will be stopped with deceleration regardless of the ends of blocks when the bit [Deceleration Stop] is turned ON.
  • The motion program execution cannot be started when the bit [Deceleration Stop] is ON.
  • Turning OFF the bit [Deceleration Stop] after turning it ON once will not interrupt the deceleration.
  • Following operations will occur for commands without movement:

  • Single execution commands other than Axis movement, Axis operation start, and Axis operation end: The operation will not be interrupted and stop at the end of the block.

  • Multiple execution commands:

The operation will stop at the end of the block without waiting for deceleration stop of movement command.

  • If the bit [Deceleration Stop] is turned ON after axis operation start command has been executed, operations shown in the table below will occur.
CommandOperation
MOVELINK: Link OperationBefore synchronization condition is satisfied: Cancels standing by for synchronization and stops. After synchronization condition is satisfied: Cancels synchronization and executes deceleration stop.
CAMBOX: Electronic Cam, Syn-chronousBefore synchronization condition is satisfied: Cancels standing by for synchronization and stops. After synchronization condition is satisfied: Cancels synchronization and executes deceleration stop.
CONNECT: Electronic ShaftCancels synchronization and executes deceleration stop.
SYNC: Trailing SynchronizationBefore synchronization condition is satisfied: Cancels standing by for synchronization and stops. After synchronization condition is satisfied: Cancels synchronization and executes deceleration stop.
ADDAX: Travel Distance SuperimposeCancels synchronization and executes deceleration stop.
SPEED: Speed ControlDecelerates to zero speed, and switches to Position Control Mode. After position loop is formed, the operation will be stopped.
TORQUE: Torque ControlReduce torque to zero, and switches to Position Control Mode. After position loop is formed, the operation will be stopped.

The resuming operation is determined by [Start Mode]. For details, see Start Mode on page 443.

Status Condition

NameSpecifications
Motion Program Operating0: Motion task is not executing program operation. 1: Motion task is executing program operation (turned OFF after deceleration or block stop is completed).
Motion program Operation Com-pleted0: When starting program operation 1: END command was executed.
Motion Program NumberSpecifies the program number to be executed in motion task. 0-499
Executing Motion Program NumberOutputs the program number of the program currently being executed in motion task or temporarily being stopped.
Executing Motion Block Number (Sin-gle execution com-mand)• Outputs the block number of the single execution command currently being executed with motion task, or temporarily being stopped. • During execution of parallel branching, the block number of the leftmost block is output.
Executing Motion Block Number (Multi-ple execution com-mand)• Outputs the block number of the multiple execution com-mand currently being executed with motion task, or tempo-rarily being stopped. • During execution of parallel branching, the block number of the leftmost block is output.

For details, see Motion Program Start and Start Mode on page 443.

Effect of Other Functions

Nil

Effect on Other Functions

When the bit [Deceleration Stop] is turned ON, turning ON the bit [Motion Program Start] will not start the motion program execution.

System Parameter

Nil

Program Example

OMRON CJ1W-MCH71 - Program Example - 1

Timing Chart

Programs to be executed
Row No.
1PROG P100 Q00000003;
2ABL MOVEL [J01]1000 [J02]1000;
3#MW1000 = 1000;
4#MW1000 = 2000;
5#MW1000 = 3000;
6ABL MOVEL [J01]#MW1000 [J02]#MW1000;
7END;

The bit [Deceleration Stop] is turned ON during execution of this block.

After deceleration stop is completed,

Executing Motion Program Number and

Executing Motion Block Number will be held.

The bit [Motion Program Operation

Completed] is turned ON because END

command has not been executed.

OMRON CJ1W-MCH71 - Timing Chart - 1

OMRON CJ1W-MCH71 - Timing Chart - 2
Stop in Pass Mode:

OMRON CJ1W-MCH71 - Timing Chart - 3

Program to be executed
Row No.
1PROG P100 Q00000003;
2SPEED [J01]1000 T 100;
3MOVEL [J02]1000;
4END;

The bit [Deceleration Stop] is turned ON after having started execution of this block.

OMRON CJ1W-MCH71 - Timing Chart - 4
Stop in Speed or Torque Control:

WordVariableBitNameI/O
n+4IW034005Block Stop (Task 1)Output
---
n+11IW0347Block Stop (Task 8)

Function

With this function, the motion program is stopped at the end of the block currently being executed.

Command and Operation

NameSpecifications
Motion Program Start0: Nil1: Nil↑: Starts motion program operation following the specified Start Mode.↓: No
Start Mode0,3: Reads program number and executes the program from top.1:Executes the program from the block indicated by Executing Motion Block Number. Operation at resuming interrupted programs varies depending on the command used or stopping status.2:Executes the program from the next block of the block indicated by Executing Motion Block Number.
Block Stop0:Nil1:Prohibits motion program start.↑:Executes deceleration stop at the end of the block currently being executed.↓:Nil
  • The motion program currently being executed is stopped at the end of the block by turning ON the bit [Block Stop].
  • Motion program execution cannot be started while the bit [Block Stop] is ON.
  • Turning OFF the bit [Deceleration Stop] after it has been turned ON will not interrupt the block stop operation.
  • When the bit [Block Stop] is turned ON after an axis operation start command has been executed, operations described in the table below will occur:
CommandOperation
MOVELINK: Link OperationBefore synchronization condition is satisfied: Cancels standing by for synchronization and stops. After synchronization condition is satisfied: Cancels synchronization and executes deceleration stop.
CAMBOX: Electronic Cam, SynchroeousBefore synchronization condition is satisfied: Cancels standing by for synchronization and stops. After synchronization condition is satisfied: Cancels synchronization and executes deceleration stop.
CONNECT: Electronic ShaftCancels synchronization and executes deceleration stop.
SYNC: Trailing SynchronizationBefore synchronization condition is satisfied: Cancels standing by for synchronization and stops. After synchronization condition is satisfied: Cancels synchronization and executes deceleration stop.
ADDAX: Travel Distance SuperimposeCancels synchronization and executes deceleration stop.
SPEED: Speed ControlDecelerates to zero speed, and switches to Position Control Mode. After position loop is formed, the operation will be stopped.
TORQUE: Torque ControlReduce torque to zero, and switches to Position Control Mode. After position loop is formed, the operation will be stopped.

Status Condition

NameSpecifications
Motion Program Operating0: Motion task is not executing program operation. 1: Motion task is executing program operation (turned OFF after completion of deceleration or block stop)
Motion Program Operation Completed0: When starting program operation 1: END command was executed.
In Block Stop0: Not in Block Stop 1: In Block Stop
Motion Program NumberSpecifies program number to be executed in motion task. 0-499
Executing Motion Program NumberOutputs the program number of the program currently being executed in motion task or temporarily being stopped.
Executing Motion Block Number (Single execution command)• Outputs the block number of the single execution command currently being executed with motion task, or temporarily being stopped. • During execution of parallel branching, the block number of the leftmost block is output.
Executing Motion Block Number (Multiple execution command)• Outputs the block number of the multiple execution command currently being executed with motion task, or temporarily being stopped. • During execution of parallel branching, the block number of the leftmost block is output.

For details, see Motion Program Start and Start Mode on page 443.

Effect of Other Functions

Block Stop is executed even for blocks with [NSTOP command: Single block ignored] specification (stopping is prioritized).

Effect on Other Functions

Turning ON the bit [Motion Program Start] will not start motion program execution while the bit [Block Stop] is turned ON.

System Parameter

Nil

Program Example

OMRON CJ1W-MCH71 - Program Example - 1

OMRON CJ1W-MCH71 - Program Example - 2
Timing Chart
Basic Operation:

Stop in Pass Mode:

Program to be executed
Row No.
1PROG P100 Q00000003;
2PASSMODE;
3MOVEL [J01]1000;
4MOVEL [J02]1000;
5END;

The bit [Block Stop] is turned ON after starting execution of this block.

OMRON CJ1W-MCH71 - Program Example - 3

Program to be executed
Row No.
1PROG P100 Q00000003;
2SPEED [J01]1000 T 100;
3MOVEL [J02]1000;
4END;

The bit [Deceleration Stop] is turned ON after starting execution of this block.

OMRON CJ1W-MCH71 - Program Example - 4
Stop in Speed or Torque control mode:

WordVariableBitNameI/O
n+4IW034006Single Block Operation Mode (Task 1)Output
---
n+11IW0347Single Block Operation Mode (Task 8)

Function

  • Single block operation mode is used for debugging purpose, etc. to execute the motion program block by block.
  • [Block Stop] and [Single Block Operation Mode] are similar from the viewpoint that the operation is stopped at the end of the block, however, following differences can be observed between them:
ItemBlock StopSingle Block Operation
PurposeUsed to stop the motion program.Used to debug the motion program.
Influence when starting executionMotion program execution cannot be started while the bit [Block Stop] is ON.Motion program execution can be started while the bit [Single Block Operation Mode] is ON.
DetectionEdge detectionLevel detection
NSTOP commandOperation stops not being affected by NSTOP.Operation does not stop being affected by NSTOP.

Command and Operation

NameSpecifications
Motion Program Start0: Nil1: Nil↑: Starts motion program operation following the specified Start Mode↓: No
Start Mode0,3: Reads program number and executes the program from top.1:Executes the program from the block indicated by Executing Motion Block Number. Operation at resuming interrupted pro-grams varies depending on the command used or stopping status.2:Executes the program continuously from the next block of the block indicated by Executing Motion Block Number.
Single Block Operation Mode0: Single Block Operation Mode OFF1: Single Block Operation Mode ON↑: Nil↓: Nil
  • If motion program execution is started while the bit [Single Block Operation Mode] is ON, only one block will be executed and the operation will be stopped with Block Stop.
  • If [Single Block Operation Mode] is turned ON during motion program operation, the same operation as for that of [Block Stop] will occur.
  • Different from the bit [Block Stop], the motion program can be executed even when the bit [Single Block Operation Mode] is ON.
  • Different from the bit [Block Stop], the bit [Single Block Operation Mode] is checked only at the end of the block. Therefore, the operation will not stop at the end of the block if the bit is turned OFF before program execution reaches the end of the block.
  • Turn on the bit [Motion Program Start] to resume the motion program in Block Stop state.
  • When the bit [Motion Program Start] is turned ON, the bit [Start Mode] will be checked. The relations between actual debugging operation and Start Mode are described below:
Debugging OperationStart Mode
To proceed to the next blockStart Mode = 2
To start over from the topStart Mode = 0, 3
To execute the same block that has just been executed againStart Mode = 1

Status Condition

NameSpecifications
Motion Program Operating0: Motion task is not executing program operation. 1: Motion task is executing program operation (turned OFF after completion of deceleration or block stop)
Motion Program Operation Completed0: When starting program operation 1: END command was executed.
In Block Stop0: Not in Block Stop 1: In Block Stop
Motion Program NumberSpecifies program number to be executed in motion task. 0-499
Executing Motion Program NumberOutputs the program number of the program currently being executed in motion task or temporarily being stopped.
Executing Motion Block Number (Single execution command)• Outputs the block number of the single execution command currently being executed with motion task, or temporarily being stopped. • During execution of parallel branching, the block number of the leftmost block is output.
Executed Motion Block Number (Multiple execution command)• Outputs the block number of the multiple execution command currently being executed with motion task, or temporarily being stopped. • During execution of parallel branching, the block number of the leftmost block is output.

For details, see Motion Program Start and Start Mode on page 443.

Effect of Other Functions

Operation does not stop at the end of the block with [NSTOP command: Single block ignored] specification.

Effect on Other Functions Nil

System Parameter Nil

Program Example

n+4 to 11.06

Single Block Operation Mode

Single Block

Operation Condition

Timing Chart
Basic Operation:

Program to be executed
Row No.
1PROG P100 Q00000003;
2ABL MOVE [J01]1000 [J02]1000;
3#MW1000 = 1000;
4#MW1000 = 2000;
5#MW1000 = 3000;
6ABL MOVE [J01]#MW1000 [J02]#MW1000;
7END;

OMRON CJ1W-MCH71 - Program Example - 1

WordVariableBitNameI/O
n+4IW034007Task Override Enable (Task 1)Output
---
n+11IW0347Task Override Enable (Task 8)

Function

  • Override is the function to change the feed rate specified in the motion program or parameter to the user-specified speed with % specification.
  • There are three types of override, the task override, axis override, and internal override. They are used differently in motion program execution depending on the speed.
  • The task override can be applied to the speed specified by operand F in the motion program.

The relations between each command and override are shown in the table below:

ClassificationFunction/NameCommandOverrideRemark
Axis MovementPositioningMOVEAxis OverrideInternal Over-ride
Linear InterpolationMOVELTask Override
Circular InterpolationMOVECTask Override
Origin SearchDATUMAxis OverrideApplicable only for origin search feed rate
Interrupt FeedingMOVEIAxis OverrideInternal Over-ride
Time-specified PositioningMOVETAxis OverrideInternal Over-rideSpecified time period will not be kept.
TraverseMOVETRAVTask Override
Electronic Cam, Single AxisCAMDisable
Axis OperationLink OperationMOVELINKDisable
Electronic Cam, SynchronousCAMBOXDisable
Electronic ShaftCONNECTDisable
Trailing SynchronizationSYNCDisable
Travel Distance SuperimposeADDAXDisable
Speed ControlSPEEDDisable
Torque ControlTORQUEDisable
Axis Operation CancelTrailing Synchronous CancelSYNCRDisable
Travel Distance Superimpose CancelADDAXRDisable
Speed Control CancelSPEEDRDisable
Torque Control CancelTORQUERDisable

Command and Operation

NameSpecifications
Task Override Enable0: Enables axis override value (override 100% is used.)1: Enables axis override value↑: Nil↓: Nil
Task Override0 to 32767 [0.01%]0.00% if value out of range is input.
  • The value in [Task Override] is enabled only while the bit [Task Override Enable] is turned ON. When the bit is OFF, override 100.00% is used.
  • The bit [Task Override Enable] and data [Task Override] are always referenced.

Status Condition Nil

Effect of Other Functions Nil

Effect on Other Functions Speed of the functions with axis movement is affected.

Program Example

OMRON CJ1W-MCH71 - Command and Operation - 1

OMRON CJ1W-MCH71 - Command and Operation - 2
Timing Chart Basic Operation:

OMRON CJ1W-MCH71 - Command and Operation - 3
Relation between Task Override and Axis Override:
Program Example

WordVariableBitNameI/O
n+4IW034000Motion Task Alarm Reset (Task1)Output
---
n+11IW0347Motion Task Alarm Reset (Task8)

Function

When an error that requires stopping operation occurs in the MC Unit, it is detected as an alarm.

Removing the cause and executing alarm reset can clear the alarms that occurred, except for some alarms.

Command and Operation

NameSpecifications
Motion Task Alarm Reset0: Nil1: Does not turn ON the bit [Motion Task Alarm].↑: Clears the alarm occurring in motion task.↓: Nil

Turning ON the bit [Motion Task Alarm Reset] can reset alarms on the motion task level.

Status Condition

NameSpecifications
Alarm Occurring0: No alarm 1: Alarm occurring in MC Unit (linked to ERC indicator)
Motion Task Alarm Occurring 1-80: No alarm occurring in motion task. 1: Alarm occurring in motion task.
Motion Task Alarm0: No alarm in motion task, or on the axis level. Otherwise, the bit [Motion Task Alarm Reset] is ON. 1: Alarm occurring in motion task, or on the axis level.
Motion Task Alarm CodeOutputs the code of the alarm occurring in motion task.
  • When an alarm occurs on the motion task level, the bits [Alarm Occurring], [Motion Task Alarm Occurring 1-8] and [Motion Task Alarm] will be turned ON, and then the alarm code will be stored in [Motion Task Alarm Code].
  • If several alarms occur, the alarm code detected first will be stored in Motion Task Alarm Code.

Effect of Other Functions

Nil

Effect on Other Functions

When an alarm occurs, it affects other functions (operation failure, operation interruption, etc.)

System Parameter

Nil

Program Example

OMRON CJ1W-MCH71 - Program Example - 1

On MC Unit, there are three types of alarms:

Unit alarm
- Task alarm
- Axis alarm

Alarms are reset on the basis of each type. Therefore, execute the alarm reset over the Unit, Task, and Axis to clear an alarm occurring on the MC Unit without fail.

Timing chart
Basic Operation (Alarm Occurring):

Alarm Identification: Alarm Occurring1 0
Alarm Identification: Motion Task Alarm Occurring1 0
Motion Task Status Bit: Motion Task Alarm1 0
Motion Task Status Data: Motion Task Alarm CodeXXXX
Internal Alarm Status1 0

OMRON CJ1W-MCH71 - Program Example - 2
Basic Operation (Alarm Reset):

OMRON CJ1W-MCH71 - Program Example - 3
When an alarm that cannot be reset occurs:

OMRON CJ1W-MCH71 - Program Example - 4

WordVariableBitNameI/O
n+17OW034004Speed Clamp Warning (Task 1)Input
---
n+24OW0347Speed Clamp Warning (Task 8)

Function

The bit [Speed Clamp Warning] indicates the status that the speed specified in the motion program and multiplied by an override value was limited and could not be output.

Status Condition

NameSpecifications
Speed Clamp Warning0: Speed not limited 1: Speed limited by the maximum speed setting
Start Warning0: Started motion program operation successfully 1: Could not start motion program operation (Axis declaration, Axis mode)

1-shot output may occur. In that case, depending on the Scan Time of the ladder program and the Unit Scan Time of the MC Unit, the output may not be reflected in the ladder program.

Effect of Other Functions

Nil

System Parameter

ON/OFF of the bit [Speed Clamp Warning] is determined by the following system parameters:

Parameter No.Name
P00M01Maximum interpolation feed rate
P2AA01Maximum rapid feed rate

OMRON CJ1W-MCH71 - System Parameter - 1
Timing Chart
Basic Operation:

WordVariableBitNameI/O
n+17OW034005Start Warning (Task 1)Input
---
n+24OW0347Start Warning (Task 8)

Function

The bit [Start Warning] indicates the status that the execution start condition was not satisfied when starting motion program execution.

Status Condition

NameSpecifications
Start Warning0: Started motion program operation successfully. 1: Could not start motion program operation (Axis declaration, Axis mode)
  • The bit [Start Warning] is turned ON in the following cases and it will be turned OFF when motion program operation is started successfully.
  • The bit [Deceleration Stop] or [Block Stop] is ON.

  • [Motion Program Number] is not between 0-499.

  • The motion program specified by [Motion Program Number] does not exist (It has not been loaded).
  • The bit [Command Disable/Enable] of the axis specified by PROG command is OFF.
  • The bit [Axis Not Used/Used] of the axis specified by PROG command is ON.
  • The bit [Manual/Automatic Mode] of the axis specified by PROG command is OFF.
  • A unit alarm, motion task alarm, or an alarm of the axis specified by PROG command is occurring, or the bit [External Forced Stop Request] is ON.

Effect on Other Functions Nil

System Parameter Nil

OMRON CJ1W-MCH71 - Status Condition - 1
Timing Chart

WordVariableBitNameI/O
n+17OW034006Start Bit (Task 1)Input
---
n+24OW0347Start Bit (Task 8)(Supported in Unit Ver. 3.0 or later)

Function

The bit [Start] indicates the ON/OFF status of the bit [Motion Program Operating].

Status Condition

NameSpecifications
Start0: Motion Program Operating Bit OFF (0).1: Motion Program Operating Bit ON (1).

Effect of Other Functions Nil

System Parameter Nil

Timing Chart

OMRON CJ1W-MCH71 - Timing Chart - 1

7-4-4 Axis Control Bits, Axis Status Bits

WordVariableBitNameI/O
x+0IW044001Deceleration Stop (Axis 1)Output
---
x+31IW045FDeceleration Stop (Axis 32)

Function

The function is used for each function on the axis level as the interlock by interruption with a deceleration stop or ON state of the bit.

Command and Operation

NameSpecifications
Deceleration Stop0: Nil1: Prohibits JOG, STEP, and Origin Search in Manual Mode.↑: Deceleration stop (JOG, STEP, and Origin Search)↓: Nil
  • When the bit [Deceleration Stop] is turned ON, the operation of each function in the table below will be stopped with deceleration.
  • When the bit [Deceleration Stop] is ON, execution of each function in the table below will be prohibited.
OperationAt rising edgeON
Axis Control Bit: JOGDecelerated to stopExecution prohibited
Axis Control Bit: STEPDecelerated to stopExecution prohibited
Axis Control Bit: Origin SearchDecelerated to stopExecution prohibited
Axis Control Bit: Machine Origin ReturnDecelerated to stopExecution prohibited
Axis Control Bit: Forced OriginNot influencedExecution prohibited
Axis Control Bit: ABS Origin SettingNot influencedExecution prohibited
IOWR: Present Position PresetNot influencedExecution prohibited
  • Turning ON the bit [Deceleration Stop] after having started deceleration stop operation will not interrupt deceleration stop operation.

Status Condition Nil

Effect of Other Functions Nil

Effect on Other Functions Nil

System parameter Nil

Program Example

OMRON CJ1W-MCH71 - Program Example - 1

Timing Chart

OMRON CJ1W-MCH71 - Timing Chart - 1

WordVariablesBitsNameI/O
x+0IW044002Servo Lock (Axis 1)Output
-x+31-Servo Lock (Axis 32)
IW045F03Servo Unlock (Axis 1)Output
Servo Unlock (Axis 32)

Function

This is the function to lock (Servo ON) or unlock (Servo OFF) the servo.

Command and Operation

NameSpecifications
Servo Lock0: Nil1: Nil↑: Starts Servo Lock↓: Nil
Servo Unlock0: Nil1: Prohibits Servo Lock↓: Cancels Servo Lock state↓: Nil
  • Servo is locked when the bit [Servo Lock] is turned ON, and Servo is unlocked when the bit [Servo Unlock] is turned ON.
  • While the bit [Servo Unlock] is ON, the bit [Servo Lock] is ignored.
  • Turning ON the bit [Servo Unlock] after the bit [Servo Lock] has been already turned ON will interrupt the Servo Lock operation to unlock Servo.
  • Once the bit [Servo Lock] is turned ON, the processing will not be interrupted (i.e. the bit [In Servo Lock] will turn ON) even if the bit [Servo Lock] is turned OFF before the rise of the bit [In Servo Lock].
  • Similarly, once the bit [Servo Unlock] is turned ON, the processing will not be interrupted (i.e. the bit [In Servo Lock] will turn OFF) even if the bit [Servo Unlock] is turned OFF before the rise of the bit [In Servo Lock].

Status Condition

BitNameSpecifications
03In Servo Lock0: In Servo Unlock state1: In Servo Lock state

Servo Lock status (ON/OFF status) is output to the bit [In Servo Lock].

Effect of Other Functions

ClassificationItemEffect
Physical StatusServo AxisNo effect
Virtual AxisNo effect
I/O AxisIgnored
Counter AxisIgnored
Status BitsBusyNo effect
Servo LockNo effect
No OriginNo effect
Axis OperatingNo effect
Positioning CompletedNo effect
Positioning Completed (No.2)No effect
Axis Machine Lock StatusNo effect
Command Disable/EnableServo Lock/Unlock cannot be executed when OFF.
Axis Not Used/UsedNo effect
In Manual/Automatic ModeNo effect

Effect on Other Functions

The functions in the following table cannot be executed when the bit [In Servo Lock] is OFF.

Function
Axis Control Bit: JOG
Axis Control Bit: STEP
Axis Control Bit: Origin Search
Axis Control Bit: Machine Origin Return
Other commands with axis movement

System Parameter

Nil

Program Example

Example 1

OMRON CJ1W-MCH71 - Example 1 - 1

Example 2

With Unit Ver. 3.0 or later, the Servo Driver main circuit ON/OFF status is output in the axis status area. In this example, the ON/OFF status of the main circuit is combined with an AND condition to ensure a Servo Lock status.

OMRON CJ1W-MCH71 - Example 2 - 1

OMRON CJ1W-MCH71 - Example 2 - 2
Timing Chart
Basic Operation:

OMRON CJ1W-MCH71 - Example 2 - 3
Servo Unlock:

WordVariableBitNameI/O
x+0IW044004JOG Operation (Axis 1)Output
---
x+31IW045FJOG Operation (Axis 32)

Function

  • The axis is moved while the bit [JOG Operation] stays ON.
  • [Axis Override] is applied to the speed. For details of timing, etc., see "Relation between Task Override and Axis Override" (page 462).

Command and Operation

NameSpecifications
JOG0: Nil1: Continues JOG operation↑: Starts JOG operation↓: Stops JOG operation
JOG/STEP Direction0: Sets the direction of JOG and STEP operation to positive direction1: Sets the direction of JOG and STEP operation to negative direction↑: Nil↓: Nil
  • Acceleration will be started when the bit [JOG Operation] is turned ON, and deceleration will be started when the bit [JOG Operation] is turned OFF.

Operation Direction

  • The operation direction is changed using the method set in system parameter P00004, bit 05 (unit function selections, direction switching method for JOG operation). Refer to page 480 for details.

Status Condition

NameSpecifications
Busy0: Not executing any of the functions listed below.1: Executing one of the functions listed below, or the command bit is ON.JOG, STEP, Origin Search, Machine Origin Return, Error Counter Reset, Forced Origin, and ABS Origin Setting
Axis Operating0: No axis operating command1: Axis operating command being output.
Positioning Com-pleted0: Outputting positioning command, or axis is outside of in-position range.1: Not outputting positioning command, and axis is within in-position range.
Axis Not Used/Used0: Axis is not being used.1: Axis is being used.(In Manual Mode: Axis is used for JOG etc., In Automatic Mode: Axis is declared in the operating program)

Effect of Other Functions

ClassificationItemEffect
Physical StatusServo AxisNo effect
Virtual AxisNo effect
I/O AxisIgnored
Counter AxisIgnored
Status BitsBusyJOG cannot be executed when ON.
In Servo LockJOG cannot be executed when OFF.
No OriginNo effect
Axis OperatingJOG cannot be executed when ON.
Positioning CompletedNo effect
Positioning Completed (No.2)No effect
Axis Machine Lock StatusNo effect
Command Disabled/EnabledJOG cannot be executed when OFF.
Axis Not Used/UsedJOG cannot be executed when ON.
In Manual/Automatic ModeJOG cannot be executed when ON.

Effect on Other Functions System Parameter

Nil

The settings of the following parameters determines the speed pattern:

Parameter No.Name
P2AA02Maximum manual feed rate
P2AA04Manual feed rate
P2AA07Manual feed acceleration time
P2AA08Manual feed deceleration time
P2AA10Manual feed acceleration/deceleration type
P2AA12Manual feed S-curve time constant

OMRON CJ1W-MCH71 - Effect of Other Functions - 1
Program Example

Timing Chart

OMRON CJ1W-MCH71 - Timing Chart - 1
P00004 bit 05 set to 0
Basic Operation:

Timing Chart

OMRON CJ1W-MCH71 - Timing Chart - 1
P0004 bit 05 set to 1
Basic Operation:

WordVariableBitNameI/O
x+0IW044005STEP Operation (Axis 1)Output
---
x+31IW045FSTEP Operation (Axis 32)

Function

  • The axis will be moved for the specified travel distance when the bit [STEP Operation] is turned ON.

  • When the axis completes to move for the specified travel distance, it automatically decelerates to stop.
    (The travel distance for the deceleration stop is included in the specified travel distance.)

  • [Axis Override] is applied to the speed. For details of timing, etc., see Relation between Task Override and Axis Override (page 462).

Command and Operation

NameSpecifications
STEP0: Nil1: Continues STEP operation↑: Starts STEP operation↓: Stops STEP operation
JOG/STEP Direction0: Sets the direction of JOG and STEP operation to positive direction.1: Sets the direction of JOG and STEP operation to negative direction.↑: Nil↓: Nil
  • Acceleration will be started when the bit [STEP Operation] is turned ON. Even if the axis has not moved for the specified travel distance, it decelerates to stop when the bit [STEP Operation] is turned OFF.
  • The bit [JOG/STEP Direction] determines the operation direction when the bit [STEP Operation] is turned ON. The operation direction cannot be changed during operation.

Status Condition

NameSpecifications
Busy0: Not executing any of the functions listed below.1: Executing one of the functions listed below, or the command bit is ON.JOG, STEP, Origin Search, Machine Origin Return, Error Counter Reset, Forced Origin, and ABS Origin Setting
Axis Operating0: No axis operating command1: Axis operating command being output.
Positioning Com-pleted0: Outputting positioning command, or axis is outside of in-position range.1: Not outputting positioning command, and axis is within in-position range.
Axis Not Used/Used0: Axis is not being used.1: Axis is being used.(In Manual Mode: Axis is used for JOG etc., In Automatic Mode: Axis is declared in the operating program)

Effect of Other Functions

ClassificationItemEffect
Physical StatusServo AxisNo effect
Virtual AxisNo effect
I/O AxisIgnored
Counter AxisIgnored
Status BitsBusySTEP cannot be executed when ON.
In Servo LockSTEP cannot be executed when OFF.
No OriginNo effect
Axis OperatingSTEP cannot be executed when ON.
Positioning CompletedNo effect
Positioning Completed (No.2)No effect
Axis Machine Lock StatusNo effect
Command Disabled/EnabledSTEP cannot be executed when OFF.
Axis Not Used/UsedSTEP cannot be executed when ON.
In Manual/Automatic ModeSTEP cannot be executed when ON.

Effect on Other Functions

System Parameter

Nil

The settings of the following system parameters determine the speed pattern and STEP operation travel distance:

Parameter No.Name
P2AA02Maximum manual feed rate
P2AA04Manual feed rate
P2AA07Manual feed acceleration time
P2AA08Manual feed deceleration time
P2AA10Manual feed acceleration/deceleration type
P2AA12Manual feed S-curve time constant
P3AA01STEP operation travel distance

OMRON CJ1W-MCH71 - Function - 1
Program Example

OMRON CJ1W-MCH71 - Function - 2
Timing Chart
Basic Operation:

OMRON CJ1W-MCH71 - Function - 3
Premature completion:

WordVariableBitNameI/O
x+0IW044006Origin Search (Axis 1)Output
---
x+31IW045FOrigin Search (Axis 32)

Function

  • With this function, the axis searches for the machine origin using the specified external signal or phase-Z.
  • When the machine origin is detected, the axis will automatically decelerate to stop. [Axis Override] is applied to the origin search feed rate. For details about timing, etc., see Relation between Task Override and Axis Override (page 462).
  • Override cannot be used for Origin search approach speed and Origin search creep speed.

Command and Operation

NameSpecifications
Origin Search0: Nil1: Continues Origin search↑: Starts Origin search↓: Stops Origin search

Origin search operation will be started when the bit [Origin Search] is turned ON. Even if the machine origin is not detected, the axis decelerates to stop when the bit is turned OFF.

Status Condition

NameSpecifications
Machine Origin0: Machine coordinate system FB position is outside of origin in-position range. 1: Machine coordinate system FB position is within origin in-position range.
Busy0: Not executing any of the functions listed below. 1: Executing one of the functions listed below, or the command bit is ON. JOG, STEP, Origin Search, Machine Origin Return, Error Counter Reset, Forced Origin, and ABS Origin Setting
No Origin0: Origin on machine coordinate system is defined. 1: Origin on machine coordinate system is not defined.
Axis Operating0: No axis operating command 1: Axis operating command being output.
Positioning Com-pleted0: Outputting positioning command, or axis is outside of in-position range. 1: Not outputting positioning command, and axis is within in-position range.
Axis Not Used/Used0: Axis is not being used. 1: Axis is being used. (In Manual Mode: Axis is used for JOG etc., In Automatic Mode: Axis is declared in the operating program)

Effect of Other Functions

ClassificationItemEffect
Physical StatusServo AxisNo effect
Virtual AxisPerforms the same operation as [Machine Origin Return]
I/O AxisIgnored
Counter AxisIgnored
Status BitsBusyOrigin search cannot be executed when ON.
In Servo LockOrigin search cannot be executed when OFF.
No OriginNo effect
Axis OperatingOrigin search cannot be executed when ON.
Positioning CompletedBeing ON is included in the completion condition
Positioning Completed (No.2)No effect
Axis Machine Lock StatusImmediately completes origin search
Command Disabled/EnabledOrigin search cannot be executed when OFF.
Axis Not Used/UsedOrigin search cannot be executed when ON.
In Manual/Automatic ModeOrigin search cannot be executed when ON.

Effect on Other Functions

When an origin search operation is started, the bit [No Origin] will be turned ON.

The following system parameters determine the operation pattern and speed:

System Parameter

Parameter No.NameRemark
P2AA02Maximum manual feed rateFor determining acceleration/deceleration
P2AA07Manual feed acceleration timeFor determining acceleration/deceleration
P2AA08Manual feed deceleration timeFor determining acceleration/deceleration
P2AA10Manual feed acceleration/deceleration typeFor determining acceleration/deceleration pattern
P4AA01Origin search methodFor determining origin search pattern
P4AA02Origin search start directionFor determining origin search pattern
P4AA03Phase-Z (phase-C) detection directionFor determining origin search pattern
P4AA04Origin deceleration methodFor determining origin search pattern
P4AA06Origin determine signalFor determining origin search pattern
P4AA07Origin search feed rateFor determining origin search pattern
P4AA08Origin search approach speedFor determining origin search pattern
P4AA09Origin search creep speedFor determining origin search pattern
P4AA10Reference (machine) origin offsetThe position after Forced Origin execution will be the one that is specified in this parameter.
P4AA11Origin search final travel distanceFor determining origin search pattern

OMRON CJ1W-MCH71 - Effect on Other Functions - 1
Program Example 1: Origin Search Using an Incremental Encoder

OMRON CJ1W-MCH71 - Effect on Other Functions - 2
Program Example 2: Origin Search Using an Absolute Encoder

OMRON CJ1W-MCH71 - Effect on Other Functions - 3
Timing Chart
Basic Operation:

OMRON CJ1W-MCH71 - Effect on Other Functions - 4
Premature completion:

WordVariableBitNameI/O
x+0IW044007Machine Origin Return (Axis 1)Output
---
x+31IW045FMachine Origin Return (Axis 32)

Function

  • With the bit [Machine Origin Return], positioning to the machine origin that has been determined is executed.
  • The axis Automatically will decelerate to stop when the bit [Machine Origin] is detected.
  • [Axis Override] is applied to the speed. For details on timing, etc., see Relation between Task Override and Axis Override (page 462).

Command and Operation

NameSpecifications
Machine Origin Return0: Nil1: Continues Machine origin return (PTP)↑: Starts Machine origin return (PTP)↓: Stops Machine origin return (PTP)

The machine origin return operation will be started when the bit [Machine Origin Return] is turned ON. Even if the axis has not reached the machine origin, it decelerates to stop when the bit is turned OFF.

Status Condition

NameSpecifications
Machine Origin0: Machine coordinate system FB position is outside of origin in-position range. 1: Machine coordinate system FB position is within origin in-position range.
Busy0: Not executing any of the functions listed below. 1: Executing one of the functions listed below, or the command bit is ON. JOG, STEP, Origin Search, Machine Origin Return, Error Counter Reset, Forced Origin, and ABS Origin Setting
No Origin0: Origin on machine coordinate system is defined. 1: Origin on machine coordinate system is not defined.
Axis Operating0: No axis operating command 1: Axis operating command being output.
Positioning Com-pleted0: Outputting positioning command, or axis is outside of in-position range. 1: Not outputting positioning command, and axis is within in-position range.
Axis Not Used/Used0: Axis is not being used. 1: Axis is being used. (In Manual Mode: Axis is used for JOG etc., In Automatic Mode: Axis is declared in the operating program)

Effect of Other Functions

ClassificationItemEffect
Physical StatusServo AxisNo effect
Virtual AxisNo effect
I/O AxisIgnored
Counter AxisIgnored
Status BitsBusyMachine origin return cannot be executed when ON.
In Servo LockMachine origin return cannot be executed when OFF.
No OriginMachine origin return cannot be executed when ON.
Axis OperatingMachine origin return cannot be executed when ON.
Positioning CompletedBeing ON is included in the completion conditions.
Positioning Completed (No.2)No effect
Axis Machine Lock StatusNo effect
Command Disabled/EnabledMachine origin return cannot be executed when OFF.
Axis Not Used/UsedMachine origin return cannot be executed when ON.
In Manual/Automatic ModeMachine origin return cannot be executed when ON.

Effect on Other Functions

Nil

System Parameter

The following system parameters determine the speed pattern:

Parameter No.Name
P2AA02Maximum manual feed rate
P2AA04Manual feed rate
P2AA07Manual feed acceleration time
P2AA08Manual feed deceleration time

Program Example

OMRON CJ1W-MCH71 - Program Example - 1

OMRON CJ1W-MCH71 - Program Example - 2
Timing Chart
Basic operation:

OMRON CJ1W-MCH71 - Program Example - 3
Premature completion:

WordVariableBitNameI/O
x+0IW044008Error Counter Reset (Axis 1)Output
---
x+31IW045FError Counter Reset (Axis 32)

Function

The error counter pulses that accumulated in a pressing operation, etc. using position control and torque control are forcibly cleared to put the axis into the positioning completed state.

Command and Operation

NameSpecifications
Error Counter Reset0: Nil1: Nil↑: Resets error counter↓: Interrupts Error counter reset
  • When the bit [In Servo Lock] is OFF:

The error counter reset processing will be executed when the bit [Error Counter Reset] is turned ON.

Note Actually, Errors are not generated.

When the bit [Axis Operating] is OFF:

  • The error counter reset processing will be executed when the bit [Error Counter Reset] is turned ON.
  • When the bit [Axis Operating] is ON:

When the bit [Axis Operating] is turned OFF after the rising edge of the bit [Error Counter Reset], the error counter reset processing will be executed. If the bit [Error Counter Reset] has been turned OFF before the bit [Axis Operating] is turned OFF, the error counter reset processing will not be executed.

Note

If the MC Unit and MECHATROLINK-II Servo are used together, the position loop is managed on the MECHATROLINK-II Servo. Therefore, depending on error amount, the error counter reset processing may not be executed at once, but may be executed being divided into several communication scans. In this case, the processing to output a position command that resets the error counter to the MECHATROLINK-II Servo is called the "Error counter reset".

Status Condition

NameSpecifications
Busy0: Not executing any of the functions listed below.1: Executing one of the functions listed below, or the command bit is ON.JOG, STEP, Origin Search, Machine Origin Return, Error Counter Reset, Forced Origin, and ABS Origin Setting

Effect of Other Functions Effect on Other Functions

Error counter reset cannot be executed while the bit [Axis Operating] is ON.

ClassificationItemEffect
Physical StatusServo AxisNo effect
Virtual AxisNo effect (Errors are not generated.)
I/O AxisIgnored
Counter AxisIgnored
Status BitsBusyNo effect
In Servo LockNo effect
No OriginNo effect
Axis OperatingError counter reset cannot be executed when ON (wait until turned OFF).
Positioning CompletedNo effect
Positioning Completed (No. 2)No effect
Axis Machine Lock StatusNo effect
Command Disabled/EnabledError counter reset cannot be executed when OFF.
Axis Not Used/UsedNo effect
In Manual/Automatic ModeNo effect

System Parameter

Nil

OMRON CJ1W-MCH71 - System Parameter - 1
Program Example
Timing Chart

Basic operation 1 (The bit [Error Counter Reset] is turned OFF after checking the bit [Positioning Completed].):

OMRON CJ1W-MCH71 - System Parameter - 2

Basic operation 2 (The bit [Error Counter Reset] is turned OFF without checking the bit [Positioning Completed].):

OMRON CJ1W-MCH71 - System Parameter - 3

OMRON CJ1W-MCH71 - System Parameter - 4

OMRON CJ1W-MCH71 - System Parameter - 5
Execution when the bit [Axis Operating] is ON (in Automatic Mode):

WordVariableBitNameI/O
x+0IW044009Forced Origin (Axis 1)Output
---
x+31IW045FForced Origin (Axis 32)

Function

With this bit, the present position is defined as the machine origin.

Command and Operation

NameSpecifications
Forced Origin0: Nil1: Nil↑: The present position is defined as the origin on the machine coordinate system (disabled during operation).↓: Nil

The machine origin will be defined when the bit [Forced Origin] is turned ON.

Status Condition

NameSpecifications
Machine Origin0: Machine coordinate system FB position is outside of origin in-position range. 1: Machine coordinate system FB position is within origin in-position range.
Busy0: Not executing any of the functions listed below. 1: Executing one of the functions listed below, or the command bit is ON. JOG, STEP, Origin Search, Machine Origin Return, Error Counter Reset, Forced Origin, and ABS Origin Setting
No Origin0: Origin on machine coordinate system is defined. 1: Origin on machine coordinate system is not defined.
Axis Operating0: No axis operating command 1: Axis operating command being output.
Positioning Com-pleted0: Outputting positioning command, or axis is outside of in-position range. 1: Not outputting positioning command, and axis is within in-position range.

Effect of Other Functions

ClassificationItemEffect
Physical StatusServo AxisNo effect
Virtual AxisNo effect
I/O AxisIgnored
Counter AxisIgnored
Status BitsBusyForced origin cannot be executed when ON.
In Servo LockNo effect
No OriginNo effect
Axis OperatingForced origin cannot be executed when ON.
Positioning CompletedForced origin cannot be executed when OFF.
Positioning Completed (No.2)No effect
Axis Machine Lock StatusNo effect
Command Disabled/EnabledForced origin cannot be executed when OFF.
Axis Not Used/UsedForced origin cannot be executed when ON.
In Manual/Automatic ModeForced origin cannot be executed when ON.

Effect on Other Functions

Nil

System Parameter

The following parameter determines the position after defining the machine origin:

Parameter No.NameRemark
P4AA10Reference (machine) ori-gin offsetThe position after forced origin execu-tion will be the one that is specified in this parameter.

OMRON CJ1W-MCH71 - System Parameter - 1
Program Example

OMRON CJ1W-MCH71 - System Parameter - 2
Timing Chart
Basic operation:

WordVariableBitNameI/O
x+0IW044010ABS Origin Setting (Axis 1)Output
---
x+31IW045FABS Origin Setting (Axis 32)

Function

The present position will be defined as the machine origin when the bit [ABS Origin Setting] is turned ON and the positional relation between the origin and ABS encoder value is saved into the flash ROM. With this function, the need for origin searches when switching ON the ABS encoder will be eliminated.

Command and Operation

NameSpecifications
ABS Origin Setting0: Nil1: Nil↑: Sets ABS encoder origin.↓: Nil

Status Condition

NameSpecifications
Machine Origin0: Machine coordinate system FB position is outside of origin in-position range. 1: Machine coordinate system FB position is within origin in-position range.
Busy0: Not executing any of the functions listed below. 1: Executing one of the functions listed below, or the command bit is ON. JOG, STEP, Origin Search, Machine Origin Return, Error Counter Reset, Forced Origin, and ABS Origin Setting
No Origin0: Origin on machine coordinate system is defined. 1: Origin on machine coordinate system is not defined.
Axis Operating0: No axis operating command 1: Axis operating command being output.
Positioning Com-pleted0: Outputting positioning command, or axis is outside of in-position range. 1: Not outputting positioning command, and axis is within in-position range.

Effect of Other Functions

ClassificationItemEffect
Physical StatusServo Axis• ABS origin setting can be executed only on the ABS encoder axis. • If ABS origin setting is executed on the INC encoder axis, the positional relation between the origin and ABS encoder value will be cleared.
Virtual AxisIgnored
I/O AxisIgnored
Counter AxisIgnored
Status BitsBusyABS origin setting cannot be executed when ON.
In Servo LockNo effect
No OriginNo effect
Axis OperatingABS origin setting cannot be executed when ON.
Positioning CompletedABS origin setting cannot be executed when OFF.
Positioning Completed (No.2)No effect
Axis Machine Lock StatusNo effect
Command Disabled/EnabledABS origin setting cannot be executed when OFF.
Axis Not Used/UsedABS origin setting cannot be executed when ON.
In Manual/Automatic ModeABS origin setting cannot be executed when ON.

Effect of Other Function

System Parameter

Nil

The following system parameter determines the position after ABS origin setting:

Parameter No.NameRemark
P4AA12ABS origin offsetThe position after ABS origin setting will be the one that is specified in this parameter.

OMRON CJ1W-MCH71 - Effect of Other Functions - 1
Program Example

Timing Chart

OMRON CJ1W-MCH71 - Timing Chart - 1

WordVariableBitNameI/O
x+0IW044011Axis Override Enable (Axis 1)Output
---
x+31IW045FAxis Override Enable (Axis 32)

Function

  • Override is the function to change the feed rate specified in the motion program or parameter to the user-specified speed with % specification.
  • There are three types of override, the task override, axis override, and internal override. They are used differently in motion program execution depending on the speed.
  • The axis override can be applied to the speed specified by operand V in the motion program or the speed set in the axis parameter.

  • The relations between each command and override are shown in the table below:

ClassificationFunction/NameCommandOverrideRemark
Axis MovementPositioningMOVEAxis Override Internal Over-ride
Linear InterpolationMOVELTask Override
Circular InterpolationMOVECTask Override
Origin SearchDATUMAxis OverrideApplicable only for origin search feed rate
Interrupt FeedingMOVEIAxis Override Internal Over-ride
Time-specified PositioningMOVETAxis Override Internal Over-rideSpecified time period cannot be kept.
TraverseMOVETRAVTask Override
Electronic Cam, Single AxisCAMDisable
Axis OperationLink OperationMOVELINKDisable
Electronic Cam, SynchronousCAMBOXDisable
Electronic ShaftCONNECTDisable
Trailing SynchronizationSYNCDisable
Travel Distance SuperimposeADDAXDisable
Speed ControlSPEEDDisable
Torque ControlTORQUEDisable
Axis Operation CancelTrailing Synchronization Can-celSYNCRDisable
Travel Distance Superimpose CancelADDAXRDisable
Speed Control CancelSPEEDDRDisable
Torque Control CancelTORQUERDisable

Command and Operation

NameSpecifications
Axis Override Enable0: Enables axis override value (override 100% is used.)1: Enables axis override value↑: Nil↓: Nil
Axis Override0 to 32767 [0.01%]0.00% if value out of range is input.
  • The value in [Axis Override] is enabled only while the bit [Axis Override Enable] is turned ON. When the bit is OFF, override 100.00% is used.
  • The bit [Axis Override Enable] and data [Axis Override] are always referenced.

Status Condition Nil

Effect of Other Functions Nil

Effect on Other Functions Speed of the functions with axis movement is affected.

OMRON CJ1W-MCH71 - Command and Operation - 1
Program Example

OMRON CJ1W-MCH71 - Command and Operation - 2
Timing Chart
Basic Operation:

OMRON CJ1W-MCH71 - Command and Operation - 3
Relation between Task Override and Axis Override:

WordVariableBitNameI/O
x+0IW044013Axis Machine Lock (Axis 1)Output
---
x+31IW045FAxis Machine Lock (Axis 32)

Function

  • With Axis machine lock, output for axis movement is stopped to debug the sequences other than the ones for the axis movement.
  • Even though command output for axis is stopped, the command position will be updated and signal for the output modules will be output normally.

  • When Axis machine lock status is cancelled, the command position returns to the position (Feedback present position) before the machine lock status.

  • The Axis machine Lock function works on each axis independently. Therefore, make sure to take caution when the operation (interpolation, etc.) involves multiple axes.
  • Even under Axis machine lock state, Servo Lock is required to use functions with axis movement.

Command and Operation

NameSpecifications
Axis Machine Lock0: Not using Axis machine lock mode1: Using Axis machine lock mode↑: No↓: No

Status Condition

NameFunction
Axis Operating0: No axis operating command 1: Axis operating command being output.
Positioning Com-pleted0: Outputting positioning command, or axis is outside of in-position range. 1: Not outputting positioning command, and axis is within in-position range.
Axis Machine Lock Status0: Not in Axis machine lock mode 1: In Axis machine lock mode
Axis Not Used/Used0: Axis is not being used. 1: Axis is being used. (In Manual Mode: Axis is used for JOG etc., In Automatic Mode: Axis is declared in the operating program)

Status of the bit [Axis Machine Lock] is reflected in the bit [Axis Machine Lock Status].

Effect of Other Functions

ClassificationItemEffect
Physical StatusServo AxisNo effect
Virtual AxisIgnored
I/O AxisIgnored
Counter AxisIgnored
Control StatusIn Position controlNo effect
In Speed controlOutput for Speed command not stopped
In Torque controlOutput for Torque command not stopped
Status BitsBusyNo effect
In Servo LockNo effect
No OriginNo effect
Axis OperatingAxis machine lock state will not be changed when ON.
Positioning CompletedNo effect
Positioning Completed (No.2)No effect
Axis Machine Lock StatusNo effect
Command Disabled/EnabledAxis machine lock state is cancelled when OFF.
Axis Not Used/UsedNo effect
In Manual/Automatic ModeNo effect

Effect on Other Functions

In Axis machine lock state, the origin search operations (with DATUM command, Axis Control Bit: Origin Search) will be executed in the same way as the operations with the Axis Control Bit [Forced Origin].

System Parameter

Nil

Program Example

OMRON CJ1W-MCH71 - Program Example - 1

OMRON CJ1W-MCH71 - Program Example - 2
Timing Chart
Basic Operation:

Operation in Speed or Torque Control:

In Speed or Toque Control, it is not guaranteed that the axis will not move when the command output is stopped. Therefore, the bit [Axis Machine Lock Status] is not changed (turned ON/OFF). Due to the same reason, while the bit [Axis Machine Lock Status] is 1 (ON), commands are output not as Speed or Torque command, but as Position command.

OMRON CJ1W-MCH71 - Operation in Speed or Torque Control: - 1

WordVariableBitNameI/O
x+0IW044015Manual/Automatic Mode (Axis 1)Output
---
x+31IW045FManual/Automatic Mode (Axis 32)

Function

With this bit, the operating mode of the axis is switched.

Command and Operation

NameSpecifications
Manual/Automatic Mode0: In Manual Mode1: In Automatic Mode↑: Decelerates to stop the manual operation being executed↓: Decelerates to stop the automatic operation being executed

Status Condition

NameSpecifications
Busy0: Not executing any of the functions listed below.1: Executing one of the functions listed below, or the command bit is ON.JOG, STEP, Origin Search, Machine Origin Return, Error Counter Reset, Forced Origin, and ABS Origin Setting
Axis Not Used/Used0: Axis is not being used.1: Axis is being used.(In Manual Mode: Axis is used for JOG etc., In Automatic Mode: Axis is declared in the operating program)
In Manual/Automatic Mode0: In Manual Mode (JOG, STEP, and Origin Search can be executed.)1: In Automatic Mode (Motion programs can be executed.)

Effect of Other Functions

The operating mode status is output to the bit [In Manual/Automatic Mode].

Conditions for each Axis Status Bit are as shown below:

NameCondition
Busy·Does not turn ON ·The bit [Manual/Automatic Mode] can be changed (ON/OFF) in Busy state.
Servo Lock·No effect
No Origin·The bit [Manual/Automatic Mode] can be changed regardless of whether the origin for the machine coordinate system has been defined or not.
Axis Operating·Does not turn ON
Positioning Completed·The bit [Manual/Automatic Mode] cannot be changed when OFF.
Axis Machine Lock Status·No effect
Command Disabled/Enabled·The bit [Manual/Automatic Mode] cannot be changed when OFF.
Axis Not Used/Used·Does not turn ON
In Manual/Automatic Mode·No effect

Effect on Other Functions

The functions on each axis are limited depending on ON/OFF of the bit [In Manual/Automatic Mode] as shown below:

FunctionIn Manual/Automatic Mode
OFF (Manual)ON (Automatic)
Axis Control Bit: Axis Alarm ResetCan be executedCan be executed
Axis Control Bit: Deceleration StopCan be executedCannot be executed
Axis Control Bit: Servo LockCan be executedCan be executed
Axis Control Bit: Servo UnlockCan be executedCan be executed
Axis Control Bit: JOGCan be executedCannot be executed
Axis Control Bit: STEPCan be executedCannot be executed
Axis Control Bit: Origin SearchCan be executedCannot be executed
Axis Control Bit: Machine Origin ReturnCan be executedCannot be executed
Axis Control Bit: Error Counter ResetCan be executedCan be executed
Axis Control Bit: Forced OriginCan be executedCannot be executed
Axis Control Bit: ABS Origin SettingCan be executedCannot be executed
Axis Control Bit: Axis Override EnableCan be executedCan be executed
Axis Control Bit: JOG/STEP DirectionCan be executedCannot be executed
Axis Control Bit: Axis Machine LockCan be executedCan be executed
Axis Control Bit: Manual/Automatic ModeCan be executedCan be executed
IOWR: Present Position PresetCan be executedCannot be executed
  • When the bit [Manual/Automatic Mode] is turned ON (1) during a manual operation, the manual operation being executed will be interrupted by deceleration stop. The bit [In Manual/Automatic Mode] will be turned ON when the bit [Axis Not Used/Used] is turned OFF after the interruption.
  • If the bit [Manual/Automatic Mode] for the axis declared by PROG command in the motion program is turned OFF (0) during an automatic operation, the program operation being executed will be interrupted by deceleration stop. The status bit [In Manual/Automatic Mode] will be turned OFF when the bit [Axis Not Used/Used] is turned OFF after the interruption.
  • If the bit [In Manual/Automatic Mode] for the axis declared by PROG command is OFF (0) when starting a motion program, the bit [Start Warning] will be turned ON and the motion program cannot be executed.

System Parameter

Nil

Program Example

OMRON CJ1W-MCH71 - Program Example - 1

Timing chart

Basic Operation:

Axis Control Bit: Manual/Automatic Mode1 0
Axis Status Bit: In Manual/Automatic Mode1 0
←T1→T1

OMRON CJ1W-MCH71 - Basic Operation: - 1
Axis operation switch in Manual Mode:

OMRON CJ1W-MCH71 - Basic Operation: - 2
Switch during program operation in Automatic Mode:

WordVariableBitNameI/O
x+0IW044000Axis Alarm Reset (Axis 1)Output
-x+31IW045FAxis Alarm Reset (Axis 32)
x+32OW044000Axis Alarm Occurring (Axis 1)Input
-x+63OW045FAxis Alarm Occurring (Axis 32)

Function

  • When an error that requires stopping the operation occurs in the MC Unit or MECHATROLINK-II slaves, it will be detected as an alarm.
  • Executing alarm reset after removing the cause can clear alarms (except for some alarms).
  • When communications are disconnected during normal operations, the bit [Axis Alarm Reset] will be turned ON to make the concerned axis usable again.

Command and Operation

NameSpecifications
Axis Alarm Reset0: Nil1: Does not turn ON the bit [Axis Alarm Occurring]↑: Clears alarm occurring on axis level and warning on ML-10.↓: Nil

Alarms on the axis or MECHATROLINK-II slave level will be reset when the bit [Axis Alarm Reset] is turned ON.

NameSpecifications
Axis Alarm Occur-ring0: Alarm not occurring on axis or MECHATROLINK-II slave.1: Alarm occurring on axis or MECHATROLINK-II slave.

Status Condition

NameSpecifications
Alarm Occurring0: No alarm 1: Alarm occurring on MC Unit (linked to ERC indicator)
Axis Alarm Occurring 1-160: No alarm occurring on axis or the bit [Axis Alarm Reset] is ON 1: Alarm occurring on axis
Axis Alarm Occurring 17-320: No alarm occurring on axis or the bit [Axis Alarm Reset] is ON 1: Alarm occurring on axis
Axis Alarm0: No alarm occurring on axis or MECHATROLINK-II slave 1: Alarm occurring on axis or MECHATROLINK-II slave
Axis Alarm CodeOutputs the code of the alarm occurring on axis
  • If an alarm occurs on an axis or MECHATROLINK-II slave, the bits [Alarm Occurring], [Axis Alarm Occurring 1-32], and [Axis Alarm] will be turned ON, and the alarm code (3013h) will be stored in [Axis Alarm Code]. Detailed slave alarm codes are stored in the error log.
  • When several alarms occur at the same time, the code of the alarm that was detected first will be stored in [Axis Alarm Code].

Effect of Other Functions

Nil

Effect on Other Functions

When an alarm occurs, various functions will be affected (operation failure, operation interruption etc.).

System Parameter

Nil

Program Example

OMRON CJ1W-MCH71 - Program Example - 1

On MC Unit, there are three types of alarms:

Unit alarm
- Task alarm
- Axis alarm

Alarms are reset on the basis of each type. Therefore, execute the alarm reset over the Unit, Task, and Axis to clear an alarm occurring on the MC Unit without fail.

Timing Chart
Basic Operation (Alarm Occurring):

Alarm identification Data: Alarm Occurring1 0
Alarm identification Data: Axis Alarm Occurring1 0
Axis Status Bit: Axis Alarm1 0
Axis Status Data: Axis Alarm Code0XXXX
Internal Alarm Status1 0

OMRON CJ1W-MCH71 - Program Example - 2
Basic Operation (Alarm Reset):

OMRON CJ1W-MCH71 - Program Example - 3
When an alarm that cannot be reset occurs:

OMRON CJ1W-MCH71 - Program Example - 4
When an alarm occurs while the bit [Axis Alarm Reset] is ON:

WordVariableBitNameI/O
x+32OW044001Machine Origin (Axis 1)Input
---
x+63OW045FMachine Origin (Axis 32)

Function

The bit [Machine Origin] indicates the status that the present position is located in the proximity of the origin on the machine coordinate system.

Status Condition

NameSpecifications
Machine Origin0: Machine coordinate system FB position is outside of origin in-position range. 1: Machine coordinate system FB position is within origin in-position range.
  • When the feedback position enters second in-position range (specified by the system parameter) of the machine origin, the bit [Machine Origin] is turned ON regardless of whether the origin has been defined or not.

  • 1-shot output may occur. In that case, depending on the Scan Time of the ladder program and the Unit Scan Time of the MC Unit, the output may not be reflected in the ladder program.

Effect on Other Functions

The bit [Machine Origin] does not affect other functions directly. It can be used as the status to check the completion of the Axis Control Bit [Origin Search], [Machine Origin Return], or [DATUM command].

System Parameter

The range where the bit is turned ON/OFF is determined by the following system parameter:

No.Name
P3AA07No.2 In-position Range

Timing Chart

OMRON CJ1W-MCH71 - Timing Chart - 1

WordVariableBitNameI/O
x+32OW044002Busy (Axis 1)Input
---
x+63OW045FBusy (Axis 32)

Function

The bit [Busy] indicates the status of the execution of each function on the axis level, and it is used to provide interlock among functions in the ladder program.

Status Function

NameSpecifications
Busy0: Not executing any of the functions listed below.1: Executing one of the functions listed below, or the command bit is ON.JOG, STEP, Origin Search, Machine Origin Return, Error Counter Reset, Forced Origin, and ABS Origin Setting

The bit [Busy] will be turned ON when the execution of the following functions is started after they were accepted, and turned OFF when the execution is completed and the command is turned OFF.

Function
Axis Control Bit: JOG
Axis Control Bit: STEP
Axis Control Bit: Origin Search
Axis Control Bit: Machine Origin Return
Axis Control Bit: Error Counter Reset
Axis Control Bit: Forced Origin
Axis Control Bit: ABS Origin Setting

Effect on Other Functions

The following functions will be restricted while the bit [Busy] is ON:

FunctionRestriction
Axis Control Bit: JOGCannot be executed
Axis Control Bit: STEPCannot be executed
Axis Control Bit: Origin SearchCannot be executed
Axis Control Bit: Machine Origin ReturnCannot be executed
Axis Control Bit: Forced OriginCannot be executed
Axis Control Bit: ABS Origin SettingCannot be executed
Axis Control Bit: JOG/STEP DirectionCannot be executed
IOWR: Present Position PresetCannot be executed

System Parameter

Nil

Timing Chart

See "JOG Operation" (page 476), "STEP Operation" (page 480), "Origin Search" (page 484), "Machine Origin Return" (page 489), "Error Counter Reset" (page 493), "Forced Origin" (page 498), and "ABS Origin Setting" (page 500).

WordVariableBitNameI/O
x+32OW044004No Origin (Axis 1)Input
---
x+63OW045FNo Origin (Axis 32)

Function

The bit [No Origin] indicates the status of whether the origin on the machine coordinate system is defined or not.

Status Condition

NameSpecifications
No Origin0: Origin on machine coordinate system is defined.1: Origin on machine coordinate system is not defined.
  • When the MC Unit is powered ON, the bit [No Origin] will be turned ON. It will be turned OFF through the operations of the following functions. Executing present position preset using IOWR will not turn OFF the bit.
FunctionRemark
Axis Control Bit: Origin SearchThe bit [No Origin] will be turned OFF when Origin Search is completed normally. If the origin search method is “Origin at power ON”, the bit [No Origin] will be turned OFF simultaneously when the bit [Command Disabled/Enabled] is turned ON.
Axis Control Bit: Forced OriginThe bit [No Origin] will be turned OFF when Forced Origin is completed normally.
Axis Control Bit:ABS Origin SettingThe bit [No Origin] will be turned OFF when ABS Control Setting is completed normally.Subsequently, the bit will be turned OFF simultaneously when the bit [Command Disabled/Enable] is turned ON.
DATUM: Origin SearchThe bit [No Origin] will be turned OFF when Origin Search is completed normally.If the origin search method is “Origin at power ON”, the bit [No Origin] will be turned OFF simultaneously when the bit [Command Disabled/Enable] is turned ON.
Virtual axis or ABS encoder axis with origin settingAlways OFF for Origin Search or any other functions
  • Conditions for the bit [No Origin] to be turned ON in normal operations are as follows:

  • When an origin search is started (except for when the origin search method is "Origin at power ON").

  • When the bit [Command Disabled/Enabled] is turned OFF.

Effect on Other Functions

When the bit [No Origin] is ON, the following functions will be restricted. Motion programs can be executed:

FunctionRestriction
Axis Control Bit: Machine Origin ReturnCannot be executed
Software LimitWill not be enabled

System Parameter

Nil

Timing Chart

See "Origin Search" (page 484), "Forced Origin" (page 498), and "ABS Origin Setting" (page 500).

WordVariableBitNameI/O
x+32OW044005Axis Operating (Axis 1)Input
---
x+63OW045FAxis Operating (Axis 32)

Function

The bit [Axis Operating] indicates the status of the output of operation commands for the axis.

It turns ON even when no command is being output in Axis machine lock mode.

Status Condition

NameSpecifications
Axis Operating0: No axis operating command 1: Axis operating command being output.
  • The bit [Axis Operating] changes its state (ON/OFF) for the operating commands in any one of Position, Speed, and Torque controls.
  • 1-shot output may occur. In that case, depending on the Scan Time of the ladder program and the Unit Scan Time of the MC Unit, the output may not be reflected in the ladder program.
  • The bit [Axis Operating] functions as the completion condition of the following axis operations:

Effect on Other Functions

FunctionRemark
Axis Control Bit: JOG
Axis Control Bit: STEP
MOVEL Command: Linear InterpolationIn Pass Mode
MOVEC Command: Circular InterpolationIn Pass Mode
MOVETRAV Command: TraverseIn Pass Mode
  • The status (ON/OFF) of Axis machine lock will not be changed while the bit [Axis Operating] is ON.

System Parameter

Nil

Timing Chart

Basic Operation:

OMRON CJ1W-MCH71 - Basic Operation: - 1

WordVariableBitNameI/O
x+32OW044006Positioning Completed (Axis 1)Input
---
x+63OW045FPositioning Completed (Axis 32)
x+32OW044007Positioning Completed (NO2.) (Axis 1)
---
x+63OW045FPositioning Completed (NO2.) (Axis 32)

Function

The bits [Positioning Completed] and [Positioning Completed (NO.2)] indicate the status of positioning.

Status Condition

NameSpecifications
Positioning Com-pleted0: Outputting positioning command, or axis is outside of in-position range. 1: Not outputting positioning command, and axis is within in-position range.
Positioning Com-pleted (NO2.)0: Outputting positioning command, or axis is outside of No.2 in-position range 1: Not outputting positioning command, and axis is within No.2 in-position range.
  • The bit [Positioning Completed] will be turned ON when the difference between the present position and target position enters into the in-position range (specified in the servo parameter) after position command output was completed.

  • The bit [Positioning Completed (No.2)] will be turned ON when the difference between the present position and target position enters into the in-position range No.2 (specified in the system parameter) after position command output was completed.

  • Both bits [Positioning Completed] and [Positioning Completed (NO.2)] are turned OFF under the conditions described below:

  • Turned OFF simultaneously when the bit [Axis Operating] is turned ON in starting the position command output.

  • When the parameter [P00004 bit04: Positioning completed signal select] is 0:

The bits will not be turned OFF until the bit [Axis Operating] is turned ON.

  • When the parameter [P00004 bit04: Positioning completed signal select] is 1:

The bits will be turned OFF when moving out of the in-position range.

  • In Speed or Torque control, the bits are always OFF because there is no target position.
  • 1-shot output may occur. In that case, depending on the Scan Time of the ladder program and the Unit Scan Time of the MC Unit, the output may not be reflected in the ladder program.

Effect on Other Functions

  • The bits function as the completion condition of the following axis operations:
FunctionPositioning completed/Positioning completed (NO.2)Remark
Axis Control Bit: Origin SearchPositioning Completed
Axis Control Bit: Machine Origin ReturnPositioning Completed
MOVEL Command: Linear InterpolationPositioning Completed (NO.2)In Stop Mode
MOVEC Command: Circular InterpolationPositioning Completed (NO.2)In Stop Mode
MOVETRAV Command: TraversePositioning Completed (NO.2)In Stop Mode
MOVE: PositioningPositioning Completed
DATUM: Origin SearchPositioning Completed
MOVEI: Interrupt FeedingPositioning Completed
MOVET: Time-specified PositioningPositioning Completed
CAM: Electronic CAM, Single AxisPositioning Completed
SYNCR: Synchronization CancelPositioning Completed
SPEEDR: Speed Control CancelPositioning CompletedSwitch to position control mode checked
TORQUER: Torque Control CancelPositioning CompletedSwitch to position control mode checked
MOVELINK: Link OperationPositioning CompletedDepends on link option
CAMBOX: Electronic Cam, SynchronousPositioning CompletedDepends on link option
  • The bits also function as the start condition for the following functions:
FunctionStart condition
Axis Control Bit: Forced OriginCannot be executed when not ON
Axis Control Bit: ABS Origin SettingCannot be executed when not ON

System Parameter

The range where the bits are turned ON/OFF is determined by the following system parameter:

No.Name
Pn0500In-Position Range
P3AA07No.2 In-Position Range

Note

It is generally recommended to set the parameters above so that [Pn0500 = P3AA07] is satisfied for the sake of positioning and interpolation feed accuracy.

Timing Chart

OMRON CJ1W-MCH71 - Timing Chart - 1

WordVariableBitNameI/O
x+32OW044008Error Counter Warning (Axis 1)Input
---
x+63OW045FError Counter Warning (Axis 32)

Function

The bit [Error Counter Warning] indicates the status of whether the error amount has exceeded the threshold value or not.

Status Condition

NameSpecifications
Error Counter Warn-ing0: Error amount is within the range of the error counter warn-ing value.1: Error amount has exceeded the range of the error counter warning value.
  • The bit [Error Counter Warning] will be turned ON when the error amount exceeds the error counter warning value specified in the system parameter.
  • Error amount is checked only during position command output.
  • 1-shot output may occur. In that case, depending on the Scan Time of the ladder program and the Unit Scan Time of the MC Unit, the output may not be reflected in the ladder program.

Effect on Other Functions

This bit functions just as a warning, i.e. there is no effect whatsoever on any operations currently being executed.

System Parameter

The range where the bit is turned ON/OFF is determined by the following system parameter:

NO.Name
P3AA05Error Warning Value

Timing Chart

OMRON CJ1W-MCH71 - Timing Chart - 1

WordVariableBitNameI/O
x+32OW044010Counter Latch Completed (Axis 1)Input
---
x+63OW045FCounter Latch Completed (Axis 32)

Function

The bit [Counter Latch Completed] indicates the counter latch status of the axis that has output the latch request through the operation of the following functions:

FunctionPurpose of counter latch functionRole of latch signal
DATUM: Origin SearchDetects origin.Trigger to decide the final stop position
MOVEI: Interrupt FeedingDetects external signal input position.Trigger to decide the final stop position
MOVELINK: Link OperationDetects link start position.Trigger to start synchronization
CAMBOX: Electronic Cam, SynchronousDetects link start position.Trigger to start synchronization
SYNC: Trailing SynchronizationDetects marker sensor ON position.Trigger to start synchronization
LATCH: Present Position LatchDetects latch position.Trigger to store latch position
Axis Control Bit: Origin SearchDetects origin.Trigger to decide the final stop position

Status Condition

NameSpecifications
Counter Latch Completed0: Counter Latch not completed 1: Counter Latch completed

The bit [Counter Latch Completed] will be turned ON when counter latch is completed, and turned OFF when counter latch is requested through the operation of the functions above.

Effect on Other Functions

The bit functions as the condition to carry forward the operation steps for the functions in the table above.

System Parameter

Nil

Timing Chart

Basic Operation (Interrupt Feeding):

OMRON CJ1W-MCH71 - Basic Operation (Interrupt Feeding): - 1

WarningVariableBitNameI/O
x+32OW044011MECHATROLINK Warning (Axis 1)Input
---
x+63OW045FMECHATROLINK Warning (Axis 32)

Function

The MECHATROLINK Warning Bit will be set to 1 if a warning occurs in the MECHATROLINK-II slave.

Status Condition

NameSpecifications
MECHATROLINK Warning0: No warning detected on MECHATROLINK-II device1: Warning detected on MECHATROLINK-II device

1-shot output may occur. In that case, depending on the Scan Time of the ladder program and the Unit Scan Time of the MC Unit, the output may not be reflected in the ladder program.

Effect on Other Functions

  • This bit functions just as a warning, i.e. there is no effect whatsoever on any operations currently being executed.
  • Even if the bit [MECHATROLINK Warning] is turned ON, the bits [Alarm Occurring], [Axis Alarm Occurring 1-32], and [Axis Alarm] will not be turned ON. No alarm code will be stored in [Axis Alarm Code] neither.
  • The warning code will be stored in the error log.

System Parameter Nil

Timing Chart Nil

WarningVariableBitNameI/O
x+32OW044012Main Power ON Bit (Axis 1)Input
-x+63-OW045F-
Main Power ON Bit (Axis 32)
(Supported in Unit Ver. 3.0 or later)

Function

  • This bit indicates whether the Servo Driver's main circuit power is ON or OFF.
  • When this bit is ON, the Servo can be locked.

Status Condition

NameSpecifications
Main Power ON0: Servo Driver's main circuit power OFF. 1: Servo Driver's main circuit power ON.

Effect on Other Functions Nil

System Parameter Nil

Timing Chart Nil

WordVariableBitNameI/O
x+32OW044013Command Disabled/Enabled (Axis 1)Input
---
x+63OW045FCommand Disabled/Enabled (Axis 32)

Function

The bit [Command Disabled/Enabled] indicates the status of whether the axis can accept a command or not.

Status Condition

NameSpecifications
Command Disabled/Enabled0: Not allocated or not implemented 1: Allocated and implemented (1 for virtual axis unconditionally)
  • The bit for the axis that was allocated as a real axis will be turned ON when axis initialization processing is completed after communications were established. When disconnection due to communications error occurs, it will be turned OFF. Turning ON the bit [Axis Alarm Reset] may recover the communications from the disconnection.
  • The bit for the axis that was allocated as a virtual axis will be turned ON when axis initialization processing is completed, and keeps the status until the MC Unit is switched OFF.
  • Other conditions for the bit [Command Disabled/Enabled] to be turned OFF are as follows:

  • When communications are disconnected

  • During execution of MECHATROLINK device search

Effect on Other Functions

For the axes that were allocated as real axes, the bit [Command Disabled/Enabled] has effect on execution of all the commands and the status.

System Parameter

Nil

Timing Chart

Nil

WordVariableBitNameI/O
x+32OW044014Axis Not Used/Used (Axis 1)Input
---
x+63OW045FAxis Not Used/Used (Axis 32)

Function

The bit [Axis Not Used/Used] indicates the status of whether the concerned axis can be used or not. The bit [Axis Not Used/Used] reflects the execution status as compared to the bit [Busy] will not be turned OFF until the command output is turned OFF. The bit [Busy] does not reflect status in Automatic Mode while the bit [Axis Not Used/Used] reflects status in Automatic Mode.

Status Condition

NameSpecifications
Axis Not Used/Used0: Axis is not being used. 1: Axis is being used. (In Manual Mode: Axis is used for JOG etc., In Automatic Mode: Axis is declared in the operating program)
  • In Manual Mode, the bit [Axis Not Used/Used] is turned ON during execution of the following functions to indicate that the axis is being used in Manual Mode.
Function
Axis Control Bit: JOG
Axis Control Bit: STEP
Axis Control Bit: Origin Search
Axis Control Bit: Machine Origin Return
  • In Automatic Mode, the bit [Axis Not Used/Used] for the axis declared in PROG command will be turned ON when the program is started to indicate that the axis is being used.
  • 1-shot output may occur. In that case, depending on the Scan Time of the ladder program and the Unit Scan Time of the MC Unit, the output may not be reflected in the ladder program.
Effect on Other Functions·In Manual Mode No effect. (The bit [Busy] also has effect on the functions affected by this bit. Duration of the bit [Busy] staying ON is longer than that of the bit [Axis Not Used/Used], which means that the bit [Busy] includes the bit [Axis Not Used/Used] consequentially. ·In Automatic Mode The axis for which the bit [Axis Not Used/Used] is ON cannot be used in other motion programs. When starting a program that declared an axis already in use, the bit [Start Warning] will be turned ON. Therefore, the motion program cannot be executed.
System ParameterNil
Timing ChartFor timing charts in Manual Mode, see “JOG operation” (page 476), “STEP operation” (page 480), “Origin Search” (page 484), and “Machine Origin Return” (page 489). For timing charts in Automatic Mode, see “Motion Program Start” and “Start Mode” (page 443).

SECTION 8

Establishing the Origin

This section describes how to establish the origin in the positioning system.

8-1 Overview 532

8-1-1 UsingIncremental Encoders 532
8-1-2 Using Absolute Encoders 533

8-2 Input Signals Required for Origin search 534
8-3Origin Search Methods and Parameters 534

8-3-1 Origin Search Methods 534
8-3-2 System Parameters 535

8-4Origin Search Operations 536
8-4-1 Overview 536
8-5 Absolute (ABS) Encoders 539
8-6 ABS Encoder Origin Setting 540

8-6-1 Procedure. 540
8-6-2 Setting Up the Related Parameters 540
8-6-3 Setting Up the Absolute Encoder 541
8-6-4 Supplemental Information for Setting Up. 543
8-6-5 Moving to the Origin. 543
8-6-6 Setting the MC Unit ABS Origin 543

8-1 Overview

This section describes the method of establishing the origin for motion control systems using either incremental encoders or absolute encoders.

8-1-1 Using Incremental Encoders

In motion control systems using incremental encoders, an origin must be established and the bit [No Origin] must be turned OFF after the power is turned ON.

There are two ways to establish the origin using the MC Unit.

OperationDescription
Forced OriginThe position where the motor is stopped is defined as an ori-gin.
Origin searchActually moving the motor and using the limit switches, origin proximity switches, and encoder's phase-Z signal determine an origin.If the origin search method is set to “Origin at power ON” in the system parameter, the Unit will automatically define the position where the power is turned ON as the origin, without moving the motor.

Forced Origin

The position where the motor is stopped is determined as the origin (forcibly clear to 0) by turning ON the bit [Forced Origin] in the PC Interface Area. See "Forced Origin" (page 498) in SECTION 7 PC Interface Area for details on the timing chart and other details.

WordVariableBitNameDescription
x+0IW044009Forced Origin (Axis 1)0: Nil
---1: Nil
x+31IW045FForced Origin (Axis 32)↑: The present position is defined as the origin on the machine coordinate system (disabled during operation). ↓: Nil

An origin search operation can be performed by turning ON the bit [Origin Search] or by executing DATUM command (Origin Search).

WordVariableBitNameDescription
x+0IW044006Origin Search (Axis 1)0: Nil
---1: Continues origin search
x+31IW045FOrigin Search (Axis 32)↑: Starts origin search
↓: Stops origin search

Origin Search in Manual/Automatic Mode

Following the method of determining an origin, use one of the methods depending on the mode of each task as shown below:

Yes: Can be used, No: Cannot be used

MethodManual ModeAutomatic Mode
Forced Origin bitYesNo
Origin Search[Origin Search] bitYesNo
DATUMNoYes

8-1-2 Using Absolute Encoders

With the ABS encoder, the present position can be defined by reading the absolute value from the encoder when the MC Unit is turned ON if the PLC (MC Unit) or servo driver was turned OFF once. Because of this, there is no need to perform origin searches every time when turning ON the devices. This section explains the set up procedure briefly.

For details, see 8-5 Absolute (ABS) Encoders (page 539).

Absolute Encoder Setup

Absolute encoder data must be reset and the absolute origin for the MC Unit must be set in the following cases:

  • When a Servomotor with an absolute encoder is connected for the first time or replaced
  • When the battery is replaced.
  • When the held absolute data is lost because the encoder cable has been plugged OFF for a long time.

Use the following procedure to set up the absolute encoder:

1,2,3...

  1. Connect the motor to the machine.
  2. Referring to the Servo Driver operation manual, replace the battery.
  3. Referring to the Servo Driver operation manual, held values are cleared (data reset). At this point, the origin of the absolute encoder and the machine origin do not match with each other.
  4. Execute Servo Lock using the MC Unit.
  5. Perform an origin search to move the Servomotor axis to the origin.
  6. Turn the absolute encoder OFF and ON in order to save the present value as the origin. The absolute encoder value indicating the machine origin is stored as absolute an origin setting value.

Once the setup is completed, since the present value is decided by automatically subtracting the ABS origin setting value from the value read from the encoder when the power is turned ON, no origin search will be required. For details, see 8-6 ABS Encoder Origin Setting (page 540).

WordVariableBitNameDescription
x+0IW044009ABS Origin Setting (Axis 1)0: Nil
---1: Nil
x+31IW045FABS Origin Setting (Axis 32)?: Sets ABS encoder origin
?: Nil
x+0IW044006Origin Search (Axis 1)0: Nil
---1: Continues origin search
x+31IW045FOrigin Search (Axis 32)↑: Starts origin search
↓: Stops origin search

See 7-4 Interface Specifics (page 420) for details on each bit.

The following input signals and conditions are required to perform the origin search operation.

ParameterDescription
CW/CCW Limit SignalsNormally closed switches are required.
Origin Proximity SignalThe logic of the input signal can be changed in the parameter, so either Normally closed or Normally open switch can be used.
Encoder Phase-Z SignalBuilt-in signal of the encoder on the servomotor.
External Input Signal 1,2, and 3Normally open switches are used, and connected to the servo driver.

CW/CCW Limit Signals

These signal inputs indicate the maximum operating range of the work when the motor rotates in the direction of clockwise (CW) or counterclockwise (CCW).

Origin Proximity Signal

This signal input indicates that the axis is near the origin.

Encoder Phase-Z Signal

This signal will be output when the encoder makes one revolution.

The first phase-Z input position after the origin proximity signal input changes from ON to OFF becomes the actual machine origin.

External Input signal 1,2, and 3

Instead of encoder phase-Z signal, one of these signals determines the actual machine origin. The signal to be used can be selected in the system parameter [P4AA06: Origin determine signal].

8-3 Origin Search Methods and Parameters

8-3-1 Origin Search Methods

There are four possible settings for the origin search methods.

Origin at Power ON Mode

  • The position of the motor when the power is turned ON is defined as the origin automatically.
  • If an origin search is performed in this mode, the position where the origin search is started will become the origin.

Limit Reversal Mode

  • The direction will be reversed if a limit input signal is input during the origin search.
  • After starting the operation towards Origin search start direction at Origin search feed rate, when Origin proximity signal input (normally open) is turned ON, the speed will be changed to Origin search approach speed. At the rise of Origin determine signal input after the Origin proximity signal input has been turned OFF, the speed is changed to Origin search creep speed. The axis travels for the final travel distance to define an origin.
  • When there is no Origin proximity signal input, a limit signal input can be used instead.

2-level Speed in One Direction Mode

  • The origin search is performed only in one direction.
  • After starting the operation towards the phase-Z detection direction at Origin search approach speed, the speed will be changed to Origin search creep speed at the rise of the Origin determine signal input and the axis travels for the final travel distance to define an origin. An alarm will occur if a limit signal input is received before the origin proximity signal input.

3-level Speed in One Direction Mode

  • The origin search is performed only in one direction.
  • After starting the operation towards the phase-Z detection direction at Origin search feed rate, the speed will be changed to Origin search approach speed when the Origin proximity signal input (normally open) is turned ON. The speed will be changed to the Origin search creep speed at the rise of the Origin determine signal input after the Origin proximity input signal is turned OFF and the axis travels for the final travel distance to define an origin.
  • An alarm will occur if a Limit input signal is input before the Origin proximity input signal.
  • When there is no Origin proximity input signal, a limit input signal can be used instead.

8-3-2 System Parameters

The following system parameters are required to perform the origin search operation. These system parameters are set using the Support Tool.

  • Except for "Origin at power ON" mode, the origin on the machine coordinate system is determined with the external input signal specified in the parameter [P4AA06: Origin determine signal].
  • After completion of an origin search, the following values remain the same as before the execution.

  • The workpiece coordinate system offset set using OFFPOS command

  • The coordinate system No. set in ORIGIN/WORK command

  • If an origin search is executed for an axis using an absolute encoder, the origin on the machine coordinate system will be determined using an external input signal.

  • By specifying Origin offset value, the origin on the machine coordinate system after an origin search can be set to the value other than zero. (Specify zero if not necessary.)
ParameterNo.ValueDescription
Origin search methodP4AA010: Origin at power ON1: Limit reversal2: 2-level speed in one direction3: 3-level speed in one directionSets the origin search method.
Initial search directionP4AA020: Same as phase-Z detection1: Opposite of phase-Z detectionSets the origin search start direction in Limit reversal mode (origin search method 1).
Phase-Z detection directionP4AA030: + direction1: - directionSets the phase-Z detection direction in the modes (origin search methods 1,2, and 3) except for Ori-gin at power ON mode.
Origin deceleration methodP4AA040: Uses origin proximity1: Uses CW/CCWSets whether to use origin proximity or limit input signal as the origin proximity signal for origin search methods 1 and 3.
Origin determine signalP4AA060: Phase-Z1: External input signal 12: External input signal 23: External input signal 3Sets the signal that determines the origin.
Origin search feed rateP4AA071 to 2147483647Note The speed is limited by 32767 command unit/unit scan.Sets the \( 1^{st} \) level speed of the 3-level speed origin search.
Origin search approach speedP4AA081 to 2147483647Note The speed is limited by 32767 command unit/unit scan.Sets the 2ndlevel speed of the 3-level speed origin search, or sets the 1stlevel speed of the 2-level speed origin search.
Origin search creep speedP4AA091 to 2147483647Note That the speed is limited by 32767 command unit/unit scan.Sets the 3rdlevel speed of the 3-level speed origin search, or sets the 2ndlevel speed of the 2-level speed origin search.
Reference (machine) origin offsetP4AA10-2147483648 to 2147483647Sets the offset amount for the origin search. It is not used for DATUM.
Origin search final travel distanceP4AA110 to 2147483647Sets the origin search final travel distance, which is an additional travel distance towards the travel direction.

8-4 Origin Search Operations

8-4-1 Overview

Origin at Power ON Mode

This section provides basic examples of origin search patterns for each mode.

The position of the motor when the power is turned ON is automatically defined as the origin. Therefore, there is no origin search operation.

Limit Reversal Mode

With Origin proximity input signal, Phase-Z detection direction: + direction, Origin search start direction: Same as Phase-Z detection

OMRON CJ1W-MCH71 - Limit Reversal Mode - 1
When the final travel distance is zero:

OMRON CJ1W-MCH71 - Limit Reversal Mode - 2
When the final travel distance is specified:

Description

1,2,3...

  1. When the origin search is executed, the axis is moved in the specified direction at the specified origin search feed rate.
  2. When the origin proximity input signal is input, the speed is changed to the origin search approach speed.
  3. After the origin proximity input signal is turned OFF, the speed is reduced at the first rise of phase-Z.
  4. The machine origin will be defined after the axis travels back for the excess distance at the origin search creep speed.

  5. If the final travel distance has been specified, the machine origin will be defined after the axis travels back for the specified distance.

  6. If the reference origin offset value has been set in the system parameter, the specified value will be the machine coordinate of the stopping position.
  7. The origin search operation and alarm occurrence will vary depending on the input timings of limit input signal, origin proximity input signal, and phase-Z, origin search start direction, and the position of the work when executing the origin search.

2-level Speed in One Direction Mode

When the phase-Z detection direction is + direction:

OMRON CJ1W-MCH71 - 2-level Speed in One Direction Mode - 1
When the final travel distance is zero:

OMRON CJ1W-MCH71 - 2-level Speed in One Direction Mode - 2
When the final travel distance is specified:

Description

1,2,3...

  1. When the origin search is executed, the axis is moved in the phase-Z detection direction at the origin search approach speed.
  2. After the origin proximity input signal is turned OFF, the speed is reduced at the first rise of the phase-Z.
  3. The machine origin will be defined after the axis travels back for the excess distance at the origin search creep speed.

  4. If the final travel distance has been specified, the machine origin will be defined after the axis travels back for the specified distance.

  5. If the reference origin offset value has been set in the system parameter, the specified value will be the machine coordinate of the stopping position.
  6. The origin search operation and alarm occurrence will vary depending on the input timings of limit input signal, origin proximity input signal, and phase-Z, origin search start direction, and the position of the work when executing the origin search.

3-level Speed in One Direction Mode

With Origin proximity input signal, Phase-Z detection direction: + direction

When the final travel distance is zero:

OMRON CJ1W-MCH71 - When the final travel distance is zero: - 1

When the final travel distance is specified:

OMRON CJ1W-MCH71 - When the final travel distance is specified: - 1

Description

1,2,3...

  1. When the origin search is executed, the axis is moved in the specified direction at the specified origin search feed rate.
  2. When the origin proximity input signal is input, the speed is changed to the origin search approach speed.

  3. After the origin proximity input signal is turned OFF, the speed is reduced at the first rise of phase-Z.

  4. The machine origin will be defined after the axis travels back for the excess distance at the origin search creep speed.

  5. If the final travel distance has been specified, the machine origin will be defined after the axis travels back for the specified distance.

  6. If the reference origin offset value has been set in the system parameter, the specified value will be the machine coordinate of the stopping position.
  7. The origin search operation and alarm occurrence will vary depending on the input timings of limit input signal, origin proximity input signal, and phase-Z, origin search start direction, and the position of the work when executing the origin search.

8-5 Absolute (ABS) Encoders

Overview

The absolute encoder retains absolute data by using the backup battery when the MC Unit is turned OFF. When PLC (MC Unit) is turned ON again, the absolute data is read from the absolute encoder to determine the present position. Therefore, once an origin is set, no origin search will be required after the power is turned ON (required for INC encoders).

The absolute position can be detected using the absolute encoder on the motor with a semi-closed loop system. The detector is composed of an encoder detecting the absolute position within one rotation and a counter that counts the number of rotations.

The ABS data that is stored in the ABS encoder consists of [the number of rotations from the absolute reference position (M)] and [the position within one encoder rotation (PO)]. This ABS data is read as serial data when the power for the system is turned ON. After that, the operation of an absolute encoder will be the same as that of an incremental encoder.

The absolute position PE can be found using the following expression:

$$ P E = M \times R + P O $$

Number of rotations from the absolute reference position: M
Number of pulses per one encoder rotation: R
- The position within one encoder rotation: PO

The ABS encoder constantly holds the ABS data using battery even when the power is OFF. Moreover, it updates the data when there is any data change.

The battery is connected to the battery connector of the Servo Driver.

The Servo Driver reads the absolute data when the power is turned ON. Additionally, the MC Unit reads the same data to calculate the absolute position to set the machine coordinate system automatically.

Applicable Absolute Encoders

The following Servomotors with absolute encoders that can be connected to the MC Unit are provided:

OMRON W Series (R88M-W□□□□S)

(R88M-W□□□□T)

8-6 ABS Encoder Origin Setting

8-6-1 Procedure

Follow the procedure below to set the ABS encoder origin.

OMRON CJ1W-MCH71 - 8-6-1 Procedure - 1

Follow the above procedure in the following cases:

  • When starting up the absolute position detection system for the first time
  • When the servomotor was replaced
  • When alarm related to the absolute encoder occurred

Parameters of MC Unit

No.NameValueRemark
P1AA01Physical axis setting0: Not used1~30: MLK devices31: Reserved32: Virtual axisOnly the MLK slaves can be used as the absolute value detection system.
P4AA12ABS origin offset-2147483648~2147483647Sets the offset amount for the ABS origin setting.The present position after ABS origin setting execution will be the value set in this parameter.
P5AA04Command unit/1 machine rotation1~2147483647
P5AA05Gear ratio 1(Motor rotation speed)1~10,000,000
P5AA06Gear ratio 2(Machine rotation speed)1~10,000,000
P5AA07Axis feed mode000000X0hX (coordinate system management)0: Limited length1: Unlimited lengthCoordinate system management:Limited length axis and Unlimited length axis are treated differently.

Note If the parameters [P5AA04], [P5AA05], and [P5AA06] are changed after ABS origin setting, the alarm [300Dh: ABS encoder error] may occur when the power is turned ON.

Parameters of Servo Driver

No.NameValueRemark
Pn002.2Absolute encoder usage0: Uses absolute encoder as absolute encoder. 1: Uses absolute encoder as incremental encoder.Set 0.
Pn205Multi-turn limit setting0~65535Limited length axis: 65535 (Default value) Unlimited length axis: Denominator of the deceleration ratio -1 (See note 1.)
Pn813.0Option monitor 1 select0: Follows analog monitor 1 (Pn003.0) 1: Follows analog monitor 1 (Pn003.1) 2: Initial multi-turn data (IMTDATA) 3: Encoder count direct value (PGCNT: after x4) 4: Motor PG initial multi-turn data direct value 5: Motor PG counter direct value 6: Motor PG counter latch direct value 7: Reserved 8: Full-closed PG counter direct value 9: Full-closed PG counter latch direct valueSet 2. (See note 2.)
Pn813.1Option monitor 2 selectSame as aboveSet 3. (See note 2.)

Note

(1) With machines such as turntable whose motor makes m rotations while its load shaft makes n rotations, the present value cannot be displayed correctly unless the multi-turn data from the ABS encoder returns to zero in every m rotations. Setting the value obtained by subtracting 1 from deceleration ratio denominator (m-1) in Pn205 will enable to display the present value correctly.
(2) Both multi-turn data and initial incremental pulses are read through the option monitor 1/2 when the power is turned ON. Set the parameters Pn813.0 and Pn813.1 appropriately so that the absolute data can be read correctly.

8-6-3 Setting Up the Absolute Encoder

Purpose

ABS encoder setup is required when clearing the rotational count data of the encoder to 0, or when the encoder has been left disconnected from the battery for a long period. Along with the ABS encoder setup, ABS origin must be set in the MC Unit. This is for resetting rotational count data of the ABS encoder, which should be accompanied by initialization of the axis present value to 0 in the MC Unit.

Setup Procedure

The following setup procedure is for the ABS encoder on OMRON W-series Servomotor.

Make sure to follow the procedure. Otherwise, errors may occur.

1,2,3... 1. Execute ABS encoder setup in the system check mode (Fn008).

ABS encoder setup in the system check mode

OMRON CJ1W-MCH71 - 1,2,3... 1. Execute ABS encoder setup in the system check mode (Fn008). - 1
More than 1second

Operation procedure

PR02W OPRKey OPRDisplayDescription
F.R.B.IStatus display mode Note When the power is turned ON for the first time after connecting the motor with absolute encoder, A.81 (backup error) will be displayed.
FnO00Press the key to select the system check mode.
FnO08Press the key to select the function No. Fn008.
PGCL(More than 1 second) Press the key to start the ABS encoder setup function. "PGCL1" will be displayed.
PGCLSPress the key to display "PGCL5".
do nEPress the key. The ABS encoder setup will be processed. After completing the setup, "donE" will be displayed and flash for about 1 second.
After 1 secondPGCLSAfter displaying "donE", "PGCL5" will be displayed again.
DATAMore than 1secondFnO08(More than 1 second) Function No. in the system check mode will be displayed again.

2. Turn OFF the power once, and then ON again.

The alarm (A.81) will not be cleared when the setup operation is completed.

The alarm will be cleared after the power is turned OFF once (check the power-indicator goes OFF), and then ON again. If no error occurs after power ON, the setup is completed.

If the alarm (A.81) occurs, start over the setup operation.

8-6-4 Supplemental Information for Setting Up

Setup operation explained above is required for operation check (with no load) on a motor and driver alone. When connecting the motor with the mechanical system for trial operation, another setup will be required due to the possibility that the amount of multi-turns in the ABS encoder may be too great.
NoteThe output range of the ABS encoder multi-turns for OMNUC W Series is between -32768 to +32767. Make sure that the operation range of the machine is within the range of multi-turns output.
Setting Up for Trial Operation• If the alarm (A.81) occurs after replacing the battery unit, another setup will be required. • The multi-turn data after the replacement should be different from that before battery unit replacement. Therefore, another initialization of the MC Unit will be required.
NoteIf the alarm does not occur after battery unit replacement, it is not necessary to initialize the MC Unit. If the battery unit is replaced correctly before its battery drain, no alarm should occur normally.
Setting Up When Replacing the Battery unitIn case of battery drain, the absolute data in the ABS encoder will be cleared. Therefore, battery unit replacement and setup are required.
Other Cases Requiring SetupWhen disconnecting the encoder cable from the connector (on the driver or motor), the absolute data in the ABS encoder will be cleared. Therefore, setup operation will be required again.

8-6-5 Moving to the Origin

Use either of the following methods to move the machine to the position that will be the origin.

  • Perform an origin search
  • Execute JOG operation without an origin search.

1,2,3... 1. Set the system in Servo Lock.
2. Perform an origin search. See 8-4 Origin Search Operations (page 536) for details on the origin search.

1,2,3... 1. Set the system in Servo Lock
2. Move the axis to the position to be the origin by JOG operation.

8-6-6 Setting the MC Unit ABS Origin

By setting the ABS origin, while the present position on the machine coordinate system is cleared to zero, the absolute position at that point is stored in the Flash memory.

Execute ABS origin setting after the axis was moved to the origin.

The present position (stopping) is stored in the MC Unit as the absolute origin.

Execute ABS origin setting using the bit in the PC Interface Area.

NameWordVariablebitNameDescription
Axis 1 Control Bitx+0IW044010Absolute Origin Setting0: Nil1: Nil↑: Sets ABS encoder origin↓: Nil
Axis 2-32 Control Bitsx+1- x+31IW0441 - IW045F10The same as for Axis 1The same as for Axis 1
  • The absolute position setting value is stored in the system variable after ABS origin setting is completed. It is possible to transfer the absolute position setting value to another MC Unit through backup/restore operation using the CPU Unit's memory card.
  • The absolute position setting value can be referenced using IORD instruction or the Support Tool. However, they cannot be edited directly. Make sure to set the absolute position setting value using ABS origin setting function.
  • The addresses in the table below are for Axis 1:
Variable addressIORD addressClassi-ficationNameDescriptionUnitUpdate timing
SW021E310FAxisAxis 1 Status: Absolute position setting value 1: Multi-turnsThe value of multi-turns of the ABS encoder in ABS origin settingRotationAt power ON, At ABS origin setting completion
SW021F
SW02203110AxisAxis 1 Status: Absolute position setting value 2: Initial incremental pulsesThe number of initial incre-mental pulses of the ABS encoder in ABS origin settingPulseAt power ON, At ABS origin setting completion
SW0221

Note

(1) It is recommended to backup the contents of ABS origin setting in the CPU Unit's memory card after ABS origin setting is completed.
(2) Make sure to set the absolute position setting value correctly. Otherwise, difference in values for positioning will occur between the MC Unit and ABS encoder.
(3) Do not execute ABS origin setting at least for one second after the main power supply for the Servo Driver or control power supply is turned ON.

SECTION 9

Other Operations

This section describes special operations for the CJ1W-MCH71 and CS1W-MCH71 Motion Control Units, including teaching, program debugging, coordinate systems, and backup functions.

9-1 Teaching 546

9-1-1 Introduction 546
9-1-2 Teaching Condition Setting. 546
9-1-3 Teaching Execution 547
9-1-4 Teaching Status 547
9-1-5 List of Related Bits 548
9-1-6 Program Example 549
9-1-7 TimingChart 550

9-2 Debugging the Program 553

9-2-1 Single Block Operation 553
9-2-2 Machine Lock 555

9-3 Coordinate System. 558

9-3-1 Machine Coordinates and Workpiece Coordinates 558
9-3-2 Limited Length Axis and Unlimited Length Axis 559
9-3-3 Software Limit. 561
9-3-4 Absolute Value Detection Function. 562

9-4 Backup and Restore Function 566
9-4-1 Procedures for Backup and Restore 568
9-5 Servo Driver Status Output 569
9-6 Data Tracing 570
9-7 Zones 571

9-1 Teaching

This section describes the teaching method using the PC Interface Area.

9-1-1 Introduction

  • After moving the axis to a desired position, the present position can be written into the words for position data. This process is called teaching. The address to which the present position is written is called teaching address.
  • Teaching is performed for the entire unit. The axis on which teaching is executed can be specified in "Teaching axis setting".
  • When the teaching command is executed, the present position of the specified axes will be stored in the words of the teaching address specified with position data in ascending order of Axis No.
  • In Teaching, the present position on the reference coordinate system is always read. Either of the following two formats of the present position can be specified.

  • The target position (present position of the command)

  • The feedback value (actual present position calculated with the encoder feedback value)
  • To execute teaching, the bit [Command Disabled/Enabled] has to be ON (Command Enabled) and the bit [No Origin] has to be OFF (Origin is defined).

9-1-2 Teaching Condition Setting

  • The teaching axes and teaching addresses are determined when the bit [Teaching Condition Setting] is turned ON.
  • When the condition setting is completed, the bit [Teaching Condition Setting Completed] will be turned ON, which turns OFF the bit [Teaching Condition Setting]. After that, the bit [Teaching Condition Setting Completed] will be turned OFF.
  • In order to check whether teaching was completed normally or not, observe the bit [Teaching Warning] when the bit [Teaching Condition Setting Completed] is turned ON.

Teaching Axis Setting

When executing teaching, the present position of which axis is to be read has to be specified. It can be specified with Teaching axis setting. Teaching axis setting 1-16 is for Axes 1 to 16 and Teaching axis setting 17-32 is for Axes 17 to 32. To make an axis a teaching object, turn ON (1) the bit corresponding to the Axis No.

Teaching Address

Teaching address specifies the address of position data in which the present position of axes is to be stored. Having the specified address as the beginning word, the present positions will be written into the words of position data in ascending order of Axis No. If Teaching condition setting is not executed after teaching execution, the teaching address will be automatically incremented for the number of axes that have been specified in the bits [Teaching Axis Setting 1-16], [Teaching Axis Setting 17-32]. If the incremented teaching addresses exceed 10239 (27FFh), the address will go back down to zero.

9-1-3 Teaching Execution

  • The bit [Teaching Type] will be read when the bit [Teaching Execution] is turned ON, and the present values will be written into the position data under the conditions specified in the [Teaching Condition Setting].
  • When the present position is written successfully, the bit [Teaching Execution Completed] will be turned ON, which turns OFF the bit [Teaching Execution]. After that, the bit [Teaching Execution Completed] will be turned OFF.
  • In order to check whether teaching was completed normally or not, observe the bit [Teaching Warning] when the bit [Teaching Condition Setting Completed] is turned ON.
  • It is possible to turn ON the bits [Teaching Condition Setting] and [Teaching Execution] simultaneously to execute them together. However, if an error occurs, it will not be possible to know in which operation the error occurred. Therefore, condition setting and execution should be executed separately.

Teaching Type

Either the feedback present position or command present position can be specified for the teaching present value.

9-1-4 Teaching Status

Teaching Warning

The bit [Teaching Warning] indicates the error status of the bits [Teaching Condition Setting] and [Teaching Execution]. The bit [Teaching Warning] is turned ON simultaneously with the bits [Teaching Condition Setting] and [Teaching Execution Completed] under the following conditions:

When Setting Teaching Condition:

  • The teaching axes are not set. ([Teaching Axis Setting 1-16] = [Teaching Axis Setting 17-32] = 0)
  • There are unallocated axes among the axes being specified in the bits [Teaching Axis Setting 1-16] and [Teaching Axis Setting 17-32].
  • The address specified in [Teaching Address] is outside of the position data addresses.
  • Adding the number of axes that have been specified in the bits [Teaching Axis Setting 1-16] and [Teaching Axis Setting 17-32] to the address specified in [Teaching Address] exceeds the position data address range.

When Executing Teaching:

  • The bit [Teaching Execution] is turned ON when the teaching condition has not been set.
  • For any of the axes specified in the bits [Teaching Axis Setting 1-16] and [Teaching Axis Setting 17-32], The bit [Command Disabled/Enabled] is OFF, or the bit [No Origin] is ON.
  • Adding the number of teaching axes to the address indicated in [Teaching Address Monitor] exceeds the position data address range.

Teaching Condition Setting Completed

  • The bit [Teaching Condition Setting Completed] indicates completion of teaching condition setting regardless of normal or error completion.
  • It will be turned OFF when the bit [Teaching Condition Setting] is turned OFF.

Teaching Execution Completed

  • The bit [Teaching Execution Completed] indicates completion of teaching execution regardless of normal or error completion.

Teaching Address Monitor

  • It will be turned OFF when the bit [Teaching Execution] is turned OFF.
  • The status [Teaching Address Monitor] indicates the teaching address.
  • When teaching is completed normally, the address displayed in [Teaching Address Monitor] will be automatically incremented for the number of axes specified in the bits [Teaching Axis Setting 1-16] and [Teaching Axis Setting 17-32].

CIO Area Words for Unit (CPU Unit to MC Unit)

ClassificationWordVariablebitNameSpecifications
Unit Control bitsn+0IW030003Teaching Condition Setting0: Nil 1: Nil ↑: Reads [Teaching Axis Setting] and [Teaching Address]. ↓: Nil
04Teaching Type0: Feedback present position 1: Command present position ↑: Nil ↓: Nil
05Teaching Execution0: Nil 1: Nil ↑: Writes the present position of the selected teaching type into the position data. ↓: Nil:
n+1IW030100-15Teaching Axis Set- ting 1-160: Nil 1: Specifies the axis as teaching object ↑: Nil ↓: Nil
n+2IW030200-15Teaching Axes Set- ting 17-320: Nil 1: Specifies the axis as teaching object ↑: Nil ↓: Nil:

CIO Area Words for Unit (MC Unit to CPU Unit)

ClassificationWordVariablebitNameSpecifications
Unit Status bitsn+15OW030303Teaching Warning0: Teaching condition setting, and the execution completed normally 1: Condition error, Command disabled, No origin, or address overflow
04Teaching Condition Setting Completed0: [Teaching Condition Setting] is OFF. 1: Teaching condition setting is completed (including error completion).
05Teaching Execution Completed0: [Teaching Execution] is OFF. 1: [Teaching Execution] is completed (including error completion).

DM Area Words for Unit (CPU Unit to MC Unit)

ClassificationWordVariablebitNameSpecifications
Unit Control bitm+20IW031000-15Teaching AddressSpecifies the teaching start address 0-10239

DM Area Words for Unit (MC Unit to CPU Unit)

ClassificationWordVariablebitNameSpecifications
Unit Status datam+39OW031100-15Teaching Address MonitorOutputs the address of the current teaching object.

OMRON CJ1W-MCH71 - 9-1-5 List of Related Bits - 1
9-1-6 Program Example

9-1-7 Timing Chart

Teaching Condition Setting (Normal completion):

OMRON CJ1W-MCH71 - 9-1-7 Timing Chart - 1

Teaching Condition Setting (Error completion):

OMRON CJ1W-MCH71 - 9-1-7 Timing Chart - 2

OMRON CJ1W-MCH71 - 9-1-7 Timing Chart - 3
Teaching Execution (Normal completion):

OMRON CJ1W-MCH71 - 9-1-7 Timing Chart - 4
Teaching Execution (Error completion):

9-2 Debugging the Program

The debug function is described here, and the following functions are used for debugging the programs.

Debug functionDebugged programOperationDebugging unit
Single Block OperationMotion programLadder, the Support ToolMotion task
Machine LockMotion programLadder, the Support ToolAxis
BreakpointMotion programThe Support ToolMotion task

9-2-1 Single Block Operation

Function

  • Single Block Operation is a motion program-debugging function that executes the motion program in block units so that program execution stops after each block.
  • When the bit [Single Block Operation Mode] is ON, blocks not involving operations (program numbers or parallel branching labels) will be stopped.

Operation

  • Single Block Operation can be executed by turning ON/OFF the bit [Single Block Operation Mode] from the ladder program or the Support Tool.
  • Single Block Operation Mode will be started when the bit [Single Block Operation Mode] is turned ON. After a block is stopped, the next block can be executed by turning ON the bit [Motion Program Start].
  • The bit [Start Mode] affects the bit [Motion Program Start] in the single block operation mode. Therefore, select Start Mode 2 to execute the program block by block.
Start ModeBehavior in the single block operation modeEnvisioned case
0, 3Returns to the top of the program, and stops after executing the first line of the program.Reconfirmation of a specified program
1Executes the program from the top of the block currently being stopped, and stops at the end of the block.Confirmation of a spec-ified program
2Executes from the top of the next block, and stops at the end of the block.Confirmation for indi-vidual block.

Timing Chart

  • The Unit checks ON/OFF of the bit [Single Block Operation Mode] between blocks, i.e. timing after end of the current block execution and before start of the next block execution.
  • The same timing is used in Pass Mode. The program will be stopped at the end of the current block if the bit [Single Block Operation Mode] is ON before start of the next block execution. The program will not be stopped until the next block ends if execution of the next block has already started before the bit turns ON.

OMRON CJ1W-MCH71 - Timing Chart - 1

Effect on Other Tasks

Operation during Parallel Execution

Single Block Operation Mode is a function independent for each task, so there is no effect on other tasks.

If the bit [Single Block Operation Mode] is already ON before execution of parallel branching, each branch will be executed one block at a time. At the end (JWAIT command) of parallel execution, branches follow execution of the branch with the most blocks.

OMRON CJ1W-MCH71 - Operation during Parallel Execution - 1

Single Block Ignored (NSTOP Command)

When the bit [Single Block Operation Mode] is turned ON during execution of parallel branching, all the branches will be stopped at the ends of the blocks currently being executed. When each block currently being executed in all the branches is stopped, the bit [In Block Stop] will be turned ON.

The block with NSTOP command in the motion program will ignore the Single Block Operation Mode. The Single Block Operation Mode will be ignored even when the bit [Single Block Operating Mode] is turned ON during execution of the block with NSTOP command, and execution will stop before the block without NSTOP command.

OMRON CJ1W-MCH71 - Single Block Ignored (NSTOP Command) - 1

9-2-2 Machine Lock

Function

  • Machine Lock function prohibits the output of movement commands to the axes so that operation sequences other than axis operations can be debugged.
  • Though the output of movement commands to the axes is prohibited, calculations for the movement commands are executed and command position will be updated.
  • Machine Lock can be used not only for debugging of the motion programs, but also for debugging of the ladder program in the CPU Unit.
  • Signals to the output modules are output normally.

Operation

  • Machine Lock can be executed by turning ON/OFF the bit [Machine Lock] from the ladder program or the Support Tool.
  • When the Machine Lock status is cleared, the command position will be the one before the Machine Lock state.

Timing Chart

The bit [Axis Machine lock] will be checked on the timing when the bit [Axis Operating] is turned OFF, and the Machine Lock status will be changed accordingly.

OMRON CJ1W-MCH71 - Timing Chart - 1

The bit [Axis Machine Lock Status] is not changed (turned ON/OFF). Due to the same reason, while the bit [Axis Machine Lock Status] is 1 (ON), commands are output not as Speed or Torque command, but as Position command. (This is because the present position is not managed in the control modes other than position control mode.)

OMRON CJ1W-MCH71 - Timing Chart - 2

Effect

  • Machine Lock is a function independent for each axis, so there is no effect of other axes.
    When Machine Lock is executed on some of the axes (not on all the axes) during an operation involving several axes, the mechanical system may operate in an unexpected way.
  • In Machine Lock state, the origin search operation with DATUM command, Axis Control Bit: Origin Search will be the same as the operation of Axis Control Bit: Forced Origin. (This is to prevent the axis from moving endlessly. It is caused by the fact that the axis does not move at all in Machine Lock state and no external signal will be input.)

Operation during Parallel Execution

Regardless of parallel branching, Machine Lock status (set or reset) will be changed only in relation to the axis status.

Servo ON/OFF

Even in Machine Lock state, Servo ON of the concerned axis is required to move the axis.

Breakpoints

A breakpoint function is provided for MC Units with unit version 3.0 or later.

Function

  • When a motion program is executed, program execution will be stopped after the commands in the specified block number have been executed.
  • Breakpoints are set and cleared for block numbers using the Support Tool (CX-Motion-MCH version 2.0).
  • One breakpoint can be set for one motion task.

Operation

  • For details on setting and clearing breakpoints, refer to the Support Tool Operation Manual.

9-3 Coordinate System

9-3-1 Machine Coordinates and Workpiece Coordinates

There are two types of coordinate systems:

Machine coordinate system:

This is the coordinate system unique to the system that is determined by defining an origin.

  • Workpiece coordinate system:

This is the coordinate system unique to the work that is determined by adding an offset to the machine coordinate system. There are 3 of them for each axis. The offset of the workpiece coordinate system is determined by executing OFFPOS command, and executing WORK command enables the workpiece coordinate system.

OMRON CJ1W-MCH71 - 9-3-1 Machine Coordinates and Workpiece Coordinates - 1

Basic Item

  • The offset value (offset value set in OFFPOS command) is the data for each axis and motion programs or motion tasks do not influence it.
  • The coordinate system select (coordinate system type or number set in ORIGIN or WORK command) is the data for each motion program and axes or motion tasks do not influence it.

When starting New Program Operation

When a new main program operation is started (the first execution after the power is turned ON or execution in Start Mode = 0 or 3), the machine coordinate system will be always used. The offset value of the previously executed program will be used, however, the coordinate system select will not be inherited to the new program.

When calling a Subprogram

  • When a sub-program is called, the offset value and coordinate system select of the main program will be inherited to the sub-program.
  • When returning to the main program from the sub-program, the coordinate system select will be inherited.

When Parallel Branching

  • When executing parallel branching using PARALLEL command, the offset value and coordinate system select will be inherited to all the branches.
  • The offset value and coordinate system select changed in a branch will influence other branches.

When executing the END Command

The offset value and coordinate system select will not be initialized at the point when the program is ended by END command.

9-3-2 Limited Length Axis and Unlimited Length Axis

Either of the two types of coordinate management can be used, which can be selected in the parameter [P5AA07: Axis feed mode].

  • Limited length axis: Used for the axes with traveling limits such as XY tables.
  • Unlimited length axis: Enables to control axes that move endlessly in one direction (turntable or conveyor). For unlimited feed axes, the range for updating the present position can be set as desired.

Limited Length Axis

  • Upper limit of the limited axis = (P5AA04 × P5AA06 × LONGMAX)/(No. of encoder pulses × P5AA05)
  • Lower limit of the limited axis = -(P5AA04 × P5AA06 × LONGMAX) / (No. of encoder pulses × P5AA05)

No. of encoder pulses: If the type of encoder is 16-bit, it is 65536 pulses/r (= 10000 Hex).

P5AA04: Command unit/1 machine rotation

P5AA05: Gear ratio 1 (Motor rotation speed)

P5AA06: Gear ratio 2 (Machine rotation speed)

OMRON CJ1W-MCH71 - Limited Length Axis - 1
SL021A: No. of Multi-turns is a system variable that indicates the number of times of having exceeded the upper and lower limits of the Machine coordinate system. Unless SL021A: No. of Multi-turns is zero, the target position and the reached position will not match. Therefore, make sure to use the limited length axis within the range of the upper and lower limits.

Example:

Upper limit of the limited length axis = 100,000

Lower limit of the limited length axis = -100,000

SL0206: Machine coordinate system command position = -50,000

SL021A: No. of multi-turns = -1

When executing the following program with the setting above:

PROG P0001 Q00000001;

ABL MOVE [J01]50000;

END;

Travel distance = Target position - Present position = 50000 - (-50000) = 100,000

The present position and the number of multi-turns after the execution will be;

SL0206: Machine coordinate system command position = -50,000

SL021A: No. of Multi-turns = 0

The reached position is not equivalent to the target position (see the diagram below).

OMRON CJ1W-MCH71 - Limited Length Axis - 2

Unlimited Length Axis

  • Upper limit of the unlimited length axis = P5AA04 - 1
  • Lower limit of the unlimited length axis = 0

P5AA04: Command unit/1 machine rotation

With the unlimited length axis, even when SL021A: No. of multi-turns is not zero, the target position and reached position will match.

OMRON CJ1W-MCH71 - Unlimited Length Axis - 1

9-3-3 Software Limit

This is a function to provide software limit value on the coordinate system to prevent the machine from moving outside of the specified operating range. Normally, the limit value is set before the hardware limit sensor.

  • Timing to detect the limit is only during axis movement (command output). It is not checked before operations.
  • Before exceeding the limits, the following alarms will occur to stop the axis:

3005h: Positive direction software limit
- 3006h: Negative direction software limit

  • The software limit function is not applicable for the unlimited length axis and the axis without an origin.

Related System Parameters

No.NameRangeUnitDescription
P3AA02Positive direction software limit-2147483648~2147483647Command unitLimit value of the positive direction software limit
P3AA03Negative direction software limit-2147483648-2147483647Command unitLimit value of the negative direction software limit
P3AA04Software limit enabled/ disabled0: Both + and - software limits disabled1: Only + software limit enabled2: Only – software limit enabled3: Both + and – software limits enabled.---Software limit enable/disable

Software Limit Range

SpecificationOperation (Shaded area is the operating range.)
P3AA04 = 0The entire area is the operating range.
P3AA03P3AA02
P3AA04 = 1Lower than [P3AA02: + direction software limit] is the operating range.
P3AA03P3AA02
P3AA04 = 2Higher than [P3AA03: – direction software limit] is the operating range.P3AA03P3AA02
P3AA04 = 3P3AA03 < P3AA02The area between [P3AA03] and [P3AA02] is the operating range.P3AA03P3AA02
P3AA04 = 3P3AA03 = P3AA02The entire area is the operating range.P3AA02 = P3AA03
P3AA04 = 3P3AA03 > P3AA02The entire area is the operating range.P3AA02P3AA03

Note Meaning of arrows.

: The alarm [3005h: Positive direction software limit] occurs.
: The alarm [3006h: Negative direction software limit] occurs.

9-3-4 Absolute Value Detection Function

Relation Between Coordinate System and Absolute Value Detection Function

Using as Limited Length Axis

  • The absolute encoder stores the multi-turn data in the internal battery backup memory. Therefore, the origin on the coordinate system can be defined without executing an origin search after the power is turned ON.
  • In the MC Unit, when the bit [ABS Origin Setting] is turned ON, the relations between the absolute data read from the absolute encoder when communications were established and the coordinate system managed in the Unit will be saved in the Flash memory.
  • When using an axis as the limited length axis, make sure to operate the axis within the range where the multi-turn data is not reset.
  • When the servo parameter [Pn205: Multi-turn limit setting] is 65535 (default setting), the multi-turn data will change as shown below:

OMRON CJ1W-MCH71 - 9-3-4 Absolute Value Detection Function - 1

  • There will be no problem if the axis is used within the range where the multi-turn data is between -32768 to 32767. However, if the power is turned OFF once, and ON again when the axis is outside of the range, the present position cannot be read correctly. No alarm will occur.

  • If origin setting is executed near the limit of the multi-turn data, a slight movement will make the axis exceed the limit. Therefore, always initialize the multi-turn data of the encoder before executing origin setting.

  • The operation that the axis is used within the ranges where the multi-turn data is reset or not reset is shown below:

OMRON CJ1W-MCH71 - 9-3-4 Absolute Value Detection Function - 2

Using as Unlimited Length Axis

Same as the case of limited length axis, to execute the axis operation within the range where the multi-turn data is not reset, use the same setting as the one for the limited length axis. However, to execute the axis operation exceeding the limit of the multi-turn data, it is required to match the reset timing of the coordinate system managed in the MC Unit and the reset timing of the encoder's multi-turn data. To match the timings appropriately, adjust the setting value of the parameter [Pn205: Multi-turn limit setting]. In the case where the load shaft makes n rotations while the motor makes m rotations, set the value obtained by subtracting 1 from the denominator of deceleration ratio (m-1) in Servo Driver parameter Pn205.

Also set the following MC Unit parameters:

P5AA06: n

P5AA05: m

Motor parameter 900C: m-1

If the value other than 65535 is set in the servo parameter [Pn205: Multi-turn limit setting], the multi-turn data will change as shown below:

OMRON CJ1W-MCH71 - Using as Unlimited Length Axis - 1

When Multi-turn Limit Setting Is Adjusted
OMRON CJ1W-MCH71 - Using as Unlimited Length Axis - 2
The same present value can be obtained from the same multi-turn data.

Note that, however, there is no guarantee on the value of the number of multi-turns (SL021A: Number of multi-turns) on the machine coordinate system.

When Multi-turn Limit Setting is not Adjusted
OMRON CJ1W-MCH71 - Using as Unlimited Length Axis - 3
The same present value cannot be obtained from the same multi-turn data.

Similar to the case above, the correct present value cannot be obtained when the reset cycle of the multi-turn data is shorter than the cycle of the machine coordinates system.

When Multi-turn Reset Cycle is Shorter than Machine Coordinate System Cycle
OMRON CJ1W-MCH71 - Using as Unlimited Length Axis - 4
The same present value cannot be obtained from the same multi-turn data.

9-4 Backup and Restore Function

When replacing the Unit, etc., all the data in the MC Unit can be saved in the memory card of the CPU Unit at once. The saved settings can be set in another MC Unit using the memory card easily. For details, refer to the applicable CPU Unit operation manual.

  • Backup: Flash memory of MC Unit Memory Card of CPU
  • Restore: Memory Card of CPU Flash memory of MC Unit (After restore, the power has to be turned OFF once and ON again, or the Unit has to be reset.)
  • Verify: Memory Card of CPU Flash memory in MC Unit (Verify is executed by the CPU Unit, and thus it functions as the backup for the MC Unit.
  • The Memory Card capacity required to back up the data from one MC Unit is 4 MB max.

If data from the CPU Unit is also to be backed up, we recommend Memory Cards with even larger capacities.

Applicable Data

DataRemark
Unit model, Version info
Motion programsIncluding text and analysis, internal management data
CAM dataIncluding internal management data
System parameters
Servo parametersIncluding servo reading parameters
Position data
ABS origin position data
Origin compensation value (Unit Ver. 3.1 and later)The origin compensation value when an absolute encoder is being used can be backed up by using the IOWR/IORD instructions in the CPU Unit. For unit versions 3.1 and later it can be backed up using the Support Software.

OMRON CJ1W-MCH71 - 9-4 Backup and Restore Function - 1

9-4-1 Procedures for Backup and Restore

OMRON CJ1W-MCH71 - 9-4-1 Procedures for Backup and Restore - 1
Press the eject button to remove the Memory Card from the CPU Unit.

Backup Method

1,2,3... 1. Insert the memory card and switch ON. (MCPWR LED on the CPU Unit front panel is lit.)
2. Turn ON the DIP switch SW7 on the front panel.
3. Press down the memory card power-dispatch stop button at least for 3 seconds.

BUSY-LED is lit and writing to the memory card starts.

(During the execution, the auxiliary bit [A34313: File Memory Operation Flag] is turned ON.)

  1. Backup will be completed when MCPWR/BUSY-LED is turned OFF. (Backup execution time is about 7 to 8 minutes.)

Restore Method

1,2,3... 1. Turn ON the DIP switch SW7 on the CPU Unit front panel.

  1. Insert the memory card and switch ON. MCPWR/BUSY-LED on the CPU Unit front panel is lit and reading from the memory card starts. (During the execution, none of the LED indicators on the MC Unit is lit.)
  2. The execution will be completed when MCPWR/BUSY-LED is turned OFF. (The restore execution time is about 4 to 5 minutes.)
  3. After completion, switch OFF the CPU Unit once. Then, turn OFF the DIP switch SW7. Finally, switch ON the CPU Unit again. (The MC Unit will not start without this operation.)

Note For details, refer to 5-2-6 Simple Backup Function in SYSMAC CS/CJ Series Programmable Controllers Programming Manual (W394).

9-5 Servo Driver Status Output

The Servo Driver status output function is supported by MC Units with unit version 3.0 or later.

Status Output Function

The codes that are generated together with the main circuit ON/OFF and other Servo Driver statuses that occur for each axis when a Servo Driver warning/alarm occurs are collected and continuously set in the output variables.

Allocating this output variable area in the CPU Unit and general-purpose I/O area makes simultaneous monitoring of multiple axes easy.

Status Output Methods

The statuses for the Servo Driver are output each Unit Cycle in variables OW0210 to OW026F as shown in the following table.

AddressNameDetails
OW0210Axis 1 Warning code/ alarm codeIf an alarm or warning occurs in the MECHATROLINK-II slave, the alarm/warning code is stored. This code is set to 0 when the axis alarm reset bit for each axis is turned ON.
OW0211Axis 1 Status (1)The same value as Servo status SW021C is stored. The value is refreshed every Unit Cycle.
OW0212Axis 1 Status (2)The same value as Servo status SW021D is stored. The value is refreshed every Unit Cycle.
toto---
OW026DAxis 32 Warning code/ alarm codeIf an alarm or warning occurs in the MECHATROLINK-II slave, the alarm/warning code is stored. This code is set to 0 when the axis alarm reset bit for each axis is turned ON.
OW026EAxis 32 Status (1)The same value as Servo status SW021C is stored. The value is refreshed every Unit Cycle.
OW026FAxis 32 Status (2)The same value as Servo status SW021D is stored. The value is refreshed every Unit Cycle.

9-6 Data Tracing

Data Tracing Operations

Data tracing is supported for MC Units with unit version 3.0 or later.

The following table lists the data trace operations that are supported for MC Units.

ItemDescription
Number of trace groups2
Number of trace data itemsFrom 1 to 16 items can be simultaneously collected per group.A maximum total of 32 items can be simultaneously collected for two groups combined.Note Bit information (e.g., JOG bit s) or monitoring information (e.g., present positions) is counted as one item.
Number of trace pointsFrom 2,048 (for 1 trace data item) to 32,768 trace points (for 16 trace data items) can be collected per group.
Trace execution scanThe specified data is collected each Unit cycle.If the Unit cycle is 1 ms, data can be collected for a maximum of 32,768 ms.
Trace data formatBits, words, double words, and real numbers
Trace startThe trace start condition can be set using the Support Tool.
Trigger conditionThe trigger condition can be set as a single condition or as two conditions with a logical AND.Data: = ≠ < > ≤ ≥Bit: ON, OFF, leading edge, trailing edge
Pre-triggerData prior to the trigger condition can be traced.
Saving trace conditionsThe conditions to be traced can be saved in flash memory.

Details of Operations

For details on operation methods, refer to the CX-Motion-MCH Support Tool Operation Manual.

9-7 Zones

Overview

Zones are supported for MC Units with unit version 3.0 or later.

A zone bit turns ON when a specified variable is within the set range, and turns OFF when the variable is outside of the range.

A maximum of 32 zone bits can be set.

Using Zones

Perform the following operations to use zones.

  • Set the following system parameters:
    (1) Set the number of zone bits to be used.
    (2) Set the leading address of the area where the zone upper and lower limits are to be set.
    (3) Set the variable types and addresses of the variables that are to be monitored.
    (4) Set the output variable addresses and bit numbers for where the monitoring results (ON/OFF) are to be output.
  • Set the zone upper and lower limits from the motion program or the CPU Unit.
  • Enable or disable the zone bits from the motion program or the CPU Unit.

Setting System Parameters

As shown in the following diagram, set the two Unit parameters and the two zone parameters for each axis.

OMRON CJ1W-MCH71 - Setting System Parameters - 1

Setting Upper and Lower Limits for Zone Bits

Set the upper and lower limits for each zone bit from the address specified in P00012.

To make the setting from a motion program, substitute the upper and lower limits for this address.

If the position data area is specified in P00012, the setting can also be made using the Support Tool. In this case, the zone bit upper and lower limits can be saved in flash memory.

To make the setting from the CPU Unit, allocate this area as a general-purpose I/O area or use the IOWR instruction.

Enabling and Disabling Zone Bits

Each zone bit can be enabled or disabled by turning ON or OFF the applicable bits for the following variables.

AddressNameContents
IW0304Zone enable bits (No. 1 to 16)Enables or disables zone bits No. 1 to 16. No. 1 corresponds to bit 0, and No. 16 corresponds to bit 15. 0: Disable (Do not use) 1: Enable (Use)
IW0305Zone enable bits (No. 17 to 32)Enables or disables zone bits No. 17 to 32. No. 17 corresponds to bit 0, and No. 32 corresponds to bit 15. 0: Disable (Do not use) 1: Enable (Use)

The following output variables can be used to check whether a zone bit is enabled or disabled.

AddressNameContents
OW0304Zone monitoring status bits (No. 1 to 16)Used to output the enabled/disabled status of zone bits No. 1 to 16. No. 1 corresponds to bit 0, and No. 16 corresponds to bit 15. 0: The setting for the zone upper and lower limits is incorrect, or the zone enable bit is OFF (disabled). 1: The setting for the zone upper and lower limits is correct and the zone enable bit is ON (enabled).
OW0305Zone monitoring status bits (No. 17 to 32)Used to output the enabled/disabled status of zone bits No. 17 to 32. No. 17 corresponds to bit 0, and No. 32 corresponds to bit 15. 0: The setting for the zone upper and lower limits is incorrect, or the zone enable bit is OFF (disabled). 1: The setting for the zone upper and lower limits is correct and the zone enable bit is ON (enabled).

SECTION 10

Program Example

The section provides a programming example to demonstrate how the CJ1W-MCH71 and CS1W-MCH71 Motion Control Units can be used.

10-1 Program Example 574

10-1-1 Positioning with PTP Control 574

10-1-2 Positioning with Linear Interpolation 575

10-1-3 Positioning with Linear and Circular Interpolation. 576

10-1-4 Positioning with Position Data 577

10-1-5 Positioning with Workpiece Coordinate System with Subprograms 578

10-1-6 Positioning with Changing Interpolation Acceleration Time Parameter 580

10-1-7 Positioning with Position Data Calculation 581

10-1-8 Stopping a Program with General Input 583

10-1-9 Stopping Operation with Optional End Using General Input and Assigning Position Data 583

10-1-10 Positioning of Turntable 584

10-1-11 Feeder Feeding 586

10-1-12 Starting Peripherals during Axis Movement. 587

10-1-13 High-speed Positioning 588

10-1-14 Interrupt Feeding (MOVEI) 589

10-1-15 Time-specified Positioning (MOVET) 590

10-1-16 Regular Winding to Rough Winding (MOVETRAV) 591

10-1-17 Electronic Cam, Single Axis (CAM) 592

10-1-18 Link Operation (MOVELINK) 594

10-1-19 Electronic Cam, Synchronous (CAMBOX) 595

10-1-20 Electronic Shaft (CONNECT) 596

10-1-21 Trailing Synchronization/Synchronization Cancel (SYNC/SYNCR) 597

10-1-22 Travel Distance Superimpose/Travel Distance Superimpose Cancel (ADDAX/ADDAXR) 598

10-1-23 Speed Control/Speed Control Cancel (SPEED/SPEEDR) 600

10-1-24 Torque Control/Torque Control Cancel (TORQUE/TORQUER) 601

10-1-25 Target Position Change (MOVEMODI) 602

10-1-26 Present Position Latch (LATCH) 603

10-1-27 Single Block Ignored (NSTOP) 604

10-1-28 Parallel Execution (PARALLEL, JOINT, JWAIT) 605

10-1-29 Selective Execution (SWITCH, CASE, BREAK, SEND) 606

10-2 Slave Modules 607

10-2-1 Using 64-Point I/O Module. 607

10-2-2 Using Counter Module 608

10-2-3 Using Pulse Output Module 612

10-3 Others. 619

10-1 Program Example

This section shows several motion programs for different typical application.

10-1-1 Positioning with PTP Control

Explanation of the operation·Positioning to the 3 points below is executed with PTP control, and the axes returns to the origin ([J01]0, [J02]0). ·When positioning is completed, 1 will be output to CPU unit using the general I/O area.
1,2,3...1. [J01]10000, [J02]50000 1 is output to the general output (0BA0). ↓
2. [J01]50000, [J02]75000 ↓
3. [J01]100000, [J02]100000 1 is output to the general output (0BA1). ↓
4. [J01]0, [J02]0
ProgramThe numbers 01) to 15) are used only for the sake of explanation. They are not needed in programming.
01) PROG P001 Q00000003;
02) MOVE [J01]10000 [J02]50000;
03) NOPS;
04) #OW0BA0 = 1;
05) WAIT #IW0B00 = = 1;
06) #OW0BA0 = 0;
07) MOVE [J01]50000 [J02]75000;
08) DWELL T300;
09) MOVE [J01]100000 [J02]100000;
10) NOPS;
11) #OW0BA1 = 1;
12) MOVE [J01]0 [J02]0;
13) NOPS;
14) #OW0BA1 = 0;
15) END;
Explanation of the program01) A program No. and axes to be used are specified.
02) Positioning to [J01]10000, [J02]50000 with PTP control is performed.
03) NOPS command will hold the program advance till positioning 02) is completed (within in-position range).
04) Once positioning is completed, 1 will be output to the general output (OW0BA0).
05) The program advance will be held till the general input (IW0B00) becomes 1.
06) The program will advance to the next block after the general output from 04) is cleared.
07) Positioning to [J01]50000, [J02]75000 with PTP control is performed.
08) The program waits for 3 seconds.
09) Positioning to [J01]100000, [J02]100000 with PTP control is performed.
10) to 14) 1 will be output to the general output (OW0BA1) after positioning is completed and the axes will return to the origin. Once they reach the origin, the general output (OW0BA1) will be reset.

15) The program is completed.

10-1-2 Positioning with Linear Interpolation

Explanation of the operation

  • At the rise of the general input (IW0B00), positioning with linear interpolation is performed from the present position to the position [J01]10000, [J02]50000.
  • The positioning will be repeated up to 10 times till the content of the general input (IW0B01) becomes 1.

OMRON CJ1W-MCH71 - Explanation of the operation - 1

Program

Explanation of the program

01) A program No. and axes to be used are specified.
02) With FOR (Repeat) command, the process through 02) to 07) is repeated 10 times.
03) When the general input (IW0B00) is not 1, the program executes the axis operation. When it is 1, the program advances to the next block without any axis operation.
04) The program will wait until the general input (IW0B01) becomes 1.
05) Positioning with linear interpolation is performed from the present position to the position [J01]10000, [J02]50000.
06) This is the end of IF command from 03).
07) This is the end of FOR command from 02).
08) The program is completed.

10-1-3 Positioning with Linear and Circular Interpolation

Explanation of the operation

Positioning with the path shown below is performed combining linear and circular interpolation.

OMRON CJ1W-MCH71 - Explanation of the operation - 1

Program

01) PROG P003 Q00000003;
02) PASSMODE;
03) MOVEL [J01]20000 [J02]10000 F300000;
04) MOVEC Q-1 [J01]30000 [J02]20000 R10000;
05) MOVEL [J02]30000;
06) MOVEC Q1 [J01]40000 [J02]40000 I0 J10000;
07) END;

Explanation of the program

01) A program No. and axes to be used are specified.
02) Pass Mode is selected.
03) The axes move to the position [J01]20000, [J02]10000 with linear interpolation.
04) The axes move in CCW direction to the position [J01]30000, [J02]20000 with circular interpolation of radius "10000". (Since a positive value is specified for radius, the center angle is smaller than 180 degrees (a quarter of the circle).)
05) The axes move to the position [J01]30000, [J02]30000 with linear interpolation.
06) The axes move in CW direction to the position [J01]40000, [J02]40000 with circular interpolation having the position [J01]30000, [J02]40000 as its center.
07) The program is completed.

10-1-4 Positioning with Position Data

Explanation of the operation

Positioning is performed using indirectly specified position data.

OMRON CJ1W-MCH71 - Explanation of the operation - 1

Program

Explanation of the program

01) A program No. and axes to be used are specified.
02) Stop Mode is selected.
03) The task variable for counting (ML0000) is reset.
04) The position data (PL0102) is set to 0. (The first position data read with indirect specification)
05) The position data (PL0103) is set to 1. (The first position data read with indirect specification)
06) The process through 06) to 13) is repeated 3 times.
07) The position data (PL0102) is assigned to the position data (PL0100).
08) The position data (PL0103) is assigned to the position data (PL0101).
09) When the general input (IW0B00) is not 0, the program advances to the next block without any axis operation.
10) Positioning with linear interpolation is performed reading the position data with indirect specification.
11) This is the end of IF command from 09).
12) The content of the position data (PL0102) is updated.
13) The content of the position data (PL0103) is updated.

14) This is the end of FOR command from 06).
15) The program is completed.

10-1-5 Positioning with Workpiece Coordinate System with Subprograms

Explanation of the operation

Changing coordinate systems and using subprograms, the same operation is executed repeatedly in different positions on the machine coordinate system.

OMRON CJ1W-MCH71 - Explanation of the operation - 1

Program

Main program

01) PROG P005 Q00000003;
02) OFFPOS C1 [J01]5000 [J02]5000;
03) OFFPOS C2 [J01]15000 [J02]5000;
04) OFFPOS C3 [J01]5000 [J02]15000;
05) MOVEL [J01]0 [J02]0 F300000;
06) WORK C1;
07) GOSUB P500;
08) ORIGIN;
09) MOVEL [J01]0 [J02]0 F500000;
10) NOPS;
11) #OW0BA0 = 1;
12) WAIT #IW0B00 = = 1;
13) #OW0BA0 = 0;
14) WORK C2;
15) GOSUB P500;
16) ORIGIN;
17) MOVEL [J01]0 [J02]0 F500000;
18) NOPS;
19) #OW0BA0 = 1;
20)WAIT #IW0B00 = = 1;
21) #OW0BA0 = 0;

Explanation of the program

01) A program No. and axes to be used are specified.
02) to 04) Offset values for workpiece coordinate systems C1 to C3 are changed.
05) The axes move from the present position to the origin on the machine coordinate system.
06) The coordinate system is switched from the machine coordinate to the workpiece coordinate C1.
07) The subprogram (P0500) is called and executed.
08) The coordinate system is switched back to the machine coordinate.
09) The axes return to the origin on the machine coordinate system.
10) to 13) After return to the origin, 1 is output to the general output (OW0BA0) and the program will wait until the general input (IW0B00) becomes 1. Once the general input (IW0B00) becomes 1, the general output (OW0BA0) will be reset, and the program will advance to the next block.
14) The coordinate system is switched from the machine coordinate to the workpiece coordinate C2.
15) The subprogram (P0500) is called and executed.
16) The coordinate system is switched back to the machine coordinate.
17) The axes return to the origin on the machine coordinate system.
18) to 21) After return to the origin, 1 is output to the general output (OW0BA0) and the program will wait until the general input (IW0B00) becomes 1. Once the general input (IW0B00) becomes 1, the general output (OW0BA0) will be reset, and the program will advance to the next block.
22) The coordinate system is switched from the machine coordinate to the workpiece coordinate C3.
23) The subprogram (P0500) is called and executed.
24) The coordinate system is switched back to the machine coordinate.
25) The axes return to the origin on the machine coordinate system.
26) The program is completed.

Subprogram

01) A subprogram No. and axes to be used are specified.
02) The axes move from the present position to the position [J01]0, [J02]0.
03) The axes move to the position [J01]1000, [J02]1000.
04) The axis moves to the position [J01]2000.
05) The axis moves to the position [J02]2000.
06) The axis moves to the position [J01]1000.
07) The axis moves to the position [J02]1000.
08) The axes move to the position [J01]0, [J02]0.
09) The subprogram is completed and the main program is resumed.

10-1-6 Positioning with Changing Interpolation Acceleration Time Parameter

Explanation of the operationPositioning with linear interpolation is performed while changing the interpolation acceleration time parameter.
Program01) PROG P006 Q00000003;02) PARAM P00102 = 1000;03) MOVEL [J01]10000 [J02]5000 F500000;04) MOVEL [J01]20000 [J02]-10000;05) NOPS;06) #OW0BA0 = 1;07) WAIT #IW0B00 = = 1;08) #OW0BA0 = 0;09) PARAM P00102 = 100;10) MOVEL [J01]30000 [J02]10000;11) MOVEL [J01]40000 [J02]20000;12) MOVEL [J01]0 [J02]0;13) END;
Explanation of the program01) A program No. and axes to be used are specified.02) The parameter [P00102: Interpolation feed acceleration time] is changed to 1000 ms.03) The axes move with linear interpolation and acceleration time of 1000 ms to the position [J01]10000, [J02]5000.04) The axes move with linear interpolation and acceleration time of 1000 ms to the position [J01]20000, [J02] - 10000.05) to 06) Once positioning is completed, 1 is output to the general output (OW0BA0).07) to 08) Once the general input (IW0B00) becomes 1, the general output (0BA0) is reset.09) The parameter [P00102: Interpolation feed acceleration time] is changed to 100 ms.10) The axes move with linear interpolation and acceleration time of 100 ms to the position [J01]30000, [J02]10000.11) The axes move with linear interpolation and acceleration time of 100 ms to the position [J01]40000, [J02]20000.12) The axes move with linear interpolation and acceleration time of 100 ms to the position [J01]0, [J02]0.13) The program is completed.

10-1-7 Positioning with Position Data Calculation

Explanation of the operation

  • After positioning based on the initial values of position data was performed, positioning is repeated 10 times adding 1000 to the position data of [J01] each time. After that, positioning is repeated 5 times adding 5000 to the position data of [J02] each time.
  • This positioning operation should look as shown below.

OMRON CJ1W-MCH71 - Explanation of the operation - 1

Program

Main program

Explanation of the program

Main program

01) A program No. and axes to be used are specified.
02) Stop Mode is selected.
03) The task variable for counting (DL0000) is reset. (For [J02])
04) The first travel distance of [J02] is entered into the position data (PL0011).
05) With FOR command, the process through 05) to 09) is repeated 5 times.
06) The first travel distance of [J01] is entered into the position data (PL0010).
07) The subprogram (P0501) is called and executed.
08) 5000 is added to the position data (PL0011) of [J02].
09) This is the end of FOR command from 05).
10) The program is completed.

Subprogram 01) A program No. and axes to be used are specified. 02) The task variable for counting (DL0002) is reset. (For [J01]) 03) With FOR command, the process through 03) to 07) is repeated 10 times. 04) The axes [J01] and [J02] move based on the values in the position data (PL0010) and (PL0011) respectively. 05) The axes return to the origin. 06) 1000 is added to the position data (PL0010) of [J01]. 07) This is the end of FOR command from 03) 08) The subprogram is completed and the main program is resumed. In the program above, the operations of [J01] and [J02] are repeated using the main and subprograms, however, the same operation can be executed with only one program. See the following program.
Program 201) PROG P008 Q00000003; 02) STOPMODE; 03) #DW0000 = 0; 04) #PL0011 = 10000; 05) WHILE #DW0000 < 5; 06) #DL0002 = 0; 07) #PL0010 = 1000; 08) FOR W#DL0002 L10 S1; 09) MOVEL [J01]#PL0010 [J02]#PL0011 F300000; 10) MOVEL [J01]0 [J02]0; 11) #PL0010 = #PL0010 + 1000; 12) NEXT; 13) #DW0000 = #DW0000 + 1; 14) #PL0011 = #PL0011 + 5000; 15) WEND; 16) END;
Explanation of the program 201) A program No. and axes to be used are specified. 02) Stop Mode is selected. 03) The task variable for counting (DW0000) is reset. (For [J02]) 04) The first travel distance of [J02] is entered into the position data (PL0011). 05) With WHILE command, the process through 05) to 15) is repeated until the conditional expression is satisfied (repeated 5 times). 06) The task variable for counting (DL0002) is reset. (For [J01]) 07) The first travel distance of [J01] is entered into the position data (PL0010). 08) With FOR command, the process through 08) to 12) is repeated 10 times. 09) The axes [J01] and [J02] move based on the values in the position data (PL0010) and (PL0011) respectively. 10) The axes return to the origin. 11) 1000 is added to the position data (PL0010) of [J01]. 12) This is the end of FOR command from 08). 13) 1 is added to the task variable for counting (DW0000) of [J02]. 14) 5000 is added to the position data (PL0011) of [J02]. 15) This is the end of WHILE command from 05). 16) The program is completed.

10-1-8 Stopping a Program with General Input

Explanation of the operation

  • The program advance is held while the general input is ON.
  • The axis keeps going back and forth between positions 0 and 20000 until IW0B00 becomes 1.

OMRON CJ1W-MCH71 - Explanation of the operation - 1

Program

Explanation of the program

01) A program No. and axes to be used are specified.
02) Stop Mode is selected.
03) The general input (IW0B00) is set to 0.
04) With WHILE command, the process through 04) to 08) is repeated when the general input (IW0B00) is not 1.
05) The program waits until the general input (IW0B01) becomes 1.
06) Positioning with linear interpolation is performed to the position [J01]20000.
07) The axis returns to the origin.
08) This is the end of WHILE command from 04).
09) The program is completed.

10-1-9 Stopping Operation with Optional End Using General Input and Assigning Position Data

Explanation of the operation

  • Positioning of [J01] to the position 50000 is performed. (A position exceeding the target position)
  • Once the axis reaches the target position, the operation will be stopped with optional end after deceleration.
  • After the stopping position is assigned to the position data, the axis returns to the origin. After that, positioning is performed based on the assigned position data.
  • This program is useful for applications such as the following: There is no original target position for positioning. A target position is decided using the external input. After a target position is decided, positioning to the target position is performed.

OMRON CJ1W-MCH71 - Explanation of the operation - 1

Program

Explanation of the program

01) A program No. and axes to be used are specified.
02) Stop Mode is selected.
03) The first travel distance (50000) is entered into the position data. (A position exceeding the target position)
04) The general input (IW0B00) is set to 0.
05) With STOPOP command, when the general input (IW0B01) becomes 1, the next block will be interrupted midway and ended.
06) Positioning of [J01] with linear interpolation to the position specified by the position data (PL0010) is performed.
07) The program waits for completion of the axis movement.
08) The stopping position is assigned to the position data (PL0010).
09) With WHILE command, the process through 09) to 12) is repeated when the general input (IW0B00) is not 1.
10) Positioning is performed based on the value in the position data (PL0010).
11) The axis returns to the origin.
12) This is the end of WHILE command from 09).
13) The program is completed.

10-1-10 Positioning of Turntable

Explanation of the operation

  • Positioning of a turntable is performed using the unlimited length axis function and various arithmetic operations.
  • In positioning to the target position, the travel direction is determined for shorter distance.

  • The target position is to be specified within the range of 0 to 360 degrees. Passing the position of 360 (0) degrees clears the present position to 0.

1,2,3...

  1. Enter a target position into the position data using IOWR instruction.
  2. Execute positioning by turning ON the general input for positioning.
  3. 1 is output to the general output once positioning is completed.
  4. 0 is output to the general output when the general input for positioning is turned OFF.
  5. The process through 1 to 4 is repeated until the general input for repeat is turned ON.

OMRON CJ1W-MCH71 - 1,2,3... - 1

Program

Main program

Explanation of the program

Main program

01) A program No. and axes to be used are specified.
02) With WHILE command, the process through 02) to 23) is repeated until the general input (IW0B00) becomes 1.
03) With WAIT command, the program advance will be held until the general input (IW0B01) becomes 1.
04) The present position is written to the position data (PL0020).
05) The travel distance is calculated with the target position (PL0000) and the present position (PL0020), and the result will be entered into the position data (PL0022).
06) The subprogram (P502) is called and executed.
07) to 17) The rotation direction and the travel distance are calculated and entered into the position data (PL0002).
18) Positioning is performed based on the calculated position data.
19) The program advance will be held until positioning is completed.
20) 1 is output to the general output (OW0BA0).
21) The program advance will be held until the general input (IW0B01) becomes 0.
22) 0 is output to the general output (OW0BA0).
23) This is the end of WHILE command from 02).
24) The program is completed.

Subprogram

01) A program No. and axes to be used are specified.
02) to 04) When data exceeding 360 degrees is entered into the position data by mistake, the target position is corrected to the value within the range 0 to 360 degrees and the main program is resumed. (When an appropriate target position is entered in the position data, the subprogram does not do anything and the main program is resumed.)
05) The program is completed and the main program is resumed.

10-1-11 Feeder Feeding

Explanation of the operation

  • Sets the workpiece coordinate system to 0 when started from the CPU Unit.
  • The workpiece length is set to 1000.

Note Set the following axis parameters before using feeder feeding. These settings enable axes to continue infinite feeding in a set direction.

  • Set the axis feed mode to an infinite axis (P5AA07 = 00000010 Hex)
  • Set the reference unit per machine rotation in P5AA04 to a value that is N times the actual length of the workpiece. Use a value less than N times the actual length of the workpiece as the reference position. In the sample program, P5AA04 is set to 100,000, which is 100 × the workpiece length (1,000).
  • Set P5AA05 to N times the actual value to when setting a motor gear ratio. In the sample program, P5AA05 is set to 100 times the actual gear ratio.
Program01) PROG P011 Q00000001;
02) WORK C1;
03) OFFPOS C1 [J01]#SL0206;
04) INC MOVE [J01]1000;
05) NOPS;
06) END;
Explanation of the program01) The program number and axes to be used are specified.
02) The workpiece coordinate system (C1) is enabled.
03) The workpiece coordinate system (C1) offset is changed to the machine coordinate system present position (SL0206) (i.e., the workpiece coordinate system is preset).
04) Positioning with PTP control is performed from the present position to the position [J01] 1000.
05) Stepping is stopped until the positioning in step 04 is completed.
06) The program is completed.

10-1-12 Starting Peripherals during Axis Movement

Explanation of the program

  • During axis movement, peripherals can be started at specified positions without stopping the axes.
  • This program enables the control of peripherals without stopping the axes; therefore, high-speed synchronous application can be realized.
  • This example shows the operation to start peripherals 1, 2, and 3 accordingly when the present position of [J01] reaches 2500, 5000, and 7500 during linear interpolation with 2 axes.

OMRON CJ1W-MCH71 - Explanation of the program - 1

Program

01) PROG P013 Q00000003;
02) MOVEL [J01]0 [J02]0 F300000;
03) #OW0BA0 = 0;
04) #OW0BA1 = 0;
05) #OW0BA2 = 0;
06)WAIT #IW0B00 = = 1;
07) MOVEL [J01]10000 [J02]10000;
08) WAIT #SL0206 > = 2500
09) #OW0BA0 = 1;
10) WAIT #SL0206 > = 5000
11) #OW0BA1 = 1;
12) WAIT #SL0206 > = 7500
13) #OW0BA2 = 1;
14) END;

Explanation of the program01) A program No. and axes to be used are specified. 02) The axes return to the origin. 03) to 05) The general outputs (OW0BA0 to OW0BA2) are reset to 0. 06) The program will wait until the general input (IW0B00) becomes 1. 07) Positioning with linear interpolation is performed to the position [J01]10000, [J02]10000. 08) to 09) When [J01] reaches 2500, 1 will be output to the general output (OW0BA0). 10) to 11) When [J01] reaches 5000, 1 will be output to the general output (OW0BA1). 12) to 13) When [J01] reaches 7500, 1 will be output to the general output (OW0BA2). 14) The program is completed.
10-1-13 High-speed Positioning
Explanation of the operation·The CPU Unit reads the present position of a work from a visual sensor and writes the compensated value into the MC Unit after calculation. After receiving the value, the MC Unit performs positioning to the position corresponding to the value. ·The CPU Unit transmits 2 of position data to the MC Unit using IOWR instruction and starts the MC Unit immediately. ·In this case, the data transfer to the MC Unit and the command for positioning can be executed within 1 scan.
Program01) PROG P014 Q00000003; 02) WHILE #IW0B00 <> 1; 03) MOVEL [J01]0 [J02]0 F300000; 04) NOPS; 05) #OW0BA0 = 1; 06) WAIT #IW0B01 = = 1; 07) #OW0BA0 = 0; 08) MOVEL [J01]#PL0000 [J02]#PL0001; 09) NOPS; 10) #OW0BA1 = 1; 11) WAIT #IW0B02 = = 1; 12) #OW0BA1 = 0; 13) WEND; 14) END;
Explanation of the program01) A program No. and axes to be used are specified. 02) With WHILE command, the process through 02) to 13) is repeated when the general input (IW0B00) is not 1. 03) The axes return to the origin. 04) to 05) After completion of positioning in 03), 1 is output to the general output (OW0BA0). 06) The program advance will be held until the general input (IW0B01) becomes 1. 07) The general output (OW0BA0) is cleared to 0. 08) The axes move to the position read from the CPU Unit using IOWR instruction. 09) to 10) After completion of positioning in 08), 1 is output to the general output (OW0BA1).

11) The program advance will be held until the general input (IW0B02) becomes 1.
12) The general output (OW0BA1) is cleared to 0.
13) This is the end of WHILE command from 02).
14) The program is completed.

10-1-14 Interrupt Feeding (MOVEI)

Explanation of the operation

Positioning of [J01] to 100000 is performed. (A position exceeding the target position)

Turning ON an external input stops the axis with interrupt feeding.

When positioning of [J01] is completed, other axes start operating. When other axes complete their operations, [J01] returns to the origin and 1 is output to the general output.

When no external input is turned ON, [J01] returns to the origin without operation of other axes.

OMRON CJ1W-MCH71 - Explanation of the operation - 1

Program

Explanation of the program

01) A program No. and axes to be used are specified.
02) Stop Mode is selected.
03) The first travel distance (50000) is entered into the position data. (A position exceeding the target position)
04) The program will wait until the system variable (SW022A) becomes 1. (Latch being requested)
05) The program will wait for completion of positioning.

06) When the system variable (SW022A) is 2, the command of 07 is executed. When it is not 2, the program jumps to 10). (Latch completed) (With interrupt feeding, the axis returns to the origin after operations of other axes. Without interrupt feeding, the axis returns to the origin immediately.)
07) to 08) Other axes are operated.
09) This is the end of IF command from 06).
10) The axis returns to the origin.
11) to 12) After completion of positioning, 1 is output to the general output (OW0BA0).
13) The program advance will be held until the general input (IW0B00) becomes 1.
14) The general output (OW0BA0) is cleared to 0.
15) The program is completed.

10-1-15 Time-specified Positioning (MOVET)

Explanation of the operation

  • This program is used to perform positioning within a specified time period.
  • This example shows the following operation; the axes move to the position [J01]10000, [J02]20000 in 3 seconds and 1 is output to the general output. When the general input becomes 1, the general output is cleared to 0. Finally, the axes return to the origin in 6 seconds.

Attention

  • When the speed of the axis exceeds the maximum rapid feed rate (P2AA01), the alarm [200Bh: Time specification error] will occur.
  • If override other than 100% is used, the specified time period cannot be kept.

OMRON CJ1W-MCH71 - Attention - 1

Program

01) PROG P019 Q00000003;
02) MOVE [J01]0 [J02]0;
03) MOVET [J01]10000 [J02]20000 T3000;
04) NOPS;
05) #OW0BA0 = 1;
06) WAIT #IW0B00 = = 1;
07) #OW0BA0 = 0;
08) MOVET [J01]0 [J02]0 T6000;
09) END;

Explanation of the program

01) A program No. and axes to be used are specified.
02) The axes return to the origin.

03) Positioning is performed to the position [J01]10000, [J02]20000 in 3 seconds.
04) to 05) After completion of positioning, 1 is output to the general output (OW0BA0).
06) The program advance will be held until the general input (IW0B00) becomes 1.
07) The general output (OW0BA0) is cleared to 0.
08) With MOVET command, the axes return to the origin in 6 seconds.
09) The program is completed.

10-1-16 Regular Winding to Rough Winding (MOVETRAV)

Explanation of the operation

This example shows a winder that makes 10 layers of 20 winds, and 10 winds on the 11^th layer.

OMRON CJ1W-MCH71 - Explanation of the operation - 1

OMRON CJ1W-MCH71 - Explanation of the operation - 2

Program

01) PROG P015 Q00000003;
02) MOVETRAV Q1 [J01]7200 [J02]360 L10 F300000;
03) MOVETRAV Q1 [J01]3600 [J02]360 L1;
04) END;

Explanation of the program

01) A program No. and axes to be used are specified.
02) To make 20 winds per layer, the winding axis rotations are set to 7200 deg (360 deg × 20 winds). Also, to make 10 layers, the number of layers (L) is set to 10.
03) To make 10 winds per layer, the winding axis rotations are set to 3600 deg (360 × 10 winds).
04) The program is completed.

  • In the program above, the rotations in normal traverse are specified. Changing the mode enables linked traverse or pitch specification.

Mode 1: Normal traverse, Winding axis rotations = Rotations specification

Mode 2: Normal traverse, Winding axis rotations = Pitch specification

Mode 3: Linked traverse, Winding axis rotations = Rotations specification

Mode 4: Linked traverse, Winding axis rotations = Pitch specification

  • The example of setting the program above with pitch specification is shown in the next page.

Ex:

Calculation method of the operand for the above program with pitch specification

Pitch = Traverse axis winding width/No. of winds per layer

Therefore,

Pitch = 360 / 20 = 18 [command unit/rev]

The program should be changed as shown below:

01) PROG P016 Q00000003;
02) MOVETRAV Q2 [J01]18. [J02]360 L10 F300000;
03) MOVETRAV Q2 [J01]36. [J02]360 L1;
04) END;

Note

(1) For winding axis, unlimited feed mode (P5AA07: 0010h) has to be set.
(2) In linked traverse, up to 100 blocks can be linked, and the operation is executed in Stop Mode.
(3) The linked blocks are treated as 1 block.
(4) In linked traverse, up to 5 blocks are interpreted per Unit Scan. If more than 5 blocks are to be linked, it takes a period of time [(No. of linked blocks/5) x Unit Scan] from execution completion of the last block to operation start. (It will take longer to start execution. The operation does not stop during the linked traverse.)
(5) Linked traverse is always executed at the speed specified for the 1^st traverse.
(6) When the winding axis rotations are set to 0, the alarm [2009h: Position specification error] will occur.
(7) When the traverse axis winding width is set to 0, the alarm [2009h: Position specification error] will occur.

10-1-17 Electronic Cam, Single Axis (CAM)

Explanation of the operation

  • Positioning is performed within the specified time period based on the cam data created in advance.
  • This example uses the cam data already appeared in SECTION 6 (page 297) to create the cam table and to operate the axes.

1,2,3...

  1. Positioning is performed with linear interpolation to the position [J01]5000, [J02]5000, and the program will wait until the general input becomes 1.
  2. Once the general input becomes 1, [J01] will perform the cam operation in 10 seconds based on the cam data shown below.
  3. When the cam operation is completed, 1 will be output to the general output. When the general input is cleared to 0, the axes [J01] and [J02] will return to the origin.

Cam data

Data No.PhaseDisplacement
100
2500400
310001600
415003600
520006400
6250010000
7300013600
8350016400
9400018400
10450019600
11500020000
12550019600
13600018400
14650016400
15700013600
16750010000
1780006400
1885003600
1990001600
209500400
21100000

OMRON CJ1W-MCH71 - Cam data - 1

Program

01) PROG P020 Q00000003;
02) STOPMODE;
03) MOVEL [J01]5000 [J02]5000 F500000;
04) WAIT #IW0B00 = = 1;
05) CAM [J01]1 K100. T10000;
06) NOPS;
07) #OW0BA0 = 1;
08) WAIT #IW0B00 = = 0;
09) #OW0BA0 = 0;
10) MOVEL [J01]0 [J02]0;
11) END;

Explanation of the program

01) A program No. and axes to be used are specified.
02) Stop Mode is selected.
03) Positioning is performed with linear interpolation to the position [J01]5000, [J02]5000.
04) The program will wait until the general input (IW0B00) becomes 1.
05) [J01] performs the cam operation in 10 seconds based on the cam table 1.
06) to 07) After positioning is completed, 1 will be output to the general output (OW0BA0).
08) The program advance will be held until the general input (IW0B00) becomes 0.
09) The general output (OW0BA0) is cleared to 0.
10) The axes return to the origin.
11) The program is completed.

Explanation of the operation

  • Positioning is performed with a slave axis synchronizing to a specified master axis.
  • In this example, the master axis will start operating when the general input becomes 1. The slave axis will start synchronization when the master axis reaches the position 5000. In this synchronization, the slave axis travels for 30000 while the master axis travels for 60000. 1 will be output to the general output once the master axis reaches the position 90000. The link operation is repeated with WHILE command.

OMRON CJ1W-MCH71 - Explanation of the operation - 1

Program

01) PROG P017 Q00000003;
02) #PL0010 = 0;
03) WHILE #IW0B00 <> 1;
04) OFFPOS C1 [J01]#PL0010;
05) WORK C1;
06)WAIT #IW0B01 = = 1;
07) MOVELINK [J02]30000 [J01]60000 A1000 D1000 Q5 I5000;
08) INC MOVEL [J01]90000 F300000;
09) NOPS;
10) #OW0BA0 = 1;
11) WAIT #IW0B01 = = 0;
12) #OW0BA0 = 0;
13) #PL0010 = #SL0206;
14) WEND;
15) END;

Explanation of the program

01) A program No. and axes to be used are specified.
02) The position data used as a workpiece coordinate is cleared to 0.
03) When the general input (IW0B00) is not 1, the process through 03) to 14) is repeated.
04) to 05) The workpiece coordinate system (C1) is enabled.
06) The program will wait until the general input (IW0B01) becomes 1.
07) The link operation, in which the slave axis travels for 30000 while the master travels for 60000, is performed. The link start position is 5000. (The slave starts synchronization once the master reaches the position 5000.)
08) The master axis moves from the present position to the position 90000 with linear interpolation.
09) to 10) After positioning is completed, 1 will be output to the general output (OW0BA0).

11) The program advance will be held until the general input (IW0B01) becomes 0.
12) The general output (OW0BA0) is cleared to 0.
13) The present position of the master axis is entered into the position data for the workpiece coordinate.
14) This is the end of WHILE command from 03).
15) The program is completed.

10-1-19 Electronic Cam, Synchronous (CAMBOX)

Explanation of the operation

The slave axis operates based on the cam table while synchronizing to a specified axis (master axis).

In this example, the master axis will start operating when the general input becomes 1. The slave axis will start synchronization when the master reaches the position 5000. The slave performs 1 cycle of the cam operation while the master travels for 60000. 1 will be output to the general output once the master reaches the position 90000. The synchronization is repeated with WHILE command.

The same cam data in 10-1-17 Electronic Cam, Single Axis (CAM) (page 592) is used in this example.

OMRON CJ1W-MCH71 - Explanation of the operation - 1

Program

Explanation of the program

01) A program No. and axes to be used are specified.
02) The position data used as a workpiece coordinate is cleared to 0.
03) When the general input (IW0B00) is not 1, the process through 03) to 14) is repeated.
04) to 05) The workpiece coordinate system (C1) is enabled.

06) The program will wait until the general input (IW0B01) becomes 1.
07) The slave axis performs 1 cycle of the cam operation based on the cam table 1 while the master travels for 60000.

(The slave axis will start cam operation once the master reaches the position 5000.)

08) The master axis moves from the present position to the position 90000 with linear interpolation.
09) to 10) After positioning is completed, 1 will be output to the general output (OW0BA0).

11) The program advance will be held until the general input (IW0B01) becomes 0.
12) The general output (OW0BA0) is cleared to 0.
13) The present position of the master axis is entered into the position data for the workpiece coordinate.
14) This is the end of WHILE command from 03).
15) The program is completed.

10-1-20 Electronic Shaft (CONNECT)

Explanation of the operation

  • The slave axis operates based on the specified gear ratio while synchronizing to the master axis.
  • In this example, the operation of the master axis is divided into 3 intervals. The gear ratio for the slave axis against the master axis is changed to 1/2 , 1, and 2 with CONNECT command. The operation is held for 3 seconds between intervals.

OMRON CJ1W-MCH71 - Explanation of the operation - 1

Program

01) PROG P022 Q00000003;
02) CONNECT [J02]1 [J01]2;
03) MOVEL [J01]50000 F500000;
04) DWELL T3000;
05) CONNECT [J02]1 [J01]1;
06) MOVEL [J01]100000;
07) DWELL T3000;
08) CONNECT [J02]2 [J01]1;
09) MOVEL [J01]150000;
10) DWELL T3000;
11)SYNCR [J02];
12) MOVE [J01]0 [J02]0;
13) END;

Explanation of the program

01) A program No. and axes to be used are specified.
02) The gear ratio of 1 to 2 is set.
03) The master axis moves to the position 50000 at 500 rpm. (The slave synchronizes to the master and moves at 250 rpm.)
04) The operation is held for 3 seconds.
05) The gear ratio of 1 to 1 is set.
06) The master axis moves to the position 100000 at 500 rpm. (The slave synchronizes to the master and moves at 500 rpm.)
07) The operation is held for 3 seconds.
08) The gear ratio of 2 to 1 is set.
09) The master axis moves to the position 150000 at 500 rpm. (The slave synchronizes to the master and moves at 1000 rpm.)
10) The operation is held for 3 seconds.
11) The synchronization is canceled.
12) The axes return to the origin.
13) The program is completed.

10-1-21 Trailing Synchronization/Synchronization Cancel (SYNC/SYNCR)

Explanation of the operation

  • The slave axis will start trailing the master axis when the marker sensor (external input) turns ON. When it catches up with the master axis, synchronization with the ratio of 1 to 1 will be performed.
  • In this example, trailing synchronization is performed with the slave executed by the motion task 1 and the master executed by the motion task 2. (The program starts the slave first, and then the master.)

OMRON CJ1W-MCH71 - Explanation of the operation - 1

Program 1

(Slave axis)

Explanation of the program(Master axis) 01) PROG P024 Q00000001; 02) MOVEL [J01]30000 F500000; 03) DWELL T5000; 04) MOVEL [J01]60000; 05) MOVEL [J01]100000 F1000000; 06) DWELL T3000; 07) #ML0000 = 1; 08) MOVEL [J01]0; 09) #ML0000 = 0; 10) END;
(Slave axis) 01) A program No. and axes to be used are specified. 02) The trailing synchronization with the catch-up position offset of 5000 and the marker sensor ON position of 10000 is executed. 03) to 04) The synchronization will be canceled when the present position of the master exceeds 80000. 05) The program will wait until the global general variable (ML0000) becomes 1. 06) The slave axis returns to the origin. 07) The program is completed.
(Master axis) 01) A program No. and axes to be used are specified. 02) The master axis moves to the position 30000 at 500 rpm. 03) The operation is held for 5 seconds. 04) The master axis moves to the position 60000 at 500 rpm. 05) The master axis moves to the position 100000 at 1000 rpm. 06) The operation is held for 3 seconds. 07) The global general variable (ML0000) becomes 1. 08) The master axis returns to the origin. 09) The global general variable (ML0000) becomes 0. 10) The program is completed.

10-1-22 Travel Distance Superimpose/Travel Distance Superimpose Cancel (ADDAX/ADDAXR)

Explanation of the operation

  • The operation of the specified master axis is superimposed on the slave axis.
  • In this example, the operation of the master axis is divided into 3 intervals and the operation of the 2^nd interval is superimposed on the slave. (The program starts the master and slave simultaneously.)

OMRON CJ1W-MCH71 - 10-1-22 Travel Distance Superimpose/Travel Distance Superimpose Cancel (ADDAX/ADDAXR) - 1

Program

(Master axis)

Explanation of the program

(Master axis)

01) A program No. and axes to be used are specified.
02) Stop Mode is selected.
03) The master axis moves to the position 50000 at 500 rpm.
04) to 05) After positioning is completed, 1 will be output to the global general variable (MW0000).

06) The master axis moves to the position 100000 at 500 rpm.
07) The master axis moves to the position 150000 at 1000 rpm.
08) to 09) After positioning is completed, 0 will be output to the global general variable (MW0000).
10) The master axis moves to the position 200000 at 1000 rpm.
11) The operation is held for 3 seconds.
12) 1 is output to the global general variable (MW0001).
13) The program will wait until the global general variable (MW0002) becomes 1.
14) The master axis returns to the origin.
15) The global general variable (MW0001) is reset to 0.
16) The program is completed.

(Slave axis)

01) A program No. and axes to be used are specified.
02) With PARALLEL command, 03) and the process through 05) to 08) are executed in parallel.
03) The slave axis moves to the position 200000 at 500 rpm.
04) This is the syntax of PARALLEL command from 02).
05) to 06) Superimposition will start when the global general variable (MW0000) becomes 1.
07) to 08) Superimposition will start when the global general variable (MW0000) becomes 0.
09) This is the end of PARALLEL command from 02).
10) The operation is held for 3 seconds.
11) The program will wait until the global general variable (MW0001) becomes 1.
12) 1 is output to the global general variable (MW0002).
13) The slave axis returns to the origin.
14) The global general variable (MW0002) is reset to 0.
15) The program is completed.

10-1-23 Speed Control/Speed Control Cancel (SPEED/SPEEDR)

Explanation of the operation

  • The speed of a specified axis is controlled in Speed Control Mode.
  • In this example, SPEED command will be executed between positions 50000 and 150000 when the axis travels from position 0 to 200000. During execution of SPEED command, 1 is output to the general output (OW0BA0).

OMRON CJ1W-MCH71 - Explanation of the operation - 1

Program01) PROG P027 Q00000001;
02) MOVEL [J01]50000 F500000;
03) SPEED [J01]50. T0;
04) #OW0BA0 = 1;
05) WAIT #SL0204 >= 150000;
06) SPEEDR [J01] T0;
07) #OW0BA0 = 0;
08) MOVEL [J01]200000;
09) DWELL T5000;
10) MOVEL [J01]0;
11) END;
Explanation of the program01) A program No. and axes to be used are specified.
02) The axis moves to the position 50000 with linear interpolation.
03) SPEED command operation is started with 50% of the rated speed of the motor.
04) 1 is output to the general output (OW0BA0).
05) The program will wait until the present position exceeds 150000.
06) SPEED command operation is completed.
07) The general output (OW0BA0) is reset to 0.
08) The axis moves to the position 200000 with linear interpolation.
09) The program is held for 5 seconds.
10) The axis returns to the origin.
11) The program is completed.

10-1-24 Torque Control/Torque Control Cancel (TORQUE/TORQUER)

Explanation of the operation

  • The torque of a specified axis is controlled in Torque Control Mode.
  • In this example, TORQUE command will be executed between positions 50000 and 150000 when the axis travels from position 0 to 200000. During execution of TORQUE command, 1 is output to the general output (OW0BA0).

OMRON CJ1W-MCH71 - 10-1-24 Torque Control/Torque Control Cancel (TORQUE/TORQUER) - 1

Program

Explanation of the program

01) A program No. and axes to be used are specified.
02) The axis moves to the position 50000 with linear interpolation.
03) TORQUE command operation is started with 50% of the maximum motor torque.
04) 1 is output to the general output (OW0BA0).
05) The program will wait until the present position exceeds 150000.
06) TORQUE command operation is completed.
07) The general output (OW0BA0) is reset to 0.
08) The axis moves to the position 200000 with linear interpolation.
09) The program is held for 5 seconds.
10) The axis returns to the origin.
11) The program is completed.

10-1-25 Target Position Change (MOVEMODI)

Explanation of the operation

  • A target position is changed during positioning.
  • In this example, the axis is moving to the position 20000 with linear interpolation. The target position (20000) will be changed to the position 40000 if the general input is ON when the axis reaches the position 10000. If the general input is OFF, the target position will remain the same (20000).

Note Target positions can be changed only on the axes operated with MOVE command, or MOVEL command of single axis specification in Stop Mode. (MOVE-MODI during execution of commands other than the ones mentioned above, or for axes not operating is ignored.)

OMRON CJ1W-MCH71 - Explanation of the operation - 1

OMRON CJ1W-MCH71 - Explanation of the operation - 2

Program

Explanation of the program

01) A program No. and axes to be used are specified.
02) Stop Mode is selected.
03) The axis moves to the position 20000 with linear interpolation.

04) to 07) When the present position reaches 10000, if the general input (IW0B00) is 1, the target position will be changed to 40000. If the general input (IW0B00) is not 1, the target position will not be changed.
08) The program is held for 3 seconds.
09) The axis returns to the origin.
10) The program is completed.

10-1-26 Present Position Latch (LATCH)

Explanation of the operation

  • The present position of a specified axis is saved to the word for variables.
  • In this example, the axis moves to the position 100000 (a position exceeding the target position). When the external input is turned ON in the midway, the position will be assigned to the position data.
  • The axis movement is similar to the one of 10-1-9 Stopping Operation with Optional End Using General Input and Assigning Position Data (page 583), however, the axis does not stop midway in the initial operation, moves to the position 100000, and returns to the origin.
  • Positioning after execution of LATCH command is performed using the assigned position data. Additionally, if the latch start and end positions are specified, the rise of the external inputs outside of the range will be ignored. This can be useful when the external input turns ON twice or more due to the machine structure.

OMRON CJ1W-MCH71 - Explanation of the operation - 1

Program

Explanation of the program

01) A program No. and axes to be used are specified.
02) Stop Mode is selected.
03) With PARALLEL command, 04) and 06) are executed in parallel.

04) The axis moves to the position 100000 with linear interpolation. 05) This is the syntax of PARALLEL command. 06) If the external input is turned ON between the start position 80000 and the end position 90000, the ON position will be assigned to the position data (PL0015). 07) This is the end of PARALLEL command from 03). 08) The axis returns to the origin. 09) The process through 09) to 12) is repeated when the general input (IW0B00) is not 1. 10) Positioning is performed based on the position data. 11) The axis returns to the origin. 12) This is the end of WHILE command from 09). 13) The program is completed.
10-1-27 Single Block Ignored (NSTOP)
Explanation of the operation·The block with NSTOP command is not stopped with block stop in Single Block Operation Mode. ·For example, when debugging a program in Single Block Operation Mode, if NSTOP command is put in the blocks not containing axis movement commands, the blocks will not be stopped (other blocks with axis movement commands will be stopped). This will economizes the time and work for debugging.
NoteWhen debugging a program in Single Block Operation Mode, Start Mode 2 has to be set in advance.
Program01) PROG P031 Q00000003; 02) MOVEL [J01]50000 [J02]50000 F500000; 03) NSTOP NOPS; 04) NSTOP #PL0000 = #SL0204; 05) NSTOP #PL0001 = #PL0000 * 3; 06) NSTOP #PL0002 = #PL0001 + #PL0000; 07) NSTOP #PL0003 = #PL0002 / 4; 08) NSTOP #PL0004 = #PL0003 + #PL0000; 09) MOVEL [J01]#PL0004 [J02]#PL0004; 10) NSTOP DWELL T5000; 11) MOVEL [J01]0 [J02]0; 12) END;
Explanation of the program01) A program No. and axes to be used are specified. 02) The axis moves to the position [J01]50000, [J02]50000 with linear interpolation. 03) to 08) Various arithmetic operations are executed. (Not stopped at the end of the block in Single Block Operation Mode) 09) Positioning is performed based on the result of the arithmetic operations. 10) The program is held for 5 seconds. (Not stopped at the end of the block in Single Block Operation Mode.) 11) The axes return to the origin. 12) The program is completed. When executing the above program to END command in Single Block Operation Mode, the start signal will be turned OFF-ON 5 times. Without NSTOP command, the start signal will be turned OFF-ON 12 times.

10-1-28 Parallel Execution (PARALLEL, JOINT, JWAIT)

Explanation of the operation

  • The processing is branched and executed in parallel.
  • This program is used, for example, when executing interpolation commands simultaneously.
  • In this example, 3 axes are operated with linear interpolation and they are simultaneously operated with PARALLEL command.

Normal axis movement

Axis movement in Parallel Execution

J01

OMRON CJ1W-MCH71 - Explanation of the operation - 1

J01

OMRON CJ1W-MCH71 - Explanation of the operation - 2

Program

Explanation of the program

01) A program No. and axes to be used are specified.
02) With PARALLEL command, 03), 05), and 07) are executed in parallel.
03) [J01] is moved to the position 100000 with linear interpolation.
04) This is the syntax of PARALLEL command. After this block is .
05) [J02] is moved to the position 150000 with linear interpolation.
06) This is the syntax of PARALLEL command. After this block is .
07) [J03] is moved to the position 200000 with linear interpolation.
08) This is the end of PARALLEL command from 02).
09) The program is held for 3 seconds.
10) The axes return to the origin.
11) The program is completed.

10-1-29 Selective Execution (SWITCH, CASE, BREAK, SEND)

Explanation of the operation

  • The processing is selectively executed according to the values of conditional variables.
  • In this example, different operations are executed depending on the values of the general input at program startup.
CombinationGeneral input 1 (0B01)General input 2 (0B02)[J01][J02][J03]
121××
212××
322×
411××

Note indicates that the axis is operated.

Program

Explanation of the program

01) A program No. and axes to be used are specified.
02) With WHILE command, the process through 02) to 07) will be repeated until the general input (IW0B00) becomes a value other than 0.
03) The conditional variable (ML0000) is reset to 0.
04) to 06) Depending on the values of the general inputs (IW0B01, IW0B02), the bit of the conditional variable (ML0000) is turned ON.
07) This is the end of WHILE command from 02).
08) to 20) With SWITCH command, when the conditional variable (ML0000) is 1, 2, or 4, processing 1, 2, or 3 will be executed respectively. Processing 4 will be executed when the conditional variable is not 1, 2, or 4.

09) to 11)Content of processing 1
12) to 14)Content of processing 2
15) to 17)Content of processing 3
18) to 19)Content of processing 4
20)This is the end of SWITCH command.

21) The axes return to the origin.
22) The program is completed.

10-2 Slave Modules

This section describes the parameter settings, the allocation area status, and the program examples for operations when the I/O module is specified as the MECHATROLINK-II device.

Note For details of functions, etc., refer to YASKAWA ELECTRIC CORPORATION's Σ-II SERIES SGDH MECHATROLINK-II APLLICATION MODULE USER'S MANUAL MODEL: JUSP-NS115 (MANUAL NO. SIEPC71080001*)".

10-2-1 Using 64-Point I/O Module

The parameter settings and the allocation example when I/O modules are connected to the MECHATROLINK device are shown below.

Explanation of the operation

Allocate 64-point I/O module at node 2 to Axis 3 of the MC Unit.

Parameter settings

Set Axis 3 to I/O in the system parameter of the MC Unit.

No.Setting valueNameDetail
P1AA012Physical axis settingSet node address to “2”.
P1AA02100MLK-II device classificationI/O
P1AA034Input allocation pointsInput - 4 words
P1AA044Output allocation pointsOutput - 4 words
P1AA050Axis allocation first addressThe first address of destination word for storing the count values (Not specified) (See note 3.)
P1AA060MLK-II communications error detection(Default value)

Note (1) AA = 03 (Axis 3)

(2) With P1AA02 set to I/O (100), 6 parameters above are valid. (Others are ignored.)
(3) The contents of the address specified here are reflected in the system variable [Current coordinate system FB position]. (For Axis 3: IL0032h_SL0260h) Only 1 word can be monitored.

I/O variables specifications

The following is the relations between the I/O module with the above parameter settings and I/O variables in the MC Unit. (The addresses are the ones for the I/O module allocated as Axis 3.)

Input variables

AddressBitSymbolNameDescription
IW00300 to 15-Input (IN1)1 to 16Shows status of input signal (connector 1).Input 1 to Input 16
IW00310 to 15-Input (IN1)17 to 32Shows status of input signal (connector 1).Input 17 to Input 32
IW00320 to 15-Input (IN2)1 to 16Shows status of input signal (connector 2).Input 1 to Input 16
IW00330 to 15-Input (IN2)17 to 32Shows status of input signal (connector 2).Input 17 to Input 32

Output variables

AddressBitSymbolNameDescription
OW00300 to 15-Output (OUT1) 1 to 16Controls status of output signal (connector 1) Output 1 to output 16
OW00310 to 15-Output (OUT1) 17 to 32Controls status of output signal (connector 1) Output 17 to output 32
OW00320 to 15-Output (OUT2) 1 to 16Controls status of output signal (connector 2) Output 1 to output 16
OW00330 to 15-Output (OUT2) 17 to 32Controls status of output signal (connector 2) Output 17 to output 32
  • Appropriate parameter settings enable data link between I/O variable addresses of each axis and the I/O module.
  • For details of the I/O variable area, see 4-6 I/O Variables (page 160).

10-2-2 Using Counter Module

This section describes the parameter settings, the initial module settings, and the allocation examples when the counter module is connected to the MECHATROLINK device.

Explanation of the operation

Allocate the counter module at node 4 to Axis 5 of the MC Unit.

Set Axis 5 to I/O in the system parameter of the MC Unit.

Parameter settings

No.Setting valueNameDetail
P1AA015Physical axis settingSet the address to “5”.
P1AA02100MLK-II device classificationI/O
P1AA035Input allocation pointsInput - 5 words
P1AA046Output allocation pointsOutput - 6 words
P1AA0510051HexAxis allocation first addressThe first address of destination word for storing the count valuesIW0051 (See note 3.)
P1AA060MLK-II communications error detection(Default value)

Note (1) AA = 05 (Axis 5)

(2) With P1AA02 set to I/O (100), 6 parameters above are valid. (Others are ignored.)
(3) The contents of the address specified here are reflected in the system parameter [Current coordinate system FB position]. (For Axis 5: IL0051h_SL02C0h) Only 1 word can be monitored.

Program for initial setting

When using the counter module with the MC Unit, the initial setting for the counter module has to be performed through the motion program.

PROG P000 Q00000000; ^*MCIR Counter module initial setting

OW0050 = 0;

WAIT #IW0050 = = 1;

OW0052 = 0;----Pulse count setting (Phase A, B, × 1 )

OB00500 = 1;---Counter 1 mode setting

WAIT #IB00501 = = 1; ---- Mode setting completed normally

OB00500 = 0; ---Mode setting reset

WAIT #IB00501 = = 0; ---- Mode setting completed normally (Flag OFF monitored)

^*** Present position preset

OL0052 = 2147483647;---present position setting value

OB00502 = 1;---Present value setting ON

WAIT #IB00501 == 1; -- → Present position setting completed

OL0052 = 0;-----Present position setting value (cleared)

OB00502 = 0;-----Present value setting OFF

WAIT #IB00501 = = 0; --- → (Flag OFF monitored)

OB00503 = 1; Counting enabled

END;

Note

(1) Make sure to create a program to confirm a response for a command.
(2) After setting is completed, turn ON "Counter 1 count enable (OW0050-3bit)". With the output variable OFF, the present value of the counter on the MC Unit cannot be monitored.
(3) When executing a synchronous command having the input of the counter module as the master axis, the link option "When master axis is detected" cannot be used to start synchronization (ignored). The link option "When master axis reaches link start position" can be used.
(4) Executing present position preset on the module during execution of synchronous command makes the MC Unit to recognize (though not true) that the axis was moved from the position before the preset to the one after the preset, which causes the slave axis to operate.

I/O variables specification

The following is the relations between the counter module with the above parameter settings and I/O variables in the MC Unit. (The addresses are the ones for the counter module allocated as Axis 5.)

Input variables

AddressBitSymbolNameDescription
IW00500RDYReadyIndicates the result of self-diagnosis for the module. ON: Normal OFF: Abnormal
1ACKSetting normalIndicates the setting operation was completed normally. Stays ON while the setting signal is ON.
2ERRSetting errorIndicates the setting operation caused an error. Stays ON while the setting signal is ON.
3 to 7Not used
8CARY1Counter 1, CarryTurns ON for 1 scan when counter's current value with incremental pulses exceeded counter's upper limit value.
9BORW1Counter 1, BorrowTurns ON for 1 scan when counter's current value with decremental pulses exceeded counter's lower limit value.
10N1Counter 1, Notch output statusIndicates the status of external Notch output. ON: External Notch being output
11L1Counter 1, Latch input statusIndicates the status of external Latch input. ON: External Latch being input
12CARY2Counter 2, CarryTurns ON for 1 scan when counter's current value with incremental pulses exceeded counter's upper limit value.
13BORW2Counter 2, BorrowTurns ON for 1 scan when counter's current value with decremental pulses exceeded counter's lower limit value.
14N2Counter 2, Notch output statusIndicates the status of external Notch output. ON: External Notch being output
15L2Counter 2, Latch input statusIndicates the status of external Latch input. ON: External Latch being input
IW00510 to 15MonitorContent of monitor is to be as follows through the initial setting: • Current value • Latch data • Mode settings • Notch point setting value 1 (counter 1) • Notch point setting value 1 (counter 2) • Current set value
IW0052
IW0053
IW0054

Note Content of monitor

Monitor typeIW0051IW0052IW0053IW0054
Current valueCounter 1, Current value (Lower byte)Counter 1, Current value (Upper byte)Counter 2, Current value (Lower byte)Counter 2, Current value (Upper byte)
Latch dataCounter 1, Latch data (Lower byte)Counter 1, Latch data (Upper byte)Counter 2, Latch data (Lower byte)Counter 2, Latch data (Upper byte)
Mode settingCounter 1, ModeCounter 2, Mode
Notch point setting value 1 (Counter 1)Counter 1, Notch point (Lower limit) (Lower byte)Counter 1, Notch point (Lower limit) (Upper byte)Counter 1, Notch point (Upper limit) (Lower byte)Counter 1, Notch point (Upper limit) (Upper byte)
Notch point setting value 2 (Counter 2)Counter 2, Notch point (Lower limit) (Lower byte)Counter 2, Notch point (Lower limit) (Upper byte)Counter 2, Notch point (Upper limit) (Lower byte)Counter 2, Notch point (Upper limit) (Upper byte)
Current set valueCounter 1, Current set value (Lower byte)Counter 1, Current set value (Upper byte)Counter 2, Current set value (Lower byte)Counter 2, Current set value (Upper byte)

OMRON CJ1W-MCH71 - Input variables - 1

Monitor (IW0051 to IW0054) and Setting values (OW0052 to OW0055) use the same address (register) depending on the mode. Therefore, make sure that the timings of setting and monitor do not overlap.

In addition, make sure to reset the set values to "0" after the setting is completed. In some mode, data of the setting values (OW0052 to OW0055) is enabled immediately when the mode is set. Therefore, expected operations may not be performed unless the previous settings are reset to "0".

Output variables

AddressBitSymbolNameDescription
OW00500M-SET1Counter 1 Mode setThe counter mode setting signal ON: Mode setting signal is effective
1N-SET1Counter 1 Notch point settingThe notch point setting preset signal Notch point is set at the rise of the signal (OFF-ON).
2P-SET1Counter 1 Current value settingThe counter's current value preset signal Current value is set at the rise of the signal (OFF-ON).
3C-ENB1Counter 1 Count enableInput pulses can be counted when this is ON. ON: Count enabled
4N-ENB1Counter 1 Notch output enableNotch output can be output when this is ON. ON: Notch output enabled
5P-RES1Counter 1 Current value resetCounter's current value is reset to “0”. Current value is reset at the rise of the signal (OFF-ON).
6N-RES1Counter 1 Notch output resetLatch status for notch output is reset. Latch status is reset at the rise of the signal (OFF-ON).
7L-RES1Counter 1 Count value resetInput status of external latch is reset. Input status is reset at the rise of the signal (OFF-ON).
8M-SET2Counter 2 Mode setThe counter mode setting signal ON: Mode setting signal is effective
9N-SET2Counter 2 Notch point settingThe notch point setting preset signal Notch point is set at the rise of the signal (OFF-ON).
10P-SET2Counter 2 Current value settingThe counter's current value preset signal Current value is set at the rise of the signal (OFF-ON).
11C-ENB2Counter 2 Count enableInput pulses can be counted when this is ON. ON: Count enabled
12N-ENB2Counter 2 Notch output enableNotch output can be output when this is ON. ON: Notch output enabled
13P-RES2Counter 2 Current value resetCounter's current value is reset to “0”. Current value is reset at the rise of the signal (OFF-ON).
14N-RES2Counter 2 Notch output resetLatch status for notch output is reset. Latch status is reset at the rise of the signal (OFF-ON).
15L-RES2Counter 2 Count value resetInput status of external latch is reset. Input status is reset at the rise of the signal (OFF-ON).
OW00510N-ON1Counter 1 Forced notch outputNotch output is forced ON. ON: Forced output
1N-ON2Counter 2 Forced notch outputNotch output is forced ON. ON: Forced output
2 to 7Not used
8MON1Monitor 1Combining the ON/OFF status of Monitor 1 to 3 enables monitoring of the followings.
9MON2Monitor 2• Counter current value
10MON3Monitor 3• External latch data
11 to 15Not used• Status
• Mode settings
• Counter 1, Notch point setting value
• Counter 2, Notch point setting value
• Current set value
OW00520 to 15Setting valuesThe following 3 counter data settings are available: • Mode settings • Notch point setting • Current value setting
OW0053
OW0054
OW0055

Program example

With the above settings, the program that makes the slave axis [J04] link to the input of the counter module [J05] as the master axis is shown below (The same specification method as the normal axes can be used):

PROG P001 Q00000001; Link option (Start position)

WAIT #OB00503 = = 1; Counter, monitor started

WHILE #IB03411 = = 1; Task 2 start switch

MOVELINK [J01]100 [J05]100 A0 D0 Q4 I100 B1;----- Link operation (Start

position)

NOPS;

WEND;

END;

Note Start positions or travel distances for the counter module are processed only with pulses.

10-2-3 Using Pulse Output Module

The following shows the parameter settings and the allocation example when the pulse output module is connected to the MECHATROLINK device.

Explanation of the operation

Allocate the pulse output module at node 2 to Axis 3 of the MC Unit.

Parameter settings

Set the Axis 3 to I/O in the system parameter of the MC Unit.

No.Setting valueNameDetail
P1AA012Physical axis settingSet the address to “2”.
P1AA02100MLK-II device classificationI/O
P1AA036Input allocation pointsInput - 6 words
P1AA046Output allocation pointsOutput - 6 words
P1AA0510032HexAxis allocation first addressThe first address of destination word for storing the count valuesIW0032 (See note 3.)
P1AA060MLK-II communications error detection(Default value)

Note (1) AA = 03 (Axis 3)

(2) With P1AA02 set to I/O (100), 6 parameters above are valid. (Others are ignored.)
(3) The contents of the address specified here are reflected in the system parameter [Current coordinate system FB position]. (With Axis 3: IL0032h_SL0260h) Only 1 word can be monitored.

I/O variables specifications

The following is the relations between the pulse output module with the above parameter settings and I/O variables in the MC Unit. (The addresses are the ones for the pulse output module allocated as Axis 3.)

Input variables

AddressBitSymbolNameDescription
IW0030Word 10RDY1Ready(Word 1)Indicates the result of self-diagnosis for the module. ON: Normal OFF: Abnormal
1Not used
2MONSEL1Monitor parametersIndicates that the parameters are being monitored.
3Not used
4PACK1Parameter settings normalIndicates that the setting operation was completed nor-mally. Stays ON while the setting signal is ON.
5PNACK1Parameter setting errorIndicates that the setting operation caused an error. Stays ON while the setting signal is ON.
6,7Not used
8MOV1LPositioningIndicates that the positioning operation is being performed.
9JOG1LJOG operationIndicates that the JOG operation is being performed.
10ZRN1LZero point returnIndicates that the zero point return operation is being per-formed.
11Not used
12OVER1Overheat input statusIndicates the status of the external overheat input. (External input terminal)
13TIMING1Magnetic excitation timing input statusIndicates the status of the external magnetic excitation tim-ing input. (External input terminal)
14ZRN1Zero point signal input statusIndicates the status of the external zero point signal input. (External input terminal)
15IN1General-purpose input statusIndicates the status of the external general-purpose input. (External input terminal)
IW0031Word 20RDY2Ready(Word 2)Indicates the result of self-diagnosis for the module. ON: Normal OFF: Abnormal
1Not used
2MONSEL2Monitor parametersIndicates that the parameters are being monitored.
3Not used
4PACK2Parameter settings normalIndicates that the setting operation was completed nor-mally. Stays ON while the setting signal is ON.
5PNACK2Parameter setting errorIndicates that the setting operation caused an error. Stays ON while the setting signal is ON.
6,7Not used
8MOV2LPositioningIndicates that the positioning operation is being performed.
9JOG2LJOG operationIndicates that the JOG operation is being performed.
10ZRN2LZero point returnIndicates that the zero point return operation is being per-formed.
11Not used
12OVER2Overheat input statusIndicates the status of the external overheat input. (External input terminal)
13TIMING2Magnetic excitation timing input statusIndicates the status of the external magnetic excitation tim-ing input. (External input terminal)
14ZRN2Zero point signal input statusIndicates the status of the external zero point signal input. (External input terminal)
15IN2General-purpose input statusIndicates the status of the external general-purpose input. (External input terminal)
IW0032Word 1Monitor registerAppropriate setting enables monitoring of the following values of Word 1. • Current position • Parameter settings • Alarm status
IW0033
IW0034Word 2Monitor registerAppropriate setting enables monitoring of the following values of Word 2. • Current position • Parameter settings • Alarm status
IW0035

Output variables

AddressBitSymbolNameDescription
OW0030Word 10ARST1Alarm resetThis is the alarm-reset command.Alarm is reset at the rise of the signal (OFF-ON).
1CAN1CancelThis signal cancels axis movement.Axis movement is canceled at the rise of the signal (OFF-ON).
2MONSEL1Monitor selectorThis signal switches the monitor mode.OFF: Current position monitor, ON: Parameter monitor
3PSET1Parameter set/Monitor selectorThis is the signal that sets or monitors parameters.
4 to 7PRM10 to PRM13Parameter No. selectorParameter No. is selected using this signal.
8MOV1PositioningThis signal starts positioning operation.Operation is started at the rise of the signal (OFF-ON).
9JOG1JOG operationThis signal controls JOG operation.ON: Run OFF: Stop
10ZRN1Zero point returnThis signal starts the zero point return operation.Operation is started at the rise of the signal (OFF-ON).
11REV1JOG/Zero point return directionThis signal determines the start direction for JOG operation and zero point return operation.OFF: Forward ON: Reverse
12Not used
13COFF1Output current OFFThis signal controls the status of the output current OFF terminal.OFF: Output current ON, ON: Output current OFF
14BFREE1Electromagnetic brake releaseThis signal controls the status of the electromagnetic brake release output terminal.OFF: Electromagnetic brake is used.ON: Electromagnetic brake is released.
15OUT1General-purpose out-putThis signal controls the status of the general-purpose output terminal.OFF: General-purpose output is OFF.ON: General-purpose output is ON.
OW0031Word 20ARST2Alarm resetThis is the alarm-reset command.Alarm is reset at the rise of the signal (OFF-ON).
1CAN2CancelThis signal cancels axis movement.Axis movement is canceled at the rise of the signal (OFF-ON).
2MONSEL2Monitor selectorThis signal switches the monitor mode.OFF: Current position monitor, ON: Parameter monitor
3PSET2Parameter set/Monitor selectorThis is the signal that sets or monitors parameters.
4 to 7PRM20 to PRM23Parameter No. selectorParameter No. is selected using this signal.
8MOV2PositioningThis signal starts positioning operation.Operation is started at the rise of the signal (OFF-ON).
9JOG2JOG operationThis signal controls JOG operation.ON: Run OFF: Stop
10ZRN2Zero point returnThis signal starts the zero point return operation.Operation is started at the rise of the signal (OFF-ON).
11REV2JOG/Zero point return directionThis signal determines the starting direction for JOG operation and zero point return operation.OFF: Forward ON: Reverse
12Not used
13COFF2Output current OFFThis signal controls the status of the output current OFFterminal.OFF: Output current ON, ON: Output current OFF
14BFREE2Electromagnetic brake releaseThis signal controls the status of the electromagnetic brake release output terminal.OFF: Electromagnetic brake is used.ON: Electromagnetic brake is released.
15OUT2General-purpose out-putThis signal controls the status of the general-purpose output terminal.OFF: General-purpose output is OFF.ON: General-purpose output is ON.
OW0032Word 1 data registerAppropriate setting enables setting of the following values of Word 1.• Target position setting• Parameter settings
OW0033
OW0034Word 2 data registerAppropriate setting enables setting of the following values of Word 2.• Target position setting• Parameter settings
OW0035

Meaning of the parameters No. select and setting value of the pulse output module

Parameter No.Parameter No. settingNameSetting range (units)Initial setting
PRMn3PRMn2PRMn1PRMn0
00OFFOFFOFFOFFReserved for system
01OFFOFFOFFONOutput mode0: CW, CCW pulses 1: + signed pulses0
02OFFOFFONOFFIn JOG operation • JOG speed • JOG accel/decel timeJOG speed: 1 to 50000 (10 pps) Accel/decl time 50 to 5000 (100 ms)Speed: 500 Time: 100
03OFFOFFONONIn zero point returnZero point return speedZero point return Accel/ decel timeZero point return speed:1 to 50000 (10 pps)Zero point return Accel/ decel time:50 to 5000 (100 ms)Speed:500Time:100
04OFFONOFFOFFIn zero point returnApprox approach speedCreep speedApproach speed:1 to 50000 (10 pps)Creep speed:1 to 50000 (10 pps)Approach:100Creep:50
05OFFONOFFONIn positioningPositioning speedPositioning Accel/decel timePositioning speed:1 to 50000 (10 pps)Positioning Accel/decel time:50 to 5000 (100 ms)Speed500Time100
06OFFONONOFFReserved for system
07OFFONONONReserved for system
08ONOFFOFFOFFAcceleration/deceleration mode0: Single-stage symmetric1: Two-stage symmetric2: Single-stage asymmet- ric0
09ONOFFOFFONIn two-stage acceleration/ decelerationSwitching speedSecond-stage Accel/ decel timeSwitching speed:1 to 50000 (10 pps)Second-stage Accel/ decel time:50 to 5000 (100ms)Speed250Time:100
10ONOFFONOFFIn asymmetrical accel/ decel operationAcceleration timeDeceleration timeAcceleration time:50 to 5000 (100 ms)Deceleration time:50 to 5000 (100 ms)Accel:100Decel:100
11ONOFFONONAsymmetrical Accel/decel bias speedNote Set smaller value than the position- ing speed.Bias speed:1 to 50000 (10 pps)Speed0
12ONONOFFOFFCurrent position settingCurrent position:-2147483647 to2147483647 (pulse)Current position:0
13ONONOFFONReserved for system
14ONONONOFFReserved for system
15ONONONONReserved for system

n = Word No. (1 or 2)

Program examples

  • When operating the pulse output module from the MC Unit, the operating conditions have to be set first. After that, start commands can be sent. (When starting operations consecutively under the same operating conditions, sending a start command can start operations if the operating conditions have been already set.)
  • This following shows the program examples required for JOG operations and positioning operations.
JOG operationThe settings of the parameter No. 02 (JOG speed, JOG Accel/decl time) for word 1 are changed and JOG operation is performed. Controlling the status of the general-purpose I/O area (PORT_A) starts and stops the JOG operation. PROG P002 Q00000000; Pulse output module (JOG operation) WAIT #IB00300 = = 1; ----- Pulse unit ready #OW0030 = 0; ----- Output bit reset ; *** JOG parameter setting*** #OB00304 = 0; Parameter No. specification (02) #OB00305 = 1; Parameter No. specification (02) #OB00306 = 0; Parameter No. specification (02) #OB00307 = 0; Parameter No. specification (02) #OW0032 = 600; ----- JOG speed data #OW0033 = 200; ----- Accel/decl time data #OB00303 = 1; ----- Parameter settings started WAIT #IB00304 = = 1; ----- Parameter setting completed #OW0030 = 0; ----- Output bit reset #OB00304 = 0; Parameter No. specification (00) #OB00305 = 0; Parameter No. specification (00) #OB00306 = 0; Parameter No. specification (00) #OB00307 = 0; Parameter No. specification (00) ; *** JOG start*** WHILE #IW0B00 = = 1; #OB0030F = 1;----- Servo ON #OB0030D = 1;----- Output current OFF signal ON IF #IW0B01 = = 1;--- External input for JOG operation (General-purpose I/O area: PORT_A) #OB00309 = 1;----- JOG started ELSE; #OB00309 = 0;----- JOG stopped ENDIF; WEND; #OB0030F = 0;----- Servo OFF #OB0030D = 0;----- Output current OFF signal OFF END;
Positioning operationThe settings of the parameter No. 05 (Positioning speed, Positioning Accel/decl time) for word 1 are changed and positioning is performed. Controlling the status of the general-purpose I/O area (PORT_A) starts and stops positioning operation. PROG P002 Q00000000; Pulse output module (Positioning operation) WAIT #IB00300 = = 1; ----- Pulse unit ready #OW0030 = 0; ----- Output bit reset ; *** Positioning parameter setting*** #OB00304 = 1; Parameter No. specification (05)
#OB00305 = 0; Parameter No. specification (05) #OB00306 = 1; Parameter No. specification (05) #OB00307 = 0; Parameter No. specification (05) #OW0032 = 2000; Positioning speed data #OW0033 = 100; Positioning Accel/decel time data #OB00303 = 1; Parameter setting started WAIT #IB00304 = = 1; Parameter setting completed #OW0030 = 0; Output bit reset #OB00304 = 0; Parameter No. specification (00) #OB00305 = 0; Parameter No. specification (00) #OB00306 = 0; Parameter No. specification (00) #OB00307 = 0; Parameter No. specification (00) ; ;*** Positioning target position setting *** #OL0032 = #PL0010; Value in Position data (PL0010) substituted ; ;*** Positioning operation *** WHILE #IW0B00 = = 1; #PL0010 = #ILOC40; #OB003OF = 1; ---- Servo ON #OB003D = 1; ---- Output current OFF signal ON IF #IW0B01 = = 1; ---- External input for starting positioning (general-purpose I/O area: PORT_A) #OB00308 = 1; -Positioning started ENDIF; WAIT #IB00308 = = 0; -Positioning completed #OB00308 = 0; -Positioning start bit reset WEND; #OB003OF = 0; -Servo OFF #OB003D = 0; -Output current OFF signal OFF END;   
Monitor parameters When checking the parameters that have been set, users cannot see the data directly. An example of checking methods is shown below. The setting of the parameter No. 02 (JOG speed, JOG Accel/decel time) for word 1 is read and assigned to desired variables. PROG P003 Q0000000; Pulse output module (Parameter setting monitor) WAIT #IBO0300 = = 1; -Pulse unit ready #OWOoo3o = 0; -Output bit reset ; ;*** Read parameter setting *** #OBOoo3o4 = 0; Parameter No. specification (O2) #OBOoo3o5 = 1; Parameter No. specification (O2) #OBOoo3o6 = 0; Parameter No. specification (O2) #OBOoo3o7 = 0; Parameter No. specification (O2) #OBOoo3o2 = 1; Data to be monitored selected #OBOoo3o3 = 1; -Parameter setting started WAIT #IBOoo3o4 = = 1; -Parameter setting completed ; ;*** Parameter read *** #PLOooo = #ILOoo32; Assigned to position data (Parameter data) ; #OWOoo3o = 0; -Output bit reset 

OB00304 = 0; Parameter No. specification (00)

OB00305 = 0; Parameter No. specification (00)

OB00306 = 0; Parameter No. specification (00)

OB00307 = 0; Parameter No. specification (00)

END;

10-3 Others

Example 1

This program may be the automatic operation of a simple 'pick and place' machine (e.g., PCB mounting machine). The real machine will need another motion programs as 'homing sequence', 'manual operation' and PC program.

PROG P004 Q00000007;Pick & Place
;The application consist on a pick and place operation with high torque detection
;in the axes to detect mechanical lockings.
;Axes 1 & 2 are an X-Y table and Axis 3 is the vertical axis. Two sensors confirm that the vertical axis is in the 'up' or 'down' position.
;
;The example shows:
; - Simple PTP movements
; - Parallel programming
; - Use of different variables
;
Variable initialization

OB0BA20 = 0;

MW0000 = 0;

;
ABL;
;
;Set the axes to RUN

IB04402 = 1; AXIS1 on

IB04412 = 1; AXIS2 on

IB04422 = 1; AXIS3 on

WAIT #OB04403 = = 1; Wait for confirmation AX1
WAIT #OB04413 = = 1; Wait for confirmation AX2
WAIT #OB04423 = = 1; Wait for confirmation AX3

IB04402 = 0;

IB04412 = 0;

IB04422 = 0;

;
;Infinite operation loop
WHILE 1 = = 1 . IF #IB0B020 = = 1 ; Bit0 in Input variable 2 (from PLC) is the 'start' signal #DB00000 = 0; In parallel we are checking the current in the drives and making the movement PARALLEL N2; WHILE #DB00000 = = 0 . IF #SL0214>20000; Torque in Axis 1 #MB0000 = 1; ELSE; #MB0000 = 0;

ENDIF; IF#SL0244>20000;Torque in Axis 2 #MB00001 = 1 ELSE; #MB00001 = 0 ENDIF; IF#SL0274>20000;Torque in Axis 3 #MB00002 = 1 ELSE; #MB00002 = 0 ENDIF; ;If any of the drives has a torque bigger than 200% we set a bit in an output variable (for PLC control) IF#MW0000>0; #OB0BA20 = 1 ENDIF; WED; JOINT; ;Pick and place sequence: ;-Go to 'pick piece' position MOVEL[J01]500 [J02]300 F200; ;-Pick the piece MOVE [J03]50; WAIT#IB0B001 = = 1 ;Bit for 'Down operation completed' MOVE [J03]O; WAIT#IB0B002 = = 1 ;Bit for 'Pick/place operation completed ;-Go to 'place piece' position MOVEL[J01]O [J02]O F1OO; ;-Place the piece MOVE [J03]5O; WAIT#IB0B001 = = 1 ; MOVE [J03]O; WAIT#IB0B002 = = 1 ;Flag to indicate that the cycle has finished #DB0000 = 1 JWAIT; ENDIF; WEND; END;

Example 2

This example is the motion program for a 'Bag making' machine. The machine consists in a feeding roll that feeds the bag plastic film that is soldered and cut. The program receives two data from the MMI (via the PC backplane): the feed length and the speed in bags/minute. With this data the program calculates, in a sub-program, the suitable profile (acceleration and deceleration ramps and maximum speed). The machine has two operation modes: without mark, that is, making a fixed movement; or with mark, that is, correcting the movement depending on the position of a printed mark. The cutter is activated by the program via a flag (bit).

The program for a real machine will need some modification as windowing of the registration mark, undetected marks alarm counter, etc.

PROG P005 Q00000001;Bag making

;Bag making with mark needs to configure a registration input in the servodrive

it is necessary to set P50108 (eg = xxxxxx03h) and Pn511 (eg =

6xxxh) as required.
;
;VARIABLES FROM/TO PLC: ;IW0B00 is bag length ;IW0B01 is speed (bag/min) ;IW0B02 is a bitwise word to give the bits to start (b0) and the confirm-
mation
; than the cutter is in the STOP position (b2) ;IW0B03 is the expected distance to move after the mark OW0BA0 Gives the START order to the cutter (rising edge) ;OTHER VARIABLES: ;MW0006 is the overflow value of the position, depends on the axis
settings and must be higher than the maximum bag length ;MW0005 is the Offset value that must be applied to the workpiece co
ordinate to start from zero position. ;MW0002 is the maximum speed of the bag calculated in the sub-pro
gram to match the cycle.
;
;The example shows: ; - Use of sub-programs ; - Simple calculation ; - Parameter writing ; - Use of movements with registration . #MW0006 = 8192; ;Set the axes to RUN #IB04402 = 1; AXIS1 on WAIT #OB04403 = = 1 ; Wait for confirmation AX1 #IB04402 = 0; INC; GOSUB P550; WHILE 1 = = 1 . Update the ramps and maximum speed to match the cycle only when distance or speed changes IF #IW0B00<>#DW0000; GOSUB P550; #DW0000 = #IW0B00; ENDIF; IF #IW0B01<>#DW0001; GOSUB P550; #DW0001 = #IW0B01; ENDIF; ;Wait for cutter in STOP position WAIT #IB0B022 = = 1 . IF #IB0B020 = = 0 ; Cutting without mark

MOVE [J01]#IW0B00; ELSE; ;Cutting with mark MOVEI [J01]#IW0B00 D#IW0B03 V#ML0002; ENDIF; ;Activate bag cutter (rising edge in OB0BA00) DWELL T10; WAIT #SW0228 = = 0 ; Check that the movement has finished #OB0BA00 = 1; DWELL T20; #OB0BA00 = 0; WEND; END; PROG P550 Q0000000;Bag Making Profile Calculation ;Calculation of maximum speed and ramps ;To make the movement in the desired time ;Considering T/3 acceleration T/3 at speed T/3 deceleration ; #ML0010 = 60000/#MW0001; Time per bag (ms) #ML0012 = #ML0010/3; Acceleration time (ms) PARAM P20105 = #ML0012; PARAM P20106 = #ML0012; #ML0002 = #MW0000*3; #ML0002 = #ML002/2; #ML0002 = #ML002/#ML0010; Maximum speed PARAM P20103 = #ML0002; PARAM P20101 = #ML0002; RETURN;
Example 3 This example describes the operation of a flying shear, to cut material to a programmed length on the fly. The example shows the use of a 'counter unit'. This counter unit (PL2900) is a YASKAWA device via Mechatrolink II that allows connecting to the system a line-driver encoder as master encoder. PROG P006 Q0000011;Flying Shear with counter unit In this example a counter unit is used to use an incremental line-driver encoder as master axis (axis 5). Then: ; - P10501 = 5 (AXIS 5) ; - P10502 = 100 (I/O remote unit) ; - P10503 = 5 Number of input points ; - P10504 = 6 Number of output points ; - P10505 = 10051h First allocation address (corresponds with IW0051) Setting for the counter unit #OWOoo = 0; #OWOoo2 = 2; A,B pulses x4 multiplier #OBOoo5oo = 1; Counter initialization

Example 4

WAIT #IB00501 = = 1; Initialization completed
#OB00500 = 0;
#OB00503 = 1; Counter 1 enabled;
;
;Set the axes to RUN
#IB04402 = 1; AXIS1 on
WAIT #OB04403 = = 1; Wait for confirmation AX1
#IB04402 = 0;
;
WHILE 1 == 1;
;IW0B01 is the cutting length from the PLC
#MW0000 = #IW0B01-550;
;
IF #IB0B000 = = 1; START bit
MOVELINK [J01]50 [J05]100 A100 D0; Acceleration synchronized
MOVELINK [J01]200 [J05]200 A0 D0; Following part
#OB0BA00 = 1; Activate shear
MOVELINK [J01]50 [J05]100 A0 D100; Deceleration synchronized
#OB0BA00 = 0; Stop shear
MOVELINK [J01]-300 [J05]400 A100 D100; Return to origin
MOVELINK [J01]0 [J05]#MW0000 A0 D0; Wait distance
ENDIF;
WED;
END; 

This example shows how to handle with the safety and the sequence of other motion programs without the direct management of the PC. This is useful when you want a fast reaction or a local control in the MCH. Depending on the operation maybe it is necessary to disable some automatic data exchange between PC and MCH (P00007 and P00008).

PROG P000 Q00000000;SHELL
;--VARIABLES:
;---- OW0BA0 = Alarm status
;---- OW0BA2 = Shell status
;---- IW0B00 = RUN/STOP/RESET from PLC
;---- DW0000 = Auxiliary task variable
;---- MW0000 = Application program status
;

MW0000 = 0;

OW0BA2 = 0; Status = Initial

DB0000 = 0; Task variable: Rising edge to start program

GOSUB P500; Initialization

OW0BA2 = 1; Status = Stopping programs

GOSUB P501; STOP all programs

OW0BA2 = 2; Status = System stopped

WHILE 1 == 1 ; Infinite loop
;Conditions to generate an alarm or warning

OB0BA00 = #OB03000; Any alarm active

OB0BA01 = #IB0B002; Stop active

OB0BA02 = !#SB021C4; Main power not active in axis 1

OB0BA03 = !#SB024C4; Main power not active in axis 2

OB0BA04 = !#SB027C4; Main power not active in axis 3

OB0BA05 = !#SB02AC4; Main power not active in axis 4

OB0BA06 = !#SB02DC4; Main power not active in axis 5

IF #OW0BA0 = = 0; IF NO ALARM

IF #OW0BA2<>4;

OW0BA2 = 2; System stopped

ENDIF;

IF #IB0B001 = = 0;

DB00000 = 1;

ENDIF;

IF #IB0B001 = = 1;

IF #DB00000 = = 1;

DB00000 = 0;

GOSUB P502;

OW0BA2 = 4; Programs running

ENDIF;

ENDIF;

ELSE; IF ALARM

IF #OW0BA2 == 4; IF programs running

OW0BA2 = 1; Stopping programs

GOSUB P501; STOP programs

MW0000 = 0;

ENDIF;

OW0BA2 = 3; System in Alarm or Warning

DB00000 = 0;

IF #IB0B000 == 1; Wait for the reset signal

IB03410 = 1; Task 2 Alarm Reset

IB03420 = 1; Task 3 Alarm Reset

;---- RESET FOR OTHER TASKS (if necessary) ---

IB04400 = 1; Axis 1 Alarm Reset

IB04410 = 1; Axis 2 Alarm Reset

IB04420 = 1; Axis 3 Alarm Reset

IB04430 = 1; Axis 4 Alarm Reset

IB04440 = 1; Axis 5 Alarm Reset

DWELL T10;

IB03410 = 0;

IB03420 = 0;

IB04400 = 0;

IB04410 = 0;

IB04420 = 0;

IB04430 = 0;

IB04440 = 0;

ENDIF;

ENDIF;

WEND;

END;

PROG P500 Q00000000;INITIALISATION

;INITIALIZATION SUB-PROGRAM

;Put here all the initialization settings

IB0440F = 1; Axis 1 in Automatic

IB0441F = 1; Axis 2 in Automatic

IB0442F = 1; Axis 3 in Automatic

IB0443F = 1; Axis 4 in Automatic

IB0444F = 1; Axis 5 in Automatic

IB03417 = 1; Override Task 1  
;Override for the rest of the tasks  
#IB0B002 = 1; STOP is NC  
#OW0BA0 = 0;  
etc.  
RETURN; 

PROG P501 Q00000000;STOP all Programs;STOP MOTION PROGRAMS
WAIT #OB03411 == 0; Wait for confirmation;
WAIT #OB03421 == 0; Wait for confirmation;

IB03414 = 1; STOP Motion Task 2 immediately;  
#IB03424 = 1; STOP Motion Task 3 immediately; 

IB03424 = 0;

IB03414 = 0; 
;STOPAXES 

IB04403 = 1; AXIS1 off
IB04423 = 1; AXIS3 off

IB04413 = 1; AXIS2 off 

IB04443 = 1; AXIS5 off

IB04433 = 1; AXIS4 off 

WAIT #OB04413 == 0; Wait for confirmation AX2

WAIT #OB04403 == 0; Wait for confirmation AX1 

WAIT #OB04433 == 0; Wait for confirmation AX4

WAIT #OB04423 == 0; Wait for confirmation AX3 
WAIT #OB04443 = = 0; Wait for confirmation AX5 

IB04403 = 0;
IB04423 = 0;

IB04413 = 0; 

IB04443 = 0;

IB04433 = 0; 

RETURN;

PROG P502 Q00000000;RUN Application program 
;Load the suitable motion programs in its task and run the task 2 and 3 

IW0362 = 1; Load program 1 in TASK 2

IW0363 = 10000; Override for task 1 to 100% 

IB03411 = 0;

DWELL T10; 

IB03411 = 1; Start TASK 2 (Rising edge)
IB03411 = 0;

WAIT #OB03411 == 1; Wait for confirmation 

IW0364 = 2; Load program 2 in TASK 3

IW0365 = 10000; Override for task 3 to 100% 

IB03421 = 0;

DWELL T10; 

IB03421 = 1; Start TASK 3 (Rising edge)
IB03421 = 0;

WAIT #OB03421 == 1; Wait for confirmation 

RETURN;

PROG P503 Q00000000;ALARM management

;Write here the necessary actions to do in front of an alarm.

;Specially notifying to the PLC what happened

OW0BA1 = 1111;

RETURN;

SECTION 11

Troubleshooting

This section describes how to troubleshoot problems that may occur when using the CJ1W-MCH71 and CS1W-MCH71 Motion Control Units.

11-1 Troubleshooting 628

11-1-1 Items to Check First 628
11-1-2 Problems and Countermeasures 628

11-2 Countermeasures 634

11-2-1 Error Diagnosis Function 634

11-3 Error Indicators 638

11-3-1 Errors During Initial Processing 638
11-3-2 Errors During Normal Operation 639

11-4 Unit-related Alarm Codes 639
11-5 Motion Task-related Alarm Codes. 642
11-6 Axis-related Alarm Codes 648
11-7 MLK Device Alarm Codes 653
11-8 Servo DriverWarnings. 655
11-9 Error Log 656

11-9-1 Area Configuration 656

11-1 Troubleshooting

This section provides tables to refer to when a particular problem occurs. The tables provide a general description of the nature of various potential problems, the probable cause, items to check, and suggested countermeasures.

For more detailed explanations, refer to 11-2 Countermeasures (page 634) onwards.

11-1-1 Items to Check First

If a problem occurs, take appropriate countermeasures for the problem after checking the following items first.

No.CategoryItems to checkChecked
1Installation environmentIs the environment dusty?
2Are there any conducting materials (such as metals, carbon, etc.) in the environment that could get into the equipment?
3Is the ambient temperature higher than the level shown in the specifications?
4Is there excessive moisture (from humidity, water usage, etc.)?
5Are there corrosive materials in the environment (acid, salt, sulfur, etc.)?
6Is there a source of noise nearby (such as a welding machine or inverter)?
7WiringAre signal lines and power lines placed in separate ducts?
8Is the proper grounding provided?
9Does the power supply have a noise filter?
10Recent changesHas there been recent construction (involving welding, and so on)?
11Has a power supply been added recently?
12Has there been changes or additions to the system (including programs)?
13AccidentsWas there any lightning nearby?
14Was there any interruption caused by a fuse or breaker?
15Is the power OFF?

11-1-2 Problems and Countermeasures

  • If any errors that are not covered in the following tables occur, print out the contents of the PC Interface Area and related DM Area words using the CX-Programmer or other Support Tools and provide them to your OMRON representative.
  • If an operation cannot be properly executed, it may be that a program or parameters were not saved when they were transferred. Upload the parameters, programs, or position data from the MC Unit and open the file and check to be sure that the data was transferred and saved properly.
  • If an operation cannot be properly executed, there may be an error in data or signal exchange between the ladder program and the MC Unit. Try performing the operation with the Support Tool. If the operation can be performed using the Support Tool, then there may be a problem with the ladder program. Use the CX-Programmer data trace function to check whether the data is being exchanged at the correct timing.
No.ProblemProbable causesItem to checkRemedy
1The CPU Unit's RUN indicator does not light when the power is turned ON.Power supply lines are wired incorrectly.Check the power supply wiring.Correct the power supply wiring.
2The power supply voltage is low.Check the power supply.Check the power supply capacit- ity and correct the power supply.
3An internal fuse has blown.Check the fuses.Replace the fuse and determine what caused it to blow. (Refer to the troubleshooting section in the applicable CPU Unit oper- tion manual).
4The power supply is defec- tive.Check the power supply.Replace the power supply.
5Only the MC Unit's Run indi- cator fails to light when the power is turned ON.The power supply capacity is insufficient.Add up the power supply capac- ity for all of the Units mounted to the same Backplane, including the CPU Unit, and compare that to the power supply capacity of the Power Supply Unit. If the combined capacity of the Units is greater than that of the power Supply Unit, then they cannot be properly used.• Increase the power supply capacity. • Change the configuration so that the power supply capacity at the Backplane is not exceeded.
6The MC Unit is defective.Replace the MC Unit.
7Servo cannot be locked.The MC Unit is not operat- ing.Is the RUN indicator lit?Check No.5.
8Commands cannot be received from the ladder program because the MC Unit's operation mode is in the tool mode.Check the operation mode using the Support Tool.Set the mode to RUN mode or CPU mode.
9Another axis control bit is ON at the same time.• Check whether another axis control bit is ON at the same time. • Try executing Servo Lock using the Support Tool.Turn OFF the other axis control bit and turn ON the bit [Servo Lock]. (Change the ladder pro- gram.)
10The MC Unit is defective.Replace the MC Unit
11The motor is not turning.The servo is not locked.• Check whether the Servo Driver is operating. • Check the MC Unit axis status to see whether servo is locked.Execute Servo Lock and then turn the motor. (Change the ladder program.)
12The wiring is incorrect between the MC Unit and the Servo Driver.• Check the wiring with a tester. • Change the connecting cables.Correct the wiring.
13A run prohibit input, such as POT or NOT, of W- series Servo Driver is enabled (OFF with default setting) (when Cn-01 bits 2 and 3 are 0).Check the run prohibit inputs with the Support Tool.• Turn OFF the Servo Driver run prohibit input. • Disable (ON with default set- ting) the Servo Driver run pro- hhibit input.
14The Servo Driver is in the internally set speed control mode (and is not receiving MC Unit speed reference).Check the Servo Driver setting.Correct the Servo Driver setting.
15A Servo Driver alarm has occurred.Check the contents of the Servo Driver alarm.If there is an alarm, follow the instructions.
16The mechanical axis is locked.Check whether there is a mechanical limit or lock in effect.Manually release the mechani- cal lock.
17The MC Unit is defective.Replace the MC Unit.
18Origin search cannot be executed.An error or warning has been generated.Check the contents of the error or warning.If there is an error or warning, follow the instructions.
19The Servo Driver's origin proximity input is wired incorrectly.Use the Support Tool's input signal monitor function to check whether the sensors are turning ON and OFF normally.Correct the wiring.
20The communications cable to the Servo Driver is not correctly connected.Check the communications cable.Correct the wiring.
21The direction of rotation does not match the direction of the limit input.If axis rotation is reaching the mechanical limit without reversing direction, use the Support Tool to check whether the limit inputs are turning ON and OFF normally.Correct the limit input wiring.
22The limit input is wired incorrectly.Check the limit input wiring.Correct the limit input wiring.
23Origin search cannot be executed because the Unit is in Automatic Mode. (Excluding DATUM command)• Monitor the bit [Automatic Mode]. • Set the mode to Program Mode and forcibly set only the bit [Origin Search].Set the mode to Manual Mode and then execute Origin Search. (Change the ladder program.)
24Commands cannot be received from the ladder program because the operating mode of the MC Unit is Tool Mode.Check the operating mode with the Support Tool.Set the mode to RUN Mode or CPU Mode.
25Origin search cannot be executed.Another axis control bit is ON at the same time.• Check whether another axis control bit is ON at the same time. • Try executing Origin search using the Support Tool.Turn OFF the other axis control bit and then turn ON the bit [Origin Search]. (Change the ladder program.)
26Not entering the in-position range.• Is the MC Unit parameter's in-position range too narrow? • Is the Servo Driver gain too low?• Increase the MC Unit parameter's in-position range. • Increase the Servo Driver or MC Unit gain.
27The origin search creep speed is too fast.Check the origin search creep speed.Decrease the origin search creep speed.
28The parameters are set incorrectly.Upload and check the MC Unit parameters with the Support Tool.Set the parameters correctly, transfer them to the MC Unit, and write them to flash memory.
29The MC Unit is defective.Replace the MC Unit.
30The origin established by the origin search sometimes changes.There is some looseness in couplings or other mechanical connections.Check whether there is any deviation from the markings at the couplings between the motor and axes, or at any other connections.Tighten up the connections.
31There is no origin margin.Monitor the origin margin using the Support Tool. If the value is near the Servomotor's Encoder resolution x the ratio (1, 2, or 4), or near zero, a deviation of one motor revolution may occur at the time of the origin search due to even a minute change in the timing of sensor inputs.Remove the motor coupling and adjust it by about a 1/4 turn, so that the origin margin pulses will be about 1/2 of the Servomotor's encoder resolution x the ratio (1, 2, or 4), and then try executing the origin search again.
32Motor rotation is unstable.The parameters are set incorrectly.Check the MC Unit parameters with the Support Tool.Set the parameters correctly, transfer them to the MC Unit, and write them to flash memory.
33The Servo Motor power lines and encoder lines are wired incorrectly.Check the Servo Motor power lines and encoder lines.Correct the wiring.
34There is eccentricity in the couplings connecting the Servomotor axis and the mechanical system. There may be loose screws or load torque fluctuation due to the meshing of pulley gears.Check the machinery. Try turning the motor with no load (i.e., with the machinery removed from the coupling).Adjust the machinery.
35The gain adjustment is insufficient.• Execute Servomotor auto-tuning. • Manually adjust the Servomotor gain. • Adjust the servo parameters with the Support Tool.
36Motor rotation is unstable.The wrong Servomotor is selected (so it cannot be adjusted).Check the torque and inertia ratio and select another Servomotor.Change to a suitable Servomotor.
37The Servomotor bearings are damaged.Turn OFF the Servo Driver power. If the Servomotor has a brake, turn ON the brake power supply and release the brake, and then manually turn the motor's output shaft with the motor's power line disconnected (because the dynamic brake may be applied).Replace the Servomotor.
38The Servomotor windings are disconnected.With a tester, check resistance between the Servomotor's U, V, and W power lines. There should be a proper balance between the line resistances.Replace the Servomotor.
39Rotation is reversed.The Servo Driver is set for reverse rotation.Check the System Parameter setting using the Support Tool.Correct the setting for the direction of Servo Driver rotation.
40During an origin search: The origin proximity sensor polarity does not match the parameter setting (in the MC Unit) for the origin proximity input polarity.Check the parameter setting and the sensor polarity.Correct the parameter setting.
41During an origin search: The origin proximity input wiring is faulty.With the Support Tool, check whether the origin proximity input status is correct.Correct the origin proximity input wiring.
42The positioning completed signal is not output or is delayed.(The next operation cannot be started.)The in-position range set in the MC Unit parameters is too narrow, and the axis is not in the in-position range.(If it is not in the in-position range, the next operation cannot be started because the preceding operation is not completed.)Increase the in-position range set in the MC Unit parameters.
43The Servo Driver gain is too low.Adjust the Servo Driver gain and increase the MC Unit position loop gain.
44The axis is not in the in-position range due to external pressure applied when positioning is stopped.With the Support Tool, monitor the error counter and check whether the axis is in the in-position range.If positioning is stopped outside of the in-position range due to external pressure (occurs in pressing application, etc.), Increase the in-position range in the Motion program.
45There are unusual noises.The machinery is vibrating.Check for foreign objects in the machinery's moving parts, and inspect for damage, deformation, and looseness.Make any necessary repairs.
46The speed loop gain is insufficient.(The gain is too high.)Perform auto-tuning. Manually adjust (decrease) the gain.
47The wrong Servomotor is selected (so it cannot be adjusted).Check the torque and inertia ratio and select another Servo-motor.Change to a suitable Servomotor.
48There is eccentricity in the couplings connecting the Servomotor axis and the mechanical system.Adjust the mounting of the Servomotor and machinery.
49Vibration is occurring at the same frequency as the application frequency.Inductive noise is being generated.·Check whether the Servo Driver control signal lines are too long. ·Check whether the control signal lines and power lines are bundled together.·Shorten the control signal lines. ·Separate the control signal lines and the power lines. ·Use a low-impedance power supply for the control signal lines.
50The control signals are not properly grounded.·Check whether the control signal shield is properly grounded at the Servo Driver. ·Check whether the control signal lines are in contact with the ground.Correct the wiring.
51The motor axis is vibrating unsteadily.The gain adjustment is insufficient. (The gain is too low.)·Perform auto-tuning. ·Manually adjust (increase) the gain.
52The gain cannot be adjusted because the mechanical rigidity is too weak.This particularly tends to occur in systems with vertical axes, scalar robots, palletizers, and so on, which place a torsion load on the axes.·Increase the mechanical rigidity. ·Re-adjust the gain.
53The mechanical structure is producing stick slip (high-viscosity static friction).·Perform auto-tuning. ·Manually adjust the gain.
54The wrong Servomotor is selected (so it cannot be adjusted).Check the torque and inertia ratio and select another Servomotor.Change to a suitable Servomotor.
55The Servomotor or the Servo Driver is defective.Replace the Servomotor or the Servo Driver.
56There is slip-page in position-ing.The slippage is not constant. Malfunction due to noise.Is specified cable being used?Use specified cable.
57The shield is not properly grounded at the Servo Driver.Check the ground wiring.Correct the wiring.
58The cable between the MC Unit and the Servomotor is too long.The maximum cable length is 50 meters.
59The cable between the MC Unit and the Servo Driver is not separated from other power lines.Check whether the cable is separated from other power lines.Separate the cable from other power lines.
60There is malfunctioning due to noise from a welding machine, inverter, etc.Check whether there is a device such as a welding machine or inverter nearby.Separate the Unit from the noise source.
61There is slippage in the mechanical system.Check for slippage by marking the mechanical connections.Tighten the connections.
62Communications Alarm is generated.There is incorrect connection of communications cable between the MC Unit and MLK devices.Check the communications cable connection and breaking of wire.·Correct wiring of the communications cable. ·Replace the communications cable.
63The MC Unit cannot receive absolute data (when an abso-lute encoder is used).The Servo Driver's setup parameters are not correct.W Series: Turn Off (0) Servo Driver param-eter Pn002 digit No.2.
64The absolute value read at turning ON is dif-ferent from the one at turning OFF. (when an absolute encoder is used).There is mechanical slip-page.Check whether the motor turns while the power is OFF.
65The Servo Driver parameter settings are not correct.Check the Servo Driver parameters.Turn Off (0) Servo Driver param-eter Pn000 digit No.0 of the W ≈series
66The speed drops (comes to a temporary stop) during pass (continuous) operations.The minimum pass time is not assured.Calculate the travel time by dividing the travel distance by the speed, and check whether the minimum pass time is being satisfied.Calculate the minimum pass time plus the operations in progress, and adjust the target distance and speed so that the travel time will be at least that much.
67When the Motion Program is paused and then restarted, it starts over from the beginning instead of continuing from the pause.When the bit [Motion Program Start] is turned ON at the restart, the bit [Start Mode] is ‘0’ or ‘3’.Check the ladder program or perform a data trace.To resume program execution from the point where it was paused, make sure the bit [Start Mode] is either ‘1’ or ‘2’ before turning ON the bit [Motion Program Start].

11-2 Countermeasures

11-2-1 Error Diagnosis Function

  • The error diagnosis function stops the system if normal operations become difficult due to system hardware or software malfunction, or stops programs and other such operations from operating due to some other cause.
  • If an error occurs, LED output is generated, a four-digit hexadecimal alarm code is output to the words allocated in the CIO Area and system variable, and as a general rule, operation is stopped (by System stop, Execution stop, Deceleration stop, Emergency stop, or servo OFF).
  • The error that has occurred is stored in the system variable as the error log. But it is not backed up. To save the error log even after a restart, use the IORD instruction to read the error log from the CPU Unit and then it must be saved in the CPU Unit.

MC Unit errors are classified into two types: Alarms, and warnings. Refer to the following table for explanations of each type.

Error Classification

Error typeOperation when error occursServo OFFNotification methodClearing method
AlarmSystem stopServo OFFYesLED litSets alarm bit and alarm code in the allocated area.Alarm reset.Turn the power supply OFF, then ON again.(Restart)Replace the Unit.
Immediate stopDeceleration stopExecution stopNo· System variable· Error logNote But if it occurs when the power is turned ON, only method is the LED output.
WarningContinuesNoSets warning bit in the allocated area.Warning does not have to be reset.Cleared when the cause is removed.

Alarms

  • The alarm status is output as LED, Alarm bit, Alarm code, and Error log.
  • Alarms are categorized depending on the Alarm type and Alarm rank as shown below:

Alarm types

Alarms are categorized, depending on where they occurred, as shown below. The alarm code corresponding to the type is to be output:

Alarm typeDetailsAlarm code
Unit-related alarmAlarm related to the entire MC Unit0001h – 00FFh
Reserved---1001h – 10FFh
Motion task-related alarmAlarm related to motion tasks2001h – 20FFh
Axis-related alarmAlarm related to axes3001h – 30FFh
MLK Device alarmAlarm and warning detected in MECHATROLINK-II device Alarms and warnings are stored in the error log.4000h – 40FFh

The lower byte (rightmost two digits) indicates the alarm code for the MECHA-TROLINK-II device. Since there is an alarm code [00h] in the servo driver, [4000h] is considered to be the alarm.

Alarm Ranks

Alarms are also categorized, depending on what they stop, as shown below:

Stop RankGenerated AreaUnit status after occurrenceRecovery method
System stopAllAfter Servo OFF (if it is possible), system shuts down.Restart, turn power OFF then ON again, or replace the Module.
Servo OFFUnitServe OFF for all the axes.Remove the cause, and then reset the alarm.
Motion taskServo OFF for all the axes being used in the motion task.
Axis MLK deviceServo OFF only for the axis where the alarm was generated. If the axis is used in a motion task, stops the motion task. (Immediately stops the other axes).
Immediate stopUnitImmediate stop for all the axes.Remove the cause, and then reset the alarm.
Motion taskImmediate stop for all the axes being used in the motion task.
Axis MLK deviceImmediate stop only for the axis where the alarm was generated. If the axis is used in a motion task, stops the motion task. (Immediately stops the other axes).
Deceleration stopUnitDeceleration stop for all the axes.Remove the cause, and then reset the alarm.
Motion taskDeceleration stop for all the axes being used in the motion task.
Axis MLK deviceDeceleration stop only for the axis where the alarm is generated. If the axis is used in a motion task, stops the motion task. (Deceleration stop for the other axes).
WarningAllThe operation is continued.Remove the cause, and then reset the alarm. Note that, however, the following warnings do not require the alarm reset: ·Teaching warning ·Speed clamp warning ·Start warning ·Error counter warning

Note MLK device stands for the MECHATROLINK-II device.

Alarm Occurrence Sequence

When an alarm occurs, it is generated in the following sequence.

1,2,3...

  1. Task status

The bit [Motion task alarm] is turned ON, and the alarm code is set.

  1. Alarm identification data

The bit [Alarm Occurring] is turned ON, and the bit [Motion Task Alarm Occurring] is turned ON.

(Processing Image)

Note The following diagram shows the case where an alarm (nesting error) occurs in motion task 2.

Alarm Identification Data

OMRON CJ1W-MCH71 - Alarm Identification Data - 1

1,2,3...

  1. Axis status

The bit [Axis Alarm] is turned ON, and the alarm code is set.

  1. Motion task status

The bit [Motion Task Alarm] is turned ON, and the alarm code [2008h: Axis alarm generated] is set.

  1. Alarm identification data:

The bit [Alarm Occurring] is turned ON, the bit [Motion Task Alarm Occurring] is turned ON, and the bit [Axis Alarm Occurring] is turned ON.

(Processing Image)

Note The following diagram shows the case where the alarm [3002h: Positive direction over travel] occurs on the physical axis 5 when controlling the physical axes 4 to 6 with motion task 2.

OMRON CJ1W-MCH71 - 1,2,3... - 1

Warnings

Even, though warnings appear, they have no effect on system operations.
Warnings are output to the following bits:

WordNameProbable cause and remedy
n+15d03Teaching WarningIf occurred when setting the teaching conditions:· Teaching axes have not been specified. ([Teaching Axis Setting 1-16] = [Teaching Axis Setting 17-32] = 0) Set axes to be teaching objects appropriately.There are axes among the ones specified as teaching objects in [Teaching Axis Setting 1-16] and [Teaching Axis Setting 17-32] that have not been allocated. Check if the spec-ified axes have been allocated correctly.[Teaching Address] specified is outside of the position data range. Set the address within the range of "0 to 10239".· Adding the No. of axes specified in [Teaching Axis Setting 1-16] and [Teaching Axis Set-ting 17-32] to [Teaching Address] exceeds the position data range. Set the address so that it will not exceed "10239" even after the addition.If occurred when executing teaching:· [Teaching Execution] was turned ON without setting teaching conditions. Check if [Teaching Condition Setting Completed] is ON.The bit [Command Disabled/Enabled] for any of the axes specified in [Teaching Axis Setting 1-16] and [Teaching Axis Setting 17-32] is OFF (disabled), or the bit [No Origin] for any of the axes is ON (No origin has been defined). Check the bits and correct them as needed.Adding the No. of teaching axes to [Teaching Address Monitor] exceeds the position data range. Set the address so that it will not exceed "10239" even after the addition.
n+17d04:d n+24d04Speed ClampWarning(For each motion task)Executing override to the speed specified in a motion program caused the speed to exceed [P2AA01: Maximum rapid feed rate] of axis parameters; The speed is being lim-ited by the speed set in the parameter. Check if the override value is appropriate, or the setting of the maximum rapid feed rate is correct. (The operation does not stop.)
n+17d05n+24d05Start Warning(For each motion task)·A motion task was started when the bit [Deceleration Stop] or [Block Stop] had been ON. Check if the bits are OFF. ·A motion task was started with [Motion Program No.] other than 0 to 499. Check if [Motion Program No.] is within 0 to 499. ·The motion program specified with [Motion Program No.] does not exist. Create and download an appropriate program using the Support Tool, or check if the specified pro-gram No. is correct. ·The axis status bit [Command Disabled/Enabled] for the axis specified with PROG com-mand is OFF (Disabled). Check if the axis is in the command enabled state. ·The axis status bit [Axis Not Used/Used] for the axis specified with PROG command is ON (Used). Check if the other tasks being executed are using the axis. ·The axis status bit [Manual/Automatic Mode] for the axis specified with PROG com-mand is OFF (Manual). Check if the specified axis is in Automatic Mode. ·An alarm has occurred, or the unit status bit [External Forced Stop Request] is ON. Remove the cause of the alarm and reset the alarm.
x+32d08x+63d08Error CounterWarning(For each axis)·The error amount has exceeded the error counter warning value specified in the system parameter. Check if the specified error counter warning value is appropriate for the machine being used. (The operation does not stop.)
x+32d11x+63d11MECHATROLINKWarning(For each axis)·A warning has occurred on a MECHATROLINK slave. Check the applicable slave.

11-3 Error Indicators

The LED indicator at the top of the MC Unit's front panel indicates the following errors:

OMRON CJ1W-MCH71 - 11-3 Error Indicators - 1

11-3-1 Errors During Initial Processing

The following table shows the errors that occur during the MC Unit's initialization processing:

StatusLED: ON: Lit, OFF: Not lit, -: Not change, *: Custom
RUNERCERHER1ER2ER3ER4
Watchdog timer timeout errorOFFOFFOFFOFFOFFOFFOFF
Unit No. setting errorOFFOFFONOFFOFFOFFOFF
PLC Unit initial processing error
Other CPU error
FINS error during initial processing
FINS error during restoreOFFONOFFOFFOFFOFFOFF
Unit classification errorOFFONONOFFOFFOFFOFF
Hardware test error: FLASH errorOFFONOFFONOFFOFFOFF
Hardware test error: RAM errorOFFONOFFOFFONOFFOFF
Hardware test error: CPU errorOFFONOFFOFFOFFONOFF
Hardware test error: System software errorOFFONOFFOFFOFFOFFON

11-3-2 Errors During Normal Operation

StatusLED: ON: Lit, OFF: Not lit, -: Not change, *, Custom
RUNERCERHER1ER2ER3ER4
PLC WDT error--ONOFFOFFOFFOFF
PLC cyclic service monitor error--ON→OFF(Recover)----
Bus error (PC21 bus error)--ON----
Power failure (power failure provision)-------
CPU fatal error--ON----
CPU non-fatal error-------
Event transmission warning generated-------
Panic generated**-****
Unit level alarm generated-ON-ON---
Motion task level alarm generated-ON---ON-
Axis or MLK device slave node level alarm gen-erated-ON----ON
Normal operationONOFFOFFOFFOFFOFFOFF
System stopOFF------

Refer to the sections 11-4 Unit-related Alarm Codes to 11-6 Axis-related Alarm Codes for details on the alarm codes.

Among these alarm codes, the code of the alarm generated first will be output to n + 11 in the allocated bit area.

Unit-related Alarm Codes (Codes: 0001h to 00FFh)

When a unit-related alarm occurs, the following bits will indicate the status:

WordAddressName
n+12.00OB03000Alarm Occurring
n+12.01OB03001Unit Alarm Occurring
n+15.01OB03031Unit Alarm
m+38OW0310Unit Alarm Code

List of Alarm Codes

NameError logAlarm codeCause and remedyTimingRankReset
Error codeDetail code
Main board code error0370h0003h0003hSystem code area error on the main board.Any timeSystem stopDisabled
Main board RAM error0004h0004hRAM error in the main board.Any timeSystem stopDisabled
WDC error between the main board and sub-board.0005h0005hWDC error was generated between the main board and sub-board.Any timeSystem stopDisabled
Internal HW-WDT error0006h0006hInternal HW-WDT errorAny timeSystem stopDisabled
Sub- board code error0013h0013hSystem code area error on the sub-board.Any timeSystem stopDisabled
User program error0026h0026hUser program area error.Any timeSystem stopDisabled
CAM data error0027h0027hCAM data area errorAny timeSystem stopDisabled
PLC WDT error0001h0000h0030hWDT error on CPU Unit occurred. Follow the instructions in the appli-cable PLC manual.Any timeSystem stopDisabled
PLC cyclic ser-vice monitor error0002hMonitor Time [ms]0031hCPU Unit did not execute end refresh processing within cyclic service monitor time. Check end refresh prohibition in CPU system setup. If prohibited, cancel it and turn the power OFF once, and then ON again. Increase CPU Unit cyclic service monitor time and turn the power OFF once, then ON again.Any timeDeceleration stopDisabled
Bus error (PC21bus error)000Eh0000h0032hBus error occurred between CPU Unit and MC Unit.Any timeSystem stop (Including event)Disabled
CPU fatal error0015h0000h0033hCPU fatal error occurred. Follow the instructions in the appli-cable PLC manual.Any timeSystem stopDisabled
CPU non-fatal error0016h0000h---Follow the instructions in the appli-cable PLC manual.Any time------
Flash memory error0370h0040h0040hThe following data could not be written in the Flash memory. ·Protect data ·ABS origin position data ·System parameters ·Servo parameters ·Position data ·User program ·CAM data Try to save the data again. Replace MC Unit if this error persists after retrying several times.When FLASH savingDeceleration stopDisabled
Unit deceleration stop0041h0041hDeceleration stop input of MC Unit was turned ON. After confirming the safety in the surrounding area, turn OFF the bit [Deceleration Stop] and execute [Unit Alarm Reset].When deceleration stop is input.Deceleration stopEnabled
CPU memory error0044h0044hThe following error occurred between CPU Unit and MC Unit: ·This error occurs when custom data area or custom I/O area of MC Unit is allocated to CPU's EM area, and when the specified EM areas are overlapping in executing the file memory function of CPU Unit, or when restoring the power after allocating custom data area or custom I/O area to the EM area already specified with the file memory function. ·Release the file memory function of CPU Unit, correct the allocation of the area used for the file memory function so that it does not overlap with the area used for custom data area or custom I/O area of MC Unit and reset the alarm, or correct the allocation of the area used for custom data area or custom I/O area so that it does not overlap with the area used for the file memory function and restore the power.Any timeDeceleration stopEnabled

Motion task alarm codes are common for all tasks, but the alarm code output area is different for each task. The following are the alarms that occur in program execution.

Motion Task-related Alarm Code (Code: 2001h to 20FFh)

When a Motion task-related alarm occurs, the following bits will indicate the status:

WordAddressName
n+12.00OB03000Alarm Occurring
n+12.03OB03003Motion Task Alarm Occurring 1
n+12.10OB0300AMotion Task Alarm Occurring 8
n+17.00OB03400Motion task 1 Motion Alarm
n+24.00OB03470Motion task 8 Motion Alarm
m+42OW0360Motion task 1 Motion Task Alarm Code
m+70OW037CMotion task 8 Motion Task Alarm Code

List of Alarm Codes

NameError logAlarm codeCause and remedyTimingRankReset
Error codeDetail code
No Program0372h-0379h2001h2001hThe sub-program to be executed with GOSUB command does not exist. Create and download an appropriate program with the Support Tool, or check if the program No. specified by GOSUB is correct.When GOSUB is executed.Deceleration stopEnabled
Sub-program nesting error2002h2002hThere are six or more sub-program nesting levels. Check the applicable program and correct the nesting to five levels or less.When GOSUB is executed.Deceleration stopEnabled
Variable address error2003h2003hAttempted to access the addresses other than "PL0000 to PL27FF" when specifying position data indirectly. Check the applicable program and correct the position data area specified indirectly to PL0000 to PL27FF.When indirect specifi-cation is usedDeceleration stopEnabled
Divide-by-zero alarm2004h2004hZero division has occurred in an operation command. Check if the calculation formula or the assigned values are correct.When operation com-mand is executed.Deceleration stopEnabled
Operation overflow2005h2005hOperation result cannot be stored. Check if the calculation formula or the assigned values are correct.When operation com-mand is executed.Deceleration stopEnabled
Program error2006h2006hThe program to be executed is corrupted. Download the applicable program with the Support Tool, save it to the F-ROM, and restore the power. The followings can be the causes of the program destruction.Destruction of data in memory due to external noiseThe power of PLC (MC Unit) was turned OFF while writing to Flash memory was in progress.When a program is executed.Immedi-ate stopDisabled
Axis reservation disable0372h-0379h2007h2007hThe axis that was declared in a program could not be reserved.The operating mode is set to Manual Mode. Make sure the applicable axis is not in use, and switch to Automatic Mode.The axis is used in another program. Wait until the program is completed, or stop the program to start ≧another program.Axes to be used in subprogram are not reserved in the main program. Reserve all the axes to be used in the subprogram with PROG in the main program.The axis that has not been declared was selected. Check if the axes to be used in the program are specified correctly. If the specification is correct, declare the axes with PROG.In parallel execution, etc., a main program tried to use the axis already declared by a subprogram. Correct the program to operate the axis after the subprogram is completed.In parallel execution, etc., a subprogram tried to declare the axis already being operated by a main program. Correct the program to call the subprogram after the block currently using the axis is completed.When a program is executed.Deceleration stopEnabled
Axis alarm generated2008h2008hAn alarm has occurred in an axis controlled by a task. Remove the cause of the axis alarm, and reset the alarm.When a program is executed.Deceleration stopEnabled
Position specification error2009h2009hThe position specified with axis movement commands (except for CAM), axis operation commands, SYNCR, MOVEMODI, OFF-POS, and LATCH exceeded the allowable position range. Since the range of pulse unit system is expressed in 32-bit, the allowable range has to satisfy the following formula:-Command unit limit ≤Command unit system position ≤+Command unit limit Command unit limit [on machine] ≥2147483647 [on motor] ×P5AA04 [Command unit/1 machine rotation] × P5AA06 [on machine]9001h [No. of encoder pulses/1 motor rotation] × P5AA05 [on motor]Correct the applicable position to satisfy the formula above. When specifying with real numbers, check the setting value of the axis parameter [P5AA02: Position command decimal point position].With Traverse (MOVETRAV command): This error occurs when the operand "Winding axis rotations" = 0. Correct the program so that "Winding axis rotations" is not 0.When a command including an operand is executed.Deceleration stopEnabled
Speed specification error0372h-0379h200Ah200AhThe following operands have exceeded the allowable range:·F (MOVEL, MOVEC, MOVETRAV), V (MOVEI, MOVET), SPEED command. Correct the applicable operands. When specifying with real numbers, check the setting value of the task parameter [P00M10: Interpolation feed decimal point position].When a command including an operand is executed.Deceleration stopEnabled
Time specification error200Bh200BhThe following operands have exceeded the allowable range:·T (MOVET, CAM, SPEED, TORQUE, SPEEDDR, TORQUER, DWELL) Correct the applicable operands.·With Time-specified Positioning (MOVET command): [Speed of each axis] = Travel distance of each axis/Positioning time This error occurs when the speed specified by the above formula exceeds the axis-speed parameter [P2AA01: Maximum rapid feed rate]. Check if the setting of the parameter is correct, and if so, correct the program.When a command including an operand is executed.Deceleration stopEnabled
Number specification error200Ch200ChThe following operands have exceeded the range:·C (WORK, OFFPOS), E, S (CAM, CAM-BOX, FOR) Correct the applicable operands.·With CAM, CAMBOX: This error occurs when setting the operands as [Starting data number] = [Ending data number], or when setting the operands as [Starting data number] ≥ [Ending data number] in using global general variables or position data for cam data.·When using cam table for cam data, correct the program as [Starting data number] ≠ [Ending data number]. When using global general variables or position data, correct the program as [Starting data number] < [Ending data number].When a command including an operand is executed.Deceleration stopEnabled
Count specification error200Dh200DhThe following operands have exceeded the range:·L (MOVEC, MOVETRAV, FOR), N (PAR-ALLEL, SFTR, SFTL, XFER, CLEAR) Correct the applicable operands.·With PARALLEL: This error occurs when setting the value exceeding the Max. No. of branches for the unit (the value set in the system parameter [P00002: No. of parallel branches]). Either correct (increase) the system parameter [P00002: No. of parallel branches], or correct (decrease) the No. of branches of the PARALLEL command for the motion program.When a command including an operand is executed.Deceleration stopEnabled
Mode specifi-cation error0372h-0379h200Eh200EhThe following operand has exceeded the range. ·Q (MOVEC, MOVETRAV, MOVELINK, CAMBOX) Correct the applicable operands.When a command including an operand is executed.Deceler-ation stopEnabled
Other oper-and error200Fh200FhThe following operands have exceeded the range. ·K (CAM, CAMBOX) ·B (MOVELINK, CAMBOX, CONNECT, SYNC, ADDAX) ·TORQUE ·SIN, COS, ASIN, ACOS, SQT, LGN, BIN, BCD Correct the applicable operands.When a command including an operand is executed.Deceler-ation stopEnabled
---2010h2010h------------
Circular inter-polation travel distance over2011h2011hTravel distance specified in MOVEC is too great. ·The tangent arc length has exceeded 2147483647. Check the program and correct the setting value so that it will not exceed the allowable range. (When speci-fying with variables, check if the substitu-tion formula is correct.) ·The radius has exceeded 2147483647. Check the program and correct the setting value so that it will not exceed the allow-able range. (When specifying with vari-ables, check if the substitution formula is correct.)When MOVEC is executed.Deceler-ation stopEnabled
Circular inter-polation radius error2012h2012hThe following instructions have been given in MOVEC. In Radius specification: The radius is specified to 0. ·Check the program and correct the radius to the value larger than 0. (When speci-f-ing with variables, check if the substitution formula is correct.) ·In Center specification: The start or end point, and the center are at the same posi-tion. Check the program and correct it so that the start or end position are not on the center.When MOVEC is executed.Deceler-ation stopEnabled
Control mode error0372h-0379h2014h2014h·A position control command (MOVE, etc.) or speed control command (SPEED) was executed during Torque control (TORQUE). Correct the program so that position control commands or speed control command will not be executed during TORQUE execution. ·SPEED or TORQUE was executed during position control command execution. Correct the program so that SPEED or TORQUE will not be executed during position control command execution. ·Position control commands other than MOVE was executed during SPEED command execution. Correct the program so that any position control command other than MOVE will not be executed during SPEED command execution.When TORQUE/Position control command/SPEED is executed.Deceleration stopEnabled
---2015h2015h---------------
Same axis specification multiplicity2016h2016h·Multiple commands were executed on the same one axis using parallel branches. (Or when a main program is trying to use the axis being used by the subprogram called by the main program, etc.) Correct the program so that multiple commands are not executed on one axis from multiple rows in the program. ·Axis movement command was executed on the axis, which is in synchronous execution as a slave axis. Correct the program so that any axis movement command will not be executed during synchronization. ·The axis, which was specified as a slave axis has been a slave axis of the different type of synchronous command. Correct the program so that any slave axis is not shared between commands. ·When a command requiring a latch input was executed, and the latch range parameter is being written, another latch-requiring command was executed on the same axis. Correct the program so that any latch-requiring command will not be executed on the same axis, or the timings do not overlap.When a program is executed.Deceleration stopEnable
---2017h2017h---------------
Synchronous slave axis specification error2018h2018hThe axis that is specified as a slave axis has already been used as the master axis. When an axis is to be operated as a slave axis of an axis and the slave axis is to be used as a master axis of another axis, the program (to change the order of specifications) has to be arranged so that the axis is specified as a slave axis of an axis first, and then as a master of another axis.When synchronous command is executed.Deceleration stopEnabled
Parameter setting error0372h-0379h2019h2019h<PARAM>System parameters:·Attempted to change a parameter that cannot be changed after restoring the power.·Attempted incorrect parameter setting. Check the program so that correct values can be set. (When specifying with vari-ables, check if the substitution formula is correct.)Servo parameters:·Attempted to change a parameter that cannot be changed after restoring the power.·Attempted to set incorrect setting value·Attempted to set incorrect number.·Attempted to change parameter of other tasks or undeclared axes. Check and correct the program so that cor-rect values can be set. (When specifying with variables, check if the substitution formula is correct.)·Attempted to set servo parameters on virtual axes or I/O axes.Servo parameters cannot be set on virtual axes and I/O axes. Correct the program.<LATCH>·The contents of [900Ah: Positive latch enabled range] and [900Bh: Negative latch enabled range] in the motor parameters are not written correctly.After checking the applicable axis and if the motor model is correct, transfer the motor parameters and save them to F-ROM (when individual, specify servo parameter), and restore the power.<SPEED>·The contents of [900Dh: Position loop gain] and [900Eh: Position loop gain index] in the motor parameter are not written correctly.After checking the applicable axis and if the motor model is correct, transfer the motor parameters and save them to F-ROM (when individual, specify servo parameter), and restore the power.When PARAM,LATCH,SPEED are executed.Deceleration stopEnabled
Axis declaration error201Ah201AhAxis other than servo/virtual axis is included in the axis declaration.Check the parameter [P1AA02: MECHA-TROLINK-II device classification] of the applicable axis. If the setting of the parame-ter is correct, correct the program.When PROG is executed.Deceleration stopEnabled

Axis-related Alarm Code (Code: 3001h to 30FFh)

Axis related alarm codes are common for all axes, but the alarm code output area is different for each axis.

When an axis-related alarm occurs, the following bits will indicate the status:

WordAddressName
n+12.00OB03000Alarm Occurring
n+13.00OB03010Axis Alarm Occurring 1
n+14.15OB0302FAxis Alarm Occurring 32
x+32.00OB04400Axis 1 Axis Alarm
x+63.00OB045F0Axis 32 Axis Alarm
d+32OW0480Axis 1 Alarm Code
d+125OW04DDAxis 32 Alarm Code

List of Alarm Codes

NameError logAlarm codeCause and remedyTimingRankReset
Error codeDetail code
---037Ah-0399h3001h3001h------------
Over travel, positive direc-tion3002h3002hThe over travel signal in positive direction has turned ON during axis movement. After resetting the alarm, attempted to operate the axis in the positive direction with the positive direction over travel sig-nal ON. Move the axis in the negative direction manually.Any timeImmediate stopEnabled
Over travel, negative direction3003h3003hThe over travel signal in negative direction has turned ON during axis movement. After resetting the alarm, attempted to operate the axis in the negative direction with the negative direction over travel sig-nal ON. Move the axis in the positive direction manually.Any timeImmediate stopEnabled
Over travel, both direc-tions3004h3004hThe over travel signals in both directions have turned ON during axis movement or when the axis was about to move. After resetting the alarm, attempted to operate the axis with the over travel sig-nals in both directions ON. Check if the over travel signals for both directions are wired correctly.Any timeServo OFFEnabled
Software limit, positive direc-tion3005h3005hThe axis entered the software limit area in positive direction during axis movement with the origin defined. Check if the setting value of the axis parameter [P3AA02: Positive direction software limit] is correct. (The error may occur when executing circular interpolation right on the software limit values.) If the setting value is incor-rect, set a larger limit value. When the value is correct, correct the program or travel distance of the axis.Any timeDecelera-tion stopEnabled
Software limit negative direction037Ah-0399h3006h3006hThe axis entered the software limit area in negative direction during axis movement with the origin defined. Check if the setting value of the axis parameter [P3AA02: Negative direction software limit] is correct. (The error may occur when executing circular interpolation right on the software limit values.) If the setting value is incorrect, set a larger limit value. When the value is correct, correct the program or travel distance of the axis.Any timeDeceleration stopEnabled
Servo OFF3007h3007hThe axis that received a movement command is in Servo OFF state. (In operations with programs, this alarm will occur when the applicable axis is specified at the beginning of the block and a movement command is executed for the axis that is in Servo OFF state.) Switch the axis to Servo lock state.Servo OFF was executed for the axis receiving a movement command.Do not execute Servo Unlock during axis movement.When axis movement starts/ During axis movement.Servo OFFEnabled
Synchronous communications alarm300Ah300AhAn error was occurred in the MECHA-TROLINK synchronous communications. The followings are the possible causes:Disconnection, breakage of MECHA-TROLINK cableCheck the MECHATROLINK cable.Communications error caused by noise Remove the cause of the noise.When this error persists even after providing these remedies, the Driver (NS115) or MC Unit may be broken. Replace the broken one with a new unit.Any timeServo OFFEnabled
Communications alarm300Bh300BhDetected MECHATROLINK communications errors twice in a row. Or the No. of error detections specified in [P1AA06: MECHATROLINK-II communications error detection setting] has been exceeded. The followings are the possible causes:Disconnection, breakage of MECHA-TROLINK cableCheck the MECHATROLINK cable.Communications error caused by noise Remove the cause of the noise.When this error persists even after providing these remedies, the Driver (NS115) or MC Unit may be broken. Replace the broken one with a new unit.Any timeServo OFFEnabled
Command timeout037Ah-0399h300Ch300ChA MECHATROLINK command could not be completed within a fixed period of time (10 seconds). The followings are the possible causes:Disconnection, breakage of MECHAN-TROLINK cableCheck the MECHATROLINK cable.Communications error caused by noiseRemove the cause of the noise.When this error persists even after providing these remedies, the Driver (NS115) or MC Unit may be broken. Replace the broken one with a new unit.Any timeServo OFFEnabled
Absolute encoder error300Dh300DhData from the ABS encoder could not be processed normally.Initial multi-turn value exceeds the multi-turn limit.Set the same value in the driver parameter [Pn205: Multi-turn limit setting] and the motor parameter [900C: Multi-turn limit].After the setting is completed, restore the power, reset the alarm, and perform the origin setting.After origin setting, the following values related to B/A were changed.Note B = No. of encoder pulses × P5AA05A = P5AA04 × P5AA06B/A is integer calculation and the result is to be reduced.After the change was made (saving to F-ROM), restore the power, reset the alarm, and perform origin setting.The multi-turn limit value in the driver parameter or the motor parameter was changed after origin setting.After the change was made (saving to F-ROM), restore the power, reset the alarm, and perform origin setting. (When the multi-turn value of the driver parameter was changed, make sure to perform "Absolute encoder multi-turn amount setting change" on the driver.)Servo driver is set as an incremental encoder. Set the driver parameter Pn002 digit No. 2 to "0" (used as an absolute encoder) and restore the power.Disconnection, breakage of encoder cableCheck the encoder cable.Communications error caused by noiseRemove the cause of the noise.When this error persists even after providing these remedies, the encoder or MC Unit may be broken. Replace the broken one with a new unit.When synchronous communications startsServo OFFEnabled
Over travel already ON037Ah-0399h300Eh300EhThe limit switch in the direction of the search was already ON when a one direction-mode origin search was executed. Check the status of the limit switch in the origin search start direction. Also check and correct the origin search start position. (See 8-4 Origin Search Operations (page 536) for details.)In origin searchImmediate stopEnabled
Origin proxim-ity reverse alarm300Fh300FhThe limit reversal mode origin search cannot be performed because the limit switch in the direction of the search turned ON while the search was reversing. Check the status of the limit switch in the origin search start direction. And check and correct the positions of the origin proximity limit switch and the limit switch.In origin searchImmediate stopEnabled
Over travel reverse alarm3010h3010hThe limit reversal mode origin search cannot be performed because the limit switch or deceleration LS in the opposite direction of the search turned ON while the search was reversing due to over travel signal ON in the direction of the origin search. Check the status of the limit switch in the origin search start direction. And check and correct the positions of the origin proximity limit switch and the limit switch.In origin searchImmediate stopEnabled
Synchronous slave axis speed over3011h3011hWith synchronous commands (MOVELINK, CAMBOX, CONNECT,SYNC,ADDAX), the speed of the slave axis exceeded the speed specified in [P2AA01: Maximum rapid feed rate]. Check if the setting value in the parameter is correct. If it is correct, correct the program. With CAMBOX, check also the displacement of the CAM data.When a program is executedDeceleration stopEnabled
Excessive error alarm3012h3012hPosition error exceeded the setting value of the axis parameter [P3AA06: Position error alarm detection value]. Check if the set value is appropriate for the system configuration and correct it as needed. When the value is correct, check the follow-ings: ·Breakage of encoder cable ·Malfunction caused by noise ·Unadjusted servo system ·Unadjusted or unprepared machine sys-tem These causes are to be removed.Any timeServo OFFEnabled
MECHA-TROLINK-II slave axis error 13013h3013hAn error occurred on a MECHATROLINK-II slave axis. Check the MECHATROLINK slave of the applicable node No. and remove the cause of the error. Slave alarm codes are stored in the error log in the MC Unit.Any timeServo OFFEnabled
Axis classification error037Ah-0399h3015h3015hAttempted to execute a command that cannot be executed as an axis. (The command that requires an external signal (MOVEI, etc.) was executed on the virtual axis, or the winding axis of MOVETRAV is not set as an unlimited length axis, etc.)Correct the applicable parameters or program.When a command is executed.Deceleration stopEnabled
No origin proximity signal3016h3016hDuring an origin search in the limit reversal mode, there was no deceleration limit switch in between over travel of both directions.Provide the origin proximity limit switch, or check if the limit switches themselves or wiring is normal.In origin searchImmediate stopEnabled
Origin proximity and over travel simultaneously ON3017h3017hDuring an origin search, the deceleration limit switch and the over travel in direction of the search were turned ON simultaneously.Check if the origin proximity signal, or over travel signals for both directions are wired correctly.In origin searchImmediate stopEnabled
No origin signal3018h3018hDuring an origin search, the over travel signal turned ON while waiting for the origin signal (while waiting for the rise of phase-Z after the fall (ON to OFF) of the origin proximity limit switch).Check if the settings of the axis parameter [P4AA06: Origin determine signal] and the servo parameter [Pn511: Input signal select 5] are correct (if the applicable signal is enabled).If the settings are correct, check the followings:Problem on Phase-Z of the encoderBreakage of encoder cableToo small distance between the origin proximity limit switch and the limit switch These causes are to be removed.In origin searchImmediate stopEnabled
Excessive speed command037Ah - 0399h3019h3019hThe axis speed has exceeded maximum rapid feed rate during the following command execution: • MOVEL (Axes except for the one with the longest travel distance) • MOVEC (Linear axis: if not specified with the tangential speed of the circular interpolation portion.) • MOVETRAV (Traverse axis) • CAM Check if the speed set in [P2AA01: Maximum rapid feed rate] is correct. If it is not correct, set a higher speed. If it is correct, lower the feed rate of the program or lower the speed using override.When a program is executedDeceleration stopEnabled
Counter latch resource violation301Ah301AhWith DATUM, MOVEI, MOVELINK, CAM-BOX, SYNC, and LATCH commands, attempted to execute the functions simultaneously that require the counter latch. Check the axis specified for the Latch and correct the program so that there are no redundant specifications (executing LATCH command on the axis already executing LATCH command, executing LATCH command on the axis waiting for the synchroni-zation start conditions to be satisfied, or etc.).When a command that needs counter latch function is executedDeceleration stopEnabled
Gear ratio range error3040h3040hRelations between the No. of encoder pulses and command unit is not normal. When the following expression is not satisfied, the error will occur: 1/7FFFFFFh ≤ B/A ≤ 7FFFFFFH Note B = No. of encoder pulses × P5AA05 A = P5AA04 × P5AA06 B/A is integer calculation and the result is to be reduced. Set the parameters so that the formula above is satisfied.Real axis: When connected Virtual axis: When power is ONServo OFFDisabled

11-7 MLK Device Alarm Codes

MLK (MECHATROLINK-II) device alarm codes are recorded in the following two stages.

1,2,3... 1. The generic alarm code for MLK devices, 3013h, is set along with the information in the following table.

WordAddressName
n+12.00OB03000Alarm Occurring
n+13.00OB03010Axis Alarm Occurring 1
n+14.15OB0302FAxis Alarm Occurring 32
x+32.00OB04400Axis 1 Alarm
:::
x+63.00OB045F0Axis 32 Alarm
d+32OW0480Axis 1 Alarm Code (3013h)
:::
d+125OW04DDAxis 32 Alarm Code (3013h)
  1. A "detail code" is then stored in the error log to provide details for the MLK device.
NameError logCause and remedyTimingRankReset
Error codeDetail code
Depending on the device037Ah to 0399h4000h + Alarm code of each deviceDepending on the device. Follow the directions of the applicable manuals.Depending on the deviceDepending on the deviceEnabled
  • Error Codes

Error code 037Ah is for the MLK device allocated physical axis 1, and error code 0399h is for the MLK device allocated physical axis 32.

  • Detail Codes

The alarm code for each device plus 4000h is stored for the detail code.

For details of the alarm codes, refer to the following manuals of Yaskawa Electric Corporation.

  • -II Series SGDH MECHATROLINK-II Application Module User's Manual, Model: JUSP-NS115 (Manual No. SIEPC71080001*)
  • Machine Controller MP900 Series MECHATROLINK System User's Manual (Manual No. SIEZ-C887-5.1)

If the axis for which the error occurred is for a Servo Driver, the Servo is turned OFF to stop the axis. Alarms that cannot be reset on the slave side will be detected again even if the Alarm Reset Bit is used to reset the alarm.

11-8 Servo DriverWarnings

The W-series Servo Drivers provide various warnings. The warning, causes, and corrections are given in the following table.

DisplayNameCause and correction
A.91OverloadThis warning is given before an overload alarm (A.71 or A.72) is reached. An alarm is likely to occur if operation is continued without any changes. Check the load to see if it is suitable.
A.92Regenerative overloadThis warning is given before a regeneration overload alarm (A.32) is reached. An alarm is likely to occur if operation is continued without any changes. Check the load to see if it is suitable.
A.94Data setting warningA setting was made out of range using MECHATROLINK-II communications. Check the data number and data setting range specified with the PARAM command or the Support Tool running on a computer.It is possible that settings for the Servo Driver parameter, option monitor, are incorrect. For a W-series Servo Driver, check that Pn813 = 0032 (hex). For a Servo Driver with built-in communications, check that Pn824 = 0023 (hex) and Pn825 = 0024 (hex). If they are not, correct the values.
A.95Command warningThe command received via MECHATROLINK-II communications could not be executed under the current conditions. This warning will occur under conditions like the following:An attempt was made to lock the servo when the Servo Driver's main circuit was OFF.An attempt was made to read or write Servo Driver parameters using CX-Motion-MCH while communications were in progress for the Digital Operator or W-Mon.The same station address (node address) is set for more than one node.Power to the main circuit was turned OFF during positioning.
A.96Communications warningA communications error has occurred. If a communications warning occurs twice consecutively, a communications alarm (A.E6) will occur. This warning will occur under conditions like the following:The same station address (node address) is set for more than one node.Vibration, Shock, or Peripheral Device NoiseTake the following countermeasures against vibration, shock, and peripheral device noise.Vibration/Shock CountermeasuresMake sure the communications connector is inserted properly.Check for vibration and shock in the equipment or peripheral devices when A.96 occurs. If there is any suspect vibration or shock, take measures in the equipment so that the vibration or shock is not transmitted to the motion control system.Remove any stress being applied to the cables in bundling or wiring them.Noise CountermeasuresAn noise-isolating transformer is installed for each system to separate power supply circuits so that noise does not affect other systems. Separate power supplies are installed as follows:Do not use a power supply for more than one system.Use wiring with minimal voltage drop from the power reception system to the equipment.Wire the system using separate paths from other systems.Use an independent ground for the secondary side of the transformer with an independent ground pole.Separate power lines as far as possible from signal lines to prevent inductive noise (30 cm min. recommended).Place power lines in a metal conduit pipe and ground the pipe.Use shielded cables, twisted-pair cables, etc., for signal lines and keep wiring distances as short as possible.Do not bundle power lines together with signal lines or run them parallel with signal lines.Ground the common of the shield in shielded cables at only one point. Do not create loops by connecting more than one point.Ground to 100 Ω or less.To reduce common impedance, connect ground wires from the equipment to the ground plate in star connections.Do not use crossover wiring to wire grounds.

11-9 Error Log

Up to twenty errors detected and notified on the MC Unit can be stored in the system variable in the MC Unit as the error log.

The system variables (error log) will be cleared when the power is restored or the Unit is restarted. To store the error log, use the IORD instruction to make the CPU Unit read and store it.

The error log is composed of 2 words for the number of stored records, and 120 (6 words × 20 error records) words.

11-9-1 Area Configuration

Variable addressesIORD addressesNameDescription
SW00103008hError log: No. of stored recordsOutputs the number of errors occurred after the power ON. 0-20
SW0011Error log: No. of actual recordsOutputs the number of errors occurred after the power ON. 0-64000
SW00123009hError log 1: Error codeOutputs the code of the error.
SW0013Error log 1: Detailed dataOutputs detailed data of the error.
SW0014300AhError log 1: Minute, SecondOutputs minutes and seconds of the time when the error was generated.
SW0015Error log 1: Day, HourOutputs days and hours of the time when the error was generated.
SW0016300BhError log 1: Year, MonthOutputs year and month of the time when the error was generated.
SW0017ReservedReserved
:
:
SW00843042hError log 20: Error codeOutputs the code of the error.
SW0085Error log 20: Detailed dataOutputs detailed data of the error.
SW00863043hError log 20: Minute, SecondOutputs minutes and seconds of the time when the error was generated
SW0087Error log 20: Day, HourOutputs days and hours of the time when the error was generated.
SW00883044hError log 20: Year, MonthOutputs year and month of the time when the error was generated.
SW0089ReservedReserved
  • Errors are recorded up to 20 starting from the oldest error stored as Error log 1.
  • From the 21^st error on, the oldest error is deleted and the newest is overwritten. For example, the 21^st error is stored in the Error log 1, the 22^nd error is stored in the Error log 2, and so on.
  • The newest error is stored in the Error log with the number indicated by the remainder of dividing SW0011: Error log No. of actual records by 20.

Error code

The error codes are classified into the CPU errors and MC Unit errors.

CPU Error Codes

Error code (Hex)Error nameDetailed codeCause
1st byte2nd byte
0001CPU WDT error0000The watchdog timer alarm occurred on CPU Unit.Provide remedy following instructions in the manual of the CPU Unit.
0002CPU cyclic service monitor errorMonitor time (ms)Time out of the cyclic monitor time.The followings are the possible causes:End refresh is prohibited on CPU Unit.The scan time of CPU Unit is too long.Remedies:Enable end refreshSet the longer cyclic monitor time.
000ECPU bus error0000CPU Unit Bus error
0015Fatal CPU error0000Fatal error occurred on CPU Unit.Check if MC Unit is mounted on the backplane correctly. If the error persists even after the checking and correction, CPU Unit or the back-plane may be broken. Replace it as needed.
0016Non-fatal CPU error0000Non-fatal error occurred on CPU Unit.Provide remedy following instructions in the manual of CPU Unit.
0108Routing errorIn a command:When SNA < 80 HexD7:OFFD6 to D0:SNSA> = 80HexD7:OFFD6 to D0:0In a response:When DNA<80HexD7:OND6 to D0:DNADNA> = 80HexD7:OND6 to D0:0D7 to D0:SA1D7 to D0:SNSA(= 80Hex)D7 to D0:DA1D7 to D0:DNA(DNA> = 80Hex)Transfer not possible because there is no Unit for the specified unit numberNormally, this error does not occur. If it should occur, report to OMRON.
010DRouting errorTransfer not possible because the destination address in the routing table has not been set.Normally, this error does not occur. If it should occur, report to OMRON.
010ERouting errorTransfer not possible because of a routing table error.Normally, this error does not occur. If it should occur, report to OMRON.
0118Incorrect packet errorAn incorrect packet has been transferred.Normally, this error does not occur. If it should occur, report to OMRON.
0124Routing errorRouting not possible because the maximum frame length has been exceeded.Normally, this error does not occur. If it should occur, report to OMRON.
0601Panic generatedPanic dataSet if trap processing has been executed.Normally, this error does not occur. If it should occur, report to OMRON.

MC Unit Error Codes

In the detailed codes of each error, the alarm code of each error is set. Therefore, all the alarms will be stored in the error log.

Error code (Hex)Error nameDetailed codeCause
1st byte2nd byte
0370Unit-related alarmCode of the alarm that has occurredAn alarm related to the Unit has occurred. The same remedy of the corresponding alarm code should be provided.
0371Reserved
0372Motion task 1 AlarmCode of the alarm that has occurredAn alarm related to motion task 1 has occurred. The same remedy of the corresponding alarm code should be provided.
0373Motion task 2 AlarmCode of the alarm that has occurredAn alarm related to motion task 2 has occurred. The same remedy of the corresponding alarm code should be provided.
::Code of the alarm that has occurred:
0379Motion task 9 AlarmCode of the alarm that has occurredAn alarm related to motion task 8 has occurred. The same remedy of the corresponding alarm code should be provided.
037AAxis 1 AlarmCode of the alarm that has occurredAn alarm related to axis 1 has occurred. The same remedy of the corresponding alarm code should be provided.
037BAxis 2 AlarmCode of the alarm that has occurredAn alarm related to axis 2 has occurred. The same remedy of the corresponding alarm code should be provided.
::Code of the alarm that has occurred:
0398Axis 31 AlarmCode of the alarm that has occurredAn alarm related to axis 31 has occurred. The same remedy of the corresponding alarm code should be provided.
0399Axis 32 AlarmCode of the alarm that has occurredAn alarm related to axis 32 has occurred. The same remedy of the corresponding alarm code should be provided.

SECTION 12

Maintenance and Inspection

This section describes the maintenance and inspection procedures required to keep the CJ1W-MCH71 and CS1W-MCH71 Motion Control Units in optimum condition.

12-1 Routine Inspection 660

12-1-1 Inspection Points 660
12-1-2 Handling Precautions 661
12-1-3 Procedure for replacing an MC Unit. 661
12-1-4 Procedure for replacing a Servo Driver. 662
12-1-5 Procedure for replacing the NS115 662

12-1 Routine Inspection

In order for your MC Unit to continue operating at optimum condition, periodic inspections are necessary.

12-1-1 Inspection Points

The main components of the Unit are semiconductors and have a long service life, but depending on the operating environment, there may be more or less deterioration of these and other parts. A standard inspection schedule is once every six months to one year. More frequent inspections may be advisable depending on the operating environment. Maintain the inspection schedule once it has been set. Checks to be sure that the power supply, ambient temperature, humidity, and other specifications are within the specifications. Be sure that these are no loose screws and that all battery and cable connections are secure. Clean any dust or dirt that has accumulated.

Periodic Inspection Items

No.ItemInspection pointsCriteriaRemarks
1I/O Power SupplyMeasure the voltage variations at the I/O power supply terminal block. Do they meet the standard?DC24V: DC21.6 to 26.4VWith a voltage tester, check between the terminals and make sure that the power supply falls within the acceptable range.
2Environment conditionsIs the ambient temperature within the acceptable range? (When used in a panel, the ambient temperature inside the panel must be checked.)0-55 degrees CelsiusWith a thermometer, check the ambient temperature inside the panel and make sure that it falls within the acceptable range.
Is the ambient humidity within the acceptable range? (When used in a panel, the ambient humidity inside the panel must be checked.)10 to 90%RH (with no condensation)With a hydroscope, check the ambient humidity inside the panel and make sure that it falls within the acceptable range, and check if there is possibility of condensation due to sudden temperature change.
Is the Unit exposed to direct sunlight?It must not be exposed to direct sunlight.Shield the Unit from direct sunlight.
Is there any accumulation of dust (especially iron dust) or salts?There must be none of these present.Remove any accumulation of dust (especially iron dust) or salts and protect against them.
Is the Unit exposed to any spray of water, oil, or chemicals?It must not be exposed to any of these.Protect the Unit from water, oil, and chemicals.
Is the location subject to corrosive or flammable gases?The Unit must not be exposed to these.Check for smells or use a gas sensor.
Is the location subject to shock or vibration?The amount of shock or vibration must be within the acceptable ranges given in the specifications.Install a cushion or other device to reduce shock and vibration.
Is the location near any source of noise?There must be no noise.Move the noise source away from the Unit or apply countermeasures.
3Installation and wiringIs the MC Unit securely mounted?There must be no looseness.With a Phillips screwdriver, tighten all mounting screws.
Are the cable connectors properly inserted and locked?Carefully insert and lock all cable connectors.
Are there any loose screws in the external wiring?With a Phillips screwdriver, tighten all screws in the external wiring.
Are any crimp terminals for external wiring too close together?There must be sufficient space between them.Do a visual check and separate the terminals as required.
Are any external cables about to break?There must be no external abnormalities.Do a visual check, and connect or replace cables as required.

Required Tools

Required tools

  • Phillips screwdriver
  • Voltage tester or digital voltage meter
  • Industrial alcohol ad clean cotton cloth

Equipment that may be required depending on the case

  • Oscilloscope
  • Synchoscope
  • Thermometer, hydrometer

12-1-2 Handling Precautions

  • Turn OFF the power before replacing the Unit.
  • If a Unit is found to be faulty and is replaced, check the new Unit again to ensure there are no errors.
  • When returning a faulty Unit for repair, make a detailed record of the Unit's malfunction and take it together with the Unit to your nearest OMRON office or sales representative.
  • If a contact is not good, put some industrial alcohol on a clean cotton cloth and wipe the surface. After doing this, install the Unit.
  • Before restarting operation, transfer the required programs, position data, and system parameters to the MC Unit that was changed, and save them to the flash memory.

12-1-3 Procedure for replacing an MC Unit

Follow the procedure below when it is necessary to replace an MC Unit.

1,2,3...

  1. Make a note of the unit number of the MC Unit to be replaced.
  2. To retain the status and settings of the MC Unit that is to be replaced, execute the backup operation of the CPU Unit to save the MC Unit's data, parameters, or programs into a memory card. For the operation procedure, refer to the SYSMAC CS/CJ Series Programmable Controllers Programming Manual (W394).
  3. Turn OFF the power supply.
  4. To facilitate rewiring, carefully label the cables that are to be disconnected.
  5. Replace the MC Unit, and reconnect the wiring as before.
  6. Set the unit number for the MC Unit.
  7. Turn ON the power supply to the PLC.

  8. Read the data, parameters, or programs that are saved in the memory card to the MC Unit through the CPU Unit's backup operation.

  9. Turn OFF the power supply to the PLC.

The replacement of the MC Unit is completed.

12-1-4 Procedure for replacing a Servo Driver

Follow the procedure below when it is necessary to replace a Servo Driver.

1,2,3... 1. Turn OFF the PLC and the Servo Driver.

  1. To facilitate rewiring, carefully label the cables that are to be disconnected.
  2. Replace the Servo Driver, and reconnect the wiring as before.
  3. Turn ON the Servo Driver and PLC.
  4. Set the bit [Servo Parameter Save] ON using the Programming Console or the ladder program on PLC to save servo parameters in the MC Unit into the Servo Driver.
  5. Turn OFF the PLC and the Servo Driver.

The replacement of the Servo Driver is completed.

12-1-5 Procedure for replacing the NS115

Follow the procedure below when it is necessary to replace the NS115.

1,2,3... 1. Turn OFF the PLC and the Servo Driver.

  1. To facilitate rewiring, carefully label the cables that are to be disconnected.
  2. Replace the NS115, and reconnect the wiring as before.
  3. Turn ON the Servo Driver and PLC.
  4. Turn ON the bit [Servo Parameter Save] using the Programming Console or the ladder program on PLC to save NS115 parameters in the MC Unit into the new NS115.

The Servo Driver parameters will also be transferred from the MC Unit and saved at this time.

  1. Turn OFF the PLC and the Servo Driver.

The replacement of the NS115 is completed.

Appendix A

Performance

ItemPerformance (ms)Description
Power ON startup timeApproximately (13 + 0.1 × No. of physical axes) × 1000Time from turning ON the power until the MC Unit becomes ready to accept manual operation commands, such as Servo Lock commands. Virtual axes are not included in the physical axes.
PLC scan timeTcCycle time of the PLC
Unit cycleTm = 1, 2, 3, 4, 6, or 8This is the time required to execute a motion task when there is only one motion task. Refer to Calculation Method for Unit Cycle on page 665.
Communications cycleTs = 1, 2, 3, or 4Communications cycle of MECHATROLINK-II. Refer to Calculation Method for Communications Cycle on page 665.
Cycle time extension timeNo. of motion tasks × 6 × 0.001 + No. of axes × 8 × 0.001 + No. of allocated general I/O words × 0.001 + 0.6The cycle time is extended by this amount of time for each MC Unit mounted to the same PLC.
Servo command response time•W Series + NS115 Td = 0.625 •W Series with built-in MECHATROLINK-II Td = 0.425Time required before outputting current to the motor after the Servo Driver receives a command via MECHATROLINK-II.
Operation startup time for automatic operationMin.: Tc + Tm + 2Ts + Td Max.: 2Tc + 3Tm + 2Ts + TdTime from enabling the start signal allocated to an Input Unit of the PLC until outputting current to the Servo Driver when there is only one motion task and all axes are being operated.
Operation startup time for manual operationMin.: 0.7 + Tm + 2Ts + Td Max.: Tc + 3Tm + 2Ts + TdTime from turning ON the start bit (JOG bit) from a ladder program in the PLC until outputting current to the Servo Driver.
Offset per axis (interpolation, independent operation)0• Time offset caused when interpolation is performed with one motion task. There is no offset between axes. • Time offset caused when motion tasks with one axis each are started simultaneously. There is no offset between axes.
Status refresh offset per axis0Offset between refresh cycles between axes in refreshing the status of the controlled axes (present position, speed, input signals, etc.). The status of all axes is always refreshed at the same time, so there is no offset.
Minimum operation timeTmMinimum operation time required to stay in Pass Mode. The same as the Unit Cycle.
Minimum traverse reversal timeTmMinimum time required for reversal operation of traverse command. The same as the Unit cycle.
External input response time (Unit Built-in general input)Tm or lessTime from accepting the Unit built-in general input until it is reflected to input variables. It is less than Unit cycle.
External input response time (Unit Built-in deceleration stop input)Min.: 2Ts + Tm + Td Max.: 2Ts + 2Tm + TdTime from receiving deceleration stop input until current is output to the Servo Motor.
External input response time (CW/CCW limit origin proximity input)Min.: 4Ts + 2Tm + Td Max.: 4Ts + 3Tm + TdTime from when the Servo Driver detects the input until current is output to the Servo Motor.
Slave input response time (MECHA-TROLINK slaves)Min.: 4Ts + 2Tm + TdMax.: 4Ts + 3Tm + TdTime from when a signal is input to the slave I/O Unit and the I/O Unit reads the input until current is output to the Servo Motor.
Feedback position synchronization delay (MECHATROLINK slaves)4Ts + 2Tm + TdTime until current is output to the Servo Motor of the slave axis when synchronizing the MECHA-TROLINK slave feedback position.
Counter latch startup time when start position and end position are specified·When Tm = 1 or 2Min.: 3Ts + 5Tm + 104Max.: 3Ts + 5Tm + 124·When Tm = 3 to 8Min.: 3Ts + 5Tm + 144Max.: 3Ts + 5Tm + 164Time until a counter latch can be executed after starting execution of a LATCH command. Refer to Calculation Method for the Counter Latch Startup Time on page 666.
Counter latch startup time when start position and end position are not speci-fied3Tm + 3Ts + 4Time until a counter latch can be executed after starting execution of a LATCH command. Refer to Calculation Method for the Counter Latch Startup Time on page 666.
PARAM command execution time for Servo Driver parameters·When Tm = 1 or 2Min.: 2Tm + 60Max.: 2Tm + 80·When Tm = 3 to 8Min.: 2Tm + 80Max.: 2Tm + 100Decimal fractions in division results are rounded up.Time required to complete PARAM command execution when using the PARAM command to change Servo Driver parameters.
PARAM command execution time for other parametersMin.: 2Tm + 20Max.: 2Tm + 40Decimal fractions in division results are rounded up.Time required to complete PARAM command execution when using the PARAM command to change parameters other than Servo Driver parameters.
IORD/IOWR instruction execution time for Servo Driver parameters·When Tm = 1 or 2Min.: 2Tm + Tc + 60.7Max.: 4Tm + 3Tc + 80·When Tm = 3 to 8Min.: 2Tm + + Tc + 80.7Max.: 4Tm + 3Tc + 100Decimal fractions in division results are rounded up.Time required to complete PARAM command execution when using the IORD/IOWR instruc-tion to transfer Servo Driver parameters.
IORD/IOWR instruction execution time for other parametersMin.: 2Tm + Tc + 20.7Max.: 4Tm + 3Tc + 40Decimal fractions in division results are rounded up.Time required to complete PARAM command execution when using the IORD/IOWR instruc-tion to transfer parameters other than Servo Driver parameters.
SPEED instruction execution time·When Tm = 1 or 2Min.: 3Tm + 60Max.: 3Tm + 80·When Tm = 3 to 8Min.: 3Tm + 80Max.: 3Tm + 100Decimal fractions in division results are rounded up.Time required to output a speed command in the direction of the specified speed command when changing the speed by executing the SPEED instruction (including execution while the SPEED instruction is already being executed).

Processing Cycle of MC Unit

The MC Unit has both a control cycle for the entire Unit and a communications control cycle. The system software in the MC Unit calculates each control cycle, and it operates using a Unit cycle: communications cycle ration of 1:1 or 2:1.

The calculation method for each control cycle is described below.

  • The Unit cycle is calculated.
  • The Communication Cycle is calculated.

  • The ratio between the Unit cycle and communications cycle is adjusted.

Calculation Method for Unit Cycle

Basic formula for calculating Unit Cycle is shown below:

Unit Cycle [ s] = (85× No. of axes) ^+ (120× No. of motion tasks × No.of parallel branches) ^+ (0.3× No. of general allocated words) +200 - - - (1)

  • No. of axes: No. of axes allocated in [P1AA01:Physical axis setting] (Sum of virtual and actual axes)
  • No. of Motion tasks: P00001 [No. of Motion tasks]
  • No. of parallel branches: P00002 [No. of parallel branches]
  • No. of general allocated words: No. of Allocated words to be used as general purpose I/O (Sum of inputs and outputs)

Note for P00003 [Unit Scan time]

When P00003 [Unit Scan time] is greater than the result of the formula (1), the formula (2) below is to be used. Unit Cycle [ s] = P00003 × 1000 - - - (2)

Determining Unit Cycle

The Unit Cycle can be determined by rounding up the Unit Cycle [μs] that was found using formula (1) or (2) to 1 ms, 2 ms, 3 ms, 4 ms, 6 ms, or 8 ms.

If the unit cycle time exceeds 8 ms, 8 ms is set.

Calculation Method for Communications Cycle

Basic formula for calculating Communications Cycle is shown below:

Communications Cycle [ s] = ((No. of allocated nodes + No. of Retries) × 102.7 + 19.2) × 1.1 - - (3)

  • No. of Allocated Node: No. of MECHATROLINK-II slaves (only physical axes) allocated in [P1AA01: Physical Axis Setting]
  • No. of Retries: No. of retries specified in [P00009: MECHATROLINK No. of retrial nodes setting] (= 0-7).

If the Communications cycle was less than 1ms, the formula (4) below is to be used.

Communications cycle [ s] = 1000 - - (4)

Determining Communications Cycle

The Communications Cycle can be determined by rounding up the Communications Cycle [μs] that was found by the formula (3) or (4) to 1 ms, 2 ms, 3 ms, or 4 ms.

If the communications cycle time exceeds 4 ms, 4 ms is set.

Note The formula used in this section applies when P00004 bit 09 is 1 for a CJ1W-MCH71 or CS1W-MCH71 Motion Control Unit with unit version 3.0 or later. If the unit version is 2.0 or earlier, or the unit version is 3.0 or later but P00004 bit 09 is 0, the following formula applies.

Unit cycle [ s] = (115.0× Number of axes) ^+ (165.0× Number of motion tasks × Number of parallel branches) ^+ (0.3× Number of general allocated words) ^+ 350.0Communications cycle [ s] = ((No. of allocated nodes ^+ No.of Retries) × 133.3 + 26.2)× 1.1

Adjusting the Unit Cycle and Communications Cycle

Determine the combination of the Unit Cycle and Communications Cycle using the following table:

Communications cycleUnit cycle
1 ms2 ms3 ms4 ms*16 ms8 ms
1 ms1 ms: 1 ms2 ms: 1 ms3 ms: 3 ms4 ms: 2 ms6 ms: 3 ms8 ms: 4 ms
2 ms2 ms: 2 ms2 ms: 2 ms3 ms: 3 ms4 ms: 2 ms6 ms: 3 ms8 ms: 4 ms
3 ms*23 ms:3 ms3 ms:3 ms3 ms:3 ms4 ms:4 ms*36 ms:3 ms8 ms:4 ms
4 ms4 ms:4 ms4 ms:4 ms4 ms:4 ms4 ms:4 ms8 ms:4 ms8 ms:4 ms

Example: If the unit cycle time calculated under Calculation Method for Unit Cycle is 4 ms (1) and the communications cycle time calculated under Calculation Method for Communications Cycle is 3 ms (2), the MC Unit processing time, which combines the unit cycle time and communications cycle time, would be 4 ms:4 ms (*3).

Calculation Method for the Counter Latch Startup Time

Basic formula for calculating the counter latch startup time is shown below:

1. When Latch Starting and Target Positions Are Specified

When Unit Cycle = 1 ms or 2 ms:

[(20ms / Tm)× 5 + 5]× Tm + Ts× 3 + 4ms to [(20ms / Tm)× 6 + 5]× Tm + Ts× 3 + 4ms

When Unit Cycle = 3 ms, 4 ms, 6 ms, or 8 ms:

[(20ms / Tm)× 7 + 5]× Tm + Ts× 3 + 4ms to [(20ms / Tm)× 8 + 5]× Tm + Ts× 3 + 4ms

Note Round up the figures below the decimal place of the value found by calculations.

According to the calculation methods above, the counter latch startup time will be as follows:

  • Unit Cycle = 1 ms: Communication Cycle = 1 ms 112 ms to 132 ms
  • Unit Cycle = 2 ms: Communication Cycle = 1 ms 117 ms to 137 ms
  • Unit Cycle = 2 ms: Communication Cycle = 2 ms 120 ms to 140 ms
  • Unit Cycle = 3 ms: Communication Cycle = 3 ms 175 ms to 196 ms
  • Unit Cycle = 4 ms: Communication Cycle = 2 ms 170 ms to 190 ms
  • Unit Cycle = 4 ms: Communication Cycle = 4 ms 176 ms to 196 ms
  • Unit Cycle = 6 ms: Communication Cycle = 3 ms 211 ms to 235 ms
  • Unit Cycle = 8 ms: Communication Cycle = 4 ms 224 ms to 248 ms
  • Unit Cycle = 8 ms: Communication Cycle = 8 ms 236 ms to 260 ms

2. When Latch Starting and Target Positions Are Not Specified

Tm×3+Ts×3+4ms

Note Round up the figures below the decimal place of the value found by calculations.

According to the calculation methods above, the counter latch startup time will be as follows:

  • Unit Cycle = 1 ms: Communication Cycle = 1 ms 10 ms
  • Unit Cycle = 2 ms: Communication Cycle = 1 ms 13 ms
  • Unit Cycle = 2 ms: Communication Cycle = 2 ms 16 ms
  • Unit Cycle = 3 ms: Communication Cycle = 3 ms 22 ms
  • Unit Cycle = 4 ms: Communication Cycle = 2 ms 22 ms
  • Unit Cycle = 4 ms: Communication Cycle = 4 ms 28 ms
  • Unit Cycle = 6 ms: Communication Cycle = 3 ms 31 ms
  • Unit Cycle = 8 ms: Communication Cycle = 4 ms 40 ms

Appendix B

Main Parameter Settings when Connecting

W-series Servo Driver with Built-in

This section describes the parameters that must be set when using the W-series R88D-WN□-ML2 Servo Driver with Built-in MECHATROLINK-II Communications.

For a W-series R88D-WN□-ML2 Servo Driver with Built-in MECHATROLINK-II Communications, the Servo Driver's default settings are the standard settings for MECHATROLINK communications for I/O signal allocations.

The standard input signal settings are used for positioning functions, such as the MC Unit limit input signal, origin search, and interrupt feeding. Leave the Servo Driver I/O signal allocations at its default settings.

OMRON CJ1W-MCH71 - Standard Settings for W-series Servo Drivers with Built-in MECHATROLINK-II Communications - 1
I/O Signal Allocations (Default Settings)

Required Parameter Settings

The following servo parameters are used to control the MC Unit. Make sure that they are set correctly and do not change them.

List

Parameter No.Parameter
Pn800.0Communications control, MECHATROLINK-II communications check mask
Pn800.1Communications control, warning check mask
Pn801.0Software limit function
Pn801.2Software limit Check Using Reference
Pn824Option monitor 1 selection
Pn825Option monitor 2 selection
Pn008.2Function selection application switches 8, warning detection selection
Pn20EElectronic gear ratio G1 (numerator)
Pn210Electronic gear ratio G2 (denominator)

Individual Descriptions

Pn800.0 Communications Control, MECHATROLINK Communications Check Mask

Parameter No.Parameter nameUnitFixed settingSettingsDefault settingsRequired settings
Pn800.0Communications control MECHATROLINK-II communica-tions check mask---00: Detects communica-tions error (A.E60) and WDT error (A.E50)00

Make sure that MECHATROLINK communications errors, such as A.E60 (communications error) and A.E50 (WDT error (synchronization error)), can be detected. The MC Unit uses them when controlling communications.

Use the default setting of 0 (communications error (A.E60) and WDT error (A.E50)) for Pn800.0.

Pn800.1 Communications Control Warning Check Mask

Parameter No.Parameter nameUnitFixed settingSettingsDefault settingsRequired settings
Pn800.1Communications control, warning check mask---4 or 04: Ignore communications warnings (A.96☐)0: Detect A.94☐, A.95☐, and A.96☐.40

Make sure that MECHATROLINK communications warnings, such as A.94 (data setting alarm) and A.95 (command alarm), are not ignored. The MC Unit uses them when controlling communications.

Set Pn800.1 to the default setting of 4 (ignore communications alarm (A.96□) only or to 0 (detect A.94□, A.95□, and A.96□).

Pn801.0 Software Limits

Parameter No.Parameter nameUnitSetting rangeSettingsDefault settingsRequired settings
Pn801.0Software limits---0 to 30: Enables software limit1: Enables forward soft-ware limit2: Enables reserve soft-ware limit3: Enables both software limits33

Leave the software limit function set on the default setting of 3.

Pn801.2 Software Limit Check Using Reference

Parameter No.Parameter nameUnitSetting rangeSettingsDefault settingsRequired settings
Pn801.2Software limit check using reference---0 to 10: No software limit check using reference1: Software limit check using reference00

Leave the software limit check set to the default setting of 0.

Pn824/Pn825 Option Monitor

Parameter No.Parameter nameUnitSetting rangeSettingsDefault settingsRequired settings
Pn824Option monitor 1 selection---0000 to 0024 HexSpecifies monitor information.0000 Hex0023 Hex
Pn825Option monitor 2 selection---0000 to 0024 HexSpecifies monitor information.0000 Hex0024 Hex

Set the option monitor 1 selection to 0023 Hex and the option monitor 2 selection to 0024 Hex.

Pn008.2 Function Selection Application Switches 8, Warning Detection Selection

Parameter No.Parameter nameUnitFixed settingSettingsDefault settingsRequired settings
Pn008.2Function Selection Application Switches 8, Warning Detection Selection---10: Detects warnings1: Does not detect warnings00

Leave the default setting of 0.

Setting Pn008.2 to 1 (Do not detect warning) will prevent detection of the following alarms.

A.900 (Excessive position deviation warning)
A.901 (Excessive position deviation for Servo ON)
A.910 (Overload)
A.911 (Vibration)
A.920 (Regenerative overload)
A.930 (Absolute encoder battery error)

Pn20E/Pn210 Electronic Gear Settings

Parameter No.Parameter nameUnitSetting rangeSettingsDefault settingsRequired settings
Pn20EElectronic gear ratio G1 (numera-tor)---1 to 1,073,74 1,824Electronic gear numerator11
Pn210Electronic gear ratio G2 (denomi-nator)---1 to 1,073,74 1,824Electronic gear denomina-tor11

Leave the electronic gear settings set to the default setting of 1 (1/1).

Revision History

A manual revision code appears as a suffix to the catalog number on the front cover of the manual.

Cat. No. W435-E1-05

Revision code

The following table outlines the changes made to the manual during each revision. Page numbers refer to the previous version.

Revision codeDateRevised content
01September 2004Original production
02June 2005Page v: Wording of DANGER and WARNING definitions changed.Page vii: Confirming Unit Versions with Support Software replaced and expanded.Page xiv: Material added.Page 4: "Always" added to note 5.Page 5: Product name corrected to "Terminator" and Specification Overview for Termina-tor changed.Page 18: Performance table replaced.Page 20, 21, 59: Material added, deleted, or moved to appendix.Page 33: Last part of bottom note separated into body text.Page 54: Item added under P00004.Page 57: P3AA08 changed to "reserved."Page 60: Description of bit 02 changed and description of bit 08 added.Page 61: Addition made to description of bit 00 at top of page.Page 65: "MC Unit has started up" changed.Page 71: Description of setting 00000000 Hex (0) changed and "00 to 03 bit" removed at two places.Page 72: "Present position" changed at three places.Page 79: Description of P3AA08 changed.Page 90: Formulas for Precision of feedback speed 2 changed.Page 96: Changes made for SW0000, SW000C, SW0010, and SW0011.Page 108: Material deleted from SW0200 and SW0202 and added for SW020C/Page 109: Material added for SW0210 and deleted from SW0214.Page 145: Classification changed to "reserved" in top tablePages 157 and 158: Names and specifications changed to "reserved."Page 172: Middle table changed.Page 174, 176, 177, and 180 to 183: Shading changed.Page 178: "Same as above" removed for Pn50B.Page 184 and 185: Notes removed.Page 216: List changed to notes and "20 seconds" changed to "30 seconds."Page 255: Row added toward bottom of table.Page 281: ".00" deleted before table and "ms" added in table.Page 299: Underbars added in middle of page and "%" changed to "r/min" in note 1.Pages 301 and 302: Spaces added in Program Image and underbars added in command format.Page 303: Spaces added in Program Image.Page 311: Reference in note changed.Page 341: Table at top of page changed.Page 341 and 342: Customer I/O Area Allocation changed.Page 368 and 518: Addition made at top of page.Page 412, 417: Space added in program.Page 472: Additions made in first bulleted paragraph in Status Conditions.Page 484: Description of function changed.Page 485: Item added to Effect on Other Functions.Page 522: Addition made in graphic text.Page 536 and 537: 10-1-11 Positioning with Circular.... deleted.Page 580: First sentence in 11-1-1 Items to Check First changed.Page 587: Addition made to details of MLK Device alarm in top table.Page 603: Addition made at bottom of page.Page 604: Row deleted at top of page.Pages 605 and 606: Section replaced.Page 614: Appendix added.
03October 2006Pages viii to xii: Information added on unit versions.Page 3: Information added on features.Page 5: Information added on Peripheral Devices.Page 10: Information added on data tracing.Page 11: Information added on zone function.Page 14 and 15: Information added on performance specifications.Page 19: Information added on commands.Page 20: Information added on MC Unit processing.Page 24 and 25: Information added on CX-Motion-MCH.Page 49 to 57: Information added on system parameters.Page 60, 61, 68 to 70, 94, and 95: Information added on zone parameters.Page 107: Information added on system variables.Page 109: Information added on motion tasks.Page 115: Information added on data tracing variables.Page 153: Information added on zone control bits.Page 158: Information added on zone reservation bits/Page 175: Information added on zone monitoring status bits/Page 182 Information added on present position preset/Page 198: Information added on position loop gain index/Page 218: Information added on saving data.Pages 222 to 223: Information added on motion program.Page 529: Information added on breakpoints.Page 541: Information added on trace functionPages 542 to 544: Information added on zone function.
04July 2007Changes and additions accompanying the upgrade to unit version 3.1 and corresponding changes for upgrading the CX-Motion-MCH Support Software.Corrections to previous material.
05June 2008Page x: Changed data and lot number in bottom table.Page 60: Removed fourth bulleted paragraph at top of page.Page 195: Change initial setting for bit 0 of mode switch select parameter.Page 204: Changed setting for 9003.Page 259 and 260: Replaced table.Page 594: Changed to "position 500" in second bulleted paragraph and item 7 at bottom of page.Page 596: Changed to "position 500" in item 7.Page 598: Changed "slave" to "master in item 3/4 in middle of page.
Table of contents Click a title to access it
Manual assistant
Powered by Anthropic
Waiting for your message
Product information

Brand : OMRON

Model : CJ1W-MCH71

Category : Motion Controller