700 - 70 Series PLC Programming Manual (English, 2007-03)
700 - 70 Series PLC Programming Manual (English, 2007-03)
Microsoft, Windows and Microsoft Windows NT are registered trademarks of Microsoft Corporation in
the United States and/or other countries.
Pentium is a registered trademark of Intel Corporation in the United States and/or other countries.
PC-9800 is a registered trademark of NEC Corporation.
All other company names and product names in this document are trademarks or registered
trademarks of the respective companies.
Introduction
These specifications are the programming manual used when creating the sequence
program with the PLC development software, or Mitsubishi Electric Co.'s integrated FA
software MELSOFT series (GX Developer).
The PLC (Programmable Logic Controller) instructions are largely categorized into the
basic instructions, function instructions and exclusive instructions. There are many types of
instructions. The instructions can be used according to the purpose and application such as
the PLC support function used when supporting the user PLCs.
In addition to the explanation of instructions and functions, the environment to develop the
user PLC using GX Developer, especially the usage unique to MITSUBISHI CNC, is
described. Explanations on the built-in PLC edit function (onboard PLC edit function)
operations are also given.
CAUTION
An effort has been made to describe special handling of this machine, but items that are not
described must be interpreted as "not possible".
Some screens and functions may differ or some functions may not be usable depending on
the NC version.
General precautions
Refer to each manual for details on the MITSUBISHI CNC Series PLC, and for details on the
various tools in this manual.
The explanations and screens for the various tools in this manual may differ slightly according to
the tool version. Refer to the respective manual for details.
(Caution)
• The version numbers are current as of the editing of this manual, but may be updated in
the future.
• GX Developer Version 8 (Model SW8D5C-GPPW) is the new name of the old "Windows
Version GPP Function Software package" (common name GPPW).
Precautions for Safety
Always read the specifications issued by the machine tool builder, this manual, related manuals and
attached documents before installation, operation, programming, maintenance or inspection to
ensure correct use.
Understand this numerical controller, safety items and cautions before using the unit.
This manual ranks the safety precautions into "DANGER", "WARNING" and "CAUTION".
When there is a great risk that the user could be subject to fatalities or
DANGER serious injuries if handling is mistaken.
Note that even items ranked as " CAUTION", may lead to major results depending on the
situation. In any case, important information that must always be observed is described.
DANGER
Not applicable in this manual.
WARNING
Not applicable in this manual.
CAUTION
1. Items related to product and manual
For items described as "Restrictions" or "Usable State" in this manual, the instruction
manual issued by the machine tool builder takes precedence over this manual.
An effort has been made to describe special handling of this machine, but items that are
not described must be interpreted as "not possible".
This manual is written on the assumption that all option functions are added. Refer to the
specifications issued by the machine tool builder before starting use.
Refer to the Instruction Manual issued by each machine tool builder for details on each
machine tool.
Some screens and functions may differ or some functions may not be usable depending
on the NC version.
2. Items related to start up and maintenance
Read this manual carefully and confirm the safety enough before executing the operation
of the program change, forced output, RUN, STOP, etc. during operation. Operation
mistakes may cause damage of the machine and accidents.
(To be continued to the next page.)
CAUTION
3. Items related to program development
Always observe the cautions before development to develop a program.
If the data transferred does not follow the file name rule, the CNC will mistake it for another
data, resulting in unexpected operation, e.g. PLC program erasure.
Do not read a sequence program on which a conversion error occurred into the GX
Developer. The file may include unexpected contents to result an illegal operation.
When an error occurred at GX Developer On-line function, the error message may not
explain exactly the state in the CNC side.
Always refer to the error list.
Contents
I OUTLINE
1. System Configuration....................................................................................................................1
1.1 System Configuration for PLC Development ...........................................................................1
1.2 User PLC (Ladder) Development Procedure...........................................................................2
II PROGRAMMING EXPLANATION
1. Outline.................................................................................................................................................1
2. PLC Processing Program...................................................................................................................2
2.1 PLC Processing Program Level and Operation.......................................................................2
2.2 Outline of PLC Processing Program (Two Program Method) ..................................................3
2.3 Independent Program Method .................................................................................................3
2.4 Multi-program Method..............................................................................................................3
2.4.1 Number and Types of Registerable Programs ..................................................................4
2.4.2 Program Execution Order..................................................................................................4
2.5 User Memory Area Configuration and Size .............................................................................5
2.5.1 Independent Program Method...........................................................................................5
2.5.2 Multi-program Method .......................................................................................................5
2.6 Storing PLC Processing Program and Execution Mode ..........................................................6
2.6.1 Path from Storage to Execution.........................................................................................6
2.6.2 Conversion of Instruction Code at Execution ....................................................................6
2.6.3 How to Confirm the Number of Steps at Storage/Execution..............................................6
3. Input/Output Signals ...........................................................................................................................7
3.1 Input/Output Signal Types and Processing..............................................................................7
3.2 Handling of Input Signals Designated for High-speed Input ....................................................8
3.3 High-speed Input/Output Designation Method.........................................................................9
4. Parameters .......................................................................................................................................10
4.1 PLC Constants.......................................................................................................................10
4.2 Bit Selection Parameters .......................................................................................................12
4.3 Other Parameters ..................................................................................................................15
4.3.1 PLC Startup Condition Switchover ..................................................................................15
5. Explanation of Devices ...............................................................................................................16
5.1 Devices and Device No. ........................................................................................................16
5.2 List of Devices .......................................................................................................................16
5.3 Detailed Explanation of Devices ............................................................................................17
5.3.1 Input/Output X, Y .............................................................................................................17
5.3.2 Internal Relays M and F, Latch Relay L...........................................................................18
5.3.3 Special Relay for Link (SB), Special Register for Link (SW)............................................18
5.3.4 Link Relay B, Link Register W .........................................................................................19
5.3.5 Special Relay SM, Special Register SD ..........................................................................19
5.3.6 Edge relay V ....................................................................................................................20
5.3.7 Timer T ............................................................................................................................21
5.3.8 Integrated Timer ST.........................................................................................................23
5.3.9 Counter C ........................................................................................................................24
5.3.10 Data Register D .............................................................................................................25
5.3.11 File Register R ...............................................................................................................26
5.3.12 Index register Z..............................................................................................................26
5.3.13 Nesting N.......................................................................................................................27
5.3.14 Pointer P........................................................................................................................28
5.3.14.1 General Pointers .....................................................................................................29
5.3.14.2 Local Pointers .........................................................................................................29
5.3.14.3 Common Pointers ...................................................................................................30
5.3.14.4 Reserved Pointers...................................................................................................31
5.3.15 Decimal Constant K.......................................................................................................33
5.3.16 Hexadecimal Constant H...............................................................................................33
6. Explanation of Instructions..........................................................................................................34
6.1 Compatible Instructions and Extended Instructions...............................................................34
6.2 Instruction Tables...................................................................................................................36
6.2.1 How to Read Instruction Table.........................................................................................36
6.2.2 Basic instructions.............................................................................................................38
6.2.3 Comparison Instructions..................................................................................................40
6.2.4 Arithmetic Operation Instructions.....................................................................................41
6.2.5 BCD<->BIN Conversion Instructions ...............................................................................43
6.2.6 Data Transmission Instructions .......................................................................................44
6.2.7 Program Branch Instruction.............................................................................................45
6.2.8 Logical Operation Instructions .........................................................................................46
6.2.9 Rotation Instructions........................................................................................................48
6.2.10 Data Processing Instructions.........................................................................................49
6.2.11 Other Function Instructions............................................................................................50
6.2.12 Special Instructions for Old Machine Type Compatible .................................................51
6.2.13 Exclusive Instructions ....................................................................................................51
6.3 Data Designation Method ......................................................................................................52
6.3.1 Bit Data............................................................................................................................52
6.3.2 Word (16-bit) Data ...........................................................................................................53
6.3.3 Using double word data (32 bits).....................................................................................55
6.4 Index Qualification .................................................................................................................57
6.5 Operation Error ......................................................................................................................58
6.6 Execution Condition of Instruction .........................................................................................59
6.7 Counting Step Number ..........................................................................................................60
6.8 Operations when the OUT, SET/RST, or PLS/PLF instruction of the same device is used ...61
6.9 How to Read Instruction Tables .............................................................................................63
7. Basic Instructions........................................................................................................................64
8. Function Instructions.................................................................................................................103
9. Exclusive Instructions ...............................................................................................................217
9.1 ATC Exclusive Instruction ....................................................................................................218
9.1.1 Outline of ATC Control...................................................................................................218
9.1.2 ATC Operation ...............................................................................................................218
9.1.3 Explanation of Terminology ...........................................................................................218
9.1.4 Relationship between Tool Registration Screen and Magazines...................................219
9.1.5 Use of ATC and ROT Instructions .................................................................................220
9.1.6 Basic Format of ATC Exclusive Instruction....................................................................221
9.1.7 Instruction List ...............................................................................................................222
9.1.8 Control Data Buffer Contents.........................................................................................222
9.1.9 File Register (R Register) Assignment and Parameters................................................223
9.1.10 Details of Each Instruction...........................................................................................227
9.1.11 Precautions for Using ATC Exclusive Instructions .......................................................236
9.1.12 Examples of Tool Registration Screen.........................................................................236
9.1.13 Display of Spindle Tool and Standby Tool ....................................................................238
9.2 ROT Instructions..................................................................................................................239
9.2.1 Instruction List ...............................................................................................................239
10. PLC Help Function..................................................................................................................244
10.1 Tool Life Management (Machining Center System) ...........................................................245
10.1.1 Outline of Tool Life Management Function ..................................................................245
10.1.2 Tool Life Management Methods ..................................................................................246
10.1.3 Procedure when tool command is executed................................................................246
10.1.4 Procedure When Spindle Tool is Changed ..................................................................247
10.1.5 Tool Life Management II Method .................................................................................247
10.1.6 Maximum Number of Registerable Tools.....................................................................248
10.1.7 Tool Data .....................................................................................................................249
10.1.8 Usage Time, Work Count ............................................................................................251
10.1.9 Tool Data Flow (R Register) ........................................................................................252
10.1.10 User PLC processing.................................................................................................254
10.1.11 Interface with PLC .....................................................................................................255
10.2 External Search .................................................................................................................258
10.2.1 Detailed Explanation....................................................................................................258
10.2.2 PLC → NC Interface Signal.........................................................................................259
10.2.3 NC → PLC Interface Signal.........................................................................................260
10.2.4 Timing Chart ................................................................................................................260
10.2.5 External Search Status ................................................................................................260
10.2.6 Precautions..................................................................................................................261
10.2.7 Usage Example ...........................................................................................................261
10.3 PLC Axis Control .....................................................................................................................262
10.3.1 Specifications ..............................................................................................................262
10.3.2 Detailed explanation ....................................................................................................263
10.3.3 PLC Interface...............................................................................................................264
10.3.4 Details of PLC Axis Control Information Data..............................................................266
10.3.5 Timing Chart ................................................................................................................273
10.3.6 Reference Position Return Near Point Detection ........................................................278
10.3.7 Handle Feed Axis Selection.........................................................................................278
10.3.8 Single Mode.................................................................................................................279
10.3.9 Buffering Mode ............................................................................................................279
10.3.10 PLC Axis Monitor .......................................................................................................282
10.3.11 Absolute Position Detection .......................................................................................282
10.3.12 Usage Example .........................................................................................................282
10.4 External Machine Coordinate System Compensation .......................................................283
10.5 Alarm Message Display .....................................................................................................284
10.5.1 Interface.......................................................................................................................284
10.5.2 Screen Display ............................................................................................................286
10.5.3 Message creation ........................................................................................................286
10.5.4 Parameters ..................................................................................................................287
10.6 Operator Message Display ................................................................................................289
10.6.1 Interface.......................................................................................................................289
10.6.2 Operator Message Preparation ...................................................................................290
10.6.3 Operator Message Display Validity Parameter............................................................290
10.7 PLC Switches ....................................................................................................................291
10.7.1 Explanation of Screen .................................................................................................291
10.7.2 Explanation of Operation .............................................................................................292
10.7.3 Signal Processing........................................................................................................293
10.7.4 Switch name preparation.............................................................................................297
10.8 Load Meter Display............................................................................................................298
10.8.1 Interface.......................................................................................................................298
11. Appendix .................................................................................................................................302
11.1 Example of Faulty Circuit ...................................................................................................302
V APPENDIX
Appendix 1. Comparison of PLC Related Sections in Each Model...................................................1
Appendix 1.1 Development Tools, etc. ..........................................................................................1
Appendix 1.2 Devices and Device Assignments............................................................................2
Appendix 1.3 Instructions with Changed Designation Format .......................................................6
Appendix 1.3.1 Alternative Circuits Resulted from the Ban on DEFR Instruction.......................7
Appendix 2. List of Instructions Usable with GX Developer ..............................................................8
Appendix 2.1 Sequence Instructions .............................................................................................8
Appendix 2.2 Comparison Operation Instructions .........................................................................9
Appendix 2.3 Application Instructions ..........................................................................................14
Appendix 3.List of Special Relays and Special Registers ...............................................................17
Appendix 3.1 Special Relay .........................................................................................................18
Appendix 3.2 Special Register.....................................................................................................19
Appendix 4. List of PLC Alarms ......................................................................................................22
I OUTLINE
1. System Configuration
1.1 System Configuration for PLC Development
1. System Configuration
Offline development
Personal computer
GX Developer
Printout
General-purpose printer
Ethernet IC card
or
RS-232C
I-1
1. System Configuration
1.2 User PLC (Ladder) Development Procedure
Start
Complete
I-2
1. System Configuration
1.2 User PLC (Ladder) Development Procedure
Start
Determination of
machine Determination
of CNC and PLC
specifications
Determination of the
numbers of I/O points Commercially available
spreadsheet tool The data created with the
Device Name Comment
commercially available
Assignment of I/O X0 X-OT X-axis OT
signals X1 Y-OT Y-axis OT spreadsheet tool can be
Assignment of internal X2 Z-OT Z-axis OT
used as ladder comment
relays
data.
GX Developer PLC onboard edit screen
Onboard
Use GX Developer for
Programming programming.
After completion, download
the data through RS-232C.
A new program can also be
created by using the CNC
GX Developer Onboard onboard function.
Debugging
Debugging Perform monitoring/correction
(temporary
(RAM memory)
operation)
with GX Developer's online
function or onboard function.
Program correction
Is debugging Onboard
NO complete? Perform ROM making
YES operations with F-ROM write
screen.
ROM writing
ROM operation by
Input/output
CNC unit screen
Output binary data with
Is ROM maintenance data format
operation OK? using input/output screen.
NO
YES GX Developer
Program data:
Data save onto FLD
Saved using GX Developer
Binary data:
Completion Program data Binary data
(Maintenance data format) Saved using input/output
screen
I-3
II PROGRAMMING EXPLANATION
1. Outline
1. Outline
This programming manual is used when creating a sequence program for this CNC using the MELSEC PLC
development software package (GX Developer).
The PLC (Programmable Logic Controller) instructions are largely categorized into the basic instructions,
function instructions and exclusive instructions. There are many types of instructions. The instructions can be
used according to the purpose and application such as the PLC support function used when supporting the
user PLCs.
II - 1
2. PLC Processing Program
2.1 PLC Processing Program Level and Operation
High speed
processing
Main processing
NC processing
II - 2
2. PLC Processing Program
2.2 Outline of PLC Processing Program
• Method controlling with one program (conventional method) : Independent program method
• Method splitting control into multiple programs : Multi-program method
Program A
Control details A Control details A
Program B
Control details B Control details B Split and register for
each control detail
Program n
Control details n Control details n
• Initialization process (reserved label P4003) : This starts up only once when the power is turned ON.
• High-speed process (reserved label P4001) : This starts up at the standard interrupt cycle.
• Main process (reserved label P4002) : This starts up constantly except during the high-speed
process.
II - 3
2. PLC Processing Program
2.4 Multi-program Method
• "Initial" (Initialization process) : This starts up only once when the power is turned ON.
• "Scan" (High-speed process) : This starts up at the standard interrupt cycle.
• "Scan" (Main process) : This starts up constantly except during the high-speed process.
• "Standby" (Standby process) : This is called from the high-speed process or main process.
• "Low speed" : This execution type is not used.
The execution order when seven sequence programs are registered in the CNC, as shown in the above
setting screen, is indicated below.
Program Execution
Execution type Remarks
name order
Starts up only once when the power is turned
INIT Initialization sequence program 1
ON.
HLAD1 High-speed process execution 1 "Scan type" for which program name starts
program with "H"
HLAD2 Execution type is set as "Scan" 2
MAIN 1
Main process sequence program "Scan type" for which program name does not
MLAD1 Execution type is set as "Scan" 2 start with "H"
MLAD2 3
Here, subroutine that is called from MLAD2
SUB1 Standby sequence program 1
with CALL instruction is stored
HLAD1 HLAD2
SUB1
High-speed
process
Main process
MAIN MLAD1 MLAD2 MAIN MLAD1
One scan
[Caution] If the process jumps to END (P4005) in the sequence program, the process will jump to the
end of each process (high-speed, main) instead of the end of the program.
II - 4
2. PLC Processing Program
2.5 User Memory Area Configuration and Size
II - 5
2. PLC Processing Program
2.6 Storing PLC Processing Program and Execution Mode
(2) At power ON
The data is transferred from the internal F-ROM to the PLC processor execution area via the temporary
memory D-RAM, and is then executed.
Internal F-ROM
CNC
II - 6
3. Input/Output Signals
3.1 Input/Output Signal Types and Processing
3. Input/Output Signals
The user PLC does not directly input or output these signals from or to hardware or controller; it inputs or
outputs the signals from or to input/output image memory. For the reading and writing with the hardware or
controller, the controller will perform the input/output according to the level of the main process or high-speed
process.
Controller
Input/output
Operation Controller image memory User PLC
board (device X, Y)
Machine
(Note 1) The operation board here refers to when the remote I/O is installed on the
communication terminal.
II - 7
3. Input/Output Signals
3.1 Input/Output Signal Types and Processing
The table below shows whether or not high-speed input/output can be performed.
The operation board here refers to when the remote I/O is installed on the communication terminal.
When high-speed input designation signal is used in main processing, the input signal may change within one
scan because high-speed processing whose level is higher than main processing interrupts. Input signal
which must not change within one scan should be saved in temporary memory (M), etc., at the head of main
processing and the temporary memory should be used in the main program, for example.
(1)
High-speed
processing
(2)
The hatched area is high-speed input designation part. Whenever the high-speed processing program runs,
data is reset in the hatched area. Thus, the signal in the hatched area may change in main processing (A)
and (B) because the high-speed process interrupts between (A) and (B) and re-reads the input signal in the
hatched area.
II - 8
3. Input/Output Signals
3.3 High-speed Input/Output Designation Method
7 6 5 4 3 2 1 0 Bit
Bit X70 X60 X50 X40 X30 X20 X10 X00 These bits
selection correspond to the
parameter low-order byte
#6457 X7F X6F X5F X4F X3F X2F X1F X0F (bits 0 to 7) of file
register R7828
XF0 XE0 XD0 XC0 XB0 XA0 X90 X80 These bits
correspond to the
#6458 high-order byte
XFF XEF XDF XCF XBF XAF X9F X8F
(bits 8 to F) of file
register R7828
If there are multiple remote I/O connection channels, designate RIO2 with the same configuration as
RIO1 above.
RIO2 : Designate X100 to X1FF with bit selection parameters #6459 and #6460
RIO3 : Designate X200 to X2FF with bit selection parameters #6465 and #6466
7 6 5 4 3 2 1 0 Bit
Bit Y70 Y60 Y50 Y40 Y30 Y20 Y10 Y00 These bits
selection correspond to the
parameter low-order byte
#6461 Y7F Y6F Y5F Y4F Y3F Y2F Y1F Y0F (bits 0 to 7) of file
register R7830
YF0 YE0 YD0 YC0 YB0 YA0 Y90 Y80 These bits
correspond to the
#6462 high-order byte
YFF YEF YDF YCF YBF YAF Y9F Y8F
(bits 8 to F) of file
register R7830
If there are multiple remote I/O connection channels, designate RIO2 with the same configuration as
RIO1 above.
RIO2 : Designate Y100 to Y1FF with bit selection parameters #6463 and #6464
RIO3 : Designate Y200 to Y2FF with bit selection parameters #6473 and #6474
II - 9
4. Parameters
4.1 PLC Constants
4. Parameters
II - 10
4. Parameters
4.1 PLC Constants
The extended area quantity is set with basic common parameter #1326.
II - 11
4. Parameters
4.2 Bit Selection Parameters
Corresponding Setting
Bit selection parameter (# No.) Details
register range
#1 (#6401) R7800-Low side
#2 (#6402) R7800-High side
#3 (#6403) R7801-L
#4 (#6404) R7801-H
Use bit selection parameters
… … #6401 to #6448 freely.
#45 (#6445) R7822-L
#46 (#6446) R7822-H
#47 (#6447) R7823-L
#48 (#6448) R7823-H
#49 (#6449) R7824-L
#50 (#6450) R7824-H
#51 (#6451) R7825-L Bit selection parameter
#52 (#6452) R7825-H #6449 to #6496 are PLC
operation parameters used
… … by the machine tool builder
#93 (#6493) R7846-L and MITSUBISHI.
#94 (#6494) R7846-H The contents are fixed.
#95 (#6495) R7847-L
#96 (#6496) R7847-H
#97 (#6497) R7848-L
#98 (#6498) R7848-H 8 bits
#99 (#6499) R7849-L
#100 (#6500) R7849-H
#101 (#6501) R7850-L
#102 (#6502) R7850-H
#103 (#6503) R7851-L
#104 (#6504) R7851-H
#105 (#6505) R7852-L
#106 (#6506) R7852-H
Use bit selection parameters
… … #6497 to #6596 freely.
#187 (#6587) R7893-L
#188 (#6588) R7893-H
#189 (#6589) R7894-L
#190 (#6590) R7894-H
#191 (#6591) R7895-L
#192 (#6592) R7895-H
#193 (#6593) R7896-L
#194 (#6594) R7896-H
#195 (#6595) R7897-L
#196 (#6596) R7897-H
II - 12
4. Parameters
4.2 Bit Selection Parameters
#6455
6 R7827 L - - - - - - - -
#6456
7 R7827 H - - - - - - - -
#6457
8 R7828 L
#6459
A R7829 L
#6461
C R7830 L
#6463
E R7831 L
II - 13
4. Parameters
4.2 Bit Selection Parameters
Symbol
7 6 5 4 3 2 1 0
name
#6465
0 - - - - - - - -
R7832 L High-speed input specification 3
#6466
1 R7832 H - - - - - - - -
#6467
2 R7833 L - - - - - - - -
High-speed input specification 4
#6468
3 R7833 H
#6469
4 R7834 L - - - - - - - -
#6470
5 R7834 H - - - - - - - -
#6471
6 R7835 L - - - - - - - -
#6472
7 R7835 H - - - - - - - -
#6473
8 R7836 L - -
High-speed output specification 3
#6474
9 R7836 H
#6475
A R7837 L
High-speed output specification 4
#6476
B R7837 H
#6477
C R7838 L - - - - - - - -
#6478
D R7838 H - - - - - - - -
#6479
E R7839 L - - - - - - - -
#6480
F R7839 H - - - - - - - -
II - 14
4. Parameters
4.2 Bit Selection Parameters
(2) Precautions
Parameter "#11004 PLCautorun enable" is the parameter prepared on the assumption that the setting
and display unit is not used.
For the machine with NC screen displayed, to ensure your safety, always set "#11004 PLCautorun
enable" to "0" and start PLC after NC screen startup.
When PLC automatic startup is validated without confirming the pre-operation status on the NC screen,
unexpected incident may occur.
II - 15
5. Explanation of Devices
5.1 Devices and Device No.
5. Explanation of Devices
*1 : The 10ms timer and 100ms timer are differentiated with instructions. (Refer to 5.3.4 Timer T)
*2 : The P device has two types of pointers, local and common. The number of points given above is the
total number of points.
II - 16
5. Explanation of Devices
5.3 Detailed Explanation of Devices
5.3.1 Input/Output X, Y
Input/output X and Y are windows for executing communication with the PLC and external device or
controller.
Input X
(a) This issued commands or data from an external device such as a push-button, changeover
switch, limit switch or digital switch to the PLC.
(b) Assuming that there is a hypothetical relay Xn built-in the PLC per input point, the program uses
the "A" contact and "B" contact of that Xn.
(c) There is no limit to the number of "A" contacts and "B" contacts of the input Xn that can be used
in the program.
PLC
Hypothetical relay
Output Y
(a) This outputs the results of the program control to the solenoid, magnetic switch, signal lamp or
digital indicator, etc.
(b) The output (Y) can be retrieved with the equivalent of one "A" contact.
(c) There is no limit to the number of "A" contacts and "B" contacts of the output Yn that can be used
in the program.
PLC
Y10
24V
Y10 Load
Y10
Y10
II - 17
5. Explanation of Devices
5.3 Detailed Explanation of Devices
Internal relay M
Internal relay F
Latch relay L
(a) The original state is held even when the power is turned OFF.
(b) There is no limit to the number of "A" contacts and "B" contacts of the latch relay that can be used
in the program.
(c) The latch No. is expressed with a decimal.
5.3.3 Special Relay for Link (SB), Special Register for Link (SW)
II - 18
5. Explanation of Devices
5.3 Detailed Explanation of Devices
(2) Link register W is the word type device that performs data link with various link functions.
Unused area can be used as the primary memory, etc.
(2) Special register SD is the data register whose application is fixed. (i.e. 1-second counter) Do not use the
currently unused area from SD0 to SD1023 as the primary memory.
II - 19
5. Explanation of Devices
5.3 Detailed Explanation of Devices
(3) Some of the main relays and registers whose applications are fixed are listed below.
Refer to "Appendix 3 List of Special Relays and Special Registers" for details.
Edge relay V
(a) This stores the operation result (ON/OFF information) from the head of ladder block.
(b) This can be used only at contacts. This cannot be used as a coil.
X0 X1 X10 V1
Edge relay
Operation results of X0,X1 and X10
are stored.
II - 20
5. Explanation of Devices
5.3 Detailed Explanation of Devices
5.3.7 Timer T
(4) The 100ms timer and 10ms timer are available for this count-up type timer.
The 100ms timer and 10ms timer are differentiated by the instructions used. Refer to the following
explanation on basic instructions for details.
100ms Timer T
(a) When the input conditions are set, the count starts. When the set value is counted, that timer
contact will turn ON.
(b) If the input conditions are turned OFF, the 100ms timer count value will be set to 0, and the
contact will turn OFF.
ON
X5 X5 OFF
K50
「 T193 T193 coil OFF ON
5 seconds
T193 contact OFF
Input 100ms timer
conditions ON
(c) The value is set with a decimal, and can be designated from 1 to 32767 (0.1 to 3276.7 s).
The data register D or file register R data can be used as the setting value.
10ms Timer T
(a) When the input conditions are set, the count starts. When the set value is counted, that timer
contact will turn ON.
(b) If the input conditions are turned OFF, the 10ms timer count value will be set to 0, and the contact
will turn OFF.
(c) The value is set with a decimal, and can be designated from 1 to 32767 (0.01 to 327.67 s).
The data register D or file register R data can be used as the setting value.
(2) With the device T, the contact/coil is handled as bit device, and the current value is handled as word
device. In the function instructions described after, the word device T indicates the current value even if
there is no description about it.
II - 21
5. Explanation of Devices
5.3 Detailed Explanation of Devices
(3) Setting the timer setting value from the setting and display unit
The timer T setting value can be set with the following two methods.
• Method to validate the setting value (Kn) programmed with the sequence program (Fixed timer)
• Method to validate the setting value set from the setting and display unit (Variable timer)
(Note that even when this method is used, the setting value (Kn) must be programmed in the
sequence program. In this case, the Kn value will be ignored during the operation. When a data
register D is used for the setting value, the contents of the data register D will be the setting value
regardless of the parameter.)
(a) Methods for setting the number of fixed timer and variable timer points
The ratio of the fixed timer and variable timer in all of the timer T points can be set with the bit
selection parameter.
The boundary of the two setting methods is set using 100 points of the timer as one unit. This setting
is validated when the PLC is restarted.
7 6 5 4 3 2 1 0
# (6449) Data (0 0 0 0 0 0 1 1)
↑
0: PLC timer screen setting valid
Use No. 6449
1: PLC timer program valid
0: PLC counter screen setting valid
1: PLC counter program valid
(c) Methods for setting the setting value from the setting and display unit
The timer and counter setting value can be set from the parameter setting screen. Steps 1 to 4 also
apply for the counter.
1) The set value is validated when the PLC is restarted.
2) On the setting screen, only the number of variable timer points set with (a) are valid. The (a)
setting is immediately reflected on the display of the settable range.
3) The setting screen values are not affected even if the (b) "variable timer validity setting bit on
program side" setting is changed.
4) It is possible to judge whether the setting value is valid within the current storage ladder
(whether that timer is used with the setting value (Kn) in the ladder).
5) The timer type (10ms, 100ms) can be judged on the setting screen.
II - 22
5. Explanation of Devices
5.3 Detailed Explanation of Devices
(1) The 100ms integrated timer is available for this count-up type timer.
100ms Integrated timer ST
(a) When the input conditions are set, the count starts. When the set value is counted, that timer
contact will turn ON.
(b) Even the input conditions are turned OFF, the 100ms integrated timer current value (count value)
will be held, and the contact state will not change.
(c) The 100ms integrated timer count value will be set to 0 and the contact will turn OFF when the RST
instruction is executed.
X5
K100 ON
ST47
X5 OFF 9 seconds 6 seconds
Input conditions 1.5 seconds
X7 100ms integrated timer
ON
RST ST47 X7 OFF
ON
ST47 contact OFF
(d) The value is set with a decimal, and can be designated from 1 to 32767 (0.1 to 3267.7 s). The data
register D or file register R data can be used as the setting value.
(e) When the bit selection parameter is set, the 100ms integrated timer current value (count value) will
be held even when the power is turned OFF.
(3) Setting the timer setting value from the setting and display unit
The ratio of the variable and fixed can be set with the bit selection parameter in the same manner as
timer T.
Variable integrated timer Bit selection (#6453)
Remarks
Number of points Range Bit 7 Bit 6 Bit 5
0 0 0 0 Use all points as fixed integrated timer
20 (0 to 19) 0 0 1 Use range other than that shown on left
40 (0 to 39) 0 1 0 as fixed integrated counter
All points (0 to 63) 0 1 1 Use all points as variable integrated timer
In the same manner as timer T, a bit selection parameter is provided as a switch for the variable
integrated timer to invalidate all of the setting values set from the setting and display unit and validate the
setting values in the sequence program. (This bit is used for both the timer T and integrated timer ST.)
II - 23
5. Explanation of Devices
5.3 Detailed Explanation of Devices
5.3.9 Counter C
(1) The counter counts up and detects the rising edge of the input conditions. Thus, the count will not take
place when the input conditions are ON.
Counter C
(a) The value is set with a decimal, and can be designated from 1 to 32767. The data register D or
file register R data can be used as the setting value.
(b) The counter count value will not be cleared even if the input conditions turn OFF. The counter
count value must be cleared with the RST instruction.
(c) When the bit selection parameter is set, the counter current value (count value) will be held even
when the power is turned OFF. Note that some cannot be held depending on the version of
CNC.
(2) With the device C, the contact/coil is handled as bit device, and the current value (counter value) is
handled as word device. In the function instructions described after, the word device C indicates the
current value (counter value) even if there is no description about it.
(3) The counter C setting value can be set with the following two methods.
(a) Method to validate the setting value (Kn) programmed with the sequence program (Fixed counter)
(b) Method to validate the setting value set from the setting and display unit (Variable counter)
(Note that even when this method is used, the setting value (Kn) must be programmed in the
sequence program. In this case, the Kn value will be ignored during the operation. When a data
register D is used for the setting value, the contents of the data register D will be the setting value
regardless of the parameter.)
The ratio of the fixed counter and variable counter in all of the counter C points can be set with the bit
selection parameter.
The bit selection parameter is set using 40 counter points as one unit.
A bit selection parameter is provided as a switch for the variable counter to invalidate all of the setting
values set from the setting and display unit and validate the setting values in the sequence program.
(Refer to the explanation on the timer.)
II - 24
5. Explanation of Devices
5.3 Detailed Explanation of Devices
(1) The data register is the memory that stores the data in the PLC.
(2) The data register has a 1-point 16-bit configuration, and can be read and written in 16-bit units.
To handle 32-bit data, two points must be used. The data register No. designated with the 32-bit
instruction will be the low-order 16-bit, and the designated data register No. +1 will be the high-order
16-bit.
Circuit example (Example) Use of the DMOV instruction is shown below.
The X0 to 1F data is
0 DMOV K8X0 D0 stored in D0, 1.
Data storage
D1 D0
(3) The data that is stored once in the sequence program is held until other data is stored.
(4) The data stored in the data register is cleared when the power is turned OFF.
(5) Values that can be stored: Decimal -32768 to 32767 For 16-bit instruction (Using Dn)
Hexadecimal 0 to FFFF
Decimal -2147483648 to 2147483647 For 32-bit instruction
Hexadecimal 0 to FFFFFFFF (Using Dn+1, Dn)
(6) Data registers D0 to D2047 are all user release data registers.
II - 25
5. Explanation of Devices
5.3 Detailed Explanation of Devices
(1) As with the data registers, the file registers are memories used to store data. However, there are some
that have fixed applications, and those that are released.
(2) The file register has a 1-point 16-bit configuration, and can be read and written in 16-bit units.
To handle 32-bit data, two points must be used. The file register No. designated with the 32-bit instruction
will be the low-order 16-bit, and the designated file register No. +1 will be the high-order 16-bit.
The X0 to 1F data is
0 DMOV K8X0 R0 stored in R0, 1.
Data storage
R1 R0
High-order 16-bit Low-order 16-bit
(3) The data that is stored once in the sequence program is held until other data is stored.
(4) With the file registers, the following registers are the user release.
R8300 to R9799, R9800 to R9899
The following registers of the registers above are not cleared when the power is turned OFF.
R8300 to R9799
The other file registers have fixed applications such as interface of the PLC and CNC, parameter
interface, etc., so use according to the application.
(5) Values that can be stored: Decimal -32768 to 32767 For 16-bit instruction (Using Rn)
Hexadecimal 0 to FFFF
Decimal -2147483648 to 2147483647 For 32-bit instruction
Hexadecimal 0 to FFFFFFFF (Using Rn+1, Rn)
(1) The index register is used as ornaments for the device (T, ST, C, D, R, W, SW, SD).
159 MOV K3 Z0
(2) The index register has a 1-point 16-bit configuration, and can be read and written in 16-bit units.
(3) The data stored in the index register is cleared when the power is turned OFF.
(4) Values that can be stored: Decimal -32768 to 32767
Hexadecimal 0 to FFFF
II - 26
5. Explanation of Devices
5.3 Detailed Explanation of Devices
5.3.13 Nesting N
MC N0 M15
N0 M15
MCR N2
Reset MC2 to 7
Execute when A, B conditions are set.
MCR N1
Reset MC1 to 7
Execute when A condition is set.
Reset MC0 to 7
MCR N0
(a) The conditions for each master control to turn ON are as follow.
(b) The timer and counter when the master control is OFF is as follows.
· 100ms timer, 10ms timer : The count value is set to 0.
· 100ms integrated timer : The current count value is retained.
· Counter : The current counter value is retained.
· OUT instruction : All turn OFF.
II - 27
5. Explanation of Devices
5.3 Detailed Explanation of Devices
5.3.14 Pointer P
X13
CJ P20 Jump to label P20 when
X13 turns ON.
Label
Pointer
P20
(b) Subroutine call instruction (CALL) call destination and label (Designation of subroutine program
head)
X10
CALL P33 Execute sub-routine
Label program designated with
Pointer
label P33 when X10 turns
P33
RET
II - 28
5. Explanation of Devices
5.3 Detailed Explanation of Devices
Program A Program B
The same pointer
can be used.
CALL P0 CALL P0
FEND FEND
P0 P0
RET RET
END END
100 points from P0 to 200 points from P0 to 250 points from P0 to Total of 550 points
P99 are occupied P199 are occupied P249 are occupied are used
II - 29
5. Explanation of Devices
5.3 Detailed Explanation of Devices
Program A Program C
END RET
Program B P1805
END END
II - 30
5. Explanation of Devices
5.3 Detailed Explanation of Devices
X17
723 CJ P4005 Jump to END when X17
turns ON.
726
[CAUTION]
1. Do not omit the P4002 (medium-speed) label even when using only the PLC main processing
program.
2. Do not use P4001 (high-speed) or P4002 (medium-speed) as a CJ instruction or CALL instruction
device.
3. Do not program to jump to P** in the PLC high-speed processing program from the PLC main
processing program.
4. P** used as a CJ instruction or CALL instruction device must be programmed so that it is in the same
program file as the label instruction.
The PLC will not run properly if even one of Cautions 1 to 4 is not observed.
II - 31
5. Explanation of Devices
5.3 Detailed Explanation of Devices
X17
CJ P4005 Cancel process (jump to
END of last program in
process) when X17 turns
ON.
The following two methods of jumping to the end of each program are available.
• Sets the local pointer right before the END instruction and jumps to that position.
• Executes GOEND instruction. (Usable only with the extended instruction mode)
X17
CJ P100 Jump to pointer before
P100 END
X17
GOEND Jump to END with
GOEND instruction
when X17 turns ON.
The PLC will not run properly if even one of Cautions 1 to 3 is not observed.
II - 32
5. Explanation of Devices
5.3 Detailed Explanation of Devices
(1) The hexadecimal constant is used to designate the basic instruction, function instruction and exclusive
instruction values.
• 16-bit instruction : 0 to FFFF
• 32-bit instruction : 0 to FFFFFFFF
II - 33
6. Explanation of Instructions
6.1 Compatible Instructions and Extended Instructions
6. Explanation of Instructions
6.1 Compatible Instructions and Extended Instructions
The following two PLC instruction modes are available with this CNC. Characteristics and setting methods for
these instructions are explained here.
• Compatible PLC instruction mode (Usable model: 700 Series, 70 Series type A/type B)
• Extended PLC instruction mode (Usable model: 700 Series, 70 Series type A)
"Extended PLC instruction mode" is set when the extended instruction specification is used. "Extended
PLC instruction mode" includes the specification of "Compatible PLC instruction mode". (Note that
operations may differ for some instructions. Details are explained later.)
Specifications for each mode are given below.
Setting Standard
# No. Bit Item Details
range value
The condition of the usable instruction
PLC for the built-in PLC can be switched.
instruction 0: Operated in the compatible PLC
6452 Bit 1 0, 1 0
extension instruction mode
valid 1: Operated in the extended PLC
instruction mode
(b) Notes
• This parameter will be valid when the power is turned OFF and ON again.
• If expanding the PLC instruction is disabled during the use of expansion PLC instruction, an error
occurs at PLC RUN.
• Even if expanding the PLC instruction is enabled in 70 Series type B, the instruction is ignored
and operated in the compatible PLC instruction mode.
II - 34
6. Explanation of Instructions
6.1 Compatible Instructions and Extended Instructions
(3) Notes
The following instructions have different operations even if they are the same instructions, depending on
each instruction mode. For these instructions, it is highly recommended that the instructions should be
replaced with ones that are usable in both modes.
Compatible PLC instruction Extended PLC instruction Instruction
Instruction
mode mode replacement method
Operated as comparison "Replaceable
LD<= Operated as bit test instruction.
operation instruction. instructions" given in
AND<= (Alternative instruction for
(LD<=,AND<=,OR<= the instruction
OR<= LDBIT,ANDBIT,ORBIT)
instruction) specification details for
"LDBIT" indicated in
Operated as comparison
LD<> Operated as bit test instruction. "6.2.12 Special
operation instruction.
AND<> (Alternative instruction for Instructions for Old
(LD<>,AND<>,OR<>
OR<> LDBII,ANDBII,ORBII) Machine Type
instruction)
Compatible"
Refer to "Appendix
Operated as leading edge
Alternative instruction for DEFR 1.3.1 Alternative
pulse series connection
ANDP (pulse in respect to the Circuits Resulted from
instruction. (ANDP
operation result) instruction the Ban on DEFR
instruction)
Instruction"
II - 35
6. Explanation of Instructions
6.2 Instruction Tables
Description
steps
Instruction
Execution
Condition
Ext. inst.
See for
Class
sign
Execution
Symbol Process details
Storage
+ + S D
(D)+(S) (D) ■ 3 3 86
(BIN)
+P +P S D ■ 3 7 86
+ (BIN)
16-bit
+ + S1 S2 D 4 4 88
(S1)+(S2) (D)
(BIN)
+P + P S1 S2 D ■ 4 8 88
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10)
(3) • • • Indicates the instruction symbol used to enter the instruction in a program
Instruction code is built around the 16-bit instruction, with the following notations used to mark 32-bit
instructions, instructions executed only at the leading edge of OFF to ON, real number instructions,
and character string instructions.
• 32-bit instruction • • • The letter "D" is added to the first line of the instruction
(Example)
+ D+
• Instructions executed only at the leading edge of OFF to ON • • • The letter "P" is appended to
the end of the instruction
(Example)
+ +P
+ S D + S1 S2 D
II - 36
6. Explanation of Instructions
6.2 Instruction Tables
(6) • • • The details of conditions for the execution of individual instructions are as follows.
Symbol Execution Condition
No Instruction executed under normal circumstances, with no regard to the ON/OFF status
symbol of conditions prior to the instruction.
recorded If the precondition is OFF, the instruction will conduct OFF processing.
Executed during ON; instruction is executed only while the precondition is ON. If the
precondition is OFF, the instruction is not executed and no processing is conducted.
Executed once at ON; instruction executed only at leading edge when precondition
goes from OFF to ON. Following execution, instruction will not be executed and no
processing conducted even if condition remains ON.
Executed once at OFF; instruction executed only at trailing edge when precondition
goes from ON to OFF. Following execution, instruction will not be executed and no
processing conducted even if condition remains OFF.
(10) • • • Indicates the page numbers where the individual instructions are discussed.
II - 37
6. Explanation of Instructions
6.2 Instruction Tables
Description
Instruction steps
Execution
Condition
Ext. inst.
See for
Class
sign
Execution
Symbol Process details
Storage
Start of logic operation 1/2 1/2
LD 58
(A contact operation start) *1 *2
■ 1/2*1
Bit
II - 38
6. Explanation of Instructions
6.2 Instruction Tables
Description
steps
Instruction
Execution
Condition
Ext. inst.
See for
Class
sign
Execution
Symbol Process details
Storage
SET SET D Device set 1/2 1/2 73
*1 *2
II - 39
6. Explanation of Instructions
6.2 Instruction Tables
Description
Instruction steps
Execution
Condition
Ext. inst.
See for
Class
sign
Execution
Symbol Process details
Storage
LD= = S1 S2 3 3 90
16-bit
LD<> <> S1 S2 ■ 3 3 90
16-bit
(S1+1,S1) (S2+1,S2)
ANDD<> D <> S1 S2
Non-continuity state when
■ 3/4
*1
3/4
*1
92
(S1+1,S1) (S2+1,S2)
ORD<> D <> S1 S2 ■ 3/4
*1
3/4
*1
92
LD> > S1 S2 3 3 90
16-bit
LD>= >= S1 S2 ■ 3 3 90
16-bit
(S1+1,S1) (S2+1,S2)
ANDD>= D > = S1 S2 ■ 3/4 3/4 92
Non-continuity state when *1 *1
(S1+1,S1) (S2+1,S2)
ORD>= D > = S1 S2 ■ 3/4
*1
3/4
*1
92
(To be continued on the next page)
*1: 1 step is added when either S1 or S2 is a constant number.
II - 40
6. Explanation of Instructions
6.2 Instruction Tables
Description
steps
Instruction
Execution
Condition
Ext. inst.
See for
Class
sign
Execution
Symbol Process details
Storage
LD< < S1 S2 3 3 90
16-bit
< S1 S2
Continuity state when (S1) (S2)
AND< 3 3 90
Non-continuity state when (S1) (S2)
OR< < S1 S2 3 3 90
D< S1 S2
(S1+1,S1) (S2+1,S2) 3/4 3/4
ANDD< Non-continuity state when *1 *1
92
S1 S2
(S1+1,S1) (S2+1,S2) 3/4 3/4
ORD< D< 92
*1 *1
LD<= <= S1 S2 ■ 3 3 90
16-bit
(S1+1,S1) (S2+1,S2)
ANDD<= D < = S1 S2 ■ 3/4 3/4 92
Non-continuity state when *1 *1
(S1+1,S1) (S2+1,S2)
ORD<= D < = S1 S2 ■ 3/4
*1
3/4
*1
92
steps Description
Instruction
Execution
Condition
Ext. inst.
See for
Class
sign
Execution
+ + S D ■ 3 3 96
(D)+(S) (D)
(BIN)
+P +P S D ■ 3 7 96
16-bit
+ + S1 S2 D 4 4 94
(S1)+(S2) (D)
(BIN)
+P + P S1 S2 D ■ 4 8 94
+ (BIN)
(BIN)
D+P D+P S D ■ 3/4 7/8 100
32-bit
*1 *1
D+ D + S1 S2 D 4/5 4/5 98
(S1+1,S1)+(S2+1,S2) (D+1,D) *2 *2
(BIN)
D+P D+P S1 S2 D ■ 4/5
*2
8/9
*2
98
(To be continued on the next page)
*1: 1 step is added when S is a constant number.
*2: 1 step is added when either S1 or S2 is a constant number.
II - 41
6. Explanation of Instructions
6.2 Instruction Tables
Description
steps
Instruction
Execution
Condition
Ext. inst.
See for
Class
sign
Execution
Symbol Process details
Storage
- - S D ■ 3 3 96
(D) (S) (D)
(BIN)
-P -P S D ■ 3 7 96
16-bit
- - S1 S2 D 4 4 94
(S1) (S2) (D)
(BIN)
-P -P S1 S2 D ■ 4 8 94
- (BIN)
(BIN)
D-P D-P S D ■ 3/4 7/8 100
32-bit
*1 *1
D- D- S1 S2 D 4/5 4/5 98
(S1+1,S1) (S2+1,S2) (D+1,D) *2 *2
(BIN)
D-P D-P S1 S2 D ■ 4/5
*2
8/9
*2
98
* * S1 S2 D 4 4 102
16-bit
*2 *2
(D+3,D+2,D+1,D)
D*P D*P S1 S2 D (BIN) ■ 4/5
*2
8/9
*2
104
Quotient(D),Remainder(D+1)
/P /P S1 S2 D (BIN) ■ 4 8 102
/ (BIN)
Quotient(D+1,D), *2 *2
Remainder(D+3,D+2)
D/P D/P S1 S2 D ■ 4/5
*2
8/9
*2
104
(BIN)
B+ B + S1 S2 D ■ 4 5 106
(S1)+(S2) (D)
(BCD)
Four arithmetic operations (BCD)
B- B- S1 S2 D ■ 4 5 106
(S1) (S2) (D)
(BCD)
B-P B-P S1 S2 D ■ 4 9 106
16-bit
B* B* S1 S2 D ■ 4 5 108
(S1) (S2) (D+1,D)
(BCD)
B*P B*P S1 S2 D ■ 4 9 108
II - 42
6. Explanation of Instructions
6.2 Instruction Tables
Description
steps
Instruction
Execution
Condition
Ext. inst.
See for
Class
sign
Execution
Symbol Process details
Storage
INC INC D 2 2 110
16-bit
(D)+1 (D)
INCP INCP D ■ 2 6 110
+1
DINC DINC D 2 2 112
32-bit
(D+1,D)+1 (D+1,D)
DINCP DINCP D ■ 2 6 112
(D) 1 (D)
DECP DECP D ■ 2 6 110
-1
DDEC DDEC D 2 2 112
32-bit
(D+1,D) 1 (D+1,D)
DDECP DDECP D ■ 2 6 112
16-bit
• (D) (D)
BIN data
NEGP NEGP D ■ 2 6 114
DNEG DNEG D
• (D+1, D) (D+1, D) ■ 2 2 114
32-bit
Description
steps
Instruction
Execution
Condition
Ext. inst.
See for
Class
sign
Execution
BCD S D BCD
BCD 3 3 116
16-bit
conversion
• ___
(S) (D)
BCDP BCDP S D BIN (0 to 9999) ■ 3 7 116
BCD
conversion
• _______
(S+1, S) (D+1, D)
DBCDP DBCDP S D BIN (0 to 99999999) ■ 3 7 116
conversion
• ___
(S) (D)
BINP BINP S D BCD (0 to 9999) ■ 3 7 118
BIN
conversion
• _______
(S+1, S) (D+1, D)
DBINP DBINP S D BCD (0 to 99999999) ■ 3 7 118
II - 43
6. Explanation of Instructions
6.2 Instruction Tables
Description
Instruction steps
Execution
Condition
Ext. inst.
See for
Class
sign
Execution
Symbol Process details
Storage
MOV MOV S D 3 3 120
16-bit
⋅ (S) (D)
MOVP MOVP S D ■ 3 7 120
*1 *1
⋅ (S+1,S) (D+1,D)
Transmission
⋅ (S) (D)
CMLP CMLP S D ■ 3 7 122
*1 *1
⋅ (S+1,S) (D+1,D)
DCMLP DCMLP S D ■ 3/4
*1
7/8
*1
122
⋅ (D1) (D2)
Conversion
⋅ (D1+1,D1) (D2+1,D2)
DXCHP DXCH D1 D2 ■ 3 7 124
transmission of same data
n
BMOVP BMOVP S D n ■ 4 8 126
transmission
(S)
n
FMOVP FMOVP S D n ■ 4 8 128
transmission
S.TMOV S D
Timer
II - 44
6. Explanation of Instructions
6.2 Instruction Tables
Description
Instruction steps
Execution
Condition
Ext. inst.
See for
Class
sign
Execution
Symbol Process details
Storage
CJ
Jump to Pn upon establishment of
CJ P** 2 2 131
input condition
Jump
RET
Return
II - 45
6. Explanation of Instructions
6.2 Instruction Tables
Description
Instruction steps
Execution
Condition
Ext. inst.
See for
Class
sign
Execution
Symbol Process details
Storage
WAND WAND S D ■ 3 3 142
⋅ (D) (S) (D)
WANDP WAND S D ■ 3 7 142
16-bit
*1 *1
II - 46
6. Explanation of Instructions
6.2 Instruction Tables
Description
steps
Instruction
Execution
Condition
Ext. inst.
See for
Class
sign
Execution
Symbol Process details
Storage
WOR WOR S D ■ 3 3 145
⋅ (D) (S) (D)
WORP WORP S D ■ 3 7 145
16-bit
*1 *1
(S2) (D)
WXORP WXORP S1 S2 D ■ 4 8 147
*1 *1
*1 *1
II - 47
6. Explanation of Instructions
6.2 Instruction Tables
Description
Instruction steps
Execution
Condition
Ext. inst.
See for
Class
sign
Execution
Symbol Process details
Storage
ROR D n b15 (D) b0 SM12
ROR 3 3/4 153
(D+1) (D)
DROR DROR D n b31 ~ b16 b15 ~ b0 SM12 3 3/4 157
■
Right shift
0~0
n
Device unit
II - 48
6. Explanation of Instructions
6.2 Instruction Tables
Description
Instruction steps
Execution
Condition
Ext. inst.
See for
Class
sign
Execution
Symbol Process details
Storage
(S2)
SER SER S1 S2 D (S1) 5 6 165
16-bit
n
DSERP DSERP S1 S2 D (D): Match No. ■ 5 10 165
(D+1): Number of matches
Number of bits set to "1"
b15 b0
SUMP SUMP S D (D): Number of "1"s ■ 3 7 167
SEG SEG S D
b3 to bO 3 3 169
16-bit
(S) (D)
7SEG
■
Decode
(D)
(S) Decode
2 n bit
DECOP DECOP S D n n ■ 4 8 171
■
Encode
(S)
n
Encode (D)
2 bit
ENCOP ENCOP S D n n ■ 4 8 173
II - 49
6. Explanation of Instructions
6.2 Instruction Tables
Description
Instruction steps
Execution
Condition
Ext. inst.
See for
Class
sign
Execution
Symbol Process details
Storage
Carry flag set
II - 50
6. Explanation of Instructions
6.2 Instruction Tables
Description
Instruction steps
Execution
Condition
Ext. inst.
See for
Class
sign
Execution
Symbol Process details
Storage
Bit test (A contact operation start
LDBIT <= S1 n 3 2 177
handling) (Note 1)
Bit test (A contact series connection
ANDBIT <= S1 n 3 2 177
handling) (Note 1)
Bit test (A contact parallel connection
ORBIT <= S1 n 3 2 177
handling) (Note 1)
1-bit
BIT
Description
steps
Instruction
Execution
Condition
Ext. inst.
See for
Class
sign
Execution
Symbol Process details
Storage
K1: Tool No. search 191
K2: Tool No. AND operation search 192
K3: Tool change 193
K4: Arbitrary position tool change 194
K5: Forward run of pointer 195
ATC
― S.ROT S.ROT Kn Rn Rm Mn 8 5
K3: Ring counter 207
II - 51
6. Explanation of Instructions
6.3 Data Designation Method
b15 ~ b0
Word device 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0
II - 52
6. Explanation of Instructions
6.3 Data Designation Method
XF to XC XB to X8 X7 to X4 X3 to X0
K1 designation
range
(4 points)
K2 designation
range
(8 points)
K3 designation
range
(12 points)
K4 designation
range
(16 points)
List of Numeric Values that Can Be Dealt with as Source Data for Digit Designation at Source (S) Side
Number of Digits Designated With 16-Bit Instruction
K1 (4 points) 0 to 15
K2 (8 points) 0 to 255
K3 (12 points) 0 to 4095
K4 (16 points) -32768 to 32767
If the source side is a digit-designated bit device, and the destination is a word device, the word device
on the destination side will be 0 after the digit-designated bits on the source side.
II - 53
6. Explanation of Instructions
6.3 Data Designation Method
When a digit is designated on the destination (D) side, the No. of points designated by the digit will be the
target of the destination side.
H1234 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0
MOV H1234 K2M0
M15・・・・・・・・・・・・・M8M7・・・・・・・・・・・・・・M0
Destination (D) K2M0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 0 0
Do not change 3 4
(Note)
MOV D0 K2M100
M115・・・・・・・・・・・・・M108M107・・M104M103・・M100
K2M100 1 0 0 1 1 1 0 1
Destination (D)
Do not change
M0
MOV K100 D0
II - 54
6. Explanation of Instructions
6.3 Data Designation Method
K1 designation range
(8 points)
K2 designation range
(8 points)
K3 designation range
(12points)
K4 designation range
(16 points)
K5 designation range
(20 points)
K6 designation range
(24 points)
K7 designation range
(28 points)
K8 designation range
(32 points)
List of Numeric Values that Can Be Dealt with as Source Data for Digit Designation at Source (S) Side
Number of Digits With 32-bit Number of
Digits With 32-bit Instructions
Designated Instructions
K1 (4 points) 0 to 15 K5 (20 points) 0 to 1048575
K2 (8 points) 0 to 255 K6 (24 points) 0 to 16772165
K3 (12 points) 0 to 4095 K7 (28 points) 0 to 268435455
K4 (16 points) 0 to 65535 K8 (32 points) -2147483648 to 2147483647
In cases where the source is a bit device designated by digit designation, and the destination is a word
device, the word device for the destination becomes 0 following the bit designated by digit designation at
the source.
II - 55
6. Explanation of Instructions
6.3 Data Designation Method
Become 0
M0
DMOV K100 D0
II - 56
6. Explanation of Instructions
6.4 Index Qualification
(1) The index (Z0,Z1) can be set in the range of –32768 to 32767 with a sign added.
(2) The index qualification is used only for the MOV instruction. (DMOV cannot be used.)
(3) The usable instruction format is as shown below.
(a) Transmission of data to Z0, Z1.
MOV Kn Z0
MOV
Kn or Hn is used
Z0 or Z1
[Note] The range of the devices will not be checked if index qualification is applied to the devices during
sequence program execution. Thus, keep in mind that the index register contents exceeds the
device range at qualification, unexpected type of device are referred or renewed.
II - 57
6. Explanation of Instructions
6.5 Operation Error
• In the case where an error described in each instruction's explanation page has occurred:
Device range check will not be performed when index qualification is carried out.
(b) If instruction handles a variable length of device (BMOV, FMOV, etc. that would specify the number of
transfers), device range check will not be performed. In case that the relevant device range has
exceeded, the data is written into another device.
In such a case indicated below, error will not occur even if D2047 has been exceeded.
II - 58
6. Explanation of Instructions
6.6 Execution Condition of Instruction
With coil equivalent basic instruction and function instruction, if "execution at ON" and "execution at rising
edge" are both possible with the same instruction, add "P" at the end of instruction to differentiate the
execution condition.
• Instruction when executed at ON Instruction name
• Instruction when executed at rising edge Instruction name + P
With MOV instruction, execution at ON and execution at rising edge are specified as shown below.
MOV K4X0 D0
Execute at ON
MOVP K4X0 D0
II - 59
6. Explanation of Instructions
6.7 Counting Step Number
Basic number of steps for basic instruction and function instruction is (number of specified devices + 1).
For example, if "+ instruction", the number of steps is as shown below.
+ D0 R0
(1) (2) Indicates the number of devices
3 steps
+ D0 R0 D10
(1) (2) (3)
4 steps
Instruction list
No. of
Process unit
Description
steps
Instruction
Execution
Condition
Ext. inst.
See for
Class
sign
Execution
+ + S D ● 3 3 86
+ (BIN)
16-bit
(D)+(S) (D)
+P S D (BIN) ●
+P 3 7 86
(a) (b)
II - 60
6. Explanation of Instructions
6.8 Operations when the OUT, SET/RST, or PLS/PLF Instruction of the Same Device is Used
6.8 Operations when the OUT, SET/RST, or PLS/PLF Instruction of the Same Device is
Used
Operations when multiple OUT instructions, SET/RST instructions or PLS/PLF instructions using the same
device are executed in one scan are explained.
In the case of refresh type CPU unit, when output (Y) is specified with OUT instruction, ON/OFF status of
the OUT instruction executed at the end of 1 scan is output.
(b) The RST instruction turns a specified device OFF when the RST command is ON and it does not
operate when the RST command is OFF. Therefore, when the RST instructions of the same device
are executed multiple times within one scan, and if one or more RST commands are ON, the
specified device will be turned OFF.
(c) When both the SET instruction and RST instruction of the same device exist within one scan, the SET
instruction turns a specified device ON when the SET command is ON, and the RST instruction
turns a specified device OFF when the RST command is ON.
When both the SET command and RST command are OFF, the specified device's ON/OFF status
does not change.
II - 61
6. Explanation of Instructions
6.8 Operations when the OUT, SET/RST, or PLS/PLF Instruction of the Same Device is Used
ON
M0 OFF
II - 62
6. Explanation of Instructions
6.9 How to Read Instruction Tables
○D+, D+P, D-, D-P ……BIN32-bit addition and subtraction (Storage destination device independent type)
Compatible
Usable instruction: D + , D -
instruction mode
Usable device
Digit
Setting
data Bit device Word device Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S1 ○ ○ ○ ○ ○ ○ ○
S2 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
D ○ ○ ○ ○ ○ ○ ○
Extended
- - Blank - - (Usable for any instructions)
instruction mode
Usable device
Digit
Setting
data Bit device Word device Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S1 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ △ △
S2 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ △ △ ○
D ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
A list of usable instructions and devices for each instruction mode is provided here.
"Compatible instruction mode" is the PLC instruction mode having instruction's compatibility
with the conventional machine type. "Extended instruction mode" is the instruction mode in
which the kinds of instructions and usable devices are extended. Refer to "6.1 Compatible
Instructions and Extended Instructions" for details.
Instruction Execution
indicates D+ / D-
symbol condition
Command
D+, D- S1 S2 D
Command
D + P, D - P P S1 S2 D
Explanation of the setting data and data type for each instruction is provided.
The functions first, then execution conditions, then program examples are described on the following pages.
II - 63
7. Basic Instructions
7. Basic Instructions
Basic instructions include instructions to describe relay control ladders, etc. They are divided into the
following categories.
Instruction Meaning
Contact instruction Operation start, series connection, parallel connection
Connection instruction Ladder block connection, creation of pulses from operation
results, store/read operation results
Output instruction Bit device output, pulse output, output reversal
Shift instruction Bit device shift
Master control instruction Master control
Termination instruction Program termination
Other instructions Instructions which do not fall into the above categories,
such as no operation.
II - 64
7. Basic Instructions
LD, LDI
{ LD, LDI (Operation start) AND, ANI (Series connection) OR, ORI (Parallel connection)
Compatible/Extended
instruction mode
Usable devices
Digit
Set Con-
data Bit Devices Word Devices Pointer desig- Index
stant nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S
The compatible instruction mode and extended instruction mode share the same specifications for this
instruction.
Instruction Execution
symbol condition
Bit device number / Bit designation of word device
X1/D0.1
LD
X1/D0.1
LDI
X2/D0.2
AND
X2/D0.2
ANI
OR X3/D0.3
ORI X3/D0.3
Set Data
Set Data Meaning Data Type
S Devices used as connections Bit
II - 65
7. Basic Instructions
LD, LDI
Functions
LD,LDI (1) LD is the A contact operation start instruction, and LDI is the B contact operation start
instruction. They read ON/OFF information from the designated device (if a word device bit has
been designated, this becomes the 1/0 status of the designated bit), and use that as an
operation result.
AND,ANI (1) AND is the A contact series connection instruction, and ANI is the B contact series connection
instruction. They read the ON/OFF data of the designated bit device (if a bit designation has
been made for a word device, the 1/0 status of the designated bit is read), perform an AND
operation on that data and the operation result to that point, and take this value as the
operation result.
OR,ORI (1) OR is the A contact single parallel connection instruction, and ORI is the B contact single
parallel connection instruction. They read ON/OFF information from the designated device (if a
word device bit has been designated, this becomes the 1/0 status of the designated bit), and
perform an OR operation with the operation results to that point, and use the resulting value as
the operation result.
REMARK
Word device bit designations are made in hexadecimal. Bit b11 of D0 would be D0.B.
Operation Errors
(1) There are no operation errors with LD,LDI,AND,ANI,OR,or ORI instructions.
Program Example
(1) A program using LD, AND,OR, and ORI instructions.
8 END
II - 66
7. Basic Instructions
LD, LDI
(2) A program linking contact points established through the use of ANB and ORB instructions.
II - 67
7. Basic Instructions
ANB,ORB
The compatible instruction mode and extended instruction mode share the same specifications for this
instruction.
Instruction Execution
symbol condition
ANB
ANB
Block A Block B
Block A
ORB
ORI
1 contact series connections
Block B use OR or ORI.
Functions
ANB (1) Performs an AND operation on block A and block B, and takes the resulting value as the
operation result.
(2) The symbol for ANB is not the contact symbol, but rather is the connection symbol.
(3) When programming in the list mode, up to 7 instructions of ANB and ORB combined (8 blocks)
can be used consecutively.
ORB (1) Conducts an OR operation on block A and block B, and takes the resulting value as the
operation result.
(2) ORB is used to perform parallel connections for ladder blocks with two or more contacts. For
ladder blocks with only one contact, use OR or ORI; there is no need for ORB in such cases.
(3) The ORB symbol is not the contact symbol, but rather is the connection symbol.
(4) When programming in the list mode, up to 7 instructions of ANB and ORB combined (8 blocks)
can be used consecutively.
Operation Errors
(1) There are no operation errors with ANB or ORB instructions.
II - 68
7. Basic Instructions
ANB,ORB
Program Example
(1) A program using ANB and ORB instructions
0 0 LD X0
X2 X3 1 OR X2
2 LD X1
X4 X5
3 OR X3
4 ANB
9 END 5 LD X4
6 AND X5
7 ORB
8 OUT M0
9 END
II - 69
7. Basic Instructions
LDP,LDF,ANDP,ANDF,ORP,ORF
Extended
instruction mode
Usable devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S
Instruction Execution
symbol condition
Bit device number / Bit designation of word device
X1/D0.1
LDP
X1/D0.1
LDF
X2/D0.2
ANDP
X2/D0.2
ANDF
ORP X3/D0.3
ORF X3/D0.3
Set Data
Set Data Meaning Data Type
S Devices used as contacts Bit
II - 70
7. Basic Instructions
LDP,LDF,ANDP,ANDF,ORP,ORF
Functions
LDP,LDF (1) LDP is the leading edge pulse operation start instruction, and is ON only at the leading
edge of the designated bit device (when it goes from OFF to ON).
If a word device has been designated, it is ON only when the designated bit changes from
0 to 1.
In cases where there is only an LDP instruction, it acts identically to instructions for the
creation of a pulse that are executed during ON ( P).
A ladder using LDP instruction A ladder not using an LDP instruction
X0 X0
MOV K0 D0 MOVP K0 D0
X0 X0
M0 PLS M0
(2) LDF is the trailing edge pulse operation start instruction, and is ON only at the trailing edge
of the designated bit device (when it goes from ON to OFF). If a word device has been
designated, it is ON only when the designated bit changes from 1 to 0.
ANDP,ANDF (1) ANDP is a leading edge pulse series connection instruction, and ANDF is a trailing edge
pulse series connection instruction. They perform an AND operation with the operation
result to that point, and take the resulting value as the operation result.
The ON/OFF data used by ANDP and ANDF are indicated in the table below:
ORP,ORF (1) ORP is a leading edge pulse parallel connection instruction, and ORF is a trailing edge
pulse parallel connection instruction. They perform an OR operation with the operation
result to that point and take the resulting value as the operation result.
Operation Errors
(1) There are no operation errors with LDP, LDF, ANDP, ANDF, ORP, or ORF instructions.
II - 71
7. Basic Instructions
LDP,LDF,ANDP,ANDF,ORP,ORF
Program Example
(1) The following program executes the MOV instruction at input X0, or at the leading edge of b10 (bit 10)
of data register D0.
REMARK
1)*: Word device bit designations are performed in hexadecimal.
Bit b10 of D0 would be D0.A.
II - 72
7. Basic Instructions
INV
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
Instruction Execution
symbol condition
INV
Functions
Inverts the operation result immediately prior to the INV instruction.
Operation Result Immediately Prior to Operation Result Following the
the INV Instruction. Execution of the INV Instruction.
OFF ON
ON OFF
Operation Errors
(1) There are no operation errors associated with the INV instruction.
Program Example
(1) A program which inverts the X0 ON/OFF data, and outputs from Y10.
[Timing Chart]
ON
X0 OFF
Y10 ON
OFF
POINT
(1) The INV instruction operates based on the results of calculation made until the
INV instruction is given. Accordingly, use it in the same position as that of the
AND instruction.
The INV instruction cannot be used at the LD and OR positions.
II - 73
7. Basic Instructions
MEP,MEF
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
Instruction Execution
symbol condition
MEP
MEF
Functions
MEP (1) If operation results up to MEP instruction are leading edge (from OFF to ON), goes ON
(continuity state).
If operation results up to MEP instruction are anything other than leading edge, goes OFF
(non-continuity state).
(2) Use of the MEP instruction simplifies pulse conversion processing when multiple contacts are
connected in series.
MEF (1) If operation results up to MEF instruction are trailing edge (from ON to OFF), goes ON (continuity
state).
If operation results up to MEF instruction are anything other than trailing edge, goes OFF
(non-continuity state).
(2) Use of the MEF instruction simplifies pulse conversion processing when multiple contacts are
connected in series.
Operation Errors
(1) There are no operation errors associated with the MEP or MEF instructions.
Program Example
(1) A program which performs pulse conversion on the operation results of X0 and X1.
[Ladder Mode] [List Mode]
X0 X1 Steps Inst. Device
0 SET M0 0 LD X0
1 AND X1
4 END
2 MEP
3 SET M0
4 END
POINT
(1) Because the MEP and MEF instructions operate with the operation results
immediately prior to the MEP and MEF instructions, the AND instruction should
be used at the same position.
The MEP and MEF instructions cannot be used at the LD or OR position.
II - 74
7. Basic Instructions
EGP,EGF
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
Instruction Execution
symbol condition
Command Vn
EGP
Command Vn
EGF
Set Data
Set Data Meaning Data Type
Vn Edge relay No. where operation results are stored Bit
Functions
EGP (1) Operation results up to the EGP instruction are stored in memory by the edge relay (V).
(2) Goes ON (continuity state) at the leading edge (OFF to ON) of the operation result up to the EGP
instruction.
If the operation result up to the EGP instruction is other than a leading edge (i.e., from ON to ON,
ON to OFF, or OFF to OFF), it goes OFF (non-continuity state).
EGF (1) Operation results up to the EGF instruction are stored in memory by the edge relay (V).
(2) Goes ON (continuity state) at the trailing edge (from ON to OFF) of the operation result up to the
EGF instruction.
If the operation result up to the EGF instruction is other than a trailing edge (i.e., from OFF to
ON, ON to ON, or OFF to OFF), it goes OFF (non-continuity state).
Operation Errors
(1) There are no operation errors associated with the EGP or EGF instructions.
POINT
(1) Because the EGP and EGF instructions operate with the operation results
immediately prior to the EGP and EGF instructions, the AND instruction should
be used at the same position.
The EGP and EGF instructions cannot be used at the LD or OR position.
II - 75
7. Basic Instructions
OUT(Y,M,L,F,B,SB,SM)
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
D
Instruction Execution
symbol condition
Bit device number (D)
OUT
Y35
D0.5
Set Data
Set Data Meaning Data Type
D Number of device to be turned ON and OFF Bit
Functions
(1) Operation results up to the OUT instruction are output to the designated device.
When Bit Designation has
When Using Bit Devices been Made for Word
Operation Device
results
Contact
Coil Bit Designated
A Contact B Contact
OFF ON Non-continuity Continuity 0
ON ON Continuity Non-continuity 1
Operation Errors
(1) There are no operation errors associated with the OUT instruction.
II - 76
7. Basic Instructions
OUT(Y,M,L,F,B,SB,SM)
Program Example
(1) When bit device is in use
(2) When bit designation has been made for word device
D0
II - 77
7. Basic Instructions
OUT(T,ST), OUTH(T)
Set Data
Set Data Meaning Data Type
D Timer number Bit
Set value Value set for timer BIN 16 bits
REMARK
(1) Timer values can be set only as a decimal constant (K). Hexadecimal constants (H) cannot be used
for timer settings.
(2) The retentive timer (ST) cannot be used for the 10ms timer.
Functions
(1) When the operation results up to the OUT instruction are ON, the timer coil goes ON and the timer
counts up to the value that has been set; when the time up state (total numeric value is equal to or
greater than the setting value), the contact responds as follows:
A contact Continuity
B contact Non-continuity
II - 78
7. Basic Instructions
OUT(T,ST), OUTH(T)
(2) The following will apply if the calculation result up to OUT instruction changes from ON to OFF.
(3) The contact status of retentive timer after time-up will not be changed until the RST instruction is
executed.
(4) A negative number (-32768 to -1) cannot be set as the setting value for the timer.
If a negative value is set for the word device, operation is carried out taking the value as a positive
value with no signs.
(5) When 0 is set for the set value, time will be up instantly.
(6) In cases where the OUT instruction is not executed while the OUT instruction is ON due to the JMP
instruction, etc., no present value update or contact ON/OFF operation is conducted. Also, if the
same OUT instruction is conducted two or more times during the same scan, the present value will
be updated for the number of times executed.
POINT
(1) Setting the timer setting value using the setting display device.
The method for setting the value of timer T and retentive timer ST includes the
following two ways.
• A method in which the setting value (Kn) programmed by a sequence
program is validated. (Fixed timer)
• A method in which the setting value set with the setting display device is
validated. (Variable timer)
Refer to "5.3 Detailed Explanation of Devices" for details on variable timer.
Operation Errors
(1) There are no operation errors associated with the OUT T or OUTH T instruction.
Program Example
(1) The following program turns Y10 and Y14 ON 10 seconds after X0 has gone ON.
II - 79
7. Basic Instructions
OUT(T,ST), OUTH(T)
(2) The following program uses the BCD data at X10 to X1F as the timer's set value.
[Ladder Mode]
X0
0 BINP K4X10 D10 Converts BCD data at X10 to X1F to BIN and
stores at D10.
X2 D10
4 T2 When X2 goes ON, the data stored at D10 is
T2 calculated as the set value.
8 Y15 Y15 goes ON when T2 counts up.
10 END
(3) The following program turns Y10 ON 250ms after X0 has gone ON.
II - 80
7. Basic Instructions
OUT(C)
{ OUT(C) … Counters
Compatible/Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
D
Set
value
The compatible instruction mode and extended instruction mode share the same specifications for this instruction.
Instruction Execution
symbol condition
Set value (Valid from 1 to 32767)
K50
OUT C C0
Set Data
Set Data Meaning Data Type
D Counter No. Bit
Set value Counter set value BIN 16 bits
REMARK
(1) Only decimal constant (K) can be used for the counter setting value.
Hexadecimal constant (H) cannot be used for the counter setting value.
Function
(1) When the operation results up to the OUT instruction change from OFF to ON, 1 is added to the
present value (count value) and the count up status (present value = set value), and the contacts
respond as follows:
A contact Continuity
B contact Non-continuity
(2) Not counted if the operation result is remained ON. (There is no need to perform pulse conversion on
count input.)
(3) After "present value≧set value" has been realized, the contact state will not be changed until RST
instruction is executed, but the present value is further added by +1.
In this case, the present value is added by +1 up to 65535, and then counted up again by +1 from 0.
(4) A negative number (-32768 to -1) cannot be set as the setting value. If a negative value is set for the
word device, operation is carried out taking the value as a positive value with no signs. If the set
value is 0, the processing is identical to that of when 1 is set.
POINT
(1) Setting the timer setting value using the setting display device.
The method for setting the value of timer T and retentive timer ST includes the following two ways.
• A method in which the setting value (Kn) programmed by a sequence program is validated.
(Fixed timer)
• A method in which the setting value set with the setting display device is validated. (Variable timer)
Refer to "5.3 Detailed Explanation of Devices" for details on variable timer.
II - 81
7. Basic Instructions
OUT(C)
Operation Errors
(1) There are no operation errors associated with the OUT C instruction.
Program Example
(1) The following program turns Y30 ON after X0 has gone ON 10 times, and resets the counter when X1
goes ON.
(2) The following program sets the value for C10 at 10 when X0 goes ON, and at 20 when X1 goes ON.
[Ladder Mode]
X0 X1
0 MOVP K10 D0 Stores 10 at D0 when X0 goes ON
X1 X0
5 MOVP K20 D0 Stores 20 at D0 when X1 goes ON
X3 D0
10 C10 C10 takes data stored at D0 as set value, and counts
C10
14 Y30 Y30 goes ON when C10 reaches count up state
16 END
[List Mode]
Steps Inst. Device
0 LD X0
1 ANI X1
2 MOVP K10
D0
5 LD X1
6 ANI X0
7 MOVP K20
D0
10 LD X3
11 OUT C10
D0
14 LD C10
15 OUT Y30
16 END
II - 82
7. Basic Instructions
SET
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
D
Instruction Execution
symbol condition
SET input
SET D
SET
Set Data
Set Data Meaning Data Type
D Bit device number to be set (ON) Bit
Functions
(1) When SET input is ON, the designated devices respond as follows:
Device Device Status
Bit device Coils and contacts turned ON
Word device Designation bit set at 1
(2) Devices turned ON will stay ON even if SET input goes to OFF. Devices turned ON by the SET
instruction can be turned OFF by the RST instruction.
ON
X5 X5 OFF
SET Y10
X7 ON
RST Y10 X7 OFF
Y10 OFF ON
(3) Device status does not change when SET input is OFF.
Operation Errors
(1) There are no operation errors associated with the SET instruction.
II - 83
7. Basic Instructions
SET
Program Example
(1) When X8 is turned ON, Y8B is set (turned ON); when X9 is turned ON, Y8B is reset (turned OFF).
(2) When X8 is turned ON, D0 bit5 (b5) is turned to 1; when X9 is turned ON, D0 bit 5 (b5) is turned to 0.
II - 84
7. Basic Instructions
RST
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
D
Instruction Execution
symbol condition
RST input
RST D
RST
Set Data
Set Data Meaning Data Type
D Device No. to be reset Bit
Functions
(1) Designated devices respond as follows when RST input is turned ON:
Device Device Status
Bit device Turns coils and contacts OFF
Timers and Sets the present value to 0, and turns coils and contacts OFF
counters
Word device Sets value of designated bit to 0
(2) Device status does not change when RST input goes OFF
Operation Errors
(1) There are no operation errors associated with the RST instruction.
II - 85
7. Basic Instructions
RST
Program Example
(1) Reset of 100ms retentive timer and counter is executed.
[Ladder Mode]
X4 K18000 When ST60 is set for the retentive timer, ST60 is turned
0 ST60 ON when X4's ON time reaches 30 minutes.
ST60 K16
C23
The number of times when ST60 has turned ON is
5
counted.
RST ST60 When ST60 is turned ON, ST60 is reset.
C23
14 Y55 When C23 counts up, Y55 is turned ON.
X5
16 RST C23 When X5 is turned ON, C23 is reset.
21 END
[List Mode]
Steps Inst. Device
0 LD X4
1 OUT ST60
K18000
5 LD ST60
6 OUT C23
K16
10 RST ST60
14 LD C23
15 OUT Y55
16 LD X5
17 RST C23
21 END
II - 86
7. Basic Instructions
MC,MCR
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Level desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H N
n
D
Instruction Execution
symbol condition
Command
MC MC n D
n
D
Master control ladder
MCR MCR n
Set Data
Set Data Meaning Data Type
n Nesting (N0 to N7) Nesting
D Number of device to turn ON Bit
Functions
The master control instruction is used to enable the creation of highly efficient ladder switching
sequence programs, through the opening and closing of a common bus for ladders.
X0 X0
MCR N1 MCR N1
X0F XF
Y10 Y10
II - 87
7. Basic Instructions
MC,MCR
MC (1) If the ON/OFF command of the MC instruction is ON when master control is commenced, the
operation result between the MC instruction and MCR instruction will be exactly as the
instruction (ladder) shows.
If the MC ON/OFF instruction is OFF, the operation result between MC and MCR instructions
will be as follows:
(2) Nesting can be used up to 8 times (N0 to 7). When using nesting, nests should be inserted from
the lower to higher nesting number (N) with the MC instruction, and from the higher to the lower
order with the MCR instruction.
(3) Regardless of the MC instruction's ON/OFF state, scan between MC instruction and MCR
instruction can be executed.
(4) MC instruction can be used as many times as you wish within one scan by changing devices in
the destination D.
(5) When MC instruction is ON, coil of the device specified in the destination turns ON.
MCR (1) This is the instruction for recovery from the master control, and indicates the end of the master
control range of operation.
II - 88
7. Basic Instructions
MC,MCR
Operation Errors
(1) There are no operation errors associated with the MC or MCR instructions.
Program Example
The master control instruction can be used in nesting. The different master control regions are
distinguished by nesting (N). Nesting can be used from N0 through N7.
The use of nesting enables the creation of ladders which successively limit the execution condition
of the program.
A ladder using nesting would appear as shown below:
Executed when A
and B are ON
MCR N1 MCR N1
Executed when
A is ON
MCR N0 MCR N0
No relation to
status of A, B, or C
II - 89
7. Basic Instructions
PLS,PLF
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
D
Instruction Execution
symbol condition
Command
PLS D
PLS
Command
PLF D
PLF
Set Data
Set Data Meaning Data Type
D Pulse conversion device Bit
Functions
PLS (1) When PLS instruction is turned OFF to ON, turn specified device ON for 1 scan; otherwise
(ON→ON,ON→OFF,OFF→ON), turn OFF.
ON
X5 X5 OFF
PLS D ON
M0 OFF
1 scan 1 scan
(2) If the RUN key switch is changed from RUN to STOP after the execution of the PLS instruction,
the PLS instruction will not be executed again even if the switch is set back to RUN. PLS
instruction will be executed if the PLS instruction has been ON when the power was turned ON.
(3) When a latch relay (L) is specified for the PLS instruction, switching power OFF with the latch
relay (L) ON and then switching it ON again executes the specified device's 1scan ON.
II - 90
7. Basic Instructions
PLS,PLF
PLF (1) When PLF instruction is changed from ON to OFF, the designated device is turned 1 scan ON.
For the other cases (OFF→OFF,OFF→ON,ON→ON), the designated device is turned OFF.
ON
X5 X5 OFF
PLF D ON
M0 OFF
1 scan 1 scan
(2) Turn the sequence program RUN switch to STOP after PLF instruction. Even if switched to
RUN again, PLF instruction will not be executed.
POINT
Note that the device designated by D may be ON more than one scan if the PLS or
PLF instruction is jumped by the CJ instruction or if the subroutine program where
the PLS/PLF instruction had been executed was not called by the CALL instruction.
Operation Errors
(1) There are no operation errors associated with the PLS or PLF instructions.
Program Example
(1) The following program executes the PLS instruction when X9 goes ON.
ON
X9 OFF
ON
M9 OFF
1 scan
(2) The following program executes the PLF instruction when X9 goes OFF.
ON
X9 OFF
ON
M9 OFF
1 scan
II - 91
7. Basic Instructions
FF
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
D
Instruction Execution
symbol condition
Command
FF D
FF
Set Data
Set Data Meaning Data Type
D Device number to invert Bit
Function
(1) The status of the device designated by (D) is inverted when the inversion command goes from OFF to
ON.
Device Status
Device
Prior to FF execution After FF execution
OFF ON
Bit device
ON OFF
Bit designation of word 0 1
device 1 0
Operation Errors
(1) There are no operation errors associated with the FF instruction.
II - 92
7. Basic Instructions
FF
Program Example
(1) The following program inverts the output of Y10 when X9 goes ON.
ON
X9 OFF
ON
Y10 OFF
(2) The following program reverses b10 (bit 10) of D10 when X0 goes ON
II - 93
7. Basic Instructions
SFT,SFTP
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
D
Instruction Execution
symbol condition
Command
SFT D
SFT
Command
SFTP D
SFTP
Set Data
Set Data Meaning Data Type
D Number of device to shift Bit
II - 94
7. Basic Instructions
SFT,SFTP
Functions
(1) When bit device is used
(a) Shifts to a device designated by (D) the ON/OFF status of the device immediately prior to
the one designated, and turns the prior device OFF.
Shift input
Shift range
M0
M15 M14 M13 M12 M11 M10 M9 M8
SFTP M14
0 0 0 0 0 1 1 0 X02 ON
0
SFTP M13
0 0 0 0 1 0 1 0 After first shift input
0
SFTP M12
0 0 0 1 0 0 1 0 After second shift input
SFTP M11 0 0 0 1 0 1 1 0 X02 ON
X2 0
SET M10 0 0 1 0 1 0 1 0 After third shift input
0
First device to shift 0 1 0 1 0 0 1 0 After fourth shift input
0
0 0 1 0 0 0 1 0 After fifth shift input
For example, if M11 has been designated by the SFT instruction, when the SFT instruction
is executed, it will shift the ON/OFF status of M10 to M11, and turn M10 OFF.
(b) Turn the first device to be shifted ON with the SET instruction.
(c) When the SFT and SFTP are to be used consecutively, the program starts from the device
with the larger number.
Operation Errors
(1) There are no operation errors associated with the SFT(P) instruction.
II - 95
7. Basic Instructions
SFT,SFTP
Program Example
(1) The following program shifts Y57 to Y5B when X8 goes ON.
[Ladder Mode]
X8
0 SFT Y5B
SFT Y5A
Shifts Y57 to Y5B when X8 goes ON
SFT Y59
Begin programming from larger
device number
SFT Y58
X7
10 SET Y57 Y57 turned ON when X7 goes ON
13 END
Y5A OFF
Y5B OFF
II - 96
7. Basic Instructions
MPS,MRD,MPP
The compatible instruction mode and extended instruction mode share the same specifications for this
instruction.
Instruction Execution
symbol condition
MPS, MRD, and MPP are not displayed as a part of the ladder display.
MPS
MRD
MPP
Function
MPS (1) Stores in memory the operation result (ON or OFF) immediately prior to the MPS instruction.
(2) Up to 8 MPS instructions can be used successively. However, if an MPP instruction is used in
the middle of process, the number of uses calculated for the MPS instruction will be
decremented by one.
MRD (1) Reads the operation result stored for the MPS instruction, and uses that result to perform the
operation in the next step.
MPP (1) Reads the operation result stored for the MPS instruction, and uses that result to perform the
operation in the next step.
POINT
(1) The following shows ladders both using and not using the MPS, MRD, and MPP
instructions.
Ladder using the MPS, MRD, and MPP Ladder not using MPS, MRD, and MPP
instructions. instructions.
X0 X1 X2 X0 X1 X2
Y10 Y10
X3 X4 X0 X1 X3 X4
Y11 Y11
X5 X0 X1 X5
Y12 Y12
Operation Errors
(1) There are no errors associated with the MPS, MRD, or MPP instructions.
II - 97
7. Basic Instructions
MPS,MRD,MPP
Program Example
(1) A program using the MPS, MRD, and MPP instructions.
II - 98
7. Basic Instructions
NOP,NOPLF,PAGE n
{ NOP,NOPLF,PAGE n … No operation
Compatible
instruction mode
Usable instruction: NOP
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
n
NOP NOP
NOPLF NOPLF
PAGE n PAGE n
Functions
NOP (1) This is a no operation instruction that has no impact on any operations up to this point.
NOPLF (1) This is a no operation instruction that has no impact on any operations up to that point.
(2) The NOPLF instruction is used when printing from a peripheral device to force a page change at
any desired location.
(a) When printing ladders
• A page break will be inserted between ladder blocks with the presence of the NOPLF
instruction.
• The ladder cannot be displayed correctly if an NOPLF instruction is inserted in the midst of
a ladder block.
Do not insert an NOPLF instruction in the midst of a ladder block.
(b) When printing instruction lists
• The page will be changed after the printing of the NOPLF instruction.
(3) See the Operating Manual for the peripheral device in use for more information regarding
printouts from peripheral devices.
II - 99
7. Basic Instructions
NOP,NOPLF,PAGE n
PAGE n (1) This is a no operation instruction that has no impact on any operations up to that point.
(2) Programs after PAGEn instruction are controlled as 0 step and after of the specified n-th page.
(Peripheral device display, printers, etc.)
Operation Errors
(1) There are no errors associated with the NOP, NOPLF, or PAGE instructions.
Program Example
NOP
[List Mode]
After change Steps Inst. Device
0 LD X8
X8 Y96
0 Y12 1 NOP
2 ANI X96
3 OUT Y12
4 END
II - 100
7. Basic Instructions
NOP,NOPLF,PAGE n
[List Mode]
After change Steps Inst. Device
0 LD X0
X0 Y96
0 Y16 1 OUT Y16
T3 2 NOP
Y66 3 ANI T3
4 OUT Y66
5 END
NOPLF
NOPLF 8 NOPLF
8
9 LD X1
X1
Y40 10 OUT Y40
9
11 END
II - 101
7. Basic Instructions
NOP,NOPLF,PAGE n
X000
0 MOV K1 D30
MOV K2 D40
Page change forced
when NOPLF is inserted
8 NOPLF
between two ladder
blocks.
‐1‐
X001
9 X001
PAGE n
II - 102
8. Function Instructions
8. Function Instructions
The function instruction includes the following types.
II - 103
8. Function Instructions
=, <>, >, <=, <, >=
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S1
S2
: S1 and S2 cannot be specified as constant at the same time.
[Instruction [Execution indicates the signs =, < > , >, < = , <, > =
Symbol] Condition]
LD S1 S2
AND S1 S2
OR
S1 S2
Set Data
Set Data Meaning Data Type
S1 Comparative data, or device No. where comparative data
BIN 16 bits
S2 is stored
Functions
(1) Treats BIN 16-bit data from device designated by (S1) and BIN 16-bit data from device
designated by (S2) as an A contact, and performs comparison operation.
(2) The results of the comparison operations for the individual instructions are as follows:
Comparison Comparison
Instruction Instruction
Condition Operation Condition Operation
Symbol in Symbol in
Result Result
= S1=S2 = S1≠S2
<> S1≠S2 <> S1=S2
> S1>S2 > S1≦S2
Continuity Non-continuity
<= S1≦S2 <= S1>S2
< S1<S2 < S1≧S2
>= S1≧S2 >= S1<S2
II - 104
8. Function Instructions
=, <>, >, <=, <, >=
(3) In cases where hexadecimal constants have been designated by (S1) and (S2), or when a
numerical value (8 to F) where the highest bit (b15) will be 1 has been designated, the value will
be read as a negative BIN value number for purposes of the comparison.
Operation Errors
(1) There are no operation errors associated with the =, <>, >, <=, <, or >= instructions.
Program Example
(1) The following program compares the data at X0 to XF with the data at D3, and turns Y33 ON if
the data is identical.
[Ladder Mode] [List Mode]
Y33 Steps Inst. Device
(2) The following program compares BIN value K100 to the data at D3, and establishes continuity if
the data in D3 is something other than 100.
[Ladder Mode] [List Mode]
Y33 Steps Inst. Device
M3
0 <> K100 D3 0 LD M3
1 AND<> K100
5 END D3
4 OUT Y33
5 END
(3) The following program compares BIN value K100 to the data at D3, and establishes continuity if
the D3 data is less than 100.
[Ladder Mode] [List Mode]
M3 Y33 Steps Inst. Device
0 > K100 D3 0 LD M3
M8 1 LD> K100
D3
7 END 4 OR M8
5 ANB
6 OUT Y33
7 END
(4) The following program compares the data in D0 and D3, and if the data in D0 is equal to or less
than the data in D3, establishes continuity.
[Ladder Mode] [List Mode]
Y33 Steps Inst. Device
M3 M8
0 0 LD M3
1 AND M8
<= D0 D3 2 OR<= D0
END D3
6
5 OUT Y33
6 END
II - 105
8. Function Instructions
D=,D<>,D>,D<=,D<,D>=
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S1
S2
: S1 and S2 cannot be specified as constant at the same time.
[Instruction [Execution indicates the signs D = , D < > , D > , D < = , D < , D > =
Symbol] Condition]
LD S1 S2
AND S1 S2
OR
S1 S2
Set Data
Set Data Meaning Data Type
S1 Comparative data, or device No. where comparative data
BIN 32 bits
S2 is stored
Functions
(1) Treats BIN 32-bit data from device designated by (S1) and BIN 32-bit data from device
designated by (S2) as an A contact, and performs comparison operation.
(2) The results of the comparison operations for the individual instructions are as follows:
Comparison Comparison
Instruction Instruction
Condition Operation Condition Operation
Symbol in Symbol in
Result Result
D= S1=S2 D= S1≠S2
D<> S1≠S2 D<> S1=S2
D> S1>S2 D> S1≦S2
Continuity Non-continuity
D<= S1≦S2 D<= S1>S2
D< S1<S2 D< S1≧S2
D>= S1≧S2 D>= S1<S2
II - 106
8. Function Instructions
D=,D<>,D>,D<=,D<,D>=
(3) In cases where hexadecimal constants have been designated by (S1) and (S2), or when a
numerical value (8 to F) where the highest bit (b31) will be 1 has been designated, the value will
be read as a negative BIN value number for the purpose of the comparison.
Operation Errors
(1) There are no operation errors associated with the D=, D<>, D>, D<=, D<, or D>= instructions.
Program Example
(1) The following program compares the data at X0 to XF with the data at D3 and D4, and turns
Y33 ON if the data is identical.
[Ladder Mode] [List Mode]
Y33 Steps Inst. Device
0 D= K8X0 D3 0 LDD= K8X0
D3
4 END 3 OUT Y33
4 END
(2) The following program compares BIN value K38000 to the data at D3 and D4, and establishes
continuity if the data in D3 and D4 is something other than 38000.
[Ladder Mode] [List Mode]
Y33 Steps Inst. Device
M3
0 D<> K38000 D3 0 LD M3
1 ANDD<> K38000
6 END D3
5 OUT Y33
6 END
(3) The following program compares BIN value K-80000 to the data at D3 and D4, and establishes
continuity if the data in D3 and D4 is less than –80000.
[Ladder Mode] [List Mode]
Y33 Steps Inst. Device
M3
0 D> K-80000 D3 0 LD M3
M8 1 LDD> K-80000
D3
8 END 5 OR M8
6 ANB
7 OUT Y33
8 END
(4) The following program compares the data in D0 and D1 with the data in D3 and D4, and
establishes continuity if the data in D0 and D1 is equal to or less than the data in D3 and D4.
[Ladder Mode] [List Mode]
Y33 Steps Inst. Device
M3 M8
0 0 LD M3
1 AND M8
D<= D0 D3 2 ORD<= D0
6 END D3
5 OUT Y33
6 END
II - 107
8. Function Instructions
+, +P, -, -P
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S1
S2
D
: S1 and S2 cannot be specified as constant at the same time.
[Instruction [Execution indicates the signs + / -
Symbol] Condition]
Command
+, - S1 S2 D
Command
+ P, - P P S1 S2 D
Set Data
Set Data Meaning Data Type
Data to be added to or subtracted from, or the first number
S1
of the device storing such data
Addition or subtraction data, or first number of device BIN 16 bits
S2
storing addition or subtraction data
D First number of device storing addition or subtraction data
Functions
+ (1) Adds 16-bit BIN data designated by (S1) to 16-bit BIN data designated by (S2) and stores at the
device designated by (D).
S1 S2 D
(2) Values for S1, S2, and D can be designated between –32768 and 32767 (BIN 16 bits).
(3) The judgment of whether data is positive or negative is made by the most significant bit (b15).
b15 Judgment (+/-)
0 Positive
1 Negative
II - 108
8. Function Instructions
+, +P, -, -P
(4) The following will happen when an underflow or overflow is generated in an operation result:
The carry flag in this case does not go ON.
• K32767+K2 → K-32767 ---- A negative value is generated if b15 is 1.
(H7FFF) (H0002) (H8001)
• K-32768+K-2 → K32766 ---- A positive value is generated if b15 is 0.
(H8000) (HFFFE) (H7FFE)
- (1) Subtracts 16-bit BIN data designated by (S1) from 16-bit BIN data designated by (S2) and stores
the result of the subtraction at the device designated by (D).
S1 S2 D
(2) Values for S1, S2, and D can be designated between –32768 and 32767 (BIN 16 bits).
(3) The judgment of whether data is positive or negative is made by the most significant bit (b15).
(4) The following will happen when an underflow or overflow is generated in an operation result:
The carry flag in this case does not go ON.
• K-32768-K2 → K32766 ---- A positive value is generated if b15 is 0.
(H8000) (H0002) (H7FFE)
• K32767-K-2 → K-32767 ---- A negative value is generated if b15 is 1.
(H7FFF) (HFFFE) (H8001)
Operation Errors
(1) There are no operation errors associated with the +(P) or -(P) instructions.
II - 109
8. Function Instructions
+, +P, -, -P
Program Example
(1) The following program adds the contents of D3 and the contents of D0 when X5 goes ON, and
outputs result to Y38 through 3F.
[Ladder Mode] [List Mode]
X5 Steps Inst. Device
0 +P D3 D0 K2Y38 0 LD X5
1 +P D3
5 END
D0
K2Y38
5 END
(2) The following program outputs the difference between the set value for timer T3 and its present
value to Y40 to 53 by BCD.
[Ladder Mode] [List Mode]
X3 K18000 Steps Inst. Device
0 T3 0 LD X3
M400
5 - K18000 T3 D3 1 OUT T3
K18000
DBCD D3 K5Y40 5 LD M400
13 END 6 - K18000
T3
D3
10 DBCD D3
K5Y40
13 END
II - 110
8. Function Instructions
+, +P, -, -P
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S
D
This cannot be used with the compatible instruction mode. Refer to "6.2 Instruction Tables" for correspondence.
Command
+ P, - P P S D
Set Data
Set Data Meaning Data Type
Addition or subtraction data, or first number of device
S
storing addition or subtraction data
First number of device storing data to be added to or BIN 16 bits
D subtracted from
(Addition or subtraction data is stored in this device.)
Functions
+ (1) Adds 16 bit BIN data designated by (D) to 16 bit BIN data designated by (S), and stores the
result of the addition at the device designated by (D).
D S D
(2) The value for (S) and (D) can be designated at between –32768 and 32767 (BIN 16 bits).
(3) The judgment of whether data is positive or negative is made by the most significant bit (b15).
b15 Judgment (+/-)
0 Positive
1 Negative
(4) The following will happen when an underflow or overflow is generated in an operation result.
The carry flag in this case does not go ON.
• K32767+K2 → K-32767 ---- A negative value is generated if b15 is 1.
(H7FFF) (H0002) (H8001)
• K-32768+K-2 → K32766 ---- A positive value is generated if b15 is 0.
(H8000) (HFFFE) (7FFE)
II - 111
8. Function Instructions
+, +P, -, -P
- (1) Subtracts 16-bit BIN data designated by (D) from 16-bit BIN data designated by (S) and stores
the result of the subtraction at the device designated by (D).
D S D
(2) The values for (S) and (D) can be designated at between –32768 and 32767 (BIN 16 bits).
(3) The judgment of whether data is positive or negative is made by the most significant bit (b15).
b15 Judgment (+/-)
0 Positive
1 Negative
(4) The following will happen when an underflow or overflow is generated in an operation result.
The carry flag in this case does not go ON.
• K-32768-K2 → K32766 ---- A positive value is generated if b15 is 0.
(H8000) (H0002) (H7FFE)
• K32767-K-2 → K-32767 ---- A negative value is generated if b15 is 1.
(H7FFF) (HFFFE) (H8001)
Operation Errors
(1) There are no operation errors associated with the +(P) or -(P) instructions.
II - 112
8. Function Instructions
D+, D+P, D-, D-P
{ D+, D+P, D-, D-P … BIN 32-bit addition and subtraction operations
(Device at storage destination: Independent type)
Compatible
Usable instruction: D+, D-
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S1
S2
D
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S1
S2
D
: S1 and S2 cannot be specified as constant at the same time.
[Instruction [Execution indicates the signs D+ / D-
Symbol] Condition]
Command
D+, D- S1 S2 D
Command
D+P, D-P P S1 S2 D
Set Data
Set Data Meaning Data Type
Data to be added to or subtracted from, or the first number
S1
of the device storing such data
Addition or subtraction data, or number of device storing BIN 32 bits
S2
addition or subtraction data
D First number of device storing addition or subtraction data
Functions
D+ (1) Adds 32-bit BIN data designated by (S1) to 32-bit BIN data designated by (S2), and stores the
result of the addition at the device designated by (D).
S1+1 S1 S2+1 S2 D+1 D
b31‥‥b16b15‥‥b0 b31‥‥b16b15‥‥b0 b31‥‥b16b15‥‥b0
567890 (BIN) + 123456 (BIN) 691346 (BIN)
(2) The values for (S1), (S2) and (D) can be designated at between –2147483648 and 2147483647
(BIN 32 bits).
(3) The judgment of whether data is positive or negative is made by the most significant bit (b31).
b31 Judgment (+/-)
0 Positive
1 Negative
II - 113
8. Function Instructions
D+, D+P, D-, D-P
(4) The following will happen when an underflow or overflow is generated in an operation result.
The carry flag in this case does not go ON.
• K2147483647+K2 → K-2147483647 ---- A negative value is generated if b31 is 1.
(H7FFFFFFF) (H0002) (H80000001)
• K-2147483648+K-2 → K2147483646 ---- A positive value is generated if b31 is 0.
(H80000000) (HFFFE) (H7FFFFFFE)
D- (1) Subtracts 32-bit BIN data designated by (S1) from 32-bit BIN data designated by (S2), and
stores the result of the subtraction at the device designated by (D).
S1+1 S1 S2+1 S2 D+1 D
b31‥‥b16b15‥‥b0 b31‥‥b16b15‥‥b0 b31‥‥b16b15‥‥b0
567890 (BIN) - 123456 (BIN) 444434 (BIN)
(2) The values for (S1), (S2) and (D) can be designated at between –2147483648 and 2147483647
(BIN 32 bits).
(3) The judgment of whether data is positive or negative is made by the most significant bit (b31).
b31 Judgment (+/-)
0 Positive
1 Negative
(4) The following will happen when an underflow or overflow is generated in an operation result.
The carry flag in this case does not go ON.
• K-2147483648-K2 → K2147483646 ---- A positive value is generated if b31 is 0.
(H80000000) (H0002) (H7FFFFFFE)
• K2147483647-K-2 → K-2147483647 ---- A negative value is generated if b31 is 1.
(H7FFFFFFF) (HFFFE) (H80000001)
Operation Errors
(1) There are no operation errors associated with the D+(P) or D-(P) instructions.
Program Example
(1) The following program adds 28-bit data from X10 to X2B to the data at D9 and D10 when X0
goes ON, and outputs the result of the operation to Y30 to Y4B.
[Ladder Mode] [List Mode]
X0 Steps Inst. Device
0 D+P K7X10 D9 K7Y30 0 LD X0
1 D+P K7X10
5 END
D9
K7Y30
5 END
(2) The following program subtracts the data from M0 to M23 from the data at D0 and D1 when XB
goes ON, and stores the result at D10 and D11.
[Ladder Mode] [List Mode]
XB Steps Inst. Device
0 D-P D0 K6M0 D10 0 LD X0B
1 D-P D0
5 END
K6M0
D10
5 END
II - 114
8. Function Instructions
D+, D+P, D-, D-P
{ D+, D+P, D-, D-P … BIN 32-bit addition and subtraction operations
(Device at storage destination: Shared type)
Compatible
Not available
instruction mode
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S
D
This cannot be used with the compatible instruction mode. Refer to "6.2 Instruction Tables" for correspondence.
Command
D+P, D-P P S D
Set Data
Set Data Meaning Data Type
Head No. of the addition/subtraction data or device in
S
which addition or subtraction data is stored.
BIN 32 bits
Head No. of the device in which augend/dividend data is
D
stored. (Addition result is stored in this device.)
Functions
D+ (1) Adds 32-bit BIN data designated by (D) to 32-bit BIN data designated by (S) and stores at the
device designated by (D).
D+1 D S+1 S D+1 D
b31‥‥b16b15‥‥b0 b31‥‥b16b15‥‥b0 b31‥‥b16b15‥‥b0
567890 (BIN) + 123456 (BIN) 691346 (BIN)
(2) The values for (S) and (D) can be designated at between –2147483648 and 2147483647 (BIN
32 bits).
(3) The judgment of whether data is positive or negative is made by the most significant bit (b31).
b31 Judgment (+/-)
0 Positive
1 Negative
(4) The following will happen when an underflow or overflow is generated in an operation result.
The carry flag in this case does not go ON.
• K2147483647+K2 → K-2147483647 ---- A negative value is generated if b31 is 1.
(H7FFFFFFF) (H0002) (H80000001)
• K-2147483648+K-2 → K2147483646 ---- A positive value is generated if b31 is 0.
(H80000000) (HFFFE) (H7FFFFFFE)
II - 115
8. Function Instructions
D+, D+P, D-, D-P
D- (1) Subtracts 32-bit data designated by (D) from 32-bit data designated by (S) and stores the result
of the subtraction at the device designated by (D).
D+1 D S+1 S D+1 D
b31‥‥b16b15‥‥b0 b31‥‥b16b15‥‥b0 b31‥‥b16b15‥‥b0
567890 (BIN) - 123456 (BIN) 444434 (BIN)
(2) The values for (S) and (D) can be designated at between –2147483648 and 2147483647 (BIN
32 bit).
(3) The judgment of whether data is positive or negative is made by the most significant bit (b31).
b31 Judgment (+/-)
0 Positive
1 Negative
(4) The following will happen when an underflow or overflow is generated in an operation result.
The carry flag in this case does not go ON.
• K-2147483648-K2 → K2147483646 ---- A positive value is generated if b31 is 0.
(H80000000) (H0002) (H7FFFFFFE)
• K2147483647-K-2 → K-2147483647 ---- A negative value is generated if b31 is 1.
(H7FFFFFFF) (HFFFE) (H80000001)
Operation Errors
(1) There are no operation errors associated with the D+(P) or D-(P) instructions.
II - 116
8. Function Instructions
*, *P, /, /P
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SMV T C D R W SW Z SD K H P
S1
S2
D
: S1 and S2 cannot be specified as constant at the same time.
[Instruction [Execution indicates the signs * / /
Symbol] Condition]
Command
*, / S1 S2 D
Command
*P, /P P S1 S2 D
Set Data
Set Data Meaning Data Type
Data to be added to or subtracted from, or the first number
S1
of the device storing such data
BIN 16 bits
Addition or subtraction data, or first number of device
S2
storing addition or subtraction data
D First number of device storing addition or subtraction data BIN 32 bits
Functions
* (1) Multiplies BIN 16-bit data designated by (S1) and BIN 16-bit data designated by (S2), and stores
the multiplication result in the device designated by (D).
S1 S2 D+1 D
(2) If (D) is a bit device, designation is made from the lower bits.
Example K1 --- Lower 4 bits (b0 to 3)
K4 --- Lower 16 bits (b0 to 15)
K8 --- 32 bits (b0 to 31)
(3) The values for (S1) and (S2) can be designated at between –32768 and 32767 (BIN 16 bits).
II - 117
8. Function Instructions
*, *P, /, /P
(4) Judgments whether (S1),(S2), and (D) are positive or negative are made on the basis of the
most significant bit (b15 for (S1) and (S2), and b31 for (D)).
b15/b31 Judgment (+/-)
0 Positive
1 Negative
/ (1) Divides BIN 16-bit data designated by (S1) and BIN 16-bit data designated by (S2), and stores
the division result in the device designated by (D).
Quotient Remainder
S1 S2 D D+1
(2) If a word device has been used, the result of the division operation is stored as 32 bits, and both
the quotient and remainder are stored.
Quotient ---- Stored at the lower 16 bits
Remainder --- Stored at the higher 16 bits
(3) The values for (S1) and (S2) can be designated at between –32768 and 32767 (BIN 16 bits).
(4) Judgment whether values for (S1), (S2), and (D) are positive or negative is made on the basis of
the most significant bit (b15 for (S1) and (S2), and b31 for (D)).
b15/b31 Judgment (+/-)
0 Positive
1 Negative
Operation Errors
(1) There are no operation errors associated with the *, *P, /, or /P instructions.
II - 118
8. Function Instructions
*, *P, /, /P
Program Example
(1) When X5 is turned ON, "5678" of BIN and multiplication result of D0 are stored in D3 and D4.
[Ladder Mode] [List Mode]
X5 Steps Inst. Device
0 *P K5678 D0 D3 0 LD X5
1 *P K5678
5 END D0
D3
5 END
(2) Multiplication result of BIN data of X8 to XF and BIN data of X10 to X1B is output to D0 and D1.
[Ladder Mode] [List Mode]
M402 Steps Inst. Device
0 * K2X8 K3X10 D0 0 LD M402
1 * K2X8
5 END K3X10
D0
5 END
(3) When X3 is turned ON, the data of X8 to XF is divided by 3.14 and the result is output to D3 and
D4.
[Ladder Mode] [List Mode]
X3 Steps Inst. Device
0 *P K2X8 K100 D0 0 LD X3
1 *P K2X8
/P D0 K314 D3
K100
9 END D0
5 /P D0
K314
D3
9 END
II - 119
8. Function Instructions
D*, D*P, D/, D/P
{ D*, D*P, D/, D/P … BIN 32-bit multiplication and division operations
Compatible
Usable instruction: D*, D/
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S1
S2
D
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S1
S2
D
: S1 and S2 cannot be specified as constant at the same time.
[Instruction [Execution indicates the signs D* / D/
Symbol] Condition]
Command
D*, D/ S1 S2 D
Command
D*P, D/P P S1 S2 D
Set Data
Set Data Meaning Data Type
Data to be added to or subtracted from, or the first number
S1
of the device storing such data
Addition or subtraction data, or first number of device BIN 32 bits
S2
storing addition or subtraction data
D First number of device storing addition or subtraction data
Functions
D* (1) Multiplies BIN 32-bit data designated by (S1) and BIN 32-bit data designated by (S2), and stores
the multiplication result in the device designated by (D).
S1+1 S1 S2+1 S2 D+3 D+2 D+1 D
b31‥‥b16b15‥‥b0 b31‥‥b16b15‥‥b0 b63‥‥b48b47‥‥b32b31‥‥b16b15‥‥b0
567890 (BIN) 123456 (BIN) 70109427840 (BIN)
(2) The values for (S1) and (S2) can be designated at between –2147483648 and 2147483647
(BIN 32 bits).
(3) Judgment whether values for (S1), (S2), and (D) are positive or negative are made on the basis
of the most significant bit (b31 for (S1) and (S2), and b63 for (D)).
b31/b63 Judgment (+/-)
0 Positive
1 Negative
II - 120
8. Function Instructions
D*, D*P, D/, D/P
D/ (1) Divides BIN 32-bit data designated by (S1) and BIN 32-bit data designated by (S2), and stores
the division result in the device designated by (D).
S1+1 S1 S2+1 S2 D+1 D D+3 D+2
b31‥‥b16b15‥‥b0 b31‥‥b16b15‥‥b0 b31‥‥b16b15‥‥b0 b31‥‥b16b15‥‥b0
567890 (BIN) 123456 (BIN) 4 (BIN) 74066 (BIN)
(2) If a word device has been used, the result of the division operation is stored as 64 bits, and both
the quotient and remainder are stored.
Quotient ---- Stored at the lower 32 bits
Remainder --- Stored at the upper 32 bits
(3) The values for (S1) and (S2) can be designated at between –2147483648 and 2147483647
(BIN 32 bits).
(4) Judgment whether values for (S1), (S2), (D), and (D)+2 are positive or negative is made on the
basis of the most significant bit (b31).
(A sign is used with both the quotient and the remainder)
b31 Judgment (+/-)
0 Positive
1 Negative
Operation Errors
(1) There are no operation errors associated with the D*, D*P, D/, or D/P instructions.
Program Example
(1) When X5 is turned ON, multiplication result of BIN data of D7 and D8 and BIN data of D18 and
D19 is stored in D1 to D4.
[Ladder Mode] [List Mode]
X5 Steps Inst. Device
0 D*P D7 D18 D1 0 LD X5
1 D*P D7
5 END
D18
D1
5 END
(2) When X3 is turned ON, the data of X8 to XF is multiplied by 3.14 and the result is output to Y30
to Y3F.
[Ladder Mode] [List Mode]
X3 Steps Inst. Device
0 *P K2X8 K314 D0 0 LD X3
1 *P K2X8
D/P D0 K100 D2
K314
MOVP D2 K4Y30 D0
5 D/P D0
13 END
K100
D2
10 MOVP D2
K4Y30
13 END
II - 121
8. Function Instructions
B+, B+P, B-, B-P
{ B+, B+P, B-, B-P … BCD 4-digit addition and subtraction operations
Compatible
Not available
instruction mode
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S1
S2
D
This cannot be used with the compatible instruction mode. Refer to "6.2 Instruction Tables" for correspondence.
: S1 and S2 cannot be specified as constant at the same time.
[Instruction [Execution indicates the signs B+ /B-
Symbol] Condition]
Command
B+, B- S1 S2 D
Command
B+P, B-P P S1 S2 D
Set Data
Set Data Meaning Data Type
Data to be added to or subtracted from, or the first number
S1
of the device storing such data
Addition or subtraction data, or the head No. of device BCD 4-digit
S2
storing addition or subtraction data
D First number of device storing addition or subtraction data
Functions
B+ (1) Adds the BCD 4-digit data designated by "S1" and the BCD 4-digit data designated by "S2", and
stores the result of the addition at the device designated by "D".
S1 S2 D
5 6 7 8 + 1 2 3 4 6 9 1 2
(2) The values for "S1", "S2", and "D" can be specified between 0 and 9999 (BCD 4-digit).
(3) If the result of the addition operation exceeds 9999, the higher bits are ignored. The carry flag in
this case does not go ON.
6 4 3 2 + 3 5 8 3 0 0 1 5
II - 122
8. Function Instructions
B+, B+P, B-, B-P
B- (1) Subtracts the BCD 4-digit data designated by "S1" and the BCD 4-digit data designated by "S2",
and stores the result of the subtraction at the device designated by "D".
S1 S2 D
0 6 7 8 - 0 2 3 4 0 4 4 4
Digits higher than those which were designated
will be read as 0.
(2) The values for "S1", "S2", and "D" can be specified between 0 and 9999 (BCD 4-digit).
(3) The following will result if an underflow is generated by the subtraction operation:
The carry flag in this case does not go ON.
0 0 0 1 - 0 0 0 3 9 9 9 8
Operation Errors
(1) In the following cases an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• The "S1", "S2" or "D" BCD data is outside the 0 to 9999 range. (Error code: 80)
Program Example
(1) The following program adds the D3 BCD data and the Z1 BCD data when X20 goes ON, and
outputs the result to Y8 to Y17.
[Ladder Mode] [List Mode]
X20 Steps Inst. Device
0 B+P D3 D10 K4Y8 0 LD X20
1 B+P D3
5 END D10
K4Y8
5 END
(2) The following program subtracts the BCD data at D20 from the BCD data at D10 when X20 goes
ON, and stores the result at R10.
[Ladder Mode] [List Mode]
X20 Steps Inst. Device
0 B-P D10 D20 R10 0 LD X20
1 B-P D10
5 END
D20
R10
5 END
II - 123
8. Function Instructions
B*, B*P, B/, B/P
{ B*, B*P, B/, B/P … BCD 4-digit multiplication and division operations
Compatible
Not available
instruction mode
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S1
S2
D
This cannot be used with the compatible instruction mode. Refer to "6.2 Instruction Tables" for correspondence.
: S1 and S2 cannot be specified as constant at the same time.
[Instruction [Execution indicates the signs B* /B/
Symbol] Condition]
Command
B*, B/ S1 S2 D
Command
B*P, B/P P S1 S2 D
Set Data
Set Data Meaning Data Type
Data to be added to or subtracted from, or the first number
S1
of the device storing such data
BCD 4-digit
Addition or subtraction data, or the head No. of device
S2
storing addition or subtraction data
D First number of device storing addition or subtraction data BCD 8-digit
Functions
B* (1) Multiplies BCD 4-digit data designated by "S1" and BCD 4-digit data designated by "S2", and
stores the result in the device designated by "D".
D+1 D
S1 S2 (Upper 4 digits) (Lower 4 digits)
5 6 7 8 0 8 7 6 0 4 9 7 3 9 2 8
(2) Values for "S1" and "S2" can be specified between 0 and 9999 (BCD 4 digits).
B/ (1) Divides BCD 4-digit data designated by "S1" and BCD 4-digit data designated by "S2", and
stores the result in the device designated by "D".
S1 S2 D D+1(Remainder)
5 6 7 8 0 8 7 6 0 0 0 6 0 4 2 2
Digits higher than those which were designated
will be read as 0.
(2) 0 to 9999 (BCD 4-digit) for S1, and 1 to 9999 (BCD 4-digit) for S2 can be specified.
II - 124
8. Function Instructions
B*, B*P, B/, B/P
Operation Errors
(1) In the following cases an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• The BCD data of "S1","S2" or "D" is outside the 0 to 9999 range. (Error code: 80)
Program Example
(1) The following program multiplies the BCD data at X0 to XF and the BCD data at D8 when X1B
goes ON, and stores the result at D0 and D1.
[Ladder Mode] [List Mode]
X1B Steps Inst. Device
0 B*P K4X0 D8 D0 0 LD X1B
1 B*P K4X0
5 END D8
D0
5 END
D+1 D
D8 (Upper 4 digits) (Lower 4 digits)
XF‥‥‥‥‥‥X0
9 7 5 3 x 8 6 4 2 8 4 2 8 5 4 2 6
(2) The following program divides the BCD data D7 by the BCD data 1234, stores the result at
D502 and D503, and at the same time outputs the quotient to Y30 to Y3F.
[Ladder Mode] [List Mode]
M400 Steps Inst. Device
0 B/P D7 H1234 D502 0 LD M400
1 B/P D7
MOVP D502 K4Y30
H1234
8 END D502
5 MOVP D502
K4Y30
8 END
D+1 D
D7 (Upper 4 digits) (Lower 4 digits)
5 6 7 8 ÷ 1 2 3 4 0 0 0 4 0 7 4 2
Quotient Remainder
X3F‥‥‥‥‥‥X30
0 0 0 4
Quotient
II - 125
8. Function Instructions
INC,INCP,DEC,DECP
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
D
Command
INCP,
DECP P D
Set Data
Set Data Meaning Data Type
Head number of device conducting INC (add 1) or
D BIN 16 bits
DEC (subtract 1) operation
Functions
b15‥‥‥‥‥b0 b15‥‥‥‥‥b0
(2) If the contents of the device designated by "D" were 32767, and the INC or INCP instruction
were executed on that device, the value -32768 would be stored in the device designated by
"D".
b15‥‥‥‥‥b0 b15‥‥‥‥‥b0
(2) If the contents of the device designated by "D" were 0, and the DEC or DECP instruction were
executed on that device, the value -1 would be stored in the device designated by "D".
Operation Errors
(1) There are no operation errors associated with the INC(P) or DEC(P) instructions.
II - 126
8. Function Instructions
INC,INCP,DEC,DECP
Program Example
(1) The following is a down counter program.
[Ladder Mode]
X7
0 MOVP K100 D8 Transfers the value of 100 to D8 when X7 is ON
X8 M38
4 DECP D8 When M38 is OFF, X8 goes from OFF to ON, and 1 is
decremented from D8.
8 = K0 D8 M38
At D8=0, M38 goes ON.
12 END
[List Mode]
Steps Inst. Device
0 LD X7
1 MOVP K100
D8
4 LD X8
5 ANI M38
6 DECP D8
8 LD= K0
D8
11 OUT M38
12 END
II - 127
8. Function Instructions
DINC,DINCP,DDEC,DDECP
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
D
Command
DINCP,
DDECP P D
Set Data
Set Data Meaning Data Type
Head number of device what will execute the DINC
D BIN 32 bits
(+1) or DDEC (-1) operation
Functions
DINC (1) Adds 1 to the device designated by "D" (32-bit data).
D+1 D D+1 D
b31‥‥b16b15‥‥b0 b31‥‥b16b15‥‥b0
(2) If the contents of the device designated by "D" are 2147483647, and the DINC or DINCP
instruction is executed, the value -2147483648 will be stored at the device designated by "D".
DDEC (1) Subtracts 1 from the device designated by "D" (32-bit data).
D+1 D D+1 D
b31‥‥b16b15‥‥b0 b31‥‥b16b15‥‥b0
(2) If the contents of the device designated by "D" are 0, and the DDEC or DDECP instruction is
executed, the value -1 will be stored at the device designated by "D".
Operation Errors
(1) There are no operation errors associated with the DINC(P) or DDEC(P) instruction.
II - 128
8. Function Instructions
DINC,DINCP,DDEC,DDECP
Program Example
(1) The following program adds 1 to the data at D0 and D1 when X0 is ON.
[Ladder Mode] [List Mode]
X0 Steps Inst. Device
0 DINCP D0 0 LD X0
1 DINCP D0
3 END
3 END
(2) The following program adds 1 to the data set at X10 to X27 when X0 goes ON, and stores the
result at D3 and D4.
[Ladder Mode] [List Mode]
X0 Steps Inst. Device
0 DMOVP K6X10 D3 0 LD X0
1 DMOVP K6X10
DINCP D3 D3
6 END 4 DINCP D3
6 END
(3) The following program subtracts 1 from the data at D0 and D1 when X0 goes ON.
[Ladder Mode] [List Mode]
X0 Steps Inst. Device
0 DDECP D0 0 LD X0
1 DDECP D0
3 END 3 END
(4) The following program subtracts 1 from the data set at X10 to X27 when X0 goes ON, and
stores the result at D3 and D4.
[Ladder Mode] [List Mode]
X0 Steps Inst. Device
0 DMOVP K6X10 D3 0 LD X0
1 DMOVP K6X10
DDECP D3 D3
4 DDECP D3
6 END
6 END
II - 129
8. Function Instructions
NEG,NEGP,DNEG,DNEGP
Extended
instruction mode
Usable Devices
Digit
Set Consta Pointer desig- Index
Data Bit Devices Word Devices
nt nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
D
Command
NEGP,
DNEGP P D
Set Data
Set Data Meaning Data Type
Head number of the device where data for the
D BIN 16/32 bits
complement of 2 operation is stored.
Functions
NEG (1) Reverses the sign of the 16-bit device designated by "D" and stores at the device designated by
"D".
32 Bit
b15・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・b0
Before execution "D" 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ‥‥ -21846
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Sign conversion 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
-
b15・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・b0
After execution "D" 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 ‥‥ 21846
II - 130
8. Function Instructions
NEG,NEGP,DNEG,DNEGP
DNEG (1) Reverses the sign of the 32-bit device designated by "D" and stores at the device designated by
"D".
32 Bit
b31・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・b0
Before execution "D" 1 1 1 1 1 1 1 0 1 0 0 1 0 0 ‥‥ -218460
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Sign conversion
1 1 1 1 1 1 1 0 1 0 0 1 0 0
-
b31・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・b0
After execution "D" 0 0 0 0 0 0 0 1 0 1 1 1 0 0 ‥‥ 218460
Operation Errors
(1) There are no operation errors associated with the NEG(P) or DNEG(P) instructions.
Program Example
(1) The following program calculates a total for the data at D10 through D20 when XA goes ON, and
seeks an absolute value if the result is negative.
[Ladder Mode]
XA
0 < D10 D20 M3 M3 goes ON when D10 is smaller than D20.
XA
5 - D10 D20 D10 Subtracts D20 from D10.
M3
NEG D10 Seeks an absolute value (complement of 2) when
M3 is ON.
13 END
[List Mode]
Steps Inst. Device
0 LD XA
1 AND< D10
D20
4 OUT M3
5 LD XA
6 - D10
D20
D10
10 AND M3
11 NEG D10
13 END
II - 131
8. Function Instructions
BCD,BCDP,DBCD,DBCDP
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S
D
Command
BCDP, DBCDP P S D
Set Data
Set Data Meaning Data Type
Head number of the device where BIN data is
S BIN 16/32 bits
stored
D Head number of the device that will store BCD data BCD 4/8 digits
Functions
BCD (1) Converts BIN data (0 to 9999) at the device designated by "D" to BCD data, and stores it at the
device designated by "D".
S BIN 9999 0 0 1 0 0 1 1 1 0 0 0 0 1 1 1 1
Always set these to 0 BCD conversions
D BCD 9999 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1
II - 132
8. Function Instructions
BCD,BCDP,DBCD,DBCDP
DBCD (1) Converts BIN data (0 to 99999999) at the device designated by "S" to BCD data, and transfers it
at the device designated by "D".
231
230
229
228
227
226
225
224
223
222
221
220
219
218
217
216
215
214
213
212
210
211
29
28
27
26
25
24
23
22
21
20
S BIN 99999999 0 0 0 0 0 1 0 1 1 1 1 1 0 1 0 1 1 1 1 0 0 0 0 0 1 1 1 1 1 1 1 1
Always set these to 0
BCD conversions
(Upper 5 bits)
×107
×106
×105
×104
×103
×102
×101
×100
8
4
2
1
8
4
2
1
8
4
2
1
8
4
2
1
8
4
2
1
8
4
2
1
8
4
2
1
8
4
2
1
D BCD 99999999 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1
Ten Millions Hundred Ten Thousands Hundreds Tens Ones
millions digits thousands thousands digits digits digits digits
digits digits digits
D+1(Upper 4 digits) D (Lower 4 digits)
Operation Errors
(1) In the following cases an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• The data at S was not in the 0 to 9999 range when the BCD instruction was issued.
(Error code: 80)
• The data at "S"+1 and "S" was not in the 0 to 99999999 range when the DBCD instruction
was issued. (Error code: 80)
Program Example
(1) The following program outputs the present value of C4 from Y20 to Y2F to the BCD display
device.
Y2D
Y2C
Y2E
Y2B
Y2A
Y2F
Y29
Y28
Y27
Y26
Y25
Y24
Y23
Y22
Y21
Y20
8000
4000
2000
1000
800
400
200
100
80
40
20
10
8
4
2
1
0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0
II - 133
8. Function Instructions
BCD,BCDP,DBCD,DBCDP
(2) The following program outputs bit data from D0 to D1 to Y40 to Y67.
Y67 to Y64 Y63 to Y60 Y5F to Y5C Y5B to Y58 Y57 to Y54 Y53 to Y50 Y4F to Y4C Y4B to Y48 Y47 to Y44 Y43 to Y40
II - 134
8. Function Instructions
BIN,BINP,DBIN,DBINP
{ BIN,BINP,DBIN,DBINP … Conversion from BCD 4-digit and 8-digit data to BIN data
Compatible
Usable instruction: BIN, DBIN
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S
D
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S
D
Command
BINP,
DBINP P S D
Set Data
Set Data Meaning Data Type
S Head number of device storing BCD data BCD 4/8 digit
D Head number of device that will store BIN data BIN 16/32 bits
Functions
BIN (1) Converts BCD data (0 to 9999) at device designated by "D" to BIN data, and stores at the device
designated by "D".
S BCD 9999 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1
Thousands Hundreds Tens digits Ones
digits digits digits
BIN conversion
32768 16384 8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1
D BIN 9999 0 0 1 0 0 1 1 1 0 0 0 0 1 1 1 1
II - 135
8. Function Instructions
BIN,BINP,DBIN,DBINP
DBIN (1) Converts BCD data (0 to 99999999) at device designated by "S" to BIN data, and stores at the
device designated by "D".
S+1 S
×107
×106
×105
×104
×103
×102
×101
×100
8
4
2
1
8
4
2
1
8
4
2
1
8
4
2
1
8
4
2
1
8
4
2
1
8
4
2
1
8
4
2
1
S BCD 99999999 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1
Ten millions Millions Hundred Ten Thousands Hundreds Tens digits Ones digits
digits digits thousands thousands digits digits
digits digits BIN conversions
231 D+1 D
230
229
228
227
226
225
224
223
222
221
220
219
218
217
216
215
214
213
212
210
211
29
28
27
26
25
24
23
22
21
20
D BIN 99999999 0 0 0 0 0 1 0 1 1 1 1 1 0 1 0 1 1 1 1 0 0 0 0 0 1 1 1 1 1 1 1 1
Operation Errors
(1) In the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• When values other than 0 to 9 are designated to any digits of "S". (Error code: 81)
Program Example
(1) The following program converts the BCD data at X10 to X1B to BIN when X8 is ON, and stores it
at D8.
Digital switch
BCD
Can be used
at other
800
400
200
100
80
40
20
10
8
4
2
1
0 0 1 0 0 0 1 1 0 1 1 0
Y1F
Y1D
Y1C
Y19
Y18
Y17
Y16
Y15
Y14
Y13
Y12
Y11
Y10
Y1E
Y1B
Y1A
II - 136
8. Function Instructions
BIN,BINP,DBIN,DBINP
(2) The following program converts the BCD data at X10 to X37 to BIN when X8 is ON, and stores it
at D0 and D1.
BCD digital switch
X37 to X34 X33 to X30 X2F to X2C X2B to X28 X27 to X24 X23 to X20 X1F to X1C X1B to X18 X17 to X14 X13 to X10
II - 137
8. Function Instructions
MOV,MOVP,DMOV,DMOVP
1: Z cannot be used independently at the source side unless index qualification is given to the word device.
2: Transferring to Z from bit device is not possible.
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S
3
D
3: Index qualification is possible only with MOV(P)0 and is not possible with DMOV(P).
MOVP, DMOVP P S D
Set Data
Set Data Meaning Data Type
S Transfer data, or number of device storing transfer data
BIN 16/32 bits
D Number of device to store transferred data
Functions
MOV (1) Transfers the 16-bit data from the device designated by "S" to the device designated by "D".
b15・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・b0
Prior to transfer "S" 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
Transmission
b15・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・b0
After transfer "D" 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
II - 138
8. Function Instructions
MOV,MOVP,DMOV,DMOVP
DMOV (1) Transfers the 32-bit data from the device designated by "S" to the device designated by "D".
S+1 S
b15・・・・・・・・・・・・・・・・・・・・・・・・・b0 b15・・・・・・・・・・・・・・・・・・・・・・・・・b0
Prior to transfer "S" 1 0 1 1 0 1 0 0 0 1 1 1 0 0 1 0
Transmission
D+1 D
b15・・・・・・・・・・・・・・・・・・・・・・・・・b0 b15・・・・・・・・・・・・・・・・・・・・・・・・・b0
After transfer "D" 1 0 1 1 0 1 0 0 0 1 1 1 0 0 1 0
Operation Errors
(1) There are no operation errors associated with the MOV(P) or DMOV(P) instructions.
Program Example
(1) The following program stores input data from X0 to XB at D8.
[Ladder Mode] [List Mode]
M3 Steps Inst. Device
0 MOV K3X0 D8 0 LD M3
1 MOV K3X0
4 END
D8
4 END
(2) The following program stores the constant K155 at D8 when X8 goes ON.
[Ladder Mode] [List Mode]
X8 Steps Inst. Device
0 MOVP K155 D8 0 LD X8
1 MOVP K155
4 END
D8
4 END
009BH
b15・・・・・・・・・・・・・・・b8b7・・・・・・・・・・・・・・・・b0
D8 0 0 0 0 0 0 0 0 1 0 0 1 1 0 1 1
(3) The following program stores the data from D0 and D1 at D7 and D8.
[Ladder Mode] [List Mode]
Steps Inst. Device
M3
0 DMOV D0 D7 0 LD M3
1 DMOV D0
4 END D7
4 END
(4) The following program stores the data from X0 to X1F at D0 and D1.
[Ladder Mode] [List Mode]
Steps Inst. Device
M3
0 DMOVP K8X0 D0 0 LD M3
1 DMOVP K8X0
4 END D0
4 END
II - 139
8. Function Instructions
CML,CMLP,DCML,DCMLP
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S
D
CMLP, S D
P
DCMLP
Set Data
Set Data Meaning Data Type
Data to be inverted, or number of device storing this
S
data BIN 16/32 bits
D Number of device that will store results of inversion
Functions
CML (1) Inverts 16-bit data designated by S bit by bit, and transfers the result to the device designated by
"D".
b15・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・b0
Before execution "S" 1 0 1 1 0 1 0 0 0 1 1 1 0 0 1 0
Inversion
b15・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・b0
After execution "D" 0 1 0 0 1 0 1 1 1 0 0 0 1 1 0 1
DCML
(1) Inverts 32-bit data designated by S bit by bit, and transfers the result to the device designated by
"D".
S+1 S
b15・・・・・・・・・・・・・・・・・・・・・・・・・ b0b15・・・・・・・・・・・・・・・・・・・・・・・・・b0
Before execution "S" 1 0 1 1 0 1 0 0 0 1 1 1 0 0 1 0
Inversion
D+1 D
b15・・・・・・・・・・・・・・・・・・・・・・・・・ b0b15・・・・・・・・・・・・・・・・・・・・・・・・・b0
After execution "D" 0 1 0 0 1 0 1 1 1 0 0 0 1 1 0 1
Operation Errors
(1) There are no operation errors associated with the CML(P) or DCML(P) instructions.
II - 140
8. Function Instructions
CML,CMLP,DCML,DCMLP
Program Example
(1) The following program inverts the data from X0 to X7, and transfers result to D0.
[Ladder Mode] [List Mode]
M3 Steps Inst. Device
0 CML K2X0 D0 0 LD M3
1 CML K2X0
4 END
D0
4 END
When the number of bits at "S" is less than the number of bits at "D"
X7 ・・・・・・・・・ X0
These bits are all 11010000
read as "0".
(2) The following program inverts the data at M16 to M35, and transfers the result to Y40 to Y53.
[Ladder Mode] [List Mode]
Steps Inst. Device
M3
0 DCML K5M16 K6Y40 0 LD M3
1 DCML K5M16
4 END K5Y40
4 END
When the number of bits at "S" is less than the number of bits at "D"
(3) The following program inverts the data at D0 and D1 when X3 is ON, and stores the result at
D16 and D17.
[Ladder Mode] [List Mode]
X3 Steps Inst. Device
0 DCMLP D0 D16 0 LD X3
1 DCMLP D0
4 END D16
4 END
II - 141
8. Function Instructions
XCH,XCHP,DXCH,DXCHP
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
D1
D2
XCHP, D1 D2
P
DXCHP
Set Data
Set Data Meaning Data Type
D1 Head number of device storing data to be
BIN 16/32 bits
D2 exchanged
Functions
XCH (1) Conducts 16-bit data exchange between "D1" and "D2".
D1 D2
b15・・・・・・・・・・・・・・・・・・b8 b7・・・・・・・・・・・・・・・・・・b0 b15・・・・・・・・・・・・・・・・・b8 b7・・・・・・・・・・・・・・・・・・・b0
Before execution 0 1 1 1 0 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 0 0 1 0
D1 D2
b15・・・・・・・・・・・・・・・・・b8 b7・・・・・・・・・・・・・・・・・・・b0 b15・・・・・・・・・・・・・・・・・・b8 b7・・・・・・・・・・・・・・・・・・b0
After execution 1 1 1 1 0 0 0 0 1 1 1 1 0 0 1 0 0 1 1 1 0 0 1 0 1 0 1 0 1 1 1 1
II - 142
8. Function Instructions
XCH,XCHP,DXCH,DXCHP
DXCH (1) Conducts 32-bit data exchange between "D1"+1, "D1" and "D2"+1, "D2".
D1+1 D1 D2+1 D2
b31・・・・・・・・・・・・・・・・・・・・・b16 b15・・・・・・・・・・・・・・・・・・・・・・b0 b31・・・・・・・・・・・・・・・・・・・・・b16 b15・・・・・・・・・・・・・・・・・・・・・・b0
Before execution 1 1 1 1 0 0 0 0 1 1 1 0 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0 1 1 1 1 1
D1+1 D1 D2+1 D2
b31・・・・・・・・・・・・・・・・・・・・・b16 b15・・・・・・・・・・・・・・・・・・・・・・b0 b31・・・・・・・・・・・・・・・・・・・・・b16 b15・・・・・・・・・・・・・・・・・・・・・・b0
After execution 0 0 0 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 0 1 0 0 0 0
Operation Errors
(1) There are no operation errors associated with the XCH(P) or DXCH(P) instructions.
Program Example
(1) The following program exchanges the present value of T0 with the contents of D0 when X8 goes
ON.
[Ladder Mode] [List Mode]
X8 Steps Inst. Device
0 XCHP T0 D0 0 LD X8
1 XCHP T0
4 END
D0
4 END
(2) The following program exchanges the contents of D0 with the data from M16 to M31 when X10
goes ON.
[Ladder Mode] [List Mode]
X10 Steps Inst. Device
0 XCHP D0 K4M16 0 LD X10
1 XCHP D0
4 END
K4M16
4 END
(3) The following program exchanges the contents of D0 and D1 with the data at M16 to M47 when
X10 goes ON.
[Ladder Mode] [List Mode]
X10 Steps Inst. Device
0 DXCHP D0 K8M16 0 LD X10
1 DXCHP D0
4 END
K8M16
4 END
(4) The following program exchanges the contents of D0 and D1 with those of D9 and D10 when M0
goes ON.
[Ladder Mode] [List Mode]
M0 Steps Inst. Device
0 DXCHP D0 D9 0 LD M0
1 DXCHP D0
4 END
D9
4 END
II - 143
8. Function Instructions
BMOV,BMOVP
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S
D
n
[Instruction [Execution
Symbol] Condition]
Command
BMOV BMOV S D n
Command
BMOVP BMOVP S D n
Set Data
Set Data Meaning Data Type
S Head number of device storing data to transfer
D Head number of destination device BIN 16 bits
n Number of transfers
Functions
(1) Batch transfers "n" points of 16-bit data starting from the device designated by "S" to the area of
"n" points starting from the device designated by "D".
b15‥‥‥‥b0 b15‥‥‥‥b0
S H1234 D H1234
Batch
S+1 H5678 transfer D+1 H5678
S+2 H7FF0 D+2 H7FF0
n n
II - 144
8. Function Instructions
BMOV,BMOVP
(2) When transfer source and transfer destination are duplicated, the following operations are
expected.
(a) Transferring to a smaller device No. results in normal operation.
Duplicated D5
device
D9
D14
D0 Duplicated
device
D14
D9
Operation Errors
(1) In the following cases an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• In the case where a part of device area between S/D and n-th device does not exist. (Error
code: 82)
POINT
Note that if the number of devices in the area between S/D and n-th device exceeds the
relevant device, error will not occur. (In this case, transferred to the other device, as well.)
Program Example
(1) The current value of T33 to T48 is transferred to D908 to D923.
[Ladder Mode] [List Mode]
M90 Steps Inst. Device
0 BMOV T33 D908 H10 0 LD M90
1 BMOV T33
6 END
D908
H10
6 END
II - 145
8. Function Instructions
FMOV,FMOVP
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S
D
n
[Instruction [Execution
Symbol] Condition]
Command
FMOV FMOV S D n
Command
FMOVP FMOVP S D n
Set Data
Set Data Meaning Data Type
Data to transfer, or head number of device storing
S
data to transfer
D Head number of destination device BIN 16 bits
n Number of transfers
Functions
(1) Transfers 16-bit data from device designated by "S" to location n-points from device designated
by "D".
b15‥‥‥‥b0
D H3456
b15‥‥‥‥b0 Transmission D+1 H3456
S H3456 D+2 H3456
n
D+(n-2) H3456
D+(n-1) H3456
Operation Errors
(1) In the following cases an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• In the case where a part of device area between D and n-th device does not exist.
(Error code: 82)
II - 146
8. Function Instructions
FMOV,FMOVP
Program Example
(1) When XA is turned ON, D8 to D23 is reset (cleared).
[Ladder Mode] [List Mode]
XA Steps Inst. Device
0 FMOV K0 D8 H10 0 LD XA
1 FMOV K0
6 END
D8
H10
6 END
S D
0 D8 0
D9 0
16 blocks
Transfer D21 0
D22 0
D23 0
II - 147
8. Function Instructions
S.TMOV
[Instruction [Execution
Symbol] Condition]
Command
S.TMOV S.TMOV S D
Set Data
Set Data Meaning Data Type
No. of timer and counter device to which setting value is
S
transferred. BIN 16 bits
D Device No. of the transfer destination
Functions
The setting value of timer and counter device specified with S is transferred to the device specified
with D.
Note that, however, the actual setting value is transferred only if specified with constant.
If the setting value is specified with word device, normal transfer will not be carried out.
Setting value designation method with the
Timer setting Setting value to be transferred by TMOV
timer output instruction
Fixed timer Constant designation OUT Tx Kn Constant "n"
setting Word device designation OUT Tx Dn Constant 0(zero)
Setting value set with the setting
Constant designation OUT Tx Kn
Variable timer display device
setting Setting value set with the setting
Word device designation OUT Tx Dn
display device
[Note]
When this instruction is monitored, the current value is displayed on the timer and counter
device specified with S. If the timer and counter device are used with any function instructions
other than above, everything indicates the current value.
Operation Errors
(1) There are no operation errors associated with the S.TMOV instruction.
II - 148
8. Function Instructions
S.TMOV
Program Example
(1) The setting value of T10 is transferred to D0.
[Ladder Mode] [List Mode]
X1 Steps Inst. Device
0 T10 K10 0 LD X1
X2 1 OUT T10
5 S.TMOV T10 D0
K10
END 5 LD X2
12
6 S.TMOV T10
In this example, D0 equals to 10. D0
12 END
END 5 LD X2
12
6 S.TMOV C20
In this example, D0 equals to 100. D0
12 END
II - 149
8. Function Instructions
CJ,JMP
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
P
[Instruction [Execution
Symbol] Condition]
Command
CJ CJ P**
Command
JMP
JMP P**
Label
Command
P**
Set Data
Set Data Meaning Data Type
P Pointer number of jump destination Device name
Functions
CJ (1) Executes program of designated pointer number within the same program file when jump
command is ON.
Executed
CJ
each scan
JMP (1) A program of specified pointer No. in the same program file is executed unconditionally.
II - 150
8. Function Instructions
CJ,JMP
POINTS
Note the following points when using the jump instruction.
(1) Jump instructions can be used only for pointer numbers within the same program file.
(2) After the timer coil has gone ON, accurate measurements cannot be made if there is an attempt to
jump the timer of a coil that has been turned ON using the CJ or JMP instructions.
(3) Scan time is shortened if the CJ or JMP instruction is used to force a jump to the rear.
(4) The CJ and JMP instructions can be used to jump to a step prior to the step currently being
executed.
P8 X9
30 ・ Y80
・
・
・
・
M3 Jumps to P8 label when M3 goes ON.
1001 CJ P8
X10 Executes when M3 is OFF.
1004 Y91
(5) The device to which a jump has been made with CJ or JMP does not change.
XB
20 CJ P19 Jumps to label P19 when XB goes ON.
XC
23 Y43
Y43 and Y49 do not change regardless of
XB
whether XB and XC are ON/OFF during
25 Y49
execution of CJ instruction.
P19 X9
27 Y4C
Operation Errors
(1) In the following cases an operation is returned, the error flag (SM0) goes ON, and the error code
is stored at SD0.
• A pointer number which is not in use as a label in the same program has been designated.
(Error code: 20 or 85)
• A common pointer in the other program has been designated. (Error code: 20 or 85)
II - 151
8. Function Instructions
CJ,JMP
Program Example
(1) The following program jumps to P3 when X9 goes ON.
[Ladder Mode] [List Mode]
X9 Steps Inst. Device
0 CJ P3 0 LD X9
X30 1 CJ P3
3 Y6F
X41 3 LD X30
P3
6 Y7E 4 OUT Y6F
5 P3
8 END
6 LD X41
7 OUT Y7E
8 END
II - 152
8. Function Instructions
FEND
The compatible instruction mode and extended instruction mode share the same specifications for this instruction.
[Instruction [Execution
Symbol] Condition]
FEND FEND
Functions
(1) FEND instruction is used when branching a sequence program operation by CJ instruction, etc.,
or when dividing between the main routine program and the sub routine program.
0
Main routine CALL P**
program Jump caused by the
CJ P** Main routine
Operations when CJ instruction
program
the CJ instruction Main routine
is not executed program Operation performed
FEND
when the CJ instruction
FEND was executed
P** Sub routine
P** Main routine program
program
FEND END
END
(a) When using the CJ instruction (b) When there is a subroutine program
Operation Errors
(1) In the following cases an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• A FEND instruction is executed after the execution of the CALL instruction, and before the
execution of the RET instruction. (Error code: 26)
II - 153
8. Function Instructions
FEND
Program Example
(1) The following program uses the CJ instruction.
[Ladder Mode]
X0
0 Y20
X0B When XB is ON, jumps to label P23; from P23,
2 CJ P23
executes the next step
X13
5 Y30
X14 Executed when XB is OFF
7 Y31
9 FEND
P23 X1
Indicates the termination of the sequence program
11 Y22 when XB is OFF
13 END
[List Mode]
Steps Inst. Device
0 LD X0
:
:
9 FEND
10 P23
11 LD X1
12 OUT Y22
13 END
II - 154
8. Function Instructions
GOEND
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
This cannot be used with the compatible instruction mode. Refer to "6.2 Instruction Tables" for correspondence.
[Instruction [Execution
Symbol] Condition]
Command
GOEND GOEND
Functions
(1) Jumps to FEND or END instruction in the same program file.
Operation Errors
(1) In the following cases an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• A GOEND instruction has been executed after the execution of the CALL instruction, and prior
to the execution of the RET instruction. (Error code: 26)
Program Example
(1) The following program jumps to the END instruction if D0 holds a negative number.
[Ladder Mode] [List Mode]
Steps Inst. Device
0 < D0 K0 GOEND 0 LD< D0
K0
3 GOEND
II - 155
8. Function Instructions
CALL,CALLP,RET
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
P
[Instruction [Execution
Symbol] Condition]
Command
CALL CALL Pn
Command
CALLP CALLP Pn
RET RET
Set Data
Set Data Meaning Data Type
Pn First pointer number of sub-routine program Device name
Functions
CALL (1) When the CALL (P) instruction is executed, executes the sub-routine program of the program
specified by Pn.
Main routine Sub-routine
program program
Pn
RET
CALL Pn
END
II - 156
8. Function Instructions
CALL,CALLP,RET
(2) When the RET instruction is executed, returns to the step following the CALL(P) instruction
which called the sub-routine program.
Operation Errors
(1) In the following cases an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• Following the execution of the CALL(P) instruction, an END or FEND instruction is executed
before the execution of the RET instruction. (Error code: 26)
• An RET instruction is executed prior to the execution of the CALL (P) instruction.
(Error code: 26)
• When stuck area has exceeded due to CALL(P) instruction's nesting, etc. (Error code: 86)
Program Example
(1) The following program executes a sub-routine program when X1 turns ON from OFF.
[Ladder Mode] [List Mode]
X8 Steps Inst. Device
10 Y11 10 LD X8
X1 11 OUT Y11
12 CALL P23
12 LD X1
X9
13 CALL P33
15 Y13
15 LD X9
「 16 OUT Y13
17 FEND
17 FEND
P33 XA 18
500 Y33
:
Y34 500 P33
501 LD XA
504 RET 502 OUT Y33
503 OUT Y34
504 RET
505
II - 157
8. Function Instructions
FOR,NEXT
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
n
This cannot be used with the compatible instruction mode. Refer to "6.2 Instruction Tables" for correspondence.
[Instruction [Execution
Symbol] Condition]
FOR FOR n
Repeated program
NEXT
NEXT
Set Data
Set Data Meaning Data Type
Number of repetitions of the FOR to NEXT loop
n BIN 16 bits
(from 1 to 32767)
Functions
(1) When the processing in the FOR to NEXT loop is executed n-times without conditions, the step
following the NEXT instruction will be executed.
(2) The value of n can be designated at between 1 and 32767. If it is designated at a value of from
-32768 to 0, it will be executed as though n=1.
(3) If you do not desire to execute the processing called for within the FOR to NEXT loop, use the
CJ instruction to jump. Setting the repetition times to "0" would not allow you to skip the process
between FOR and NEXT instructions.
(4) To force an end to the repetitious execution of the FOR to NEXT loop during the execution of the
loop, insert a BREAK instruction. Premature termination with CJ instruction, etc. will result in an
operation error.
II - 158
8. Function Instructions
FOR,NEXT
FOR K5
X0
FOR K3
X1
NEXT
NEXT
NEXT
Operation Errors
(1) In the following cases an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• An END (FEND) instruction is executed after the execution of a FOR instruction, but before
the execution of a NEXT instruction. (Error code: 31)
• A NEXT instruction is executed prior to the execution of a FOR instruction. (Error code: 31)
• The 17th FOR instruction is encountered when FOR instructions have been nested.
(Error code: 30)
Program Example
(1) The following program executes the FOR to NEXT loop when X8 is OFF, and does not execute
it when X8 is ON.
[Ladder Mode] [List Mode]
X8 Steps Inst. Device
0 CJ P8 0 LD X8
M0 1 CJ P8
3 MOV K0 D100
3 LDI M0
6 FOR K4 4 MOV K0
M0 D100
8 MOV D100 Z0 6 FOR K4
8 LDI M0
MOV D100 D0Z0 9 MOV D100
Z0
INC D100
12 MOV D100
16 NEXT D0Z0
15 INC Z3
P8 XA
17 Y33 16 NEXT
17 P8
20 END 18 LD XA
19 OUT Y33
20 END
II - 159
8. Function Instructions
BREAK,BREAKP
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
D
P
This cannot be used with the compatible instruction mode. Refer to "6.2 Instruction Tables" for correspondence.
[Instruction [Execution
Symbol] Condition]
Command
BREAK BREAK D Pn
Command
BREAKP BREAKP D Pn
Set Data
Set Data Meaning Data Type
Number of device that will store the number of
D BIN 16 bits
repetitions remaining
Number of branch destination pointer when the end Device name
Pn
of processing repetitions. (pointer)
Functions
(1) Forces the end of repetition processing based on the FOR to NEXT instruction loop, and shifts
to the execution of the pointer designated by Pn.
Only the pointer within the same program file can be specified for Pn.
If a pointer in the other program file is specified for Pn, an operation error is resulted.
FOR K
If the BREAK instruction has
Forced end condition not been executed, execution
BREAK D Pn will return to the FOR
When forced end condition instruction for the number of
has been established times designated by the FOR
NEXT instruction.
Pn
(2) The number of repetitions remaining at the point that the FOR to NEXT loop was brought to a
forced end is stored at "D".
However, the number of times when the BREAK instruction was executed is also included in
the number of repetitions remaining.
(3) The BREAK instruction can be used only during the execution of a FOR to NEXT instruction
loop.
(4) The BREAK instruction can be used only when there is only one level of nesting.
If an end is forced when there are multiple nesting levels, execute the same number of BREAK
instructions as there are nesting levels.
II - 160
8. Function Instructions
BREAK,BREAKP
Operation Errors
(1) In the following cases an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• The BREAK instruction is used in a case other than with the FOR to NEXT instruction loop.
(Error code: 32)
• The jump destination for the pointer designated by Pn does not exist. (Error code: 85)
• The pointer of another program file is designated for Pn. (Error code: 85)
Program Example
(1) The following program forces the FOR to NEXT loop to end when the value of D2 reaches 30
(when the FOR to NEXT loop has been executed 30 times).
[Ladder Mode] [List Mode]
M30 Steps Inst. Device
10 MOV K0 D0 10 LD M30
11 MOV K0
14 FOR K100
D0
M30
19 INC D0 14 FOR K100
19 LD M30
「
22 = D0 K30 BREAKP D1 P0 20 INC D0
22 LD= D0
36 NEXT K30
P0 25 BREAKP D1
40 P0
36 NEXT
40 P0
REMARK
(1) The value 71 is stored at D1 as the remaining number of repetitions when the BREAK instruction
is executed.
II - 161
8. Function Instructions
WAND,WANDP,DAND,DANDP
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S1
S2
D
: S1 and S2 cannot be specified as constant at the same time.
Command
WANDP, DANDP P S1 S2 D
Set Data
Set Data Meaning Data Type
S1 Data from which logical product will be determined,
S2 or number of devices storing such data
BIN 16/32 bits
Number of devices where logical product operation
D
results will be stored
Functions
WAND (1) A logical product operation is conducted for each bit of the 16-bit data of the device designated
at "S1" and the 16-bit data of the device designated at "S2", and the results are stored in the
device designated at "D".
16 Bit
Before execution S1 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1
AND
Before execution S2 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0
After execution D 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0
(2) In the case of bit devices, digits above the number designated are processed as 0 in the
operation.
II - 162
8. Function Instructions
WAND,WANDP,DAND,DANDP
DAND (1) Conducts a logical product operation on each bit of the 32-bit data for the device designated by
"S1" and the 32-bit data for the device designated by "S2", and stores the results at the device
designated by "D".
32 Bit
S1+1 S1
Before execution S1 1 1 1 1 1 1 1 0 0 0 1 1 1 1
S2+1 AND S2
Before execution S2 0 0 0 1 0 1 0 0 0 1 0 1 0 0
D+1 D
After execution D 0 0 0 1 0 1 0 0 0 0 0 1 0 0
(2) In the case of bit devices, digits other than the number designated are processed as 0 in the
operation.
II - 163
8. Function Instructions
WAND,WANDP,DAND,DANDP
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S
D
Command
WANDP, DANDP P S D
Set Data
Set Data Meaning Data Type
S Data from which logical product will be determined,
BIN 16/32 bits
D or number of devices storing such data
Functions
WAND (1) A logical product operation is conducted for each bit of the 16-bit data of the device designated
at "D" and the 16-bit data of the device designated at "S", and the results are stored in the
device designated at "D".
16 Bit
Before execution D 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1
AND
Before execution S 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0
After execution D 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0
(2) In the case of bit devices, digits other than the number designated are processed as 0 in the
operation.
II - 164
8. Function Instructions
WAND,WANDP,DAND,DANDP
DAND (1) Conducts a logical product operation on each bit of the 32-bit data for the device designated by
"D" and the 32-bit data for the device designated by "S", and stores the results at the device
designated by "D".
32 Bit
D+1 D
Before execution D 1 1 1 1 1 1 1 0 0 0 1 1 1 1
S+1 AND S
Before execution S 0 0 0 1 0 1 0 0 0 1 0 1 0 0
D+1 D
After execution D 0 0 0 1 0 1 0 0 0 0 0 1 0 0
(2) In the case of bit devices, digits other than the number designated are processed as 0 in the
operation.
Operation Errors
(1) There are no operation errors associated with the WAND(P) or DAND(P) instructions.
Program Example
(1) The following program masks the digit in the 10s place of the 4-digit BCD value at D10 (second
digit from the end) to 0 when XA is ON.
[Ladder Mode] [List Mode]
XA Steps Inst. Device
0 WANDP H0FF0F D10 0 LD X0A
1 WANDP H0FF0F
4 END
3 D10
4 END
D10 BCD1234 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0
AND
HFF0F 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1
D10 BCD1204 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0
II - 165
8. Function Instructions
WAND,WANDP,DAND,DANDP
(2) The following program performs a logical product operation on the data from X10 to X1B and the
data at D33 when XA is ON, and outputs the results to D50.
[Ladder Mode] [List Mode]
XA Steps Inst. Device
0 WAND K3X10 D33 D50 0 LD XA
1 WAND K3X10
5 END
D33
D50
5 END
X1B・・・・・・X18X17・・・・・・・X14X13・・・・・・・X10
X1B to X10 0 0 0 0 1 0 0 1 0 0 1 1 0 0 1 1
Seen as "0" AND
D33 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0
D50 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0
(3) The following program performs a logical product operation on the data at D99 and D100, and
the 24-bit data between X30 and X47 when X8 is ON, and stores the results at D99 and D100.
[Ladder Mode] [List Mode]
X8 Steps Inst. Device
0 DANDP D99 K6X30 0 LD X8
1 DANDP D99
5 END
K6X30
5 END
b31 b30 b29 b28 b27 b26 b25 b24 b23 b22 b3 b2 b1 b0
D100,D99 1 1 1 1 1 1 1 1 1 1 1 1 1 1
AND
X47X46 X33X32X31X30
X47 to X30 0 0 0 0 0 0 0 0 1 1 0 1 0 1
Seen as 0
b31 b30 b29 b28 b27 b26 b25 b24 b23 b22 b3 b2 b1 b0
D100,D99 0 0 0 0 0 0 0 0 1 1 0 1 0 1
II - 166
8. Function Instructions
WOR,WORP,DOR,DORP
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S1
S2
D
: S1 and S2 cannot be specified as constant at the same time.
Command
WORP, DORP P S1 S2 D
Set Data
Set Data Meaning Data Type
S1 The data on which a logical sum operation will be
performed, or the number of the devices storing this
S2 data BIN 16/32 bits
Number of devices that will store the results of the logical
D
sum operation
Functions
WOR (1) Conducts a logical sum operation on each bit of the 16-bit data of the device designated by "S1"
and the 16-bit data of the device designated by "S2", and stores the results at the device
designated by "D".
16 Bit
Before execution S1 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1
OR
Before execution S2 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0
After execution D 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1
(2) For bit device, the numbers of the digits other than the designated digit are processed as 0 in the
operation.
II - 167
8. Function Instructions
WOR,WORP,DOR,DORP
DOR (1) Conducts a logical sum operation on each bit of the 32-bit data of the device designated by "S1"
and the 32-bit data of the device designated by "S2", and stores the results at the device
designated by "D".
32 Bit
S1+1 S1
Before execution S1 1 1 1 1 1 1 1 0 0 0 1 1 1 1
S2+1 OR S2
Before execution S2 0 0 0 1 0 1 0 0 0 1 0 1 0 0
D+1 D
After execution D 1 1 1 1 1 1 1 0 0 1 1 1 1 1
(2) For bit device, the numbers of the digits other than the designated digit are processed as 0 in the
operation.
II - 168
8. Function Instructions
WOR,WORP,DOR,DORP
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S
D
Command
WORP, DORP P S D
Set Data
Set Data Meaning Data Type
S The data on which a logical sum operation will be
performed, or the number of the devices storing BIN 16/32 bits
D this data
Functions
WOR (1) Conducts a logical sum operation on each bit of the 16-bit data of the device designated by "D"
and the 16-bit data of the device designated by "S", and stores the results at the device
designated by "D".
16 Bit
Before execution D 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1
OR
Before execution S 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0
After execution D 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1
(2) For bit device, the numbers of the digits other than the designated digit are processed as 0 in the
operation.
II - 169
8. Function Instructions
WOR,WORP,DOR,DORP
DOR (1) Conducts a logical sum operation on each bit of the 32-bit data of the device designated by "D"
and the 32-bit data of the device designated by "S", and stores the results at the device
designated by "D".
32 Bit
D+1 D
Before execution D 1 1 1 1 1 1 1 0 0 0 1 1 1 1
OR
S+1 S
Before execution S 0 0 0 1 0 1 0 0 0 1 0 1 0 0
D+1 D
After execution D 1 1 1 1 1 1 1 0 0 1 1 1 1 1
(2) For bit device, the numbers of the digits other than the designated digit are processed as 0 in the
operation.
Operation Errors
(1) There are no operation errors associated with the WOR(P) or DOR(P) instructions.
Program Example
(1) The following program performs a logical sum operation on the data at D10 and D20 when XA
goes ON, and stores the results at D10.
[Ladder Mode] [List Mode]
XA Steps Inst. Device
0 WOR D10 D20 0 LD X0A
1 WOR D10
5 END
D20
5 END
D10 1 1 0 0 1 1 0 0 1 1 1 1 0 0 0 0
OR
D20 0 0 0 0 1 0 1 1 1 0 0 1 0 0 0 1
D10 1 1 0 0 1 1 1 1 1 1 1 1 0 1 0 1
(2) The following program performs a logical sum operation on the data from X10 to X1B, and the
data at D33, and outputs the result to D100 when XA is ON.
[Ladder Mode] [List Mode]
XA Steps Inst. Device
0 WOR K3X10 D33 D100 0 LD XA
1 WOR K3X10
5 END
D33
D100
5 END
X1B・・・・・・X18X17・・・・・・・X14X13・・・・・・・X10
X1B to X10 0 0 0 0 1 0 0 1 0 0 1 1 0 0 1 1
Seen as 0 OR
D33 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0
D100 0 0 0 1 1 0 1 1 0 0 1 1 0 1 1 1
II - 170
8. Function Instructions
WOR,WORP,DOR,DORP
(3) The following program performs a logical sum operation on the 32-bit data from X0 to X1F, and
on the hexadecimal value FF00FF00H when XB goes ON, and stores the results at R66 and
R67.
[Ladder Mode] [List Mode]
XB Steps Inst. Device
0 DMOVP H0FF00FF00 D66 0 LD X8
1 DMOVP H0FF00FF00
DORP K8X0 D66
D66
8 END 5 DORP K8X0
D66
8 END
II - 171
8. Function Instructions
WXOR,WXORP,DXOR,DXORP
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S1
S2
D
: S1 and S2 cannot be specified as constant at the same time.
[Execution indicates the signs WXOR/DXOR
[Instruction Symbol]
Condition]
Command
WXOR, DXOR S1 S2 D
Command
WXORP, DXORP P S1 S2 D
Set Data
Set Data Meaning Data Type
S1 Data on which exclusive OR operation will be
S2 performed, or number of devices storing such data
BIN 16/32 bits
Number of devices storing data to be EXCLUSIVE
D
ORed
Functions
WXOR (1) Conducts an exclusive OR operation on each bit of the 16-bit data of the device designated by
"S1" and the 16-bit data of the device designated by "S2", and stores the results at the device
designated by "D".
16 Bit
Before execution S1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
XOR
Before execution S2 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1
After execution D 0 1 0 1 1 0 1 0 0 1 0 1 1 0 1 0
(2) For bit device, the numbers of the digits other than the designated digit are processed as 0 in the
operation.
II - 172
8. Function Instructions
WXOR,WXORP,DXOR,DXORP
DXOR (1) Conducts an exclusive OR operation on each bit of the 32-bit data designated by "S1" and the
32-bit data designated by "S2", and stores the results at the device designated by "D".
32 Bit
S1+1 S1
Before execution S1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
S2+1 XOR S2
Before execution S2 0 1 1 0 0 1 1 0 1 0 0 1 1 0
D+1 D
After execution D 0 0 1 1 0 0 1 1 1 1 0 0 1 1
(2) For bit device, the numbers of the digits other than the designated digit are processed as 0 in the
operation.
II - 173
8. Function Instructions
WXOR,WXORP,DXOR,DXORP
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S
D
Command
WXORP, DXORP P S D
Set Data
Set Data Meaning Data Type
S Data on which exclusive OR operation will be
BIN 16/32 bits
D performed, or number of devices storing such data
Functions
WXOR (1) Conducts an exclusive OR operation on each bit of the 16-bit data of the device designated by
"D" and the 16-bit data of the device designated by "S", and stores the results at the device
designated by "D".
16 Bit
Before execution D 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
XOR
Before execution S 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1
After execution D 0 1 0 1 1 0 1 0 0 1 0 1 1 0 1 0
(2) For bit device, the numbers of the digits other than the designated digit are processed as 0 in the
operation.
II - 174
8. Function Instructions
WXOR,WXORP,DXOR,DXORP
DXOR (1) Conducts an exclusive OR operation on each bit of the 32-bit data designated by "D" and the
32-bit data designated by "S", and stores the results at the device designated by "D".
32 Bit
D+1 D
Before execution D 0 1 0 1 0 1 0 1 0 1 0 1 0 1
S+1 XOR S
Before execution S 0 1 1 0 0 1 1 0 1 0 0 1 1 0
D+1 D
After execution D 0 0 1 1 0 0 1 1 1 1 0 0 1 1
(2) For bit device, the numbers of the digits other than the designated digit are processed as 0 in the
operation.
Operation Errors
(1) There are no operation errors associated with the WXOR(P) or DXOR(P) instructions.
Program Example
(1) The following program performs an exclusive OR operation on the data at D10 and D20 when
XA is ON, and stores the result at D10.
[Ladder Mode] [List Mode]
XA Steps Inst. Device
0 WXOR D10 D20 0 LD X0A
1 WXOR D10
5 END
D20
5 END
D10 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
XOR
D20 0 0 1 1 1 0 0 1 0 0 1 1 1 0 0 1
D10 0 1 1 0 1 1 0 0 0 1 1 0 1 1 0 0
(2) The following program conducts an exclusive OR operation on the data from X10 to X1B and the
data at D33 when XA is ON, and outputs the result to D100.
[Ladder Mode] [List Mode]
XA Steps Inst. Device
0 WXOR K3X10 D33 D100 0 LD XA
1 WXOR K3X10
5 END
D33
D100
5 END
X1B・・・・・・X18X17・・・・・・・X14X13・・・・・・・X10
X1B to X10 0 0 0 0 1 0 0 1 0 0 1 1 0 0 1 1
Seen as "0" XOR
D33 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0
D100 0 0 0 1 1 0 1 1 0 0 0 0 0 1 1 1
II - 175
8. Function Instructions
WXOR,WXORP,DXOR,DXORP
(3) The following program compares the bit pattern of the 32-bit data from X20 to X3F with the bit
pattern of the data at D9 and D10 when X6 is ON, and stores the number of differing bits at
D16.
[Ladder Mode] [List Mode]
X6 Steps Inst. Device
0 DXORP K8X20 D9 0 LD X6
1 DXORP K8X20
DSUMP D9 D16
D9
8 END 5 DSUMP D9
D16
8 END
II - 176
8. Function Instructions
WXNR,WXNRP,DXNR,DXNRP
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S1
S2
D
This cannot be used with the compatible instruction mode. Refer to "6.2 Instruction Tables" for correspondence.
: S1 and S2 cannot be specified as a constant at the same time.
Command
WXNRP, DXNRP P S1 S2 D
Set Data
Set Data Meaning Data Type
S1 Data on which non-exclusive logical sum operation
will be performed, or number of devices where such
S2 data is being stored BIN 16/32 bits
Number of devices that will store results of the
D
non-exclusive logical sum operation
Functions
WXNR (1) Conducts a non-exclusive logical sum operation on each bit of the 16-bit data of the device
designated by "S1" and the 16-bit data of the device designated by "S2", and stores the results
at the device designated by "D".
16 Bit
Before execution S1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
XNR
Before execution S2 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1
After execution D 1 0 1 0 0 1 0 1 1 0 1 0 0 1 0 1
(2) For bit device, the numbers of the digits other than the designated digit are processed as 0 in the
operation.
II - 177
8. Function Instructions
WXNR,WXNRP,DXNR,DXNRP
DXNR (1) Conducts a non-exclusive logical sum operation on each bit of the 32-bit data of the device
designated by "S1" and the 32-bit data of the device designated by "S2", and stores the results
at the device designated by "D".
32 Bit
S1+1 S1
Before execution S1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
S2+1 XNR S2
Before execution S2 0 1 1 0 0 1 1 0 1 0 0 1 1 0
D+1 D
After execution D 1 1 0 0 1 1 0 0 0 0 1 1 0 0
(2) For bit device, the numbers of the digits other than the designated digit are processed as 0 in the
operation.
II - 178
8. Function Instructions
WXNR,WXNRP,DXNR,DXNRP
Extended
instruction mode
Usable Devices Digit
Set
Data Bit Devices Word Devices Constant Pointer desig- Index
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S
D
This cannot be used with the compatible instruction mode. Refer to "6.2 Instruction Tables" for correspondence.
Command
WXNRP,DXNRP P S D
Set Data
Set Data Meaning Data Type
S Data on which non-exclusive logical sum operation
will be performed, or number of devices where BIN 16/32 bits
D such data is being stored
Functions
WXNR (1) Conducts a non-exclusive logical sum operation on each bit of the 16-bit data of the device
designated by "D" and the 16-bit data of the device designated by "S", and stores the results at
the device designated by "D".
16 Bit
Before execution D 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
XNR
Before execution S 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1
After execution D 1 0 1 0 0 1 0 1 1 0 1 0 0 1 0 1
(2) For bit device, the numbers of the digits other than the designated digit are processed as 0 in the
operation.
DXNR (1) Conducts a non-exclusive logical sum operation on each bit of the 32-bit data of the device
designated by "D" and the 32-bit data of the device designated by "S", and stores the results at
the device designated by "D".
32 Bit
D+1 D
Before execution D 0 1 0 1 0 1 0 1 0 1 0 1 0 1
S+1 XNR S
Before execution S 0 1 1 0 0 1 1 0 1 0 0 1 1 0
D+1 D
After execution D 1 1 0 0 1 1 0 0 0 0 1 1 0 0
(2) For bit device, the numbers of the digits other than the designated digit are processed as 0 in the
operation.
II - 179
8. Function Instructions
WXNR,WXNRP,DXNR,DXNRP
Operation Errors
(1) There are no operation errors associated with the WXNR(P) or DXNR(P) instructions.
Program Example
(1) The following program performs a non-exclusive OR operation on the data at D10 and D20
when XA is ON, and stores the result at D10.
[Ladder Mode] [List Mode]
XA Steps Inst. Device
0 WXNR D10 D20 0 LD X0A
1 WXNR D10
5 END
D20
5 END
D10 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
XNR
D20 0 0 1 1 1 0 0 1 0 0 1 1 1 0 0 1
D10 1 0 0 1 0 0 1 1 1 0 0 1 0 0 1 1
(2) The following program conducts a non-exclusive OR operation on the data from X10 to X1B and
the data at D33 when XA is ON, and outputs the result to D100.
[Ladder Mode] [List Mode]
XA Steps Inst. Device
0 WXNR K3X10 D33 D100 0 LD XA
1 WXNR K3X10
5 END
D33
D100
5 END
X1B・・・・・・X18X17・・・・・・・X14X13・・・・・・・X10
X1B to X10 0 0 0 0 1 0 0 1 0 0 1 1 0 0 1 1
Seen as "0" XNR
D33 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0
D100 1 1 1 0 0 1 0 0 1 1 1 1 1 0 0 0
(3) The following program compares the bit patterns of the 32-bit data located from X20 to X3F with
the bit patterns of the data at D16 and D17 when X6 is ON, and stores the same number of bits
at D18.
[Ladder Mode] [List Mode]
X6 Steps Inst. Device
0 DXNRP K8X20 D16 0 LD X6
1 DXNRP K8X20
DSUMP D16 D18
D16
8 END 5 DSUMP D16
D18
8 END
II - 180
8. Function Instructions
ROR,RORP,RCR,RCRP
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
D
n
Command
RORP, RCRP P D n
Set Data
Set Data Meaning Data Type
D Initial number of devices to perform rotation
BIN 16 bits
n Number of rotations (0 to 15)
Functions
ROR (1) Rotates 16-bit data of the device designated by "D", not including the carry flag, n-bits to the
right. The carry flag is ON or OFF depending on the status prior to the execution of the ROR
instruction.
Carry flag
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 (SM12)
D
n-bit rotation
(2) Specify any of 0 to 15 as n. If the value specified as n is 16 or greater, operations will be as
follows:
• When n is 16, the value becomes the one when 16-bit rotation was executed.
• When n is 17 or above, the value of D becomes indefinite.
RCR (1) Rotates 16-bit data of the device designated by "D", including carry flag, n bits to the right. The
carry flag is ON or OFF depending on the status prior to the execution of the ROR instruction.
Carry flag
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 (SM12)
D
n-bit rotation
(2) Specify any of 0 to 15 as n. If the value specified as n is 16 or greater, operations will be as
follows:
• When n is 16, the value becomes the one when 16-bit rotation was executed.
• When n is 17 or above, the value of D becomes indefinite.
Operation Errors
(1) There are no operation errors associated with the ROR(P) or RCR(P) instructions.
II - 181
8. Function Instructions
ROR,RORP,RCR,RCRP
Program Example
(1) The following program rotates the contents of D0, though not including the carry flag, 3 bits to
the right when XC is ON.
Carry flag
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 (SM12)
D0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0
Carry flag
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 (SM12)
D0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1
(2) The following program rotates the contents of D0, including the carry flag, 3 bits to the right
when XC is ON.
Carry flag
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 (SM12)
D0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 *
Carry flag
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 (SM12)
D0 1 1 * 0 0 0 0 0 0 0 0 0 0 0 0 1 1
* The carry flag goes ON or OFF depending on its status prior to the execution of RCR.
II - 182
8. Function Instructions
ROL,ROLP,RCL,RCLP
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
D
n
Command
ROLP, RCLP P D n
Set Data
Set Data Meaning Data Type
D Initial number of devices to perform rotation
BIN 16 bits
n Number of rotations (0 to 15)
Functions
ROL (1) Rotates the 16-bit data of the device designated at "D", not including the carry flag, n-bits to the
left. The carry flag goes ON or OFF depending on its status prior to the execution of ROL
instruction.
Carry flag
(SM12) b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
D
n-bit rotation
n-bit rotation
II - 183
8. Function Instructions
ROL,ROLP,RCL,RCLP
Operation Errors
(1) There are no operation errors associated with the ROL(P) or RCL(P) instructions.
Program Example
(1) The following program rotates the contents of D0, not including the carry flag, 3 bits to the left
when XC is ON.
Carry flag
(SM12) b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 D0
Carry flag
(SM12) b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 D0
(2) The following program rotates the contents of D0, including the carry flag, 3 bits to the left when
XC is ON.
Carry flag
(SM12) b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
* 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 D0
Carry flag
(SM12) b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
1 1 0 0 0 0 0 0 0 0 0 0 0 0 * 1 1 D0
*The carry flag goes ON or OFF depending on its status prior to the execution of RCL.
II - 184
8. Function Instructions
DROR,DRORP,DRCR,DRCRP
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
D
n
Command
DRORP, DRCRP P D n
Set Data
Set Data Meaning Data Type
D First device number of devices to perform rotation BIN 32 bits
Number of rotations (0 to 31)
n BIN 32 bits
2 words (32 bits) are used for a word device.
Functions
DROR (1) The 32-bit data of the device designated at "D", not including the carry flag, is rotated n-bits to
the right.
The carry flag goes ON or OFF depending on its status prior to the execution of the DROR
instruction.
D+1 D
Carry flag
b31 b30 b29 b28 b27 ·· · ·· b18 b17 b16 b15 b14 ····· b5 b4 b3 b2 b1 b0 (SM12)
n-bit rotation
(2) Specify any of 0 to 31 as n. If the value specified as n is 32 or greater, the values of D+1 and D
become indefinite.
DRCR (1) Rotates 32-bit data, including carry flag, at device designated by D n bits to the right.
The carry flag goes ON or OFF depending on its status prior to the execution of the DRCR
instruction.
D+1 D
Carry flag
b31 b30 b29 b28 b27 ·· · ·· b18 b17 b16 b15 b14 ····· b5 b4 b3 b2 b1 b0 (SM12)
n-bit rotation
II - 185
8. Function Instructions
DROR,DRORP,DRCR,DRCRP
(2) Specify any of 0 to 31 as n. If the value specified as n is 32 or greater, the values of D+1 and D
become indefinite.
Operation Errors
(1) There are no errors associated with DROR(P) or DRCR(P) instructions.
Program Example
(1) The following program rotates the contents of D0 and D1, not including the carry flag, 4 bits to
the right when XC is ON.
Carry flag
b31 ····· b28 b27 ·· · ·b24
· b23···· b20 b19 ···· b16 b15 ····b12 b11 ····· b8 b7 ····· b4 b3 ·· · ·· b0 (SM12)
D0,D1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0
D0,D1 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1
(2) The following program rotates the contents of D0 and D1, including the carry flag, 4 bits to the
right when XC is ON.
Carry flag
D0,D1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 *
Carry flag
b31 ·· · ·· b28 b27 ·· · ·b24
· b23·· · · b20 b19 ···· b16 b15 ····b12 b11 ····· b8 b7 ····· b4 b3 ·· · ·· b0 (SM12)
D0,D1 1 1 1 * 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1
Contents of b2
Contents of b31 through b4 prior to execution
through b0 prior to Contents of b3 prior
execution Contents of carry flag SM12 prior to execution to execution
* The carry flag goes ON or OFF depending on its status prior to the execution of the DRCR instruction.
II - 186
8. Function Instructions
DROL,DROLP,DRCL,DRCLP
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
D
n
Command
DROLP, DRCLP P D n
Set Data
Set Data Meaning Data Type
D First device number of devices to perform rotation BIN 32 bits
Number of rotations (0 to 31)
n BIN 32 bits
2 words (32 bits) are used for a word device.
Functions
DROL (1) The 32-bit data of the device designated at "D", not including the carry flag, is rotated n-bits to
the left. The carry flag goes ON or OFF depending on its status prior to the execution of the
DROL instruction.
Carry flag D+1 D
(SM12) b31 b30 b29 b28 b27 ·····b18 b17 b16 b15 b14 ····· b5 b4 b3 b2 b1 b0
n-bit rotation
(2) Specify any of 0 to 31 as n. If the value specified as n is 32 or greater, the values of D+1 and D
become indefinite.
DRCL (1) Rotates 32-bit data, including carry flag, at device designated by D n bits to the left. The carry
flag goes ON or OFF depending on its status prior to the execution of the DRCL instruction.
Carry flag D+1 D
(SM12) b31 b30 b29 b28 b27 ·····b18 b17 b16 b15 b14 ····· b5 b4 b3 b2 b1 b0
n-bit rotation
(2) Specify any of 0 to 31 as n. If the value specified as n is 32 or greater, the values of D+1 and D
become indefinite.
II - 187
8. Function Instructions
DROL,DROLP,DRCL,DRCLP
Operation Errors
(1) There are no operation errors associated with the DROL(P) or DRCL(P) instructions.
Program Example
(1) The following program rotates the contents of D0 and D1, not including the carry flag, 4 bits to
the left when XC is ON.
Carry flag
(SM12) b31 ·· · ·· b28 b27 ·····b24 b23···· b20 b19 ···· b16 b15 ····b12 b11 ····· b8 b7 ·· · ·· b4 b3 ·· · ·· b0
0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 D0,D1
(2) The following program rotates the contents of D0 and D1, including the carry flag, 4 bits to the
left when XC is ON.
Carry flag
(SM12) b31 ·· · ·· b28 b27 ·· · ·b24
· b23···· b20 b19 ···· b16 b15 ····b12 b11 ····· b8 b7 ·· · ·· b4 b3 ·· · ·· b0
* 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 D0,D1
Carry flag
(SM12) b31 ·· · ·· b28 b27 ·· · ·b24
· b23···· b20 b19 ···· b16 b15 ····b12 b11 ····· b8 b7 ·· · ·· b4 b3 ·· · ·· b0
1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 D0,D1
* The carry flag goes ON or OFF depending on its status prior to the execution of the DRCL instruction.
II - 188
8. Function Instructions
SFR,SFRP,SFL,SFLP
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
D
n
Command
SFLP, SFLP P D n
Set Data
Set Data Meaning Data Type
First device number of devices where shift data is
D
being stored BIN 16 bits
n Number of shifts (0 to 15)
Functions
SFR (1) Causes a shift to the right by n bits of the 16-bit data from the device designated at "D".
Becomes 0
(3) A shift by the data of the specified digit is conducted when a bit device has been designated at
"D".
[See Program Example (1)]
II - 189
8. Function Instructions
SFR,SFRP,SFL,SFLP
SFL (1) Shifts 16-bit data at device designated by "D" n-bits to the left.
Becomes 0
(2) The bits starting at n-bits from lowest bit become 0.
(3) A shift by the data of the specified digit is conducted when a bit device has been designated at
"D".
[See Program Example (1)]
D0 4
Carry flag
Y1B‥‥‥Y18Y17‥‥‥ Y14Y13‥‥‥ Y10 (SM12)
0 0 0 0 1 0 1 0 1 0 1 0 1
Becomes 0
II - 190
8. Function Instructions
SFR,SFRP,SFL,SFLP
(2) The following program shifts the contents of X10 to X17 3 bits to the left when X1C is ON.
Carry flag
(SM12) Y17‥‥‥Y14 Y13‥‥‥ Y10
1 1 0 0 1 1 0 0 0
Becomes 0
II - 191
8. Function Instructions
DSFR,DSFRP,DSFL,DSFLP
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
D
n
Command
DSFLP, DSFLP P D n
Set Data
Set Data Meaning Data Type
D First device number of devices to shift
BIN 16 bits
n Number of devices where shift will be conducted
Functions
DSFR (1) Shifts data n points from device designated by "D" 1 word to the right.
n
D+(n-1) D+(n-2) D+(n-3) D+2 D+1 D
555 212 325 100 50 40
II - 192
8. Function Instructions
DSFR,DSFRP,DSFL,DSFLP
DSFL (1) Shifts data n points from device designated by "D" 1 word to the left.
n
D+(n-1) D+(n-2) D+(n-3) D+2 D+1 D
555 120 325 100 50 40
Operation Errors
(1) In the following cases an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• A part of range of the device n-points from the "D" device exceeds the relevant device.
(Error code: 82)
Program Example
(1) The following program shifts the contents of D683 to D689 to the right when XB is ON.
Becomes 0
II - 193
8. Function Instructions
DSFR,DSFRP,DSFL,DSFLP
(2) The following program shifts the contents of D683 to D689 to the left when XB is ON.
Becomes 0
II - 194
8. Function Instructions
SER,SERP,DSER,DSERP
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S1
S2
D
n
SER, DSER S1 S2 D n
SERP, D n
P S1 S2
DSERP
Set Data
Set Data Meaning Data Type
First device number of the devices where search data is
S1
being stored
First number of the device where data which is an object of search is being
S2
stored. Word
First device number of devices which will store search
D
results
n Number of searches
II - 195
8. Function Instructions
SER,SERP,DSER,DSERP
Functions
SER (1) Takes the 16-bit data of the device designated at "S1" as the entry code to search for n number
of blocks from the 16-bit data from the device designated at "S2".
The number of matches with the entry code is stored at the device designated by "D"+1, and
the relative value of the number of points that the device where the first match was found is
from S2 is stored at the device designated by "D".
(3) If no matches are found in the search, the devices designated at "D" and "D" +1 become "0".
DSER (1) Takes the 32-bit data of the device designated at "S1+1", "S1" as the entry code to search for n
number of blocks (for 2 x n points) in 32-bit unit from the device designated at "S2"
The number of matches with the entry code is stored at the device designated by "D"+1, and
the relative value of the number of points that the device where the first match was found is
from S2 is stored at the device designated by "D".
Search data
5678901
S1+1,S1 5678901
S2+1,S2 5678901
First number of Search results
S2+3,S2+2 123456
searched Search range D Position of match
S2+5,S2+4 -1
2xn
D+1 Number of matches
S2+(n-3),S2+(n-4) 5678901
Matching
S2+(n-1),S2+(n-2) 0 data
5678901
(3) If no matches are found in the search, the devices designated at "D" and "D" +1 become "0".
Operation Errors
(1) In the following cases an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• When the area of n number of blocks from the device designated at "S2" does not exist.
(Error code: 82)
II - 196
8. Function Instructions
SER,SERP,DSER,DSERP
Program Example
(1) The following program searches D100 to D105 for the contents of D0 when X20 is ON, and
stores the search results at D10 and D11.
(2) The following program searches D100 to D111 for the contents of D11 and D10 when X20 is
ON, and stores the search results at D0 and D1.
II - 197
8. Function Instructions
SUM,SUMP,DSUM,DSUMP
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S
D
SUMP, DSUMP P S D
Set Data
Set Data Meaning Data Type
First device number of devices that will count total number
S
of bits that are at 1
BIN 16/32 bits
First device number of devices that will store total number
D
of bits
Functions
SUM (1) From the 16-bit data in the device designated by "S", stores the total number of bits that are at 1,
in the device designated by "D".
II - 198
8. Function Instructions
SUM,SUMP,DSUM,DSUMP
DSUM (1) From the 32-bit data in the device designated by "S", stores the total number of bits that are at 1,
in the device designated by "D".
S+1 S
b31・・・b28 b27・・・ b24 b23・・・b20 b19・・・b16b15・・・b12b11・・・・b8 b7 ・・・・・ b4 b3・・・・・b0
S 1 0 0 1 1 1 1 0 0 1 0 1 0 0 1 1 1 0 0 0 0 0 0 0 1 1 1 1 0 1 1 0
Total number with value of 1
D+1 D
b31・・・b28 b27・・・ b24 b23・・・b20 b19・・・b16b15・・・b12b11・・・・b8 b7 ・・・・・ b4 b3・・・・・b0
D 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0
Total number with value of 1 stored as BIN
(There are 16 instances in the example)
Operation Errors
(1) There are no operation errors associated with the SUM(P) or DSUM(P) instructions.
Program Example
(1) The following program stores the number of bits from X8 to X17 which are ON when X10 is ON
at D0.
X17 X8
0 0 1 0 1 0 1 1 0 0 0 0 0 1 1 1
D0 7
(2) The following program stores the number of bits from D100 and D101 which are ON when X10
is ON at D0.
D1,D0 15
II - 199
8. Function Instructions
SEG,SEGP
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S
D
[Instruction [Execution
Symbol] Condition]
SEG SEG S D
SEGP SEGP S D
Set Data
Set Data Meaning Data Type
Device number of devices where decoded data is being
S
stored
BIN 16 bits
First device number of devices where decoding results are
D
stored
Functions
SEG (1) Decodes the data from 0 to F designated by the lower 4 bits of S to 7-segment display data, and
stores at D.
(2) If "D" is a bit device, indicates the first number of the devices storing the 7-segment display data;
if it is a word device, indicates the number of the device that is storing the data.
(3) Storage is done as follows for bit devices and word devices:
After execution
Before execution Y4F Y48
Bit device SEG K7 K2Y48 0 0 1 0 0 1 1 1
8 points
D8
b15 b8 b7 b0
Word device SEG K7 D8 0 0 0 0 0 0 0 0 0 0 1 0 0 1 1 1
II - 200
8. Function Instructions
SEG,SEGP
Operation Errors
(1) There are no operation errors associated with the SEG(P) instruction.
0 0000 0 0 1 1 1 1 1 1
1 0001 0 0 0 0 0 1 1 0
2 0010 0 1 0 1 1 0 1 1
3 0011 0 1 0 0 1 1 1 1
4 0100 0 1 1 0 0 1 1 0
5 0101 0 1 1 0 1 1 0 1
6 0110 B0 0 1 1 1 1 1 0 1
B5 B1
7 0111 B6
0 0 1 0 0 1 1 1
8 1000 B4 B2 0 1 1 1 1 1 1 1
9 1001 B3 0 1 1 0 0 1 1 1
A 1010 0 1 1 1 0 1 1 1
B 1011 0 1 1 1 1 1 0 0
C 1100 0 0 1 1 1 0 0 1
D 1101 0 1 0 1 1 1 1 0
E 1110 0 1 1 1 1 0 0 1
F 1111 0 1 1 1 0 0 0 1
II - 201
8. Function Instructions
SEG,SEGP
Program Example
(1) The following program converts the data from XC to XF when X0 is ON to 7-segment display
data and outputs it to Y38 to Y3F.
II - 202
8. Function Instructions
DECO,DECOP
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S
D
n
[Instruction [Execution
Symbol] Condition]
Command
DECO DECO S D n
Command
DECOP DECOP S D n
Set Data
Set Data Meaning Data Type
S Number of device where decoded data is stored BIN 16 bits
First device number of devices where decoding results are
D Device name
stored
n Valid bit length (1 to 8) BIN 16 bits
Functions
DECO (1) Decodes the lower n-bits of the device designated by "S", and stores the results at a location
2n-bits from the device designated by "D".
(3) No processing is conducted if n=0, and there are no changes in data for the device designated
at "D". When n is 9 or above, the device data specified by D becomes indefinite.
(4) The bit devices specified by D are treated as 1 bit, and the word devices specified by D are
treated as 16 bits.
Operation Errors
(1) In the following cases an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• When the area of a part of 2n bit blocks from the device designated at D does not exist.
(Error code: 82)
II - 203
8. Function Instructions
DECO,DECOP
Program Example
(1) The following program decodes 3 bits of R20 bit 0 to 3 when X20 turns ON and turns D100
corresponding bit to ON.
(2) The following program decodes the 3 bits from D10 bit 0 to 2 and stores the results at M10
when X20 is ON.
Seen as 0
M17 M10
0 1 0 0 0 0 0 0 Decoding results
3
Does not change When valid bit 3 has been designated, occupies 8 (=2 ) points.
II - 204
8. Function Instructions
ENCO,ENCOP
Extended
instruction mode
Usable Devices Digit
Set
Bit Devices Word Devices Constant Pointer desig- Index
Data
nation
X Y M L F B SB T SM V T C D R W SW Z SD K H P
S
D
n
[Instruction [Execution
Symbol] Condition]
Command
ENCO ENCO S D n
Command
ENCOP ENCOP S D n
Set Data
Set Data Meaning Data Type
S Number of devices where encoded data is being stored
D Number of device where encoding results will be stored BIN 16 bits
n Valid bit length (1 to 8)
Functions
ENCO (1) 2n bit of the device specified by S is encoded and the result is stored in the lower n bit from the
device specified by D as encode data.
(3) When n=0, the device data specified by D does not change due to no operation. When n is 9 or
above, the device data specified by D becomes indefinite.
(4) As for the devices designated at D, bit devices are treated as 1 bit, and word devices as 16 bits.
(5) If more than 1 bit is at 1, processing will be conducted at the upper bit location.
Operation Errors
(1) In the following cases an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• When the area of a part of 2n bit blocks from the device designated at S does not exist.
(Error code: 82)
II - 205
8. Function Instructions
ENCO,ENCOP
Program Example
(1) The following program encodes the 3 bits from M10 when X20 is ON, and stores the results at
D8.
M17 M10
When valid bit 3 has been
0 0 0 0 1 0 0 0 3
designated, occupies 8 (=2 )
points.
II - 206
8. Function Instructions
S.AVE
[Instruction [Execution
Symbol] Condition]
Command
S.AVE S.AVE S D n
Set Data
Set Data Meaning Data Type
S Head No. of the device whose average is calculated
D Device No. at the output destination BIN 16 bits
n Average value
Functions
S.AVE (1) The average of n points of devices counting from the device specified by S is calculated and
output to the device specified by D.
S
Average
S+1 calculation
S+2
n D
S+(n-2)
S+(n-1)
Operation Errors
(1) There are no operation errors associated with the S.AVE instruction.
II - 207
8. Function Instructions
S.AVE
Program Example
(1) In this program the average of D882 to D888 is calculated when XB turns ON, and the result is
output to D0.
D0 146
D885 123
D886 20
D887 123
D888 123
Note) Digits after the decimal point is truncated.
II - 208
8. Function Instructions
S.STC,S.CLC
The compatible instruction mode and extended instruction mode share the same specifications for
this instruction.
[Instruction [Execution
Symbol] Condition]
Command
S.STC S.STC
Command
S.CLC S.CLC
Functions
S.STC (1) Set (turn ON) the carry flag contact (SM12).
S.CLC (1) Reset (turn OFF) the carry flag contact (SM12).
Operation Errors
(1) There are no operation errors associated with the S.STC or S.CLC instructions.
II - 209
8. Function Instructions
S.STC,S.CLC
Program Example
(1) In this program, D0 data is added to D2 data when M0 turns ON. The carry flag (SM12) is
turned ON if the result exceeds 32767, and turned OFF if 32767 or less.
[Ladder Mode]
M0 Add D2 to D0, and store the result in D1. (D2+D0→D1)
0 + D2 D0 D1
Turn M1 ON when:
5 > D2 D1 M1 (Summand)>(Addition result) or
(Augend)>(Added result)
> D0 D1
M1
12 S.STC Turn ON the carry flag when M1 turns ON
M1
17 S.CLC Turn OFF the carry flag when M1 turns OFF
22 END
[List Mode]
Steps Inst. Device
0 LD M0
1 + D2
D0
D1
5 LD> D2
D1
8 OR> D0
D1
11 OUT M1
12 LD M1
13 S.STC
17 LDI M1
18 S.CLC
22 END
II - 210
8. Function Instructions
LDBIT,ANDBIT,ORBIT
Extended
Not available
instruction mode
! CAUTION
Note that when a sequence program using these instructions is executed in the extended
instruction mode, unexpected operation would occur because the instructions will be
processed as ones having different operations.
[Instruction [Execution
Symbol] Condition]
LDBIT <= S n
ANDBIT <= S n
ORBIT
<= S n
Set Data
Set Data Meaning Data Type
S Device No. to which bit test is performed
BIN 16 bits
n Bit to which bit test is performed
Functions
(1) Bit test for 16-bit device is executed with "A" contact handling.
II - 211
8. Function Instructions
LDBIT,ANDBIT,ORBIT
Replaceable instructions
LDBIT, ANDBIT, and ORBIT instructions can be replaced by executing a word device bit
designation using LD, AND, OR instructions. (Refer to Program Example)
Operation Errors
(1) There are no operation errors associated with the LDBIT, ANDBIT, or ORBIT instructions.
Program Example
(1) Program to test D10 bit 3
(The 0th step and 4th step are the ladders having the same operations.)
[Ladder Mode] [List Mode]
Y33 Steps Inst. Device
0 <= D10 K3 0 LD<= D10
Replaceable Y33 K3
D10.3
4 3 OUT Y33
4 LD D10.3
II - 212
8. Function Instructions
LDBIT,ANDBIT,ORBIT
12 7 LD M3
END
8 LD D10.F
9 OR M8
10 ANB
11 OUT Y33
12 END
II - 213
8. Function Instructions
LDBII,ANDBII,ORBII
Extended
Not available
instruction mode
! CAUTION
Note that when a sequence program using these instructions is executed in the extended
instruction mode, unexpected operation would occur because the instructions will be
processed as ones having different operations.
[Instruction [Execution
Symbol] Condition]
LDBII <> S n
ANDBII <> S n
ORBII
<> S n
Set Data
Set Data Meaning Data Type
S Device No. to which bit test is performed
BIN 16 bits
n Bit to which bit test is performed
Functions
(1) Bit test for 16-bit device is executed with "B" contact handling.
II - 214
8. Function Instructions
LDBII,ANDBII,ORBII
Replaceable instructions
LDBII, ANDBII, and ORBII instructions can be replaced by executing a word device bit designation
using LDI, ANI, and ORI instructions. (Refer to Program Example)
Operation Errors
(1) There are no operation errors associated with the LDBII, ANDBII, or ORBII instructions.
Program Example
(1) Program to test D10 3
(The 0th step and 4th step are the ladders having the same operations.)
II - 215
8. Function Instructions
LDBII,ANDBII,ORBII
II - 216
9. Exclusive Instructions
9. Exclusive Instructions
PLC dedicated instruction is limited to its application for the processes which may be difficult to perform only
with basic instruction or function instruction.
II - 217
9. Exclusive Instructions
9.1 ATC Exclusive Instruction
(1) Index of magazine .......................................... (ATC-K1, K2, K5, K6, K7, K8)
(2) Tool change (arm, or the like is used) .............. (ATC-K3, K4)
(3) Transfer of tool to intermediate pot or arm ....... (Normal function instructions such as MOV, XCH are
used.)
(4) Others ............................................................... (ATC-K9, K10, K11)
(1) Pointer
This points out the position where the magazine is indexed. When a tool table in which tool No. are
previously recorded is used, the tool table does not rotate with rotation of the magazine and the pointer
serves as "ring counter" for control of magazine position.
II - 218
9. Exclusive Instructions
9.1 ATC Exclusive Instruction
2
4 5
5 12 2
3 4
12
12 8 3 5
3 8
12 1 3
2 2
1
Pot No. Fixed pointer Relationship between
pot No. and tool No.
does not change.
Tool No.
4 One step in CW direction CW
4 2 4 6
3 3
9 5 2
12 2 12 2
1 1
12 8 3 5
Magazine No.
3 8
(fixed) Variable pointer Relationship between
pot No. and tool No.
changes.
T REGISTRATION
Magazine 1
Tool No.
When the floating pointer method or tool table rotation method is selected on the tool registration screen,
correspondence display between the magazines and tools changes each time the magazine rotates; when
the fixed pointer method is selected, it does not change.
II - 219
9. Exclusive Instructions
9.1 ATC Exclusive Instruction
The relationship between the tool number search instruction and rotary body indexing instruction when the
tool table rotation method or variable pointer method is used is explained below.
II - 220
9. Exclusive Instructions
9.1 ATC Exclusive Instruction
(1) When indexing tool number 8 in the situation given in the previous page
(a) In the tool table rotation method, the tool number search instruction outputs 3.
(b) In the variable pointer method, the tool number search instruction outputs 7.
(2) The tool number search instruction output result is used by the rotary body indexing instruction to find the
rotation direction, the number of steps, etc.
(a) In the tool table rotation system, rotation direction CW and number of steps 3 are found from the
relationship between current value 0 (pointer 0) and tool number search output result 3.
(b) In the variable pointer method, rotation direction CW and number of steps 3 are found from the
relationship between current value 4 (pointer 4) and tool number search output result 7, as in (a)
above.
In the fixed pointer system, the pointer is fixed to 0 and the ring counter of 0 to n-1 (n is the number
of magazines) separate from the pointer is controlled. The counter value is used as the current
position.
ACT
S.ATC Kn Rn Rm Mn
Rn
Control data buffer
Rn+1 Buffer size differs depending on type of instruction.
Rn+2 For details, refer to the explanation of instructions.
Rn+3
:
II - 221
9. Exclusive Instructions
9.1 ATC Exclusive Instruction
Instruction Description
S.ATC K1 Rn Rm Mn Tool No. search
S.ATC K2 Rn Rm Mn Tool No. logical AND search
S.ATC K3 Rn Rm Mn Tool change
S.ATC K4 Rn Rm Mn Arbitrary position tool change
S.ATC K5 Rn Rm Mn Pointer forward run
S.ATC K6 Rn Rm Mn Pointer reverse run
S.ATC K7 Rn Rm Mn Tool table forward run
S.ATC K8 Rn Rm Mn Tool table reverse run
S.ATC K9 Rn Rm Mn Tool data read
S.ATC K10 Rn Rm Mn Tool data write
S.ATC K11 Rn Rm Mn Automatic tool data write
II - 222
9. Exclusive Instructions
9.1 ATC Exclusive Instruction
R10600 F E D C B A 9 8 7 6 5 4 3 2 1 0
0: T4-digit
Max. number of standby 1: T8-digit
displayed: 4
The magazine tool data is assigned for the set tools in order from No. 1 magazine based on the set
number of tools.
II - 223
9. Exclusive Instructions
9.1 ATC Exclusive Instruction
II - 224
9. Exclusive Instructions
9.1 ATC Exclusive Instruction
II - 225
9. Exclusive Instructions
9.1 ATC Exclusive Instruction
Pot 99 R10896
R10798 - - - - - - - - BCD
(MG99) R10897
Pot 100 R10898
R10799 - - - - - - - - BCD
(MG100) R10899
Pot 1 R10900 ← R11100 ← R11250 ← R11400 ← R11550 ← Binary
Pot 99
R10998 ← - - - - - - - - Binary
(MG99)
Pot 120
R10999 ← - - - - - - - - Binary
(MG120)
II - 226
9. Exclusive Instructions
9.1 ATC Exclusive Instruction
ACT
S.ATC K1 R9800 R10610 M10
Location is "3"
R9840 3
Number of search Output.... Based on the output result, the
2 data found: 2
(for error) rotation direction, the number of
steps, etc., are figured out by using
R10615 2 Pointer the ROT K1 instruction.
:
:
:
R10708 101(8)
R10709 102(9)
(Note 1) Pointer and location are counted up, like 0,1,2...9, in the tool data table, starting from the tool
data table head.
(Note 2) When pointer is not used, R10615 should be set to "zero".
Example: MOV K0 R10615
II - 227
9. Exclusive Instructions
9.1 ATC Exclusive Instruction
ACT
S.ATC K2 R9800 R10610 M10
R9830 2000 Search data 2*** and F000 are ANDed together.
2000 is search data.
F000 Logical AND data * is any desired data.
Location of
R9840 3 searched data: 3
Number of Output --- Based on the output result, the rotation
R9841 3 searched data direction, the number of steps, etc.,
found (for error): 3
are figured by using the ROT K1
R10615 2 Pointer instruction.
(Note 1) Pointer and location are counted up, like 0, 1, 2 .... 9, in the tool data table, starting from the tool
data table head.
(Note 2) When pointer is not used, R10615 should be set to "zero".
(Example) MOV K0 R10615
II - 228
9. Exclusive Instructions
9.1 ATC Exclusive Instruction
ACT
S.ATC K3 R9800 R10610 M10
R10615 2 Pointer
R10620 1234
The content "1234" of R10620 (tool change position register
R10700 1000(0) No.) is replaced with the content "1002" of R10702 which
corresponds to the pointer value "2" of R10615 (pointer
R10701 1001(1) position register No.).
R10702 1002(2)
: 1003(3)
: :
: :
: :
: :
R10708 1008(8)
R10709 1009(9)
II - 229
9. Exclusive Instructions
9.1 ATC Exclusive Instruction
ACT
S.ATC K4 R9800 R10610 M10
R10615 2 Pointer
R10700 1000(0) 9 8
R10701 1001(1) 10 9
R10702 1002(2) MG MG
: 1003(3) 1 0
: 1004(4) 2 1
: 1005(5) 3 2
: 1006 (6) 4 3
: 1007 (7) 5 4
R10708 1008(8) 6 5
R10709 1009(9) 7 6
8 7
(Note 1) Tool change position differs depending on whether magazine No. starts with "0" or "1".
However, the substantial consequence does not differ.
(Note 2) When pointer is not used, R10615 should be set to "zero".
(Example) MOV K0 R10615
II - 230
9. Exclusive Instructions
9.1 ATC Exclusive Instruction
ACT
S.ATCK5 R10615 R10610 M10
ACT
S.ATC K6 R10615 R10610 M10
II - 231
9. Exclusive Instructions
9.1 ATC Exclusive Instruction
ACT
S.ATC K7 R10610 R10610 M10
R10700 1000
R10701 1001
: :
: :
R10710 1010
(Note 1) In this control mode, pointer always indicates "0" (tool table head).
(Note 2) When this instruction is executed, the relationship between
magazine No. and tool No., appearing on the tool entry display
changes accordingly.
ACT
S.ATC K8 R10610 R10610 M10
R10700 1000
R10701 1001
: :
: :
R10709 1009
(Note 1) In this control mode, pointer always indicates "0" (tool table head).
(Note 2) When this instruction is executed, the relationship between
magazine No. and tool No., appearing on the tool entry display
changes accordingly.
II - 232
9. Exclusive Instructions
9.1 ATC Exclusive Instruction
ACT
S.ATC K9 R9800 R10610 M10
R10615 2 Pointer
R10700 1000(0) 9 8
R10701 1001(1) 10 9
R10702 1002(2) MG MG
: 1003(3) 1 0
: 1004(4) 2 1
: 3 2 Read out data differs depending on whether
1005(5)
magazine No. starts with "0" or "1".
: : (6) 4 3 However, the substantial consequence does not differ.
: : (7) 5 4
R10708 : (8) 6 5
R10709 1009(9) 7 6
8 7
II - 233
9. Exclusive Instructions
9.1 ATC Exclusive Instruction
ACT
S.ATC K10 R9800 R10610 M10
R10615 2 Pointer
R10700 1000(0) 9 8
R10701 1001(1) 10 9
R10702 1002(2) MG MG
: 1003(3) 1 0
: (4) 2 1
Data "1234" is written to magazine No. 3 .
: (5) 3 2
: : (6) 4 3
: : (7) 5 4
R10708 1008(8) 6 5
R10709 1009(9) 7 6
8 7
II - 234
9. Exclusive Instructions
9.1 ATC Exclusive Instruction
ACT
S.ATC K11 R9800 R10610 M10
R10615 2 Pointer
II - 235
9. Exclusive Instructions
9.1 ATC Exclusive Instruction
M10
SET SM64
• SM64 processing is not required for ATC instructions ATC K5, K6 (forward run, reverse run of
pointer), ATC K7, K8 (forward run, reverse run of tool table).
• SM64 is set through the use of the user PLC and reset by controller.
CW
CCW
II - 236
9. Exclusive Instructions
9.1 ATC Exclusive Instruction
F E D C B A 9 8 7 6 5 4 3 2 1 0
F E D C B A 9 8 7 6 5 4 3 2 1 0
II - 237
9. Exclusive Instructions
9.1 ATC Exclusive Instruction
Spindle and
standby display
F E D C B A 9 8 7 6 5 4 3 2 1 0
II - 238
9. Exclusive Instructions
9.2 ROT Instructions
Instruction Description
S.ROT K1 Rn Rm Mn Rotary body indexing
S.ROT K3 Rn Rm Mn Ring counter
II - 239
9. Exclusive Instructions
9.2 ROT Instructions
ACT
S.ROT K1 Rn Rm Mm
0: Direction of rotation CW
Index
instruction 1: Direction of rotation CCW
F E
(Spare)
0 : Rotary body starts from 1
Error output 1 : Rotary body starts from 0
0 : Normal completion
1 : Error completion 0 : Direction of rotation is determined for
4 3 shorter reach.
…
…
(Note 1) The Index instruction is executed after setting R Nos. to Rn to Rn+3 and writing data in the file
registers (R) each corresponding to the R Nos. However, data setting to the parameter (Rp) is done
once before execution of the index instruction; this is to prevent the error code from being cleared.
(Note 2) The error code stored in bit F of the parameter (Rp) is not cleared even if the index instruction
activating signal (ACT) goes OFF.
II - 240
9. Exclusive Instructions
9.2 ROT Instructions
6
1 5
Target position
2 4
M
3
Current position
PLC
CNC
Auxiliary function
completed (Fin)
T code data,
T command start
In the example of ladder circuit shown below, the rotation direction is determined by the T command
and current position data given by the machine, and the rotary body is rotated in that direction until
the target position reaches the current position. When indexing is completed, the auxiliary command
completion signal is turned ON.
II - 241
9. Exclusive Instructions
9.2 ROT Instructions
M1000
MOV R9810 R9800 R No. to store the parameter R9800 9810
MOV R9812 R9801 R No. to store the current position R9801 9812
MOV K536 R9802 R No. to store the target position R9802 536
MOV K9813 R9803 R No. to store the output position R9803 9813
MOV H8 R9810 Parameter is set.
CW
(M203) M200 Y11
CCW
YC1E
Completion circuit Auxiliary function completed
M1000 M1000
On-signal after PLC1 scan
M1000
II - 242
9. Exclusive Instructions
9.2 ROT Instructions
ACT
S.ROT K3 Rn Rm Mn
(Pulse coding)
Completion ("1" for error)
Ring counter instruction
R No. to specify rotary body index
The ring counter is a binary counter; it is used as an up/down counter of "start from 0" or "start from 1"
according to the parameter rotary body instruction.
15 - - - 3 2 1 0
F E
Rotary body selection
Error output 0 : Rotary body starts from 1
Instruction code: S.ROT Kn is not "1" or "3".
1 : Rotary body starts from 0
Up/down selection
0 : Up counter
1 : Down counter
(Note 1) The ring counter instruction is executed after setting R No. to Rn to Rn+1 and specifying data for
the parameter.
(Note 2) The error completion (Mm) of the ring counter instruction and the error output in bit F of the
parameter (Rp) are cleared when the activating signal (ACT) goes OFF. The activating signal
(ACT) of the ring counter instruction is generally pulsed. This makes it hard for the interface
diagnostic and ladder monitor programs to detect an error signal. For debugging, therefore, an
error hold circuit is provided after the ring count instruction to ease error detection.
II - 243
10. PLC Help Function
II - 244
10. PLC Help Function
10.1 Tool Life Management (Machining Center System)
• The tool status is monitored by counting the tool usage time and number of uses.
• When the tool being used reaches its life, the tool life over signal is output, and the tool No. displayed on the
LIFE MANAGEMENT DATA screen is highlighted.
• When the tool is commanded, an arbitrary tool is selected from the tool group.
(Only for tool life management II.)
[Preparation]
The life time [WARNING]
and number of Tool life over
life times are
set [Tool life management screen]
# No. is highlighted
II - 245
10. PLC Help Function
10.1 Tool Life Management (Machining Center System)
(1) Tool life management I (When Base common parameter "#1096 T-Ltyp" is set to 1.)
The use time or use count of the spindle tool specified from user PLC (R12200, R12201) is integrated
and the tool use state is monitored. Tool data corresponding to the spindle tool is also output. (R11824 to
R11847)
(2) Tool life management II (When Base common parameter "#1096 T-Ltyp" is set to 2.)
A function to select a spare tool has been added to the tool management I. The spare tool is selected
from the group by the spare tool selection processes executed by the NC when the tool is commanded,
etc. The tool data for that spare tool is output.
Tool data corresponding to the spindle tool specified from user PLC (R12200, R12201) is output (R11824
to R11847) and tool compensation corresponding to the spindle tool is made.
(Note) If -1 is set in the group No. in the output tool data, the tool data is invalid. At the time, the
specified tool No. is output to the tool No. in the output tool data as it is.
II - 246
10. PLC Help Function
10.1 Tool Life Management (Machining Center System)
(Note) If -1 is set in the group No. in the output spindle tool data, the spindle tool data is invalid. At
the time, the specified tool No. (R12200 to R12201) is output to the tool No. in the output
spindle tool data as it is. NC does not integrate the usage time or usage count of the spindle
tool or make tool compensation.
II - 247
10. PLC Help Function
10.1 Tool Life Management (Machining Center System)
(a) Group No. command method (When Base common parameter "#1104 T-Com2" is set to 0.)
The command tool No. (Rm contents) input to the spare tool selection process is handled as group
No. Spare tool is selected among the tools corresponding to the group No. in tool data.
(a) Tool No. command method (When BASE SPEC parameter "#1104 T-Com2" is set to 1.)
The command tool No. (Rm contents) input to the spare tool selection process is handled as a tool
No. The group No. containing the command tool No. is found and spare tool is selected among the
group.
(a) Selection in tool registration order (When Base common parameter "#1105 T-Sel2" is set to 0.)
This selects the tool from the tools in use in the same group, following the registration No. order.
If there are no "Tools in use", the tools are selected in order of "Tools not in use", "Normal life tools"
and "Abnormal tools", following the registration No. order.
(b) Life equality selection (When Base common parameter "#1105 T-Sel2" is set to 1.)
This selects the tool with the maximum remaining life from the tools in use and not in use in the
same group.
When several tools have the same remaining life, the tools are selected in order of registration No. If
there are no "Tools in use" or "Tools not in use", the tools are selected in order of "Tools not in use",
"Normal life tools" and "Abnormal tools", following the registration No. order.
II - 248
10. PLC Help Function
10.1 Tool Life Management (Machining Center System)
(Note) The data range for the tool offset Nos. is decided by the specifications of the number of tool offset
sets.
Number of tool offset sets Data range
40 sets 1 to 40
200 sets 1 to 200
400 sets 1 to 400
999 sets 1 to 999
II - 249
10. PLC Help Function
10.1 Tool Life Management (Machining Center System)
(Note) The data range for the tool offset Nos. is decided by the specifications of the number of tool offset
sets.
Number of tool offset sets Data range
40 sets 1 to 40
200 sets 1 to 200
400 sets 1 to 400
999 sets 1 to 999
II - 250
10. PLC Help Function
10.1 Tool Life Management (Machining Center System)
During cutting
feed During cutting feed
+1 count +1 count
• The usage time is the cumulative time during operation (during cutting feed) in the group 1 modal.
• The cut count is the number of times the state was changed to the group 1 modal (G01, G02, G03, G33).
Note that rapid traverse and cutting feed commands with no movement are not counted.
If a command other than a rapid traverse command is issued between the cutting feed commands, the
data will not be counted.
• The mount count is the number of times the tool became the spindle tool with tool change.
If the group 1 modal is not activated even once after becoming the spindle tool, the mounting will not be
counted.
The following cases are not counted even when tool life management is valid.
• When control parameter "tool management valid" is OFF
• When the usage data count valid signal is OFF
• When the life data setting value is 0
• When there are two or more tool statuses (normal life, abnormal tool 1, abnormal tool 2)
• During machine lock
• During miscellaneous function lock
• During dry run
• Single block
• During skip
II - 251
10. PLC Help Function
10.1 Tool Life Management (Machining Center System)
NC PLC
R11800
Group No.
R11801
R11802
Tool No. 1
R11803
When magazine is indexed according to
R11804 Tool data flag/status [DMOV] the read tool No. and new tool is mounted
Auxiliary data on the spindle, tool No. of the new tool is
R11805
set in R12200, R12201.
The NC searches for the tool data
R11806 Cumulative
indicated by the T command
data. usage time
R11807
The searched tool data is set in
R11800 to R11823. R11808
Service lifetime
R11809
Cumulative usage
R11810 count
R11811 Service life count
R11812 Cumulative
usage wear
R11813 amount
Status check, etc.
R11814 Service life wear
amount
R11815
R11818
Radius compen-
R11819 sation data
R11820
Length wear
R11821 amount
R11822
Radius wear
R11823 amount
II - 252
10. PLC Help Function
10.1 Tool Life Management (Machining Center System)
NC PLC
1
[DMOV]
R12202
Use as screen Standby tool Standby tool number is set.
display data. R12203 No.
R11824
Group No.
R11825
R11826
Tool No.
The tool data R11827
corresponding to the
spindle tool No. is R11828 Tool data flag/status
output.
R11829 Auxiliary data Status check, etc.
R11830 Cumulative
usage time
R11831
R11832
Service lifetime
R11833
Cumulative usage
R11834 count
R11835 Service life count
R11836 Cumulative
usage wear
R11837 amount
R11840
Length compen-
R11841 sation data
(Note)
R11842 Note that the data handled in tool life management
Radius compen-
sation data except for tool data flag/status is binary, while the
R11843
data used in the ATC instruction, such as search
R11844 data and magazine tool No., is BCD.
Length wear
R11845 amount
R11846
Radius wear
R11847 amount
II - 253
10. PLC Help Function
10.1 Tool Life Management (Machining Center System)
START
YES
Is tool available? The tool status and tool No. are checked to see if
NO the tool can be used.
YES
Index magazine according to tool Desired tool (magazine) is indexed.
No. in the read tool data.
II - 254
10. PLC Help Function
10.1 Tool Life Management (Machining Center System)
(1) NC → PLC
X (part system)
1st part 2nd part
Name Details
system system
Sent from the NC to the PLC when the tool life management
XC2B XD6B In tool life management
function is selected (when user parameter is ON).
Sent from the NC to the PLC when the usage data count value
XC2E XD6E Tool life over
exceeds the life data setting value.
Sent from the NC to the PLC when all tools in the tool group
XC2F XD6F Tool group life over
exceed the life. (Valid only in the tool life management II.)
Sent from the NC to the PLC when the miscellaneous function (M
XC60 XDA0 M function strobe 1
function) is executed.
Sent from the NC to the PLC when output of the spare tool's data
XC68 XDA8 T function strobe 1
is completed.
(2) PLC → NC
Y (axis)
1st part 2nd part
Name Details
system system
Y8A0 Y8A8 Auto machine lock 1st axis
Y8A1 Y8A9 Auto machine lock 2nd axis
Y8A2 Y8AA Auto machine lock 3rd axis
Y8A3 Y8AB Auto machine lock 4th axis Tool life management is not executed while these signals are
Y8A4 Y8AC Auto machine lock 5th axis received.
Y8A5 Y8AD Auto machine lock 6th axis
Y8A6 Y8AE Auto machine lock 7th axis
Y8A7 Y8AF Auto machine lock 8th axis
Y (part system)
1st part 2nd part
Name Details
system system
Tool life management is not executed while this signal is
YC12 YD52 Single block
received.
Tool life management is not executed while this signal is
YC15 YD55 Dry run
received.
Execution of the machining program waits until this signal is
YC1E YD5E M function finish 1
received.
Execution of the machining program waits until this signal is
YC5A YD9A Miscellaneous function lock
received.
YC88 YDC8 Tool alarm 1 The tool status is changed to 3 when the NC receives this signal.
YC89 YDC9 Tool alarm 2 The tool status is changed to 4 when the NC receives this signal.
The tool usage data is not counted when this signal is not being
YC8A YDCA Data count valid
received.
Tool life management is executed when NC receives this signal,
YC8B YDCB Tool life management input
and the output during tool life management is output to PLC.
II - 255
10. PLC Help Function
10.1 Tool Life Management (Machining Center System)
(3) R registers
R (part system)
1st part 2nd part
Name Details
system system
R504 R704
M code data 1 This No. is designated with the M command.
R505 R705
R536 R736
T code data 1 This No. is designated with the T command.
R537 R737
Group in tool life
R567 R767 This is the No. of the group for which life management is active.
management
R628 R828 This is the usage time and work count of the tool for which life
Tool life usage data
R629 R829 management is active.
Number of registerable tool
R630 R830 This is the number of tools for which life management is active.
life control tools
Tool life management data
R2588 R2788 This is the tool life data sort necessity flag.
sort
R2590 R2790 Tool group number
This is the tool group No. commanded with the T command.
R2591 R2791 designation
R (ATC, life management): Tool life management data (NC → PLC) standby tool data
1st part 2nd part
Name Details
system system
R11800 R11850 T life mgmt
This is the standby tool's group No.
R11801 R11851 Standby tool: Group No.
R11802 R11852
Standby tool: Tool No. This is the standby tool's tool No.
R11803 R11853
R11804 R11854 Standby tool: Flag/Status This is the standby tool's flag/status.
R11805 R11855 Standby tool: Auxiliary data This is the standby tool's auxiliary data.
R11806 R11856 Standby tool: Cumulative
This is the standby tool's usage time.
R11807 R11857 usage time
R11808 R11858 Standby tool: Service
This is the standby tool's service lifetime.
R11809 R11859 lifetime
R11810 R11860 Standby tool: Cumulative
This is the standby tool's work count time.
usage count
R11811 R11861 Standby tool: Service life
This is the standby tool's service life count.
count
R11812 R11862 Standby tool: Cumulative
This is the standby tool's usage wear amount.
R11813 R11863 usage wear amount
R11814 R11864 Standby tool: Service life
This is the standby tool's service life wear amount.
R11815 R11865 wear amount
R11816 R11866 Standby tool: Length
This is the spare tool's length compensation amount.
R11817 R11867 compensation amount
R11818 R11868 Standby tool: Radius
This is the standby tool's radius compensation amount.
R11819 R11869 compensation amount
R11820 R11870 Standby tool: Length wear
This is the standby tool's length wear amount.
R11821 R11871 amount
R11822 R11872 Standby tool: Radius wear
This is the standby tool's radius wear amount.
R11823 R11873 amount
II - 256
10. PLC Help Function
10.1 Tool Life Management (Machining Center System)
R (ATC, life management): Tool life management data (NC → PLC) Active spindle tool data
1st part 2nd part
Name Details
system system
R11824 R11874 T life mgmt
This is the active tool's group No.
R11825 R11875 Active tool: Group No.
R11826 R11876
Active tool: Tool No. This is the active tool's tool No.
R11827 R11877
R11828 R11878 Active tool: Flag/Status This is the active tool's flag/status.
R11829 R11879 Active tool: Auxiliary data This is the active tool's auxiliary data.
R11830 R11880 Active tool: Cumulative
This is the active tool's usage time.
R11831 R11881 usage time
R11832 R11882
Active tool: Service lifetime This is the active tool's service lifetime.
R11833 R11883
Active tool: Cumulative
R11834 R11884 This is the active tool's work count time.
usage count
Active tool: Service life
R11835 R11885 This is the active tool's service life count.
count
R11836 R11886 Active tool: Cumulative
This is the active tool's usage wear amount.
R11837 R11887 usage wear amount
R11838 R11888 Active tool: Service life
This is the active tool's service life wear amount.
R11839 R11889 wear amount
R11840 R11890 Active tool: Length
This is the active tool's length compensation amount.
R11841 R11891 compensation amount
R11842 R11892 Active tool: Radius
This is the active tool's radius compensation amount.
R11843 R11893 compensation amount
R11844 R11894 Active tool: Length wear
This is the active tool's length wear amount.
R11845 R11895 amount
R11846 R11896 Active tool: Radius wear
This is the active tool's radius wear amount.
R11847 R11897 amount
R (ATC, life management): Tool life management data (NC → PLC) Spindle/Standby tool Nos.
1st part 2nd part
Name Details
system system
R12200 R12210
T life mgmt Spindle tool No. This is the active spindle tool No.
R12201 R12211
R12202 R12212
T life mgmt Standby tool No. This is the standby tool No.
R12203 R12213
II - 257
10. PLC Help Function
10.2 External Search
(1) The user PLC sets the device, program No., sequence No. and block No.
(2) The user PLC sets the external search strobe signal ON.
(3) The NC searches for the target machining program from the designated device, program No., sequence
No. and block No.
(4) The NC sets the search results as the external search status.
(5) The NC turns the external search finished signal ON.
(6) The user PLC turns the external search strobe signal OFF.
(7) The NC turns the external search finished signal OFF.
NC User PLC
(4)
Set search results R500 External search status Refer to with error check, etc.
(5) (6)
External search External search
finished signal ON strobe signal OFF
(7)
External search
finished signal OFF
II - 258
10. PLC Help Function
10.2 External Search
Condition
Search block
Program No. Sequence No.
Designated Designated Designated sequence No. for designated program
Designated Not designated (= 0) Head of designated program
Not designated (= 0) Designated Designated sequence No. in currently selected program
Not designated (= 0) Not designated (= 0) Error: 4 Refer to 10.2.5 External search status
II - 259
10. PLC Help Function
10.2 External Search
II - 260
10. PLC Help Function
10.2 External Search
10.2.6 Precautions
Even if the external search strobe is already OFF when the NC finishes the external search, the external
search finished signal will turn ON for one cycle of the user PLC.
II - 261
10. PLC Help Function
10.3 PLC Axis Control
10.3.1 Specifications
Item Details
Number of control axes Max. :2 axes (700 Series), 6 axes (70 Series)
Simultaneous control The PLC control axis is controlled independently of the NC control axis.
axes Simultaneous start of multiple PLC axes is possible.
Command unit Least command increment (Note 1) 0.001mm (0.0001 inch)
0.0001mm (0.00001 inch)
0.00001mm (0.000001 inch)
0.000001mm (0.0000001 inch)
Feedrate 0 to 1000000 mm/min (0 to 100000 inch/min)
(The speed is fixed regardless of the unit system.)
Movement commands Incremental value commands from the current position.
Absolute value commands of the machine coordinate system.
0 to ±99999999 (Note 1)
Operation modes Rapid traverse, cutting feed
Jog feed (+), (-)
Reference position return feed (+), (-)
Handle feed
Backlash compensation Provided
Stroke end Not provided
Soft limit Provided
Rotation axis commands Provided
Absolute value commands ....... Rotation amount within one rotation.
(Rotates the remainder divided by
rotational axis division count.)
Incremental commands ............ Rotates the commanded rotation amount.
Inch/mm changeover Not provided
Command to match the feedback unit.
Position detector Encoder (absolute position detection also possible)
(Note 1) The following units are used for the input/output data in PLC axis control according to the parameter
"#1005 plcunit" setting.
Setting value Unit
B 0.001 mm (0.0001 inch)
C 0.0001 mm (0.00001 inch)
D 0.00001 mm (0.000001 inch)
E 0.000001 mm (0.0000001 inch)
The screen display changes as follows according to the parameter "#1003 iunit" setting.
Setting value Unit Display
B 0.001 mm (0.0001 inch) Displays up to three digits after the decimal point
C 0.0001 mm (0.00001 inch) Displays up to four digits after the decimal point
D 0.00001 mm (0.000001 inch) Displays up to five digits after the decimal point
E 0.000001 mm (0.0000001 inch) Displays up to six digits after the decimal point
(Note 2) The unit system is split into the display (iunit) and control data (plcunit), so when confirming the
effective value of the PLC axis control data on the screen, set the display unit (iunit) to the same unit
as the control data unit (plcunit).
II - 262
10. PLC Help Function
10.3 PLC Axis Control
Other restrictions
(1) There is no mirror image, external deceleration or machine lock function.
(2) Rapid traverse override, cutting override and dry run control are not possible.
(3) Automatic operation start, automatic operation stop, reset and interlock NC controls are invalid for
PLC control axes.
The same control can be realized using an interface dedicated for PLC control axes.
(4) There is no dedicated emergency stop. The emergency stop is valid in the same manner as the NC
control axis.
During PLC axis control, the status, alarm details, machine position and remaining distance are set in the R
register.
Flow of PLC axis control for 1st PLC axis in single mode
NC User PLC
R1n+6
Feed rate
R1n+7
R1n+8
Movement data
R1n+9
R1n+10
Machine position
R1n+11
R1n+12
Remaining distance
R1n+13
(Note) Refer to "(4) Axis specification" in "10.3.4 Details of PLC Axis Control Information Data" for the
explanation of unused register No. R1n+4.
II - 263
10. PLC Help Function
10.3 PLC Axis Control
Refer to "10.3.8 Single Mode" and "10.3.9 Buffering Mode" for the details of each mode. For the details of
alarms, refer to "(2) Alarm Details" in "10.3.4 Details of PLC Axis Control Information Data".
II - 264
10. PLC Help Function
10.3 PLC Axis Control
II - 265
10. PLC Help Function
10.3 PLC Axis Control
(1) Status
The status is set by the NC to indicate the execution status of this function instruction and the status of
the axis being controlled.
F E D C B A 9 8 7 6 5 4 3 2 1 0
R1n + 1
(1st axis)
II - 266
10. PLC Help Function
10.3 PLC Axis Control
(Note) When alarms occur during axis control, the same alarms appear in the screen as for NC
control axes. Set the PLC 1st axis to "1", and the PLC 2nd axis to "2".
Example: When a servo alarm occurs for the PLC 1st axis
S03 Servo alarm 52 1
PLC axis
(Note) The status of the PLC axis, to which the PLC axis control valid signal is ON, is automatically
updated.
II - 267
10. PLC Help Function
10.3 PLC Axis Control
F 8 7 0
R1n + 2
(1st axis) ALM1 Alarm No. ALM2 Alarm No.
(Note 1) This alarm occurs before the simultaneous operation of single mode and buffering mode.
(Note 2) The alarm details of the PLC axis, to which the PLC axis control valid signal is ON, are
automatically updated.
II - 268
10. PLC Help Function
10.3 PLC Axis Control
II - 269
10. PLC Help Function
10.3 PLC Axis Control
Only buffering mode allows the axis specification upon this data.
Single mode, which provides the PLC axis control valid signal for each axis, does not allow the axis
specification upon this data.
The axis movement will not be affected by changing the operation mode, even while the axis is moving.
The new operation mode is validated at the next start.
II - 270
10. PLC Help Function
10.3 PLC Axis Control
(6) Feedrate
When the operation mode is cutting feed or jog feed (operation mode, register = 1 to 3), the PLC axis
feedrate is designated with a binary code.
R1n + 6
Feedrate
R1n + 7
(1st axis)
(Note 1) The speed unit is fixed regardless of the unit system set with the command unit.
(Note 2) The feedrate designated in the parameters is used for the rapid traverse mode and reference
position return mode.
(Note 3) The feedrate can be changed during axis movement. In that case, change using a direct
feedrate data (R1n + 6, 7) is possible.
R1n + 8
Movement data
R1n + 9
(1st axis)
(Note 1) Refer to the explanations in "10.3.1 Specifications" "#1003 iunit" and "#1005 plcunit" for details
on the unit.
(Note 2) The movement data is classified as follows by the absolute value command flag (bit 8) of the
command signal.
Absolute value command flag = 0: Incremental value from the current position
Absolute value command flag = 1: Absolute value of the machine coordinate system
(Note 3) If the movement amount is changed during axis movement, the new movement amount will be
validated at the next start.
II - 271
10. PLC Help Function
10.3 PLC Axis Control
R1n + 10
Machine position (input unit)
R1n + 11
(1st axis)
(Note 1) Refer to the explanations in "10.3.1 Specifications" "#1003 iunit" and "#1005 plcunit" for details
on the unit.
(Note 2) The alarm details of the PLC axis, to which the PLC axis control valid signal is ON, are
automatically updated.
R1n + 12
Remaining distance (input unit)
R1n + 13
(1st axis)
(Note 1) Refer to the explanations in "10.3.1 Specifications" "#1003 iunit" and "#1005 plcunit" for details
on the unit.
(Note 2) The alarm details of the PLC axis, to which the PLC axis control valid signal is ON, are
automatically updated.
II - 272
10. PLC Help Function
10.3 PLC Axis Control
Start
busy
den
move
Speed
Start
busy
den
move
Speed
(Note) The axis moves by jog feed only during start ON.
II - 273
10. PLC Help Function
10.3 PLC Axis Control
busy
den
move
ZP
(Note 1) The axis moves by reference position return feed only during start ON. Turn the start OFF after
confirming that the reference position has been reached.
(Note 2) The first reference position return after the power is turned ON is always dog-type. All returns
after that are high-speed reference position returns.
Start
busy
den
move
ZP
Speed
(G1 mode)
II - 274
10. PLC Help Function
10.3 PLC Axis Control
Start
busy
den
move
Handle
Speed
Start
Interlock
busy
den
move
Speed
II - 275
10. PLC Help Function
10.3 PLC Axis Control
Start
Reset
busy
den
move
Speed
Start
Servo OFF
busy
den
move
svon
Speed
II - 276
10. PLC Help Function
10.3 PLC Axis Control
Start
busy
den
move
Speed
II - 277
10. PLC Help Function
10.3 PLC Axis Control
(Note) The responsiveness when the dog signal is set in PLC middle-speed processing is worse than when
set in PLC high-speed processing.
When Y720, Y721, Y722 are ON, each handle changes to PLC axis dedication.
YC40 to YC44, YC47, YC48 to YC4C, YC4F, YC50 to YC54 and YC57 used with the normal control device
are used to select each handle axis.
PLC axes are counted as PLC such as first axis and second axis. Therefore, if you will operate the first
handle in the first axis of PLC, turn ON Y720, YC40 to YC44 and YC47.
(Note) The handle feed magnification is also used for NC control axes.
II - 278
10. PLC Help Function
10.3 PLC Axis Control
R1n+
Control
information
data A
Control
information
data C
(Note) Only one set of the buffering mode can be commanded. If two or more sets are commanded
simultaneously, the sets commanded later will cause an alarm.
II - 279
10. PLC Help Function
10.3 PLC Axis Control
busy
A den
move
wait
Start
busy
B den
move
wait
Start
busy
C den
move
wait
Speed
(Note) Change and start the data after the busy signal turns OFF.
Starting while the busy signal is ON will be ignored.
II - 280
10. PLC Help Function
10.3 PLC Axis Control
Axis
number 0 1
Start
busy
A
den
move
wait
Axis
number 0
Start
busy
B
den
move
wait
Axis
number 1
Start
busy
C
den
move
wait
II - 281
10. PLC Help Function
10.3 PLC Axis Control
II - 282
10. PLC Help Function
10.4 External Machine Coordinate System Compensation
Data in file registers (R5700 to R5731) is not backed up. If it must be backed up, use back-up file registers
(R8300 to R9799).
(Note) The maximum delay to compensation is (one user PLC scan + 15ms). However, smoothing time
constant and servo follow delay are not contained.
II - 283
10. PLC Help Function
10.5 Alarm Message Display
10.5.1 Interface
The alarm message display interface is available in the two types: F type in which temporary memory F is
used for message display request and R type in which file register (R) is used for message display request.
Either type is selected by using a parameter.
1 F0
0 F1 0th message of message table is displayed (dn1).
1 F2 2nd message of message table is displayed (dn2).
1 F3 3rd message of message table is displayed (dn3).
0 F4 5th message of message table is displayed (dn4).
1 F5
1 F1023
The highest priority is assigned to the F0 signal. The message corresponding to Fn set to 1 is fetched
from the message table and displayed in order starting at F0. If no messages are prepared or Fm greater
than the number of prepared messages is set to 1, the message "USER PLC ERROR m" is displayed.
II - 284
10. PLC Help Function
10.5 Alarm Message Display
The messages are displayed starting at the message corresponding to R2556 from top to bottom.
Since message display is cleared by setting the R register to 0, No. 0 in the table message cannot be
used in the R type.
If greater value than the number of prepared messages, m is set in the R register, the message "USER
PLC ERROR m" is displayed.
(Example) When spindle alarm occurs, the message "SPINDLE ALARM" is displayed and the alarm
source or cause is indicated by the classification No.
For the classification No., the contents of each data register specified in alarm message preparation are
displayed. Data register D0 cannot be specified.
(Note 2) The display of the classification No. by cause is updated when an alarm message display
changes. It is not updated if only the contents (dn1 to dn4) of the specified data register (Dn1 to
Dn4) change. If the contents of the specified data register are 0, no classification Nos. are
displayed.
II - 285
10. PLC Help Function
10.5 Alarm Message Display
II - 286
10. PLC Help Function
10.5 Alarm Message Display
10.5.4 Parameters
7 6 5 4 3 2 1 0 Bit
# (6450) Data ( 0 0 0 0 0 0 0 0)
The operation is as the following depending on the bit state of the bit selection #6450.
Bit 6 = 0
The PLC alarm message in the user PLC is displayed as usual.
Bit 6 = 1
Do not set this value, which clears the display of PLC alarm message.
(Method 1) Specify with 3 bits of bit selection parameter #6453 bit 0 to 2. (Language selection method
using PLC alone)
(Method 2) Specify with display language selection parameter (Base specifications parameter #1043)
(Method linked with language selection on the setting and display screen)
Each method has a different storage method. Refer to "III PERIPHERAL DEVELOPMENT
ENVIRONMENT 4.4 File Name" for details.
The parameter specifications where method 1 (Language selection method using PLC alone) is applied
is shown below.
7 6 5 4 3 2 1 0 Bit
# (6453) Data ( 0 0 0 0 0 0 0 0)
Bit
No. Notes
2 1 0
0 0 0 The language 1 is displayed.
0 0 1 The language 2 is displayed.
0 1 0 The language 3 is displayed.
0 1 1 The language 4 is displayed.
#6453
1 0 0 The language 5 is displayed.
1 0 1 The language 6 is displayed.
1 1 0 The language 7 is displayed.
1 1 1 The language 8 is displayed.
II - 287
10. PLC Help Function
10.5 Alarm Message Display
7 6 5 4 3 2 1 0 Bit
# (6450) Data ( 0 0 0 0 0 0 * 1)
0: Alarm message invalid.
1: Alarm message valid.
Use No. 6450.
0: F type interface
1: R type interface
[Reference] #6450 corresponds to the high-order byte of the file register R7824.
II - 288
10. PLC Help Function
10.6 Operator Message Display
10.6.1 Interface
An operator message is displayed by setting the No. of the operator message table to be displayed in file
register R2560. It is cleared by setting R2560 to 0. Thus, No. 0 of the operator message table cannot be
displayed.
Display example
n R2560
Message table
0 AAA ..... A NNN… ……N dn
1 BBB ..... B
2 CCC..... C
: Class number
:
Max. of 60 characters
n NNN..... N
n+1 ABC ..... Z
n+2 A12 ...... B Contents of specified data register.
(Data register D0 cannot be used.)
Max. of 60 characters
As with alarm messages, the contents of the data register specified for the class No. display in operator
message preparation are also displayed when creating operator message.
(Note 1) The class No. display is updated when the contents of file register R2560 change. It is not updated
if only the contents of the specified data register (Dn) change.
To change the class No. display only, the contents of R2560 must be cleared to 0. If the contents of
the specified data register are 0, no class Nos. are displayed.
II - 289
10. PLC Help Function
10.6 Operator Message Display
76543210 bit
#(6450) Data (00000000)
II - 290
10. PLC Help Function
10.7 PLC Switches
II - 291
10. PLC Help Function
10.7 PLC Switches
To display the switch validity state, etc., the switch name can be highlighted. To do this, turn ON or OFF
output device Y corresponding to the switch name.
Reversing signal Y can reverse the switch ON/OFF states. When reversing signal Y is activated, the ON/OFF
state of the corresponding switch and device X is reversed.
The corresponding table of the switch No., input device X, highlight output device Y, and reversing signal Y is
listed below:
II - 292
10. PLC Help Function
10.7 PLC Switches
Character
background color
changes.
0
• •
Y684
Validity
External switch
• When setting is done on the PLC switch screen, the input device X corresponding to the specified switch
No. is turned ON or OFF to switch over the switch state.
• When reversing signal Y is turned ON from the user PLC, its corresponding input device X and the switch
state are reversed. Reversing signal Y is reset immediately after the CNC reverses the input device X and
the switch state. It is turned ON by one pulse (scan) only also in the user PLC. In either case, when output
device Y is set to ON based on the input device X state, the corresponding switch name is highlighted.
II - 293
10. PLC Help Function
10.7 PLC Switches
The following shows an example of operation of reversing signal Y from the user PLC.
(1) Two-point switch
(Example) When two opposite switches, chip conveyer manual and chip conveyer automatic, are
provided;
SET M1
X68E X68F M1 Y6CE
X68E reversing signal
RST M1
X68F Y68F
X68E
Chip conveyor automatic
SET M2
X68E X68F M2 Y6CF
X68F reversing signal
RST M2
X68E X68F
RST M1
RST M2
II - 294
10. PLC Help Function
10.7 PLC Switches
M1
(e) If switch 15 (X68E) is turned ON in state
(d), Y68F turns OFF, Y6CF turns ON,
and M2 turns OFF.
M2
(f) (f) Y6CF has turned ON, so X68F is reversed
(OFF).
Y6CE
(g) Y6CF turns OFF, and Y68E and M1 turns
One scan width ON again from the X68F OFF and X68E
Y6CF ON state.
II - 295
10. PLC Help Function
10.7 PLC Switches
SET M3
SET M4
SET M5
RST M4
RST M5
II - 296
10. PLC Help Function
10.7 PLC Switches
X14 X683
SET M8
RST M9
X14 X683
SET M9
RST M8
X14 X683 M8
PLS M6
RST M8
X14 X683 M9
PLS M7
RST M9
M6 Y6C3
M7
X683 Y683
Under sequence control in the above example, the switch marks on the PLC switch screen can be
operated from both external and PLC switches.
(Example 2) When an external switch (XC) that inhibits a PLC switch handle interrupt is provided;
X684 XC Y684
X684 XC
PLS M10
M10 Y6C4
Under sequence control in the above example, when the external switch (XC) is ON, the PLC switch
for a handle interrupt cannot be turned ON.
II - 297
10. PLC Help Function
10.8 Load Meter Display
10.8.1 Interface
If Spindle/Standby is not displayed, two load meters are displayed using the four-line area for the
spindle/standby and load meter. If Spindle/Standby is displayed, one load meter is displayed using the
two-line area for the load meter.
Maximum value:
Z Load
60%
R2521,R2523 F E D C OA 9 8 7 6 5 4 3 2 1 0
contents
(a) Length of entire bar graph
(Maximum value: 30 (decimal))
(b) Length of gray section of bar
Load meter display processing
valid The difference of (a) and (b) is the length
of the red section
II - 298
10. PLC Help Function
10.8 Load Meter Display
II - 299
10. PLC Help Function
10.8 Load Meter Display
When the detail of R377 is "0" (detailed explanation is given later), the name of load meter is displayed by
describing the following messages
Line Message Detail
1 ;M,2,0, spindle load $1 First Name (Max. 10 characters)
2 ;M,2,0, (Not used)
3 ;M,2,0,******% Character string displayed on the right of numerical value
(Max. 4 characters) (Note 1)
4 ;M,2,0, (Not used) For 1st
part
5 ;M,2,0, Z-axis load $1 Second Name (Max. 10 characters)
system
6 ;M,2,0, (Not used)
7 ;M,2,0,******% Character string displayed on the right of numerical value
(Max. 4 characters) (Note 1)
8 ;M,2,0, (Not used)
(Note 1) Setting of the character string displayed on the right of numerical value:
Of the data set as character string, only four characters, or 7th to 10th characters, are displayed
on the screen.
The 1st to 6th characters will be ignored.
To have "%" displayed next to a numerical value, character string must be set as "******%". (This
will be the same even if the 1st to 6th characters are the characters other than "*".)
II - 300
10. PLC Help Function
10.8 Load Meter Display
II - 301
11. Appendix
11.1 Example of Faulty Circuit
11. Appendix
X1 Y10 X1 Y10
X2 Y11 X2 X3 X4
Necessity
X3 X4 X1 X2 Y11
X3 X4
0 0
0 1
RET RET
II - 302
III PERIPHERAL DEVELOPMENT ENVIRONMENT
1. Outline
1. Outline
This CNC supports the user PLC development environment which uses the Mitsubishi integrated FA software
MELSOFT Series (GX Developer), which is the PLC development tool for the Mitsubishi PLC MELSEC
Series.
This manual explains user PLC development environment using GX Developer, mainly usage specific to
MITSUBISHI CNC.
III - 1
1. Outline
1.1 Software Configuration
III - 2
1. Outline
1.2 Operating Environment
Item Description
Computer unit PC-9800 Series *1, or personal computer running Windows
Performance CPU Refer to the following "Performance required for basic software and
Required personal computer"
memory
Hard disk area 150MB or more
Disk drive CD-ROM disk drive
3.5 inch floppy disk drive *2
Display 800 × 600 pixel or more resolution
Communication interface RS-232C port
Basic software *3 Microsoft Windows 95 operating system
Microsoft Windows 98 operating system
Microsoft Windows Millennium Edition operating system
Microsoft WindowsNT Workstation 4.0 operating system
Microsoft Windows 2000 Professional operating system
Microsoft Windows XP Professional operating system
Microsoft Windows XP Home Edition operating system
*1: The PC-9800 Series (excluding PC98-NX) is not compatible with Windows Me, Windows 2000
Professional, Windows XP Professional or Windows XP Home Edition.
*2: Required for GX Developer Version 6 or earlier (to provide protection by FLD).
*3: When the basic software of the language except for English, contact MITSUBISHI.
III - 3
2. GX Developer Functions Supported by MITSUBISHI CNC
2.1 Function Support Conditions (General Section)
List of general section functions (1) : Possible, : Limitedly possible, U : Not possible
Program type Support Remarks
Ladder
List
SFC U
MELSAP-L U
Function block U
III - 4
2. GX Developer Functions Supported by MITSUBISHI CNC
2.1 Function Support Conditions (General Section)
List of general section functions (2) : Possible, : Limitedly possible, U : Not possible
Function Menu Sub menu Support Remarks
(Project) Macro Registration macros
Macro utilize
Delete macros
Macro reference path
Printer setup
Print
Start new GX Developer
session
Exit GX Developer
Edit Undo
Restore after ladder
conversion
Cut
Copy
Paste
Insert line
Delete line
Insert row
Delete row
Insert NOP batch
Delete NOP batch
Draw line
Delete line
Change TC setting
Read mode
Write mode
Ladder symbol Open contact
Close contact
Open branch
Close branch
Coil
Application instruction
Vertical line
Horizontal line
Delete vertical line
Delete horizontal line
Rising pulse
Falling pulse
When
Rising pulse open branch expanding
Falling pulse close branch PLC
Invert operation results instruction
mode
Convert operation results to rising pulse
Convert operation results to falling pulse
Documentation Comment
Statement
Note
Statement/Note block edit
III - 5
2. GX Developer Functions Supported by MITSUBISHI CNC
2.1 Function Support Conditions (General Section)
List of general section functions (3) : Possible, : Limitedly possible, U : Not possible
Function Menu Sub menu Support Remarks
Find/Replace Find device
Find instruction
Find step no.
Find character string
Find contact or coil
Replace device
Replace instruction
Change open/close contact
Replace character string
Change module start address
Replace statement/note type
Cross reference list
List of used devices
Convert Convert
Convert (All programs being
edited)
Convert (Online change) U
View Comment
Statement
Note
Alias
Macro instruction format display
Comment format 4*8 characters
3*5 characters
Alias format display Replace device name and display
Arrange with device and display
Toolbar
Status bar
Zoom 50%
75%
100%
150%
Specify
Auto
Project data list
Instruction list
Set the contact 9 contacts
11 contacts
Elapsed time U
Online Refer to "List of on-line section Refer to "2.2 Function Support
functions" Conditions (Online Section)"
Diagnostics PLC diagnostics U
MELSECNET(II)/10/H
U
diagnostics
Ethernet diagnostics U
CC-Link/CC-Link/LT U
System monitor U
Online module change U
III - 6
2. GX Developer Functions Supported by MITSUBISHI CNC
2.1 Function Support Conditions (General Section)
List of general section functions (4) : Possible, : Limitedly possible, U : Not possible
Function Menu Sub menu Support Remarks
Tools Check program
Merge data
Check parameter U
Transfer ROM Read U
Write U
Verify U
Write to file U
Delete unused comments
Clear all parameters U
IC memory card Read IC memory card U
Write IC memory card U
Read image data U
Write image data U
Start ladder logic test U
Set TEL data Connection U
Disconnection U
TEL data U
AT command U
Call book U
Intelligent function utility Utility list U
Customize keys
Change display color
Options Limited
partly
Create start-up setting file
Window Cascade
Tile vertically
Tile horizontally
Arrange icons
Close all windows
Help CPU error U
Special relay/register U
Key operation list
Product information
Connect to MELFANSweb
III - 7
2. GX Developer Functions Supported by MITSUBISHI CNC
2.2 Function Support Conditions (Online Section)
List of online section functions (1) : Possible, : Limitedly possible, U : Not possible
Menu Sub menu Detailed function Support Remarks
Transfer PC side I/F
setup PLC side I/F Only for
QnACPU
Other station U
Network route U
Co-existence network route U
Read from Target memory
PLC Title
File selection
Device data U
Program U
Common U
Local U
Refresh view
Free space volume
Create title U
Write to PLC Target memory
Title
File selection
Device data U
Program U
Common U
Local U
Free space volume
Create title U
Verify with Target memory
PLC Title
File selection
Program U
Refresh view
Free space volume
Create title U
Write to PLC Write the program memory to
U
(Flash ROM) ROM
Write to PLC (Flash ROM) U
Delete PLC Target memory
data Title
File selection
Refresh view
Free space volume
Create title U
Change PLC
data U
attributes
PLC user Read PLC user data U
data Write PLC user data U
Delete PLC user data U
III - 8
2. GX Developer Functions Supported by MITSUBISHI CNC
2.2 Function Support Conditions (Online Section)
List of online section functions (2) : Possible, : Limitedly possible, U : Not possible
Menu Sub menu Detailed function Support Remarks
Monitor Monitor mode/Start/Stop ON/OFF state
Scan time display
CPU state display
Monitor [Write mode] U
Start monitor [All windows]
Stop monitor [All windows]
Change current value monitor
[Decimal]
Change current value monitor
[Hexadecimal]
Local device monitor U
Device batch Device
Connect
Coil
Setting value
Current value
Monitor format : Bit & word
Monitor format : Bit
Monitor format : word
Display : 16bit integer
Display : 32bit integer
Display : Real number U
Display : ASCII character U
Value : DEC
Value : HEX
T/C set value Reference program
Device test
Entry data monitor Device
ON/OFF/Current
Setting value
Connect
Coil
Display : 16bit integer
Display : 32bit integer
Display : Real number U
Display : ASCII character U
Value : DEC
Value : HEX
T/C setting value, Local label
Reference program
Device test
Buffer memory batch U
Monitor condition setup Device
Step No.
Monitor stop condition setup Device
Step No.
Program monitor list U
Interrupt program monitor list U
Scan time measurement U
Entry ladder monitor
Delete all entry ladder
III - 9
2. GX Developer Functions Supported by MITSUBISHI CNC
2.2 Function Support Conditions (Online Section)
List of online section functions (3) : Possible, : Limitedly possible, U : Not possible
Menu Sub menu Detailed function Support Remarks
Debug Device test FORCE ON
FORCE OFF
Toggle force
Device
Forced input output registration/
U
cancellation
Buffer memory U
Debug U
Skip execution U
Partial execution U
Step execution U
Trace Sampling trace Wizard setting/execution
Individual setting/execution
Trace data storage destination U Cannot
select
No. of traces Setting
range:
1 to 8192
Trigger position
Trace additional information U
Trace point setup Interval,
step No.
not
possible
Trigger point setup STRA
instruction,
step No.
not
possible
Device point setup Limit to
device
type/No. of
points
Trace operation
Trace status
Trace result
CSV file creation
Trace settings file operation
Trace settings PLC operation
Data retention at power OFF U
Remote PLC status
operation RUN
STOP
PAUSE U
Latch clear U
STEP-RUN U
Reset U
Operation during RUN U
Specify execution destination U
III - 10
2. GX Developer Functions Supported by MITSUBISHI CNC
2.2 Function Support Conditions (Online Section)
III - 11
3. Preparation
3.1 Installing the Tools
3. Preparation
Between the IBM PC/AT compatible personal computer that uses GX Developer and the CNC controller, use
an RS-232C serial cable equivalent to the one shown below in the RS-232C connection diagram.
[Note] The cables given in the connection diagrams of the GX Developer Operating Manual cannot be used.
Personal
NC side
computer side
(25-pin D-SUB)
(9-pin D-SUB)
Cable
Pin Pin
Signal name connection and Signal name
No. No.
signal direction
CD 8 1 DC
SD 2 2 RD
RD 3 3 SD
DR (DSR) 6 4 ER (DTR)
SG 7 5 SG
ER (DTR) 20 6 DR (DSR)
CS (CTS) 5 7 RS (RTS)
RS (RTS) 4 8 CS (CTS)
22 9 RI
* The above shows a general RS-CS method connection format.
* The pin Nos. of dotted lines are not used.
III - 12
3. Preparation
3.2 Preparation for Serial (RS-232C) Communication
III - 13
3. Preparation
3.3 Preparation for Ethernet Communication
Example given here is the case where "192.168.200.1" is set as the initial value after SRAM clear.
LAN1
LAN
III - 14
3. Preparation
3.3 Preparation for Ethernet Communication
• TCP protocol: Connection type used with typical networks. The communication amount is high so the
speed is not as fast, but the reliability is high. (A resend request is made when there is a
lapse in communication.)
• UDP protocol: Connection-less type suitable for closed networks such as small-scale LAN. The
reliability is not as high, but the speed is fast. (A resend request is not made when there
is a lapse in communication.)
Perform the following operation with GX Developer to start the setting screen.
[Online]→[Transfer Setup]
Set the following items in order. Leave the other items unchanged from the initial values.
Normally use connection setting example 1 (using TCP protocol) for setting.
III - 15
4. Common Items
4.1 Precautions before Development
4. Common Items
III - 16
4. Common Items
4.2 NC-related Parameters
7 6 5 4 3 2 1 0
# (6451) Data (0 0 1 0 0 0 0 0)
[Reference] #6451 corresponds to the low side of the file register R7825.
Bit 5 = 0
The serial port is not used for communication with GX Developer.
(When the serial port is used for another function)
Bit 5 = 1
The serial port is used for communication with GX Developer.
III - 17
4. Common Items
4.3 PLC Data Storage Areas
Standard
Control information
The PLC data transferred from GX Developer or PLC onboard is executed with the following path.
(1) At power ON
The data is transferred from the internal F-ROM to the PLC processor execution area via the temporary
memory D-RAM, and is then executed.
PLC onboard
Conversion
III - 18
4. Common Items
4.3 PLC Data Storage Areas
The free space in the selected area will appear when the "Free space volume" button is pressed.
"Largest continuous volume" and "Total free space volume" have the following meanings.
"Largest continuous volume" : Free space in sequence program storage area
"Total free space volume" : Free space in sequence program storage area + other file storage
areas
"Total free space volume" - "Largest continuous volume":
Free space in file storage areas other than sequence program
storage area
III - 19
4. Common Items
4.3 PLC Data Storage Areas
The following table indicates the relationships between the [Target memory] items and storage areas.
Meaning in
Target memory Title indication Free area indication
M700 series
Largest continuous volume:
Free space in sequence
Internal RAM/device Temporary memory TEMPORARY STORAGE
program storage area
memory D-RAM AREA
Total free space volume:
Total free space
IC memory card A Execution area size
LAD.EXEC.SIZE AREA Not used (insignificant value)
(RAM) confirmation
Largest continuous volume:
Free space in sequence
IC memory card A
Internal F-ROM FLASH ROM AREA program storage area
(RAM)
Total free space volume:
Total free space
IC memory card B Not used
None
(RAM) (cannot be selected)
IC memory card B Not used
None
(RAM) (cannot be selected)
III - 20
4. Common Items
4.4 File Name
4.4.1 File Name Rule for Sequence Program, Parameter, and Device Comment
When storing data with GX Developer or PLC onboard, the data type is identified with the file name. Up to
8 one-byte alphanumeric characters (excluding the extension), hyphen (-) and underline (_) can be used
to the file name. The extension is automatically attached and expresses classification of the file.
Note that the first character may be reserved for expressing the data type.
III - 21
4. Common Items
4.4 File Name
(Method 1) Specify with 3 bits of bit selection parameter #6453 bit 0 to 2. (Language selection method
using PLC alone)
(Method 2) Specify with display language selection parameter. (Base specifications parameter #1043)
(Method linked with language selection on the setting and display screen)
(Method 2) M N N x x x x x . W P G
Arbitrary character string 5 characters
Number (2 digits)
Reserved character
Alphanumeric characters, hyphen (-) and underline (_) can be used for the arbitrary character string. The
extension is automatically attached and expresses classification of the file.
Note that the first character may be reserved for expressing the data type.
Specify which method is valid with the name of the message file to be stored.
If the file with condition 1 and 2 exist together, the method 1 will be valid.
(Condition 1) Method 1 is valid when the first two characters of the file name is "M + 1-digit number".
(Condition 2) Method 2 is valid when the first three characters of the file name is "M + 2-digit number"
(1) Method 1
Language is specified with bit 3 of the bit selection parameter #6453 bit 0 to 2, and the No. corresponds
to the No. used in message file name.
List of message file name (Method 1)
Data Bit selection Storage
parameter Data type File name Remarks
class #6453 bit0-2 quantity
0 1st language M1Xxxxxx.WPG
It is not possible to store
1 2nd language M2Xxxxxx.WPG
multiple files having the same
2 3rd language M3Xxxxxx.WPG
language Nos. even if their
Message 3 4th language M4Xxxxxx.WPG One for each
names are different.
(Method 1) 4 5th language M5Xxxxxx.WPG language A message confirming
5 6th language M6Xxxxxx.WPG overwriting the same language
6 7th language M7Xxxxxx.WPG No. is displayed.
7 8th language M8Xxxxxx.WPG
* "X xxxxx" part of a file name consists of up to 6 arbitrary alphanumerical characters including hyphen (-) and
underline (_). Note that however, the third character "X" has to be other than numerical character. (To avoid
confusion with method 2.)
III - 22
4. Common Items
4.4 File Name
(2) Method 2
Language is specified with the language parameter #1043 on the setting and display screen, and the No.
corresponds to the 2-digit No. used in message file name.
When no corresponding message file for a certain language parameter is stored, an English language
display file (M00xxxxx.WPG) is referred to as an alternative file. Thus, message data file for the English
language display must be stored.
(3) Precautions
• Even if the file is made with the conventional specifications method 1, when the third character of the
file name is a numerical character, it may be identified as method 2 (language selection parameter.
(Example) "M1720V02.WPG", "M750MESS.WPG", "M65S-MES.WPG", etc.
• Files having the same No. and different arbitrary names are identified as the same files and will be
overwritten.
(Example) "M1TEST.WPG" and "M1JAPAN.WPG", "M00ENG01.WPG" and "M00ENG02.WPG", etc.
• Files having the same arbitrary name ("xxxxx" part) and different method types are not identified as the
same files and will not be overwritten. If method 1 and 2 exist together, method 1 will be valid.
(Example) "M1TEST.WPG" and "M01TEST.WPG", "M1JAPAN.WPG" and "M01JAPAN.WPG", etc.
• Files that are not applied to condition 1 and 2 are not identified as a message file. They are identified as
a sequence program (ladder), instead.
(Example) "M0TEST.WPG", "M9MESS.WPG", "M0-1TEST.WPG", "M-01JPN.WPG",
"MM00ENG.WPG", etc.
III - 23
4. Common Items
4.5 Creating a Project
4.5.1 Project
Project is a collection of sequence program, device comment, PLC message data and parameters. Usually,
data is controlled by the project level per machine type or version.
Project
Sequence program
Sequence program
Device comment
Device comment
Parameter
Item Details
Sequence program Sequence program for MITSUBISHI CNC (User PLC)
PLC message data This defines PLC messages such as alarm message and PLC switch.
This is the comment for a sequence program device.
Device comment There are "common comment" which is common for a project and "comment
by program" which is particular for each program.
Parameter This sets the device range and execution order of the sequence program.
III - 24
4. Common Items
4.5 Creating a Project
(1)
(2)
(3)
(4)
III - 25
4. Common Items
4.6 Setting the Parameters
Tool bar
PLC parameter
III - 26
4. Common Items
4.6 Setting the Parameters
[Caution] An error will occur if the sequence program is downloaded to the CNC controller without
completing this operation.
Set the value for the number of device points on the following screen, and then click on [End].
Internal relay M : Change from [8K] to [10K]
Retentive timer ST : Change from [0K] to [64] ([NOTE] K is not added.)
Change 10K
Change 64
[Note] If a non-designated value is set, an error will occur when downloading to the CNC controller.
III - 27
4. Common Items
4.6 Setting the Parameters
[Note] The default value will be used for the number of common pointer points if this operation is not
completed.
Set the "Common pointer No." value on the following screen, and then click on [End].
III - 28
4. Common Items
4.6 Setting the Parameters
[Caution] If this operation is not completed when using the multi-program method, an error will occur when
RUN is executed in the sequence program.
Select the sequence program name to be registered for execution from the program list on the left of the
following screen, and then press the "Insert" button. Select the execution mode from the registration
program list on the right side. After registering all sequence programs to be executed, click on [End].
III - 29
4. Common Items
4.6 Setting the Parameters
4.6.5 Writing and Reading Parameters to and from the CNC Controller
When creating the sequence programs with the multi-program method, the parameter file must be written to
the CNC controller. The parameter file can also be read from the CNC controller and used with GX
Developer.
The operation methods are the same as reading and writing the sequence programs.
Perform the following operation from GX Developer to start the operation screen.
On the following screen, choose the parameter [PLC/Network] file to be written from the [File selection] tab
and click [Execute].
III - 30
4. Common Items
4.7 Starting/Stopping the PLC of the CNC Controller
On the following screen, set "STOP" or "RUN" in the [PLC] part under [Operation] and click [Execute]. The
current status is displayed in [PLC status] under [Connection target information].
The operation is completed when the following dialog appears. Click [OK]. The status after completion
appears in [PLC status] on the remote operation screen displayed behind. If the status does not change,
check whether an alarm is displayed or not on the CNC controller side.
III - 31
4. Common Items
4.8 Keyword Registration
Ethernet
Personal
パソコン Register Cancel Disable CNC
CNC
computer
(a) RS-232C PLCcontrol
PLC
(a)
GX-
GX Developer
F-ROM
F-
CF Card
キーワード
Keyword
バック PLCPLCdata
Backup キーワード
Keyword
Project data data データ
プロジェクトデータ アップ PLC
Ladders PLC data
・ラダー、コメント
Comments データ データ
パラメータ
Parameters
Disable
((b) PLC
PLC onboard
オンボード
edit function
Copied to other CNCs 編集機能
III - 32
4. Common Items
4.8 Keyword Registration
Table 4.8.1 List of file names excluded from the target of keyword protection
File name Storage
Data class Data type
: 8 + 3(extension name) characters quantity
"U$" in the arbitrary character string
H + [Arbitrary character
High-speed process sets off the keyword protection
string(7)]. W P G
Ex) "HxxxxxU$.WPG”
Sequence Total 32
1 Main process "U$" in the arbitrary character string
program comments
Initialization process [Arbitrary character sets off the keyword protection
string(8)].WPG Ex) "U$xxxxxx.WPG"
Standby process
Ex) "xxxU$xxx.WPG"
PLC parameters
2 Parameter PARAM.WPA (fixed) 1 parameter
Network parameters
Common comment COMMENT.WCD (fixed)
Device "U$" in the arbitrary character string Total 10
3 Comment for each [Arbitrary character
comment sets off the keyword protection comments
program string].WCD
Ex) "U$xxxxxx.WCD"
Language selection M1xxxxxx.WPG "U$" in the arbitrary character string
method using PLC : sets off the keyword protection One for each
alone M8xxxxxx.WPG Ex) "MnxxxxU$.WPG" language
4 PLC message
Method linked with M00xxxxx.WPG "U$" in the arbitrary character string Total 8
language selection on : sets off the keyword protection languages
the screen) M99xxxxx.WPG Ex) "MnnU$xxx.WPG"
"Arbitrary character string" means a character string consisted of up to 8 one-byte alphanumeric characters, hyphen (-) and underline (_).
4.8.5 Compatibility and Precautions when Using the System with No Keyword Support
The data before the keyword registration is compatible with the old system. The data after the keyword
registration has the following limitations and precautions.
(1) The backup data after the keyword registration is not recognized as PLC data at the restoration to the old
system. An error occurs when the data is restored.
(2) If the PLC data stored in F-ROM has originally been created in the old system, the data needs to be
formatted before the first keyword registration.
(3) When a keyword has been registered, the data is secured in various ways. If the data is changed by any
editor and the like, neither the registered keyword can be disabled nor is the data recognized as PLC
data.
(4) If the registered keyword is forgotten, reformatting the data is the only way to recover the keyword.
III - 33
4. Common Items
4.8 Keyword Registration
(1)
(2)
(3)
III - 34
4. Common Items
4.8 Keyword Registration
(1) (2)
(2)
(1)
III - 35
4. Common Items
4.8 Keyword Registration
(2)
(1)
III - 36
5. Sequence Program Development
5.1 Development Procedures
Ladder list
for this CNC
zzzz.TXT
List to sequence program
conversion GX Converter
(1) Creation
The sequence program created for the old model is output in a list format.
(2) Conversion
The data is converted into a sequence program (list format) for this CNC using CNVM6 (PLC data
integrated conversion tool). Using GX Converter (data conversion software package), the list format
program is converted into the GX Developer data.
(3) Editing/transfer
The resultant program can be handled like a newly created sequence program.
III - 37
5. Sequence Program Development
5.2 Writing the Sequence Program to the CNC Controller
On the following screen, choose the sequence program file to be written from the [File selection] tab and click
[Execute].
You can command RUN/STOP of the PLC using [Remote operation] under [Related functions].
III - 38
5. Sequence Program Development
5.2 Writing the Sequence Program to the CNC Controller
The following dialog appears on the GX Developer screen when a conversion error occurs.
If you execute RUN the PLC as-is, an alarm occurs on the CNC side and the PLC does not RUN.
If the ladder file resulting in a conversion error is selected with the [File Selection] tab on the [Read from PLC]
screen, the file name and title will change and be displayed as shown below.
If this ladder file is read out to the GX Developer, it will be stored under the file name "ERRLAD-0".
! CAUTION
! Do not read out a ladder file resulting in a conversion error to the GX Developer and use it.
It may contain unexpected data, and result in incorrect operations.
III - 39
5. Sequence Program Development
5.2 Writing the Sequence Program to the CNC Controller
The PLC verification function can be used to confirm the error step. For details of the PLC verification function,
refer to "5.4 Verifying the Sequence Programs".
Verify source: Select the ladder file (source file) on the GX Developer side
Verify dest.: Select the file resulting in an error "ERRLAD-0" on the CNC controller side
When PLC verification is executed, the mismatching details will appear as shown in the following example.
The NOP instruction section in the CNC controller side is the step with the conversion error. Double-click the
mismatch to display and to edit the corresponding part of the GX Developer side.
<Memory> indicates the GX Developer side, and <PLC> the CNC controller side.
III - 40
5. Sequence Program Development
5.2 Writing the Sequence Program to the CNC Controller
III - 41
5. Sequence Program Development
5.2 Writing the Sequence Program to the CNC Controller
When [Target memory] "IC memory card A(RAM)" is selected with "Read from PLC" operation, the file
name and title are changed and displayed as follows.
(a) indicates the settings of target memory. (Regular reading from PLC is executed with "internal
RAM/device memory".)
(b) indicates the number of steps at execution when the title section is replaced.
An alphabet before the number of steps at execution represents the state of parameter designation.
I: Initial H: High speed M: Medium speed W: Wait
-: No parameters or parameters not stored.
(c) indicates the total number of steps at execution. (Total of "initial", "high speed", "medium speed" and
"wait to be executed.)
The denominator indicates the maximum size of the execution area.
When there is no parameter, the single program method is applied and "TOTAL" will not be
displayed.
(a)
(b)
(c)
In the screen example above, the sequence program size must be adjusted so that the total number of
steps at execution of (c) (43091) is smaller than the maximum size of the denominator's execution area
(43008).
III - 42
5. Sequence Program Development
5.3 Reading the Sequence Program from the CNC Controller
On the following screen, choose the sequence program file to be read from the [File selection] tab, and click
[Execute].
If a sequence program file with the same name already exists in the GX Developer side, following dialogue
will appear.
[Note] Choosing [Yes (Y)] in the dialogue will overwrite the GX Developer side sequence program file.
The file before overwriting will be erased.
Confirm the file enough before choosing [Yes (Y)].
III - 43
5. Sequence Program Development
5.3 Reading the Sequence Program from the CNC Controller
The [Read from PLC] screen can also be used as a CNC controller side file listing function. Move the scroll
bar of the [File selection] tab to the right to display the write date and size of each file. Click [Free space
volume] to display the free area of the target memory.
III - 44
5. Sequence Program Development
5.4 Verifying the Sequence Programs
If verification mismatches occur, the following mismatch screen appears. Double-click the mismatch to
display the corresponding part of the GX Developer side file.
III - 45
5. Sequence Program Development
5.5 Using Sequence Programs from Older Models
III - 46
5. Sequence Program Development
5.5 Using Sequence Programs from Older Models
III - 47
5. Sequence Program Development
5.5 Using Sequence Programs from Older Models
(6) Completion
The setting is complete when the following completed dialog appears after the converting dialog. Click
[OK].
III - 48
5. Sequence Program Development
5.6 Monitoring the Sequence Program
(1) Display the sequence program to be monitored and move to the circuit part to be monitored.
[Caution] If the sequence program being RUN with CNC controller differs from the sequence program
displayed on GX Developer, monitoring will not result in an error but will appear to continue
normally.
Confirm that the sequence program on the CNC controller side and GX Developer are the
same before starting monitoring.
III - 49
5. Sequence Program Development
5.7 Executing Sampling Trace on Device
Bit device name Trace point position (Number of traces when trigger position is "0") Bit device current value
Word device name Trace point position (Number of traces when trigger position is "0".) Word device current value
No. of traces, trace condition, trigger condition, and No. of traces after trigger can be set as trace setting.
Trace is executed when the trace condition is set.
After the trigger condition is set, execute "No. of traces after trigger" only and end sampling. Sampling the
status before and after the trigger is set is also possible.
Bit device
III - 50
5. Sequence Program Development
5.7 Executing Sampling Trace on Device
Special relay
IBM PC/AT compatible CNC controller SM800 to SM805
personal computer (2) Write the setting (3) Display the
execution status
(1) Trace setting
Trace setting (3) Execute the trace
User ladder
GX Developer
Trace data
III - 51
5. Sequence Program Development
5.7 Executing Sampling Trace on Device
[Trace data size (byte)] = [Size required for one trace (byte)] x [Number of traces]
Size required for one trace is calculated from word device points and bit device points of the trace device and
the size required for one trace of each device.
III - 52
5. Sequence Program Development
5.7 Executing Sampling Trace on Device
• When trace point is set only with "Step No.", the operation will be same as when trace point is set to "Each
scan".
• When trace point is set with AND condition of "Step No." and "Device", "Step No." setting will be ignored and
only "Device" setting will be effective.
• When only devices that are not corresponding with MITSUBISHI CNC are set for "Device", operation will be
same as when trace point is set to "Each scan".
Operations at the time of trace point details setting are as shown in the table below.
III - 53
5. Sequence Program Development
5.7 Executing Sampling Trace on Device
• When trigger point is set only with "Step No.", the operation will be same as when trigger point is set to "At
the time of trigger operation from GX Developer".
• When trigger point is set with AND condition of "Step No." and "Device", "Step No." setting will be ignored
and only "Device" setting will be effective.
• When only devices that are not corresponding with MITSUBISHI CNC are set for "Device", operation will be
same as when trigger point is set to "At the time of trigger operation from GX Developer".
Operations at the time of trigger point details setting are as shown in the table below.
III - 54
5. Sequence Program Development
5.7 Executing Sampling Trace on Device
SM800
(Sampling trace preparation)
SM801
(Sampling trace starts)
SM802
(In sampling trace execution)
SM803
(Sampling trace trigger)
SM804
(After sampling trigger)
SM805
(End of sampling trace)
SM800
(Sampling trace preparation)
SM801
(Start sampling trace)
SM802
(In sampling trace execution)
SM803
(Sampling trace trigger)
SM804
(After sampling trigger)
SM805
(End of sampling trace)
III - 55
5. Sequence Program Development
5.7 Executing Sampling Trace on Device
Specifications list for the devices that are related with sampling trace function
No. Name Details
OFF: Preparation not completed
SM800 Sampling trace preparation
ON: Preparation completed
OFF: Cancel
SM801 Starts sampling trace
ON: Start
OFF: Cancel
SM802 In sampling trace execution
ON: Start
OFF→ON
SM803 Sampling trace trigger
: Trigger execution
OFF: Not after trigger
SM804 After sampling trace trigger
ON: After trigger
OFF: Not completed
SM805 End of sampling trace
ON: Completed
III - 56
5. Sequence Program Development
5.7 Executing Sampling Trace on Device
(3)
(4)
(1) Set the sampling trace execution method. Select either "wizard setting/execution" method or "Individual
setting/execution" method. Necessary setting items are set in an order by using the wizard
setting/execution method.
(2) This is the menu when the wizard setting/execution method is applied. Sampling trace execution method
is valid when wizard setting/execution is applied. Click the button in the order of "Trace setting...", "Trace
execution..." and "Trace result...".
(3) This is the menu when the individual setting/execution method is applied. Sampling trace execution
method is valid when individual setting/execution is applied. Click the button in the order of "Trace
condition setting", "Trace data setting" and "Trace execution". Setting details are same as when wizard
setting/execution is applied.
(4) Display the details of setting for the trace currently valid.
(5) This is the menu for trace setting file operation. Saving of the currently valid trace settings in the local area
is possible, as well as reading and deleting of the saved file.
(6) This is the menu for trace setting PC operation. Currently valid trace settings can be written into CNC, and
also the trace settings currently set in CNC can be read out.
(7) The [Close] button closes the "Sampling trace" screen. Tracing will continue even if the screen is closed
during trace execution.
III - 57
5. Sequence Program Development
5.7 Executing Sampling Trace on Device
III - 58
5. Sequence Program Development
5.7 Executing Sampling Trace on Device
Press Trace data Trace Trace Trace Trace Trigger Device End of
[Trace storage execution count additional point point setting trace
setting] setting method setting informatio setting setting screen setting
button screen setting screen n setting screen screen
screen screen
Details setting
At wizard setting/execution – Sampling trace setting wizard - Trace data (Setting + result) storage setting screen
[Note]
• Since "Target memory" is DRAM integrated in CNC controller, trace data (setting+result) will be deleted
when the power is turned OFF.
• Trace data (setting+result) that can be saved on CNC controller is only one. Trace data result is
overwritten every [Trace execution] execution.
• When file name is changed, the overwriting confirmation dialogue may not be dispalyed at PC write
operation.
• When file name has been changed, trace result may not be displayed with [Trace result]. Read the data
out from PLC, then click [Trace result] again.
III - 59
5. Sequence Program Development
5.7 Executing Sampling Trace on Device
At wizard setting/execution – Sampling trace setting wizard – Trace execution method setting screen
At wizard setting/execution – Sampling trace setting wizard – No. of traces setting screen
III - 60
5. Sequence Program Development
5.7 Executing Sampling Trace on Device
At wizard setting/execution – Sampling trace setting wizard – Trace additional information setting screen
At wizard setting/execution – Sampling trace setting wizard – Trace point setting screen
[Note]
Only "Each scan" and "Detail" are valid for trace point setting.
When "Interval" is set, the movement will be the same as when "Each scan" is set.
III - 61
5. Sequence Program Development
5.7 Executing Sampling Trace on Device
At wizard setting/execution – Sampling trace setting wizard – Trace point setup – Details setting screen
[Note]
Only "Device" is valid for trace point setting.
Do not set "Step No.".
Refer to "5.7.2 Basic Specifications" for the devices that can be set.
III - 62
5. Sequence Program Development
5.7 Executing Sampling Trace on Device
"Detail":
Check trigger conditions after scanning of the main process. The data at the time of trigger condition
establishment will be the start point (0 point). (Refer to [II. PROGRAMMING EXPLANATION 2.4.1
Number and Types of Registerable Programs] for explanation of 'Main process'.)
At wizard setting/execution – Sampling trace setting wizard – Trigger point setting screen
[Note]
Only "At the time of trigger operation from GX Developer" and "Detail" are valid for trigger point setting.
When "At the time of STRA instruction execution" is set, operation will be the same as when "At the time
of trigger operation from GX Developer" is set.
III - 63
5. Sequence Program Development
5.7 Executing Sampling Trace on Device
At wizard setting/execution – Sampling trace setting wizard – Trigger point setup – Details setting screen
[Note]
Only "Device" is available for trigger point "Details" setting.
Do not set "Step No.".
Refer to "5.7.2 Basic Specifications" for the devices that can be set.
At wizard setting/execution – Sampling trace setting wizard – Trigger point setting – Device setting screen
III - 64
5. Sequence Program Development
5.7 Executing Sampling Trace on Device
Status of each device under tracing can be check with [Trace result].
Display the current status by clicking [Trace result] after closing the trace execution screen by clicking
[Close]. Tracing will continue even after [Close] is clicked.
Once [Close] is clicked and display the trace execution screen again, click [Trace execution]. Since
[Trace status] is hidden at this point, click [Start monitor].
[Note]
Once trace is resumed, trace data up to the previous time will be deleted.
If resuming trace after once executing trace, end trace in the following manner.
• After trigger execution, execute trace after trigger.
• Execute "Stop trace" at [Trace operation].
• CNC power is turned OFF.
• PLC status is turned to "STOP".
[Note]
Once "Stop trace" is executed, trace cannot be resumed.
When the trace information before stop is required, save the data in CSV file with [Trace result].
If "Start trace" is executed before saving the data, the data before "Stop trace" will be deleted.
III - 65
5. Sequence Program Development
5.7 Executing Sampling Trace on Device
At wizard setting/execution – Trace execution screen – Trace status display at trace "Finished"
[Trace] within [Trace status] includes the following four display items.
• Executing: Trace is being executed.
• Suspend: Trace has been stopped.
• Execution failed: Trace is not executed.
• Finished: Trace has been completed.
III - 66
5. Sequence Program Development
5.7 Executing Sampling Trace on Device
"Count": Counts are displayed. (Trigger execution point is set as start point or 0 point)
"Time(sec.)": Time is displayed. (Head of trace data is set as standard or 0.000 sec.)
If trace interval exceeds 65 seconds, correct time will not be displayed.
"Step","Program": Not displayed.
Save the trace result data following the procedures (1) to (4) below.
(1) Click [Browse] and select the storage destination.
(2) Input the file name.
(3) Select [Device storage method].
(Refer to the Operating Manual for details on [Device storage method].)
(4) Click [Execute].
[Note]
Trace result data is overwritten per each trace execution. Always save the necessary data in CSV file.
III - 67
5. Sequence Program Development
5.7 Executing Sampling Trace on Device
Error details
No. Error definition Remedies
No applicable device for sampling trace is set with Set the applicable device for sampling trace
1 device setting. with device setting.
Error dialogue
III - 68
5. Sequence Program Development
5.7 Executing Sampling Trace on Device
Device No.1
Device No.2
Word device 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Trigger
[Trace result]
Trace result display for example 1
← The scan in which trigger has been
Count -6 -5 -4 -3 -2 -1 0 1 2 3 executed is regarded as count "0".
Trace data is retrieved when trigger
has been established. Thus, when
Device No.1 trigger establishment and trace
execution happen simultaneously,
count "0" and count "1" will be the
Device No.2 same data.
← "Interval" trace point setting is
ignored. Execute trace per scan.
Word device 1 5 6 7 8 9 10 11 11 12 13
← Word device is shown as numerical
value.
Time 0 0.007 0.014 0.021 0.028 0.035 0.042 0.042 0.049 0.056 ← Time is displayed as trace
additional information.
III - 69
5. Sequence Program Development
5.7 Executing Sampling Trace on Device
[Setting details]
Trace setting details for example 2
Setting item Setting value Setting item Setting value
Target memory IC memory card A Trigger point setting ■ At the time of STRA
File name MAIN instruction execution
Total number 6
Number after trigger 4 Device setting ■ Bit device
Trace additional information None Device No.1
Trace point setting ■ Device Device No.2
Bit device ■ Word device
Device No.1 ↑ Word device 1
Device No.1
Device No.2
Word device 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Trigger
Trigger execution
from GX Developer
[Trace result]
Trace result display for example 2
← The scan in which trigger has
Count -2 -1 0 1 2 3 been executed is regarded as
count "0".
Device No.1
← Trace is executed only for the
Device No.2
scan where device No.1 turns
Word device 1 2 4 7 8 10 12 ON from OFF.
Note that, however, the device
data for the scan when trigger
has been executed will be saved.
III - 70
5. Sequence Program Development
5.7 Executing Sampling Trace on Device
5.7.7 Precautions
(1) Sampling can be executed for the other stations on network or with serial communication connection.
Note that, however, sampling is not possible from multiple areas at the same time.
(2) Since trace conditions and trace data that have been registered in CNC controller are saved in DRAM
area, when the CNC power is turned OFF, the data will be deleted.
(3) Sampling trace is executed by connecting CNC controller and GX Developer.
(4) Trace data within CNC is deleted during trace execution. So, please be aware that the data up to previous
time will be deleted.
(5) When trace is ended before reaching the set No. of traces, such as when trigger occurs as soon as trace
is started, the shortened data will not be displayed.
<Example>
Trigger occurred at 10th trace when No. of traces is set to 2000 and No. of traces after trigger is set to 1000.
Bit device
Establishment of
Sampling starts trigger condition End of sampling
Trace result
Count -10 ••• 0 1 ••• 1000
Device No.1
Word device 1 9 10 11 12 13 14
(6) Descriptions about sampling trace in this manual are given under the assumption of GX Developer Ver.8
specifications.
Sampling trace setting wizard is not available for the version prior to GX Developer Ver.8.
Refer to the precautions for each setting item described in this manual and perform settings respectively.
(7) When the trace setting that is invalid with this CNC is performed, the setting is forcibly corrected to the
valid one within CNC controller. Refer to "5.7.4 Sampling Trace Operation Screen" for trace settings that
can be used.
(8) Status of SM800 to SM805 cannot be checked on CNC controller screen. Check the sampling trace status
with GX Developer.
III - 71
6. PLC Message Development
6.1 Development Procedure
(1) Making conversion into GX Developer data using a general text editor or spreadsheet tool and data
conversion package.
(When there is a large volume of message data and you want to control them with a commercially
available tool, for example)
III - 72
6. PLC Message Development
6.1 Development Procedure
(1) Creation
The message data is described using a general text editor. The description method and format will be
described later.
(2) Conversion
The conversion from text data to GX Developer data is carried out using the "GX Converter (data
conversion software package)".
(3) Transfer
With the GX Developer, the message data is handled as a sequence program interlinear comment, and
can also be edited.
The message data is transferred to the CNC controller using the GX Developer, in the same manner as
the sequence program.
(1) Creation
The message data is described directly from GX Developer. The message data is handled as a
sequence program interlinear comment by GX Developer. The description method and format will be
described later.
(2) Transfer
The message data is transferred from GX Developer to the CNC controller in the same manner as the
sequence program.
III - 73
6. PLC Message Development
6.2 Message Data Description Method
III - 74
6. PLC Message Development
6.2 Message Data Description Method
(1) Comment
A line with a semicolon (;) followed by a sharp (#) at the head of the line are interpreted as comments.
; # comment character string [CR]
III - 75
6. PLC Message Development
6.2 Message Data Description Method
6.2.3 Precautions
No. of characters, quantity limitations, handling of information other than settings, handling of information
other than format are described below.
When maximum number of characters is exceeded: An error will not occur, but the excessive characters
will not be displayed.
When maximum number of messages is exceeded: An error will occur when writing.
[Note] Two-byte data in the message character string is handled as two characters.
;0,1,1000,Operator Message....0123456789012345678901234567890123456789
[Note] If the message is split into two lines, an asterisk (*) cannot be used as the head character of the
second line. Use another character, such as a space, in this case.
III - 76
6. PLC Message Development
6.3 Converting Data into GX Developer Format
III - 77
6. PLC Message Development
6.3 Converting Data into GX Developer Format
III - 78
6. PLC Message Development
6.4 Entering/Editing Data using GX Developer
[View] → [Project data list], then double-click [File name you want to display].
[View] → [Statement]
III - 79
6. PLC Message Development
6.4 Entering/Editing Data using GX Developer
[View] → [Project data list], then double-click [File name you want to display].
[View] → [Ladder]
III - 80
6. PLC Message Development
6.4 Entering/Editing Data using GX Developer
III - 81
6. PLC Message Development
6.5 Writing to the CNC Controller
[Note] The message data file in which an error occurred cannot be displayed.
III - 82
6. PLC Message Development
6.5 Writing to the CNC Controller
If the message file resulting in a conversion error is selected with the [File Selection] tab on the [Read from
PLC] screen, the file name and title will change and be displayed as shown below.
If this message file is read out to the GX Developer, it will be stored under the file name "ERRMES-0".
CAUTION
Do not read out a message file resulting in a conversion error to the GX Developer and use it.
It may contain unexpected data, and result in incorrect operations.
III - 83
6. PLC Message Development
6.5 Writing to the CNC Controller
When PLC verification is executed, the mismatching details will appear as shown in the following example.
The section with the error mark in the CNC controller side is the message description section with the check
error. Double-click the mismatch to display and to edit the corresponding part of the GX Developer side.
<Memory> indicates the GX Developer side, and <PLC> the CNC controller side.
III - 84
6. PLC Message Development
6.6 Reading and Verifying from the CNC Controller
III - 85
7. Device Comment Creation
7.1 Development Procedure
Device comment
for this CNC
zzzz.TXT
Conversion
GX Converter
Sequence program
for this CNC
zzzz.WPG
III - 86
7. Device Comment Creation
7.2 Description Method for Indirect Entry
Save the above data in the CSV format. The following example shows the above data saved in the CSV
format.
III - 87
7. Device Comment Creation
7.3 Converting Comment Data into GX Developer Data
On the following screen, specify the file to be converted (cmnt_all.txt) and click [OK].
III - 88
7. Device Comment Creation
7.3 Converting Comment Data into GX Developer Data
III - 89
7. Device Comment Creation
7.3 Converting Comment Data into GX Developer Data
(5) Completion
The setting is complete when the following dialog appears. Click [OK].
III - 90
8. Troubleshooting
8.1 List of Errors During GX Developer Online Operations
8. Troubleshooting
! CAUTION
! When an error occurred at GX Developer On-line function, the error message may not explain
exactly the state in the CNC side.
Always refer to the error list.
The following table indicates the causes and remedies of the errors that can occur during online operation
with the CNC. For other errors, refer to the GX Developer Operating Manual.
III - 91
8. Troubleshooting
8.1 List of Errors During GX Developer Online Operations
III - 92
8. Troubleshooting
8.2 Confirmation of PLC Alarms on CNC Controller Side
(e)
(c)
(g)
(f)
(d)
III - 93
8. Troubleshooting
8.2 Confirmation of PLC Alarms on CNC Controller Side
(a)
(b)
(a) File name: The name of sequence program file in which error has occurred is displayed.
(b) Sequence step No.: The step No. for which an error occurred in (a) is displayed.
(a)
(b)
[Note] The displays other than (a) and (b) in (1) and (2) above have no significant meanings.
Also, depending on the error factors, (a) or (b) may not be displayed.
III - 94
8. Troubleshooting
8.2 Confirmation of PLC Alarms on CNC Controller Side
The following conditions are required to accurately display the error-generated ladder section.
• The file name and sequence program No. must be displayed in the "Error details" screen.
(In this case, no response or error dialog display will be given even if the button is clicked.)
• A project including the sequence program currently in operation in the CNC controller side must be
opened.
(Even when a project not in operation is opened, if the same program name already exists, a ladder
different from the actual error-generated ladder is displayed. So, be careful.)
• Depending on the type of error, sequence step No. does not show the error-generated ladder
accurately.
III - 95
8. Troubleshooting
8.2 Confirmation of PLC Alarms on CNC Controller Side
File name
Sub status
Step No.
Error Diagnosis display Error details
Message
1 2 code character string
III - 96
8. Troubleshooting
8.3 Initialization for PLC Data Storage Area
The setting is completed when the following dialog appears. Click [OK]. All data stored in the temporary
memory have been deleted and initialized.
III - 97
9. Procedures for Backing Up Data Such as Sequence Programs
9.1 Backup Target Data
(a)
(b)
(c)
(d)
(e)
(f)
Refer to the instruction manual for the respective model for details on the input/output screen.
III - 98
9. Procedures for Backing Up Data Such as Sequence Programs
9.2 Backup Procedures
(2) Personal computer settings (Setting "Device name", "Directory" and "File name")
Set the "Device name", "Directory" and "File name" at "B: Device".
(3) Transmission
The backup process starts when the menu key "Send A→B" is pressed.
III - 99
IV EXPLANATION OF BUILT-IN EDITING FUNCTION
1. Outline
1. Outline
This manual explains the MITSUBISHI CNC 700/70 Series PLC onboard function. (Operations related to the
PLC carried out with the CNC unit are collectively called as "onboard".)
Integration with the MELSEC Series PLC development tool (GX Developer) has been improved to enable
reading and writing of data saved in each unit.
700 Series onboard includes "Standard operation mode" and "Simple operation mode".
Standard operation mode: All the onboard functions are available.
Simple operation mode: Limited to the functions mainly related to ladder monitoring, which are designed
for routine maintenance operations.
Operation mode at the time of onboard startup can be switched between standard operation mode and
simple operation mode by changing bit selection parameter settings. Switching modes is also possible after
the onboard has been started.
IV - 1
1. Outline
List of functions
700
Function Purpose of function 70
Std Sim
Circuit monitoring
Monitor start/stop This starts or stops the monitor.
Device registration monitor This monitors the circuit and the device registration
simultaneously.
Circuit registration monitor This monitors the circuit and the arbitrary registered circuit
simultaneously.
Registered circuit all delete This deletes all circuits registered with the circuit registration
monitor.
Device test This changes the device ON/OFF state, and changes the
device value.
Monitor stop condition setting This stops the monitor when the set device or step No.
conditions are established.
Current value monitor This changes the circuit monitor device current value
changeover (10/16) between the decimal and hexadecimal display.
Circuit editing
Edit mode changeover This edits the circuit.
Line insert This inserts a line at the cursor position.
Line delete This deletes the line at the cursor position.
Copy & Paste This copies and pastes the circuit in the designated range.
Statement edit This edits the statements.
Note edit This edits the notes.
Comment edit This edits the comments.
PLC message edit This edits the PLC message.
Conversion This converts the circuit.
Undo This undoes the last edit operation.
Circuit search
Simple search This executes a simple search of contact, coil and device.
This returns to the start.
Contact coil search This searches the contact coils.
Device search This searches the devices.
Instruction search This searches the instructions.
Step No. search This searches the step Nos.
Character string search This searches the character strings.
AB contact change This changes the circuit's contact between A and B.
Device replace This replaces the devices.
TC setting value change This changes the timer and counter setting values in a batch.
IV - 2
1. Outline
700
Function Purpose of function 70
Std Sim
Circuit display
Comment display This sets whether to display a comment.
Program changeover This changes the PLC program in circuit display. (Device
comment tracking)
Data changeover This changes the PLC data to be edited.
Circuit display This sets the circuit display size and the maximum number
of contacts on one circuit line.
Zoom display This switches the circuit display size.
Compact (64%) [Displays 11 contacts in 640x480 full
screen] (70 Series: Reduction)
Reduction (80%) [Displays 9 contacts in 640x480 full
screen] (70 Series: Standard)
Standard (100%) [Displays 9 contacts in 800x600 full
screen] (70 Series: Expansion)
Expansion (120%) [Displays 11 contacts in 1024x768 full
screen]
Zoom cursor This enlarges the cursor display area at the Compact display
(70 Series: Reduction).
Comment ON/OFF This changes ON/OFF of the display for the contents set
with "Comment display".
Comment line designation This specifies the number of lines for the device comment
display between 1 to 4.
Current value monitor line This specifies whether to display the current value at
delete monitoring.
Tool
Contact coil usage list This displays the device's step No. and usage state.
Device usage list This displays the usage list in a batch for each device type.
Program check This checks the sequence program (ladder).
PLC data setting
Add This adds PLC data to the onboard editing area.
Delete This deletes PLC data from the onboard editing area.
Name change This changes the name of the PLC in the onboard editing
area.
Initial setting This initializes the data in the onboard editing area.
Device operation
Device batch monitor This monitors the devices in a batch.
Device registration monitor This monitors registered devices on a dedicated screen.
Sampling trace This executes sampling trace.
Parameters
Program setting This determines the sequence program (ladder) execution
order.
Common pointer setting This displays the common pointer head P No.
IV - 3
1. Outline
700
Function Purpose of function 70
Std Sim
NC file operation
File list This displays a list of the stored files. (execution step size is
displayed)
Open This displays the PLC data in the temporary memory at the
onboard editing area.
Manually executed; the menu is selected when needed
Automatically executed at power ON; no menu exists
Save This saves the PLC data edited on the onboard in the
temporary memory.
Manually executed; the menu is selected when needed
(execution step size is displayed)
Automatically executed at conversion; no menu exists.
Verify This verifies the PLC program in the onboard editing area
with the PLC data in the temporary memory.
ROM-Write This saves the PLC data in the temporary memory to the
ROM.
Delete This deletes the PLC data from the temporary memory.
Format This formats the temporary memory.
PLC RUN/STOP This runs or stops the PLC.
PLC VERSION UP This writes the ladders files in the external device into the
NC's temporary memory and ROM.
Disable keyword This releases the keyword that has been set to the PLC data
in NC.
External file operations
Open project This displays the PLC data in a project at the onboard.
Save project This saves the PLC data edited on the onboard in a project.
Delete project This deletes a project from the external device.
Verify project This verifies the PLC data edited on the onboard with the
PLC data in a project.
Environment setting
Operation mode changeover This changes modes between simple operation mode and
standard operation mode.
NC file operation setting This sets the settings relating to the NC file operation.
Diagnosis
PLC diagnosis This displays the error occurred during sequence program
(ladder) execution.
Menu change
Switch standard/simple menu This switches between standard and simple operation
key mode.
IV - 4
1. Outline
Corresponding table for the files handled/not handled in simple operation mode, standard operation mode
and 70 Series is shown below.
Standard operation mode Simple operation mode 70 Series
Handling Display Edit Handling Display Edit Handling Display Edit
Sequence program
(Ladder)
PLC message data
Parameter
(Note2) (Note2) (Note2) (Note2) (Note2) (Note2)
Device comment
(Note1)
(Note 1) Alphanumerical characters only
(Note 2) The available parameters are restricted to those for the program settings and the like.
IV - 5
2. Starting and Ending Onboard
2.1 Starting
2.1 Starting
Onboard starts up when F0 key is pressed on the NC.
In 700 Series, operation mode (Standard operation mode / Simple operation mode) at the time of startup can
be determined by bit1 of the bit selection #6451.
76543210 Bit
#(6451) Data ( 0 0 0 0 0 0 0 0 )
700
70
2.1.1 Startup with Standard Operation Mode Standard Simple
Initial screen
IV - 6
2. Starting and Ending Onboard
2.1 Starting
When starting up the onboard, all the files except for PLC message data (sequence program, parameter,
and device comment) will be read out from NC temporary memory and the sequence program will be
automatically displayed on the ladder monitor screen.
NC
When onboard
Temporary Simple Onboard
operation mode Sequence program is
Sequence program is active displayed on ladder
Parameter
monitor screen
Device comment
Parameter
PLC message Device comment
• When the number of stored sequence programs is one, that sequence program is displayed on the
ladder monitor.
• When the number of stored sequence program is two or more, the upper level program determined by
the parameter setting is displayed on the ladder monitor screen.
• When the device comment storage destination is specified with the standard operation mode
environment setting menu key, device comment is read out from the specified storage area.
IV - 7
2. Starting and Ending Onboard
2.1 Starting
Initial screen
When starting up the onboard, all the files except for PLC message data (sequence program, parameter,
and device comment) will be read out from NC temporary memory and the sequence program will be
automatically displayed on the ladder monitor screen.
NC
When onboard
Temporary 70 Series is Onboard
active Sequence program is
Sequence program
displayed on ladder
Parameter
monitor screen
Device comment
Parameter
PLC message Device comment
• When the number of stored sequence programs is one, that sequence program is displayed on the
ladder monitor.
• When the number of stored sequence program is two or more, the upper level program determined by
the parameter setting is displayed on the ladder monitor screen.
• If no sequence program can be read, the MAIN screen appears.
IV - 8
2. Starting and Ending Onboard
2.2 Ending
700
2.2 Ending Standard Simple
70
In 700 Series, onboard ends when the END menu key on the MAIN screen is pressed.
If there is any editing data which has not been saved in the temporary memory or external device when
ending, the "END CONFIRMATION" popup screen will open.
In 70 Series, onboard ends when the CNC power is turned OFF.
Menu corresponding to
the popup screen
This ends the onboard. Any editing data which has not been saved will be lost.
(Note 1) If NC is shut down (power turned OFF) without executing ROM-Write (700 Series/ 70 Series)
The data in the onboard editing area and the data in the NC's temporary memory will be lost when
the NC power is turned OFF. Always save this data on a ROM using ROM-Write.
(Note 2) If onboard is not ended with END menu (700 Series)
The data opened in the onboard editing area will be discarded.
If the program data is under the NC automatic update mode (LADDER screen's background color is
white), the data up to the "converted" circuit will be saved in the NC's temporary data. (However, if it
is not written to the ROM it will be lost when the NC power is turned OFF.)
If the program data is under the local editing mode (LADDER screen's background color is light
blue), the data including the "converted" circuit will be lost. (The last "save" state will be retained.)
IV - 9
2. Starting and Ending Onboard
2.3 Switching from Simple Operation Mode to Standard Operation Mode
When switching from simple operation mode to standard operation mode, PLC data in the onboard editing
area will be held as it is.
Simple operation mode Standard operation mode
Parameter Parameter
(*)
(*) Change not possible with simple (Switch with the data opened.)
operation mode
IV - 10
2. Starting and Ending Onboard
2.4 Switching from Standard Operation Mode to Simple Operation Mode
When switching from standard operation mode to simple operation mode, the state will be where the onboard
is turned OFF and ON again. All the PLC data in the onboard editing area will be discarded and automatically
reloaded from the NC temporary memory area.
Parameter Parameter
When "SWITCH SIMPLE MENU KEY" menu key is pressed, the following "END CONFIRMATION" popup
screen will be displayed.
Menus corresponding
to popup screen
This ends the onboard. Restart the onboard with the simple operation mode menu
key. Any editing data which has not been saved will be lost.
IV - 11
3. Screens
3.1 Screen Resolution
3. Screens
700
70
Standard Simple
3.1 Screen Resolution VGA only
The setting and display unit's screen resolution differs according to the NC model. Onboard is compatible
with the following two screen resolutions. This manual uses the VGA (640 x 480 pixel) screen display as an
example.
(1) VGA (640 × 480 pixels)
(2) XGA (1024 × 768 pixels)
(Note 1) 70 Series onboard is compatible with VGA only.
700
70
3.2 Types Standard Simple
The following three types of screens are displayed with the onboard.
Full screen This screen uses the full screen area.
Split screen This screen splits the full screen into two areas and displays.
Popup screen This screen is displayed over the full screen display or split screen.
70 Series have two display types; "window type" and "bar type".
700
3.3 Full Screen Display Standard Simple
70
In 700 Series
Cursor display
Title display
Scroll bar
The position
changes according
to the screen
movement.
Message display
Connected NC
confirmation
warning display
Connected NC name
Menu horizontal
movement enabled
status display
IV - 12
3. Screens
3.3 Full Screen Display
In 70 Series
Cursor display
Title display
Scroll bar
The position
changes according
to the screen
movement.
Message display
Connected NC
confirmation
warning display
Connected NC name
Menu horizontal
movement enabled
status display
IV - 13
3. Screens
3.3 Full Screen Display
(8) Menu hierarchical movement enabled status display, menu horizontal movement enabled status
display
"Menu hierarchical movement enabled status display" is displayed when switching to the menu in the
upward hierarchy is possible with menu key. If this movement is not possible, this will not be
displayed.
"Menu horizontal movement enabled status display" is displayed when switching menus within the same
hierarchy or switching to the menu on the second page with menu key. If these movements are not
possible, this will not be displayed.
IV - 14
3. Screens
3.4 Color-coded Display of "LADDER" Screen
700
70
(2) Local editing mode Standard Simple
When the circuit is converted, only the program in the onboard editing area is rewritten.
Background
Mode Display conditions
color
Local editing mode Light blue • When displaying the circuits for
a program for which
OPEN PROJECT ,
SAVE PROJECT has been
executed from the "EXTERNAL
FILE" menu.
• When displaying the circuits for
a program for which the data
has been added or the data
name has been changed with
FILE on the "MAIN" menu.
• When displaying the circuits for
a program newly created with
INITIAL SETTING from the
"FILE" menu.
IV - 15
3. Screens
3.5 Split Display
Split screen
display
IV - 16
3. Screens
3.6 Popup Screen
Popup screen
IV - 17
3. Screens
3.7 Confirmation Popup Screen
This popup screen opens to reconfirm the execution of operations or to confirm writing of data during PLC
RUN.
(Example) "END CONFIRMATION" popup screen (The screen is an example of 700 Series)
Menus corresponding
to popup screen
700
70
3.8 Error Display Popup Screen Standard Simple
This popup screen opens to reconfirm the execution of operations or to confirm writing of data during PLC
RUN.
Menus corresponding to
popup screen
IV - 18
3. Screens
3.9 Screen Title Display
700
70
3.10 Menu Key Display Standard Simple
The menu keys displayed at the bottom of the screen change according to the configuration given in "5.2
Menu Key". When a mouse or touch panel is used, pressing of the menu button can be confirmed by the
instant denting and highlighting of the button. (The button is not highlighted in 70 Series.)
The menu keys, which allow the usage of INPUT key when entered, are enhanced (by the black border).
(Note) If a popup screen is displayed, the menu keys will change according to each item on the popup
screen.
IV - 19
3. Screens
3.11 Basic Screen Operations
The basic screen operations used commonly for each screen are explained in this section.
(Example) For "COMMENT DISPLAY" screen (The screen is an example of 700 Series)
[Method 2] Selection of items with menu keys (Direct selection of selection items)
When the menu button with the same name as the item displayed on the screen is pressed, the item
can be selected. Once the button is pressed, the item name is displayed in "light purple' and the data
can be set.
(Example) For "PROGRAM CHANGE" screen (The screen is an example of 700 Series)
Press
IV - 20
3. Screens
3.11 Basic Screen Operations
[Method 1] Select button with TAB key and then press INPUT key.
(Supplement) If operations are possible with the touch panel, the buttons on the screen can be directly
pressed.
[Method 2] Press the menu key with the same name as the button.
IV - 21
3. Screens
3.11 Basic Screen Operations
(Example) To select ZOOM DISPLAY on the "LADDER DISPLAY" screen (The screen is an example of
700 Series)
[Method 1]
IV - 22
3. Screens
3.11 Basic Screen Operations
(Example) When "EXE. ORDER" is selected on the "PROGRAM SETTING" screen (The screen is an
example of 700 Series)
[Method 1] When the menu key with the same name as the item is pressed, the status will alternate
between valid (with check mark) and invalid (no check mark).
[Method 2] When the SP key is pressed after selecting the item with the TAB key, the validity status
will alternate.
[Method 1]
Press COMMENT menu key.
[Method 2]
After selecting item with TAB key,
press SP key.
IV - 23
3. Screens
3.11 Basic Screen Operations
(Example) NC file operation - "OPEN" screen (The screen is an example of 700 Series)
IV - 24
3. Screens
3.12 Language
IV - 25
4. PLC Data
4.1 PLC Data Storage Area
700
4. PLC Data Standard Simple
70
NC
Convert
ROM-Write
ROM area or save Onboard
Temporary
memory area editing area
Copy when
power is Open
turned ON
NC
Auto
ROM-Write
ROM area Temporary saving Onboard
memory area editing area
Copy when Auto
power is readout
turned ON
IV - 26
4. PLC Data
4.1 PLC Data Storage Area
NC
Auto
ROM-Write
ROM area Temporary saving Onboard
memory area editing area
Copy when Auto
power is readout
turned ON
IV - 27
4. PLC Data
4.2 Type of Data
(Method 1)
Specify with 3 bits of bit selection parameter #6453 bit 0 to 2. (Language selection method using PLC alone)
Data type Data name Details of data
Program M1xxxxxx PLC message of the 1st language
:
M7xxxxxx PLC message of the 7th language
M8xxxxxx PLC message of the 8th language
(Method 2)
Specify with display language selection parameter. (Base specifications parameter #1043)
(Method linked with language selection on the setting and display screen)
Data type Data name Details of data
Program M00xxxxx Language para 0 (English) PLC message
M01xxxxx Language para 1 (Japanese) PLC message
:
M22xxxxx Language para 22 (Chinese -simplified-) PLC message
IV - 28
4. PLC Data
4.2 Type of Data
Example: PLC data on "FILE" screen (The screen is an example of 700 Series)
Type : Program
Data name : MAIN
Type : Parameter
Data name : Param
IV - 29
4. PLC Data
4.2 Type of Data
IV - 30
5. Explanation of Keys (Keys Related to Onboard)
5.1 Basic Operation Keys
Key Explanation
F0 This opens the onboard screen.
A to Z , 0 to 9 These are alphanumeric keys, etc., used to input arbitrary data.
This key deletes the last character input before it is set.
DELETE
This key deletes one circuit during ladder circuit editing.
This key deletes the input character string before it is set (cancels the
C•B
input).
INPUT This key is used to set and select the input data.
This key changes between the circuit overwrite and insert modes.
INSERT In 70 Series, this key changes between the data overwrite and insert
modes.
← → These keys are used to move the cursor to up, down, left and right, and to
↑ ↓
select items.
This key moves the items on the screen in the forward order.
→| This key moves the instruction circuit in the forward order during ladder
circuit editing.
This key moves the items on the screen in the reverse order.
|← This key moves the instruction circuit in the reverse order during ladder
circuit editing.
This switches the cursor between screens when device registration
#
monitor or circuit registration monitor is displayed in split screen.
This switches ON and OFF of device comment display on the circuit
EOB ( ; )
screen.
This returns the menu of one level up in hierarchy.
or ESC When a popup screen is displayed, this closes the popup screen.
This changes the menu in the same hierarchy.
This moves the page forward in a page unit.
This moves the page backward in a page unit.
IV - 31
5. Explanation of Keys (Keys Related to Onboard)
5.2 Menu Keys
Menu keys in standard operation mode : Entire onboard function can be used.
Menu keys in simple operation mode : User-friendly configuration, limiting the functions strictly to
maintenance purposes.
700
70
Standard Simple
5.2.2.2 Menu keys in simple operation mode
The menu for simple operation mode is configured of the following three hierarchies.
Moves to downward hierarchy
Corresponding
menu
Moves to upward hierarchy
IV - 32
5. Explanation of Keys (Keys Related to Onboard)
5.2 Menu Keys
IV - 33
5. Explanation of Keys (Keys Related to Onboard)
5.2 Menu Keys
LADDER SYMBOL 1 This changes to the "LADDER SYMBOL 1" menu key.
LADDER SYMBOL 2 This changes to the "LADDER SYMBOL 2" menu key.
COPY/INSERT This changes to the "COPY/INSERT" menu key.
EDIT LADDER This changes the mode to the EDIT LADDER mode.
MODE
EDIT COMMENT This changes the mode to the EDIT COMMENT mode.
MODE
PLC RUN/STOP This opens the "PLC RUN/STOP" popup screen.
CONVERT LADDER This converts the program (ladder) currently being edited. The
converted ladder will be updated to the temporary memory in the
NC automatic update mode.
ZOOM DISPLAY This expands/reduces the ladder display size.
IV - 34
5. Explanation of Keys (Keys Related to Onboard)
5.2 Menu Keys
MARK The start point and end point are designated to select the circuit
group.
COPY This copies the circuit in the designated range.
PASTE This pastes the copied circuit.
INSERT LINE This inserts a line at the cursor position in the "LADDER" screen.
DELETE LINE This deletes the line at the cursor position in the "LADDER"
screen.
UNDO This undoes the last edit operation.
DATA CHANGE This opens the "DATA CHANGE" popup screen.
CONVERT LADDER This converts the program (ladder) currently being edited. The
converted ladder will be updated to the temporary memory in the
NC automatic update mode.
ZOOM DISPLAY This expands/reduces the ladder display size.
IV - 35
5. Explanation of Keys (Keys Related to Onboard)
5.2 Menu Keys
FIND CONTACT OR This opens the "FIND CONTACT OR COIL" popup screen.
COIL
FIND DEVICE This opens the "FIND DEVICE" popup screen.
FIND INST This opens the "FIND INST" popup screen.
FIND STEP NO. This opens the "FIND STEP NO." popup screen.
FIND STRING This opens the "FIND STRING" popup screen.
CHANGE AB This opens the "CHANGE AB CONTACT" popup screen.
CONTACT
REPLACE DEVICE This opens "REPLACE DEVICE" popup screen.
CHANGE T/C This opens the "CHANGE T/C SETTING" popup screen.
SETTING
ZOOM DISPLAY This expands/reduces the ladder display size.
* "CHANGE AB CONTACT", "REPLACE DEVICE", and "CHANGE T/C SETTING" menus can be used
only in the circuit (program) whose background color is light blue.
IV - 36
5. Explanation of Keys (Keys Related to Onboard)
5.2 Menu Keys
IV - 37
5. Explanation of Keys (Keys Related to Onboard)
5.2 Menu Keys
700
5.2.3.2 Menu keys in simple operation mode 70
Standard Simple
(1) "MAIN" menu keys
IV - 38
5. Explanation of Keys (Keys Related to Onboard)
5.2 Menu Keys
IV - 39
5. Explanation of Keys (Keys Related to Onboard)
5.2 Menu Keys
LADDER SYMBOL 1 This changes to the "LADDER SYMBOL 1" menu key.
LADDER SYMBOL 2 This changes to the "LADDER SYMBOL 2" menu key.
COPY/INSERT This changes to the " COPY/INSERT " menu key.
OVR.WRITE/INSERT This changes overwrite/insert.
DATA CHANGE This opens the "DATA CHANGE" popup screen.
FIND This opens the "FIND" popup screen.
FIND STEP NO. This opens the "FIND STEP NO." popup screen.
COMMENT ON/OFF This changes ON/OFF of the comment display.
CONVERT LADDER This converts the program (ladder) currently being edited.
ZOOM DISPLAY This expands/reduces the ladder display size.
MARK The start point and end point are designated to select the circuit
group.
COPY This copies the circuit in the designated range.
PASTE This pastes the copied circuit.
INSERT LINE This inserts a line at the cursor position in the "LADDER" screen.
DELETE LINE This deletes the line at the cursor position in the "LADDER"
screen.
UNDO This undoes the last edit operation.
DATA CHANGE This opens the "DATA CHANGE" popup screen.
CONVERT LADDER This converts the program (ladder) currently being edited.
ZOOM DISPLAY This expands/reduces the ladder display size.
IV - 40
5. Explanation of Keys (Keys Related to Onboard)
5.2 Menu Keys
IV - 41
5. Explanation of Keys (Keys Related to Onboard)
5.2 Menu Keys
IV - 42
5. Explanation of Keys (Keys Related to Onboard)
5.2 Menu Keys
LADDER SYMBOL 1 This changes to the "LADDER SYMBOL 1" menu key.
LADDER SYMBOL 2 This changes to the "LADDER SYMBOL 2" menu key.
COPY/INSERT This changes to the " COPY/INSERT " menu key.
FIND This opens the "FIND" popup screen.
FIND STEP NO. This opens the "FIND STEP NO." popup screen.
COMMENT ON/OFF This changes ON/OFF of the comment display.
CONVERT LADDER This converts the program (ladder) currently being edited.
UNDO This undoes the last edit operation.
ZOOM DISPLAY This expands/reduces the ladder display size.
ZOOM CURSOR This enlarges the cursor display area at the compact display.
OVR.WRITE/INSERT This changes overwrite/insert.
PLC RUN/STOP This opens the "PLC RUN/STOP" popup screen.
CANCEL EDIT This discards the unconverted circuit.
LADDER
PROGRAM This changes the programs in the circuit display.
CHANGE
IV - 43
5. Explanation of Keys (Keys Related to Onboard)
5.2 Menu Keys
MARK The start point and end point are designated to select the circuit
group.
COPY This copies the circuit in the designated range.
PASTE This pastes the copied circuit.
INSERT LINE This inserts a line at the cursor position in the "LADDER" screen.
DELETE LINE This deletes the line at the cursor position in the "LADDER"
screen.
CONVERT LADDER This converts the program (ladder) currently being edited.
UNDO This undoes the last edit operation.
IV - 44
6. Environment Setting
700
6. Environment Setting Standard Simple
70
Various settings required when the onboard is used are explained below.
In 700 Series
In 70 Series
Select "MAIN" → ENVIRON. SETTING menu key. When selected, "ENVIRON. SETTING" screen will be
When using 700 Series, refer to "6.1 Setting the Connected NC Control Unit", "6.2 NC File Operation Setting"
and "6.3 Simple Operation Mode Menu Key Switchover".
When using 70 Series, refer to "6.4 Ladder Display Setting" and "6.5 Comment Display Setting".
IV - 45
6. Environment Setting
6.1 Setting the Connected NC Control Unit
When NC display unit and NC control unit are connected in the proportion of one display unit to multiple NC
control units, the NC unit connected with onboard can be selected. (At the initial start-up of onboard, connect
to the same NC unit as HMI screen side.)
Connections of NC control unit can be changed on the "CONNECT NC SETTING" popup screen.
When a connected NC (control unit) is switched to another, the following information will be discarded.
(Note) All the PLC data in the onboard editing area will be discarded. (Program data having unconverted
circuit will be discarded, as well.)
NC display unit
(Onboard)
IV - 46
6. Environment Setting
6.1 Setting the Connected NC Control Unit
When multiple NC control units are connected, connection target can be switched freely.
Menus corresponding
to popup screen
IV - 47
6. Environment Setting
6.2 NC File Operation Setting
700
6.2 NC File Operation Setting Standard Simple
70
NC Onboard
Temporary editing area
ROM write memory area Save to NC
ROM area
Temporary Onboard
NC memory area
ROM area editing area
ROM write Save to NC
Parameter Parameter
program Parameter
program
Copy at program
power ON
Device
Specified folder comment
HD/
IC memory card
Device Open from NC
comment
IV - 48
6. Environment Setting
6.2 NC File Operation Setting
Menus corresponding to
popup screen
* Device comment storage destination set once will be held even after terminating the onboard.
When the onboard is started up again, the device comment storage destination is shown in the
same state as it was set last.
700
70
6.3 Simple Operation Mode Menu Key Switchover Standard Simple
IV - 49
6. Environment Setting
6.4 Ladder Display Setting
IV - 50
6. Environment Setting
6.5 Comment Display Setting
IV - 51
6. Environment Setting
6.5 Comment Display Setting
IV - 52
7. Basic Operations
7.1 Basic Operations 1 (Steps for Creating a Program for the First Time)
700
7. Basic Operations Standard Simple
70
7.1 Basic Operations 1 (Steps for Creating a Program for the First Time)
The steps (newly creating -> starting the ladder -> saving -> ending) for creating a program for the first time
are given below.
Operation
Step
Mode 1 Menu button
Start
MAIN/LADDER
SAVE
Run the PLC MAIN/NC FILE PLC RUN/STOP Run the PLC
MAIN/EXTERNAL FILE
SAVE PROJECT
EXTERNAL SAVE
PROJECT
End onboard
Designate the drive and path for saving
MAIN/ END
Finished
IV - 53
7. Basic Operations
7.2 Basic Operations 2 (Creating, Monitoring and Testing Programs)
Operation
Step
Mode 1 Menu button
Start
Standard Simple
operation mode operation mode
EDIT
When no program exists in NC
MAIN/LADDER
temporary memory, local editing
mode (background color is light
blue) is applied.
P4002|-|/|----[INC D0]-|
Test the device. MAIN/LADDER/MONITOR DEVICE TEST DEVICE TEST Reverse ON/OFF of M0 forcibly.
Go to save
operation
IV - 54
7. Basic Operations
7.3 Basic Operations 3 (Correcting Programs Stored in NC)
The steps for correcting the programs stored in the NC's temporary memory are given below.
Operation
Step
Mode 1 Menu button
Start
Change the circuit program MAIN/ LADDER When there is a program in the NC's
temporary memory, the local editing
mode (white background) is activated
MAIN/LADDER EDIT
Stop the PLC to change the program
MAIN/LADDER/EDIT PLC RUN/STOP
Go to monitor
operations
IV - 55
7. Basic Operations
7.4 Basic Operations 4 (Creating Multiple Programs with Multi-program Method)
The steps for splitting the program and creating several programs are given below.
Operation
Step
Mode 1 Menu button
Start
<Sample data>
Data name Header statement
MAIN Machine A
INIT Initial
LOW Communication
process
TAIKI Error process
<Sample data>
MAIN/LADDER/VIEW, TOOLS
PROGRAM CHANGE Create each program while changing
the program to be edited.
Go to monitor
operations
IV - 56
7. Basic Operations
7.5 Basic Operations 5 (Creating Device Comments)
Operation
Step
Mode 1 Menu button
Start
Go to save
operations
IV - 57
7. Basic Operations
7.6 Basic Operations 6 (Upgrading the Program Version)
700
7.6 Basic Operations 6 (Upgrading the Program Version) Standard Simple
70
The steps for upgrading the program saved in the NC ROM to the version of the program in the IC card are
given below.
Operation
Step
Mode 1 Menu button
Start
(Program design)
Create and test the program Set the file version, etc., in the header
with GX Developer or
onboard
(Maintenance)
The data saved in the NC ROM is read
out to the NC's temporary memory
Turn the NC power ON
Go to monitor
operations
IV - 58
7. Basic Operations
7.7 Basic Operations 7 (Loading Programs Created with GX Developer)
The steps for loading and adjusting ladders creating with GX Developer are given below.
Operation
Step
Mode 1 Menu button
Start
Go to monitor
operations
IV - 59
8. Circuit Operations
8.1 Monitoring a Program (Ladder)
8. Circuit Operations
The PLC data read out onto the onboard editing area can be edited and monitored with circuit operations.
The saving area and editing area are split, so before editing (including monitoring), open the PLC data in the
temporary memory in the onboard editing area.
(Note) The circuit menu cannot be selected if even one program is not opened in the onboard editing area.
(When moving in the same hierarchical menu, the operation will be skipped.)
700
70
8.1 Monitoring a Program (Ladder) Standard Simple
The continuity state of contacts and coils can be monitored while displaying the PLC circuits.
(Note 1) Open the PLC data in the temporary memory in the onboard editing area before starting monitoring.
(Note 2) Circuits (programs) in the local editing mode (light blue background) cannot be monitored.
(The circuit menu "MONITOR" and "MONITOR" menu will all be displayed in gray and disabled.
Movement in the same hierarchy to the "MONITOR" menu will also be skipped.)
Monitor the data with a circuit (program) opened from the NC's temporary memory.
Cursor
OFF *1
ON *1
*1: and can be used only for comparative instruction, which is equivalent to the contact and
SET, RST, PLS, PLF, SFT and MC, which is equivalent to coils.
IV - 60
8. Circuit Operations
8.1 Monitoring a Program (Ladder)
"Find step No." popup screen (The screen is an example of 700 Series)
Menus corresponding
to popup screen
8.1.1 Restrictions
The following restrictions apply to the circuit display on the "LADDER DISPLAY" screen.
• One circuit block must be created with 24 or less lines. An error will occur if there are more than 24 lines.
• The maximum number of contacts in one circuit line can be changed with the "LADDER DISPLAY" setting.
• The number of characters displayed in the comment is shown below.
Number of characters displayed on circuit screen
COMMENT All characters are displayed with 8 characters on 4 lines
STATE
NOTE The set characters are all displayed
ALIAS
IV - 61
8. Circuit Operations
8.1 Monitoring a Program (Ladder)
; then, press the START/STOP MONITOR menu key to change the monitor start and stop state. The
monitor status can be checked with the function mode display.
When MONITOR menu key is pressed in the ladder entry mode or comment input mode, the state will
change to the monitor state upon changing the menu keys.
IV - 62
8. Circuit Operations
8.1 Monitoring a Program (Ladder)
When ENTRY DEVICE is pressed, the screen is split, and the "ENTRY DEVICE MONITOR" screen opens.
The circuit monitor can be displayed and the device registration can be monitored simultaneously.
(Note) When switching from the NC automatic update mode (white background color) circuit (program) to a
local editing mode (light blue background) circuit (program), monitoring of the device registration on
the split screen will end. Monitor the device registration for the circuit (program) opened from the NC's
temporary memory.
"LADDER" screen
"ENTRY DEVICE
MONITOR" screen
* Menus are different between "LADDER" screen (upper part) and "ENTRY DEVICE MONITOR" screen
(lower part).
IV - 63
8. Circuit Operations
8.1 Monitoring a Program (Ladder)
(i) Press the ENTRY DEVICE button and the "ENTRY DEVICE MONITOR" screen is split and
displayed.
* When the "ENTRY DEVICE MONITOR" screen is not displayed, "ENTRY LADDER MONITOR"
screen will be displayed. So, always display the "ENTRY DEVICE" screen.
(ii) Align the cursor with the circuit of the device to be registered from the "LADDER" screen (upper
half of the screen).
(iii) Press the REGISTER MONITOR button.
(iv) Press the REGISTER MONITOR and the device at the cursor position on "LADDER" will be
registered in the "ENTRY DEVICE MONITOR" screen (lower side of the split screen).
(A blank is searched from the row on the left side on the "DEVICE ENTRY" screen, and the
device is registered in the first blank found.)
(b) When registering by using the REGISTER MONITOR button on the "LADDER" screen.
(i) Move the cursor to the row of "DEVICE" on the "ENTRY DEVICE" screen.
(ii) Switch to the input mode by using alphanumeric character or INPUT key.
(iii) Enter the device name and press the INPUT key.
(Note) Timer and counter's setting value display shows the program setting value to be edited.
IV - 64
8. Circuit Operations
8.1 Monitoring a Program (Ladder)
(5) Switching between 16 bit and 32 bit for the device registered on the "ENTRY DEVICE MONITOR".
*Only word device can be changed.
(a) Move the cursor to the "ENTRY DEVICE MONITOR" side.
(b) Press the 16BIT/32BIT button. (For 32 bit, "(D)" is displayed next to the device name. For 16 bits,
"(D)" is not displayed.)
(6) Switching between decimal and hexadecimal for the device registered on the "ENTRY DEVICE
MONITOR".
(a) Move the cursor to the "ENTRY DEVICE MONITOR" side.
(b) Press the DEC/HEX button.
*Only word device can be changed. (Bit device will not be changed.)
*Current value display on the "LADDER" screen is not changed. (Change with the menus on the
"LADDER" screen.)
(7) Close the "ENTRY DEVICE" screen. (The "LADDER" screen will appear on the full screen.)
Press the menu key while the cursor is located on the "ENTRY DEVICE MONITOR" screen side.
IV - 65
8. Circuit Operations
8.1 Monitoring a Program (Ladder)
When ENTRY LADDER MONITOR is pressed, the screen is split, and the "ENTRY LADDER MONITOR"
screen opens. The circuit monitor can be displayed and the randomly registered circuits can be monitored
simultaneously.
(Note) When switching from the NC automatic update mode (white background color) circuit (program) to a
local editing mode (light blue background) circuit (program), monitoring of the circuit registration on
the split screen will end. Monitor the circuit registration for the circuit (program) opened from the NC's
temporary memory.
"LADDER"
screen
Cursor
"ENTRY
LADDER
MONITOR"
screen
IV - 66
8. Circuit Operations
8.1 Monitoring a Program (Ladder)
Ladder registration with "ENTRY LADDER MONITOR" or device registration with "ENTRY DEVICE
MONITOR" can be possible.
"ENTRY LADDER MONITOR" and "ENTRY DEVICE MONITOR" will be as shown below depending on the
screen display status.
*The circuit block that you want to register can be searched and selected.
Press the REGISTER MONITOR menu key on the "FIND CONTACT OR COIL", "FIND DEVICE", "FIND
INSTRUCTION", "FIND STEP NO." and "FIND STRING" popup screen for registration.
IV - 67
8. Circuit Operations
8.1 Monitoring a Program (Ladder)
(a) Press the ENTRY DEVICE MONITOR button to split and display the "ENTRY DEVICE MONITOR"
screen.
*When the "ENTRY DEVICE MONITOR" screen is not displayed, "ENTRY LADDER MONITOR" screen
will be displayed. So, always display the "ENTRY DEVICE MONITOR" screen.
(b) Point the cursor to the device circuit to be registered from the "LADDER" screen (upper part of a split
screen).
(c) Press the REGISTER MONITOR button.
(d) When the REGISTER MONITOR button is pressed, the device on the cursor position in "LADDER" is
displayed in the "ENTRY DEVICE MONITOR" screen (lower part of a split screen).
*Press the REGISTER MONITOR menu key on the "FIND CONTACT OR COIL", "FIND DEVICE", "FIND
INSTRUCTION", "FIND STEP NO." and "FIND STRING" popup screen for device registration.
(Note that, however, this is only possible only when the "ENTRY DEVICE MONITOR" split screen is
displayed.)
700
8.1.6 Testing the Devices Standard Simple
70
The NC bit devices can be turned ON and OFF forcibly, and the word device's current value can be changed.
In 700 Series
"DEVICE TEST" popup screen
Menus corresponding
to popup screen
IV - 68
8. Circuit Operations
8.1 Monitoring a Program (Ladder)
In 70 Series
IV - 69
8. Circuit Operations
8.1 Monitoring a Program (Ladder)
700
8.1.7 Changing the Current Value Monitor 70
Standard Simple
The current value displayed while monitoring the "LADDER" screen can be changed from decimal to
hexadecimal and vice versa.
IV - 70
8. Circuit Operations
8.1 Monitoring a Program (Ladder)
700
70
8.1.9 Searching Standard Simple
700
8.1.10 Deleting All the Entry Ladders 70
Standard Simple
All the circuit registered with "ENTRY LADDER" function is deleted.
The split ratio to display "ENTRY LADDER MONITOR" screen and "LADDER" screen is changed.
When "DIVISION RATIO CHANGE" menu key is pressed, the split ratio changes to "25%" → "50%" → "75%"
→ "100%" → "25%".
The default split ratio is 50%.
The split ratio set once will be held until ending the onboard.
IV - 71
8. Circuit Operations
8.1 Monitoring a Program (Ladder)
Menus corresponding
to popup screen
Status Display
No monitor stop conditions Only screen title
Monitor stop conditions set Screen title (Monitor stop condition setting has been registered)
(c) Select the CANCEL menu key. The monitor stop condition setting display will disappear.
IV - 72
8. Circuit Operations
8.2 Editing
8.2 Editing
The PLC data circuit opened on the onboard editing area can be written, inserted and deleted.
During standard operation mode, PLC data must be retrieved from the NC or external device and opened in
the onboard editing area to edit the data.
The range of editable PLC data in the simple operation mode is more and 70 Series limited than that of the
standard operation mode.
Editable PLC data in each mode is shown below.
700 Series
70 Series
Standard operation mode Simple operation mode
Sequence program
(Ladder)
PLC message data
Device comment
(Alphanumerical characters only)
Statement
(Alphanumerical characters only)
Note
(Alphanumerical characters only)
(Note 1) After editing the data, save it in the NC or external device. If not saved, the edited details will be lost.
(Note 2) If the password has not been released, the CONVERT LADDER button will appear in gray and
will be disabled.
IV - 73
8. Circuit Operations
8.2 Editing
Cursor
In standard operation mode, when the "EDIT" button under "LADDER" menu is pressed while the
MONITOR mode is currently selected, the mode will be automatically changed to the EDIT LADDER
MODE.
Before EDIT button in the ladder menu is After EDIT button in the ladder menu is pressed
pressed
MONITOR Changed to EDIT LADDER MODE.
MONITOR STOP Changed to EDIT LADDER MODE.
EDIT LADDER MODE (OVR.WRITE/INSERT) Not changed (stays in EDIT LADDER MODE.)
EDIT COMMENT MODE Not changed (stays in EDIT COMMENT MODE.)
IV - 74
8. Circuit Operations
8.2 Editing
8.2.2 Restrictions
The restrictions which apply for editing circuits on the "LADDER DISPLAY" screen are shown below.
• Up to 24 lines can be edited in one circuit block.
• Up to 24 lines in one block and up to 48 lines in total can be edited.
• The maximum number of contacts in one circuit line can be changed with the "LADDER DISPLAY"
setting.
• The master control (MC) symbol cannot be edited. The MC symbol is displayed during circuit monitoring.
(The MC symbol does not appear during circuit editing.)
• If a series circuit exceeding the maximum number of contacts is created in one line, the line will
automatically return and move to the next line. The return symbol is created with K0 to K99. The OUT (→)
and IN (>-) return symbol No. always have to be the same.
• Another circuit cannot be inserted between the OUT (→) line and IN (>-) line of the return line.
• When writing the circuit, the return symbol is assigned with a serial number even if it is not in the same
circuit block. Note that in the circuit block read out with the read function, the return number is assigned in
order from No. 0.
• If the contact and coil to be overwritten extends over several contacts, the circuit cannot be edited with
the write (overwrite) mode.
(Example)
X0 X1
Y10
An instruction that uses multiple contacts such as "-[ = D0 D1 ]-" at this position cannot
be overwritten with the overwrite mode. (This is because the next instruction will also be
overwritten.)
To make the above type of revision, insert "-[ = D0 D1 ]-" beforehand with the write (insertion) mode,
and then delete "LD X0" with the DELETE key.
• If a return results from the insertion of a contact in the first row of the circuit, the contact cannot be
inserted.
(Example)
X0 X1 X2 X3 X0A
Y10
IV - 75
8. Circuit Operations
8.2 Editing
• Insertion of the circuit symbol is processed by right alignment and row insertion, so there may be causes
when the symbol cannot be inserted because of the circuit shape.
(Example)
X0 (a) If the following conditions are
established when inserting the circuit
(c)
symbol at position (a), the message "Editing
position is incorrect" will result, and the
X1 X2 X3
(a) circuit will not be inserted.
(b) There is no space between (a) and (b)
Insertion into row (c) is not possible
Cursor position
(Note) The position (b) is the closest position to the cursor position among the branch symbols and the
coil-equivalent instructions.
• If one circuit block has two or more lines, and the instruction does not fit on one line, return the instruction
before inputting it.
• Create the number of steps for one circuit block within approx. 4k steps. The NOP instruction in the circuit
block is also included in the number of steps. The NOP instruction between circuit blocks is irrelevant.
• If there is an unconverted circuit, the screen movement range may be limited.
IV - 76
8. Circuit Operations
8.2 Editing
(Note 1) The MITSUBISHI CNC compatible instructions (instructions usable only with MITSUBISHI CNC)
are also checked when the circuit is input.
(2) Inputting circuits (excluding cross bars, vertical bars and labels)
(a) Move the cursor to the position to input the circuit.
(b)
Standard operation mode: "MAIN" LADDER EDIT
Select Simple operation mode: "MAIN"
LADDER EDIT
70 Series: "MAIN" LADDER EDIT
; then, select the LADDER SYMBOL 1 or LADDER SYMBOL 2 menu key. When selected, the
"ENTER SYMBOL" popup screen will appear.
* In 700 Series, the "ENTER SYMBOL" popup screen appears as shown below so that it does not
overlap the cursor line on the LADDER DISPLAY screen.
When cursor in LADDER screen is on upper half of screen Displayed on lower part of screen
When cursor in LADDER screen is on lower half of screen Displayed on upper part of screen
In 70 Series, the popup screen appears at the bottom of the circuit screen.
* These menus are shown in 700 Series. Some menus appear different in 70 Series.
* Some of the instructions in circuit symbol 2 are available only in the instruction extension mode.
* Instruction extension mode is set with bit selection 6452:BIT1.
Circuit symbol selected with menu key Input instruction (device) * Refer to circuit input patterns.
Menus corresponding
to popup screen
The < and > keys may not exist on the keyboard for some machine types. Use "<",">" menu
button instead when inputting an instruction that includes "<",">".
IV - 77
8. Circuit Operations
8.2 Editing
• Inputting labels
(Example) For P4002
Circuit symbol Instruction
(Empty) Device (Example) P4002
IV - 78
8. Circuit Operations
8.2 Editing
(c) The vertical bar at the lower left of the cursor will be deleted.
Menus corresponding
to popup screen
The < and > keys may not exist on the keyboard for some machine types. Use "<",">" menu
button instead when inputting an instruction that includes "<",">".
(c) Select the OK menu key and set the input circuit.
Circuit block
being revised
IV - 79
8. Circuit Operations
8.2 Editing
The < and > keys may not exist on the keyboard for some machine types. Use "<",">" menu
button instead when inputting an instruction that includes "<",">".
(d) Select the OK menu key, and set the input circuit.
IV - 80
8. Circuit Operations
8.2 Editing
700
70
8.2.5 Deleting a Line Standard Simple
The line where the cursor is at can be deleted.
700
70
8.2.6 Designating the Range Standard Simple
IV - 81
8. Circuit Operations
8.2 Editing
(Note 1) In the NC automatic update mode (LADDER screen background is white), batch delete and copy
& paste cannot be carried out on a circuit which has been designated.
700
8.2.7 Deleting in a Batch Standard Simple
70
*When the range is the circuit block unit, conversion is also executed automatically.
(Note 1) When the background color of LADDER screen is white (auto renewal mode), a batch deletion in the
circuit block unit is not possible. (An error message appears.)
IV - 82
8. Circuit Operations
8.2 Editing
700
8.2.8 Copy & Paste Standard Simple
70
The circuits can be copied and pasted at another position or in another program.
(1) Copying
(a) Refer to "8.2.6 Designating the Range", and designate the range of circuits to be copied.
(b) Press the COPY menu key.
* If necessary memory could not be secured in the copied circuit, the error is displayed and the
selected area to be copied is cleared. The error message "it is over the circuit size which can be
copied" is displayed.
(Note 1) When a background color of LADDER screen is white (auto renewal mode), copy & paste in the
circuit block unit is not possible. (An error message appears.)
(2) Pasting
(a) Move the cursor to the position to paste into.
* The PASTE key is displayed in gray until a circuit is copied.
* To paste to another program, change to that program.
IV - 83
8. Circuit Operations
8.2 Editing
(1) Conversion operation for NC automatic update mode (LADDER screen background color is white)
(700 Series/ 70 Series)
The background color is white if the program was opened from the temporary memory into the onboard
editing area using "NC FILE", or when a "LADDER" for a program temporarily saved from the onboard
editing area is displayed. After this type of program is converted, the circuit will automatically be saved in
the program with the same name in the temporary memory.
Converting the NC automatic update mode (LADDER screen background is white) screen
(2) Conversion operation for local editing mode (LADDER screen background is light blue) (700
Series)
The background color is light blue if the program was opened from an external device, or if a program to
which data was added, the data name was changed or the program was initially set with the "11. FILE"
operations is displayed on the "LADDER" screen. If this program is converted, only the program in the
onboard editing area will be converted. (The program will not be automatically written into the temporary
memory.)
To save the program in the temporary memory, save it with the "NC FILE" operations.
(Note 1) The program is not saved in the temporary memory after conversion.
IV - 84
8. Circuit Operations
8.2 Editing
Converting the local editing mode (LADDER screen background is light blue) screen
; then, select LADDER SYMBOL 1 and the CONVERT LADDER menu key.
LADDER SYMBOL 2
COPY/INSERT
* The circuit block being edited will be converted. (The gray background will change to white when the
data is correctly converted.)
* It may take slightly longer when saving to the temporary memory.
IV - 85
8. Circuit Operations
8.2 Editing
(Note 1) If a user PLC containing an integrated statement is saved in the NC, a large user PLC memory will
be required.
(Note 2) Only alphanumeric characters can be input on the onboard.
Comment type Display Edit Input character range Storage destination data type
Statement { { 64 one-byte alphanumeric characters Program
IV - 86
8. Circuit Operations
8.2 Editing
(d) Press the INPUT key, and the "ENTER SYMBOL" popup screen will appear.
(e) Input the statement on the "ENTER SYMBOL" popup screen. Add a ; (semicolon) at the head when
inputting.
; (semicolon) Statement
(f) After setting the input, press the INPUT key or OK menu key. The statement will appear
between the cursor lines.
(g) Select the CONVERT LADDER menu to complete the editing.
(d) After setting the input, press the INPUT key or OK menu key. The P label statement will
appear.
(e) Select the "CONVERT LADDER" menu to complete the editing.
700
70
Standard Simple
8.2.11 Editing a Note
Notes can be added to the program displayed on the "LADDER" screen.
A note, just like a statement, is character string data added to each coil and function instruction to make it
easy to understand the flow of the entire program.
(Note 1) If a user PLC containing an integrated note is saved in the NC, a large user PLC memory will be
required.
(Note 2) Only alphanumeric characters can be input on the onboard.
Comment type Display Edit Input character range Storage destination data type
Note 32 one-byte alphanumeric characters Program
IV - 87
8. Circuit Operations
8.2 Editing
(d) After setting the input, press the INPUT key or OK menu key. The note will appear at the
coil or function instruction at the cursor position.
(e) Select the CONVERT LADDER menu to complete the editing.
IV - 88
8. Circuit Operations
8.2 Editing
Comments can be added to each device. The program is easier to understand when meanings are assigned
to the devices. Refer to "4.2 Types of Data" for details on the data.
The validity of comment display and editing, the input character range, types of data that can be saved, and a
display example are given below.
Comment type Display Edit Input character range Storage destination data type
Comment 32 one-byte alphanumeric characters Device comment
IV - 89
8. Circuit Operations
8.2 Editing
The PLC messages (alarm messages, operator messages, PLC switches, comments) can be edited. These
messages are created as programs with reserved names (example: M1xxxxx). The user PLCs, statements
and notes cannot be written into this program.
Characters other than the alphanumeric character (Roman figure (ex. ) etc.) can be edited by inputting the
character-code.
Alarm
message
Operator
message
PLC switch
Comment
message
End code
IV - 90
8. Circuit Operations
8.2 Editing
• File comment
Details The integrated statement which starts with a character other than A, O, P or M
can be used as a file comment.
Description format ;"File comment"
(Example) ;# M7 PLC message
• End code
Details This is the circuit END instruction, and is normally created automatically.
IV - 91
8. Circuit Operations
8.2 Editing
IV - 92
8. Circuit Operations
8.2 Editing
(d) Select the CONVERT LADDER menu key to complete the editing.
In 70 Series
In 70 Series
IV - 93
8. Circuit Operations
8.2 Editing
Cancels the last editing operation with circuit input mode and restores the previous state.
Undo operation is possible for only one most recent edit.
Menu is masked when undo operation is not possible.
IV - 94
8. Circuit Operations
8.3 Searching and Replacing
(Note) If a circuit block is being edited in the editing mode, the following confirmation popup screen will
appear.
"Unconverted circuit found. Okay to abort unconverted circuit?"
If YES is selected, the unconverted circuit will be aborted.
If NO is selected, the search will not be executed. (The unconverted circuit will remain.)
700
8.3.1 Searching for Ladder (Simple search) Standard Simple
70
Move the cursor to the circuit to be searched and press the "INPUT" key, alphanumerical key, or ladder
symbol menu key, and then popup screen for searching will appear.
(1) Displaying "FIND" screen
In 700 Series
"FIND" popup screen
Menus corresponding
to popup screen
In 70 Series
"FIND" screen
(a) When pressing "INPUT", LADDER SYMBOL menu and alphabetical key on the LADDER MONITOR
screen, "FIND" popup screen will appear.
• When "INPUT" is pressed while device exists on cursor position, the device on the cursor position is
displayed.
• When LADDER SYMBOL menu is pressed, ladder symbol is displayed on the ladder symbol
section.
• When alphabetical key is pressed, the pressed character is displayed and the instruction or device to
be consecutively searched can be entered.
The < and > keys may not exist on the keyboard for some machine types. Use "<",">" menu
button instead when inputting an instruction that includes "<",">".
(b) With the simple operation mode, execute the following menu key operation to open the "FIND" popup
screen.
• "MAIN" → "LADDER MONITOR" "FIND"
• "MAIN" → "LADDER EIDIT" "FIND"
IV - 95
8. Circuit Operations
8.3 Searching and Replacing
If "Yes" is selected, the next program will be searched consecutively. When all the programs have been
searched, "Find is complete" will appear.
If "No" is selected, search will be ended.
(Example)
Find another
program?
Yes/No
Search ends Search begins
IV - 96
8. Circuit Operations
8.3 Searching and Replacing
700
70
8.3.2 Searching for Step No. (Simple search) Standard Simple
Menus corresponding
to popup screen
IV - 97
8. Circuit Operations
8.3 Searching and Replacing
Contact or coil devices can be searched from the circuits on the "LADDER" screen.
Also, in the same manner as the simple search, multiple programs can be searched consecutively.
Menus corresponding
to popup screen
IV - 98
8. Circuit Operations
8.3 Searching and Replacing
Menus corresponding
to popup screen
IV - 99
8. Circuit Operations
8.3 Searching and Replacing
Menus corresponding
to popup screen
(Supplement)
The < and > keys may not exist on the keyboard for some machine types. Use "<",">" menu button
instead when inputting an instruction that includes "<",">".
(1) Search methods
(a) Select "MAIN" → LADDER → FIND, REPLACE and FIND INST. menu key.
When selected, the "FIND INSTRUCTION" popup screen will appear at the lower center of the
screen.
(b) Select the LADDER SYMBOL menu key, and select the circuit symbol from the list.
This can be omitted for a function instruction such as MOV.
(c) Input the search instruction with the FIND INST. menu key.
* The instruction to be searched can be directly input, or a previously input instruction can be
selected from the list. (Note that the list is cleared when onboard is ended.)
(d) Designate the search direction with the FIND DIRECTI. menu key. (As a default, the devices are
searched downward from the head.)
(e) Press the FIND NEXT menu key or INPUT key.
(f) If the search target is found, the cursor will move to the searched circuit.
(g) If the FIND NEXT menu key or INPUT key is pressed again, the search will continue from the
current position.
(2) Registering monitor
Registering the ladder specified with the entry ladder monitor or the device specified with the device
registration monitor can be executed. Refer to "8.1.5 Registering the Monitor" for details.
IV - 100
8. Circuit Operations
8.3 Searching and Replacing
A circuit with a designated step No. can be searched from the circuits on the "LADDER" screen.
"FIND STEP NO." popup screen
Menus corresponding
to popup screen
IV - 101
8. Circuit Operations
8.3 Searching and Replacing
A designated character string can be searched from the circuit statements and notes on the "LADDER"
screen.
"FIND STRING" popup screen
Menus corresponding
to popup screen
IV - 102
8. Circuit Operations
8.3 Searching and Replacing
The A contact for a designated device in the circuits on the "LADDER" screen can be changed to a B contact
and vice versa.
"CHANGE AB CONTACT" popup screen
Menus corresponding
to popup screen
IV - 103
8. Circuit Operations
8.3 Searching and Replacing
(h) All devices can be replaced in a batch when the REPLACE ALL menu key is selected.
(Supplement) Device designation
Extensions and bit No. modifiers can be designated when designating the device, but index
modifiers cannot be designated.
• Example of device designation
X0Z3 cannot be designated (Cannot be designated because this is an index modifier)
• The A contact and B contact in the following instructions can be changed.
A contact : LD,AND,OR,LDP,ANDP,ORP,EGP
B contact : LDI,ANI,ORI,LDF,ANDF,ORF,EGF
700
8.3.9 Replacing Devices Standard Simple
70
Devices and character string constants, etc., on the "LADDER" screen can be replaced.
Menus corresponding
to popup screen
IV - 104
8. Circuit Operations
8.3 Searching and Replacing
IV - 105
8. Circuit Operations
8.3 Searching and Replacing
The timer and counter setting values used in the program displayed on the "LADDER" screen can be listed,
and the setting values can be changed in a batch.
Menus corresponding
to popup screen
IV - 106
8. Circuit Operations
8.4 Changing the Displayed Details
(Note 1) If the data is changed to a circuit (program) for the local editing mode (LADDER screen background
is light blue), monitoring on the "LADDER" screen will be disabled.
(The LADDER menu MONITOR and MONITOR menu will all be displayed in gray and
disabled. Circuit monitoring and device registration monitoring on the LADDER screen will also
be disabled.)
IV - 107
8. Circuit Operations
8.4 Changing the Displayed Details
IV - 108
8. Circuit Operations
8.4 Changing the Displayed Details
The validity of the comment display, statement display, note display and device name display can be set.
In 70 Series, these display settings are in "ENVIRON. SETTING" screen. Refer to "6.5 Comment Display
Setting".
(Note 1) If an incompatible language is designated for the comment, it will not be displayed correctly.
Menus corresponding
to popup screen
IV - 109
8. Circuit Operations
8.4 Changing the Displayed Details
Comment Comment
• Example of displaying device name (The device name appears at the device name display.)
IV - 110
8. Circuit Operations
8.4 Changing the Displayed Details
When comment display is switched ON while "COMMENT DISPLAY" box is unchecked, comment,
statement and note will be checked.
(Example) "COMMENT ON/OFF" button operations when "COMMENT DISPLAY" is set as shown below.
(The screen is an example of 700 Series)
IV - 111
8. Circuit Operations
8.4 Changing the Displayed Details
By pressing the menu key, the scale changes in 3 stages: "Reduction" → "Standard" → "Expansion" →
"Reduction"
In 70 Series, "ENVIRON. SETTING" screen has the same setting menu. Refer to "6.4.2 Zoom Display".
(Note1) The setting of circuit's expanded/reduced display and maximum number of contacts will be held
even after terminating the onboard.
(When the onboard is started up again, the circuit will be displayed with the same settingas as
before.)
In 700 Series
Reduced display
Standard display
Expanded display
IV - 112
8. Circuit Operations
8.4 Changing the Displayed Details
In 70 Series
Standard display
Expanded display
Standard display
Expanded display
(Note 1) The ZOOM CURSOR menu focuses on the cursor display area in reduced display and enlarges the
area to the standard size.
IV - 113
8. Circuit Operations
8.4 Changing the Displayed Details
(Supplement)
The reduced circuit display can also be changed with the "DISPLAY EXPANSION REDUCTION" menu
key on the EDIT menu.
The display scale is switched in the order of "Reduction" → "Standard" → "Expansion" → "Reduction" by
pressing.
IV - 114
9. Other Functions
9.1 Contact Coil Usage List
9. Other Functions
With the contact coil usage list function, step, instruction and position in which specified device is used can be
displayed in a list.
With the device usage list function, device usage state in a program can be displayed per specified device.
By specifying device, the circuit sign, number of device usages in program and error state can be displayed.
Logical errors and input mistakes in the program can be checked with the program check function.
700
9.1 Contact Coil Usage List Standard Simple
70
The steps, instructions and position in which the designated device is used can be listed in the contact coil
usage list.
(Note 1) Cannot jump to the device usage list executed before program change.
Menus corresponding
to popup screen
IV - 115
9. Other Functions
9.2 List of Used Devices
The usage state of devices in the program can be displayed for each designated device with the list of used
devices. The circuit symbols, usage quantity and presence of errors can be displayed by designating the
device.
"LIST OF USED DEVICE" popup screen
Menus corresponding
to popup screen
IV - 116
9. Other Functions
9.2 List of Used Devices
M384 to M511
IV - 117
9. Other Functions
9.3 Program Check
Logical errors and input mistakes in the program can be checked with the program check function.
Menus corresponding
to popup screen
IV - 118
9. Other Functions
9.3 Program Check
IV - 119
10. Device Monitor Operations
10.1 Device Batch Monitor
IV - 120
10. Device Monitor Operations
10.1 Device Batch Monitor
IV - 121
10. Device Monitor Operations
10.2 Device Registration Monitor
700
10.2 Device Registration Monitor Standard Simple
70
Devices at a separated position in the circuit or different types of devices can be monitored simultaneously on
one screen.
(Note 1) If this screen is changed to another screen during monitoring, the monitoring operation will
automatically stop.
(Note 2) The device registration monitor can be used in the NC automatic update mode (white background)
or local editing mode (light blue background).
IV - 122
10. Device Monitor Operations
10.2 Device Registration Monitor
IV - 123
10. Device Monitor Operations
10.3 Sampling Trace
700
10.3 Sampling Trace Standard Simple
70
With the sampling trace function, the PLC device (bit device and word device) signals can be traced (data
collection) and its result will be displayed in chronological order so that the operator can check and analyze
the signal status.
Trace execution
Trace result
IV - 124
10. Device Monitor Operations
10.3 Sampling Trace
Details
Trace No. of traces The number between 1 and 8192 can be set. Note that, however, the
condition (Number of times total trace data size has to be smaller than 60kbyte.
(Data when data is Refer to *1 for trace data size calculation.
collection collected)
condition) No. of traces after Sets the number smaller than the No. of traces.
trigger
Trace point High-speed Trace is executed at every scan of PLC high-speed
(Timing for Each scan processing .
collecting data) *Up to 8 points of bit devices can be set for the trace
data.
Main Trace is executed at every scan of PLC main processing.
Each scan
Trace data Trace is executed when the device set at the trace data
change at every scan of main processing is changed. (When
changed from OFF->ON,ON->OFF for bit device; When
the value is changed for word device.)
Device Trace is executed when the device setting condition at
designation the time of device specification on the "TRACE POINT
SETUP" screen has been established at every scan of
the main processing. Refer to *2 for the settable devices.
Trigger point Screen input Trigger is executed by pressing the "EXECUTE
(Point where TRIGGER" button on the "EXECUTE TRIGGER" screen.
trigger condition Device Trigger is executed by either one of the following two
has been designation methods.
established.) • Trigger is executed by pressing the "EXECUTE
TRIGGER" button on the "EXECUTE TRIGGER" screen.
• Trigger is executed when the device setting condition at
the time of device specification on the "TRIGGER POINT
SETUP" screen has been established.
Refer to *2 for the settable devices.
Trace additional Time (displayed in the unit of hour, minute and second): Step No. and
information program name cannot be added.
Trace data Bit device • 50 points of word device and 50 points of bit device can be set. Note
(Collected Word device that, however, trace data size has to be 60kbyte or less in total. Refer to
data) *1 for calculation of trace data size. Refer to *3 for the settable devices.
Trace Start trace Trace (data collection) is started by pressing the "START TRACE" button
execution on the "TRACE EXECUTION" screen.
Stop trace Trace (data collection) is stopped by pressing the "STOP TRACE" button
on the "TRACE EXECUTION" screen.
IV - 125
10. Device Monitor Operations
10.3 Sampling Trace
Details
Trace result Trace result The data on the number of traces (or the number of counts until trace is
display display screen stopped) is display on the "TRACE RESULT" screen.
Trace result Trace results are output to an external device in the CSV file format.
output
File Input Trace file in the external device (trace condition and trace result) is input.
input/output (The trace file is included in the GX-Developer project.)
Refer to *4 for the file compatibility with the GX-Developer.
Output Trace file in the external device (trace condition and trace result) is
output. (The trace file is included in the GX-Developer project.)
Refer to *4 for the file compatibility with the GX-Developer.
Delete Trace file in the external device (trace condition and trace result) is
deleted. (The trace file is included in the GX-Developer project.)
[Trace data size (byte)] = [Size required for one trace (byte)] x [Number of traces]
Size required for one trace is calculated from word device points and bit device points of the trace device
and the size required for one trace of each device.
No. Bit device points Word device points Trace points Trace data size Trace execution
1 16 points (1 unit) 2 points 8192 points (1x2+2x2)x8192 Possible
= 49152 byte
2 8 points (1 unit) 8 points 1000 points (1x2+8x2)x1000 Possible
= 18000 byte
3 50 points (4 units) 50 points 568 points (4x2+50x2)x568 Possible
= 61344 byte
4 50 points (4 units) 50 points 569 points (4x2+50x2)x569 Not possible
= 61452 byte
IV - 126
10. Device Monitor Operations
10.3 Sampling Trace
Output
Note 1) Deleting of trace file is possible only for the trace file output with the onboard.
IV - 127
10. Device Monitor Operations
10.3 Sampling Trace
(b) Set the trace point (timing where trace data is collected).
IV - 128
10. Device Monitor Operations
10.3 Sampling Trace
IV - 129
10. Device Monitor Operations
10.3 Sampling Trace
IV - 130
10. Device Monitor Operations
10.3 Sampling Trace
IV - 131
10. Device Monitor Operations
10.3 Sampling Trace
IV - 132
10. Device Monitor Operations
10.3 Sampling Trace
Device setting AND *1 All the conditions set with bit device and word device have been
condition established.
OR Any one of the conditions set with bit device and word device has been
established.
*The value for the word device setting is displayed in decimal and hexadecimal.
*1 is the default condition.
IV - 133
10. Device Monitor Operations
10.3 Sampling Trace
(Note 1) The setting of "TRACE POINT SETUP" etc. will not be valid until the "SETTING" menu key is pressed
(Note 2) Trace data (trace condition + trace result) is discarded by turning the NC power OFF.
(Note 3) Setting is not possible during trace. (An error message appears.)
(c) Select the SELECT CONDI. menu. When selected, the following conditions are changed in turns.
IV - 134
10. Device Monitor Operations
10.3 Sampling Trace
Device D100
Setting condition =
((Device current value) & (Mask data)) <Setting condition> (Setting value)
1200 = 1200
∴Condition established
IV - 135
10. Device Monitor Operations
10.3 Sampling Trace
IV - 136
10. Device Monitor Operations
10.3 Sampling Trace
Screen input Trigger is set with "EXECUTE TRIGGER" on the "TRACE EXECUTION"
(Default) screen.
Device The following two conditions must be satisfied for trigger setting:
designation 1) The "EXECUTE TRIGGER" button in the "TRACE EXECUTION" screen
is pressed
2) The setting condition of the device registered in the device specification
area is established
*8 points of bit device and 2 points of word device can be specified.
The following trace point conditions can be set at the time of device specification.
IV - 137
10. Device Monitor Operations
10.3 Sampling Trace
IV - 138
10. Device Monitor Operations
10.3 Sampling Trace
(c) Select the SELECT CONDI. menu. When selected, the following conditions are changed in turns.
= Condition is established when a device is equal to the value.
<> Condition is established when a device is differed from the value.
< Condition is established when a device is smaller than the value.
> Condition is established when a device is greater than the value.
<= Condition is established when a device is equal to the device or
less.
>= Condition is established when a device is equal to the device or
more
Device D100
Setting condition =
((Device current value) & (Mask data)) <Setting condition> (Setting value)
1200 = 1200
∴Condition established
IV - 139
10. Device Monitor Operations
10.3 Sampling Trace
IV - 140
10. Device Monitor Operations
10.3 Sampling Trace
(Note 1) Changes will not be valid until the SETTING menu key is pressed.
(Note 2) Trace data (trace condition + trace result) is discarded by turning the NC power OFF.
(Note 3) Setting is not possible during trace. (An error message appears.)
IV - 141
10. Device Monitor Operations
10.3 Sampling Trace
IV - 142
10. Device Monitor Operations
10.3 Sampling Trace
IV - 143
10. Device Monitor Operations
10.3 Sampling Trace
IV - 144
10. Device Monitor Operations
10.3 Sampling Trace
Bit device Device display The bit device (contact/coil) trace result is displayed on the upper part of
area a screen.
Variation of device is displayed chronologically, regarding the trigger
position as the base point (0).
COUNT Trace count at the cursor position in the bit device display section is
displayed.
TIME Trace time (hour, min., sec.) at the cursor position in the bit device
display section is displayed.
DISP. UNITS Display scale (display trace count) can be changed within the following
range.
10 (default), 20, 50, 100
Word Device display The word device (current value) is displayed on the lower part of a
device area screen.
Variation of value is displayed chronologically, regarding the trigger
position as the base point (0).
COUNT Trace count at the cursor position in the word device display section is
indicated.
TIME Trace time (hour, min., sec.) at the cursor position in the word device
display section is indicated.
DISP. UNITS 16-bit in decimal (Default)
16-bit in hexadecimal
32-bit in decimal
32-bit in hexadecimal
Note) In order to realize a 32-bit display, upper/lower level devices must
be set in the trace data.
IV - 145
10. Device Monitor Operations
10.3 Sampling Trace
Common DEVICE Move the cursor between bit device display area and word device
CHANGE display area. On the screen where the cursor exists, the details of result
can be scrolled.
DISP. UNITS Change the display unit of the screen at the cursor position in the bit
device or word device display area.
ADJUST Adjust the display position of one screen (ex. Word device display area)
POSITION based on the cursor position of the screen where the cursor exists (ex.
Bit device display area).
LINE CHANGE Move the device at the cursor position in the bit device or word device
(UP) display area upward.
LINE CHANGE Move the device at the cursor position in the bit device or word device
(DOWN) display area downward.
PAGE LEFT Move the display position to one screen page left from the screen at the
FEED cursor position in the bit device or word device display area.
PAGE RIGHT Move the display position to one screen page right from the screen at the
FEED cursor position in the bit device or word device display area.
LEFT SCROLL Move the display result of the screen at the cursor position in the bit
device or word device display area to the left for one trace amount.
RIGHT Move the display result of the screen at the cursor position in the bit
SCROLL device or word device display area to the right for one trace amount.
CREATE CSV The trace result can be output to an external file in the CSV format.
FILE
(Note 1) Trace data (trace condition + trace result) is discarded by turning the NC power OFF.
IV - 146
10. Device Monitor Operations
10.3 Sampling Trace
(3) Move the result in the bit device section and word device section vertically.
(a) Move the cursor to a desired screen with the DEVICE CHANGE menu.
(b)Move the cursor up and down with the ↑ / ↓ key. The screen is scrolled up/down according to the
cursor movement.
(c) Press the PAGE UP / PAGE DOWN key to move one page up/down.
(4) Move the result in the bit device section and word device section horizontally.
(a) Move the cursor to a desired screen with the DEVICE CHANGE menu.
(b) Move the cursor right and left with the ← / → key. The screen is shifted to the right/left according to
the cursor movement.
(c) Press the PAGE LEFT FEED / PAGE RIGHT FEED menu to move one page to the right/left.
(5) Move the result of bit device and word device for the amount of one trace data.
(a) Move the cursor to a desired screen with the DEVICE CHANGE menu.
(b) Press the LEFT SCROLL / RIGHT SCROLL menu.
IV - 147
10. Device Monitor Operations
10.3 Sampling Trace
(7) Align the bit device display position with the word device display position.
(a) Select the DEVICE CHANGE menu. When selected, the bit device display position and the word device
display position can be aligned based on the cursor position in the currently selected table.
(9) Output the trace result to an external device in the CSV format.
(a) Select the CREATE CSV FILE menu. When selected, the "CREATE CSV FILE" popup screen will
appear. Refer to "10.3.8 Creating CSV File" for details.
IV - 148
10. Device Monitor Operations
10.3 Sampling Trace
IV - 149
10. Device Monitor Operations
10.3 Sampling Trace
(d) Select the SETTING menu on the "BROWSE" popup screen. When selected, the specified drive/path
and file name are verified and the "BROWSE" popup screen is closed.
* When the CANCEL menu or the menu is selected on the "BROWSE" popup screen, the
specified drive/path and file name will be disabled.
* When the set file name is illegal, an error appears. (The "BROWSE" screen will not be closed at this
time.)
(4) Specifying the device storage method
(a) When outputting in CSV, data alignment (vertical or horizontal) can be specified.
(b) Press the "DEVICE STORAGE METHOD" menu. When selected, vertical or horizontal way of device
storage method can be changed.
(5) Creating the CVS file
(a) Select the EXECUTE menu. When selected, the trace result data is created in the CSV file format with the
specified drive/path and file name.
When successfully created, the following popup screen is displayed.
*When a file already exists under the same name, a message confirming the overwriting of this file appears.
If selected "Yes", overwriting is executed.
IV - 150
10. Device Monitor Operations
10.3 Sampling Trace
GX-Developer project
Onboard Input Onboard
Trace file
Trace file
Input data Trace condition Trace count, trace point, trigger point, trace data, etc.
Trace result Trace data of bit device and word device
File format GX-Developer project's trace file or the trace file written with the onboard
Note) Trace file format is differed between GX-Developer and onboard.
(Note 1) Trace data (trace condition + trace result) is discarded by turning the NC power OFF.
(Note 2) Input/output of trace file is not possible during trace.
(Note 3) Trace file created with the GX-Developer cannot be read if the trace file includes the trace
conditions that are not supported by the MITSUBISHI CNC.
IV - 151
10. Device Monitor Operations
10.3 Sampling Trace
GX-Developer project
Onboard Onboard
Output
Trace file Trace file
Output data Trace condition Trace count, trace point, trigger point, trace data, etc.
Trace result Trace data of bit device and word device
File format Trace file that is unique to the onboard
(Note 1) Input/output o trace file is not possible during trace.
(Note 2) The trace file written with the onboard cannot be read with the GX-Developer.
(There is no compatibility)
IV - 152
10. Device Monitor Operations
10.3 Sampling Trace
IV - 153
10. Device Monitor Operations
10.3 Sampling Trace
GX-Developer project
Onboard
Onboard
Trace file
Trace file
Deletion data Trace condition Trace count, trace point, trigger point, trace data, etc.
Trace result Trace data of bit device and word device
File format Trace file output with the onboard
(Note 1) Only the trace file that has been output with the onboard can be deleted. Trace file created with
the GX-Developer cannot be deleted.
IV - 154
10. Device Monitor Operations
10.3 Sampling Trace
(b) Select the TRACE FILE NAME menu. When selected, the cursor is moved to the file name field.
(c) Press the ↑ / ↓ key and specify the sampling trace file name to be input.
(d) Select the EXECUTE menu. When selected, a screen confirming whether the specified sampling trace
file is OK to delete or not appears.
(e) If selected "YES" on the confirmation screen, deletion of trace file will be executed. If selected "NO",
deletion will not be executed. After the execution, the SAMPLING TRACE (DELETE FILE) screen will be
closed.
(3) Stop the file deletion and close the popup screen.
(a) Press the menu key. File deletion will not be executed.
IV - 155
10. Device Monitor Operations
10.3 Sampling Trace
(b) Select the SELECT PROJECT → LIST menu to specify the project.
By selecting the DRIVE/PATH menu, a direct input is possible, as well, to specify the drive and path.
(c) Select the PROJECT NAME menu to specify the project name.
(d) Press the SELECT menu. When selected, the "SELECT PROJECT" screen will be closed.
*When the CANCEL menu is pressed, the "SELECT PROJECT" screen is closed without selecting a
project.
* An error message appears if the specified project name is illegal. (The "SELECT PROJECT" screen will
not be closed at this time.)
(3) Stop the file deletion and close the popup screen.
(a) Press the menu key. File deletion will not be executed.
IV - 156
11. Setting the Parameters
Parameter Outline
PROGRAM SETTING The execution order for executing multiple PLCs on the NC is
designated.
COMMON POINTER SETTING The common pointer settings for the multi-program method are
displayed.
IV - 157
11. Setting the Parameters
11.1 Setting the Program
The execution order for executing multiple PLCs on the NC can be designated.
The execution order is registered under "EXE.ORDER" on the "PROGRAM SETTING" popup screen.
Refer to "II PROGRAMMING EXPLANATION 2.4 Multi-program Method" for details on execution order.
Up to 20 programs can be registered.
(Note 1) Open the parameter data and program to be set on the onboard editing area.
(Note 2) Do not register programs with the same name in the "EXE. ORDER" list.
High
↑
Execution order
↓
Low
Menus corresponding
to popup screen
High
↑
Execution
order
↓
Low
IV - 158
11. Setting the Parameters
11.1 Setting the Program
IV - 159
11. Setting the Parameters
11.2 Common Pointer Setting
The head P No. of the common pointer (which is used to call the sub-routine programs from all the programs)
can be changed.
Refer to "II PROGRAMMING EXPLANATION 5.3.11 Pointer P" for details on the common pointer.
(Note 1) Set the common pointer within the range from P0 to P2047.
(Note 2) The head P No. of the common pointer is set to enable the program execution by the multi
program method.
(Note 3) When executing the program with the conventional independent program method, leave it as
blank and press the "SET" button.
(Note 4) When using the multi-program method, if the COMMON POINTER NO. setting area is blank (no
data is set), the default value, P1800 and after, will be applied as the common pointer.
Menus corresponding to
popup screen
IV - 160
12. File Operations
700
12. File Operations Standard Simple
70
In the onboard editing area, PLC data can be added, deleted and renamed, and also the initial settings can
be made.
Menus corresponding
to popup screen
(Supplement)
If the DATA DELETE or DATA RENAME menu key is selected after selecting data from the list,
the data name selected in the list will be set as the data name (old data name) in the respective
popup screen.
IV - 161
12. File Operations
12.1 Adding New Data
(Note 1) The newly added data should be saved with the operations given in "12.2 Saving PLC Data in
Temporary Memory". After that, the data can be automatically updated to the temporary memory
with the "circuit conversion" operation.
(Note 2) Program and device comment data can be created. Parameters cannot be newly created. When
creating program data for a PLC message, refer to "4.2 Types of Data" and set the designated data
name.
(Note 3) When there is no parameter data in the onboard editing area, default parameter data is created and
used.
(Note 4) When the same name data already exists, a popup screen confirming an overwrite appears.
Menus corresponding
to popup screen
(e) Select the OK menu. The "DATA NEW" popup menu will close, and the newly added PLC data
will appear in the data list on the "FILE" popup screen.
IV - 162
12. File Operations
12.2 Deleting PLC Data
PLC in the onboard editing area can be deleted. (The data in the temporary memory is not deleted.)
(Note 1) The program and device comment data can be deleted. Parameters cannot be deleted.
Menus corresponding
to popup screen
IV - 163
12. File Operations
12.3 Renaming the PLC Data
(Note 1) After renaming the data, save it once with the operations explained in "12. 2 Saving PLC Data in
Temporary Memory". After that, the data can be automatically updated to the temporary memory
with the "circuit conversion" operation.
(Note 2) Program and device comment data can be renamed. Parameters cannot be renamed.
(Note 3) The name cannot be changed to an existing name. Delete the existing name before designating it
as a new name.
" DATA RENAME " popup screen
Menus corresponding
to popup screen
(f) Select the OK menu. The "DATA RENAME" popup window will close, and the designated data
name will be changed in the data list on the "FILE" popup screen.
IV - 164
12. File Operations
12.4 Initialization
(Note 1) This function is an initial setting carried out to create new PLC (ladders) with the onboard.
(Note 2) The data created with initialization is located in the onboard editing area.
(Note 3) After creating the data with initialization, save it once with the operations explained in "12. 2 Saving
PLC Data in Temporary Memory". After that, the data can be automatically updated to the
temporary memory with the "circuit conversion" operation.
Menus corresponding
to popup screen
(2) Initialization
(a) Confirm the displayed message.
(b) Select the YES menu key to initialize.
Select the NO menu key to cancel the initialization.
* The popup window automatically closes when the YES or NO menu key is pressed.
(c) If YES is selected and initialization is completed, the data created with initialization will appear in
the list on the "FILE" screen.
IV - 165
13. NC File Operations
IV - 166
13. NC File Operations
13.1 Opening PLC Data from the Temporary Memory
Menus corresponding
to popup screen
IV - 167
13. NC File Operations
13.1 Opening PLC Data from the Temporary Memory
Menus corresponding
to popup screen
Switches valid/invalid of the checkbox for all the data in the list.
(6) SELECT/CANCEL
Switches valid/invalid of the checkbox for the selected data in the list.
"SP (space)" key can also be used for this operation.
When the listed data with a checkbox is not selected, no process occurs.
(Example)
• When data is selected
IV - 168
13. NC File Operations
13.1 Opening PLC Data from the Temporary Memory
IV - 169
13. NC File Operations
13.2 Saving PLC Data to the Temporary Memory
700
13.2 Saving PLC Data to the Temporary Memory Standard Simple
70
Automatic Automatic
PLC data edited or monitored, or for which the parameters were edited on the onboard, can be saved in the
temporary memory.
(Note 1) The PLC data in the temporary memory is lost when the NC power is turned OFF. Refer to "13.4
Writing the Temporary Memory's PLC Data to the ROM", and always save the data on the ROM.
The message "ROM-Write incomplete" appears in the message area until the data is saved in the
ROM.
(Note 2) If there is no PLC data in the onboard editing area, the list will be blank, and the SAVE button
will be displayed in gray.
(Note 3) Save is not possible in the temporary memory during PLC RUN. (An error message appears.)
When PLC is in RUN, a message appears to confirm whether to stop PLC to save the data.
When PLC is not stopped, the PLC data cannot be saved in the temporary memory. (An error will
appear.)
After successfully saved, a message confirming whether to have PLC returned to the RUN state is
displayed.
(Note that, however, if saving to the temporary memory is executed during PLC STOP, this
message will not be displayed.)
(Note 4) The program data saved in the temporary memory operates in the automatic update mode with
white background of LADDER screen.
"SAVE" popup screen
Menus corresponding
to popup screen
IV - 170
13. NC File Operations
13.2 Saving PLC Data to the Temporary Memory
Switches valid/invalid of the checkbox for all the data in the list.
(6) SELECT PARAM. + PROG.
Makes the parameters and program data in the list selectable.
(7) SELECT/CANCEL
Switches valid/invalid of the checkbox for the selected data in the list.
(8) Device comment storage destination setting
When the device comment storage destination is set to the location other than NC temporary memory,
DEVICE COMMENT displays the status of the folders that were designated in "DevCom Storage Dest.".
Refer to "6.2.1 Setting the Storage Destination of Device Comment" for details.
(Example) When device comment storage destination is specified
IV - 171
13. NC File Operations
13.3 Verifying with the PLC Data in the Temporary Memory
13.3 Verifying with the PLC Data in the Temporary Memory 700
70
Standard Simple
The PLC data (programs) in the onboard editing area can be verified with the PLC data (program) in the
temporary memory.
(Note 1) Only programs can be verified. (Device comments and parameters cannot be verified.)
(Note 2) Multiple programs cannot be verified simultaneously. (Always verify the programs one at a time.)
(Note 3) When there is no PLC data in either the onboard editing area or temporary memory, the list
becomes blank and the "EXECUTE" button is displayed in gray.
(Note 4) With M720 series (when the display unit's OS is CE), drive cannot be selected.
Menus corresponding
to popup screen
IV - 172
13. NC File Operations
13.3 Verifying with the PLC Data in the Temporary Memory
Menus corresponding
to popup screen
(6) SELECT/CANCEL
Switches valid/invalid of the checkbox for the selected data in the list.
IV - 173
13. NC File Operations
13.4 Writing PLC Data in Temporary Memory to ROM
The PLC data in the temporary memory can be written to the ROM. The data in the temporary memory,
including the date data, is copied to the ROM.
(Note 1) The data in the temporary memory is lost when the NC power is turned OFF, so always save the
data in the ROM.
(Note 2) The PLC data in the onboard editing area cannot be written directory to the ROM.
(Note 3) ROM writing is not possible during PLC RUN. (An error message appears.)
When PLC is in RUN, a message appears to confirm whether to stop PLC to execute the ROM write
operation.
ROM write is not possible if PLC is not stopped. (An error message appears.)
After ROM write operation is successfully completed, a message confirming whether to have PLC
returned to the RUN state is displayed.
(Note that, however, when ROM write operation is executed during PLC STOP, a message
confirming a return to the RUN state is not displayed.)
(Note 4) When the temporary memory is formatted (in the state where date of creation is not obtained), an
error appears and the "YES" button is displayed in gray.
(Note 5) The date displayed on the "ROM WRITE" screen is the date that the PLC data was last saved in the
temporary memory. The ROM date is also the date that the PLC data was last saved in the
temporary memory.
"ROM WRITE" popup screen (The screen is an example of 700 Series)
Menus corresponding
to popup screen
IV - 174
13. NC File Operations
13.5 Deleting the PLC Data from the Temporary Memory
13.5 Deleting the PLC Data from the Temporary Memory 700
70
Standard Simple
The PLC data in the temporary memory can be deleted.
(Note 1) If there is no PLC data in the temporary memory, the list will be blank, and the DELETE button
will be displayed in gray.
(Note 2) PLC data in the temporary memory cannot be deleted during PLC RUN. (An error message
appears.)
When PLC is in RUN, a message appears to confirm whether to stop PLC to delete the data.
When PLC is not stopped, the PLC data in the temporary memory cannot be deleted. (An error will
appear.)
A message confirming whether to return the PLC to RUN state will be displayed after deletion is
completed.
(Note that when PLC data in the temporary memory is deleted during PLC STOP, a message
confirming whether to return to the RUN state will not be displayed.)
(Note 3) When the program in automatic update mode is deleted, the mode will be changed to local editing
mode (LADDER screen background is blue) in 700 Series.
Menus corresponding
to popup screen
Switches valid/invalid of the checkbox for all the data in the list.
IV - 175
13. NC File Operations
13.5 Deleting the PLC Data from the Temporary Memory
(6) SELECT/CANCEL
Switches valid/invalid of the checkbox for the selected data in the list.
IV - 176
13. NC File Operations
13.6 Formatting the Temporary Memory
(Note 1) The PLC data in the temporary memory is deleted when format is executed.
(Note 2) The temporary memory cannot be formatted during PLC RUN. (An error will appear.)
(Note 3) The mode in which a program is displayed changes from automatic update mode to local editing
mode (LADDER screen background is light blue).
Menus corresponding
to popup screen
IV - 177
13. NC File Operations
13.7 Controlling the PLC RUN/STOP
700
13.7 Controlling the PLC RUN/STOP Standard Simple
70
Menus corresponding
to popup screen
When selected, the "PLC RUN/STOP" popup screen will appear at the center of the screen.
IV - 178
13. NC File Operations
13.8 Updating the PLC Version (Maintenance Function)
700
13.8 Updating the PLC Version (Maintenance Function) Standard Simple
70
This function is used for maintenance. The following existing functions are carried out in a batch.
(1) The ladders are read out from the external device (IC card).
(2) The read ladders are saved in the NC's temporary memory.
(3) The data saved in the NC's temporary memory is written to the ROM.
(Note 1) Only programs, device comments and parameters that already exist in the NC can be upgraded. (A
different program, device comment and parameter cannot be written to the NC.)
(Note 2) When PLC is in RUN, a message appears to confirm whether to stop PLC to upgrade the ladder.
When PLC is not stopped, ladder cannot be upgraded. (An error will appear.)
A message confirming whether to return the PLC to RUN state will be displayed after upgrading of
the ladder is completed.
(Note that when the ladder is upgraded during PLC STOP, a message confirming whether to return
to the RUN state will not be displayed.)
(Note 3) This function cannot be used unless the password is released. (The PROGRAM UPDATE menu
button will be displayed in gray.)
(Note 4) If there is no ladder file in the external device's "\lad" folder, "LIST" will be displayed blank and the
"YES" and "LIST" button will appear in gray.
(Note 5) Among the PLC data to be upgraded, the data stored in project format is given priority.
(Note 6) When the device comment storage destination is specified as "storage destination specified", the
device comment of the specified path will be the one to be upgraded.
(1) Method to store program, device comment and parameter within the same fixed file
The upgrading data must be stored in the external device (IC card) \lad folder (folder name is fixed).
* If there is data stored in the project format, that data shall be given priority.
[IC CARD]
IC (G: )
IC(G:)
lad
lad
LAD1.wgp
LAD2.wgp
Program
LAD3.wgp
comm1.wcd
comm2.wcd Device comment
comm3.wcd
param.wpa Parameter
IV - 179
13. NC File Operations
13.8 Updating the PLC Version (Maintenance Function)
[IC CARD]
IC (G: )
lad PLC project folder (name is fixed)
plcproj
Project.inf
Gppw.gp
Gppw.gpj
ProjectDB.mdb
Resource
Param.wp
Pou
Body
lad1.wgp
lad2.wgp
lad3.wgp
Others
comm1.wc
comm2.wc
comm3.wc
IV - 180
13. NC File Operations
13.8 Updating the PLC Version (Maintenance Function)
(2) When the storage destination of device comment is specified as "storage destination specified":
Version up
destination will be
the device comment
specified as the
storage destination.
(b) Select the YES menu key. The "PLC VERSION UP" popup screen will close, and the ladder
version upgrading will start.
The following popup screen appear in sequence during ladder version upgrading.
IV - 181
13. NC File Operations
13.8 Updating the PLC Version (Maintenance Function)
Transmission of programs to NC
The programs are being written.
Select the "OK" menu key to return to the "NC FILE" screen
(4) SEL.ALL/CANCEL
Switches valid/invalid of the checkbox for all the data in the list.
(5) SELECT/CANCEL
Switches valid/invalid of the checkbox for the selected data in the list.
IV - 182
13. NC File Operations
13.9 Keyword
Keyword is used to protect the sequence programs stored in CNC. Data is protected from being read or
overwritten by GX Developer or with the onboard PLC edit function.
A keyword protects a whole range of data. Only the files with particular names can be free from the keyword
protection.
Only GX Developer can register and cancel the keyword. Onboard is used only to disable the keyword
temporarily. For details of the keyword function, refer to "4.8 Keyword Registration" in the section "III.
PERIPHERAL DEVELOPMENT ENVIRONMENT".
The following two ways are available to disable the keyword.
• Disabling the keyword on the KEYWORD screen
• Disabling the keyword as required at the read or write operation.
The details of the display of "Keyword Status" on this screen are as follows.
• "------" : Status is uncertain. (No keyword is disabled or registered.)
• "Disable keyword" : The keyword is being disabled.
IV - 183
13. NC File Operations
13.9 Keyword
If the keyword is successfully disabled, "Keyword Status" is changed from "------" to "Disable keyword". If
not, the popup screen appears and shows the message "Keyword is not correct...".
(Note 1) Any "fictitious keyword" can also be disabled when no keyword is registered.
IV - 184
13. NC File Operations
13.9 Keyword
Input the keyword and click the EXECUTE menu key. The operation continues after the keyword has
been successfully disabled.
The keyword, once disabled, stays disabled until any operation enables it.
The following popup screen appears when the keyword has not been disabled.
IV - 185
13. NC File Operations
13.10 File list
IV - 186
14. External File Operations
700
14. External File Operations Standard Simple
70
The PLC data can be opened from, saved to and verified with GX Developer projects in the external device,
and projects can be deleted.
In 700 Series
"EX FILE" screen
IV - 187
14. External File Operations
In 70 Series
"EX FILE" screen
IV - 188
14. External File Operations
14.1 Opening PLC Data from a Project
The PLC data for a GX Developer project can be opened from the external device.
(Note 1) PLC data read in from the temporary memory and PLC data read in from an external device can
both be displayed in the onboard editing area.
(Note 2) The OPEN button on the "OPEN PROJECT" popup screen is valid when the PLC data list is
correctly read with "SELECT PROJECT" operations.
(Note 3) The drive cannot be selected for the M720 Series (display unit OS is CE).
(Note 4) When opening parameter data, parameter in the onboard editing area is used if no parameter data
had been selected. If there is no parameter data in the onboard editing area, default parameter data
is created and used.
(Note 5) SFC projected created with the GX-Developer, project of label program, and CPU with other than
type Q4A cannot be opened normally. (An error occurs.)
(Note 6) The common comment created with the GX-Developer, "COMMENT", cannot be used on the
onboard.
(Note 7) In 700 Series, a program opened from an external device will become the local edit mode.
(Note 8) In 70 Series, only compact flash (CF) cards are available as external device.
In 700 Series
"OPEN PROJECT" popup screen
Menus corresponding
to popup screen
IV - 189
14. External File Operations
14.1 Opening PLC Data from a Project
Menus corresponding
to popup screen
(b) Select the DRIVE menu key, and designate the drive.
(c) Select the LIST menu key, and designate the path of the PLC data displayed under "LIST".
* The drive and path can be directly designated with the DRIVE/PATH menu key.
(d) Select the PROJECT NAME menu key, and designate the name of the file (project) to be read in.
* Normally when selected from the list, this is automatically set.
(e) Select the SELECT menu key. The "SELECT PROJECT" popup screen will close, and the check
marks for the read PLC data will be validated on the "OPEN PROJECT" screen.
* Once set, the drive, path and project name are held until the onboard is ended.
* For some machine types, drive/path/project names are not retained.
* If data with the same name exists, an overwrite confirmation popup screen will appear. Select the
operation to be taken.
Menus corresponding
to popup screen
IV - 190
14. External File Operations
14.1 Opening PLC Data from a Project
Switch valid/invalid of the checkbox for all the data in the list.
(7) SELECT/CANCEL
Switch valid/invalid of the checkbox for the selected data in the list.
In 70 Series
IV - 191
14. External File Operations
14.1 Opening PLC Data from a Project
IV - 192
14. External File Operations
14.2 Saving PLC Data from a Project
700
14.2 Saving PLC Data from a Project Standard Simple
70
The PLC data which has been edited and monitored, and the parameters set on the onboard, can be saved in
the external device. The saved data can be read as a project with GX Developer.
(Note 1) If there is no PLC data in the onboard editing area, the list will be blank, and the "EXTERNAL SAVE"
button will be displayed in gray.
(Note 2) The drive cannot be selected for the M720 Series (display unit OS is CE).
(Note 3) In 70 Series, only compact flash (CF) cards are available as external device.
In 700 Series
Menus corresponding
to popup screen
IV - 193
14. External File Operations
14.2 Saving PLC Data from a Project
Menus corresponding
to popup screen
(b) Select the DRIVE menu key. Designate the save destination drive.
(c) Select the LIST menu key, and designate the path of the save destination displayed under
"LIST".
* The drive and path can be directly designated with the DRIVE/PATH menu key.
(d) Select the PROJECT NAME menu key, and designate the name of the file (project) to be saved.
(e) Select the SAVE menu key. The "EXTERNAL SAVE" popup screen will close, and the data will
be saved with the designated drive, path and file name. If a file with the same name already exists,
an overwrite confirmation popup screen will appear. Confirm and then save.
Menus corresponding
to popup screen
* Once set, the drive, path and project name are held until the onboard is ended.
* For some machine types, drive/path/project names are not retained.
Switch valid/invalid of the checkbox for all the data in the list.
IV - 194
14. External File Operations
14.2 Saving PLC Data from a Project
(7) SELECT/CANCEL
Switch valid/invalid of the checkbox for the selected data in the list.
In 70 Series
IV - 195
14. External File Operations
14.2 Saving PLC Data from a Project
IV - 196
14. External File Operations
14.3 Deleting a Project
700
14.3 Deleting a Project Standard Simple
70
In 700 Series
"DELETE PROJECT" popup screen
Menus corresponding
to popup screen
IV - 197
14. External File Operations
14.3 Deleting a Project
Menus corresponding
to popup screen
(e) When the YES menu key is selected, deletion will be executed, and the "DELETE
CONFIRMATION" popup screen and "DELETE PROJECT" popup screen will close.
When the NO menu key is selected, the deletion process will be canceled, and the "DELETE
CONFIRMATION" popup screen will close.
* Drive/path/project names set once will be held even after terminating the onboard.
When the onboard is started up again, the path specified last with external file operation is displayed.
* For some machine types, drive/path/project names are not retained.
IV - 198
14. External File Operations
14.3 Deleting a Project
In 70 Series
IV - 199
14. External File Operations
14.4 Verifying the Project PLC Data
The PLC data (programs) being edited the onboard editing area can be verified with the PLC data (program)
in the external device.
(Note 1) Only programs can be verified. (Device comments and parameters cannot be verified.)
(Note 2) Multiple programs cannot be verified simultaneously. (Always verify the programs one at a time.)
(Note 3) The EXECUTE button on the "VERIFY PROJECT" popup screen is valid only after the PLC data
list has been correctly read in with the "SELECT PROJECT" operations.
(Note 4) The EXECUTE button on the "VERIFY PROJECT" popup screen is displayed in gray if there is no
PLC in the onboard editing area.
(Note 5) The drive cannot be selected for the M720 Series (display unit OS is CE).
(Note 6) In 70 Series, only compact flash (CF) cards are available as external device.
In 700 Series
"VERIFY PROJECT" popup screen
Menus corresponding
to popup screen
IV - 200
14. External File Operations
14.4 Verifying the Project PLC Data
(2) Reading the list of PLC data to be verified from the external device
(a) Select the SELECT PROJECT menu key. The "SELECT PROJECT" popup screen will appear.
* The default drive is "D", and the path is "/(route)".
Menus corresponding
to popup screen
(b) Select the DRIVE menu key, and designate the drive.
(c) Select the LIST menu key, and designate the path of the PLC data displayed under "LIST".
* The drive and path can be directly designated with the DRIVE/PATH menu key.
(d) Select the PROJECT NAME menu key, and designate the name of the file (project) to be read in.
(e) Select the SELECT menu key. The "SELECT PROJECT" popup screen will close, and the read
PLC data will appear under LIST on the "VERIFY PROJECT" screen.
The verification destination display will be "VERIFY DEST. (EXT.)".
* Drive/path/project names set once will be held even after terminating the onboard.
When the onboard is started up again, the path specified last with external file operation is displayed.
* For some machine types, drive/path/project names are not retained.
IV - 201
14. External File Operations
14.4 Verifying the Project PLC Data
Menus corresponding
to popup screen
(7) SELECT/CANCEL
Switch valid/invalid of the checkbox for the selected data in the list.
IV - 202
14. External File Operations
14.4 Verifying the Project PLC Data
In 70 Series
(2) Reading the list of PLC data to be verified from the external device
(a) Press the SELECT PROJECT menu key. The "PROJECT SELECT" popup screen will appear.
(b) Select the project to read and press the SELECT menu key or INPUT key. "SELECT
PROJECT" popup screen will close, and the read PLC data will appear in the list on the "VERIFY"
screen.
IV - 203
15. Diagnostics
15.1 PLC Diagnostics
700
15. Diagnostics Standard Simple
70
Menus corresponding
to popup screen
IV - 204
15. Diagnostics
15.1 PLC Diagnostics
IV - 205
16. Help
700
16. Help Standard Simple
70
General description of the keys used in the onboard and the version information are displayed.
(The screen is an example of 700 Series)
IV - 206
17. Error Messages
17.1 Warning Messages
700
17. Error Messages Standard Simple
70
IV - 207
17. Error Messages
17.2 User PLC Alarm
* When warning message and user PLC alarm occur at the same time, both are shown next each other in the
message display area.
IV - 208
V APPENDIX
Appendix 1. Comparison of PLC Related Sections in Each Model
Appendix 1.1 Development Tools, etc.
[Note] The arrows → and ⇔ in the list indicate the flow of information when using multiple tools.
V-1
Appendix 1. Comparison of PLC Related Sections in Each Model
Appendix 1.2 Devices and Device Assignments
V-2
Appendix 1. Comparison of PLC Related Sections in Each Model
Appendix 1.2 Devices and Device Assignments
V-3
Appendix 1. Comparison of PLC Related Sections in Each Model
Appendix 1.2 Devices and Device Assignments
V-4
Appendix 1. Comparison of PLC Related Sections in Each Model
Appendix 1.2 Devices and Device Assignments
V-5
Appendix 1. Comparison of PLC Related Sections in Each Model
Appendix 1.3 Instructions with Changed Designation Format
V-6
Appendix 1. Comparison of PLC Related Sections in Each Model
Appendix 1.3 Instructions with Changed Designation Format
Appendix 1.3.1 Alternative Circuits Resulted from the Ban on DEFR Instruction
When using GX Developer as a development tool, DEFR instruction has to be substituted with an alternative
instruction (ANDP), which has different performance specifications. DEFR instruction has to be substituted
and banned because they are expected to become obstacles when expanding PLC functions in the future. So,
Do not use DEFR instruction in M700 series.
In case DEFR instruction is currently used, substitute the ladder with another one, using the example of
alternative ladders shown below.
M0 DEFR M1 M100
M0 M1 M100
In the case of the ladder above, when M0 is turned OFF→ON (When M0 is ON and M1, or the operation
results of one scan prior, is OFF), M100 will turn ON.
In the case of the ladder other than above, M100 will turn OFF. Also, the operation results prior to DEFR
instruction (Operation result of LD M0 in the case above.) will be saved in M1.
M0 M1 M100
M1
V-7
Appendix 2. List of Instructions Usable with GX Developer
Appendix 2.1 Sequence Instructions
LDI
ORB ORB
AND
MPS MPS
ANI MRD MRD
OR MPP MPP
ORI INV
MEP
LDP
MEF
LDF
Vn
EGP
ANDP
Vn
EGF
ANDF
ORP
ORF
RST RST D
Master control instructions
PLS PLS D
Classifi- Instruction
Symbol
PLF PLF D cation sign
Master
MC n D
FF FF D control MC
MCR MCR n
DELTA DELTA D
DELTAP DELTAP D
V-8
Appendix 2. List of Instructions Usable with GX Developer
Appendix 2.2 Comparison Operation Instructions
PAGE PAGE n
LD S1 S2 LDD D S1 S2
AND S1 S2 ANDD D S1 S2
OR S1 S2 ORD D S1 S2
LD S1 S2 LDD D S1 S2
AND S1 S2 ANDD D S1 S2
OR S1 S2 ORD D S1 S2
LD S1 S2 LDD D S1 S2
AND S1 S2 ANDD D S1 S2
16-bit 32-bit
OR S1 S2 ORD D S1 S2
data data
compar- S1 S2 compar- LDD D S1 S2
LD
ison ison
AND S1 S2 ANDD D S1 S2
OR ORD D S1 S2
S1 S2
LD S1 S2 LDD D S1 S2
AND S1 S2 ANDD D S1 S2
OR ORD D S1 S2
S1 S2
LD S1 S2 LDD D S1 S2
AND S1 S2 ANDD D S1 S2
OR S1 S2
ORD D S1 S2
V-9
Appendix 2. List of Instructions Usable with GX Developer
Appendix 2.2 Comparison Operation Instructions
LDE E S1 S2 LD$ $ S1 S2
ANDE E S1 S2 AND$ $ S1 S2
ORE E S1 S2 OR$ $ S1 S2
LDE E S1 S2 LD$ $ S1 S2
ANDE E S1 S2 AND$ $ S1 S2
ORE E S1 S2
OR$ $ S1 S2
LDE E S1 S2 LD$ $ S1 S2
ANDE E S1 S2 AND$ $ S1 S2
ORE OR$ $ S1 S2
E S1 S2
LDE E S1 S2 LD$ $ S1 S2
ANDE E S1 S2 AND$ $ S1 S2
ORE OR$ $ S1 S2
E S1 S2
LDE E S1 S2 LD$ $ S1 S2
ANDE E S1 S2 AND$ $ S1 S2
ORE OR$ $ S1 S2
E S1 S2
Block BKCMP S1 S2 D n
BKCMP
data
compar- BKCMP BKCMP S1 S2 D n
ison
BKCMP BKCMP S1 S2 D n
BKCMP BKCMP S1 S2 D n
BKCMP BKCMP S1 S2 D n
BKCMP BKCMP S1 S2 D n
BKCMP P BKCMP P S1 S2 D n
BKCMP P BKCMP P S1 S2 D n
BKCMP P BKCMP P S1 S2 D n
BKCMP P BKCMP P S1 S2 D n
BKCMP P BKCMP P S1 S2 D n
BKCMP P BKCMP P S1 S2 D n
V - 10
Appendix 2. List of Instructions Usable with GX Developer
Appendix 2.2 Comparison Operation Instructions
+P +P S1 S2 D B+P B+P S1 S2 D
S D B B S D
P P S D B P B P S D
S1 S2 D B B S1 S2 D
P P S1 S2 D B P B P S1 S2 D
BIN D+ S D BCD DB+ S D
D+ DB+
32-bit 8-digit
addition/ D+P D+P S D addition/ DB+P DB+P S D
subtrac- subtrac-
tion D+ D+ S1 S2 D tion DB+ DB+ S1 S2 D
D D S D DB DB S D
D P D P S D DB P DB P S D
D D S1 S2 D DB DB S1 S2 D
D P D P S1 S2 D DB P DB P S1 S2 D
BIN S1 S2 D BCD B S1 S2 D
B
16-bit 4-digit
multipli- P P S1 S2 D multipli- B P B P S1 S2 D
cation/ cation/
division / / S1 S2 D division B/ B/ S1 S2 D
/P /P S1 S2 D B/P B/P S1 S2 D
BIN D S1 S2 D BCD DB S1 S2 D
D DB
32-bit 8-digit
multipli- D P D P S1 S2 D multipli- DB P DB P S1 S2 D
cation/ cation/
division D/ D/ S1 S2 D division DB/ DB/ S1 S2 D
V - 11
Appendix 2. List of Instructions Usable with GX Developer
Appendix 2.2 Comparison Operation Instructions
E P E P S1 S2 D DFLTP DFLTP S D
Floating- E S1 S2 D Floating- INT S D
E INT
point point ->
data E P E P S1 S2 D BIN INTP INTP S D
multiplic- conver-
ation/ E/ E/ S1 S2 D sion DINT DINT S D
division
E/P E/P S1 S2 D DINTP DINTP S D
BIN block BK+ S1 S2 D n BIN DBL S D
BK+ DBL
addition/ 16-bit <->
subtrac- BK+P BK+P S1 S2 D n 32-bit DBLP DBLP S D
tion conver-
BK BK S1 S2 D n sion WORD WORD S D
BK P BK P S1 S2 D n WORDP WORDP S D
Charac- $+ S D BIN -> GRY S D
$+ GRY
ter gray code
string $+P $+P S D conver- GRYP GRYP S D
data sion
coupling $+ $+ S1 S2 D DGRY DGRY S D
V - 12
Appendix 2. List of Instructions Usable with GX Developer
Appendix 2.2 Comparison Operation Instructions
V - 13
Appendix 2. List of Instructions Usable with GX Developer
Appendix 2.3 Application Instructions
DRCRP DRCRP D n
DXOR DXOR S D
Left DROL D n
DROL
DXORP S D rotation
DXORP
DROLP DROLP D n
DXOR S1 S2 D
DXOR
DRCL DRCL D n
DXORP S1 S2 D
DXORP DRCLP D n
DRCLP
BKXOR S1 S2 D n
BKXOR
BKXORP S1 S2 D n
BKXORP
V - 14
Appendix 2. List of Instructions Usable with GX Developer
Appendix 2.3 Application Instructions
BSETP BSETP D n
UNIP UNIP S D n
TESTP TESTP S1 S2 D
NUNIP NUNIP S1 D S2
DTEST DTEST S1 S2 D
WTOB WTOB S D n
V - 15
Appendix 2. List of Instructions Usable with GX Developer
Appendix 2.3 Application Instructions
FIFR FIFR S D
FIFRP FIFRP S D
FPOP FPOP S D
FPOPP FPOPP S D
FINS S D n
FINS
FINS S D n
FINSP
FDEL S D n
FDEL
FDELP S D n
FDELP
V - 16
Appendix 3. List of Special Relays and Special Registers
V - 17
Appendix 3. List of Special Relays and Special Registers
Appendix 3.1 Special Relay
V - 18
Appendix 3. List of Special Relays and Special Registers
Appendix 3.2 Special Register
V - 19
Appendix 3. List of Special Relays and Special Registers
Appendix 3.2 Special Register
Setting side
Device Name Operation Operation details
(Set time)
• After RUN, +1 is added every second of the medium speed System side
ladder. (At high
Count Nos. of 1
SD412 1-second counter • Count is repeated as follows. speed ladder
second unit
0→32767→-32768→0 (decimal) processing)
0→FFFF→0 (hexadecimal) *1
• Stores the n of 2n-second clock (SM420). (Default value: 30)
SD414 2n-second clock set 2n-second clock unit
The setting range is from 1 to 32767.
User side
V - 20
Appendix 4. List of PLC Alarms
"xx" in the
lower 16 ALM (Red) 0x20xx Number of Emergency 20 JUMP LABEL ○ ○
bits of the steps stop ERR
sub-status (S/W
1 indicates EMG)
the
program
No.
ALM (Red) 0x21xx Number of Emergency 21 DUP. LABEL(P) ○ ○
steps stop
(S/W
EMG)
V - 21
Appendix 4. List of PLC Alarms
Sequence program is included in F-ROM or temporary (1) Write the sequence program from the GX Developer or
memory area. internal PLC edit function, and then execute F-ROM
(1) Sequence program is not stored in F-ROM. writing.
(2) Sequence program is not written from the GX Developer or (2) If (1) does not solve the problem, there is a possibility of
internal PLC edit function. broken F-ROM.
(3) Sequence program cannot be read due to broken F-ROM.
Software instruction interruption illegal Contact Mitsubishi.
An error was found in data for the sequence program in
execution.
(1) Sequence program stored in F-ROM is broken.
(2) Sequence program under development (before writing into
F-ROM) is broken.
Label branching error (Before executing PLC) Check the branch destination of the CJ and CALL instructions
Occurs only when the bit selection parameter (#6452 bit6) existing in the steps occurred.
"branch destination label check valid" is set to "1".
(1) The CJ and CALL instructions were placed to a nonexistent
label.
(2) The CJ instruction was placed to the global label.
(Branching is possible only with the CALL instruction.)
Label duplication error (Before executing PLC) Correct the duplication of the labels existing in the steps
(1) When using the multi-programming method: occurred.
• Global labels are duplicated
• Local labels are duplicated within the same file
(2) When using the independent program method, labels are
duplicated.
Local label over (Before executing PLC) (1) Reduce the number of local labels used.
The boundary value set with the PC parameter (global label • Use as sequentially as possible from P0.
boundary value) has been exceeded by the total number of (2) Reset the PC parameter (global label boundary value).
local labels.
Global label boundary value error (Before executing PLC) (1) When using the multi-programming method, correct the
The contents of PC parameter (global label boundary value) is global label boundary value to an appropriate value.
not normal. (2) When using the independent program method, delete the
(1) When using the multi-programming method, a value global label boundary value.
greater than the maximum value is set.
(2) When using the independent program method, the global
label boundary value is set.
Reserved label error (Before executing PLC) (1) When using the multi-programming method, delete the
(1) When using the multi-programming method, disabled reserved label.
reserved label exists. (2) When using the independent program method:
(2) When using the independent program method, reserved • Delete the PC parameter program settings.
labels are duplicated. • Correct the duplication of reserved labels
Program setting error (Before executing PLC) (1) When using the multi-programming method, check the PC
(1) When using the multi-programming method, PC parameter parameter program settings.
setting is not correct. • Check the program settings and program name stored in
• PC parameter (program setting) is not set. the NC.
• Unstored program name is set. • Set the number to 20 or less.
• More than the maximum number of programs that can be (2) When using the independent program method:
set (20 programs) are set • Store only one program file.
(2) When using the independent program method, multiple
programs are stored.
V - 22
Appendix 4. List of PLC Alarms
"xx" in the
lower 16
bits of the
sub-status
1 indicates
the ALM (Red) 0x27xx Number of Emergency 27 LAD. CODE ERR △ △
program steps stop
No. (S/W
EMG)
V - 23
Appendix 4. List of PLC Alarms
RET instruction error Check the following matters for the entire sequence program
(1) RET instruction was not executed at the branch destination to be executed.
of the CALL instruction. (1) Check if RET instruction is programmed at the end of
(2) RET instruction was executed without execution of CALL sub-routine?
instruction. (2) Check if diverged to the other operation in the middle of
sub-routine and RET instruction is not executed.
(3) Check if jumped to the END reservation label (P4005) in
the middle of sub-routine.
(4) Check if there is delimiter (FEND instruction) between
adjacent program and sub-routine program.
Ladder code error (Before executing PLC) Transferring, storing and F-ROM writing of the sequence
An error was found in data for the sequence program to be program must be re-executed with the GX Developer or PLC
executed. onboard edit function.
(1) Disabled PLC instruction is used.
(2) Sequence program stored in F-ROM is broken.
(3) Sequence program under development (before writing into
F-ROM) is broken.
No main processing ladders (Before executing PLC) (1) When using the multi-programming method, check the PC
Main processing program to be executed cannot be identified. parameter program settings.
(1) When using the multi-programming method, main (2) When using the independent program method, add the
processing "scan" is not set in the PC parameter (program reservation label (P4002) for the medium speed ladder.
setting).
(2) When using the independent program method, no
reservation ladder for the main processing ladder is
available.
Execution area over (Before executing PLC) Check the PC parameter (program setting) and set so that the
The total number of steps for the ladder to be executed has total number of steps for the ladder to be executed does not
exceeded the size of PLC processor execution area. exceed the PLC processor execution area.
FOR instruction nesting over Check the number of FOR instruction's nestings in the steps
17th level of nesting for FOR instruction was executed. generated, and keep the number to 16 or less.
NEXT instruction error (1) Check the NEXT instruction existing in the number of steps
(1) NEXT instruction was executed before FOR instruction. generated and correct.
(2) After FOR instruction, END(FEND) was executed before (2) Check the ladder circuit of the program No. generated and
NEXT instruction. correct. (Note that the number of steps at the error position
is displayed as "0".)
• Check if JMP,CALL,CJ instructions were executed
between FOR and NEXT instruction, and NEXT
instruction was jumped.
• Check if FOR instruction and NEXT instruction are all
paired.
BREAK instruction error Check the BREAK instruction existing in the step generated
BREAK was executed outside the range between FOR and and correct.
NEXT instruction.
Software exceptional interruption (BCD instruction error) has Check the usage of BCD,DBCD instructions existing in the
occurred. steps occurred.
With BCD and DBCD instructions, BIN value outside its input
range was attempted to be converted into BCD.
V - 24
Appendix 4. List of PLC Alarms
"xx" in the
lower 16 ALM (Red) 0x82xx Number of Emergenc 82 EXC.INT(D-BUS) △ △
bits of the steps y stop
sub-status (S/W
1 indicates EMG)
the
program ALM (Red) 0x83xx Number of Emergency 83 EXC.INT(INST.) △ △
No. steps stop
(S/W
EMG)
V - 25
Appendix 4. List of PLC Alarms
Software exceptional interruption (BIN instruction error) has Check the usage of BIN,DBIN,B+,B-,B*,B/ instructions existing
occurred. in the steps occurred.
(1) With BIN and DBIN instructions, BCD value outside its
input range was attempted to be converted into BIN.
(2) With B+,B-,B*,B/ instructions, BCD value of argument 1 or
2 is outside the range between 0 and 9999.
Software exceptional interruption (Bus error) has occurred. Contact Mitsubishi.
Software exceptional interruption (Unmounted instruction (1) Set the bit selection parameter (#6452 bit6) "branch
error) has occurred. destination label check valid" to "1" and check the
(1) When HN102 card is not mounted and the bit selection branching step to the undefined label.
parameter (#6452 bit6) "branch destination label check (2) Contact Mitsubishi.
valid" is set to "0", jumped to an undefined label.
(2) Sequence program in execution is broken.
Software exceptional interruption (Instruction format error) has Contact Mitsubishi.
occurred.
Software exceptional interruption (Instruction bus error) has (1) Set the bit selection parameter (#6452 bit6) "branch
occurred. destination label check valid" to "1" and check the
(1) When HN102 card is not mounted and the bit selection branching step to the undefined label.
parameter (#6452 bit6) "branch destination label check (2) Contact Mitsubishi.
valid" is set to "0", jumped to an undefined label.
(2) Sequence program in execution is broken.
Software exceptional interruption (CALL/CALLS/RET Contact Mitsubishi.
instruction error) has occurred.
V - 26
Revision History
Sept. 2005 IB(NA)1500036-B Contents were revised to correspond to Mitsubishi CNC700 Series software version
B1.
The following sections were deleted from "IV EXPLANATION OF BUILT-IN EDITING
FUNCTION".
• 14.5 Copying Project Data
• 14.6 Reading Projects from the HD's Fixed Folder
Date of revision Manual No. Revision details
Jun. 2006 IB(NA)1500036-D Contents were revised to correspond to Mitsubishi CNC700 Series software version
C1.
Description about extending PLC instructions was added throughout the following
chapters.
• 6. Explanation of Instructions
• 7. Basic Instructions
• 8. Function Instructions
Mar. 2007 IB(NA)1500036-F Modifications were made to the followings in "II PROGRAMMING EXPLANATION".
• 10.1 Tool Life Management (Machining Center System)
• 10.3 PLC Axis Control
ASEAN FA Center
TAIWAN FA Center
North America FA Center (MITSUBISHI ELECTRIC AUTOMATION INC.) ASEAN FA Center (MITSUBISHI ELECTRIC ASIA PTE. LTD.)
Illinois CNC Service Center Singapore CNC Service Center
500 CORPORATE WOODS PARKWAY, VERNON HILLS, IL. 60061, U.S.A. 307 ALEXANDRA ROAD #05-01/02 MITSUBISHI ELECTRIC BUILDING SINGAPORE 159943
TEL: +1-847-478-2500 (Se FAX: +1-847-478-2650 (Se TEL: +65-6473-2308 FAX: +65-6476-7439
California CNC Service Center Thailand MITSUBISHI CNC Agent Service Center (F. A. TECH CO., LTD)
5665 PLAZA DRIVE, CYPRESS, CA. 90630, U.S.A. 898/19,20,21,22 S.V. CITY BUILDING OFFICE TOWER 1 FLOOR 12,14 RAMA III RD BANGPONGPANG,
TEL: +1-714-220-4796 FAX: +1-714-229-3818 YANNAWA, BANGKOK 10120. THAILAND
Georgia CNC Service Center TEL: +66-2-682-6522 FAX: +66-2-682-6020
2810 PREMIERE PARKWAY SUITE 400, DULUTH, GA., 30097, U.S.A. Malaysia MITSUBISHI CNC Agent Service Center
TEL: +1-678-258-4500 FAX: +1-678-258-4519 (FLEXIBLE AUTOMATION SYSTEM SDN. BHD.)
New Jersey CNC Service Center 60, JALAN USJ 10/1B 47620 UEP SUBANG JAYA SELANGOR DARUL EHSAN MALAYSIA
200 COTTONTAIL LANE SOMERSET, NJ. 08873, U.S.A. TEL: +60-3-5631-7605 FAX: +60-3-5631-7636
TEL: +1-732-560-4500 FAX: +1-732-560-4531 JOHOR MITSUBISHI CNC Agent Service Satellite
Michigan CNC Service Satellite (FLEXIBLE AUTOMATION SYSTEM SDN. BHD.)
2545 38TH STREET, ALLEGAN, MI., 49010, U.S.A. NO. 16, JALAN SHAHBANDAR 1, TAMAN UNGKU TUN AMINAH, 81300 SKUDAI, JOHOR MALAYSIA
TEL: +1-847-478-2500 FAX: +1-269-673-4092 TEL: +60-7-557-8218 FAX: +60-7-557-3404
Ohio CNC Service Satellite Indonesia MITSUBISHI CNC Agent Service Center
62 W. 500 S., ANDERSON, IN., 46013, U.S.A. (PT. AUTOTEKNINDO SUMBER MAKMUR)
TEL: +1-847-478-2608 FAX: +1-847-478-2690 WISMA NUSANTARA 14TH FLOOR JL. M.H. THAMRIN 59, JAKARTA 10350 INDONESIA
Texas CNC Service Satellite TEL: +62-21-3917-144 FAX: +62-21-3917-164
1000, NOLEN DRIVE SUITE 200, GRAPEVINE, TX. 76051, U.S.A. India MITSUBISHI CNC Agent Service Center (MESSUNG SALES & SERVICES PVT. LTD.)
TEL: +1-817-251-7468 FAX: +1-817-416-1439 B-36FF, PAVANA INDUSTRIAL PREMISES M.I.D.C., BHOASRI PUNE 411026, INDIA
Canada CNC Service Center TEL: +91-20-2711-9484 FAX: +91-20-2712-8115
4299 14TH AVENUE MARKHAM, ON. L3R OJ2, CANADA BANGALORE MITSUBISHI CNC Agent Service Satellite
TEL: +1-905-475-7728 FAX: +1-905-475-7935 (MESSUNG SALES & SERVICES PVT. LTD.)
Mexico CNC Service Center S 615, 6TH FLOOR, MANIPAL CENTER, BANGALORE 560001, INDIA
MARIANO ESCOBEDO 69 TLALNEPANTLA, 54030 EDO. DE MEXICO TEL: +91-80-509-2119 FAX: +91-80-532-0480
TEL: +52-55-9171-7662 FAX: +52-55-9171-7698 Delhi MITSUBISHI CNC Agent Parts Center (MESSUNG SALES & SERVICES PVT. LTD.)
Monterrey CNC Service Satellite 1197, SECTOR 15 PART-2, OFF DELHI-JAIPUR HIGHWAY BEHIND 32ND MILESTONE GURGAON
ARGENTINA 3900, FRACC. LAS TORRES, MONTERREY, N.L., 64720, MEXICO 122001, INDIA
TEL: +52-81-8365-4171 FAX: +52-81-8365-4171 TEL: +91-98-1024-8895 FAX:
Brazil MITSUBISHI CNC Agent Service Center Philippines MITSUBISHI CNC Agent Service Center
(AUTOMOTION IND. COM. IMP. E EXP. LTDA.) (FLEXIBLE AUTOMATION SYSTEM CORPORATION)
ACESSO JOSE SARTORELLI, KM 2.1 18550-000 BOITUVA – SP, BRAZIL UNIT No.411, ALABAMG CORPORATE CENTER KM 25. WEST SERVICE ROAD SOUTH SUPERHIGHWAY,
TEL: +55-15-3363-9900 FAX: +55-15-3363-9911 ALABAMG MUNTINLUPA METRO MANILA, PHILIPPINES 1771
TEL: +63-2-807-2416 FAX: +63-2-807-2417
European FA Center (MITSUBISHI ELECTRIC EUROPE B.V.) Vietnam MITSUBISHI CNC Agent Service Center (SA GIANG TECHNO CO., LTD)
Germany CNC Service Center 47-49 HOANG SA ST. DAKAO WARD, DIST.1 HO CHI MINH CITY, VIETNAM
GOTHAER STRASSE 8, 40880 RATINGEN, GERMANY TEL: +84-8-910-4763 FAX: +84-8-910-2593
TEL: +49-2102-486-0 FAX:+49-2102486-591
South Germany CNC Service Center China FA Center (MITSUBISHI ELECTRIC AUTOMATION (SHANGHAI) LTD.)
KURZE STRASSE. 40, 70794 FILDERSTADT-BONLANDEN, GERMANY China CNC Service Center
TEL: +49-711-3270-010 FAX: +49-711-3270-0141 2/F., BLOCK 5 BLDG.AUTOMATION INSTRUMENTATION PLAZA, 103 CAOBAO RD. SHANGHAI 200233,
France CNC Service Center CHINA
25, BOULEVARD DES BOUVETS, 92741 NANTERRE CEDEX FRANCE TEL: +86-21-6120-0808 FAX: +86-21-6494-0178
TEL: +33-1-41-02-83-13 FAX: +33-1-49-01-07-25 Shenyang CNC Service Center
Lyon CNC Service Satellite TEL: +86-24-2397-0184 FAX: +86-24-2397-0185
Beijing CNC Service Satellite
U.K CNC Service Center 9/F, OFFICE TOWER1, HENDERSON CENTER, 18 JIANGUOMENNEI DAJIE, DONGCHENG DISTRICT,
TRAVELLERS LANE, HATFIELD, HERTFORDSHIRE, AL10 8XB, U.K. BEIJING 100005, CHINA
TEL: +44-1707-282-846 FAX:-44-1707-278-992 TEL: +86-10-6518-8830 FAX: +86-10-6518-8030
Italy CNC Service Center China MITSUBISHI CNC Agent Service Center
ZONA INDUSTRIALE VIA ARCHIMEDE 35 20041 AGRATE BRIANZA, MILANO ITALY (BEIJING JIAYOU HIGHTECH TECHNOLOGY DEVELOPMENT CO.)
TEL: +39-039-60531-342 FAX: +39-039-6053-206 RM 709, HIGH TECHNOLOGY BUILDING NO.229 NORTH SI HUAN ZHONG ROAD, HAIDIAN DISTRICT ,
Spain CNC Service Satellite BEIJING 100083, CHINA
CTRA. DE RUBI, 76-80 -APDO.420 08190 SAINT CUGAT DEL VALLES, BARCELONA SPAIN TEL: +86-10-8288-3030 FAX: +86-10-6518-8030
TEL: +34-935-65-2236 FAX: Tianjin CNC Service Satellite
Turkey MITSUBISHI CNC Agent Service Center RM909, TAIHONG TOWER, NO220 SHIZILIN STREET, HEBEI DISTRICT, TIANJIN, CHINA 300143
(GENEL TEKNIK SISTEMLER LTD. STI.) TEL: -86-22-2653-9090 FAX: +86-22-2635-9050
DARULACEZE CAD. FAMAS IS MERKEZI A BLOCK NO.43 KAT2 80270 OKMEYDANI ISTANBUL, Shenzhen CNC Service Satellite
TURKEY RM02, UNIT A, 13/F, TIANAN NATIONAL TOWER, RENMING SOUTH ROAD, SHENZHEN, CHINA 518005
TEL: +90-212-320-1640 FAX: +90-212-320-1649 TEL: +86-755-2515-6691 FAX: +86-755-8218-4776
Poland MITSUBISHI CNC Agent Service Center (MPL Technology Sp. z. o. o) Changchun Service Satellite
UL SLICZNA 34, 31-444 KRAKOW, POLAND TEL: +86-431-50214546 FAX: +86-431-5021690
TEL: +48-12-632-28-85 FAX: Hong Kong CNC Service Center
Wroclaw MITSUBISHI CNC Agent Service Satellite (MPL Technology Sp. z. o. o) UNIT A, 25/F RYODEN INDUSTRIAL CENTRE, 26-38 TA CHUEN PING STREET, KWAI CHUNG, NEW
UL KOBIERZYCKA 23, 52-315 WROCLAW, POLAND TERRITORIES, HONG KONG
TEL: +48-71-333-77-53 FAX: +48-71-333-77-53 TEL: +852-2619-8588 FAX: +852-2784-1323
Czech MITSUBISHI CNC Agent Service Center
(AUTOCONT CONTROL SYSTEM S.R.O. ) Taiwan FA Center (MITSUBISHI ELECTRIC TAIWAN CO., LTD.)
NEMOCNICNI 12, 702 00 OSTRAVA 2 CZECH REPUBLIC Taichung CNC Service Center
TEL: +420-596-152-426 FAX: +420-596-152-112 NO.8-1, GONG YEH 16TH RD., TAICHUNG INDUSTIAL PARK TAICHUNG CITY, TAIWAN R.O.C.
TEL: +886-4-2359-0688 FAX: +886-4-2359-0689
Taipei CNC Service Satellite
TEL: +886-4-2359-0688 FAX: +886-4-2359-0689
Tainan CNC Service Satellite
TEL: +886-4-2359-0688 FAX: +886-4-2359-0689
Every effort has been made to keep up with software and hardware revisions in the
contents described in this manual. However, please understand that in some
unavoidable cases simultaneous revision is not possible.
Please contact your Mitsubishi Electric dealer with any questions or comments
regarding the use of this product.
Duplication Prohibited
This manual may not be reproduced in any form, in part or in whole, without written
permission from Mitsubishi Electric Corporation.