















(Always read these cautions before using the product)
Before using this product, please read this manual and the related manuals introduced in this manual, and pay full attention to safety to handle the product correctly.
Please store this manual in a safe place and make it accessible when required. Always forward a copy of the manual to the end user.

*The manual number is given on the bottom left of the back cover.
Japanese Manual Version SH-080804-B
This manual confers no industrial property rights or any rights of any other kind, nor does it confer any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual.
A-2

This manual explains the common instructions required for programming of the QCPU.
modules (such as AJ71QC24 and AJ71PT32-S3) and to AD57 models, as well as PID control instructions, SFC
instructions and ST instructions.
Before using this product, please read this manual and the relevant manuals carefully and develop familiarity with the functions and performance of the Q series programmable controller to handle the product correctly.
Basic model QCPU Q00JCPU, Q00CPU, Q01CPU
High Perfomance model QCPU Q02CPU, Q02HCPU, Q06HCPU, Q12HCPU, Q25HCPU
Process CPU Q02PHCPU, Q06PHCPU, Q12PHCPU, Q25PHCPU
Redundant CPU Q12PRHCPU, Q25PRHCPU
Q04UDHCPU, Q06UDHCPU, Q10UDHCPU, Q13UDHCPU,
Q20UDHCPU, Q26UDHCPU, Q03UDECPU, Q04UDEHCPU,
Q06UDEHCPU, Q10UDEHCPU, Q13UDEHCPU,
Q20UDEHCPU
A-3
CPU module Model · Universal model QCPU


To understand the main specifications, functions, and usage of the CPU module, refer to the basic manuals.
Read other manuals as well when using a different type of CPU module and its functions.
Order each manual as needed, referring to the following list.
The numbers in the "CPU module" and the respective modules are as follows.


< Manual number (model code) > Description
CC-Link IE Controller Network Reference Manual
Specifications, procedures and settings before system operation, parameter
setting, programming, and troubleshooting of the CC-Link IE controller network module
Q Corresponding MELSECNET/H Network System Reference
Explains the specifications for a MELSECNET/H network system for PLC to PLC
Manual (PLC to PLC network)
network. It explains the procedures and settings up to operation, setting the parame-
ters, programming and troubleshooting.
Q Corresponding MELSECNET/H Network System Refer-
Explains the specifications for a MELSECNET/H network system for remote I/O
ence Manual (Remote I/O network)
network. It explains the procedures and settings up to operation, setting the
parameters, programming and troubleshooting.
Type MELSECNET, MELSECNET/B Data Link System
Describes the general concept, specifications, and part names and settings for
MELSECNET (II) and MELSECNET/B.
Describes various functions of the Ethernet module: e-mail function, PLC CPU
Q Corresponding Ethernet Interface Module
status monitoring, communication via MELSECNET/H or MELSECNET/10 net-
work system, communication using data link instructions, file transfer (using FTP)
and other functions.



This manual explains the common instructions required for programming of the QCPU.
The common instructions refer to all instructions except those dedicated to special function modules (such as AJ71QC24 and AJ71PT32-S3) and to AD57 models, as well as PID control instructions, SFC instructions and ST instructions.
Before reading this manual, check the functions, programming methods, devices and others that are necessary to create programs with the CPU in the manuals below:
(1) High Performance model QCPU

Explains the functions, programming methods, devices and others that are necessary to create programs with the CPU.
Describes the instructions other than those described in the manuals on the right.

(2) Basic model QCPU

Explains the functions, programming methods, devices and others that are necessary to create programs with the CPU.
Describes the instructions other than those described in the manuals on the right.
(3) Process CPU and Redundant CPU

Explains the functions, programming methods, devices and others that are necessary to create programs with the CPU.
1.1 Related Programming Manuals
Describes the instructions other than those described in the manuals on the right.

(4) Universal model QCPU

Explains the functions, programming methods, devices and others that are necessary to create programs with the CPU.
Describes the instructions other than those described in the manuals on the right.

This manual uses the generic names and abbreviations shown below to refer to Q series CPU modules, unless otherwise specified.
* indicates a part of the model or version.
Generic term/Abbreviation Description of Generic Name/Abbreviation
Q series Abbreviation for Mitsubishi MELSEC-Q series programmable controller
CPU module Generic term for Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU and Universal model QCPU
Basic model QCPU Generic term for Q00JCPU, Q00CPU and Q01CPU
High Performance model QCPU
Generic term for Q02CPU, Q02HCPU, Q06HCPU, Q12HCPU and Q25HCPU
Process CPU Generic term for Q02PHCPU, Q06PHCPU, Q12PHCPU and Q25PHCPU
Redundant CPU Generic term for Q12PRHCPU and Q25PRHCPU
Generic term for Q00UJCPU, Q00UCPU, Q01UCPU, Q02UCPU, Q03UDCPU,
Q03UDECPU, Q04UDEHCPU, Q06UDEHCPU, Q10UDEHCPU, Q13UDEHCPU,
QnCPU Generic term for Q00JCPU, Q00CPU, Q01CPU and Q02CPU
1.2 Abbreviations and Generic Names
QnHCPU Generic term for Q02HCPU, Q06HCPU, Q12HCPU and Q25HCPU
QnPHCPU Generic term for Q02PHCPU, Q06PHCPU, Q12PHCPU and Q25PHCPU
QnPRHCPU Generic term for Q12PRHCPU and Q25PRHCPU
Generic temr for Q00UJCPU, Q00UCPU, Q01UCPU, Q02UCPU, Q03UDCPU,
Q03UDECPU, Q04UDEHCPU, Q06UDEHCPU, Q10UDEHCPU, Q13UDEHCPU,
QnU(D)(H)CPU Generic temr for Q02UCPU, Q03UDCPU, Q04UDHCPU, Q06UDHCPU, Q10UDHCPU,
Q13UDHCPU, Q20UDHCPU and Q26UDHCPU
QnUD(H)CPU Generic name for Q03UDCPU, Q04UDHCPU, Q06UDHCPU, Q10UDHCPU,
Q13UDHCPU, Q20UDHCPU and Q26UDHCPU
QnUDE(H)CPU Generic name for Q03UDECPU, Q04UDEHCPU, Q06UDEHCPU, Q10UDEHCPU,

Generic Name/Abbreviation Description of Generic Name/Abbreviation
Generic term for Q33B, Q35B, Q38B and Q312B main base units on which CPU module (except Q00JCPU), Q series power supply module, Q series I/O module, and intelligent function module can be mounted.
Generic term for Q32SB, Q33SB and Q35SB slim type main base units on which Basic model QCPU (except Q00JCPU), High Performance model QCPU, slim type power supply module, Q series I/O module, and intelligent function module can be mounted.
Other name for Q38RB redundant power supply main base unit on which CPU module (except Q00JCPU), redundant power supply module, Q series I/O module, and intelligent function module can be mounted.
Generic term for the Q38DB and Q312DB type Multiple CPU high speed main base unit on which CPU module (except the Q00JCPU), Q series power supply module, Q series I/O module, and intelligent function module can be mounted.
Generic term for Q52B and Q55B extension base unit on which the Q Series I/O and intelligent function module can be mounted.
Generic term for Q63B, Q65B, Q68B and Q612B extension base unit on which Q Series power supply module, I/O module, intelligent function module can be mounted.
Other name for Q68RB redundant power supply extension base unit on whichredundant power supply module, Q series I/O module, and intelligent function module can be mounted.
Other name for Q65WRB extension base unit for redundant system on which redundant power supply module, Q series I/O module, and intelligent function module can be mounted.
Generic term for QA1S65B and QA1S68B extension base units on which AnS Series power supply module, I/O module, special function module can be mounted.
Generic term for QA65B and QA68B extension base units on which the A series power supply module, A series I/O modules and special function modules can be mounted.
Generic term for A52B, A55B, and A58B extension base units on which A series I/O module and special function module can be mounted without power supply.
Generic term for A62B, A65B, and A68B extension base units on which A series I/O module and special function module can be mounted.
QA6ADP Abbreviation for QA6ADP QA conversion adapter module.
QA6ADP+A5 B/A6 B Abbreviation for A large type extension base unit on which QA6ADP is mounted.
MELSECNET/H Abbreviation for MELSECNET/H network system
MELSECNET/10 Abbreviation for MELSECNET/10 network system
MELSECNET(II/,B) Abbreviation for MELSECNET and MELSECNET/B data link system
Ethernet Abbreviation for Ethernet network system
CC-Link Abbreviation for Control & Communication Link
(Continued)

Generic Name/Abbreviation Description of Generic Name/Abbreviation
Product name of Q series Corresponding SW D5C-GPPW-type GPP function software
: Version of the software
Check the GX Developer versions that can be used for each CPU module in "System Configuration," QCPU User's Manual (Hardware Design, Maintenance and Inspection).
Intelligent function module Generic name for intelligent function modules and special function modules
Generic name for intelligent function module devices and special function module devices
1.2 Abbreviations and Generic Names



The major types of CPU module instructions consist of sequence instructions, basic instructions, application instructions, data link instructions, QCPU instructions and redundant system instructions. These types of instructions are listed in Table 2.1 below.
Table 2.1 Types of Instructions
Types of Instruction Meaning Reference
Contact instruction Operation start, series connection, parallel connection
Association instruction Ladder block connection, store/read operation results, creation of pulses from 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 instruction Program stop, instructions such as no operation which do not fit in the above categories
Comparison operation instruction Comparisons such as , ,
Arithmetic operation instruction Addition, subtraction, multiplication or division of BIN or BCD
BCD BIN conversion instruction
Conversion from BCD to BIN and from BIN to BCD
Data transfer instruction Transmits designated data
Program branch instruction Program jumps
Program run control instruction Enables or inhibits interrupt programs
I/O refresh Executes partial refresh
Other convenient instruction Instructions for: Counter increment/decrement, teaching timer, special function timer, rotary table shortest direction control, etc.
Logical operation instruction Logical operations such as logical sum, logical product, etc.
Rotation instruction Rotation of designated data
Shift instruction Shift of designated data
Bit processing instruction Bit set and reset, bit test, batch reset of bit devices
Data processing instruction 16-bit data searches, data processing such as decoding and encoding
Structure creation instruction Repeated operation, subroutine program calls, indexing in ladder units
Table operation instruction Data table read/write
Buffer memory access instruction Data read/write from/to an intelligent function module
Display instruction Print ASCII code, LED character display, etc.
Debugging and failure diagnosis instruction Check, status latch, sampling trace, program trace
Conversion between BIN/BCD and ASCII;conversion between BIN and character string; conversion between floating decimal point data and character strings, character string processing, etc.
Character string processing instruction
Special function instruction Trigonometric functions, conversion between angles and radians, exponential operations, automatic logarithms, square roots
Data control instruction Upper and lower limit controls, dead band controls, zone controls
Switching instruction File register block No. switches, designation of file registers and comment files
Reading/writing of the values of year, month, day, hour, minute, second, and day of the week; addition/subtraction of the values of hour, minute, and second; conversion of the values of hour, minute, and second into second; comparison between the values of year, month, and day; and comparison between the values of hour, minute, and second
Reading of the values of year, month, day, hour, minute, second, millisecond, and day of the week; addition/subtraction of the values of hour, minute, second, and millisecond
Peripheral device instruction I/O to peripheral devices
Program control instruction Instructions to switch program execution conditions
Other instruction Instructions that do not fit in the above categories, such as watchdog timer reset instructions and timing clock instructions

Table 2.1 Types of Instructions (Continued)
Types of Instruction Meaning Reference
Link refresh instruction Designated network refresh
8 Routing information read/write
Reads, writes, and registers routing information
Writing to host CPU shared memory, Reading from other CPU shared memory 9
Multiple CPU device write/read
Writes/reads devices to/from another CPU. 10
Instruction for Redundant CPU System switching 11
2.1 Types of Instructions

The instruction tables found from Section 2.3 to 2.5 have been made according to the following format:
Table 2.2 How to Read Instruction Tables

16-bit instruction 32-bit instruction
Instruction executed when ON
Instruction executed only at the leading edge of OFF to ON


Fig. 2.1 Symbol Diagram on the Ladder
Destination Indicates where data will be sent after operation.
Source Stores data prior to operation.

Fig. 2.2 Type of Processing Performed by Individual Instructions
Instruction executed under normal circumstances, with no regard to the ON/OFF status of conditions prior to
the instruction.
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 preconditions is OFF,
the instruction is not executed, and no processing is conducted.
2.2 How to Read Instruction Tables
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 during OFF; instruction is executed only while the precondition is OFF. If the precondition is ON,
the instruction is not executed, and no processing is conducted.
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.
See Section 3.8 for a description of the number of steps.
See Section 3.5 for details on subset processing.
Symbol Execution Condition · No symbol · recorded

2.3.1 Contact instructions
Table 2.3 Contact Instructions

LDPI • Starts leading edge pulse NOT operation 3
LDFI • Starts trailing edge pulse NOT operation 3
ANDPI • Leading edge pulse NOT series connection 4
ANDFI • Trailing edge pulse NOT series connection 4
ORPI • Leading edge pulse NOT parallel connection 4
ORFI • Trailing edge pulse NOT parallel connection 4
*1: The number of steps may vary depending on the device being used.


*2: The number of steps may vary depending on the device and type of CPU module being used.

Table 2.4 Association Instructions

ANB • AND between logical blocks (Series connection between logical blocks)
ORB • OR between logical blocks (Series connection between logical blocks)
MPP • Read and reset of operation results stored with MPS instruction
INV • Inversion of operation result 1 - 5-15
2.3 Sequence Instructions 2.3.2 Association instructions
MEP • Conversion of operation result to leading edge pulse
MEF • Conversion of operation result to trailing edge pulse
*1: The number of steps may vary depending on the device and type of CPU module being used.

Table 2.5 Output Instructions

PLS • Generates 1 cycle program pulse at leading edge of input signal.
PLF • Generates 1 cycle program pulse at trailing edge of input signal.
FF • Reversal of device output 2 - 5-40
*1: The number of steps may vary depending on the device being used. See description pages of individual instructions for number of steps.
*2: The execution condition applies only when an annunciator (F) is in use. 2.3.4 Shift instructions
Table 2.6 Shift Instructions


Table 2.7 Master Control Instructions

Table 2.8 Termination Instructions

2.3 Sequence Instructions 2.3.5 Master control instructions
NOP • Ignored (For program deletion or space)
PAGE • Ignored (Subsequent programs will be controlled from step 0 of page n)

2.4.1 Comparison operation instructions
Table 2.10 Comparison Operation Instructions


Table 2.10 Comparison Operation Instructions (Continued)

2.4 Basic instructions 2.4.1 Comparison operation instructions
*1: The number of steps may vary depending on the device and type of CPU module being used.
All devices that can be used 3 Note 2)
the number of steps increases but the processing speed becomes faster. Note 2) The number of steps may increase due to the conditions described in Section 3.8.

Table 2.10 Comparison Operation Instructions (Continued)


Table 2.10 Comparison Operation Instructions (Continued)

2.4 Basic instructions 2.4.1 Comparison operation instructions

Table 2.10 Comparison Operation Instructions (Continued)
Number of Basic Steps
Symbol Processing Details Execution
AND$=
$ S1 S2
string S1) (character string S2) • Non-Conductive status when
$ S1 S2
(character string S1) (character string S2)
AND$<>
$ S1 S2
$ S1 S2
AND$>
$ S1 S2
OR$>
AND$<=
$ S1 S2
OR$<=
$ S1 S2
AND$<
$ S1 S2
$ S1 S2
AND$>=
S1 S2 $
string S1) (character string S2)
$ S1 S2
(character string S1) (character string S2)

Table 2.10 Comparison Operation Instructions (Continued)

2.4 Basic instructions 2.4.1 Comparison operation instructions

Table 2.11 Arithmetic Operation Instructions


*1: The number of steps may vary depending on the device and type of CPU module being used.
Component Device Number of
High Performance model QCPU
Devices other than above 3 Note 2)
All devices that can be used 3 Note 2)
the number of steps increases but the processing speed becomes faster. Note 2) The number of steps may increase due to the conditions described in Section 3.8.
*2: The number of steps may vary depending on the device and type of CPU module being used.
Component Device Number of
High Performance model QCPU
Devices other than above 4 Note 2)
All devices that can be used
Universal model QCPU 3 Note 2)
the number of steps increases but the processing speed becomes faster. Note 2) The number of steps may increase due to the conditions described in Section 3.8.
*3: The number of steps may vary depending on the device and type of CPU module being used.
2.4 Basic instructions 2.4.2 Arithmetic operation instructions
Component Device Number of Steps
Devices other than above 4 Note 1)

Table 2.11 Arithmetic Operation Instructions (Continued)


Table 2.11 Arithmetic Operation Instructions (Continued)

ED+ • (D+3, D+2, D+1, D)+(S+3, S+2, S+1, S)
ED- • (D+3, D+2, D+1, D) (S+3, S+2, S+1, S)
2.4 Basic instructions 2.4.2 Arithmetic operation instructions
*5: The number of basic steps is three for the Universal model QCPU only. *6: The subset is effective only with Universal model QCPU.

Table 2.11 Arithmetic Operation Instructions (Continued)
Number of Basic Steps
Symbol Processing Details Execution
BK+ • This instruction adds BIN 16-bit data stored in n-point devices starting from the device specified by (S1) to the n-point data stored in the devices starting from the device specified by (S2) in batch.
BK+ S1 S2 n D
BK+P S1 S2 n D
BK- • This instruction substracts BIN 16-bit data stored in the n-point devices starting from the devices specified by (S2) from BIN 16- bit data stored in n-point devices starting from the device specified by (S1) in batch.
BK S1 S2 n D
BK S1 S2 n D P
DBK+ S1 S2 n D
point devices starting from the device
specified by (S1) and a constant to BIN
32-bit data stored in the n-point devices
starting from the device specified by
DBK+P S1 S2 n D
(S2) and stores the result into the nth
device specified by (D) and up.
DBK S1 S2 n D
n-point devices starting from the device
specified by (S2) or a constant from BIN
32-bit data stored in n-point devices
starting from the device specified by
DBK S1 S2 n D P
(S1) and stores the operation result into
the nth device specified by (D) and up.
$+ • Links character string designated with (S) to character string designated with (D), and stores the result from (D) onward.
3 - 6-65 $+P
$+P S D
$+ • Links character string designated with (S2) to character string designated with (S1), and stores the result from (D) onward.
4 - 6-67 $+P
$+P S1 S2 D
INC
INC D
DINC
DINC D
DEC
DEC D
DDEC
DDEC D

*7: The number of steps may vary depending on the device and type of CPU module being used.
Component Device Number of
High Performance model QCPU
Devices other than above 2 Note 2)
All devices that can be used 2 Note 2)
the number of steps increases but the processing speed becomes faster. Note 2) The number of steps may increase due to the conditions described in Section 3.8.
2.4 Basic instructions 2.4.2 Arithmetic operation instructions

Table 2.12 Data Conversion Instructions

(D+1, D) BIN( 32768 to 32767) FLTP S D
( D+3, D+2, D+1, D) BIN( 32768 to 32767) FLTDP S D
(S+1, S) (D+3, D+2, D+1, D) BIN( 2147483648 to 2147483647)
(D) Real number ( 32768 to 32767) INTDP S D
(D+1, D) Real number ( 2147483648 to 2147483647) DINTDP S D
*1: The number of basic steps is two for the Universal model QCPU only. *2: The subset is effective only with Universal model QCPU.

Table 2.12 Data Conversion Instructions (Continued)

(D+1, D) BIN (-32768 to 32767) DBLP S D
2.4 Basic instructions 2.4.3 Data conversion instructions
DNEG D (D+1, D) (D+1, D) BIN data DNEGP D
EDNEG D (D+3, D+2, D+1, D) (D+3, D+2, D+1, D)
BKBCD • Batch converts BIN data n points from (S) to BCD data and stores the result from (D) onward.
BKBIN • Batch converts BCD data n points from (S) to BIN data and stores the result from (D) onward.
(D+3, D+2, D+1, D) 32-bit floating-point real number ECONP S D
(D+1, D) 64-bit floating-point real number EDCONP S D

Table 2.13 Data Transfer Instructions

$MOV • Transfers character string designated by (S) to device designated by (D) onward. 3 - 6-112 $MOVP

Table 2.13 Data Transfer Instructions (Continued)

*1: The number of steps may vary depending on the device and type of CPU module being used.

*2: The number of steps may vary depending on the device and type of CPU module being used.

2.4 Basic instructions 2.4.4 Data transfer instructions
digit designation is K8, and which use no indexing.
Universal model QCPU All devices that can be used 2 Note 1)

*3: The subset is effective only with QCPU. *4: The number of steps may vary depending on the device and type of CPU module being used.
Component Device Number of
Devices other than above 3 Note 1)
Steps

Table 2.14 Program Branch Instructions

CJ • Jumps to Pn when input conditions are
6-129 SCJ • Jumps to Pn from the scan after the
Table 2.15 Program Execution Control Instructions

2.4 Basic instructions 2.4.5 Program branch instructions
Return IRET • Returns to sequence program from an

Table 2.17 Other convenient instructions

1 2 3 4 6 7 6 5 3 2 1 0 -1 -2 -3 -2 -1 0 0 4 5
1 2 4 5 4 3 1 0 -1 0 3 2
from n1 to n2 in n3 scans. 6 - 6-157
PLSY n1 n2 D (n1)Hz (D) Output n2 times

2.5.1 Logical operation instructions
Table 2.18 Logical Operation Instructions

2.5 Application Instructions 2.5.1 Logical operation instructions

Table 2.18 Logical Operation Instructions (Continued)


*1: The number of basic steps is three for the Universal model QCPU only. *2: The number of steps may vary depending on the device and type of CPU module being used.
Component Device Number of
High Performance model QCPU
designation is K8, and which use no indexing.
Devices other than above 3 Note 2)
All devices that can be used 3 Note 2)
the number of steps increases but the processing speed becomes faster. Note 2) The number of steps may increase due to the conditions described in Section 3.8.
*3: The number of steps may vary depending on the device and type of CPU module being used.
Component Device Number of
High Performance model QCPU
designation is K8, and which use no indexing.
Devices other than above 4 Note 2)
All devices that can be used
Universal model QCPU 3 Note 2)
the number of steps increases but the processing speed becomes faster. Note 2) The number of steps may increase due to the conditions described in Section 3.8.
2.5 Application Instructions 2.5.1 Logical operation instructions

Table 2.19 Rotation Instructions

DROR n D b0 b31 SM700 b16 to b15 to (D+1) (D)
Right rotation by n bits Carry flag DRORP n D
DRCR n D b0 b31 SM700 b16 to b15 to (D+1) (D)
Right rotation by n bits Carry flag DRCRP n D
DROL n D b0 b31 SM700 b16 to b15 to (D+1) (D)
Left rotation by n bits Carry flag DROLP n D
Left rotation by n bits Carry flag DRCLP n D

Table 2.20 Shift Instructions

0 to 0 b15 SM700 b0 Carry flag SFLP n D
2.5 Application Instructions 2.5.3 Shift instructions

Table 2.21 Bit Processing Instructions


Table 2.22 Data Processing Instructions

2.5 Application Instructions 2.5.5 Data processing instructions

Table 2.22 Data Processing Instructions (Continued)
Number of Basic Steps
Symbol Processing Details Execution
DIS • Separates 16-bit data designated by (S) into 4-bit units, and stores at the lower 4
DIS n S D
DISP n S D
bits of n points from (D). (n 4)
UNI • Links the lower 4 bits of n points from the device designated by (S) and stores at the
UNI n S D
device designated by (D). (n 4)
UNIP n S D
NDIS S1 S2 D
NDISP
NDISP S1 S2 D
NUNI S1 S2 D
NUNIP S1 S2 D
WTOB • Breaks n points of 16-bit data from the device designated by (S) into 8-bit units, and stores in sequence at the device designated by (D).
WTOB n S D
WTOBP n S D
BTOW • Links the lower 8 bits of 16-bit data of n points from the device designated by (S) into 16-bit units, and stores in sequence at the device designated by (D). BTOWP
BTOW n S D
BTOWP n S D
MAX • Searches the data of n points from the device designated by (S) in 16-bit units, and stores the maximum value at the device designated by (D).
MAX n S D
MAXP n S D
MIN • Searches the data of n points from the device designated by (S) in 16-bit units, and stores the minimum value at the device designated by (D).
MIN n S D
MINP n S D
DMAX • Searches the data of 2n points from the device designated by (S) in 32-bit units, and stores the maximum value at the device designated by (D).
DMAX n S D
DMAXP n S D
DMIN • Searches the data of 2n points from the device designated by (S) in 32-bit units, and stores the minimum value at the device designated by (D).
DMIN n S D
DMINP n S D

Table 2.22 Data Processing Instructions (Continued)

SORT S2 D1 S1 n D2 · S2: Number of comparisons to be made during a single run · D1: Device to be turned ON at the completion of sort · D2: For system use
· S2: Number of comparisons to be made during a single run · D1: Device to be turned ON at the completion of sort · D2: For system use
WSUM • Adds 16 bit BIN data of n points from the
DWSUM • Adds 32 bit BIN data of n points from the
2.5 Application Instructions 2.5.5 Data processing instructions

Table 2.23 Structure Creation Instructions

RET • Returns from subroutine program 1 - 7-115
*1: n indicates number of arguments for subroutine program. *2: n indicates the total of the number of arguments used in the subroutine program and the number of program name steps. The number of program name steps is calculated as "number of characters in the program/2" (decimal fraction is rounded up). *3: The subset is effective only with the Universal model QCPU.

Table 2.23 Structure Creation Instructions (Continued)

2.5 Application Instructions 2.5.6 Structure creation instructions
*1: n indicates number of arguments for subroutine program. *2: n indicates the total of the number of arguments used in the subroutine program and the number of program name steps. The number of program name steps is calculated as "number of characters in the program/2" (decimal fraction is rounded up).

Table 2.24 Data table Operation Instructions

FIFW S D (S) Pointer (D) Pointer + 1
FPOP S D (S) Pointer (D) Pointer - 1
FDEL n S D (S) Pointer (D) Pointer - 1

Table 2.25 Buffer Memory Access Instructions

FROM • Reads data in 16-bit units from an
DFRO • Reads data in 32-bit units from an
TO • Writes data in 16-bit units to an
DTO • Writes data in 32-bit units to an
Table 2.26 Display Instructions

2.5 Application Instructions 2.5.8 Buffer memory access instructions

Table 2.27 Debugging and Failure Diagnosis Instructions
Number of Basic Steps
Symbol Processing Details Execution
CHKST is executable.
CHKST
instruction when CHKST is in a
non-executable status. 1 - 7-175
CHK
CHK
SD80 : Failure No.
CHKCIR • Starts update in ladder pattern being
checked by the CHK instruction.
CHKEND • Ends update in ladder pattern being
checked by the CHK instruction.

Table 2.28 Character String Processing Instructions

2.5 Application Instructions 2.5.11 Character string processing instructions

Table 2.28 Character String Processing Instructions (Continued)
Number of Basic Steps
Symbol Processing Details Execution
DABCD • Converts a 4-digit, decimal ASCII value designated by (S) to a 1-word BCD value, and stores it at a word device number designated by (D).
DABCDP
DABCDP S D
ASCII
DDABCD • Converts a 8-digit decimal ASCII value designated by (S) to a 2-word BCD value, and stores it at the word device number designated by (D).
BCD
DDABCDP
DDABCDP S D
COMRD
COMRD S D
COMRDP S D
LEN • Stores data length (number of characters) in character string designated by (S) at a device designated by (D).
LENP S D
STR S1 S2 D
BIN
STRP
STRP S1 S2 D
DSTR S1 S2 D
DSTRP
DSTRP S1 S2 D
VAL D1 D2 S
VALP
VALP D1 D2 S
DVAL D1 D2 S
BIN
DVALP
DVALP D1 D2 S
ESTR • Converts the 32-bit floating decimal point data designated by (S) to a character string, and stores it in devices designated by (D).
ESTRP S1 S2 D
EVAL • Converts the character string designated by (S) to a 32-bit floating decimal point data, and stores it in devices designated by (D).
EVALP S D

Table 2.28 Character String Processing Instructions (Continued)

HEX • Converts n hexadecimal ASCII characters of the device numbers designated by (S) and after to BIN values, and stores them at the device numbers designated by (D).
RIGHT • Stores n characters from the end of a
MIDW • Stores the character string of (S1) in the
2.5 Application Instructions 2.5.11 Character string processing instructions
of (D) at the position specified by (S2). MIDWP

Table 2.29 Special Function Instructions


Table 2.29 Special Function Instructions (Continued)

RAD S D (S+1, S) (D+1, D) Conversion from angles to radians RADP S D
RADD S D (S+3, S+2, S+1, S) (D+3, D+2, D+1, D) Conversion from angle to radian RADDP S D
DEGD S D (S+3, S+2, S+1, S) (D+3, D+2, D+1, D) Conversion from radian to angle DEGDP S D
(D+3, D+2, D+1, D) (S+3, S+2, S+1, S) SQRDP S D
2.5 Application Instructions 2.5.12 Special function instructions
e(S+3, S+2, S+1, S) (D+3, D+2, D+1, D) EXPDP S D
Loge(S+3, S+2, S+1, S) (D+3, D+2, D+1, D) LOGDP S D

Table 2.29 Special Function Instructions (Continued)

RND • Generates a random number (from 0 to

Table 2.30 Data Control Instructions

.. Stores value of ((S3)+1, (S3)) at ((D)+1, (D))
2.5 Application Instructions 2.5.13 Data control instructions

Table 2.30 Special Function Instructions (Continued)


Table 2.31 Switching Instructions

number to number designated by (S). 2 - 7-337
*1: n ([number of file name characters] / 2) indicates a step. (Decimal fractions are rounded up.)

2.5 Application Instructions 2.5.14 Switching instructions

Table 2.32 Clock Instructions

Sec. + Mitnute Mitnute Mitnute DATE+P S1 S2 D
Mitnute Sec. (Lower 16 bits) Sec. (Upper 16 bits) HOURP S D

Table 2.32 Character String Processing Instructions (Continued)

2.5 Application Instructions 2.5.15 Clock instructions

Table 2.32 Character String Processing Instructions (Continued)


Table 2.33 Expansion clock instruction


2.5 Application Instructions 2.5.16 Expansion clock instruction

Table 2.34 Program Control Instructions

*1: n ([number of file name characters] / 2) indicates a step. (Decimal fractions are rounded up.)

Table 2.35 Other Instructions

Upper 8 bits Lower 8 bits Upper 8 bits
Upper 8 bits Lower 8 bits Upper 8 bits
2.5 Application Instructions 2.5.18 Other instructions
ADRSET D S (S) (D) Indirect address of designated device
ZPUSH • Saves the contents of index registers to a
ZPOP • Reads the data stored in the location
by n2, and stores it in the area starting

Table 2.35 Other Instructions (Continued)

TYPERD • This instruction reads the module information stored in the area starting from the I/O number specified by "n", and stores it in the area starting from the device specified by (D).
Trace rset TRACER • Resets the data set the TRACE
SP.FWRITE • Writes data to the designated file. 11 -
SP.FREAD • Reads data from the designated file. 11 -
S.DEVST • Writes data to the device data storage file in the standard ROM. 9 -
S.DEVLD • Reads data from the device data storage file in the standard ROM. 8 - SP.DEVLD
than drive 0) to drive 0 and places the
RBMOV • Transfers n points of 16-bit data from the

Table 2.36 Instructions for Data Link

Reads data set at routing parameters. 7 - 8-6 SP.RTREAD
2.5 Application Instructions 2.5.19 Instructions for Data Link

Table 2.37 Multipe CPU dedicated instruction

S. TO • Writes device data of the host station to
the host CPU shared memory. 5 - 9-4 SP. TO
TO • Writes device data of the host station to
DTO • Writes device data of the host station to
FROM • Reads device data from the other CPU
DFRO • Reads device data from the other CPU
Table 2.40 Multiple CPU high-speed transmission dedicated instruction

D.DDWR In multiple CPU system, data stored in a
device specified by host CPU ( ) or later is
by ( +1) into a device specified by another
D.DDRD In multiple CPU system, data stored in a
device specified by another CPU (n) ( ) or
lrater is stored by the number of read points
specified by ( +1) into a device specified by

Table 2.39 Redundant System Instructions (For Redundant CPU)
Number of Basic Steps
Symbol Processing Details Execution
Switches between the control system and
standby system at the END processing of the
8 - 11-2 SP.CONTSW S D
scan executed with the SP.CONTSW
instruction.
2.5 Application Instructions 2.5.22 Redundant system instructions (For Redundant CPU)



Most CPU module instructions consist of an instruction part and a device part.
Each part is used for the following purpose:
The device part is classified into source data, destination data, and number of devices.
(a) Source is the data used for operations.
(b) The following source types are available, depending on the designated device:
operation. This is set when the program is created, and cannot be changed during the execution of the program. Constants should be indexed when used as variable data.
be used in the operation. Data must be stored in the designated device until the operation is executed. By changing the data stored in a designated device during program execution, the data to be used in the instruction can be changed.
(a) The destination stores the data after the operation has been conducted. However,
some instructions require storing the data to be used in an operation at the destination prior to the operation execution.
An addition instruction involving BIN 16-bit data
Stores only the operation results. Stores the data needed for operation before the actual operation.
(b) A device for the data storage must always be set to the destination.
(3) Number of devices and number of transfers (n)
(a) The number of devices and number of transfers designate the numbers of devices and
transfers used by instructions involving multiple devices.
n D S BMOV
Designates the number of transfers used by a BMOV instruction
(b) The number of devices or number of transfers can be set between 0 and 32767.
However, if the number is 0, the instruction will be a no-operation instruction.
(1) Source (S) · (2) Destination (D) · Block transfer instruction

The following six types of data can be used with CPU module instructions.

Section 3.2.2
Section 3.2.3
Real number (floating point) data Single-precision floating point data
Section 3.2.4 (1)
Section 3.2.4 (2)
Bit data is data used in one-bit units, such as for contacts or coils.
"Bit devices" and "Bit designated word devices" can be used as bit data.
(1) When using bit devices
Bit devices are designated in one-point units.
Designation of 1 point of bit device M0
SET Y10
Designation of 1 point of bit device Y10
3.2 Designating Data 3.2.1 Using bit data
(2) Using word devices
(a) Word devices enable the use of a designated bit number 1/0 as bit data by the
designation of that bit number.
1/0
Each bit of a word device can be used (1=ON, 0=OFF)
(b) Word device bit designation is done by designating " . ". (Designation of bit numbers is done in hexadecimal.) For example, bit 5 (b5) of D0 is designated as D0.5, and bit 10 (b10) of D0 is designated as D0.A. However, there can be no bit designation for timers (T), retentive timers (ST), counters (C) or index register (Z). (Example Z0.0 is not available).
Word device Bit No.
Bit designated for word device (Bit 5 (b5) of D0 is turned ON if X0 is ON.)
Bit designated for word device (Turns ON Y10 if bit 5 (b5) of D0 is ON (1).)
to Word device · b15 b0

Word data is 16-bit numeric data used by basic instructions and application instructions.
The following two types of word data can be used with CPU module:
Word devices and bit devices designated by digit can be used as word data.
For direct access input (DX) and direct access output (DY), word data cannot be designated by digit. (For details of direct access input and direct access output, refer to the QnUCPU User's Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals).
(1) When Using Bit Devices
(a) Bit devices can deal with word data when digits are designated.
Digit designation of bit devices is done by designating
" ". Digit designation of bit devices can be done in 4-point (4-bit) units, and designation can be made for K1 to K4. (For link direct devices,
Number of digits Head number of bit device
designation is done by "J \
Network No. Number of digits
". When X100 to X10F are designated for Network No.2, it is done by J2\K4X100).For example, if X0 is designated for digit designation, the following points would be designated:
Head number of bit device
XC XB X8 X7 X4 X3 X0 to
Fig 3.1 Digit Designation Setting Range for 16-Bit Instruction
(b) In cases where digit designation has been made at the source (S), the numeric values
shown in Table 3.1 are those which can be dealt with as source data.
Table 3.1 List of Numeric Values that Can Be Dealt with as Digit Designation
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

(c) When destination (D) data is a word device The word device for the destination becomes 0 following the bit designated by digit designation at the source.

b1 b2 b3 0 X2 X1 X0
Fig 3.2 Ladder Example and Processing Conducted
(d) In cases where digit designation is made at the destination (D), the number of points
designated are used as the destination. Bit devices below the number of points designated as digits do not change.

0 0 1 1 0 1 0 0 H1234 0 0 1 0 0 1 0 0
3.2 Designating Data 3.2.2 Using word (16 bits) data
Word devices are designated in 1-point (16 bits) units.
Designation of 1 point of word device D0 (16 bits)

Double word data is 32-bit numerical data used by basic instructions and application instructions.
Word devices and bit devices designated by digit designation can be used as double word data.
For direct access input (DX) and direct access output (DY), designation of double word data is not possible by digit designation.
(1) When Using Bit Devices
(a) Digit designation can be used to enable a bit device to deal with double word data.
Digit designation of bit devices is done by designating
" ". For link direct devices, designation is done by
Number of digits Head number of bit device
Network No. Number of digits Head number of bit device
"J \ ". When X100 to X11F are designated for Network No.2, it is done by J2\K8X100. Digit designation of bit devices can be done in 4-point (4-bit) units, and designation can be made for K1 to K8. For example, if X0 is designated for digit designation, the following points would be designated:
designated. • K2X0 The 8 points X0 to X7 are
designated.
designated. • K3X0 The 12 points X0 to XB are
designated.
designated. • K4X0 The 16 points X0 to XF are
designated.
designated.
designated.

X1F X1C X1B X18 X17 X14 X13 X10 XF XC XB X8 X7 X4 X3 X0
Fig 3.4 Digit Designation Setting Range for 32-Bit Instructions
(b) In cases where digit designation has been made at the source (S) , the numeric values
shown in Table 3.2 are those which can be dealt with as source data.
Table 3.2 List of Numeric Values that Can Be Dealt with as Digit Designation

K1 (4 points) 0 to 15 K5 (20 points) 0 to 1048575
K2 (8 points) 0 to 255 K6 (24 points) 0 to 16777215
K3 (12 points) 0 to 4095 K7 (28 points) 0 to 268435455
K4 (16 points) 0 to 65535 K8 (32 points) 2147483648 to 2147483647

(c) When destination (D) data is a word device
The word device for the destination becomes 0 following the bit designated by digit designation at the source.

b1 b2 b3 0 X2 X1 X0
Fig 3.5 Ladder Example and Processing Conducted
(d) In cases where digit designation is made at the destination (D), the number of points
designated are used as the destination. Bit devices below the number of points designated as digits do not change.

1 0 0 1 0 1 0 0 1 0 0 1 1 1 0 0
3.2 Designating Data 3.2.3 Using double word data (32 bits)
1 0 0 1 1 1 0 1 b7 b0 D0 1 0 0 1 1 1 0 0
0 b7 0 1 1 0 1 1 1 b0 D1
1 0 0 1 1 1 0 1 M17 M10

(2) Using word devices
A word device designates devices used by the lower 16 bits of data. A 32-bit instruction uses (designation device number) and (designation device number + 1).

Designation of 2 points of word devices D0 and D1 (32 bits) 32-bit data transfer instruction
Real number data is floating decimal point data used with basic instructions and application instructions.
Only word devices are capable of storing real number data.
(1) Single-precision floating-point data
Instructions which deal with single-precision floating-point data designate devices which are used for the lower 16 bits of data. Single-precision floating-point data are stored in the 32 bits which make up (designated device number) and (designated device number + 1).

Designation of 2 points of word devices D0 and D1 (32 bits)
Designation of 2 points of R100 and R101 (32 bits)
In sequence programs, floating decimal point data are designated by E .
Single-precision floating-point data uses two word devices and is expressed in the following manner:
[Sign] 1. [Mantissa part] 2 [Exponent part] The bit configuration and meaning of the internal representation of single- precision floating-point data is as follows:

b31 b30 to b23 b22 b16 to b15 b0 to
b23 to b30 FFH FEH FDH 81 80 7FH 7EH 02 01 00
n Not used 127 126 2 1 0 -1 -125 -126 Not used

(2) Double-precision floating-point data
Instructions which deal with double-precision floating-point datadesignate devices which are used for the lower 16 bits of data. Double-precision floating-point data are stored in the 64 bits which make up (designated device number) to (designated device number + 3).

Designation of 4 points of word devices D0, D1, D2 and D3 (64 bits)
Designation of 4 points of R100, R101, R102 and R103 (64 bits)
In sequence programs, floating decimal point data are designated by E .
Double-precision floating-point data uses four word devices and is expressed in the following manner:
[Sign] 1. [Mantissa part] 2 [Exponent part] The bit configuration and meaning of the internal representation of double- precision floating-point data is as follows:

b63 b62 to b52 b51 b16 to b15 b0 to
3.2 Designating Data 3.2.4 Using real number data
b52 to b62 7FFH 7FEH 7FDH 400H 3FFH 3FEH 3FCH 02H 01H 00H

(a) Single-precision floating-point data
2128 < Device data 2-126, 0, 2-126 Device data < 2128
(b) Double-precision floating-point data
21024 < Device data 2-1022,0,2-1022 Device data < 21024
floating-point operation is performed with 0.) The CPU module that performs the internal operation of floating-point operation with double precision does not result in operation error since it performs floating-point operation after
converting 0 into 0 in the CPU module when 0 is specified. The CPU module that performs the internal operation of floating-point operation with single precision results in operation error since it gives priority to the processing
speed and uses 0 in floating-point operation without conversion when 0 is specified.
(a) The following CPU modules will not result in operation error when 0 is specified. • High Performance model QCPU where internal operation is set to
double precision *2
(The internal operation of floating-point operation defaults to double precision.) (b) The following CPU modules will result in operation error when -0 is
specified.
*1: For operations when a real number is out of range and operations when an invalid value is input, refer to the QnUCPU User's Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals). *2: Switch between single precision and double precision of the internal operation of floating-point operation in the PLC system of the PLC parameter dialog box. For the single precision and double precision of floating- point operation, refer to the QnUCPU User's Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals). *3: The Basic model QCPU can perform floating-point operation if its first five digits of serial No. are "04122 or later".
precision *2

Character string data is character data used by basic instructions and application instructions.
The target ranges from the designated character to the NULL code (00H) that indicates the end of the character string.
(1) When designated character is the NULL code
One word is used to store the NULL code.
$MOV " " D0
D0 NULL
Designation of NULL code (00H)
Character string data transfer instruction
(2) When character string is even
Uses (number of characters/2 + 1) words, and stores character string and NULL code. For example, if "ABCD" is transferred to D0, the character string ABCD is stored at D0 and D1, and the NULL code is stored at D2. (The NULL code is stored as the last one word.)
$MOV "ABCD" D0
42 H
41 H
44 H
43 H
NULL
3.2 Designating Data 3.2.5 Using character string data
Designation of a character string composed of even numbers
Character string data transfer instruction
(3) When number of characters is odd
Uses (number of characters/2) words (rounds up decimal fractions) and stores the character string and NULL code. For example, if "ABCDE" is transferred to devices starting from D0, the character string (ABCDE) and the NULL code are stored from D0 to D2. (The NULL code is stored into the upper 8 bits of the last one word.)
$MOV "ABCDE" D0
42 H
41 H
44 H
43 H
D2 45 H
NULL
Designation of a character string composed of odd numbers
Character string data transfer instruction

(1) Overview of indexing
(a) Indexing is an indirect setting made by using an index register.
When an Indexing is used in a sequence program, the device to be used will become the device number specified directly plus the contents of the index register. For example, if D2Z2 has been specified, the specified device is calculated as follows: D(2+3) = D5 and the content of Z2 is 3 become the specified device.
(b) Indexing with 16-bit index registers and indexing with 32-bit index registers are possible
only for Universal model QCPU.
(2) Indexing with 16-bit index registers
(a) Example of indexing
Each index register can be set between 32768 and 32767. Indexing is performed in the way shown below:
Stores -1 at Z0.
Stores the data of D10Z0= D{10+(-1)} = D9 at D0.
(b) Devices to which indexing can be used
With the exception of the restrictions noted below, Indexing can be used with devices used with contacts, coils, basic instructions, and application instructions.
K, H 32-bit constant
E Floating decimal point data
$ Character string data
. Bit designated for word device
FX, FY, FD Function devices
P Pointers used as labels
I Interrupt pointers used as labels
TR SFC transfer devices*1
BL SFC block devices*1
*1: SFC transfer devices and SFC block devices are devices for SFC use. Refer to the manual below for how to use these devices. • QCPU (Q mode)/QnACPU Programming Manual (SFC)


T • Only Z0 and Z1 can be used for timer contacts and coils.
C • Only Z0 and Z1 can be used for counter contacts and coils.
For timer and counter present values, there are no limits on index register numbers used.

(c) A case where Indexing has been performed, and the actual process device, would be as follows:

3.3 Indexing
D (0 + 20) = D20 K3Y(12F - 5) = K3Y12A
A method of specifing index registers in indexing with 32-bit can be selected from the following two methods. • Specifing the index registers’ range used for indexing with 32-bit.

The 32-bit indexing with “ZZ” specification is available only for the following CPU modules that the version of GX Developer is 8.68W or later.
(a) Example of specifing the range of index registers for use of 32-bit indexing.
An example of indexing is shown below.
K40000 Z0 Stores 40000 at Z0.
Stores the data of ZR10Z0= ZR{10+40000}=ZR40010 at D0.

GX Developer 8.68R or earlier GX Deveioper 8.68W or later
Fig. 3.8 Setting windows for ZR device indexing setting parameter
When the head number of the index register used is changed on the Device tab of the Q parameter setting screen, do not change the parameters only or do not write only the parameters into the programmable controller. Be sure to write the param- eter into the programmable controller with the program. When the parameter is forced to be written into the programmable controller, an error of CAN'T EXE. PRG. occurs. (Error code: 2500)
Indexing

Indexing can be used only for the device shown below.
ZR Serial number access format file register
D Extended data register (D)
W Extended link register (W)
The following table shows the usable range of index registers for indexing with 32-bit index registers. For indexing with 32-bit index registers, the specified index register (Zn) and the next index register of the specified register (Zn+1) are used. Be sure not to
overlap index registers to be used.
Setting Value Index Registers to be Used Setting Value Index Registers to be Used
Z1 Z1, Z2 Z11 Z11, Z12
Z2 Z2, Z3 Z12 Z12, Z13
Z3 Z3, Z4 Z13 Z13, Z14
Z4 Z4, Z5 Z14 Z14, Z15
Z5 Z5, Z6 Z15 Z15, Z16
Z6 Z6, Z7 Z16 Z16, Z17
Z7 Z7, Z8 Z17 Z17, Z18
Z8 Z8, Z9 Z18 Z18, Z19
Z9 Z9, Z10 Z19 Cannot be specified
(When Z0 (32-bit) 100000 and Z2 (16-bit) 20)
Ladder Example Actual Process Device
3.3 Indexing
MOV
ZR101000 D10
MOV K-20 Z2
ZR1000Z0 ZR(1000+100000)=ZR101000 D30Z2 D(30-20)=D10
MOV ZR1000Z0 D30Z2
Fig. 3.9 Ladder Example and Actual Process Device
Device Meaning · Description

(b) Example of specifing 32-bit indexing with “ZZ” specification.
The 32-bit indexing with “ZZ” specification is as follows.

Indexing ZR device with 32-bit index registers (Z4 and Z5) ZR (0+100000) =ZR100000
To perform 32-bit indexing by using “ZZ” specification, select “Use of ZZ” in “Indexing Setting for ZR Device” in PC parameter for GX Developer.

Fig. 3.10 Setting window for indexing setting parameter for ZR device
The following device is available for indexing.
ZR Serial number access format file register
D Extended data register (D)
W Extended link register (W)
The following table shows the usable range of index registers in 32-bit indexing used “ZZ” specification. The 32-bit indexing with “ZZ” specification is specified as the format ZRmZZn. Specifying ZRmZZn enables Zn and Zn+1 of 32-bit values to index the device

*1: refers to device name (ZR) for indexing target.
Device Meaning · number, ZRm,

(Z0 (32-bit) 100000.Z2 (16-bit) 20)
Ladder Example Actual Process Device
DMOV
K100000 Z0
END
MOV
K-20
Z2
MOV ZR1000ZZ0 D30Z2
ZR1000ZZ0 ZR(1000+100000)=ZR101000
D30Z2 D(30-20)=D10
Fig.3.10 Ladder Example and Actual Process Device
The 32-bit indexing specification with “ZZ” specification applies in the following functions in GX Developer.
No. Function Name and Description
1 Specifing devices in program instruction
2 Monitoing device registrations
3 Testing devices execution type
4 Testing devices with conditions
5 Setting monitor conditions
3.3 Indexing
Single ZZn cannot be used as a device like “DMOV K100000 ZZ0”. When setting values of index registers to specify 32-bit indexing with “ZZ” specification, set the value of Zn (Z0~Z19). Single ZZAn cannot be input to each function in GX Develoiper.

(4) Index modification using extended data register (D) and extended link register (W)
(Universal model QCPU(except Q00UJCPU))
Like index modification using data register (D) and link register (W) of internal user device, a device can be specified by index modification within the range of the extended data register (D) and extended link register (W).
Index modification in internal user device
Image of D device
MOV K1234
Z0=1000
Z1=0
MOV K1234
Z1=2000
Index modification in extended data register
The specification of index modification where the device number crosses over the boundary between the internal user device and the extended data register (D) or extended link register (W) cannot be made. If doing so, an error occurs when the device range check is enabled at index modification (error code: 4101).
Index modification in internal user device
Image of D device
MOV K1234
Z0=20000
Index modification where the device number
crosses over the boundary between theinternal user device and the extended data
register is not possible.

Index modification where the device number crosses over the boundary among the file register (ZR), extended data register (D), and extended link register (W) will not cause an error. However, an error occurs if the index modification result of file register (ZR), extended data register (D), and extended link register exceeds the file register range (error code: 4101).
Index modification where the device number crosses over the boundary among the file register (ZR), extended data register (D) will not cause an error.
Z0=0
MOV K1234
Z0=10000
Extended data register (D) (8k) D12288~
MOV K1234 Z20000Z1
Extended link register (W) (8k) W2000~
W2DC0
Index modification where the device number crosses over the boundary among the extended data register (D), and extended link register (W) will not cause an error.
Extended link register exceeds
3.3 Indexing
the file register range.
File register files · User Program · File register (8k)

(5) Other index modifications
Device numbers can be index modified when performing digit designation. However, Indexing is not possible by digit designation.
BIN K4X0Z2 D0 Setting is possible since this indicates Indexing for device number. If Z2=3, then (X0+3)=X3
Setting is not possible since this indicates Indexing by digit designation.
(b) Both I/O numbers and buffer memory number can be performed indexing with
intelligent function module devices*1.
If Z1=2 and Z2=8, then U(10+2)\G(0+8)=U12\G8
(c) Both network numbers and device numbers can be performed indexing with link direct
devices*1.
If Z1=2 and Z2=8, then J(1+2)\K4X(0+8)=J3\K4X8
*1: For the intellingent function module device, link direct devices, refer to the QnUCPU User’s Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User’s Manuall (Function Explanation, Program Fundamentals)
(d) When indexing is used for multiple CPU shared devices*2, indexing for the head I/O
numbers of CPU modules and indexing for the CPU shared memory address are automatically executed.
If Z1=2 and Z2=8, then U3E(0+2)\G(0+8)=U3E2\G8
*2: For the multiple CPU shared device, refer to the QnUCPU User’s Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User’s Manuall (Function Explanation, Program Fundamentals)
(a) Bit data

(e) Index modification using extended data register (D) and extended link register (W) by
32 bits (Universal model QCPU(except Q00UJCPU)) Like index modification using file register (ZR), index modification using extended data register (D) and extended link register (W) by 32 bits can be performed by the following two methods.
The 32-bit indexing with “ZZ” specification is available only for the following CPU modules that the version of GX Developer is 8.68W or later.
(except Q00UJCPU) • QnUDE(H)CPU
(a) Performing indexing between the FOR and NEXT instructions
Pulses can be output between the FOR and NEXT instructions by use of the edge relay
(V). However, pulse output using the PLS/PLF/pulse ( P) instruction is not allowed.
[When edge relay is used] [When edge relay is not used]
(M0Z1 provides normal pulse output.) (M0Z1 does not provide normal pulse output.)

3.3 Indexing
The ON/OFF data of X0Z1 is stored by the edge relay V0Z1. For example, the ON/OFF data of X0 is stored by V0, and that of X1 by V1.
(6) Cautions

(b) Performing indexing with the CALL instruction
Pulses can be output with the CALL instruction by use of the edge relay (V). However,
pulse output using the PLS/PLF/pulse ( P) instruction is not allowed.
[When edge relay is used] [When edge relay is not used]
(M0Z1 provides normal pulse output.) (M0Z1 does not provide normal pulse output.)
SM400 Z1 K0 MOV
P0 CALL
P0 CALL
SM400 Z1 K1 MOV
SM400 Z1 K1 MOV
P0 CALL
P0 CALL
FEND
FEND
X0Z1 M0Z1 V0Z1
X0Z1
P0
P0 M0Z1 PLS
RET
RET
(c) Device range check during indexing
Device range checks are not conducted during indexing. Therefore, when the data after index modification exceed the user specified device range, the data is written to another device without causing an error.(Note, however, that when the data after index modification is written to the device for system use exceeding the user specified device range, an error occurs. (Error code: 1103)) Take extra precaution when using indexing in programming.
The device range is checked for indexing. With changing the settings of the PLC parameter on GX Developer, the device range is not checked.
(d) Changing indexing with 16-bit index register for indexing with 32-bit index register
For changing indexing with 16-bit index register for indexing with 32-bit index register, check if the program has enough spaces for indexing. For indexing with 32-bit index registers, the specified index register (Zn) and the next index register of the specified register (Zn+1) are used. Be sure not to overlap index registers to be used.

(a) Indirect specification is a method that specifies address of the device to be used in a
sequence program using two word devices (two points of word device). Use indirect specification as index modification when the index register is insufficient.

D100 ADRSET D0 Stores the address of D100 to D0.
(Address of D100) + 50 = (Address of D150) Specification of D (100 + 50) = D150
[When index resister is used] [When indirect specification is used]
(b) Specify the device to be used for specifying the address as "@ + (word device
number)". For example, when @D100 is specified, the device address will be the contents of D101 and D100.
(c) The address of the device specified indirectly can be confirmed with the ADRSET instruction. For the ADRSET instruction, refer to Section 7.18.6.
(2) Indirect specification available devices
Table 3.3 shows that the CPU module devices can be specified indirectly.
Table 3.3 List of Indirect Specification Available Devices

3.4 Indirect Specification
*1: For the device names, refer to the QnUCPU User’s Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User’s Manuall (Function Explanation, Program Fundamentals) *2: Indicates when index modification by an index register is performed. *3: Indirect specification is possible, but the address can not be written with the ADRSET instruction.
(1) Indirect Specification

(a) The address for indirect specification uses two words.Therefore, to substitute indirect
specification for index modification, the addition/subtraction of 32-bit data is required. The following is the ladder used for the address addition/subtraction of the device stored in D1 and D0 for indirect specification.
[To add "1" to the address of the device for indirect specification]
Device used for indirect specification
[To subtract "1" from the address of the device for indirect specification]
Device used for indirect specification
(b) Indirect specification of extended data register (D) and extended link register (W)
Indirect specification with indirect address can be performed in the extended data register (D) and extended link register (W). Note that when indirect specification is performed to the extended data register (D) and data register (D) in internal device or to the extended link register (W) and link register (W) in internal device, the areas of the internal user device and extended data register (D) or extended link register (W) are not treated as a sequence.
ADRSET D12000 D100 Setting an address "D12000 h to D100 and D101
Setting the address that is an addition of 1000 to the address of D12000 to D102 and D103
MOV K1234 @D102
D13000 Since the areas of the data register and extended data register are not sequence, D13000 is inaccessible.
Extended link register (W)

3.5.1 Subset Processing
Subset processing is used to place limits on bit devices used by basic instructions and application instructions in order to increase processing speed.
However, the instruction symbol does not change.
To shorten scans, run instructions under the conditions indicated below.
(1) Conditions which each device must meet for subset processing
(a) When using word data
Constants • No limitations
(b) When using double word data
3.5 Reducing Instruction Processing Time 3.5.1 Subset Processing
Constants • No limitations
(c) When using bit data
Bit device • Internal user device (indexing possible)
*1: Only for Universal model QCPU *2: Valid only for the multiple CPU high speed transmission area (from U3En\G10000) (Excluding the case that indexing is executed for the head I/O number of the CPU module (U3En\G10000))

(2) Instructions for which subset processing can be used

Comparison operation instruction • ,D ,D
Data conversion instructions • BCD, BIN, DBCD, DBIN, FLT, DFLT, INT, DINT
Logic operations • WAND, DAND, WOR, DOR, WXOR, DXOR, WXNR, DXNR
Rotation instruction • RCL, DRCL, RCR, DRCR, ROL, DROL, ROR, DROR
Operation processing time can be reduced with standard device registers (Z).
The following shows an example program with standard device registers.

Using data registers takes three steps and the operation processing time of 28.5 ns. (With Q4/Q06/Q10/Q13/Q20/Q26UD(E)HCPU)
Using standard device registers instead of data registers takes one step and the operation processing time of 9.5 ns. (With Q4/Q06/Q10/Q13/Q20/Q26UD(E)HCPU)
Operation processing time is reduced with the instructions that the subset processing is possible.
For the number of steps, refer to Section 3.8.
For the operation time for each instruction, refer to Appendix 1.
Because standard device registers are the same devices as index registers, do not use device numbers of the standard device registers for the index registers.

Operation errors are returned in the following cases when executing basic instructions and application instructions with CPU module:
When file register is set but a memory card is not installed or when file register is not set, writing/reading to/from file register is as follows: (1) For the High Performance model QCPU, Process CPU, and Redundant CPU
An error does not occur even when writing/reading to/from file register is performed. However, “0H” is stored when reading from file register is performed. (2) For the Universal model QCPU
The OPERATION ERROR (error code:4101) occurs when writing/reading to/ from file register is performed.
(1) Device range check
3.6 Cautions on Programming (Operation Errors)
Device range checks for the devices used by basic instructions and application instructions in CPU module are as indicated below:
(a) Instructions for specified each device, including MOV and DMOV
For example, in a case where the data register has been allocated 12k points, there will be no error even if it exceeds D12287.
This designates D12287 and D12288 as the target devices for executing the DMOV instruction. However, since D12288 does not exist, data in another device is corrupted.
Device range checks are not conducted also in cases where indexing is being performed. In cases where the corresponding device range is exceeded as the result of performing indexing, data is written to other devices.*1
*1: For the assignment order of internal user devices, refer to this Section (c) Character string data.

The device range is checked. When the device number is outside the device range, an operation error occurs. For example, when12 k points are assigned to a data register, an error occurs if the device number of the data register exceeds D12287.
When D12287 is specified with the DMOV instruction, the target devices are D12287 and D12288. However, an operation error occurs because D12288 does not exist.
The device range is checked even though indexing is executed. With changing the settings of the PLC parameter on GX Developer, the device
range is not checked.*2
*2: For changing the settings of the PLC parameter on GX Developer, refer to the following manual.
(b) Instructions for a block of devices, including BMOV and FMOV
The device range is checked. When the device number is outside the device range, an operation error occurs. For example, when 12 k points are assigned to a data register, an error occurs if the device number of the data register exceeds D12287.
This designates D12287 and D12288 as the target devices for executing the BMOV instruction. However, since D12288 does not exist, an operation error occurs.
Device range checks are also conducted when indexing is performed. However, if indexing has been conducted, there will be no error returned if the initial device number exceeds the relevant device range.
D0 D12285Z1 K2 BMOV
When D12287 is specified with the BMOV instruction, the target devices are D12287 and D12288. However, an operation error occurs because D12288 does not exist.
An operation error occurs since head device number is D12289 that exceeds the device range.

The device range is checked. When the device number is outside the device range, an operation error occurs. For example, when12 k points are assigned to a data register, an error occurs if the device number of the data register exceeds D12287.
When D12287 is specified with the BMOV instruction, the target devices are D12287 and D12288. However, an operation error occurs because D12288 does not exist.
The device range is checked even though indexing is executed. An error occurs when the head device number of the devices with indexing exceeds the device range.
D0 D12285Z1 K2 BMOV
When D12287 is specified with the BMOV instruction, the target devices are D12287 and D12288. However, an operation error occurs because D12288 does not exist.
An operation error occurs since head device number is D12289 that exceeds the device range.
With changing the settings of the PLC parameter on GX Developer, the device
range is not checked.*2
*2: For changing the settings of the PLC parameter on GX Developer, refer to the following manual.
3.6 Cautions on Programming (Operation Errors)
(c) Character string data Because all character string data is of variable length, device range checks are performed. In cases where the corresponding device range has been exceeded, an operation error will be returned. For example, in a case where the data register has been allocated 12k points, there will be an error if it exceeds D12287.
This designates D12287 and D12288 as the target devices for executing the $MOV instruction. However, since D12288 does not exist, an operation error occurs.
However, with CPUs other than Universal model QCPU, when indexing is executed and the head device number is outside the device range, no error occurs and the other devices are accessed.

When performing the following access in Universal model QCPU, an error (error code: 4101) occurs.
(range of A area) The allocation order of individual devices is shown below:
SD
Y
M
B
F
SB
Contact and coil of T
Contact and coil of ST
Contact and coil of C
Present value of T
Present value of ST
Present value of C
SW
File register (32K points)
Presetting PC parameter not to check indexing device range enables the Universal model QCPU not to detect an error in the above accesses from 1) to 4). Detecting an error in the above accesses from 1) to 4) , however, depends on the serial
No. of Universal model QCPU.*2
First 5 digits of serial No. for Universal model QCPU
Setting device range in indexing
Serial No.”10021” or lower Serial No.”10022” or higer
Set Detected errors in accesses 1) to 4)
Not set Detected errors in accesses 2) to 4) Not detected
*2: For changing the settings of the PLC parameter on GX Developer, refer to the QnUCPU User's Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals).
When indexing is executed only with Universal model QCPU, devices between internal user devices (SW) and file registers (R) cannot be skipped. (Error code: 4101).
Area A · Empty area · Boundary B

For the how to change the internal user device allocation, referto User’s Manual (Functions Explanation, Program Fundamentals) for the CPU module used.
(d) Device range checks are conducted when indexing is performed by direct access
output (DY).
(e) Set the following items so that the specification does not cross over theboundary
between the internal user device and the extended data register (D) or extended link register (W).

Data biock where the device number crosses over the boundary between the internal user device and the extended data register (D) is not possible.
3.6 Cautions on Programming (Operation Errors)

(2) Device data check
Device data checks for the devices used by basic instructions and application instructions in CPU module are as indicated below:
(a) When using BIN data
No error is returned even if the operation results in overflow or underflow. The carry flag does not go on at such times, either.
(b) When using BCD data
(c) When using floating-point data 1) An operation error occurs when the following operation results are returned with the single-precision floating-point operation instruction.
When the absolute value of the floating decimal point data is 1.0 2-127 or lower
When absolute value of floating decimal point data is 1.0 2128 or higher 2) An operation error occurs when the following operation results are returned with the double-precision floating-point operation instruction.
When the absolute value of the floating decimal point data is 1.0 2-1023 or lower
When absolute value of floating decimal point data is 1.0 21024 or higher
(d) Using character string data
No data check is conducted.
(3) Buffer memory access
For accessing buffer memories, using instructions with intelligent function module devices (from Un\G0) is recommended.
(4) Multiple CPU shared memory access
For accessing multiple CPU shared memories, using instructions with multiple CPU shared devices (from U3En\G10000) is recommended.

The following four types of execution conditions exist for the execution of CPU module sequence instructions, basic instructions, and application instructions:
LD X0, OUT Y10 • Executed at ON Instructions executed while input condition is ON
For coil or equivalent basic instructions or application instructions, where the same instruction can be designated for either execution at ON or leading edge execution, a "P" is added after the instruction name to specify the condition for execution.
Execution at ON and execution at leading edge for the MOV instruction are designated as follows:
3.7 Conditions for Execution of Instructions
MOVP K4X0 D0
Execution at leading edge
Instruction name · Instruction name · Execution during ON

The number of steps in CPU module sequence instructions, basic instructions, and application instructions differs depending on whether indirect setting of the device used is possible or not.
(1) Counting the number of basic steps
The basic number of steps for basic instructions and application instructions is calculated by adding the device number and 1. For example, the "+ instruction" would be calculated as follows:
(1) (2) Number of devices 2 Number of basic steps: 3
(1) (2) (3) Number of devices 3 Number of basic steps: 4
(2) Conditions for increasing the number of steps
The number of steps is increased over the number of basic steps in cases where a device is used that is designated indirectly or for which the number of steps is increased.
(a) When device is designated indirectly
In cases where indirect designation is done by @ , the number of steps is increased 1 step over the number of basic steps. For example, when a 3-step MOV instruction is designated indirectly (example: MOV K4X0 @D0), one step is added and the instruction becomes 4 steps.
(b) Devices with additional steps (Except Universal model QCPU)
Devices with Additional Steps Added Steps Example
Intelligent function module device
Multiple CPU shared device MOV U3E1\G0 D0
Link direct device MOV J3\B20 D0
Index register MOV Z0 D0
Serial number access format file register MOV ZR123 D0
32-bit constant DMOV K123 D0
Real constant EMOV E0.1 D0
For odd numbers:
(number of characters + 1) / 2
Character string constant

(c) Devices with additional steps (Universal model QCPU(except Q00UJCPU))
The following table shows steps depending on the devices.
Instruction Symbols Devices with Additional Steps
Serial number access format file register,
Extended data register (D),
Extended link register (W) 1(2) 1
Multiple CPU shared device
Serial number access format file register,
Extended data register (D),
Extended link register (W) 1(4) 3
Multiple CPU shared device
Serial number access format file register,
Extended data register (D),
Extended link register (W) 1(5) 4
Multiple CPU shared device
Serial number access format file register
Extended data register (D),
Extended link register (W) 1(2) 1
Multiple CPU shared device
Serial number access format file register
Extended data register (D),
Extended link register (W) 1(2)
Multiple CPU shared device
Serial number access format file register
Extended data register (D),
Extended link register (W) 1(2) 1
3.8 Counting Step Number
Multiple CPU shared device
2 Serial number access format file register
Extended data register (D),
Extended link register (W)
Multiple CPU shared device 1(3)
Standard device register *2 -1
3 Serial number access format file register
Extended data register (D),
Extended link register (W) 1
Multiple CPU shared device
Standard device register *2 -1
Serial number access format file register
Extended data register (D),
Extended link register (W)
1 Multiple CPU shared device
3 Serial number access format file register
Extended data register (D),
Multiple CPU shared device

Instruction Symbols Devices with Additional Steps
Serial number access format file register
Extended data register (D),
DANDP,DORP,DXORP,DXNRP
Multiple CPU shared device
Serial number access format file register
Extended data register (D),
Multiple CPU shared device
Serial number access format file register
Extended data register (D),
DANDP,DORP,DXORP,DXNRP
3 Multiple CPU shared device
Serial number access format file register
Extended data register (D),
Multiple CPU shared device
Serial number access format file register
Extended data register (D),
3 Multiple CPU shared device


Extended link register (W) 1 2 Multiple CPU shared device Decimal constant, hexadecimal
*1: If the same device is used for and , the number of basic steps increases by one. *2: The number of steps decreases with a standard device register.
When multiple standard device registers are used in an instruction applicable to subset processing, the number of steps decreases. The following table shows the number of steps for each instruction.

3.8 Counting Step Number
*1: If the same device is used for and , the number of basic steps increases by one.


*, *P, /, /P , , and -2(1)
The following table shows steps depending on the devices.

Index register / standard device register MOV Z0 D0
Serial number access format file register MOV ZR123 D0
(d) In cases where the conditions described in (a) to (c) above overlap, the number of steps
becomes a culmination of the two.

MOV If U1\G10 ZR123 has been designated, a total of 2 steps are added.

3.9 Operation when the OUT, SET/RST, or PLS/PLF Instructions Use the Same Device
The following describes the operation for executing multiple instructions of the OUT, SET/RST, or PLS/PLF that use the same device in one scan.
(1) OUT instructions using the same device
Do not program more than one OUT instruction using the same device in one scan. If the OUT instructions using the same device are programmed in one scan, the specified device will turn ON or OFF every time the OUT instruction is executed, depending on the operation result of the program up to the relevant OUT instruction. Since turning ON or OFF of the device is determined when each OUT instruction is executed, the device may turn ON and OFF repeatedly during one scan. The following diagram shows an example of a ladder that turns the same internal relay (M0) with inputs X0 and X1 ON and OFF.
M0

3.9 Operation when the OUT, SET/RST, or PLS/PLF Instructions Use the Same Device
With the refresh type CPU module, when the output (Y) is specified by the OUT instruction, the ON/OFF status of the last OUT instruction of the scan will be output.
[Ladder] · [Timing Chart]

(2) SET/RST instructions using the same device
(a) The SET instruction turns ON the specified device when the execution command is ON
and performs nothing when the execution command is OFF. For this reason, when the SET instructions using the same device are executed two or more times in one scan, the specified device will be ON if any one of the execution commands is ON.
(b) The RST instruction turns OFF the specified device when the execution command is
ON and performs nothing when the execution command is OFF. For this reason, when the RST instructions using the same device are executed two or more times in one scan, the specified device will be OFF if any one of the execution commands is ON.
(c) When the SET instruction and RST instruction using the same device are programmed in one scan, the SET instruction turns ON the specified device when the SET execution command is ON and the RST instruction turns OFF the specified device when the RST execution command is ON. When both the SET and RST execution commands are OFF, the ON/OFF status of the specified device will not be changed.
M0
M0 RST

RST M0 is not executed because X0 is OFF. (M0 remains ON.)
SET M0 is not executed because X0 is OFF. (M0 remains ON.)
When using a refresh type CPU module and specifying output (Y) in the SET/RST instruction, the ON/OFF status of the device at the execution of the last instruction in the scan is returned as the output (Y).
[Ladder] · [Timing Chart]

(3) PLS instructions using the same device
The PLS instruction turns ON the specified device when the execution command is turned ON from OFF. It turns OFF the device at any other time (OFF to OFF, ON to ON, or ON to OFF). If two or more PLS instructions using the same device are executed in one scan, each instruction turns ON the device when the corresponding execution command is turned ON from OFF and turns OFF the device in other cases. For this reason, if multiple PLS instructions using the same device are executed in a single scan, a device that has been turned ON by the PLS instruction may not be turned ON during one scan.
M0
M0 PLS
throughout the scan.)

3.9 Operation when the OUT, SET/RST, or PLS/PLF Instructions Use the Same Device
M0 turns OFF because X1 status is other than OFF ON.
M0 turns ON because X1 goes ON (OFF ON). M0 turns OFF because X0 status is other than OFF ON. (M0 remains OFF.)
M0 turns ON because X0 goes ON (OFF ON).
[Ladder] · [Timing Chart]


M0 turns ON because X1 goes ON (OFF ON). (M0 remains ON.)
M0 turns OFF because X1 status is other than OFF ON. (M0 remains OFF.)
M0 turns ON because X0 goes ON (OFF ON).
M0 turns OFF because X0 status is other than OFF ON.
When using a refresh type CPU module and specifying output (Y) in the PLS instructions, the ON/OFF status of the device at the execution of the last PLS instruction in the scan is returned as the output (Y).
(4) PLF instructions using the same device
The PLF instruction turns ON the specified device when the execution command is turned OFF from ON. It turns OFF the device at any other time (OFF to OFF, OFF to ON, or ON to ON). If two or more PLF instructions using the same device are executed in one scan, each instruction turns ON the device when the corresponding execution command is turned OFF from ON and turns OFF the device in other cases. For this reason, if multiple PLF instructions using the same device are executed in a single scan, a device that has been turned ON by the PLF instruction may not be turn ON during one scan.
M0
M0 PLF
[Ladder]

throughout the scan.)

M0 turns OFF because X1 status is other than ON OFF.
M0 turns OFF because X1 status is other than ON OFF. (M0 remains OFF.)
M0 turns ON because X0 goes OFF (ON OFF).
M0 turns OFF because X0 status is other than ON OFF (M0 remains OFF.)

3.9 Operation when the OUT, SET/RST, or PLS/PLF Instructions Use the Same Device
M0 turns OFF because X1 status is other than ON OFF. (M0 remains OFF.)
M0 turns ON because X1 goes OFF (ON OFF). (M0 remains ON.)
M0 turns ON because X0 goes OFF (ON OFF).
M0 turns OFF because X1 status is other than ON OFF.
When using a refresh type CPU module and specifying output (Y) in the PLF instructions, the ON/OFF status of the device at the execution of the last PLF instruction in the scan is returned as the output (Y).
[Timing Chart]

This section explains the precautions for use of the file registers in the QCPU.
(1) CPU modules that cannot use file registers
The Q00JCPU and Q00UJCPU cannot use the file registers. When using the file registers, use the CPU module of other than the Q00JCPU and Q00UJCPU.
(2) Setting of file registers to be used
When using the file registers, the file registers to be used must be set with the PLC parameter or QDRSET instruction. (The PLC parameters of the Q00CPU and Q01CPU need not be set since they are preset to "Use file register".) If the file registers to be used have not been set, normal operation cannot be performed with the instructions that use the file registers.
Even when file registers to be used are not set in the PLC parameter, a program that uses file registers can be created. For the CPU module other than the Universal model QCPU, an error does not occur when that program is written to the CPU module. However, note that the correct data cannot be written/read to/from the file register. For the Universal model QCPU, an error occurs if the program where file registers are used is executed.
(3) Securing of file register area
(a) High Performance model QCPU, Process CPU, Redundant CPU, Universal model
QCPU When using file registers, register the file registers to the standard RAM/memory card to secure the file register area.
(b) Basic Model QCPU (except Q00JCPU)
The file register area has been secured in the standard RAM beforehand. The user need not secure the file register area.
The following table indicates the memories that can use the file registers in each CPU module.
High Performance model QCPU
Memory card *1 *2 *3
: Can be registered, : Cannot be registered. *1: When the flash memory is used, only read from the file registers can be performed. (Write to the flash ROM cannot be performed.)
*2: When the E2PROM is used, write to the E2PROM can be performed with the PROMWR instruction. *3: Unusable for the Q00UCPU and Q01UCPU.

For the file register setting method and file register area securing method, refer to User’s Manual (Functions Explanation, Program Fundamentals) for the CPU module used.
(4) Designation of file register number in excess of the registered number of points
(a) CPUs other than Universal model QCPU
An error will not occur if data are written or read to or from the file registers that have numbers greater than the registered number of points. However, note that the read/write of correct data to/from the file registers cannot be performed.
(b) Universal model QCPU
When data are written to or read from the file registers that are not registered, an error occurs. (Error code: 4101)
(5) File register specifying method
There are the block switching method and serial number access method to specify the file registers.
(a) Block switching method
In the block switching method, specify the number of used file register points in units of 32k points (one block). For file registers of 32k points or more, specify the file registers by switching the block No. to be used with the RSET instruction. Specify each block as R0 to R32767.

3.10 Precautions for Use of File Registers

(b) Serial number access method
In the serial number access method, specify the file registers beyond 32k points with consecutive device numbers. The file registers of multiple blocks can be used as consecutive file registers. Use "ZR" as the device name.
ZR0
ZR32767 ZR32768
MOV D0 ZR65536
ZR65535 ZR65536
(6) Settings and restrictions when refreshing file registers
The settings of refresh devices are as follows.
The restrictions when specifying file registers to refresh devices are as follows.
When the file register which has the same name as the program is used, refresh is performed to the data of the file register having the same name as the program that is set at the last number in the [Program] tab page of PLC parameter. To read/write the refresh data, specify the file register to the refresh device after switching the file register to the corresponding one with the QDRSET instruction.
If the file name of file register or the drive number is changed by the QDRSET instruction, link refresh is performed to the data of the setting file at the time of the END instruction execution. To read/write the refresh data, specify the file register of the setting file at the time of the END instruction execution. If the drive number is changed by the QDRSET instruction when "ZR" is specified for the device in the CPU modules other than the Universal model QCPU, an error (LINK PARA ERROR (3101)) occurs. (Note that an error does not occur when "R" is specified for the device.)

When a block number is switched by the RSET instruction, refresh is performed to the data of the file register (R) in the block number at the time of the END instruction execution. To read/write the refresh data, specify the file register of the block number at the time of the END instruction execution.
(7) Precautions when file registers in the flash memory are used
This section explains the precautions for use of the flash memory.
(a) The following flash memory can be used.
(b) File registers in the flash memory can be only read in a sequence program.
(Write to the flash memory cannot be performed in a sequence program.)

When using the flash memory for the file registers, write data in advance.
Using GX Developer, write data to the flash card.

3.10 Precautions for Use of File Registers



The description of instructions that are contained in the following chapters are presented in the following format.

QCPU
model QCPU Process CPU Redundant CPU
A normal icon means the
Universal Basic High performance Process Redundant
corresponding instruction can be
used.
The icon with Ver. means the
Ver. High performance
Ver. Process
Ver.
instruction can be used with
some restrictions (e.g., function
version, software version).
The icon with (cross) means
Universal Basic High performance Process Redundant
cannot be used.


Execution Executed while ON Executed One Time
at ON Executed while OFF Executed One
Bit Bit data or head number in bit data
BIN 16 bits BIN 16-bit data or head number in word device
BIN 32 bits BIN 32-bit data or head number in double word device
BCD 4-digit 4-digit BCD data
BCD 8-digit 8-digit BCD data
Real number Floating decimal point data
character string Character string data
Device name Device name data


P, I, J, U, DX, DY, N, BL, TR, BL \ S,V
*1: For the description for the individual devices, refer to the QnUCPU User’s Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User’s Manuall (Function Explanation, Program Fundamentals)
*2: FX and FY can be used only for bit data, and FD only for word data. *3: When T, ST and C are used for other than the instructions below, only word data can be used. (Bit data cannot be used.) [Instructions that can be used with bit data] LD, LDI, AND, ANI, OR, ORI, LDP, LDF, ANDP, ANDF, ORP, ORF,LDPI, LDFI, ANDPI, ANDFI, ORPI, ORFI, OUT, RST *4: Usable with the CC-Link IE controller network, MELSECNET/H, and MELSECNET/10.
*5: Devices which can be set are recorded in the "Constant" and the "Other" columns.

Category Processing Details Reference
Contact instruction Operation start, series connection, parallel connection Section 5.1
Ladder block connection, creation of pulses from operation
results, store/read operation results Section 5.2
Output instruction Bit device output, pulse output, output reversal Section 5.3
Shift instruction Bit device shift Section 5.4
Master control instruction Master control Section 5.5
Termination instruction Program termination Section 5.6
Program stop, instructions such as no operation which do not
fit in the above categories Section 5.7
Section · Association instruction · Other instruction

5.1 Contact Instructions
5.1.1 Operation start, series connection, parallel connection (LD,LDI,AND,ANI,OR,ORI)
LD,LDI,AND,ANI,OR,ORI
Basic Process High performance Redundant Universal

Bit device number / Word device bit designation ( )
U \G Zn Constants Other DX, BL Bit Word Bit Word
(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*1, and use that as an operation result.
*1: When a bit designation is made for a word device, the device turns ON or OFF depending on the 1/0 status of the designated bit.

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*2, perform an AND operation on that data and the operation result to that point, and take this value as the operation result.
*2: When a bit designation is made for a word device, the device turns ON or OFF depending on the 1/0 status of the designated bit.
(2) There are no restrictions on the use of AND or ANI, but the following applies with a
peripheral device used in the ladder mode:
(a) Write When AND and ANI are connected in series, a ladder with up to 24 stages
can be displayed. (b) Read When AND and ANI are connected in series, a ladder with up to 24 stages
can be displayed. If the number exceeds 24 stages, up to 24 will be displayed.
(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*3, and perform an OR operation with the operation results to that point, and use the resulting value as the operation result.
*3: When a bit designation is made for a word device, the device turns ON or OFF depending on the 1/0 status of the designated bit.
(2) There are no limits on the use of OR or ORI, but the following applies with a peripheral
device used in the ladder mode.
(a) Write OR and ORI can be used to create connections of up to 23 ladders. (b) Read OR and ORI can be used to create connections of up to 23 ladders.
The 24th or subsequent ladders cannot be displayed properly.

5.1 Contact Instructions 5.1.1 Operation start, series connection, parallel connection (LD,LDI,AND,ANI,OR,ORI)
Word device bit designations are made in hexadecimal. Bit b11 of D0 would be D0.0B. See 3.2.1 for more information on word device bit designation.

Operation Error
(1) There are no operation errors with LD, LDI, AND, ANI, OR, or ORI instruction.
(1) A program using the LD, AND, OR, and ORI instructions.
[Ladder Mode] [List Mode]

(2) A program linking contacts using the ANB and ORB instructions.
[Ladder Mode] [List Mode]

(3) A parallel program with the OUT instruction.
[Ladder Mode] [List Mode]

Step Instruction Device

5.1.2 Pulse operation start, pulse series connection, pulse parallel connection (LDP,LDF,ANDP,ANDF,ORP,ORF)
LDP,LDF,ANDP,ANDF,ORP,ORF
Basic Process High performance Redundant Universal

Bit device number / Word device bit designation ( )
5.1 Contact Instructions 5.1.2 Pulse operation start, pulse series connection, pulse parallel connection (LDP,LDF,ANDP,ANDF,ORP,ORF)
(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).

(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.
(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:

ANDP State ANDF State Bit Device Bit Designated for
(2) ORP is a leading edge pulse parallel connection instruction, and ORF is a trailing edge pulse
serial connection instruction. They perform an OR operation with the operation result to that point, and take the resulting value as the operation result.
The ON/OFF data used by ORP and ORF are indicated in the table below:

ORP State ORF State Bit Device Bit Designated for
(1) There are no operation errors with LDP, LDF, ANDP, ANDF, ORP, or ORF instruction.
(1) The following program executes the MOV instruction at input X0, or at the leading edge of
b10 (bit 11) of data register D0.
[Ladder Mode] [List Mode]

*1: Word device bit designation is performed in hexadecimal. Bit b10 of D0 will be D0.A.

5.1.3 Pulse NOT operation start, pulse NOT series connection, pulse NOT parallel connection (LDPI,LDFI,ANDPI,ANDFI,ORPI,ORFI)
Ver.
Basic Process High performance Redundant

Bit device number / Word device bit designation ( ) S
Bit device number / Word device bit designation ( ) S
5.1 Contact Instructions 5.1.3 Pulse NOT operation start, pulse NOT series connection, pulse NOT parallel connection (LDPI,LDFI,ANDPI,ANDFI,ORPI,ORFI)
(1) LDPI is the leading edge pulse NOT operation start instruction that is on only at the leading
edge of the specified bit device (when the bit device goes from on to off) or when the bit device is on or off. If a word device has been specified, LDPI is on only when the specified bit is 0, 1, or changes from 1 to 0.
Universal

(2) LDFI is the trailing edge pulse NOT operation start instruction that is on only at the trailing
edge of the specified bit device (when the bit device goes from off to on) or when the bit device is on or off. If a word device has been specified, LDFI is on only when the specified bit is 0, 1, or changes from 0 to 1.
Device Specified in LDPI or LDFI
LDPI State LDFI State Bit Device Bit Designated for
OFF to ON 0 to 1 OFF ON
ON 1 ON ON
ON to OFF 1 to 0 ON OFF
(1) ANDPI is a leading edge pulse NOT series connection, and ANDFI is a trailing pulse NOT
series connection. ANDPI and ANDFI execute an AND operation with the previous operation result, and take the resulting value as the operation result. The on or off data used by ANDPI and ANDFI are indicated in the table below.
Device Specified in ANDPI or ANDFI
LDPI State LDFI State Bit Device Bit Designated for
OFF to ON 0 to 1 OFF ON
ON 1 ON ON
ON to OFF 1 to 0 ON OFF
(1) ORPI is a leading edge pulse NOT parallel connection, and ORFI is a trailing pulse NOT
parallel connection. ORPI and ORFI execute an OR operation with the previous operation result, and take the resulting value as the operation result. The on or off data used by ORPI and ORFI are indicated in the table below.
Device Specified in ORPI or ORFI
ORPI State ORFI State Bit Device Bit Designated for
OFF to ON 0 to 1 OFF ON
ON 1 ON ON
ON to OFF 1 to 0 ON OFF
(1) There are no operation errors with LDPI, LDFI, ANDPI, ANDFI, ORPI, or ORFI instruction.
Word Device · Word Device · Word Device

Program Example
(1) The following program stores 0 into D0 when X0 is on, off, or turns from on to off, or M0 is
on, off, or turns from off to on.
[Ladder Mode] [List Mode]

(2) The following program stores 0 into D0 when X0 is on and b10 (bit 11) of D0 is on, off, or
turns from on to off.
Ladder Mode] [List Mode]

5.1 Contact Instructions 5.1.3 Pulse NOT operation start, pulse NOT series connection, pulse NOT parallel connection (LDPI,LDFI,ANDPI,ANDFI,ORPI,ORFI)
Step Instruction Device · Step Instruction Device

5.2 Association Instructions
5.2.1 Ladder block series connection and parallel connection (ANB,ORB)
ANB,ORB
Basic Process High performance Redundant Universal

For parallel connection of 1 contact, OR or ORI is used.
U \G Zn Constants Other Bit Word Bit Word
(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 15 ANB instructions (16 blocks) can be written
(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.

1 AND X1 2 LD X2 3 AND X3 4 ORB 5 OR X4 6 OUT Y10
(3) The ORB symbol is not the contact symbol, but rather is the connection symbol.
(4) When programming in the list mode, it is possible to use up to 15 ORB instructions
successively (16 blocks).

Operation Error
(1) There are no operation errors associated with ANB or ORB instruction.
(1) A program using the ANB and ORB instructions.
[Ladder Mode] [List Mode]


5.2 Association Instructions 5.2.1 Ladder block series connection and parallel connection (ANB,ORB)

5.2.2 Operation results push,read,pop (MPS,MRD,MPP)
MPS,MRD,MPP
Basic Process High performance Redundant Universal
In the ladder display, MPS, MRD and MPP are not displayed.
MRD
MPP
U \G Zn Constants Other Bit Word Bit Word
Function
MPS
(1) Stores the memory of the operation result (ON or OFF) immediately prior to the MPS
instruction.
(2) Up to 16 MPS instructions can be used successively.
If the MPP instruction is used during this process, the number of uses calculated for the MPS instruction will be decremented by one.
(1) Reads the operation result stored for the MPS instruction, and uses that result to perform the
operation in the next step.
(1) Reads the operation result stored for the MPS instruction, and uses that result to perform the
operation in the next step.
(2) Clears the operation results stored by the MPS instruction.
(3) Subtracts 1 from the number of MPS instruction times of use.


Ladder Using the MPS, MRD and MPP Instruction Ladder not Using MPS, MRD, and MPP Instructions
(1) There are no errors associated with the MPS, MRD, or MPP instruction.
(1) A program using the MPS, MRD, and MPP instructions.
[Ladder Mode] [List Mode]

5.2 Association Instructions 5.2.2 Operation results push,read,pop (MPS,MRD,MPP)

(2) A program using the MPS and MPP instructions successively.


[Ladder Mode] · [List Mode]

5.2.3 Operation results inversion (INV)
INV
Basic Process High performance Redundant Universal

U \G Zn Constants Other Bit Word Bit Word
Inverts the operation result immediately prior to the INV instruction.


5.2 Association Instructions 5.2.3 Operation results inversion (INV)
(1) There are no operation errors associated with the INV instruction.
(1) A program which inverts the X0 ON/OFF data, and outputs from Y10.

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. 2. When a ladder block is used, the operation result is inverted within the range of the ladder block. To operate a ladder using the INV instruction in combination with the ANB instruction, pay attention to the range that will be inverted.
Range inverted M0 0
Y10
M10
M20
ANB
END
For details of the ANB instruction, refer to Section 5.2.1

5.2.4 Operation result conversions (MEP,MEF)
MEP,MEF
Basic Process High performance Redundant Universal

U \G Zn Constants Other Bit Word Bit Word
MEP (1) If operation results up to the MEP instruction are leading edge (from OFF to ON), goes ON
(continuity status). If operation results up to the MEP instruction are anything other than leading edge, goes OFF (non-continuity status).
(2) Use of the MEP instruction simplifies pulse conversion processing when multiple contacts are connected in series. MEF
(1) If operation results up to the MEF instruction are trailing edge (from ON to OFF), goes ON
(continuity status). If operation results up to the MEF instruction are anything other than trailing edge, goes OFF (non-continuity status).
5.2 Association Instructions 5.2.4 Operation result conversions (MEP,MEF)
(2) Use of the MEF instruction simplifies pulse conversion processing when multiple contacts are connected in series.
(1) There are no operation errors associated with the MEP or MEF instruction.
(1) A program which performs pulse conversion to the operation results of X0 and X1
[Ladder Mode] [List Mode]
1. The MEP and MEF instructions will occasionally not function properly when pulse conversion is conducted for a contact that has been indexed by a subroutine program or by the FOR to NEXT instructions. If pulse conversion is to be conducted for a contact that has been indexed by a subroutine program or by the FOR to NEXT instructions, use the EGP/EGF instructions. 2. 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.
Step Instruction Device

5.2.5 Pulse conversions of edge relay operation results (EGP,EGF)
EGP,EGF
Basic Process High performance Redundant Universal
EGF
: Edge relay number where operation results are stored (bits)
U \G Zn Constants Other
V Bit Word Bit Word
(1) Operation results up to the EGP instruction are stored in memory by the edge relay (V).
(2) Goes ON (continuity status) 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 status).
(3) The EGP instruction is used for subroutine programs, and for conducting pulse operations
for programs designated by indexing between the FOR and NEXT instructions.
(4) The EGP instruction can be used like an AND instruction.
(1) Operation results up to the EGF instruction are stored in memory by the edge relay (V).
(2) Goes ON 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 status).
(3) The EGF instruction is used for subroutine programs, and for conducting pulse operations
for programs designated by indexing between the FOR and NEXT instructions.
(4) The EGF instruction can be used like an AND instruction.
(1) There are no operation errors associated with the EGP or EGF instruction.

Program Example
(1) A program using the EGP instruction in the subroutine program using the EGD instruction
[Ladder Mode] [List Mode]


5.2 Association Instructions 5.2.5 Pulse conversions of edge relay operation results (EGP,EGF)
[Operation]

5.3 Output Instructions
5.3.1 Out instruction (excluding timers, counters, and annunciators) (OUT)
OUT
Basic Process High performance Redundant Universal

: Number of the device to be turned ON and OFF (bits)
(1) Operation results up to the OUT instruction are output to the designated device.
(a) When Using Bit Devices
ON ON
(b) When Bit Designation has been Made for Word Device
Operation Results Bit Designated
ON 1
Operation Error
(1) There are no operation errors associated with the OUT instruction.
Operation Results Coil

Program Example
(1) When using bit devices
[Ladder Mode] [List Mode]

(2) When bit designation has been made for word device
[Ladder Mode] [List Mode]


5.3 Output Instructions 5.3.1 Out instruction (excluding timers, counters, and annunciators) (OUT)
The number of basic steps for the OUT instructions is as follows:
(Only for Universal model QCPU) : 2 (Other than Universal model QCPU) : 3 • Devices other than above : 3

5.3.2 Timers (OUT T,OUTH T)
OUT T,OUTH T
Basic Process High performance Redundant Universal

Setting in the range from 1 to 32767 is valid.
Data register value in the range from 1 to 32767 is valid.
Setting in the range from 1 to 32767 is valid.
Data register value in the range from 1 to 32767 is valid.
Setting in the range from 1 to 32767 is valid.
Data register value in the range from 1 to 32767 is valid.
Setting in the range from 1 to 32767 is valid.
Data register value in the range from 1 to 32767 is valid.
: Timer number (bit) Set value : Value set for timer (BIN 16 bits *1)

(Only T) ––
*1: The value setting for the timer cannot be designated indirectly.
Indirect designation is not permitted.
See Section 3.4 for further information on indirect designation. *2: Timer values can be set only as a decimal constant (K). Hexadecimal constants (H) and real numbers cannot be used for timer settings.
(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 status (total numeric value is equal to or greater than the setting value), the contact responds as follows:
A Contact Continuity · B Contact Non-continuity

(2) The contact responds as follows when the operation result up to the OUT instruction is a
change from ON to OFF:

OFF 0 Non-continuity Continuity Non-continuity Continuity High speed timer
(3) To clear the present value of a retentive timer and turn the contact OFF after time up, use the
RST instruction.
(4) A negative number ( 32768 to 1) cannot be set as the setting value for the timer.*3
If the setting value is 0, the timer will time out when the time the OUT instruction is executed.
*3: When specifying a setting value for the timer using a word device (D, W, R, ZR, J \ or U \ ), whether the value is in the setting range is not checked. Check the value in the user program so that a negative number is not set.
(5) The following processing is conducted when the OUT instruction is executed:
(6) Indexing for timer coils or contacts can be conducted only by Z0 or Z1.

5.3 Output Instructions 5.3.2 Timers (OUT T,OUTH T)
(1) There are no operation errors associated with the OUT T instruction.

Caution
(1) When creating a program in which the operation the timer contact triggers the operation of
other timer, create the program for the timer that operates later first.
In the following cases, all timers go ON at the same scan if the program is created in the order the timers operate.
T2 timer starts measurement from the next scan after turning ON of the contact of T1 timer. T2
T1 timer starts measurement from the next scan after turning ON of the contact of T0 timer.
T0
T0 timer starts measurement when X0 is turned ON.
T0
T0 timer starts measurement when X0 is turned ON.
Contacts of T1 and T2 timers are turned ON when the contact of T0 timer is turned ON.
T2

Program Example
(1) The following program turns Y10 and Y14 ON 10 seconds after X0 has gone ON.
[Ladder Mode] [List Mode]

3 * Step Instruction Device
*3: The setting value of the low-speed timer indicates its default time limit (100 ms).
(2) The following program uses the BCD data at X10 to X1F as the timer's set value.

Converts the BCD data at X10 to X1F to BIN and stores the converted value at D10. When X2 is turned ON, T2 starts measurement using the data stored in D10 as the set value.

5.3 Output Instructions 5.3.2 Timers (OUT T,OUTH T)
(3) The following program turns Y10 ON 250 ms after X0 goes ON.
*4: The setting value of the high-speed timer indicates its default time limit (10 ms).
[Ladder Mode] · [List Mode]

5.3.3 Counter (OUT C)
OUT C
Basic Process High performance Redundant Universal

Setting in the range from 1 to 32767 is valid.
Data register value in the range from 1 to 32767 is valid.

(Only C) ––
*1: Counter value cannot be set by indirect designation.
Indirect designation is not permitted.
See Section 3.4 for further information on indirect designation. *2: Counter value can be set only with a decimal constant (K). A hexadecimal constant (H) or a real number cannot be used for the counter value setting.
(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:
(2) No count is conducted with the operation results at ON. (There is no need to perform pulse
conversion on count input.)
(3) After the count up status is reached, there is no change in the count value or the contacts
until the RST instruction is executed.
(4) A negative number ( 32768 to 1) cannot be set as the setting value for the timer.
If the set value is 0, the processing is identical to that which takes place for 1.
(5) Indexing for the counter coil and contact can use only Z0 and Z1.
Counter setting value has no limitation for indexing.
A Contact Continuity · B Contact Non-continuity


(1) There are no operation errors associated with the OUT C instruction.
(1) The following program turns Y30 ON after X0 has gone ON 10 times, and resets the counter
when X1 goes ON.
[Ladder Mode] [List Mode]

(2) The following program sets the value for C10 at 10 when X0 goes ON, and at 20 when X1
goes ON.

C10 executes counting using the data stored in D0 as the set value.
5.3 Output Instructions 5.3.3 Counter (OUT C)
[Ladder Mode]

5.3.4 Annunciator output (OUT F)
OUT F
Basic Process High performance Redundant Universal

: Number of the annunciator to be turned ON (bits)
U \G Zn Constants Other Bit Word Bit Word
(1) Operation results up to the OUT instruction are output to the designated annunciator.
(2) The following responses occur when an annunciator (F) is turned ON.
(SD64 to SD79).
(3) If the value of SD63 is 16 (which happens when 16 annunciators are already ON), even if a
new annunciator is turned ON, its number will not be stored at SD64 to SD79.
(4) The following responses occur when the annunciator is turned OFF by the OUT instruction.
The coil goes OFF, but there are no changes in the status of the "USER" / "ERR." LED and the contents of the values stored in SD63 to SD79.
Use the RST F instruction to make the "USER"/"ERR." LED go OFF as well as to delete
the annunciator which was turned OFF by the OUT F instruction from SD63 to SD79.


(1) There are no operation errors associated with the OUT F instruction.

(1) The following program turns F7 ON when X0 goes ON, and stores the value 7 from SD64 to
SD79.
[Ladder Mode] [List Mode]

5.3 Output Instructions 5.3.4 Annunciator output (OUT F)

5.3.5 Setting devices (except for annunciators) (SET)
SET
Basic Process High performance Redundant Universal

: Bit device number to be set (ON)/Word device bit designation (bits)
U \G Zn Constants Other BL, DY Bit Word Bit Word
(1) When the execution command is turned ON, the status of the designated devices becomes
as shown below:
Bit device Coils and contacts turned ON
When Bit Designation has been Made for Word Device Designation bit set at 1
(2) Devices turned ON by the instruction remain ON when the same command is turned OFF.
Devices turned ON by the SET instruction can be turned OFF by the RST instruction.

(3) When the execution command is OFF, the status of devices does not change.
Device Device Status

Operation Error
(1) There are no operation errors associated with the SET instruction.
(1) The following program sets Y8B (ON) when X8 goes ON, and resets Y8B (OFF) when X9
goes ON.
[Ladder Mode] [List Mode]

(2) The following program sets the value of D0 bit 5 (b5) to 1 when X8 goes ON, and set the bit
value to 0 when X9 goes ON.
[Ladder Mode] [List Mode]
Sets b5 of D0 at 1.
Sets b5 of D0 at 0.
5.3 Output Instructions 5.3.5 Setting devices (except for annunciators) (SET)
B5
Remark
: 2
Step Instruction Device

5.3.6 Resetting devices (except for annunciators) (RST)
RST
Basic Process High performance Redundant Universal

: Bit device number to be reset/ Word device bit designation (bits)
Word device number to be reset (BIN 16 bits)

(1) When the execution command is turned ON, the status of the designated devices becomes
as shown below:

Timers and counters Sets the present value to 0, and turns coils and contacts OFF
When Bit Designation has been Made for Word Device Sets value of designated bit to 0
Word devices other than timers and counters Sets contact to 0
(2) When the execution command is OFF, the status of devices does not change.
(3) The functions of the word devices designated by the RST instruction are identical to the
following ladder:


Operation Error
(1) There are no operation errors associated with the RST instruction.
The basic number of steps of the RST instruction is as follows.
a) For bit processing
(Only for Universal model QCPU) : 2 (Other than Universal model QCPU) : 3 • Other than above : 3 b) For word processing

(1) The following program sets the value of the data register to 0.
5.3 Output Instructions 5.3.6 Resetting devices (except for annunciators) (RST)
Stores the contents at X10 to X1F in D8 when X0 is turned ON.
Resets D8 to 0 when X5 is turned ON.

(2) The following program resets the 100 ms retentive timer and counter.

When ST225 is set as retentive timer, it is turned ON when X4 ON time reaches 30 min.
Counts the number of times ST225 was turned ON. Resets the coil, contact and present value of ST225 when the contact of ST225 is turned ON.
Resets C23 to 0 when X5 is turned ON.
[Ladder Mode] · [List Mode] · Step Instruction Device

5.3.7 Setting and resetting the annunciators (SET F,RST F)
SET F,RST F
Basic Process High performance Redundant Universal

U \G Zn Constants Other Bit Word Bit Word
(1) The annunciator designated by is turned ON when the execution command is turned ON. (2) The following responses occur when an annunciator (F) is turned ON.
5.3 Output Instructions 5.3.7 Setting and resetting the annunciators (SET F,RST F)
(SD64 to SD79). • The value of SD63 is incremented by 1.
*1: When using the Basic model QCPU, the "ERR."LED goes ON.
(3) If the value of SD63 is 16 (which happens when 16 annunciators are already ON), even if a
new annunciator is turned ON, its number will not be stored at SD64 to SD79.
(1) The annunciator designated by is turned OFF when the execution command is turned ON. (2) The annunciator numbers (F numbers) of annunciators that have gone OFF are deleted
from the special registers (SD64 to SD79), and the value of SD63 is decremented by 1.
![Page 176 of the Mitsubishi Electronics QCPU user manual — [Operations which take place when SD63 is 16]](/cdn/reader/d2/d2944d2909243ae715aad622aa50e62fdb53b9908e5ac3f553f9129d99305b43/images/page-176.webp?w=400)
(3) When the value of SD63 is "16", the annunciator numbers are deleted from SD64 to SD79
by the use of the RST instruction. If the annunciators whose numbers are not registered in SD64 to SD79 are ON, these numbers will be registered.
If all annunciator numbers from SD64 to SD79 are turned OFF, the LED display device on
the front of the CPU module, or the "USER" LED, will be turned OFF.*2
*2: When using the Basic model QCPU, the "ERR." LED goes OFF.
![Mitsubishi Electronics QCPU — [Operations which take place when SD63 is 16] diagram (page 176)](/cdn/reader/d2/d2944d2909243ae715aad622aa50e62fdb53b9908e5ac3f553f9129d99305b43/images/fig-176-1.webp)
Contents of SD63 and those of SD64 to SD79 are not changed.
(1) There are no operation errors associated with the SET F or RST F instruction.
(1) The following program turns annunciator F11 ON when X1 goes ON, and stores the value 11
at the special register (SD64 to SD79). Further, the program resets annunciator F11 if X2 goes ON, and deletes the value 11 from the special registers (SD64 to SD79).
[Ladder Mode] [List Mode]
![Mitsubishi Electronics QCPU — [Operations which take place when SD63 is 16] diagram (page 176)](/cdn/reader/d2/d2944d2909243ae715aad622aa50e62fdb53b9908e5ac3f553f9129d99305b43/images/fig-176-2.webp)
![Mitsubishi Electronics QCPU — [Operations which take place when SD63 is 16] diagram (page 176)](/cdn/reader/d2/d2944d2909243ae715aad622aa50e62fdb53b9908e5ac3f553f9129d99305b43/images/fig-176-3.webp)
[Operation]

5.3.8 Leading edge and trailing edge outputs (PLS,PLF)
PLS,PLF
Basic Process High performance Redundant Universal

(1) Turns ON the designated device when the execution command is turned OFF ON, and turns OFF the device in any other case the execution command is turned OFF ON (i.e., at ON ON, ON OFF or OFF OFF of the execution command).

When there is one PLS instruction for the device designated by during one scan, the specified device turns ON one scan. See Section 3.9 for the operation to be performed when the PLS instruction for the same device is executed more than once during one scan.
5.3 Output Instructions 5.3.8 Leading edge and trailing edge outputs (PLS,PLF)
(2) If the RUN/STOP 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.
Operating the RUN/STOP key switch of CPU module "STOP RUN".
Operating the RUN/STOP key switch of CPU module "STOP RUN".
Operating the RUN/STOP key switch of CPU module "RUN STOP".
Operating the RUN/STOP key switch of CPU module "RUN STOP".

(3) When designating a latch relay (L) for the execution command and turning the power supply
OFF to ON with the latch relay ON, the execution command turns OFF to ON at the first scan, executing the PLS instruction and turning ON the designated device.
The device turned ON at the first scan after power-ON turns OFF at the next PLS instruction.
(1) Turns ON the designated device when the execution command is turned ON OFF, and turns OFF the device in any other case the execution command is turned ON OFF (i.e., at OFF OFF, OFF ON or ON ON of the execution command).
When there is one PLF instruction for the device designated by during one scan, the specified device turns ON one scan. See Section 3.9 for the operation to be performed when the PLF instruction for the same device is executed more than once during one scan.

(2) If the RUN/STOP key switch is changed from RUN to STOP after the execution of the PLF
instruction, the PLF instruction will not be executed again even if the switch is set back to RUN.
(1) There are no operation errors associated with the PLS or PLF instruction.
(1) The following program executes the PLS instruction when X9 goes ON.
[Ladder Mode] [List Mode]

X9 OFF
ON
M9 OFF
[Timing Chart] · 1 scan

(2) The following program executes the PLF instruction when X9 goes OFF.
[Ladder Mode] [List Mode]
X9 OFF
ON
M9 OFF
5.3 Output Instructions 5.3.8 Leading edge and trailing edge outputs (PLS,PLF)
Step Instruction Device · [Timing Chart] · 1 scan

5.3.9 Bit device output reverse (FF)
FF
Basic Process High performance Redundant Universal

: Device number of the device to be reversed (bits)
(1) Reverses the output status of the device designated by when the execution command is turned OFF ON.

(1) There are no operation errors associated with the FF instruction.
(1) The following program reverses the output of Y10 when X9 goes ON.
[Ladder Mode] [List Mode]

OFF
ON
Y10
OFF
[Timing Chart]

(2) The following program reverses b10 (bit 10) of D10 when X0 goes ON.
[Ladder Mode] [List Mode]
OFF
5.3 Output Instructions 5.3.9 Bit device output reverse (FF)
Step Instruction Device · [Timing Chart] · D10 of b10

5.3.10 Pulse conversions of direct outputs (DELTA(P))
DELTA(P)
Basic Process High performance Redundant Universal

: Bit for which pulse conversion is to be conducted (bits)
(1) Conducts pulse output of direct access output (DY) designated by .
If DELTA DY0 has been designated, the resulting operation will be identical to the ladder shown below, which uses the SET/RST instructions.
[Ladder using the DELTA instruction] [Ladder using the SET/RST instructions]


(2) The DELTA (P) instruction is used by commands for leading edge execution for an intelligent
function module.
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
[Operation]

Program Example
(1) The following program presets CH1 of the AD61 mounted at slot 0 of the main base unit,
when X20 goes ON.

Stores preset value (0) at addresses 1 and 2 of the AD61 buffer memory.

5.3 Output Instructions 5.3.10 Pulse conversions of direct outputs (DELTA(P))
[Ladder Mode] · [List Mode] · Step Instruction Device

5.4 Shift Instructions
5.4.1 Bit device shifts (SFT(P))
SFT(P)
Basic Process High performance Redundant Universal

(1) When bit device is used
(a) Shifts to a device designated by the ON/OFF status of the device immediately prior
to the one designated by , and turns the prior device OFF. 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.

(2) 0 1 0 1 0
(3) 0 0 0 1 0 0 1 0
(4) 0 0 0 1 0 1 1 0
(5) 0 0 1 0 1 0 1 0
(6) 1 0 0 1 0 0 1 0
M10 SET (7) 0 0 1 0 0 0 1 0
* At M8 to M15, "1" indicates ON and "0" indicates OFF.

(2) When word device bit designation is used
(a) Shifts to a bit in the device designated by the 1/0 status of the bit immediately prior to
the one designated by , and turns the prior bit to 0. For example, if D0.5 (bit 5 [b5] of D0) has been designated by the SFT instruction, when the SFT instruction is executed, it will shift the 1/0 status of b4 of D0 to b5, and turn b4 to 0.
1 Before the execution of shift 0 0 0 1 0 0 0 1 1 0 1 0 0 0 1 to b0 b4 to b15 b5
1 After the execution of shift 0 0 0 1 0 0 0 1 1 1 0 1
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
5.4 Shift Instructions 5.4.1 Bit device shifts (SFT(P))

Program Example
(1) The following program shifts Y57 to Y5B when X8 goes ON.

Executes shift for Y57 to Y5B when X8 goes ON.
Start programming from the device having a large number.
[Timing Chart] [List Mode]

[Ladder Mode]

5.5 Master Control Instructions
5.5.1 Setting and resetting the master control (MC,MCR)
MC,MCR
Basic Process High performance Redundant Universal


5.5 Master Control Instructions 5.5.1 Setting and resetting the master control (MC,MCR)
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.
A ladder using the master control is as follows:
Inputting of contacts on the vertical bus is not necessary when programming in the write mode of a peripheral device. These will be automatically displayed when the "conversion" operation is conducted after the creation of the ladder and then "read" mode is set.

MC
(1) If the execution command of the MC instruction is ON when master control is started, the
result of the operation from the MC instruction to the MCR instruction will be exactly as the instruction (ladder) shows.
If the execution command of the MC instruction is OFF, the result of the operation from the MC instruction to the MCR instruction will be as shown below:
Count value goes to 0, coils and contacts all go OFF.
High speed retentive timer
Coils go OFF, but counter values and contacts all maintain
Low speed retentive timer
current status.
Devices in OUT instruction All turned OFF
SFT
(2) Even when the MC instruction is OFF, instructions from the MC instruction to the MCR
instruction will be executed, so scan time will not be shortened.
When a ladder with master control contains instructions that do not require any contact instruction (such as FOR to NEXT, EI, DI instructions), the CPU module executes these instructions regardless of the ON/OFF status of the MC instruction execution command.
(3) By changing the device designated by , the MC instruction can use the same nesting (N) number as often as desired.
(4) Coils from devices designated by are turned ON when the MC instruction is ON.
Further, using these same devices with the OUT instruction or other instructions will cause
them to become double coils, so devices designated by should not be used within other instructions.
(1) This is the instruction for recovery from the master control, and indicates the end of the
master control range of operation.
(2) Do not place contact instructions before the MCR instruction.
(3) Use the MC instruction and MCR instruction of the same nesting number as a set.
However, when the MCR instructions are nested in one place, all master controls can be terminated with the lowest nesting (N) number. (Refer to the "Precautions for nesting" in the program example.)
(1) There are no operation errors associated with the MC or MCR instruction.

Program Example
The master control instruction can be used in nesting. The different master control regions are distinguished by nesting (N). Nesting can be performed from N0 to N14.
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:
[Ladder as displayed in the GPP ladder mode] [Ladder as it actually operates]

5.5 Master Control Instructions 5.5.1 Setting and resetting the master control (MC,MCR)
Not related to the status of A, B or C.

Cautions when Using Nesting Architecture
(1) Nesting can be used up to 15 times (N0 to N14)
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. If this order is reversed, there will be no nesting architecture, and the CPU module will not be capable of performing correct operations. For example, if nesting is designated in the order N1 to N0 by the MC instruction, and also designated in the N1 to N0 order by the MCR instruction, the vertical bus will intersect and a correct master control ladder will not be produced.
[Ladder as displayed in the GPP ladder mode] [Ladder as it actually operates]

(2) If the nesting architecture results in MCR instructions concentrated in one location, all
master controls can be terminated by use of just the lowest nesting number (N).


5.6 Termination Instructions
5.6.1 End main routine program (FEND)
FEND
Basic Process High performance Redundant Universal

U \G Zn Constants Other Bit Word Bit Word
(1) The FEND instruction is used in cases where the CJ instruction or other instructions are
used to cause a branch in the sequence program operations, and in cases where the main routine program is to be split from a subroutine program or an interrupt program.
(2) Execution of the FEND instruction will cause the CPU module to terminate the program it
was executing.

(3) Even sequence programs following the FEND instruction can be displayed in ladder display
5.6 Termination Instructions 5.6.1 End main routine program (FEND)
(Peripheral devices continue to display ladders until encountering the END instruction.)
P Operation performed when the CJ instruction is not executed

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
EFCALL instruction, and before the execution of the RET instruction.
the execution of the NEXT instruction. (Error code: 4200)
of the IRET instruction. (Error code: 4221)
(1) The following program uses the CJ instruction.

When XB is ON, the program jumps to label P23 and the steps that follow P23 are executed.
Indicates the termination of the sequence program to be executed when XB is OFF.

[Ladder Mode] · [List Mode]

5.6.2 End sequence program (END)
END
Basic Process High performance Redundant Universal
U \G Zn Constants Other Bit Word Bit Word
Function
(1) Indicates termination of programs, including main routine program, subroutine program, and
interrupt programs.
Execution of the END instruction will cause the CPU module to terminate the program that was being executed.
5.6 Termination Instructions 5.6.2 End sequence program (END)
(2) The END instruction cannot be used during the execution of the main sequence program.
If it is necessary to perform END processing during the execution of a program, use the FEND instruction.
(3) When programming in the ladder mode of a peripheral device, it is not necessary to input the
END instruction.

(4) The use of the END and FEND instructions is broken down as follows for main routine
programs, subroutine programs, and interrupt programs:
(FEND instruction is necessary.)
Main sequence program area Subroutine program
(END instruction is necessary.)
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
the execution of the CALL, FCALL, ECALL, or EFCALL instruction.
the execution of the FOR instruction.
the IRET instruction.
Main routine program · Interrupt program

5.7 Other instructions
5.7.1 Sequence program stop (STOP)
STOP
Basic Process High performance Redundant Universal

U \G Zn Constants Other Bit Word Bit Word
(1) Resets the output (Y) and stops the CPU module operation when the execution command is
turned ON.
(The same result will take place if the RUN/STOP (key) switch is turned to the STOP setting.)
(2) Execution of the STOP instruction will cause the value of b4 to b7 of the special register

5.7 Other instructions 5.7.1 Sequence program stop (STOP)
b15 b12 to b11 b8 to b7 b4 to b3 b0 to
(3) In order to restart CPU module operations after the execution of the STOP instruction, return
the RUN/STOP key switch, which has been changed from RUN to STOP, back to the RUN position.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
the execution of the CALL/FCALL/ECALL/EFCALL/XCALL instruction.
after the execution of the FOR instruction. (Error code: 4200)
(For the Universal model QCPU only) (Error code: 4223)
(1) The following program stops the CPU module when X8 goes ON.

[Ladder Mode] · [List Mode] · Step Instruction Device

Basic Process High performance Redundant Universal
NOPLF
NOPLF
PAGE n
R, ZR J \
U \G Zn Constants Other Bit Word Bit Word
(1) This is a no operation instruction that has no impact on any operations up to that point.
(2) The NOP instruction is used in the following cases:
5.7 Other instructions 5.7.2 No operations (NOP,NOPLF,PAGE n)
(a) To insert space for sequence program debugging.
(b) To delete an instruction without having to change the number of steps. (Replace the
instruction with NOP.)
(c) To temporarily delete an instruction.
(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
instruction.
midst of a ladder block. Do not insert an NOPLF instruction in the midst of a ladder block.
(b) When printing instruction lists
(3) Refer to the Operating Manual for the peripheral device in use for details of printouts from
peripheral devices.

(1) This is a no operation instruction that has no impact on any operations up to that point.
(2) No processing is performed at peripheral devices with this instruction.
(1) There are no errors associated with the NOP, NOPLF, or PAGE instruction.
(1) Contact closed Deletes the AND or ANI instruction.
[Ladder Mode] [List Mode]

(2) Contact closed LD, LDI changed to NOP. (Note carefully that changing the LD and LDI
instructions to NOP completely changes the nature of the ladder.)
[Ladder Mode] [List Mode]

NOP,NOPLF,PAGE n

[Ladder Mode] [List Mode]

[Ladder Mode] [List Mode]

5.7 Other instructions 5.7.2 No operations (NOP,NOPLF,PAGE n)
NOP,NOPLF,PAGE n


NOPLF 5 NOPLF instruction, inserted as a delimiter of ladder blocks, causes print out page to be changed forcibly.

[Ladder Mode] [List Mode]

NOP,NOPLF,PAGE n

Category Processing Details Reference
Compares data to data. Section 6.1
Adds, subtracts, multiplies, divides, increments, or
decrements data with other data. Section 6.2
Data conversion instructions Converts data types. Section 6.3
Data transfer instruction Transmits designated data. Section 6.4
Program branch instruction Program jumps. Section 6.5
Program run control instruction Enables and disables program interrupts. Section 6.6
I/O refresh instruction Refreshes bit devices. Section 6.7
Up/down counters, teaching timers, special function timers,
rotary table shortest direction controls, etc. Section 6.8

6.1.1 BIN 16-bit data comparisons (=,<>,>,<=,<,>=)
Basic Process High performance Redundant Universal

indicates an instruction symbol of . /
, : Data for comparison or head number of the devices where the data for comparison is stored (BIN 16 bits)
(1) Treats BIN 16-bit data from device designated by and BIN 16-bit data from device
designated by as an a normally-open contact, and performs comparison operation.
(2) The results of the comparison operations for the individual instructions are as follows:

(3) When and are assigned by a hexadecimal constant and the numerical value (8 to F) whose most significant bit (b15) is "1" is designated as a constant, the value is considered as a negative BIN value in comparison operation.
=,,>,,


(1) There are no operation errors associated with the , or instruction.
(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]
(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]
(3) The following program compares the BIN value 100 with the data at D3, and establishes
continuity if the D3 data is less than 100.
[Ladder Mode] [List Mode]

6.1 Comparison Operation Instructions 6.1.1 BIN 16-bit data comparisons (=,,>,
(4) The following program compares the data in D0 and D3, and if the data in D0 is equal to or
=,,>,

6.1.2 BIN 32-bit data comparisons (D=,D<>,D>,D<=,D<,D>=)
D=,D<>,D>,D<=,D<,D>=
Basic Process High performance Redundant Universal

indicates an instruction symbol of . D /
, : Data for comparison or head number of the devices where the data for comparison is stored (BIN 32 bits)
(1) Treats BIN 32-bit data from device designated by and BIN 32-bit data from device
designated by as an a normally-open contact, and performs comparison operation.
(2) The results of the comparison operations for the individual instructions are as follows:

(3) When and are assigned by a hexadecimal constant and the numerical value (8 to F) whose most significant bit (b31) is "1" is designated as a constant, the value is considered as a negative BIN value in comparison operation.
(4) Data used for comparison should be designated by a 32-bit instruction (DMOV instruction,
etc.).
If designation is made with a 16-bit instruction (MOV instruction, etc.), comparisons of large and small values cannot be performed correctly.

Operation Error
(1) There are no operation errors associated with the D , D , D , D , D or D instruction.
(1) The following program compares the data at X0 to X1F with the data at D3 and D4, and
turns Y33 ON, if the data at X0 to X1F and the data at D3 and D4 match.
[Ladder Mode] [List Mode]
(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]
(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.

6.1 Comparison Operation Instructions 6.1.2 BIN 32-bit data comparisons (D=,D,D>,D
(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.
Step Instruction Device · Step Instruction Device

6.1.3 Floating decimal point data comparisons (Single precision) (E=,E<>,E>,E<=,E<,E>=)
E=,E<>,E>,E<=,E<,E>=
Process High performance Redundant Universal Ver. Basic
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

E /
, : Data for comparison or head number of the devices where the data for comparison is stored

*1:Available only in multiple Universal model QCPU
(1) The 32-bit floating decimal point data from device designated by and 32-bit floating decimal point data from device designated by as A normally-open contact, and performs comparison operation.
(2) The results of the comparison operations for the individual instructions are as follows:


(real number)

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)
*1: There are CPU modules that will not result in an operation error if 0 is specified. For details, refer to Section 3.2.4.
0, 2 -126 | value of specified device | < 2128 (Error code: 4140)
(1) The following program compares 32-bit floating decimal point real number data at D0 and
D1 to 32-bit floating decimal point real number data at D3 and D4.
[Ladder Mode] [List Mode]
(2) The following program compares the floating decimal point real number 1.23 to the 32-bit
floating decimal point real number data at D3 and D4.

6.1 Comparison Operation Instructions 6.1.3 Floating decimal point data comparisons (Single precision) (E=,E,E>,E
(3) The following program compares 32-bit floating decimal point real number data at D0 and
D1 to 32-bit floating decimal point real number data at D3 and D4.
(4) The following program compares the 32-bit floating decimal point data at D0 and D1 to the
Step Instruction Device

6.1.4 Floating decimal point data comparisons (Double precision) (ED=,ED<>,ED>,ED<=,ED<,ED>=)
ED=,ED<>,ED>,ED<=,ED<,ED>=
Universal Basic Process High performance Redundant

/ED /ED /E /E /E indicates an instruction symbol of ED
, : Data for comparison or head number of the devices where the data for comparison is stored

(1) The 64-bit floating decimal point real number from device designated by and 64-bit floating
decimal point real number from device designated by as A normally-open contact, and performs comparison operation.
(2) The results of the comparison operations for the individual instructions are as follows:

(real number)

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
0,2 -1022 | value of specified device | < 21024
(1) The following program compares 64-bit floating decimal point real number data at D0 to D3
with 64-bit floating decimal point real number data at D4 to D7.
[Ladder Mode] [List Mode]
(2) The following program compares the floating decimal point real number 1.23 with the 64-bit
floating decimal point real number data at D4 to D7.
[Ladder Mode] [List Mode]

6.1 Comparison Operation Instructions 6.1.4 Floating decimal point data comparisons (Double precision) (ED=,ED,ED>,ED
(3) The following program compares 64-bit floating decimal point real number data at D0 to D3
with 64-bit floating decimal point real number data at D4 to D7.
(4) The following program compares the 64-bit floating decimal point data at D0 to D3 with the
Step Instruction Device · Step Instruction Device

Caution
(1) Since the number of digits of the real number that can be input by GX Developer is up to 15
digits, the comparison with the real number whose number of significant digits is 16 or more cannot be made by the instruction shown in this section.
When judging match/mismatch with the real number whose significant digits is 16 or more by the instruction in this section, compare it with the approximate values of the real number to be compared and judge by the sizes.
When judging the match of E1.234567890123456+10 (Number of significant
digits is 16) and the double-precision floating-point data.

Whether D0 to D3 is within this range is checked.(Values on boundaries are excluded.)
When judging the mismatch of E1.234567890123456+10 (Number of significant
digits is 16) and the double-precision floating-point data.

Whether D0 to D3 is within this range is checked.(Values on boundaries are included.)

Process High performance Redundant Universal Basic

$ /
, : Data for comparison or head number of the devices where the data for comparison is stored

6.1 Comparison Operation Instructions 6.1.5 Character string data comparisons ($=,$,$>,$
(1) Compares the character string data designated by with the character string data
(2) A comparison operation involves the character-by-character comparison of the ASCII code
(3) The character string data of and for comparison refers to the data stored at the range from the designated device number to the device number where "00H" code is stored.
(a) If all character strings match, the comparison result will be matched.
$=,$,$>,$,$

(b) If the character strings are different, the character string with the larger character code
will be the larger.

(c) If the character strings are different, the first different sized character code will determine whether the character string is larger or smaller.

(4) If the character strings designated by and are of different lengths, the data with the longer character string will be larger.

32H (2) 31H (1) 33H (3) 34H (4)
$=,$,$>,$

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.

device number designated by and . (Error code: 4101)
The character string data comparison instruction checks the device range while comparing the designated character string data. For this reason, if the "00H" code does not exist in the relevant device range, the instruction outputs the comparison result instead of returning an operation error when no match of characters is detected.

C 00H Z A D11 C 00H W0
If and data are as shown above, the second character of does not
match with that of , and the comparison result is expressed as (the operation result is "non-conductive"). Though the "00H" code is not included
within the device range, no operation error is returned, because the no-match is detected at D12287, which is within the device range.

6.1 Comparison Operation Instructions 6.1.5 Character string data comparisons ($=,$,$>,$
(1) The following program compares character strings stored following D0 and characters
(2) The following program compares the character string "ABCDEF" with the character string
$=,$,$>,$

(3) The following program compares the character string stored following D10 with the character
string stored following D100.
[Ladder Mode] [List Mode]

(4) The following program compares the character string stored following D200 with the
character string "12345".
[Ladder Mode] [List Mode]

$=,$,$>,$

6.1.6 BIN block data comparisons (BKCMP ,BKCMP P)
BKCMP ,BKCMP P
Basic Process High performance Redundant Universal

/ indicates an instruction symbol of .
: Data to be compared or head number of the devices where the data to be compared is stored (BIN 16 bits)
: Head number of the devices where the comparison data is stored (BIN 16 bits)
: Head number of the devices where the comparison operation result will be stored (bits)

6.1 Comparison Operation Instructions 6.1.6 BIN block data comparisons (BKCMP ,BKCMP P)
(1) Compares BIN 16-bit data the nth point from the device number designated by with BIN
16-bit data the nth point from the device number designated by , and stores the result
(a) If the comparison condition has been met, the device designated by will be turned ON.
(b) If the comparison condition has not been met, the device designated by will be turned OFF.
(2) The comparison operation is conducted in 16-bit units.
(3) The constant designated by can be between 32768 and 32767 (BIN 16-bit data).

(4) The results of the comparison operations for the individual instructions are as follows:

(5) If all comparison results stored n points from are ON (1), SM704 (block comparison signal) goes ON.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
device range for n points starting from the device designated by .
device range for n points starting from the device designated by .
(1) The following program compares, when X20 is turned ON, the data stored at D100 to D103
with the data stored at R0 to R3 and stores the operation result into the area starting from M10.
[Ladder Mode] [List Mode]

Step Instruction Device · [Operation]

(2) The following program compares, when X1C is turned ON, the constant K1000 with the data
stored at D10 to D13, and stores the operation result at b4 to b7 in D0.
[Ladder Mode] [List Mode]

b15 b4 0 1 0 1 0 0 0 1 0 b7 b0 D0 before operation
b15 b4 0 1 0 1 0 1 0 0 1 0 b7 b0 D0 after operation
(3) The following program compares, when X20 is turned ON, the data at D10 to D12 with the
data at D30 to D32, and stores the operation result into the area starting from M100.
The following program transfers the character string "ALL ON" to D100 onward when all devices from M100 onward have reached the 1 "ON" state.
[Ladder Mode] [List Mode]

6.1 Comparison Operation Instructions 6.1.6 BIN block data comparisons (BKCMP ,BKCMP P)
D102 4FH (O) 20H ( ) D100 $MOV
Step Instruction Device · [Operation]

6.1.7 BIN 32-bit block data comparisons (DBKCMP ,DBKCMP P)
Ver.
Basic Process High performance Redundant
QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.
QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

/ indicates an instruction symbol of .
: Data to be compared or head number of the devices where the data to be compared are stored (BIN 32 bits)
: Head number of the devices where the comparison data are stored (BIN 32 bits)
: Head number of the devices where the comparison operation result will be stored (bits) n : Number of comparison data blocks (BIN 16 bits)

(1) This instruction compares BIN 32-bit data stored in n-point devices starting from the device
specified by with BIN 32-bit data stored in n-point devices starting from the device
specified by a constant and and then stores the result into the nth device specified by and up.
(a) If the comparison condition has been met, the corresponding devices specified by will be turned on.
(b) If the comparison condition has not been met, the corresponding devices specified by will be turned off.

n +2 +4 +3, +5,
+n 1 +n 2 +n 2
Universal

(2) The comparison operation is executed in 32-bit units.
(3) The constant in the device specified by can be between 2147483648 and 2147483647 (BIN 32-bit data).

(4) specifies out of the device range of n-point devices starting from the device specified by
and .
(5) The following table shows the results of the comparison operations for each individual
instruction.

(6) If all comparison results stored into the devices starting from the device specified by to nth device are on(1), or one of the results is off(2), the special relays will be on or off in accordance with the conditions as follows.

6.1 Comparison Operation Instructions 6.1.7 BIN 32-bit block data comparisons (DBKCMP ,DBKCMP P)
When all results of comparison operations are on(1) When results of comparison operations have a result of
In a standby program, a special relay depending on the caller program turns on or off.
(7) If the value specified by n is 0, the instruction will be not processed.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an
error code is stored into SD0.
range of the n-point devices starting from the device specified by . (Error code: 4101)
range of the n-point devices starting from the device specified by . (Error code: 4101)
(1) The following program compares the value data stored at R0 to R5 with the value data
stored at D20 to D25, and then stores the operation result into Y0 to Y2, when M0 is turned on,
[Ladder Mode] [List Mode]

D21,D20
(1) ON Y1 Y0
(0) OFF
0 2147483000 R3,R2 R5,R4
D23,D22 D25,D24
Y2
(1) ON
(2) The following program compares the constant with the value data stored at D0 to D9, and
then stores the operation result into D10.5 to D10.9, when M0 is turned on,
[Ladder Mode] [List Mode]



When certain bits are specified in a word device, bits other than the certain bits that store the operation result do not change.

0 Before execution 0 1 0 1 0 0 1 1 0 0 0 D10.0
0 0 1 0 1 1 0 1 1 1 0 0 0 D10.0 After execution
(3) The following program compares the value data stored at D0 to D5 with the value data
stored at D10 to D15, and then stores the operation result into M20 to M22, when M0 is turned on. Also, the program transfers the character string "ALL ON" to D100 and up when all devices from M20 to M22 have reached the on status.
[Ladder Mode] [List Mode]


6.1 Comparison Operation Instructions 6.1.7 BIN 32-bit block data comparisons (DBKCMP ,DBKCMP P)
When all operation results are on(1), the special relays corresponding to each program turn on(1). (Since this program examples refer to scan programs, SM704 and SM716 turn on(1), SM7171 and SM718 do not change in the scan program)
[Operation]

6.2 Arithmetic Operation Instructions
6.2.1 BIN 16-bit addition and subtraction operations (+(P),-(P))
+(P),-(P)
Basic Process High performance Redundant Universal
When two data are set ( + , - )

: Data for additing/subtracting or head number of the devices where the data for additing/subtracting is stored

: Head number of the devices where the data to be added to/subtracted from is stored (BIN 16 bits)
(1) Adds 16-bit BIN data designated by to 16-bit BIN data designated by and stores the
result of the addition at the device designated by .
b0 5678 (BIN) b15 b0 6912 (BIN) b15 b0 1234 (BIN) b15
(2) Values for and 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.
Since bit 15 value is "1", result of operation takes a negative value. K32767 +K2 (7FFFH)
(0002 H )
(8001 H )
K 32768 +K 2
K32766 (7FFE H )
Since bit 15 value is "0", result of operation takes a positive value.
(BIN 16 bits)

(1) Subtracts 16-bit BIN data designated by from 16-bit BIN data designated by and
stores the result of the subtraction at the device designated by .
b0 5678 (BIN) b15 b0 4444 (BIN) b15 b0 1234 (BIN) b15
(2) Values for and 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.
Since bit 15 value is "0", result of operation takes a positive value.
K2
Since bit 15 value is "1", result of operation takes a negative value. K32767
(7FFF H )
(8001 H ) (FFFE H )
Operation Error
(1) There are no operation errors associated with the +(P) or -(P) instruction.
6.2 Arithmetic Operation Instructions 6.2.1 BIN 16-bit addition and subtraction operations (+(P),-(P))

When three data are set ( + , - )

: Data to be added to/subtracted from or head number of the devices where the data to be added
to/subtracted from is stored (BIN 16 bits)
: Data for additing/subtracting or head number of the devices where the data for additing/subtracting is stored
: Head number of the devices where the addition/subtraction operation result will be stored (BIN 16 bits)

(1) Adds 16-bit BIN data designated by to 16-bit BIN data designated by and stores the
result of the addition at the device designated by .
b0 5678 (BIN) b15 b0 6912 (BIN) b15 b0 1234 (BIN) b15
(2) Values for , andcan 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 32767 (7FFFH) (0002H) (8001H)
Since bit 15 value is "1", result of operation takes a negative value. K32767 +K2
K32766 (7FFE H )
Since bit 15 value is "0", result of operation takes a positive value.
(BIN 16 bits)

(1) Subtracts 16-bit BIN data designated by from 16-bit BIN data designated by and
stores the result of the subtraction at the device designated by .
b0 5678 (BIN) b15 b0 4444 (BIN) b15 b0 1234 (BIN) b15
(2) Values for , and 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.

Since bit 15 value is "0", result of operation takes a positive value.
Since bit 15 value is "1", result of operation takes a negative value. K32767
(1) There are no operation errors associated with the +(P) or -(P) instruction.

(1) The following program adds, when X5 is turned ON, the data at D3 and D0 and outputs the
6.2 Arithmetic Operation Instructions 6.2.1 BIN 16-bit addition and subtraction operations (+(P),-(P))
(2) The following program outputs the difference between the set value for timer T3 and its

6.2.2 BIN 32-bit addition and subtraction operations (D+(P),D-(P))
D+(P),D-(P)
Basic Process High performance Redundant Universal
When two data are set (( +1, )+( +1, ) ( +1, ), ( +1, )-( +1, ) ( +1, ))
D D S S D S S D D

: Data for additing/subtracting or head number of the devices where the data for additing/subtracting is stored

: Head number of the devices where the data to be added to/subtracted from is stored (BIN 32 bits)
(1) Adds 32-bit BIN data designated by to 32-bit BIN data designated by , and stores the
result of the addition at the device designated by .

(2) The values for and can be designated at between 2147483648 and 2147483647 (BIN 32 bits).
(3) Judgment of whether the data is positive or negative is made on the basis of the most
significant bit (b31).
(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.

Since bit 31 value is "1", result of operation takes a negative value. K2147483647 (7FFFFFFFH)
Since bit 31 value is "0", result of operation takes a positive value.
(BIN 32 bits)

(1) Subtracts 32-bit BIN data designated by from 32-bit BIN data designated by and
stores the result of the subtraction at the device designated by .
123456 (BIN) b0 b16 b15 567890 (BIN) b31
b0 b16 b15 b31 b0 b16 b15 b31
(2) The values for and can be designated at between 2147483648 and 2147483647 (BIN 32 bits).
(3) Judgment of whether the data is positive or negative is made on the basis of the most
significant bit (b31).
(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.
Since bit 31 value is "0", result of operation takes a positive value.
(80000000 H )
(00000002 H )
Since bit 31 value is "1", result of operation takes a negative value. K2147483647
(80000000 H )
(FFFFFFFE H )
(80000001 H )
Operation Error
(1) There are no operation errors associated with the D+(P) or D-(P) instruction.
6.2 Arithmetic Operation Instructions 6.2.2 BIN 32-bit addition and subtraction operations (D+(P),D-(P))
+1 · 2147483647

When three data are set (( +1, )+( +1, ) ( +1, ), ( +1, )-( +1, ) ( +1, ))
S1 S1 S2 S2 D D S1 S1 S2 S2 D D

: Data to be added to/subtracted from or head number of the devices where the data to be added
to/subtracted from is stored (BIN 32 bits)
: Data for additing/subtracting or head number of the devices where the data for additing/subtracting is stored

: Head number of the devices where the addition/subtraction operation result will be stored (BIN 32 bits)
(1) Adds 32-bit BIN data designated by to 32-bit BIN data designated by , and stores the
result of the addition at the device designated by .

(2) The values for , and can be designated at between 2147483648 and 2147483647 (BIN 32 bits).
(3) Judgment of whether the data is positive or negative is made on the basis of the most
significant bit (b31).
(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.

Since bit 31 value is "1", result of operation takes a negative value. K2147483647 (7FFFFFFFH)
Since bit 31 value is "0", result of operation takes a positive value.
(BIN 32 bits)

(1) Subtracts 32-bit BIN data designated by from 32-bit BIN data designated by and
stores the result of the subtraction at the device designated by .
123456 (BIN) b0 b16 b15
b0 b16 b15 b31 b0 b16 b15 b31
(2) The values for , and can be designated at between 2147483648 and 2147483647 (BIN 32 bits).
(3) Judgment of whether the data is positive or negative is made on the basis of the most
significant bit (b31).
(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.

Since bit 31 value is "0", result of operation takes a positive value.
Since bit 31 value is "1", result of operation takes a negative value.
(1) There are no operation errors associated with the D+(P) or D-(P) instruction.

6.2 Arithmetic Operation Instructions 6.2.2 BIN 32-bit addition and subtraction operations (D+(P),D-(P))
(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.
(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.
+1 · +1 · 567890 (BIN) b31

6.2.3 BIN 16-bit multiplication and division operations (*(P),/(P))
*(P),/(P)
Basic Process High performance Redundant Universal

: Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored
: Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored
: Head number of the devices where the multiplication/division operation result will be stored (BIN 32 bits)

(1) Multiplies BIN 16-bit data designated by and BIN 16-bit data designated by , and

stores the result in the device designated by .
b0 1234 (BIN) b15 b0 5678 (BIN) b15 b0 b16 b15 7006652 (BIN) b31
(2) If is a bit device, designation is made from the lower bits.
K1 Lower 4 bits (b0 to b3) K4 Lower 16 bits (b0 to b15) K8 32 bits (b0 to b31)
(3) Values for and can be designated between 32768 and 32767 (BIN, 16 bits).
(4) Judgments whether , , and are positive or negative are made on the basis of the
most significant bit (b15 for , and , for and b31).
(BIN 16 bits) · (BIN 16 bits)

/
(1) Divides BIN 16-bit data designated by and BIN 16-bit data designated by , and stores

(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; if a bit device has been used, 16 bits are used and only the quotient is stored.
Quotient: Stored at the lower 16 bits. Remainder: Stored at the upper 16 bits (Stored only when using a word device).
(3) Values for and can be designated between 32768 and 32767 (BIN 16 bits).
(4) Judgment whether values for , , and +1 are positive or negative is made on the basis of the most significant bit (b15). (Sign is attached to both the quotient and remainder.)
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.

6.2 Arithmetic Operation Instructions 6.2.3 BIN 16-bit multiplication and division operations (*(P),/(P))
(1) The following program multiplies "5678" by "1234" in BIN and stores the result at D3 and D4
(2) The following program multiplies BIN data at X8 to XF by BIN data at X10 to X1B, and
outputs the result of the multiplication to Y30 to Y3F.
(3) The following program divides, when X3 is turned ON, the data at X8 to XF by 3.14 and

6.2.4 BIN 32-bit multiplication and division operations (D*(P),D/(P))
D*(P),D/(P)
Basic Process High performance Redundant Universal

: Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored
: Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored

: Head number of the devices where the multiplication/division operation result will be stored (BIN 64 bits)
(1) Multiplies BIN 32-bit data designated by and BIN 32-bit data designated by , and

stores the result in the device designated by .
123456 (BIN) b0 b63 b48 b31 b16 70109427840 (BIN) b0 b16 b15 567890 (BIN) b31
(2) If is a bit device, only the lower 32 bits of the multiplication result will be considered, and the upper 32 bits cannot be designated.
K1 Lower 4 bits (b0 to b3) K4 Lower 16 bits (b0 to b15) K8 Lower 32 bits (b0 to b31)
If the upper 32 bits of the bit device are required for the result of the multiplication operation, first temporarily store the data in a word device, then transfer the word device data to the bit
device by designating ( +2) and ( +3) data.
(3) The values for and can be designated at between 2147483648 and 2147483647 (BIN 32 bits).
(4) Judgments whether , , and are positive or negative are made on the basis of the
most significant bit (b31 for and , b63 for ).
(BIN 32 bits) · (BIN 32 bits)

(1) Divides BIN 32-bit data designated by and BIN 32-bit data designated by , and stores

(2) With a word device, the division operation result is stored in 64 bits and both the quotient
and remainder are stored. With a bit device, only the quotient is stored as the operation result in 32 bits.
Quotient : Stored at the lower 32 bits. Remainder : Stored at the upper 32 bits (Stored only when using a word device).
(3) The values for and can be designated at between 2147483648 and 2147483647 (BIN 32 bits).
(4) Judgment whether values for , , and +2 are positive or negative is made on the basis of the most significant bit (b31).
(Sign is attached to both the quotient and remainder.)
(1) In any of the following cases, an operation error occurs, the error flag (SM0) is turned ON,
and the corresponding error code is stored into SD0.

6.2 Arithmetic Operation Instructions 6.2.4 BIN 32-bit multiplication and division operations (D*(P),D/(P))
(1) The following program multiplies the BIN data at D7 and D8 by the BIN data at D18 and D19
when X5 is ON, and stores the result at D1 to D4.
(2) The following program outputs the value resulting when the data at X8 to XF is multiplied by
3.14 to Y30 to Y3F when X3 is ON.

6.2.5 BCD 4-digit addition and subtraction operations (B+(P),B-(P))
B+(P),B-(P) B+(P), B-(P)
Basic Process High performance Redundant Universal
When two data are set ( + , - )

: Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored

: Head number of the devices where the data to be added to/subtracted from is stored (BCD 4 digits)
(1) Adds the BCD 4-digit data designated by and the BCD 4-digit data designated by , and
stores the result of the addition at the device designated by .
9 6 1 2 2 1 3 4 6 5 7 8
(2) 0 to 9999 (BCD 4 digits) can be assigned to and .
(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.
4 6 3 2 0 0 1 5 5 3 8 3
(1) Subtracts the BCD 4-digit data designated by and the BCD 4-digit data designated by ,
and stores the result of the subtraction at the device designated by .

4 0 4 4 2 0 3 4 6 0 7 8
Digits exceeding the designated number of digits are assumed to be 0.
(2) 0 to 9999 (BCD 4 digits) can be assigned to and .
(BCD 4 digits)

(3) The following will result if an underflow is generated by the subtraction operation:
The carry flag in this case does not go ON.

9 9 9 8 0 0 0 3 0 0 0 1
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
Program Example
(1) The following program adds BCD data 5678 and 1234, stores it at D993, and at the same
time outputs it to from Y30 to Y3F.

Adds 1234 in BCD to the value at D993, and stores the result to D993.
Outputs the data in D993 to Y30 to Y3F.

6.2 Arithmetic Operation Instructions 6.2.5 BCD 4-digit addition and subtraction operations (B+(P),B-(P))
(2) The following program subtracts the BCD data 4321 from 7654, stores the result at D10, and
at the same time outputs it to Y30 to Y3F.
Subtracts the value in D10 from 4321 in BCD, and stores the result to D10.
Outputs the data in D10 to Y30 to Y3F.
[Ladder Mode] · [List Mode]

When three data are set ( + , - )

: Data to be added to/subtracted from or head number of the devices where the data to be added
to/subtracted from is stored (BCD 4 digits)
: Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored

: Head number of the devices where the addition/subtraction operation result will be stored (BCD 4 digits)
(1) Adds the BCD 4-digit data designated by and the BCD 4-digit data designated by , and
stores the result of the addition at the device designated by .
9 6 1 2 2 1 3 4 6 5 7 8
(2) 0 to 9999 (BCD 4 digits) can be assigned to , and .
(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.
4 6 3 2 0 0 1 5 5 3 8 3
(1) Subtracts the BCD 4-digit data designated by and the BCD 4-digit data designated by ,
and stores the result of the subtraction at the device designated by .

4 0 4 4 2 0 3 4 6 0 7 8
Digits exceeding the designated number of digits are assumed to be 0.
(2) 0 to 9999 (BCD 4 digits) can be assigned to , and .
(BCD 4 digits)

(3) The following will result if an underflow is generated by the subtraction operation:
The carry flag in this case does not go ON.

9 9 9 8 0 0 0 3 0 0 0 1
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
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]
(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]

6.2 Arithmetic Operation Instructions 6.2.5 BCD 4-digit addition and subtraction operations (B+(P),B-(P))
Step Instruction Device · Step Instruction Device

6.2.6 BCD 8-digit addition and subtraction operations (DB+(P),DB-(P))
DB+(P),DB-(P)
Basic Process High performance Redundant Universal
When two data are set (( +1, )+( +1, ) ( +1, ), ( +1, )-( +1, ) ( +1, ))
D D S S D S S D D

: Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored

: Head number of the devices where the data to be added to/subtracted from is stored (BCD 8 digits)
(1) Adds the BCD 8-digit data designated by and the BCD 8-digit data designated by , and
stores the result of the addition at the device designated by .

Digits exceeding the designated number of digits are assumed to be 0.
(2) 0 to 99999999 (BCD 8 digits) can be assigned to and .
(3) If the result of the addition operation exceeds 99999999, the upper bits will be ignored.
The carry flag in this case does not go ON.
1 0 6 5 4 3 2 1 9 9 0 6 5 4 3 2 1
(1) Subtracts the BCD 8-digit data designated by and the BCD 8-digit data designated by ,
and stores the result of the subtraction at the device designated by .

Digits exceeding the designated number of digits are assumed to be 0.
(BCD 8 digits)

(2) 0 to 99999999 (BCD 8 digits) can be assigned to and .
(3) The following will result if an underflow is generated by the subtraction operation: The carry
flag in this case does not go ON.

2 1 3 4 5 6 7 9 2 1 3 4 5 6 7 8 9
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
Program Example
(1) The following program adds the BCD data 12345600 and 34567000, stores the result at
D887 and D888, and at the same time outputs them to from Y30 to Y4F.

Adds 34567000 in BCD to the value in D887 and D888, and stores the result to D887 and D888.
Outputs the data in D887 and D888 to Y30 to Y4F.

6.2 Arithmetic Operation Instructions 6.2.6 BCD 8-digit addition and subtraction operations (DB+(P),DB-(P))
(2) The following program subtracts the BCD data 98765432 from 12345678, stores the result
at D100 and D101, and at the same time outputs it from Y30 to Y4F.
Subtracts the value in D100 and D101 from 12345678 in BCD, and stores the result to D100 and D101.
Outputs the data in D100 and D101 to T30 to Y4F.
[Ladder Mode] · [List Mode]

When three data are set (( +1, )+( +1, ) ( +1, ), ( +1, )-( +1, ) ( +1, ))
S1 S1 S2 S2 D D S1 S1 S2 S2 D D

: Data to be added to/subtracted from or head number of the devices where the data to be added
to/subtracted from is stored (BCD 8 digits)
: Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored

: Head number of the devices where the addition/subtraction operation result is stored (BCD 8 digits)
(1) Adds the BCD 8-digit data designated by and the BCD 8-digit data designated by , and
stores the result of the addition at the device designated by .

+ 1 0 2 3 4 5 6 7
Digits exceeding the designated number of digits are assumed to be 0.
(2) 0 to 99999999 (BCD 8 digits) can be assigned to , and .
(3) If the result of the addition operation exceeds 99999999, the upper bits will be ignored.
The carry flag in this case does not go ON.
1 0 6 5 4 3 2 1 9 9 0 6 5 4 3 2 1
(BCD 8 digits)

DB-
(1) Subtracts the BCD 8-digit data designated by and the BCD 8-digit data designated by ,
and stores the result of the subtraction at the device designated by .

Digits exceeding the designated number of digits are assumed to be 0.
(2) 0 to 99999999 (BCD 8 digits) can be assigned to , and .
(3) The following will result if an underflow is generated by the subtraction operation:
The carry flag in this case does not go ON.
2 1 3 4 5 6 7 9 2 1 3 4 5 6 7 8 9
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
Program Example
(1) The following program adds the BCD data at D3 and D4 to the BCD data at Z1 and Z2 when
X20 goes ON, and stores the result at R10 and R11.
[Ladder Mode] [List Mode]

6.2 Arithmetic Operation Instructions 6.2.6 BCD 8-digit addition and subtraction operations (DB+(P),DB-(P))

6.2.7 BCD 4-digit multiplication and division operations (B*(P),B/(P))
B*(P),B/(P)
Basic Process High performance Redundant Universal

B ,B/ indicates an instruction symbol of * .
: Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored
: Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored

: Head number of the devices where the multiplication/division operation result will be stored (BCD 8 digits)
(1) Multiplies BCD data designated by and BCD data designated by , and stores the result

4 0 9 7 8 0 7 6 6 5 7 8
(2) 0 to 9999 (BCD 4 digits) can be assigned to and .
(1) Divides BCD data designated by and BCD data designated by , and stores the result in

0 0 0 6 8 0 7 6 6 5 7 8 4 0 2 2
Digits exceeding the designated number of digits are assumed to be 0.
(2) Uses 32 bits to store the result of the division as quotient and remainder
Quotient (BCD 4 digits) :Stored at the lower 16 bits. Remainder (BCD 4 digits) :Stored at the upper 16 bits.
(3) If has been designated as a bit device, the remainder of the operation will not be stored.
(BCD 4 digits) · (BCD 4 digits)

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The following program multiplies, when X20 is turned ON, the BCD data at X0 to XF by the
BCD data at D8 and stores the operation result at D0 to D1.
[Ladder Mode] [List Mode]
D8 D1 (Upper 4 digits) X0 XF
D0 (Lower 4 digits)
4 8 2 8 6 8 4 2 7 9 5 3
4 5 2 6
(2) The following program divides 5678 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]

6.2 Arithmetic Operation Instructions 6.2.7 BCD 4-digit multiplication and division operations (B*(P),B/(P))
/ 0 0 0 4 2 1 3 4 6 5 7 8

6.2.8 BCD 8-digit multiplication and division operations (DB*(P),DB/(P))
DB*(P),DB/(P)
Basic Process High performance Redundant Universal

DB ,DB/ indicates an instruction symbol of * .
: Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored
: Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored
: Head number of the devices where the multiplication/division operation result will be stored (BCD 16 digits)

(1) Multiplies the BCD 8-digit data designated by and the BCD 8-digit data designated by , and stores the product at the device designated by .

9
9 8 0 1
(2) If has designated a bit device, the lower 8 digits (lower 32 bits) will be used for the product, and the higher 8 digits (upper 32 bits) cannot be designated. K1 Lower 1 digit (b0 to 3), K4 Lower 4 digits (b0 to 15), K8 Lower 8 digits (b0 to 31)
(3) 0 to 99999999 (BCD 8 digits) can be assigned to and .
DB/

(1) Divides 8-digit BCD data designated by and 8-digit BCD data designated by , and stores the result in the device designated by .
6 5 7 8 1 9 2 3 1 0 2 3 5 4 6 7 /
Digits exceeding the designated number of digits are assumed to be 0
(Lower 4 digits) (Upper 4 digits) (Lower 4 digits) (Upper 4 digits)
0 4 5 1 0 2 3 6 3 0 8
(BCD 8 digits) · (BCD 8 digits)

(2) 64 bits are used for the result of the division operation, and stored as quotient and
remainder.
Quotient (BCD 8 digits) :Stored at the lower 32 bits. Remainder (BCD 8 digits) :Stored at the upper 32 bits.
(3) If has been designated as a bit device, the remainder of the operation will not be stored.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The following program multiplies the BCD data 67347125 and 573682, stores the result from
D502 to D505, and at the same time outputs the upper 8 digits to Y30 to Y4F.
[Ladder Mode] [List Mode]


6.2 Arithmetic Operation Instructions 6.2.8 BCD 8-digit multiplication and division operations (DB*(P),DB/(P))
(2) The following program divides the BCD data from X20 to X3F by the BCD data at D8 and D9
when X0B goes ON, and stores the result from D765 to D768.
0 6 8 0 2 8 8 1 3 3
[Operation]

6.2.9 Addition and subtraction of floating decimal point data (Single precision) (E+(P),E-(P))
E+(P),E-(P)
Process High performance Redundant Universal Ver. Basic
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.
When two data are set (( +1, )+( +1, ) ( +1, ), ( +1, )-( +1, ) ( +1, ))
D D S S D S S D D

: Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored

: Head number of the devices where the data to be added to/subtracted from is stored (real number)
*1:Available only in multiple Universal model QCPU
(1) Adds the 32-bit floating decimal point type real number designated at and the 32-bit
floating decimal point type real number designated at , and stores the sum in the device

(2) Values which can be designated at and and which can be stored, are as follows:
0, 2-126 | Designated value (stored value) | < 2128
(1) Subtracts a 32-bit floating decimal point type real number designated by and a 32-bit floating decimal point type real number designated by , and stores the result at a device designated by .

(real number)

(2) Values which can be designated at and and which can be stored, are as follows:
0, 2-126 | Designated value (stored value) | < 2128
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
0, 2-126 | Contents of designated device | < 2128
(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)
(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)
*2: There are CPU modules that will not result in an operation error if 0 is specified. Refer to Section 3.2.4 for details.
(For the Universal model QCPU only)
2128 | Result of addition and subtraction | (Error code: 4141)
(1) The following program adds the 32-bit floating decimal point type real numbers at D3 and D4

and the 32-bit floating decimal point type real numbers at D10 and D11 when X20 goes ON, and stores the result at D3 and D4.
6.2 Arithmetic Operation Instructions 6.2.9 Addition and subtraction of floating decimal point data (Single precision) (E+(P),E-(P))
(2) The following program subtracts the 32-bit floating decimal point type real number at D10
and D11 from the 32-bit floating decimal point type real numbers at D20 and D21, and stores the result of the subtraction at D20 and D21.

When three data are set (( +1, )+( +1, ) ( +1, ), ( +1, )-( +1, ) ( +1, ))
S1 S1 S2 S2 D D S1 S1 S2 S2 D D

: Data to be added to/subtracted from or head number of the devices where the data to be added
to/subtracted from is stored (real number)
: Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored

: Head number of the devices where the addition/subtraction operation result is stored (real number)
*1:Available only in multiple Universal model QCPU
(1) Adds the 32-bit floating decimal point type real number designated at and the 32-bit
floating decimal point type real number designated at , and stores the sum in the device
designated at .

(2) Values which can be designated at , and and which can be stored, are as follows:
0, 2-126 | Designated value (stored value) | < 2128
(1) Subtracts a 32-bit floating decimal point type real number designated by and a 32-bit
floating decimal point type real number designated by , and stores the result at a device
designated by .

(2) Values which can be designated at and and which can be stored, are as follows:
0, 2-126 | Designated value (stored value) | < 2128
(real number)

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
the following range:
0, 2-126 | Contents of designated device | < 2128
(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)
(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)
*2: There are CPU modules that will not result in an operation error if 0 is specified. Refer to Section 3.2.4 for details.
(For the Universal model QCPU only)
2128 | Result of addition and subtraction | (Error code: 4141)
(1) The following program adds the 32-bit floating decimal point type real numbers at D3 and D4
and the 32-bit floating decimal point type real numbers at D10 and D11 when X20 goes ON, and outputs the result to R0 and R1.

6.2 Arithmetic Operation Instructions 6.2.9 Addition and subtraction of floating decimal point data (Single precision) (E+(P),E-(P))
(2) The following programs subtracts the 32-bit floating decimal point type real numbers at D20
and D21 from the 32-bit floating decimal point type real numbers at D11 and D10, and stores the result at D30 and D31.

6.2.10 Addition and subtraction of floating decimal point data (Double precision) (ED+(P),ED-(P))
ED+(P),ED-(P)
Universal Basic Process High performance Redundant
When two data are set (( +3, +2, +1, )+( +3, +2, +1, ) ( +3, +2, +1, ),
D S D
( +3, +2, +1, )-( +3, +2, +1, ) ( +3, +2, +1, ))
D S D

: Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored
: Head number of the devices where the data to be added to/subtracted from is stored (real number)

(1) Adds the 64-bit floating decimal point type real number designated at and the 64-bit
floating decimal point type real number designated at , and stores the sum in the device

(2) Values which can be designated at and and which can be stored, are as follows:
0, 2-1022 | Designated value (stored value) | < 21024
(real number)

ED-
(1) Subtracts a 64-bit floating decimal point type real number designated by and a 64-bit
floating decimal point type real number designated by , and stores the result at a device

(2) Values which can be designated at and and which can be stored, are as follows:
0, 2-1022 | Designated value (stored value) | < 21024
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
0, 2-1022 | Contents of designated device | < 21024
overflow):
21024 | Result of operation | (Error code: 4141)

6.2 Arithmetic Operation Instructions 6.2.10 Addition and subtraction of floating decimal point data (Double precision) (ED+(P),ED-(P))
(1) The following program adds the 64-bit floating decimal point type real numbers at D3 to D6
and the 64-bit floating decimal point type real numbers at D10 to D13 when X20 goes ON, and stores the result at D3 to D6.
(2) The following program subtracts the 64-bit floating decimal point type real number at D10 to
D13 from the 64-bit floating decimal point type real numbers at D20 to D23, and stores the result of the subtraction at D20 to D23.

When three data are set(( +3, +2, +1, )+( +3, +2, +1, ) ( +3, +2, +1, ),
S1 S2 D
( +3, +2, +1, )-( +3, +2, +1, ) ( +3, +2, +1, ))
S1 S2 D

: Data to be added to/subtracted from or head number of the devices where the data to be added
to/subtracted from is stored (real number)
: Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored

: Head number of the devices where the addition/subtraction operation result is stored (real number)
(1) Adds the 64-bit floating decimal point type real number designated at and the 64-bit
floating decimal point type real number designated at , and stores the sum in the device

D +2 D D +1 D S1 S2
(2) Values which can be designated at , and and which can be stored, are as follows:
0, 2-1022 | Designated value (stored value) | < 21024
(1) Subtracts a 64-bit floating decimal point type real number designated by and a 64-bit
floating decimal point type real number designated by , and stores the result at a device

+2 +1 S1 S2 D
(2) Values which can be designated at and and which can be stored, are as follows:
0, 2-1022 | Designated value (stored value) | < 21024
(real number)

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
0, 2-1022 | Contents of designated device | < 21024
overflow):
21024 | Result of operation | (Error code: 4141)
(1) The following program adds the 64-bit floating decimal point type real numbers at D3 to D6
and the 64-bit floating decimal point type real numbers at D10 to D13 when X20 goes ON, and outputs the result at R0 to R3.
[Ladder Mode] [List Mode]
D10 D13 D12 R1
R0 R3 R2

6.2 Arithmetic Operation Instructions 6.2.10 Addition and subtraction of floating decimal point data (Double precision) (ED+(P),ED-(P))
(2) The following programs subtracts the 64-bit floating decimal point type real numbers at D20
to D23 from the 64-bit floating decimal point type real numbers at D10 to D13, and stores the result at D30 to D33.
Step Instruction Device · [Operation]

6.2.11 Multiplication and division of floating decimal point data (Single precision) (E*(P),E/(P))
E*(P),E/(P)
Process High performance Redundant Universal Ver. Basic
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

, E/ indicates an instruction symbol of E* .
: Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored
: Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored
: Head number of the devices where the multiplication/division operation result will be stored (real number)

*1:Available only in multiple Universal model QCPU
(1) Multiplies the 32-bit floating decimal point real number designated by by the 32-bit
floating decimal point real number designated by and stores the operation result at the
device designated by .

(2) Values which can be designated at , and and which can be stored, are as follows:
0, 2-126 | Designated value (stored value) | < 2128
(1) Divides the 32-bit floating decimal point real number designated by by the 32-bit floating
decimal point real number designated by and stores the operation result at the device

(real number) · (real number)

(2) Values which can be designated at , and and which can be stored, are as follows:
0, 2-126 | Designated value (stored value) | < 2128
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
range:
0, 2-126 | Contents of designated device | < 2128
(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)
(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)
*2: There are CPU modules that will not result in an operation error if -0 is specified. Refer to Section 3.2.4 for details.
(The overflow occurs.)(For the Universal model QCPU only)
2128 | Result of addition and subtraction | (Error code: 4141)

(1) The following program multiplies the 32-bit floating decimal point real numbers at D3 and D4
6.2 Arithmetic Operation Instructions 6.2.11 Multiplication and division of floating decimal point data (Single precision) (E*(P),E/(P))
and the 32-bit floating decimal point real numbers at D10 and D11, and stores the result at R0 and R1.
(2) The following program divides the 32-bit floating decimal point real numbers at D10 and D11
by the 32-bit floating decimal point real numbers at D20 and D21, and stores the result at D30 and D31.

6.2.12 Multiplication and division of floating decimal point data (Double precision) (ED*(P),ED/(P))
ED*(P),ED/(P)
Universal Basic Process High performance Redundant

: Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored
: Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored
: Head number of the devices where the multiplication/division operation result will be stored (real number)

(1) Multiplies the 64-bit floating decimal point real number designated by by the 64-bit floating decimal point real number designated by and stores the operation result at the device designated by .

D +2 D D +1 D +3 +2 +1 +3 +2 +1 S1 S2
(2) Values which can be designated at , and and which can be stored, are as follows:
0, 2-1022 | Designated value (stored value) | < 21024
(3) When the operation results in -0 or an underflow, the result is processed as 0.
(real number) · (real number)

ED/
(1) Divides the 64-bit floating decimal point real number designated by by the 64-bit floating decimal point real number designated by and stores the operation result at the device designated by .

D +2 D D +1 D +3 +2 +1 +3 +2 +1 S1 S2
(2) Values which can be designated at , and and which can be stored, are as follows:
0, 2-1022 | Designated value (stored value) | < 21024
(3) When the operation results in -0 or an underflow, the result is processed as 0.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
0, 2-1022 | Contents of designated device | < 21024
overflow):
21024 | Result of operation | (Error code: 4141)

6.2 Arithmetic Operation Instructions 6.2.12 Multiplication and division of floating decimal point data (Double precision) (ED*(P),ED/(P))
(1) The following program multiplies the 64-bit floating decimal point real numbers at D3 to D6
and the 64-bit floating decimal point real numbers at D10 to D13, and stores the result at R0 to R3.

(2) The following program divides the 64-bit floating decimal point real numbers at D10 to D13
by the 64-bit floating decimal point real numbers at D20 to D23, and stores the result at D30 to D33.
[Ladder Mode] [List Mode]
D20 D23 D22 D31
D30 D33 D32
52171.39
9.73521
5359.041
Step Instruction Device · [Operation]

6.2.13 Block addition and subtraction (BK+(P),BK-(P))
BK+(P),BK-(P)
Basic Process High performance Redundant Universal

: Head number of the devices where the data to be added to/subtracted from is stored (BIN 16 bits)
: Data for additing/subtracting or head number of the devices where the data for additing/subtracting is stored
: Head number of the devices where the operation result will be stored (BIN 16 bits)

6.2 Arithmetic Operation Instructions 6.2.13 Block addition and subtraction (BK+(P),BK-(P))
(1) Adds n points of BIN data from the device designated by and n-points of BIN data from
the device designated by and stores the result from the device designated by onward.
(3) The constant designated by can be between 32768 and 32767 (BIN 16-bit data).
(BIN 16 bits)

(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.
+K2 K 32767
(0002 H ) (8001 H )
K 32767 (8001 H )
+K 2
K32767
(FFFE H ) (7FFF H )
BK-
(1) Subtracts n points of BIN data from the device designated by and n-points of BIN data
from the device designated by and stores the result from the device designated by onward.

(2) Block subtraction is performed in 16-bit units.
(3) The constant designated by can be between 32768 and 32767 (BIN 16-bit data).

(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.
K2 K32766
(0002 H )
(7FFE H )
K32767 (7FFF H )
K 2
(8001 H ) (FFFE H )
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.

Program Example
(1) The following program adds, when X20 is turned ON, the data stored at D100 to D103 to the
data stored at R0 to R3 and stores the operation result into the area starting from D200.
[Ladder Mode] [List Mode]

(2) The following program subtracts, when X1C is turned ON, the constant 8765 from the data
at D100 to D102 and stores the operation result into the area starting from R0.
[Ladder Mode] [List Mode]

6.2 Arithmetic Operation Instructions 6.2.13 Block addition and subtraction (BK+(P),BK-(P))

6.2.14 BIN 32-bit data block addition and subtraction operations (DBK+(P),DBK-(P))
DBK+(P),DBK-(P)
Ver.
Basic Process High performance Redundant
QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.
QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

indicates an instruction symbol of DBK+, DBK- .
: Head number of the devices where the data to be added and subtracted are stored (BIN 32 bits)
: Addition and subtraction data or head number of the devices where the addition and subtraction data are
stored (BIN 32 bits)
: Head number of the devices where the addition and subtraction operation result will be stored (BIN 32 bits) n: Number of addition and subtraction data blocks (BIN 16 bits)

(1) This instruction adds BIN 32-bit data stored in n-point devices starting from the device
specified by to BIN 32-bit data stored in n-point devices starting from the device specified
by or a constant. and then stores the operation result into the nth device specified by and up,

n +2 +4 +3, +5,
Universal


S2 n +2 +4 +3, +5,
(2) Block addition is executed in 32-bit units.
(3) The constant in the device specified by can be between 2147483648 to 2147483647 (BIN 32-bit data).
(4) If the value specified by n is 0, the instruction will be not processed.
(5) The following will happen if an overflow occurs in an operation result:
The carry flag in this case is not turned on.
+K2 K 2147483647
(7FFFFFFF H )
(00000002 H ) ( 80000001 H )
・ K 2147483647
+K 2
K2147483647
(80000001 H )
( FFFFFFFE H ) (7FFFFFFF H )
DBK-
(1) This instruction subtracts BIN 32-bit data stored in the n-point devices starting from the
device specified by or a constant from BIN 32-bit data stored in n-point devices starting
from the device specified by , and then stores the operation result into the nth device
specified by and up,

6.2 Arithmetic Operation Instructions 6.2.14 BIN 32-bit data block addition and subtraction operations (DBK+(P),DBK-(P))
n +2 +4 +3, +5,
S2 n +2 +4 +3, +5,
(3) The constant in the device specified by can be between 2147483648 to 2147483647 (BIN 32-bit data).
(4) If the value specified by n is 0, the instruction will be not processed.
(5) specifies out of the range of n-point devices starting from the device specified by and

(6) The following will happen if an overflow occurs in an operation result:
The carry flag in this case is not turned on.
・ K2147483647
(00000002 H ) ( 80000001 H )
(7FFFFFFF H )
・ K 2147483647
- K2
K2147483647
(FFFFFFFE H ) (7FFFFFFF H )
(80000001 H )
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an
error code is stored into SD0.
range of the n-point devices starting from the device specified by . (Exclude the case
that and specify the same device. (Error code: 4101)
range of the n-point devices starting from the device specified by . (Error code: 4101)
(1) The following program adds the value data stored at R0 to R5 to the constant, and then
stores the operation result into D30 to D35, when M0 is turned on.
[Ladder Mode] [List Mode]

b31 b0 600000 -800000 -123456 R3,R2 R5,R4
b31 b0 723456 -676544
D31,D30 +
0 D33,D32 D35,D34
(2) The following program subtracts the value data stored at D50 to D59 from the value data
stored at D100 to D109, and then stores the operation result into R100 to R109, when M0 is turned on.
[Ladder Mode] [List Mode]


[Operation] · [Operation]

6.2.15 Linking character strings ($+(P))
$+(P)
Process High performance Redundant Universal Basic
When two data are set ( + )

: Data for linking or head number of the devices where the data for linking is stored (character string)
: Head number of the devices where the data to be linked is stored (character string)
(1) Links the character string data designated by after the character string data designated

6.2 Arithmetic Operation Instructions 6.2.15 Linking character strings ($+(P))
by and stores the result into the area starting with the device number designated by .
The object of character string data is that character string data stored from device numbers
designated at and to that stored at "00H".
+1 43H (C) 00H +2 45H (E) 44H (D) 32H (2) b15 b8
+1 43H (C) +2 45H (E) 44H (D)
00H 36H (6) +3 +3 32H (2) +4 34H (4) 00H +5 36H (6)
31H (1) 33H (3) 35H (5)
(2) When character strings are linked, the "00H", which indicates the end of character string
data designated at , is ignored, and the character string designated at is appended to

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
Program Example
(1) The following program links the character string stored from D10 to D12 to the character
string "ABCD" when X0 is ON.
[Ladder Mode] [List Mode]
D11 63H (c) 00H D12 65 H (e) 64 H (d) 62 H (b) b15 b8

63 H (c) D12 65 H (e) 64 H (d)
D13 42H (B) D14 44H (D) 00H
Step Instruction Device · [Operation]

When three data are set ( + )

: Data for linking or head number of the devices where the data for linking is stored (character string)
: Data to be linked or head number of the devices where the data to be linked is stored (character string)
: Head number of the devices where the linking result will be stored (character string)
(1) Links the character string data designated by after the character string data designated
by and stores the result into the area starting with the device number designated by .

2DH ( ) 35H (5) b15 b8
33H (3) 41H (A) 39H (9) 46H (F) b15 b8
41H (A) 31H (1) 2DH ( ) 00H 33H (3) 41H (A)
6.2 Arithmetic Operation Instructions 6.2.15 Linking character strings ($+(P))
(2) When character strings are linked, the "00H" which indicates the end of character string data
indicated by , is ignored, and the character string indicated by is appended to the last

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
Program Example
(1) The following program links the character string stored from D10 to D12 with the character
string "ABCD" when X0 is ON, and stores them in D100 onwards.
[Ladder Mode] [List Mode]
D11 63 H (c) 00H D12 65 H (e) 64H (d) 62 H (b) b15 b8

63 H (c) D102 65 H (e) 64 H (d)
D103 42H (B) D104 44H (D) 00H
Step Instruction Device · [Operation]

6.2.16 Incrementing and decrementing 16-bit BIN data (INC(P),DEC(P))
INC(P),DEC(P)
Basic Process High performance Redundant Universal

: Head number of devices for INC (+1)/DEC ( 1) operation (BIN 16 bits)
U \G Zn Constants Other Bit Word Bit Word

(1) Adds 1 to the device designated by (16-bit data).
6.2 Arithmetic Operation Instructions 6.2.16 Incrementing and decrementing 16-bit BIN data (INC(P),DEC(P))
(2) When INC/INCP operation is executed for the device designated by , whose content is
32767, the value 32768 is stored at the device designated by .
(1) Subtracts 1 from the device designated by (16-bit data).
(2) When DEC/DECP operation is executed for the device designated by , whose content is
32768, the value 32767 is stored at the device designated by .
(1) There are no operation errors associated with the INC(P)/DEC(P) instruction.

Program Example
(1) The following program outputs the present value at the counter C0 to C20 to the area Y30 to
Y3F in BCD, every time X8 is turned ON. (When present value is less than 9999)

Outputs the present value of C (D+Z1) to Y30 to Y3F in BCD.
Sets Z1 at "0" when Z1=21 or X7 (reset input) is ON.
(2) The following is a down counter program.

In the state M38=OFF, decrement at D8 (D8 - 1) is executed when X8 goes from OFF to ON.

6.2.17 Incrementing and decrementing 32-bit BIN data (DINC(P),DDEC(P))
DINC(P),DDEC(P)
Basic Process High performance Redundant Universal

: Head number of devices for DINC(+1) or DDEC(-1) operation (BIN 32 bits)
U \G Zn Constants Other Bit Word Bit Word

(1) Adds 1 to the device designated by (32-bit data).
6.2 Arithmetic Operation Instructions 6.2.17 Incrementing and decrementing 32-bit BIN data (DINC(P),DDEC(P))
(2) When DINC/DINCP operation is executed for the device designated by , whose content is
2147483647, the value 2147483648 is stored at the device designated by .
(1) Subtracts 1 from the device designated by (32-bit data).
(2) When DDEC/DDECP operation is executed for the device designated by , whose content
is 0, the value 1 is stored at the device designated by .
(1) There are no operation errors associated with the DINC(P) or DDEC(P).

Program Example
(1) The following program adds 1 to the data at D0 and D1 when X0 is ON.
[Ladder Mode] [List Mode]
(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]

(3) The following program subtracts 1 from the data at D0 and D1 when X0 goes ON.
[Ladder Mode] [List Mode]
(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]

Step Instruction Device · Step Instruction Device

6.3 Data conversion instructions
6.3.1 Conversion from BIN data to 4-digit and 8-digit BCD (BCD(P),DBCD(P))
BCD(P),DBCD(P) BCD(P), DBCD(P)
Basic Process High performance Redundant Universal
indicates an instruction symbol of BCD/DBCD.
BCDP, DBCDP
P
S D
: BIN data or head number of the devices where the BIN data is stored (BIN 16/32 bits)
: Head number of the devices where BCD data will be stored (BCD 4/8 digits)
U \G Zn Constants
K, H Other Bit Word Bit Word
Function
6.3 Data conversion instructions 6.3.1 Conversion from BIN data to 4-digit and 8-digit BCD (BCD(P),DBCD(P))
Converts BIN data (0 to 9999) at the device designated by to BCD data, and stores it at the
device designated by .
Must always be "0".
Thousands digits Hundreds digits Tens digits Ones digits
Converts BIN data (0 to 99999999) at the device designated by to BCD data, and stores it at
the device designated by .
+1 (Upper 16 bits) (Lower 16 bits)
231 230 229 228 227 226 225 224 223 222 221 220 219 218 217 216 215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20
0 1 0 1 0 1 0 1 0 1
Must always be "0" (upper 5 digits).
1 2 4 8
1 2 4 8
1 2 4 8
1 2 4 8
1 2 4 8
1 2 4 8
1 2 4 8
1 2 4 8
1 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
+1 (Upper 4 digits)

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The following program outputs the present value of C4 from Y20 to Y2F to the BCD display
device.

0 1 0 1 0 1 1 0 0 1 0 0 0
[Ladder Mode] [List Mode]
(2) The following program outputs 32-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
[Ladder Mode] [List Mode]

Step Instruction Device

6.3.2 Conversion from BCD 4-digit and 8-digit data to BIN data (BIN(P),DBIN(P))
BIN(P),DBIN(P)
Basic Process High performance Redundant Universal

: BCD data or head number of the devices where the BCD data is stored (BCD 4/8 digits)
: Head number of the devices where BIN data will be stored (BIN 16/32 bits)

6.3 Data conversion instructions 6.3.2 Conversion from BCD 4-digit and 8-digit data to BIN data (BIN(P),DBIN(P))
Converts BCD data (0 to 9999) at device designated by to BIN data, and stores at the device
Converts BCD data (0 to 99999999) at device designated by to BIN data, and stores at the
1 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
231 230 229 228 227 226 225 224 223 222 221 220 219 218 217 216 215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20
0 1 0 1 0 1 0 1 0 1

Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
When the QCPU is used, the error above can be suppressed by turning ON SM722. However, the instruction is not executed regardless of whether SM722 is turned ON or OFF if the designated value is out of the available range. For the BINP/DBINP instruction, the next operation will not be performed until the command (execution condition) is turned from OFF to ON regardless of the presence/absence of an error.
(1) The following program converts the BCD data at X10 to X1B to BIN when X8 is ON, and stores it at D8.

[Ladder Mode] [List Mode]
Step Instruction Device

(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.
(Addition of the BIN data converted from BCD at X20 to X37 and the BIN data converted from BCD at X10 to X1F)

X13 to X10 X17 to X14 X1B to X18 X1F to X1C X23 to X20 X27 to X24 X2B to X28 X2F to X2C X33 to X30 X37 to X34
[Ladder Mode] [List Mode]

If the data set at X10 to X37 is a BCD value which exceeds 2147483647, the value at D0 and D1 will be a negative value, because it exceeds the range of numerical values that can be handled by a 32-bit device.

6.3 Data conversion instructions 6.3.2 Conversion from BCD 4-digit and 8-digit data to BIN data (BIN(P),DBIN(P))

6.3.3 Conversion from BIN 16 and 32-bit data to floating decimal point (Single precision) (FLT(P),DFLT(P))
Process High performance Redundant Universal Ver. Basic
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

: Integer data to be converted to 32-bit floating decimal point data or head number of the devices where the
integer data is stored (BIN 16/32 bits)
: Head number of the devices where the converted 32-bit floating decimal point data will be stored

*1:Available only in multiple Universal model QCPU
(1) Converts 16-bit BIN data designated by to 32-bit floating decimal point type real number,

(2) BIN values between 32768 to 32767 can be designated by .
(1) Converts 32-bit BIN data designated by to 32-bit floating decimal point type real number,

(2) BIN values between 2147483648 to 2147483647 can be designated by +1 and .
(real number)

(3) Due to the fact that 32-bit floating decimal point type real numbers are processed by simple
32-bit processing, the number of significant digits is 24 bits if the display is binary and approximately 7 digits if the display is decimal.
For this reason, if the integer exceeds the range of 16777216 to 16777215 (24-bit BIN value), errors can be generated in the conversion value. As for the conversion result, the 25th bit from the upper bit of the integer is always filled with 1 and 26th bit and later bits are truncated.

b31 b24 b23 b16 222030030 1 1 0 1 0 0 1 1 1 0 1 1
b15 b8 b7 b0 1 1 1 0 1 0 0 0 1 1 0 0 1 1 1 0 Result of operation is 222030032. Truncation Always filled with 1
372588919 0 0 0 1 0 1 1 0 0 0 1 1 0 1 0 1 0 1 0 1 0 1 1 1 0 1 1 1 Result of operation is 372588928. Truncation Always filled with 1
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
(For the Universal model QCPU only)
2128 | Operation result | (Error code: 4141)

6.3 Data conversion instructions 6.3.3 Conversion from BIN 16 and 32-bit data to floating decimal point (Single precision) (FLT(P),DFLT(P))

Program Example
(1) The following program converts the BIN 16-bit data at D20 to a 32-bit floating decimal point
type real number and stores the result at D0 and D1.
[Ladder Mode] [List Mode]
32-bit floating-point real number
(2) The following program converts the BIN 32-bit data at D20 and D21 to a 32-bit floating
decimal point type real number, and stores the result at D0 and D1.
[Ladder Mode] [List Mode]

Integer conversion An error is generated in operation results since the number of significant digits is "7". BIN value

6.3.4 Conversion from BIN 16 and 32-bit data to floating decimal point (Double precision) (FLTD(P),DFLTD(P))
Universal Basic Process High performance Redundant

: Integer data to be converted to 64-bit floating decimal point data or head number of the devices where the
integer data is stored (BIN 16/32 bits)
: Head number of the devices where the converted 64-bit floating decimal point data will be stored

6.3 Data conversion instructions 6.3.4 Conversion from BIN 16 and 32-bit data to floating decimal point (Double precision) (FLTD(P),DFLTD(P))
(1) Converts 16-bit BIN data designated by to 64-bit floating decimal point type real number,
(2) BIN values between 32768 to 32767 can be designated by .
(1) Converts 32-bit BIN data designated by to 64-bit floating decimal point type real number,
(2) BIN values between 2147483648 to 2147483647 can be designated by +1 and .
(real number)

Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
21024 | Operation result | (Error code: 4141)
(1) The following program converts the BIN 16-bit data at D20 to a 64-bit floating decimal point
type real number and stores the result at D0 to D3.
[Ladder Mode] [List Mode]
Conversion to real number
64-bit floating-point real number
(2) The following program converts the BIN 32-bit data at D20 and D21 to a 64-bit floating
decimal point type real number, and stores the result at D0 to D3.
[Ladder Mode] [List Mode]
Conversion to real number
64-bit floating-point real number BIN value

6.3.5 Conversion from floating decimal point data to BIN16- and 32-bit data (Single precision) (INT(P),DINT(P))
Process High performance Redundant Universal Ver. Basic
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

: 32-bit floating decimal point data to be converted to BIN value or head number of the devices where the
floating decimal point data is stored (real number)

: Head number of the devices where the converted BIN value will be stored (BIN 16/32 bits)
*1:Available only in multiple Universal model QCPU
6.3 Data conversion instructions 6.3.5 Conversion from floating decimal point data to BIN16- and 32-bit data (Single precision) (INT(P),DINT(P))
(1) Converts the 32-bit floating decimal point real number designated at into BIN 16-bit data and stores it at the device number designated at .
32-bit floating-point real number
(2) The range of 32-bit floating decimal point type real numbers that can be designated at +1 or is from 32768 to 32767.
(3) Stores integer values stored at as BIN 16-bit values.
(4) After conversion, the first digit after the decimal point of the real number is rounded off.
(1) Converts 32-bit floating decimal point type real number designated by to BIN 32-bit data, and stores the result at the device number designated by .
Lower 16 bits Upper 16 bits
32-bit floating-point real number
(2) The range of 32-bit floating decimal point type real numbers that can be designated at +1 or is from 2147483648 to 2147483647.
BIN16-bit · BIN 32 bits

(3) The integer value stored at +1 and is stored as BIN 32 bits.
(4) After conversion, the first digit after the decimal point of the real number is rounded off.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
the following range(For the Universal model QCPU only):
0, 2-126 | Contents of designated device | < 2128 (Error code: 4140)
used was outside the 31768 to 32767 range. (Error code: 4100)
was used was outside the 2147483648 to 2147483647 range. (Error code: 4100)
(1) The following program converts the 32-bit floating decimal point type real number at D20
and D21 to BIN 16-bit data, and stores the result at D0.
[Ladder Mode] [List Mode]

Integer conversion An operation error occurs since "setting data < -32768." 32-bit floating-point real number
Step Instruction Device · [Operation]

(2) The following program converts the 32-bit floating decimal point type real number at D20
and D21 to BIN 32-bit data and stores the result at D0 and D1.
[Ladder Mode] [List Mode]
-574968.321
32-bit floating-point real number
An operation error occurs since "setting data > 2147483647." 32-bit floating-point real number
6.3 Data conversion instructions 6.3.5 Conversion from floating decimal point data to BIN16- and 32-bit data (Single precision) (INT(P),DINT(P))

6.3.6 Conversion from floating decimal point data to BIN16- and 32-bit data (Double precision) (INTD(P),DINTD(P))
Universal Basic Process High performance Redundant

: 64-bit floating decimal point data to be converted to BIN value or head number of the devices where the
floating decimal point data is stored (real number)
: Head number of the devices where the converted BIN value will be stored (BIN 16/32 bits)

(1) Converts the 64-bit floating decimal point real number designated at into BIN 16-bit data
and stores it at the device number designated at .
64-bit floating-point real number
(2) The range of 64-bit floating decimal point type real numbers that can be designated at
+3, +2, +1 or is from 32768 to 32767.
(3) Stores integer values stored at as BIN 16-bit values.
(4) The converted data is the value rounded 64-bit floating-point real number to the first digit
after the decimal point.
(1) Converts 64-bit floating decimal point type real number designated by to BIN 32-bit data,

and stores the result at the device number designated by .
BIN 16 bit

(2) The range of 64-bit floating decimal point type real numbers that can be designated at
+3, +2, +1 or is from 2147483648 to 2147483647.
(3) The integer value stored at +1 and is stored as BIN 32 bits.
(4) The converted data is the value rounded 64-bit floating-point real number to the first digit
after the decimal point.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
0, 2-1022 | value of specified device | 21024
was used was outside the 31768 to 32767 range. (Error code: 4100)
was used was outside the 2147483648 to 2147483647 range. (Error code: 4100)
(1) The following program converts the 64-bit floating decimal point type real number at D20 to
D23 with BIN 16-bit data, and stores the result at D0.
[Ladder Mode] [List Mode]

6.3 Data conversion instructions 6.3.6 Conversion from floating decimal point data to BIN16- and 32-bit data (Double precision) (INTD(P),DINTD(P))
An operation erroe occurs because the specified data is larger than -32768.
(2) The following program converts the 64-bit floating decimal point type real number at D20 to
D23 with BIN 32-bit data and stores the result at D0 and D1.
An operation erroe occurs because the specified data is larger than 2147483647. 64-bit floating-point real number
Step Instruction Device

6.3.7 Conversion from BIN 16-bit to BIN 32-bit data (DBL(P))
DBL(P)
Basic Process High performance Redundant Universal

: BIN 16-bit data or head number of the devices where the BIN 16-bit data is stored (BIN 16 bits)
: Head number of the devices where the converted BIN 32-bit data will be stored (BIN 32 bits)
Converts BIN 16-bit data at device designated by to BIN 32-bit data with sign, and stores the

Lower 16 bits Upper 16 bits BIN 16-bit data
(1) There are no errors associated with the DBL(P) instruction.
(1) The following program converts the BIN 16-bit data stored at D100 to BIN 32-bit data when
X20 is ON, and stores at R100 and R101.
[Ladder Mode] [List Mode]
R101 R100

6.3.8 Conversion from BIN 32-bit to BIN 16-bit data (WORD(P))
WORD(P)
Basic Process High performance Redundant Universal

: BIN 32-bit data or head number of the devices where the BIN 32-bit data is stored (BIN 32 bits)
: Head number of the devices where the converted BIN 16-bit data will be stored (BIN 16 bits)
Converts BIN 32-bit data at device designated by to BIN 16-bit data with sign, and stores the result at a device designated by .
Devices can be designated in the range from -32768 to 32767.

6.3 Data conversion instructions 6.3.8 Conversion from BIN 32-bit to BIN 16-bit data (WORD(P))
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
(1) The following program converts the BIN 32-bit data at R100 and R101 to BIN 16-bit data
when X20 is ON, and stores it at D100. [Ladder Mode] [List Mode]

6.3.9 Conversion from BIN 16 and 32-bit data to Gray code (GRY(P),DGRY(P))
GRY(P),DGRY(P)
Basic Process High performance Redundant Universal

: BIN data or head number of the devices where the BIN data is stored (BIN 16/32 bits)
: Head number of the devices where the converted Gray code will be stored (BIN 16/32 bits)
Converts BIN 16-bit data at the device designated by to Gray code, and stores result at

0 BIN 1234 0 1 0 0 1 1 0 1 0 0 1 0 b0
0 Gray code 1234 0 1 1 0 1 0 1 1 1 0 1 1 b0
Converts BIN 32-bit data at the device designated by to Gray code, and stores result at

0 BIN 305419896 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 0 0 0
0 Gray code 305419896 0 0 1 1 0 1 1 0 0 1 0 1 1 1 0 0 1 0 1 0 1 0 0 0 1 0 0

Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
(1) The following program converts the BIN data at D100 to Gray code when X10 is ON, and
stores result at D200.
[Ladder Mode] [List Mode]
(2) The following program converts the BIN data at D10 and D11 to Gray code when X1C is ON,
and stores it at D100 and D101.
[Ladder Mode] [List Mode]

6.3 Data conversion instructions 6.3.9 Conversion from BIN 16 and 32-bit data to Gray code (GRY(P),DGRY(P))
Step Instruction Device · Step Instruction Device

6.3.10 Conversion of Gray code to BIN 16 and 32-bit data (GBIN(P),DGBIN(P))
GBIN(P),DGBIN(P)
Basic Process High performance Redundant Universal

: Gray code data or head number of the devices where the Gray code data is stored (BIN 16/32 bits)
: Head number of the devices where the converted BIN data will be stored (BIN 16/32 bits)
Converts Gray code data at device designated by to BIN 16-bit data and stores at device

0 Gray code 1234 0 1 1 0 1 0 1 1 1 0 1 1 b0
0 BIN 1234 0 1 0 0 1 1 0 1 0 0 1 0 b15 b0
Converts Gray code data at device designated by to BIN 32-bit data and stores at device

0 Gray code 305419896 0 0 1 1 0 1 1 0 0 1 0 1 1 1 0 0 1 0 1 0 1 0 0 0 1 0 0
0 BIN 305419896 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 0 0 0

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The following program converts the Gray code data at D100 when X10 is ON to BIN data,
and stores the result at D200.
[Ladder Mode] [List Mode]
(2) The following program converts the Gray code data at D10 and D11 to BIN data when X1C
is ON, and stores the result at D0 and D1.
[Ladder Mode] [List Mode]

6.3 Data conversion instructions 6.3.10 Conversion of Gray code to BIN 16 and 32-bit data (GBIN(P),DGBIN(P))
Step Instruction Device · Step Instruction Device

6.3.11 Complement of 2 of BIN 16and 32-bit data (sign reversal) (NEG(P),DNEG(P))
NEG(P),DNEG(P)
Basic Process High performance Redundant Universal

: Head number of the devices where the data for which complement of 2 is performed is stored

U \G Zn Constants Other Bit Word Bit Word
(1) Reverses the sign of the 16-bit device designated by and stores at the device designated

1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 b0
0
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
(2) Used when reversing positive and negative signs.
(BIN 16/32 bits)

DNEG
(1) Reverses the sign of the 32-bit device designated by and stores at the device designated

1 Before execution 1 0 1 0 0 1 0 0 b0
0
1 0 1 0 0 1 0 0
After execution 0 1 0
(2) Used when reversing positive and negative signs.
(1) There are no operation errors associated with the NEG(P) or DNEG(P) instruction.
(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.

6.3 Data conversion instructions 6.3.11 Complement of 2 of BIN 16- and 32-bit data (sign reversal) (NEG(P),DNEG(P))
Calculates the absolute value (complement of 2) when M3 is ON.
[Ladder Mode]

6.3.12 Floating-point sign invertion (Single precision) (ENEG(P))
ENEG(P)
Process High performance Redundant Universal Ver. Basic
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

: Head number of the devices where the 32-bit floating decimal point data whose sign is to be reversed is
U \G Zn Constants Other Bit Word Bit Word
–– –– *1 ––
*1:Available only in multiple Universal model QCPU
(1) Reverses the sign of the 32-bit floating decimal point type real number data designated by
, and stores at the device designated by .
(2) Used when reversing positive and negative signs.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
the following range(For the Universal model QCPU only): 0, 2-126 | Contents of designated device | < 2128 (Error code: 4140)
(1) The following program inverts the sign of the 32-bit floating decimal point type real number
data at D100 and D101 when X20 goes ON, and stores result at D100 and D101.
[Ladder Mode] [List Mode]

6.3.13 Floating-point sign invertion (Double precision) (EDNEG(P))
EDNEG(P)
Universal Basic Process High performance Redundant

: Head number of the devices where the 64-bit floating decimal point data whose sign is to be reversed is

U \G Zn Constants Other Bit Word Bit Word
(1) Reverses the sign of the 64-bit floating decimal point type real number data designated by
, and stores at the device designated by .

6.3 Data conversion instructions 6.3.13 Floating-point sign invertion (Double precision) (EDNEG(P))
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
0, 2-1022 | value of specified device | < 21024
(1) The following program inverts the sign of the 64-bit floating decimal point type real number
data at D100 to D103 when X20 goes ON, and stores result at D100 to D103.
stored (real number)

6.3.14 Conversion from block BIN 16-bit data to BCD 4-digit data (BKBCD(P))
BKBCD(P)
Basic Process High performance Redundant Universal

: Head number of the devices where BIN data is stored (BIN 16 bits)
: Head number of the devices where the converted BCD data will be stored (BCD 4 digits)

(1) Converts BIN data (0 to 9999) n points from device designated by to BCD, and stores

8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1
0 BIN 1234 0 1 0 0 1 1 0 1 0 0 1 0
0 BIN 5678 0 0 1 0 1 1 0 0 0 1 0 1 1 1 0
0 BIN 1545 0 1 1 0 1 0 0 1
0 BIN 4321 0 0 1 0 1 1 1 0 1
0 BIN 5555 0 0 1 0 1 0 1 1 0 1 1 0 0 1 1 +(n 1)
2000 1000 800 400 200 100 80 40 20 10 8 4 2 1
0 BCD 1234 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0
0 BCD 5678 1 0 1 0 1 1 0 0 1 0 0 0
0 BCD 1545 0 0 1 0 1 0 1 0 1 0 0 0 1 0 1
0 BCD 4321 1 0 1 1 0 0 1 0 1
0 BCD 5555 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
Program Example
(1) The following program converts, when X20 is turned ON, the BIN data stored at D100 to
D102 to BCD and stores the operation result into the area starting from D200.
[Ladder Mode] [List Mode]

8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1
0 0 0 1 0 1 0 1 0 0 1 1 1 0 0 0
0 0 0 1 0 0 0 1 0 1 0 1 1 1 0 0
0 1 1 0 0 1 0 0 0 1 0 1 0
6.3 Data conversion instructions 6.3.14 Conversion from block BIN 16-bit data to BCD 4-digit data (BKBCD(P))
2000 1000 800 400 200 100 80 40 20 10 8 4 2 1
0 1 0 1 0 1 0 1 1 0 0 1 0
0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0
0 0 1 1 0 0 1 0 1 0
Step Instruction Device · [Operation]

6.3.15 Conversion from block BCD 4-digit data to block BIN 16-bit data (BKBIN(P))
Basic Process High performance Redundant Universal

: Head number of the devices where BCD data is stored (BCD 4 digits)
: Head number of the devices where the converted BIN data will be stored (BIN 16 bits)

(1) Converts BCD data (0 to 9999) n points from device designated by to BIN, and stores

2000 1000 800 400 200 100 80 40 20 10 8 4 2 1
0 BCD 1234 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0
0 BCD 5678 1 0 1 0 1 1 0 0 1 0 0 0
0 BCD 1545 0 0 1 0 1 0 1 0 1 0 0 0 1 0 1
0 BCD 4321 1 0 1 1 0 0 1 0 1
0 BCD 5555 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1
0 BIN 1234 0 1 0 0 1 1 0 1 0 0 1 0
0 BIN 5678 0 0 1 0 1 1 0 0 0 1 0 1 1 1 0
0 BIN 1545 0 1 1 0 1 0 0 1
0 BIN 4321 0 0 1 0 1 1 1 0 1
0 BIN 5555 0 0 1 0 1 0 1 1 0 1 1 0 0 1 1 +(n 1)

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
Program Example
(1) The following program converts, when X20 is turned ON, the BCD data stored at D100 to
D102 to BIN and stores the operation result into the area starting from D200.
[Ladder Mode] [List Mode]

2000 1000 800 400 200 100 80 40 20 10 8 4 2 1
1 1 0 1 0
0 0 1 1 1 0 1 1 0 0 1 0 1 0 1 0
1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1
6.3 Data conversion instructions 6.3.15 Conversion from block BCD 4-digit data to block BIN 16-bit data (BKBIN(P))
8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1
0 0 0 1 0 0 1 0 0 0
0 0 0 1 1 1 0 1 0 0 1 1
0 0 1 0 0 1 1 1 0 1 1 1
Step Instruction Device · [Operation]

6.3.16 Single precision to Double precision conversion (ECON(P))
ECON(P)
Universal Basic Process High performance Redundant

: Conversion source data, or head number of the device where conversion source data is stored
(Real number (single precision))

: Head number of the device where the converted data is stored (Real number (double precision))
Converts 32-bit floating-point real number specified for into 64-bit floating-point real

number, and stores the conversion result to the device specified for .
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
0,2-126 | value of specified device | 2128

Program Example
(1) The program which converts 32-bit floating-point real number of the devices, D10 to D11,
into 64-bit floating-point real number when X0 turns ON, and outputs the conversion result to the devices, D0 to D3.
[Ladder Mode] [List Mode]
6.3 Data conversion instructions 6.3.16 Single precision to Double precision conversion (ECON(P))
Step Instruction Device

6.3.17 Double precision to Single precision conversion (EDCON(P))
EDCON(P)
Universal Basic Process High performance Redundant

: Conversion source data, or head number of the device where conversion source data is stored
(Real number (double precision))

: Head number of the device where the converted data is stored (Real number (single precision))
Converts 64-bit floating-point real number specified for into 32-bit floating-point real

number, and stores the conversion result to the device specified for .
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
0,2-1022 | value of specified device | 21024
2128 | Conversion result | (Error code: 4141)

Program Example
(1) The program which converts 64-bit floating-point real number of the devices, D10 to D13,
into 32-bit floating-point real number when X0 turns ON, and outputs the conversion result to the devices, D0 to D1.
[Ladder Mode] [List Mode]
6.3 Data conversion instructions 6.3.17 Double precision to Single precision conversion (EDCON(P))
Step Instruction Device

6.4 Data Transfer Instructions
6.4.1 16-bit and 32-bit data transfers (MOV(P),DMOV(P))
MOV(P),DMOV(P)
Basic Process High performance Redundant Universal

: Data to be transferred or the number of the device where the data to be transferred is stored (BIN 16/32 bits)
: Number of the device where the data will be transferred (BIN 16/32 bits)
(1) Transfers the 16-bit data from the device designated by to the device designated by .

1 Before transfer 0 1 1 0 1 0 0 0 1 1 1 0 0 1 0 b0
1 0 1 1 0 1 0 0 0 1 1 1 0 0 1 0 b0 After transfer

(1) Transfers 32-bit data at the device designated by to the device designated by .
1 Before transfer 0 1 1 0 1 0 0 0 1 1 1 0 0 1 0 b15 b0 b0 b15
After transfer 1 0 1 1 0 1 0 0 0 1 1 1 0 0 1 0 b15 b0 b0 b15
(1) There are no operation errors associated with the MOV(P) or DMOV(P) instruction.

Program Example
(1) The following program stores input data from X0 to XB at D8.
[Ladder Mode] [List Mode]
(2) The following program stores the constant K155 at D8 when X8 goes ON.
[Ladder Mode] [List Mode]

D8 1 0 0 1 0 1 0 1 1 b15 b8b7 b0
(3) The following program stores the data from D0 and D1 at D7 and D8.
[Ladder Mode] [List Mode]
(4) The following program stores the data from X0 to X1F at D0 and D1.

6.4 Data Transfer Instructions 6.4.1 16-bit and 32-bit data transfers (MOV(P),DMOV(P))
Step Instruction Device · Step Instruction Device

6.4.2 Floating-point data transfer (Single precision) (EMOV(P))
EMOV(P)
Process High performance Redundant Universal Ver. Basic
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

: Data to be transferred or number of the device to which the data to be transferred is stored (real number)
: The number of the device to which the transferred data will be stored (real number)
*1:Available only in multiple Universal model QCPU
Transfers 32-bit floating decimal point type real number data being stored at the device

(1) There are no operation errors associated with the EMOV(P) instruction.

Program Example
(1) The following program stores the real numbers at D10 and D11 at D0 and D1.
[Ladder Mode] [List Mode]
(2) The following program stores the real number 1.23 at D10 and D11 when X8 is ON.
[Ladder Mode] [List Mode]
1.23 1.23

6.4 Data Transfer Instructions 6.4.2 Floating-point data transfer (Single precision) (EMOV(P))

6.4.3 Floating-point data transfer (Double precision) (EDMOV(P))
EDMOV(P)
Universal Basic Process High performance Redundant

: Data to be transferred or number of the device to which the data to be transferred is stored (real number)
: The number of the device to which the transferred data will be stored (real number)
Transfers 64-bit floating decimal point type real number data being stored at the device

(1) There are no operation errors associated with the EDMOV(P) instruction.

Program Example
(1) The following program stores the 64-bit floating decimal point type real number at D10 to
D13 at D0 to D3.
[Ladder Mode] [List Mode]
D0 D3 D2
(2) The following program stores the real number 1.23 at D10 to D13 when X8 is ON.
[Ladder Mode] [List Mode]

6.4 Data Transfer Instructions 6.4.3 Floating-point data transfer (Double precision) (EDMOV(P))

6.4.4 Character string transfers ($MOV(P))
$MOV(P)
Basic Process High performance Redundant Universal

: Character string to be transferred (maximum string length: 32 characters) or head number of the devices
where the character string to be transferred is stored (character string)

: Head number of the devices where the transferred character string will be stored (character string)
(1) Transfers the character string data designated by to the devices from the device
designated by and onward. The character string data enclosed in " (double quotes) or devices from the number
specified by to the device number storing "00H" are transferred all at once.

(2) Processing will be performed without error even in cases where the range for the devices
storing the character data to be transferred ( to +n) overlaps with the range of the
devices which will store the character string data after it has been transferred ( to +n).
The following occurs when the character string data that had been stored from D10 to D13 is transferred to D11 to D14:

Character string before transfer is remained. 32 H (2) b15 b8
D11 33 H (3) 35 H (5) 34 H (4)
D11 31H (1) 33H (3) 32H (2)

(3) If the "00H" code is being stored at lower bytes of +n, "00H" will be stored at both the

42 H (B) 41 H (A) 43 H (C) 00 H 44 H (D) 45 H (E)
42 H (B) 41 H (A) 43 H (C) 00 H 44 H (D) 00 H
At the upper byte position, "00H" is automatically stored.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The character string data stored in D10 to D12 is transferred to D20 to D22 when X0 goes
ON.
[Ladder Mode] [List Mode]

6.4 Data Transfer Instructions 6.4.4 Character string transfers ($MOV(P))
D10 4DH (M) 2AH ( * ) 45H (E) 45H (E) 00H
4DH (M) 2AH ( * ) 45H (E) 45H (E) 00H
(2) When X is turned ON, the character string "ABCD" is transferred to D20 and D21.
Step Instruction Device

6.4.5 16-bit and 32-bit negation transfers (CML(P),DCML(P))
CML(P),DCML(P)
Basic Process High performance Redundant Universal

: Data to be reversed or the number of the device where data to be reversed is stored (BIN 16/32 bits)
: Number of the device where the reversing result will be stored (BIN 16/32 bits)
(1) Inverts 16-bit data designated by bit by bit, and transfers the result to the device

1 Before execution 0 1 1 0 1 0 0 0 1 1 1 0 0 1 0 b0
1 b0 After execution
(1) Inverts 32-bit data designated by bit by bit, and transfers the result to the device

1 Before execution 0 1 1 0 1 0 0 0 1 1 1 0 0 1 0
After execution 1 b15 b0 b0 b15
(1) There are no operation errors associated with the CML(P) or DCML(P) instruction.

Program Example
(1) The following program inverts the data from X0 to X7, and transfers result to D0.
[Ladder Mode] [List Mode]

If "Number of bits of < Number of bits of "
1 1 0 1 0 X7 X0
0 0 1 0 1 b7 b0 1 b15 b8
(2) The following program inverts the data at M16 to M23, and transfers the result to Y40 to
Y47.
[Ladder Mode] [List Mode]

If "Number of bits of < Number of bits of "
6.4 Data Transfer Instructions 6.4.5 16-bit and 32-bit negation transfers (CML(P),DCML(P))
0 1 0 1 1 1 0 0 M23 M16
1 0 1 0 0 0 1 1 Y47 Y40 1 Y4B Y48
(3) The following program inverts the data at D0 when X3 is ON, and stores the result at D16.
1 0 1 0 1 b7 b0 0 1 0 1 1 0 1 1 b15 b8
0 1 0 1 0 1 0 1 0 0 1 0 0

(4) The following program inverts the data at X0 to X1F, and transfers results to D0 and D1.
[Ladder Mode] [List Mode]

If "Number of bits of < Number of bits of " S D
These bits are all regarded as 0. 0 1 0 0 0 1 1 1 0 0 1 0 1 1 0 0
1 0 1 1 1 0 0 0 1 1 0 1 0 0 1 1
(5) The following program inverts the data at M16 to M35, and transfers it to Y40 to Y63.
[Ladder Mode] [List Mode]

If "Number of bits of < Number of bits of " S D
These bits are all regarded as 0. 0 1 0 0 0 1 1 1 0 0 1 0 1 1 0 0 M35 M24 M23 M16
1 0 1 1 1 0 0 0 1 1 0 1 0 0 1 1 Y47 Y40 1 Y63 Y48 Y56
(6) Inverts the data at D0 and D1 when X3 is ON, and stores the result at D16 and D17.
[Ladder Mode] [List Mode]
0 1 0 0 1 b7 b0 b8 D0,D1
0
1 0 1 1 1 0 0 0 1 1 0 1 0 0 1 1 b7 b0 1 b8 D16,D17

6.4.6 Block 16-bit data transfers (BMOV(P))
BMOV(P)
Basic Process High performance Redundant Universal

: Head number of the devices where the data to be transferred is stored (BIN 16 bits)
: Head number of the devices of transfer destination (BIN 16 bits)
n : Number of transfers (when using an intelligent function module device (U \G ): 1 to 6144 (QnA only))
K, H Other Bit Word Bit Word
U \G Zn Constants
(1) Transfers in batch 16-bit data of n points from the device designated by to location n
6.4 Data Transfer Instructions 6.4.6 Block 16-bit data transfers (BMOV(P))
points from the device designated by .
B0 b15 B0 b15 S D
1234 H 5678 H 7FF0 H
S S
6FFF H 553F H
6FFF H 553F H
(2) Transfers can be accomplished even in cases where there is an overlap between the source
and destination device. In the case of transmission to the smaller device number, transmission is from ; for transmission to the larger device number, transmission is from + (n 1). However, as shown in the example below, when transferring data from R to ZR, or from ZR to R, the range to be transferred (source) and the range of destination must not overlap. Transfer from R to R, or from ZR to ZR can be performed without any problem.
head No. of R + file register block No. 32768 + the number of transfers -1))

Example
Transfer ranges of ZR and R overlap when transferring 10000 blocks of data from ZR30000 (source) to R10 (block No.1 of the destination).
(32778) to (42777) Therefore, the range 32778 to 39999 overlaps and the data is not correctly transferred.

(3) When is a word device and is a bit device, the object for the word device will be the number of bits designated by the bit device digit designation.
If K1Y30 has been designated by , the lower four bits of the word device designated by will become the object.

n 0 0 1 1 1 0 1 0
(4) If bit device has been designated for and , then and should always have the same number of digits.
(5) When using a link direct device and an intelligent function module device for and , only
either of or can be used.
(6) Selection whether to check a device range
Whether to check a device range during execution of the BMOV instruction can be selected with the device range check inhibit flag (SM237) (only when the conditions for subset processing are established).
While SM237 is ON, whether to + (n) -1 and to + (n) - 1 are within the device range or not are not checked. For details of SM237, refer to Appendix 3 SPECIAL RELAY LIST.
SM237 can be used only for the Universal model QCPU whose first 5 digits of serial number is 10012 or later.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The following program outputs the lower 4 bits of data at D66 to D69 to Y30 to Y3F in 4-point
units.
[Ladder Mode] [List Mode]

After execution (destination of transfer) Before execution (source of transfer)
1 Y33 to Y30 1 0 1 0 1 0 1
Y37 to Y34 Y3B to Y38 Y3F to Y3C
0 0 1 0 1 0 D68 D69

(2) The following program outputs the data at X20 to X2F to D100 to D103 in 4-point units.
6.4 Data Transfer Instructions 6.4.6 Block 16-bit data transfers (BMOV(P))
0 1 1 1 0 1 0 1
0 1 0
Step Instruction Device · [Operation]

6.4.7 Identical 16-bit data block transfers (FMOV(P))
FMOV(P)
Basic Process High performance Redundant Universal

: Data to be transferred or the head number of the devices where the data to be transferred is stored
: Head number of the devices of transfer destination (BIN 16 bits)

(1) Transfers 16-bit data at the device designated by to n points of devices starting from the
one designated by .

(2) In cases where designates a word device and a bit device, the number of bits
designated by digit designation for the bit device will be the object bits for the word device.
If K1Y30 has been designated by , the lower 4 bits of the word device designated by will become the object.
D D D D
b0 b1 b2 b3 b4 b15 Transfer
Y37 Y34
n 1 0 1 1 1 0 1 0 1
1 0 1 1
(3) If bit device has been designated for and , then and should always have the same number of digits.
(BIN 16 bits) · +2 +3 · +1

(4) Selection whether to check a device range
Whether to check a device range during execution of the FMOV instruction can be selected with the device range check inhibit flag (SM237) (only when the conditions for subset processing are established).
While SM237 is ON, whether to + (n) - 1 is within the device range or not is not checked. For details of SM237, refer to Appendix 3 SPECIAL RELAY LIST.
SM237 can be used only for the Universal model QCPU whose first 5 digits of serial number is 10012 or later.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The following program outputs the lower 4 bits of D0 when XA goes ON to Y10 to Y23 in
4-bit units. [Ladder Mode] [List Mode]

6.4 Data Transfer Instructions 6.4.7 Identical 16-bit data block transfers (FMOV(P))
1 Y13 to Y10 0 1 1 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1 1
Y17 to Y14 Y1B to Y18 Y1F to Y1C Y23 to Y20
(2) The following program outputs the data at X20 through X23 to D100 through D103 when XA
0 1 0 1 1 0 1
0 1 1 1 0
Step Instruction Device · [Operation]

6.4.8 Identical 32-bit data block transfers (DFMOV(P))
DFMOV(P)
Ver.
Basic Process High performance Redundant
QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.
QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

: Data to be transferred or head number of the devices where the data to be transferred are stored (BIN 32 bits)
: Head number of the devices of transfer destination (BIN 32 bits)

(1) This instruction transfers 32-bit data of the device specified by to the n-point devices

(2) If specifies data of a device with digit specification, the amount of data to be transferred will be the amount of the data specified digit.
If K5Y0 is specified by , the lower 20 bits (five digits) of the word device specified by will be the object.

D +(2n 2) +(2n 1), D 0
Universal

(3) If specifies data of a device with digit specification, the amount of data stored in the
device specified by will be transferred.
If K5Y0 is specified by , the lower 20 bits of the word device specified by will be the object.
If both and specify data of a device with digit specification, the amount of data

specified by will be transferred regardless of the number of digits.
(4) If the value specified by n is 0, the instruction will be not processed.
(5) Whether to check a device range during the execution of the FMOV instruction can be
selected with the device range check inhibit flag (SM237). (Only when the conditions of the subset processing are established)
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an
error code is stored into SD0.

6.4 Data Transfer Instructions 6.4.8 Identical 32-bit data block transfers (DFMOV(P))
(1) The following program stores the value data stored at Y0 to Y13(20 bits) into D10 to
1 0 1 Y14 Y13 Y0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
1 1 0 1 b20 b19 b0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
0
0
1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
0
1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
0
1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

6.4.9 16-bit and 32-bit data exchanges (XCH(P),DXCH(P))
XCH(P),DXCH(P)
Basic Process High performance Redundant Universal

, : Head number of the devices where the data to be exchanged is stored (BIN 16/32 bits)
U \G Zn Constants Other Bit Word Bit Word

0 1 1 1 0 1 1 1 0
1 0 1
1 0 1 0 1 1 1 0 1 1 1 0
(1) Conducts 32-bit data exchange between +1, and +1, .

1 1 1 0 1 0
1 0
1 1 1 0 1

Operation Error
(1) There are no errors associated with the XCH (P) and DXCH (P) instruction.
(1) The following program exchanges the present value of T0 with the contents of D0 when X8
goes ON.
[Ladder Mode] [List Mode]
(2) The following program exchanges the contents of D0 with the data from M16 to M31 when
X10 goes ON.
[Ladder Mode] [List Mode]
(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]

6.4 Data Transfer Instructions 6.4.9 16-bit and 32-bit data exchanges (XCH(P),DXCH(P))
(4) The following program exchanges the contents of D0 and D1 with those of D9 and D10
Step Instruction Device · Step Instruction Device · Step Instruction Device

6.4.10 Block 16-bit data exchanges (BXCH(P))
BXCH(P)
Basic Process High performance Redundant Universal

, : Head number of the devices where the data to be exchanged is stored (BIN 16 bits) n : Number of exchanges (BIN 16 bits)

(1) Exchanges 16-bit data of n points from device designated by and 16-bit data of n points
from device designated by .
b7 b0 b15 b8
b7 b0 b15 b8
0 1 0
0 0 1 1 0 0 1 0 0 1 1 0 0
1 0
1 1 0 1 0 1 1
0 1
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 1 0 1
0 1
b7 b0 b15 b8 b7 b0 b15 b8
0 0 1 1 0 0 1 0 0 1 1 0 0
0 1 0
1 1 0 1 0 1 1
1 0
1 0
0 1
1
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
0 1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
Program Example
(1) The following program exchanges 16-bit data for 3 points from D200 for 16-bit data for 3
points from R0 when X1C goes ON.
[Ladder Mode] [List Mode]

0 1 1 1 0 1 0 1 1 0 R0
1 0
0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
1 1 0 1 1 0
0 1 1 1 0 1 0 1 1 0 1 b7 b0 b15 b8
6.4 Data Transfer Instructions 6.4.10 Block 16-bit data exchanges (BXCH(P))
1 0 0 1 0 0
0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
1 0
1 1 0 1 1 0
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
Step Instruction Device · [Operation]

6.4.11 Upper and lower byte exchanges (SWAP(P))
SWAP(P)
Basic Process High performance Redundant Universal

: Head number of the devices where the data is stored (BIN 16 bits)
U \G Zn Constants Other Bit Word Bit Word
(1) Exchanges the higher and lower 8 bits of the device designated by .
b11 b8 b15 b12
b7 b4 b0 b3
0 1 0 1 1 0 1 0 0 1 1 0
1 0 1 0
b11 b8 b15 b12
b7 b4 b0 b3 0
1
(1) There are no operation errors associated with the SWAP(P) instruction.
(1) The following program exchanges the higher 8 bits and lower 8 bits of R10 when X10 goes
ON.
[Ladder Mode] [List Mode]

0 1 0
b7 b4 b0 b3 1 1 0 0 1 1 0 0
Step Instruction Device · [Operation]

6.5 Program Branch Instructions
6.5.1 Pointer branch instructions (CJ,SCJ,JMP)
CJ,SCJ,JMP
Basic Process High performance Redundant Universal


6.5 Program Branch Instructions 6.5.1 Pointer branch instructions (CJ,SCJ,JMP)
(1) Executes the program specified by the pointer number within the same program file, when
(2) When the execution command is OFF, the program at the next step is executed.
(1) Executes the program specified by the pointer number within the same program file starting
with the scan immediately after OFF ON of the execution command.
(2) When the execution command is OFF or turned ON OFF, the program at the next step is executed.

JMP
(1) Unconditionally executes program of designated pointer number within the same program
file.
Note the following points when using the jump instruction. 1. 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, SCJ or JMP instructions. 2. Scan time is shortened if the CJ, SCJ or JMP instruction is used to force a jump to the OUT instruction. 3. Scan time is shortened if the CJ, SCJ or JMP instruction is used to force a jump to the rear. 4. The CJ, SCJ, and JMP instructions can be used to jump to a step prior to the step currently being executed. However, it is necessary to consider methods to get out of the loop so that the watchdog timer does not time out in the process.


XB Jumps to label P19 when XB turns ON. Y43 and Y49 remain unchanged regardless of whether XB and XC are turned ON/OFF during the execution of CJ instruction. 16


Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The following program jumps to P3 when X9 goes ON.
[Ladder Mode] [List Mode]

(2) The following program jumps to P3 from the next scan after XC goes ON.
[Ladder Mode] [List Mode]

6.5 Program Branch Instructions 6.5.1 Pointer branch instructions (CJ,SCJ,JMP)
(1) When using the Universal model QCPU with the SCJ instruction, inserting "AND SM400" (or
the NOP instruction) in immediately before the SCJ instruction is required. [Program example1] [Ladder Mode] [List Mode]

6.5.2 Jump to END (GOEND)
GOEND
Basic Process High performance Redundant Universal

U \G Zn Constants Other Bit Word Bit Word
(1) Jumps to the FEND or END instruction in the same program file.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
instruction, and prior to the execution of the RET instruction. (Error code: 4211)
and prior to the execution of the NEXT instruction. (Error code: 4200)
execution of the IRET instruction. (Error code: 4221)
(1) The following program jumps to the END instruction if D0 holds a negative number.
[Ladder Mode] [List Mode]
Step Instruction Device

6.6 Program Execution Control Instructions
6.6.1 Interrupt disable/enable instructions, interrupt program mask (DI,EI,IMASK)
DI,EI,IMASK
Basic Process High performance Redundant Universal
When the Basic model QCPU is used
S IMASK
IMASK
EI
EI
: Interrupt mask data or head number of the devices where the interrupt mask data is stored (BIN 16 bits)
U \G Zn Constants Other Bit Word Bit Word
6.6 Program Execution Control Instructions 6.6.1 Interrupt disable/enable instructions, interrupt program mask (DI,EI,IMASK)
(1) Disables the execution of an interrupt program until the EI instruction has been executed,
even if a start cause for the interrupt program occurs.
(2) A DI state is entered when power is turned ON or when the CPU module is reset.
The EI instruction is used to clear the interrupt disable state resulting from the execution of the DI instruction, and to create a state in which the interrupt program designated by the interrupt pointer number certified by the IMASK instruction can be executed. When the IMASK instruction is not executed, I32 to I47 are disabled.
Even if a cause of interrupt occurs during the execution of the sequence program between the DI and EI instructions, execution of the interrupt program is suspended until the processing of the sequence program is completed.
FEND

IMASK
(1) Enables/disables the execution of the interrupt program marked by the designated interrupt
pointer by using the bit pattern of 8 points from the device designated by .
(2) The interrupt pointer numbers corresponding to the individual bits are as shown below:
b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1
I13 I12 I11 I10 I9 I8 I7 I6 I5 I4 I3 I2 I1 I0
I31 I30 I29 I28 I27 I26 I25 I24 I23 I22 I21 I20 I19 I18 I17 I16
I47 I46 I45 I44 I43 I42 I41 I40 I39 I38 I37 I36 I35 I34 I33 I32
I63 I62 I61 I60 I59 I58 I57 I56 I55 I54 I53 I52 I51 I50 I49 I48 + 3 S
I79 I78 I77 I76 I75 I74 I73 I72 I71 I70 I69 I68 I67 I66 I65 I64 + 4 S
I95 I94 I93 I92 I91 I90 I89 I88 I87 I86 I85 I84 I83 I82 I81 I80 + 5 S
I111 I110 I109 I108 I107 I106 I105 I104 I103 I102 I101 I100 I99 I98 I97 I96 + 6 S
I127 I126 I125 I124 I123 I122 I121 I120 I119 I118 I117 I116 I115 I114 I113 I112 + 7 S
(3) When the power is turned ON or when the CPU module has been reset, the execution of
interrupt programs I0 to I31,I48 to I127 is enabled, and the execution of interrupt programs I32 to I47 is disabled.
(4) The statuses of devices , +1, +2, and +3 to +7 are stored in SD715 to SD717 and SD781 to SD785 (storage area for the IMASK instruction mask pattern).
(5) Although the special registers are separated as SD715 to SD717 and SD781 to SD785,
device numbers should be designated as to +7 successively.

2. For the information on interrupt conditions, link direct devices, refer to the QnUCPU User’s Manual(Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User’s Manuall(Function Explanation, Program Fundamentals) 3. The DI state (interrupt disabled) is active during the execution of an interrupt program. Do not insert the EI instructions in interrupt programs to attempt the execution of multiple interrupts, with interrupt programs running inside interrupt programs. 4. If there are the EI and DI instructions within a master control, these instructions will be executed regardless of the execution/non-execution status of the MC instruction.

Operation Error
(1) There are no operation errors associated with the DI, EI or IMASK instruction.
(1) The following program is designed to enable the execution of only the interrupt programs
having the interrupt pointer numbers I1 and I3 while X0 is ON.
[Ladder Mode] [List Mode]

6.6 Program Execution Control Instructions 6.6.1 Interrupt disable/enable instructions, interrupt program mask (DI,EI,IMASK)

When the High Performance model QCPU/Process CPU/Redundant CPU/Universal model
S IMASK
IMASK
EI
EI
: Head number of the devices where the interrupt mask data is stored (BIN 16 bits)
U \G Zn Constants Other Bit Word Bit Word
(1) Disables the execution of an interrupt program until the EI instruction has been executed,
even if a start cause for the interrupt program occurs.
(2) A DI state is entered when power is turned ON or when the CPU module is reset.
The EI instruction is used to clear the interrupt disable state resulting from the execution of the DI instruction, and to create a state in which the interrupt program designated by the interrupt pointer number enabled by the IMASK instruction and the fixed cycle execution type program can be executed. When the IMASK instruction is not executed, I32 to I47 are disabled.
Even if a cause of interrupt occurs during the execution of the sequence program between the DI and EI instructions, execution of the interrupt program is suspended until the processing of the sequence program is completed.
FEDN

IMASK
(1) Enables/disables the execution of the interrupt program marked by the designated interrupt
pointer by using the bit pattern of 16 points from the device designated by .
(2) The interrupt pointer numbers corresponding to the individual bits are as shown below:
b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1
I13 I12 I11 I10 I9 I8 I7 I6 I5 I4 I3 I2 I1 I0
I31 I30 I29 I28 I27 I26 I25 I24 I23 I22 I21 I20 I19 I18 I17 I16
I47 I46 I45 I44 I43 I42 I41 I40 I39 I38 I37 I36 I35 I34 I33 I32
I63 I62 I61 I60 I59 I58 I57 I56 I55 I54 I53 I52 I51 I50 I49 I48 + 3 S
I79 I78 I77 I76 I75 I74 I73 I72 I71 I70 I69 I68 I67 I66 I65 I64 + 4 S
I95 I94 I93 I92 I91 I90 I89 I88 I87 I86 I85 I84 I83 I82 I81 I80 + 5 S
I111 I110 I109 I108 I107 I106 I105 I104 I103 I102 I101 I100 I99 I98 I97 I96 + 6 S
I127 I126 I125 I124 I123 I122 I121 I120 I119 I118 I117 I116 I115 I114 I113 I112 + 7 S
I143 I142 I141 I140 I139 I138 I137 I136 I135 I134 I133 I132 I131 I130 I129 I128 + 8 S
I159 I158 I157 I156 I155 I154 I153 I152 I151 I150 I149 I148 I147 I146 I145 I144 + 9 S
I175 I174 I173 I172 I171 I170 I169 I168 I167 I166 I165 I164 I163 I162 I161 I160 +10 S
I191 I190 I189 I188 I187 I186 I185 I184 I183 I182 I181 I180 I179 I178 I177 I176 +11 S
I207 I206 I205 I204 I203 I202 I201 I200 I199 I198 I197 I196 I195 I194 I193 I192 +12 S
I223 I222 I221 I220 I219 I218 I217 I216 I215 I214 I213 I212 I211 I210 I209 I208 +13 S
I239 I238 I237 I236 I235 I234 I233 I232 I231 I230 I229 I228 I227 I226 I225 I224 +14 S
I255 I254 I253 I252 I251 I250 I249 I248 I247 I246 I245 I244 I243 I242 I241 I240 +15 S
(3) When the power is turned ON or when the CPU module has been reset, the execution of
interrupt programs I0 to I31,I48 to I255 is enabled, and the execution of interrupt programs I32 to I47 is disabled.
6.6 Program Execution Control Instructions 6.6.1 Interrupt disable/enable instructions, interrupt program mask (DI,EI,IMASK)
(4) The status of devices , +1, +2, and +3 to +15 are stored in SD715 to SD717 and SD781 to SD793 (storage area for the IMASK instruction mask pattern).
(5) Although the special registers are separated as SD715 to SD717 and SD781 to SD793,
device numbers should be designated as to +15 successively.
50 Y10
Y30 X5 Stored at step 50
QnUCPU User’s Manual(Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User’s Manuall(Function Explanation, Program Fundamentals) 2. The DI state (interrupt disabled) is active during the execution of an interrupt program. Do not insert the EI instructions in interrupt programs to attempt the execution of multiple interrupts, with interrupt programs running inside interrupt programs. 3. If there are the EI and DI instructions within a master control, these instructions will be executed regardless of the execution/non-execution status of the MC instruction.

Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
(1) The following program creates an execution enabled state for the interrupt program marked
by the interrupt pointer number when X0 is ON.
[Ladder Mode] [List Mode]


6.6.2 Recovery from interrupt programs (IRET)
IRET
Basic Process High performance Redundant Universal
R, ZR J \
U \G Zn Constants Other Bit Word Bit Word
(1) Indicates the completion of interrupt program processing.
(2) Returns to sequence program processing following the execution of the IRET instruction.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
6.6 Program Execution Control Instructions 6.6.2 Recovery from interrupt programs (IRET)
an interrupt and prior to the execution of the IRET instruction. (Error code: 4221)
(For the Universal model QCPU only) (Error code: 4223)
Setting · Internal Devices · Data

Program Example
(1) The following program adds 1 to D0 if M0 is ON when the number 3 interrupt is generated.
[Ladder Mode] [List Mode]


6.7 I/O Refresh Instructions
6.7.1 I/O refresh (RFS(P))
RFS(P)
Basic Process High performance Redundant Universal

: Head number of the devices to be refreshed (bits)
U \G Zn Constants
K, H Other Bit Word Bit Word
6.7 I/O Refresh Instructions 6.7.1 I/O refresh (RFS(P))
(1) 1. Refreshes only the device being scanned during a scan, and functions to fetch input from
external sources or to output data to an output module.
(2) Fetching of input from or sending output to an external source is conducted in batch only
after the execution of the END instruction, so it is not possible to output a pulse signal to an outside source during the execution of a scan. When the I/O refresh instruction is executed, the inputs (X) or outputs (Y) of the corresponding device numbers are refreshed forcibly midway through program execution. Therefore, a pulse signal can be output to an external source during a scan.
(3) Use direct access inputs (DX) or direct access outputs (DY) to refresh inputs (X) or outputs
(Y) in 1-point units.
[Program based on the RFS instruction]
K1 X0
Y20 X0
K1 Y20 RFS
[Program based on direct access input and direct access output]

Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
(1) The following program refreshes X100 to X11F and Y200 to Y23F when M0 goes ON.
[Ladder Mode] [List Mode]


6.8 Other Convenient Instructions
6.8.1 Counter 1-phase input up or down (UDCNT1)
UDCNT1
Process High performance Universal Basic Redundant

: + 0: Input number for count input (bits)
: Number of the counter to be enabled to start counting with the UDCNT1 instruction (Device name)

*1: Only the X device can be used for . However, the X device can be used only in the range of number of I/O points
(the number of accessible points to actual I/O modules). *2: Local devices and the file registers set for individual programs cannot be used.
6.8 Other Convenient Instructions 6.8.1 Counter 1-phase input up or down (UDCNT1)
(1) When the input designated at goes from OFF to ON, the present value of the counter designated at will be updated.
(2) The direction of the count is determined by the ON/OFF status of the input designated by
+1.
(3) Count processing is conducted as described below:


32768 32767 2 1 0 1 2 32767 32766
(4) The UDCNT1 instruction triggers counting when the execution command is turned
OFF ON and suspends counting when the execution command is turned ON OFF. When the execution command is turned OFF ON again, the counting resumes from the suspended value.
(5) The RST instruction clears the present value of the counter designated at and turns the contact OFF.
execution command OFF, or turning the STOP/RUN switch STOP RUN.) For this reason, the pulses that can be counted must have longer ON and OFF times than the interrupt interval of the CPU module. The interrupt interval of individual modules is shown below:
CPU Module Type Name Interrupt Interval
High Performance model QCPU, Process CPU,
Universal model QCPU 1 ms
2. The set value cannot be changed during counting directed by the UDCNT1 instruction (while the execution command is ON). To change the set value, turn OFF the execution command. 3. Counters which have been designated by the UDCNT1 instruction cannot be used by other instructions. If they are used by other instructions, they will not be capable of returning an accurate count. 4. The UDCNT1 instruction can be used as many as 6 times within all the programs being executed. The seventh and the subsequent UDCNT1 instructions are not processed.
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.

Program Example
(1) This program uses C0 (Up/Down counter) to count the number of times X0 goes from OFF
to ON after X20 has gone ON.
[Ladder Mode] [List Mode]

0 1 2 3 4 5 6 7 6 5 4 3 2 1 0 1 2 3 2 1 0 1 1 -

6.8 Other Convenient Instructions 6.8.1 Counter 1-phase input up or down (UDCNT1)
Step Instruction Device · [Operation]

6.8.2 Counter 2-phase input up or down (UDCNT2)
UDCNT2
Process High performance Universal Basic Redundant

: + 0: Input number for count input (A phase pulse) (bits)
: Number of the counter to be enabled to start counting with the UDCNT2 instruction (Device name)

*1: Only the X device can be used for . However, the X device can be used only in the range of number of I/O points
(the number of accessible points to actual I/O modules). *2: Local devices and the file registers set for individual programs cannot be used.
(1) The present value of the counter designated by is updated depending on the status of the input designated by (A phase pulse) and the status of the input designated by +1 (B phase pulse).
(2) Direction of the count is determined in the following manner:
(3) Count processing is conducted as described below:

32768 32767 2 1 0 1 2 32767 32766
(4) Count processing conducted according to the UDCNT2 instruction begins when the count
command goes from OFF to ON, and is suspended when it goes from ON to OFF. When the execution command is turned OFF to ON again, the counting resumes from the suspended value.
(5) The RST instruction clears the present value of the counter designated at and turns the contact OFF.
execution command OFF, or turning the STOP/RUN switch STOP RUN.) For this reason, the pulses that can be counted must have longer ON and OFF times than the interrupt interval of the CPU module. The interrupt interval of individual modules is shown below:
CPU Module Type Name Interrupt Interval
High Performance model QCPU, Process CPU,
Universal model QCPU 1 ms
2. The set value cannot be changed during counting directed by the UDCNT2 instruction (while the execution command is ON). To change the set value, turn OFF the execution command. 3. Counters designated by the UDCNT2 instruction cannot be used by any other instruction. If they are used by other instructions, they will not be capable of returning an accurate count. 4. The UDCNT2 instruction can be used as many as 5 times within all the programs being executed. The sixth and the subsequent UDCNT2 instructions are not processed.
6.8 Other Convenient Instructions 6.8.2 Counter 2-phase input up or down (UDCNT2)
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
When counting up · When counting down

Program Example
(1) The following program performs a count operation as instructed by C0 (count up or down) on
the status of X0 and X1 after X20 has gone ON. [Ladder Mode] [List Mode]

1 0 2 3 4 5 4 3 2 1 0 1 2 1 1
Step Instruction Device · [Operation]

6.8.3 Teaching timer (TTMR)
TTMR
Process High performance Universal Basic Redundant

: + 0: The device where measurement value is stored (BIN 16 bit)

(1) Measures the time while the execution command is ON in units of seconds, and stores the
multiplied value of the measured time by the multiplier specified by n at the device designated by .
(2) Clears the device designated by +0 or +1 when the execution command is turned OFF ON.
6.8 Other Convenient Instructions 6.8.3 Teaching timer (TTMR)
(3) The multipliers that can be designated by n are as shown below:
1. Time measurements are conducted when the TTMR instruction is executed. Using the JMP or similar instruction to jump the TTMR instruction will make it impossible to get an accurate measurement. 2. Do not change the multiplier designated by n while the TTMR instruction is being executed. Changing this multiplier will result in an inaccurate value being returned. 3. The TTMR instruction can also be used in low speed execution type programs. 4. The device designated by +1 is used by the system of the CPU module, so users should not change its value. If users do change this value, the value stored in the device designated by will no longer be accurate.
(4) No processing is performed when the value specified by "n" is other than 0 to 2.
n Multiplier

Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
(1) The following program stores the amount of time that X0 is ON at D0.
[Ladder Mode] [List Mode]
Step Instruction Device

6.8.4 Special function timer (STMR)
STMR
Process High performance Universal Basic Redundant

n : Value to set (BIN 16 bits).
: + 0: Off delay timer output (bits)
U \G Zn Constants
K, H Other Bit Word Bit Word
–– *1 –– –– ––
––
*1:Can be used only by timer (T) data
6.8 Other Convenient Instructions 6.8.4 Special function timer (STMR)
(1) The STMR instruction uses the 4 points from the device designated by to perform four types of timer output.
(2) The timer coil designated by turns ON at the leading edge and trailing edge of the command for the STMR instruction, and starts measurement of the present value. • The timer coil measures to the point where the value reaches the set value designated by
n, then enters a time up state and goes OFF. • If the command for the STMR instruction goes OFF before the timer coil reaches the time
up state, it will remain ON. Timer measurement is continued at this time. When the STRM instruction command goes ON once again, the present value will be cleared to 0 and measurement will begin once again.

(3) The timer contact goes ON at the leading edge of the command for the STMR instruction,
and after the trailing edge is reached, the timer coil goes OFF at the trailing edge of the STMR instruction command. The timer contact is used by the CPU module system, and cannot be used by the user.

(4) Measurement of the present value of the timer specified by the STMR instruction is
executed regardless of the command ON/OFF status of the STMR instruction. If the STMR instruction is jumped with the JMP or similar instruction, it will not be possible to get accurate measurement.
(5) Measurement unit for the timer designated by is identical to the low speed timer.
(6) A value between 0 to 32767 can be set for n.
No operation if n is other than 0 to 32767.
(7) The timer designated by cannot be used by the OUT instruction. If the STMR instruction and the OUT instruction use the same timer number, accurate operation will not be conducted.
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.

Program Example
(1) The following program turns Y0 and Y1 ON and OFF once each second (flicker) when X20
is ON.
(Uses 100 ms timer)
[Ladder Mode] [List Mode]



6.8 Other Convenient Instructions 6.8.4 Special function timer (STMR)
[Timing Chart]

6.8.5 Rotary table shortest direction control (ROTC)
ROTC
Process High performance Universal Basic Redundant

: + 0 : Measures the number of table rotations (for system use) (BIN 16 bits)

: + 0 : A phase input signal (bits)
(1) This control functions to enable shortest direction control of the rotary table to the position of
the station number designated by +1 in order to remove or deposit an item whose number
has been designated by +2 on a rotary table with equal divisions of the value designated by n1.
(2) The item number and station number are controlled as items allocated by counterclockwise
rotation.
(3) The system uses +0 as a counter to instruct it as to what item is at which number counting from station number 0. Do not rewrite the sequence program data.
Accurate controls will not be possible in cases where users have rewritten the data.
(4) The value of n2 should be less than the number of table divisions specified by n1.
(5) +0 and +1 are A and B phase input signals that are used to detect whether the direction of the rotary table rotation is forward or reverse.
The direction of rotation is judged by whether the B phase pulse is at its leading or trailing edge when the A phase pulse is ON:

(6) +2 is the 0 point detection output signal that goes ON when item number 0 has arrived at the No. 0 station. When the device designated by +2 goes ON while the ROTC instruction is being
executed, +0 is cleared. It is best to perform this clear operation first, then to begin shortest direction control with the ROTC instruction.
(7) The data from +3 to +7 consists of output signals needed to control the table's operation. The output signal of one of the devices from +3 to +7 will go ON in response to the execution results of the ROTC instruction.
D D
(8) If the command for the ROTC instruction is OFF, clears all +3 to +7 without performing shortest direction control.
(9) The ROTC instruction can be used only one time in all programs where it is executed.
Attempts to use it more than one time will result in inaccurate operations.
(10) No processing is performed when the value of +0 to +2, or the value of n2 is greater than n1.
Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
6.8 Other Convenient Instructions 6.8.5 Rotary table shortest direction control (ROTC)

Program Example
(1) The following program deposits the item at section D2 on a 10-division rotary table at the
station at section D1, and the two sections ahead and behind this determine the rotation direction and control speed of the motor when the table is being rotated at low speed.
[Ladder Mode] [List Mode]



6.8.6 Ramp signal (RAMP)
RAMP
Process High performance Universal Basic Redundant

: + 0 : Present value (BIN 16 bits)
: + 0 : Completion device (bits)
U \G Zn Constants
K, H Other Bit Word Bit Word
6.8 Other Convenient Instructions 6.8.6 Ramp signal (RAMP)
(1) When the execution command is ON, the following processing is executed.
specified by n3.
No operation if other than 0
(Value specified by n2) (Value specified by n1)
Value of one variation (one scan)
(Value specified by n3)
0 is varied to 350 in seven scans as shown below.
Value stored in + 0 (Present value)
300 250 200 150 100 50
Value specified by n2 (350)
Value specified by n1 (0)
Value stored in + 1 (Number of execution times)
Number of shifts (7) specified by n3
When the calculated one variation is indivisible, compensation is made to achieve the value specified in n2 by the number of shifts specified in n3. Hence, a linear ramp may not be made.

(2) If the scan is performed for the number of moves specified by n3, the complete device
specified by +0 is turned ON. The ON/OFF status of the completion device and the contents of +0 are determined by
the ON/OFF status of the device designated by +1.
new move operation from the value currently at +0.
(3) When the command is turned OFF during the execution of this instruction, the contents of
+0 will not change following this. When the command goes ON again, the RAMP instruction will begin a new move from the present value at +0.
(4) Do not change the specified values in n1 and n2 before the completion device specified in
+0 turns ON. Since the same expression is used every scan to calculate the value stored in +1, changing n1/n2 may cause a sudden variation.
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
Caution
(1) When the digit specification of bit device is made to , the digit specification of bit device can only be used when the following condition is met.

Program Example
(1) The following program changes the contents of D0 from 10 to 100 in a total of 6 scans, and
saves the contents of D0 when the move has been completed.
[Ladder Mode] [List Mode]



6.8 Other Convenient Instructions 6.8.6 Ramp signal (RAMP)
[Timing Chart]

6.8.7 Pulse density measurement (SPD)
SPD
Process High performance Universal Basic Redundant


: Head number of the devices where the measurement result will be stored (BIN 16 bits)
*1: Local devices and the file registers set for individual programs cannot be used.
(1) The number of turning OFF ON input of the device specified by is counted for just the
amount of time specified by n, and the count results are stored in the device specified by .

(2) When measurement directed by the SPD instruction has been completed, measurement is
done again from 0.
Turn OFF the execution command to stop the measurement directed by the SPD instruction.

execution command OFF, or turning the STOP/RUN switch STOP RUN.) For this reason, the pulses that can be counted must have longer ON and OFF times than the interrupt interval of the CPU module. The interrupt interval of individual modules is shown below:
CPU Module Type Name Interrupt Interval
High Performance model QCPU, Process CPU,
Universal model QCPU 1 ms
2. • When the High Performance model QCPU or Process CPU is used: The instruction is not processed when n = 0. 3. The SPD instruction can be used as many as 6 times within all the programs being executed. The seventh and the subsequent SPD instructions are not processed. 4. While the measurement is in execution (while the command input is ON) by the SPD instruction, the setting value cannot be changed. Turn OFF the command input before changing the setting value.
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.

6.8 Other Convenient Instructions 6.8.7 Pulse density measurement (SPD)
(1) The following program measures the pulses input to X0 for a period of 500 ms when X10

6.8.8 Fixed cycle pulse output (PLSY)
PLSY
Process High performance Universal Basic Redundant
n2 : Outputs count or the number of the device where the outputs count is stored (BIN 16 bits)
: Number of the device to which pulses are output (bits)
U \G Zn Constants
K, H Other Bit Word Bit Word
*1: Only output (Y) can be used.
(1) Outputs a pulse at a frequency designated by n1 the number of times designated by n2, to
the output module with the output signal (Y) designated by .
(2) Frequencies between 1 to 100 Hz can be designated by n1.
If n1 is other than 1 to 100 Hz, the PLSY instruction will not be executed.
(3) The number of outputs that can be designated by n2 is between 1 to 65535 (0000H to
FFFFH).
If n2 is set to "0", pulses are continuously output.
(4) Only an output number corresponding to the output module can be designated for pulse
output at .
(5) Pulse output commences with the command leading edge of the PLSY instruction.
Pulse output is suspended when the PLSY instruction command goes OFF.

execution command OFF, or turning the STOP/RUN switch STOP RUN.) For this reason, the pulses that can be output must have longer ON and OFF times than the interrupt interval of the CPU module. The interrupt interval of individual modules is shown below:
CPU Module Type Name Interrupt Interval
High Performance model QCPU, Process CPU,
Universal model QCPU 1 ms
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.

6.8 Other Convenient Instructions 6.8.8 Fixed cycle pulse output (PLSY)
(1) The following program outputs a 10 Hz pulse 5 times to Y20 when X0 is ON.

6.8.9 Pulse width modulation (PWM)
PWM
Process High performance Universal Basic Redundant

n1 : ON time or the number of the device where the ON time is stored (BIN 16 bits)
n2 : Frequency or the number of the device where the frequency is stored (BIN 16 bits)

: Number of the device to which pulses are output (bits)
*1: Only output (Y) can be used.
(1) Outputs the pulse of the cycle set by n2, for the amount of time ON designated by n1, to the

(2) The setting ranges for n1 and n2 are shown below:
CPU Module Type Name Setting Range for n1 and n2 [ms] *2
High Performance model QCPU, Process CPU,
1 to 65535 (0001H to FFFFH)
*2: The value specified by n1 should be less than the value specified by n2.
Universal model QCPU

execution command OFF, or turning the STOP/RUN switch STOP RUN.) The interrupt interval of individual modules is shown below:
CPU Module Type Name Interrupt Interval of n1, n2
High Performance model QCPU, Process CPU,
Universal model QCPU 1 ms
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.

6.8 Other Convenient Instructions 6.8.9 Pulse width modulation (PWM)
(1) The following program outputs a 100 ms pulse once each second to Y20 when X0 is ON.

6.8.10 Matrix input (MTR)
MTR
Process High performance Universal Basic Redundant

: Head number of the devices where matrix input data will be stored (bits)

(1) It reads the input from 16 points n-rows starting from the input number designated by , then stores fetched input data from the device designated by onward.
(2) One row (16 points) can be fetched in 1 scan.
(3) Fetching from the first to the n th row is repeated.
(4) The first through the 16th points store the first row of data and the next 16 points store the
second row of data at the devices following the device designated by . For this reason, the space of 16 n points from the device designated by are occupied by the MTR instruction.
(5) is the output needed to select the row which will be fetched, and the system automatically turns it ON and OFF. It uses the n points from the device designated by .
(6) Only device numbers divisible by 16 can be designated for , and .
(7) For n, a value in the range from 2 to 8 can be assigned.
(8) No processing is performed in the following cases.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.

(1) The following program fetches, when X0 is turned ON, the 16 points 3 matrix starting from X10, and stores the matrix into the area starting from M0.
[Ladder Mode] [List Mode]

6.8 Other Convenient Instructions 6.8.10 Matrix input (MTR)
(1) Note that the MTR instruction directly operates on actual input and output.
The output that had been turned ON by the MTR instruction does not turn OFF when the MTR command turns OFF.
Turn OFF the specified output in the sequence program.
(2) The MTR instruction execution interval must be longer than the total of response time of
If the set interval is shorter than the value indicated above, an input cannot be read correctly. If the scan time in a sequence program is short, select the constant scan and set the scan time longer than the total of response time.
Step Instruction Device · [Operation]


Category Processing Details Reference
Logical operations such as logical sum, logical product,
etc. Section 7.1
Rotation instruction Rotation of designated data Section 7.2
Shift instruction Shift of designated data Section 7.3
Bit processing instructions Sets and resets bit data; bit extraction Section 7.4
Data processing including data searching, sorting,
decoding and encoding Section 7.5
Repeated operation, subroutine program calls, index
modification in ladder units Section 7.6
Data table read/write Section 7.7
Read/write from/to the buffer memory of intelligent function
modules Section 7.8
Character code outputs to external devices and displays
on indicators Section 7.9
Check, status latch, sampling trace, program trace Section 7.10
Character string (ASCII code data) processing Section 7.11
BCD real number and floating point real number
processing Section 7.12
Data control instructions Output value controls based on input data range checks Section 7.13
Sets file registers; switches block numbers Section 7.14
Reading, writing, addition, subtraction, and conversion of
clock values; comparison between the clock values; and
Section 7.15
comparison between the date values
Reading, addition, and subtraction of clock values up to
millisecond Section 7.16
Program control instructions Instructions to switch program execution conditions Section 7.17
Instructions that do not fit in the above categories, such as
watchdog timer reset instructions and timing clock
Section 7.18

(1) The logical operation instructions perform logical sum, logical product or other logical
operations in 1-bit units.
Category Processing Details Formula for
Becomes 1 only when both input A and
input B are 1; otherwise, is 0 Y A · B
Becomes 0 only when both input A and
input B are 0; otherwise, is 1 Y A + B
Becomes 0 if input A and input B are
equal; otherwise, is 1 Y A · B + A · B
Becomes 1 if input A and input B are
equal; otherwise, is 0 Y (A + B)(A + B)

7.1.1 Logical products with 16-bit and 32-bit data (WAND(P),DAND(P))
WAND(P),DAND(P)
Basic Process High performance Redundant Universal
When two data are set ( , ( +1, ) ( +1, ) ( +1, ))
D S D D D S S D D
indicates an instruction symbol of WAND/DAND.
WANDP,DANDP
P
S D
: Data for a logical product operation or the head number of the devices where the data is stored (BIN 16/32 bits)
: Head number of the devices where the logical product operation result will be stored (BIN 16/32 bits)
K, H Other Bit Word Bit Word
U \G Zn Constants
7.1 Logical operation instructions 7.1.1 Logical products with 16-bit and 32-bit data (WAND(P),DAND(P))
(1) A logical product operation is conducted for each bit of the 16-bit data of the device
designated at and the 16-bit data of the device designated at , and the results are stored in the device designated at .
b0 b7 b15 b8 AND 1 0 1 b0 b7 b15 b8 D
0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0
0 0 0 1 0 0 1 0 1 0 0 b15 b8 b0 b7
(2) When bit devices are designated, the bit devices after the points designated as digits are
regarded as "0" in the operation. (See Program Example (2))

DAND
(1) Conducts a logical product operation on each bit of the 32-bit data for the device designated
by and the 32-bit data for the device designated by , and stores the results at the device designated by .

1 0 0 1 1 0 0 1 1 b0 b15 b31 b16
0 1 0 1 1 0 0 1 0 1 0 0 0 1 b0 b15 b31 b16
0 1 0 1 1 0 1 0 0 0 1 b31 b16 b0 b15
(2) When bit devices are designated, the bit devices below the points designated as digits are
regarded as "0" in the operation. (See Program Example (2))
(1) There are no operation errors associated with the WAND(P) or DAND(P) instruction.
(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 turned ON.
[Ladder Mode] [List Mode]


0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 b0 b7 b15 b8 D10 BCD1234
1 0 1
0 0 0 1 0 0 1 0 1 0 0 b15 b8 b0 b7
[Operation]

(2) 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]

1 b31 D100, D99

0 1 1 0 1 0 1
0 1 1 0 1 0 1 b31

7.1 Logical operation instructions 7.1.1 Logical products with 16-bit and 32-bit data (WAND(P),DAND(P))
[Operation]

When three data are set ( , ( +1, ) ( +1, ) ( +1, ))
S1 S2 D S1 S1 S2 S2 D D

, : Data for a logical product operation or the head number of the devices where the data is stored (BIN 16/32 bits)
: Head number of the devices where the logical product operation result will be stored (BIN 16/32 bits)
(1) A logical product operation is conducted for each bit of the 16-bit data of the device
designated at and the 16-bit data of the device designated at , and the results are

1 0 1 b0 b7 b15 b8 S1
0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0
0 0 0 1 0 0 1 0 1 0 0 b15 b8 b0 b7
(2) For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation. (See Program Examples (1) and (2))
(1) Conducts a logical product operation on each bit of the 32-bit data for the device designated
by and the 32-bit data for the device designated by , and stores the results at the
device designated by .

1 0 0 1 1 0 0 1 1 b0 b15 b31 b16
0 1 0 1 1 0 0 1 0 1 0 0 0 1 b0 b15 b31 b16
0 1 0 1 1 0 1 0 0 0 1 b31 b16 b0 b15
(2) For bit devices, the bit devices after the points designated by digit specification are regarded

as "0" in the operation. (See Program Example (3))
(1) There are no operation errors associated with the WAND(P) or DAND(P) instruction.
(1) 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 stores the results at D40. [Ladder Mode] [List Mode]


0 1 0 0 1 0 0 1 0 0 X10 X17 X1B to X10
0 1 0 1 1 1 0 1 0
0 1 0 0 1 0 0 1 1 0 b15 b8 b0 b7
(2) The following program performs a logical product operation on the data at D10 and at D20
when X1C is ON, and stores the results from M0 to M11. [Ladder Mode] [List Mode]

7.1 Logical operation instructions 7.1.1 Logical products with 16-bit and 32-bit data (WAND(P),DAND(P))
0 1 0 1 0 1 0 1 0 1 0 1 0 b0 b7 b15 D10
0 0 0 1
1 0 1 0 1 0 1 0 1 0 1 0 M15 M8 M0 M7
[Operation]

(3) The following program masks the digit in the hundred-thousands place of the 8-digit BCD
value at D10 and D11 (sixth digit from the end) to 0 when XA is ON, and outputs the results to from Y10 to Y2B.
[Ladder Mode] [List Mode]

0 D10, D11 (BCD12345678) 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 0 0 0 b31 b16 b0 b15

1 H FF0FFFFF 1 0 1 b31 b16 b0 b15
1 Y2B to Y10 1 1 0 0 0 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 0 0 0 Y20 Y10 Y1F
Y2B Y28 Y27 Y24 Y23 Y1CY1B Y18 Y17 Y14 Y13
[Operation]

7.1.2 Block logical products (BKAND(P))
BKAND(P)
Basic Process High performance Redundant Universal

*1 : Head number of the devices where data on which a logical operation will be conducted is stored
*1 : Data for a logical operation or head number of the devices where the data for the logical operation is
stored (BIN 16 bits)
*1 : Head number of the devices where the operation result will be stored (BIN 16 bits) n : Number of operation data blocks (BIN 16 bits)
K, H Other Bit Word Bit Word
U \G Zn Constants
*1 ––
*1 –– –– ––
*1 ––
*1: The same device number can be specified for and or and .
7.1 Logical operation instructions 7.1.2 Block logical products (BKAND(P))
(1) Performs a logical product operation on the data located in the n points from the device
designated by , and the data located in the n points from the device designated by , and
stores the results into the area starting from the device designated by .
b15 b8 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 b7 b0
b15 b8 0 0 1 0 1 0 0 b7 b0
1 0 1
1 0
0 1
0 1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
1
1 0 1 0
1 0 +(n 1)
b15 b8 0 0 1 1 0 1 1 0 b7 b0
1 0
0 1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
1 0

(2) The constant designated by can be between -32768 and 32767 (BIN 16-bit data).

b15 b8 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 b7 b0
1 0 1
0 1
b15 b8b7 b0 1 0 1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
1 0 1 0 + (n 1)
b15 b8 0 0 1 1 0 0 1 1 0 1 1 b7 b0
1 0 1
0 1
0 1 0 1 0 1 0 1 0 1 0 1
1 0
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
device range for n points starting from the device designated by .
(except when the same device is specified for and ) (Error code: 4101)
device range for n points starting from the device designated by .
(except when the same device is specified for and ) (Error code: 4101)
Program Example
(1) The following program performs a logical product operation on the data stored at D100 to
D102 and the data stored at R0 to R2 when X20 is turned ON, and stores the operation result into the area starting from D200.
[Ladder Mode] [List Mode]


b15 b8 1 0 1 b7 b0
b15 b8 1 0 b7 b0
1 0
0 1 0
0 1
0 1
b15 b8 1 0 b7 b0
0 1 0
0 1
[Operation]

7.1.3 Logical sums of 16-bit and 32-bit data (WOR(P),DOR(P))
WOR(P),DOR(P)
Basic Process High performance Redundant Universal
When two data are set ( , ( +1, ) ( +1, ) ( +1, ))
D S D D D S S D D
indicates an instruction symbol of WOR/DOR.
WORP, DORP
P
S D
: Data for a logical sum operation or head number of the devices where the data is stored (BIN 16/32 bits)
: Head number of the devices where the logical sum operation result will be stored (BIN 16/32 bits)
U \G Zn Constants
K, H Other Bit Word Bit Word
7.1 Logical operation instructions 7.1.3 Logical sums of 16-bit and 32-bit data (WOR(P),DOR(P))
(1) Conducts a logical sum operation on each bit of the 16-bit data of the device designated by
and the 16-bit data of the device designated by , and stores the results at the device
designated by .
1 0 1 1 b0 b7 b15 b8 0 D
b0 b7 b15 b8
1 0 0 1 1 1 0 0 1 1 0 0 1 1 0 0
1 1 0 1 0 0 1 b15 b8 b0 b7
(2) For bit devices, the bit devices after the points designated by digit specification are regarded
as "0" in the operation.

DOR
(1) Conducts a logical sum operation on each bit of the 32-bit data of the device designated by
and the 32-bit data of the device designated by , and stores the results at the device
designated by .

1 0 1 1 b0 b15 b31 b16
1 0 0 1 0 0 0 1 1 1 0 0 1 1 b0 b15 b31 b16
1 0 0 0 1 1 1 0 0 1 1 b31 b16 b0 b15
(2) For bit devices, the bit devices after the points designated by digit specification are regarded
as "0" in the operation.
(1) There are no operation errors associated with the WOR(P) or DOR(P) instructions.
(1) The following program performs a logical sum operation on the data at D10 and D20 when
XA is turned ON, and stores the results at D10.
[Ladder Mode] [List Mode]

OR 1 1 0 0 1 1 0 0 1 0
0 1 0 1 1 1 0 0 1 0 0 0 1
1 1 0 0 1 0 0 0 1
Step Instruction Device · [Operation]

(2) 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 is turned ON, and stores the results at D66 and D67.
[Ladder Mode] [List Mode]


1 0 1 0 1 0 1 0 X0 XF X1F X10
1 0 0 0 1 1 1 0 b0 b15 b31 b16
1 0 0 0 1 0 1 0 b31 b16 b0 b15

7.1 Logical operation instructions 7.1.3 Logical sums of 16-bit and 32-bit data (WOR(P),DOR(P))
[Operation]

When three data are set ( , ( +1, ) ( +1, ) ( +1, ))
S1 S2 D S1 S1 S2 S2 D D

, : Data for a logical sum operation or head number of the devices where the data is stored (BIN 16/32 bits)
: Head number of the devices where the logical sum operation result will be stored (BIN 16/32 bits)
(1) Conducts a logical sum operation on each bit of the 16-bit data of the device designated by
and the 16-bit data of the device designated by , and stores the results at the device

1 1 0 1 0 b0 b7 b15 b8 S1
0 1 1 0 0 1 1 0 1 1
1 1 0 0 1 1 0 0 1 0 0 1 1
(2) For bit devices, the bit devices after the points designated by digit specification are regarded
as "0" in the operation. (See Program Example (1))

DOR
(1) Conducts a logical sum operation on each bit of the 32-bit data of the device designated by
and the 32-bit data of the device designated by , and stores the results at the device

0 0 1 1 0 0 1 1 0 0 1 1 0 0 b0 b15 b31 b16
0 0 1 0 1 1 0 1 b0 b15 b31 b16
0 0 1 0 0 1 b31 b16 b0 b15
(2) When bit devices are designated, the bit devices below the points designated as digits are
regarded as "0" in the operation. (See Program Example (2))
(1) There are no operation errors associated with the WOR(P) or DOR(P) instructions.
(1) The following program performs a logical sum operation on the data from X10 to X1B, and
the data at D33, and stores the result at Y30 to Y3B when XA is ON.

7.1 Logical operation instructions 7.1.3 Logical sums of 16-bit and 32-bit data (WOR(P),DOR(P))
0 1 1 0 1 1 0 X10 X17 X1B to X10
1 0 0 1 1 0 0 1 0 0 1 1
1 0 0 1 1 1 0 1 1 0 1 1 0 0 1 1 Y38 Y30 Y37

(2) The following program performs a logical sum operation on the 32-bit data at D0 and D1,
and the 24-bit data from X20 to X37, and stores the results at D23 and D24 when M8 is ON.
[Ladder Mode] [List Mode]

1 0 0 0 1 1 0 0 1 1 1 b0 b23 b31 b24
0 1 0 0 1 0 0 1 X20 X37
1 0 0 0 1 1 0 1 b31 b16 b0 b15
Step Instruction Device · [Operation]

7.1.4 Block logical sum operations (BKOR(P))
BKOR(P)
Basic Process High performance Redundant Universal

*1 : Head number of the devices where data on which a logical operation will be conducted is stored (BIN 16 bits)
*1 : Data for a logical operation or head number of the devices where the data for the logical operation is stored (BIN 16 bits)
*1 : Head number of the devices where the operation result will be stored (BIN 16 bits) n : Number of operation data blocks (BIN 16 bits)
U \G Zn Constants
K, H Other Bit Word Bit Word
*1 ––
*1 –– –– ––
*1 ––
*1: The same device number can be specified for and or and .
7.1 Logical operation instructions 7.1.4 Block logical sum operations (BKOR(P))
(1) Performs a logical sum operation on the data located in the n points from the device
designated by , and the data located in the n points from the device designated by , and
stores the results into the area starting from the device designated by .
b15 b8 0 1 0 1 b7 b0
b15 b8 0 1 0 1 1 b7 b0
1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0
1 1 0 0 1 1 0 1 1 0 0 1 1
0 1
0 1 0
0 1 0
0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
1 0
0 0 1 0 1
b15 b8 0 1 0 0 1 b7 b0
1 1 0 0 1 1 0 0 1
0 1
0 0 1 0 0 1 1
1 0 1


(2) The constant designated by can be between 32768 and 32767 (BIN 16-bit data).
b15 b8 0 0 1 0 0 1 1 0 1 1 b7 b0
0 1 0 1 0 1 0 1 0 1 0 1 0
1 1 0 1 1 0 1 0 1 1 0 1
b15 b8 b7 b0 1 0
0 1 1 0 1 1
1 1 0 1 0 1 1
b15 b8 0 1 1 b7 b0
1
1
1 0 1 0 1 0 1 0
1 1 0 0 1 0 0 1 1
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
device range for n points starting from the device designated by . (except when the same
device is specified for and ) (Error code: 4101)
device range for n points starting from the device designated by . (except when the same
device is specified for and ) (Error code: 4101)
Program Example
(1) The following program performs a logical sum operation on the data stored at D100 to D102
and the data stored at R0 to R2 when X20 is turned ON, and stores the operation result into the area starting from D200.
[Ladder Mode] [List Mode]

b15 b8 0 0 1 b7 b0
b15 b8 0 0 1 1 0 b7 b0
0 1
0 1 0
1 1 0 1 0 0
0 1 0 1
b15 b8 0 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 b7 b0
1
1 0 1
Step Instruction Device · [Operation]

7.1.5 16-bit and 32-bit exclusive OR operations (WXOR(P),DXOR(P))
WXOR(P),DXOR(P)
Basic Process High performance Redundant Universal
When two data are set ( , ( +1, ) ( +1, ) ( +1, ))
D S D D D S S D D
indicates an instruction symbol of WXOR/DXOR.
WXORP, DXOR
P
S D
: Data for an exclusive OR operation or head number of the devices where the data is stored (BIN 16/32 bits)
: Head number of the devices where the exclusive OR operation result will be stored (BIN 16/32 bits)
K, H Other Bit Word Bit Word
U \G Zn Constants
7.1 Logical operation instructions 7.1.5 16-bit and 32-bit exclusive OR operations (WXOR(P),DXOR(P))
(1) Conducts an exclusive OR operation on each bit of the 16-bit data of the device designated
by and the 16-bit data of the device designated by , and stores the results at the device
designated by .
0 0 1 0 1 0 1 0 1 0 1 0 b0 b7 b15 b8 1 1 1 0 D
b0 b7 b15 b8
0 0 0 1 1 0 1 0
1 0 1 1 0 0 0 1 0 1 0 1 1 0 1 0 b15 b8 b0 b7
(2) For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation.

DXOR
(1) Conducts an exclusive OR operation on each bit of the 32-bit data of the device designated
by and the 32-bit data of the device designated by , and stores the results at the device
designated by .

0 1 0 1 0 1 0 1 0 1 0 1 0 1 b0 b15 b31 b16
0 1 1 0 0 1 1 0 1 0 0 1 1 0 b0 b15 b31 b16
0 0 1 1 0 0 1 1 1 0 0 1 1 b31 b16 b0 b15
(2) For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation.
(1) There are no operation errors associated with the WXOR(P) or DXOR(P) instructions.
(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]

0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 b0 b7 b15 b8 D10
0 0 1 1 1 0 0 1 0 0 1 1 1 0 0 1
0 1 1 0 1 1 0 0 0 1 1 0 1 1 0 0 b15 b8 b0 b7
Step Instruction Device · [Operation]

(2) 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]


X3F X30 X20 X2F 1 X3F to X20 0 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
X3C X3B X38 X37 X34 X33 X2CX2B X28 X27 X24 X23
0 D10,D9 1 0 0 1 1 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 b31 b16 b0 b15
1 D10,D9 1 1 0 1 1 0 0 1 0 0 1 0 1 0 0 1 1 1 0 1 0 0 0 1 0 0 0
See Section 7.5.2 for more information on the DSUMP instruction.

7.1 Logical operation instructions 7.1.5 16-bit and 32-bit exclusive OR operations (WXOR(P),DXOR(P))
[Operation]

When three data are set ( ( +1, ) ( +1, ) ( +1, ))
S1 S2 D S1 S1 S2 S2 D D

, : Data for an exclusive OR operation or head number of the devices where the data is stored

: Head number of the devices where the exclusive OR operation result will be stored (BIN 16/32 bits)
(1) Conducts an exclusive OR operation on each bit of the 16-bit data of the device designated
by and the 16-bit data of the device designated by , and stores the results at the device

XOR 0 0 1 0 0 b0 b7 b15 b8 0
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 b15 b8 b0 b7
(2) For bit devices, the bit devices after the points designated by digit specification are regarded
as "0" in the operation. (See Program Example (1))
(BIN 16/32 bits)

DXOR
(1) Conducts an exclusive OR operation on each bit of the 32-bit data of the device designated
by and the 32-bit data of the device designated by , and stores the results at the device

1 0 1 b0 b15 b31 b16
1 0 1 0 1 0 1 1 0 0 b0 b15 b31 b16
0 1 0 1 0 1 0 0 0 1 1 b31 b16 b0 b15
(2) For bit devices, the bit devices after the points designated by digit specification are regarded
as "0" in the operation.
(1) There are no operation errors associated with the WXOR(P) or DXOR(P) instructions.
(1) The following program conducts an exclusive OR operation on the data from X10 to X1B
and the data at D33 when X10 is ON, and outputs the result to Y30 to Y3B.

7.1 Logical operation instructions 7.1.5 16-bit and 32-bit exclusive OR operations (WXOR(P),DXOR(P))
0 1 0 1 0 1 0 1 0 1 0 1 X10 X17 X1B to X10
1 0 0 1 1 0 0 1 1 1 0 0 1
0 1 1 0 0 1 1 0 0 1 1 0 1 1 0 0 Y38 Y30 Y37

(2) The following program conducts an exclusive OR operation on the data at D20 and D21, and
the data at D30 and D31 when X10 is turned ON, and stores the results at D40 and D41.
[Ladder Mode] [List Mode]

1 1 0 0 1 0 1 0 1 1 0 0 1 1 b0 b15 b31 b16
0 1 1 0 0 0 1 0 1 0 1 b0 b15 b31 b16
1 1 0 0 0 1 1 0 1 0 0 1 1 0 b31 b16 b0 b15
Step Instruction Device · [Operation]

7.1.6 Block exclusive OR operations (BKXOR(P))
BKXOR(P)
Basic Process High performance Redundant Universal

*1 : Head number of the devices where data on which a logical operation will be conducted is stored (BIN 16 bits)
*1 : Data for a logical operation or head number of the devices where the data for the logical operation is stored
*1 : Head number of the devices where the operation result will be stored (BIN 16 bits) n : Number of operation data blocks (BIN 16 bits)
U \G Zn Constants
K, H Other Bit Word Bit Word
*1 ––
*1 –– –– ––
*1 ––
*1: The same device number can be specified for and or and .
7.1 Logical operation instructions 7.1.6 Block exclusive OR operations (BKXOR(P))
(1) Performs an exclusive OR operation on the data located in the n points from the device
designated by , and the data located in the n points from the device designated by , and
stores the results into the area starting from the device designated by .
b15 b8 0 0 1 1 0 0 1 1 0 1 1 b7 b0
b15 b8 0 0 1 0 1 0 0 b7 b0
1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0
0 0 1 0 1 1 0 0
1 0 1 0
0 1
0 1
1 0 1
0 1 0
0 1
b15 b8 0 1 0 0 1 b7 b0
1 0 1 1 0
1 0 1
1 0
0 1

(2) The constant designated by can be between 32768 and 32767 (BIN 16-bit data).

1 0
0 1 0
0 1
b15 b8b7 b0 1
1 0 1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
b15 b8 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 b7 b0
1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0
1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1
1
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
Program Example
(1) The following program performs an exclusive OR operation on the data stored at D100 to
D102 and the data stored at R0 to R2 when X20 is turned ON, and stores the operation result into the area starting from D200.
[Ladder Mode] [List Mode]


b15 b8 0 b7 b0
b15 b8 1 0 b7 b0
0 1
0 1 0 1 0 1 0 1
0 1 0
b15 b8 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 b7 b0
0 1 0 1
0 1 0 1 0 1 0 1
[Operation]

7.1.7 16-bit and 32-bit data exclusive NOR operations (WXNR(P),DXNR(P))
WXNR(P),DXNR(P)
Basic Process High performance Redundant Universal
When two data are set ( , ( +1, ) ( +1, ) ( +1, ))
D S D D D S S D D
indicates an instruction symbol of WXNR/DXNR.
WXNRP, DXNRP
P
S D
: Data for an exclusive NOR operation or head number of the devices where the data is stored (BIN 16/32 bits)
: Head number of the devices where the exclusive NOR operation result will be stored (BIN 16/32 bits)
U \G Zn Constants
K, H Other Bit Word Bit Word
7.1 Logical operation instructions 7.1.7 16-bit and 32-bit data exclusive NOR operations (WXNR(P),DXNR(P))
(1) Conducts an exclusive NOR operation on the 16-bit data of the device designated by and
the 16-bit data of the device designated by , and stores the results at the device
designated by .
1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 b0 b7 b15 b8 D
b0 b7 b15 b8
1 0 1 1 0
1 0 1 0 0 1 0 1 0 1 0 1 0 b15 b8 b0 b7
(2) For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation.

DXNR
(1) Conducts an exclusive NOR operation on the 32-bit data of the device designated by and
the 32-bit data of the device designated by , and stores the results at the device
designated by .

1 1 0 1 1 b0 b15 b31 b16
1 0 1 0 0 b0 b15 b31 b16
1 1 0 0 1 0 b31 b16 b0 b15
(2) For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation.
(1) There are no operation errors associated with the WXNR(P) or DXNR(P) instruction.
(1) The following program compares the bit patterns of the 16-bit data located from X30 to X3F
with the bit patterns of the 16-bit data at D99 when XC is ON, and stores the number of identical bit patterns at D7.
[Ladder Mode] [List Mode]


XNR 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 X30 X37 X3F X38
1 1 0 0 1 0 0 1 1 0 1 0 1 0 1 1
0 1 1 0 0 0 1 1 0 1 b15 b8 b0 b7
[Operation]

(2) 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 number of identical bit patterns at D18.
[Ladder Mode] [List Mode]


X3F X30 X20 X2F 1 0 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
X3C X3B X38 X37 X34 X33 X2CX2B X28 X27 X24 X23
1 D17,D16 1 0 0 1 0 0 1 0 1 1 0 1 1 0 1 0 0 1 0 0 1 1 0 1 1 b31 b16 b0 b15
1 D17,D16 0 1 0 1 1 0 0 1 1 0 0 0 1 1 0 1 0 0 1 0 1 1 0 0 0 1 1 0 0 0 1
See 7.5.2 for more information on the SUMP/DSUMP instructions.
7.1 Logical operation instructions 7.1.7 16-bit and 32-bit data exclusive NOR operations (WXNR(P),DXNR(P))
[Operation]

When three data are set ( , ( +1, ) ( +1, ) ( +1, ))
S1 S2 D S1 S1 S2 S2 D D

, : Data for an exclusive NOR operation or head number of the devices where the data is stored (BIN 16/32 bits)
: Head number of the devices where the exclusive NOR operation result will be stored (BIN 16/32 bits)
(1) Conducts an exclusive NOR operation on the 16-bit data of the device designated by and
the 16-bit data of the device designated by , and stores the results at the device

XNR 1 0 1 0 b0 b7 b15 b8 S1
0 0 1 0 1 1 0 0 1 1
0 0 1 1 0 0 1 1 0 0 1 0 0 b15 b8 b0 b7
(2) For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation.

DXNR
(1) Conducts an exclusive NOR operation on the 32-bit data of the device designated by and
the 32-bit data of the device designated by , and stores the results at the device

0 0 1 1 0 0 1 0 0 1 1 b0 b15 b31 b16
S2 0 1 0 1 0 1 0 1 0 1 0 1 0 1 b0 b15 b31 b16
1 0 0 1 1 0 0 1 0 1 1 0 0 1 b31 b16 b0 b15
(2) For bit devices, the bit devices after the points designated by digit specification are regarded
as "0" in the operation.
(1) There are no operation errors associated with the WXNR(P) or DXNR(P) instructions.
(1) The following program performs an exclusive NOR operation on the 16-bit data from X30 to
X3F and the data at D99 when X0 is turned ON, and stores the results to D7.

7.1 Logical operation instructions 7.1.7 16-bit and 32-bit data exclusive NOR operations (WXNR(P),DXNR(P))
XNR 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 X30 X37 X3F X38
1 1 0 0 1 0 0 1 0 0
0 1 1 0 0 0 1 1 0 1 0 1 0 1 1 0 b15 b8 b0 b7

(2) The following program performs an exclusive NOR operation on the 32-bit data at D20 and
D21 and the data at D10 and D11 when X10 is turned ON, and stores the result to D40 and D41.
[Ladder Mode] [List Mode]

0 1 0 1 1 0 1 0 1 0 0 1 0 1
0 1 1 0 0 1 0 1 1 0 1 1 0 0 b0 b15 b31 b16
1 1 0 1 1 0 1 1 0 b31 b16 b0 b15
Step Instruction Device · [Operation]

7.1.8 Block exclusive NOR operations (BKXNR(P))
BKXNR(P)
Basic Process High performance Redundant Universal

*1 : Head number of the devices where data on which a logical operation will be conducted is stored (BIN 16 bits)
*1 : Data for a logical operation or head number of the devices where the data for the logical operation is stored (BIN 16 bits)
*1 : Head number of the devices where the operation result will be stored (BIN 16 bits) n : Number of operation data blocks (BIN 16 bits)
U \G Zn Constants
K, H Other Bit Word Bit Word
*1 ––
*1 –– –– ––
*1 ––
*1: The same device number can be specified for and or and .
7.1 Logical operation instructions 7.1.8 Block exclusive NOR operations (BKXNR(P))
(1) Performs an exclusive NOR operation on the data located in the n points from the device
designated by , and the data located in the n points from the device designated by , and
stores the results into the area starting from the device designated by .
b15 b8 0 1 0 b7 b0
b15 b8 0 1 0 b7 b0
1 0 1 0
0 1 0
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
1 0
0 1
1 0
1 0 + (n 1)
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 +(n 1)
b15 b8 1 0 1 b7 b0
0 1
1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1
0 1 0
1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1


(2) The constant designated by can be between 32768 and 32767 (BIN 16-bit data).
b15 b8 0 1 b7 b0
0 1 0
1 1 0 0 1 1 0 1 1 0 0 1 1
1 0 1 0
1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0
0 1 0
b15 b8 0 1 0 b7 b0
0 1
1 1 0 1 1 0 0 1 0 0
0 1
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
device range for n points starting from the device designated by . (except when the same
device is specified for and ) (Error code: 4101)
device range for n points starting from the device designated by . (except when the same
device is specified for and ) (Error code: 4101)
Program Example
(1) The following program performs an exclusive NOR operation on the data stored at D100 to
D102 and the data stored at R0 to R2 when X20 is turned ON, and stores the operation result into the area starting from D200.
[Ladder Mode] [List Mode]


b15 b8 1 b7 b0
0 1
0 1
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1
1 0 1 0 1 0 1 0 1 0 1 0 0 1 0 1
0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0
[Operation]

7.2 Rotation instruction
7.2.1 Right rotation of 16-bit data (ROR(P),RCR(P))
ROR(P),RCR(P)
Basic Process High performance Redundant Universal

: Head number of the devices to rotate (BIN 16 bits) n : Number of rotations (0 to 15) (BIN 16 bits)

7.2 Rotation instruction 7.2.1 Right rotation of 16-bit data (ROR(P),RCR(P))
(1) Rotates 16-bit data of the device designated by , 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.
b8 b15 b14 b13 b12 b11 b10 b9 b7 b6 b5 b4 b3 b2 b1 b0
0 1 1 0
b8 b15 b14 b13 b12 b11 b10 b9 b7 b6 b5 b4 b3 b2 b1 b0
0 0 1 0 1
b8 b15 b14 b13 b12 b11 b10 b9 b7 b6 b5 b4 b3 b2 b1 b0
0 0 0 1 0 1
b8 b15 b14 b13 b12 b11 b10 b9 b7 b6 b5 b4 b3 b2 b1 b0

(2) When a bit device is designated for , a rotation is performed within the device range specified by digit specification.
The number of bits by which a rotation is carried out is the remainder of n/(specified number of bits).
For example, when n 15 and (specified number of bits) 12 bits, the remainder of 15/12
1 is "3", and the data is rotated 3 bits.
(3) Specify any of 0 to 15 as n.
If the value specified as n is 16 or greater, the remainder of n / 16 is used for rotation.
For example, when n 18, the contents are rotated two bits to the right since the remainder
(1) Rotates 16-bit data of the device designated by , 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.

b7 b15 b8 b14 b13 b12 b11 b10 b9 b6 b5 b4 b3 b2 b1 b0
1 0 1 0 0
b7 b15 b8 b14 b13 b12 b11 b10 b9 b6 b5 b4 b3 b2 b1 b0
0 1
b7 b15 b8 b14 b13 b12 b11 b10 b9 b6 b5 b4 b3 b2 b1 b0
1 0 1 0
b7 b15 b8 b14 b13 b12 b11 b10 b9 b6 b5 b4 b3 b2 b1 b0
(2) When a bit device is designated for , a rotation is performed within the device range specified by digit specification.
The number of bits by which a rotation is executed is the remainder of n/(specified number of bits).
For example, when n 15 and (specified number of bits) 12 bits, the remainder of 15/12
1 is "3", and the data is rotated 3 bits.
(3) Specify any of 0 to 15 as n.
If the value specified as n is 16 or greater, the remainder of n / 16 is used for rotation.
For example, when n 18, the contents are rotated two bits to the right since the remainder
of 18 / 16 1 is "2".

Operation Error
(1) There are no operation errors associated with the ROR(P) or RCR(P) instructions.
(1) The following program rotates the contents of D0, not including the carry flag, 3 bits to the
right when XC is turned ON.
[Ladder Mode] [List Mode]


0 1
1 1 1 0 1 b15 b8 b0 b7
Contents of b15 to b4 before execution Content of b3 before execution
(2) The following program rotates the contents of D0, including the carry flag, 3 bits to the right
when XC is turned ON.
[Ladder Mode] [List Mode]

7.2 Rotation instruction 7.2.1 Right rotation of 16-bit data (ROR(P),RCR(P))
0 1
1 1 * 0 1 b15 b8 b0 b7
Contents of b15 to b4 before execution Content of b3 before execution
* ON/OFF status of the carry flag depends on its status before the execution of ROR.
[Operation]

7.2.2 Left rotation of 16-bit data (ROL(P),RCL(P))
ROL(P),RCL(P)
Basic Process High performance Redundant Universal

: Head number of the devices to rotate (BIN 16 bits) n : Number of rotations (0 to 15) (BIN 32 bits)

(1) Rotates the 16-bit data of the device designated at , not including the carry flag, n-bits to the left. The carry flag turns ON or OFF depending on its status prior to the execution of ROL instruction.

b9 b15 b10 b14 b13 b12 b11 b8 b7 b6 b5 b4 b3 b2 b1 b0
0 1 0 0 1 0
b9 b15 b10 b14 b13 b12 b11 b8 b7 b6 b5 b4 b3 b2 b1 b0
0 0 0 1 1 0
b9 b15 b10 b14 b13 b12 b11 b8 b7 b6 b5 b4 b3 b2 b1 b0
0 1 0 1 0
b9 b15 b10 b14 b13 b12 b11 b8 b7 b6 b5 b4 b3 b2 b1 b0

(2) When a bit device is designated for , a rotation is performed within the device range specified by digit specification.
The number of bits by which a rotation is executed is the remainder of n/(specified number of bits).
For example, when n 15 and (specified number of bits) 12 bits, the remainder of 15/12
1 is "3", and the data is rotated 3 bits.
(3) Specify any of 0 to 15 as n.
If the value specified as n is 16 or greater, the remainder of n / 16 is used for rotation.
For example, when n 18, the data is rotated 2 bits to the left since the remainder of 18/16
1 is "2".
(1) Rotates the 16-bit data of the device designated by , including the carry flag, n-bits to the left.
The carry flag turns ON or OFF depending on its status prior to the execution of RCL instruction.
b9 b15 b10 b14 b13 b12 b11 b8 b7 b6 b5 b4 b3 b2 b1 b0
0 1 0 0 1 0
Left rotation (1 bit)
b9 b15 b10 b14 b13 b12 b11 b8 b7 b6 b5 b4 b3 b2 b1 b0
Left rotation (1 bit)
Value of carry flag
b9 b15 b10 b14 b13 b12 b11 b8 b7 b6 b5 b4 b3 b2 b1 b0
7.2 Rotation instruction 7.2.2 Left rotation of 16-bit data (ROL(P),RCL(P))
Left rotation (n bits)
Value of carry flag
b9 b15 b10 b14 b13 b12 b11 b8 b7 b6 b5 b4 b3 b2 b1 b0
(2) When a bit device is designated for , a rotation is performed within the device range specified by digit specification.
The number of bits by which a rotation is executed is the remainder of n/(specified number of bits).
For example, when n 15 and (specified number of bits) 12 bits, the remainder of 15/12
1 is "3", and the data is rotated 3 bits.
(3) Specify any of 0 to 15 as n.
If the value specified as n is 16 or greater, the remainder of n / 16 is used for rotation.
For example, when n 18, the data is rotated 2 bits to the left since the remainder of 18/16
1 is "2".

Operation Error
(1) There are no operation errors associated with the ROL(P) or RCL(P) instructions.
(1) The following program rotates the contents of D0, not including the carry flag, 3 bits to the
left when XC is turned ON.
[Ladder Mode] [List Mode]


0 1
1 0 1 1 b15 b8 b0 b7
Contents of b15 to b13 before execution Contents of b11 to b0 before execution Content of b12 before execution
(2) The following program rotates the contents of D0, including the carry flag, 3 bits to the left
when XC is turned ON.
[Ladder Mode] [List Mode]

0 1
1 0 1 b15 b8 b0 b7
Contents of b15 and b14 before execution Contents of b11 to b0 before execution Content of b12 before execution Content of b13 before execution Content of carry flag SM700
* ON/OFF status of the carry flag depends on its status before the execution of RCL.
[Operation] · Step Instruction Device · [Operation]

7.2.3 Right rotation of 32-bit data (DROR(P),DRCR(P))
DROR(P),DRCR(P)
Basic Process High performance Redundant Universal

: Head number of the devices to rotate (BIN 32 bits) n : Number of rotations (0 to 31) (BIN 16 bits)

(1) The 32-bit data of the device designated at , not including the carry flag, is rotated n-bits to the right.
7.2 Rotation instruction 7.2.3 Right rotation of 32-bit data (DROR(P),DRCR(P))
The carry flag turns ON or OFF depending on its status prior to the execution of the DROR instruction.
b2 b16 b31 b17 b30b29b28b27 b18 b15b14 b5 b4 b3
(2) When a bit device is designated for , a rotation is performed within the device range specified by digit specification.
The number of bits by which a rotation is executed is the remainder of n/(specified number of bits).
For example, when n 31 and (specified number of bits) 24 bits, the remainder of 31/24
1 is "7", and the data is rotated 7 bits.
(3) Specify any of 0 to 31 as n.
If the value specified as n is 32 or greater, the remainder of n / 32 is used for rotation.
For example, when n 34, the contents are rotated two bits to the right since the remainder
of 34 / 32 1 is "2".

DRCR
(1) Rotates 32-bit data, including carry flag, at device designated by n bits to the right.
The carry flag goes ON or OFF depending on its status prior to the execution of the DRCR instruction.

b2 b16 b31 b17 b30b29b28b27 b18 b15b14 b5 b4 b3
(2) When a bit device is designated for , a rotation is performed within the device range specified by digit specification. The number of bits by which a rotation is executed is the remainder of n /(specified number of bits). For example, when n 31 and (specified number of bits) 24 bits, the remainder of 31/24 1 is "7", and the data is rotated 7 bits.
(3) Specify any of 0 to 31 as n. If the value specified as n is 32 or greater, the remainder of n /
32 is used for rotation. For example, when n 34, the contents are rotated two bits to the right since the remainder of 34 / 32 1 is "2".

(1) There are no operation errors associated with the DROR(P) or DRCR(P) instruction.
(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.
[Ladder Mode] [List Mode]


b31 b16 b0 b15 b28 b27 b24b23 b20b19 b12 b11 b8 b7 b4 b3
0 D0, D1 0 0 0 1 0 1 0 1 0 1
b31 b16 b0 b15 b28b27 b24b23 b20b19 b12b11 b8 b7 b4 b3
1 D0, D1 0 1 0 1 0 1 0
[Operation]

(2) The following program rotates the contents of D0 and D1, including the carry flag, 4 bits to
the right when XC is ON.
[Ladder Mode] [List Mode]

b31 b16 b0 b15 b28b27 b24b23 b20b19 b12b11 b8b7 b4b3
0 0 1 0 1 0 1 0 1
b31 b16 b0 b15 b28b27 b24b23 b20b19 b12b11 b8b7 b4b3
1 D0, D1 1 1 0 1 0 1 0 1 0
Content of b3 before execution Content of carry flag SM700 before execution
* : ON/OFF status of the carry flag depends on its status before the execution of DRCR.

7.2 Rotation instruction 7.2.3 Right rotation of 32-bit data (DROR(P),DRCR(P))
Step Instruction Device · [Operation]

7.2.4 Left rotation of 32-bit data (DROL(P),DRCL(P))
DROL(P),DRCL(P)
Basic Process High performance Redundant Universal

: Head number of the devices to rotate (BIN 32 bits) n : Number of rotations (0 to 31) (BIN 16 bits)

(1) The 32-bit data of the device designated at , not including the carry flag, is rotated n-bits to the left. The carry flag turns ON or OFF depending on its status prior to the execution of the DROL instruction.

b2 b16 b31 b17 b30b29b28b27 b18 b15b14 b5 b4 b3 Carry flag
(2) When a bit device is designated for , a rotation is performed within the device range specified by digit specification. The number of bits by which a rotation is executed is the remainder of n /(specified number of bits). For example, when n 31 and (specified number of bits) 24 bits, the remainder of 31/24 1 is "7", and the data is rotated 7 bits.
(3) Specify any of 0 to 31 as n. If the value specified as n is 32 or greater, the remainder of n/32
is used for rotation. For example, when n 34, the data is rotated 2 bits to the left since the remainder of 34/32 1 is "2".
(1) Rotates 32-bit data of the device designated by , including the carry flag, n-bits to the left. The carry flag turns ON or OFF depending on its status prior to the execution of the DRCL instruction.

b2 b16 b31 b17 b30b29b28b27 b18 b15b14 b5 b4 b3 Carry flag

(2) When a bit device is designated for , a rotation is performed within the device range specified by digit specification. The number of bits by which a rotation is executed is the remainder of n /(specified number of bits). For example, when n 31 and (specified number of bits) 24 bits, the remainder of 31/24 1 is "7", and the data is rotated 7 bits.
(3) Specify any of 0 to 31 as n. If the value specified as n is 32 or greater, the remainder of n/32
is used for rotation. For example, when n 34, the data is rotated 2 bits to the left since the remainder of 34/32 1 is "2".

(1) There are no operation errors associated with the DROL(P) or DRCL(P) instructions.
(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.
[Ladder Mode] [List Mode]

b31 b16 b0 b15 b28b27 b24b23 b20b19 b12 b11 b8 b7 b4 b3
1 D0, D1 0 1 0 1 0 1 0
7.2 Rotation instruction 7.2.4 Left rotation of 32-bit data (DROL(P),DRCL(P))
b31 b16 b0 b15 b28b27 b24b23 b20b19 b12b11 b8 b7 b4 b3
0 D0, D1 0 0 0 1 0 1 0 1 0 1
Contents of b31 to b28 before execution Contents of b27 to b0 before execution
Content of b28 before execution
(2) The following program rotates the contents of D0 and D1, including the carry flag, 4 bits to
the left when XC is ON.
[Ladder Mode] [List Mode]
b31 b16 b0 b15 b28b27 b24b23 b20 b19 b12 b11 b8 b7 b4 b3
1 D0, D1 0 1 0 1 0 1 0
0 0 1 0 1 0 1 0 1 1 1 b31 b16 b0 b15 b28b27 b24b23 b20 b19 b12 b11 b8 b7 b4 b3
Contents of b31 to b29 before execution Contents of b27 to b0 before execution
Content of b28 before execution Content of carry flag SM700 before execution
: ON/OFF status of the carry flag depends on its status before the execution of DRCL.

7.3 Shift instruction
7.3.1 n-bit shift to right or left of 16-bit data (SFR(P),SFL(P))
SFR(P),SFL(P)
Basic Process High performance Redundant Universal

: Head number of the devices where shift data is stored (BIN 16 bits) n : Number of shifts (0 to 15) (BIN 16 bits)

(1) Causes a shift to the right by n bits of the 16-bit data from the device designated at .
The n bits from the upper bit are filled with 0s.

1 1 1 0 1 1 1 0 1 1 1 0 1 1 1 0
0 1 1 1 0 1 1 1 0 1 1 b15 b8 b0 b7
(2) When a bit device is designated for , a right shift is executed within the device range specified by digit specification.

1 0 1 0 1 0 1 0 1 0 1 0
0 1 0 1 0 1 0 1 0 Y18 Y10 Y17

The number of bits by which a shift is executed is the remainder of n/(specified number of bits).
For example, when n 15 and (specified number of bits) 8 bits, the remainder of 15/8 1 is "7", and the data is shifted 7 bits.
(3) Specify any of 0 to 15 as n. If the value specified as n is 16 or greater, the remainder of n/16
is used for a shift to the right. For example, when n 18, the data is shifted 2 bits to the right since the remainder of 18/16 1 is 2.
(1) Shifts 16-bit data at device designated by n bits to the left.
Bits starting from the lowest bit to n bit are filled with 0s.

1 0 0 1 1 0 1
b14b13b12b11b10 b9 b6 b5 b4 b3 b2 b1 Carry flag
0 1 0 b15 b8 b0 b7
(2) When a bit device is designated for , a left shift is executed within the device range specified by digit specification.

1 0 0 1 1 0 0 0 X14X13
7.3 Shift instruction 7.3.1 n-bit shift to right or left of 16-bit data (SFR(P),SFL(P))
The number of bits by which a shift is executed is the remainder of n/(specified number of
bits). For example, when n 15 and (specified number of bits) 8 bits, the remainder of
15/8 1 is "7", and the data is shifted 7 bits.
(3) Specify any of 0 to 15 as n. If the value specified as n is 16 or greater, the remainder of n/16
is used for a shift to the left. For example, when n 18, the data is shifted 2 bits to the left since the remainder of 18/16 1 is "2".
(1) There are no operation errors associated with the SFR(P) or SFL(P) instructions.

Program Example
(1) The following program shifts the data of D0 to the right by the number of bits designated by
D100 when X20 is turned ON.
[Ladder Mode] [List Mode]


0 1 0 1 0 1 1 1 0 0 1 0 1 0 0 0 b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
1 0 1 0 0 1 1 1 0 0 1 0 1 b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 b15
(2) The following program shifts the contents of X10 to X17 3 bits to the left when X1C is ON.
[Ladder Mode] [List Mode]

1 0 0 1 1 0 0 0 X14X13
[Operation] · Step Instruction Device · [Operation]

7.3.2 1-bit shift to right or left of n-bit data (BSFR(P),BSFL(P))
BSFR(P),BSFL(P)
Basic Process High performance Redundant Universal

: Head number of the devices to be shifted (bits) n : Number of devices to which shift is executed (BIN 16 bits)


(1) Shifts the data in n points from the device designated by to the right by one bit.
7.3 Shift instruction 7.3.2 1-bit shift to right or left of n-bit data (BSFR(P),BSFL(P))
D +(n-1) +(n-2) +(n-3)
(2) The device designated by + (n 1) is filled with 0.
(1) Shifts the data in n points from the device designated by to the left by one bit.
(2) The device designated by is filled with 0.

Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
(1) The following program shifts the data at M668 to M676 to the right when X8F is turned ON.
[Ladder Mode] [List Mode]


1 1 1 0 1 0 1 1 0 0 1 1
1 1 0 1 0 1 0 1 1 0 0 1 M672M671
(2) The following program shifts the data at Y60 to Y6F to the left when X4 is turned ON.
[Ladder Mode] [List Mode]


1 0 0 1 1 0 1 0 1 0 1 1 1
0 0 1 1 0 1 0 1 0 1 1 1 0 Y6F Y68 Y60 Y67
[Operation] · [Operation]

7.3.3 n-bit shift to right or left of n-bit data (SFTBR(P),SFTBL(P))
SFTBR(P),SFTBL(P)
Ver.
Basic Process High performance Redundant
QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.
QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

: Head number of the devices to be shifted (bits) n1 : Number of bits to be shifted (BIN 16 bits) n2 : Number of shifts (BIN 16 bits)

*1 : T, C, ST, and S devices are not available.
7.3 Shift instruction 7.3.3 n-bit shift to right or left of n-bit data (SFTBR(P),SFTBL(P))
(1) This instruction shifts the n1 bits data in the devices starting from the device specified by to the right by n2 bits.
D
+2 +1 +3 +4 +5 +6 +7 +8 +9
D
0 +2 +1 +3 +4 +5 +6 +7 +8 +9
0
1
(2) n1 and n2 are specified under the condition that n1 is larger than n2. If the value of n2 is
equal to or larger than the value of n1, the remainder of n2 / n1 (n2 devided by n1) is used for a shift.
(3) This instruction specifies n1 ranged from 1 to 64.
(4) Bits starting from the highest bit to n2th bit are filled with 0s. If the value of n2 is larger than
the value of n1, the remainder of n2 / n1 will be 0.
(5) If the value specified by n1 or n2 is 0, the instruction will be not processed.

SFTBL(P)
(1) This instruction shifts the n1 bits data in the devices starting from the device specified by to the left by n2 bits.
+6 D +7 D +8 D D
+2 +1 D D +3 D +4 D +5 D
1 1 0 1 0 1
+2 +1 D D +3 D +4 D +5 D +6 D +7 D +8 D D
1 1 1 0 1 0
(2) n1 and n2 are specified under the condition that n1 is larger than n2. If the value of n2 is
equal to or larger than the value of n1, the remainder of n2 / n1 (n2 devided by n1) is used for a shift. However, if the remainder of n2 / n1 is 0, the instruction will be not processed.
(3) This instruction specifies n1 ranged from 1 to 64.
(4) Bits starting from the lowest bit to n2th bit are filled with 0s. If the value of n2 is larger than
the value of n1, the remainder of n2 / n1 will be 0.
(5) If the value specified by n1 or n2 is 0, the instruction will be not processed.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an
error code is stored into SD0.

Program Example
(1) The following program shifts the data of Y10 to Y17 (8 bits) specified by to the right by 2 bits (n2), when M0 is turned on.

0 0 1 0 1 1 1 0 0
(2) The following program shifts the data of Y21 to Y2C (12 bits) specified by to the left by 5 bits (n2), when M0 is turned on.
[Ladder Mode] [List Mode]


7.3 Shift instruction 7.3.3 n-bit shift to right or left of n-bit data (SFTBR(P),SFTBL(P))
Y21 Y22 Y23 Y24 Y25 Y26 Y27 Y28 Y29 Y2A Y2B Y2C
0 1 0 1 1 1 0 1 1 0 0 1
Y21 Y22 Y23 Y24 Y25 Y26 Y27 Y28 Y29 Y2A Y2B Y2C 0
0 0 1 0 0 1 0 1 1 0 0 0
Step Instruction Device · [Operation]

7.3.4 1-word shift to right or left of n-word data (DSFR(P),DSFL(P))
DSFR(P),DSFL(P)
Basic Process High performance Redundant Universal

: Head number of the devices to be shifted (BIN 16 bits) n : Number of devices to which shift is executed (BIN 16 bits)

(1) Shifts data n points from device designated by 1-word to the right.

D +(n-1) +(n-2) +(n-3)
(2) The device designated by D + (n 1) is filled with 0.
(1) Shifts data n points from device designated by 1-word to the left.

(2) The device designated by is filled with 0.

Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
(1) The following program shifts the contents of D683 to D689 to the right when XB is turned
ON.
[Ladder Mode] [List Mode]



(2) The following program shifts the contents of D683 to D689 to the left when XB is turned ON.
7.3 Shift instruction 7.3.4 1-word shift to right or left of n-word data (DSFR(P),DSFL(P))
[Operation]

7.3.5 n-bit shift to right or left of n-word data (SFTWR(P),SFTWL(P))
SFTWR(P),SFTWL(P)
Ver.
Basic Process High performance Redundant
QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.
QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

: Head number of the devices to be shifted (BIN 16 bits) n1 : Number of words to be shifted (BIN 16 bits) n2 : Number of shifts (BIN 16 bits)

(1) This instruction shifts n1 words data in the devices starting from the device specified by to the right by n2 words.

+6 D +7 D +8 D D
+2 +1 D D +3 D +4 D +5 D
H 1E 100 0 1FF 10 1F 7FF 2A
+2 +1 D D +3 D +4 D +5 D +6 D +7 D +8 D D
0 H
(2) The n2 words data in the devices starting from the highest device are filled with 0s.
(3) If the value specified by n1 or n2 is 0, the instruction will be not processed.
(4) If the value of n2 is equal to or larger than the value of n1, the n1 words data in the devices
starting from the device specified by will be filled with 0s.
Universal · n1=9, n2=4

SFTWL(P)
(1) This instruction shifts the n1 words data in the devices starting from the device specified by
to the left by n2 words.

+6 D +7 D +8 D D
+2 +1 D D +3 D +4 D +5 D
1FFH
+2 +1 D D +3 D +4 D +5 D +6 D +7 D +8 D D
3A 1F 30 0 FF H
(2) The n2 words in the devices starting from the lowest device are filled with 0s.
(3) If the value specified by n1 or n2 is 0, the instruction will be not processed.
(4) If the value of n2 is equal to or greater than the value of n1, the n1 words devices starting
from the device specified by will be filled with 0s.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an
error code is stored into SD0.

7.3 Shift instruction 7.3.5 n-bit shift to right or left of n-word data (SFTWR(P),SFTWL(P))
(1) The following program shifts the 8 words (n1) data stored in the devices starting from D10
specified by to the right by 2 words (n2), when M0 is turned on.
D10 D11 D12 × × D13 D14 D15 D16 D17
n1=9, n2=4

(2) The following program shifts the 12 words (n1) data in the devices starting from D21
specified by to the left by 5 words (n2), when M0 is turned on.
[Ladder Mode] [List Mode]



D21 D22 D23 D24 D25 D26 D27 D28 D29 D2A D2B D2C
FF 3A 1 0 0 10 7FFH
D21 D22 D23 D24 D25 D26 D27 D28 D29 D2A D2B D2C ×
Filled with 0H
Step Instruction Device · [Operation]

7.4 Bit processing instructions
7.4.1 Bit set and reset for word devices (BSET(P),BRST(P))
BSET(P),BRST(P)
Basic Process High performance Redundant Universal

: Number of the device whose bits are set/reset (BIN 16 bits) n : Number of the bit to be set/reset (0 to 15) (BIN 16 bits)

7.4 Bit processing instructions 7.4.1 Bit set and reset for word devices (BSET(P),BRST(P))
(1) Sets (sets "1" at) the nth bit in the word device designated at .
(2) If n exceeds "15", bit set/reset is performed with the lower 4 bits of the data.
1 1 0 0 1 0 1 1 0 1 0 1 1 D10 After execution
(1) Resets the nth bit of a word device designated by to 0.
(2) If n exceeds "15", bit set/reset is performed with the lower 4 bits of the data.
1 1 0 0 1 0 1 1 0 0 1 1 1 0 1 1 D10 Before execution
1 1 0 1 1 0 0 1 1 1 0 1 1 D10 After execution

Operation Error
(1) There are no operation errors associated with the BSET(P) or BRST(P) instructions.
(1) The following program resets the 8th bit of D8 (b8) to 0 when XB is OFF, and sets the 3rd bit
of D8 (b3) to 1 when XB is ON.


Bit set or reset of word devices can also be conducted by bit designation of word devices.
QnUCPU User’fs Manual(Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User’s Manuall(Function Explanation, Program Fundamentals) The processing of program example (1) would be conducted as shown below if bit designation of a word device had been used:


7.4.2 Bit tests (TEST(P),DTEST(P))
Basic Process High performance Redundant Universal
indicates an instruction symbol of TEST/DTEST.
TESTP, DTESTP
P
S1 S2 D
: Number of the device where bit data to be extracted is stored (BIN 16 bits)
: Location of the bit data to be extracted (0 to 15 (TEST)/0 to 31 (DTEST)) (BIN 16/32 bits)
: Number of the bit device where the extracted data will be stored (bits)
U \G Zn Constants
K, H Other Bit Word Bit Word
7.4 Bit processing instructions 7.4.2 Bit tests (TEST(P),DTEST(P))
(1) Fetches bit data at the location designated by within the word device designated by ,
and writes it to the bit device designated by .
(2) The bit device designated by is OFF when the relevant bit is "0" and ON when it is "1".
(3) The position designated by indicates the position of an individual bit in a 1-word data
block (0 to 15). When 16 or more is designated at , the target is the bit data at the position indicated by the remainder of n / 16. For example, when n 18, the target is the data at b2 since the remainder of 18 / 16 1 is "2".
S2 S2 (When =5)
b15 b0 b5 S1 D
(1) Fetches bit data at the location designated by within the 2-word device designated by ,
or +1, and writes it to the bit device designated by .
(2) The bit device designated by is OFF when the relevant bit is "0" and ON when it is "1".

(3) The position designated by indicates the position of an individual bit in a 2-word data
block (0 to 31). When 32 or more is designated at , the target is the bit data at the position indicated by the remainder of n / 32. For example, when n 34, the target is the data at b2 since the remainder of 34 / 32 1 is "2".

(1) There are no operation errors associated with the TEST(P) or DTEST(P) instructions.
(1) The following program turns M0 ON or OFF based on the status of the 10th bit in the 1-word
data block (D0).
[Ladder Mode] [List Mode]


[Operation]

(2) The following program turns Y40 ON or OFF, depending on the status of the 19th bit of the 2-word data (W0 and W1).
[Ladder Mode] [List Mode]

1 0 1 1 0 0 1 0 1 0 1 1 0 b31 b19
1 0 1 1 0 1 1 1 0 1 1 1 0 1 1 0 b0 b15 b16
0 1 1 0 1 1 0 1 1 1 0 1 1 0 0 1 b31 b19
1 0 1 0 1 1 0 1 0 1 1 0 1 b0 b15 b16
Programs using the bit test instruction can be rewritten as programs using bit designation of word devices. If the program in example (1) were changed to use bit designation of a word device, it would appear as follows:

M0 turns ON/OFF depending on the ON/OFF status of b10 of D0 (D0.A).

7.4 Bit processing instructions 7.4.2 Bit tests (TEST(P),DTEST(P))
Step Instruction Device · [Operation]

7.4.3 Batch reset of bit devices (BKRST(P))
BKRST(P)
Basic Process High performance Redundant Universal

: Head number of the devices to be reset (bits) n : Number of the devices to be reset (BIN 16 bits)

(1) Resets bit device n-points from the bit device designated by .

than the above • Turns OFF coil or contact n-points from the device designated by .
(2) If the designated device is OFF, the device status will not change.
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.

Program Example
(1) The following program turns OFF devices from M0 to M7 when X0 is turned ON.
[Ladder Mode] [List Mode]

1 1 0 M0 M3 0 M8 M9 M4 M7 1 0 0 M0 M3 1 0 0 1 M8 M9 M4 M7
(2) The following program sets data from 2nd bit (b2) of D10 to 1st bit (b1) of D11 to 0 when X20
is turned ON.
[Ladder Mode] [List Mode]


1 1 1 0 1 0
0 1 0
b15 b8 0 0 0 1 0 1 0 0 1 D11
b15 b8 0 0 0 1 0 1 0 0 1 0 0 D11

7.4 Bit processing instructions 7.4.3 Batch reset of bit devices (BKRST(P))
[Operation] · Not changed · [Operation]

7.5 Data processing instructions
7.5.1 16-bit and 32-bit data searches (SER(P),DSER(P))
SER(P),DSER(P)
Basic Process High performance Redundant Universal

: Search data or head number of the devices where the search data is stored (BIN 16/32 bits)
: Data to be searched or head number of the devices where the data to be searched is stored (BIN 16 bits)
: Head number of the devices where the search result will be stored (BIN 16 bits) n : Number of searches (BIN 16 bits)

(1) Searches n points from the 16-bit data of the device designated by , regarding 16-bit data of the device designated by as a keyword. Then, the number of matches with the keyword is stored at the device designated by +1, and the first matched device number (in the relative number from ) is stored at the device designated by .

(2) No processing is conducted if n is 0 or a negative value.
(3) If no matches are found in the search, the devices designated at and +1 become "0".

DSER
(1) Searches n points from the device designated by in 32-bit units (2 n points in 16-bit
units.) regarding 32-bit data of the device designated by +1 and as a keyword. Then,
the number of matches with the keyword is stored at the device designated by +1, and the
first matched device number (in the relative number from ) is stored at the device

(2) No processing is conducted if n is 0 or a negative value.
(3) If no matches are found in the search, the devices designated at and +1 become "0".
If the data to be searched using the SER/DSER instruction is sorted in the ascending order, searches can be accelerated by the use of the binary search
method, which is activated by turning SM702 *1 ON. However, correct searche results are not obtained if SM702 is turned ON when the data to be searched is not sorted in the ascending order.
7.5 Data processing instructions 7.5.1 16-bit and 32-bit data searches (SER(P),DSER(P))
Data to be searched
Data to be searched
Data to be searched
Search range Compared with the search data
Search range Compared with the search data
Search range Compared with the search data
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.

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 W0 and W1.
[Ladder Mode] [List Mode]


(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 W0 and W1.
[Ladder Mode] [List Mode]

Data to be searched 56789051 Search data D11, D10
[Operation] · Step Instruction Device · [Operation]

7.5.2 16-bit and 32-bit data checks (SUM(P),DSUM(P))
SUM(P),DSUM(P)
Basic Process High performance Redundant Universal

: Head number of the devices where the total number of bits of "1" is counted (BIN 16/32 bits)
: Head number of the devices where the total number of the bits will be stored (BIN 16/32 bits)
7.5 Data processing instructions 7.5.2 16-bit and 32-bit data checks (SUM(P),DSUM(P))
From the 16-bit data in the device designated by , stores the total number of bits where 1
is set, in the device designated by .
b15 b8 1 1 0 0 1 0 1 1 0 0 1 1 0 0 0 1 b0 b7
Total number of bits where 1 is set
b15 b8 0 1 0 0 0 b0 b7
Stores the total number of bits where 1 is set in BIN. (There are 8 bits where 1 is set in the example.)
From the 32-bit data in the device designated by , stores the total number of bits where 1
is set, in the device designated by .
0 0 0 1 0 1 0 1 1 0 b31 b16b15 b0
1 0 0 1 1 1 0 0 1 0 1 0 0 1 1 1
Total number of bits where 1 is set
b15 b8 0 1 0 b0 b7
Stores the total number of bits where 1 is set in BIN. (There are 16 bits where 1 is set in the example.)

Operation Error
(1) There are no operation errors associated with the SUM(P) or DSUM(P) instructions.
(1) The following program stores the number of bits which are ON from X8 to X17 into D0 when
X10 is turned ON.
[Ladder Mode] [List Mode]

0 0 1 0 1 0 1 1 0 1 1 1 X8
Stores the total number of bits where 1 is set at D0.
(2) The following program stores the number of bits which are ON in D100 and D101 into D0
when X10 is turned ON.
[Ladder Mode] [List Mode]

b15 0 0 1 0 1 1 0 0 1 1 b0 b31 b16 D100, D101

0 1 0 1 0 1 0 0 0 1
Stores the total number of bits where 1 is set into D0.
[Operation] · [Operation]

7.5.3 Decoding from 8 to 256 bits (DECO(P))
DECO(P)
Basic Process High performance Redundant Universal

: Data to be decoded or the number of the device where the data to be decoded is stored (BIN 16 bits)
: Head number of the devices where the decoding result will be stored (Device name) n : Valid bit length (1 to 8), 0: No processing (BIN 16 bits)


(1) Turns ON the bit position of , which corresponds to the binary value designated by the
7.5 Data processing instructions 7.5.3 Decoding from 8 to 256 bits (DECO(P))
(2) The value of n can be designated between 1 and 8.
(3) No processing is conducted if n 0, and there are no changes in the bits 2n from the device
(4) Bit devices are treated as 1 bit, and word devices as 16 bits.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The following program decodes the 3 bits from X0 and stores the results at M10 when X20 is
ON.
[Ladder Mode] [List Mode]


0 1 0 M10 M17
If 3 bits are designated as significant bits, 8 points are occupied.
[Operation]

7.5.4 Encoding from 256 to 8 bits (ENCO(P))
ENCO(P)
Basic Process High performance Redundant Universal

: Head number of the device where the data to be encoded is stored (Device name)
: Number of the device where the encoding result will be stored (BIN 16 bits) n : Valid bit length (1 to 8), 0: No processing (BIN 16 bits)

(1) Stores the binary value corresponding to the bits which are "1" included in the 2n-bit data of

7.5 Data processing instructions 7.5.4 Encoding from 256 to 8 bits (ENCO(P))
5 4 3 2 1 0 0 1 0
(2) The value of n can be designated at between 1 and 8.
(3) If n 0, there will be no operation, and the contents of will not change.
(4) 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 Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The following program encodes the 3 bits from M10 when X20 is ON, and stores the results
at D8.
[Ladder Mode] [List Mode]

0 1 0 0 0 M10 M17
If 3 bits are designated as significant bits, 8 points are occupied.
0 1 1 Storage device D8
The location of the ON bit, counted from M10, is stored in BIN.
Step Instruction Device · [Operation]

7.5.5 7-segment decode (SEG(P))
SEG(P)
Basic Process High performance Redundant Universal

: Data to be decoded or head number of the devices where the data to be decoded is stored (BIN 16 bits)
: Head number of the devices where the decoding result will be stored (BIN 16 bits)
(1) Decodes the data from 0 to F designated by the lower 4 bits of to 7-segment display data,
and stores at .

(2) If is a bit device, indicates the head number of the devices storing the 7-segment display data; if it is a word device, indicates the number of the device storing the data.
7.5 Data processing instructions 7.5.5 7-segment decode (SEG(P))
Word device 0 0 1 0 0 1 1 1 b7 b0
0 b8 SEG K7 D8
7-segment display data is stored in lower 8 bits. Upper 8 bits are always filled with 0s.
(1) There are no operation errors associated with the SEG(P) instruction.


decimal Bit Pattern B7 B6 B5 B4 B3 B2 B1 B0
0 0000 0 0 1
1 0001 0 1 1 0
2 0010 0 1 0 1 1 0 1 1
3 0011 0 1 0 0 1
4 0100 0 1 1 0 0 1 1 0
5 0101 0 1 1 0 1 1 0 1
6 0110 0 1 0 1
7 0111 0 0 1 0 0 1 1 1
8 1000 0 1
9 1001 0 1 1 0 1
A 1010 0 1 1 1 0 1 1 1
B 1011 0 1 0 0
C 1100 0 0 1 1 1 0 0 1
E 1110 0 1 0 0 1
F 1111 0 1 1 1 0 0 0 1
(1) The following program converts the data from XC to XF to 7-segment display data and
outputs it to Y38 to Y3F when X0 is turned ON.
[Ladder Mode] [List Mode]

*1: The data Y38 to Y3F will not change until the next data is output.
7-segment decode display · Step Instruction Device · [Timing Chart]

7.5.6 4-bit dissociation of 16-bit data (DIS(P))
DIS(P)
Basic Process High performance Redundant Universal

: Head number of the devices where data to be dissociated is stored (BIN 16 bits)
: Head number of the devices where the dissociated data will be stored (BIN 16 bits) n : Number of dissociations (1 to 4), 0: No processing (BIN 16 bits)


(1) Stores the lower n-digits (1 digit is 4 bits) of the 16-bit data designated by at the lower 4
7.5 Data processing instructions 7.5.6 4-bit dissociation of 16-bit data (DIS(P))
b0 b3 b7 b4 b11 b8 b4 b15 b0 b3
(2) The upper 12 bits n-points from the device designated by become 0.
(3) The value of n can be designated at between 1 and 4.
(4) If n 0, there will be no processing, and the contents n-points from will not change.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The following program dissociates the 16-bit data from D0 into 4-bit groups, and stores from
D10 to D13 when X0 is ON.
[Ladder Mode] [List Mode]


1 1 0 0 1 0 0 1 0 1 0 1 0 0 0 1
0 1
0 1 0 1
0 1 0 0 1
[Operation]

7.5.7 4-bit linking of 16-bit data (UNI(P))
UNI(P)
Basic Process High performance Redundant Universal

: Head number of the devices where data to be linked is stored (BIN 16 bits)
: Head number of the devices where the linked data will be stored (BIN 16 bits) n : Number of links (1 to 4), 0: No processing (BIN 16 bits)

(1) Links lower 4 bits of 16-bit data n-points from device designated by to 16-bit device

7.5 Data processing instructions 7.5.7 4-bit linking of 16-bit data (UNI(P))
(2) The bits of the upper (4 n) digits of the device designated by become 0.
(3) The value of n can be designated at between 1 and 4.
(4) If n 0, there will be no processing, and the contents of device will not change.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The following program links the lower 4 bits of D0 to D2 when X0 is ON, and stores them at
[Ladder Mode] [List Mode]


0 1 b0
0 1 0 0 1 0 1 0 1 0 0 0 1 b8 b0 D10
0 1 0 1
0 1 0 0 1
[Operation]

7.5.8 Dissociation or linking of random data (NDIS(P),NUNI(P))
NDIS(P),NUNI(P)
Basic Process High performance Redundant Universal

: Head number of the devices where data to be dissociated/linked is stored (BIN 16 bits)
: Head number of the devices where the dissociated/linked data will be stored (BIN 16 bits)
: Head number of the devices where the units of dissociation/linking will be stored (BIN 16 bits)
U \G Zn Constants Other Bit Word Bit Word
7.5 Data processing instructions 7.5.8 Dissociation or linking of random data (NDIS(P),NUNI(P))
(1) Dissociates data stored in device numbers starting from that designated at into the number of individual bits designated at , and stores this data in device numbers starting from that designated at .

(2) The number of dissociated bits designated at can be designated within a range of 1 to 16 bits.
(3) Bits from the device number designated at to the device number where "0" is stored are processed as dissociated bits.
(4) Do not overlap the device range for data to be dissociated( to end range of ) with the device range which stores the dissociated data ( to end range of ). If overlapped, the correct operation result may not be obtained.
D D
(5) Do not specify the same device number for , , and . If the same device is specified for , , and , the operation does not work correctly.
S1 S2 D
NUNI
(1) Links individual bits of data stored into the area starting from the device number designated
by in the number of bits specified by , and stores them following the device number designated by .

(2) The number of bits to be linked as designated by can be within a range of from 1 to 16.
(3) Processing will be performed on the number of bits to be linked from the device number
designated by to the device number storing "0".
(4) Do not overlap the device range for data to be linked( to end range of ) with the device range which stores the linked data ( to end range of ). If overlapped, the correct operation result may not be obtained.
D D
(5) Do not overlap the device numbers to be designated at , and . If overlapped, correct operation is not possible.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The following program dissociates data of 4, 3, and 6 bits respectively from the lower bits of
D0, and stores them from D10 to D12.
[Ladder Mode] [List Mode]

7.5 Data processing instructions 7.5.8 Dissociation or linking of random data (NDIS(P),NUNI(P))
1 1 0 1 0 1 1 0 0 0 1 0 0 b4b3 b0
0 1 1 0 0
0 1 1
D12 b5 b0 The data in these bits is ignored. 6 bits
0 1 0 1 1 0 0

(2) The following program links the lower 4 bits of data from D10, the lower 3 bits of data from
D11, and the lower 6 bits of data from D12, and stores at D0.
[Ladder Mode] [List Mode]


4 bits 0 0 0 1 0 1 1 0 0 1 1 0 1 1 0 0 b3 b0
0 1 0 1 0 1 0 0 0 1 1 0 1
0 0 1 1 1 0 1 1 0 0 1 0 1 1 0 0 b5 b0
0 0 0 1 0 1 1 0 0 1 0 1 1 1 0 0
[Operation]

7.5.9 Data dissociation and linking in byte units (WTOB(P),BTOW(P))
WTOB(P),BTOW(P)
Basic Process High performance Redundant Universal

: Head number of the devices where data to be dissociated/linked in byte units is stored (BIN 16 bits)
: Head number of the devices where the result of dissociated/linking in byte units will be stored (BIN 16 bits) n : Number of byte data to be dissociated/linked (BIN 16 bits)

7.5 Data processing instructions 7.5.9 Data dissociation and linking in byte units (WTOB(P),BTOW(P))
(1) Dissociates n-bytes of the 16-bit data stored into the area starting from the device number
designated by , and stores them following the device designated by .
b15 b8b7 b0 b15 b8 b7 b0 D S
Data of lower byte 00H Data of upper byte Data of lower byte Data of upper byte
*1: Fractions that follow the decimal point are rounded up.
For example, if n 5, data through the lower 8 bits of to ( +2) would be stored from (
39H 78H 56H 39H 00H 12H 00H 78H 00H 56H 00H DCH 00H

(2) Setting the number of bytes with n automatically determines the range of the 16-bit data
designated by and the range of the devices to store the byte data designated by .
(3) No processing will be conducted when the number of bytes designated by n is "0".
(4) The "00H" code will automatically be stored at the upper 8 bits of the byte storage device

31H 32H 33H 34H 35H 36H D13 D14
31H 00H 32H 00H 33H 00H 34H 00H
(5) Even though the range of the device with the data to be devided ( to +( -1)) is the
S S n 2
same as the range of the device with the devided data ( to +(n-1)), the instruction operates correctly.
BTOW
(1) Links the lower 8 bits of the 16-bit data in n words stored in the area starting from the device
designated by in 1-word units and stores it into the area starting from the device
designated by . The upper 8 bits of n-word data stored in the area starting from the device
designated by will be ignored. Further, if n is an odd number, 0 is stored at the upper 8 bits of the device where the nth byte data is stored.

Data of the 1st byte Data of the 3rd byte Data of the 2nd byte Data of the 4th byte
Data of the 2nd byte Data of the 3rd byte Data of the 4th byte
*1: Figures after the decimal point are rounded up.
For example, if n 5, the lower 8 bits of data from to ( +4) are linked and stored at
b15 b8b7 b0 b15 b8 b7 b0 S S
12H 34H 56H 78H 00H FEH 00H
D 12H 34H 56H 78H
(2) Setting the number of bytes with n automatically determines the range of the byte data
designated by and the range of the devices to store the linked data designated by .
(3) No processing will be conducted when the number of bytes designated by n is "0".

(4) The upper 8 bits of the byte storage device designated by are ignored, and the lower 8 bits are used.
(5) Linking is correctly processed even when the device range ( to +(n-1)) where the data
to be linked is stored overlaps with the device range ( to +( -1)) where the linked data
D D n 2
will be stored.
For example, the following will take place in a case where the lower 8 bits of D11 to D16 are to be stored at D12 to D14:

31H 00H 31H 32H 33H 34H
35H 36H 35H 00H 36H 00H
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
designated by exceeds the relevant device range. (Error code: 4101)
designated by exceeds the relevant device range. (Error code: 4101)

(1) The following program dissociates the data at D10 to D12 in byte units and stores it at D20
7.5 Data processing instructions 7.5.9 Data dissociation and linking in byte units (WTOB(P),BTOW(P))
58H 00H FDH 00H E2H 00H 57H 00H
E2H 57H 44H 34H D11 D12

(2) The following program links the lower 8 bits of data from D20 through D25 and stores the
result at D10 to D12 when X0 is turned ON.
[Ladder Mode] [List Mode]

78H 12H 49H 55H 67H 31H
Step Instruction Device · [Operation]

7.5.10 Maximum value search for 16and 32-bit data (MAX(P),DMAX(P))
MAX(P),DMAX(P)
Basic Process High performance Redundant Universal

: Head number of the devices where a maximum value is searched (BIN 16/32 bits)
: Head number of the devices where the maximum value search result will be stored (BIN 16/32 bits) n : Number of data blocks to be searched (BIN 16 bits)

7.5 Data processing instructions 7.5.10 Maximum value search for 16- and 32-bit data (MAX(P),DMAX(P))
(1) Searches in the n points of 16-bit BIN data, from the device designated by , for the
maximum value and stores the searched maximum value at the device designated by .
Starts the search from the device designated by and stores the location, specified in the
number of points counted from , of the device where the maximum value is found first at
+1 and stores the number of the found minimum values at +2.

DMAX
(1) Searches in the n points of 32-bit BIN data, from the device designated by , for the
maximum value and stores the searched maximum value at the device designated by
and +1.
Starts the search from the device designated by and stores the location, specified in the
number of points counted from , of the device where the maximum value is found first at

+2 and stores the number of the found minimum values at +3.
54321000 (BIN) 4321000 (BIN) 3254000 (BIN) 54321000 (BIN) 12345678 (BIN)
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The following program subtracts, when X1C is turned ON, the data stored at D100 to D103
from the data stored at R0 to R3, and searches in the results of subtraction for the maximum value, then, stores it at D200 to D202.
[Ladder Mode] [List Mode]


[Operation]

(2) The following program searches for the maximum value from the32-bit data at D0 to D7, and
stores it at D100 to D103 when X20 is turned ON.
[Ladder Mode] [List Mode]
8744740 D101, D100
D3, D2 D5, D4 D7, D6
-3235 (BIN)
3 1 D102 D103
8744740 (BIN) 7141821 (BIN)
7.5 Data processing instructions 7.5.10 Maximum value search for 16- and 32-bit data (MAX(P),DMAX(P))
Step Instruction Device · [Operation]

7.5.11 Minimum value search for 16and 32-bit data (MIN(P),DMIN(P))
MIN(P),DMIN(P)
Basic Process High performance Redundant Universal

: Head number of the devices where a minimum value is searched (BIN 16/32 bits)
: Head number of the devices where the minimum value search result will be stored (BIN 16/32 bits) n : Number of data blocks to be searched (BIN 16 bits)

(1) Searches in the n points of 16-bit BIN data, from the device designated by , for the
minimum value and stores searched minimum value at the device designated by .
Starts the search from the device designated by and stores the location, specified in the
number of points counted from , of the device where the minimum value is found first at
+1 and stores the number of the found minimum values at +2.


DMIN
(1) Searches in the n points of 32-bit BIN data, from the device designated by , for the
minimum value and stores searched minimum value at the devices designated by and
+1.
Starts the search from the device designated by and stores the location, specified in the
number of points counted from , of the device where the minimum value is found first at
+2 and stores the number of the found minimum values at +3.

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The following program adds, when X1C is turned ON, the data stored at D100 to D103 and

the data stored at R0 to R3, and searches in the results of addition for the minimum value, then, stores it at D200 to D202.
7.5 Data processing instructions 7.5.11 Minimum value search for 16- and 32-bit data (MIN(P),DMIN(P))

(2) The following program, when X20 is turned ON, searches for the minimum value from the
32-bit data contained from D0 to D7, and stores it from D100 to D103.
[Ladder Mode] [List Mode]
69386 D101,D100
D3,D2 D5,D4 D7,D6
2070166 (BIN) 3596045 (BIN) 69386 (BIN)
4 1 D102 D103
Step Instruction Device · [Operation]

7.5.12 BIN 16 and 32 bits data sort operations (SORT,DSORT)
SORT,DSORT
Basic Process High performance Redundant Universal

: Head device number in the table to be sorted (BIN 16/32 bits) n : Number of data blocks to be sorted (BIN 16 bits)

: Number of data blocks to be compared in one sort operation (BIN 16 bits)
: Number of the bit device to be turned ON at the completion of the sort operation (bits)
: Device reserved for the system (BIN 16 bits)
7.5 Data processing instructions 7.5.12 BIN 16 and 32 bits data sort operations (SORT,DSORT)
(1) Sorts (rearranges data) BIN 16-bit data n points from in ascending or descending order.
Sort order is designated by the ON/OFF status of SM703:

(2) Several scans are required for sorts performed by the SORT instruction. The number of
scans executed until completion is the value obtained by dividing the maximum number of times executed until the completion of the sort by the number of data blocks compared at
one execution designated by . (Decimal fractions are rounded up.)When the value of is increased, the number of scans until completion of the sort is reduced, but the amount of time per scan is lengthened.
(3) The maximum number of executions until completion of the sort should be calculated
according to the following equation:
The maximum number of executions until completion (n) (n - 1) / 2 [times executed]
When n 10, the number of executions is obtained as 10 (10 - 1) / 2 45 [times executed].
If 2, then the number of scans until the completion of sort is calculated as
45/2 22.5 23 [scans].
(4) The device designated by (the completion device) is turned OFF by the execution of the SORT instruction, and turned ON when the sort is completed. Because the device
designated by is maintained in the ON state after the completion of the sort, the user must turn it OFF if required.
(5) The 2 points from the device designated by are used by the system during the execution
of the SORT instruction. These 2 points from the device designated by should therefore not be used by the user.
Changing these points may cause an error code to be returned (Error code: 4100).
(6) If the value of n is changed during the execution of the SORT instruction, the sort will be
conducted in accordance with the number of sort data blocks after the change.
(7) If the execution command is turned OFF during the execution of the SORT instruction, the
sort is suspended. The sort resumes from the beginning when the execution command is turned ON again.
(8) To execute another sort operation immediately after the completion of the previous sort, turn
OFF the execution command once, then turn it ON.
(1) Sorts (rearranges data) BIN 32-bit data n points from in ascending or descending order.
Sort order is designated by the ON/OFF status of SM703:
Data before sort When SM703 = OFF
+3 , +5 , +7 ,
Sort in the ascending order
+3 , +5 , +7 ,
+3 , +5 , +7 ,
When SM703 = ON
Sort in the descending order

(2) Several scans are required for sorts performed by the DSORT instruction. The number of
scans executed until completion is the value obtained by dividing the maximum number of times executed until the completion of the sort by the number of data blocks compared at
one execution designated by . (Decimal fractions are rounded up.)When the value of is increased, the number of scans until completion of the sort is reduced, but the amount of time per scan is lengthened.
(3) The maximum number of executions until completion of the sort should be calculated
according to the following equation:
The maximum number of executions until completion (n) (n 1)/2 [times executed]
When n 10, the number of executions is obtained as 10 (10 1)/2 45 [times executed].
If S2 2, then the number of scans until the completion of sort is calculated as
45/2 22.5 23 [scans].
(4) The device designated by (the completion device) is turned OFF by the execution of the SORT instruction, and turned ON when the sort is completed. Because the device desig-
nated by is maintained in the ON state after the completion of the sort, the user must turn it OFF if required.
(5) The 2 points from the device designated by are used by the system during the execution
of a DSORT instruction. These 2 points from the device designated by should therefore not be used by the user.
Changing these points may cause an error code to be returned (Error code: 4100).
(6) If the value of n is changed during the execution of the SORT instruction, the sort will be
conducted in accordance with the number of sort data blocks after the change.
(7) If the execution command is turned OFF during the execution of the SORT instruction, the
sort is suspended. The sort resumes from the beginning when the execution command is turned ON again.
7.5 Data processing instructions 7.5.12 BIN 16 and 32 bits data sort operations (SORT,DSORT)
(8) To execute another sort operation immediately after the completion of the previous sort, turn
OFF the execution command once, then turn it ON.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
overlaps with the device range of the 2 points starting from the device designated by . (Error code: 4101)

Program Example
(1) The following program sorts the BIN 16-bit data in 10 points from D0 in the ascending/
descending order when X10 is turned ON.
[Ladder Mode] [List Mode]


(2) The following program sorts the BIN 32-bit data in 20 points from D0 in ascending/
descending order when X10 is turned ON.
[Ladder Mode] [List Mode]


[Operation] · [Operation]

7.5.13 Calculation of totals for 16-bit data (WSUM(P))
WSUM(P)
Basic Process High performance Redundant Universal

: Head number of the devices where data to be summed are stored (BIN 16 bits)
: Head number of the devices where the sum will be stored (BIN 32 bits) n : Number of data blocks (BIN 16 bits)

(1) Adds all 16-bit BIN data for n blocks from the device designated at , and stores it in the

7.5 Data processing instructions 7.5.13 Calculation of totals for 16-bit data (WSUM(P))
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

Program Example
(1) The following program adds the 16-bit BIN data from D10 to D14, and stores it in D100 and
D101 when X1C is turned ON.
[Ladder Mode] [List Mode]
6780 (BIN) 14948 (BIN) D11 D12 D13
2500 (BIN) 3276 (BIN)
D101,D100
4444 (BIN) D14
Step Instruction Device · [Operation]

7.5.14 Calculation of totals for 32-bit data (DWSUM(P))
DWSUM(P)
Basic Process High performance Redundant Universal

: Head number of the devices where data to be summed are stored (BIN 32 bits)
: Head number of the devices where the sum will be stored (BIN 64 bits) n : Number of data blocks (BIN 16 bits)

(1) Adds all 32-bit BIN data stored in n points of devices starting from the one designated by ,

7.5 Data processing instructions 7.5.14 Calculation of totals for 32-bit data (DWSUM(P))
and stores the result to 4 points of devices (4 words) starting from the one designated by .
68640000 (BIN) D n + 3 D + 2 + 4 + 6 + 8
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

Program Example
(1) The following program adds the 32-bit BIN data at D100 to D107, and stores the result at
D10 and D13 when X20 is turned ON.
[Ladder Mode] [List Mode]
23672600 (BIN) D103,D102 D105,D104 D107,D106
27543200 (BIN) 558800 (BIN) 15675000 (BIN)
Step Instruction Device · [Operation] · D10 D13 to

7.5.15 Calculation of averages for 16-bit or 32-bit data (MEAN(P),DMEAN(P))
MEAN(P),DMEAN(P)
Ver.
Basic Process High performance Redundant

: Head number of the devices where the data to be averaged are stored (BIN16/32 bits)
: Head number of the devices where the average will be stored (BIN 16/32 bits) n : Number of data or number of the devices where the number of data are stored(Setting range: 1 to 32767)
U \G Zn Constants
K, H Other Bit Word Bit Word
––
––
7.5 Data processing instructions 7.5.15 Calculation of averages for 16-bit or 32-bit data (MEAN(P),DMEAN(P))
(1) This instruction calculates the mean of 16-bit BIN data stored in n-point devices starting from
the device specified by , and then stores the result into the device specified by .
Average value D S S
+n-1
(2) If the value calculated is not integer, this instruction will drop the number of decimal places.
(3) If the value specified by n is 0, the instruction will be not processed.
(1) This instruction calculates the mean of 32-bit BIN data stored in n-point devices starting from
the device specified by , and then stores the result into the device specified by .
+ 2 + 1, + 3, S S
S S
Average value D D +1,
+2n-2 +2n-1,
(2) If the value calculated is not integer, this instruction will drop the number of decimal places.
(3) If the value specified by n is 0, the instruction will be not processed.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an
error code is stored into SD0.
range of the devices specified by . (Error code: 4101)
(1) The following program stores the average value of 16-bit data stored from D0 to D2 into
D10,when M0 is turned on.
[Ladder Mode] [List Mode]


550 (BIN) 105 555 990
(2) The following program stores the average value of 32-bit data stored from D0 to D5 into D10
and D11, when M0 is turned on.
[Ladder Mode] [List Mode]


2101176 (BIN) 623541 4753647 926342
(BIN) (BIN) (BIN)

7.6 Structure creation instructions
7.6.1 FOR to NEXT instruction loop (FOR,NEXT)
FOR,NEXT
Basic Process High performance Redundant Universal


(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 from 32768 to 0, the processing which is executed when n=1 will be performed.
7.6 Structure creation instructions 7.6.1 FOR to NEXT instruction loop (FOR,NEXT)
(3) If you do not desire to execute the processing called for within the FOR to NEXT loop, use
(4) FOR instructions can be nested up to 16 deep.
FOR instructions can be nested up to 16 deep.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
instruction and after the execution of a FOR instruction. (Error code: 4200)
(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]


Remark


7.6 Structure creation instructions 7.6.1 FOR to NEXT instruction loop (FOR,NEXT)

7.6.2 Forced end of FOR to NEXT instruction loop (BREAK(P))
BREAK(P)
Basic Process High performance Redundant Universal

: Number of the device where the remaining number of loops will be stored (BIN 16 bits) Pn : Number of the pointer (device name (pointer)) where the program is branched at the forced end of a loop.

(1) Forces an end to a FOR to NEXT instruction loop and shifts the operation to the pointer
specified by Pn. Only a pointer within the same program file can be assigned to Pn. If a pointer of the other program file is used, an operation error will be returned.

If the BREAK instruction is not executed, program returns to the FOR instruction as many times as the number specified with the FOR instruction.
(2) The remaining number of the FOR to NEXT instruction loop times is stored at . Note that the remaining number includes the operation when the BREAK instruction is executed.
(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. When an
end is forced to the multiple nesting levels, execute the same number of BREAK instructions for the nesting levels.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The following program forces the FOR to NEXT loop to end when the value of D0 reaches
30 (when the FOR to NEXT loop has been executed 30 times).
[Ladder Mode] [List Mode]

7.6 Structure creation instructions 7.6.2 Forced end of FOR to NEXT instruction loop (BREAK(P))
The value 71 is stored at D1 when the BREAK instruction is executed.

7.6.3 Subroutine program calls (CALL(P))
CALL(P)
Basic Process High performance Redundant Universal


to : Number of the device to be passed as an argument to a subroutine program (bits, BIN 16 bits, BIN 32 bits)
(1) When the CALL (P) instruction is executed, executes the subroutine program of the program
specified by Pn.
The CALL (P) instruction can execute subroutine programs specified by a pointer within the same program file and subroutine programs specified by a common pointer.


(2) When function devices (FX, FY, FD) are used by a subroutine program, specify a device with
to corresponding to the function device. The contents to the devices specified by
to are as indicated below.

(a) Prior to execution of the subroutine program, bit data is transmitted to FX, and word
data is transmitted to FD.
(b) After the execution of the subroutine program, the contents of FY and FD are
transmitted to the corresponding devices.
(c) The processing units for the function devices are as follows:
Function devices Device Data Size Remark
Bit device 1 point –– When bit designation is made for word device 1 bit
7.6 Structure creation instructions 7.6.3 Subroutine program calls (CALL(P))
instruction to be used. Word device 4 words
*1: An error will not occur even when the device number specified by to is not a multiple of 16 at the digit designation of the bit device.
D0 M0 P0 CALL
Occupies from D30 to D33 (Transfer to FD2).
Occupies from D0 to D3 (Transfer to FD1).
Occupies M0 (Transfer to FX0).
(3) to can be used with the CALL (P) instruction.
(4) The number of function devices to be used by a subroutine program must be identical to the
number of arguments in the CALL (P) instruction. Also, the types of the function device and CALL (P) argument used should be identical.
(5) Device numbers specified by the CALL (P) instruction should not overlap.
If they do overlap, it will not be possible to obtain accurate calculations.
depending on the · [Main routine program]

(6) The device used in the argument of the CALL (P) instruction should not be used in a subrou-
tine program. If used, it will not be possible to obtain accurate calculations. (Refer to the following program example.)
(7) When the device, either timer or counter, is used in the argument of the CALL(P) instruction,
only the current value is transmitted/received.
The following example shows the operation performed when D0 is specified for FD0 in the subroutine program and D1 is used in the subroutine program.
[Operation performed after subroutine program execution]
Before the execution of subroutine program
At the time of subroutine program
After the execution of RET instruction
*1: Stores the execution result of the subroutine program. *2: Replaced by the value of the function device. *3: D1 does not reflect the value of the function device.

Correct operation example
The following example shows the operation performed when D0 is specified for FD0 in the subroutine program and D4 is used in the subroutine program.

[Operation performed after subroutine program execution]
At the time of subroutine program
Before the execution of subroutine program
After the execution of RET instruction
D4 D4
FD0 FD0 FD0 FD0
7.6 Structure creation instructions 7.6.3 Subroutine program calls (CALL(P))
*1: Stores the execution result of the subroutine program. *2: Replaced by the value of the function device.
(8) Up to 16 nesting levels are possible with the CALL(P) instruction. However, this 16 levels is
the total number of levels in the CALL(P), FCALL(P), ECALL(P), EFCALL(P), and XCALL instructions.
P0 P10 P20
CALL P10 CALL P20
FEND RET RET RET
END
(9) Devices which are turned ON within subroutine programs will be latched even if the
subroutine program is not executed. Devices which are turned ON during the execution of a subroutine program can be turned OFF by the execution of the FCALL(P) instruction.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
instruction is executed before the execution of the RET instruction.
(1) The following program executes a subroutine program with argument when X20 is turned
ON.
[Ladder Mode] [List Mode]


7.6.4 Return from subroutine programs (RET)
RET
Basic Process High performance Redundant Universal
U \G Zn Constants Other Bit Word Bit Word
(1) Indicates end of subroutine program
(2) When the RET instruction is executed, returns to the step following the CALL (P), FCALL
(P), ECALL (P), EFCALL (P) or XCALL instruction which called the subroutine program.
7.6 Structure creation instructions 7.6.4 Return from subroutine programs (RET)
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
instruction, an END, FEND, GOEND, or STOP instruction is executed before the execution of the RET instruction. (Error code: 4211)
(P), EFCALL (P) or XCALL instruction. (Error code: 4212)

7.6.5 Subroutine program output OFF calls (FCALL(P))
FCALL(P)
Basic Process High performance Redundant Universal


to : Number of the device to be passed as an argument to a subroutine program (bits, BIN 16 bits, BIN 32 bits)
(1) When FCALL(P) is executed, the non-execution processing of the subroutine program of the
pointer designated by Pn is performed.
The FCALL (P) instruction can execute subroutine programs designated by a pointer within the same program file, and subroutine programs designated by common pointers.
(a) Non-execution processing is identical to the processing that is conducted when the
condition contacts for the individual coil instructions are in the OFF state.

Pn Non-execution processing is executed when the command for the FCALL(P) instruction is turned from ON to OFF.

(b) The operation results for the individual coil instructions following non-execution
processing will be as follows, regardless of the ON/OFF status of the individual contacts:
OUT instruction Forced OFF SET instruction
Maintains status RST instruction SFT instruction Basic instructions Application instructions PLS instruction
Processing identical to when condition contacts are OFF Pulse generation instruction ( P) Present value of low speed/high speed timers 0 Present value of retentive timer
Preserves Present value of counter
(2) The FCALL (P) instruction is used in conjunction with the CALL(P) instruction.
(3) If the FCALL (P) instruction is used in conjunction with the CALL(P) instruction,
non-execution processing of a subroutine program is performed when the execution command is turned OFF, enabling forcible turning OFF of the OUT instruction and the PLS instruction (including P instructions). In case the FCALL (P) instruction is not used in conjunction with the CALL(P) instruction, non-execution processing of a subroutine program is not performed even if the execution command is turned OFF. Therefore, output status of the individual coil instructions remains unchanged.
CALL When FCALL instruction is used
FCALL P0
7.6 Structure creation instructions 7.6.5 Subroutine program output OFF calls (FCALL(P))
FEND
Y10 X1 P0
Y11
SET Y11
M0
Forced OFF by FCALL instruction
RET
When FCALL instruction is not used
FEND
Y10 X1 P0
Y10
Y11
SET Y11
M0
PLS M0
RET

(4) When function devices (FX, FY, FD) are used by a subroutine program, specify a device with
to corresponding to the function device. The contents to the devices specified by
to are as indicated below.

(a) Prior to execution of the subroutine program, bit data is transmitted to FX, and word
data is transmitted to FD.
(b) After the execution of the subroutine program, the contents of FY and FD are
transmitted to the corresponding devices.
(c) The processing units for the function devices are as follows:
Function devices Device Data Size Remark
Bit device 1 point
When Bit Designation has been Made for Word
Word device 4 words
*1: An error will not occur if the device number specified by to is not a multiple of 16 at the digit designation of the bit device.
D0 M0 P0 FCALL
Occupies from D30 to D33 (Transfer to FD2).
Occupies from D0 to D3 (Transfer to FD1).
Occupies M0 (Transfer to FX0).
(5) The FCALL (P) instruction can use from to .
Device 1 bit · FD become 0 · [Main routine program]

(6) Up to 16 nesting levels are possible with the FCALL(P) instruction. However, this 16 levels
is the total number of levels in the CALL(P), FCALL(P), ECALL(P), EFCALL(P), and XCALL instructions.

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0. • The device specified for the argument cannot be secured for the data size.
instruction is executed before the execution of the RET instruction.

7.6 Structure creation instructions 7.6.5 Subroutine program output OFF calls (FCALL(P))
(1) The following program executes a subroutine program with argument when X20 is turned
ON, and forces non-execution processing when X20 is turned from ON to OFF. [Ladder Mode] [List Mode]

7.6.6 Subroutine calls between program files (ECALL(P))
ECALL(P)
Process High performance Redundant Universal Basic


to : Number of the device to be passed as an argument to a subroutine program (bits, BIN 16 bits, BIN 32 bits)
(1) Executes the subroutine program of the pointer designated by Pn in the designated program
file name when the ECALL (P) instruction is executed. The ECALL(P) instruction can be used to call a subroutine program that uses a local pointer from a different program file.


(2) Only the file name of a program file stored in the drive 0 (program memory/internal RAM)
can be designated for a file name.
(3) It is not necessary to designate the extension (.QPG) with the file name.
(Only .QPG files will be acted on.)
(4) When function devices (FX, FY, FD) are used by a subroutine program, specify a device
corresponding to the function device with to . The contents of the devices specified by
S1 S5
to are as indicated below.
![Mitsubishi Electronics QCPU — [MAIN] diagram (page 489)](/cdn/reader/d2/d2944d2909243ae715aad622aa50e62fdb53b9908e5ac3f553f9129d99305b43/images/rimg-30.webp)
![Mitsubishi Electronics QCPU — [MAIN] diagram (page 489)](/cdn/reader/d2/d2944d2909243ae715aad622aa50e62fdb53b9908e5ac3f553f9129d99305b43/images/rimg-31.webp)
(a) Prior to execution of the subroutine program, bit data is transmitted to FX, and word
data is transmitted to FD.
(b) After the execution of the subroutine program, the contents of FY and FD are
transmitted to the corresponding devices.
(c) The processing units for the function devices are as follows:
7.6 Structure creation instructions 7.6.6 Subroutine calls between program files (ECALL(P))
Function devices Device Data Size Remark
Bit device 1 point
When Bit Designation has been Made for Word
instruction to be used. Word device 4 words
*1: An error will not occur even when the device number specified by to is not a multiple of 16 at the digit designation of the bit device.
D0 M0 P0 ECALL "A-LINE"
Occupies from D30 to D33 (Transfer to FD2).
Occupies from D0 to D3 (Transfer to FD1).
Occupies M0 (Transfer to FX0).
Device 1 bit · depending on the · [Main routine program]

(5) From to can be used by the ECALL instruction.
(6) The device used in the argument of the ECALL instruction should not be used in a
subroutine program.
If used, it will not be possible to obtain accurate calculations. (Refer to the following program example.)
The following example shows the operation performed when D0 is specified for FD0 in the subroutine program and D1 is used in the subroutine program.

[Operation performed after subroutine program execution]

*1: Stores the execution result of the subroutine program. *2: Replaced by the value of the function device. *3: D1 does not reflect the value of the function device.
[Program example]

Correct operation example
The following example shows the operation performed when D0 is specified for FD0 in the subroutine program and D4 is used in the subroutine program.

[Operation performed after subroutine program execution]
At the time of subroutine program
Before the execution of subroutine program
After the execution of RET instruction
7.6 Structure creation instructions 7.6.6 Subroutine calls between program files (ECALL(P))
*1: Stores the execution result of the subroutine program. *2: Replaced by the value of the function device.
(7) The numbers of the devices designated by the arguments in the ECALL(P) instruction
should not overlap. If they do overlap, it will not be possible to obtain accurate calculations.
(8) Up to 16 levels of nesting can be used with the ECALL(P) instruction. However, this 16
levels is the total number of levels in the CALL(P), FCALL(P), ECALL(P), EFCALL(P), and XCALL instructions.
P0 P10 P20
ECALL"DEF" P10 ECALL "GHI" P20
FEND RET RET RET
END
(9) Devices which are turned ON within subroutine programs will be latched even if the
subroutine program is not executed. Devices turned ON during the execution of a subroutine program can be turned OFF by the EFCALL(P) instruction.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
instruction is executed before the execution of the RET instruction.
(1) The following program executes program block P0 of the program A-LINE when X20 is
turned ON.
[Ladder Mode] [List Mode]


7.6.7 Subroutine output OFF calls between program files (EFCALL(P))
EFCALL(P)
Process High performance Redundant Universal Basic

(bits, BIN 16 bits, BIN 32 bits)

7.6 Structure creation instructions 7.6.7 Subroutine output OFF calls between program files (EFCALL(P))
(1) When the EFCALL(P) instruction is executed, the non-execution processing of the
subroutine program of the pointer designated by Pn is performed.
The EFCALL (P) can also be used to call a subroutine program that uses a local pointer from a different program file.
(a) Non-execution processing is identical to the processing that is conducted when the
condition contacts for the individual coil instructions are in the OFF state.
Pn Non-execution processing is executed when the command for the EFCALL(P) instruction is turned from ON to OFF.

(b) The operation results for the individual coil instructions following non-execution
processing will be as follows, regardless of the ON/OFF status of the individual contacts:
OUT instruction Forced OFF SET instruction
Maintains status RST instruction SFT instruction Basic instructions Application instructions PLS instruction
Processing identical to when condition contacts are OFF Pulse generation instruction ( P) Present value of low speed/high speed timers 0 Present value of retentive timer
Preserves Present value of counter
(2) The EFCALL (P) instruction is used in combination with the ECALL (P) instruction.
(3) If the EFCALL(P) instruction is used in conjunction with the ECALL(P) instruction,
non-execution processing of a subroutine program is performed when the execution command is turned OFF, enabling forcible turning OFF of the OUT instruction and the PLS
instruction (including P instructions). In case the EFCALL(P) instruction is not used in conjunction with the ECALL(P) instruction, non-execution processing of a subroutine program is not performed even if the execution command is turned OFF. Therefore, output status of the individual coil instructions remains unchanged.

When EFCALL instruction is used
Forced OFF by FCALL instruction
When EFCALL instruction is not used

(4) Only the file name of a program file stored in the drive 0 (program memory/internal RAM)
can be designated for a file name.
(5) It is not necessary to designate the extension (.QPG) with the file name.
(Only .QPG files will be acted on.)
(6) When function devices (FX, FY, FD) are used by a subroutine program, specify a device
corresponding to the function device with to .
[MAIN]

![Mitsubishi Electronics QCPU — [ABC] diagram (page 495)](/cdn/reader/d2/d2944d2909243ae715aad622aa50e62fdb53b9908e5ac3f553f9129d99305b43/images/rimg-34.webp)
(a) Prior to execution of the subroutine program, bit data is transmitted to FX, and word
data is transmitted to FD.
(b) After the execution of the subroutine program, the contents of FY and FD are
transmitted to the corresponding devices.
(c) The processing units for the function devices are as follows:
7.6 Structure creation instructions 7.6.7 Subroutine output OFF calls between program files (EFCALL(P))
Function devices Device Data Size Remark
Bit device 1 point
–– When Bit Designation has been Made for Word
Word device 4 words ––
*1: An error will not occur even when the device number specified by to is not a multiple of 16 at the digit designation of the bit device.
D0 M0 P0 "ABC" EFCALL
Occupies from D30 to D33 (Transfer to FD2).
Occupies from D0 to D3 (Transfer to FD1).
Occupies M0 (Transfer to FX0).
Device 1 bit · FD become 0 · [Main routine program]

(7) to can be used with the EFCALL (P) instruction.
(8) The number of function devices used by subroutine programs must be identical to the
number of arguments used by the EFCALL (P) instruction. Further, the function devices should be identical to the types of arguments used by the EFCALL (P) instruction.
(9) Up to 16 levels of nesting can be used with the EFCALL (P) instruction. However, this 16
levels is the total number of levels in the CALL(P), FCALL(P), ECALL(P), EFCALL(P), and XCALL instructions.

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
instruction is executed before the execution of the RET instruction.
(1) The following program executes a subroutine program with argument when X0 is ON, and
forces non-execution processing when X20 is turned from ON to OFF.
[Ladder Mode] [List Mode]


7.6.8 Subroutine program call (XCALL)
XCALL
Process High performance Redundant Universal Ver. Basic
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.


to : Number of the device to be passed as an argument to a subroutine program (bits, BIN 16 bits, BIN 32 bits)
(1) XCALL instruction executes the subroutine program and performs non-execution processing
of the subroutine program.
(a) Execution of subroutine program
Executes each coil instruction according to ON/OFF status of the condition contacts.
7.6 Structure creation instructions 7.6.8 Subroutine program call (XCALL)
(b) Non-execution of subroutine program
Performs the same processing for each coil instruction as when the condition contacts are OFF status. The operation results for the individual coil instructions following non-execution processing will be as follows, regardless of the ON/OFF status of the individual contacts:
OUT instruction Forced OFF SET instruction
Maintains status RST instruction SFT instruction Basic instructions Application instructions PLS instruction
Processing identical to when condition contacts are OFF Pulse generation instruction ( P) Present value of low speed/high speed timers 0 Present value of retentive timer Preserves Present value of counter

(2) Operation of XCALL instruction varies according to the CPU module type. The following
program example shows the operation of XCALL instruction for each CPU module.
Subroutine program (P1) call by XCALL instruction
[ON/OFF timing of X0]
(1) Turning X0 ON (OFF ON) (2) During X0 is ON
(3) Turning X0 OFF (ON OFF)
OFF
*2: Time during X0 is ON(2)) does not include the time when turning X0 ON (1)).
Component Operation of XCALL instruction
X0 is turned ON.
[Program example] · P1 subroutine program · *2

(3) When function devices (FX, FY, FD) are used by a subroutine program, specify a device with
to corresponding to the function device. The contents to the devices specified by
to are as indicated below.

(a) Prior to execution of the subroutine program, bit data is transmitted to FX, and word
data is transmitted to FD.
(b) After the execution of the subroutine program, the contents of FY and FD are
transmitted to the corresponding devices.
(c) The processing units for the function devices are as follows:
Function devices Device Data Size Remark
Bit device 1 point
When Bit Designation has been Made for Word
7.6 Structure creation instructions 7.6.8 Subroutine program call (XCALL)
instruction to be used. Word device 4 words
*3: An error will not occur even when the device number specified by to is not a multiple of 16 at the digit specification of the bit device.
D0 M0 P0 XCALL
Occupies from D30 to D33 (Transfer to FD2).
Occupies from D0 to D3 (Transfer to FD1).
Occupies M0 (Transfer to FX0).
(4) to can be used by the XCALL instruction.
(5) The number of function devices used by a subroutine program must be identical to the
number of arguments in the XCALL instruction. Also, the function device and the type of XCALL argument should be identical.
(6) Device numbers specified in the argument of the XCALL instruction should not overlap.
If they do overlap, it will not be possible to obtain accurate calculations.
Device 1 bit · depending on the · [Main routine program]

(7) Up to 16 nesting levels can be used with the XCALL instruction. However, this 16 levels is
the total number of levels in the CALL(P), FCALL(P), ECALL(P), EFCALL(P), and XCALL instructions.

(8) The device used for the argument of the XCALL instruction must not be used in a subroutine
program. If used, it will not be possible to perform correct calculations. (Refer to the following program example.) The processing to be executed when D1 is used in a subroutine program with D0 designated for FD0 in a subroutine program is shown below.

[Operation performed after subroutine program execution]

of RET instruction Before the execution of subroutine program
*1: Stores the execution result of the subroutine program. *2: Replaced by the value of the function device. D1 does not reflect the operation result in the subroutine program.
[Program example]

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
instruction is executed before the execution of the RET instruction.
(1) The following program executes a subroutine program with argument when X20 is turned
ON.
[Ladder Mode] [List Mode]


7.6 Structure creation instructions 7.6.8 Subroutine program call (XCALL)

7.6.9 Refresh instruction (COM)
Basic Process High performance Redundant Universal
COM Refer to Section 7.6.10 for the COM instruction of the following CPU modules.
U \G Zn Constants Other Bit Word Bit Word
Function
(1) Use the COM instruction when:
(a) It is desired to increase the speed of transmission/reception processing to/from the
remote I/O stations.
(b) It is desired to ensure reliable data transmission/reception with other stations that use
different scan times during the execution of the data link.
(2) The processing of the COM instruction differs depending on whether the special relay
SM775 is ON or OFF.
device *1 *2
Setting · Internal Devices · Data

(3) At the point of the execution of the COM instruction, the CPU module temporarily stops the
processing of the sequence program, and performs the same operation as ordinary data processing as well as auto refresh of intelligent function modules (including link refreshes) at the END processing. However, the low speed cyclic refresh of MELSECNET/10 or MELSECNET/H is not performed.

General data processing and auto refresh (including link refresh) of intelligent function module
(4) The COM instruction can be used in a sequence program any number of times. However,
(5) Data communications using the COM instruction
(a) Example of data communications when COM instruction is not used

END 0 END 0 END 0 END 0 0
(b) Example of data communications when COM instruction has been used
7.6 Structure creation instructions 7.6.9 Refresh instruction (COM)
COM
COM
COM
COM
0 END
0 END
0 END
0 END
0 END
COM COM COM
COM
COM
Program at other station
END END END
COM COM COM
I/O refresh at remote I/O station
1) When the COM instruction is used at the host station, it is possible to increase the number of data communication repetitions with the remote I/O station unconditionally, as shown in (b) above, and thus to speed up data communications. 2) In cases where the remote station scan time is longer than the scan time of the host station, the COM instruction used at the remote station side can avoid the occurrence of timing failure in which the data cannot be fetched, as shown in (a). 3) When the COM instruction has been used at the other station, a link refresh will be performed each time that station receives a command from the host station.
COM instruction COM instruction END instruction COM instruction
Step 0 COM instruction
Link refresh can be performed once in each of these intervals.
Host station program · Data communications

(6) If the scan time from the linked station is longer than the sequence program scan time at the
host station, designating the COM instruction at the host station will not increase the speed of data communications.
Sequence program 0 END COM
The programs in which the COM instruction cannot be used are shown below:
(1) There are no operation errors associated with the COM instruction.
Link scan

7.6.10 Select Refresh Instruction (COM)
COM
Ver. Process Ver. High performance
The first 5 digits of the serial No. are "04122" or higher.
The first 5 digits of the serial No. are "04012" or higher.
The first 5 digits of the serial No. are "07032" or higher.

U \G Zn Constants Other Bit Word Bit Word
(1) When the COM instruction is executed, the following refresh operations can be performed.

7.6 Structure creation instructions 7.6.10 Select Refresh Instruction (COM)
(2) Turning OFF SM775 refreshes all refresh items except I/O refresh.

(3) When selecting refresh items
(a) Select refresh items by SD778, and set SM775 to ON.
The following table shows the refresh items that can be designated by turning SM775 ON/OFF and with SD778.

Refresh Item When SM775 is OFF When SM775 is ON
(b) Select refresh items using b0 to b5 and b15 of SD778.
Whether to execute each bit of SD778 or not can be designated as shown below:

b15 b0 b1 b2 b3 b4 b5 b6 b14
1/0 0 1/0 SD778
Auto refresh of intelligent function module Auto refresh using QCPU standard area of multiple CPU system Reading inputs/outputs from the outside of the multiple CPU system group Auto refresh using the multiple CPU high speed transmission area of multiple CPU system Communication with peripheral devices
To make only the send/receive processing with the remote I/O station faster, designate MELSECNET/H refresh only. (Set only b2 and b15 of SD778 to 1 (SD778: 8004H).)
Refresh between the multiple CPUs by the COM instruction is performed under the following condition. • Receiving operation from other CPUs : When b4 of SD778 (auto refresh in the
CPU shared memory) is 1. • Sending operation from host CPU : When b15 of SD778 (communication
with peripheral device is executed/not executed) is 0

(4) Upon the execution of the COM instruction, the CPU module suspends the processing of the
sequence program, and refreshes the designated refresh item.
Execution of COM instruction
Execution of COM instruction
Refreshes the designated refresh items
Refreshes the designated refresh items
(5) The COM instruction can be used in a sequence program any number of times.
However, note that the sequence program scan time will be lengthened by the time taken for refresh time of the communication with peripheral devices and refresh item that are selected in SD778.
(6) Only with the Universal model QCPU, interruption is enabled during the execution of the
COM instruction. However, note that the data can be separated if the refresh data is used by an interrupt program etc.
(7) With the Built-in Ethernet port QCPU, service processing time may be increased if the
processing was executed by the COM instruction while the built-in Ethernet ports are in Ethernet connection.
(8) Refresh items for the COM instruction are indicated in the following table.
Version Serial No. SM775 Refresh Item
OFF Refreshes all of the refresh items.
ON Communication with peripheral device only.
OFF Refreshes all of the refresh items.
ON Refreshes the refresh items selected by SD778.
A ON/OFF Refreshes all of the refresh items.
Q02HCPU
OFF Refreshes all of the refresh items.
7.6 Structure creation instructions 7.6.10 Select Refresh Instruction (COM)
ON Communication with peripheral device only.
Q12HCPU
OFF Refreshes all of the refresh items.
ON Refreshes the refresh items selected by SD778.
OFF Refreshes all of the refresh items.
ON Refreshes the refresh items selected by SD778
OFF Refreshes all of the refresh items.
ON Communication with peripheral device only.
OFF Refreshes all of the refresh items.
ON Refreshes the refresh items selected by SD778.
OFF Refreshes all of the refresh items.
ON Refreshes the refresh items selected by SD778.
OFF Refreshes the refresh items selected by SD778.
Q04UDHCPU
Q06UDHCPU
Q03UDECPU
B ––––
ON Refreshes all of the refresh items.
Q06UDEHCPU
Q13UDEHCPU
Q26UDEHCPU


7.6.11 Select Refresh Instruction (CCOM)
CCOM
Ver.
Basic Process High performance Redundant
QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.
QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.
CCOMP
CCOMP
Z, ZR J \
U \G Zn Constants Other Bit Word Bit Word
(1) When the CCOM(P) instruction is executed, the following refresh operations can be
executed.
7.6 Structure creation instructions 7.6.11 Select Refresh Instruction (CCOM)
(2) Turning off SM775 refreshes all refresh items except I/O refresh.

(3) When refresh items are selected
(a) Specify refresh items for SD778, and set SM775 to on.
The following table shows the refresh items that can be specified by turning SM775 on or off and in SD778.
Refresh item When SM775 is off When SM775 is on
I/O refresh Not executed
CC-Link IE controller network refresh
Auto refresh of intelligent function modules
Whether to be executed or not can be
Auto refresh using QCPU standard area of multiple
selected.
Reading input or output data of all modules other
than the multiple CPU system group
Auto refresh using the multiple CPU high speed
transmission area of multiple CPU system
Communication with peripheral devices
(b) Select refresh items using b0 to b5 and b15 of SD778.
Whether to execute each bit of SD778 or not can be specified as shown below:
Bit of SD778 Executed Not executed
b0 to b5 1 0
b15 b0 b1 b2 b3 b4 b5 b6 b14
1/0 0 1/0 SD778
I/O refresh CC-Link refresh
CC-Link IE controller network, MELSECNET/H refresh
Auto refresh of intelligent function module Auto refresh using QCPU standard area of multiple CPU system Reading inputs/outputs from the outside of the multiple CPU system group Auto refresh using the multiple CPU high speed transmission area of multiple CPU system Communication with peripheral devices
Refresh between the multiple CPUs by the CCOM(P) instruction is executed under the following condition.
CPU shared memory) is 1. • Sending operation from host CPU: When b15 of SD778 (communication with
peripheral device) is 0.

(4) On the execution of the CCOM (P) instruction, the CPU module suspends the processing of
the sequence program, and refreshes the specified refresh item.
Execution of CCOM(P) instruction
Execution of CCOM(P) instruction
Refresh specified in refresh items
Refresh specified in refresh items
(5) The CCOM(P) instruction can be used in a sequence program any number of times.
However, note that the sequence program scan time will be lengthened by the time taken for refresh item that are specified in SD778.
(6) Interruption is enabled during the execution of the CCOM(P) instruction. However, note that
the data can be separated if the refresh data is used for an interrupt program.
(7) The CCOM(P) instruction is not available for the fixed scan execution type program or
interrupt program.
(8) With the Built-in Ethernet port QCPU, service processing time may be increased if the
processing was executed by the CCOM instruction while the built-in Ethernet ports are in Ethernet connection.
(1) When the CCOM(P) instruction is executed in the QnUD(H)CPU whose serial number
(first five digits) is "10101" or later, an error occurs. (Error code: 4100)
(1) Turning on M0 enables the program to execute the select refresh, while turning off M0
7.6 Structure creation instructions 7.6.11 Select Refresh Instruction (CCOM)
disables the program to execute the select refresh.
[Ladder Mode] [List Mode]


Step Instruction Device

7.6.12 Index modification of entire ladder (IX,IXEND)
IX,IXEND
Basic Process High performance Redundant Universal

: Head number of the devices where index modification data is stored (BIN 16 bits)
U \G Zn Constants Other Bit Word Bit Word
(1) Performs index modification on all devices in the ladder up to the IXEND instruction after the
IX instruction, using the index modification value specified in the index modification table. Refer to 7.6.13 for how to configure an index modification table.
The configuration of the index modification table and the corresponding index register numbers are as shown below:

*1: When using a basic model QCPU, index registers with numbers from Z10 onward cannot be used.

(2) Index modification for device numbers is accomplished in the manner as below: By setting a
modification value to each of the devices, the set modification values are added to the all device numbers of the devices used in the ladder between the IX and IXEND instructions. The program is executed using the index modified device numbers.

Processed as X3 and X1B, respectively. Processed as Y2E and Y4A, respectively. Processed as M16 and M72, respectively. Processed as B30 Processed as T498 Processed as C275 Processed as D1
Value "10" is added to M6 and M62 Value "10 (AH)" is added to Y24 and Y40
Value "16 (10H)" is added to B20
Value "1" is added to D0 Value "5" is added to C270 Value "8" is added to T495
(3) Instructions such as the PLS, PLF, and P instructions, which are executed only once when input conditions have been established, cannot be index modified by using the IX to IXEND instruction loop.
(4) In cases where adding the modification value causes the device number to exceed the

7.6 Structure creation instructions 7.6.12 Index modification of entire ladder (IX,IXEND)
(5) Do not execute the IX or IXEND instructions during online program changes of sequence
programs (write during RUN). Accurate processing will not be conducted if this happens.
(6) Modification values are preset for random word devices as BIN values, and the initial device
number for which modification values have been set is designated by .
(7) Do not execute a scan execution type program and an interrupt program simultaneously

(8) Whether the program will be expanded or a user needs to create the program is depending
on your GPP function software package.
(a) When a user needs to create the program (When GX Developer is used)
The index register should be added to the index modification ladder established with the
IX and IXEND instructions. *2

*2 : The value of Zn is returned to the previous Zn value before the execution of the IX instruction after the IXEND instruction has been executed.
(b) When the program is expanded (When SW -GPPQ is used) The index modification ladder established with the IX and IXEND instructions will be transformed into a ladder using the index register (Zn) during the program expansion. *3
Index modification cannot be conducted in a program between the IX and IXEND instructions.

*3 : The value of Zn is returned to the previous Zn value before the execution of the IX instruction after the IXEND instruction has been executed.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
IXEND instruction, but after the execution of the IX instruction. (Error code: 4231)
(1) The following program executes the same ladder 10 times, while changing device numbers.
[Ladder Mode] [List Mode]

7.6 Structure creation instructions 7.6.12 Index modification of entire ladder (IX,IXEND)
1st time B0 X10 Y30 M0 D0 D10 T3 C4 D40
2nd time B1 X11 Y31 M1 D1 D11 T4 C5 D41
3rd time B2 X12 Y32 M2 D2 D12 T5 C6 D42
10th time B9 X19 Y39 M9 D9 D19 T12 C13 D49
D104 D105 D106 D107 Modification value of V Modification value of D D108
Modification value of M Modification value of L Modification value of B

7.6.13 Designation of modification values in index modification of entire ladders (IXDEV,IXSET)
IXDEV,IXSET
Basic Process High performance Redundant Universal

: Head number of the devices where index modification data is stored (pointer only) P (Pointer)
: Head number of the devices where index modification data will be stored (except a pointer) (BIN 16 bits)
(1) The IXDEV and IXSET instructions are used to configure an index modification table used in
the IX and IXEND instructions. (2) The device offset value designated at the offset designation area is set at the index
modification table designated by . (3) The value 0 will be entered if no designation is made. (4) Word devices are also indicated by contact (word device bit designation). Data register 10
(D10) is designated with D10.0. (Any value from 0 to F can be used for the bit number.)
(5) Designation is made according to the method described below. *1 (The symbol is where the offset value will be. The notation XX indicates random selection.)

Device T C X Y M L V B
D .XX W .XX R .XX \ G .XX U \ B J
*1: When using a basic model QCPU, the devices R, U/G, J, ZR and P cannot be used. *2: Devices following J \ designate B, W, X, or Y, and the offset value is also set in correspondence with this.
*3: When using a basic model QCPU, specify a dummy device number. is P .

(6) If two offsets for two identical types of device have been set in the offset designation area,
the last value set will be valid.
(7) The IXDEV and IXSET instructions should be treated as a pair.
(8) Any value from 0 to 32767 is valid for ZR. (The offset value will be the remainder of the
quotient of the designated device number divided by 32768.)
(9) The dummy contacts in the offset specifying part are valid for only LD and AND located
within the range of the IXDEV-IXSET instructions. The IXDEV-IXSET instructions will not be executed if other instructions are described.
IXDEV
Non-execution processing (outputs OFF)
IXSET P3 D0
Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
7.6 Structure creation instructions 7.6.13 Designation of modification values in index modification of entire ladders (IXDEV,IXSET)
Non-execution processing (ignored) · Valid dummy contacts

Program Example
(1) The following program changes the modification values for input (X), output (Y), data
register (D) and pointer (P).
When using a basic model QCPU, the devices R, U/G, J, ZR and P cannot be used.
[Ladder Mode] [List Mode]

0 5 3 0 8 0
*4: Refer to 7.6.12 for index modification using the IX to IXEND instructions.

7.7 Data Table Operation Instructions
7.7.1 Writing data to the data table (FIFW(P))
FIFW(P)
Basic Process High performance Redundant Universal

: Data to be written into the table or the number of the device where the data is stored (BIN 16 bits)
: Head number of the table (BIN 16 bits)
7.7 Data Table Operation Instructions 7.7.1 Writing data to the data table (FIFW(P))
(1) Stores the 16-bit data designated by in the data table designated by .
The number of data blocks stored in the table is stored at , and the data designated by
(2) The first time the FIFW instruction is executed, any values in the designated by device should be cleared.
(3) The number of data blocks to be written in the data table and the data table range should be

Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
(1) The following program stores the data at D0 to the data table following R0 when X10 is
turned ON.
[Ladder Mode] [List Mode]

(2) The following program stores the data at X20 to X2F to data table of D38 to D44 table when
X1B is turned ON, and, if there are more than 6 data blocks to be stored, turns Y60 ON and disables the FIFW instruction.
[Ladder Mode] [List Mode]


Step Instruction Device · [Operation] · [Operation]

7.7.2 Reading oldest data from tables (FIFR(P))
FIFR(P)
Basic Process High performance Redundant Universal

: Head number of the devices where the data read from the table will be stored (BIN 16 bits)
: Head number of the table (BIN 16 bits)
U \G Zn Constants Other Bit Word Bit Word
(1) Stores the oldest data ( +1) input to the table designated by at the device designated by

After the execution of the FIFR instruction, the data in the table is all compressed up by one block.
7.7 Data Table Operation Instructions 7.7.2 Reading oldest data from tables (FIFR(P))
(2) Users should attempt to avoid executing the FIFR instruction if the value stored at is 0. [See Program Example (1)]
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

Program Example
(1) The following program stores the R1 data from the table R0 to R7 at D0 when X10 is turned
ON.
[Ladder Mode] [List Mode]


(2) The following program stores the data at D0 in the data table D38 to D43, and, when the
table stores 5 data, stores the data at D39 of the data table in R0, when X1C is turned ON.
[Ladder Mode] [List Mode]


Data table Data table Number of stored data tables
Executes the FIFWP instruction when X1C turns ON again
[Operation] · [Operation]

7.7.3 Reading newest data from data tables (FPOP(P))
FPOP(P)
Basic Process High performance Redundant Universal

: Head number of the devices where the data read from the table will be stored (BIN 16 bits)
: Head number of the table (BIN 16 bits)
U \G Zn Constants Other Bit Word Bit Word
(1) Stores the newest data input to the table designated by at the device designated by . After the execution of the FPOP instruction, the device storing the data read by the FPOP instruction is reset to 0.

7.7 Data Table Operation Instructions 7.7.3 Reading newest data from data tables (FPOP(P))
(2) Perform interlock to avoid executing the FPOP instruction when the value stored at is 0. [See Program Example (1)]
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

Program Example
(1) The following program stores the data stored last in the data table R0 to R7 at D0 when X10
is turned ON.
[Ladder Mode] [List Mode]


(2) The following program stores the data at D0 in the data table D38 to D43 when X1C is
turned ON, and when the number of data stores in the table reaches 5, turns X1D ON, and stores the data stored last in the data table to R0.
[Ladder Mode] [List Mode]


Since the number of stored data block is 4, the FIFWP instruction is executed when XIC turns ON
[Operation] · [Operation]

7.7.4 Deleting and inserting data from and in data tables (FDEL(P),FINS(P))
FDEL(P),FINS(P)
Basic Process High performance Redundant Universal

: Head number of the devices where data to be inserted is stored (BIN 16 bits)
Head number of the devices where the data to be deleted will be stored (BIN 16 bits) : Head number of the table (BIN 16 bits) n : Location on the table where data is inserted/deleted (BIN 16 bits)

7.7 Data Table Operation Instructions 7.7.4 Deleting and inserting data from and in data tables (FDEL(P),FINS(P))
(1) Deletes the nth block of data from the data table designated by , and stores it at the
After the execution of the FDEL instruction, the data in the table following the deleted block is compressed forward by one block.
S If n=3, data at +3 is deleted. D

FINS
(1) Inserts the 16-bit data designated by at the nth block of the data table designated by .
After the execution of the FINS instruction, the data in the table following the inserted block is all dropped one position.
Number of stored data blocks 5432 1234
+1 +2 +3 +4
+1 +2 +3 +4
D D D D
If n=2, data is inserted to +2. D
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.

Program Example
(1) The following program deletes the second data from the table R0 to R7 and stores the
deleted data at D0 when X10 is turned ON.
[Ladder Mode] [List Mode]

(2) The following program inserts the data at D0 into the third position at the table R0 to R7
when X10 is turned ON.
[Ladder Mode] [List Mode]

7.7 Data Table Operation Instructions 7.7.4 Deleting and inserting data from and in data tables (FDEL(P),FINS(P))
Step Instruction Device · [Operation] · Step Instruction Device

7.8 Buffer memory access instruction
7.8.1 Reading 1-/2-word data from the intelligent function module (FROM(P),DFRO(P))
FROM(P),DFRO(P)
Basic Process High performance Redundant Universal

n1 : Head I/O number of an intelligent function module (BIN 16 bits) n2 : Head address of data to be read (BIN 16 bits) : Head number of the devices where the read data will be stored (BIN 16/32 bits) n3 : Number of data blocks to be read (BIN 16 bits)

(1) Reads the data in n3 words from the buffer memory address designated by n2 of the
intelligent function module designated by n1, and stores the data into the area starting from the device designated by .


DFRO
(1) Reads the data in (n3 2) words from the buffer memory address designated by n2 of the
the intelligent function module designated by n1, and stores the data into the area starting
from the device designated by .
Intelligent function module buffer memory
Data read from intelligent function modules is also possible with the use of an intelligent function module device. For the intelligent function module device, refer to the QnUCPU User's Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals).
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
7.8 Buffer memory access instruction 7.8.1 Reading 1-/2-word data from the intelligent function module (FROM(P),DFRO(P))
execution of the instruction. (Error code: 1412)

Program Example
(1) The following program reads the digital value of CH1 of the A68AD mounted at I/O numbers
040 to 05F into D0 when X0 is turned ON. (Reads 1 word of data from address 10 of the buffer memory.)
[Ladder Mode] [List Mode]
(2) The following program reads the X-axis present value of the AD71 mounted at the I/O
numbers 040 to 05F into D0 and D1, when X0 is turned ON. (Reads data in 2 words from the address 602 and 603 of the buffer memory.)
[Ladder Mode] [List Mode]

Head I/O number of the reading K4 or H4
Step Instruction Device · Step Instruction Device

7.8.2 Writing 1-/2-word data to intelligent function module (TO(P),DTO(P))
TO(P),DTO(P)
Basic Process High performance Redundant Universal

n1 : Head I/O number of an intelligent function module (BIN 16 bits) n2 : Head address of the area where data is written (BIN 16 bits) : Data to be written or head number of the devices where the data to be written is stored (BIN 16/32 bits) n3 : Number of data blocks to be written (BIN 16 bits)

7.8 Buffer memory access instruction 7.8.2 Writing 1-/2-word data to intelligent function module (TO(P),DTO(P))
Writes the data stored in n3 points starting from the device designated by into the area starting from buffer memory address designated by n2 of the intelligent function module designated by n1.
When a constant is designated to , writes the same data (value designated to ) to the area
of n3 points starting from the specified buffer memory. ( can be designated in the following range: -32768 to 32767 or 0H to FFFFH.)

DTO
Writes the data stored in n3 2 points starting from the device designated by into the area starting from buffer memory address designated by n2 of the intelligent function module designated by n1.
Intelligent function module buffer memory
Device designated by S
(n3 x 2) points
(n3 x 2) words
When a constant is designated to , writes the same data (value designated to ) to the area
of n3 2 points starting from the specified buffer memory. ( can be designated in the following range: -2147483648 to 2147483647 or 0H to FFFFFFFFH.)
Intelligent function module buffer memory
n2+1 (When 70000 is designated to )
(n3 x 2) words
(The same data is written)
Data write to intelligent function modules is also possible with the use of an intelligent function module device. For the intelligent function module device, refer to the QnUCPU User's Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals).
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
execution of the instruction. (Error code: 1412)

Program Example
(1) The following program sets the CH1 and CH2 of the Q68ADV mounted at the I/O numbers
040 to 04F to the "A/D conversion" mode, when X0 is turned ON. (Writes 3 into the buffer memory address 0.)
[Ladder Mode] [List Mode]
(2) The following program sets the X-axis current value of the AD71 mounted at I/O numbers
040 to 05F to 0 when X0 is turned ON. (Writes 0 to addresses 41, 42 of the buffer memory.)
[Ladder Mode] [List Mode]


7.8 Buffer memory access instruction 7.8.2 Writing 1-/2-word data to intelligent function module (TO(P),DTO(P))
Head I/O number of the reading K4 or H4
Step Instruction Device

7.9 Display instructions
7.9.1 Print ASCII code instruction (PR)
PR
Process High performance Redundant Universal Basic

: ASCII code or head number of the devices where the ASCII code is stored (character string)
: Head number of the output module to which the ASCII code will be output (bits)
*1: Local devices and the file registers set for individual programs cannot be used.
(1) Outputs ASCII code stored in the device specified by or ASCII code stored in the area startings from the device number to an output module specified by .
The number of characters output differs according to the ON/OFF status of SM701 (number of output characters selection).
(a) If SM701 is ON, characters 8 points (16 characters) from the device designated by will be the target of the operation.

41 H (A) 42 H (B) 43 H (C) 44 H (D) +2 45 H (E) 46 H (F) 47 H (G) 48 H (H) +3
49 H (I) 4AH (J) +4 +5 +6 +7
4BH (K) 4CH (L) 4DH (M) 4EH (N) 4F H (O) 50 H (P)

(b) If SM701 is OFF, everything from the device designated by to the 00H code will be the target of the operation.

41 H (A) 42 H (B) 43 H (C) 44 H (D) +2 45 H (E) 46 H (F) 47 H (G) 48 H (H) +3
49 H (I) 4A H (J) +4 +5 +6 +7
4BH (K) 4CH (L) 00 H (NULL) 4E H (N) 4F H (O) 50 H (P)
(2) The number of points used by the output module is 10 points from the Y address designated
by .
(3) Output signals from the output module are transmitted at the rate of 30 ms per character.
For this reason, the time required to the completion of the transmission of the designated
number of characters (n) will be 30 ms n (ms). At 10 ms interrupt intervals, the PR instruction executes data output, strobe signal ON, and strobe signal OFF. The other instructions are executed continuously during a period between the above processings.
Execution of sequence program PR instruction processing
7.9 Display instructions 7.9.1 Print ASCII code instruction (PR)
10 ms 10 ms 10 ms 10 ms 10 ms
(4) In addition to the ASCII code, the output module also outputs a strobe signal (10 ms ON, 20
ms OFF) from the + 8 device.
(5) Following the execution of the PR instruction, the PR instruction execution flag ( + 9 device) remains ON until the completion of the transmission of the designated number of characters.
(6) The PR and PRC instructions can be used multiple times, but it is preferable to establish an
interlock with the PR instruction execution flag ( + 9 device) so that they will not be ON simultaneously.
(7) If the contents of the device in which ASCII codes are stored changes during the ASCII code
output, the modified data after change will be output.
Data output · Strobe signal OFF · 30 ms

Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
(1) The following program converts the string "ABCDEFGHIJKLMNOP" to ASCII code when X0
is turned ON and stores it from D0 to D7, and then outputs the ASCII code at D0 to D7 to Y14 to Y1D when X3 is turned ON.

When X0 turns ON, converts “ABCDEFGHIJKLMOP” to the ASCII code and stores it to D to D7.
When X3 turns ON, outputs the ASCII code in D0 to D7 to Y14 to Y1D.

Stores the ASCII code for "A" to "H" to D0 to D3.
Stores the ASCII code for "I" to "P" to D4 to D7.

7.9.2 Print comment instruction (PRC)
PRC
Process High performance Redundant Universal Basic
When High Performance model QCPU/Process CPU is used

: Head number of the device which prints the comment (Device name)
: Head number of the output module which outputs the comment (bits)
U \G Zn Constants Other P, I, J, U, Bit Word Bit Word
(1) Outputs comment (ASCII code) at device designated by to output module designated by

The number of characters output differs according to the ON/OFF status of SM701.
7.9 Display instructions 7.9.2 Print comment instruction (PRC)
The number of points used by the output module is 10 points from the Y address designated by .
A B C D E F G H I K K L M n O


(File access completion flag) None of instructions can be executed.
Instructions other than PRC instruction (SP.FREAD, SP.FWRITE, PUNROAD, PLOAD, PSWAPP) can be executed.
(2) Output signals from the output module are transmitted at the rate of 30 ms per character.
For this reason, the time required to the completion of the transmission of the designated
number of characters will be 30 ms n (ms). At 10ms interrupt intervals, the PRC instruction executes data output, strobe signal ON, and strobe signal OFF. The other instructions are executed continuously during a period between the above processings.

10 ms 10 ms 10 ms 10 ms 10 ms
(3) In addition to the ASCII code, the output module also outputs a strobe signal (10 ms ON, 20
ms OFF) from the + 8 device.
(4) Following the execution of the PRC instruction, the PRC instruction execution flag ( + 9 device) remains ON until the completion of the transmission of the designated number of characters. (5) The PRC instruction can be used multiple times, but it is preferable to establish an interlock
with the PRC instruction execution flag ( + 9 device) so that they will not be ON simultaneously.
(6) If no comments have been registered at the device designated by , processing will not be performed. (7) When a comment is read, SM720 turns ON for one scan after the instruction is completed.
SM721 turns ON during the execution of the instruction. The PRC instruction cannot be executed while SM721 is ON. If the attempt is made, no processing is performed.
[Timing Chart]

1. For device comments used with the PRC instruction, use comment files stored in the memory card Standard Rom. Comment files stored in the program memory cannot be used. 2. The comment file used by the PRC instruction is set at the "PLC File Setting" option in the PLC parameter dialog box. If no comment file has been set for use by the PLC file setting, it will not be possible to output device comments with the PRC instruction. 3. Do not execute the PRC instruction during an interrupt program. Otherwise, malfunction may occur.
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
(1) Program which outputs the comment of Y60 to Y30 to Y39 when X0 is turned ON.
[Ladder Mode] [List Mode]

7.9 Display instructions 7.9.2 Print comment instruction (PRC)

7.9.3 Error display and annunciator reset instruction (LEDR)
LEDR
Process High performance Redundant Universal Basic
U \G Zn Constants Other Bit Word Bit Word
Resets the self-diagnosis error display so that annunciator display or operation can be continued. With one execution of this instruction, either error display or annunciator is reset.
(1) Operation when self-diagnosis error is generated
(a) If the self-diagnosis error is one which allows continued operation.
If the self-diagnosis error being displayed is one that will allow continued operation of the CPU module, the "ERROR/ERR." LED or error indication is reset. It will be necessary to reset SM0, SM1, and SD0 at the user program, because they are not reset automatically. Since the cause of the error displayed at this time has a higher priority over annunciator, no action for resetting the annunciator is taken.
(b) When a battery error is generated.
If the LEDR instruction is executed after the battery has been replaced, the "BAT. ARM/ BAT." LED at the front of the CPU module and the error display will be reset. SM51 is also turned OFF at this time.

(2) Operations when an annunciator (F) is ON.
(a) When the CPU module has no LED display
The following operations will be conducted when the LEDR instruction is executed: 1) "USER" LED flickers, and is turned OFF 2) The annunciators (F) stored in SD62 and SD64 are reset, and the F numbers for SD65 to SD79 are moved up. 3) The data newly stored at SD64 is transmitted to SD62. 4) The data at SD63 is decremented by 1. However, if SD63 is 0, it remains 0.
SD62
Number of registered F numbers Decrements 1.
15 200 99 5 255
14 99 5 255
F number storage area
SD78 SD79
(b) For CPUs with an LED display at the front
The following operations will be conducted when the LEDR instruction is executed: 1) The F number being displayed at the front of the CPU module will be reset. 2) "USER" LED flickers, and is turned off. 3) The annunciators (F) stored in SD62 and SD64 are reset, and the F numbers for SD65 to SD79 are compressed forwards. 4) The data newly stored at SD64 is transmitted to SD62.
7.9 Display instructions 7.9.3 Error display and annunciator reset instruction (LEDR)
SD62
F number is not displayed on the LED display unit since SD63 is 0.
Decrements 1.
1 200
0
Number of registered F numbers
SD78 SD79

Remark


7.10 Debugging and failure diagnosis instructions
7.10.1 Special format failure checks (CHKST,CHK)
CHKST,CHK
Process High performance Universal Basic Redundant

Check condition (Only a contact is valid; b contact is ignored)
U \G Zn Constants Other Bit Word Bit Word
7.10 Debugging and failure diagnosis instructions 7.10.1 Special format failure checks (CHKST,CHK)
(1) The CHKST instruction is the instruction that starts the CHK instruction.
If the command for the CHKST instruction is OFF, execution jumps from the CHK instruction to the next instruction. If the command for the CHKST instruction is ON, the CHK instruction is executed.
CHKST
When T0 is OFF, program jumps to the instruction next to the CHK instruction.
Y10
CHK
(1) The CHK instruction is the instruction used for the bidirectional operation as shown on the
following page to confirm the nature of the system failure.
(a) When the CHK instruction is executed, a failure diagnosis check is conducted with the
designated check conditions, and if a failure is detected, SM80 is turned ON, and the failure number is stored at SD80 as a BCD value. The error code "9010" will be returned if a failure is detected. The contact number where the failure was discovered is stored at the upper 3 digits of SD80 (see (3)), and the coil number where the failure was detected (see (2)) is stored at the lower 1 digit of SD80.
At the detection of failure of Contact No.: 62, Coil No.: 3 Before the detection of failure After the detection of failure SM80 SD80
0 0 0 0 SM80 SD80
ON
0 6 2 3

(b) The contact instruction prior to the CHK instruction does not control the execution of the
CHK instruction, but rather sets the check conditions.

Advance end sensor (X0) turns ON at the detection
Retract end sensor (X1) turns ON at the detection
(c) A ladder such as the one shown below can be created to perform a cycle time over check for the system shown above:

When T0 is OFF, program jumps to the instruction next to the CHK instruction.
Turns ON the internal relay used for failure detection.
Turns OFF the internal relay used for failure detection.
(d) The following points should be taken into consideration when creating a ladder for use
with the CHK instruction: 1) The contact numbers for the advance edge detection sensor and the retract edge detection sensor (X ) must always be continuous. Further, the contact number (X ) for the advance edge detection sensor should be lower than that for the retract edge. 2) Controls for the advance edge detection sensor contact number (X ) and output with
the identical number (Y ) *1 are as follows: When advance operation is in progress turn ON When retract operation is in progress turn OFF
*1: Output (Y ) is treated as an internal relay, and cannot be output to an external device.

(2) Depending on the designated contact, the CHK instruction undergoes processing identical
to that shown for the ladder below:
CHK
(Detection by both advance and retraction end sensors during advance operation of the conveyor)
Max. 150 contacts
Coil No. 1
MOV Failure No. 1 SD80
(Detection by both advance and retraction end sensors during retract operation of the conveyor)
Example X X0 X X1 X + 1 Y Y0
SET
SM80
Coil No. 2
Executes the same processing as the ladder indicated above
MOV Failure No. 2 SD80
(Advance operation of the conveyor at the detection by the advance end sensor)
Coil No. 3
MOV Failure No. 3 SD80
(Retract operation of the conveyor at the detection by the retraction end sensor)
Coil No. 4
MOV Failure No. 4 SD80
(Advance operation of the conveyor during no detection by the retraction end sensor)
Coil No. 5
MOV Failure No. 5 SD80
(Retract operation of the conveyer at the detection by the advance end sensor)
Y X Coil No. 6
MOV Failure No. 6 SD80
7.10 Debugging and failure diagnosis instructions 7.10.1 Special format failure checks (CHKST,CHK)
(3) Numbers 1 to 150 from the vertical bus on the left side have been allocated as contact
numbers during failure detection.
X1A X1C
149 150 1 2 3 Contact No.
(4) Reset SM80 and SD80 prior to forcing the execution of the CHK instruction.
After the execution of the CHK instruction, it cannot be performed once again until SM80 and SD80 have been reset. (The contents of SM80 and SD80 will be preserved until reset by user.)
(5) A CHKST instruction must be placed before the CHK instruction.
An error will be returned if an instruction other than the LD, LDI, AND or ANI instruction is used between the CHK instruction and the CHKST instruction. (Error code: 4235)
(6) The CHK instruction can be written at any step of the program.
However, there is a limit in the number of uses of the CHK instruction.

(7) Place LD and AND instructions prior to the CHK instruction to establish a check condition.
Check conditions cannot be set using other contact instructions. If a check condition has been set with LDI or ANI, the processing for the check condition they specify will not be conducted. However, contact numbers during failure detection can also be allocated to the LDI and ANI instructions.
Does not execute check
X7 X9 XA X1A X1C
1 2 3 4 Contact No.
Contact numbers are allocated
(8) The failure detection method differs according to whether SM710 is ON or OFF.
(a) If SM710 is OFF, checks will be conducted of coil numbers 1 to 6 for each contact
successively. When the CHK instruction is executed, checks will be in order from coil No. 1 of contact No. 1, through coil No. 6, then move on to contact No. 2 and check the coils in order from No. 1. The CHK instruction will be completed when coil No. 6 from contact No. n has been checked.
(b) If SM710 is ON, checks will be conducted of contact numbers 1 through n, in coil
number order. When the CHK instruction is executed, checks will begin with the ladder for coil No. 1, in order from contact No. 1 until contact No. n, then move on to the coil No. 2 ladder and begin from contact No. 1. The CHK instruction will be completed when a check has been made through contact No. n of coil No. 6.
(9) If more than one failure is detected, the number of the first failure detected will be stored.
Failure numbers detected after this will be ignored.
(10) The CHK instruction cannot be used by a low speed execution type program.
If a low speed execution type program has been set in a program file containing the CHK instruction, an operation error will be returned, and the CPU module operation will be suspended.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
instruction and the CHKST instruction. (Error code: 4235)

7.10.2 Changing check format of CHK instruction (CHKCIR,CHKEND)
CHKCIR,CHKEND
Process High performance Universal Basic Redundant
When the GX Developer is used (High Performance model QCPU/Process CPU/
Section 7.10.1.
CHK
CHK
SM400
CHKCIR
CHKCIR
Ladder pattern to be checked
Max. 9 coils
CHKEND
CHKEND
7.10 Debugging and failure diagnosis instructions 7.10.2 Changing check format of CHK instruction (CHKCIR,CHKEND)
U \G Zn Constants Other Bit Word Bit Word
(1) The check ladder pattern that will be used in the CHK instruction can be updated to any
format desired. The actual failure checks are conducted with the CHKST and CHK instructions.
(2) Failure checks are conducted according to the check conditions designated by the CHK
instruction and the ladder pattern described between the CHKCIR and CHKEND instructions.
Refer to 7.10.1 for more information on the CHKST and CHK instructions.
To change the check format of the CHK instruction using the CHKCIR to CHKEND instructions, the user should create a ladder with index modification (Z0).

(a) The device numbers indicated at check conditions (X2 and X8 in the figure below) will
assume index modification values for the individual device numbers (with the exception of annunciators (F)) described in the ladder patterns.
X10 in the in the figure below would be as follows:
When corresponding to check condition X2 Processing performed by...X12 When corresponding to check condition X8 Processing performed by...X18
However, the order in which failure detection is executed differs depending on whether SM710 is ON or OFF.
[Ladder designated by CHKCIR to CHKEND] [Order of check by CPU module]

[Ladder designated by CHKCIR to CHKEND] [Order of check by CPU module]


(b) Failure checks check the ON/OFF status of OUT F by using the ladder pattern in the various check conditions.
In all check conditions, SM80 will be turned ON if even one of the OUT F is ON in a ladder pattern. Further, the error numbers (contact numbers and coil numbers) corresponding to the
OUT F which were found to be ON will be stored from SD80 in BCD order.
(c) The instructions that can be used in ladder patterns are as follows: Contacts ...LD, LDI, AND, ANI, OR, ORI, ANB, ORB, MPS, MPP,MRD, and
Coil OUT F
(d) The following devices can be used for ladder pattern contacts:
Input (X), Output (Y)
(e) Only annunciators (F) can be used in ladder pattern coils.
However, since annunciators (F) are used as a dummy, any value can be set for an annunciator (F). Further, they can overlap with no difficulties.
(f) ON/OFF controls can be performed without error if an annunciator (F) used during the execution of the CHK instruction has the same number as an annunciator (F) used in some other context than the CHK instruction. They will be treated differently during the CHK instruction than they are in the different context.
(g) Since the annunciators (F) used in the CHK instruction do not turn ON/OFF actually,
they will not turn ON/OFF if monitored by a peripheral device.
(h) A ladder pattern can be created up to 256 steps.

Further, OUT F can use up to 9 coils.
7.10 Debugging and failure diagnosis instructions 7.10.2 Changing check format of CHK instruction (CHKCIR,CHKEND)
(3) Coil numbers for ladders designated with the CHKCIR through CHKEND instructions are
allocated coil numbers from 1 to 9, from top to bottom.
comparative operation instructions

(4) The CHKCIR and CHKEND instructions can be written at any step in the program desired.
It can be used in up to two locations in all program files being executed. However, the CHKCIR and CHKEND instructions cannot be used in more than 1 location in a single program file.
(5) The CHKCIR and CHKEND instructions cannot be used in low speed execution type
programs.
If a program file in which the CHKCIR or CHKEND instruction is described is set as a low speed execution type program, an operation error will occur, and the High Performance model QCPU/Process CPU/Redundant CPU operation will be suspended.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.

7.11 Character string processing instructions
7.11.1 Conversion from BIN 16-bit or 32-bit to decimal ASCII (BINDA(P),DBINDA(P))
BINDA(P),DBINDA(P)
Process High performance Redundant Universal Basic
indicates an instruction symbol of BINDA/DBINDA.
S D BINDAP, DBINDAP
P
: BIN data to be converted to ASCII (BIN 16/32 bits)
: Head number of the devices where the conversion result will be stored (character string)
U \G Zn Constants
K, H Other Bit Word Bit Word
7.11 Character string processing instructions 7.11.1 Conversion from BIN 16-bit or 32-bit to decimal ASCII (BINDA(P),DBINDA(P))
(1) Converts the individual digit numbers of decimal notation of the BIN 16-bit data designated
by into ASCII codes, and stores the results into the area starting from the device
designated by .
b15 b8 b7 b0
Sign ASCII code for ten-thousands place
D Only when SM701 is OFF
ASCII code for thousands place ASCII code for hundreds place
ASCII code for tens place ASCII code for units place +3
BIN 16-bit data 0
For example, if 12345 has been designated at , the following will be stored from onward:
b15 b8 b7 b0
2DH ( ) 31H (1) 32H (2) 33H (3)
1 2 3 4 5
00 H +3
(2) The BIN data designated at can be in the range from 32768 to 32767.

(3) The operation results stored at are as follows:
(a) The sign "20H" will be stored if the BIN data is positive, and the sign "2DH" will be stored
if it is negative.
(b) The sign "20H" will be stored for the leading zeros of effective digits. (Zero suppression
is conducted.)
0 0 3 2 5
Number of significant digits
20H is set
(c) The storage of data at devices specified by +3 differs depending on the ON/OFF status of SM701 (output number of characters conversion signal).
When SM701 is OFF Stores "0" When SM701 is ON Does not change
(1) Converts the individual digit numbers of decimal notation of the BIN 32-bit data designated
by into ASCII codes, and stores the results into the area starting from the device

ASCII code for hundred-millions place ASCII code for ten-millions place
ASCII code for millions place ASCII code for hundred-thousands place
ASCII code for ten-thousands place ASCII code for thousands place +3
ASCII code for hundreds place ASCII code for tens place
ASCII code for units place 0 or 20 H
For example, if the value 12345678 has been designated by , the following would be
2DH ( ) 20H (space) 20 H (space) 31H (1)
+1 12 3 4 5 6 7 8 S S
+2 32H (2) 33H (3) 34H (4) 35H (5) +3
36H (6) 37H (7) 38H (8) 0 or 20H
(2) BIN data designated by can be between 2147483648 to 2147483647.
(3) The operations results stored at will be stored in the following way:
(a) The sign "20H" will be stored if the BIN data is positive, and the sign "2DH" will be stored
if it is negative.
(b) The sign "20H" will be stored for the leading zeros of effective digits. (Zero suppression
is conducted.)
0 0 1 2
0 3 4 5 6 0
Number of significant digits 20H
(c) The data stored at the upper 8 bits of the device designated by +5 differs depending on the ON/OFF status of SM701 (number of characters to output select signal).
When SM701 is OFF Stores "0" When SM701 is ON Stores "20H"

Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
(1) The following example program uses the PR instruction to output the 16-bit BIN data W0
value by decimal to Y40 to Y48 as ASCII.
[Ladder Mode] [List Mode]

[Operation] Conducts ASCII output of Y40 to Y48 by using the PR instruction when X0 goes ON. Because SM701 is OFF, the PR instruction will output ASCII code until 00H is encountered.

20 H(space) 20H(space) 35 H (5) 31H (1)
7.11 Character string processing instructions 7.11.1 Conversion from BIN 16-bit or 32-bit to decimal ASCII (BINDA(P),DBINDA(P))
(2) The following program uses the PR instruction to output the decimal value of the 32-bit BIN
data at W10 and W11 in ASCII code to Y40 to Y48.
[Operation] Conducts ASCII output of Y40 to Y48 by using the PR instruction when X0 goes ON. Because SM701 is OFF, the PR instruction will output ASCII code until 00H is encountered.
2D H ( ) 20 H(space) 20 H(space) 20 H(space)
is output. 3 8 4 2 5 6 3 W11
34 H (4) 32 H (2) 35 H (5) 36 H (6) 33 H (3) 00 H

7.11.2 Conversion from BIN 16-bit or 32-bit data to hexadecimal ASCII (BINHA(P),DBINHA(P))
BINHA(P),DBINHA(P)
Process High performance Redundant Universal Basic

: BIN data to be converted to ASCII (BIN 16/32 bits)
: Head number of the devices where the conversion result will be stored (character string)
(1) Converts the individual digit numbers of hexadecimal notation of the BIN 16-bit data
designated by into ASCII codes, and stores the results into the area starting from the

ASCII code for the 4th digit ASCII code for the 3rd digit
ASCII code for the 2nd digit ASCII code for the 1st digit
For example, if 02A6H has been designated by , it will be stored as follows:
30H (0) 32H (2) 41H (A) 36H (6)
(2) The BIN data designated by can be in the range from 0H to FFFFH.
(3) The operation results stored at are processed as 4-digit hexadecimal values.
For this reason, zeros which are significant digits on the left side of the value are processed as "0". (No zero suppression is conducted.)
(4) The data to be stored at the device designated by +2 differs depending on the ON/OFF status of SM701 (number of characters to output select signal).
When SM701 is OFF Stores "0" When SM701 is ON Does not change

DBINHA
(1) Converts the individual digit numbers of hexadecimal notation of the BIN 32-bit data
designated by into ASCII codes, and stores the results into the area starting from the

ASCII code for the 8th digit ASCII code for the 7th digit
S D (Only when SM701 is OFF)
ASCII code for the 6th digit ASCII code for the 5th digit
+2 ASCII code for the 4th digit ASCII code for the 3rd digit
ASCII code for the 2nd digit ASCII code for the 1st digit +3
For example, if the value 03AC625EH has been designated by , it would be stored
30H (0) 33H (3) 41H (A) 43H (C)
+2 36H (6) 32H (2) 35H (5) 45H (E) +3
(2) The BIN data designated by can be in the range from 0H to FFFFFFFFH.
(3) The operation results stored at are processed as 8-digit hexadecimal values.
For this reason, zeros which are significant digits on the left side of the value are processed as "0". (No zero suppression is conducted.)
(4) The data to be stored at the device designated by +2 differs depending on the ON/OFF status of SM701 (number of characters to output select signal).
When SM701 is OFF Stores "0" When SM701 is ON Does not change

7.11 Character string processing instructions 7.11.2 Conversion from BIN 16-bit or 32-bit data to hexadecimal ASCII (BINHA(P),DBINHA(P))
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

Program Example
(1) The following program uses the PR instruction to output the hexadecimal value of the 16-bit
BIN data at W0 in ASCII code to Y40 to Y48.
[Ladder Mode] [List Mode]

[Operation] Conducts ASCII output of Y40 to Y48 by using the PR instruction when X0 goes ON. Because SM701 is OFF, The PR instruction will output ASCII code until 00H is encountered.
D0 W0
39H (9) 43H (C) 30H (0) 36H (6)
Y40 to Y48 Outputs "9C06"
(2) The following program uses the PR instruction to output the hexadecimal value of the 32-bit
BIN data at W10 and W11 to Y40 to Y48.
[Ladder Mode] [List Mode]

[Operation] Conducts ASCII output of Y40 to Y48 by using the PR instruction when X0 goes ON. Because SM701 is OFF, The PR instruction will output ASCII code until 00H is encountered.

37H (7) 42H (B) 33H (3) 43H (C)
7 B 3 C 5 8 1 FH W11 W10 PR
31H (1) 46H (F) 00H D4
b15 b8b7 b0 · BIN value

7.11.3 Conversion from BCD 4-digit and 8-digit to decimal ASCII data (BCDDA(P),DBCDDA(P))
BCDDA(P),DBCDDA(P)
Process High performance Redundant Universal Basic

: BCD data to be converted to ASCII (BCD 4 digits/8 digits)
: Head number of the devices where the conversion result will be stored (character string)
7.11 Character string processing instructions 7.11.3 Conversion from BCD 4-digit and 8-digit to decimal ASCII data (BCDDA(P),DBCDDA(P))
(1) Converts the individual digit numbers of hexadecimal notation of the BCD 4-digit data
designated by into ASCII codes, and stores the results into the area starting from the
device designated by .
b15 b8 b7 b0
b15 b12 b8 b11 b7 b4 b0 b3 ASCII code for thousands place
ASCII code for hundreds place
+1 +2 Thousands place
ASCII code for units place
ASCII code for tens place
Only when SM701 is OFF
For example, when "9105" is designated for , the results of the operation are stored into
the area starting from in the following manner:
b15 b8b7 b0 39H (9) 31H (1) 30H (0) 35H (5) 00H
b15 b12 b8 b11 b7 b4 b0 b3
9 1 0 5 +1 +2
(2) The BCD data designated by can be in the range of from 0 to 9999.
(3) The results of calculation stored in the device . All zeros on the left side of the "Number of significant digits" are zero-suppressed.
0 0 5 0
Number of significant digits 20H
Hundreds place · Tens place · Units place

(4) The data to be stored at the device designated by +2 differs depending on the ON/OFF status of SM701 (number of characters to output select signal).
When SM701 is OFF Stores "0" When SM701 is ON Does not change
(1) Converts the individual digit numbers of hexadecimal notation of the BCD 8-digit data
designated by into ASCII codes, and stores the results into the area starting from the

ASCII code for ten-millions place ASCII code for millions place
b31 b28 b24 b27 b16 b19 b23 b20 b15 b12 b0 b3 b7 b4 b8 b11
ASCII code for thousands place ASCII code for hundreds place
ASCII code for tens place ASCII code for unit place
For example, if the value 01234056 is designated by , the operation result would be
20H 31H (1) 32H (2) 33H (3)
b31 b28 b24 b27 b16 b19 b23 b20 b15 b12 b7 b4
b0 b3 b8 b11 0 1 2 3 4 0 5 6
34H (4) 30H (0) 35H (5) 36H (6) 00H
(2) The BCD data designated by can be in the range of 0 to 99999999.
(3) The results of calculation stored in the device . All zeros on the left side of the "Number of significant digits" are zero-suppressed.
0 0 0 1
2 0 9 8
Number of significant digits
(4) The data to be stored at the device designated by +4 differs depending on the ON/OFF status of SM701 (number of characters to output select signal).
When SM701 is OFF Stores "0" When SM701 is ON Does not change
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.

Program Example
(1) The following program uses the PR instruction to convert BCD 4-digit data (the value at W0)
to decimal, and outputs it in ASCII format to Y40 to Y48.
[Ladder Mode] [List Mode]

[Operation] Conducts ASCII output of Y40 to Y48 by using the PR instruction when X0 goes ON. Because SM701 is OFF, The PR instruction will output ASCII code until 00H is encountered.
31H (1) 32H (2) 39H (9) 35H (5)
Y40 to Y48 1 Outputs "1295" 2 9 5
00 H
(2) The following program uses the PR instruction to convert BCD 8-digit data (the values at
W10 and W11) to decimal, and outputs it in ASCII format to Y40 to 48.
[Ladder Mode] [List Mode]

7.11 Character string processing instructions 7.11.3 Conversion from BCD 4-digit and 8-digit to decimal ASCII data (BCDDA(P),DBCDDA(P))
[Operation] Conducts ASCII output of Y40 to Y48 by using the PR instruction when X0 goes ON. Because SM701 is OFF, The PR instruction will output ASCII code until 00H is encountered.
33H (3) 35H (5) 34H (4) 37H (7)
Y40 to Y48 Outputs "35478352" 5 4 7 8 3 5 2
35H (5) 32H (2) 00H D4
b15 b8b7 b0 · BCD value

7.11.4 Conversion from decimal ASCII to BIN 16-bit and 32-bit data (DABIN(P),DDABIN(P))
DABIN(P),DDABIN(P)
Process High performance Redundant Universal Basic

: ASCII data to be converted to BIN value or head number of the devices where the ASCII data is stored

: Head number of the devices where the conversion result will be stored (BIN 16/32 bits)
(1) Converts decimal ASCII data stored into the area starting from the device number
designated by into BIN 16-bit data, and stores it in the device number designated by .

ASCII code for tens place ASCII code for units place
For example, if the ASCII code " 25108H" is specified for the area starting from , the conversion result is stored at as shown below:
2DH ( ) 32H (2) 35H (5) 31H (1)
(2) The ASCII data designated by from to +2 can be in the range of from 32768 to 32767
(3) The sign "20H" will be stored if the BIN data is positive, and the sign "2DH" will be stored if it
is negative.
(If other than "20H " and "2DH" is set, it will be processed as positive data.)
(4) ASCII code can be set for each position within the range from "30H" to "39H".
(5) If the ASCII code set for individual positions is "20H" or "00H," it will be processed as "30H".
(character string)

DDABIN
(1) Converts decimal ASCII data stored into the area starting from the device number
designated by into BIN 32-bit data, and stores it in the device number designated by .

ASCII code for hundred-millions place ASCII code for ten-millions place
+2 ASCII code for millions place ASCII code for hundred-thousands place
ASCII code for ten-thousands place ASCII code for thousands place +3
ASCII code for hundreds place ASCII code for tens place
For example, if the ASCII code of 1234543210H is designated for the area starting from
, the operation result would be stored at +1 and in the following manner:
2DH ( ) 31H (1) 32H (2) 33H (3)
+2 34H (4) 35H (5) 34H (4) 33H (3) +3
32H (2) 31H (1) 30H (0) +4 +5
(2) The ASCII data designated by to +5 can be in the range of from 2147483648 to 2147483647.
Further, data stored at the upper bytes of +5 will be ignored.
(3) The sign "20H" will be stored if the BIN data is positive, and the sign "2DH" will be stored if it
is negative.
(If other than "20H " and "2DH" is set, it will be processed as positive data.)
(4) ASCII code can be set for each position within the range from "30H" to "39H".

(5) If the ASCII code set for individual positions is "20H" or "00H," it will be processed as "30H".
7.11 Character string processing instructions 7.11.4 Conversion from decimal ASCII to BIN 16-bit and 32-bit data (DABIN(P),DDABIN(P))
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
When DABIN instruction is used 32768 to 32767

Program Example
(1) The following program converts the decimal, 5-digit ASCII data and sign set at D20 through
D22 to BIN values, and stores the result at D0.
[Ladder Mode] [List Mode]

2DH ( ) 20H (space) 20H (space) 32H (2)
(2) The following program converts the decimal, 10-digit ASCII data and sign set at D20 through
D25 to BIN values and stores the result at D10 and D11.
[Ladder Mode] [List Mode]

20H (space) 20H (space) 20H (space) 20H (space)
36H (6) 38H (8) 33H (3) 37H (7) 30H (0) D24 D25

7.11.5 Conversion from hexadecimal ASCII to BIN 16-bit and 32-bit data (HABIN(P),DHABIN(P))
HABIN(P),DHABIN(P)
Process High performance Redundant Universal Basic

: ASCII data to be converted to BIN value or head number of the devices where the ASCII data is stored
: Head number of the devices where the conversion result will be stored (BIN 16/32 bits)
U \G Zn Constants
$ Other Bit Word Bit Word
7.11 Character string processing instructions 7.11.5 Conversion from hexadecimal ASCII to BIN 16-bit and 32-bit data (HABIN(P),DHABIN(P))
(1) Converts hexadecimal ASCII data stored in the area starting from the device number
designated by into BIN 16-bit data, and stores it in the device number designated by .
b15 b8b7 b0 S S
ASCII code for the 4th digit ASCII code for the 3rd digit
BIN 16 bits +1
ASCII code for the 2nd digit ASCII code for the 1st digit
For example, if the ASCII code of 5A8DH is designated for the area starting from , the operation result would be stored at in the following manner:
35H (5) 41H (A) 38H (8) 44H (D)
(2) The ASCII data designated by to +1 can be in the range of from 0000H to FFFFH.
(3) The ASCII codes can be in the range of "30H" to "39H" and from "41H" to "46H".

DHABIN
(1) Converts hexadecimal ASCII data stored in the area starting from the device number
designated by into BIN 32-bit data, and stores it in the device number designated by .

ASCII code for the 8th digit ASCII code for the 7th digit
ASCII code for the 6th digit ASCII code for the 5th digit
+2 ASCII code for the 4th digit ASCII code for the 3rd digit
ASCII code for the 2nd digit ASCII code for the 1st digit +3
For example, if the ASCII code of 5CB807E1H is designated for the area starting from ,
the operation result would be stored at +1 and in the following manner:
35H (5) 43H (C) 42H (B) 38H (8)
30H (0) 37H (7) 45H (E) 31H (1)
(2) The ASCII data designated by to +3 can be in the range of from 00000000H to FFFFFFFFH.
(3) The ASCII codes can be in the range of "30H" to "39H" and from "41H" to "46H".
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.

Program Example
(1) The following program converts the hexadecimal, 4-digit ASCII data set at D20 and D21 to
BIN data, and stores the result at D0.
[Ladder Mode] [List Mode]

41H (A) 36H (6) 33H (3) 46H (F)
(2) The following program converts the hexadecimal, 8-digit ASCII data set at D20 to D23 to
BIN values, and stores the result at D10 and D11.
[Ladder Mode] [List Mode]

34H (4) 46H (F) 44H (D) 32H (2)
38H (8) 37H (7) 35H (5) 30H (0) D22 D23
7.11 Character string processing instructions 7.11.5 Conversion from hexadecimal ASCII to BIN 16-bit and 32-bit data (HABIN(P),DHABIN(P))
Regarded as 4FD28750H (1339197264 in decimal value) 4FD28750

7.11.6 Conversion from decimal ASCII to BCD 4-digit or 8-digit data (DABCD(P),DDABCD(P))
DABCD(P),DDABCD(P)
Process High performance Redundant Universal Basic

: ASCII data to be converted to BCD value or head number of the devices where the ASCII data is stored

: Head number of the devices where the conversion result will be stored (BCD 4 digits/8 digits)
(1) Converts decimal ASCII data stored in the area starting from device number designated by

into 4-digit BCD data, and stores at device number designated by .
b15 b12 b8 b11 b7 b4 b0 b3 b15 b8b7 b0
ASCII code for units place S S D ASCII code for tens place
For example, if the ASCII code of 8765H is designated for the area starting from , the operation results would be stored at in the following manner:
8 7 6 5 b15 b12 b8 b11 b7 b4 b0 b3 38H (8) 37H (7) 36H (6) 35H (5)
(2) The ASCII data designated by to +1 can be in the range of from 0 to 9999.
(3) The ASCII code set at each digit can be in the range of from "30H" to "39H".
(4) If ASCII code for individual digits is "20H" or "00H", it is processed as "30H".
(character string)

DDABCD
(1) Converts decimal ASCII data stored in the area starting from the device designated by to

8-digit BCD data, and stores it into the area starting from the device designated by .
ASCII code for ten-millions place ASCII code for millions place
b31 b28 b24 b27 b16 b19 b23 b20 b15 b12 b0 b3 b7 b4 b8 b11
ASCII code for thousands place ASCII code for hundreds place
ASCII code for tens place ASCII code for units place
For example, if the ASCII code of 87654321H is designated for the area starting from , the
operation results would be stored at +1 and in the following manner:
38H (8) 37H (7) 36H (6) 35H (5)
b31 b28 b24 b27 b16 b19 b23 b20 b15 b12
34H (4) 33H (3) 32H (2) 31H (1)
(2) The ASCII data designated at to +3 can be in the range of from 0 to 99999999.
(3) The ASCII code set at each digit can be in the range of from "30H" to "39H".
(4) If ASCII code for individual digits is from "20H" to "00H", it is processed as "30H".
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

7.11 Character string processing instructions 7.11.6 Conversion from decimal ASCII to BCD 4-digit or 8-digit data (DABCD(P),DDABCD(P))

Program Example
(1) The following program converts the decimal ASCII data set from D20 to D22 to BCD
4-digit data, and outputs the results to Y40 to Y4F.
Outputs the converted BCD value to a display device.
b15 b8b7 b0 D20
20H(space) 34H (4) 39H (9) 34H (4)
(2) The following program converts the decimal ASCII data set at D20 to D23 into 8-digit BCD
data, stores the result at D10 and D11, and also outputs it to from Y40 to Y5F.

Outputs the converted BCD value to a display device.

20H(space) 34H (4) 39H (9) 37H (7)
0 4 9 7 2 9 4 9 D11 D10 Y5F Y50Y4F Y40 DMOV
0 4 9 7 2 9 4 9 Regarded as 04972949

7.11.7 Reading device comment data (COMRD(P))
COMRD(P)
Process High performance Redundant Universal Basic
COMRDP S D
COMRDP
: Head number of the devices where a comment to be read is stored (Device name)
: Head number of the devices where the read comment will be stored (character string)
BL \ S,BL
R, ZR
U \G Zn Constants
P,I,J,U Bit Word Bit Word
––
(1) Reads the comment at the device number designated by , and stores it as ASCII code in the area starting from the device number designated by .
7.11 Character string processing instructions 7.11.7 Reading device comment data (COMRD(P))
ASCII code for the 1st character ASCII code for the 2nd character
ASCII code for the 3rd character ASCII code for the 4th character
Comment at device number designated by
ASCII code for the 5th character ASCII code for the 6th character
ASCII code for the 7th character ASCII code for the 8th character
Stores up to 32 characters
ASCII code for the 29th character ASCII code for the 30th character
ASCII code for the 31st character ASCII code for the 32nd character
For example, if the comment for the device designated by were "NO. 1 LINE START," the operation results would be stored following as follows:
4EH (N) 4FH (O) 2EH (.) 31H (1)
+2 20H (space)
+3 +4 +5 +6 +7
4EH (N) 49H (I) 20H (space) 45H (E) 54H (T) 53H (S) 52H (R) 41H (A) 54H (T)
00H +15 D 20H (space) 20H (space)

(2) If no comment has been registered for the device specified by despite the fact that the comment range setting is made, all of the characters for the comment are processed as "20H" (space).
(3) The device number plus 1 where the final character of is stored differs depending on the ON/OFF status of SM701 (number of characters to output select signal).
(4) When a comment is read, SM720 turns ON for one scan after the instruction is completed.
SM721 turns ON during the execution of the instruction. While SM721 is ON, the COMRD(P) instruction cannot be executed. If the attempt is made, no processing is performed.
1. The device comment used in the COMRD(P) instruction uses a comment file stored in a memory card and the standard ROM. Comment files stored in the program memory cannot be used. 2. Set the comment file used for the COMRD(P) instruction in "PLC file setting" in the PLC parameter dialog box. If the comment file to be used is not set in the PLC file setting, device comments cannot be output with the COMRD(P) instruction. 3. The COMRD(P) instruction cannot be executed during the interrupt program. No operation if executed.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.

Program Example
(1) The following program stores the comments set at D100 into the area starting from W0 as
ASCII when X1C is turned ON.
[Ladder Mode] [List Mode]


49H (I) 4EH (N) 20H (space) 20H (space)
54H (T) 57H (G) 52H (R) 55H (E)
20H (space) 20H (space) 20H (space)

7.11 Character string processing instructions 7.11.7 Reading device comment data (COMRD(P))
(2) The COMRD(P)/PRC instruction is not executed if the start signal (execution command) of
the COMRD(P)/PRC instruction is turned ON before completion of the instruction (while SM721 is ON). Execute the COMRD(P)/PRC instruction when SM721 is OFF.
(3) Two or more file comments cannot be accessed simultaneously.
(4) The following instructions cannot be executed simultaneously because they use SM721 in
Designated by instruction. (Device designated by instruction) + 1
[Operation]

7.11.8 Character string length detection (LEN(P))
LEN(P)
Process High performance Redundant Universal Basic

: Character string or head number of the devices where the character string is stored (character string)
: Number of the device where the length of detected character string will be stored (BIN 16 bits)
(1) Detects length of character string designated by and stores in the area starting from the
device number designated by .
Processes the data from the device number designated by to the device number storing "00H" as a character string.

For example, when the value "ABCDEFGHI" is stored in the area starting from , the value
41H (A) 42H (B) 43H (C) 44H (D)
45H (E) 46H (F) +2 +3 +4
47H (G) 48H (H) 49H (I) 00H

Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
(1) The following program outputs the length of the character string from D0 to Y40 to Y4F as
BCD 4-digit values.

Outputs the length of character string to a display device.

4DH (M) 49H (I) 54H (T) 53H (S)
7.11 Character string processing instructions 7.11.8 Character string length detection (LEN(P))
"MITSUBISHI" (Characters "ABC" that follow 00H are ignored)
48H (H) 49H (I) 00H B1H (A)

7.11.9 Conversion from BIN 16-bit or 32-bit to character string (STR(P),DSTR(P))
STR(P),DSTR(P)
Process High performance Redundant Universal Ver. Basic
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

: Head number of the devices where the digits numbers for the numerical value to be converted are stored
: BIN data to be converted (BIN 16/32 bits)
: Head number of the devices where the converted character string will be stored (character string)
STR (1) Adds a decimal point to the BIN 16-bit data designated by at the location designated by , converts the data to character string data, and stores it in the area starting from the device number designated by .

ASCII code for the (total number of digits -1) th digit
ASCII code for the (total number of digits -3) th digit
ASCII code for the (total number of digits -2) th digit
ASCII code for the (total number of digits -5) th digit
ASCII code for the (total number of digits -4) th digit
ASCII code for the (total number of digits -7) th digit
ASCII code for the (total number of digits -6) th digit
Automatically stored at the end of the character string
31 H (1) 32H (2) 2EH (.)
33H (3) 00H +1 1 2 3

(2) The total number of digits that can be designated by is from 2 to 8.
(3) The number of digits that can be designated by +1 as a part of the decimal fraction is from 0 to 5.
However, the number of digits following the decimal point must be smaller than or equal to the total number of digits minus 3.
(4) BIN data in the range between 32768 and 32767 can be designated at .
(5) After conversion, character string data is stored at the device number or later device number as indicated below:
(a) The sign "20H" (space) will be stored if the BIN data is positive, and the sign "2DH"
(minus sign) will be stored if it is negative.
(b) If the setting for the number of digits after the decimal fraction is anything other than "0",
"2EH" (.) will automatically be stored at the position before the first of the specified number of digits.

Total number of digits Number of digits in decimal fraction
Number of digits in decimal fraction 1 2 3 4
If the number of digits in the decimal fraction part of the number is "0", the ASCII code "2EH" (.) will not be stored.
(c) If the total number of digits following the decimal fraction is greater than the number of BIN data digits, a zero will be added automatically and the number converted by shifting

to the right, so that it would become "0. ".
Total number of digits Number of digits in decimal fraction
7.11 Character string processing instructions 7.11.9 Conversion from BIN 16-bit or 32-bit to character string (STR(P),DSTR(P))
(d) If the total number of digits excluding the sign and the decimal point is greater than the
number of BIN data digits, "20H" (space) will be stored between the sign and the numeric value.
Total number of digits Number of digits in decimal fraction
If the number of BIN digits is greater, an error will be returned.
(e) The value "00H" is automatically stored at the end of the converted character string.

DSTR
(1) Adds a decimal point to the BIN 32-bit data designated by at the location designated by
, converts the data to character string data, and stores it following the device number
designated by .
Total number of digits
Number of digits in decimal fraction +1
ASCII code for the (total number of digits -1) th digit
ASCII code for the sign
ASCII code for the (total number of digits -3) th digit ASCII code for the (total number of digits -5) th digit ASCII code for the (total number of digits -7) th digit
ASCII code for the (total number of digits -2) th digit ASCII code for the (total number of digits -4) th digit ASCII code for the (total number of digits -6) th digit
Designated total number of digits
ASCII code for the (total number of digits -9) th digit
ASCII code for the (total number of digits -8) th digit ASCII code for the (total number of digits -10) th digit
Automatically stored at the end of the character string
2DH ( ) 36H (6) 35H (5) 34H (4)
+4 +3 +2 +1
6 5 4 3 2 1
33H (3) 32H (2) 31H (1)
S2 S2
00 H
6 5 4 3 2 1
(2) The total number of digits that can be designated by is from 2 to 13.
(3) The number of digits that can be designated by +1 as a part of the decimal fraction is from 0 to 10.
However, the number of digits following the decimal point must be smaller than or equal to the total number of digits minus 3.
(4) The BIN data that can be designated by and +1 is within the range of from 2147483648 to 2147483647.
(5) After conversion, character string data is stored at the device number following as indicated below:
(a) The sign "20H" (space) will be stored if the BIN data is positive, and the sign "2DH"
(minus sign) will be stored if it is negative.
(b) If the setting for the number of digits after the decimal fraction is anything other than "0",
"2EH" (.) will automatically be stored at the position before the first of the specified number of digits.
Total number of digits Number of digits in decimal fraction

1 2 3 4 5 . 6 7 8
2 3 4 5 6 7 8 Number of digits in decimal fraction
If the number of digits in the decimal fraction part of the number is "0", the ASCII code "2EH" (.) will not be stored.

(c) If the total number of digits following the decimal fraction is greater than the number of BIN data digits, a zero will be added automatically and the number converted by shifting
to the right, so that it would become "0. ".

Total number of digits Number of digits in decimal fraction
13 10 0 . 0 5 4 3 2 1
(d) If the total number of digits excluding the sign and the decimal point is greater than the
number of BIN data digits, "20H" (space) will be stored between the sign and the numeric value.
Total number of digits Number of digits in decimal fraction
13 2 5 4 3 2 . 1 0
5 4 3 2 1 0
Filled with 20H (space) codes
If the number of BIN digits is greater, an error will be returned.
(e) The value "00H" is automatically stored at the end of the converted character string.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(Error code: 4100) When the STR instruction is in use 2 to 8 When the DSTR instruction is in use 2 to 13
7.11 Character string processing instructions 7.11.9 Conversion from BIN 16-bit or 32-bit to character string (STR(P),DSTR(P))
digits in the decimal fraction designated by +1 is not as shown below:
(Error code: 4100) Total number of digits minus 3 is equal to or larger than the number of digits in the decimal
fraction.
data, designated by ".
(Number of digits of < Number of digits of the BIN data at without a sign + Number of digits of a sign (+ or -) + Number of digits of decimal point (.)) (Error code: 4100)
BIN data

Program Example
(1) The following program converts the BIN 16-bit data stored at D10 when X0 is turned ON in
accordance with the digit designation of D0 and D1, and stores the result from D20 to D23.


20H (space) 31H (1) 32H (2) 36H (6)

(2) The following program converts the BIN 32-bit data stored at D10 and D11 when X0 is
turned ON in accordance with the digit designation of D0 and D1, and stores the result at from D20 to D26.


20H (space) 30H (0) 2EH (.) 30H (0)
12 9 D0 D1 33H (3) 34H (4) 35H (5) 36H (6) 37H (7) 38H (8) D24 D25 D26
7.11 Character string processing instructions 7.11.9 Conversion from BIN 16-bit or 32-bit to character string (STR(P),DSTR(P))

7.11.10 Conversion from character string to BIN 16-bit or 32-bit data (VAL(P),DVAL(P))
VAL(P),DVAL(P)
Process High performance Redundant Universal Ver. Basic
(Correspording GX Seveloper :Version 8.00 A or later).

: Character string to be converted to BIN data or head number of the devices where the character string is

: Head number of the devices where the number of digits of the converted BIN data will be stored (BIN 16 bits)
: Head number of the devices where the converted BIN data will be stored (BIN 16/32 bits)
(1) Converts character strings stored in the device numbers starting from that designated at
to BIN 16-bit data, and stores the number of digits and BIN data in and .
For conversions from character strings to BIN, all data from the device number designated
by to the device number where "00H" is stored will be processed as character strings.

Total number of digits Number of digits in decimal fraction
ASCII code for the sign ASCII code for the 1st character
ASCII code for the 6th character ASCII code for the 7th character +4 +3 +2 +1
ASCII code for the 2nd character ASCII code for the 3rd character
stored (character string)

For example, if the character string " 123.45" is designated for the area starting from ,

the operation result would be stored at and in the following manner:
+1 2DH ( ) 31H (1) 32 H (2) 33H (3)
2EH (.) 34H (4) 35 H (5) 00H +3 +2 +1
(2) The total number of characters that can be designated as a character string at is from 2 to 8.
(3) From 0 to 5 characters from the character string designated at can become the decimal fraction part.
However, this number must not exceed the total number of digits minus 3.
(4) The range of the numerical character string that can be converted to BIN value is from
32768 to 32767, ignoring a decimal point.
Numerical value character strings, excluding the sign and the decimal point, can be designated only within the range from "30H" to "39H". The value ignoring a decimal point means:
: " 12345.6" " 123456"
(5) The sign "20H" will be stored if the numerical value is positive, and the sign "2DH" will be
stored if it is negative.
(6) "2EH" is set for the decimal point.
(7) The total number of digits stored at amounts to all characters expressing numerical values (including signs and decimal points).
The characters following the decimal point stored at +1 include the number of characters from "2EH" (.) onward.

7.11 Character string processing instructions 7.11.10 Conversion from character string to BIN 16-bit or 32-bit data (VAL(P),DVAL(P))
The BIN data stored at is the character string ignoring the decimal point that has been converted to BIN data.
(8) In cases where the character string designated by contains "20H" (space) or "30H" (0) between the sign and the first numerical value other than "0", these "20H" and "30H" are ignored in the conversion into a BIN value.
Total number of digits Number of digits in decimal fraction
Total number of digits Number of digits in decimal fraction

DVAL
(1) Converts the character string stored in the area starting from the device designated by to
BIN 32-bit data, and stores the digits numbers and BIN data in and .
For conversions from character strings to BIN, all data from the device number designated
by to the device number where "00H" is stored will be processed as character strings.

ASCII code for the sign ASCII code for the 1st character
ASCII code for the 2nd character ASCII code for the 3rd character
ASCII code for the 6th character ASCII code for the 7th character
ASCII code for the 8th character ASCII code for the 9th character
ASCII code for the 10th character ASCII code for the 11th character
2D H( ) 31H (1) 32H (2) 33H(3)
34H (4) 35H(5) 2EH (.) 36H(6) 37H (7) 38H(8) .
(2) The total number of characters in the character string indicated by is from 2 to 13.
(3) From 0 to 10 characters in the character string indicated by can be the decimal fraction part.
However, this number must not exceed the total number of digits minus 3.
(4) The range of the numerical character string that can be converted to BIN value is from
2147483648 to 2147483647, excluding the decimal point.
Numerical value character strings, excluding the sign and the decimal point, can be designated only within the range from "30H" to "39H".
(5) The sign "20H" will be stored if the numerical value is positive, and the sign "2DH" will be
stored if it is negative.
(6) "2EH" is set for the decimal point.
(7) The total number of digits stored at D1 amounts to all characters expressing numerical
values (including signs and decimal points).
The characters following the decimal point stored at +1 include the number of characters from "2EH" (.) onward.
The BIN data stored at is the character string ignoring the decimal point that has been converted to BIN data.

(8) In cases where the character string designated by contains "20H" (space) or "30H" (0) between the sign and the first numerical value other than "0", these "20H" and "30H" are ignored in the conversion into a BIN value.
Total number of digits Number of digits in decimal fraction
6 5 4 3 . 2 1
6 5 4 3 2 1
Total number of digits Number of digits in decimal fraction
0 5 4 3 2 1
5 4 3 2 1
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
designated by falls outside the ranges shown below: (Error code: 4100) When VAL instruction is in use 0 to 5 When DVAL instruction is in use 0 to 10
7.11 Character string processing instructions 7.11.10 Conversion from character string to BIN 16-bit or 32-bit data (VAL(P),DVAL(P))
digit for one of the individual numbers. (Error code: 4100)
When VAL instruction is in use 32768 to 32767
When DVAL instruction is in use 2147483648 to 2147483647

Program Example
(1) The following program reads the character string data stored from D20 to D22 as an integer,
converts it to a BIN value, and stores it at D0 when X0 is ON.
[Ladder Mode] [List Mode]

2DH ( ) 31H (1) 36H (6) 2EH (.)
Total number of digits Number of digits in decimal fraction
(2) The following program reads the character string data stored from D20 to D24 as an integer,
converts it to a BIN value, and stores it at D0 when X0 is ON.
[Ladder Mode] [List Mode]


7 9 1 0 0 6 1 1 D1 D0
20H (space) 37H (7) 39H (9) 31H (1)
Total number of digits Number of digits in decimal fraction
2EH (.) 36H (6) 31H (1) 31H (1) D24 D25
Step Instruction Device · [Operation] · [Operation]

7.11.11 Conversion from floating decimal point to character string data (ESTR(P))
ESTR(P)
Process High performance Redundant Universal Ver. Basic
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

: 32-bit floating decimal point data to be converted or head number of the devices where the data is stored

: Head number of the devices where display designation for the numerical value to be converted is stored (BIN 16 bits)
: Head number of the devices where the converted character string will be stored (character string)
*1:Available only in multiple Universal model QCPU

7.11 Character string processing instructions 7.11.11 Conversion from floating decimal point to character string data (ESTR(P))
(1) Converts the 32-bit floating decimal point data designated by to a character string
according to the display designation specified by , and stores the result into the area
(2) The post-conversion data differs depending on the display designation designated by .
The converted data differs depending on the format selected at . S2
Setting is possible in the range from 2 to 24.
(real number)


ASCII code for the (total number of digits -1) th digit
ASCII code for the (total number of digits -3) th digit
ASCII code for the (total number of digits -2) th digit
ASCII code for the (total number of digits -5) th digit
ASCII code for decimal point (.) (2E H)
ASCII code for the (total number of digits -7) th digit
ASCII code for the (total number of digits -6) th digit

For example, in a case where there are 8 digits in total, with 3 digits in the decimal fraction
part, and the value designated is 1.23456, the operation result would be stored in the area

31H (1) 32H (2) 35H (5)
20H (space) 2EH (.) 33H (3)
(a) The total number of digits that can be designated by +1 is as shown below: When the number of decimal fraction digits is "0"
Number of digits (max.: 24) 2 When the number of decimal fraction digits is other than "0"
Number of digits (max.: 24) (Number of decimal fraction digits + 3)
(b) The number of digits of decimal fraction part that can be designated by +2 is from 0 to 7. However, the number of digits following the decimal point must be smaller than or equal to the total number of digits minus 3.
(c) The converted character string data is stored at the area starting from the device number as indicated below: 1) The sign "20H" (space) will be stored if the 32-bit floating decimal point type real number is positive, and the sign "2DH" (minus sign) will be stored if it is negative. 2) If the decimal fraction part of a 32-bit floating point real number data is out of the range of the digits of decimal fraction part, the lower decimal values will be rounded off.
7.11 Character string processing instructions 7.11.11 Conversion from floating decimal point to character string data (ESTR(P))
8 (Total number of digits)
Total number of digits
2 (Number of digits in decimal fraction) +2
Rounded off Number of digits in decimal fraction
-1. 2 3 4 5 6
8 (Total number of digits)
Total number of digits
2 (Number of digits in decimal fraction) +2
Number of digits in decimal fraction
-1 . 2 3 4 5 6
If the number of digits in the decimal fraction part is "0", the ASCII code "2EH" (.) will not be stored.
+1 · +1 · Automatically added



ASCII code for the (total number of digits -1)th digit
ASCII code for decimal point (.) (2EH)
ASCII code for the (total number of digits -2)th digit
ASCII code for the (total number of digits -5)th digit
ASCII code for the (total number of digits -4)th digit
ASCII code for the (total number of digits -7)th digit
ASCII code for the (total number of digits -6)th digit
ASCII code for the (total number of digits -11)th digit
ASCII code for the (total number of digits -10)th digit
For example, in a case where there are 12 digits is total, with 4 digits in the decimal fraction
portion, and the value designated is 12.34567, the operation results would be stored in the

20H (space) 2EH (.) 33H (3) 36H (6) 2CH (+) 31H (1)
2DH (-) 31H (1) 32H (2) 34H (4) 45H (E) 30H (0)

(a) The total number of digits that can be designated by +1 is as shown below: When the number of decimal fraction digits is "0"
Number of digits (max.: 24) 2 When the number of decimal fraction digits is other than "0"
Number of digits (max.: 24) (Number of decimal fraction digits + 7)
(b) The number of digits of dicimal fraction part that can be designated by +2 is from 0 to 7. However, the number of digits in the decimal fraction portion should be equal to or less than the total number of digits minus 7.
(c) The converted character string data is stored at the area starting from the device number as indicated below: 1) If the 32-bit floating decimal point type real number data is positive in value, the sign before the integer will be stored as ASCII code "20H" (space), and if it is a negative
value, the sign will be stored as "2DH" ( ). 2) The integer portion is fixed to one digit. 20H (space) will be stored between the integer and the sign.


7.11 Character string processing instructions 7.11.11 Conversion from floating decimal point to character string data (ESTR(P))
If the number of digits in the decimal fraction part of the number is "0", the ASCII code "2EH" (.) will not be stored.

value if the exponent is positive in value, and the code "2DH" ( ) will be stored if the exponent is a negative value.

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
0, 2-126 | | 2128
(Error code: 4100) When using decimal point format When the number of decimal fraction digits is "0"
Total number of digits 2 When the number of decimal fraction digits is other than "0"
Total number of digits (Number of decimal fraction digits + 3) When using exponent format When the number of decimal fraction digits is "0"
Total number of digits 6 When the number of decimal fraction digits is other than "0"
Total number of digits (Number of decimal fraction digits + 7)
Number of decimal fraction digits (Total number of digits 3) When using the exponent format
Number of decimal fraction digits (Total number of digits 7)

Program Example
(1) The following program converts the 32-bit floating point type real number data which had
been stored at R0 and R1 in accordance with the conversion designation that is being stored at R10 to R12, and stores the result following D0 when X0 goes ON.
[Ladder Mode] [List Mode]

20H (space) 2EH (.) 33H (3) 00H
20H (space) 30H (0) 30H (0) 33H (3)
Total number of digits Total number of digits Number of digits in decimal fraction
. 0 32 7 4 5 7 0 R0 Space
(2) The following program converts the 32-bit floating decimal point type real number data which
had been stored at D0 and D1 in accordance with the conversion designation that is being stored at R10 to R12, and stores the result following D10 when X1C goes ON.
[Ladder Mode] [List Mode]

7.11 Character string processing instructions 7.11.11 Conversion from floating decimal point to character string data (ESTR(P))
Total number of digits Number of digits in decimal fraction
3 2 7 4 6 E 0 - 2
20H (space) 2EH (.) 37H (7) 36H (6) 2DH (-) 32H (2)
33H (3) 32H (2) 34H (4)
Instruction Device Step · [Operation] · Instruction Device Step

7.11.12 Conversion from character string to floating decimal point data (EVAL(P))
EVAL(P)
Process High performance Redundant Universal Ver. Basic
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

: Character string data to be converted to 32-bit floating decimal point real number data or head number of the
devices where the character string data is stored (character string)
: Head number of the devices where the converted 32-bit floating decimal point real number data will be stored

(1) Converts character string stored in the area starting from the device number designated by
to 32-bit floating point type real number, and stores result at device designated by .
(2) The designated character string can be converted to 32-bit floating point type real number
data either in the decimal point format or the exponent format.

ASCII code for the sign ASCII code for the 1st character
(a) When using decimal point format

2DH (-) 31H (1) 2EH (.) 30H (0) +2 37H (7) 38H (8) 31H (1) 32H (2) +3
(real number)

(b) When using exponent format

2DH (-) 20H (space) 31H (1) 2EH (.)
+2 33H (3) 32H (2) 30H (0) 31H (1) +3
45H (E) 2BH (+) 31H (1)
1 1 . 3 2 0 1 E + 1 0
(3) Excluding the sign, decimal point, and exponent portion of the result, 6 digits of the character
string designated by to be converted to a 32-bit floating decimal point type real number will be effective; the 7th digit on later digit will be cut from the result.
(a) When using decimal point format

2DH (-) 20H (space) 20H (space) 31H (1)
+2 2EH (.) 33H (3) 30H (0) 31H (1) +3
35H (5) 36H (6) 38H (8) +4 +5 31H (1) +6 32H (2) 00H
(b) When using exponent format
2DH (-) 20H (space) 31H (1) 2EH
7.11 Character string processing instructions 7.11.12 Conversion from character string to floating decimal point data (EVAL(P))
D D
30 H (0) 33 H (3) +3
-1 . 350 34 E2
+4 +5 45H (E) +6 2DH (-) 30H (0) 32H (2) 00H
34H (4) 31H (1) 32H (2)
32-bit floating-point real number
. 3 5 0 3 4 1 2 E 0 - 2 1 -
(4) In the decimal point format, if "2BH" (+) is specified for the sign or if the designation of sign is
omitted, conversion is made assuming a positive value.
If "2DH" (-) is specified for the sign, the character string is converted assuming a negative value.
(5) In the exponent format, if "2BH" (+) is specified for the sign in the exponent portion or if the
designation of sign is omitted, conversion is made assuming a positive value.
If "2DH" (-) is specified for the sign in the exponent portion, the character string is converted assuming a negative value.

(6) In a case where the ASCII code "20H (space)" or "30H" (0) exists between numbers not
including the initial zero in a character string specified by , it will be ignored when the conversion is done.

2DH (-) 20H (space) 30H (0) 31H (1)
+2 2EH (.) 32H (2) 33H (3) 31H (1) +3
(7) In a case where the ASCII code "30H (0) " exists between the character "E" and a number in
an exponent format character string, the "30H" would be ignored when the conversion is performed.

2DH (-) 20H (space) 31H (1) 2EH (.) 30H (0) 34H (4) 35H (5) 33H (3) 45H (E) 2BH (+) 30H (0) 33H (3) 00H
-1 . 0 4 5 3 E + 3
. 0 4 5 3 E + 0 3 1 -
(8) If the "20H" (space) code is contained in the character string, the code is ignored in the
conversion.
(9) Up to 24 characters can be set for a character string.
The codes "20H" (space) and "30H" (0) contained in the character string are also counted as a character.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
the range of from "30H" (0) to "39H" (9). (Error code: 4100)
"45H"(E) or "2DH"( ), or the string contains more than one exponent portion.
0, 2-126 |data after conversion| 2128

Program Example
(1) The following program converts the character string stored in the area starting from R0 to a
32-bit floating decimal point type real number, and stores the result at D0 and D1 when X20 is turned ON.
[Ladder Mode] [List Mode]


2DH (-) 20H (space) 30H (0) 31H (1)
R2 2EH (.) 32H (2) 33H (3) 34H (4) R3
35H (5) 32H (2) 31H (1) R4 R5 00H
(2) The following program converts the character string stored in the area starting from D10 to a
32-bit floating decimal point type real number, and stores the result at D100 and D101 when X20 is turned ON.
[Ladder Mode] [List Mode]

7.11 Character string processing instructions 7.11.12 Conversion from character string to floating decimal point data (EVAL(P))
20H (space) 20H (space) 31H (1) 2EH (.)
D12 32H (2) 33H (3) 34H (4) 35H (5) D13
45H (E) 2DH (-) 30H (0) D14 D15 32H (2) D16 00
[Operation] · Instruction Device Step

7.11.13 Conversion from hexadecimal BIN to ASCII (ASC(P))
ASC(P)
Process High performance Redundant Universal Basic

: Head number of the devices where BIN data to be converted to a character string is stored (BIN 16 bits)
: Head number of the devices where the converted character string will be stored (character string)

(1) Converts the BIN 16-bit data stored in the area starting from the device designated by to ASCII by treating the BIN data in hexadecimal representation. Then, stores the converted
data into the area starting from the device designated by , for the number of characters specified by n.
b15 b12 b8 b11 b7 b4 b0 b3 S D S D
4th digit 3rd digit 2nd digit 1st digit 4th digit 3rd digit 2nd digit 1st digit
ASCII code for the 1st digit ASCII code for the 2nd digit
ASCII code for the 3rd digit ASCII code for the 4th digit
ASCII code for the 1st digit ASCII code for the 2nd digit
Number of characters designated by n
ASCII code for the 3rd digit ASCII code for the 4th digit
4th digit 3rd digit 2nd digit 1st digit
ASCII code for the 1st digit ASCII code for the 2nd digit
b15 b12 b8 b11 b7 b4 b0 b3 b15 b8b7 b0 D
1H 2H 3H 4H +1
34H (4) 33H (3) 32H (2) 31H (1) 38H (8) 37H (7) 36H (6) 35H (5) 44H (D) 46H (F) 42H (B) 00H
5H 6H 7H 8H FH EH DH CH AH 9H BH 6H
When "15" is set for n
43H (C) 45H (E) 36H (6) 39H (9)

(2) The use of n to set the number of characters causes the BIN data range designated by
and the character string storage device range designated by to be set automatically.
(3) Processing will be performed accurately even if the device range where BIN data to be
converted is being stored overlaps with the device range where the converted ASCII data will be stored.

b15 b8b7 b0 b15 b12 b8 b11 b7 b4 b0 b3
D11 31H 32H 33H 34H 35H 36H 37H 38H 41H 39H
AH 9H 8H 7H 6H 5H 4H 3H 2H 1H
(4) If an odd number of characters has been designated by n, the ASCII code "00H" will be
automatically stored in the upper 8 bits of the final device in the range where the character string is to be stored.
When 5 characters have been designated by n.

b15 b8b7 b0 b15 b12 b8 b11 b7 b4 b0 b3 S
42H(B) 32H(2) 41H(A) 31H(1) 42H(B) 00H B 1 A 2 B +1
(5) If the number of characters designated by n is "0", conversion processing will not be
conducted.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

7.11 Character string processing instructions 7.11.13 Conversion from hexadecimal BIN to ASCII (ASC(P))
designated by exceeds the relevant device range. (Error code: 4101)
designated by exceeds the relevant device range. (Error code: 4101)
(1) The following program reads the BIN data being stored at D0 as hexadecimal values,
converts them to a character string, and stores the result from D10 to D14 when X0 is turned ON.
b15 b8b7 b0 b15 b12 b8 b11 b7 b4 b0 b3
2H 2H 0H 5H AH FH CH 7H 2H 9H
39H (9) 32H (2) 37H (7) 43H (C) 46H (F) 41H (A) 35H (5) 30H (0) 32H (2) 32H (2)

7.11.14 Conversion from ASCII to hexadecimal BIN (HEX(P))
HEX(P)
Process High performance Redundant Universal Basic

: Head number of the devices where a character string to be converted to BIN data is stored (character string)
: Head number of the devices where the converted BIN data will be stored (BIN 16 bits)

(1) Converts the number of characters of hexadecimal ASCII data designated by n stored in the
area starting from the device number designated by into BIN values and stores them in

the area starting from the device number designated by .
b15 b8b7 b0 b15 b12 b8 b11 b7 b4 b0 b3
ASCII code for the 1th digit ASCII code for the 2nd digit
ASCII code for the 3th digit ASCII code for the 4nd digit
ASCII code for the 1rd digit ASCII code for the 2st digit
ASCII code for the 3rd digit ASCII code for the 4st digit
For example, if the number 9 has been designated by n, the operation would be as follows:

34H (4) 33H (3) 32H (2) 31H (1) 36H (6) 42H (B) 39H (9) 41H (A) 38H (8) 45H (E) 0H 0H EH AH 9H BH 6H 1H 2H 3H 4H
Code "38H" remains unchanged since the designated number of characters is "9".
(2) When the number of characters is specified for n, the range of characters designated by
as well as the device range designated by in which the BIN data will be stored are automatically decided.

(3) Accurate processing will be conducted even in cases where the range of devices where the
ASCII code to be converted is being stored overlaps with the range of devices that will store the converted BIN data.

b15 b8b7 b0 b15 b12 b8 b11 b7 b4 b0 b3
D11 31H (1) 32H (2) 33H (3) 34H (4) 35H (5) 36H (6) 37H (7) 38H (8) 41H (A) 39H (9)
7H 6H 5H 4H 3H 2H 1H
0 0H AH 9H 8H
(4) If the number of characters designated by n is not divisible by 4, "0" will be automatically
stored after the designated number of characters in the final device number of the devices which are storing the converted BIN values.

b15 b12 b8 b11 b7 b4 b0 b3 b15 b8b7 b0
+1 42H (B) 32H (2) 41H (A) 31H (1) 38H (8) 43H (C) 0 0 0 8
Value "0" is automatically stored in the area outside the range of the designated number of characters.
(5) If the number of characters designated by n is "0", conversion processing will not be
conducted.
(6) ASCII code that can be designated by includes from "30H" to "39H" and from "41H" to "46H".
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
range of from "30H" to "39H", or from "41H" to "46H") have been set by . (Error code: 4100)
7.11 Character string processing instructions 7.11.14 Conversion from ASCII to hexadecimal BIN (HEX(P))
designated by exceeds the relevant device range. (Error code: 4101)
designated by exceeds the relevant device range. (Error code: 4101)
(1) The following program converts the character string being stored from D0 to D4 to BIN data
and stores the result from D10 to D14 when X0 goes ON.
[Ladder Mode] [List Mode]
b15 b8b7 b0 b15 b12 b8 b11 b7 b4 b0 b3
36H (6) 42H (B) 35H (5) 32H (2) 41H (A) 37H (7) 31H (1) 33H (3) 39H (9) 37H (7)
0H 0H 9H 7H 3H 1H 7H AH 2H 5H BH 6H
Instruction Device Step · [Operation]

7.11.15 Extracting character string data from the right or left (RIGHT(P),LEFT(P))
RIGHT(P),LEFT(P)
Process High performance Redundant Universal Basic

: Character string or head number of the devices where the character string is stored (character string)
: Head number of the devices where the character string consisting of n characters starting from the right or

(1) Stores n number of characters from the right side of the character string (the end of the
character string) being stored in devices starting from that whose number is designated by
, in devices starting from that whose number is designated by .
b15 b8b7 b0 S
b15 b8b7 b0 D D
ASCII code for the 1st character ASCII code for the 2nd character
ASCII code for the 3rd character ASCII code for the 4th character
ASCII code for the (last - n + 1)th character ASCII code for the (last - n + 2)th character
ASCII code for the (last - n + 3)th character ASCII code for the (last - n + 4)th character
ASCII code for the (last - n + 1)th character ASCII code for the (last - n + 2)th character
ASCII code for the (last - 2)th character ASCII code for the (last - 1)th character
ASCII code for the (last - n + 3)th character ASCII code for the (last - n + 4)th character
ASCII code for the last character 00H
ASCII code for the (last - 2)th character ASCII code for the (last - 1)th character
ASCII code for the last character 00H

b15 b8b7 b0 S
41H (A) 42H (B) 43H (C) 44H (D) +1
31H (1) 32H (2) 33H (3) 34H (4) 45H (E) 46H (F) 31H (1) 32H (2) 33H (3) 34H (4) 35H (5) 00H
+1 · +1

(2) The NULL code (00H) indicating the end of the character string is automatically appended at
the end of the character string. Refer to 3.2.5 for the format of the character string data.
(3) If the number of characters designated by n is "0", the NULL code (00H) will be stored at .
(1) Stores n number of characters from the left side of the character string (the beginning of the
character string) being stored in devices starting from that whose number is designated by
, in devices starting from that whose number designated by .
S S D
ASCII code for the 1st character ASCII code for the 2nd character
ASCII code for the 3rd character ASCII code for the 4th character
ASCII code for the 1st character ASCII code for the 2nd character
ASCII code for the 3rd character ASCII code for the 4th character
ASCII code for the (n - 2)th character ASCII code for the (n - 1)th character
ASCII code for the (n - 2)th character ASCII code for the (n - 1)th character
ASCII code for the nth character ASCII code for the (n + 1)th character
ASCII code for the nth character 00H
ASCII code for the last character 00H
b15 b8b7 b0 S
41H (A) 42 H (B) 43H (C) 44 H (D) 45H (E) 46 H (F) 31H (1) 32 H (2) 33H (3) 34 H (4) 35H (5) 00H
41H (A) 42H (B) 43H (C) 44H (D) +2 45H (E) 46H (F)
+2 +3 +4 +5
ASCII code for the 7th character "ABCDEF1" +3 31H (1) 00H
(2) The NULL code (00H) indicating the end of the character string is automatically added to the
end of the character string.

Refer to 3.2.5 for the format of the character string data.
7.11 Character string processing instructions 7.11.15 Extracting character string data from the right or left (RIGHT(P),LEFT(P))
(3) If the number of characters designated by n is "0", the NULL code (00H) will be stored at .
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

Program Example
(1) The following program stores 4 characters of data from the rightmost of the character string
stored in the area starting from R0, and stores it into the area starting from D0 when X0 is turned ON.
[Ladder Mode] [List Mode]

42H (B) 41H (A) 32H (2) 31H (1) D1
30H (0) 45H (E) 46H (F) 41H (A) 30H (0) 45H (E) 46H (F) 41H (A) 00H
(2) The following program stores the number of characters corresponding to the value being
stored in D0 from the left of the character string data being stored at D100 to the area starting from R10 when X1C is turned ON.
[Ladder Mode] [List Mode]

53H (S) 51 H (Q) 4FH (O) 4EH (N) R11
53H (S) 51 H (Q) 4FH (O) 4EH (N) 48H (H) 44 H (D) 41H (A) 42 H (B) 00H
00H 48H (H) 44 H (D) R13

7.11.16 Random selection from and replacement in character strings (MIDR(P),MIDW(P))
MIDR(P),MIDW(P)
Process High performance Redundant Universal Basic

: Character string or head number of the devices where the character string is stored (character string)
: Head number of the devices where a character string data obtained as the result of operation will be stored
: Head number of the devices where the location of the first character and the number of characters will be
stored (BIN 16 bits)

7.11 Character string processing instructions 7.11.16 Random selection from and replacement in character strings (MIDR(P),MIDW(P))
(1) Extracts the character string data of +1 characters, starting from the position designated
by , counted from the left end of the character string data designated by , and stores
the extracted data into the area starting from the device designated by .
41H (A) 42H (B) 43H (C) 44H (D) +1
45 H (E) 46H (F) 47 H (G) 48H (H) 45H (E) 46H (F) 47H (G) 48H (H) 49H (I) 4AH (J) 4BH (K) 00H
+2 49 H (I) 00H Position of the 5th character
(character string)

(2) The NULL code (00H) indicating the end of the character string is automatically added to the
end of the character string.
Refer to 3.2.5 for the format of the character string data.
(3) No processing will be conducted if the number of characters designated by +1 is "0".
(4) If the number of characters designated by +1 is " 1", stores the data up to the final
character designated by starting from the device designated by .

41H (A) 42H (B) 43H (C) 44H (D) +1
45H (E) 46H (F) 47H (G) 48H (H) 45H (E) 46H (F) 47H (G) 48H (H) 49H (I) 4AH (J) 4BH (K) 00H
+2 49H (I) 4AH (J) Position of the 5th character
(1) Extracts the character string data of +1 characters, starting from the left end of the
character string data designated by , and stores the extracted data to the character string
data designated by in the area starting from the position designated by from the left end.

41H (A) 42H (B) 43H (C) 44H (D) +2 45H (E) 46H (H)
30H (0) 31H (1) 32H (2) 33H (3)
34H (4) 35H (5) 36H (6) 37H (7) 38H (8) 00H
Position counted from the left end of character string data designated by
41H (A) 42H (B) 30H (0) 31H (1) +2 32H (2) 33H (3)
Number of characters counted from the left end of the character string data designated by
(2) The NULL code (00H) indicating the end of the character string is automatically added to the
end of the character string.
Refer to 3.2.5 for the format of the character string data.
(3) No processing will be conducted if the number of characters designated by +1 is "0".

(4) If the number of characters designated by +1 exceeds the final character from the
character string data designated by , data will be stored up to the final character.

41H (A) 42H (B) 43H (C) 44H (D) +2 45H (E) 46H (F)
30H (0) 31H (1) 32H (2) 33H (3)
34H (4) 35H (5) 36H (6) 37H (7) 38H (8) 00H
Position counted from the left end of character string data designated by
41H (A) 42H (B) 43H (C) 44H (D) +2 30H (0) 31H (1)
Number of characters counted from the left end of character string data designated by
Characters "35H" (5) to "37H" (7) are not stored.
(5) If the number of characters designated by +1 is " 1", stores the data up to the final
character designated by to the area starting from the device designated by .
41H (A) 42H (B) 43H (C) 44H (D) +2 45H (E) 46H (F)
30H (0) 31H (1) 32H (2) 33H (3) 34H (4) 35H (5) 00H +2 +3
47 H (G) 48 H (H) +3
49 H (I) 4A H (J) +4
4B H (K) 00 H +5
"ABCDEFGHIJK"
After execution 2 1 +1
Position counted from the left end of character string data designated by
7.11 Character string processing instructions 7.11.16 Random selection from and replacement in character strings (MIDR(P),MIDW(P))
41H (A) 30H (0) 31H (1) 32H (2) 33H (3) 34H (4)
Number of characters counted from the left end of character string data designated by
+1 +2 +3 +4 +5
35H (5) 48H (H) 49H (I) 4AH (J)
"A012345HIJK"
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.

(1) The following program stores the 3rd character through the 6th character from the left of the
character string stored in the area starting from D10 at devices starting from D0 when X0 is turned ON.
[Ladder Mode] [List Mode]

42 H (B) 41H (A) 32 H (2) 31H (1) 33 H (3) 46H (E) D12 D13
32 H (2) 31H (1) 33 H (3) 46H (E) D2 00 H
(2) The following program stores 4 characters of the character string data stored in the area
starting from D0 into the area starting from the 3rd character from the left of the character string data in the area starting from D100 when X0 is turned ON.
[Ladder Mode] [List Mode]

32H (2) 31H (3) 46H (F) 45H (E) 30H (0) 33H (3) D2 D3
55H (U) 53H (S) 43H (C) 59H (Y)
5AH (Z) 31H (1) 30H (0) 42H (B) 00H D103 D104
55H (U) 53H (S) 32H (2) 31H (1)
46H (F) 45H (E) 30H (0) 42H (B) 00H D103 D104

7.11.17 Character string search (INSTR(P))
INSTR(P)
Process High performance Redundant Universal Basic

: Character string to be searched or head number of the devices where the character string to be searched is
: Character string in which a search is performed or head number of the devices where the character string is
: Head number of the devices where the result of search will be stored (BIN 16 bits)
Other Bit Word Bit Word K, H $
––
––
7.11 Character string processing instructions 7.11.17 Character string search (INSTR(P))
(1) Searches for the character string data designated by in the area starting from the nth
character from the left of the character string data designated by and stores the result of
search at the device designated by .
As the result of search, the location of match, counted in the number of characters from the
first character of the character string data designated by , is stored.
Searches from the 3rd character +1
41H (A) 42H (B) 43H (C) 44H (D) 45H (E) 46H (F) 47H (G) 48H (H) 49H (I) 4AH (J) 4BH (K) 00H
45H (E) 46H (F) 47H (G) 48H (H) +2 00H
+2 +3 +4 +5
5th character from the first character
"ABCDEFGHIJK"
5 Stores the position of the found character, counted by the number of characters from the 1st character in the character string data designated by .
(2) If there is no matching character string data, stores "0" at .

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
designated by , . (Error code: 4100)
(1) The following program searches from the 5th character from the left of the character string
data stored in devices starting from R0 for the character string data in devices starting from D0, and stores the results at D100 when X0 goes ON.
[Ladder Mode] [List Mode]

Not searched since the search start position is 5
43 H (C) 49H (I) 32 H (2) 33H (3) 31 H (1) 32H (2) 43 H (C) 49H (I) 4DH (M) 00H
43H (C) 49H (I) 32H (2) 33H (3) D2 00H
(2) The following program searches from the 3rd character from the left of the character string
data being stored in devices starting from D0 for the character string data "AB", and stores the results of the search at D100 when X1C goes ON.
[Ladder Mode] [List Mode]

31H (1) 32H (2) 33H (3) 34H (4) 41H (A) 42H (B) 35H (5) 36H (6) 41H (A) 42H (B) 00H

7.11.18 Insertion of character string (STRINS(P))
STRINS(P)
Ver.
Basic Process High performance Redundant
QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.
QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

: Character string to be inserted or head number (character string) of the devices where insert character
: Head number (character string) of the devices where insert character strings are stored
Other Bit Word Bit Word K, H $
––
––
n –– –– ––
7.11 Character string processing instructions 7.11.18 Insertion of character string (STRINS(P))
(1) This instruction inserts the character string data specified by to the nth device (insert
position) from the initial character string data stored in the devices specified by .
Shifts the third character and up by the number of characters specified by to the left and inserts the character string data specified by .
30 H (0) 31H (1) 32 H (2) 33H (3) +2 34 H (4) 00H
b15 b8b7 b0 D
41H (A) 42H (B) 30H (0) 31H (1) 32H (2) 33H (3) 34H (4) 43H (C) 44H (D) 45H (E) 47H (G) 00H 66H (f)
+2 +3 +4 +5
( +1) ( +2)
41H (A) 42H (B) 43H (C) 44H (D) 45H (E) 46H (F) 47H (G) 48H (H)
46H (F) 48H (H) 65H (e)
Third character insertion position
+2 +3 +4 +5
The character data stored after +4 will be written over in accordance with the number of characters to be inserted.
62H (b) 64H (d) 66H (f)
61H (a) 63H (c) 65H (e)
(2) This instruction stores the NULL code (00H) into the device (1 word) that positions after the
last device where the character string data are stored, if the character string ( + ) value is even after the insertion.
(3) This instruction stores the NULL code (00H) into the last device (high 8 bits) where the
character string data are stored, if the character string ( + ) value is odd after the insertion.
(4) This instruction links the device, where the character string data are stored, specified by
with the last device specified by , if n is specified by the number of devices specified by plus one.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an
error code is stored into SD0.
( + ) after the insertion exceeds 16383 characters. (Error code: 4100)
devices specified by . (Error code: 4101)
specified by or . (Error code: 4101)
inserted overlaps with the range of the devices specified by that store the character string data. (Error code: 4101)
(1) The following program inserts the character string data stored in the device D0 and up to the
fourth device from the initial character string data stored in D20 and up, when M0 is turned on.
[Ladder Mode] [List Mode]


D0 35 H (5) 38H (8) D1 34 H (4) 00H D20 50H (P) 52H (R) 4FH (O) 47H (G) 52H (R) 41H (A) 4DH (M) 41H (A) 42H (B) 43H (C) 00H 44H (D)
D20 character string Inserted between"O"and"G" Fourth character from the
P R O G R A M A B C D
50H (P) 52H (R) 4FH (O) 35H (5) 38H (8) 34H (4) 47H (G) 52H (R)
42H (B) 44H (D) 41H (A) 43
P R O 5 8 4 G R A M A B C D
Step Instruction Device · [Operation]

7.11.19 Deletion of character string (STRDEL(P))
STRDEL(P)
Ver.
Basic Process High performance Redundant
QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.
QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

: Head number (character string) of the devices where character strings to be deleted are stored
Other Bit Word Bit Word K, H
––
7.11 Character string processing instructions 7.11.19 Deletion of character string (STRDEL(P))
(1) This instruction deletes n2 characters data in the devices specified by starting from the device (insert position) specified by n1.
Device position where character string data to be deleted: n1 3
Number of characters to be deleted: n2 5
Shifts the n1+n2th characters and up, which are stored after the devices whose characters
Stores the NULL code (00H) into
were deleted, by n2 characters to the right
the empty devices after shifting.
b15 b8b7 b0 D
b15 b8b7 b0 D
b15 b8b7 b0 D
41H (A) 42H (B) 43H (C) 44H (D) 45H (E) 46H (F) 48H (H) 47H (G) 4AH (J) 49H (I) 4CH (L) 4BH (K) 00H 31H (1) 30H (0) 33H (3) 32H (2) 35H (5) 34H (4)
Deletes n2 characters from
41H (A) 42H (B) 48H (H) 49H (I) 4AH (J) 4BH (K) 4CH (L) 00H
the n1th device and up +1
+2 +3 +4 +5
+2 +3 +4 +5
+2 +3 +4 +5
49H (I) 48H (H) 4AH (J) 4CH (L) 4BH (K) 00H 31H (1) 30H (0) 33H (3) 32H (2) 35H (5) 34H (4)
31H (1) 30H (0) 33H (3) 32H (2) 35H (5) 34H (4)
n1th character to be deleted
The characters of the devices other than the shifted devices do not change.
(2) This instruction stores the NULL code (00H) into the device (one word) that positions after
the last device that stores the character string data when the character string data specified
by is even, after the characters are deleted.
(3) This instruction stores the NULL code (00H) into the last device (high 8 bits) that stores the
character string data when the character string data specified by is odd, after the characters are deleted.
(4) This instruction shifts the characters stored in the devices that position after the deleted
devices by n2 characters to the right, and then stores the NULL code (00H) into the empty device.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an
error code is stored into SD0.
n1th to the last devices position. (Error code: 4100)
(1) The following program deletes the fourth to the seventh characters in the character string
data stored in the devices D0 and up, when M0 is turned on.
[Ladder Mode] [List Mode]


D0 50H (P) 52H (R) 4FH (O) 47H (G) 52H (R) 41H (A) 4DH (M) 41H (A) 42H (B) 43H (C) 00H 44H (D)
D0 50H (P) 52H (R) 4FH (O) 47H (G) 52H (R) 41H (A) 4DH (M) 41H (A) 42H (B) 43H (C) 00H 44H (D)
D0 50H (P) 52H (R) 4FH (O) 00H 44H (D) D1 D2
P R O G R A M A B C D
P R O G R A M A B C D
Step Instruction Device · [Operation]

7.11.20 Floating decimal point to BCD (EMOD(P))
EMOD(P)
Process High performance Redundant Universal Basic

: 32-bit floating decimal point real number data or head number of the devices where the floating decimal point
real number data is stored (real number)

: Head number of the devices where the data after break down into BCD will be stored (BIN 16 bits)
*1:Available only in multiple Universal model QCPU

7.11 Character string processing instructions 7.11.20 Floating decimal point to BCD (EMOD(P))
(1) Dissociate the 32-bit floating decimal point data designated by into BCD type floating
point format based on the decimal fraction digits specified by , and stores the result into
the area starting from the device designated by .
0 4270H 0325H 1 3 +4 +3 +2 +1 3 . 2 5 4 2 7
specifies the decimal fraction digits of the 32-bit floating decimal point real number data
of . In the example above, a decimal fraction digit is designated as shown below:


(2) The 7th digit of the significant digits being stored at +1 and +2 is rounded off to make a 6-digit number.

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
0, 2-126 | device | < 2128 (Error code: 4100)

Program Example
(1) The following program breaks down the 32-bit floating decimal point type real number data
stored at D0 and D1 into BCD according to the decimal fraction digits as designated by R10, and stores the results into the area starting from D100 when X0 is turned ON.
[Ladder Mode] [List Mode]

0.987654
R10

7.11 Character string processing instructions 7.11.20 Floating decimal point to BCD (EMOD(P))
[Operation]

7.11.21 From BCD format data to floating decimal point (EREXP(P))
EREXP(P)
Process High performance Redundant Universal Basic

: Head number of the devices where BCD type floating point format data is stored (BIN 16 bits)
: The device where the converted 32-bit floating point real number data will be stored (real number)
*1:Available only in multiple Universal model QCPU
(1) Converts the BCD type floating point data designated by to the 32-bit floating decimal
point real number data according to the decimal fraction digits specified by , and stores
the result into the area starting from the device designated by .

(2) The sign at and the sign for the exponent part at +3 is set at 0 for a positive value and at 1 for a negative value.
(3) 0 to 38 can be set for the BCD exponent of +4.
(4) 0 to 7 can be set for the decimal fraction digits of .

5423H 0321H 0 2 +4 +3 +2 +1

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The following program converts the BCD type floating decimal point format data being
stored in devices starting from D0 to 32-bit floating decimal point type real number data based on the decimal fraction digit being stored at D10, and stores the result at D100 and D101 when X0 goes ON.
[Ladder Mode] [List Mode]

7.11 Character string processing instructions 7.11.21 From BCD format data to floating decimal point (EREXP(P))
Instruction Device Step

7.12 Special function instructions
7.12.1 SIN operation on floating-point data (Single precision) (SIN(P))
SIN(P)
Process High performance Redundant Universal Ver. Basic
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

: Angle data of which the SIN (sine) value is obtained or head number of the devices where the angle data is

: Head number of the devices where the operation result will be stored (real number)
*1: Applicable for the Universal model QCPU only.
(1) Returns the SIN (sine) value of the angle designated at and stores the operation result in
the device number designated at .
SIN ( )
32-bit floating-point real number
32-bit floating-point real number
(2) Angles designated at are set in radian units (degrees / 180).
For conversion between degrees and radian values, see the RAD and DEG instructions.
stored (real number) · +1 · +1

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)
*2: There are CPU modules that will not result in an operation error if 0 is specified. For details, refer to 3.2.4.
(For the Universal model QCPU only)
2128 | Operation result | (Error code: 4141)
(1) The following program conducts a SIN operation on the angles stored in the four BCD digits
from X20 to X2F and stores the results at D0 and D1 as 32-bit floating decimal point type real numbers.

Inputs an angle used for SIN operation ( ).
Converts the input angle into a 32-bit floating-point real number ( ). Converts the converted angle into a radian value ( ). Executes SIN operation using the converted radian value ( ).
7.12 Special function instructions 7.12.1 SIN operation on floating-point data (Single precision) (SIN(P))
[Operations involved when X20 to X2F designate a value of 150]
1 5 0 2 . 6 1 7 9 9 4 0 . 5 0
[Ladder Mode]

7.12.2 SIN operation on floating-point data (Double precision) (SIND(P))
SIND(P)
Universal Basic Process High performance Redundant

: Angle data of which the SIN (sine) value is obtained or head number of the devices where the angle data is

: Head number of the devices where the operation result will be stored (real number)
(1) The SIN (sine) value of the angle specified by is calculated and its result is stored into the

(2) Angles designated at are set in radian units (degrees / 180).
For conversion between degrees and radian values, see the RADD and DEGD instructions.
(3) When the operation results in -0 or an underflow, the result is processed as 0.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
0,2-1022 | value of specified device | < 21024
21024 | Operation result | (Error code: 4141)
stored (real number)

Program Example
(1) The following program conducts a SIN operation on the angles stored in the four BCD digits
from X20 to X2F and stores the results at D0 to D3 as 64-bit floating decimal point type real numbers.

Inputs an angle used for SIN operation ( ).
Converts the input angle into a 64-bit floating-point real number ( ).
Converts the converted angle into a radian value ( ).
Executes SIN operation using the converted radian value ( )
[Operations involved when X20 to X2F designate a value of 150]

7.12 Special function instructions 7.12.2 SIN operation on floating-point data (Double precision) (SIND(P))
[Ladder Mode] · [List Mode] · Step Instruction Device

7.12.3 COS operation on floating-point data (Single precision) (COS(P))
COS(P)
Process High performance Redundant Universal Ver. Basic
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

: Angle data of which the COS (cosine) value is obtained or head number of the devices where the angle data
is stored (real number)

: Head number of the devices where the operation result will be stored (real number)
*1: Applicable for the Universal model QCPU only.
(1) Returns the COS (cosine) value of the angle designated by and stores operation result at

(2) Angles designated at are set in radian units (degrees / 180).
For conversion between degrees and radian values, see the RAD and DEG instructions.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)
*2: There are CPU modules that will not result in an operation error if 0 is specified. For details, refer to 3.2.4.
(For the Universal model QCPU only)
2128 | Operation result | (Error code: 4141)
(1) The following program performs a COS operation on the angle data designated by the 4
BCD digits from X20 to X2F, and stores results as 32-bit floating decimal point type real numbers at D0 and D1.

Inputs an angle used for COS operation ( ). Converts the input angle into a 32-bit floating-point real number ( ). Converts the converted angle into a radian value ( ).
Executes COS operation using the converted radian value ( ).
7.12 Special function instructions 7.12.3 COS operation on floating-point data (Single precision) (COS(P))
[Operations involved when X20 to X2F designate a value of 60]
6 0 1 . 0 4 7 1 9 8 0 . 5 0
[Ladder Mode]

7.12.4 COS operation on floating-point data (Double precision) (COSD(P))
COSD(P)
Universal Basic Process High performance Redundant

: Angle data of which the COS (cosine) value is obtained or head number of the devices where the angle data
is stored (real number)

: Head number of the devices where the operation result will be stored (real number)
(1) The COS (cosine) value of the angle specified by is calculated and its result is stored into

(2) Angles designated at are set in radian units (degrees / 180).
For conversion between degrees and radian values, see the RADD and DEGD instructions.
(3) When the operation results in -0 or an underflow, the result is processed as 0.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
0,2-1022 | value of specified device | < 21024
21024 | Operation result | (Error code: 4141)

Program Example
(1) The following program performs a COS operation on the angle data designated by the 4
BCD digits from X20 to X2F, and stores results as 64-bit floating decimal point type real numbers at D0 to D3.

Inputs an angle used for COS operation ( ).
Converts the input angle into a 64-bit floating-point real number ( ).
Converts the converted angle into a radian value ( ).
Executes COS operation using the converted radian value ( ).
[Operations involved when X20 to X2F designate a value of 60]

7.12 Special function instructions 7.12.4 COS operation on floating-point data (Double precision) (COSD(P))
[Ladder Mode] · [List Mode] · Step Instruction Device

7.12.5 TAN operation on floating-point data (Single precision) (TAN(P))
TAN(P)
Process High performance Redundant Universal Ver. Basic
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

: Angle data of which the TAN (tangent) value is obtained or head number of the devices where the angle data
is stored (real number)

: Head number of the devices where the operation result will be stored (real number)
*2: Applicable for the Universal model QCPU only.
(1) Returns the tangent (TAN) value of the angle data designated by , and stores operation

(2) Angles designated at are set in radian units (degrees / 180).
For conversion between degrees and radian values, see the RAD and DEG instructions.
(3) When angles designated by are /2 radians, or (3/2) radians, an operation error will be generated in the calculation of the radian value, so care must be taken to avoid such errors.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
0, 2-126 |operation result| 2128
(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)
(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)
*3: There are CPU modules that will not result in an operation error if 0 is specified. For details, refer to 3.2.4.
(For the Universal model QCPU only)
2128 | Operation result | (Error code: 4141)
(1) The following program performs a TAN operation on the angle data set by the 4 BCD digits
from X20 to X2F, and stores the results as 32-bit floating decimal point type real numbers at D0 and D1.

Inputs an angle used for TAN operation ( ). Converts the input angle into a 32-bit floating-point real number ( ).
7.12 Special function instructions 7.12.5 TAN operation on floating-point data (Single precision) (TAN(P))
Converts the converted angle into a radian value ( ).
Executes TAN operation using the converted radian value ( ).
[Operations involved when X20 to X2F designate a value of 135]
1 3 5 2 . 3 5 6 1 9 4 1 . 0
[Ladder Mode]

7.12.6 TAN operation on floating-point data (Double precision) (TAND(P))
TAND(P)
Universal Basic Process High performance Redundant

: Angle data of which the TAN (tangent) value is obtained or head number of the devices where the angle data
is stored (real number)

: Head number of the devices where the operation result will be stored (real number)
(1) The TAN (tangent) value of the angle specified by is calculated and its result is stored into

+3 S +2 S S +1 S +3 D +2 D D +1 D
(2) Angles designated at are set in radian units (degrees / 180).
For conversion between degrees and radian values, see the RADD and DEGD instructions.
(3) When angles designated by are /2 radians, or (3/2) radians, an operation error will be generated in the calculation of the radian value, so care must be taken to avoid such errors.
(4) When the operation results in -0 or an underflow, the result is processed as 0.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
21024 | Operation result | (Error code: 4141)
(1) The following program performs a TAN operation on the angle data set by the 4 BCD digits
from X20 to X2F, and stores the results as 64-bit floating decimal point type real numbers at D0 to D3.

Inputs an angle used for TAN operation ( ).
Converts the input angle into a 64-bit floating-point real number ( ).
Converts the converted angle into a radian value ( ). Executes TAN operation using the converted radian value ( ).

7.12 Special function instructions 7.12.6 TAN operation on floating-point data (Double precision) (TAND(P))
[Operations involved when X20 to X2F designate a value of 135]
[Ladder Mode]

7.12.7 SIN -1 operation on floating point data (Single precision) (ASIN(P))
ASIN(P)
Process High performance Redundant Universal Basic

: SIN value of which the SIN-1 (inverse sine) value is obtained or head number of the devices where the SIN
value is stored (real number)

: Head number of the devices where the operation result will be stored (real number)
*1: Applicable for the Universal model QCPU only.
(1) Returns the SIN-1 angle of the SIN value designated by , and stores operation results at
word device designated by .

(2) The SIN value designated by can be in the range from 1.0 to 1.0.
(3) The angle (operation result) stored at is stored in radian units.
For more information on the conversion between radian and angle data, see description of RAD and DEG instructions.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
the following range(For the Universal model QCPU only): (Error code: 4140)
0, 2-126 | Contents of designated device | < 2128
(For the High Performance model QCPU, Process CPU, Redundant CPU)
*2: There are CPU modules that will not result in an operation error if 0 is specified. Refer to 3.2.4 for details.
(For the Universal model QCPU only)
2128 | Operation result | (Error code: 4141)
7.12 Special function instructions 7.12.7 SIN-1 operation on floating point data (Single precision) (ASIN(P))

Program Example
(1) The following program seeks the inverse sine of the 32-bit floating decimal point real number
at D0 and D1, and outputs the angle to the 4 BCD digits at Y40 to Y4F.

Calculates an angle (radian value) by SIN-1 operation ( ) Converts the radian value into an angle ( ) Converts the angle in 32-bit floating-point real number into an integer ( ) Outputs the integer-converted angle to a display device ( )
[Operations involved when the D0 and D1 value is 0.5]

D11 D10 SIN-1 operation 0 . 5 0 . 5 2 3 5 9 8 8
[Ladder Mode] · [List Mode] · Step Instruction Device

7.12.8 SIN -1 operation on floating-point data (Double precision) (ASIND(P))
ASIND(P)
Universal Basic Process High performance Redundant

: SIN value of which the SIN-1 (inverse sine) value is obtained or head number of the devices where the SIN
value is stored (real number)

: Head number of the devices where the operation result will be stored (real number)

(1) The angle is calculated from the SIN (sine) value specified by is and its result is stored
7.12 Special function instructions 7.12.8 SIN-1 operation on floating-point data (Double precision) (ASIND(P))
+3 S +2 S S +1 S +3 D +2 D D +1 D
(2) The SIN value designated by can be in the range from 1.0 to 1.0.
(3) The angle (operation result) stored at is stored in radian units.
For more information on the conversion between radian and angle data, see description of RADD and DEGD instructions.
(4) When the operation results in -0 or an underflow, the result is processed as 0.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
0,2-1022 | value of specified device | < 21024
21024 | Operation result | (Error code: 4141)
(1) The following program seeks the inverse sine of the 64-bit floating decimal point real number
at D0 to D3, and outputs the angle to the 4 BCD digits at Y40 to Y4F.

Calculates an angle (radian value) by SIN operation ( ).
Converts the radian value into an angle ( ).
Converts the angle in 64-bit floating-point real number into an integer ( ).
Outputs the integer-converted angle to a display device ( ).
[Operations involved when the D0 to D3 value is 0.5]

[Ladder Mode] · [List Mode] · Step Instruction Device

7.12.9 COS -1 operation on floating-point data (Single precision) (ACOS(P))
ACOS(P)
Process High performance Redundant Universal Basic

: COS value of which the COS-1 (inverse cosine) value is obtained or head number of the devices where the
COS value is stored (real number)

: Head number of the devices where the operation result will be stored (real number)
*1: Applicable for the Universal model QCPU only.

7.12 Special function instructions 7.12.9 COS -1 operation on floating-point data (Single precision) (ACOS(P))
(1) Returns the COS-1 angle of the COS value designated by , and stores operation result at
(2) The COS value designated by can be in the range of from 1.0 to 1.0.
(3) The angle (operation result) stored at is stored in radian units.
For more information on the conversion between radian and angle data, see description of RAD and DEG instructions.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
the following range(For the Universal model QCPU only): (Error code: 4140)
0, 2-126 | Contents of designated device | < 2128
(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)
*2: There are CPU modules that will not result in an operation error if 0 is specified. Refer to 3.2.4 for details.
(For the Universal model QCPU only)
2128 | Operation result | (Error code: 4141)
(1) The following program seeks the inverse cosine of the 32-bit floating decimal point real
number at D0 and D1, and outputs the angle to the 4 BCD digits at Y40 to Y4F.

Calculates an angle (radian value) by COS-1 operation ( )
Converts the radian value into an angle ( )
Converts the angle in 32-bit floating-point real number into an integer ( )
Outputs the integer-converted angle to a display device ( )
[Operations involved when the D0 and D1 value is 0.5]

D11 D10 COS-1 operation 0 . 5 1 . 0 4 7 1 9 8
[Ladder Mode] · [List Mode] · Step Instruction Device

7.12.10 COS -1 operation on floating-point data (Double precision) (ACOSD(P))
ACOSD(P)
Universal Basic Process High performance Redundant

: COS value of which the COS-1 (inverse cosine) value is obtained or head number of the devices where the
COS value is stored (real number)

: Head number of the devices where the operation result will be stored (real number)
(1) The angle is calculated from the COS (cosine) value specified by is and its result is
7.12 Special function instructions 7.12.10 COS -1 operation on floating-point data (Double precision) (ACOSD(P))
+3 S +2 S S +1 S +3 D +2 D D +1 D
(2) The COS value designated by can be in the range of from 1.0 to 1.0.
(3) The angle (operation result) stored at is stored in radian units.
For more information on the conversion between radian and angle data, see description of RADD and DEGD instructions.
(4) When the operation results in -0 or an underflow, the result is processed as 0.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
0,2-1022 | value of specified device | < 21024
21024 | Operation result | (Error code: 4141)
(1) The following program seeks the inverse cosine of the 64-bit floating decimal point real
number at D0 to D3, and outputs the angle to the 4 BCD digits at Y40 to Y4F.

Calculates an angle (radian value) by COS operation ( ).
Converts the radian value into an angle ( ).
Converts the angle in 64-bit floating-point real number into an integer ( ).
Outputs the integer-converted angle to a display device ( ).
[Operations involved when the D0 to D3 value is 0.5]

[Ladder Mode] · [List Mode] · Step Instruction Device

7.12.11 TAN -1 operation on floating-point data (Single precision) (ATAN(P))
ATAN(P)
Process High performance Redundant Universal Basic

: TAN value of which the TAN-1 (inverse tangent) value is obtained or head number of the devices where the
TAN value is stored (real number)

: Head number of the devices where the operation result will be stored (real number)
*1: Applicable for the Universal model QCPU only.

7.12 Special function instructions 7.12.11 TAN -1 operation on floating-point data (Single precision) (ATAN(P))
(1) Returns the TAN-1 angle of the TAN value designated by , and stores operation results at
(2) The angle (operation result) stored at is stored in radian units.
For more information on the conversion between radian and angle data, see description of RAD and DEG instructions.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
the following range(For the Universal model QCPU only): (Error code: 4140)
0, 2-126 | Contents of designated device | < 2128
(For the High Performance model QCPU, Process CPU, Redundant CPU)
*2: There are CPU modules that will not result in an operation error if 0 is specified. Refer to 3.2.4 for details.
(For the Universal model QCPU only)
2128 | Operation result | (Error code: 4141)
(1) The following program seeks the inverse tangent of the 32-bit floating decimal point real
number at D0 and D1, and outputs the angle to the 4 BCD digits at Y40 to Y4F.

Calculates an angle (radian value) by TAN-1 operation ( ) Converts the radian value into an angle ( ) Converts the angle in 32-bit floating-point real number into an integer ( ) Outputs the integer-converted angle to a display device ( )
[Operations involved when D0 and D1 value is 1]

[Ladder Mode] · [List Mode] · Step Instruction Device

7.12.12 TAN -1 operation on floating-point data (Double precision) (ATAND(P))
ATAND(P)
Universal Basic Process High performance Redundant

: TAN value of which the TAN-1 (inverse tangent) value is obtained or head number of the devices where the
TAN value is stored (real number)

: Head number of the devices where the operation result will be stored (real number)
(1) The angle is calculated from the TAN (tangent) value specified by is and its result is
7.12 Special function instructions 7.12.12 TAN -1 operation on floating-point data (Double precision) (ATAND(P))
stored into the device specified by .
1 +3 S +2 S S +1 S +3 D +2 D D +1 D
64-bit floating-point real number
64-bit floating-point real number
(2) The angle (operation result) stored at is stored in radian units.
For more information on the conversion between radian and angle data, see description of RADD and DEGD instructions.
(3) When the operation results in -0 or an underflow, the result is processed as 0.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
0,2-1022 | value of specified device | < 21024
21024 | Operation result | (Error code: 4141)

Program Example
(1) The following program seeks the inverse tangent of the 64-bit floating decimal point real
number at D0 to D3, and outputs the angle to the 4 BCD digits at Y40 to Y4F.

1 Calculates an angle (radian value) by TAN operation ( ).
Converts the radian value into an angle ( ).
Converts the angle in 64-bit floating-point real number into an integer ( ).
Outputs the integer-converted angle to a display device ( ).
[Operations involved when D0 to D3 value is 1]

[Ladder Mode] · [List Mode] · Step Instruction Device

7.12.13 Conversion from floating-point angle to radian (Single precision) (RAD(P))
RAD(P)
Process High performance Redundant Universal Ver. Basic
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.


: Angle to be converted to radian units or head number of the devices where the angle is stored (real number)
: Head number of the devices where the value converted in radian units will be stored (real number)
*2: Applicable for the Universal model QCPU only.

(1) Converts units of angle size from angle units designated by to radian units, and stores
7.12 Special function instructions 7.12.13 Conversion from floating-point angle to radian (Single precision) (RAD(P))
(2) Conversion from degree to radian units is performed according to the following equation:

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
the following range(For the Universal model QCPU only): (Error code: 4140)
0, 2-126 | Contents of designated device | < 2128
(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)
*3: There are CPU modules that will not result in an operation error if 0 is specified. For details, refer to 3.2.4.
(For the Universal model QCPU only)
2128 | Operation result | (Error code: 4141)
(1) The following program converts the angle set by the 4 BCD digits at X20 to X2F to radians,
and stores results as 32-bit floating decimal point type real number at D20 and D21.

Inputs an angle to be converted into a radian value ( )
Converts the input a 32-bit floating-point real number ( )
Converts the converted angle into a radian value ( )
[Operations involved when X20 to X2F designate a value of 120]
Conversion to radian D11 D10
1 2 0 X20
D21 D20 1 2 0 2 . 0 9 4 3 9 5
FLT
RAD

7.12.14 Conversion from floating-point angle to radian (Double precision) (RADD(P))
RADD(P)
Universal Basic Process High performance Redundant

: Angle to be converted to radian units or head number of the devices where the angle is stored (real number)
: Head number of the devices where the value converted in radian units will be stored (real number)
(1) The unit expressing the size of an angle is converted into the radian unit from the degree
unit specified by , and its result is stored into the device specified by .
7.12 Special function instructions 7.12.14 Conversion from floating-point angle to radian (Double precision) (RADD(P))
+3 S +2 S S +1 S +3 D +2 D D +1 D
( ) ( )rad
64-bit floating-point real number
64-bit floating-point real number
(2) Conversion from degree to radian units is performed according to the following equation:
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
0,2-1022 | value of specified device | < 21024
21024 | Operation result | (Error code: 4141)

Program Example
(1) The following program converts the angle set by the 4 BCD digits at X20 to X2F to radians,
and stores results as 64-bit floating decimal point type real number at D20 to D23.

Inputs an angle to be converted into a radian value ( ).
Converts the input angle into a 64-bit floating-point real number ( ).
Converts the converted angle into a radian value ( ).
[Operations involved when X20 to X2F designate a value of 120]
X2F
1 2 0 X20
D10 D13 D12 D21
2.094395···
FLTD
RADD

7.12.15 Conversion from floating-point radian to angle (Single precision) (DEG(P))
DEG(P)
Process High performance Redundant Universal Ver. Basic
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

: Radian angle to be converted to degrees or head number of the devices where the radian angle is stored

: Head number of the devices where the value converted in degrees will be stored (real number)
*1: Applicable for the Universal model QCPU only.

7.12 Special function instructions 7.12.15 Conversion from floating-point radian to angle (Single precision) (DEG(P))
(1) Converts units of angle size from radian units designated by to angles, and stores result
(2) The conversion from radians to angles is performed according to the following equation:
(real number)

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)
*2: There are CPU modules that will not result in an operation error if 0 is specified. For details, refer to 3.2.4.
(For the Universal model QCPU only)
2128 | Operation result | (Error code: 4141)
(1) The following program converts the radian value set with 32-bit floating decimal point type
real number at D20 and D21 to angles, and stores the result as a BCD value at Y40 to Y4F.

Converts a radian value into an angle ( )
Converts the angle in 32-bit floating-point real number into an integer ( ) Outputs the converted integer to a display device ( )
[Operations involved when the values at D20 and D21 are 1.435792]

[Ladder Mode] · [List Mode] · Step Instruction Device

7.12.16 Conversion from floating-point radian to angle (Double precision) (DEGD(P))
DEGD(P)
Universal Basic Process High performance Redundant

: Radian angle to be converted to degrees or head number of the devices where the radian angle is stored
: Head number of the devices where the value converted in degrees will be stored (real number)
U \G Zn Constants
E Other Bit Word Bit Word
––
(1) The unit expressing the size of an angle is converted into the degree unit from the radian
7.12 Special function instructions 7.12.16 Conversion from floating-point radian to angle (Double precision) (DEGD(P))
unit specified by , and its result is stored into the device specified by .
+3 S +2 S S +1 S +3 D +2 D D +1 D
( )rad ( )
64-bit floating-point real number
64-bit floating-point real number
(2) The conversion from radians to angles is performed according to the following equation:
(3) When the operation results in -0 or an underflow, the result is processed as 0.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
0,2-1022 | value of specified device | < 21024
21024 | Operation result | (Error code: 4141)

Program Example
(1) The following program converts the radian value set with 64-bit floating decimal point type
real number at D20 to D23 to angles, and stores the result as a BCD value at Y40 to Y4F.

Converts a radian value into an angle ( ). 1
Converts the angle in 64-bit floating-point real number into an integer ( ).
Outputs the converted integer to a display device ( ).
[Operations involved when the values at D20 to D23 are 1.435792]

[Ladder Mode] · [List Mode] · Step Instruction Device

7.12.17 Exponentiation operation on floating-point data (Single precision) (POW(P))
POW(P)
Ver.
Basic Process High performance Redundant
QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.
QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

: Exponentiation recipient data or head number of the devices where the exponentiation recipient data are

: Exponentiation data or head number of the devices where the data are stored (real number)
: Head number of the devices where the operation result will be stored (real number)

7.12 Special function instructions 7.12.17 Exponentiation operation on floating-point data (Single precision) (POW(P))
(1) This instruction raises the 32-bit floating-point data type real number specified by to the
number nth specified by power, and then stores the operation result into the device
(2) The following shows the values to be specified by and stored into or .
0, 2-126 | Set values (Storage values) | < 2128
(3) If the value resulted from the operation is 0 or an underflow occurs, the result will be processed as 0.
Universal · stored (real number)

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an
error code is stored into SD0.
0, 2-126 | Specified value (Storage value) | < 2128
2126 | Value resulted from operation |
(1) The following program raises the 32-bit floating-point data type real number data specified
by D0 and D1 to the data specified by (D10 and D11)th power, when X10 is turned on. Then the program stores the operation result into D20 and D21.
[Ladder Mode] [List Mode]


operation D21 D20 D1 D0 0.22 0.163
Step Instruction Device · [Operation] · Exponentiation

7.12.18 Exponentiation operation on floating-point data (Single precision) (POWD(P))
POWD(P)
Ver.
Basic Process High performance Redundant
QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.
QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

: Exponentiation recipient data or head number of the devices where the exponentiation recipient data are

: Exponentiation data or head number of the devices where the data are stored (real number)
: Head number of the devices where the operation result will be stored (real number)

7.12 Special function instructions 7.12.18 Exponentiation operation on floating-point data (Single precision) (POWD(P))
(1) This instruction raises the 64-bit floating-point data type real number specified by to the
number nth specified by power, and then stores the operation result into the device
+3 +2 +1 +3 +2 +1
+3 +2 +1 +3 +2 +1
64-bit floating-point data type real number 64-bit floating-point data type real number
(2) The following shows the values to be specified by and stored into or
0, 2-1022 | Set values (Storage values) | < 21024
(3) If the value resulted from the operation is 0 or an underflow occurs, the result will be processed as 0.
Universal · stored (real number)

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an
error code is stored into SD0.
0, 2-1022 | Set values (Storage values) | < 21024
21024 | Value resulted from operation | (Error code: 4141)
(1) The following program raises the 64-bit floating-point data type real number specified by
D200 to D203 to the number nth specified by D0 to D3 power, when X10 is turned on. Then the program stores the operation result into D100 to D103.
[Ladder Mode] [List Mode]


D3 D2 D1 D0 Exponentiation operation
D103 D102 D101 D100
3796.416
Step Instruction Device · [Operation]

7.12.19 Square root operation for floating-point data (Single precision) (SQR(P))
SQR(P)
Process High performance Redundant Universal Ver. Basic
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

: Data of which the square root is obtained or head number of the devices where the data is stored

: Head number of the devices where the operation result will be stored (real number)
*2: Applicable for the Universal model QCPU only.

7.12 Special function instructions 7.12.19 Square root operation for floating-point data (Single precision) (SQR(P))
(1) Returns the square root of the value designated at , and stores the operation result in the
(2) Only positive values can be designated by . (Operation cannot be performed on negative numbers.)
(real number)

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
the following range(For the Universal model QCPU only): (Error code: 4140)
0, 2-126 | Contents of designated device | < 2128
(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU, and Q4ARCPU) (Error code: 4100)
*3: There are CPU modules that will not result in an operation error if 0 is specified. For details, refer to 3.2.4.
(For the Universal model QCPU only)
2128 | Operation result | (Error code: 4141)
(1) The following program seeks the square root of the value set by the 4 BCD digits from X20
to X2F, and stores the result as a 32-bit floating decimal point type real number at D0 and D1.

Inputs data used for square root operation ( )
Converts the input data into a 32-bit floating-point real number ( ) Executes square root operation ( )
[Operations involved when value designated by X20 to X2F is 650]
6 5 0 X20
SQR operation D11 D10
D1 D0 6 5 0 2 5 . 4 9 5 1
FLT
SQR

7.12.20 Square root operation for floating-point data (Double precision) (SQRD(P))
SQRD(P)
Universal Basic Process High performance Redundant

: Data of which the square root is obtained or head number of the devices where the data is stored

: Head number of the devices where the operation result will be stored (real number)
(1) Returns the square root of the value designated at , and stores the operation result in the
7.12 Special function instructions 7.12.20 Square root operation for floating-point data (Double precision) (SQRD(P))
device number designated at .
+3 S +2 S S +1 S +3 D +2 D D +1 D
64-bit floating-point real number
64-bit floating-point real number
(2) Only positive values can be designated by . (Operation cannot be performed on negative numbers.)
(3) When the operation results in -0 or an underflow, the result is processed as 0.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
0,2-1022 | value of specified device | < 21024
21024 | Operation result | (Error code: 4141)
(real number) · ( )

Program Example
(1) The following program seeks the square root of the value set by the 4 BCD digits from X20
to X2F, and stores the result as a 64-bit floating decimal point type real number at D0 to D3.

Inputs data used for square root operation ( ).
Converts the input data into a 64-bit floating-point real number ( ). Executes square root operation ( ).
[Operations involved when value designated by X20 to X2F is 650]
X2F
6 5 0 X20
D10 D13 D12 D1
25.4951
FLTD
SQRD

7.12.21 Exponent operation on floating-point data (Single precision) (EXP(P))
EXP(P)
Process High performance Redundant Universal Ver. Basic
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

: Data of which the exponential value is obtained or head number of the devices where the data is stored

: Head number of the devices where the operation result will be stored (real number)
*2: Applicable for the Universal model QCPU only.

7.12 Special function instructions 7.12.21 Exponent operation on floating-point data (Single precision) (EXP(P))
(1) Returns the exponent of the value designated by , and stores the results of the operation
(2) Exponent operations are calculated taking the base (e) to be "2.71828".
(real number)

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
2-126 | operation result | 2128 (For a High Performance model QCPU)
2-126 | operation result | 2128 (For a Basic model QCPU/Process CPU/Redundant CPU)
(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)
*3: There are CPU modules that will not result in an operation error if 0 is specified. For details, refer to 3.2.4.
(For the Universal model QCPU only)
2128 | Operation result | (Error code: 4141)

Program Example
(1) The following program performs an exponent operation on the value set by the 2 BCD digits
at X20 to X27, and stores the results as a 32-bit floating decimal point real number at D0 and D1.

Inputs the data used for exponent operation ( ).
Checks the range of the value for operation. *4
Converts the input data into a 32-bit floating-point real number ( ).

[Operations involved when value designated by X20 to X27 is 13]
7.12 Special function instructions 7.12.21 Exponent operation on floating-point data (Single precision) (EXP(P))
1 3 4 4 2 4 1 3 . 4
*4: The operation result will be under 2129 if the BCD value of X20 to X27 is less than 89, from the calculation
loge 2129 = 89.4. Because setting a value of over 90 will return an operation error, turn M0 ON if a value of over 90 has been set to avoid the error.
Conversion from natural logarithm to common logarithm In the CPU module, calculation is made using a natural logarithm.
To obtain a common logarithm value, enter in, a common logarithm value divided by 0.43429.
[Ladder Mode] · [List Mode] · Step Instruction Device

7.12.22 Exponent operation on floating-point data (Double precision) (EXPD(P))
EXPD(P)
Universal Basic Process High performance Redundant

: Data of which the exponential value is obtained or head number of the devices where the data is stored

: Head number of the devices where the operation result will be stored (real number)
(1) Returns the exponent of the value designated by , and stores the results of the operation

+3 S +2 S S +1 S +3 D +2 D D +1 D
(2) Exponent operations are calculated taking the base (e) to be "2.71828".
(3) When the operation results in -0 or an underflow, the result is processed as 0.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
0,2-1022 | value of specified device | < 21024
21024 | Operation result | (Error code: 4141)
(real number)

Program Example
(1) The following program performs an exponent operation on the value set by the 2 BCD digits
at X20 to X31, and stores the results as a 64-bit floating decimal point real number at D0 to D3.

Checks the range of the value used for operation. *1
Converts the input data into a 64-bit floating-point real number ( ). Executes exponent operation ( ).
[Operations involved when value designated by X20 to X31 is 13]

7.12 Special function instructions 7.12.22 Exponent operation on floating-point data (Double precision) (EXPD(P))
*1: The operation result will be under 21024 if the BCD value of X20 to X31 is less than 709, from the calculation
loge 21024 = 709.7832. Because setting a value of over 710 will return an operation error, turn M0 ON if a value of over 710 has been set to avoid the error.
Conversion from natural logarithm to common logarithm In the CPU module, calculation is made using a natural logarithm.
To obtain a common logarithm value, enter in, a common logarithm value divided by 0.43429.
[Ladder Mode] · [List Mode] · Step Instruction Device

7.12.23 Natural logarithm operation on floating-point data (Single precision) (LOG(P))
LOG(P)
Process High performance Redundant Universal Ver. Basic
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

: Data of which the natural logarithm is obtained or head number of the devices where the data is stored

: Head number of the devices where the operation result will be stored (real number)
*2: Applicable for the Universal model QCPU only.
(1) Returns the natural logarithm of the value designated by taking (e) as base, and stores

(2) Only positive values can be designated by . (Operation cannot be performed on negative numbers.)
(real number)

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
the following range(For the Universal model QCPU only): (Error code: 4140)
0, 2-126 | Contents of designated device | < 2128
*3: There are CPU modules that will not result in an operation error if 0 is specified. For details, refer to 3.2.4.
(For the Universal model QCPU only)
2128 | Operation result | (Error code: 4141)
(1) The following program seeks the natural logarithm of the value "10" set by D50, and stores
the result at D30 and D31.

Sets data used for natural logarithm operation ( )
7.12 Special function instructions 7.12.23 Natural logarithm operation on floating-point data (Single precision) (LOG(P))
Converts the operation data into a 32-bit floating-point real number ( ) Executes natural logarithm operation ( )
1 0 2 . 3 0 2 5 8 5
[Ladder Mode]

7.12.24 Natural logarithm operation on floating-point data (Double precision) (LOGD(P))
LOGD(P)
Universal Basic Process High performance Redundant

: Data of which the natural logarithm is obtained or head number of the devices where the data is stored

: Head number of the devices where the operation result will be stored (real number)
(1) Returns the natural logarithm of the value designated by taking (e) as base, and stores

+3 S +2 S S +1 S +3 D +2 D D +1 D
(2) Only positive values can be designated by . (Operation cannot be performed on negative numbers.)
(3) When the operation results in -0 or an underflow, the result is processed as 0.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
0,2-1022 | value of specified device | < 21024
21024 | Operation result | (Error code: 4141)
(real number)

Program Example
(1) The following program seeks the natural logarithm of the value "10" set by D50, and stores
the result at D30 to D33.

Sets data used for natural logarithm operation ( ).
Converts the operation data into a 64-bit floating-point real number ( ). Executes natural logarithm operation ( ).


7.12 Special function instructions 7.12.24 Natural logarithm operation on floating-point data (Double precision) (LOGD(P))

7.12.25 Common logarithm operation on floating-point data (Single precision) (LOG10(P))
LOG10(P)
Ver.
Basic Process High performance Redundant
QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.
QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

: Data of which the common logarithm is obtained or head number of the devices where the data are stored

: Head number of the devices where the operation result will be stored (real number)
*1: Available only for real number.
(1) This instruction obtains the value specified by for common logarithm (logarithm with base
10), and then stores the operation result into the device specified by .

(2) Only positive values can be specified by . (Operation cannot be performed on negative numbers.)
(3) If the value resulted from the operation is 0 or an underflow occurs, the result will be processed as 0.
Universal · (real number)

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an
error code is stored into SD0.
0,2-126 | value of specified device | < 2128
2128 | value of specified device |
(1) The following program obtains the value for common logarithm of the 32-bit floating-point
data type real number specified by D600 or D601, when X10 is turned on. Then the program stores the operation result into D123 or D124.
[Ladder Mode] [List Mode]

7.12 Special function instructions 7.12.25 Common logarithm operation on floating-point data (Single precision) (LOG10(P))
D124 D123
Log 10
0.448088
Step Instruction Device · [Operation]

7.12.26 Common logarithm operation on floating-point data (Double precision) (LOG10D(P))
LOG10D(P)
Ver.
Basic Process High performance Redundant
QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.
QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

: Data of which the common logarithm is obtained or head number of the devices where the data are stored

: Head number of the devices where the operation result will be stored (real number)
*1: Available only for real number.
(1) This instruction obtains the value specified by for common logarithm (logarithm with base
10),and then stores the operation result into the device specified by .

Log10 S S +3 S +2 S +1 D D +3 D +2 D +1
(2) Only positive values can be specified by . (Operation cannot be performed on negative numbers.)
(3) If the value resulted from the operation is 0 or an underflow occurs, the result will be processed as 0.
Universal · (real number)

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an
error code is stored into SD0.
0,2-1022 | value of specified device | < 21024
21024 | value of specified device |
(1) This following program obtains the value for common logarithm of the 64-bit floating-point
data type real number specified by D600 to D603 when X10 is turned on. Then the program stores the operation result into D123 to D126.
[Ladder Mode] [List Mode]

7.12 Special function instructions 7.12.26 Common logarithm operation on floating-point data (Double precision) (LOG10D(P))
Step Instruction Device · [Operation]

7.12.27 Random number generation and series updates (RND(P),SRND(P))
RND(P),SRND(P)
Process High performance Redundant Universal Ver. Basic
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

: Head number of the devices where random numbers will be stored (BIN 16 bits)
: Random number serial data or the first number of the devices where the random number serial data is stored

The random number generation instruction generates random numbers conforming to a certain calculation formula. In the calculation using the formula, the result of previous calculation is used as a coefficient. The random series change instruction can change the random number generation pattern.
Generates random number of from 0 to 32767, and stores at device designated by .
Updates random number series according to the 16-bit BIN data being stored in device
designated by .
(BIN 16 bits)

Operation Error
(1) There are no operation errors associated with the RND(P) or SRND(P) instructions.
(1) The following program stores random number at D100 when X10 is turned ON.
[Ladder Mode] [List Mode]

(2) The following program updates a random number series according to the contents of D0
when X10 is turned ON.
[Ladder Mode] [List Mode]


7.12 Special function instructions 7.12.27 Random number generation and series updates (RND(P),SRND(P))

7.12.28 BCD 4-digit and 8-digit square roots (BSQR(P),BDSQR(P))
BSQR(P),BDSQR(P)
Process High performance Redundant Universal Basic

: Data of which the square root is obtained or the number of the device where the data is stored

: Head number of the devices where the square root calculation result will be stored (BCD 4 digits)
(1) Returns the square root of the value designated at , and stores the operation result in the
device number designated at .
Integer part Decimal fraction part .
(2) Values that can be designated at are BCD values with a maximum of 4 digits (from 0 to 9999).
(3) The operation results of and +1 are stored as their respective BCD values of between 0 and 9999.
(4) Operation results are rounded off from the fifth decimal place.
For this reason, the fourth decimal place has an error of ±1.

BDSQR
(1) Calculates the square root of the values designated by and +1 and stores the results at

(2) BCD value of a maximum of 8 digits (0 to 99999999) can be designated by and +1.
(3) The operation results of and +1 are stored as their respective BCD values of between 0 and 9999.
(4) Operation results are rounded off from the fifth decimal place.
For this reason, the fourth decimal place has an error of ±1.
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
(1) The following program calculates the square root of BCD value 1325 and outputs the integer
part to the 4 BCD digits from Y50 to Y5F, and the decimal fraction part to the 4 BCD digits from Y40 to Y4F.

Sets the data used for square root operation ( )
7.12 Special function instructions 7.12.28 BCD 4-digit and 8-digit square roots (BSQR(P),BDSQR(P))
Outputs the integer part of the operation result to a display device ( )
Outputs the decimal fraction part of the operation result to a display device ( )
[Ladder Mode]

(2) The following program calculates the square root of BCD value 74625813 and outputs the
integer part of the result to the 4 BCD digits at Y50 to Y5F, and the decimal fraction part to the 4 BCD digits from Y40 to Y4F.

Sets the data (BCD value) used for square root operation ( )
Outputs the integer part of the operation result to a display device ( )
Outputs the decimal fraction part of the operation result to a display device ( )


7.12.29 BCD type SIN operation (BSIN(P))
BSIN(P)
Process High performance Redundant Universal Basic

: Data of which the SIN (sine) value is obtained or the number of the device where the data is stored

: Head number of the devices where the operation result will be stored (BCD 4 digits)
(1) Calculates the SIN (sine) value of value (angle) designated by , and stores the sign of the
operation result in the device designated at , and the operation result in the devices
7.12 Special function instructions 7.12.29 BCD type SIN operation (BSIN(P))
designated at +1 and +2.
S Integer part Decimal fraction part .
(2) The value designated at is a BCD value which can be between 0 and 360 degrees (in units of degrees).
(3) The sign for the operation result stored in will be "0" if the result is a positive value, and "1" if the result is a negative value.
(4) The operation results stored in +1 and +2 are BCD values between 1.000 and 1.000.
(5) Operation results are rounded off from the fifth decimal place.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(BCD 4 digits) · Sign SIN

Program Example
(1) The program example below calculates the SIN of 3-digit BCD data designated by X20 to
X2B, and outputs a 1-digit BCD part to the integer part from Y50 to Y53, and a 4-digit BCD fraction part from Y40 to Y4F.
Y60 is turned ON if the results of the operation are negative. (If a value has been set at X20 to X2F that is greater than 360, it will be adjusted to be in the range from 0 to 360.) [Ladder Mode]

Processes so that the input angle is within 360° ( )
Outputs the integer part of the operation result to a display device ( )
Outputs the decimal fraction part of the operation result to a display device ( )
Outputs the sign of the operation result by ON or OFF ( )
[Operations involved when value designated by X20 to X2B is 590]

[List Mode] · Step Instruction Device

7.12.30 BCD type COS operations (BCOS(P))
BCOS(P)
Process High performance Redundant Universal Basic

: Data of which the COS (cosine) value is obtained or head number of the devices where the data is stored

: Head number of the devices where the operation result will be stored (BCD 4 digits)
(1) Calculates COS (cosine) value of value (angle) designated by , then stores the sign for
the operation result in the word device designated by , and the operation result in the
7.12 Special function instructions 7.12.30 BCD type COS operations (BCOS(P))
word device designated by +1 and +2.
S Integer part Decimal fraction part .
(2) The value designated at is a BCD value which can be between 0 and 360 degrees
(in units of degrees).
(3) The sign for the operation result stored in will be "0" if the result is a positive value, and "1" if the result is a negative value.
(4) The operation results stored in +1 and +2 are BCD values between 1.000 and 1.000.
(5) Operation results are rounded off from the fifth decimal place.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(BCD 4 digits) · Sign COS

Program Example
(1) The following program calculates the cosine of the data designated by the 3 BCD digits from
X20 to X2B and outputs the integer part of the result to 1 BCD digit from Y50 to Y53, and the decimal fraction part of the result to the 4 BCD digits from Y40 to Y4F.
Y60 is turned ON if the results of the operation are negative.

Processes so that the input angle is within 360° ( )
Outputs the integer part of the operation result to a display device ( )
Outputs the decimal fraction part of the operation result to a display device ( )
Outputs the sign of the operation result by ON or OFF ( )
[Operations involved when value designated by X20 to X2B is 430]

[Ladder Mode] · [List Mode] · Step Instruction Device

7.12.31 BCD type TAN operation (BTAN(P))
BTAN(P)
Process High performance Redundant Universal Basic

: Data of which the TAN (tangent) value is obtained or head number of the devices where the data is stored

: Head number of the devices where the operation result will be stored (BCD 4 digits)
(1) Calculates TAN (tangent) value for value (angle) designated by , and stores the sign for
the operation result in the word device designated by , and the operation result in the
word device designated by +1 and +2.
7.12 Special function instructions 7.12.31 BCD type TAN operation (BTAN(P))
S Integer part Decimal fraction part .
(2) The value designated at is a BCD value which can be between 0 and 360 degrees (in units of degrees).
(3) The sign for the operation result stored in will be "0" if the result is a positive value, and "1" if the result is a negative value.
(4) The operation results stored at +1 and +2 are BCD values within the range of from 57.2901 and 57.2902.
(5) Operation results are rounded off from the fifth decimal place.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(BCD 4 digits) · Sign TAN

Program Example
(1) The following program calculates the tangent of the data stored in the 3 BCD digits from X20
to X2B, and stores the integer part of the results in the 4 BCD digits from Y50 to Y53, and the decimal fraction part in the 4 BCD digits from Y40 to Y4F.
Y60 is turned ON if the results of the operation are negative.

Processes so that the input angle is within 360° ( )

[Operations involved when X20 to X2B designate a value of 390]

[Ladder Mode] · [List Mode]

7.12.32 BCD type SIN -1 operations (BASIN(P))
BASIN(P)
Process High performance Redundant Universal Basic

: Number of the device where data of which the SIN-1 (inverse sine) value is obtained is stored
: Head number of the devices where the operation result will be stored (BCD 4 digits)
U \G Zn Constants
K, H Other Bit Word Bit Word
––
(1) Returns the SIN-1 (inverse sine) value of the value designated by and stores operation
results (angles) at device designated by .
7.12 Special function instructions 7.12.32 BCD type SIN -1 operations (BASIN(P))
Integer part Decimal fraction part . Sign SIN
(2) A sign for the operation data is set at .
If the operation data is a positive value, this is set at "0", and if it is a negative value, it is set at "1".
(3) The part before the decimal point and fraction part are stored at +1 and +2 respectively, as BCD values. (Settings can be between 0 and 1.0000.)
(4) Operation results stored at are BCD values between 0 and 90 degrees, and 270 and 360 degrees (degree units).
(5) Calculation results are a value from which the decimal fraction part has been rounded.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.

Program Example
(1) The following program performs a SIN-1 operation on the sign (positive when X0 is OFF, and
negative when X0 is ON), the BCD 1-digit integer part from X30 to X33 and the BCD 4-digit decimal fraction part from X20 to X2F, and outputs the calculated angle in 4 BCD digits from Y40 to Y4F.

Sets the sign of a SIN value ( )
Sets the integer part of a SIN value ( )
Sets the decimal fraction part of a SIN value ( )
Executes Sin-1 operation and outputs the result of operation to Y40 to Y4F ( )

[Operations involved when X20 to X33 designates value of 0.4753]

[Ladder Mode] · [List Mode]

7.12.33 BCD type COS -1 operation (BACOS(P))
BACOS(P)
Process High performance Redundant Universal Basic

: Number of the device where data of which the COS-1 (inverse cosine) value is obtained is stored

: Head number of the devices where the operation result will be stored (BCD 4 digits)
U \G Zn Constants Other Bit Word Bit Word
(1) Returns the COS-1 (inverse cosine) value of the value designated by , and stores
operation results at device designated by .
7.12 Special function instructions 7.12.33 BCD type COS -1 operation (BACOS(P))
COS
Integer part Decimal fraction part . Sign
(2) A sign for the operation data is set at .
If the operation data is a positive value, this is set at "0", and if it is a negative value, it is set at "1".
(3) The part before the decimal point and fraction part are stored at +1 and +2 respectively, as BCD values.
(Settings can be between 0 and 1.0000.)
(4) The operation results stored at will be a BCD value in the range of between 0 and 180° (degree units).
(5) Calculation results are a value from which the decimal fraction part has been rounded.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(BCD 4 digits) · +1 · +2

Program Example
(1) The following program performs a COS-1 operation on the sign (positive when X0 is OFF,
and negative when X0 is ON), the BCD 1-digit integer part from X30 to X33 and the BCD 4-digit decimal fraction part from X20 to X2F, and outputs the calculated angle in 4 BCD digits from Y40 to Y4F.

Sets the sign of a COS value ( )
Sets the integer part of a COS value ( )
Sets the decimal fraction part of a COS value ( )
Turns M0 ON when D1>1 or D1=1 and D2 0
Executes COS-1 operation and outputs the result of operation to Y40 to Y4F ( )

[Operations involved if X0 and X20 to X33 designate a value of 0.7650]

[Ladder Mode] · [List Mode]

7.12.34 BCD type TAN -1 operations (BATAN(P))
BATAN(P)
Process High performance Redundant Universal Basic

: Number of the device where data of which the TAN-1 (inverse tangent) value is obtained is stored

: Head number of the devices where the operation result will be stored (BCD 4 digits)
U \G Zn Constants Other Bit Word Bit Word
(1) Performs TAN-1 (inverse tangent) on value designated by and stores operation results
(angles) at device designated by .
7.12 Special function instructions 7.12.34 BCD type TAN -1 operations (BATAN(P))
TAN
Integer part Decimal fraction part . Sign
(2) A sign for the operation data is set at .
If the operation data is a positive value, this is set at "0", and if it is a negative value, it is set at "1".
(3) The part before the decimal point and fraction part are stored at +1 and +2 respectively, as BCD values.
(Values from 0 to 9999.9999 can be set.)
(4) Operation results stored at are BCD values between 0 and 90 degrees, and 270 and 360 degrees (degree units).
(5) Calculation results are a value from which the decimal fraction part has been rounded.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(BCD 4 digits) · +1 · +2

Program Example
(1) The following program performs a TAN-1 operation on the sign (positive when X0 is OFF,
and negative when X0 is ON), the BCD 4-digit integer part from X20 to X2F and the BCD 4-digit decimal fraction part from X30 to X3F, and outputs the calculated angle in 4 BCD digits from Y40 to Y4F.

Sets the sign of a TAN value ( )
Sets the integer part of a TAN value ( )
Sets the decimal fraction part of a TAN value ( )
Executes TAN-1 operation and outputs the result of operation to Y40 to Y4F ( )
[Operations involved when X0 and X20 to X2F designate a value of 1.2654]

[Ladder Mode] · [List Mode] · Step Instruction Device

7.13 Data Control Instructions
7.13.1 Upper and lower limit controls for BIN 16-bit and BIN 32-bit data (LIMIT(P),DLIMIT(P))
Basic Process High performance Redundant Universal

: Lower limit value (minimum output threshold value) (BIN 16/32 bits)
: Upper limit value (maximum output threshold value) (BIN 16/32 bits)
: Input value to be controlled by the upper and lower limit control (BIN 16/32 bits)
: Head number of the devices where the output value controlled by the upper and lower limit control will be
stored (BIN 16/32 bits)
U \G Zn Constants
K, H Other Bit Word Bit Word
7.13 Data Control Instructions 7.13.1 Upper and lower limit controls for BIN 16-bit and BIN 32-bit data (LIMIT(P),DLIMIT(P))
(1) Controls the output value to be stored at the device designated by by checking whether the input value (BIN 16 bits) designated by is within the range of upper and lower limit values specified by and or not. Output value is controlled in the way shown below:
S1 Lower limit value S3 Input value S1 Lower limit value D Output value
S2 Upper limit value S3 Input value S2 Upper limit value D Output value
S1 Lower limit value S3 Input value S2 Upper S3 Input value D Output value
Output value ( ) D
Value designated by S2
Value designated by S1
Input value( ) S3
(2) Values in the range from 32768 and 32767 can be designated at , , and .
Settng · Internal Devices · Data

(3) When control based only on upper limit values is performed, the lower limit value designated
at is set at " 32678".
(4) When control based only on lower limit values is performed, the upper limit value designated
at is set at "32767".
(1) The function controls the output value to be stored at the device designated by ( , +1) by
checking whether the input value (BIN 32 bits) designated by ( , +1) is within the range

of upper and lower limit values specified by ( , +1) and ( , +1) or not.
Lower limit value Input value Upper limit value Input value Output value
(2) The values designated by ( , +1), ( , +1), or ( , +1) are within the range of 2147483648 to 2147483647.
(3) To perform controls based only on the upper limit value, set the lower limit value designated
by ( , +1) to " 2147483648".
(4) To perform controls based only on the lower limit value, set the upper limit value designated
by ( , +1) to "2147483647".
Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.

Program Example
(1) The following program conducts limit controls from 500 to 5000 on the data set as BCD
values from X20 to X2F, and stores the result at D1 when X0 is turned ON.
[Ladder Mode] [List Mode]

D0 400 D1 500
D0 1300 D1 1300
D0 9600 D1 5000
(2) The following program conducts limit value controls from 10000 to 1000000 on the data set
as BCD values from X20 to X3F when X0 is turned ON.
[Ladder Mode] [List Mode]

7.13 Data Control Instructions 7.13.1 Upper and lower limit controls for BIN 16-bit and BIN 32-bit data (LIMIT(P),DLIMIT(P))
[Operation]

7.13.2 BIN 16-bit and 32-bit dead band controls (BAND(P),DBAND(P))
BAND(P),DBAND(P)
Basic Process High performance Redundant Universal

: Lower limit value of dead band (no output band) (BIN 16/32 bits)
: Upper limit value of dead band (no output band) (BIN 16/32 bits)
: Input value to be controlled by a dead band control (BIN 16/32 bits)
: Head number of the devices where the output value controlled by the dead band control will be stored

(1) Controls the output value to be stored at the device designated by by checking whether
the input value (BIN 16 bits) designated by is within the range of dead band upper and
lower limit values specified by and or not. Output value is controlled in the way shown below:

S1 Lower limit value S3 Input value S3 Input value S1 Lower D Output value
S2 Upper limit value S3 Input value S3 Input value S2 Upper D Output value
S1 Lower limit value S3 Input value S2 Upper D Output value
(2) The values that can be designated by , , and are in the range of from 32768 to 32767.
(BIN 16/32 bits)

(3) The output value stored at is a signed 16-bit BIN value. Therefore, if the operation results exceed the range of from 32768 to 32767, the following will take place:
Input value 32768
Output value 32768 10 8000H AH 7FF6H 32758
(1) Controls the output value to be stored at the device designated by by checking whether
the input value (BIN 32 bits) designated by ( , +1) is within the range of dead band upper
and lower limit values specified by ( , +1) and ( , +1) or not.
Output value is controlled in the way shown below:

+1 S3 S3 +1 S2 S2 +1 S2 S2
Lower limit value Input value Upper limit value Output value
S1 Dead band lower limit value ( , +1) S1
S2 Dead band upper limit value ( , +1) S2
(2) The values designated by ( , +1), ( , +1), or ( , +1) are within the range of from 2147483648 to 2147483647.

7.13 Data Control Instructions 7.13.2 BIN 16-bit and 32-bit dead band controls (BAND(P),DBAND(P))
(3) The output value stored at , +1 is a signed 32-bit BIN value. Therefore, if the operation results exceed the range of from 2147483648 to 2147483647, the following takes place:
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

Program Example
(1) The following program performs the dead band control by applying the lower and upper
limits of 0 and 1000 for the data set in BCD at X20 to X2F and stores the result of control at D1 when X0 is turned ON.
[Ladder Mode] [List Mode]

D0 500 D1 0
D0 7000 D1 6000
(2) The following program performs the dead band control by applying the lower and upper
limits of 10000 and 10000 for the data set at D0 and D1 and stores the result of control at D10 and D11 when X0 is turned ON
[Ladder Mode] [List Mode]
(D1, D0) 12345 (D11, D10) 2345
(D1, D0) 6789 (D11, D10) 0
(D1, D0) 50000 (D11, D10) 40000
[Operation] · Step Instruction Device · [Operation]

7.13.3 Zone control for BIN 16-bit and BIN 32-bit data (ZONE(P),DZONE(P))
ZONE(P),DZONE(P)
Basic Process High performance Redundant Universal

: Negative bias value to be added to an input value (BIN 16/32 bits)
: Positive bias value to be added to an input value (BIN 16/32 bits)
: Input value used for a zone control (BIN 16/32 bits)
: Head number of the devices where the output value controlled by the zone control will be stored
(BIN 16/32 bits).

7.13 Data Control Instructions 7.13.3 Zone control for BIN 16-bit and BIN 32-bit data (ZONE(P),DZONE(P))
(1) Adds bias value designated by or to input value designated by , and stores at
S3 Input value S3 Input value S1 Negative bias value D Output value
S3 Input value S3 Input value S2 Positive bias value D Output value

(2) The values that can be designated by , , and are in the range of from 32768 to 32767.
(3) The output value stored at is a signed 16-bit BIN value. Therefore, if the operation results exceed the range of 32768 to 32767, the following will take place:
Input value 32768
Output value 32768 + ( 100) 8000H + FF9C 7F9CH 32668
(1) Adds bias value designated by ( , +1) or ( , +1) to input value designated by ( ,
+1), and stores the result at device number designated by ( , +1).
Addition of the bias value is performed as follows:

(2) The values designated by ( , +1), ( , +1), or ( , +1) are within the range of from 2147483648 to 2147483647.
(3) The value stored at ( , +1) is a signed 32-bit BIN value.
Therefore, if the operation results exceed the range of from 2147483648 to 2147483647, the following takes place:

Output value 2147483648 + ( 1000) 80000000H + FFFFFC18H
(1) There are no operation errors associated with the ZONE(P) or DZONE(P) instructions.

Program Example
(1) The following program performs zone control by applying negative and positive bias values
of 100 to 100 for the data set at D0 and stores the result of control at D1 when X0 is turned ON.
[Ladder Mode] [List Mode]

D0 200 D1 300
D0 700 D1 800
(2) The following program performs zone control by applying negative and positive bias values
of 10000 to 10000 for the data set at D0 and D1 and stores the result of control at D10 and D11 when X1 is turned ON.
[Ladder Mode] [List Mode]

7.13 Data Control Instructions 7.13.3 Zone control for BIN 16-bit and BIN 32-bit data (ZONE(P),DZONE(P))
[Operation] · Step Instruction Device

7.13.4 Scaling (Point-by-point coordinate data) (SCL(P),DSCL(P))
(SCL(P),DSCL(P))
Ver.
Basic Process High performance Redundant
QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.
QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

: Input values for scaling or head number of the device where input values are stored(BIN 16/32 bits)
: Head number of the devices where scaling conversion data are stored(BIN 16/32 bits)
: Head number of the devices where output values depending on scaling are stored(BIN 16/32 bits).
(1) This instruction executes scaling for the scaling conversion data (16-bit data units) specified
by with the input value specified by , and then stores the operation result into the
devices specified by . The scaling conversion is executed based on the scaling conversion data stored in the

Operable range Operation error Operation error ※n indicates the number of coordinates
(2) If the value does not result in an integer, this instruction rounds the value to the whole
number.
(3) Set the X coordinate of the scaling conversion data in ascending order.
(4) Set the input value within the range of the scaling conversion data (within the range of devices).
Universal

(5) If some specified points have same X coordinates, the Y coordinate data of the highest point
number will be output.
(6) Specify the number of coordinate points of scaling conversion data from 1 to 32767.
(1) This instruction executes scaling for the scaling conversion data (32-bit data units) specified
by with the input value specified , and then stores the operation result into the devices
specified by . The scaling conversion is executed based on the scaling conversion data stored in the
device specified by and up.
Scaling conversion data component
Setting item Device assignment
Number of coordinate points
Operable range Operation error
Y coordinate Point 2
Point n-1
S2 , +4n-1 S2 +4n-2
Y coordinate Point n
S2 , +4n+1 S2 +4n
※n indicates the number of coordinates
specified by (S2).
(2) If the value does not result in an integer, this instruction rounds the value to the whole
number.
(3) Set the X coordinate of the scaling conversion data in ascending order.
(4) Set the input value within the range of the scaling conversion data (within the range of
and +1 devices).
(5) If some specified points have same X coordinates, the Y coordinate data of the highest point
number will be output.
7.13 Data Control Instructions 7.13.4 Scaling (Point-by-point coordinate data) (SCL(P),DSCL(P))
(6) Specify the number of coordinate points of scaling conversion data from 1 to 32767.

(1) There are two searching methods that depend on whether SM750 is on or off.
SM750 Searching method Range of number of searches
OFF Sequential search 1 Number of times 32767
ON Binary search 1 Number of times 15
(2) When the scaling conversion data are set in ascending order, the searching
methods change from one to the other depending on the SM750 status. Therefore, the processing speed also changes. The number of searches determines the processing speed. Fewer number of serches make the processing run faster. (a) If the data processing speed with the sequential search rises:
If the number of coordinates is highest and the input value is within the coordinate range from 1 to 15 point, the number of sequential searches will be 15 or smaller. Therefore, the data processing speed with the sequential search will rise. (b) If the data processing speed with the binary search rises:
f the maximum number of searches is 15 and the input value is out of the coordinate range, 16 or over, the number of binary searches will be equal to the number of sequential numbers or smaller. Therefore, the data processing speed with the binary search will rise.
Number of coordinate points=32767 Number of sequential searches=32767 Number of binary searches=15
The processing speed with binary search rises since the number of binary searches is smaller than the number of sequential searches.
Number of sequential searches=1 Number of binary searches=15
The processing speed with sequential searches rises since the number of binary searches is larger than the number of sequential searches.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an
error code is stored into SD0.
are not set in ascending order. (However, this error is not detected when SM750 is on.)
(1) The following program executes scaling for the scaling conversion data of which the devices
specified at D100 and up are set with the input value specified at D0, and then outputs the data at D20.
[Ladder Mode] [List Mode]

7.13 Data Control Instructions 7.13.4 Scaling (Point-by-point coordinate data) (SCL(P),DSCL(P))
Scaling conversion data component
Setting item Device Setting contents
Number of coordinate points
Y
D101 K5
D102 K13
D103 K10
Point 2 (10,15) Point 3 (17,13)
Point 1 (5,13)
D105 K17
D20=11 (Output value)
Point 4 (20,8)
Point 5 (25,4)
D108 K8
D109 K25
D0=18 (Output value)

7.13.5 Scaling (Point-by-point coordinate data) (SCL2(P),DSCL2(P))
SCL2,DSCL2
Ver.
Basic Process High performance Redundant
QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.
QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

: Input values for scaling or head number of the device where input values are stored(BIN 16/32 bits)
: Head number of the devices where scaling conversion data are stored(BIN 16/32 bits)
: Head number of the devices where output values depending on scaling are stored(BIN 16/32 bits).
(1) This instruction executes scaling for the scaling conversion data (16-bit data units) specified
by with the input value specified by , and then stores the operation result into the
devices specified by . The scaling conversion is executed based on the scaling conversion data stored in the

(2) If the value does not result in an integer, this instruction rounds the value to the whole
number.
(3) Set the X coordinate of the scaling conversion data in ascending order.
Universal

(4) Set the input value within the range of the scaling conversion data (within the range of devices).
(5) If some specified points have same X coordinates, the Y coordinate data of the highest point
number will be output.
(1) This instruction executes scaling for the scaling conversion data (32-bit data units) specified
by with the input value specified , and then stores the operation result into the devices
specified by . The scaling conversion is executed based on the scaling conversion data stored in the

(2) If the value does not result in an integer, this instruction rounds the value to the whole
number.
(3) Set the X coordinate of the scaling conversion data in ascending order.
(4) Set the input value within the range of the scaling conversion data (within the range of
and +1 devices).

(5) If some specified points have same X coordinates, the Y coordinate data of the highest point
7.13 Data Control Instructions 7.13.5 Scaling (Point-by-point coordinate data) (SCL2(P),DSCL2(P))
(6) Specify the number of coordinate points of scaling conversion data from 1 to 32767.
When the coordinates of the scaling conversion data are set in ascending order, the searching methods change from one to the other depending on the SM750 status. Therefore, the processing speed also change. The number of searches determines the processing speed. Fewer number of searches make the processing run faster. For details, refer to Section 7.13.4.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an
error code is stored into SD0.
(1) The following program executes scaling for the scaling conversion data of which the devices
specified at D100 and up are set with the input value specified at D0, and then outputs the data at D20.
[Ladder Mode] [List Mode]

Scaling conversion data component
Setting item Device Setting contents
Number of coordinate points
Y
D111 K7
D112 K13
D113 K15
D114 K18
Point 2 (13, -7)
Point 4 (18, -11)
D116 K-14
D200=-9 (Output value)
Point 3 (15, -9) Point 5 (20, -13)
D118 K-15
Point 1 (7, -14)
D120 K-18

7.14 File register switching instructions
7.14.1 Switching file register numbers (RSET(P))
RSET(P)
Basic Process High performance Redundant Universal

: Block number data used to change the block number or the number of the device where the block number
data is stored (BIN 16 bits)

(1) Changes the file register block number used in the program to the block number stored in

the device designated at . Following the block number change, all file registers used in the sequence program are processed to the file register of the block number after the change.
7.14 File register switching instructions 7.14.1 Switching file register numbers (RSET(P))
When switching block number from block No. 0 to block No. 1
When a file register (R) is refreshed and the block No. of the file register is switched with the RSET instruction, follow restrictions. For the restrictions on file registers, refer to Section 3.10.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The following program compares R0 of block No. 0 and block No. 1.



[Ladder Mode] · [List Mode] · [Operation]

7.14.2 Setting files for file register use (QDRSET(P))
QDRSET(P)
Process High performance Redundant Universal Basic

: Character string data of the drive No./file name in which the file register is set, or head number of the devices
where the character string data is stored (character string)

(1) Changes the file register file name used in the program to the file name being stored at the
device designated by .
After the file names have been changed, all the file registers being used by the sequence program process the file register of the block No. 0 of the renamed file. Block number switches are performed by the RSET instruction.

7.14 File register switching instructions 7.14.2 Setting files for file register use (QDRSET(P))
When switching from Drive No. 1/File name B to Drive No. 3/File name A
File name of file register used after the execution of QDRSET instruction ( )

(2) Drive number can be designated from 1 to 4.
(The drive number cannot be designated as drive 0 (program memory/internal memory).) Note that available drives vary depending on the CPU module used. Refer to the manual of the CPU module and check the drives that can be specified.
(3) It is not necessary to designate the extension (.QDR) with the file name.
(4) A file name setting can be deleted by designating the NULL character (00H) for the file
name.
(5) File names designated with this instruction will be given priority even if a drive number and
file name have been designated in the parameters.
1. If the file name is changed with the QDRSET instruction, the file name returns to the name specified by the parameter when the CPU module is switched from STOP to RUN. To maintain the file name even after the CPU mode is changed from STOP to RUN, execute the QDRSET instruction with the SM402 special relay, which turns ON during one scan when the CPU enters from STOP to RUN mode. 2. For refreshing a file register, do not change the file name of the file register with the QDRSET instruction. For restrictions on file registers, refer to Section 3.10.
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.

Program Example
(1) The following program compares R0 of ABC in block No. 1 and R0 of DEF in block No. 1.


7.14 File register switching instructions 7.14.2 Setting files for file register use (QDRSET(P))
[Ladder Mode] · [List Mode]

7.14.3 File setting for comments (QCDSET(P))
QCDSET(P)
Process High performance Redundant Universal Basic

: Character string data of the drive No./file name in which the comment file is set, or head number of the
devices where the character string data is stored (character string)

(1) Changes the file register file name used in the program to the file name being stored at the
device designated by .
After the file name change, comment data being used by the sequence program perform processing in relation to the comment data of the file name after the change.
When switching from Drive No. 1/File name B to Drive No. 3/File name A

File name of file register used after the execution of QCDSET instruction ( ) ( )
(2) Drive number can be designated from 1 to 4.
(The drive number cannot be designated as drive 0 (program memory/internal memory).) Note that available drives vary depending on the CPU module used. Refer to the manual of the CPU module and check the drives that can be specified.
(3) It is not necessary to designate the extension (.QCD) with the file name.

(4) A file name setting can be deleted by designating the NULL character (00H) for the file
name.
(5) File names designated with this instruction will be given priority even if a drive number and
file name have been designated in the parameters.
(6) This instruction cannot be executed while SM721 is ON for the Universal model QCPU. No
operation if executed.
If the file name is changed with the QCDSET instruction, the file name returns to the name specified by the parameter when the CPU module is switched from STOP to RUN. To maintain the file name even after the CPU mode is changed from STOP to RUN, execute the QCDSET instruction with the SM402 special relay, which turns ON during one scan when the CPU enters from STOP to RUN mode.
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
(1) The following program switches object file to file name ABC. QCD at drive No. 0 when X0 is
ON, and to DEF. QCD at drive No. 1 when X1 is ON.

7.14 File register switching instructions 7.14.3 File setting for comments (QCDSET(P))
(1) This instruction will not be executed even when the execution command of this instruction is
ON while SM721 (file access in execution) is ON for the Universal model QCPU only. Execute this instruction when SM721 is OFF.

7.15 Clock instructions
7.15.1 Reading clock data (DATERD(P))
DATERD(P)
Basic Process High performance Redundant Universal

: Head number of the devices where the read clock data will be stored (BIN 16 bits)
U \G Zn Constants Other Bit Word Bit Word
(1) Reads "year, month, day, hour, minute, second, and day of week" from the clock element of
the CPU module and stores it as BIN value to the device designated by or later device.

(1980 to 2079) (1 to 12) (1 to 31) +3 (0 to 23) +4 (0 to 59) +5 (0 to 59) +6 (0 to 6)
(2) The "year" at is stored as 4-digit year indication.
(3) The "day of week" at +6 is stored as 0 to 6 to represent the days Sunday to Saturday.
Day of week Sun Mon Tue Wed Thu Fri Sat
Stored data 0 1 2 3 4 5 6
(4) Compensation is made automatically for leap years.
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.

Program Example
(1) The following program outputs the following clock data as BCD values:
Year Y70 to Y7F Month Y68 to Y6F Day Y60 to Y67 Hour Y58 to Y5F Minute Y50 to Y57 Second Y48 to Y4F Week Y44 to Y47


7.15 Clock instructions 7.15.1 Reading clock data (DATERD(P))
[Ladder Mode]

7.15.2 Writing clock data (DATEWR(P))
DATEWR(P)
Basic Process High performance Redundant Universal

: Head number of the devices where clock data to be written into the clock device is stored (BIN 16 bits)
U \G Zn Constants Other Bit Word Bit Word
(1) Writes clock data stored in the device number designated by or later device number to the clock element of the CPU module.
+1 +2 +3 +4 +5 +6
Hour Minute Second Day of week
(2) Each item is set as a BIN value.
(3) The "year" at is designated by using four-digit year indication between 1980 to 2079.
(4) +1 designates the "month" in values of from 1 to 12 (January to December).
(5) +2 designates the "day" in values of from 1 to 31.
(6) +3 designates the "hour" in values of from 0 to 23 (using 24-hour clock, from 0 hours to 23 hundred hours). (Uses the 24-hour clock.)
(7) +4 designates the "minute" in values of from 0 to 59.

(8) +5 designates the "second" in values of from 0 to 59.
(9) +6 designates the "day of week" in values of from 0 to 6 (Sunday to Saturday).
Day of week Sun Mon Tue Wed Thu Fri Sat
Stored data 0 1 2 3 4 5 6
Year Month · Day · Clock element

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The following program writes the following clock data to the clock element as BCD values
when X40 is turned ON.
Year X30 to X3F Hour X18 to X1F Month X28 to X2F Minute X10 to X17 Day X20 to X27 Second X8 to XF Week X4 to X7

7.15 Clock instructions 7.15.2 Writing clock data (DATEWR(P))
Writes the clock data (D0 to D6) to the clock element
2 0 0 0 X3F X38 X37 X30 (Year)
1 2 2 4 X2F X28 X27 X20 (Month, Day)
3 9 0 XF X8 X7 X4 (Second, Day of week)
[Ladder Mode]

7.15.3 Clock data addition operation (DATE+(P))
DATE+(P)
Basic Process High performance Redundant Universal

: Head number of the devices where the clock data to be adjusted by addition is stored (BIN 16 bits)
: Head number of the devices where the time data to be added for adjustment is stored (BIN 16 bits)
: Head number of the devices where the result of addition of clock (time) data will be stored (BIN 16 bits)
U \G Zn Constants Other Bit Word Bit Word
(1) Adds the time data designated by to the clock data designated by , and stores the
result into the area starting from the device designated by .

(0 to 23) (0 to 59) (0 to 59)
(0 to 23) (0 to 59) (0 to 59)
For example, adding the time 7:48:10 to 6:32:40 would result in the following operation:
+1 +2 +1 +2
(2) If the results of the addition of time exceed 24 hours, 24 hours will be subtracted from the
sum to make the final operation result.
For example, if the time 20:20:20 were added to 14:20:30, the result would not be 34:40:50, but would instead be 10:40:50.
+1 +2 +1 +2
Remark
See 7.15.2 for further information regarding the data that can be set for hours, minutes, and seconds.
+1 · +2 · +1 +2

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
Program Example
(1) The following program adds 1 hour to the clock data read from the clock element, and stores
the results in the area starting from D100 when X20 is ON.

Reads data in the clock element to D0 or later

7.15 Clock instructions 7.15.3 Clock data addition operation (DATE+(P))
[Ladder Mode] · [List Mode]

7.15.4 Clock data subtraction operation (DATE-(P))
DATE-(P)
Basic Process High performance Redundant Universal

: Head number of the devices where the clock time data to be adjusted by substraction is stored (BIN 16 bits)
: Head number of the devices where time data to be subtracted for adjustment is stored (BIN 16 bits)
: Head number of the devices where the result of subtraction of clock (time) data will be stored (BIN 16 bits)
U \G Zn Constants Other Bit Word Bit Word
(1) Subtracts the time data designated by from the clock data designated by , and stores
the result into the area starting from the device designated by .

(0 to 23) (0 to 59) (0 to 59)
(0 to 23) (0 to 59) (0 to 59)
For example, if the clock time 3:50:10 were subtracted from the clock time 10:40:20, the operation would be performed as follows:
(2) If the subtraction results in a negative number, 24 will be added to the result to make a final
operation result.
For example, if the clock time 10:42:12 were subtracted from 4:50:32, the result would not

See 7.15.2 for further information regarding the data that can be set for hours, minutes, and seconds.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
Program Example
(1) The following program subtracts the time data stored in devices starting from D10 from the
clock data read from the clock element when X1C is turned ON, and stores the result at devices starting from R10.
[Ladder Mode] [List Mode]


7.15 Clock instructions 7.15.4 Clock data subtraction operation (DATE-(P))
[Operation]

7.15.5 Time data conversion (from Hour/Minute/Second to Second) (SECOND(P))
SECOND(P)
Basic Process High performance Redundant Universal

: Head number of the devices where the clock data before conversion is stored (BIN 16 bits)
: Head number of the devices where the clock data after conversion will be stored (BIN 32 bits)
U \G Zn Constants Other Bit Word Bit Word
(1) Converts the time data stored in the area starting from the device designated by to
seconds and stores the conversion result into the device designated by .
(0 to 23) (0 to 59)
For example, if the value were 4 hours, 29 minutes, and 31 seconds, the conversion would be made as follows:
4 29 31 16171
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.

Program Example
(1) The following program converts the clock time data read from the clock element into second
when X20 is turned ON, and stores the result at D100 and D101.
[Ladder Mode] [List Mode]

D101,D100

7.15 Clock instructions 7.15.5 Time data conversion (from Hour/Minute/Second to Second) (SECOND(P))
Step Instruction Device · [Operation]

7.15.6 Time data conversion (from Second to Hour/Minute/Second ) (HOUR(P))
HOUR(P)
Basic Process High performance Redundant Universal

: Head number of the devices where clock data before conversion is stored (BIN 32 bits)
: Head number of the devices where the clock data after conversion will be stored (BIN 16 bits)
(1) Converts the data in seconds stored in the device number designated by to an hour/ minute/second format, and stores the conversion result into the area starting from the device
designated by .

(0 to 23) (0 to 59) (0 to 59)
For example, if 45325 seconds were the value designated, the conversion operation would be conducted as follows:

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.

Program Example
(1) The following program converts the seconds stored at D0 and D1 into an hour, minute,
second format, and stores the result at devices starting from D100 when X20 is turned ON.
[Ladder Mode] [List Mode]
[Operation] • Conversion to hour minute, and second format by the HOURP instruction (when the value
40000 seconds has been designated by D1 and D0).
40000 D1,D0
7.15 Clock instructions 7.15.6 Time data conversion (from Second to Hour/Minute/Second ) (HOUR(P))
Step Instruction Device

7.15.7 Date comparison (DT=,DT<>,DT>,DT<=,DT<,DT>=)
(DT=,DT<>,DT>,DT<=,DT<,DT>=)
Ver.
Basic Process High performance Redundant
QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.
QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

: Head number of the devices where the data to be compared are stored (BIN 16 bits)
: Head number of the devices where the data to be compared are stored (BIN 16 bits) n : Value of the data to be compared or the number of the stored data to be compared (BIN 16 bits)

(1) This instruction compares the date data specified by with those specified by , or the
date data specified by with current date data. Setting n can determine the data to be compared.
(a) Comparison of given date data
(1980~2079)
(1980~2079)
operator (1~12)
(1~12)
(1~31) +2
(1~31)
(b) Comparison of current date data
(1980~2079)
operator (1~12)
operation result Current date
(1~31) +2

When either or corresponds to any of the following in comparing given or current date data with given date data, the operation error (error code: 4101) or a malfunction may occurs.
the range of the device specified by or .
(2) This instruction sets BIN values for each item.
(3) This instruction sets the year of four digits selected from 1980 to 2079 with the BIN value
specified by or .
(4) This instruction sets the month selected from 1 to 12 (January to December) with the BIN
value specified by +1 or +1.
(5) This instruction sets the day selected from 1 to 31 (1st to 31st) for with the BIN value
specified by +2 or +2.
(6) This instruction specifies the following values at n so that the data to be compared can be
specified. The bit configuration specified at n is as follows.
This instruction specifies 0 at bits from 3rd to 14th. The instruction will be non-conductive status without specifying 0 regardless of the operation result.
b15 b14 b3 b2 b1 b0
0/1 0 0/1 0/1 0/1
If this instruction specifies 1 (on) at 15th bit, the instruction compares S1 with the current date in accordance with the bit condition specified at 0 to 2nd bit.
7.15 Clock instructions 7.15.7 Date comparison (DT=,DT,DT>,DT
(a) Date data to be compared (from 0 to 2nd bit)
(b) Operation data to be compared (15th bit)
Day · Month · Year

(c) The following table shows processing details of bits to be compared.

0001H 8001H Day Comparison of days ( +2)
0002H 8002H Month Comparison of months ( +1)
0003H 8003H Month, day Comparison of months ( +1) and days ( +2)
0004H 8004H Year Comparison of years ( )
0005H 8005H Year, day Comparison of years ( ) and days ( +2)
0006H 8006H Year, month Comparison of years ( ) and months ( +1)
0007H 8007H Year, month, day Comparison of years ( ), months ( +1),
Other than 0001H to 0007H,8001H to 8007H No objects No comparison of years ( ), months ( +1),
(7) If the data stored in the devices to be compared are not recognized as date data, SM709 will
be turned on after the instruction execution and no-conductive status will be made. Even if they are not recognized as date data but the range of the devices is within the setting range, SM709 will not be turned on.
Moreover, if the range of devices specified by to +2 or to +2 exceeds the range of specified devices, SM709 will be turned on after the instruction execution and no-conductive status will be made. Once SM709 is turned on, on-status will be retained till when the CPU modules are reset or powered off. Therefore, turn off SM709 if necessary.
(8) The following table shows the comparison operation results for each instruction.


(a) The following figure shows the comparison example of dates.
B
2009/1/1 2008/1/1 2007/1/1 2006/1/1
The following table shows the conductive states resulting from performing the comparison operation of the dates A, B, and C shown above. Even if the objects to be compared are under the same condition, the comparison
operation results vary depending on the objects selected.

(b) Even if the dates to be compared do not exist practically, this instruction executes the
comparison operation for the objects with the settable dates in accordance with the following condition.

7.15 Clock instructions 7.15.7 Date comparison (DT=,DT,DT>,DT
(2006/9/22) · (2007/6/23) · (2008/8/8)

Operation Error
(1) Any operation errors do not occur in DT=,DT,DT>,DT
(1) The following program compares the data stored in D0 with the data (year, month, and day)
stored in D10, and makes Y33 be conductive status when the data stored in D0 meet the data stored in D10.
[Ladder Mode] [List Mode]

(2) The following program compares the data stored in D0 with the current date data (year and
month), and makes Y33 be conductive status when the data stored in D0 do not meet the current date data, when M0 is turned on.
[Ladder Mode] [List Mode]

(3) The following program compares the data stored in D0 with the data (year and day) stored in
D10, and makes Y33 be conductive status when the data value stored in D10 is smaller than the data value stored in D0, when M0 is turned on.
[Ladder Mode] [List Mode]

(4) The following program compares the data stored in D0 with the current date data (year), and
makes Y33 be conductive status when the value of the current date data is the data value stored in D0 or larger.
[Ladder Mode] [List Mode]

Step Instruction Device · Step Instruction Device · Step Instruction Device

7.15.8 Clock comparison (TM=,TM<>,TM>,TM<=,TM<,TM>=)
(TM=,TM<>,TM>,TM<=,TM<,TM>=)
Ver.
Basic Process High performance Redundant
QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.
QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

indicates an instruction symbol of DT=/DT<>/DT</DT<=/DT>/DT>=.
: Head number of the devices where the data to be compared are stored (BIN 16 bits)
: Head number of the devices where the data to be compared are stored (BIN 16 bits) n : Value of the data to be compared or the number of the stored data to be compared (BIN 16 bits)

7.15 Clock instructions 7.15.8 Clock comparison (TM=,TM,TM>,TM
(1) This instruction compares the clock data specified by with those specified by , or the
clock data specified by with the current time data. Setting n determines the data to be compared.
as a normally open contact, and compares the data in accordance with the value of n.
Universal

(b) Comparison of current time data
(0~23)
operator (0~59)
operation result Current time
(0~59) +2
When either or corresponds to any of the following conditions in comparing given or current time data with specified clock data, the operation error (error code: 4101) or a malfunction may occurs.
the range of the device specified by or .
(2) This instructions set BIN values for each item.
(3) This instructions sets the time selected from 0 to 23 (midnight to 23 o'clock) with the BIN
value specified by or . (Uses the 24-hour clock.)
(4) This instructions sets the minute selected from 0 to 59 (0 to 59 minutes) with BIN value
specified by +1 or +1.
(5) This instructions sets the second selected from 0 to 59 (0 to 59 seconds) with BIN value
specified by +2 or +2.
(6) This instructions specifies the following values at n so that the data to be compared can be
specified. The bit configuration specified at n is as follows.
This instruction specifies 0 at bits from 3rd to 14th. The instruction will be non-conductive status without specifying 0 regardless of the operation result.
b15 b14 b3 b2 b1 b0
0/1 0 0/1 0/1 0/1
If this instruction specifies 1 (on) at 15th bit, the instruction compares S1 with the current date in accordance with the bit condition specified at 0 to 2nd bit.
(a) Clock data to be compared (from 0 to 2nd bit)
(b) Operation data to be compared (15th bit)
Ignores the clock data specified by .

(c) The following table shows processing details of bits to be compared.

0001H 8001H Second Comparison of seconds ( +2)
0002H 8002H Minute Comparison of minutes ( +1)
0004H 8004H Hour Comparison of hours ( )
0006H 8006H Hour, minute Comparison of hours ( ) and minutes ( +1)
8001H to 8007H No objects No comparison of hours ( ), minutes ( +1),
(7) If the data stored in the devices to be compared are not recognized as date data, SM709 will
be turned on after the instruction execution and no-conductive status will be made. Once SM709 is turned on, on-status will be retained till when the CPU modules are reset or powered off. Therefore, turn off SM709 if necessary.
Moreover, if the range of devices specified by to +2 or to +2 exceeds the range of specified devices, SM709 will be turned on and no-conductive status will be made.
(8) The following table shows the comparison operation results for each instruction.

7.15 Clock instructions 7.15.8 Clock comparison (TM=,TM,TM>,TM

(a) The following figure shows the comparison example of time.
B
0 Midnight 18:00 N00n 6:00 0 Midnight
4:50:55 22:47:05
14:08:58
The following table shows the conductive states resulting from performing the comparison operation of the dates A, B, and C shown above. Even if the objects to be compared are under the same condition, the comparison
operation results vary depending on the objects selected.

(1) Any operation errors do not occur in TM=,TM,TM>,TM

Program Example
(1) The following program compares the data stored in D0 with the data (hour, minute, and
second) stored in D10, and makes Y33 be conductive status when the data stored in D0 meet the data stored in D10.
[Ladder Mode] [List Mode]

(2) The following program compares the data stored in D0 with the current time data (hour and
minute), and makes Y33 be conductive status when the data stored in D0 do not meet the current date data, when M0 is turned on.
[Ladder Mode] [List Mode]

(3) The following program compares the data stored in D0 with the data (hour and second)
stored in D10, and makes Y33 be conductive status when the data value stored in D10 is smaller than the data value stored in D0, when M0 is turned on.
[Ladder Mode] [List Mode]


7.15 Clock instructions 7.15.8 Clock comparison (TM=,TM,TM>,TM
(4) The following program compares the data stored in D0 with the current time data (hour), and
makes Y33 be conductive status when the value of the current time data is the data value stored in D0 or larger.
Step Instruction Device · Step Instruction Device · Step Instruction Device

7.16 Expansion Clock Instructions
7.16.1 Reading expansion clock data (S(P).DATERD)
S(P).DATERD
Universal Ver. Process Ver. High performance
Ver.
The first 5 digits of the serial No. are "07032" or higher.

: Head number of the devices where the read clock data will be stored (BIN 16 bits)
U \G Zn Constants Other Bit Word Bit Word
(1) Reads "year, month, day, hour, minute, second, day of the week, and millisecond" from the
clock element of the CPU module, and stores it as BIN value into the device specified by or later device.

(1980 to 2079) (1 to 12) (1 to 31) +3 (0 to 23) +4 (0 to 59) +5 (0 to 59) +6 (0 to 6)
(2) The "year" at is stored as 4-digit year indication.
(3) The "day of the week" at +6 is stored as 0 to 6 to represent the days Sunday to Saturday.
Day of week Sunday Monday Tuesday Wednesday Thursday Friday Saturday
Stored data 0 1 2 3 4 5 6
(4) Compensation is made automatically for leap years.
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
Redundant Basic

Program Example
(1) The following program outputs the following clock data as BCD values:
Year Y70 to Y7F Month Y68 to Y6F Day Y60 to Y67 Hour Y58 to Y5F Minute Y50 to Y57 Second Y48 to Y4F Week Y44 to Y47 Millisecond Y38 to Y43

7.16 Expansion Clock Instructions 7.16.1 Reading expansion clock data (S(P).DATERD)
[Ladder Mode]

Caution
(1) This instruction reads clock data and stores those to a specified device even if a wrong clock
data is set to the CPU module. (example: Feb. 30th)
When setting clock data with the DATEWR instruction or GX Developer, make sure to set a correct data.
(2) Time error of reading a clock data of millisecond is a maximum of 2ms. (Difference between
the data memorized by clock element inside of the CPU module and the data read by this function.)
(3) Specifying digit for the bit device can be used only when the following conditions (a) and (b)
are met.
(b) Head of device: multiple of 16 When the above conditions (a) and (b) are not met, INSTRCT CODE ERR. (error code: 4004) will occur.

7.16.2 Expansion clock data addition operation (S(P).DATE+)
S(P).DATE+
Universal Ver. Process Ver. High performance
Ver.
The first 5 digits of the serial No. are "07032" or higher.
D S1 S2
SP.DATE+
SP.DATE+
D S2 S1
: Head number of the devices where the clock data to be adjusted by addition is stored (BIN 16 bits)
: Head number of the devices where the time data to be added for adjustment is stored (BIN 16 bits)
: Head number of the devices where the result of addition of clock (time) data will be stored (BIN 16 bits)
U \G Zn Constants Other Bit Word Bit Word
(1) Adds the time data designated by to the clock data designated by , and stores the result into the area starting from the device designated by .
7.16 Expansion Clock Instructions 7.16.2 Expansion clock data addition operation (S(P).DATE+)
(0 to 23) Setting data Setting data Setting data
D S2 S1 Hour Minute Second +1 +2
Hour Minute Second +1 +2
(0 to 23) (0 to 59) (0 to 59)
Hour Minute Second +1 +2
(0 to 23) (0 to 59) (0 to 59)
(0 to 59) + (0 to 59) S1
D D -- +3 -- +3 -- +3 S1 S2 D Millisecond +4 (0 to 999) Millisecond +4 (0 to 999) Millisecond +4 (0 to 999) S1 S2 D
For example, adding the time 7:48:10:500 to 6:32:40:875 would result in the following operation:
+1 +2 +1 +2 +
+4 +4 +4 S1 S2 D Millisecond: 875

(2) If the results of the addition of time exceed 24 hours, 24 hours will be subtracted from the
sum to make the final operation result.
For example, when the time 20:20:20:500 is added to 14:20:30:875, the result is not 34:40:51:375, but 10:40:51:375.

Devices, +3, +3, and +3 are not used for operation. A clock data read by the S(P).DATERD instruction can be directly added.

When the clock data is read by the S(P).DATERD instruction, day of week is inserted between "second" and "millisecond".
If the S(P).DATE+ instruction is used to read the clock data, the data can be directly used for addition since it does not perform the calculation for the day of a week.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
Caution
(1) Specifying digit for the bit device can be used only when the following conditions (a) and (b)
are met.
(b) Head of device: multiple of 16 When the above conditions (a) and (b) are not met, INSTRCT CODE ERR. (error code:4004) will occur.

Program Example
(1) The following program adds 1 hour to the clock data read from the clock element, and stores
the results into the area starting from D100 when X20 is turned ON.

Reads out the clock element data to D0 or later.

7.16 Expansion Clock Instructions 7.16.2 Expansion clock data addition operation (S(P).DATE+)

7.16.3 Expansion clock data subtraction operation (S(P).DATE-)
S(P).DATE-
Universal Ver. Process Ver. High performance
Ver.
The first 5 digits of the serial No. are "07032" or higher.

: Head number of the devices where the clock time data to be adjusted by substraction is stored (BIN 16 bits)
: Head number of the devices where time data to be subtracted for adjustment is stored (BIN 16 bits)
: Head number of the devices where the result of subtraction of clock (time) data will be stored (BIN 16 bits)
U \G Zn Constants Other Bit Word Bit Word
(1) Subtracts the time data designated by from the clock data designated by , and stores the result into the area starting from the device designated by .

(0 to 23) Setting data Setting data Setting data
(0 to 23) (0 to 59) (0 to 59)
(0 to 23) (0 to 59) (0 to 59)
D D -- +3 -- +3 -- +3 S1 S2 D Millisecond +4 (0 to 999) Millisecond +4 (0 to 999) Millisecond +4 (0 to 999) S1 S2 D
For example, when the clock time 3:50:10:500 is subtracted from the clock time 10:40:20:875, the operation is performed as follows:

Redundant Basic

(2) If the subtraction results in a negative number, 24 will be added to the result to make a final
operation result.
For example, when the clock time 10:42:12:500 is subtracted from 4:50:32:875, the result is not 6:8:20:375, but 18:8:20:375.

Devices, +3, +3, and +3 are not used for operation. A clock data read by S(P).DATERD instruction can be directly subtracted.

When the clock data is read by the S(P).DATERD instruction, day of week is inserted between "second" and "millisecond".
If the S(P).DATE- instruction is used to read the clock data, the data can be directly used for subtraction since it does not perform the calculation for the day of the week.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

7.16 Expansion Clock Instructions 7.16.3 Expansion clock data subtraction operation (S(P).DATE-)
(1) Specifying digit for the bit device can be used only when the following conditions (a) and (b)
(b) Head of device: multiple of 16 When the above conditions (a) and (b) are not met, INSTRCT CODE ERR. (error code:4004) will occur.

Program Example
(1) The following program subtracts the time data stored in the area starting from D10 from the
clock data read from the clock element when X1C is turned ON, and stores the result into the area starting from D100.

Reads out the clock element data to D0 or later.



(1) Processing when the execution type is converted with the program control instruction is as
follows.
Execution type before change
Output turned OFF in
scan type execution.
next scan.
Becomes stand-by type.
execution type. Initial execution type
from the next scan after
that.
execution type.
stopped, and output is
No change -remains low
Low speed execution type
turned OFF in the next
execution type from the
speed execution type.
stand-by type from next
scan. Becomes
next scan.
scan.
stand-by type from the
(Execution from step 0)
next scan after that.
Output turned OFF in
next scan.
Fixed scan execution type
Becomes stand-by type.
execution type.
execution type.
from the next scan after
that.
7.17 Program control instructions
Once the fixed scan execution type program is changed to another execution type, it cannot be returned to the fixed scan execution type.

(2) As program execution type conversions by PSCAN and PSTOP instructions occur at the
END processing, such conversions are impossible during program execution.
When different execution types have been set for the same program in the same scan, the execution type will be that specified by the execution switching command that was executed last.
END processing END processing
Execution program name GHI
PSTO executes "ABC" PSCAN executes "DEF"
Converts "DEF" into the scan execution type program and "ABC" to the stand-by type program
*1: The order of "GHI" and "DEF" program execution is determined by the program settings parameters. Switching from the fixed scan execution type program to the execution type program is performed in the following timing.
(a) For the Universal model QCPU
The execution type is changed when the execution of the fixed scan execution type is stopped at the END processing after the program control instruction execution.
(b) For the CPU modules other than the Universal model QCPU
The execution of the fixed scan execution type is stopped at the execution of the program control instruction, and the execution type is changed at the END processing.
(3) When the POFF instruction is executed, the output is turned OFF at the next scan, and the
execution type will be the stand-by type at the second next scan and later.
If executed prior to the output OFF processing, the program control instruction is ignored.
END processing

7.17.1 Program standby instruction (PSTOP(P))
PSTOP(P)
Process High performance Redundant Universal Basic

: Character string for the name of the program file to be set in the stand-by status or head number of the
devices where the character string data is stored (character string)

(1) Places the file name program stored in the device designated by in the stand-by status.
(2) Only the programs stored in the drive No. 0 (program memory/internal RAM) can be set as
the stand-by type.
(3) The specified program is placed in the stand-by status when END processing is performed.
(4) This instruction will be given priority even in cases when a program execution type has been
7.17 Program control instructions 7.17.1 Program standby instruction (PSTOP(P))
designated in the parameters.
(5) It is not necessary to designate the extension (.QPG) with the file name.
(Only .QPG files will be acted on.)
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The following program places the program with the file name ABC in the stand-by status
when X0 goes ON.
[Ladder Mode] [List Mode]
Step Instruction Device

7.17.2 Program output OFF standby instruction (POFF(P))
POFF(P)
Process High performance Redundant Universal Basic
POFFP
POFFP
: File name of the program to be set in the standby status by turning OFF the output, or the device where the
file name is stored (character string)
U \G Zn Constants
$ Other Bit Word Bit Word
(1) Changes the execution type of the program with the file name stored in the device
designated by .
processing). Programs are set as the stand-by type after the subsequent scan.
program and turns OFF outputs at the next scan. Programs are set as the stand-by type after the subsequent scan.
(2) Only the programs stored in the drive No. 0 (program memory) can be set as the stand-by
type.
(3) This instruction will be given priority even in cases when a program execution type has been
designated in the parameters.
(4) It is not necessary to designate the extension (.QPG) with the file name.
(Only .QPG files will be acted on.)
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.

Remark
The operation results for the individual coil instructions following non-execution processing will be as follows, regardless of the ON/OFF status of the individual contacts:

Maintains status RST instruction SFT instruction Basic instruction Application instruction PLS instruction
Processing identical to when condition contacts are OFF Pulse generation instruction ( P) Current value of low speed/high speed timer 0 Current value of retentive timer
(1) The following program makes the program with the file name ABC non-executionable and
places it in the standby status when X0 is turned ON.
[Ladder Mode] [List Mode]

7.17 Program control instructions 7.17.2 Program output OFF standby instruction (POFF(P))

7.17.3 Program scan execution registration instruction (PSCAN(P))
PSCAN(P)
Process High performance Redundant Universal Basic

: File name of the program to be set as a scan execution type, or head number of the devices where the file
name is stored (character string)

(1) Sets the program whose file name is being stored at the device designated by in the scan execution type.
(2) Only the programs stored in the drive No. 0 (program memory/internal RAM) can be set as
the scan execution type.
(3) Designated programs assume the scan execution type with END processing.
When programs A, B, and C exist and program A performs "PSCAN" of program D.

A B C END A B C D END
(4) This instruction will be given priority even in cases when a program execution type has been
designated in the parameters.
(5) It is not necessary to designate the extension (.QPG) with the file name.
(Only .QPG files will be acted on.)

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
has been already started. (Dual activation error of the SFC program) (For the Universal model QCPU) (Error code: 4131)
(For the High Performance model QCPU, Process CPU, Redundant CPU)
(1) The following program sets the program with file name ABC as scan execution type when
X0 is turned ON.
[Ladder Mode] [List Mode]
7.17 Program control instructions 7.17.3 Program scan execution registration instruction (PSCAN(P))
Step Instruction Device

7.17.4 Program low speed execution registration instruction (PLOW(P))
PLOW(P)
Process High performance Redundant Universal Basic

: File name of the program to be set as a low speed execution type, or head number of the devices where the
file name is stored (character string)

(1) Sets the program whose file name is being stored at the device designated by in low-speed execution type.
(2) Only the programs stored in the drive No. 0 (program memory/internal RAM) can be set as
the low speed execution type.
(3) Designated programs assume the low speed execution type with END processing.
When programs A, B, and C exist and program A performs "PLOW" of program D.
(Assume that the constant scan has been set.)

A B C END A B C D END
(4) This instruction will be given priority even in cases when a program execution type has been
designated in the parameters.
(5) It is not necessary to designate the extension (.QPG) with the file name.
(Only .QPG files will be acted on.)
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.

Program Example
(1) The following program sets the program with file name ABC as low-speed execution type
when X0 is turned ON.
[Ladder Mode] [List Mode]
7.17 Program control instructions 7.17.4 Program low speed execution registration instruction (PLOW(P))
Step Instruction Device

7.17.5 Program execution status check instruction (PCHK)
PCHK
Process High performance Universal Basic Redundant

: File name of the program whose execution status will be checked (character string)
(1) Checks whether the program of the specified file name is in execution or not
(non-execution).
(2) The instruction is in conduction when the program of the specified file name is in execution,
and the instruction is in non-conduction when the program is in non-execution.
(3) Specify the file name without an extension (.QPG).
For example, specify "ABC" when the file name is ABC.QPG.
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
(1) Program that keeps Y10 ON when the program file "ABC.QPG" is being executed.
Execution · Non-execution

Remark
Non-execution indicates that the program execution type is a stand-by type. Execution indicates that the program execution type is a scan execution type (including during output OFF (during non-execution processing)), low speed execution type or fixed scan execution type.
The PCHK instruction is in conduction when the program of the specified file name (target program) is in execution, and the instruction is in non-conduction when the program is in non-execution. When the target program is set to non-execution (stand-by type) with the POFF instruction, the PCHK instruction is in conduction while the non-execution processing of the target program is being performed. At the END processing of the scan where the non-execution processing is completed, the target program is put into non-execution (stand-by type), and the PCHK instruction is brought into non-conduction. Therefore, note that if the PCHK instruction is executed for the program where the non-execution processing has been completed by the POFF instruction, the PCHK instruction may be brought into conduction.
The following chart shows the operation performed when program A executes the POFF instruction of program B and program C executes the PCHK instruction of program B with the programs being executed in order of program A, program B and program C.

Program B execution type change (Scan execution type to stand-by type)
7.17 Program control instructions 7.17.5 Program execution status check instruction (PCHK)

7.18 Other instructions
7.18.1 Resetting watchdog timer (WDT(P))
WDT(P)
Basic Process High performance Redundant Universal
WDTP
WDTP
R, ZR J \
U \G Zn Constants Other Bit Word Bit Word
(1) Resets watchdog timer during the execution of a sequence program.
(2) Used in cases where the scan time exceeds the value set for the watchdog timer due to
prevailing conditions.
If the scan time exceeds the watchdog timer setting value on every scan, change the watchdog timer settings at the peripheral device parameter settings.
(3) Make sure that the setting for t1 from step 0 to the WDT instruction and the setting for t2
from the WDT instruction to the END (FEND) instruction do not exceed the setting value of the watchdog timer.
Step 0 END (FEND) WDT
(4) The WDT instruction can be used two or more times during a single scan, but care should be
taken in such cases, because of the time required until the output goes OFF during the generation of an error.
(5) Scan time values stored at the special register will not be cleared even if the WDT or WDTP
instruction is executed.
Accordingly, there are times when the value for the scan time for the special register is greater than the value of the watchdog timer set at the parameters.

Operation Error
(1) There are no operation errors associated with the WDT(P) instruction.
(1) The following program has a watchdog timer setting of 200 ms, when due to the execution
conditions program execution requires 300 ms from step 0 to the END (FEND) instruction.
[When WDT instruction is used]
Program where scan time is 150 ms.
Program where scan time is 300 ms.
END
Program where scan time is 150 ms.
7.18 Other instructions 7.18.1 Resetting watchdog timer (WDT(P))

7.18.2 Timing pulse generation (DUTY)
DUTY
Basic Process High performance Redundant Universal


: User timing clock (SM420 to SM424, SM430 to M434) (bits)
*1: Only SM420 to SM424, SM430 to SM434 can be used.
(1) Turns the user timing clock (SM420 to SM424, SM430 to M434), designated by , ON for the duration equivalent to the number of scans specified by n1, and OFF for the duration equivalent to the number of scans specified by n2.
OFF
SM420 to SM424 SM430 to SM434
n2 scans n1 scans
(2) Scan execution type programs use SM420 to SM424, and low speed execution type
programs use SM430 to SM434.
(3) The following will take place if both n1 and n2 have been set for 0:
(a) n1 0, n2 0 SM420 to SM424 and SM430 to SM434 will stay OFF.
(b) n1 0, n2 0 SM420 to SM424 and SM430 to SM434 will stay ON.
(4) The data designated by n1, n2, and is registered with the system when the DUTY instruction is executed, and the timing pulse is turned ON and OFF by END processing.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.

Program Example
(1) The following program turns SM420 ON for 1 scan, and OFF for 3 scans if X0 is ON.
[Ladder Mode] [List Mode]


7.18 Other instructions 7.18.2 Timing pulse generation (DUTY)
Step Instruction Device · [Operation]

7.18.3 Time check instruction (TIMCHK)
TIMCHK
Process High performance Redundant Universal Ver. Basic
Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

: Device where the measured current value will be stored (BIN 16 bits)
: Device where the set value of measurement is stored (BIN 16 bits)
: Device to be turned ON at time-out (bits)
(1) Measures the ON time of the device used as a condition, and turns ON the device specified
by if the condition device remains ON for longer than the time set to the device specified
by .
(2) The current value of the device specified by is cleared to 0 and the device specified by is turned OFF at the leading edge of the execution command.
The current value of the device designated by and the ON status of the device
designated by are retained after the execution command turns OFF.
(3) Set the set value of measurement in units of 100ms.
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
(1) Program where the ON time of X0 is set to 5s, the current value storage device to D0, and
the device that will turn ON at time-out to Y10.
[Ladder Mode] [List Mode]
Step Instruction Device

7.18.4 Direct 1-byte read from file register (ZRRDB(P))
ZRRDB(P)
Basic Process High performance Redundant Universal


: Number of the device where the read data will be stored (BIN 16 bits)
(1) Reads the serial byte number designated by n that does not signify a block number, and
stores at the lower 8 bits of the device designated by .

The upper 8 bits designated by will become 00H.
7.18 Other instructions 7.18.4 Direct 1-byte read from file register (ZRRDB(P))
(2) The correspondence between file register numbers and serial byte numbers is as indicated
ZR0 Serial byte No. 0 Serial byte No. 1
Serial byte No. 2 Serial byte No. 3 ZR1

(a) If the value of n has been designated as 23560, the data at the lower 8 bits of ZR11780
will be read.
Read destination designation n 23560 D
b15 b8b7 b0 ZR11780 43H 21H b15 b8b7 b0 00H 21H Data is stored
(b) If the value of n has been designated as 43257, the data at the upper 8 bits of ZR21628
will be read.

D b15 b8b7 b0 ZR21628 93H 42H b15 b8b7 b0 00H 93H
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
(1) The following program reads the lower bits of ZR16000 and the upper bits of R16003, and
stores results at D100 and D101 when X0 is ON.
[Ladder Mode] [List Mode]

8FH 25H 32H 34H 42H 12H 00H 93H
Step Instruction Device · [Operation]

7.18.5 File register direct 1-byte write (ZRWRB(P))
ZRWRB(P)
Basic Process High performance Redundant Universal


: Number of the device where the data to be written is stored (BIN 16 bits)
(1) Writes the lower bits of data stored in the device designated by that does not signify a block number to the file register of the serial byte number designated by n.

The upper 8 bits of data in the device designated by are ignored.
7.18 Other instructions 7.18.5 File register direct 1-byte write (ZRWRB(P))
b0 b7 b15 b8 Write destination designation Writing the data
(2) The correspondence between file register numbers and serial byte numbers is as indicated
ZR0 Serial byte No. 0 Serial byte No. 1
Serial byte No. 2 Serial byte No. 3 ZR1


If n 12340 is specified, the data will be written to the lower 8 bits of ZR11170.
If n 43257 is specified, the data will be written to the upper 8 bits of ZR21628.
b15 b8b7 b0 ZR21628 50H b15 b8b7 b0 Ignored
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
(1) The following program writes the data at the lower bits of D100 and D101 to the lower bits of
R16000 and the upper bits of R16003 when X0 is turned ON.
[Ladder Mode] [List Mode]

54H BAH 80H 4AH ABH
54H BAH 80H 4AH ABH
Step Instruction Device · [Operation]

7.18.6 Indirect address read operations (ADRSET(P))
ADRSET(P)
Basic Process High performance Redundant Universal

: Number of the device whose indirect address is read out (Device name)
: Number of the device where the indirect address of the device designated by will be stored (BIN 32 bits)
U \G Zn Constants Other Bit Word Bit Word
(1) Stores the indirect address of the device designated by at +1 and .
The address stored at the device designated by is used when an indirect device address is performed by the sequence program.

7.18 Other instructions 7.18.6 Indirect address read operations (ADRSET(P))
Stores the address of W100 address to D101 and D100.
Writes 1234 to the address specified by D100 and D101.
(2) A bit device designation cannot be made at .
(1) There are no operation errors associated with the ADRSET(P) instruction.
See Section 3.4 for further information on indirect designations.

7.18.7 Numerical key input from keyboard (KEY)
KEY
Process High performance Redundant Universal Basic

: Head number of the devices (X) to which a numeral will be input (bits)

: Head number of the devices where the input numeral will be stored (BIN 16 bits)
: Number of the bit device to turn ON at the completion of input (bits)
(1) Fetches ASCII data from the 8 points of input (X) designated by , converts it to hexadecimal values and stores the result in the area starting from the device designated by

Designation of the number of digits to be input
"0" (30 ) to "9" (39 ) H H "A" (41 ) to "F" (46 ) H H b12 b8 b11 b7 b4 b0 b3
Number of digits that are input 5 digits 6 digits 7 digits 8 digits 1 digit 2 digits 3 digits 4 digits
For example, in a case where the number of digits (n) has been set at 5, and the values "31", "33", "35", "37" and "39" have been input through X10 to X18 of the input module, the following will take place:

X10 X11 X12 X13 X14 X15 X16 X17 X18
(31H)(33H)(35H)(37H)(39H)
5 D11 3H 5H 7H 9H 0H 0H 0H 1H D12

(2) Numerical input to input (X) designated by undergoes bit development at through
+7 and is input as the ASCII code corresponding to the numbers.
ASCII code which can be input is from 30H (0) to 39H (9), and from 41H (A) to 46H (F).

"1"(31H)= 0 b7 b4 b0 b3 0 1 1 0 0 0 1
(3) After ASCII code is input to to +7, the strobe signal at +8 goes ON to incorporate the designated numbers internally.
The strobe signal should be held at its ON or OFF status for more than one scan of the sequence program. If this time is less than 1 scan, there will be cases when the data is correctly incorporated.

(4) Be sure to keep the execution command (condition contact for the KEY instruction) ON until

7.18 Other instructions 7.18.7 Numerical key input from keyboard (KEY)
The KEY instruction cannot be executed if the execution command turns OFF.
(5) The digits for the numbers actually fetched to will be stored at the device designated by
, and these will be converted to the ASCII codes input at +1 and +2, converted to hexadecimal BIN values, and stored.
31H 33H 35H 37H 39H
5 0 0 0 1 0
2 0 1 3 5 0
3 1 3 5 7 0
4 3 5 7 9 0 0 0 1
(6) The number of digits that can be designated by n is from 1 to 8.

(7) Fetching of the input data is completed when any of the inputs shown below has been made.
At the completion, the bit device designated by is turned ON.
For example, the operations at the location designated if n 5 will be as indicated below:

31H 42H 35H 37H 39H
5 0 0 0 1 0
2 0 1 B 5 0
3 1 B 5 7 0
4 B 5 7 9 0 0 0 1
3 0 0 0 1 0
2 0 1 B 5 0
3 0 1 B 5 0
If input processing is to be performed a second time, it is necessary to clear the number of
digits input and the input data stored at , and turn OFF the designated device at the user program.
If is not cleared and not turned OFF, the next input processing cannot be performed.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.

Program Example
(1) The following program fetches data of the 5 or fewer digits from the numerical key pad
connected to X20 to X28, and stores it to the area starting from D0 when X0 is turned ON.



7.18 Other instructions 7.18.7 Numerical key input from keyboard (KEY)
X20 X21 X22 X23 X24 X25 X26 X27 (Strobe signal)
5 2H 3H 4H 5H 0H 1H 0H 0H
[Ladder Mode] · [List Mode]

7.18.8 Batch save or recovery of index register (ZPUSH(P),ZPOP(P))
ZPUSH(P),ZPOP(P)
Basic Process High performance Redundant Universal

: Head number of the devices to/from which contents of an index register are saved/recovered (BIN 16 bits)
U \G Zn Constants Other Bit Word Bit Word
(1) Saves the contents of the following index registers to after the device specified by .
(When contents of an index register are saved, + 0 (the number of saves made) is increased by 1.)
(2) The ZPOP instruction is used for data recovery. Nesting is possible within the ZPUSH to
ZPOP cycle.
(3) If nesting has been done, each time the ZPUSH instruction is executed, the field used
following will be added to, so a field large enough to accommodate the number of times the instruction will be used should be maintained from the beginning.
(4) The composition of the field used following is as shown below: • When Basic model QCPU is used

Z0 to Z15



(1) Recovers the contents saved in the area starting from the device designated by to the index register. (When the saved content is read out to the index register, + 0 (the number of saves made) is decreased by 1.)

7.18 Other instructions 7.18.8 Batch save or recovery of index register (ZPUSH(P),ZPOP(P))
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
(1) The following program saves the contents of the index register to the fields following D0
before calling the subroutine following P0 that uses the index register. [Ladder Mode] [List Mode]

7.18.9 Reading Module Information (UNIRD(P))
UNIRD(P)
Basic Process High performance Redundant Universal

n1: Value obtained by dividing the head I/O number of the reading module information source by 16 (0 to FFn)
: Head number of the devices where the module information will be stored (device name)

(1) Reads the module information as much as designated by n2 from the module designated by
n1 (value obtained by dividing the head I/O number by 16), and stores that information into
the area starting from the device designated by .
(Reads the status of the actually installed modules instead of the module type designated by I/O assignment.)
The value of n1 is designated by the higher 3 digits of the head I/O number of the slot from which the module information is read, when it is expressed in 4 digits in hexadecimal notation.

to X000F
Head input number is read as K4 or H4
(BIN 16 bits)

The details of the module information are described as follows:
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 Bit
Number of I/O points
b6 External supply power status
b7 Presence/absence of fuse
module change or from the CPU module of standby system in the redundant
execution from the standby
system.*1
b13 Empty Fixed to 0
b15 Module installation status 1: Modules are installed. 0: No modules are installed.
7.18 Other instructions 7.18.9 Reading Module Information (UNIRD(P))
*1: The Universal model QCPU used in the multiple CPU system is turned ON during the online module change of the module controlled by the other CPU.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
[High Performance model QCPU, Process CPU, Redundant CPU and Universal model QCPU]

Program Example
(1) The following program stores the module information at I/O numbers 10H to 20H into the
devices starting from D0 when X10 is turned ON.

[Ladder Mode] [List Mode]
Readout result (When read to D0)
(a) 32-point intelligent function module for Q series

b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
0 1 0 1 0 1 1 0 0 1
No blown-fuse error existing Execution other than during online module change or from the standby system
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
1 0
All of these bits turn 0 because information is stored to "D0."
A module is installed as latter 16 points of a 32-point module.
and D3 respectively.
Instruction Device Step

(b) 32-point module for A series
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
1 1 0
For an A series module, all of these bits turn 0 because information is not stored.
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
1 0
All of these bits turn 0 because information is stored to "D0."
A module is installed as latter 16 points of a 32-point module.
and D3 respectively.
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
For an empty slot, all of these bits turn 0.
(d) Performing online module replacement
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
Performing online module replacement
7.18 Other instructions 7.18.9 Reading Module Information (UNIRD(P))
(e) Module information on the extension base unit is tried to be read from the standby
system of the redundant system in separate mode.
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
Execution from the standby system (Module information on the extension base unit is tried to be read from the standby system of the redundant system in separate mode.)
A series module · Module is installed · (c) Empty slot

Ver.
Basic Process High performance Redundant
Universal model QCPU: The serial number (first five digits) is "11043" or later.



Setting data Description Setting range Set by Data type
Value obtained by dividing the start I/O number of a module
whose model name is to be read by 16
(1) This instruction reads the module information stored in the area starting from the I/O number
specified by "n", and stores it in the area starting from the device specified by . The following 6 modules (Q series only) support the instruction.
Universal

(2) Specify the start I/O number of a module whose model name is to be read by "n" as follows:
CPU module QX10 Q68 ADV
P QY10 QY10
3E00H 0000H 0010H 0020H 0030H 0040H 0050H 0070H 0080H Start I/O number configured in the I/O assignment setting
Specify the start I/O number by K3 or H3.
When the target module is a CPU module itself, specify the start I/O number by H3E0.
The start I/O number to be specified may differ from that of the mounted module. For the start I/O number, refer to the manual of each module. Specify the value obtained by dividing the start I/O number of the target module by 16.
Example) QJ71GP21S-SX Specify a value to which 0010H, start I/O number of the mounted module, is added.
CPU module QJ71G P21S-SX Empty
3E00H 0000H 0010H 0030H 0040H 0050H 0060H 0070H 0080H Start I/O number configured in the I/O assignment setting
Specify the start I/O number by K1 or H1.
Specify the value obtained by dividing the start I/O number of the target CPU module by 16.
7.18 Other instructions 7.18.10 Reading module model name(TYPERD(P))
Q20UDH CPU
QY41
Q68 ADV
QY41
P QY10 QY10
P
3E00H 3E10H 3E20H 3E30H 0000H 0010H 0020H 0030H 0040H Start I/O number configured in the I/O assignment setting
Specify the start I/O number by H3E3.
Or, the model name can be read by specifying the start I/O number of a module controlled by another CPU.

(3) +0 and +1 to +9 store the execution result of the instruction and module model name, respectively.
A value stored in is as follows:
(a) When the model name has been written to the target module (example: QJ71GP21-SX)
b15 to b8 b7 to b0
Stores 0.
Indicates that the model name that has been written to the target module is stored. 37H (7)
51 H (Q)
31 H (1)
Nine words are used.
Stores the model name that has been written to the target module (stored in ASC II).
47 H (G)
31 H (1)
32 H (2)
53 H (S)
2D H (-)
00 H
58 H (X)
00 H
00 H
00 H
00 H
Stores the remaining model name and 00H to the 12th to 17th devices and the 18th device, respectively.
00 H
The following table shows the examples of model names stored in +1 to +9.
Target module Stored model name
Intelligent function module QJ71GP21-SX
(b) When the model name has not been written to the target module (example: QX40)
b15 to b8 b7 to b0
Stores 1.
Indicates that the character string consists of module type and the number of points is stored. 50H (P)
49 H (I)
55 H (U)
Nine words are used.
Stores the character string consists of module type and the number of points. (stored in ASC II).
54 H (T)
36 H (6)
31 H (1)
00 H 00 H
00 H
00 H
00 H
00 H
00 H
00 H
Stores the remaining model name and 00H to the 12th to 17th devices and the 18th device, respectively.
00 H
The following table shows the examples of character strings stored in +1 to +9..
Target module Stored character string
I/O combined module MIXED_64
Intelligent function module INTELLIGENT_128
[Character string indicating module type]

[Character string indicating the number of points]
I/O assignment setting screen of the PLC parameter dialog box.
b15 to b8 b7 to b0
Stores -1.
Indicates that the model name is not stored.
00 H 00 H
Nine words are used.
00 H 00 H
00 H 00 H
00 H
00 H
00 H
00 H
00 H
00 H
Stores 00H.
7.18 Other instructions 7.18.10 Reading module model name(TYPERD(P))
00 H
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an
error code is stored into SD0.
(c) Others · ○+0

(1) The following program stores the model name of a module having the start I/O number
0020H in the area starting from the device specified by when X0 is turned on.
[Ladder Mode] [List Mode]

Step Instruction Device

7.18.11 Trace Set/Reset (TRACE,TRACER)
TRACE,TRACER
Process High performance Redundant Universal Basic

U \G Zn Constants Other Bit Word Bit Word
The sampling trace function collects the specified device data of a CPU module consecutively at the specified timing.
With the sampling trace function, the traced results obtained through the specified number of trace operations will be stored in the trace file of the memory card when SM800, SM801, and SM802 are turned ON.

TRACE Trace start request Trigger condition enabled Trace reset
7.18 Other instructions 7.18.11 Trace Set/Reset (TRACE,TRACER)

TRACE
(1) The TRACE instruction turns ON SM803, executes sampling by the number of times set for
"After trigger number of times" in the Trace condition settings, latches the data and stops sampling trace.
(2) The sampling is stopped if SM801 is turned OFF during the trace execution.
(3) After the TRACE instruction is executed and the trace is completed, SM805 is turned ON.
(4) Once the TRACE instruction is executed, the second and the subsequent TRACE
instructions are ignored.
When the TRACER instruction is executed, the TRACE instruction is enabled again.
(1) The TRACER instruction resets the TRACE instruction. When the TRACER instruction is
executed, the TRACE instruction is enabled again.
(2) When the TRACER instruction is executed, SM803 to SM805 are turned OFF.
(1) There are no operation errors associated with the TRACE or TRACER instruction.
(1) The following program executes the TRACE instruction when X0 is turned ON, and resets
the TRACE instruction with the TRACER instruction when X1 is turned ON.
[Ladder Mode] [List Mode]
Instruction Device Step

7.18.12 Writing Data to Designated File (SP.FWRITE)
SP.FWRITE
Process High performance Redundant Universal Basic

*1: Local devices and the devices designated for individual programs cannot be used.
Data Meaning Setting Range Set by Data Type
U0 Dummy –– ––
Drive designation 2 User
Head number of the devices storing the control data. The following control data is required.
Device Item Contents/Setting Data Setting Range Set by
7.18 Other instructions 7.18.12 Writing Data to Designated File (SP.FWRITE)
Designate the execution type. 0000H : Write binary data 0100H : Write data after CSV format conversion 0000H 0100H User
+1 (Not used) Used by system –– System
Writing result (No.
Contains the number of actually written data against the data designated by . The unit of the value depends on data type specified at
+7.
+3 (Not used) –– –– ––
Set the file position when binary data writing is specified by . 00000000H :Starting at the beginning of the file 00000001H to FFFFFFFEH: From the specified position
The unit of the value depends on data type specification. FFFFFFFFH : Addition starts from the end
of the file. When CSV format write is specified at
00000000H to FFFFFFFFH User
the file FFFFFFFFH : Addition starts at the end of the file.

Data Meaning Setting Range Set by Data Type
When binary write is specified at , always
set 0.
When CSV format write is specified at ,
No. of
set the number of columns where data will be
written.
one row.
columns.
Head number of the devices storing a file name. A file name is expressed as follows:
Device Item Contents/Setting Data Setting Range Set by
Designate the character string of a file name.
the "." (Period).
period + 3 characters.
the extension is ignored regardless of its
presence, and "BIN" or "CSV" is
automatically assigned as an extension.
Head number of the devices storing the data. Written data is expressed as follows:
Device Item Contents/Setting Data Setting Range Set by
Designate the number of data to request
writing (word units).
No. of
This data should be designated in units of
words even when byte is designated by
1 to 32767 *2 User
+7.
Write data Data to request writing. 0000H to
Bit device that turned ON at the completion of the processing.
( +1 is also turned ON at error completion.)
Device Item Contents/Setting Data Setting Range Set by
Indicates the completion of the processing.
Indicates whether the processing is normally
completed or abnormally completed.
*2: Indicates the range applicable only for the Universal model QCPU.

Caution
(1) At (drive designation), only the ATA card drive (2) can be set.
(2) For CSV setting, the data written are decimal values.
Character "A" (41H) "65" is written. Handling range: -32768 to 32767
(3) For binary write, the word-specified file position setting range is 00000000H to 7FFFFFFFH
and FFFFFFFFH.
7.18 Other instructions 7.18.12 Writing Data to Designated File (SP.FWRITE)

Function
(1) The designated number of data is written to the designated file.
Set the execution/completion type in the control data to designate whether to write binary data without any conversion or to convert binary data into CSV format data before writing it. (The writing target is the ATA card only.)
(2) The execution completion bit device ( ) is automatically turned ON at the END processing after the completion of the instruction is detected. The bit device is turned OFF at the execution of the END instruction in the next scan.
Use this bit device as the execution completion flag for the SP.FWRITE instruction.
When this instruction is completed abnormally, the error completion device ( +1) is turned
ON/OFF in synchronization with the processing complete ( ) device. Use this device as the error completion flag for this instruction. SM721 is turned ON during the execution of the instruction. This instruction cannot be executed while SM721 is ON. (If an attempt is made, no processing is performed.) When an error is detected at the execution of the instruction (before SM721 is turned ON),
the processing complete device ( ), the error completion device ( +1), and SM721 are not turned ON.
(3) Be sure to use in units of words to designate the No. of request write data ( ) and the file
position ( +4 and +5).
The following shows the method for writing binary data when No. of request write data and file position are specified.


(4) When writing binary data
(a) If the extension of the target file is omitted, ".BIN" is used as an extension.
(b) When the designated file does not exist, a new file is created and the data is added/
saved from the beginning of the file. The attributes of this new file are set using the archive attributes.
(c) When the size of the data exceeds that of the existing area in the file during the writing, the excess data is added/saved.
(d) If the file position specified is greater than the existing file size:
are "01111" or lower results in an error.
model QCPU of which the first 5 digits of the serial number are "01112" or higher performs writing at point 0 and is completed normally.
(e) An error occurs when the saving space becomes full while data is added and saved.
In such a case, the data that is successfully added/saved remains in the medium. The error completion is indicated after as much data as possible is added/saved.
(5) When writing data after CSV format conversion
(a) If the extension is omitted, ".CSV" is used as an extension.
(b) When the existing file is specified:
[High Performance model QCPU of which the first 5 digits of the serial number are "01111" or lower] File contents are all deleted and data are saved, starting at the beginning. [High Performance model QCPU/Process CPU/Redundant CPU/Universal model QCPU of which the first 5 digits of the serial number are "01112" or higher]
7.18 Other instructions 7.18.12 Writing Data to Designated File (SP.FWRITE)
(c) When the designated file does not exist, a new file is created and the data is added/ saved from the beginning of the file. The attributes of this new file are set using the archive attributes.
(d) An error occurs when the saving space becomes full while data is added and saved.
In such a case, the data that is successfully added/saved remains in the medium. The error completion is indicated after as much data as possible is added/saved.

(e) When the designated number of columns is "0", the data is stored as single-row data in
CSV format file.
When data is written after CSV format conversion and the designated No. of columns is "0":
SP.FWRITE D10 K2 U0 D20 D99 M0 * Designation in word units
Not used Number of written result data (In normal completion, it is the same number as the number of data to be written.)
K0
K0
K0
Designation of the number of columns
File name (If a file name consists of 8 or less characters, "00"s are filled in the remaining area.) "ABCDE"
H4443
H0045
Number of data to be written
Data to be written
K10
K20
K30
K40
K-50
K100
Data to be written to the file
0 , 10 20 40 30 , , -50 100 , , , CR LF
Data to be read out to EXCEL file

Execution/completion type · Not used · Data type specification

(f) When data is written after CSV format conversion and the designated number of columns is other than "0", the data is stored as table data with designated number of columns in a CSV format file.
When data is written after CSV format conversion and the designated No. of columns is other than "0":

In the module Number of written result data (In normal completion, it is the same number as the number of data to be written.)
7.18 Other instructions 7.18.12 Writing Data to Designated File (SP.FWRITE)

(g) When data is added by the High Performance model QCPU/Process CPU/Redundant
CPU/Universal model QCPU of which the first 5 digits of the serial number are 01112 or higher:
[Specify the file to which data will be written.] (If a file exists, delete it and create a new file again.)

= 0H (New file is created) = D0 = 6H*3
Starting row 1 , 2 , 3 , 4 CR LF Row 1
[In the addition mode, make addition from the end of the file.]

= FFFFFFFH (Continuation mode) = D7 = 8H*3
1 , 2 , 3 , 4 CR LF Row 1
Present starting row 7 , 8 , 9 CR LF Row 3
10 , 11 , 12 CR LF Row 4
*3: Unless the "number of write points" is set to an integral multiple of "column designation", the column numbers will be random. *4: Since the last data is always followed by the line feed code, addition normally starts at the beginning of the new row in the addition mode. *5: If, in the addition mode, "column designation" is changed from that in the previous writing, the column numbers are shifted.
(h) Do not execute the SP.FWRITE instruction in an interrupt program.
(If execute it, the operation is not guaranteed.)

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
7.18 Other instructions 7.18.12 Writing Data to Designated File (SP.FWRITE)

Program Example
(1) When X10 is turned ON, the following program adds four bytes of binary data (00H, 01H,
02H, and 03H) to file "ABCD.BIN" in the memory card inserted to drive 2.


[Ladder Mode] · [List Mode]

(2) When X10 is turned ON, the following program creates a file named "ABCD.CSV" in the
memory card inserted to drive 1, and writes four bytes of data (00H, 01H, 02H, and 03H) as two-column table data in CSV format.


7.18 Other instructions 7.18.12 Writing Data to Designated File (SP.FWRITE)
Contents of the file to be written 0 , 1 , CR LF 2 , 3 , CR LF
[Ladder Mode] · [List Mode]

7.18.13 Reading Data from Designated File (SP.FREAD)
SP.FREAD
Process High performance Redundant Universal Basic

*1: Local devices and the devices designated for individual programs cannot be used.

Head number of the devices storing the control data The following control data is required.
Designate the execution type. 0000H: Read binary data 0100H: Read data after CSV format conversion
Even when byte is specified at +7 by data
words (16 bits), not in units of bit devices.
*2: Indicates the range applicable only for the Universal model QCPU.

Data Meaning Setting Range Set by Data Type
Designate the file position to start reading when binary data reading is designated by . 00000000H: Starting at the beginning of the file 00000001H to FFFFFFFEH :From the designated position
The unit for the value is determined by word/byte unit designation. FFFFFFFFH: Setting disabled
When CSV format read is specified at
00000000H to FFFFFFFFH User
serial number are "01112" or higher, set the file position (Row). 00000000H: Read starts at the beginning of the file. 00000001H to FFFFFFFEH :Read starts at the specified row. FFFFFFFFH: Read continues, starting at the
previous read position.
When binary read is specified at , always set 0. When CSV format read is specified at , set the number of columns from where data will be read. 0: No columns. Regarded as one row. Other than 0: Regarded as the specified number of columns.
No. of columns designation
BIN 16 bits +6
0H to FFFFH (0 to 65535) User
7.18 Other instructions 7.18.13 Reading Data from Designated File (SP.FREAD)
Head number of the devices storing a file name. A file name is expressed as follows:
Device Item Contents/Setting Data Setting Range Set by
Designate the character string of a file name.
Head number of the devices for storing the read data.
Device Item Contents/Setting Data Setting Range Set by
Contains the number of actually read data
Reading result (No. of
against the data designated by +2. The
unit on the value depends on data type specification.
data Read data –– System

Data Meaning Setting Range Set by Data Type
Bit device that turned ON at the completion of the processing.
( +1 is also turned ON at error completion.)
Device Item Contents/Setting Data Setting Range Set by
Indicates the completion of the processing. ON: Completed OFF: Not completed
Indicates whether the processing is normally completed or abnormally completed. ON: Error completion OFF: Normal completion
(1) At (drive designation), only the ATA card drive (2) can be set.
(2) For CSV setting, the data written are decimal values.
Character "A" (41H) "65" is written. Handling range: -32768 to 32767
(3) For binary read, the word-specified file position setting range is 00000000H to 7FFFFFFFH.
(1) Data is read from the designated file.
Set the execution/completion type in the control data to designate whether to read binary data without any conversion or to convert binary data into CSV format data before reading it. (The reading target is the ATA card only.)
(2) The execution completion bit device ( ) is automatically turned ON at the END processing after the completion of the instruction is detected. The bit device is turned OFF at the execution of the END instruction in the next scan.
Use this bit device as the execution completion flag for the SP.FWRITE instruction. When this instruction is completed abnormally, the error completion device ( +1) is turned ON/OFF in synchronization with the execution completion ( ) device. Use this device as the error completion flag for this instruction. SM721 is turned ON during the execution of the instruction. This instruction cannot be executed while SM721 is ON. (If an attempt is made, no processing is performed.) When an error is detected at the execution of the instruction (before SM721 is turned ON), the processing complete device ( ), the error completion device ( +1), and SM721 are not turned ON.

(3) Be sure to use word units to designate the number of request read data ( +2), file position ( +4 and +5), and read data device size ( ).
The following shows how the individual device data is read in binary data reading operation.
K3
Number of request read data
Location to start reading in the file
File data (in byte units)
H00
H11
H33 22
H22
H33
H55 44
H44
H55
H77
H66
H77
H88
H99
HAA
(4) When reading binary data
(a) If the extension of the target file is omitted, ".BIN" is used as an extension.
7.18 Other instructions 7.18.13 Reading Data from Designated File (SP.FREAD)
(b) When the designated file does not exist, an error occurs.
(c) If the position specified is greater than the existing file size:
are "01111" or lower results in an error.
model QCPU of which the first 5 digits of the serial number are '01112' or higher will perform reading at point 0 and will be completed normally.
(5) When reading data after CSV format conversion
(a) The elements in CSV format file (cells for EXCEL) are read by each row. The numerical
value and character strings are converted into binary data and stored in the device.
(b) If the extension is omitted, ".CSV" is used as an extension.
(c) When the designated file does not exist, an error occurs.
(d) The elements designated by the number of request read data ( +2) are read from the beginning of the file. When the last data of the file is reached before the specified number of data are read:
are "01111" or lower results in an error.
model QCPU whose the first 5 digits of the serial number are '01112' or higher reads the data up to the point where the reading is possible.

(e) When the designated number of columns is 0, the data is read by ignoring the rows in
CSV format file.
When data is read after CSV format conversion and the designated No. of
columns is 0:

Main / sub item , , Measured value CR LF Length , 1 , 3 CR LF Temperature , -21 , CR LF
Data that was read File name Control data Control data
Conversion data (0) is stored since "Main/sub item" is nonnumeric data.
Conversion data (0) is stored since " " is nonnumeric data.
Conversion data (0) is stored since "Measured value" is nonnumeric data.
Conversion data (0) is stored since "Length" is nonnumeric data.
Since " 1 " is a numeric value, it is converted to a binary value.
Since " 3 " is a numeric value, it is converted to a binary value.
Conversion data (0) is stored since "Temperature" is nonnumeric data.
Since " -21 " is a numeric value, it is converted to a binary value.
Conversion data (0) is stored since " " is nonnumeric data.

If the number of columns varies in each row, the data is also read by ignoring the rows.
Such file cannot be created using EXCEL. This happens when CSV file is modified by a user.

If the number of columns varies in each row when the data is read: Example
Main / sub item , , Measured value Excess CR LF Length CR LF Temperature , -21 , CR LF
Data that was read File name Control data Control data
7.18 Other instructions 7.18.13 Reading Data from Designated File (SP.FREAD)
Stores the number of read data Number of read result data
Conversion data (0) is stored since "Main/sub item" is nonnumeric data.
Conversion data (0) is stored since " " is nonnumeric data.
Conversion data (0) is stored since "Measured value" is nonnumeric data.
Conversion data (0) is stored since "Excess" is nonnumeric data.
Conversion data (0) is stored since "Length" is nonnumeric data.
Conversion data (0) is stored since "Temperature" is nonnumeric data.
Since " -21 " is a numeric value, it is converted to a binary value.

(f) When data is read after CSV format conversion and the designated number of columns is other than 0, the data is read as the table with designated number of columns in CSV format file. The elements outside of the designated columns are ignored.
When data is read after CSV format conversion and the designated No. of
columns is other than "0":

Main / sub item , , Measured value CR LF Length , 1 , 3 CR LF LF Temperature , -21 , CR LF LF
Elements outside the designated number of columns are ignored.
Loaded data Stores the number of read data Number of read result data
Conversion data (0) is stored since "Main/sub item" is nonnumeric data.
Conversion data (0) is stored since " " is nonnumeric data.
Conversion data (0) is stored since "Length" is nonnumeric data.
Since " 1 " is a numeric value, it is converted to a binary value.
Conversion data (0) is stored since "Temperature" is nonnumeric data.
Since " -21 " is a numeric value, it is converted to a binary value.

If the number of columns varies in each row, the elements outside of the designated columns are ignored and "0" is added to the places where elements do not exist.
If the number of columns varies in each row when the data is read:

Main / sub item , , Measured value Excess CR LF Length CR LF Temperature , -21 , CR LF
Elements outside the designated number of columns are ignored.
Data that was read File name Control data Control data
7.18 Other instructions 7.18.13 Reading Data from Designated File (SP.FREAD)
Conversion data (0) is stored since "Main/sub item" is nonnumeric data.
Conversion data (0) is stored since " " is nonnumeric data.
Conversion data (0) is stored since "Length" is nonnumeric data.
No data Since no element exists here, conversion data (D) is added.
Conversion data (0) is stored since "Temperature" is nonnumeric data.
Since " -21 " is a numeric value, it is converted to a binary value.

(g) With the High Performance model QCPU/Process CPU/Redundant CPU/Universal
model QCPU whose first 5 digits of the serial number are "01112" or later, it is possible to divide read operation into multiple times. [Specify the row desired to start read.]

Starting row number Read head device Number of data
1 , 2 , 3 , 4 CR LF Row 1
Row 2 5 , 6 , 7 , 8 CR LF
9 , 10 , 11 , 12 CR LF Row 3
13 , 14 , 15 , 16 CR LF Row 4
Row 5 17 , 18 , 19 , CR LF
[In the continuation mode, read continues from the end of the previous read position.]

Starting row number Read head device Number of data
= FFFFFFFH (Continuation mode) = D7 = 5H
1 , 2 , 3 , 4 CR LF
5 , 6 , 7 , 8 CR LF
9 , 10 , 11 , 12 CR LF
13 , 14 , 15 , 16 CR LF
17 , 18 , 19 , 20 CR LF
normally if the "execution type", "column designation" and "Data type specification" settings differ from those at the previous time.
SP.FWRITE instruction with another setting is executed while data is being read continuously in the continuation mode.

(h) When data is read after CSV format conversion, the numerical values that are out of
range or the elements other than numerical values in the object CSV format file are converted into 0H.
(i) When data is read after CSV format conversion, numerical values are read and converted as follows:
CSV Format -32768 to -1 0 to 32767 32768 to 65535
a sign 32768 to 65535 0 to 32767 32768 to 65535
sign -32768 to -1 0 to 32767 -32768 to -1
(j) Do not execute this instruction in an interrupt program. (Otherwise, a malfunction may result.)
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
7.18 Other instructions 7.18.13 Reading Data from Designated File (SP.FREAD)
the number of request read data ( +2). (High Performance model QCPU of which the first 5 digits of the serial number are '01111' or lower) (Error code: 4100)

Program Example
(1) The following program reads 4 bytes of binary data from the beginning of file "ABCD.BIN" in
the memory card inserted to drive 2 when X10 is turned ON.


[Ladder Mode] · [List Mode]

(2) The following program reads file "ABCD.CSV" in the PC card inserted to slot 0 as
two-column table data in CSV format when X10 is turned ON.


7.18 Other instructions 7.18.13 Reading Data from Designated File (SP.FREAD)
[Ladder Mode] · [List Mode]

7.18.14 Writing Data to Standard ROM (SP.DEVST)
SP.DEVST
Universal Basic Process High performance Redundant

n1: Write offset of the device data storage file (specified in units of 16-bit words) (BIN 32-bit)
: Head device number written to the standard ROM (device name) n2: The number of write points (BIN 16-bit)

*1:Devices assigned as local devices can not be used.
(1) Writes device data for the number of points specified at n2 of the device to the write offset, which is specified for n1, of the device data storage file in the standard ROM.
n1 is the offset from the head of device data storage file and specified by word offset (in units of 16-bit words).

Device data storage file Write offset of device data stofage file
(2) Since the device data write position completion device ( +0) in the standard ROM automatically turns ON at execution of the END instruction, which detects the completion of this instruction, and turns OFF with the END instruction of next scan, it is used as an execution completion flag of this instruction.
(3) When this instruction is completed in error, the error completion device ( +1) turns ON/ OFF at the same timing with the completion device ( +0). This device is used as an error completion flag of this instruction.

(4) SM721 turns ON during execution of this instruction.
When SM721 has already turned ON, this instruction can not be executed. (If executed, no processing is performed.)
(5) When an error is detected at execution of this instruction, the completion device ( +0), error completion device ( +1) and SM721 do not turn ON.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The program which writes the ten points of data from D100 to the device data storage file in
the standard ROM when M0 turns ON.
[Ladder Mode] [List Mode]
7.18 Other instructions 7.18.14 Writing Data to Standard ROM (SP.DEVST)
(1) The value written to the standard ROM is the value at execution of this instruction.
(2) The standard ROM write count index (SD687 and SD688) is increased by the execution of
the SP.DEVST instruction. If the standard ROM write count index exceeds hundred thousand times, FLASH ROM ERROR (error code: 1610) occurs.
(3) To prevent the number of ROM writes from increasing due to executing instruction
carelessly, set the specification of writing to standard ROM instruction count (SD695) to restrict the number of writes a day.
Exceeding the number of writes (the default values are 36 times.) set causes OPERATION ERROR (error code: 4113).
Instruction Device Step

7.18.15 Read Data from Standard ROM (S(P).DEVLD)
(S(P).DEVLD)
Universal Basic Process High performance Redundant

n1 : Read offset of the device data storage file (specified in units of 16-bit words) (BIN 32-bit) : Head device number read from the standard ROM (device name) n2 : The number of reading points (BIN 16-bit)

(1) Reads device data for the number of points specified at n2 from the read offset, which is
specified for n1, of the device data storage file in the standard ROM, and stores the data to the device specified for .
n1 is the offset from the head of device data storage file and specified by word offset (in units of 16-bit words).


Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The program which reads the ten points of data from D100 to the device data storage file in
the standard ROM when M0 turns ON.
[Ladder Mode] [List Mode]
7.18 Other instructions 7.18.15 Read Data from Standard ROM (S(P).DEVLD)
Instruction Device Step

7.18.16 Load Program from Memory Card (PLOADP)
PLOADP
Process High performance Redundant Universal Basic

: Drive No. storing the program to be loaded, character string data of the file name, or head number of the
devices storing the character string data (BIN 16 bits) *1
: Device that turns ON for 1 scan by the instruction completion (bits)

*1: Designated as ":". Example) 1:MAIN *2: Local devices cannot be used.
(1) The program stored in the memory card or standard ROM is transferred to the program
memory (drive 0).
If the transferred program is not registered to the program setting of the PLC parameter dialog box, its program setting in the CPU module is set to the standby type. At this time, the program setting of the PLC parameter dialog box does not change. (To transfer a program with the PLOADP instruction, a continuous free space is required in the program memory.)
(2) The program added using the PLOADP instruction is assigned the lowest number among
the unused program Nos.
(To assign a program number manually, store the program number to be assigned in SD720.) The following example assumes that "MAIN6" is added by the PLOADP instruction.
(a) When the program Nos. have been set consecutively, the new program is added at the
end of the preset program Nos. When programs No. 1 to 5 have been set, the new program is added as program No. 6.


(b) When there are multiple open program Nos., the program designated by the PLOADP
instruction is added to the lowest number among them to be added. (The open program Nos. are made when programs are deleted by the PUNLOADP instruction.) When programs No. 2 and 4 are open, the new program is added as program No. 2.
Program No. Program name 1 2 MAIN1
Program No. Program name 1 2 MAIN1 MAIN6 MAIN3
Added to the smallest program number which is empty.
Adds "MAIN6" by the PLOADP instruction.
(3) Drive Nos. 1, 2, and 4 can be specified. (Drive 3 cannot be specified.)
(4) An extension (.QPG) need not be specified for the file name.
(5) The bit device specified by is turned ON during the END processing of the scan where this instruction is completed. The bit device is turned OFF at the next END processing.
(6) The PLOADP, PUNLOADP and PSWAPP instructions cannot be executed simultaneously.
If two or more of the above instructions are executed simultaneously, the instruction executed later will not be executed. When using the above instructions, provide interlocks manually to avoid simultaneous execution.
(7) Do not execute this instruction in an interrupt program.
(Otherwise, a malfunction may result.)
(8) To execute the program that was transferred to the program memory with the PLOADP
instruction, execute the scan execution type with the PSCAN instruction (See Section 7.17.3).
7.18 Other instructions 7.18.16 Load Program from Memory Card (PLOADP)
(9) The PLC file settings of the loaded program are set as follows:
(a) File usage for each program
All the usage of file register, device initial value, comment, and local device of the program transferred by this instruction are set as "Use PLC file setting". However, an error will be returned if both of the conditions below are met when the program is transferred using this instruction.
set at the parameters. To use local devices in the program transferred by this instruction, register a dummy program file in the parameter, delete the dummy file with the PUNLOADP instruction, and then load the program with the PLOADP instruction.
(b) I/O refresh setting
Nothing is set for both input and output for the I/O refresh setting of the program transferred by this instruction.
Empty MAIN3 · Empty MAIN5 · Empty MAIN5

(10) The "PLOADP instruction" and "Write during RUN" processing cannot be executed
simultaneously.
(a) When a write during RUN request is given during processing of the PLOADP
instruction, write during RUN is delayed. Write during RUN is started after the processing of the PLOADP instruction is completed.
(b) When the PLOADP instruction is executed during write during RUN, the processing of
the PLOADP instruction is delayed. The processing of the PLOADP instruction is started after completion of write during RUN.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
indicated in the table below. (Error code: 4101)
number shown in the table below. (Error code: 4101)

CPU Model Name Program Memory (No. of Files) Largest Program No.
(1) The following program transfers "ABCD.QPG" stored in drive 4 to drive 0 and places the
program in standby status when M0 is turned ON.
[Ladder Mode] [List Mode]
Instruction Device Step

7.18.17 Unload Program from Program Memory (PUNLOADP)
PUNLOADP
Process High performance Redundant Universal Basic

: Character string data of the program file name to be unloaded, or head number of the devices storing the
character string data (BIN 16 bits)

: Device turned ON for 1 scan on completion of the instruction (bits)
*1: Local devices cannot be used.
(1) The standby program stored in the program memory (drive 0) is deleted from the program
memory.
(The program set as the "scan execution type" with the PSCAN instruction or the program set as the "low speed execution type" with the PLOW instruction cannot be deleted.)
7.18 Other instructions 7.18.17 Unload Program from Program Memory (PUNLOADP)
(2) The program No. deleted by the PUNLOADP instruction is made "Empty".
When programs No. 1 to 5 have been set in the program setting of the PLC parameter dialog box, deleting program No. 2 with this instruction makes program No. 2 open.
Program No. Program name 1 2 MAIN1 MAIN2 MAIN3 MAIN4 MAIN5
Program No. Program name 1 2 MAIN1
Empty MAIN3 MAIN4 MAIN5
Program No. 2 is deleted.
Deletes "MAIN2" by the PUNLOADP instruction.
(3) An extension (.QPG) need not be specified for the file name.
(4) The bit device specified by is turned ON during the END processing of the scan where this instruction is completed. The bit device is turned OFF at the next END processing.
(5) The PLOADP, PUNLOADP and PSWAPP instructions cannot be executed simultaneously.
If two or more of the above instructions are executed simultaneously, the instruction executed later will not be executed. When using the above instructions, provide interlocks manually to avoid simultaneous execution.

(6) When the Programmable Controller is powered OFF, then ON or the CPU module is reset
after execution of the PUNLOADP instruction, the following operation is performed.
(a) When boot setting has been made in the PLC parameter dialog box, the program where
the boot setting has been made is transferred to the program memory. When the program deleted by the PUNLOADP instruction is not to be executed, delete the corresponding program name from the boot setting and program setting of the PLC parameter dialog box.
(b) When boot setting has not been made in the PLC parameter dialog box, "FILE SET
ERROR (error code: 2400)" occurs. 1) When the program deleted by the PUNLOADP instruction is not to be executed, delete the corresponding program name from the program setting of the PLC parameter dialog box. 2) When the program deleted by the PUNLOADP instruction is to be executed again, write the corresponding program to the CPU module.
(7) Do not execute this instruction in an interrupt program.
(Otherwise, a malfunction may result.)
(8) The program to be deleted from the program memory by this instruction should be set to the
"standby execution type" with the PSTOP instruction beforehand. (See Section 7.17.1)
(9) The "PUNLOADP instruction" and "write during RUN" processing cannot be executed
simultaneously.
(a) When a write during RUN request is given during processing of the PUNLOADP
instruction, write during RUN is delayed. Write during RUN is started after the processing of the PUNLOADP instruction is completed.
(b) When the PUNLOADP instruction is executed during write during RUN, the processing
of the PUNLOADP instruction is delayed. The processing of the PUNLOADP instruction is started after completion of write during RUN.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The following program deletes "ABCD.QPG" stored in drive 0 from the memory when M0
turns from OFF to ON.
[Ladder Mode] [List Mode]
Instruction Device Step

7.18.18 Load + Unload (PSWAPP)
PSWAPP
Process High performance Redundant Universal Basic

: Character string data of the file name of the program to be unloaded, or head number of the devices storing
the character string data (BIN 16 bits)
: Drive No. storing the program to be loaded, character string data of the file name, or head number of the
devices storing the character string data (BIN 16 bits) *1

: Device turned ON for 1 scan on completion of the instruction (bits)
*1: Designated as ":". Example) 1:MAIN *2: Local devices cannot be used.
7.18 Other instructions 7.18.18 Load + Unload (PSWAPP)
(1) The standby type program stored in the program memory (drive 0) designated by is deleted from the program memory, and at the same time, the program stored in the memory card or standard ROM designated by is transferred to the program memory and placed in standby status.
(When the program is transferred to the program memory, the program must have a continuous free space.) The program set as the "scan execution type" with the PSCAN instruction or the program set as the "low speed execution type" with the PLOW instruction cannot be deleted.
(2) The program to be transferred to the program memory by the PSWAPP instruction will have
the program No. of the program to be deleted from the program memory.
(If there is an open program No. before the program to be deleted from the program memory, the program to be transferred to the program memory will not have the open program No.) When program No. 2 is "Empty", the program transferred to the program memory is registered as program No. 3 by the program swapping of program No. 3 with this instruction.
Program No. Program name Program No. Program name
1 2 MAIN1
Empty MAIN3 MAIN4 MAIN5
Swaps "MAIN3" with "MAIN6" by the PSWAPP instruction.
Empty MAIN6 MAIN4 MAIN5
MAIN6 enters

(3) Drive Nos. 1, 2, and 4 can be specified. (Drive 3 cannot be specified.)
(4) An extension (.QPG) need not be specified for the file name.
(5) The bit device specified by is turned ON during the END processing of the scan where this instruction is completed. The bit device is turned OFF at the next END processing.
(6) The PLOADP, PUNLOADP and PSWAPP instructions cannot be executed simultaneously.
If two or more of the above instructions are executed simultaneously, the instruction executed later will not be executed. When using the above instructions, provide interlocks manually to avoid simultaneous execution.
(7) When the Programmable Controller is powered OFF, then ON or the CPU module is reset
after execution of the PSWAPP instruction, the following operation is performed.
(a) When boot setting has been made in the PLC parameter dialog box, the program where
the boot setting has been made is transferred to the program memory. When the program replaced by the PSWAPP instruction is to be executed, change the boot setting and program setting of the PLC parameter dialog box for the corresponding program name.
(b) When boot setting has not been made in the PLC parameter dialog box, "FILE SET
ERROR (error code: 2400)" occurs. 1) When the program replaced by the PSWAPP instruction is to be executed, change the program setting of the PLC parameter dialog box for the corresponding program name. 2) To execute the program set in the program setting of the PLC parameter dialog box, write the corresponding program to the CPU module again.
(8) Do not execute this instruction in an interrupt program.
(Execution of this instruction in an interrupt program can cause a malfunction.)
(9) The PLC file settings of the program on which the PSWAPP instruction has been conducted
are set as follows:
(a) File usage for each program
All the usage of file register, device initial value, comment, and local device of the program after the execution of the PSWAPP instruction are set as "Use PLC file setting".
(b) I/O refresh setting
Nothing is set for both input and output for the I/O refresh setting of the program after the PSWAPP instruction has been executed.
(10) The "PSWAPP instruction" and "write during RUN" processing cannot be executed
simultaneously.
(a) When a write during RUN request is given during processing of the PSWAPP
instruction, write during RUN is delayed. Write during RUN is started after the processing of the PSWAPP instruction is completed.
(b) When the PSWAPP instruction is executed during write during RUN, the processing of
the PSWAPP instruction is delayed. The processing of the PSWAPP instruction is started after completion of write during RUN.

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(1) The following program deletes "EFGH.QPG" stored in drive 0 from the memory, transfers
"ABCD.QPG" stored in drive 4 to drive 0, and places the program in standby status when M0 is turned from OFF to ON.
[Ladder Mode] [List Mode]

7.18 Other instructions 7.18.18 Load + Unload (PSWAPP)
Instruction Device Step

7.18.19 High-speed Block Transfer of File Register (RBMOV(P))
RBMOV(P)
Process High performance Redundant Universal Basic

: Head number of the devices where the data to be transferred is stored (BIN 16 bits)
: Head number of the devices of transfer destination (BIN 16 bits) n : Number of data to be transferred (BIN 16 bits)

(1) Transfers in batch 16-bit data of n points from the device designated by to location n

(2) The transfer is available even if there is an overlap between the source and destination
devices. For the transmission to the smaller number of device, the data is transferred from . For the transmission to the larger number of device, the data is transferred from +(n-1).
However, as shown in the example below, when transferring data from R to ZR, or from ZR to R, the range to be transferred (source) and the range of destination must not overlap.
of transfers -1)) R transfer range ((specified head No. of R + file register block No. 32768) to (specified head No. of R + file register block No. 32768 + the number of transfers -1))

Example
Transfer ranges of ZR and R overlap when transferring 10000 points of data from ZR30000 (source) to R10 (block No.1 of the destination).
Source of transfer Destination of transfer
Overlapped Block No. 0
R10 R32767
ZR39999
R10009
Block No. 1
(3) When is a word device and is a bit device, the number of bits designated by the bit device digit specification will be transferred. If K1Y30 has been designated by , the lower four bits of the word device designated by will be transferred.
+1 +2 R100 1 0 1 1 b0 b1 b2 b3 b4 b15
n 0 0 1 1 1 0 1 0 Y30 Y33 Y37 Y34 Y3B Y38
R102 0 1 1 1 +2
7.18 Other instructions 7.18.19 High-speed Block Transfer of File Register (RBMOV(P))
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
n

Program Example
(1) The following program outputs the lower four bits of data in R66 to R69 to Y30 through Y3F
in units of 4 points.
[Ladder Mode] [List Mode]

1 Y33 to Y30 1 0 1 0 1 0 1
Y37 to Y34 Y3B to Y38 Y3F to Y3C
0 0 1 0 1 0 R68 R69
(2) The following program outputs the data in X20 to X2F to R100 to R103 in units of 4 points.
[Ladder Mode] [List Mode]

0 1 1 1 0 1 0 1 X20 X23 X2B X28 X2F X2C
0 1 0
0 1 1 0 R101
0 1 0 R102
0 1 0 R103
Instruction Device Step · Instruction Device Step

The RBMOV (P) instruction is useful to batch transfer a large quantity of file register data with the QnHCPU/QnPHCPU/QnPRHCPU. For the QnUCPU, the processing speed of the RBMOV instruction is equivalent to that of the BMOV instruction. The comparison of processing speed between the RBMOV and BMOV instructions is as follows:
(1)Transfer from file registers to internal devices/internal devices to file registers
1 word 1000 words 10000 words
file register is stored
Min. Max. Min. Max. Min. Max.
Standard RAM 20.0 µs 91.0 µs 775.0 µs
SRAM card 22.0 µs 305.0 µs 2900.0 µs
Flash card *1 22.5 µs 405.0 µs 3950.0 µs
Standard RAM 7.5 µs 76.2 µs 720.0 µs
8.0 µs 384.0 µs 3900.0 µs
Flash card *1 418.0 µs 4250.0 µs
Standard RAM 45.5 µs 215.0 µs 1850.0 µs
49.5 µs 540.0 µs 5150.0µs Flash card *1
Standard RAM 17.5 µs 177.0 µs 1700.0 µs
18.0 µs 500.0 µs 5050.0 µs
Flash card *1 572.0 µs 5800.0 µs
Standard RAM 12.2 µs 34.9 µs 121.5 µs 145.1 µs 1111.5 µs 1135.1 µs
SRAM card*2 -
Flash card *2 -
Q01UCPU
Standard RAM 7.3 µs 13.8 µs 116.5 µs 124.2 µs 1106.5 µs 1114.2 µs
SRAM card*2 -
7.18 Other instructions 7.18.19 High-speed Block Transfer of File Register (RBMOV(P))
Flash card *2 -
Standard RAM 9.4 µs 31.3 µs 118.5 µs 141.3 µs 1108.5 µs 1131.3 µs
SRAM card 9.4 µs 31.4 µs 178.5 µs 201.3 µs 1708.5 µs 1731.3 µs
Flash card *1 9.4 µs 32.1 µs 278.5 µs 301.3 µs 2708.5 µs 2731.3 µs
Standard RAM 5.0 µs 11.6 µs 114.5 µs 122.3 µs 1104.5 µs 1112.3 µs
SRAM card 5.1 µs 11.7 µs 174.5 µs 182.3 µs 1704.5 µs 1712.3 µs
Flash card *1 5.0 µs 11.6 µs 274.5 µs 282.3 µs 2704.5 µs 2712.3 µs
Standard RAM 11.3 µs 16.8 µs 120.7 µs 127.1 µs 1110.7 µs 1117.1 µs
SRAM card 11.2 µs 16.7 µs 180.7 µs 187.1 µs 1710.7 µs 1717.1 µs
Flash card *1 11.3 µs 16.8 µs 280.7 µs 287.1 µs 2710.7 µs 2717.1 µs
Standard RAM 4.8 µs 6.6 µs 114.7 µs 117.1 µs 1104.7 µs 1107.1 µs
SRAM card 4.8 µs 6.6 µs 147.7 µs 177.1 µs 1704.7 µs 1707.1 µs
Flash card *1 4.8 µs 6.5 µs 274.7 µs 277.1 µs 2704.7 µs 2707.1 µs
Standard RAM 9.2 µs 15.1 µs 61.0 µs 68.6 µs 531.0 µs 538.6 µs
RBMOV
SRAM card 9.4 µs 15.6 µs 165.0 µs 172.6 µs 1576.0 µs 1583.6 µs
Q10UDE(H)CPU
Flash card *1 9.4 µs 15.7 µs 260.0 µs 267.6 µs 2526.0 µs 2533.6 µs
Standard RAM 4.1 µs 5.6 µs 56.0 µs 58.6 µs 526.0 µs 528.6 µs
BMOV
SRAM card 4.5 µs 6.1 µs 160.0 µs 162.6 µs 1571.0 µs 1573.6 µs
Flash card *1 4.3 µs 6.2 µs 255.0 µs 257.6 µs 2521.0 µs 2523.6 µs
*1 : When file registers are stored in the Flash card, no processing is performed for transfer from internal devices to file registers. *2 : Unusable for the Q00UCPU and Q01UCPU.

(2)Transfer from file registers to file registers
1 word 1000 words 10000 words
file register is stored
Min. Max. Min. Max. Min. Max.
Standard RAM 20.0 µs 91.0 µs 775.0 µs
SRAM card 22.5 µs 545.0 µs 5300.0 µs
Standard RAM 7.5 µs 77.0 µs 720.0 µs
SRAM card 8.5 µs 692.0 µs 7050.0 µs
Standard RAM 45.5 µs 215.0 µs 1850.0 µs
SRAM card 50.0 µs 870.0 µs 8350.0 µs
Standard RAM 17.5 µs 179.0 µs 1700.0 µs
SRAM card 18.5 µs 839.0 µs 8600.0 µs
Standard RAM 12.6 µs 35.3 µs 232.5 µs 256.1 µs 2211.5 µs 2235.1 µs
Q00UCPU
SRAM card*2 -
Standard RAM 7.7 µs 14.2 µs 227.5 µs 234.2 µs 2206.5 µs 2214.2 µs
SRAM card*2 -
Standard RAM 9.6 µs 31.5 µs 228.5 µs 252.3 µs 2208.5 µs 2231.3 µs
SRAM card 9.6 µs 31.5 µs 378.5 µs 401.3 µs 3708.5 µs 3731.3 µs
Standard RAM 5.2 µs 11.8 µs 224.5 µs 232.3 µs 2204.5 µs 2212.3 µs
SRAM card 5.2 µs 11.8 µs 374.5 µs 382.3 µs 3704.5 µs 3712.3 µs
Standard RAM 11.2 µs 16.7 µs 230.7 µs 237.1 µs 2210.7 µs 2217.1 µs
SRAM card 11.6 µs 16.7 µs 380.7 µs 387.1 µs 3710.7 µs 3717.1 µs
Standard RAM 4.9 µs 6.7 µs 224.7 µs 227.1 µs 2204.7 µs 2207.1 µs
SRAM card 5.2 µs 6.7 µs 374.7 µs 377.1 µs 3704.7 µs 3707.1 µs
Standard RAM 9.3 µs 15.5 µs 118.0 µs 124.6 µs 1102.0 µs 1107.6 µs
Q06UDE(H)CPU
SRAM card 9.7 µs 15.5 µs 365.0 µs 371.6 µs 3571.0 µs 3578.6 µs
Standard RAM 4.3 µs 6.2 µs 113.0 µs 115.6 µs 1096.0 µs 1098.6 µs
Q20UDE(H)CPU
BMOV
SRAM card 4.5 µs 6.1 µs 360.0 µs 362.6 µs 3566.0 µs 3568.6 µs
*1 : Unusable for the Q00UCPU and Q01UCPU.

BIN 16-bit addition operations (+) 6-22 BIN 32-bit addition operations (D+) 6-26 Block addition (BK+) 6-59,6-62 Addition and subtraction of floating decimal point data (Double precision) (ED+, ED-) 6-50,6-52 Addition and subtraction of floating decimal point data (Single precision) (E+, E-) 6-46,6-48 ADRSET (Indirect address read) 7-395 ANB (Ladder block series connections) 5-10 AND (=, , >, , D, E, ED
- (BIN 16-bit subtraction operations) 6-22 $+ (Linking character strings) 6-65,6-67 $=, $, $>, $
16-bit data block transfers (FMOV) 6-120,6-122 16-bit data checks (SUM) 7-69 16-bit data exchange (XCH) 6-124 16-bit data exclusive NOR operation (WXNR) 7-27 16-bit data searches (SER) 7-66 16-bit dead band controls (BAND) 7-324 16-bit exclusive OR operations (WXOR) 7-19 16-bit negation transfers (CML) 6-114 16-bit transfers (MOV) 6-106 1-bit shift to left of n-bit data (BSFL) 7-49,7-51 1-bit shift to right of n-bit data (BSFR) 7-49,7-51 1-word shift to left of n-word data (DSFL) 7-54,7-56 1-word shift to right of n-word data (DSFR) 7-54,7-56 32-bit data checks (DSUM) 7-69 32-bit data exchanges (DXCH) 6-124 32-bit data exclusive NOR operation (DXNR) 7-27 32-bit data searches (DSER) 7-66 32-bit dead band controls (DBAND) 7-324 32-bit exclusive OR operations (DXOR) 7-19 32-bit negation transfers (DCML) 6-114 32-bit transfers (DMOV) 6-106 4-bit dissociation of 16-bit data (DIS) 7-77 4-bit linking of 16-bit data (UNI) 7-79 7-segment decode (SEG) 7-75
6-8 And inverse (ANI) 5-3 AND($=, $, $>, $
7-228 ASIN (SIN-1 operation on floating-point data (Single precision)) 7-262 ASIND (SIN-1 operation on floating-point data (Double precision)) 7-265 ATAN (TAN-1 operation on floating-point data (Single precision)) 7-271 ATAND (TAN-1 operation on floating-point data
7-273
B- (BCD 4-digit subtraction) 6-34 B contact operation start (LDI) 5-2 B* (BCD 4-digit multiplication) 6-42 B+ (BCD 4-digit addition) 6-34 B/ (BCD 4-digit division) 6-42 BACOS (BCD type COS-1 operation) 7-317 BAND (16-bit dead band controls) 7-324 Basic instructions 2-10 BASIN (BCD type SIN-1 operation) 7-315 BATAN (BCD type TAN-1 operation) 7-313 Batch recovery of index register (ZPOP) 7-400 Batch reset of bit devices (BKRST) 7-64 Batch save of index register (ZPUSH) 7-400 BCD (BIN data to 4-digit) 6-73 BCD 4-digit addition and subtraction operations (B+, B-) 6-34
A contact operation start (LD) 5-2 A contact parallel connection (OR) 5-2 A contact series connection (AND) 5-2 ACOS (COS-1 operation on floating-point data (Single precision)) 7-267 ACOSD (COS-1 operation on floating-point data (Double precision)) 7-269 Addition
Addition of floating decimal point (Double precision) (ED+) 6-50,6-52 Addition of floating decimal point (Single precision) (E+) 6-46,6-48 BCD 4-digit addition (B+) 6-34 BCD 8-digit addition (DB+) 6-38
[Symbols] · [Numerics]

BCD 4-digit multiplication and division operations (B*, B/) 6-42 BCD 4-digit square roots (BSQR) 7-306 BCD 8-digit addition and subtraction operations (DB+, DB-) 6-38 BCD 8-digit multiplication and division operations (DB*, DB/) 6-44 BCD 8-digit square roots (BDSQR) 7-306 BCD conversion
BK+ (Block addition) 6-59,6-62 BKAND (Block logical products) 7-9 BKBCD (Conversion from block BIN 16-bit data to BCD 4-digit data) 6-98 BKBIN (Conversion from block BCD 4-digit data to block BIN 16-bit data) 6-100 BKCMP (BIN block data comparisons) 6-15,6-18 BKOR (Block logical sum operations) 7-17 BKRST (Batch reset of bit devices) 7-64 BKXNR (Block exclusive NOR operations) 7-33 BKXOR (Block exclusive OR operations) 7-25 Block 16-bit exchanges (BXCH) 6-126 Block 16-bit transfers (BMOV) 6-117 Block addition (BK+) 6-59,6-62 Block exclusive NOR operations (BKXNR) 7-33 Block exclusive OR operations (BKXOR) 7-25 Block logical products (BKAND) 7-9 Block logical sum operations (BKOR) 7-17 Block subtraction (BK-) 6-59,6-62 BMOV (Block 16-bit data transfers) 6-117 BREAK (Forced end of FOR to NEXT instruction loop)
Conversion from BIN data to 4-digit BCD (BCD)
6-73 Conversion from BIN data to 8-digit BCD (DBCD)
6-73 BCD type COS operations (BCOS) 7-311 BCD type COS-1 operations (BACOS) 7-317 BCD type SIN operation (BSIN) 7-309 BCD type SIN-1 operation (BASIN) 7-315 BCD type TAN operation (BTAN) 7-313 BCD type TAN-1 operations (BATAN) 7-319 BCDDA (Conversion from BCD 4-digit to decimal ASCII) 7-189 BCOS (BCD type COS operations) 7-311 BDSQR (BCD 8-digit square roots) 7-306 BIN (BCD 4-digit data to BIN data) 6-75 BIN 16-bit addition and subtraction operations (+, -) 6-22 BIN 16-bit data comparisons (=, , >, , D
7-108 BRST (Bit reset for word devices) 7-59 BSET (Bit set for word devices) 7-59 BSFL (1-bit shift to left of n-bit data) 7-49,7-51 BSFR (1-bit shift to right of n-bit data) 7-49,7-51 BSIN (BCD type SIN operation) 7-309 BSQR (BCD 4-digit square roots) 7-306 BTAN (BCD type TAN operation) 7-313 BTOW (Data linking in byte units) 7-85 Buffer memory access instructions 2-41 BXCH (Block 16-bit data exchanges) 6-126
Calculation of averages for 16-bit or 32-bit data (MEAN(P),DMEAN(P)) 7-103 Calculation of totals for 16-bit data (WSUM) 7-99 Calculation of totals for 32-bit data (DWSUM)
7-101,7-103 CALL (Subroutine program calls) 7-110 Cautions on programming 3-27 Changing check format of CHK instruction (CHKCIR, CHKEND) 7-179 Character string data 3-11 Character string data comparisons 6-11 Character string length detection (LEN) 7-204 Character string processing instructions 2-43 Character string search (INSTR) ...7-239,7-241,7-243 Character string transfers ($MOV) 6-112 CHKCIR (Changing check format of CHK instruction)
7-179 CHKEND (Changing check format of CHK instruction)
7-179 CHKST, CHK (Special format failure checks) 7-175 CJ (Pointer branch instruction) 6-129 Clock comparison (TM=,TM,TM>,TM=) 7-361 Clock data addition operation (DATE+) 7-348 Clock data subtraction operation (DATE-) 7-350 Clock instructions 2-52

CML (16-bit negation transfers) 6-114 COM (Refresh instruction) 7-134,7-137,7-141 Common logarithm operation on floating-point data (Double precision) (LOG10D(P)) 7-302 Common logarithm operation on floating-point data (Single precision) (LOG10(P)) 7-300 Comparison operation instruction table 2-10 Comparison operation instructions 6-2 Comparisons (BIN 16-bit data) 6-2 Comparisons (BIN 32-bit data) 6-4 Comparisons (Character string data) 6-11 Complement of 2 of BIN 16-bit data (NEG) 6-94 Complement of 2 of BIN 32-bit data (DNEG) 6-94 COMRD (Reading device comment data) 7-201 Conditions for execution of instructions 3-33 Connection instructions
Conversion from ASCII to hexadecimal BIN (HEX)
7-230 Conversion from BCD 4-digit to decimal ASCII (BCDDA) 7-189 Conversion from BCD 8-digit to decimal ASCII (DBCDDA) 7-189 Conversion from BIN 16-bit to character string (STR)
7-206 Conversion from BIN 16-bit to decimal ASCII (BINDA)
7-183 Conversion from BIN 16-bit to floating decimal point (Double precision) (FLTD) 6-81 Conversion from BIN 16-bit to floating decimal point (Single precision) (FLT) 6-78 Conversion from BIN 16-bit to hexadecimal ASCII (BINHA) 7-186 Conversion from BIN 32-bit to character string (DSTR)
Association instruction table 2-7 Ladder block parallel connection (ORB) 5-10 Ladder block series connection (ANB) 5-10 Linking character strings ($+) 6-65 Contact instruction 2-6 Contact instructions
7-206 Conversion from BIN 32-bit to decimal ASCII (DBINDA) 7-183 Conversion from BIN 32-bit to floating decimal point (Double precision) (DFLTD) 6-81 Conversion from BIN 32-bit to floating decimal point (Single precision) (DFLT) 6-78 Conversion from BIN 32-bit to hexadecimal ASCII (DBINHA) 7-186 Conversion from block BCD 4-digit data to block BIN 16-bit data (BKBIN) 6-100 Conversion from block BIN 16-bit data to BCD 4-digit data (BKBCD) 6-98 Conversion from character string to BIN 16-bit (VAL)
Operation start (LD, LDI) 5-2 Parallel connection (OR, ORI) 5-2 Pulse operation start (LDF, LDP) 5-5,5-7 Pulse parallel connection (ORF,ORP) 5-5,5-7 Pulse serial connection (ANF, ANP) 5-5,5-7 Series connection (AND, ANI) 5-2 Conversion
BCD 4-digit to BIN (BIN) 6-75 BCD 8-digit to BIN (DBIN) 6-75 BIN 16-bit to BIN 32-bit (DBL) 6-88 BIN 16-bit to floating decimal point (Double precision) (FLTD) 6-81 BIN 16-bit to floating decimal point (Single precision) (FLT) 6-78 BIN 16-bit to Gray code (GRY) 6-90 BIN 32-bit to BIN 16-bit (WORD) 6-89 BIN 32-bit to floating decimal point (Double precision) (DFLTD) 6-81 BIN 32-bit to floating decimal point (Single precision) (DFLT) 6-78 BIN 32-bit to Gray code (DGRY) 6-90 BIN to BCD 4-digit (BCD) 6-73 BIN to BCD 8-digit (DBCD) 6-73 Double precision to Single precision (EDCON)
7-212 Conversion from character string to BIN 32-bit (DVAL)
7-212 Conversion from character string to floating decimal point (EVAL) 7-224 Conversion from decimal ASCII to BCD 4-digit (DABCD) 7-198 Conversion from decimal ASCII to BCD 8-digit (DDABCD) 7-198 Conversion from decimal ASCII to BIN 16-bit (DABIN)
7-192 Conversion from decimal ASCII to BIN 32-bit (DDABIN) 7-192 Conversion from floating decimal point to character string (ESTR) 7-217 Conversion from floating-point angle to radian (Double precision) (RADD) 7-277 Conversion from floating-point angle to radian (Single precision) (RAD) 7-275 Conversion from floating-point radian to angle (Double precision) (DEGD) 7-281,7-283,7-285 Conversion from floating-point radian to angle (Single precision) (DEG) 7-279 Conversion from hexadecimal ASCII to BIN 16-bit (HABIN) 7-195 Conversion from hexadecimal ASCII to BIN 32-bit (DHABIN) 7-195
6-104 Floating decimal point data to BIN 16-bit (Double precision) (INTD) 6-86 Floating decimal point data to BIN 16-bit (Single precision) (INT) 6-83 Floating decimal point data to BIN 32-bit (Single precision) (DINT) 6-83 Floating decimal point data to BIN32-bit (Double precision) (DINTD) 6-86 Gray code to BIN 16-bit (GBIN) 6-92 Gray code to BIN 32-bit (DGBIN) 6-92 Single precision to Double precision (ECON)
6-102

Conversion from hexadecimal BIN to ASCII (ASC) 7-228 Conversion of Gray code to BIN 16-bit (GBIN) 6-92 Conversion of Gray code to BIN 32-bit (DGBIN) 6-92 Conversion to BIN
Data table operation instructions 2-40 DATE- (Clock data subtraction operation) 7-350 Date comparison (DT=,DT,DT>,DT=) 7-356 DATE+ (Clock data addition operation) 7-348 DATERD (Reading clock data) 7-344 DATEWR (Writing clock data) 7-346 DB- (BCD 8-digit subtraction) 6-38 DB* (BCD 8-digit multiplication) 6-44 DB+ (BCD 8-digit addition) 6-38 DB/ (BCD 8-digit division) 6-44 DBAND (32-bit dead band controls) 7-324 DBCD (Conversion from BIN to BCD 8-digit) 6-73 DBCDDA (Conversion from BCD 8-digit to decimal ASCII) 7-189 DBIN (BCD 8-digit to BIN 16-bit conversion) 6-75 DBINDA (Conversion from BIN 32-bit to decimal ASCII) 7-183 DBINHA (Conversion from BIN 32-bit to hexadecimal ASCII) 7-186 DBK- 6-63 DBK+ 6-62 DBL (BIN 16-bit to BIN 32-bit) 6-88 DCML (32-bit negation transfers) 6-114 DDABCD (Conversion from decimal ASCII to BCD 8-digit) 7-198 DDABIN (Conversion from decimal ASCII to BIN 32-bit) 7-192 DDEC (Decrementing 32-bit BIN) 6-71 Debugging and failure diagnosis instructions 2-42 DEC (Decrementing 16-bit BIN) 6-69 DECO (Decoding from 8 to 256 bits) 7-71 Decoding from 8 to 256 bits (DECO) 7-71 Decrement
BCD 4-digit to BIN 16-bit (BIN) 6-75 BCD 8-digit to BIN 32-bit (DBIN) 6-75 Floating decimal point data to BIN 16-bit (Double precision) (INTD) 6-86 Floating decimal point data to BIN 16-bit (Single precision) (INT) 6-83 Floating decimal point data to BIN 32-bit (Double precision) (DINTD) 6-86 Floating decimal point data to BIN 32-bit (Single precision) (DINT) 6-83 Conversion to floating decimal point (Double precision) (FLTD, DFLTD) 6-81 Conversion to floating decimal point (Single precision) (FLT, DFLT) 6-78 COS (COS operation on floating-point data (Single precision)) 7-254 COS operation on floating-point data (Double precision) (COSD) 7-256 COS operation on floating-point data (Single precision) (COS) 7-254 COS-1 operation on floating-point data (Double precision) (ACOSD) 7-269 COS-1 operation on floating-point data (Single precision) (ACOS) 7-267 COSD (COS operation on floating-point data (Double precision)) 7-256 Count 1-phase input or down (UDCNT1) 6-143 Count 2-phase input or down (UDCNT2) 6-146 Counters (OUT C) 5-26
BIN 16-bit (DEC) 6-69 BIN 32-bit (DDEC) 6-71 Decrementing 16-bit BIN (DEC) 6-69 Decrementing 32-bit BIN (DDEC) 6-71 DEG (Conversion from floating-point radian to angle (Single precision)) 7-279 DEGD (Conversion from floating-point radian to angle (Double precision)) 7-281,7-283,7-285 Deleting data from data tables (FDEL) 7-157 Deletion of character string (STRDEL(P)) 7-243 DELTA (Pulse conversion of direct output) 5-42 Designating data 3-3 Designation of modification values in index modification (IXDEV, IXSET) 7-148 Device range check 3-27 DFLT (Conversion from BIN 32-bit to floating decimal point (Single precision)) 6-78 DFLTD (Conversion from BIN 32-bit to floating decimal point (Double precision)) 6-81 DFRO (Reading 2-word data from intelligent function modules) 7-160 DGBIN (Conversion of Gray code to BIN 16-bit)
D- (BIN 32-bit subtraction operations 6-26 D(P).DDRD(Reading Devices to Another CPU) 10-17 D(P).DDWR(Writing Devices to Another CPU) 10-13 D* (BIN 32-bit multiplication operations) 6-32 D+ (BIN 32-bit addition operations) 6-26 D/ (BIN 32-bit division operations) 6-32 D=, D, D>, D
6-92 DGRY (BIN 32-bit to Gray code) 6-90 DHABIN (Conversion from hexadecimal ASCII to BIN 32-bit) 7-195

DI (Interrupt disable) 6-133 Digit designation 3-4 Digit designation of bit devices 3-4 DINC (Incrementing 32-bit BIN) 6-71 DINT (Floating decimal point data to BIN 32-bit (Single precision)) 6-83 DINTD (Floating decimal point data to BIN 32-bit (Double precision)) 6-86 Direct 1-byte read from file register (ZRRDB) 7-391 DIS (4-bit grouping of 16-bit data) 7-77 Display instructions 2-41 Dissociation of random data (NDIS) 7-81 Division
E- (Subtraction of floating decimal point data (Single precision)) 6-46,6-48 E* (Multiplication of floating decimal point data (Single precision)) 6-54 E+ (Addition of floating decimal point data (Single precision)) 6-46,6-48 E/ (Dividion of floating decimal point data (Single precision)) 6-54 E=, E, E>, E
7-120 ECON (Single precision to Double precision conversion) 6-102 ED- (Subtraction of floating decimal point data (Double precision)) 6-50,6-52 ED* (Multiplication of floating decimal point data (Double precision)) 6-56 ED+ (Addition of floating decimal point data (Double precision)) 6-50,6-52 ED/ (Dividion of floating decimal point data (Double precision)) 6-56 ED=,ED,ED>,ED
BCD 4-digit (B/) 6-42 BCD 8-digit division (DB/) 6-44 BIN 16-bit (/) 6-30 Division of floating decimal point(Double precision) (ED/) 6-56 Division of floating decimal point(Single precision) (E/) 6-54 DLIMIT (Upper and lower limit controls for BIN 32-bit) 7-321 DMAX (Maximum value search for 32-bit data)... 7-89 DMEAN(P) 7-103 DMIN (Minimum value search for 32-bit data) 7-92 DMOV (32-bit transfers) 6-106 DNEG (Complement of 2 of BIN 32-bit data) 6-94 DOR (Logical sums of 32-bit data) 7-11 Double precision to Single precision conversion (EDCON) 6-104 Double word data 3-6 DRCL (Left rotation of 32-bit data) 7-44 DRCR (Right rotation of 32-bit data) 7-41 DROL (Left rotation of 32-bit data) 7-44 DROR (Right rotation of 32-bit data) 7-41 DSCL(P) 7-331 DSCL2(P) 7-335 DSER (32-bit data searches) 7-66 DSFL (1-word shift to left of n-word data) 7-54,7-56 DSFR (1-word shift to right of n-word data) 7-54,7-56 DSORT (BIN 32-bit data sort) 7-95 DSTR (Conversion from BIN 32-bit to character string) 7-206 DSUM (32-bit data checks) 7-69 DTEST (Bit tests) 7-61 DTO (Writing 2-word data to intelligent function modules) 7-163 DUTY (Timing pulse generation) 7-388 DVAL (Conversion from character string to BIN 32-bit) 7-212 DWSUM (Calculation of totals for 32-bit data) 7-101,7-103 DXCH (16-bit data exchanges) 6-124 DXNR (32-bit data exclusive NOR operation) 7-27 DXOR (32-bit exclusive OR operations) 7-19 DZONE (Zone control for BIN 32-bit data) 7-327,7-330,7-334
7-125 EGF (Pulse operation results / leading edge) 5-18 EGP (Pulse operation results / trailing edge) 5-18 EI (Interrupt enable) 6-133 EMOD (Floating decimal point to BCD) 7-245 EMOV (Floating-point data transfer (Single precision))
6-108 ENCO (Encoding from 256 to 8 bits) 7-73 Encoding from 256 to 8 bits (ENCO) 7-73 END (End sequence program) 5-53 End main routine program (FEND) 5-51 End sequence program (END) 5-53 ENEG (Floating-point sign invertion(Single precision))
6-96 EREXP (From BCD format data to floating decimal point) 7-248 Error display and annunciator reset instruction (LEDR)
7-172 ESTR (Conversion from floating decimal point to character string) 7-217 EVAL (Conversion from character string to floating decimal point) 7-217 EXP (Exponent operation on floating-point data (Single precision)) 7-291 Expansion clock data addition operation (S.DATE+)
7-366

Expansion clock data subtraction operation (S.DATE-) 7-366 EXPD (Exponent operation on floating-point data (Double precision)) 7-294 Exponent operation on floating-point data (Double precision) (EXPD) 7-294 Exponent operation on floating-point data (Single precision) (EXP) 7-291 Exponentiation operation on floating-point data (Single precision) (POW(P)) 7-283 Exponentiation operation on floating-point data (Single precision) (POWD(P)) 7-285 Extracting character string data from the left (LEFT) 7-232 Extracting character string data from the right (RIGHT) 7-232
From BCD format data to floating decimal point (EREXP) 7-248
GBIN (Conversion of Gray code to BIN 16-bit) 6-92 GOEND (Jump to END) 6-132 GRY (BIN 16-bit to Gray code) 6-90
HABIN (Conversion from hexadecimal ASCII to BIN 16-bit) 7-195 HEX (Conversion from ASCII to hexadecimal BIN)
7-230 High speed retentive timer (OUTH ST) 5-22 High speed timer (OUTH T) 5-22 High-speed block transfer of file register (RBMOV)
7-448 HOUR (Time data conversion) 7-354 How to read instruction tables 2-4 How to read instructions 4-2
FCALL (Subroutine program output OFF calls) 7-116 FDEL (Deleting data from data tables) 7-157 FEND (End main routine program) 5-51 FF (Bit device output reverse) 5-40 FIFR (Reading oldest data from data tables) 7-153 FIFW (Writing data to the data tables) 7-151 File register direct 1-byte write (ZRWRB) 7-393 File setting for comments (QCDSET) 7-342 FINS (Inserting data in data tables) 7-157 Fixed cycle pulse output (PLSY) 6-162 Floating decimal point data comparisons (Double precision) (ED=, ED, ED>, ED, E
I/O refrech (RFS) 6-141 I/O refresh instruction table 2-27 Identical 32-bit data block transfers (DFMOV(P))
6-122 IMASK (Interrupt program mask) 6-133 INC (Incrementing 16-bit BIN) 6-69 Increment
BIN 16-bit (INC) 6-69 BIN 32-bit (DINC) 6-71 Incrementing 16-bit BIN (INC) 6-69 Incrementing 32-bit BIN (DINC) 6-71 Index modification 3-12 Indirect address read (ADRSET) 7-395 Indirect specification 3-23 Inserting data in data tables (FINS) 7-157 Insertion of character string (STRINS(P)) 7-241 INSTR (Character string search) ...7-239,7-241,7-243 Instructions for data link 2-59 INT (Floating decimal point data to BIN 16-bit (Single precision)) 6-83 INTD (Floating decimal point data to BIN 16-bit (Double precision)) 6-86 Interrupt disable (DI) 6-133 Interrupt enable (EI) 6-133 Interrupt program mask (IMASK) 6-133 INV (Operation results inversion) 5-15 Inversion
Bit device output reverse (FF) 5-40 Operation results inversion (INV) 5-15 IRET (Recovery from interrupt programs) 6-139 IX, IXEND (Index modification of entire ladder)
7-144 IXDEV (Designation of modification values in index modification) 7-148 IXSET (Designation of modification values in index modification) 7-148

[M]
JMP (Pointer branch) 6-129 Jump to END (GOEND) 6-132
Master control instructions 5-47 Matrix input (MTR) 6-166 MAX (Maximum value search for 16-bit data) 7-89 Maximum value search for 16-bit data (MAX) 7-89 Maximum value search for 32-bit data (DMAX)... 7-89 MC (Setting the master control) 5-47 MCR (Resetting the master control) 5-47 MEAN(P) 7-103 MEF (Pulse operation results / trailing edge) 5-17 MEP (Pulse operation results / leading edge) 5-17 MIDR (Random selection from character strings)
KEY (Numerical key input from keyboard) 7-396
Ladder block parallel connections (ORB) 5-10 Ladder block series connections (ANB) 5-10 LD ($=, $, $>, $, , D, E, ED
7-235 MIDW (Random replacement in character strings)
7-235 MIN (Minimum value search for 16-bit data) 7-92 Minimum value search for 16-bit data (MIN) 7-92 Minimum value search for 32-bit data (DMIN) 7-92 MOV (16-bit transfers) 6-106 MPP (Operation results pop) 5-12 MPS (Operation results push) 5-12 MRD (Operation results read) 5-12 MTR (Matrix input) 6-166 Multiplication
BCD 4-digit (B*) 6-42 BCD 8-digit (DB*) 6-44 BIN 16-bit (*) 6-30 BIN 32-bit (D*) 6-32 Multiplication of floating decimal point (Double precision) (ED*) 6-56 Multiplication of floating decimal point (Single precision) (E*) 6-54 Multiplication and division of floating decimal point (Double precision)(ED*, ED/) 6-56 Multiplication and division of floating decimal point (Single precision)(E*, E/) 6-54
Natural logarithm operation on floating-point data (Double precision) (LOGD) 7-298 Natural logarithm operation on floating-point data (Single precision) (LOG) 7-296,7-302 n-bit shift to left of 16-bit data (SFL) 7-46 n-bit shift to right of 16-bit data (SFR) 7-46 n-bit shift to right or left of n-bit data (SFTBR(P), SFTBL(P)) 7-51 n-bit shift to right or left of n-word data (SFTWR(P), SFTWL(P)) 7-56 NEG (complement of 2 of BIN 16-bit data) 6-94 Network refresh instruction (ZCOM) 8-2 NEXT (FOR to NEXT) 7-105 No operation (NOP, NOPLF, PAGE) 5-57 NOP 5-57 NOP (No operation) 5-57 NOPLF (No operation page change) 5-57 Number of steps 3-34 Numerical key input (KEY) 7-396 Numerical key input from keyboard (KEY) 7-396 NUNI (Linking of random data) 7-81

PLOW (Program low speed execution registration)
7-382 PLS (Leading edge output) 5-37 PLSY (Fixed cycle pulse output) 6-162 POFF (Program output OFF standby instruction)
Operation errors 3-27 Operation results inversion (INV) 5-15 Operation results pop (MPP) 5-12 Operation results push (MPS) 5-12 Operation results read (MRD) 5-12 Operation start (LD, LDI) 5-2 OR ($=, $, $>, $, , D, E, ED
7-378 Pointer branching instruction (CJ, SCJ, JMP) ... 6-129 Pop (MPP) 5-12 PR (Print ASCII code instruction) 7-166 PRC (Print comment instruction) 7-169 Print ASCII code instruction (PR) 7-166 Print comment instruction (PRC) 7-169 Program branch instruction table 2-27 Program control instructions 2-56 Program execution control instruction table 2-27 Program low speed execition registration instruction (PCHK) 7-384 Program low speed execution registration (PLOW)
7-382 Program output OFF standby instruction (POFF)
7-378 Program scan execution registration instruction (PSCAN) 7-380 Program standby instruction (PSTOP) 7-377 PSCAN (Program scan execution registration instruction) 7-380 PSTOP (Program standby instruction) 7-377 PSWAPP (Load + unload) 7-445 Pulse conversion
(DELTA) 5-42 (EGF, EGP) 5-18 (MEF, MEP) 5-17 Pulse conversion of direct output (DELTA) 5-42 Pulse density measurement (SPD) 6-160 Pulse NOT operation start, pulse NOT series connection, pulse NOT parallel connection LDPI,LDFI, ANDPI,ANDFI,ORPI,ORFI) 5-7 Pulse operation results
Application instructions 2-29 Sequence instructions 2-6 OUT
Annunciator output (OUT F) 5-28 Counters (OUT C) 5-26 High speed retentive timer (OUTH ST) 5-22 High speed timer (OUTH T) 5-22 Low speed retentive timer (OUT ST) 5-22 Low speed timer (OUT T) 5-22 Output (OUT) 5-20 Out instructions (OUT) 5-20 Output instruction table 2-8 Output instructions (OUT) 5-20 Output of sub-routine program OFF calls (FCALL) 7-116 Output OFF calls between program files (EFCALL) 7-125 Output reverse (FF) 5-40
Operation result conversions (MEF, MEP) 5-17 Pulse conversions of edge relay operation results (EGF, EGP) 5-18 Pulse operation start (LDF, LDP) 5-5,5-7 Pulse parallel connection (ORF, ORP) 5-5,5-7 Pulse series connection (ANDF, ANDP) 5-5 Pulse width modulation (PWM) 6-164 PUNLOADP (Unload program from program memory)
7-443 Push (MPS) 5-12 PWM (Pulse width modulation) 6-164
PAGE (No operation page change) 5-57 Page change (NOPLF) 5-57 Page change (PAGE n) 5-57 Parallel connection (OR, ORI) 5-2 Parallel connections (ORB) 5-10 PCHK (Program low speed execution registeration instruction) 7-384 PLF (Trailing edge output) 5-37 PLOADP (Load program from Memory Card) ... 7-440
QCDSET (File setting for comments) 7-342 QCPU dedicated instructions 2-60 QDRSET(Setting files for file register use) 7-339
RAD (Conversion from floating-point angle to radian (Single precision)) 7-275

RADD (Conversion from floating-point angle to radian (Double precision)) 7-277 RAMP (Ramp signal) 6-157 Ramp signal (RAMP) 6-157 Random number generation (RND/SRND) 7-304 Random selection from and replacement in character strings (MIDR) 7-235 Random selection replacement in character strings (MIDW) 7-235 RBMOV (High-speed block transfer of file register) 7-448 RCL (Left rotation of 16-bit data) 7-38 RCR (Right rotation of 16-bit data) 7-35 Read (MRD) 5-12 Read data from standard ROM (S.DEVLD) 7-438 Reading 1-word data from intelligent function modules (FROM) 7-160 Reading 2-word data from intelligent function modules (DFRO) 7-160 Reading clock data (DATERD) 7-344 Reading data from designated file (SP.FREAD) 7-424 Reading device comment data (COMRD) 7-201 Reading expansion clock data (S.DATERD) 7-366 Reading from other CPU shared memory (FROM) 9-12 Reading module information (UNIRD) 7-402 Reading newest data from data tables (FPOP) 7-155 Reading oldest data from data tables (FIFR) 7-153 Reading routing information (RTREAD) 8-6 Real number data 3-8 Recovery from interrupt programs (IRET) 6-139 Refresh instruction (COM) 7-134 Related programming manuals 1-2 Resetting devices (RST) 5-32,5-35 Resetting the annunciators (RST F) 5-35 Resetting the master control (MCR) 5-47 Resetting watchdog timer (WDT) 7-386 RET (Return from sub-routine programs) 7-115 Return from sub-routine programs (RET) 7-115 Revercing
ROTC (Rotary table shortest direction control)
6-154 RSET (Switching file register numbers) 7-337 RST
Resetting devices (RST) 5-32 Resetting the annunciators (RST F) 5-35 RTREAD (Reading routing information) 8-6 RTWRITE (Writing routing information) 8-8
S.DATE- (Expansion clock data subtraction operation)
7-366 S.DATE+ (Expansion clock data addition operation)
7-366 S.DATERD (Reading expansion clock data) 7-366 S.DEVLD (Read data from standard ROM) 7-438 S.TO (Write to host CPU shared memory) 9-4 Scaling (Point-by-point coordinate data) (SCL(P), DSCL(P)) 7-330 Scaling (Point-by-point coordinate data) (SCL2(P), DSCL2(P)) 7-334 SCJ (Pointer branching instruction) 6-129 SCL(P) 7-330 SCL2 7-334 SECOND (Time data conversion) 7-352 SEG (7-segment decode) 7-75 Sequence instructions 2-6 Sequence program stop (STOP) 5-55 SER (16-bit data searches) 7-66 Series connection (AND, ANI) 5-2 Series connections (ANB) 5-10 SET
Setting devices (SET) 5-30 Setting the annunciators (SET F) 5-35 Setting devices (SET) 5-30,5-35 Setting files for file register use (QDRSET) 7-339 Setting the annunciators (SET F) 5-35 Setting the master control (MC) 5-47 SFL (n-bit shift to left of 16-bit data) 7-46 SFR (n-bit shift to right of 16-bit data) 7-46 SFT (Bit device shifts) 5-44 SFTBL(P) 7-52 SFTBR(P) 7-51 SFTWL(P) 7-57 SFTWR(P) 7-56 Shift instruction 5-44,7-46
Bit device output reverse (FF) 5-40 Floating-point sign invertion (Double precision) (EDNEG) 6-97 Floating-point sign invertion (Single precision) (ENEG) 6-96 Operation results inversion (INV) 5-15 RFS (I/O refresh) 6-141 RIGHT (Extracting character string data from the right) 7-232 Right rotation of 16-bit data (ROR, RCR) 7-35 Right rotation of 32-bit data (DROR, DRCL) 7-41 RND (Random number generation and series update) 7-304 ROL (Left rotation of 16-bit data) 7-38 ROR (Right rotation of 16-bit data) 7-35 Rotary table shortest direction control (ROTC) 6-154 Rotation instructions 2-32
(Application instructions) 2-29 Shift instruction table
(Sequence instructions) 2-6 SIN (SIN operation on floating-point data (Single precision)) 7-250 SIN operation on floating-point data (Double precision) (SIND) 7-252 SIN operation on floating-point data (Single precision) (SIN) 7-250 SIN-1 operation on floating-point data (Double precision) (ASIND) 7-265 SIN-1 operation on floating-point data (Single precision) (ASIN) 7-262

SIND (SIN operation on floating-point data (Double precision)) 7-252 Single precision to Double precision conversion (ECON) 6-102 SORT (BIN 16-bit data sort) 7-95 SP.CONTSW (System switching instruction) 11-2 SP.DEVST (Writing data to standard ROM) 7-436 SP.FREAD (Reading data from designated file) 7-424 SP.FWRITE (Writing data to designated file) 7-413 SPD (Pulse density measurement) 6-160 Special format failure checks (CHKST, CHK) ... 7-175 Special function instructions 2-46 Special timer (STMR) 6-151 SQR (Square root operation for floating-point data (Single precision)) 7-287 SQRD (Square root operation for floating-point data (Double precision)) 7-289 Square root operation for floating-point data (Double precision) (SQRD) 7-289 Square root operation for floating-point data (Single precision) (SQR) 7-287 SRND (Random number generation and series updates) 7-304 STMR (Special function timer) 6-151 STOP (Sequence program stop) 5-55 STR (Conversion from BIN 16-bit to character string) 7-206 Structure creation instructions 2-38 Subrotine program calls (CALL) 7-110 Subroutine calls (XCALL) 7-129 Subroutine calls between program files (ECALL) 7-120 Subroutine program output OFF calls (FCALL) 7-116 Subset processing 3-25 Subtraction
TAN-1 operation on floating-point data (Double precision)(ATAND) 7-273 TAN-1 operation on floating-point data (Single precision)(ATAN) 7-271 TAND (TAN operation on floating-point data (Double precision)) 7-260 Teaching timer (TTMR) 6-149 Termination instruction table 2-9 TEST (Bit tests) 7-61 TIMCHK (Time check instruction) 7-390 Time check instruction (TIMCHK) 7-390 Time data conversion (HOUR) 7-354,7-356,7-361 Time data conversion (SECOND) 7-352 Timer (OUT T) 5-22 Timing pulse generation (DUTY) 7-388 TO (Writing 1-word data to intelligent function modules) 7-163 TRACE (Trace set) 7-411 TRACER (Trace reset) 7-411 TTMR (Teaching timer) 6-149 Types of Instructions 2-2
UDCNT1 (Counter 1-phase input up or down) .. 6-143 UDCNT2 (Counter 2-phase input up or down) .. 6-146 UNI (4-bit linking of 16-bit data) 7-79 UNIRD (Reading module information) 7-402 Unload program from program memory (PUNLOADP)
7-443 Up / Down counter
Count 1-phase input or dawn (UDCNT1) 6-143 Count 2-phase input or down (UDCNT2) 6-146 Upper and lower byte exchanges (SWAP) 6-128 Upper and lower limit controls for BIN 32-bit (DLIMIT)
7-321
BCD 4-digit subtraction (B-) 6-34 BCD 8-digit subtraction (DB-) 6-38 BIN 16-bit subtraction operations (-) 6-22 BIN 32-bit subtraction operations (D-) 6-26 Block subtraction (BK-) 6-59,6-62 Subtraction of floating decimal point data (Double precision) (ED-) 6-50,6-52 Subtraction of floating decimal point data (Single precision) (E-) 6-46,6-48 SUM (16-bit data checks) 7-69 SWAP (Upper and lower byte exchanges) 6-128 Switching file register numbers (RSET) 7-337 Switching instructions 2-51 System Switching (SP.CONTSW) 11-2
VAL (Conversion from character string to BIN 16-bit)
7-212
WAND (Logical products with 16-bit data) 7-3 WDT (Resetting watchdog timer) 7-386 WOR (Logical sums of 16-bit data) 7-11 WORD (Conversion from BIN 32-bit to BIN 16-bit)
6-89 Word data 3-4 Word device bit designation 3-3 Writing 1-word data to intelligent function modules (TO) 7-163 Writing 2-word data to intelligent function modules (DTO) 7-163 Writing clock data (DATEWR) 7-346 Writing data to designated file (SP.FWRITE) 7-413 Writing data to standard ROM (SP.DEVST) 7-436 Writing data to the data tables (FIFW) 7-151 Writing routing information (RTWRITE) 8-8 Writing to the CPU shared memory of host CPU... 9-2
TAN (TAN operation on floating-point data (Single precision)) 7-258 TAN operation on floating-point data (Double precision)(TAND) 7-260 TAN operation on floating-point data (Single precision)(TAN) 7-258

S.TO 9-4 TO 9-7 WSUM (Calculation of totals for 16-bit data) 7-99 WTOB (Data dissociation in byte units) 7-85 WXNR (16-bit data exclusive NOR operation) 7-27 WXNR (16-bit data non-exclusive logical sum operations) 7-30 WXOR (16-bit exclusive OR operations) 7-19,7-22
XCALL (Subroutine program call) 7-129 XCH (32-bit data exchange) 6-124
ZCOM (Network refresh instruction) 8-2 ZONE (Zone control for BIN 16-bit) 7-327,7-330,7-334 Zone control for BIN 16-bit (ZONE) 7-327,7-330,7-334 Zone control for BIN 32-bit data (DZONE) 7-327,7-330,7-334 ZPOP (Batch recovery of index register) 7-400 ZPUSH (Batch save of index register) 7-400 ZRRDB (Direct 1-byte read from file register) 7-391 ZRWRB (File register direct 1-byte write) 7-393

Please confirm the following product warranty details before using this product. 1. Gratis Warranty Term and Gratis Warranty Range If any faults or defects (hereinafter "Failure") found to be the responsibility of Mitsubishi occurs during use of the product within the gratis warranty term, the product shall be repaired at no cost via the sales representative or Mitsubishi Service Company. However, if repairs are required onsite at domestic or overseas location, expenses to send an engineer will be solely at the customer's discretion. Mitsubishi shall not be held responsible for any re-commissioning, maintenance, or testing on-site that involves replacement of the failed module. [Gratis Warranty Term] The gratis warranty term of the product shall be for one year after the date of purchase or delivery to a designated place. Note that after manufacture and shipment from Mitsubishi, the maximum distribution period shall be six (6) months, and the longest gratis warranty term after manufacturing shall be eighteen (18) months. The gratis warranty term of repair parts shall not exceed the gratis warranty term before repairs. [Gratis Warranty Range] (1) The range shall be limited to normal use within the usage state, usage methods and usage environment, etc.,
which follow the conditions and precautions, etc., given in the instruction manual, user's manual and caution labels on the product. (2) Even within the gratis warranty term, repairs shall be charged for in the following cases. 1. Failure occurring from inappropriate storage or handling, carelessness or negligence by the user. Failure caused by the user's hardware or software design. 2. Failure caused by unapproved modifications, etc., to the product by the user. 3. When the Mitsubishi product is assembled into a user's device, Failure that could have been avoided if functions or structures, judged as necessary in the legal safety measures the user's device is subject to or as necessary by industry standards, had been provided. 4. Failure that could have been avoided if consumable parts (battery, backlight, fuse, etc.) designated in the instruction manual had been correctly serviced or replaced. 5. Failure caused by external irresistible forces such as fires or abnormal voltages, and Failure caused by force majeure such as earthquakes, lightning, wind and water damage. 6. Failure caused by reasons unpredictable by scientific technology standards at time of shipment from Mitsubishi. 7. Any other failure found not to be the responsibility of Mitsubishi or that admitted not to be so by the user. 2. Onerous repair term after discontinuation of production (1) Mitsubishi shall accept onerous product repairs for seven (7) years after production of the product is
discontinued. Discontinuation of production shall be notified with Mitsubishi Technical Bulletins, etc. (2) Product supply (including repair parts) is not available after production is discontinued. 3. Overseas service Overseas, repairs shall be accepted by Mitsubishi's local overseas FA Center. Note that the repair conditions at each FA Center may differ. 4. Exclusion of loss in opportunity and secondary loss from warranty liability Regardless of the gratis warranty term, Mitsubishi shall not be liable for compensation of damages caused by any cause found not to be the responsibility of Mitsubishi, loss in opportunity, lost profits incurred to the user by Failures of Mitsubishi products, special damages and secondary damages whether foreseeable or not , compensation for accidents, and compensation for damages to products other than Mitsubishi products, replacement by the user, maintenance of on-site equipment, start-up test run and other tasks. 5. Changes in product specifications The specifications given in the catalogs, manuals or technical documents are subject to change without prior notice. 6. Product application (1) In using the Mitsubishi MELSEC programmable controller, the usage conditions shall be that the application will
not lead to a major accident even if any problem or fault should occur in the programmable controller device, and that backup and fail-safe functions are systematically provided outside of the device for any problem or fault. (2) The Mitsubishi programmable controller has been designed and manufactured for applications in general
industries, etc. Thus, applications in which the public could be affected such as in nuclear power plants and other power plants operated by respective power companies, and applications in which a special quality assurance system is required, such as for Railway companies or Public service purposes shall be excluded from the programmable controller applications. In addition, applications in which human life or property that could be greatly affected, such as in aircraft, medical applications, incineration and fuel devices, manned transportation, equipment for recreation and amusement, and safety devices, shall also be excluded from the programmable controller range of applications. However, in certain cases, some applications may be possible, providing the user consults their local Mitsubishi representative outlining the special requirements of the project, and providing that all parties concerned agree to the special circumstances, solely at the users discretion.

Microsoft, Windows, Windows NT are registered trademarks of Microsoft Corporation in the United States and other
countries.
Pentium and Celeron are trademarks of Intel Corporation in the United States and other countries.
Ethernet is a trademark of Xerox Co., Ltd. in the United States.
CompactFlash is a trademark of SanDisk Corporation.
VxWorks, Tornado, WindPower, WindSh and WindView are registered trademarks of Wind River Systems, Inc.
Other company names and product names used in this document are trademarks or registered trademarks of respective
owners.









(Always read these cautions before using the product)
Before using this product, please read this manual and the related manuals introduced in this manual, and pay full attention to safety to handle the product correctly.
Please store this manual in a safe place and make it accessible when required. Always forward a copy of the manual to the end user.

*The manual number is given on the bottom left of the back cover.
Print Date *Manual Number Revision
Dec., 2008 SH (NA)-080809ENG-A First edition
Mar., 2009 SH (NA)-080809ENG-B
Section 3.3, 3.8, 5.1.3, 6.1.7, 6.2.14, 7.3.3, 7.11.18, 7.11.19, 7.12.1.5,12.7, 7.12.11, 7.12.25,
7.12.26, 7.13.4, 7.13.5, 7.15.7, 7.15.8
Jul., 2009 SH (NA)-080809ENG-C Revision because of function support by the Universal model QCPU having a
serial number "11043" or later
Section 2.1, 2.5.6, 2.5.18, 2.5.20, 7.6.9, 7.12.7, 7.12.11, 12.1.3, 12.1.4, APPENDIX 1.2, 1.3, 1.4.2,
3, 5.1
Section 2.5.16, 7.16, 7.18.10
Section 2.5.21 2.5.22, Section 2.5.22 2.5.21, Section 9.13 7.6.10,
Section 9.14 7.6.1, Section 9.15 7.16, Section 9.15.1 7.16.1, Section 9.15.2 7.16.2,
Section 9.15.3 7.16.3, Section 9.1 7.18.9, Section 9.2 7.18.11, Section 9.3 7.18.12,
Section 9.4 7.18.13, Section 9.5 7.18.14, Section 9.6 7.18.15, Section 9.7 7.18.16,
Section 9.8 7.18.17, Section 9.9 7.18.18, Section 9.10 7.18.19, Section 9.11 9.1,
Section 9.11.1 9.1.1, Section 9.11.2 9.1.2, Section 9.12 9.2, Section 9.12.1 9.2.1,
Chapter 10 11, Chapter 11 10
Japanese Manual Version SH-080804-B
This manual confers no industrial property rights or any rights of any other kind, nor does it confer any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual.
A-2

This manual explains the common instructions required for programming of the QCPU.
modules (such as AJ71QC24 and AJ71PT32-S3) and to AD57 models, as well as PID control instructions, SFC
instructions and ST instructions.
Before using this product, please read this manual and the relevant manuals carefully and develop familiarity with the functions and performance of the Q series programmable controller to handle the product correctly.
Basic model QCPU Q00JCPU, Q00CPU, Q01CPU
High Perfomance model QCPU Q02CPU, Q02HCPU, Q06HCPU, Q12HCPU, Q25HCPU
Process CPU Q02PHCPU, Q06PHCPU, Q12PHCPU, Q25PHCPU
Redundant CPU Q12PRHCPU, Q25PRHCPU
Q04UDHCPU, Q06UDHCPU, Q10UDHCPU, Q13UDHCPU,
Q20UDHCPU, Q26UDHCPU, Q03UDECPU, Q04UDEHCPU,
Q06UDEHCPU, Q10UDEHCPU, Q13UDEHCPU,
Q20UDEHCPU
A-3
CPU module Model · Universal model QCPU

To understand the main specifications, functions, and usage of the CPU module, refer to the basic manuals.
Read other manuals as well when using a different type of CPU module and its functions.
Order each manual as needed, referring to the following list.
The numbers in the "CPU module" and the respective modules are as follows.


< Manual number (model code) > Description
CC-Link IE Controller Network Reference Manual
Specifications, procedures and settings before system operation, parameter
setting, programming, and troubleshooting of the CC-Link IE controller network module
Q Corresponding MELSECNET/H Network System Reference
Explains the specifications for a MELSECNET/H network system for PLC to PLC
Manual (PLC to PLC network)
network. It explains the procedures and settings up to operation, setting the parame-
ters, programming and troubleshooting.
Q Corresponding MELSECNET/H Network System Refer-
Explains the specifications for a MELSECNET/H network system for remote I/O
ence Manual (Remote I/O network)
network. It explains the procedures and settings up to operation, setting the
parameters, programming and troubleshooting.
Type MELSECNET, MELSECNET/B Data Link System
Describes the general concept, specifications, and part names and settings for
MELSECNET (II) and MELSECNET/B.
Describes various functions of the Ethernet module: e-mail function, PLC CPU
Q Corresponding Ethernet Interface Module
status monitoring, communication via MELSECNET/H or MELSECNET/10 net-
work system, communication using data link instructions, file transfer (using FTP)
and other functions.




Network refresh instructions Refreshes the specified network module. Section 8.1
Reading the data specified by routing parameters. Section 8.2.1
Writing routing data to the area specified by routing parameters. Section 8.2.2
In this chapter, instruction names are abbreviated as follows if not specified particularly.


8.1 Network refresh instructions
8.1.1 Refresh instruction for the designated module (S(P)/J(P)/G(P).ZCOM)
ZCOM
Basic Process High performance Redundant Universal

U \G Zn Constants Other Bit Word Bit Word
The ZCOM instruction is used to perform refresh at any timing during execution of a sequence program. The targets of refresh performed by the ZCOM instruction are indicated below.
(1) When the ZCOM instruction is executed, the CPU module temporarily suspends processing
of the sequence program and conducts refresh processing of the network modules designated by Jn/Un.

Setting · Internal Devices · Data

(2) The ZCOM instruction does not perform the following processing.
(a) Communication processing between CPU module and programming tool
(b) Monitor processing of other station
(c) Read processing of buffer memory of other intelligent function module by serial communication module.
(d) Low-speed cyclic data transmission of MELSECNET/H
(3) PLC to PLC network*1
(a) When the scan time for the sequence program of host station is longer than the scan
time for the other station, the ZCOM instruction is used to ensure the data reception from the other station.
(1) Example of data communications when the ZCOM instruction is not used

(2) Example of data communications when the ZCOM instruction is used

8.1 Network refresh instructions 8.1.1 Refresh instruction for the designated module (S(P)/J(P)/G(P).ZCOM)
For details of the transmission delay time on the PLC to PLC network*1, refer to the manual below:
(b) When the link scan time is longer than the sequence program scan time, data
communications will not be faster even if the ZCOM instruction is used.
*1 : Controller network in CC-Link IE controller network.

(4) Remote I/O network
The link refresh of the remote master station is performed by the "END processing" of the CPU module. Since link scan is performed at completion of link refresh, link scan 'synchronizes' with the program of the CPU module. When the ZCOM instruction is used at the remote master station, link refresh is performed at the point of ZCOM instruction execution, and link scan is performed at completion of link refresh. Hence, use of the ZCOM instruction at the remote master station speeds up send/receive processing to/from the remote I/O station.
(1) When the ZCOM instruction is not used

(2) When the ZCOM instruction is used

For details of the transmission delay time on the remote I/O network, refer to the manual below:
(5) The ZCOM instruction can be used as many times as desired in sequence programs.
However, note that each execution of a refresh operation will lengthen the sequence program scan time by the amount of time required for the refresh operation.
(Remote I/O network)

(6) Designating "Un" in the argument enables the target designation of the intelligent function as
well as the network modules.
In this case, the auto refresh is performed for the buffer memory of the intelligent function modules. (It replaces the FROM/TO instructions.)
(7) Only with the universal model QCPU, interruption of processing is enabled during the
execution of the ZCOM instruction. However, when refresh data are used in an interrupted program, the data can split.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
module (Except Universal model QCPU) (Error code: 2111)
module (Only Universal model QCPU) (Error code: 4102)

To conduct only communication with peripheral device, use the COM instruction (refer to Section 7.6.9, 9.1).
8.1 Network refresh instructions 8.1.1 Refresh instruction for the designated module (S(P)/J(P)/G(P).ZCOM)
(1) The following program conducts a link refresh for the network module of network No. 6 while
(2) The following program conducts a link refresh for the network module mounted to the
position whose head I/O number is a X/Y30 to X/Y4F while X0 is ON.

8.2 Reading/Writing Routing Information
8.2.1 Reading routing information (S(P)/Z(P).RTREAD)
RTREAD
Process High performance Redundant Universal Basic


: Head number of the devices that stores the read data (Device name)
(1) Reads data from transfer destination network number specified by n, using routing
information set by the routing parameters, and stores it into the area starting from .
(2) If no data for the transfer destination network number specified by n is set at the routing
parameters, stores 0 into the area starting from .
(3) The contents of the data stored in the area starting from is as indicated below.
(1 to 120) D
Relay station number +0 +1 +2 Dummy
Relay network number (1 to 239)
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
(Individual data ranges)

Program Example
(1) The following program reads the routing information for the network number specified by D0
when X0 is turned ON.
[Ladder Mode] [List Mode]
[Operation] [Content of routing parameter setting]


8.2 Reading/Writing Routing Information 8.2.1 Reading routing information (S(P)/Z(P).RTREAD)
Instruction Device Step

8.2.2 Registering routing information (S(P)/Z(P).RTWRITE)
RTWRITE
Process High performance Redundant Universal Basic


: Head number of the devices where the data to be written is stored (Device name)
(1) Registers routing data of or later in the area for the transfer destination network number specified by n in the routing parameters.
(2) The following shows the contents of data to be set at or later.
(0 to 120) S
Relay station number +0 +1 +2 Dummy
Relay network number (0 to 239)
(3) If data for the transfer destination network number specified by n is set in the routing
parameters, it is used to update the data in the area starting from .
(4) If all data in or later ( +0 to +2) is 0, the data for the transfer destination network number specified by n is deleted from the routing parameters.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
network parameters and routing information registered with the RTWRITE instruction exceeds 64. (Error code: 4100)
(Individual data ranges)

Program Example
(1) The following program writes the routing information specified by D1 to D3 to the network
module of the network number specified by D0 when X0 is turned ON.
[Ladder Mode] [List Mode]
[Operation] [Content of routing parameter setting]


8.2 Reading/Writing Routing Information 8.2.2 Registering routing information (S(P)/Z(P).RTWRITE)
Instruction Device Step


Category Processing Details Reference
Writing to the CPU shared
Writes device data of the host CPU to the CPU shared
memory of the host CPU module. Section 9.1
memory of host CPU
Reading from the CPU shared
Reads device data from the CPU shared memory of another
CPU module to the host CPU. Section 9.2
memory of another CPU
section

The S.TO or TO instruction is used to write to the CPU shared memory of the host station in the multiple CPU system.
The following table indicates the usability of the S.TO and TO instructions.
CPU Module Type Name S.TO Instruction TO Instruction
Basic model QCPU Q00CPU, Q01CPU Usable Usable
High Performance model QCPU
Q25HCPU
Q02PHCPU, Q06PHCPU,
Q12PHCPU, Q25PHCPU Usable Unusable
Redundant CPU Q12PRHCPU, Q25PRHCPU Unusable Unusable
Q02UCPU, Q03UDCPU,
Q04UDHCPU, Q06UDHCPU,
Q10UDHCPU, Q13UDHCPU,
Q20UDHCPU, Q26UDHCPU,
Q03UDECPU,
Q04UDEHCPU,
Q06UDEHCPU,
Q10UDEHCPU,
Q13UDEHCPU,
Q20UDEHCPU,
Q26UDEHCPU
(1) Operation of S.TO instruction
The S.TO instruction can write data to the CPU shared memory of the host CPU module. The following figure shows the processing performed when the S.TO instruction is executed in CPU No. 1.
CPU No. 1 CPU No. 2
Buffer memory CPU shared memory
[ SP.TO H3E0 n2 n3 n4 D ]
Designation of CPU shared memory in CPU No. 1

(2) Operation of the TO instruction
The TO instruction can write device memory data to the following memories.
The following figure shows the processing performed when the TO instruction is executed in CPU No. 1.

Designation of CPU shared memory in CPU No. 1

9.1 Writing to the CPU Shared Memory of Host CPU
Both of the S.TO and TO instructions can be used for the Basic model QCPU (Q00CPU or Q01CPU) and Universal model QCPU to write data to the CPU shared memory. However, use of the TO instruction is recommended, since use of S.TO instruction reduces the number of steps and processing time.
Refer to Section 7.8.2 when writing to the buffer memory of the intelligent function module by the TO instruction.

9.1.1 Write to Host CPU Shared Memory (S(P).TO)
S(P).TO
Process Universal Redundant Ver. Basic
Ver. High performance
Basic model QCPU:The first 5 digits of serial No is "04122" or higher.
Hight performance modele QCPU:Function version B or later.

n1 : Head I/O number of the host CPU (BIN 16 bits) n2 : CPU shared memory address of the write destination host CPU (BIN 16 bits)

: Device of the host CPU which is turned ON for one scan by the completion of writing (bits)
(1) Writes device data of words n3 to n4 to the CPU shared memory address specified by n2 of
the host CPU module or later address.
When writing is completed, the completion bit specified by turns ON.


(a) CPU shared memory address of the Basic model QCPU
CPU shared memory address
Host CPU operation information area
Write designation prohibited area
Host CPU refresh area
Write designation permitted area
(b) CPU shared memory address of the High Performance model QCPU, Process CPU and
Universal model QCPU*4
CPU shared memory address
Host CPU operation information area
Write designation prohibited area
Host CPU refresh area
Write designation permitted area
*3 : Usable as a user free area when auto refresh setting is not made.
In addition, even when auto refresh setting is made, the auto refresh send range or later is usable as a user free area. *4 : Data cannot be written to the multiple CPU high speed transmission area of the Universal
model QCPU with the S(P).TO instruction.
(2) When the number of write points is 0, no processing is performed and the completion device
9.1 Writing to the CPU Shared Memory of Host CPU 9.1.1 Write to Host CPU Shared Memory (S(P).TO)
does not turn ON, either.
(3) The S.TO instruction can be executed once to one scan for each CPU.
When execution condition is established at two or more places at the same time, the S.TO instruction executed later is not processed since handshake is established automatically.
(4) The number of data that can be written varies depending on the target CPU module.
CPU module Number of Write Points
Basic model QCPU 1 to 320
High Performance model QCPU Process CPU 1 to 256
Universal model QCPU 1 to 2048
Writing data to CPU shared memory can be performed using the intelligent function module device. For intelligent function module device, refer to the QnUCPU User's Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals).

Operation Error
In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
(1) When the specified data is outside the following range (Error code: 4101)
CPU exceeds the CPU shared memory address range
destination host CPU exceeds the CPU shared memory address range
number of write points (n4) exceeds the device range
(2) When the host CPU operation information area, system area or host CPU refresh area is
specified to the CPU shared memory address (n2) of the write destination
(High Performance model QCPU, Process CPU) (Error code: 4101) (Basic model QCPU, Universal model QCPU) (Error code: 4111)
(3) When the head I/O number (n1) of the host CPU is other than that of the host CPU
(High Performance model QCPU, Process CPU) (Error code: 2107) (Basic model QCPU, Universal model QCPU) (Error code: 4112)
(4) No CPU module is installed at the position specified by the head I/O number of the CPU
(5) When the head I/O number (n1) of the host CPU is other than 3E0H/3E1H/3E2H/3E3H
(6) When the specified instruction is improper (Error code: 4002)
(7) When the specified number of devices is wrong (Error code: 4003)
(8) When the unusable device is specified (Error code: 4004)
(1) The following program stores 10 points of data from D0 into address 800H of the CPU
shared memory of CPU No. 1 when X0 is turned ON.
[Ladder Mode] [List Mode]
The n1 is specified by the first 3 digits of the hexadecimal 4 digits which represent the head I/O number of the slot mounted to the CPU module.

Instruction Device Step

9.1.2 Writing to host station CPU shared memory (TO(P), DTO(P))
Universal Redundant Ver. Basic Process High performance
Q00CPU/Q01CPU whose first 5 digits of the serial No. is "04122" or higher

: Data to be written or head number of the devices where the data to be written is stored (BIN 16 bits)

9.1 Writing to the CPU Shared Memory of Host CPU 9.1.2 Writing to host station CPU shared memory (TO(P), DTO(P))
*2: The setting range varies depending on the auto refresh setting range of the multiple CPU high speed transmission function.
(1) Writes device data of words to n3 to the CPU shared memory address specified by n2 of the host CPU module or later address.
CPU shared memory of host CPU (n1) n2 S

When a constant is specified to , writes the same data (value specified to ) to the area of n3 words from the specified CPU shared memory.
CPU shared memory of host CPU (n1) n2
(When "5" is designated for )
n3 words Writes the same data to the area of n3 words
(a) CPU shared memory addresses of the Basic model QCPU
CPU shared memory address
Host CPU operation information area
Write designation prohibited area
192(C0 H )
Host CPU refresh area
Write designation permitted area
(b) CPU shared memory address of the Universal model QCPU*3
CPU shared memory address
Host CPU operation information area
Write designation prohibited area
Host CPU refresh area
Write designation permitted area
Multiple CPU high speed
*2 : Usable as a user free area when auto refresh setting is not made.
In addition, even when auto refresh setting is made, the auto refresh send range or later is usable as a user free area. *3 : With Q02UCPU, data can not be written to the multiple CPU high speed transmission area.
(2) No processing is performed when the number of write points is 0.
(3) The number of write data varies depending on the target CPU module.
CPU module Number of Write Points
Basic model QCPU 1 to 320
Universal model QCPU 1 to 14336

DTO
(1) Writes device data of words to (n3×2) to the CPU shared memory address specified by n2 of the host CPU module or later address.

When a constant is specified to , writes the same data (value specified to ) to the area of (n3×2) words from the specified CPU shared memory.

5 (When "5" is designated for ) S Writes the same data to the area of (n3 2) words
(2) No processing is performed when the number of write points is 0.
(3) The number of data that can be written varies depending on the target CPU module.
CPU mode Number of Write Points
Basic model QCPU 1 to 160
Universal model QCPU 1 to 7168

9.1 Writing to the CPU Shared Memory of Host CPU 9.1.2 Writing to host station CPU shared memory (TO(P), DTO(P))
Writing data to CPU shared memory can be performed using the intelligent function module device. For intelligent function module device, refer to the QnUCPU User's Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals).

Operation Error
In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
(1) When the specified data is outside the following range (Error code: 4101)
number of write points (n3) exceeds the CPU shared memory range
outside the write permitted area.
(2) When the head of CPU shared memory address (n2) of the write destination host CPU is an
(3) When the I/O number specified in (n1) is other than that of the host CPU (Exclude the case
when the multiple CPU high speed transmisson area of other CPU is used.)
(4) No CPU module is installed at the position specified by the head I/O number of the CPU
(1) The following program stores 10 points of data from D0 into address 10000 of the CPU
shared memory of CPU No. 1 when X0 is turned ON.
[Ladder Mode] [List Mode]
(2) The following program stores 20 points of data from D0 into address 10000 of the CPU
shared memory of CPU No. 4 when X0 is turned ON.
[Ladder Mode] [List Mode]
The n1 is specified by the first 3 digits of the hexadecimal 4 digits which represent the head I/O number of the slot mounted to the CPU module.

Step Instruction Device · Step Instruction Device

The FROM(P)/DFRO(P) instruction of Multiple CPU system can be read from the following memories.
The following figure shows the processing performed when the FROM(P) instruction is executed in CPU No. 1.

9.2 Reading from the CPU Shared Memory of another CPU
Designation of CPU shared memory of CPU No. 2
Designation of CPU shared memory of CPU No. 1
Refer to Section 7.8.1 for reading the buffer memory of the intelligent function module with the FROM/DFRO instruction.

9.2.1 Reading from Other CPU Shared Memory (FROM(P), DFRO(P))
FROM(P),DFRO(P)
Process Universal Redundant Ver. Basic
Ver. High performance
Basic model QCPU:The first 5 digits of serial No is "04122" or higher.
High performance model QCPU:Function version B or later.
(1) When Basic model QCPU, Universal model QCPU is used

: Head number of the devices where the read data is stored (BIN 16 bits)

*3: The setting range varies depending on the auto refresh setting range of the multiple CPU high speed communication function.
(1) Reads the data of n3 words from the CPU shared memory address designated by n2 of the
CPU module designated by n1, and stores that data into the area starting from the device designated by .


(a) CPU shared memory address of the Basic model QCPU

(b) CPU shared memory address of the Universal model QCPU*5

*4 : Usable as a user free area when auto refresh setting is not made.
When auto refresh setting is made, the auto refresh send range and later are usable as a user free area. *5 : With Q02UCPU, data can not be written to the multiple CPU high speed transmission area.

9.2 Reading from the CPU Shared Memory of another CPU 9.2.1 Reading from Other CPU Shared Memory (FROM(P), DFRO(P))
(2) When 0 is specified in n3 as the number of data to be read, no processing is performed.
(3) The number of data to be read changes depending on the target CPU module.
(1) Reads the data of (n3×2) words from the CPU shared memory address designated by n2 of
the CPU module designated by n1, and stores that data into the area starting from the device designated by .
CPU shared memory of the designated CPU (n1) n2 Device memory

(2) When 0 is specified in n3 as the number of data to be read, no processing is performed.
(3) The number of data to be read changes depending on the target CPU module.
CPU Module Number of Read Points
Basic model QCPU 1 to 256
Universal model QCPU 1 to 7168
Read of data from the CPU shared memory can also be performed using the intelligent function module devices. For intelligent function module device, refer to the QnUCPU User's Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals).
In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
(1) When the specified data is outside the following range. (Error code: 4101)
CPU shared memory range.
read points (n3) is outside the CPU shared memory range.
the specified device range.
(2) The CPU module does not exist in the position specified by the CPU module head I/O
(3) When the head of the CPU shared memory address (n2) which performs reading is an
invalid value. (4097 to 9999) (Error code: 4101)

Program Example
(1) The following program stores 10 points of data from address C0H of the CPU shared
memory of CPU No. 2 into the area starting from D0 when X0 is turned ON.
[Ladder Mode] [List Mode]
(2) The following program stores 20 points of data from address 10000 of the CPU shared
memory of CPU No. 4 into the area starting from D0 when X0 is turned ON.
[Ladder Mode] [List Mode]
The n1 is specified by the first 3 digits of the hexadecimal 4digits which represent the head I/O number of the slot mounted to the CPU module.
CPU Slot Slot 0 Slot 1 Slot 2
Head I/O number 3E00 3E10 3E20 3E30
n1 3E0 3E1 3E2 3E3
The QCPU provides automatic interlocks for the FROM and TO instructions.

9.2 Reading from the CPU Shared Memory of another CPU 9.2.1 Reading from Other CPU Shared Memory (FROM(P), DFRO(P))
Instruction Device Step · Step Instruction Device

(2) When High Performance model QCPU, Process CPU is used

: Head number of the devices where the read data is stored (BIN 16 bits)

(1) Reads the data of n3 words from the CPU shared memory address designated by n2 of the
CPU module designated by n1, and stores that data into the area starting from the device designated by .

CPU shared memory address of the High Performance model QCPU and Process CPU

*1 : Usable as a user free area when auto refresh setting is not made.
When auto refresh setting is made, the auto refresh send range and later are usable as a user free area.
(2) When 0 is specified in n3 as the number of data to be read, no processing is performed.
(3) The number of data to be read changes depending on the target CPU module.


Read of data from the CPU shared memory can also be performed using the intelligent function module devices. For intelligent function module device, refer to the QnUCPU User's Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals).
In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
(1) When the specified data is outside the following range. (Error code: 4101)
outside the CPU shared memory range.
read points (n3) is outside the CPU shared memory range.
the specified device range.
(2) The CPU module does not exist in the position specified by the CPU module head I/O
(3) When the head of read CPU shared memory address (n2) is an invalid value.

9.2 Reading from the CPU Shared Memory of another CPU 9.2.1 Reading from Other CPU Shared Memory (FROM(P), DFRO(P))
(1) The following program stores data of 10 points from address 800H of the CPU shared
memory of CPU No. 2. into the area starting from D0 when X0 is turned ON.
The n1 is specified by the first 3 digits of the hexadecimal 4digits which represent the head I/O number of the slot mounted to the CPU module.
The QCPU provides automatic interlocks for the FROM and TO instructions.


Category Processing Details Reference
Write instruction to another CPU Writes devices to another CPU. Section 10.2
Read instruction from another
Reads devices from another CPU. Section 10.3
section

The multiple CPU high-speed transmission dedicated instruction directs the Universal model QCPU to write/read device data to/from the Universal model QCPU in another CPU.
The following shows an operation when CPU No.1 writes device data to CPU No.2 with the multiple CPU high-speed transmission dedicated instruction.
CPU No.1
CPU No.2
The multiple CPU high-speed transmission dedicated instruction in either host CPU or another CPU (target CPU module of instruction) is available only for the following CPU modules.
(1) Parameter setting and system configuration to execute the multiple CPU high-speed
The multiple CPU high-speed transmission dedicated instruction can be executed in the following parameter setting and system configuration.
screen of PLC parameter.
User program · Writing · transmission dedicated instruction

(a) Writable/readable device names
The following table shows the devices that can be written to/read from the Univesal model QCPU in another CPU with the multiple CPU high-speed transmission dedicated instruction.
Category Type Device name Setting of target
Requirements for the setting
Bit device X, Y, M, L, B, F, SB
16(10H).
Word device T, ST, C, D, W, SW ––
Requirements for the setting
16(10H).
Word device SD ––
File register Word device R, ZR ––
:Settable :Settable with conditions
SB, SW, SM, and SD include system information area. Take care not to destroy the system information when writing data to the devices above with the D(P).DDWR instruction of the multiple CPU high-speed transmission dedicated instruction.
(3) Specification method of a device and writable/readable device range
There are two methods for specifying a device in another CPU: device specification and string specification. They differ in writable/readable device range to another CPU.
10.1 Overview
The device specification is a method to directly specify a device in another CPU to be written/read.
Program for device specification with the DP.DDWR instruction
Directly specifies "D200", a device in another CPU to be written.
In the device specification, data can be written/read within the device range of host CPU. For example, when data register in host CPU is 12k points and data register in another CPU is 16k points, data can be written/read by 12k points from the start of the data register in another CPU.

Writable/readable device range in device specification

The string specification is a method to specify a device in another CPU to be written/ read by character string.
Program for string specification with the DP.DDWR instruction

Specifies "D200", a device in another CPU to be written by characer string.
In the string specification, data can be written to/read from all device ranges of another CPU. For example, when data register in host CPU is 12k points and data register in another CPU is 16k points, data can be written/read by 16k points from the start of the data register in another CPU.
Writable/readable device range in string specification

instruction will be completed abnormally.
(b) String specification

(4) Managing the multiple CPU high speed transmission area
(a) The multiple CPU high speed transmission area is managed by blocks in units of 16
words. The following table shows the number of blocks that can be used in each CPU and the number of blocks used in the instruction.
C Number of CPU modules System area*1
1k points 2k points
*1: For setting of the system area, refer to the QCPU User's Manual (Multiple CPU System).
(b) The following shows configuration of the multiple CPU high speed transmission area
when the multiple CPU system is configured with three CPU modules and the system area size is 1k word.
Multiple CPU high speed
Multiple CPU high speed
Multiple CPU high speed
CPU No.1
CPU No.2
CPU No.3
Area to be sent from CPU No.1 to CPU No.s 2 and 3
CPU No.2
CPU No.1
CPU No.3
CPU No.1
Area to be sent from CPU No.2 to CPU No.s 1 and 3
CPU No.2
CPU No.1
CPU No.3
CPU No.2
Area to sent from CPU No.3 to CPU No.s 1 and 2
10.1 Overview
CPU No.3
CPU No.1
CPU No.3
CPU No.2
(5) The number of blocks used for the instruction
The number of blocks used for the instruction depends on the number of write points. The following table shows the number of blocks used for the instruction.
Number of write/read points specified by
the instruction D(P).DDWR instruction D(P).DDRD instruction
1 to 4 1
5 to 20 2
21 to 36 3
37 to 52 4
53 to 68 5
69 to 84 6
85 to 100 7

(6) The multiple CPU high-speed transmission dedicated instructions that can be executed
For the Universal model QCPU, the multiple CPU high-speed transmission dedicated instructions can be concurrently executed within the range satisfying the following formula.
The number of blocks that can be used in each CPU
Total number of blocks used for the instructions concurrently executed
When the number of blocks used for the multiple CPU high-speed transmission dedicated instructions exceeds the total number of blocks in the multiple CPU high speed transmission area, the instruction will not be executed in the scan (no processing) but executed at the next scan. Note that the instruction will be completed abnormally when the number of empty blocks in the multiple CPU high speed transmission area is less than the setting values of SD796 to SD799 (maximum number of used blocks for multiple CPU high-speed transmission dedicated instruction setting) at the execution of the instruction. The following table shows execution possibility of the multiple CPU high-speed transmission dedicated instructions when the number of empty blocks in the multiple CPU high speed transmission area is less than the number of blocks used for the multiple CPU high-speed transmission dedicated instructions or the setting values of SD796 to SD799.
Magnitude relation between the number of blocks
used for the instructions*1 and
the number of empty
Number of blocks used for the instruction*1 Number of empty blocks*2 Number of blocks used
for the instruction*1 Number of empty blocks*2
between SD setting value
and the number of empty blocks
SD setting value*3 Number of empty blocks*2
Executed Not executed (no processing)
SD setting value*3 Number of empty blocks*2
*1:The number of blocks used for the multiple CPU high-speed transmission dedicated instruction. *2:The number of empty blocks in the multiple CPU high-speed transmission area. *3:Setting values from SD796 of SD799.
concurrently · blocks Magnitude relation · Completed abnormally

(7) Interlock when using the multiple CPU high-speed transmission dedicated instruction
(a) Special relays SM796 to SM799 (maximum number of used blocks for multiple CPU
high-speed transmission dedicated instruction setting) can be used as an interlock for the multiple CPU high-speed transmission dedicated instruction. When executing the multiple CPU high-speed transmission dedicated instructions concurrently, use SM796 to SM799 as an interlock for the instructions.
When using special relays SM796 to SM799, set the maximum number of blocks for the instruction used for each CPU to special registers SD796 to SD799. (For example, when the maximum number of blocks for the multiple CPU high-speed transmission dedicated instruction to be executed to CPU No.3 is 5, set 5 to SD798.) When the multiple CPU high speed transmission area becomes equal to or less than the number of blocks set at SD796 to SD799, the corresponding special relay (SM796 to SM799) turns on.
CPU No.1 CPU No.2
Multiple CPU high speed transmission area Multiple CPU high speed transmission area
DP.DDWR H3E1
Number of request blocks:4
Number of empty blocks:
Turns on when the number of empty blocks is less than the number of blocks used for the DP.DDWR instruction. (The DP.DDWR instruction is not executed.)
Lnsufficient for writing a request from the DP.DDWR instruction.
Empty area of the request blocks in send area (1 2) has been increased. CPU No.1 CPU No.2
10.1 Overview
Multiple CPU high speed transmission area Multiple CPU high speed transmission area
DP.DDWR H3E1
Number of request blocks:4
Number of empty blocks:
Turns off as empty blocks by the number of blocks used for the DP.DDWR instruction became available (The DP.DDWR instruction can be written.)
The request from the DP.DDWR instruction can be written.

(b) Program example when SM796 to SM799 are used as an interlock
The following shows a program that executes the D.DDWR instruction to CPU No.2 at the rise of X0, and executes the D.DDWR instruction to CPU No.3 at the rise of X1. The maximum number of used blocks for multiple CPU hight speed transmission dedicated
MOV K7 SD797
Turn-on for one scan after RUN
Maximum number of used blocks (CPU No.2)
Maximum number of used blocks (CPU No.3)
MOV K100 D1
Turn-on for one scan after RUN
Mumber of write points to CPU No.2
Mumber of write points to CPU No.3
The DDWR instruction is executed to CPU No.2 at the rise of X0
X0 11 Execution command of the DDWR instruction to CPU No.2
During execution the DDWR instruction to CPU No.3
D.DDWRH3E1 D0 ZR0 ZR0 M1
Completion status (CPU No.2)
Write data to CPU No.2
Write data to CPU No.2
Completion devaice (CPU No.2)
During execution of the DDWR instruction to CPU No.3
Number of used blocks information (CPU No.2)
During execution of the DDWR instruction to CPU No.2
The DDWR instruction is executed to CPU No.3 at the rise of X1
X1 29 During execution of the DDWR instruction to CPU No.3
During execution the DDWR instruction to CPU No.3
D.DDWRH3E2 D2 ZR1000 ZR1000 M4
During execution of the DDWR instruction to CPU No.3
Number of used blocks information (CPU No.3)
Completion status (CPU No.3)
Write data to CPU No.3
Write data to CPU No.3
Completion device (CPU No.3)
During execution of the DDWR instruction to CPU No.3

(8) Program example when the multiple CPU high-speed transmission dedicated instructions
are executed to CPU modules by turns
When the multiple CPU high-speed transmission dedicated instructions are executed to Universal model QCPUs by turns, release an interlock to prevent the concurrent execution. Use the cyclic transmission area device (from U3En¥G10000) as an interlock. The following shows a program example when the multiple CPU high-speed transmission dedicated instructions are executed at CPU No.s 1 and 2 by turns.
Program example when the multiple CPU high-speed transmission dedicated instruction is executed at CPU No.1
MOV K7 SD797
Turn-on for one scan after RUN
Maximum number of used blocks (CPU No.2)
During execution of the DDWR instruction Write command
U3E0¥G10000.0 is turned on while CPU No.1 is executing the DP.DDWR instruction.
U3E0¥
SET G10000.0
During execution of the DDWR instruction
CPU No.2 is during execution of the instruction
Number of used blocks information (CPU No.2)
CPU No.1 is during execution of the instruction
Number of write points
10.1 Overview
During execution of the DDWR instruction
U3E0¥G10000.0 is turned on while CPU No.1 is executing the DP.DDWR instruction.
U3E0¥
SET G10000.0
CPU No.1 is during of the instruction
Completion status · Completion device · Completion device

Program example when the multiple CPU high-speed transmission dedicated instruction is executed at CPU No.2
MOV K1 SD796
Turn-on for one scan after RUN
Maximum number of used blocks (CPU No.1)
During execution the DDRD instruction
U3E1¥G10000.0 is turned on while CPU No.2 is executing the DP.DDRD instruction.
U3E1¥
SET G10000.0
CPU No.2 is during execution of the instruction
During execution of the DDWR instruction
CPU No.1 is during execution of the instruction
Number of used blocks information (CPU No.1)
DP.DDRD H3E0 D0 D1000 D1000 M1
RST M0
During execution of the DDRD instruction
U3E1¥G10000.0 is turned off at the completion of the DP.DDRD instruction.
U3E1¥
RST G10000.0
CPU No.2 is during of execution the instruction
(9) Program example when data exceeding 100 words are written/read with the multiple CPU
high-speed transmission dedicated instruction
The maximum number of write/read points that can be processed with the multiple CPU high-speed transmission dedicated instruction is 100 words. Data exceeding 100 words can be written/read by executing the multiple CPU high-speed transmission dedicated instruction at several times. The following shows a program example using the D(P).DDWR instruction of the multiple CPU high-speed transmission dedicated instruction. The similar program can be used when using the D(P).DDRD instruction of the multiple CPU high-speed transmission dedicated instruction.

(a) Program example when one D(P).DDWR instruction is executThe following shows a
program example that writes ZR0 to ZR999 (1000 points) in CPU No.1 to ZR0 to ZR999 in CPU No.2 with the D.DDWR instruction. In the following program example, the next D.DDWR instruction is executed after the completion device of the D.DDWR instruction (M2) turns on so that only one D.DDWR instruction may be executed.
Program example when one D(P).DDWR instruction is executed The maximum number of used blocks for multiple CPU high-speed transmission dedicated instruction setting is set to CPU No.2
MOV K7 SD797
Turn-on for one scan after
Maximum number of used blocks (CPU No.2)
Number of write points
Data writing is started at the rise of the write command (X0)
37 RST Z2
SET M0
68 M0
SET M1
During execution of the DDWR instruction
Execution request of the next DDWR instruction
10.1 Overview
The DDWR instruction is executed
D.DDWR H3E1 D0 ZR0Z2 ZR0Z2 M2
During execution of the DDWR instruction
Number of used blocks information (CPU No.2)
During execution of the DDWR instruction
When the DDWR instruction is completed abnomally, the annunciator is turned on and data writing is stopped
SET F0
RST M0
Next data writing is requested at nomal completion of the DDWR instruction
+ K100 Z2
< Z2 K1000
PLS M4
Execution request of the next DDWR instruction RST M0
END 173

(b) Program example when the D(P).DDWR instructions are executed concurrently
The following shows a program example that writes ZR0 to ZR999 (1000 points) in CPU No.1 to ZR0 to ZR999 in CPU No.2 with the D.DDWR instruction. As shown on the program example, multiple CPU device write/read instructions can be executed concurrently. When reading/writing devices with the multiple CPU high-speed transmission dedicated instructions concurrently, the more the total number of blocks in the multiple CPU high speed transmission area (send area), the more the time taken to complete reading/ writing with the multiple CPU high-speed transmission dedicated instruction can be shortened.
Program example when the D(P).DDWR instructions are executed concurrently
The maximum number of used blocks for multiple CPU high-speed transmission dedicated instruction setting is set to CPU No.2
MOV K7 SD797
Turn-on for one scan after RUN
Maximum number of used blocks (CPU No.2) MOV K100 D1
Number of write points 1 MOV K100 D3
Number of write points 2 Data writing is started at the rise of the write command (X0)
39 RST Z2
SET M0
During writing First DDWR instruction, Second DDWR instruction
SET M1
During execution of the DDWR instruction 1
SET M2
Execution request of the next DDWR instruction The first DDWR instruction is executed
During execution of the DDWR instruction 2
SM797
D.DDWR H3E1 D0 ZR0Z2 ZR0Z2 M3
During execution of the DDWR instruction 1
Number of used blocks information (CPU No.2)
source write Completion device 1
During execution of the DDWR instruction 1 The second DDWR instruction is executed
SM797
D.DDWR H3E1 D2 ZR100Z2 ZR100Z2 M5
During execution of the DDWR instruction 2
Number of used 3 blocks information (CPU No.2)
source write Completion device 2
During execution of the DDWR instruction 2
When the DDWR instruction is completed abnomally, the annunciator is turned on and data writing is stopped
SET F0
DDWR instruction error display
Error completion device 1
RST M0
Error completion device 2 Next data writing is requested at nomal completion of the second DDWR instruction
+ K200 Z2
Error completion device 2
PLS M7
Execution request of the next DDWR instruction RST M0
END 241

10.2 Writing Devices to Another CPU (D(P).DDWR)
D(P).DDWR
Ver.
Basic Process High performance Redundant
Q03UDCPU, Q04UDHCPU, Q06UDHCPU: that the first 5 digits of serial number is 10012 or higer QnUDE(H)CPU.

*2: Index modification cannot be made to setting data n.
*3: Index modification cannot be made to setting data from to . *4: Local devices cannot be used. *5: File registers cannot be used per program. *6: FD @ (indirect specification) cannot be used. *7: FX and FY cannot be used.

10.2 Writing Devices to Another CPU (D(P).DDWR)
n The result of dividing the start I/O number of another CPU by 16
CPU No.1: 3E0H, CPU No.2: 3E1H, CPU No.3: 3E2H, CPU No.4: 3E3H BIN 16 bits
Start device of the host CPU that stores control data
Device name Start device of the host CPU that stores data to be written
Start device of another CPU that stores write data Device*6
*6: By specifying a file register (R, ZR), data can be written to devices in another CPU, outside the range of host CPU. *7: By specifying the start device by " ", devices can be written to devices in another CPU, outside the range of host CPU.
Universal

Control Data
Device Item Setting data Setting range Set by
An execution result upon completion of the
instruction is stored.
points Set the number of write points in units of words. 1 to 100 User
(1) In multiple CPU system, data stored in a device specified by host CPU ( ) or later is stored
by the number of write points specified by ( +1) into a device specified by another CPU (n)
( ) or later.
Start device nimber of the strage iocation where write data has stored
Strat devaice number of the storageiocation for write data
Host CPU (CPU that repuests writing)
Another CPU n (CPU to be read)
Number of write points
(2) Whether to complete the D(P).DDWR instruction normally can be checked by the
completion device ( +0) and completion status display device ( +1).
(a) Completion device ( +0) Turns on at END processing in the scan where the instruction has been completed, and turns off at the next END processing.
(b) Completion status display device ( +1) This device turns on/off depending on the status upon completion of the instruction.
been completed, and turns off at the next END processing (At error completion, an
error code is stored at control data ( +0): Completion status)).

(3) The number of blocks used for the instruction depends on the number of write points (refer
to Section 12.1).
Number of blocks used for the instruction
Number of write points
specified by the instruction
1 to 4 1
5 to 20 2
21 to 36 3
37 to 52 4
53 to 68 5
69 to 84 6
85 to 100 7
(4) The instruction will be completed abnormally when there are no empty blocks in the multiple
CPU high speed transmission area.
Set the number of blocks used for the instruction at special registers (SD796 to SD799), and use the special relays (SM796 to SM799)as an interlock prevent error completion (refer to Section 12.1).
In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an error code is stored into SD0.
(1) Specified another CPU is wrong or the multiple CPU high-speed transmission dedicated
instruction cannot be used in the setting (Error code: 4350)
10.2 Writing Devices to Another CPU (D(P).DDWR)
transmission".
(2) The instruction cannot be executed with the CPU. (Error code: 4351)
(3) The number of devices is wrong. (Error code: 4352)
(4) The device that cannot be used for the instruction has been specified. (Error code: 4353)
(5) A device has been specified by the character string that cannot be used. (Error code: 4354)
(6) The number of write points ( +1)is other than 0 to 100. (Error code 4354)
instruction

In any of the following cases, the instruction is completed abnormally, and an error code is
stored into a device specified at completion status storage device ( +0).
(1) The request of the instruction to the target CPU is more than the acceptable value (no empty
blocks exist in the multiple CPU high speed transmission area).
(2) A device for another CPU specified at cannot be used at another CPU, or is out of device range. (Error code: 1001H)
(3) The number of write points set with the D(P).DDWR instruction is 0.
(4) The response of the instruction from another CPU cannot be returned (no empty blocks exist
in the multiple CPU high speed transmission area). (Error code: 1003H)
(1) This program stores data by 10 words starting from DO in host CPU into W10 or later in CPU
No.2 when XO turns on.
The number of write points "10" is stored into D101, setting device of the number of write points (S1+1) of control data.
Execution command of the instruction
D0 to D9 in host CPU are stored into W10 to W19 in CPU No.2.
M101
M101
Caution
(1) Digit specification of bit device is possible for n, , and . Note that when the digit
specification of bit device is made to or , the following conditions must be met.
(2) Execute this instruction after checking that the write target CPU is powered on. Not doing so
may end up no processing.
(3) If changing a range of the device specified at setting data between after execution of the
instruction and turn-on of the completion device, data to be stored by system (completion status, completion device) cannot be stored normally.
(4) SB, SW, SM, and SD include system information area. Take care not to destroy the system
information when writing data to the devices above with the D(P).DDWR instruction of the multiple CPU high-speed transmission dedicated instruction.

10.3 Reading Devices from Another CPU (D(P).DDRD)
D(P).DDRD
Ver.
Basic Process High performance Redundant
QnUDE(H)CPU.

*2: Index modification cannot be made to setting data n.
*3: Index modification cannot be made to setting data from to . *4: Local devices cannot be used. *5: File registers cannot be used per program. *6: FD @ (indirect specification) cannot be used. *7: FX and FY cannot be used.

10.3 Reading Devices from Another CPU (D(P).DDRD)
n The result of dividing the start I/O number of another CPU by 16
CPU No.1: 3E0H, CPU No.2: 3E1H, CPU No.3: 3E2H, CPU No.4: 3E3H BIN 16 bits
Start device of the host CPU that stores control data
Device name Start device of another CPU that stores data to be read
Start device of the host CPU that stores read data Device*6
*6: By specifying a file register (R, ZR), data can be read to devices in another CPU, outside the range of host CPU. *7: By specifying the start device by " ", devices can be read to devices in another CPU, outside the range of host CPU.
Universal

Control Data
Device Item Setting data Setting range Set by
An execution result upon completion of the
instruction is stored.
points Set the number of read points in units of words. 1 to 100 User
(1) In multiple CPU system, data stored in a device specified by another CPU (n) ( ) or later is
stored by the number of read points specified by ( +1) into a device specified by host CPU
( ) or later.
Strat device number of the storage location where read has been stored
Start device number of the storage location for read data
Host CPU (CPU that requests reading)
Another CPU n (CPU to be read)
Number of read points
(2) Whether to complete the D(P).DDRD instruction normally can be checked by the completion
device ( +0) and completion status display device ( +1).
(a) END processing in scan data that CPU completed the instruction turns on the device
and the next END processing turns off the device.
(b) This device turns on/off depending on the status upon completion of the instruction.
been completed, and turns off at the next END processing (At error completion, an
error code is stored at control data ( +0): Completion status)).
(3) The number of blocks used for the instruction depends on the number of read points (refer to
Section 12.1).
Number of blocks used for the instruction
Number of read points
specified by the instruction D(P).DDRD instruction
1 to 100 1
(4) The instruction will be completed abnormally when there are no empty blocks in the multiple
CPU high speed transmission area.
Set the number of blocks used for the instruction at special registers (SD796 to SD799), and use the special relays (SM796 to SM799)as an interlock prevent error completion (refer to Section 12.1).

Operation Error
In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an error code is stored into SD0.
(1) Specified another CPU is wrong or the multiple CPU high-speed transmission dedicated
instruction cannot be used in the setting (Error code: 4350).
3E0H to 3E3H.
transmission".
(2) The instruction cannot be executed with the CPU. (Error code: 4351)
(3) The number of devices is wrong. (Error code: 4352)
(4) The device that cannot be used for the instruction has been specified. (Error code: 4353)
(5) A device has been specified by the character string that cannot be used.(Error code: 4354)
(6) The number of read points ( +1)is other than 0 to 100. (Error code: 4355)
In any of the following cases, the instruction is completed abnormally, and an error code is
stored into a device specified at completion status storage device ( +0).
10.3 Reading Devices from Another CPU (D(P).DDRD)
(1) The request of the instruction to the target CPU is more than the acceptable value (no empty
blocks exist in the multiple CPU high speed transmission area). (Error code: 0010H)
(2) A device for another CPU specified at cannot be used at another CPU, or is out of device range. (Error code: 1001H)
(3) The number of read points set with the D(P).DDRD instruction is 0. (Error code: 1081H)
(4) The response of the instruction from another CPU cannot be returned (no empty blocks exist
in the multiple CPU high speed transmission area). (Error code: 1003H)

Program Example
(1) This program stores data by 10 words starting from DO in CPU No.2 into W10 or later in host
CPU when XO turns on.
Execution command of the instruction
M100
M101
M101
Caution
(1) Digit specification of bit device is possible for n, , and . Note that when the digit
specification of bit device is made to or , the following conditions must be met.
(2) Execute this instruction after checking that the read target CPU is powered on. Not doing so
may end up no processing.
(3) If changing a range of the device specified at setting data between after execution of the
instruction and turn-on of the completion device, data to be stored by system (completion status, completion device) cannot be stored normally.

Category Processing Details Reference
Switches between the control system and standby system at
the END processing of the scan executed with the
Section 11.1
SP.CONTSW instruction.
section · System switching instruction

11.1 System Switching Instruction (SP.CONTSW)
SP.CONTSW
Basic Process High performance Universal Redundant

: Value other than 0 and used to identify the processing that issued the system switching request (BIN 16 bits)
*1: The bit specification for the word device is available.
(1) Switches between the control system and standby system at the END processing of the
scan executed with the SP.CONTSW instruction.
(2) When using the SP.CONTSW instruction for system switching, the "manual switching enable
flag (SM1592)" must have been turned ON (enabled) in advance.
(3) is provided to identify the processing block of the program where system switching occurred when multiple SP.CONTSW instructions are used.
At , specify a value within the ranges -32768 to -1 and 1 to 32767 (1H to FFFFH). The value specified for the SP.CONTSW instruction is stored into the "system switching instruction argument (SD6)" of the error common information when the system switching is
normally completed. *2
When multiple SP.CONTSW instructions are executed during the same scan, the argument of the SP.CONTSW instruction executed first is stored into the system switching instruction argument (SD6).
(4) When system switching is normally completed, the value specified for the SP.CONTSW instruction is stored into the "system switching instruction argument (SD1602)" of the new control system CPU module. *3
By reading the SD1602 value from the new control system CPU module, which the SP.CONTSW instruction was used for system switching can be confirmed.
*2 : The value specified for the SP.CONTSW instruction can be confirmed in the error common information of the PLC diagnostics dialog box on GX Developer. *3 : The new control system CPU module means the CPU module that was switched from the standby system
to the control system by the SP.CONTSW instruction.

(5) The error completion device is turned ON by the control system CPU module when system
switching by the SP.CONTSW instruction was unsuccessful.
(a) When OPERATION ERROR is detected due to any of the following reasons at the
execution of the SP.CONTSW instruction, the error completion device is turned ON during the instruction execution.
mode.
(b) If systems could not be switched due to any of the reasons given in the following table,
the error completion device turns ON when system switching is executed in the END processing.
Reason No. Reasons for System Switching Failure
1 Tracking cable is disconnected or faulty.
2 Hardware fault, power-off, reset or watchdog timer error occurred in the standby
system.
3 Watchdog timer error occurred in the control system.
4 Preparations being made for tracking transfer.
5 Communication time-out.
6 Stop error occurred in the standby system. (Excluding watchdog timer error)
7 Operating status different between the control system and standby system.
8 Memory copy being executed from the control system to the standby system.
9 Write during RUN being executed.
10 Network fault detected by the standby system.
11.1 System Switching Instruction (SP.CONTSW)
When the error completion device was turned ON due to unsuccessful system switching, 16 is stored into the "reason(s) for system switching (SD1588)" and the reason No. of the above table into the "reason(s) for system switching failure (SD1589)".
(6) Use a user program or GX Developer to turn OFF the error completion bit that has turned
ON.
If normal system switching is performed by the execution of the SP.CONTSW instruction with the error completion device ON, the error completion device of the new standby system CPU module is also turned OFF. When system switching is performed due to a factor other than the SP.CONTSW instruction, however, the error completion device is not turned OFF.
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
0 Normally completed

(2) If system switching was unsuccessful, the error flag (SM0) is turned ON and an error code is
stored into SD0.
(1) The following program executes system switching on the leading edge of the system
switching command (M100).
If the system switching command (M100) remains ON, the SP.CONTSW instruction is also executed by the new control system CPU module after system switching. Therefore, M101 is added to the execution conditions as a consecutive switching prevention flag.
[Ladder Mode] [List Mode]

Instruction Device Step


The CPU module uses the self diagnostics function to display error information (on the LED) and stores the information into the special relay SM and special register SD, when an error occurs in the following situations:
If an error occurs when a communication request is issued from the peripheral device, intelligent function module or network system to the CPU module, the CPU module returns the error code (4000H to 4FFFH) to the request source.
The following describes the description of errors which occur in the CPU module and the corrective actions for the errors.
(1) How to read the error code list
The following describes how to read Section 12.1.3 Error code list (1000 to 1999) to Section 12.1.9 Error code list (7000 to 10000).
(a) Error code, common information and individual information
Alphanumeric characters in the parentheses of the titles indicate the special register numbers where each information is stored.
QCPU : Indicates all the Q series CPU modules. Q00J/Q00/Q01 : Indicates the Basic model QCPU. Qn(H) : Indicates the High Performance model QCPU. QnPH : Indicates the Process CPU. QnPRH : Indicates the Redundant CPU. QnU : Indicates the Universal model QCPU. Each CPU module : Indicates the relevant specific CPU module. model name (Example: Q02U)
(b) Compatible CPU

Errors are detected by the self diagnostic function of the CPU module or detected during communication with the CPU module.
The relation between the error detection pattern, error detection location and error code is shown in Table 12.1.
Table12.1Reference destination
Error detection pattern Error detection
location Error code Reference
Detection by the self
diagnostics function of CPU
CPU module 1000 to 10000*1*2 Section 12.1.3 to 12.1.9
CPU module 4000H to 4FFFH • QCPU User’s Manual (Hardware design,
7000H to 7FFFH Serial Communication User’s Manual, etc.
module, etc.
CC-Link System Master/Local Module User’s
CC-Link module B000H to BFFFH
Ethernet module C000H to CFFFH Ethernet Interface Module User’s Manual
CC-Link IE Controller Network Reference
E000H to EFFFH
Q Corresponding MELSECNET/H Network
F000H to FFFFH
For QnA/Q4AR MELSECNET/10 Network
12.1 Error Code List 12.1.1 Error codes
*2: When detected an error code without being noted in the reference table, please contact your local Mitsubishi representive.
When an error occurs, reading an error code, error message or the like can be executed with GX Developer.
For the details of the operation method, refer to the operating manual for GX Developer.

The following shows the error messages from the error code 1000 to 1999, the contents and causes of the errors, and the corrective actions for the errors.
Error Code Error Contents and Cause Corrective Action LED Status CPU Status
[MAIN CPU DOWN] Runaway or failure of CPU module or failure of main CPU
[MAIN CPU DOWN] Runaway or failure of CPU module or failure of main CPU
RUN:
Off ERR.:
1002 [MAIN CPU DOWN] Runaway or failure of CPU module or failure of main CPU
CPU Status:
[MAIN CPU DOWN] Runaway or failure of CPU module or failure of main CPU
[MAIN CPU DOWN] Boot operation was performed in the transfer destination without formatting. ■Collateral information

Error Code Error Contents and Cause Corrective Action LED Status CPU Status
1006 [MAIN CPU DOWN] Runaway or failure of CPU module or failure of main CPU
Reset the CPU module and RUN it again.If the same error is detected again, it is considered that the power supply module, CPU module, main base unit, extension base unit or extension cable is faulty. (Contact your local Mitsubishi representative.)
[END NOT EXECUTE] Entire program was executed without the execution of an END instruction.
Off ERR.:
CPU Status:
[SFCP. END ERROR] The SFC program cannot be normally terminated due to noise or other reason.
12.1 Error Code List 12.1.3 Error code list (1000 to 1999)
[MAIN CPU DOWN] Runaway or error of the CPU module was detected.
*4 Function version is B or later. *6 The module whose first 5 digits of serial No. is "04101" or later.

Error Code Error Contents and Cause Corrective Action LED Status CPU Status
[RAM ERROR] The sequence program storing program memory in the CPU module is faulty. ■Collateral information
[RAM ERROR] The device memory in the CPU module is faulty. ■Collateral information
[RAM ERROR]
Off ERR.:
CPU Status:
[RAM ERROR] The address RAM in the CPU module is faulty. ■Collateral information
[RAM ERROR] The CPU memory in the CPU module is faulty. ■Collateral information
[RAM ERROR] The CPU shared memory in the CPU module is faulty. ■Collateral information
*4 Function version is B or later. *8 The module whose first 5 digits of serial No. is "08032" or later. *9 The module whose first 5 digits of serial No. is "09012" or later.

Error Code Error Contents and Cause Corrective Action LED Status CPU Status
[RAM ERROR] The battery is dead. The program memory in the CPU module is faulty. ■Collateral information
1107 [RAM ERROR] The work area RAM in the CPU module is faulty. ■Collateral information
[RAM ERROR] The work area RAM in the CPU module is faulty. ■Collateral information
This suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.)
[TRK. CIR. ERROR] A fault was detected by the initial check of the tracking hardware. ■Collateral information
Off ERR.:
CPU Status:
[TRK. CIR. ERROR] A tracking hardware fault was detected. ■Collateral information
1112 [TRK. CIR. ERROR] A tracking hardware fault was detected during running.
12.1 Error Code List 12.1.3 Error code list (1000 to 1999)
*7 The module whose first 5 digits of serial No. is "07032" or later. *8 The module whose first 5 digits of serial No. is "08032" or later. *9 The module whose first 5 digits of serial No. is "09012" or later.

Error Code Error Contents and Cause Corrective Action LED Status CPU Status
[TRK. CIR. ERROR] A fault was detected by the initial check of the tracking hardware. ■Collateral information
This suggests a CPU module hardware fault. (Contact your nearest Mitsubishi representative.)
[TRK. CIR. ERROR] A tracking hardware fault was detected during running.
[RAM ERROR] The memory of the CPU module in the Multiple CPU high speed transmission area is faulty. ■Collateral information
Off ERR.:
CPU Status:
[RAM ERROR] The program memory in the CPU module is overwritten. ■Collateral information
[RAM ERROR] The data of the device memory built in the CPU module is overwritten. ■Collateral information
[RAM ERROR] The error of the data held by the battery in the CPU module is detected. (It occurs when the automatic format is not set.) ■Collateral information
*10 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU.

Error Code Error Contents and Cause Corrective Action LED Status CPU Status
[RAM ERROR] The destruction of the data stored in the standard RAM is detected. ■Collateral information
[OPE. CIRCUIT ERR.] The operation circuit for index modification in the CPU module does not operate normally. ■Collateral information
[OPE. CIRCUIT ERR.] The hardware (logic) in the CPU module does not operate normally. ■Collateral information
[OPE. CIRCUIT ERR.] The operation circuit for sequence processing in the CPU module does not operate normally. ■Collateral information
Off ERR.:
CPU Status:
This suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.)
[OPE. CIRCUIT ERR.] The operation circuit for index modification in the CPU module does not operate normally. ■Collateral information
[OPE. CIRCUIT ERR.] The hardware (logic) in the CPU module does not operate normally. ■Collateral information
12.1 Error Code List 12.1.3 Error code list (1000 to 1999)
[OPE. CIRCUIT ERR.] The operation circuit for sequence processing in the CPU module does not operate normally. ■Collateral information
*11 The Q10UD(E)HCPU, Q13UD(E)HCPU, Q20UD(E)HCPU, .Q26UD(E)HCPU only.

Error Code Error Contents and Cause Corrective Action LED Status CPU Status
[FUSE BREAK OFF] There is an output module with a blown fuse. ■Collateral information
Off/On ERR.:
[FUSE BREAK OFF] There is an output module with a blown fuse. ■Collateral information
CPU Status:
Check ERR. LED of the output modules and replace the module whose LED is lit. (The module with a blown fuse can also be identified using GX Developer. Check the special registers SD130 to SD137 to see if the bit corresponding to the module is "1".)
[I/O INT. ERROR] An interruption has occurred although there is no interrupt module. ■Collateral information
Any of the mounted modules is experiencing a hardware fault. Therefore, check the mounted modules and change the faulty module. (Contact your local Mitsubishi representative.)
[I/O INT. ERROR] An interrupt request from other than the interrupt module was detected. ■Collateral information
Off ERR.:
Take action so that an interrupt will not be issued from other than the interrupt module.
CPU Status:
[I/O INT. ERROR] An interrupt request from the module where interrupt pointer setting has not been made in the PLC parameter dialog box was detected. ■Collateral information
1320 [LAN CTRL.DOWN] The H/W self-diagnostics detected a LAN controller failure. ■Collateral information
Off ERR.:
This suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.)
CPU Status:
*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *4 Function version is B or later. *5 Function version is A. *13 This applies to the Built-in Ethernet port QCPU.

Error Code Error Contents and Cause Corrective Action LED Status CPU Status
[SP. UNIT DOWN]
When the unsupported module is mounted, remove it. When the corresponding module is supported, this suggests the intelligent function module/special function module, CPU module and/or base unit is expecting a hardware fault (Contact your local Mitsubishi representative.)
[SP. UNIT DOWN] The intelligent function module/special function module was accessed in the program, but there was no response. ■Collateral information
This suggests the intelligient function module/ special function module , CPU module and/or base unit is expecting a hardware fault (Contact your local Mitsubishi representative.)
Off/On ERR.:
When the unsupported module is mounted, remove it. When the corresponding module is supported, this suggests the intelligent function module/special function module , CPU module and/or base unit is expecting a hardware fault (Contact your local Mitsubishi representative.)
CPU Status:
The CPU module, base module and/or the intelligent function module/special function module that was accessed is experiencing a hardware fault. (Contact your local Mitsubishi representative.)
12.1 Error Code List 12.1.3 Error code list (1000 to 1999)
[CONTROL-BUS. ERR.] When performing a parameter I/O allocation the intelligent function module/special function module could not be accessed during initial communications. (On error occurring, the head I/O number of the corresponding intelligent function module/special function module is stored in the common information.) ■Collateral information
Reset the CPU module and RUN it again. If the same error is displayed again, the intelligent function module/special function module, CPU module or base unit is faulty. (Contact your local Mitsubishi representative.)
Off ERR.:
CPU Status:
*2 In the QCPU, either error stop or continue can be selected for each intelligent function module by the parameters.

Error Code Error Contents and Cause Corrective Action LED Status CPU Status
[CONTROL-BUS. ERR.] The FROM/TO instruction is not executable, due to a control bus error with the intelligent function module/special function module. (On error occurring, the program error location is stored in the individual information.) ■Collateral information
Reset the CPU module and RUN it again. If the same error is displayed again, the intelligent function module/special function module, CPU module or base unit is faulty. (Contact your local Mitsubishi representative.)
[CONTROL-BUS. ERR.] In a multiple CPU system, a CPU module incompatible with the multiple CPU system is mounted. ■Collateral information
[CONTROL-BUS. ERR.] An error is detected on the system bus.
Off ERR.:
Reset the CPU module and RUN it again. If the same error is displayed again, the intelligent function module, CPU module or base unit is faulty. (Contact your local Mitsubishi representative.)
CPU Status:
[CONTROL-BUS. ERR.] An error is detected on the system bus. ■Collateral information
Reset the CPU module and RUN it again. If the same error is displayed again, the intelligent function module, CPU module or base unit is faulty. (Contact your local Mitsubishi representative.)
*4 Function version is B or later.

Error Code Error Contents and Cause Corrective Action LED Status CPU Status
[CONTROL-BUS. ERR.] Fault of the main or extension base unit was detected. ■Collateral information
[CONTROL-BUS. ERR.] Fault of the main or extension base unit was detected. ■Collateral information
Reset the CPU module and RUN it again. If the same error is displayed again, the intelligent function module, CPU module or base unit is faulty. (Contact your local Mitsubishi representative.)
[CONTROL-BUS. ERR.] System bus fault was detected at power-on or reset. ■Collateral information
[CONTROL-BUS. ERR.] In a multiple CPU system, a bus fault was detected at power-on or reset. ■Collateral information
Off ERR.:
CPU Status:
[CONTROL-BUS. ERR.] A reset signal error was detected on the system bus. ■Collateral information
12.1 Error Code List 12.1.3 Error code list (1000 to 1999)
[CONTROL-BUS.ERR.] In the redundant system, at power-on/reset or switching system, the control system cannot access the extension base unit since it failed to acquire the access right. ■Collateral information
Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module,
the Q6 WRB, or hardware of extension cable is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)
[MULTI-C.BUS ERR.] The error of host CPU is detected in the Multiple CPU high speed bus. ■Collateral information
Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)
*4 Function version is B or later. *8 The module whose first 5 digits of serial No. is "08032" or later. *9 The module whose first 5 digits of serial No. is "09012" or later. *10 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU.

Error Code Error Contents and Cause Corrective Action LED Status CPU Status
[MULTI-C.BUS ERR.] The communication error with other CPU is detected in the Multiple CPU high speed bus. ■Collateral information
[MULTI-C.BUS ERR.] The communication time out with other CPU is detected in the Multiple CPU high speed bus. ■Collateral information
Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)
1433 [MULTI-C.BUS ERR.] The communication error with other CPU is detected in the Multiple CPU high speed bus. ■Collateral information
Off ERR.:
Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)
CPU Status:
1436 [MULTI-C.BUS ERR.] The error of the Multiple CPU high speed main base unit is detected. (The error of the Multiple CPU high speed bus is detected.) ■Collateral information
[MULTI-C.BUS ERR.] An error of the multiple CPU high speed main base unit was detected. (An error of the multiple CPU high speed bus was detected.) ■Collateral information
Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)
On ERR.:
Check the power supply.
CPU Status:
*10 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU.

Error Code Error Contents and Cause Corrective Action LED Status CPU Status
[SINGLE PS. DOWN] The power supply voltage of either of redundant power supply modules on the redundant base unit dropped. ■Collateral information
Check the power supplied to the redundant power supply modules mounted on the redundant base unit. RUN:
On ERR.:
[SINGLE PS. ERROR] On the redundant base unit, the one damaged redundant power supply module was detected. ■Collateral information
CPU Status:
Hardware fault of the redundant power supply module. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)
RUN:
On ERR.:
CPU Status:
[BATTERY ERROR*3] Voltage of the battery on memory card has dropped below stipulated level. ■Collateral information
Change the battery.
[FLASH ROM ERROR] The number of writing to flash ROM (standard ROM and system securement area) exceeds 100,000 times. (Number of writings >100,000 times) ■Collateral information
On ERR.:
12.1 Error Code List 12.1.3 Error code list (1000 to 1999)
Change the CPU module.
CPU Status:
*3 BAT. LED is displayed at BATTERY ERROR. *6 The module whose first 5 digits of serial No. is "04101" or later. *12 The module whose first 5 digits of serial No. is "10042" or later. *14 The Universal model QCPU except the Q00UJCPU, Q00UCPU, and Q01UCPU.

The following shows the error messages from the error code 2000 to 2999, the contents and causes of the errors, and the corrective actions for the errors.
Error Contents and Cause Corrective Action LED Status CPU Status
[UNIT VERIFY ERR.] In a multiple CPU system, a CPU module incompatible with the multiple CPU system is mounted. ■Collateral information
Replace the CPU module incompatible with the multiple CPU system with a CPU module compatible with the multiple CPU system.
[UNIT VERIFY ERR.] The I/O module status is different from the I/O module information at power ON.
Read the error common information at the GX Developer, and check and/or change the module that corresponds to the numerical value (module number) there. Alternatively, monitor special registers SD150 to SD157 using GX Developer, and check and replace the module where the bit of its data is "1".
Off/On ERR.:
CPU Status:
[UNIT VERIFY ERR.] I/O module information power ON is changed.
[UNIT VERIFY ERR.] During operation, a module was mounted on the slot where the empty setting of the CPU module was made. ■Collateral information
Off/On ERR.:
During operation, do not mount a module on the slot where the empty setting of the CPU module was made.
CPU Status:
Off ERR.:
CPU Status:
*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *2 Either error stop or continue can be selected for each module by the parameters. *3 The function version is B or later.
![Page 923 of the Mitsubishi Electronics QCPU user manual — [BASE LAY ERROR]](/cdn/reader/d2/d2944d2909243ae715aad622aa50e62fdb53b9908e5ac3f553f9129d99305b43/images/page-923.webp?w=400)
Error Contents and Cause Corrective Action LED Status CPU Status
[BASE LAY ERROR]
The QA1S6 B, QA6 B, or
QA6ADP+A5 B/A6 B was used as the base unit.
Do not use the QA1S6 B, QA6 B, or
QA6ADP+A5 B/A6 B as the base unit.
[BASE LAY ERROR] The GOT is bus-connected to the main base unit of the redundant system. The following errors are detected in the CPU redundant system compatible with the extension base unit.
connected to the extension stage No.1. • The base unit is connected to any one of the extension stages No.2 to No.7, although the
No.1) • Use the CPU module compatible with the extension base unit for the other system.
Q6 WRB does not exist in the extension stage
No.1 . • The other system CPU module is incompatible with the extension base unit.
QA6ADP+A5 B/A6 B for the base unit.
QA6ADP+A5 B/A6 B is connected.
local Mitsubishi representative, explaining a detailed description of the problem.)
Off ERR.:
Information of the Q6 WRB cannot be read
correctly. ■Collateral information
CPU Status:
Stage number of the Q6 WRB is recognized as
other than extension stage No.1 in the redundant system. ■Collateral information
Hardware failure of the Q6 WRB. (Contact your
12.1 Error Code List 12.1.4 Error code list (2000 to 2999)
local Mitsubishi representative, explaining a detailed description of the problem.)
[EXT.CABLE ERR.] The following errors are detected in the redundant system.
Check to see if the extension cable between the
main base unit and the Q6 WRB is connected
system and the Q6 WRB.
correctly. If not, connect it after turning OFF the main base unit where the extension cable will be connected. If the cable is connected correctly, hardware of the
Q6 WRB at END processing.
CPU module, Q6 WRB, or extension cable is
faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)
*3 The function version is B or later. *6 The module whose first 5 digits of serial No. is "09012" or later.

Error Contents and Cause Corrective Action LED Status CPU Status
[SP. UNIT LAY ERR.] The slot to which the QI60 is mounted is set to other than Inteli (intelligent function module) or Interrupt (interrupt module) in the I/O assignment of PLC parameter. ■Collateral information
Make setting again to match the PLC parameter I/O assignment with the actual loading status.
Off ERR.:
CPU Status:
Reset the parameter I/O allocation setting to conform to the actual status of the intelligent function module and the CPU module.
[SP. UNIT LAY ERR.] 13 or more A-series special function modules (except for the A1SI61) that can initiate an interrupt to the CPU module have been installed. ■Collateral information
Reduce the A series special function modules (except the A1SI61) that can make an interrupt start to the CPU module to 12 or less.
*3 The function version is B or later.

Error Contents and Cause Corrective Action LED Status CPU Status
[SP. UNIT LAY ERR.] Seven or more A1SD51S have been installed. ■Collateral information
Keep the number of A1SD51S to six or fewer.
Off ERR.:
[SP. UNIT LAY ERR.] Two or more QI60, A1SI61 interrupt modules have been mounted. ■Collateral information
Install only 1 QI60, A1SI61 module. Qn(H) QnPRH
CPU Status:
[SP. UNIT LAY ERR.] Two or more QI60 modules are mounted. ■Collateral information
Reduce the QI60 modules to one. Q00J/Q00/Q01*5
[SP. UNIT LAY ERR.] Two or more QI60 modules where interrupt pointer setting has not been made are mounted. ■Collateral information
12.1 Error Code List 12.1.4 Error code list (2000 to 2999)
*3 The function version is B or later. *5 The module whose first 5 digits of serial No. is "04101" or later.
![Page 926 of the Mitsubishi Electronics QCPU user manual — [SP.UNIT LAY ERR.]](/cdn/reader/d2/d2944d2909243ae715aad622aa50e62fdb53b9908e5ac3f553f9129d99305b43/images/page-926.webp?w=400)
Error Contents and Cause Corrective Action LED Status CPU Status
[SP.UNIT LAY ERR.]
Off ERR.:
CPU Status:
*6 The module whose first 5 digits of serial No. is "09012" or later. *7 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU. *9 The module whose first 5 digits of serial No. is "10042" or later.
![Page 927 of the Mitsubishi Electronics QCPU user manual — [SP. UNIT LAY ERR.]](/cdn/reader/d2/d2944d2909243ae715aad622aa50e62fdb53b9908e5ac3f553f9129d99305b43/images/page-927.webp?w=400)
Error Contents and Cause Corrective Action LED Status CPU Status
[SP. UNIT LAY ERR.]
Off ERR.:
CPU Status:
[SP. UNIT LAY ERR.] The start X/Y set in the PLC parameter’s I/O assignment settings is overlapped with the one for another module. ■Collateral information
Make the PLC parameter’s I/O assignment setting again so it is consistent with the actual status of the intelligent function module/special function modules.
12.1 Error Code List 12.1.4 Error code list (2000 to 2999)
Replace the network module for the A2USCPU or the network module for the Q2ASCPU with the MELSECNET/H module.

Error Contents and Cause Corrective Action LED Status CPU Status
[SP. UNIT ERROR]
(J \ ) is not a network module.
Off/On ERR.:
CPU Status:
Read the individual information of the error using a peripheral device, and check the special function module /special function module dedicated instruction (network instruction) that corresponds to the value (program error part) to make modification.
[SP. UNIT ERROR] The module other than network module is specified bythe network dedicated instruction. ■Collateral information
*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *3 The function version is B or later.

Error Contents and Cause Corrective Action LED Status CPU Status
[SP. UNIT ERROR] An instruction, which on execution specifies other stations, has been used for specifying the host CPU. (An instruction that does not allow the host CPU to be specified). ■Collateral information
[SP. UNIT ERROR] An instruction, which on execution specifies the host CPU, has been used for specifying other CPUs. (An instruction that does not allow other stations to be specified). ■Collateral information
Read the individual information of the error using the GX Developer, check the program corresponding that value (program error location), and make correction.
Off/On ERR.:
CPU Status:
Q01 *3
[SP. UNIT ERROR] A CPU module that cannot be specified in the instruction dedicated to the multiple CPU system was specified. ■Collateral information
12.1 Error Code List 12.1.4 Error code list (2000 to 2999)
[SP. UNIT ERROR] When the online module change setting is set to be “enabled” in the PLC parameter in a multiple CPU system, intelligent function module controlled by other CPU using the FROM instruction/intelligent
function module device (U \ G) is specified.
*3 The function version is B or later. *7 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU.

Error Contents and Cause Corrective Action LED Status CPU Status
[SP. UNIT LAY ERR.]
The locations of the Q5 B/Q6 B, QA1S6 B/
QA6 B, and QA6ADP+A5 B/A6 B are
improper. ■Collateral information
Check the location of the base unit.
[SP. UNIT LAY ERR.] The CPU module is installed to other than the CPU slot and slots 0 to 2. ■Collateral information
Check the loading position of the CPU module and reinstall it at the correct slot.
The QA1S6 B/QA6 B and QA6ADP+A5 B/
A6 B are used for the main base unit.
Replace the main base unit with a usable one.
[SP. UNIT LAY ERR.]
Off ERR.:
CPU Status:
*4 The function version is A. *7 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU.

Error Contents and Cause Corrective Action LED Status CPU Status
[SP. UNIT LAY ERR.]
Q00J/Q00/Q01
Off ERR.:
CPU Status:
[SP. UNIT LAY ERR.] 5 or more extension base units were added. (3 bases for Q00J) ■Collateral information
Remove 5 or more extension base units. (3 bases for Q00J) Q00J/Q00/Q01*4
12.1 Error Code List 12.1.4 Error code list (2000 to 2999)
*4 The function version is A.

Error Contents and Cause Corrective Action LED Status CPU Status
[SP. UNIT LAY. ERR.] CPU module locations in a multiple CPU system are either of the following.
[SP.UNIT LAY ERR.] The unusable module is mounted on the extension base unit in the redundant system. ■Collateral information
Off ERR.:
[SP. UNIT VER. ERR.] In a multiple CPU system, the control CPU of the intelligent function module incompatible with the multiple CPU system is set to other than CPU No.1. ■Collateral information
CPU Status:
[SP. UNIT VER. ERR.] Either of the following modules incompatible with the redundant system has been mounted in a redundant system.
Use either of the following modules compatible with the redundant system.
*3 The function version is B or later. *6 The module whose first 5 digits of serial No. is "09012" or later. *10 The Universal model QCPU except the Q00UJCPU.
![Page 933 of the Mitsubishi Electronics QCPU user manual — [RESTORE ERROR]](/cdn/reader/d2/d2944d2909243ae715aad622aa50e62fdb53b9908e5ac3f553f9129d99305b43/images/page-933.webp?w=400)
Error Contents and Cause Corrective Action LED Status CPU Status
[MISSING PARA.] There is no parameter file in the drive specified as valid parameter drive by the DIP switches. ■Collateral information
[MISSING PARA.] There is no parameter file at the program memory. ■Collateral information
Set the parameter file to the program memory. Q00J/Q00/Q01
[MISSING PARA.] Parameter file does not exist in all drives where parameters will be valid. ■Collateral information
Set a parameter file in a drive to be valid. QuU
Off ERR.:
[BOOT ERROR] The contents of the boot file are incorrect. ■Collateral information
Check the boot setting.
CPU Status:
[BOOT ERROR] File formatting is failed at a boot. ■Collateral information
12.1 Error Code List 12.1.4 Error code list (2000 to 2999)
*3 The function version is B or later.

Error Contents and Cause Corrective Action LED Status CPU Status
[RESTORE ERROR]
Reset the CPU module and run it again.
[RESTORE ERROR] The model name of the restoration destination CPU module is different from the one of the backup source CPU module. ■Collateral information
Execute a restore for the CPU module whose name is same as the backup source CPU module.
Off ERR.:
CPU Status:
[RESTORE ERROR] Writing the backup data to the restoration destination drive is not successfully completed. ■Collateral information
Execute a restore for the other CPU module too because the CPU module may be damaged.
Off/On ERR.:
CPU Status:
*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *11 The Universal model QCPU except the Q00UJCPU, Q00UCPU, and Q01UCPU.

Error Contents and Cause Corrective Action LED Status CPU Status
[ICM. OPE. ERROR]
[ICM. OPE. ERROR] SRAM card failure is detected. (It occurs when automatic format is not set.) Writing parameters was performed duruing setting file registers. ■Collateral information
Off/On ERR.:
Format SRAM card after changing battery of SRAM card. Write a parameter, which set the file register at "Not available", in CPU, and then perform the ioperation.
CPU Status:
[ICM. OPE. ERROR] A memory card that cannot be used with the CPU module has been installed. ■Collateral information
[FILE SET ERROR] Automatic write to standard ROM was performed on the CPU module that is incompatible with automatic write to standard ROM. (Memory card where automatic write to standard ROM was selected in the boot file was fitted and the parameter enable drive was set to the memory card.) ■Collateral information
Off ERR.:
12.1 Error Code List 12.1.4 Error code list (2000 to 2999)
CPU Status:
[FILE SET ERROR] The file designated at the PLC file settings in the parameters cannot be found. ■Collateral information
*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *3 The function version is B or later. *11 The Universal model QCPU except the Q00UJCPU, Q00UCPU, and Q01UCPU.

Error Contents and Cause Corrective Action LED Status CPU Status
[FILE SET ERROR] Program memory capacity was exceeded by performing boot operation or automatic write to standard ROM. ■Collateral information
[FILE SET ERROR] Program memory capacity was exceeded by performing boot operation. ■Collateral information
[FILE SET ERROR] The file specified by parameters cannot be made. ■Collateral information
Off ERR.:
CPU Status:
Secure the empty capacity of the standard ROM. QnU
Off/On ERR.:
CPU Status:
*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *3 The function version is B or later.

Error Contents and Cause Corrective Action LED Status CPU Status
[FILE OPE. ERROR]
Read the individual information of the error using the peripheral device, check to be sure that the program corresponds to the numerical values there (program location), and correct.
Off/On ERR.:
[FILE OPE. ERROR] The SFC program file is one that cannot be designated by the sequence program. ■Collateral information
Read the individual information of the error using the peripheral device, check to be sure that the program corresponds to the numerical values there (program location), and correct.
CPU Status:
[FILE OPE. ERROR] No data has been written to the file designated by the sequence program. ■Collateral information
Read the individual information of the error using the peripheral device, check to be sure that the program corresponds to the numerical values there (program location), and correct. Check to ensure that the designated file has not been write protected.
RUN:
Off ERR.:
12.1 Error Code List 12.1.4 Error code list (2000 to 2999)
[CAN'T EXE. PRG.] After the index modification of the PLC parameter is changed, only the parameter is written to the PLC. ■Collateral information
CPU Status:
When the index modification of the PLC parameter is changed, batch-write the parameter and program file into the PLC.
*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.)

Error Contents and Cause Corrective Action LED Status CPU Status
[CAN'T EXE. PRG.] There are multiple program files although "none" has been set at the PLC parameter program settings. ■Collateral information
Edit the PLC parameter program setting to "yes". Alternatively, delete unneeded programs.
[CAN'T EXE. PRG.] The program file is incorrect. Alternatively, the file contents are not those of a sequence program. ■Collateral information
Check whether the program version
is .QPG, and check the file contents to be sure they are for a sequence program.
Off ERR.:
[CAN'T EXE. PRG.] The program file is not the one for the redundant CPU. ■Collateral information
Create a program using GX Developer or PX Developer for which the PLC type has been set to the redundant CPU (Q12PRH/Q25PRH), and write it to the CPU module.
CPU Status:
[CAN'T EXE. PRG.] There are no program files at all. ■Collateral information
[CAN'T EXE. PRG.] Two or more SFC normal programs or control programs have been designated. ■Collateral information
[CAN'T EXE. PRG.] There are two or more SFC programs. ■Collateral information
Reduce the SFC programs to one. Q00J/Q00/Q01*3
*3 The function version is B or later.

Error Contents and Cause Corrective Action LED Status CPU Status
Check for illegal accesses. If any illegal access is identified, take actions such as disabling communication of the connection. If no illegal access is identified, clear the error and perform the following. (Clearing the error also clears the count of remote password mismatches.)
[REMOTE PASS.FAIL] The count of remote password mismatches reached the upper limit. ■Collateral information
ON ERR.:
ON
CPU Status:
[SNTP OPE.ERROR] Time setting failed when the programmable controller was powered ON or reset. ■Collateral information
Off/ON ERR.:
CPU Status:
12.1 Error Code List 12.1.4 Error code list (2000 to 2999)
*8 This applies to the Built-in Ethernet port QCPU.

The following shows the error messages from the error code 3000 to 3999, the contents and causes of the errors, and the corrective actions for the errors.
Error Contents and Cause Corrective Action LED Status CPU Status
[PARAMETER ERROR] In a multiple CPU system, the intelligent function module under control of another CPU is specified in the interrupt pointer setting of the PLC parameter. ■Collateral information
[PARAMETER ERROR] The PLC parameter settings for timer time limit setting, the RUN-PAUSE contact, the common pointer number, general data processing, number of empty slots, system interrupt settings, baud rate setting, and service processing setting are outside the range that can be used by the CPU module. ■Collateral information
At writing to progurammable controller
[PARAMETER ERROR] In a program memory check, the check capacity has not been set within the range applicable for the CPU module. ■Collateral information
Off ERR.:
CPU Status:
At writing to progurammable controller
[PARAMETER ERROR] The parameter settings in the error individual information (special register SD16) are illegal. ■Collateral information
At writing to progurammable controller
[PARAMETER ERROR] The ATA card is set to the memory card slot when the specified drive for the file register is set to “memory card (ROM)” and [Use the following file] or [Use the same file name as the program] (either one is allowed) is set in the PLC file setting. ■Collateral information
At writing to progurammable controller
*1 The function version is B or later. *5 The module whose first 5 digits of serial No. is "07032" or later. *10 The Universal model QCPU except the Q00UJCPU. *11 The Universal model QCPU except the Q00UJCPU, Q00UCPU, and Q01UCPU.

Error Contents and Cause Corrective Action LED Status CPU Status
[PARAMETER ERROR] The parameter settings are corrupted. ■Collateral information
At writing to progurammable controller
[PARAMETER ERROR] When "Use the following file" is selected for the file register in the PLC file setting of the PLC parameter dialog box, the specified file does not exist although the file register capacity has been set. ■Collateral information
Off ERR.:
At writing to progurammable controller
[PARAMETER ERROR] When [Use the following file] is set for the file register in the PLC file setting of the PLC parameter dialog box and the capacity of file register is not set, the file register file does not exist in the specified target memory. ■Collateral information
CPU Status:
At writing to progurammable controller
[PARAMETER ERROR] When [Use the following file.] is set for the device data storage file in [PLC file] of [PLC parameter], and [Capacity] is not set, the device data storage file does not exist in the target memory. ■Collateral information
12.1 Error Code List 12.1.5 Error code list (3000 to 3999)
At writing to progurammable controller
*10 The Universal model QCPU except the Q00UJCPU.
![Page 942 of the Mitsubishi Electronics QCPU user manual — [PARAMETER ERROR]](/cdn/reader/d2/d2944d2909243ae715aad622aa50e62fdb53b9908e5ac3f553f9129d99305b43/images/page-942.webp?w=400)
Error Contents and Cause Corrective Action LED Status CPU Status
[PARAMETER ERROR] The automatic refresh range of the multiple CPU system exceeded the file register capacity. ■Collateral information
Change the file register file for the one refresh- enabled in the whole range.
[PARAMETER ERROR] The number of devices set at the PLC parameter device settings exceeds the possible CPU module range. ■Collateral information
At writing to progurammable controller
[PARAMETER ERROR] The parameter file is incorrect. Alternatively, the contents of the file are not parameters. ■Collateral information
Check whether the parameter file version
is .QPA, and check the file contents to be sure they are parameters.
Off ERR.:
At writing to progurammable controller
CPU Status:
[PARAMETER ERROR] The contents of the parameter are broken. ■Collateral information
or QA6 B is used.
the setting of the high speed interrupt. To use
high speed interrupts, do not use the QA1S6 B/
QA6 B.
At writing to progurammable controller
*1 The function version is B or later. *4 The module whose first 5 digits of serial No. is "04012" or later. *7 The module whose first 5 digits of serial No. is "09012" or later. *9 The module whose first 5 digits of serial No. is "10042" or later. *10 The Universal model QCPU except the Q00UJCPU.

Error Contents and Cause Corrective Action LED Status CPU Status
[PARAMETER ERROR] The parameter file in the drive specified as valid parameter drive by the DIP switches is inapplicable for the CPU module. ■Collateral information
Create parameters using GX Developer, and write them to the drive specified as valid parameter drive by the DIP switches.
At writing to progurammable controller
[PARAMETER ERROR] In a multiple CPU system, the modules for AnS, A, Q2AS and QnA have been set to multiple control CPUs. ■Collateral information
Re-set the parameter I/O assignment to control them under one CPU module. (Change the parameters of all CPUs in the multiple CPU system.)
Off ERR.:
At writing to progurammable controller
[PARAMETER ERROR] The parameter-set number of CPU modules differs from the actual number in a multiple CPU system. ■Collateral information
CPU Status:
Match the number of (CPU modules in multiple CPU setting) - (CPUs set as empty in I/O assignment) with that of actually mounted CPU modules.
At writing to progurammable controller
[PARAMETER ERROR] Multiple CPU setting or control CPU setting differs from that of the reference CPU settings in a multiple CPU system. ■Collateral information
Match the multiple CPU setting or control CPU setting in the PLC parameter with that of the reference CPU (CPU No.1) settings.
12.1 Error Code List 12.1.5 Error code list (3000 to 3999)
At writing to progurammable controller
*1 The function version is B or later.
![Page 944 of the Mitsubishi Electronics QCPU user manual — [PARAMETER ERROR]](/cdn/reader/d2/d2944d2909243ae715aad622aa50e62fdb53b9908e5ac3f553f9129d99305b43/images/page-944.webp?w=400)
Error Contents and Cause Corrective Action LED Status CPU Status
[PARAMETER ERROR] Multiple CPU auto refresh setting is any of the followings in a multiple CPU system.
Check the following in the multiple CPU auto refresh setting and make correction.
At writing to progurammable controller
[PARAMETER ERROR] In a multiple CPU system, the multiple CPU auto refresh setting is any of the following.
Check the following in the multiple CPU auto refresh setting and make correction.
At writing to progurammable controller
[PARAMETER ERROR] In a multiple CPU system, the multiple CPU auto refresh setting is any of the following.
Off ERR.:
Check the following in the multiple CPU auto refresh setting and make correction.
CPU Status:
At writing to progurammable controller
*1 The function version is B or later. *8 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU. *10 The Universal model QCPU except the Q00UJCPU.

Error Contents and Cause Corrective Action LED Status CPU Status
[PARAMETER ERROR] In a multiple CPU system configuration, the CPU verified is different from the one set in the parameter setting. ■Collateral information
Read the individual information of the error using the peripheral device, check the parameter item corresponding to the numerical value (parameter No./CPU No.) and parameter of target CPU, and correct them.
At writing to progurammable controller
[PARAMETER ERROR] The CPU module incompatible with multiple CPU synchronized boot-up is set as the target for the synchronized boot-up in the [Multiple CPU synchronous startup setting]. ■Collateral information
Delete the CPU module incompatible with multiple CPU synchronized boot-up from the setting.
[PARAMETER ERROR] The parameter file is damaged. ■Collateral information
With GX Developer, write [PLC parameter/Network parameter/Remote password] to a valid drive then reload the power supply for system and/or reset the CPU module. If the same error occurs, it is thought to be hardware error. (Contact your local Mitsubishi representative.)
Off ERR.:
CPU Status:
[PARAMETER ERROR] Parameter file of intelligent function module is damaged. ■Collateral information
With GX Developer, write [Intelligent function module parameter] to a valid drive to write the parameters then reload the power supply for system and/or reset the CPU module. If the same error occurs, it is thought to be a hardware error. (Contact your local Mitsubishi representative.)
12.1 Error Code List 12.1.5 Error code list (3000 to 3999)
[PARAMETER ERROR] The system file that have stored the remote password setting information is damaged. ■Collateral information
*5 The module whose first 5 digits of serial No. is "07032" or later. *8 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU.
![Page 946 of the Mitsubishi Electronics QCPU user manual — [LINK PARA. ERROR]](/cdn/reader/d2/d2944d2909243ae715aad622aa50e62fdb53b9908e5ac3f553f9129d99305b43/images/page-946.webp?w=400)
Error Contents and Cause Corrective Action LED Status CPU Status
[LINK PARA. ERROR] In a multiple CPU system, the CC-Link IE controller network module controlled by another CPU is specified as the head I/O number of the CC-Link IE controller network module. ■Collateral information
[LINK PARA. ERROR] The network parameter of the CC-Link IE controller network operating as the normal station is overwritten to the control station. Or, the network parameter of the CC-Link IE controller network operating as the control station is overwritten to the normal station. (The network parameter is updated on the module by resetting.) ■Collateral information
Reset the CPU module.
[LINK PARA. ERROR]
Off ERR.:
CPU Status:
*7 The module whose first 5 digits of serial No. is "09012" or later. *9 The module whose first 5 digits of serial No. is "10042" or later.

Error Contents and Cause Corrective Action LED Status CPU Status
[LINK PARA. ERROR]
[LINK PARA. ERROR] In a multiple CPU system, the MELSECNET/H under control of another CPU is specified as the head I/O number in the network setting parameter of the MELSECNET/H. ■Collateral information
[LINK PARA. ERROR] The network parameter of the MELSECNET/H operating as the normal station is overwritten to the control station. Or, the network parameter of the MELSECNET/H operating as the control station is overwritten to the normal station. (The network parameter is updated on the module by resetting.) ■Collateral information
Off ERR.:
CPU Status:
Reset the CPU module.
12.1 Error Code List 12.1.5 Error code list (3000 to 3999)
*1 The function version is B or later. *5 The module whose first 5 digits of serial No. is "07032" or later. *7 The module whose first 5 digits of serial No. is "09012" or later. *9 The module whose first 5 digits of serial No. is "10042" or later. *10 The Universal model QCPU except the Q00UJCPU.

Error Contents and Cause Corrective Action LED Status CPU Status
[LINK PARA. ERROR] The link refresh range exceeded the file register capacity. ■Collateral information
Change the file register file for the one that enables entire range refresh.
Correct the type or station number of the MELSECNET/H module in the network parameter to meet the used system.
[LINK PARA. ERROR] The refresh parameter for the CC-Link IE controller network is outside the range. ■Collateral information
Off ERR.:
CPU Status:
[LINK PARA. ERROR] A multi-remote I/O network was configured using a module that does not support the MELSECNET/H multi-remote I/O network. ■Collateral information
Use a module that supports the MELSECNET/H multi-remote I/O network. QnPH
*1 The function version is B or later. *7 The module whose first 5 digits of serial No. is "09012" or later. *9 The module whose first 5 digits of serial No. is "10042" or later. *10 The Universal model QCPU except the Q00UJCPU.

Error Contents and Cause Corrective Action LED Status CPU Status
[LINK PARA. ERROR]
[LINK PARA. ERROR] Since the number of points of the B/W device set in [Device] of the PLC parameter is lower than the number of B/W refresh device points shown in the following table when parameters of the MELSECNET/H are not set, the refresh between the CPU module and the MELSECNET/H cannot
be performed..
No. of refresh device
No. of refresh device
points of B device
points of W device
Off ERR.:
1 8192 points (8192 points×1 module)
8192 points (8192 points×1 module)
Set the refresh parameter of the MELSECNET/H in accordance with the number of points of B/W devices set in [Device] of the PLC parameter.
2 8192 points (4096 points×2 modules)
8192 points (4096 points×2 modules)
No. of mountable
CPU Status:
3 6144 points (2048 points×3 modules)
6144 points (2048 points×3 modules)
4 8192 points (2048 points×4 modules)
8192 points (2048 points×4 modules)
[LINK PARA. ERROR] The setting of the network refresh range crosses over the boundary between the internal user device and the extended data register (D) or extended link register (W). ■Collateral information
Set the network refresh range so that it does not cross over the boundary between the internal user device and the extended data register (D) or extended link register (W).
12.1 Error Code List 12.1.5 Error code list (3000 to 3999)
*7 The module whose first 5 digits of serial No. is "09012" or later.

Error Contents and Cause Corrective Action LED Status CPU Status
[LINK PARA. ERROR] A CC-Link IE controller network parameter error was detected. ■Collateral information
[LINK PARA. ERROR] The station No. specified in pairing setting are not correct.
Refer to the troubleshooting of the network module, and if the error is due to incorrect pairing setting, reexamine the pairing setting of the network parameter.
Off ERR.:
[LINK PARA. ERROR] The CC-Link IE controller network module whose first 5 digits of serial No. is "09041" or earlier is mounted. ■Collateral information
CPU Status:
Mount the CC-Link IE controller network module whose first 5 digits of serial No. is "09042" or later. QnU
[LINK PARA. ERROR] Group cyclic function in CC-Link IE controller network that does not correspond to group cyclic function is set. ■Collateral information
Set group cyclic function in function version D or later of CC-Link IE controller network. QnU*9
[LINK PARA. ERROR] Paring setting in CC-Link IE controller network modules installed in CPUs except for redundant CPUs was performed. ■Collateral information
Examine the paring setting for the network parameter in the control staion.
*7 The module whose first 5 digits of serial No. is "09012" or later. *9 The module whose first 5 digits of serial No. is "10042" or later.

Error Contents and Cause Corrective Action LED Status CPU Status
[LINK PARA. ERROR]
Examine the network range assignments for the network parameter in the control station.
[LINK PARA. ERROR] In a multiple CPU system, Ethernet interface module under control of another station is specified to the start I/O number of the Ethernet network parameter. ■Collateral information
RUN:
Off ERR.:
CPU Status:
12.1 Error Code List 12.1.5 Error code list (3000 to 3999)
*1 The function version is B or later. *7 The module whose first 5 digits of serial No. is "09012" or later. *10 The Universal model QCPU except the Q00UJCPU.
![Page 952 of the Mitsubishi Electronics QCPU user manual — [LINK PARA. ERROR]](/cdn/reader/d2/d2944d2909243ae715aad622aa50e62fdb53b9908e5ac3f553f9129d99305b43/images/page-952.webp?w=400)
Error Contents and Cause Corrective Action LED Status CPU Status
[LINK PARA. ERROR] In a multiple CPU system, the CC-Link module under control of another station is specified as the head I/O number of the CC-Link network parameter. ■Collateral information
Off ERR.:
CPU Status:
*1 The function version is B or later. *7 The module whose first 5 digits of serial No. is "09012" or later. *10 The Universal model QCPU except the Q00UJCPU.

Error Contents and Cause Corrective Action LED Status CPU Status
[LINK PARA. ERROR] The CC-Link link refresh range exceeded the file register capacity. ■Collateral information
Change the file register file for the one refresh- enabled in the whole range.
[LINK PARA. ERROR] The network refresh parameter for CC-Link is out of range. ■Collateral information
Check the parameter setting. QCPU
[LINK PARA. ERROR] The setting of the network refresh range crosses over the boundary between the internal user device and the extended data register (D) or extended link register (W). ■Collateral information
Set the network refresh range so that it does not cross over the boundary between the internal user device and the extended data register (D) or extended link register (W).
Off ERR.:
CPU Status:
Check the parameter setting. QCPU
[SFC PARA. ERROR] The parameter setting is illegal.
12.1 Error Code List 12.1.5 Error code list (3000 to 3999)
Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.
[SFC PARA. ERROR] The block parameter setting is illegal. ■Collateral information
*1 The function version is B or later.

Error Contents and Cause Corrective Action LED Status CPU Status
[SFC PARA. ERROR] The number of step relays specified in the device setting of the PLC parameter dialog box is less than that used in the program. ■Collateral information
Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.
[SFC PARA. ERROR] The execution type of the SFC program specified in the program setting of the PLC parameter dialog box is other than scan execution. ■Collateral information
[SP. PARA ERROR] The start I/O number in the intelligent function module parameter set on GX Configurator differs from the actual I/O number. ■Collateral information
Check the parameter setting. QCPU
At writing to progurammable controller
[SP. PARA ERROR]
Off ERR.:
CPU Status:
At writing to progurammable controller
[SP. PARA ERROR] The intelligent function module's refresh parameter setting is outside the available range. ■Collateral information
Check the parameter setting. QCPU
At writing to progurammable controller
[SP. PARA ERROR] The setting of the refresh parameter range crosses over the boundary between the internal user device and the extended data register (D) or extended link register (W). ■Collateral information
Set the refresh parameter range so that it does not cross over the boundary between the internal user device and the extended data register (D) or extended link register (W).
At writing to progurammable controller
*1 The function version is B or later. *2 Parameter No. is the value gained by dividing the head I/O number of parameter in the intelligent function module set by GX Configurator by 10H. *3 The diagnostic timing of CPU modules except for Universal QCPU can be performed only when switching the CPU modules to run.

Error Contents and Cause Corrective Action LED Status CPU Status
[SP. PARA ERROR] The intelligent function module's refresh parameter are abnormal. ■Collateral information
Check the parameter setting.
At writing to progurammable controller
[SP. PARA ERROR] In a multiple CPU system, the automatic refresh setting or other parameter setting was made to the intelligent function module under control of another station. ■Collateral information
At writing to progurammable controller
[REMOTE PASS. ERR.] The head I/O number of the target module of the remote password is set to other than 0H to 0FF0H. ■Collateral information
Off ERR.:
Change the head I/O number of the target module to be within the 0H to 0FF0H range.
CPU Status:
[REMOTE PASS. ERR.] The head I/O number of the target module of the remote password is set to other than 0H to 07E0H. ■Collateral information
Change the head I/O number of the target module to be within the 0H to 07E0H range. Q02U
[REMOTE PASS. ERR.] The head I/O number of the target module of the remote password is outside the following range.
12.1 Error Code List 12.1.5 Error code list (3000 to 3999)
Change the head I/O number of the target module of the remote password for the number within the following range.
*1 The function version is B or later. *2 Parameter No. is the value gained by dividing the head I/O number of parameter in the intelligent function module set by GX Configurator by 10H. *7 The module whose first 5 digits of serial No. is "09012" or later.

Error Contents and Cause Corrective Action LED Status CPU Status
[REMOTE PASS. ERR.] Position specified as the head I/O number of the remote password file is incorrect due to one of the following reasons:
Mount serial communication module, modem interface module or Ethernet module of function version B or later in the position specified in the head I/O No. of the remote password file.
[REMOTE PASS. ERR.] Any of the following modules is not mounted on the slot specified for the head I/O number of the remote password.
Off ERR.:
Mount any of the following modules in the position specified for the head I/O number of the remote password.
CPU Status:
[REMOTE PASS. ERR.] Serial communication module, modem interface module or Ethernet module of function version B or later controlled by another CPU was specified in a multiple CPU system. ■Collateral information
*1 The function version is B or later. *10 The Universal model QCPU except the Q00UJCPU.

The following shows the error messages from the error code 4000 to 4999, the contents and causes of the errors, and the corrective actions for the errors.
Error Contents and Cause Corrective Action LED Status CPU Status
[INSTRCT. CODE ERR]
[INSTRCT. CODE ERR] The program contains a dedicated instruction for SFC although it is not an SFC program. ■Collateral information
Off ERR.:
Read the common information of the error using a peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.
CPU Status:
12.1 Error Code List 12.1.6 Error code list (4000 to 4999)
[INSTRCT. CODE ERR] The number of devices for the dedicated instruction specified by the program is incorrect. ■Collateral information
[INSTRCT. CODE ERR] The device which cannot be used by the dedicated instruction specified by the program is specified. ■Collateral information
*2 The function version is B or later.

Error Contents and Cause Corrective Action LED Status CPU Status
[MISSING END INS.] There is no END (FEND) instruction in the program. ■Collateral information
[CAN'T SET(P)] The total number of internal file pointers used by the program exceeds the number of internal file pointers set in the parameters. ■Collateral information
Off ERR.:
Read the common information of the error using a peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.
CPU Status:
[CAN'T SET(I)] The allocation pointer Nos. assigned by files overlap. ■Collateral information
[OPERATION ERROR] The instruction cannot process the contained data. ■Collateral information
[OPERATION ERROR] Access error of ATA card occurs by SP.FREAD/SP.FWRITE instructions. ■Collateral information
Off/On ERR.:
CPU Status:
[OPERATION ERROR] The file being accessed by other functions with SP.FWRITE instruction was accessed. ■Collateral information
*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *11 The Universal model QCPU except the Q00UJCPU, Q00UCPU, and Q01UCPU.
![Page 959 of the Mitsubishi Electronics QCPU user manual — [OPERATION ERROR]](/cdn/reader/d2/d2944d2909243ae715aad622aa50e62fdb53b9908e5ac3f553f9129d99305b43/images/page-959.webp?w=400)
Error Contents and Cause Corrective Action LED Status CPU Status
[OPERATION ERROR]
Off/On ERR.:
CPU Status:
12.1 Error Code List 12.1.6 Error code list (4000 to 4999)
*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *10 The Universal model QCPU except the Q00UJCPU.

Error Contents and Cause Corrective Action LED Status CPU Status
[OPERATION ERROR] In a multiple CPU system, the link direct device
(J \ ) was specified for the network module
under control of another station. ■Collateral information
Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.
Off/On ERR.:
CPU Status:
[OPERATION ERROR] The configuration of the PID dedicated instruction is incorrect. ■Collateral information
Q01 *2
[OPERATION ERROR] PLOADP/PUNLOADP/PSWAPP instructins were executed while setting program memory check. ■Collateral information
[OPERATION ERROR] 33 or more multiple CPU dedicated instructions were executed from one CPU module. ■Collateral information
Using the multiple CPU dedicated instruction completion bit, provide interlocks to prevent one CPU module from executing 33 or more multiple CPU dedicated instructions.
*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *2 The function version is B or later. *5 The module whose first 5 digits of serial No. is "07032" or later. *10 The Universal model QCPU except the Q00UJCPU.

Error Contents and Cause Corrective Action LED Status CPU Status
[OPERATION ERROR] With high speed interrupt setting PR, PRC, UDCNT1, UDCNT2, PLSY or PWM instruction is executed. ■Collateral information
Delete the high-speed interrupt setting. When using high-speed interrupt, delete the PR, PRC, UDCNT1, UDCNT2, PLSY and PWM instructions.
[OPERATION ERROR] An attempt was made to perform write/read to/from the CPU shared memory write/read disable area of the host station CPU module with the instruction. ■Collateral information
Off/On ERR.:
CPU Status:
Read the common information of the error using GX Developer, and check and correct the error step corresponding to that value (program error location).
[OPERATION ERROR] The CPU module that cannot be specified with the multiple CPU dedicated instruction was specified. ■Collateral information
Off/On ERR.:
CPU Status:
[OPERATION ERROR] Since the manual system switching enable flag (special register SM1592) is OFF, manual system switching cannot be executed by the control system switching instruction (SP. CONTSW). ■Collateral information
Off/On ERR.:
12.1 Error Code List 12.1.6 Error code list (4000 to 4999)
To execute control system switching by the SP. CONTSW instruction, turn ON the manual system switching enable flag (special register SM1592).
CPU Status:
Off/On ERR.:
CPU Status:
*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *2 The function version is B or later. *3 The module whose first 5 digits of serial No. is "04012" or later. *10 The Universal model QCPU except the Q00UJCPU.

Error Contents and Cause Corrective Action LED Status CPU Status
[OPERATION ERROR]
Off/On ERR.:
CPU Status:
[OPERATION ERROR] Instructions to read SFC step comment (S(P).SFCSCOMR) and SFC transition condition comment (S(P).SFCTCOMR) are executed for the comment file in ATA card ■Collateral information
Off/On ERR.:
Target comment file is to be other than the comment file in ATA card.
CPU Status:
[OPERATION ERROR] The SFC program is started up by the instruction while the other SFC program has not yet been completed. ■Collateral information
Off/On ERR.:
Check the SFC program specified by the instruction. Or, check the executing status of the SFC program.
CPU Status:
[OPERATION ERROR] Operation where the input data is special value ("-0", unnormalized number, nonnumeric, ) is performed. ■Collateral information
Read the common information of the error using the peripheral device, check the error step corresponding to the numerical value (program error part), and correct it.
Off/On ERR.:
[OPERATION ERROR] Overflow occurs at operation. ■Collateral information
CPU Status:
Read the common information of the error using the peripheral device, check the error step corresponding to the numerical value (program error part), and correct it.
[FOR NEXT ERROR] No NEXT instruction was executed following the execution of a FOR instruction. Alternatively, there are fewer NEXT instructions than FOR instructions. ■Collateral information
Off ERR.:
Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.
CPU Status:
*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *4 The module whose first 5 digits of serial No. is "07012" or later. *5 The module whose first 5 digits of serial No. is "07032" or later. *6 The module whose first 5 digits of serial No. is "09012" or later.

Error Contents and Cause Corrective Action LED Status CPU Status
[FOR NEXT ERROR] A NEXT instruction was executed although no FOR instruction has been executed. Alternatively, there are more NEXT instructions than FOR instructions. ■Collateral information
Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.
[FOR NEXT ERROR] More than 16 nesting levels are programmed. ■Collateral information
Keep nesting levels at 16 or under.
[FOR NEXT ERROR] A BREAK instruction was executed although no FOR instruction has been executed prior to that. ■Collateral information
[CAN'T EXECUTE(P)] The CALL instruction is executed, but there is no subroutine at the specified pointer. ■Collateral information
Off ERR.:
CPU Status:
[CAN'T EXECUTE(P)] There was no RET instruction in the executed subroutine program. ■Collateral information
12.1 Error Code List 12.1.6 Error code list (4000 to 4999)
[CAN'T EXECUTE(P)] The RET instruction exists before the FEND instruction of the main routine program. ■Collateral information
[CAN'T EXECUTE(P)] More than 16 nesting levels are programmed. ■Collateral information
Keep nesting levels at 16 or under.

Error Contents and Cause Corrective Action LED Status CPU Status
[CAN'T EXECUTE(I)] Though an interrupt input occurred, the corresponding interrupt pointer does not exist. ■Collateral information
[CAN'T EXECUTE(I)] An IRET instruction does not exist in the executed interrupt program. ■Collateral information
Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.
[CAN'T EXECUTE(I)] The IRET instruction exists before the FEND instruction of the main routine program. ■Collateral information
Off ERR.:
CPU Status:
[CAN'T EXECUTE(I)] The interrupt pointer for the module mounted on the extension base unit is set in the redundant system. ■Collateral information
Delete the setting of interrupt pointer for the module mounted on the extension base unit, since it cannot be used.
[INST. FORMAT ERR.] The number of CHK and CHKEND instructions is not equal. ■Collateral information
[INST. FORMAT ERR.] The number of IX and IXEND instructions is not equal. ■Collateral information
*6 The module whose first 5 digits of serial No. is "09012" or later.
![Page 965 of the Mitsubishi Electronics QCPU user manual — [MULTI-COM.ERROR]](/cdn/reader/d2/d2944d2909243ae715aad622aa50e62fdb53b9908e5ac3f553f9129d99305b43/images/page-965.webp?w=400)
Error Contents and Cause Corrective Action LED Status CPU Status
[INST. FORMAT ERR.] The configuration of the check conditions for the CHK instruction is incorrect. Alternatively, a CHK instruction has been used in a low speed execution type program. ■Collateral information
Off ERR.:
Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.
CPU Status:
12.1 Error Code List 12.1.6 Error code list (4000 to 4999)
[MULTI-COM.ERROR] The number of devices for the multiple CPU high- speed transmission dedicated instruction specified by the program is wrong. ■Collateral information
*7 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU.

Error Contents and Cause Corrective Action LED Status CPU Status
[MULTI-COM.ERROR] The device which cannot be used for the multiple CPU high-speed transmission dedicated instruction specified by the program is specified. ■Collateral information
[MULTI-COM.ERROR] The character string which cannot be handled by the multiple CPU high-speed transmission dedicated instruction is specified. ■Collateral information
Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.
[MULTI-COM.ERROR] The number of read/write data (number of request/ receive data) for the multiple CPU high-speed transmission dedicated instruction specified by the program is not valid. ■Collateral information
[SFCP. CODE ERROR] No SFCP or SFCPEND instruction in SFC program. ■Collateral information
Off ERR.:
CPU Status:
[CAN'T SET(BL)] The block number designated by the SFC program exceeds the range. ■Collateral information
Write the program to the CPU module again using GX Developer.
[CAN'T SET(BL)] Block number designations overlap in SFC program. ■Collateral information
[CAN'T SET(S)] A step number designated in an SFC program exceeds the range. ■Collateral information
*2 The function version is B or later. *7 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU.

Error Contents and Cause Corrective Action LED Status CPU Status
[CAN'T SET(S)] Total number of steps in all SFC programs exceed the maximum. ■Collateral information
[CAN'T SET(S)] Step number designations overlap in SFC program. ■Collateral information
[CAN'T SET(S)] The total number of (maximum step No.+1) of each block exceeds the total number of step relays. ■Collateral information
Correct the total number of step relays so that it does not exceed the total number of (maximum step No.+1) of each block.
Off ERR.:
[SFC EXE. ERROR] The SFC program cannot be executed.
CPU Status:
[SFC EXE. ERROR] The SFC program cannot be executed.
12.1 Error Code List 12.1.6 Error code list (4000 to 4999)
[SFC EXE. ERROR] The SFC program cannot be executed.
*2 The function version is B or later.

Error Contents and Cause Corrective Action LED Status CPU Status
[SFCP. FORMAT ERR.] The numbers of BLOCK and BEND instructions in an SFC program are not equal. ■Collateral information
[SFCP. FORMAT ERR.] The configuration of the STEP* to TRAN* to TSET to SEND instructions in the SFC program is incorrect. ■Collateral information
Write the program to the CPU module again using the peripheral device.
[SFCP. FORMAT ERR.] The structure of the SFC program is illegal.
Off ERR.:
CPU Status:
[SFCP. FORMAT ERR.] The structure of the SFC program is illegal.
[SFCP. FORMAT ERR.] The structure of the SFC program is illegal.
Write the program to the CPU module again using GX Developer.
*2 The function version is B or later.

Error Contents and Cause Corrective Action LED Status CPU Status
[SFCP. FORMAT ERR.] The structure of the SFC program is illegal.
Off ERR.:
Read the common information of the error using GX Developer, and check and correct the error step corresponding to that value (program error location).
[SFCP. FORMAT ERR.] The structure of the SFC program is illegal.
CPU Status:
[SFCP. OPE. ERROR] The SFC program contains data that cannot be processed. ■Collateral information
[SFCP. OPE. ERROR] Exceeds device range that can be designated by the SFC program. ■Collateral information
Off/On ERR.:
Read common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.
Qn(H) QnPH QnPRH 4601
CPU Status:
[SFCP. OPE. ERROR] The START instruction in an SFC program is preceded by an END instruction. ■Collateral information
12.1 Error Code List 12.1.6 Error code list (4000 to 4999)
*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *2 The function version is B or later.

Error Contents and Cause Corrective Action LED Status CPU Status
[SFCP. EXE. ERROR] The active step information at presumptive start of the SFC program is incorrect. ■Collateral information
Read common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. The program is automatically subjected to an initial start.
On ERR.:
[SFCP. EXE. ERROR] Key-switch was reset during RUN when presumptive start was designated for SFC program. ■Collateral information
CPU Status:
Continue Qn(H) QnPH QnPRH 4611
[BLOCK EXE. ERROR] Startup was executed at a block in the SFC program that was already started up. ■Collateral information
Read common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.
[BLOCK EXE. ERROR] Startup was attempted at a block that does not exist in the SFC program. ■Collateral information
Off ERR.:
CPU Status:
[STEP EXE. ERROR] Startup was executed at a block in the SFC program that was already started up. ■Collateral information
Read common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.
*2 The function version is B or later.

Error Contents and Cause Corrective Action LED Status CPU Status
[STEP EXE. ERROR]
Off ERR.:
[STEP EXE. ERROR] There were too many simultaneous active steps in blocks that can be designated by the SFC program. ■Collateral information
CPU Status:
[STEP EXE. ERROR] There were too many simultaneous active steps in all blocks that can be designated. ■Collateral information
12.1 Error Code List 12.1.6 Error code list (4000 to 4999)
*2 The function version is B or later.
![Page 972 of the Mitsubishi Electronics QCPU user manual — [WDT ERROR]](/cdn/reader/d2/d2944d2909243ae715aad622aa50e62fdb53b9908e5ac3f553f9129d99305b43/images/page-972.webp?w=400)
The following shows the error messages from the error code 5000 to 5999, the contents and causes of the errors, and the corrective actions for the errors.
Error Contents and Cause Corrective Action LED Status CPU Status
[WDT ERROR]
Off ERR.:
CPU Status:

Error Contents and Cause Corrective Action LED Status CPU Status
[PRG. TIME OVER] The program scan time exceeded the constant scan setting time specified in the PLC RAS setting of the PLC parameter. ■Collateral information
[PRG. TIME OVER] The low speed program execution time specified in the PLC RAS setting of the PLC parameter exceeded the excess time of the constant scan. ■Collateral information
On ERR.:
[PRG. TIME OVER] The program scan time exceeded the constant scan setting time specified in the PLC RAS setting of the PLC parameter. ■Collateral information
CPU Status:
Review the constant scan setting time in the PLC parameter so that the excess time of constant scan can be fully secured.
[PRG. TIME OVER] The scan time of the low speed execution type program exceeded the low speed execution watch time specified in the PLC RAS setting of the PLC parameter dialog box. ■Collateral information
Read the individual information of the error using the peripheral device, check the numerical value (time) there, and shorten scan time if necessary. Change the low speed execution watch time in the PLC RAS setting of the PLC parameter dialog box.
12.1 Error Code List 12.1.7 Error code list (5000 to 5999)

The following shows the error messages from the error code 6000 to 6999, the contents and causes of the errors, and the corrective actions for the errors.
Error Contents and Cause Corrective Action LED Status CPU Status
[FILE DIFF.] In a redundant system, the control system and standby system do not have the same programs and parameters.
The file type detected as different between the two systems can be checked by the file name of the error common information.
Off ERR.:
CPU Status:
[FILE DIFF.] In a redundant system, the valid parameter drive settings (SW2, SW3) made by the DIP switches are not the same. ■Collateral information
Match the valid parameter drive settings (SW2, SW3) by the DIP switches of the control system and standby system.

Error Contents and Cause Corrective Action LED Status CPU Status
[OPE. MODE DIFF.] The operational status of the control system and standby system in the redundant system is not the same. (This can be detected from the standby system of the redundant system.) ■Collateral information
On ERR.:
Synchronise the operation statuses of the control system and standby system.
CPU Status:
[OPE. MODE DIFF.] At power ON/reset, the RUN/STOP switch settings of the control system and standby system are not the same in a redundant system. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information
Set the RUN/STOP switches of the control system and standby system to the same setting.
Off ERR.:
CPU Status:
[UNIT LAY. DIFF.] In a redundant system, the CPU module model name differs between the control system and standby system. (This can be detected from the standby system of the redundant system.) ■Collateral information
12.1 Error Code List 12.1.8 Error code list (6000 to 6999)
Match the model names of the control system and standby system.

Error Contents and Cause Corrective Action LED Status CPU Status
[UNIT LAY. DIFF.] A difference in the remote I/O configuration of the MELSECNET/H multiplexed remote I/O network between the control system and standby system of a redundant system was detected. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information
Check the network cables of the MELSECNET/H multiplexed remote I/O network for disconnection.
[CARD TYPE DIFF.] In a redundant system, the memory card installation status (installed/not installed) differs between the control system and standby system. ■Collateral information
Off ERR.:
Match the memory card installation statuses (set/ not set) of the control system and standby system.
CPU Status:
[CARD TYPE DIFF.] In a redundant system, the memory card type differs between the control system and standby system. ■Collateral information
Match the memory card types of the control system and standby system.
[CAN'T EXE. MODE] The function inexecutable in the debug mode or operation mode (backup/separate mode) was executed. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information
On ERR.:
Execute the function executable in the debug mode or operation mode (backup/separate mode).
CPU Status:
[CPU MODE DIFF.] In a redundant system, the operation mode (backup/separate) differs between the control system and standby system. (This can be detected from the standby system of the redundant system.) ■Collateral information
Off ERR.:
Match the operation modes of the control system and standby system.
CPU Status:
![Page 977 of the Mitsubishi Electronics QCPU user manual — [TRK. TRANS. ERR.]](/cdn/reader/d2/d2944d2909243ae715aad622aa50e62fdb53b9908e5ac3f553f9129d99305b43/images/page-977.webp?w=400)
Error Contents and Cause Corrective Action LED Status CPU Status
[CPU MODE DIFF.] In a redundant system, the operation mode (backup/separate) differs between the control system and standby system. (This can be detected from the standby system of the redundant system.) ■Collateral information
Match the operation modes of the control system and standby system.
Off ERR.:
[CPU MODE DIFF.] Both System A and B are in the same system status (control system). (This can be detected from the system B of the redundant system.) ■Collateral information
CPU Status:
Power the CPU module (System B) which resulted in a stop error, OFF and then ON.
On ERR.:
12.1 Error Code List 12.1.8 Error code list (6000 to 6999)
CPU Status:
![Page 978 of the Mitsubishi Electronics QCPU user manual — [TRK. TRANS. ERR.]](/cdn/reader/d2/d2944d2909243ae715aad622aa50e62fdb53b9908e5ac3f553f9129d99305b43/images/page-978.webp?w=400)
Error Contents and Cause Corrective Action LED Status CPU Status
[TRK. TRANS. ERR.] A data sum value error occurred in tracking (data reception). (This can be detected from the control system or standby system of the redundant system.) ■Collateral information
RUN:
On ERR.:
CPU Status:

Error Contents and Cause Corrective Action LED Status CPU Status
[TRK. TRANS. ERR.] A data sum value error occurred in tracking (data reception). (This can be detected from the control system or standby system of the redundant system.) ■Collateral information
[TRK. SIZE ERROR] The tracking capacity exceeded the allowed range. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information
On ERR.:
Reexamine the tracking capacity.
CPU Status:
[TRK. SIZE ERROR] The control system does not have enough file register capacity for the file registers specified in the tracking settings. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information
12.1 Error Code List 12.1.8 Error code list (6000 to 6999)
Switch to the file registers of which capacity is greater than the file registers specified in the tracking settings.
[TRK. SIZE ERROR] File registers greater than those of the standby system were tracked and transmitted from the control system. (This can be detected from the standby system of the redundant system.) ■Collateral information
Switch to the file registers of which capacity is greater than the file registers specified in the tracking settings.

Error Contents and Cause Corrective Action LED Status CPU Status
[TRK. CABLE ERR.]
Make a start after connecting the tracking cable. If the same error still occurs, this indicates the tracking cable or CPU module side tracking transmission hardware is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)
Off ERR.:
CPU Status:
On ERR.:
CPU Status:
Off ERR.:
CPU Status:
[CONTROL EXE.] The standby system has been switched to the control system in a redundant system. (Detected by the CPU that was switched from the standby system to the control system) Since this error code does not indicate the error information of the CPU module but indicates its status, the error code and error information are not stored into SD0 to 26, but are stored into the error log every system switching. (Check the error information by reading the error log using GX Developer.) ■Collateral information
On ERR.:
CPU Status:

Error Contents and Cause Corrective Action LED Status CPU Status
[STANDBY] The control system has been switched to the standby system in a redundant system. (Detected by the CPU that was switched from the control system to the standby system) Since this error code does not indicate the error information of the CPU module but indicates its status, the error code and error information are not stored into SD0 to 26, but are stored into the error log every system switching. (Check the error information by reading the error log using GX Developer.) ■Collateral information
On ERR.:
CPU Status:
[CAN'T SWITCH] System switching cannot be executed due to standby system error/ tracking cable error/ online module change in execution at separate mode. Causes for switching system at control system are as follows:
On ERR.:
CPU Status:
failure ■Diagnostic Timing
[STANDBY SYS. DOWN] Any of the following errors was detected in the backup mode.
On ERR.:
12.1 Error Code List 12.1.8 Error code list (6000 to 6999)
CPU Status:

Error Contents and Cause Corrective Action LED Status CPU Status
[CONTROL SYS. DOWN] Any of the following errors was detected in the backup mode.
Off ERR.:
CPU Status:
Off ERR.:
CPU Status:
[CONTROL SYS. DOWN] The control system detected the error of the system configuration and informed it to the standby system (host system) in the redundant system. ■Collateral information
Off ERR.:
Restart the system after checking that the connection between base unit and the system configuration (type/number/parameter of module) are correct.
CPU Status:
[PRG. MEM. CLEAR] The memory copy from control system to standby system was executed, and the program memory was cleared. ■Collateral information
Off ERR.:
After the memory copy from control system to standby system is completed, switch power OFF and then ON, or make a reset.
CPU Status:

Error Contents and Cause Corrective Action LED Status CPU Status
[MEM.COPY EXE] The memory copy from control system to standby system was executed. (This can be detected from the control system of the redundant system.) ■Collateral information
On ERR.:
CPU Status:
[TRK. PARA. ERROR] The file register file specified in the tracking setting of the PLC parameter dialog box does not exist. ■Collateral information
Read the individual information of the error using GX Developer, and check and correct the drive name and file name. Create the specified file.
Off ERR.:
[TRK. PARA. ERROR] The file register range specified in the device detail setting of the tracking setting of the PLC parameter dialog box exceeded the specified file register file capacity. ■Collateral information
CPU Status:
Read the individual information of the error using GX Developer, and increase the file register capacity.
12.1 Error Code List 12.1.8 Error code list (6000 to 6999)

The following shows the error messages from the error code 7000 to 10000, the contents and causes of the errors, and the corrective actions for the errors.
Error Contents and Cause Corrective Action LED Status CPU Status
[MULTI CPU DOWN]
[MULTI CPU DOWN] In a multiple CPU system, CPU other than CPU No.1 cannot be started up due to stop error of the CPU No.1 at power-on, which occurs to CPU No.2 to No.4. ■Collateral information
Read the individual information of the error using GX Developer, identify the error of the CPU module, and remove the error.
[MULTI CPU DOWN]
Off ERR.:
CPU Status:
[MULTI CPU DOWN] There is no response from the target CPU module in a multiple CPU system at initial communication stage. ■Collateral information
Reset the CPU module and RUN it again. If the same error is displayed again, this suggests the hardware fault of any of the CPU modules. (Contact your local Mitsubishi representative.)
*1 The function version is B or later. *6 The Universal model QCPU except the Q00UJCPU.

Error Contents and Cause Corrective Action LED Status CPU Status
[MULTI CPU DOWN] In a multiple CPU system, a data error occurred in communication between the CPU modules. ■Collateral information
Off ERR.:
CPU Status:
Off ERR.:
CPU Status:
[MULTI EXE. ERROR] The PC CPU module-compatible software package
(PPC-DRV-01)*5 whose version is 1.06 or earlier is used in a multiple CPU system. ■Collateral information
Off ERR.:
Change the version of the PC CPU module- compatible software package (PPC-DRV-01)*5 to 1.07 or later.
CPU Status:
[MULTI EXE. ERROR] The Q172(H)CPU(N) or Q173(H)CPU(N) is mounted on the multiple CPU high-speed main
Off ERR.:
base unit (Q3 DB). (This may result in a module
Replace the Q172(H)CPU(N) and Q173(H)CPU(N) with the Motion CPU compatible with the multiple CPU high-speed main base unit.
failure.) ■Collateral information
12.1 Error Code List 12.1.9 Error code list (7000 to 10000)
CPU Status:
QnPH*4 [MULTI EXE. ERROR] The Universal model QCPU (except Q02UCPU) and Q172(H)CPU(N) are mounted on the same base unit. (This may result in a module failure.) ■Collateral information
Off ERR.:
Check the QCPU and Motion CPU that can be used in a multiple CPU system, and change the system configuration.
CPU Status:
*1 The function version is B or later. *4 The module whose first 5 digits of serial No. is "09082" or later. *6 The Universal model QCPU except the Q00UJCPU.

Error Contents and Cause Corrective Action LED Status CPU Status
[MULTI EXE. ERROR] Either of the following settings was made in a multiple CPU system.
Off ERR.:
CPU Status:
[MULTI EXE. ERROR] The system configuration for using the Multiple CPU high speed transmission function is not met.
(Q3 DB) is not used.
Off ERR.:
CPU Status:
[MULTI EXE. ERROR] The Q172(H)CPU(N) or Q173(H)CPU(N) is mounted to the CPU slot or slots 0 to 2. (The module may break down.) ■Collateral information
Off ERR.:
CPU Status:
[MULTI CPU ERROR] In the operating mode of a multiple CPU system, an error occurred in the CPU where "system stop" was not selected. (The CPU module where no error occurred was used to detect an error.) ■Collateral information
On ERR.:
Read the individual information of the error using the peripheral device, check the error of the CPU module resulting in CPU module fault, and remove the error.
CPU Status:
[CPU LAY. ERROR] An assignment error occurred in the CPU- mountable slot (CPU slot, I/O slot 0, 1) in excess of the number of CPU modules specified in the multiple CPU setting of the PLC parameter dialog box. ■Collateral information
Off ERR.:
CPU Status:
*1 The function version is B or later. *3 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU. *6 The Universal model QCPU except the Q00UJCPU.

Error Contents and Cause Corrective Action LED Status CPU Status
[CPU LAY. ERROR] An assignment error occurred within the range of the number of CPUs specified in the multiple CPU setting of the PLC parameter dialog box. ■Collateral information
Off ERR.:
CPU Status:
RUN:
Off ERR.:
Configure a system so that the number of mountable modules of each CPU module does not exceed the maximum number of mountable modules specified in the specification.
CPU Status:
[CPU LAY. ERROR] The CPU module has been mounted on the inapplicable slot. ■Collateral information
Off ERR.:
Mount the CPU module on the applicable slot.
CPU Status:
[CPU RAY ERROR] The host CPU No. set by the multiple CPU setting and the host CPU No. determined by the mounting position of the CPU module are not the same. ■Collateral information
Off ERR.:
CPU Status:
[INCORRECT FILE] The error of stored file (enabled parameter file) is detected. ■Collateral information
Write the file shown as SD17 to SD22 of individual information to the drive shown as SD16(L) of individual information, and turn ON from OFF the power supply of the CPU module or cancel the reset. If the same error is displayed again, the CPU module has hardware failure. Contact your local Mitsubishi representative, explaining a detailed description of the problem.
Off ERR.:
CPU Status:
12.1 Error Code List 12.1.9 Error code list (7000 to 10000)
On ERR.:
[F**** ] Annunciator (F) was set ON ■Collateral information
Read the individual information of the error using the peripheral device, and check the program corresponding to the numerical value (annunciator number).
CPU Status:
CPU Status:
*1 The function version is B or later. *3 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU.

Error Contents and Cause Corrective Action LED Status CPU Status
RUN:
[<CHK>ERR ***-***] Error detected by the CHK instruction. ■Collateral information
On ERR.:
Read the individual information of the error using the peripheral device, and check the program corresponding to the numerical value (error number) there.
Off USER LED On
CPU Status:
[BOOT OK] Storage of data onto ROM was completed normally in automatic write to standard ROM. (BOOT LED also flickers.) ■Collateral information
Off ERR.:
Use the DIP switches to set the valid parameter drive to the standard ROM. Then, switch power on again, and perform boot operation from the standard ROM.
CPU Status:
[CONT. UNIT ERROR] In the multiple CPU system, an error occurred in the CPU module other than the Process CPU/High Performance model QCPU. ■Collateral information
Off ERR.:
Check the details of the generated error by connecting to the corresponding CPU module using GX Developer.
CPU Status:
*1 The function version is B or later.

Q series CPU module can perform the cancel operation for errors only when the errors allow the CPU module to continue its operation. To cancel the errors, follow the steps shown below.
1) Eliminate the cause of the error. 2) Store the error code to be canceled in the special register SD50. 3) Energize the special relay SM50 (OFF ON). 4) The error to be canceled is canceled. After the CPU module is reset by the canceling of the error, the special relays, special registers, and LEDs associated with the error are returned to the status under which the error occurred. If the same error occurs again after the cancellation of the error, it will be registered again in the error history.
When multiple enunciators(F) detected are canceled, the first one with No. F only is canceled.
Refer to the following manual for details of error canceling.
QCPU User's Manual (Function Explanation, Program Fundamentals)
(1) When the error is canceled with the error code to be canceled stored in the
SD50, the lower one digit of the code is neglected. (Example) If error codes 2100 and 2101 occur, and error code 2100 to cancel error code 2101. If error codes 2100 and 2111 occur, error code 2111 is not canceled even if error code 2100 is canceled. (2) Errors developed due to trouble in other than the CPU module are not
12.2 Canceling of Errors
canceled even if the special relay (SM50) and special register (SD50) are used to cancel the error. (Example) Since "SP. UNIT DOWN" is the error that occurred in the base unit (including the extension cable), intelligent function module, etc. the error cause cannot be removed even if the error is canceled by the special relay (SM50) and special register (SD50). Refer to the error code list and remove the error cause.


APPENDICES
A

Appendix 1.1 Definition
(1) Processing time taken by the QCPU is the total of the following processing times.
(2) Instruction processing time
This is the total of processing time of each instruction shown in Appendix 1.2, 1.3 and 1.4.
(3) END processing time, I/O refresh time, and processing time for the function that increases
Refer to the following manual(s) for the END processing time, I/O refresh time, and processing time for the function that increases the scan time.
(Functions Explanation, Program Fundamentals)
the scan time · (a) For QCPUs

QCPU
The processing time for the individual instructions are shown in the table on the following pages.
Operation processing times can vary substantially depending on the nature of the sources and destinations of the instructions, and the values contained in the following tables should therefore be taken as a set of general guidelines to processing time rather than as being strictly accurate.
LD
A
LDI
X0 0.20 0.16 0.10
AND
ANI
OR
ORI
LDP
LDF
ANDP
0.30 0.24 0.15
ORP
ORF
ANB
ORB
MPS
–– 0.20 0.16 0.10
Appendix1 OPERATION PROCESSING TIME Appendix 1.2 Operation Processing Time of Basic Model QCPU
INV
0.20 0.16 0.10 When executed
0.30 0.24 0.15 When executed
When not executed (OFF OFF)
EGP
0.20 0.16 0.10
When executed (OFF ON)
When not executed (OFF OFF)
17 9.5 9.4
EGF
When executed (OFF ON)
App-3



PLS 12 9.5 9.2
PLF 11 9.5 8.9
When not executed 0.68 0.40 0.25
When executed 7.5 6.2 5.7
When not executed 0.50 0.40 0.25
When executed 26 21 21
When not executed 0.48 0.40 0.25
When executed 58 45 43
When not executed 0.50 0.34 0.25
When executed 12 8.7 8.3
MC
A
MCR –– 0.20 0.16 0.10
Error check performed 660 600 520
No error check performed
END
(• Fuse blown check)
(• I/O module verification)
NOPLF
–– 0.20 0.16 0.10
The processing time when the instruction is not executed is calculated as follows: Q00JCPU 0.20 (No. of steps for each instruction + 1) µs Q00CPU 0.16 (No. of steps for each instruction + 1) µs Q01CPU 0.10 (No. of steps for each instruction + 1) µs
Appendix1 OPERATION PROCESSING TIME Appendix 1.2 Operation Processing Time of Basic Model QCPU
In conductive status 0.80 0.64 0.40
In non-conductive status 0.80 0.64 0.40
When not executed 0.70 0.56 0.35
In conductive status 0.80 0.64 0.40
In non-conductive status 0.80 0.64 0.40
When not executed 0.70 0.56 0.35
In conductive status 0.80 0.64 0.40
In non-conductive status 0.80 0.64 0.40
In conductive status 0.80 0.64 0.40
In non-conductive status 0.80 0.64 0.40
When not executed 0.70 0.56 0.35
In conductive status 0.80 0.64 0.40
In non-conductive status 0.80 0.64 0.40

When not executed 0.70 0.56 0.35
In conductive status 0.80 0.64 0.40
In non-conductive status 0.80 0.64 0.40
In conductive status 0.80 0.64 0.40
In non-conductive status 0.80 0.64 0.40
When not executed 0.70 0.56 0.35
In conductive status 0.80 0.64 0.40
In non-conductive status 0.80 0.64 0.40
When not executed 0.70 0.56 0.35
In conductive status 0.80 0.64 0.40
In non-conductive status 0.80 0.64 0.40
In conductive status 0.80 0.64 0.40
In non-conductive status 0.80 0.64 0.40
When not executed 0.70 0.56 0.35
In conductive status 0.80 0.64 0.40
In non-conductive status 0.80 0.64 0.40
When not executed 0.70 0.56 0.35
In conductive status 0.80 0.64 0.40
In non-conductive status 0.80 0.64 0.40
In conductive status 0.80 0.64 0.40
In non-conductive status 0.80 0.64 0.40
When not executed 0.70 0.56 0.35
In conductive status 0.80 0.64 0.40
In non-conductive status 0.80 0.64 0.40
When not executed 0.70 0.56 0.35
In conductive status 0.80 0.64 0.40
In non-conductive status 0.80 0.64 0.40
In conductive status 0.80 0.64 0.40
In non-conductive status 0.80 0.64 0.40
When not executed 0.70 0.56 0.35
In conductive status 0.80 0.64 0.40
In non-conductive status 0.80 0.64 0.40
When not executed 0.70 0.56 0.35
In conductive status 0.80 0.64 0.40
In non-conductive status 0.80 0.64 0.40
In conductive status 1.0 0.80 0.50
In non-conductive status 1.0 0.80 0.50
When not executed 0.80 0.64 0.40
In conductive status 1.0 0.80 0.50
In non-conductive status 1.0 0.80 0.50
When not executed 0.80 0.64 0.40
In conductive status 1.0 0.80 0.50
In non-conductive status 1.0 0.80 0.50
In conductive status 1.0 0.80 0.50
In non-conductive status 1.0 0.80 0.50
When not executed 0.80 0.64 0.40
In conductive status 1.0 0.80 0.50
In non-conductive status 1.0 0.80 0.50


Appendix1 OPERATION PROCESSING TIME Appendix 1.2 Operation Processing Time of Basic Model QCPU
BKCMP = n n = 1 130 105 97
BKCMP = P n n = 96 205 175 165




BK + n n = 1 105 86 80
BK + P n n = 96 185 155 140
BK - n n = 1 105 86 80
BK - P n n = 96 185 155 140
Appendix1 OPERATION PROCESSING TIME Appendix 1.2 Operation Processing Time of Basic Model QCPU


= D0, = J1 \ W1 155 130 120
= D0, = J1 \ W1 165 135 120

The processing time when the instruction is not executed is calculated as follows: Q00JCPU 0.20 (No. of steps for each instruction + 1) µs Q00CPU 0.16 (No. of steps for each instruction + 1) µs Q01CPU 0.10 (No. of steps for each instruction + 1) µs

Appendix1 OPERATION PROCESSING TIME Appendix 1.2 Operation Processing Time of Basic Model QCPU
(3) Application instructions




Appendix1 OPERATION PROCESSING TIME Appendix 1.2 Operation Processing Time of Basic Model QCPU



COM –– 110 77 72
IX –– 65 54 51
IXEND –– 30 26 25
Number of contacts 1 145 120 110
Number of contacts 14 770 630 585
Number of data points 0 36 32 28
Number of data points 96 36 32 28
Number of data points 1 45 41 36
FIFRP
Number of data points 96 93 82 70
Number of data points 1 40 37 32
Number of data points 96 40 37 32
Number of data points 0 53 44 38
Number of data points 96 100 89 76
Number of data points 1 60 50 43
FDELP
Number of data points 96 110 95 82
FROM n1 n2 n3 n3 = 1 125 105 93
FROMP n1 n2 n3 *1 n3 = 1000 740 695 685
DFRO n1 n2 n3 n3 = 1 130 110 100
DFROP n1 n2 n3 *1 n3 = 500 745 695 675
TO n1 n2 n3 n3 = 1 120 105 92
TOP n1 n2 n3 *1 n3 = 1000 735 680 645
DTO n1 n2 n3 n3 = 1 130 110 99
Appendix1 OPERATION PROCESSING TIME Appendix 1.2 Operation Processing Time of Basic Model QCPU
DTOP n1 n2 n3 *1 n3 = 500 740 680 640
*1 : The FROM/TO instruction differs in processing time according to the number of slots and the loaded
modules. (The CPU also differs in processing time according to the extension base type.)
Processing Time (µs) · Instruction Condition (Device)

LIMIT
–– 34 28 26
DLIMIT
–– 41 34 30
BAND
–– 33 28 25
DBAND
–– 40 34 30
ZONE
–– 31 25 24
DZONE
–– 37 29 28
RSET
–– –– 18 16
DATERD
–– 30 25 23
DATEWR
–– 69 57 54
DATE+
No digit increase 47 39 36
Digit increase 50 42 38
No digit increase 47 40 36
DATE - P
Digit increase 50 42 38
–– 28 24 22
HOUR
–– 38 32 29
WDT
–– 18 15 14
DUTY –– 41 36 32
ZRRDB
–– –– 24 22
ZRWRB
–– –– 27 24
ADRSET
–– 23 19 18
ZPUSH
–– 38 33 30
ZPOP
–– 37 31 29
ZCOM –– 105 82 80
(4) Processing time for QCPU instructions (QCPU instructions only)
UNIRD
n = 1 96 80 74
n = 16 440 370 340

(5) Instructions executable by the product with the first 5 digits of the serial No. "04122" or higher
In conductive status 43.0 35.5 33.0
LDE = Single precision
In non-conductive status 46.0 38.0 35.5
When not executed 1.5 1.2 1.0
ANDE = Single precision
In conductive status 35.5 29.5 26.5
In non-conductive status 42.0 35.0 32.5
When not executed 1.5 1.2 1.0
ORE = Single precision
In conductive status 42.0 35.0 32.5
In non-conductive status 37.0 31.0 28.5
In conductive status 46.0 38.0 35.5
LDE < > Single precision
In non-conductive status 43.5 36.0 33.0
When not executed 1.5 1.2 1.0
ANDE < > Single precision
In conductive status 38.5 31.5 29.0
In non-conductive status 39.5 33.0 30.5
When not executed 1.5 1.2 1.0
ORE < > Single precision
In conductive status 45.0 37.5 35.0
In non-conductive status 34.5 29.0 26.5
In conductive status 46.0 37.5 35.5
LDE > Single precision
In non-conductive status 46.0 38.5 35.0
When not executed 1.5 1.2 1.0
ANDE > Single precision
In conductive status 38.5 32.0 29.0
In non-conductive status 42.0 35.0 32.5
When not executed 1.5 1.2 1.0
ORE > Single precision
In conductive status 45.0 37.5 34.5
Appendix1 OPERATION PROCESSING TIME Appendix 1.2 Operation Processing Time of Basic Model QCPU
In non-conductive status 37.0 31.0 29.0
In conductive status 45.5 37.5 35.0
LDE < = Single precision
In non-conductive status 46.5 38.5 35.5
When not executed 1.5 1.2 1.0
ANDE < = Single precision
In conductive status 38.5 31.5 29.0
In non-conductive status 42.5 35.5 32.5
When not executed 1.5 1.2 1.0
ORE < = Single precision
In conductive status 45.0 37.5 34.5
In non-conductive status 37.5 31.5 28.5
In conductive status 45.5 37.5 35.0
LDE < Single precision
In non-conductive status 46.5 38.5 35.5
When not executed 1.5 1.2 1.0
ANDE < Single precision
In conductive status 38.0 31.5 29.0
In non-conductive status 42.5 35.5 32.5
When not executed 1.5 1.2 1.0
ORE < Single precision
In conductive status 45.0 37.5 34.5
In non-conductive status 37.5 31.5 29.0
In conductive status 45.5 38.0 35.5
LDE > = Single precision
In non-conductive status 46.5 38.0 35.0
When not executed 1.5 1.2 1.0
ANDE > = Single precision
In conductive status 38.5 32.0 29.0
In non-conductive status 42.5 35.5 32.5


= 2127, = 2127 65.5 60.5 49.5
= 2127, = 2127 66.5 56.0 51.0
= 2127, = 2127 48.5 41.0 37.5
= 2127, = 2127 50.5 42.5 38.5
= 2127, = 2127 65.5 55.0 49.5
= 2127, = - 2126 69.5 57.5 53.0
Decimal point format all 2-digit specification 138.0 148.0 196.0

SIN
SINP Single precision 204.0 173.0 157.0
COSP Single precision 187.0 158.0 144.0
TANP Single precision 224.0 190.0 173.0
RADP Single precision 51.0 43.0 39.0
DEGP Single precision 51.0 43.0 39.0
SQRP Single precision 60.0 51.0 46.5
= - 10 306.0 259.0 235.0
= 1 306.0 259.0 235.0
= 1 73.0 61.5 56.0
= 10 301.0 255.0 232.0
–– 12.5 11.0 10.0
SRND
–– 13.5 12.0 11.0
Appendix1 OPERATION PROCESSING TIME Appendix 1.2 Operation Processing Time of Basic Model QCPU

Name Condition/Number of Points Processed
With auto refresh of CPU
(0.5k words assigned equally to all CPUs)
Without auto refresh of CPU
–– –– 150 135
Read from CPU shared
n3 = 1 –– 100 90
memory of host CPU
n3 = 320 –– 440 420
Read from CPU shared
n3 = 1 –– 110 105
memory of another CPU
n3 = 320 –– 305 290
n3 = 1 –– 100 95
Write to CPU shared memory
n3 = 320 –– 440 425
Write to CPU shared memory
n4 = 1 –– 205 195
n4 = 320 –– 545 525
*2: If the processing overlaps those of the other CPUs in a multiple CPU system, the processing time increases by a maximum of the following time.
For a system having only the main base unit
(Instruction processing time increase) = 4 0.54 (number of points processed) (number of other CPUs) (µs)
For a system including extension base units
(Instruction processing time increase) = 4 1.30 (number of points processed) (number of other CPUs) (µs)
(6) Table of the time to be added when file register, module access device or link direct device is
Instruction Name data Device Specification
Source –– 34 32
Destination –– 23 22
Source –– 13 12
Destination –– 9 8
Source –– 14 13
Destination –– 10 9
Source 99 82 77
Destination 167 137 129
Source 74 61 58
(Un\G , U3En\G0 to G511)
Destination 72 60 56
Source 76 63 59
Destination 92 75 71
Source 178 147 137
Destination 303 248 233
Source 154 126 118
Link direct device (Jn\ )
Destination 153 125 117
Source 155 127 119
Destination 163 133 125

Model QCPU/Process CPU/Redundant CPU
The processing time for the individual instructions are shown in the table on the following pages.
Operation processing time can vary substantially depending on the nature of the sources and destinations of the instructions, and the values contained in the following tables should therefore be taken as a set of general guidelines to processing times rather than as being strictly accurate.
Qn QnH QnPH QnPRH
LDI
AND
–– 0.079 0.034 0.034 0.034
OR
ORI
LDP
LDF
ANDP
–– 0.158 0.068 0.068 0.068
ORP
ORF
ANB
ORB
MPS
–– 0.079 0.034 0.034 0.034
MPP
Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU
0.079 0.034 0.034 0.034 When executed
0.173 0.073 0.073 0.073 When executed
When not executed (OFF OFF)
EGP
0.158 0.068 0.068 0.068
When executed (OFF ON)
App-21

Qn QnH QnPH QnPRH
0.158 0.068 0.068 0.068 (ON ON)
(OFF ON)
0.158 0.068 0.068 0.068 (ON OFF)
When OFF 2.8 1.2 1.2 1.2
When displayed 162 69.7 69.7 69.7
Display completed 126 54 54 54
When not executed 0.63 0.27 0.27 0.27
After time up 0.63 0.27 0.27 0.27
K 0.63 0.27 0.27 0.27
When not executed 0.63 0.27 0.27 0.27
After time up 0.63 0.27 0.27 0.27
When not executed 0.63 0.27 0.27 0.27
After time up 0.63 0.27 0.27 0.27
K 0.63 0.27 0.27 0.27
When not executed 0.158 0.068 0.068 0.068
When not changed (ON ON) 0.158 0.068 0.068 0.068
When changed (OFF ON) 0.158 0.068 0.068 0.068
When not executed 0.47 0.20 0.20 0.20
When displayed 161 69 69 69
Display completed 0.47 0.20 0.20 0.20
When not executed 0.158 0.068 0.068 0.068
When not changed (OFF OFF) 0.158 0.068 0.068 0.068
When changed (ON OFF) 0.158 0.068 0.068 0.068
When not executed 0.158 0.068 0.068 0.068
When executed 0.158 0.068 0.068 0.068
When not executed 0.47 0.20 0.20 0.20
When displayed 90 38 38 38
Display completed 0.47 0.20 0.20 0.20
When not executed 0.63 0.27 0.27 0.27
When executed 0.63 0.27 0.27 0.27
When not executed 0.24 0.10 0.10 0.10
When executed 0.24 0.10 0.10 0.10
When not executed 0.47 0.20 0.20 0.20
When executed 4.3 1.9 1.9 1.9
When not executed 0.40 0.17 0.17 0.17
When executed 0.40 0.17 0.17 0.17
–– 1.0 0.44 0.44 0.44
When not executed 0.47 0.20 0.20 0.20
When executed 0.47 0.20 0.20 0.20
When not executed 0.47 0.20 0.20 0.20
When executed 5.9 2.6 2.6 2.6

Qn QnH QnPH QnPRH
When not executed 0.47 0.20 0.20 0.20
SFTP
When executed 1.66 0.71 0.71 0.71
MCR –– 0.079 0.034 0.034 0.034
Error check performed 380 150 150 500
No error check performed
END
380 150 150 500
(• Fuse blown check)
(• I/O module verification)
NOPLF
–– 0.079 0.034 0.034 0.034
A
Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU
Processing Time (µs) · Instruction Condition (Device) · (• Battery check)

The processing time when the instruction is not executed is calculated as follows: Q02CPU 0.079 (No. of steps for each instruction + 1) µs Q02HCPU, Q06HCPU, Q12HCPU, Q25HCPU, Q02PHCPU, Q06PHCPU, Q12PHCPU, Q25PHCPU, Q12PRHCPU, Q25PRHCPU 0.034 (No. of steps for each instruction + 1) µs
Qn QnH QnPH QnPRH
In conductive status 0.24 0.10 0.10 0.10
In non-conductive status 0.24 0.10 0.10 0.10
When not executed 0.24 0.10 0.10 0.10
In conductive status 0.24 0.10 0.10 0.10
In non-conductive status 0.24 0.10 0.10 0.10
When not executed 0.24 0.10 0.10 0.10
In conductive status 0.24 0.10 0.10 0.10
In non-conductive status 0.24 0.10 0.10 0.10
In conductive status 0.24 0.10 0.10 0.10
In non-conductive status 0.24 0.10 0.10 0.10
When not executed 0.24 0.10 0.10 0.10
In conductive status 0.24 0.10 0.10 0.10
In non-conductive status 0.24 0.10 0.10 0.10
When not executed 0.24 0.10 0.10 0.10
In conductive status 0.24 0.10 0.10 0.10
In non-conductive status 0.24 0.10 0.10 0.10
In conductive status 0.24 0.10 0.10 0.10
In non-conductive status 0.24 0.10 0.10 0.10
When not executed 0.24 0.10 0.10 0.10
In conductive status 0.24 0.10 0.10 0.10
In non-conductive status 0.24 0.10 0.10 0.10
When not executed 0.24 0.10 0.10 0.10
In conductive status 0.24 0.10 0.10 0.10
In non-conductive status 0.24 0.10 0.10 0.10
In conductive status 0.24 0.10 0.10 0.10
In non-conductive status 0.24 0.10 0.10 0.10
When not executed 0.24 0.10 0.10 0.10
In conductive status 0.24 0.10 0.10 0.10
In non-conductive status 0.24 0.10 0.10 0.10

Qn QnH QnPH QnPRH
When not executed 0.24 0.10 0.10 0.10
In conductive status 0.24 0.10 0.10 0.10
In non-conductive status 0.24 0.10 0.10 0.10
In conductive status 0.24 0.10 0.10 0.10
In non-conductive status 0.24 0.10 0.10 0.10
When not executed 0.24 0.10 0.10 0.10
In conductive status 0.24 0.10 0.10 0.10
In non-conductive status 0.24 0.10 0.10 0.10
When not executed 0.24 0.10 0.10 0.10
In conductive status 0.24 0.10 0.10 0.10
In non-conductive status 0.24 0.10 0.10 0.10
In conductive status 0.24 0.10 0.10 0.10
A
In non-conductive status 0.24 0.10 0.10 0.10
When not executed 0.24 0.10 0.10 0.10
In conductive status 0.24 0.10 0.10 0.10
In non-conductive status 0.24 0.10 0.10 0.10
When not executed 0.24 0.10 0.10 0.10
In conductive status 0.24 0.10 0.10 0.10
In non-conductive status 0.24 0.10 0.10 0.10
In conductive status 0.55 0.24 0.24 0.24
In non-conductive status 0.39 0.17 0.17 0.17
When not executed 0.39 0.17 0.17 0.17
In conductive status 0.55 0.24 0.24 0.24
In non-conductive status 0.39 0.17 0.17 0.17
When not executed 0.39 0.17 0.17 0.17
In conductive status 0.55 0.24 0.24 0.24
In non-conductive status 0.55 0.24 0.24 0.24
Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU
In conductive status 0.55 0.24 0.24 0.24
In non-conductive status 0.55 0.24 0.24 0.24
When not executed 0.39 0.17 0.17 0.17
In conductive status 0.55 0.24 0.24 0.24
In non-conductive status 0.55 0.24 0.24 0.24
When not executed 0.39 0.17 0.17 0.17
In conductive status 0.55 0.24 0.24 0.24
In non-conductive status 0.55 0.24 0.24 0.24
In conductive status 0.55 0.24 0.24 0.24
In non-conductive status 0.55 0.24 0.24 0.24
When not executed 0.39 0.17 0.17 0.17
In conductive status 0.55 0.24 0.24 0.24
In non-conductive status 0.55 0.24 0.24 0.24
When not executed 0.39 0.17 0.17 0.17
In conductive status 0.55 0.24 0.24 0.24
In non-conductive status 0.55 0.24 0.24 0.24
In conductive status 0.55 0.24 0.24 0.24
In non-conductive status 0.55 0.24 0.24 0.24
When not executed 0.39 0.17 0.17 0.17
In conductive status 0.55 0.24 0.24 0.24
In non-conductive status 0.55 0.24 0.24 0.24
When not executed 0.39 0.17 0.17 0.17
In conductive status 0.55 0.24 0.24 0.24
In non-conductive status 0.55 0.24 0.24 0.24

Qn QnH QnPH QnPRH
In conductive status 0.55 0.24 0.24 0.24
In non-conductive status 0.55 0.24 0.24 0.24
When not executed 0.39 0.17 0.17 0.17
In conductive status 0.55 0.24 0.24 0.24
In non-conductive status 0.55 0.24 0.24 0.24
When not executed 0.39 0.17 0.17 0.17
In conductive status 0.55 0.24 0.24 0.24
In non-conductive status 0.55 0.24 0.24 0.24
In conductive status 0.55 0.24 0.24 0.24
In non-conductive status 0.55 0.24 0.24 0.24
When not executed 0.39 0.17 0.17 0.17
In conductive status 0.55 0.24 0.24 0.24
In non-conductive status 0.55 0.24 0.24 0.24
When not executed 0.39 0.17 0.17 0.17
In conductive status 0.55 0.24 0.24 0.24
In non-conductive status 0.55 0.24 0.24 0.24
93 40 6.4 6.4 14.9 6.4
92 40 6.4 6.4 14.9 6.4
93 40 –– –– 14.9 6.4
92 40 –– –– 14.9 6.4
When not executed 0.55 0.24 0.24 0.24
93 40 6.4 6.4 14.9 6.4
92 40 6.4 6.4 14.9 6.4
When not executed ––
93 40 –– –– 14.9 6.4
92 40 –– –– 14.9 6.4
When not executed 0.55 0.24 0.24 0.24
93 40 6.4 6.4 14.9 6.4
92 40 6.4 6.4 14.9 6.4
When not executed 0.55 0.24 –– ––
93 40 –– –– 14.9 6.4
92 40 –– –– 14.9 6.4
*1 : The Qn/QnH changes in processing time depending on the serial No. of the CPU module.
Top : The first 5 digits of the serial No. are "05031" or lower Bottom : The first 5 digits of the serial No. are "05032" or higher For the condition to be satisfied when the instruction is not executed, there is no differentiation between the top and bottom.

Instruction Condition (Device) Processing Time (µs)
Qn QnH QnPH QnPRH
In conductive status 92 40 6.4 6.4 14.9 6.4
In non-conductive status 92 40 6.4 6.4 14.9 6.4
In conductive status 92 40 –– –– 14.9 6.4
In non-conductive status 92 40 –– –– 14.9 6.4
When not executed 0.55 0.24 0.24 0.24
In conductive status 92 40 6.4 6.4 14.9 6.4
In non-conductive status 93 40 6.4 6.4 14.9 6.4
When not executed 0.55 0.24 –– ––
In conductive status 92 40 –– –– 14.9 6.4
In non-conductive status 92 40 –– –– 14.9 6.4
When not executed 0.55 0.24 0.24 0.24
In conductive status 93 40 6.4 6.4 14.9 6.4
In non-conductive status 92 40 6.4 6.4 14.9 6.4
When not executed 0.55 0.24 –– ––
In conductive status 93 40 –– –– 14.9 6.4
In non-conductive status 92 40 –– –– 14.9 6.4
When not executed 92 40 6.4 6.4
14.9 6.4
Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU
92 40 6.4 6.4 14.9 6.4
92 40 –– –– 14.9 6.4
precision In non-conductive status
92 40 –– –– 14.9 6.4
When not executed 0.55 0.24 0.24 0.24
In conductive status 92 40 6.4 6.4 14.9 6.4
In non-conductive status 93 40 6.4 6.4 14.9 6.4
When not executed 0.55 0.24 –– ––
In conductive status 92 40 –– –– 14.9 6.4
In non-conductive status 92 40 –– –– 14.9 6.4
*1 : The Qn/QnH changes in processing time depending on the serial No. of the CPU module.
Top : The first 5 digits of the serial No. are "05031" or lower Bottom : The first 5 digits of the serial No. are "05032" or higher For the condition to be satisfied when the instruction is not executed, there is no differentiation between the top and bottom.

Instruction Condition (Device) Processing Time (µs)
Qn QnH QnPH QnPRH
When not executed 0.55 0.24 0.24 0.24
In conductive status 93 40 6.4 6.4 14.9 6.4
In non-conductive status 92 40 6.4 6.4 14.9 6.4
When not executed 0.55 0.24 –– ––
In conductive status 93 40 –– –– 14.9 6.4
In non-conductive status 92 40 –– –– 14.9 6.4
In conductive status 93 40 6.4 6.4 14.9 6.4
In non-conductive status 92 40 6.4 6.4 14.9 6.4
In conductive status 93 40 –– –– 14.9 6.4
In non-conductive status 92 40 –– –– 14.9 6.4
When not executed 0.55 0.24 0.24 0.24
In conductive status 92 40 6.4 6.4 14.9 6.4
In non-conductive status 92 40 6.4 6.4 14.9 6.4
When not executed 0.55 0.24 –– ––
In conductive status 92 40 –– –– 14.9 6.4
In non-conductive status 92 40 –– –– 14.9 6.4
When not executed 0.55 0.24 0.24 0.24
In conductive status 92 40 6.4 6.4 14.9 6.4
In non-conductive status 92 40 6.4 6.4 14.9 6.4
When not executed 0.55 0.24 –– ––
In conductive status 92 40 –– –– 14.9 6.4
In non-conductive status 92 40 –– –– 14.9 6.4
In conductive status 92 40 6.4 6.4 14.9 6.4
In non-conductive status 92 40 6.4 6.4 14.9 6.4
In conductive status 92 40 –– –– 14.9 6.4
In non-conductive status 92 40 –– –– 14.9 6.4
*1 : The Qn/QnH changes in processing time depending on the serial No. of the CPU module.
Top : The first 5 digits of the serial No. are "05031" or lower Bottom : The first 5 digits of the serial No. are "05032" or higher For the condition to be satisfied when the instruction is not executed, there is no differentiation between the top and bottom.

Qn QnH QnPH QnPRH
When not executed 0.55 0.24 0.24 0.24
92 40 6.4 6.4 14.9 6.4
92 40 6.4 6.4 14.9 6.4
When not executed 0.55 0.24 –– ––
92 40 –– –– 14.9 6.4
92 40 –– –– 14.9 6.4
When not executed 0.55 0.24 0.24 0.24
93 40 6.4 6.4 14.9 6.4
92 40 6.4 6.4 14.9 6.4
When not executed 0.55 0.24 –– ––
93 40 –– –– 14.9 6.4
92 40 –– –– 14.9 6.4
93 40 6.4 6.4 14.9 6.4
92 40 6.4 6.4 14.9 6.4
93 40 –– –– 14.9 6.4
Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU
92 40 –– –– 14.9 6.4
When not executed 0.55 0.24 0.24 0.24
92 40 6.4 6.4 14.9 6.4
92 40 6.4 6.4 14.9 6.4
When not executed 0.55 0.24 –– ––
92 40 –– –– 14.9 6.4
92 40 –– –– 14.9 6.4
*1 : The Qn/QnH changes in processing time depending on the serial No. of the CPU module.
Top : The first 5 digits of the serial No. are "05031" or lower Bottom : The first 5 digits of the serial No. are "05032" or higher For the condition to be satisfied when the instruction is not executed, there is no differentiation between the top and bottom.

Qn QnH QnPH QnPRH
When not executed 0.55 0.24 0.24 0.24
92 40 6.4 6.4 14.9 6.4
92 40 6.4 6.4 14.9 6.4
When not executed 0.55 0.24 –– ––
92 40 –– –– 14.9 6.4
92 40 –– –– 14.9 6.4
In conductive status 38 16 16 16
In non-conductive status 34 15 15 15
When not executed 0.56 0.23 0.23 0.23
In conductive status 39 17 17 17
In non-conductive status 32 14 14 14
When not executed 0.56 0.24 0.24 0.24
In conductive status 40 17 17 17
In non-conductive status 33 14 14 14
In conductive status 32 14 14 14
In non-conductive status 40 17 17 17
When not executed 0.56 0.23 0.23 0.23
In conductive status 33 14 14 14
In non-conductive status 39 17 17 17
When not executed 0.56 0.24 0.24 0.24
In conductive status 32 14 14 14
In non-conductive status 39 17 17 17
In conductive status 32 14 14 14
In non-conductive status 40 17 17 17
*1 : The Qn/QnH changes in processing time depending on the serial No. of the CPU module.
Top : The first 5 digits of the serial No. are "05031" or lower Bottom : The first 5 digits of the serial No. are "05032" or higher For the condition to be satisfied when the instruction is not executed, there is no differentiation between the top and bottom.


Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU
BKCMP = n n = 1 48 21 21 21
BKCMP = P n n = 96 142 61 61 61
BKCMP n n = 1 48 21 21 21
BKCMP P n n = 96 150 65 65 65
BKCMP > n n = 1 48 21 21 21
BKCMP >P n n = 96 142 61 61 61
BKCMP >= n n = 1 48 21 21 21
BKCMP >=P n n = 96 150 65 65 65
BKCMP < n n = 1 48 21 21 21
BKCMP
BKCMP
BKCMP




= 2127, = 2127 1.8 0.78 0.78 0.78
= 2127, = 2127 203 87 –– ––
= 2127, = 2127 2.4 1.1 1.1 1.1
= 2127, = 2127 209 90 –– ––
= 2127, = 2127 1.8 0.78 0.78 0.78
= 2127, = 2127 202 87 –– ––
Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU
= 2127, = 2127 2.4 1.1 1.1 1.1
= 2127, = 2127 210 90 –– ––
= 2126, = 2127 2.4 1.1 1.1 1.1
= 2126, = 2127 222 96 –– ––
= 2127, = - 2126 12 5.2 5.2 5.2
= 2127, = - 2126 369 159 –– ––




BKBCD n n = 1 38 17 17 17
BKBCDP n n = 96 99 43 43 43
BKBIN n n = 1 38 17 17 17
BKBINP n n = 96 99 43 43 43
Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU
*1 : The upper row indicates the processing time when A38B/A1S38B and the extension base are used.
The center row indicates the processing time when A38HB/A1S38HB is used. The lower row indicates the processing time when Q312B is used.


BMOV n n = 1 17 7.1 7.1 7.1
BMOVP n n = 96 32 14 14 14
FMOV n n = 1 6.7 2.9 2.9 2.9
FMOVP n n = 96 14 6.1 6.1 6.1
BXCH n n = 1 31 13 13 13
BXCHP n n = 96 84 36 36 36

The processing time when the instruction is not executed is calculated as follows: Q02CPU 0.079 (No. of steps for each instruction + 1) µs Q02HCPU, Q06HCPU, Q12HCPU, Q25HCPU, Q02PHCPU, Q06PHCPU, Q12PHCPU, Q25PHCPU, Q12PRHCPU, Q25PRHCPU ·0.034 (No. of steps for each instruction + 1) µs

BKAND n n = 1 36 16 16 16
BKANDP n n = 96 74 32 32 32
Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU
BKOR n n = 1 36 16 16 16
BKORP n n = 96 74 32 32 32
BKXOR n n = 1 36 16 16 16
BKXORP n n = 96 74 32 32 32
(3) Application instructions


BKNXOR n n = 1 36 16 16 16
BKNXORP n n = 96 74 32 32 32
ROR n n = 1 2.0 0.85 0.85 0.85
RORP n n = 15 2.0 0.85 0.85 0.85
RCR n n = 1 1.6 0.68 0.68 0.68
RCRP n n = 15 1.6 0.68 0.68 0.68
ROL n n = 1 2.0 0.85 0.85 0.85
ROLP n n = 15 2.0 0.85 0.85 0.85
RCL n n = 1 1.6 0.68 0.68 0.68
RCLP n n = 15 1.6 0.68 0.68 0.68
DROR n n = 1 3.9 1.7 1.7 1.7
DRORP n n = 31 4.0 1.7 1.7 1.7
DRCR n n = 1 4.3 1.8 1.8 1.8
DRCRP n n = 31 4.3 1.9 1.9 1.9
DROL n n = 1 3.9 1.7 1.7 1.7
DROLP n n = 31 4.0 1.7 1.7 1.7
DRCL n n = 1 4.3 1.8 1.8 1.8
DRCLP n n = 31 4.3 1.9 1.9 1.9
SFR n n = 1 1.7 0.75 0.75 0.75
SFRP n n = 15 2.0 0.85 0.85 0.85
SFL n n = 1 1.7 0.75 0.75 0.75
SFLP n n = 15 2.0 0.85 0.85 0.85
BSFLR n n = 1 20 8.6 8.6 8.6
BSFLRP n n = 96 24 10 10 10
BSFL n n = 1 20 8.5 8.5 8.5
BSFLP n n = 96 23 10 10 10
DSFR n n = 1 1.3 0.58 0.58 0.58
DSFRP n n = 96 25 11 11 11
DSFL n n = 1 1.3 0.58 0.58 0.58
DSFLP n n = 96 26 11 11 11


BSET n n = 1 7.6 3.3 3.3 3.3
BSETP n n = 15 7.6 3.3 3.3 3.3
BRST n n = 1 7.6 3.3 3.3 3.3
BRSTP n n = 15 7.6 3.3 3.3 3.3
BKRST n n = 1 18 7.8 7.8 7.8
BKRSTP n n = 96 19 8.2 8.2 8.2
Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU
DECO n n = 2 20 8.6 8.6 8.6
DECOP n n = 8 27 12 12 12
DIS n n = 1 18 7.7 7.7 7.7
DISP n n = 4 19 8.3 8.3 8.3
UNI n n = 1 21 8.9 8.9 8.9
UNIP n n = 4 23 9.7 9.7 9.7
WTOB n n = 1 47 20 20 20
WTOBP n n = 96 99 43 43 43
BTOW n n = 1 45 19 19 19
BTOWP n n = 96 89 38 38 38


MAX n n = 1 17 7.1 7.1 7.1
MAXP n n = 96 136 59 59 59
MIN n n = 1 17 7.1 7.1 7.1
MINP n n = 96 159 69 69 69
DMAX n n = 1 27 12 12 12
DMAXP n n = 96 181 78 78 78
DMIN n n = 1 27 12 12 12
DMINP n n = 96 112 48 48 48
WSUM n n = 1 16.4 7.1 7.1 7.1
WSUMP n n = 96 68.4 29.5 29.5 29.5
DWSUM n n = 1 18.9 8.2 8.2 8.2
DWSUMP n n = 96 130.4 56.1 56.1 56.1
FOR n n = 0 2.3 1.0 1.0 1.0
CALL Pn Internal file pointer 2.1 0.88 0.88 0.88
*1: Indicates extension of scan time to completion of instruction.


IXDEV + IXSET Number of contacts 1 48 21 21 21
Number of data points 0 11 4.5 4.5 4.5
Number of data points 96 11 4.5 4.5 4.5
Number of data points 1 13 5.6 5.6 5.6
Number of data points 96 32 14 14 14
Number of data points 1 16 7.0 7.0 7.0
Number of data points 96 16 7.0 7.0 7.0
Number of data points 0 20 8.4 8.4 8.4
Number of data points 96 36 15 15 15
Number of data points 1 19 7.5 7.5 7.5
Number of data points 96 39 15 15 15
Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU
PR SM701ON Variable 1 character 33 11 11 ––
*1 : The upper row indicates the processing time when A38B/A1S38B and the extension base are used.
The center row indicates the processing time when A38HB/A1S38HB is used. The bottom row indicates the processing times taken when the Q312B is used to execute the instruction for the QJ71C24 in slot 0. The FROM/TO instruction differs in processing time according to the number of slots and the loaded modules. (The QnCPU/QnHCPU also differs in processing time according to the extension base type.)


LED instruction execution no display 103 44 44 44


Decimal point format all 2-digit specification 100 43 43 43
Exponent format all 6-digit specification 127 55 55 55
ASC n n = 1 64 28 28 28
ASCP n n = 96 289 125 125 125
HEX n n = 1 60 26 26 26
HEXP n n = 96 343 148 148 148
Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU
RIGHT n n = 1 49 21 21 21
RIGHTP n n = 96 131 56 56 56
LEFT n n = 1 50 21 21 21
LEFTP n n = 96 131 56 56 56

Qn QnH QnPH QnPRH
–– 527 227 227 227
EREXP
–– 1656 713 713 713
SIN
Single precision 115 50 50 50
Double precision 1945 837 –– ––
Single precision 122 53 53 53
Double precision 2618 1127 –– ––
Single precision 123 53 53 53
TANP
Double precision 2618 1127 –– ––
Single precision 111 48 48 48
Double precision 2491 1072 –– ––
Single precision 115 49 49 49
Double precision 2367 1019 –– ––
Single precision 157 68 68 68
ATANP
Double precision 3140 1352 –– ––
Single precision 17 7.2 7.2 7.2
Double precision 24 10 –– ––
Single precision 17 7.2 7.2 7.2
Double precision 23 9.9 –– ––
Single precision 28 12 12 12
SQRP
Double precision 1812 780 –– ––
129 56 56 56 = 1
EXPP
2386 1026 –– –– = 1
113 49 49 49 = 10
LOGP
2146 924 –– –– = 10
–– 3.9 1.7 1.7 1.7
SRND
–– 3.5 1.5 1.5 1.5
App-44

Qn QnH QnPH QnPRH
= 0 6.2 2.7 2.7 2.7
BSQRP
= 9999 38 16 16 16
= 0 6.2 2.7 2.7 2.7
BDSQRP
= 99999999 38 16 16 16
–– 12 5.1 5.1 5.1
BCOS
–– 12 5.2 5.2 5.2
BTAN
–– 12 5.2 5.2 5.2
BASIN
A
–– 20 8.7 8.7 8.7
BACOS
–– 21 9.0 9.0 9.0
BATAN
–– 22 9.6 9.6 9.6
LIMIT
–– 10 4.3 4.3 4.3
DLIMIT
–– 11 4.7 4.7 4.7
BAND
–– 9.8 4.2 4.2 4.2
DBAND
–– 11 4.9 4.9 4.9
ZONE
–– 9.1 3.9 3.9 3.9
Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU
–– 11 4.6 4.6 4.6
RSET
–– 6.8 2.9 2.9 2.9
QDRSET
–– 205 88 88 88
QCDSET
–– 147 63 63 63
DATERD
–– 13 5.5 5.5 5.5
DATEWR
–– 15 6.4 6.4 6.4
App-45
Processing Time (µs) · Instruction Condition (Device)

Qn QnH QnPH QnPRH
No digit increase 13 5.4 5.4 5.4
DATE+P
Digit increase 13 5.4 5.4 5.4
No digit increase 12 5.2 5.2 5.2
Digit increase 12 5.2 5.2 5.2
–– 10 4.5 4.5 4.5
HOUR
–– 12 5.2 5.2 5.2
1 character 3.0 1.3 1.3 1.3
32 characters 3.0 1.3 1.3 1.3
Initial time 20 8.6 8.6 8.6
No reception 19 8.2 8.2 8.2
–– 79 34 34 34
POFF
–– 79 34 34 34
PSCAN
–– 75 32 32 32
PLOW
–– 80 34 34 ––
WDT
–– 5.9 2.6 2.6 2.6
DUTY –– 9.3 4.0 4.0 4.0
ZRRDB
–– 7.9 3.4 3.4 3.4
ZRWRB
–– 9.4 4.0 4.0 4.0
ADRSET
–– 4.9 2.1 2.1 2.1
KEY –– 17 7.3 7.3 ––
ZPUSH
–– 11 4.7 4.7 4.7
ZPOP
–– 5.1 2.2 2.2 2.2
EROMWR
––
App-46
Processing Time (µs) · Instruction Condition (Device)

Qn QnH QnPH QnPRH
READ –– –– –– –– ––
SREAD –– –– –– –– ––
WRITE –– –– –– –– ––
SWRITE –– –– –– –– ––
SEND –– –– –– –– ––
RECV –– –– –– –– ––
REQ –– –– –– –– ––
ZNFR –– –– –– –– ––
ZNTO –– –– –– –– ––
MELSECNET/10 –– –– –– ––
ZNRD
MELSECNET (II) –– –– –– ––
A
MELSECNET/10 –– –– –– ––
ZNWR
MELSECNET (II) –– –– –– ––
RFRP –– –– –– –– ––
RTOP –– –– –– –– ––
(4) Processing time for QCPU instructions (QCPU instructions only)
(a) Instructions available from function version A
Qn QnH QnPH QnPRH
Start 176
STRA execution completion 6.3 2.7 2.7 2.7
Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU
SP.FREAD –– 82 35 35 35
PLOADP –– 58 25 25 ––
PUNLOADP –– 272 117 117 ––
PSWAPP –– 308 133 133 ––
1 point 45.5 20 20 20
When standard RAM is used
1000 points 215 91 91 91
1 point 49.5 22 22 22
When SRAM card is used
1000 points 540 305 305 305

(b) Instructions available from function version B
Instruction Condition/Number of Points Processed Processing Time (µs)
Qn QnH QnPH QnPRH
(0.5k words
720 660 660 ––
assigned equally to all CPUs)
With auto refresh of
(1k words assigned equally to all
860 730 730 ––
Without auto refresh of
–– 43 20 20 20
n3 = 1 59 29 29 ––
n3 = 1000 530 500 500 ––
Main base unit 51 24 24 ––
Extension base unit 54 27 27 ––
n3 = 1000 Main base unit 540 480 480 ––
Extension base unit 1100 1050 1050 ––
n3 = 1 ("TO" instruction)
Writing to CPU shared
n4 = 1 ("S.TO instruction") 74 33 33 ––
memory of host CPU
n2 = 256 126 54 54 ––
S (P).DATERD *3 Reading data of the
–– 25 11 11 11
S (P).DATE+ *3 Expansion clock data
–– 38 17 17 17
S (P).DATE- *3 Expansion clock data
–– 38 17 17 17
*1 : If the processing overlaps those of the other CPUs in a multiple CPU system, the processing time
increases by a maximum of the following time.
For system having only the main base unit
(Instruction processing time increase) = 0.54 (number of points processed) (number of other CPUs) (µs)
For system including extension base units
(Instruction processing time increase) = 1.30 (number of points processed) (number of other CPUs) (µs)
*2 : In a multiple CPU system, the instruction processing time for the intelligent function module under control
of the host CPU is equal to that for the intelligent function module under control of another CPU. *3 : Products with the first 5 digits of the serial No. "07032" or higher are applicable.
(5) Redundant system instructions (for redundant CPU)
Qn QnH QnPH QnPRH
App-48

(6) Table of the time to be added when file register, module access device or link direct device is
Instruction data Device Specification
Qn QnH QnPH QnPRH
Source 5.56 2.40 2.40 2.40
Destination 4.44 1.91 1.91 1.91
Source 2.60 1.12 1.12 1.12
Destination 3.76 1.62 1.62 1.62
Source 2.83 1.22 1.22 1.22
Destination 4.00 1.72 1.72 1.72
Source 5.22 2.25 2.25 2.25
Destination 4.09 1.76 1.76 1.76
Source 2.25 0.97 0.97 0.97
Destination 3.42 1.47 1.47 1.47
Source 2.49 1.07 1.07 1.07
Destination 3.65 1.57 1.57 1.57
Source 35.56 15.31 15.31 15.31
Destination 65.08 28.01 28.01 28.01
Source 32.76 14.10 14.10 14.10
(Un\G , U3En\G0 to G4095)
Destination 28.84 12.41 12.41 12.41
Source 32.99 14.20 14.20 14.20
Destination 29.07 12.51 12.51 12.51
Source 75.67 32.57 32.57 32.57
Destination 138.65 59.67 59.67 59.67
Source 72.73 31.30 31.30 31.30
Link direct device (Jn\ )
Destination 137.32 59.10 59.10 59.10
Source 72.96 31.40 31.40 31.40
Destination 137.55 59.20 59.20 59.20
Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU

Model QCPU
The processing time for the individual instructions are shown in the table on the following pages.
Operation processing times can vary substantially depending on the nature of the sources and destinations of the instructions, and the values contained in the following tables should therefore be taken as a set of general guidelines to processing time rather than as being strictly accurate. Appendix 1.4.1 Subset instruction processing time
The following describes the subset instruction processing time.
(1) Subset instruction processing time table
(a) When using Q00UJCPU, Q00UCPU, Q01UCPU and Q02UCPU.
Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max. Min. Max.
LDI
AND
ANI
OR
ORI
When executed 0.120 0.080 0.060 0.040
LDF
ANDP
ANDF
ORP
ORF
LDPI LDFI When executed 0.360 0.240 0.180 0.120
When executed 0.480 0.320 0.240 0.160
0.120 0.080 0.060 0.040 When changed
0.120 0.080 0.060 0.040 When executed
App-50


Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU



Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max. Min. Max.
+ When executed 0.360 0.240 0.180 0.120
+ When executed 0.480 0.320 0.240 0.160
- When executed 0.360 0.240 0.180 0.120
- When executed 0.480 0.320 0.240 0.160
D + When executed 0.360 0.240 0.180 0.120
D + When executed 0.480 0.320 0.240 0.160
D - When executed 0.360 0.240 0.180 0.120
D - When executed 0.480 0.320 0.240 0.160
A
* When executed 0.420 0.300 0.240 0.180
/ When executed 0.520 0.400 0.340 0.280
D * When executed 0.500 0.380 0.320 0.260
D/ When executed 0.640 0.520 0.460 0.400
B + When executed 3.100 12.300 3.100 12.300 3.100 12.300 3.300 8.300
B + When executed 5.900 13.500 5.900 13.500 5.900 13.500 4.600 6.200
B - When executed 3.150 12.300 3.150 12.300 3.150 12.300 3.300 9.000
B - When executed 5.950 13.600 5.950 13.600 5.950 13.600 4.600 8.200
B * When executed 3.700 12.100 3.700 12.100 3.700 12.100 4.000 8.200
B/ When executed 4.000 14.000 4.000 14.000 4.000 14.000 4.200 12.400
Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
= 0, = 0 0.420 0.300 0.240 0.180
E +
S D
= 2127, = 2127 0.420 0.300 0.240 0.180
= 0, = 0 0.540 0.380 0.300 0.220
E +
S1 S2 D
= 2127, = 2127 0.540 0.380 0.300 0.220
= 0, = 0 0.420 0.300 0.240 0.180
E -
S D
= 2127, = 2127 0.420 0.300 0.240 0.180
= 0, = 0 0.540 0.380 0.300 0.220
E -
S1 S2 D
= 2127, = 2127 0.540 0.380 0.300 0.220
= 0, = 0 0.420 0.300 0.240 0.180
E *
S1 S2 D
= 2127, = 2127 0.420 0.300 0.240 0.180
precision = 2127, = 2127 4.900 18.900 4.900 18.900 4.900 18.900 5.100 14.100
S1 S2 D S1 S2
INC When executed 0.240 0.160 0.120 0.080
DINC When executed 0.240 0.160 0.120 0.080
DEC When executed 0.240 0.160 0.120 0.080
DDEC When executed 0.240 0.160 0.120 0.080
BCD When executed 0.320 0.240 0.200 0.160
DBCD When executed 0.400 0.320 0.280 0.240
BIN When executed 0.260 0.180 0.140 0.100
DBIN When executed 0.260 0.180 0.140 0.100


n=1 4.200 4.600 4.200 4.600 4.200 4.600 4.100 4.500 n=96 4.850 5.150 4.850 5.150 4.850 5.150 4.700 5.100 SM237=
n=1 6.800 11.300 6.800 11.300 6.800 11.300 6.300 8.900 n=96 7.450 11.900 7.450 11.900 7.450 11.900 5.900 9.500
n=1 4.100 4.600 4.100 4.600 4.100 4.600 4.100 4.600
n=96 4.800 5.200 4.800 5.200 4.800 5.200 4.800 5.200 SM237=
n=1 4.600 8.250 4.600 8.250 4.600 8.250 4.600 7.900 n=96 6.150 10.600 6.150 10.600 6.150 10.600 5.300 8.500
XCH –– 2.250 8.100 2.250 8.100 2.250 8.100 2.500 6.000
DXCH –– 2.400 8.200 2.400 8.200 2.400 8.200 2.800 7.900
n=1 2.700 2.800 2.700 2.800 2.700 2.800 2.350 2.450 n=96 6.500 6.800 6.500 6.800 6.500 6.800 5.950 6.000 SM237=
n=1 4.000 8.150 4.000 8.150 4.000 8.150 3.000 6.950 n=96 8.000 12.200 8.000 12.200 8.000 12.200 6.600 10.600
CJ –– 3.500 10.100 3.500 10.100 3.500 10.100 1.900 10.100
SCJ –– 3.500 10.100 3.500 10.100 3.500 10.100 1.900 10.100
JMP –– 3.500 10.100 3.500 10.100 3.500 10.100 1.900 10.100

Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max. Min. Max.
n = 1 2.250 10.800 2.250 10.800 2.250 10.800 2.300 7.800
n = 15 2.250 10.800 2.350 10.800 2.350 10.800 2.400 7.800
n = 1 2.250 10.800 2.250 10.800 2.250 10.800 2.300 3.900
n = 15 2.250 10.800 2.250 10.800 2.250 10.800 2.400 4.100
n = 1 2.250 10.800 2.350 10.800 2.350 10.800 2.500 4.600
n = 15 2.250 10.800 2.350 10.800 2.350 10.800 2.400 4.600
n = 1 2.250 11.500 2.300 11.500 2.300 11.500 2.400 7.500
n = 15 2.250 11.500 2.300 11.500 2.300 11.500 2.500 7.500
n = 1 2.350 11.500 2.350 11.500 2.350 11.500 2.400 10.300
n = 31 2.350 11.500 2.350 11.500 2.350 11.500 2.500 10.300
n = 1 2.350 13.300 2.350 13.300 2.350 13.300 2.500 12.700
n = 31 2.350 14.900 2.350 14.900 2.350 14.900 2.500 12.700
n = 1 2.350 10.800 2.350 10.800 2.350 10.800 2.500 11.800
n = 31 2.350 10.800 2.350 10.800 2.350 10.800 2.500 11.800
n = 1 2.350 13.300 2.350 13.300 2.350 13.300 2.500 5.100
n = 31 2.350 13.300 2.350 13.300 2.350 13.300 2.500 5.100
n = 1 2.350 9.900 2.350 9.900 2.350 9.900 2.400 6.100
n = 15 2.350 9.900 2.350 9.900 2.350 9.900 2.300 5.700
n = 1 2.350 9.850 2.350 9.850 2.350 9.850 2.400 4.300
n = 15 2.350 9.850 2.350 9.850 2.350 9.850 2.400 4.300
n = 1 3.250 15.500 3.250 15.500 3.250 15.500 3.300 12.000
n = 96 32.600 45.000 32.600 45.000 32.600 45.000 32.600 42.200
n = 1 3.200 15.500 3.200 15.500 3.200 15.500 3.300 8.200
n = 96 32.600 45.100 32.600 45.100 32.600 45.100 32.600 37.700
= 0 3.100 8.950 3.100 8.950 3.100 8.950 3.400 6.700
Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
= FFFFH 3.000 8.850 3.000 8.850 3.000 8.850 3.500 6.700
SEG When executed 2.100 7.700 2.100 7.700 2.100 7.700 2.100 5.900
FOR –– 1.500 7.500 1.500 7.500 1.500 7.500 1.200 6.300
Internal file pointer 4.800 5.400 4.800 5.400 4.800 5.400 2.700 4.800
Common pointer 7.100 30.500 7.100 30.500 7.100 30.500 4.400 5.700
CALL Pn to –– 50.200 62.000 50.200 62.000 50.200 62.000 28.700 42.600
Remark
For the instructions for which a leading edge instruction ( P) is not described, the processing time is the same as an ON execution instruction.
MOVP instruction, WANDP instruction etc.

(b) When using Q03UD(E)HCPU, Q04UD(E)HCPU, Q06UD(E)HCPU,
Q03UD(E)CPU Q04/Q06UD(E)HCPU Q10/Q13/Q20/ Q26UD(E)HCPU
Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max.
LDI
AND
ANI
OR
ORI
When executed 0.020 0.0095 0.0095
LDF
ANDP
ANDF
ORP
ORF
LDPI
When executed 0.060 0.0285 0.0285
ANDPI
ANDFI
When executed 0.080 0.038 0.038
ORFI
OUT
0.020 0.0095 0.0095 When changed
RST When not executed 0.020 0.0095 0.0095


Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU




B + When executed 3.300 5.500 3.000 4.100 3.000 4.100
B + When executed 4.600 6.200 4.200 5.900 4.200 5.900
B - When executed 3.300 4.400 2.900 3.800 2.900 3.800
B - When executed 4.600 6.300 4.200 4.600 4.200 4.600
B * When executed 4.000 4.800 3.400 4.800 3.400 4.800
B/ When executed 4.200 5.700 3.700 5.200 3.700 5.200
Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
= 2127, = 2127 0.120 0.057 0.057
= 2127, = 2127 0.140 0.0665 0.0665
= 2127, = 2127 0.120 0.057 0.057
= 2127, = 2127 0.140 0.0665 0.0665
= 2127, = 2127 0.120 0.057 0.057
precision = 2127, = 2127 4.500 5.600 3.900 4.900 0.285

Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max.
= 0 0.100 0.0475 0.0475
= 0 0.100 0.0475 0.0475
= 0 0.100 0.0475 0.0475
= 32766.5 0.100 0.0475 0.0475
= 0 0.100 0.0475 0.0475
= 1234567890.3 0.100 0.0475 0.0475
DMOV –– 0.040 0.019 0.019
EMOV –– 0.040 0.019 0.019
CML –– 0.040 0.019 0.019
DCML –– 0.040 0.019 0.019
6.300 8.200 5.400 7.000 5.400 7.000
n = 1 SM237=OFF*1 8.200 10.600 3.900 5.100 3.900 5.100
BMOV
7.100 8.800 5.900 7.600 5.900 7.600
n = 96 SM237=OFF*1 9.300 11.900 4.400 5.700 4.400 5.700
5.300 5.900 4.200 4.800 4.200 4.800
n = 1 SM237=OFF*1 7.000 8.000 3.400 3.800 3.400 3.800
FMOV
5.300 7.600 4.400 6.800 4.400 6.800
n = 96 SM237=OFF*1 7.400 12.200 3.600 5.800 3.600 5.800
XCH –– 2.500 2.900 1.800 2.300 1.800 2.300
DXCH –– 2.800 3.700 2.100 2.900 2.100 2.900
n=1 SM237=OFF 2.600 3.750 2.250 3.150 2.250 3.150 SM237=ON 2.050 2.250 1.750
n=96 SM237=OFF 5.850 7.350 4.200 5.500 4.200 5.500 SM237=ON 5.300 6.000 3.650 4.150 3.650 4.150
SCJ –– 1.800 2.800 1.400 2.400 1.400 2.400
JMP –– 1.800 2.800 1.100 2.400 1.100 2.400 *1 : Can be used onliy for the Q03UDCPU, Q04UDHCPU and Q06UDHCPU whose first 5 digits of serial number is “10012” or later. *2 : Can be used onliy for the Q03UD(E)CPU, Q04UD(E)HCPU, Q06UD(E)HCPU, Q13UD(E)HCPU and Q26UD(E)HCPU whose first 5 digits of serial number is “10012” or later.



Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU


n = 1 2.300 3.100 1.700 2.500 1.700 2.500
n = 15 2.400 3.100 1.800 2.500 1.800 2.500
n = 1 2.300 3.900 1.700 3.200 1.700 3.200
n = 15 2.400 4.100 1.700 3.200 1.700 3.200
n = 1 2.400 3.300 1.800 3.200 1.800 3.200
n = 15 2.400 3.300 1.800 3.200 1.800 3.200
n = 1 2.400 2.700 1.800 2.100 1.800 2.100
n = 15 2.400 2.800 1.800 2.200 1.800 2.200
n = 1 2.400 3.400 1.900 2.700 1.900 2.700
n = 31 2.500 3.400 1.900 2.700 1.900 2.700
n = 1 2.500 4.800 1.900 4.200 1.900 4.200
n = 31 2.500 4.900 1.900 4.200 1.900 4.200
n = 1 2.500 3.900 1.800 3.200 1.800 3.200
n = 31 2.500 3.900 1.800 3.300 1.800 3.300
n = 1 2.500 4.800 1.900 3.800 1.900 3.800
n = 31 2.500 4.600 1.900 3.800 1.900 3.800
n = 1 2.400 3.900 1.700 2.600 1.700 2.600
n = 15 2.300 3.900 1.800 2.600 1.800 2.600
n = 1 2.400 4.300 1.800 2.700 1.800 2.700
n = 15 2.400 4.300 1.800 2.700 1.800 2.700
n = 1 2.700 4.800 2.200 4.300 2.200 4.300
n = 96 32.600 35.900 23.900 26.100 23.900 26.100
n = 1 2.700 4.600 2.100 4.000 2.100 4.000
n = 96 32.600 35.300 23.700 25.800 23.700 25.800
= FFFFH 3.500 4.200 2.900 3.600 2.900 3.600
SEG When executed 2.100 2.800 1.500 2.100 1.500 2.100
Internal file pointer 2.600 4.000 2.300 3.600 2.300 3.600
CALL Pn to –– 28.700 33.400 26.100 29.300 26.100 29.300
For the instructions for which a leading edge instruction ( P) is not described, the processing time is the same as an ON execution instruction.
MOVP instruction, WANDP instruction etc.

(2) Table of the time to be added when file register, module access device is used
(a) When using Q00UJCPU, Q00UCPU, Q01UCPU and Q02UCPU
Device name data Device Specification
Source 0.100
Destination 0.220
Source 0.100
When standard RAM is used
Destination 0.100
Source 0.200
Destination 0.200
Source –– –– –– 0.220
When SRAM card is used (Q2MEM-1MBS, Q2MEM-2MBS)
Destination –– –– –– 0.420
Source –– –– –– 0.220
Destination –– –– –– 0.180
Source –– –– –– 0.440
Destination –– –– –– 0.380
Source –– –– –– 0.160
Destination –– –– –– 0.320
When SRAM card is used (Q3MEM-4MBS, Q3MEM-8MBS)
Source –– –– –– 0.160
Destination –– –– –– 0.140
Source –– –– –– 0.320
Destination –– –– –– 0.300
Source 0.220 0.180 0.160 0.140
Destination 0.280 0.320 0.300 0.280
Source 0.220 0.180 0.160 0.140
When standard RAM is used
Destination 0.220 0.180 0.160 0.140
Source 0.320 0.280 0.260 0.240
Destination 0.320 0.280 0.260 0.240
Source –– –– –– 0.260
Destination –– –– –– 0.480
When SRAM card is used (Q2MEM-1MBS, Q2MEM-2MBS)
Source –– –– –– 0.260
Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
Destination –– –– –– 0.220
Source –– –– –– 0.480
Destination –– –– –– 0.420
Source –– –– –– 0.200
When SRAM card is used (Q3MEM-4MBS, Q3MEM-8MBS)
Destination –– –– –– 0.380
Source –– –– –– 0.200
Destination –– –– –– 0.180
Source –– –– –– 0.360
Destination –– –– –– 0.340
Source ––
Module access device (Multiple CPU high speed trans- mission area) (U3En\G10000)
Destination ––
Source ––
Destination ––
Source ––
Destination ––

(b) When using Q03UD(E)CPU, Q04UD(E)HCPU, Q06UD(E)HCPU, Q10UD(E)HCPU, Q13UDE(H)CPU,Q20UD(E)HCPU and Q26UD(E)HCPU
Device name data Device Specification
Q26UD(E)HCPU
Source 0.100 0.048 0.048
Destination 0.100 0.038 0.038
When standard RAM is used
Source 0.100 0.048 0.048
Destination 0.100 0.038 0.038
Source 0.200 0.095 0.095
Destination 0.200 0.086 0.086
Source 0.220 0.200 0.200
When SRAM card is used (Q2MEM-1MBS, Q2MEM-2MBS)
Destination 0.180 0.162 0.162
Source 0.220 0.200 0.200
Destination 0.180 0.162 0.162
Source 0.440 0.399 0.399
Destination 0.380 0.361 0.361
Source 0.160 0.152 0.152
Destination 0.140 0.133 0.133
When SRAM card is used (Q3MEM-4MBS, Q3MEM-8MBS)
Source 0.160 0.152 0.152
Destination 0.140 0.133 0.133
Source 0.320 0.304 0.304
Destination 0.300 0.295 0.295
Source 0.120 0.057 0.057
Destination 0.120 0.048 0.048
Source 0.120 0.057 0.057
When standard RAM is used
Destination 0.120 0.048 0.048
Source 0.220 0.105 0.105
Destination 0.220 0.095 0.095
Source 0.240 0.209 0.209
When SRAM card is used (Q2MEM-1MBS, Q2MEM-2MBS)
Destination 0.200 0.171 0.171
Source 0.240 0.209 0.209
Destination 0.200 0.171 0.171
Source 0.460 0.409 0.409
Destination 0.400 0.371 0.371
Source 0.180 0.162 0.162
Destination 0.160 0.143 0.143
When SRAM card is used (Q3MEM-4MBS, Q3MEM-8MBS)
Source 0.180 0.162 0.162
Destination 0.160 0.143 0.143
Source 0.340 0.314 0.314
Destination 0.320 0.304 0.304
Source 0.220 0.181 0.181
Destination 0.140 0.105 0.105
Module access device (Multiple CPU high speed trans- mission area) (U3En\G10000)
Source 0.220 0.181 0.181
Destination 0.140 0.105 0.105
Source 0.500 0.437 0.437
Destination 0.340 0.285 0.285

(3) Table of the time to be added when F/T(ST)/C device is used in OUT/SET/RST instruction
(a) When using Q00UJCPU, Q00UCPU, Q01UCPU amd Q02UCPU.
name Device name Condition
When not executed 2.900 2.900 2.900 2.100
When displayed 116.000 116.000 116.000 68.800
Display completed 116.000 116.000 116.000 61.600
When not executed 0.360 0.240 0.180 0.120
After time up 0.360 0.240 0.180 0.120
When added 0.360 0.240 0.180 0.120
When not executed 0.120 0.080 0.006 0.004
When displayed 116.000 116.000 116.000 68.600
Display completed 116.000 116.000 116.000 65.700
When not executed 0.120 0.080 0.006 0.004
When displayed 55.800 55.800 55.800 26.500
Display completed 29.200 29.200 29.200 21.600
When not executed 0.360 0.240 0.180 0.120
When executed 0.360 0.240 0.180 0.120
(b) When using Q03UD(E)CPU, Q04UD(E)HCPU, Q06UD(E)HCPU, Q10UD(EHCPU,
Q13UD(E)HCPU, Q20UD(E)HCPU and Q26UD(E)HCPU
name Device name Condition
When not executed 1.940 1.570 1.570
When displayed 39.930 38.090 38.090
Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
Display completed 39.750 37.980 37.980
When not executed 0.060 0.030 0.030
When executed After time up 0.060 0.030 0.030
When not executed 0.000 0.000 0.000
When displayed 42.900 40.600 40.600
Display completed 39.270 37.900 37.900
When not executed 0.000 0.000 0.000
When displayed 45.260 36.600 36.600
RST
Display completed 19.020 16.190 16.190
When not executed 0.060 0.030 0.030
When executed 0.060 0.030 0.030

The following table shows the processing time of instructions other than subset instructions.
(1) Table of the processing time of instructions other than subset instructions
(a) When using Q00UJCPU, Q00UCPU, Q01UCPU and Q02UCPU
Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max. Min. Max.
ORB
MPS
–– 0.120 0.080 0.060 0.040
MPP
INV
0.120 0.080 0.060 0.040 When executed
0.120 0.080 0.060 0.040 When executed
EGP
0.120 0.080 0.060 0.040 When executed
PLS –– 1.800 1.900 1.800 1.900 1.800 1.900 1.300 1.600
PLF –– 1.800 1.900 1.800 1.900 1.800 1.900 1.600 1.700
When not executed 0.240 0.160 0.120 0.080
When executed 1.700 1.800 1.700 1.800 1.700 1.800 1.200 1.500
When not executed 0.240 0.160 0.120 0.080
When executed 4.000 14.700 4.000 14.700 4.000 14.700 2.800 3.600
When not executed 0.240 0.160 0.120 0.800
When executed 1.800 12.600 1.800 12.600 1.800 12.600 1.600 6.600
MCR –– 0.120 0.080 0.060 0.040
FEND
Error check performed 250.000 175.000 252.000
No error check performed 250.000 175.000 221.000

Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max. Min. Max.
NOPLF
–– 0.120 0.080 0.060 0.040
In conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.700 10.100
In non-conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.700 10.100
When not executed 0.360 0.240 0.180 0.120
In conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.200 12.500
In non-conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.400 11.900
When not executed 0.360 0.240 0.180 0.120
In conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.600 10.800
In non-conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.500 9.800
In conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.700 7.700
In non-conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.600 8.200
When not executed 0.360 0.240 0.180 0.120
In conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.300 14.200
In non-conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.400 14.200
When not executed 0.360 0.240 0.180 0.120
In conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.600 6.700
In non-conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.400 6.600
In conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.700 13.700
In non-conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.600 13.700
When not executed 0.360 0.240 0.180 0.120
In conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.300 8.100
In non-conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.200 8.100
When not executed 0.360 0.240 0.180 0.120
Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
In conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.600 8.500
In non-conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.400 8.100
In conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.700 11.100
In non-conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.700 9.600
When not executed 0.360 0.240 0.180 0.120
In conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.100 7.800
In non-conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.400 8.200
When not executed 0.360 0.240 0.180 0.120
In conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.500 10.300
In non-conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.400 9.800
In conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.700 11.500
In non-conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.700 10.900
When not executed 0.360 0.240 0.180 0.120
In conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.300 9.200
In non-conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.400 9.400
When not executed 0.360 0.240 0.180 0.120
In conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.600 10.400
In non-conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.400 9.800

Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max. Min. Max.
In conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.700 12.200
In non-conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.700 11.800
When not executed 0.360 0.240 0.180 0.120
In conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.100 6.700
In non-conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.400 7.000
When not executed 0.360 0.240 0.180 0.120
In conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.600 14.000
In non-conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.500 14.300
In conductive status 4.700 37.400 4.700 37.400 4.700 37.400 4.200 21.000
In non-conductive status 4.700 37.400 4.700 37.400 4.700 37.400 5.100 21.900
When not executed 0.360 0.240 0.180 0.120
In conductive status 4.500 34.700 4.500 34.700 4.500 34.700 3.800 17.800
In non-conductive status 4.500 34.700 4.500 34.700 4.500 34.700 4.100 18.100
When not executed 0.360 0.240 0.180 0.120
In conductive status 4.700 33.200 4.700 33.200 4.700 33.200 4.100 23.800
In non-conductive status 4.700 33.200 4.700 33.200 4.700 33.200 4.900 25.500
In conductive status 4.700 37.400 4.700 37.400 4.700 37.400 5.100 23.500
In non-conductive status 4.700 37.400 4.700 37.400 4.700 37.400 4.200 22.600
When not executed 0.360 0.240 0.180 0.120
In conductive status 4.500 34.700 4.500 34.700 4.500 34.700 4.000 18.800
In non-conductive status 4.500 34.700 4.500 34.700 4.500 34.700 4.000 18.700
When not executed 0.360 0.240 0.180 0.120
In conductive status 4.700 33.200 4.700 33.200 4.700 33.200 5.000 25.200
In non-conductive status 4.700 33.200 4.700 33.200 4.700 33.200 4.100 23.400
In conductive status 4.700 37.400 4.700 37.400 4.700 37.400 5.100 25.100
In non-conductive status 4.700 37.400 4.700 37.400 4.700 37.400 4.200 23.400
When not executed 0.360 0.240 0.180 0.120
In conductive status 4.500 34.700 4.500 34.700 4.500 34.700 4.000 19.500
In non-conductive status 4.500 34.700 4.500 34.700 4.500 34.700 4.100 19.700
When not executed 0.360 0.240 0.180 0.120
In conductive status 4.700 33.200 4.700 33.200 4.700 33.200 5.000 24.200
In non-conductive status 4.700 33.200 4.700 33.200 4.700 33.200 4.900 25.800
In conductive status 4.700 37.400 4.700 37.400 4.700 37.400 4.200 22.500
In non-conductive status 4.700 37.400 4.700 37.400 4.700 37.400 4.200 13.500
When not executed 0.360 0.240 0.180 0.120
In conductive status 4.500 34.700 4.500 34.700 4.500 34.700 4.000 19.600
In non-conductive status 4.500 34.700 4.500 34.700 4.500 34.700 4.100 19.700
When not executed 0.360 0.240 0.180 0.120
In conductive status 4.700 33.200 4.700 33.200 4.700 33.200 5.000 26.300
In non-conductive status 4.700 33.200 4.700 33.200 4.700 33.200 5.000 25.200

Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max. Min. Max.
In conductive status 4.700 37.400 4.700 37.400 4.700 37.400 5.100 25.000
In non-conductive status 4.700 37.400 4.700 37.400 4.700 37.400 4.200 24.100
When not executed 0.360 0.240 0.180 0.120
In conductive status 4.500 34.700 4.500 34.700 4.500 34.700 4.000 19.400
In non-conductive status 4.500 34.700 4.500 34.700 4.500 34.700 4.100 19.700
When not executed 0.360 0.240 0.180 0.120
In conductive status 4.700 33.200 4.700 33.200 4.700 33.200 5.000 25.100
In non-conductive status 4.700 33.200 4.700 33.200 4.700 33.200 5.000 25.100
In conductive status 4.700 37.400 4.700 37.400 4.700 37.400 4.200 13.100
In non-conductive status 4.700 37.400 4.700 37.400 4.700 37.400 4.300 13.100
When not executed 0.360 0.240 0.180 0.120
In conductive status 4.500 34.700 4.500 34.700 4.500 34.700 3.900 19.500
In non-conductive status 4.500 34.700 4.500 34.700 4.500 34.700 4.100 19.800
When not executed 0.360 0.240 0.180 0.120
In conductive status 4.700 33.200 4.700 33.200 4.700 33.200 5.000 25.100
In non-conductive status 4.700 33.200 4.700 33.200 4.700 33.200 4.200 18.500
In conductive status 8.300 38.500 8.300 38.500 8.300 38.500 5.500 14.900
In non-conductive status 8.300 38.500 8.300 38.500 8.300 38.500 5.500 15.600
When not executed 0.360 0.240 0.180 0.120
In conductive status 7.200 37.300 7.200 37.300 7.200 37.300 5.200 13.800
In non-conductive status 7.200 37.300 7.200 37.300 7.200 37.300 5.300 14.500
When not executed 0.360 0.240 0.180 0.120
In conductive status 7.500 36.600 7.500 36.600 7.500 36.600 5.500 14.900
In non-conductive status 7.500 36.600 7.500 36.600 7.500 36.600 5.300 14.600
In conductive status 8.300 39.300 8.300 39.300 8.300 39.300 5.600 15.200
Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
In non-conductive status 8.300 39.300 8.300 39.300 8.300 39.300 5.600 15.400
When not executed 0.360 0.240 0.180 0.120
In conductive status 8.000 38.200 8.000 38.200 8.000 38.200 4.300 21.500
In non-conductive status 8.000 38.200 8.000 38.200 8.000 38.200 4.500 23.400
When not executed 0.360 0.240 0.180 0.120
In conductive status 8.300 37.300 8.300 37.300 8.300 37.300 5.400 17.700
In non-conductive status 8.300 37.300 8.300 37.300 8.300 37.300 5.300 19.400
In conductive status 8.300 41.600 8.300 41.600 8.300 41.600 6.400 19.200
In non-conductive status 8.300 41.600 8.300 41.600 8.300 41.600 5.600 20.100
When not executed 0.360 0.240 0.180 0.120
In conductive status 8.000 38.100 8.000 38.100 8.000 38.100 4.500 15.400
In non-conductive status 8.000 38.100 8.000 38.100 8.000 38.100 4.600 15.300
When not executed 0.360 0.240 0.180 0.120
In conductive status 8.200 35.700 8.200 35.700 8.200 35.700 5.400 20.000
In non-conductive status 8.200 35.700 8.200 35.700 8.200 35.700 5.400 22.100
In conductive status 8.300 39.200 8.300 39.200 8.300 39.200 5.800 12.800
In non-conductive status 8.300 39.200 8.300 39.200 8.300 39.200 6.300 13.900
When not executed 0.360 0.240 0.180 0.120
In conductive status 7.100 36.500 7.100 36.500 7.100 36.500 6.000 16.000
In non-conductive status 7.100 36.500 7.100 36.500 7.100 36.500 6.100 16.200

Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max. Min. Max.
When not executed 0.360 0.240 0.180 0.120
In conductive status 7.400 35.600 7.400 35.600 7.400 35.600 4.700 14.600
In non-conductive status 7.400 35.600 7.400 35.600 7.400 35.600 4.600 14.400
In conductive status 7.400 40.000 7.400 40.000 7.400 40.000 4.800 17.000
In non-conductive status 7.400 40.000 7.400 40.000 7.400 40.000 5.500 18.000
When not executed 0.360 0.240 0.180 0.120
In conductive status 8.000 37.300 8.000 37.300 8.000 37.300 5.900 13.400
In non-conductive status 8.000 37.300 8.000 37.300 8.000 37.300 6.200 14.500
When not executed 0.360 0.240 0.180 0.120
In conductive status 8.300 35.600 8.300 35.600 8.300 35.600 6.200 18.700
In non-conductive status 8.300 35.600 8.300 35.600 8.300 35.600 5.400 19.700
In conductive status 7.400 38.300 7.400 38.300 7.400 38.300 4.800 10.000
In non-conductive status 7.400 38.300 7.400 38.300 7.400 38.300 5.500 11.200
When not executed 0.360 0.240 0.180 0.120
In conductive status 7.200 37.300 7.200 37.300 7.200 37.300 4.400 21.600
In non-conductive status 7.200 37.300 7.200 37.300 7.200 37.300 4.500 21.800
When not executed 0.360 0.240 0.180 0.120
In conductive status 8.200 36.400 8.200 36.400 8.200 36.400 5.400 15.400
In non-conductive status 8.200 36.400 8.200 36.400 8.200 36.400 5.300 15.300
n = 1 15.300 36.100 15.300 36.100 15.300 36.100 8.200 22.600
n = 96 64.500 85.500 64.500 85.500 64.500 85.500 57.400 72.500
n = 1 15.300 36.100 15.300 36.100 15.300 36.100 8.200 22.500
n = 96 66.600 87.500 66.600 87.500 66.600 87.500 59.500 74.500
n = 1 15.300 36.100 15.300 36.100 15.300 36.100 8.200 23.100
n = 96 66.600 87.500 66.600 87.500 66.600 87.500 59.500 74.400
n = 1 15.300 36.100 15.300 36.100 15.300 36.100 8.200 22.500
n = 96 64.500 85.500 64.500 85.500 64.500 85.500 57.400 72.400
n = 1 15.300 36.100 15.300 36.100 15.300 36.100 8.300 23.000
n = 96 66.600 87.500 66.600 87.500 66.600 87.500 59.500 74.500
n = 1 15.300 36.100 15.300 36.100 15.300 36.100 8.200 22.500
n = 96 64.500 85.500 64.500 85.500 64.500 85.500 57.400 72.400
n = 1 15.800 36.300 15.800 36.300 15.800 36.300 9.350 29.000
n = 96 64.900 85.700 64.900 85.700 64.900 85.700 60.700 78.400
n = 1 15.700 36.300 15.700 36.300 15.700 36.300 9.350 28.900
n = 96 67.000 87.700 67.000 87.700 67.000 87.700 62.500 80.300
n = 1 15.800 36.300 15.800 36.300 15.800 36.300 9.350 29.000
n = 96 67.000 87.700 67.000 87.700 67.000 87.700 62.600 80.300
n = 1 15.700 36.300 15.700 36.300 15.700 36.300 9.350 29.000
n = 96 64.800 85.700 64.800 85.700 64.800 85.700 60.800 78.400
n = 1 15.800 36.300 15.800 36.300 15.800 36.300 9.350 29.000
n = 96 67.000 87.700 67.000 87.700 67.000 87.700 62.700 80.400
n = 1 15.700 36.300 15.700 36.300 15.700 36.300 9.300 29.000
n = 96 64.800 85.700 64.800 85.700 64.800 85.700 60.700 78.400

Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max. Min. Max.
DB + When executed 5.750 13.300 5.750 13.300 5.750 13.300 4.900 7.500
DB + When executed 5.650 13.200 5.650 13.200 5.650 13.200 5.200 11.000
DB - When executed 5.750 12.700 5.750 12.700 5.750 12.700 4.900 10.200
DB - When executed 5.650 12.600 5.650 12.600 5.650 12.600 5.200 8.600
DB * When executed 8.750 40.200 8.750 40.200 8.750 40.200 8.300 22.200
DB/ When executed 5.750 21.500 5.750 21.500 5.750 21.500 6.100 19.200
S D
= 0, = 0 4.500 26.700 4.500 26.700 4.500 26.700 4.800 16.800
S D
= 21023, = 21023 5.800 32.900 5.800 32.900 5.800 32.900 4.800 16.800
A
= 0, = 0 5.450 35.400 5.450 35.400 5.450 35.400 7.100 20.100
ED +
S1 S2 D
= 21023, = 21023 6.750 41.400 6.750 41.400 6.750 41.400 7.100 20.100
S D
= 0, = 0 5.200 25.900 5.200 25.900 5.200 25.900 5.000 17.300
S D
= 21023, = 21023 6.000 27.700 6.000 27.700 6.000 27.700 5.000 17.300
= 0, = 0 5.550 32.900 5.550 32.900 5.550 32.900 6.000 16.300
ED -
S1 S2 D
= 21023, = 21023 5.750 33.900 5.750 33.900 5.750 33.900 6.000 16.300
S1 S2
= 0, = 0 5.550 34.400 5.550 34.400 5.550 34.400 10.500 22.300
S1 S2 D
= 21023, = 21023 5.950 39.100 5.950 39.100 5.950 39.100 10.500 22.300
ED /
S1 S2 D S1 S2
sion = 21023, = 21023 8.050 44.200 8.050 44.200 8.050 44.200 7.500 27.200
n = 1 13.500 28.500 13.500 28.500 13.500 28.500 12.100 19.700
Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
n = 96 63.100 78.200 63.100 78.200 63.100 78.200 61.700 69.300
n = 1 13.500 28.500 13.500 28.500 13.500 28.500 12.100 20.600
n = 96 63.100 78.200 63.100 78.200 63.100 78.200 61.700 70.200
n = 1 10.100 24.200 10.100 24.200 10.100 24.200 7.050 19.200
n = 96 59.800 73.900 59.800 73.900 59.800 73.900 59.400 68.900
n = 1 10.100 24.200 10.100 24.200 10.100 24.200 7.050 19.900
n = 96 59.800 73.900 59.800 73.900 59.800 73.900 59.400 69.600
$ + –– 15.400 64.300 15.400 64.300 15.400 64.300 14.400 34.000
$ + –– 19.700 71.000 19.700 71.000 19.700 71.000 9.200 22.900
= 0 3.100 19.600 3.100 19.600 3.100 19.600 4.000 8.900
= 7FFFH 3.350 19.900 3.350 19.900 3.350 19.900 3.400 9.000
= 0 3.200 20.400 3.200 20.400 3.200 20.400 4.100 10.800
= 7FFFFFFFH 3.450 20.500 3.450 20.500 3.450 20.500 3.600 10.800
= 0 3.200 22.900 3.200 22.900 3.200 22.900 3.500 9.300
= 32766.5 4.100 34.300 4.100 34.300 4.100 34.300 5.100 19.500
= 0 3.200 23.000 3.200 23.000 3.200 23.000 2.600 6.800
= 1234567890.3 4.050 33.500 4.050 33.500 4.050 33.500 3.400 11.700

Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max. Min. Max.
DBL When executed 3.300 5.900 3.300 5.900 3.300 5.900 2.700 3.800
WORD When executed 3.000 7.250 3.000 7.250 3.000 7.250 2.900 7.000
GRY When executed 3.350 7.500 3.350 7.500 3.350 7.500 2.700 6.100
DGRY When executed 3.000 7.200 3.000 7.200 3.000 7.200 2.900 4.600
GBIN When executed 4.600 9.700 4.600 9.700 4.600 9.700 4.000 8.200
DGBIN When executed 5.550 10.700 5.550 10.700 5.550 10.700 5.500 8.000
NEG When executed 3.300 6.850 3.300 6.850 3.300 6.850 2.400 4.100
DNEG When executed 3.050 5.700 3.050 5.700 3.050 5.700 2.500 4.300
Floating point = 0 3.100 7.350 3.100 7.350 3.100 7.350 2.500 3.400
Floating point = -1.0 3.350 11.700 3.350 11.700 3.350 11.700 2.700 4.500
Floating point = 0 3.000 21.200 3.000 21.200 3.000 21.200 2.200 3.500
Floating point = -1.0 3.100 22.900 3.100 22.900 3.100 22.900 2.400 3.500
n = 1 8.700 27.600 8.700 27.600 8.700 27.600 9.700 22.000
n = 96 84.200 104.000 84.200 104.000 84.200 104.000 74.200 86.500
n = 1 8.450 28.100 8.450 28.100 8.450 28.100 8.900 16.300
n = 96 56.100 75.800 56.100 75.800 56.100 75.800 58.500 65.100
ECON –– 3.100 21.300 3.100 21.300 3.100 21.300 4.300 6.800
EDCON –– 5.050 24.000 5.050 24.000 5.050 24.000 2.800 5.400
EDMOV –– 2.900 22.900 2.900 22.900 2.900 22.900 3.200 7.800
Character string to be
transferred = 0 6.250 30.100 6.250 30.100 6.250 30.100 4.500 13.900
Character string to be
transferred = 32 15.500 39.300 15.500 39.300 15.500 39.300 15.400 17.500
n = 1 8.400 20.900 8.400 20.900 8.400 20.900 8.700 15.200
n = 96 67.100 79.900 67.100 79.900 67.100 79.900 67.200 74.000
SWAP –– 3.300 3.550 3.300 3.550 3.300 3.550 2.400 2.700
DI –– 2.800 8.400 2.800 8.400 2.800 8.400 1.800 2.200
EI –– 4.300 12.300 4.300 12.300 4.300 12.300 3.100 3.800
IMASK –– 12.900 40.600 12.900 40.600 12.900 40.600 9.800 25.000
n = 1 7.500 26.500 7.500 26.500 7.500 26.500 4.300 16.100
n = 96 11.400 30.400 11.400 30.400 11.400 30.400 11.400 23.700
n = 1 7.300 26.300 7.300 26.300 7.300 26.300 3.800 10.000
n = 96 10.900 29.900 10.900 29.900 10.900 29.900 8.500 15.200
UDCNT1 –– 1.500 7.100 1.500 7.100 1.500 7.100 1.000 2.000
UDCNT2 –– 1.500 6.300 1.500 6.300 1.500 6.300 1.000 4.000
TTMR –– 5.300 20.900 5.300 20.900 5.300 20.900 3.900 6.100
STMR –– 8.900 49.800 8.900 49.800 8.900 49.800 7.200 30.000
ROTC –– 52.300 52.600 52.300 52.600 52.300 52.600 15.200 16.100
RAMP –– 7.400 30.900 7.400 30.900 7.400 30.900 5.900 18.300
SPD –– 1.500 6.300 1.500 6.300 1.500 6.300 1.000 2.800
PLSY –– 6.400 7.100 6.400 7.100 6.400 7.100 3.500 4.700
PWM –– 3.900 4.600 3.900 4.600 3.900 4.600 3.400 3.400
MTR –– 10.100 61.400 10.100 61.400 10.100 61.400 20.500 28.400

Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max. Min. Max.
n = 1 13.600 28.500 13.600 28.500 13.600 28.500 12.100 20.100
n = 96 63.200 78.200 63.200 78.200 63.200 78.200 57.400 63.200
n = 1 13.500 28.500 13.500 28.500 13.500 28.500 7.700 13.200
n = 96 63.100 78.200 63.100 78.200 63.100 78.200 57.400 62.800
n = 1 13.600 28.300 13.600 28.300 13.600 28.300 7.800 13.200
n = 96 63.100 78.000 63.100 78.000 63.100 78.000 57.300 62.800
n = 1 13.500 28.300 13.500 28.300 13.500 28.300 7.800 14.100
n = 96 63.100 78.000 63.100 78.000 63.100 78.000 57.400 62.900
n = 1 5.050 21.100 5.050 21.100 5.050 21.100 3.700 6.300
n = 96 9.000 34.800 9.000 34.800 9.000 34.800 10.200 12.800
n = 1 4.800 19.100 4.800 19.100 4.800 19.100 4.500 8.900
n = 96 8.550 34.300 8.550 34.300 8.550 34.300 10.100 14.300
n1 = 16 / n2 = 1 10.300 46.500 10.300 46.500 10.300 46.500 8.800 43.400
n1 = 16 / n2 = 15 10.300 46.400 10.300 46.400 10.300 46.400 8.750 43.400
n1 = 16 / n2 = 1 10.500 49.800 10.500 49.800 10.500 49.800 8.050 45.100
n1 = 16 / n2 = 15 10.500 49.800 10.500 49.800 10.500 49.800 8.050 45.100
n1 = 16 / n2 = 1 7.950 24.000 7.950 24.000 7.950 24.000 6.500 22.800
n1 = 16 / n2 = 15 7.950 24.100 7.950 24.100 7.950 24.100 6.500 22.800
n1 = 16 / n2 = 1 8.700 23.600 8.700 23.600 8.700 23.600 7.350 23.600
n1 = 16 / n2 = 15 8.650 23.700 8.650 23.700 8.650 23.700 7.300 23.700
n = 1 4.550 4.750 4.550 4.750 4.550 4.750 3.000 3.400
n = 15 4.550 4.750 4.550 4.750 4.550 4.750 3.000 3.500
n = 1 4.600 4.750 4.600 4.750 4.600 4.750 3.000 3.400
n = 15 4.600 4.750 4.600 4.750 4.600 4.750 3.000 3.400
TEST When executed 7.250 13.200 7.250 13.200 7.250 13.200 4.400 6.900
Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
DTEST When executed 6.950 12.900 6.950 12.900 6.950 12.900 4.500 7.000
n = 1 7.350 11.600 7.350 11.600 7.350 11.600 4.300 5.200
n = 96 10.100 22.600 10.100 22.600 10.100 22.600 6.500 13.200
All match 6.650 6.800 6.650 6.800 6.650 6.800 5.000 5.300
None match 6.650 6.800 6.650 6.800 6.650 6.800 5.000 5.300
All match 34.000 42.300 34.000 42.300 34.000 42.300 32.300 35.900
None match 34.000 42.300 34.000 42.300 34.000 42.300 32.400 35.900
All match 8.000 16.300 8.000 16.300 8.000 16.300 6.800 10.200
None match 8.000 16.300 8.000 16.300 8.000 16.300 6.800 10.200
All match 54.100 62.600 54.100 62.600 54.100 62.600 52.800 56.300
None match 54.100 62.600 54.100 62.600 54.100 62.600 52.800 56.300
= 0 4.100 4.200 4.100 4.200 4.100 4.200 3.700 4.100
S D
= FFFFFFFFH 4.100 4.200 4.100 4.200 4.100 4.200 3.800 4.100
n = 2 8.850 23.000 8.850 23.000 8.850 23.000 6.000 16.400
n = 8 13.600 36.600 13.600 36.600 13.600 36.600 8.100 15.200
M1 = ON 7.650 11.900 7.650 11.900 7.650 11.900 5.300 6.300
M4 = ON 7.500 11.700 7.500 11.700 7.500 11.700 5.200 6.200
M1 = ON 14.600 27.800 14.600 27.800 14.600 27.800 10.400 17.900
M256 = ON 10.600 23.700 10.600 23.700 10.600 23.700 5.700 13.300

Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max. Min. Max.
n = 1 6.500 14.800 6.500 14.800 6.500 14.800 5.000 10.900
n = 4 6.900 15.200 6.900 15.200 6.900 15.200 5.400 11.300
n = 1 6.800 15.100 6.800 15.100 6.800 15.100 5.500 8.900
n = 4 7.500 15.900 7.500 15.900 7.500 15.900 6.200 9.600
NDIS When executed 4.750 18.700 4.750 18.700 4.750 18.700 11.000 16.300
NUNI When executed 4.750 18.700 4.750 18.700 4.750 18.700 10.600 16.000
n = 1 6.600 14.900 6.600 14.900 6.600 14.900 5.000 6.500
n = 96 37.700 46.100 37.700 46.100 37.700 46.100 36.000 38.400
n = 1 7.350 15.600 7.350 15.600 7.350 15.600 5.100 6.100
n = 96 32.100 40.500 32.100 40.500 32.100 40.500 29.900 32.000
n = 1 8.250 24.900 8.250 24.900 8.250 24.900 4.300 6.900
n = 96 34.200 51.600 34.200 51.600 34.200 51.600 32.000 34.300
n = 1 8.250 24.800 8.250 24.800 8.250 24.800 4.400 6.800
n = 96 34.200 51.600 34.200 51.600 34.200 51.600 30.300 34.800
n = 1 6.800 34.900 6.800 34.900 6.800 34.900 4.800 14.200
n = 96 60.300 89.200 60.300 89.200 60.300 89.200 56.400 68.000
n = 1 7.600 35.700 7.600 35.700 7.600 35.700 4.800 9.300
n = 96 59.400 90.000 59.400 90.000 59.400 90.000 55.400 62.800
n = 1 10.100 28.900 10.100 28.900 10.100 28.900 6.200 12.200
n = 96 52.100 92.400 52.100 92.400 52.100 92.400 6.200 13.100
n = 1 9.300 29.000 9.300 29.000 9.300 29.000 6.200 10.500
n = 96 43.600 89.600 43.600 89.600 43.600 89.600 6.100 10.500
n = 1 6.700 15.000 6.700 15.000 6.700 15.000 4.800 6.200
n = 96 28.900 37.100 28.900 37.100 28.900 37.100 26.900 28.700
n = 1 8.600 26.800 8.600 26.800 8.600 26.800 5.500 7.000
n = 96 56.200 74.700 56.200 74.700 56.200 74.700 53.000 56.300
n = 1 5.850 19.800 5.850 19.800 5.850 19.800 4.300 17.300
n = 96 17.300 38.200 17.300 38.200 17.300 38.200 16.000 35.500
n = 1 6.900 23.300 6.900 23.300 6.900 23.300 5.750 21.900
n = 96 29.400 49.900 29.400 49.900 29.400 49.900 29.200 48.600
NEXT –– 1.000 1.100 1.000 1.100 1.000 1.100 0.980 1.400
BREAK –– 4.700 25.000 4.700 25.000 4.700 25.000 21.300 17.900
Return to original program 4.100 19.500 4.100 19.500 4.100 19.500 2.000 3.000
Return to other program 4.700 16.700 4.700 16.700 4.700 16.700 2.300 4.900
Internal file pointer 5.400 3.300 5.300
Common pointer 7.600 30.500 7.600 30.500 7.600 30.500 4.900 6.600
FCALL Pn to –– 50.400 62.700 50.400 62.700 50.400 62.700 19.800 23.700
*: Program name –– 105.000 214.000 105.000 214.000 105.000 214.000 75.700 134.000
ECALL * Pn to
*: Program name –– 164.000 271.000 164.000 271.000 164.000 271.000 109.000 173.000
*: Program name –– 105.000 214.000 105.000 214.000 105.000 214.000 76.200 134.000
EFCALL * Pn to
*: Program name –– 164.000 271.000 164.000 271.000 164.000 271.000 90.500 170.000
XCALL –– 5.100 6.700 5.100 6.700 5.100 6.700 3.800 6.400

Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max. Min. Max.
When selecting I/O refresh only 18.100 89.100 18.100 89.100 18.100 89.100 12.800 79.000
When selecting CC-Link refresh
33.300 132.000 33.300 132.000 33.300 132.000 24.900 119.000
only (Master station side)
When selecting CC-Link refresh
only (Local station side)
33.300 132.000 33.300 132.000 33.300 132.000 24.900 119.000
78.600 231.000 78.600 231.000 78.600 231.000 54.000 212.000
refresh only (Control station side)
78.600 231.000 78.600 231.000 78.600 231.000 54.000 212.000
refresh only (Normal station side)
When selecting intelli auto
18.100 89.000 18.100 89.000 18.100 89.000 12.800 79.000
CCOM
When selecting I/O outside the
15.700 71.600 15.700 71.600 15.700 71.600 8.600 76.500
group only (Input only)
When selecting I/O outside the
40.200 152.000 40.200 152.000 40.200 152.000 26.300 135.000
group only (Output only)
When selecting I/O outside the
group only (Both I/O)
45.800 153.000 45.800 153.000 45.800 153.000 26.100 135.000
When selecting refresh of multi-
ple CPU high speed transmission
––
18.200 89.000 18.200 89.000 18.200 89.000 7.250 54.300
Number of data points = 0 6.100 14.200 6.100 14.200 6.100 14.200 3.700 10.100
Number of data points = 96 6.100 14.200 6.100 14.200 6.100 14.200 3.800 5.200
Number of data points = 0 7.500 15.600 7.500 15.600 7.500 15.600 4.400 5.800
Number of data points = 96 37.000 45.000 37.000 45.000 37.000 45.000 33.500 35.200
Number of data points = 0 7.600 15.600 7.600 15.600 7.600 15.600 4.400 10.800
Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
Number of data points = 96 7.600 15.600 7.600 15.600 7.600 15.600 4.400 10.800
Number of data points = 0 6.900 15.000 6.900 15.000 6.900 15.000 5.000 10.700
Number of data points = 96 36.600 44.700 36.600 44.700 36.600 44.700 4.400 10.900
Number of data points = 0 8.000 16.100 8.000 16.100 8.000 16.100 4.900 11.300
Number of data points = 96 37.300 45.500 37.300 45.500 37.300 45.500 34.200 35.900
n3 = 1 17.400 74.700 17.400 74.700 17.400 74.700 12.100 71.300
FROM n1 n2 n3
n3 = 1000 406.000 498.500 406.000 498.500 406.000 498.500 402.600 495.100
n3 = 1 19.600 85.600 19.600 85.600 19.600 85.600 14.600 81.800
DFRO n1 n2 n3
n3 = 500 406.000 498.500 406.000 498.500 406.000 498.500 402.600 495.100
n3 = 1 16.400 69.600 16.400 69.600 16.400 69.600 11.700 63.400
TO n1 n2 n3
n3 = 1000 381.300 471.200 381.300 471.200 381.300 471.200 375.900 464.300
n3 = 1 18.600 85.100 18.600 85.100 18.600 85.100 14.200 78.500
DTO n1 n2 n3
n3 = 500 381.300 471.200 381.300 471.200 381.300 471.200 375.900 464.300
No display no display 1.500 7.100 1.500 7.100 1.500 7.100 5.100 5.100
LED instruction execution no
38.900 109.000 38.900 109.000 38.900 109.000 35.700 89.200
= 1 5.600 13.900 5.600 13.900 5.600 13.900 4.900 6.500
S D
= -32768 7.800 16.200 7.800 16.200 7.800 16.200 7.200 8.700
= 1 6.200 14.500 6.200 14.500 6.200 14.500 5.700 7.100
S D
= -2147483648 11.000 19.200 11.000 19.200 11.000 19.200 10.400 12.200


= 1 5.050 13.400 5.050 13.400 5.050 13.400 4.400 5.900
= FFFFH 5.050 13.400 5.050 13.400 5.050 13.400 4.400 5.800
= 1 5.600 13.900 5.600 13.900 5.600 13.900 5.200 6.700
= FFFFFFFFH 5.600 13.900 5.600 13.900 5.600 13.900 5.100 6.500
= 1 4.850 13.200 4.850 13.200 4.850 13.200 4.300 5.800
= 9999 5.300 13.600 5.300 13.600 5.300 13.600 4.700 6.100
= 1 5.300 13.600 5.300 13.600 5.300 13.600 4.800 6.300
= 99999999 6.200 14.500 6.200 14.500 6.200 14.500 5.600 7.100
= 1 7.000 18.500 7.000 18.500 7.000 18.500 6.500 9.000
= -32768 6.950 18.500 6.950 18.500 6.950 18.500 6.300 8.900
= 1 9.450 21.000 9.450 21.000 9.450 21.000 9.400 12.000
= -2147483648 9.450 21.000 9.450 21.000 9.450 21.000 9.100 11.600
= 1 5.650 17.100 5.650 17.100 5.650 17.100 4.900 7.500
= FFFFH 5.750 17.300 5.750 17.300 5.750 17.300 5.100 8.100
= 1 6.800 18.200 6.800 18.200 6.800 18.200 6.000 8.500
= FFFFFFFFH 7.100 18.600 7.100 18.600 7.100 18.600 6.300 8.900
= 1 5.650 17.200 5.650 17.200 5.650 17.200 5.000 7.500
= 9999 5.700 17.200 5.700 17.200 5.700 17.200 5.000 7.500
= 1 6.850 18.300 6.850 18.300 6.850 18.300 6.200 8.800
= 99999999 6.850 18.300 6.850 18.300 6.850 18.300 6.200 8.800
COMRD –– 185.000 188.000 185.000 188.000 185.000 188.000 97.300 97.400
1 character 4.700 16.200 4.700 16.200 4.700 16.200 4.100 6.600
96 characters 20.600 32.900 20.600 32.900 20.600 32.900 19.800 22.400
STR –– 9.800 36.500 9.800 36.500 9.800 36.500 6.900 14.400
DSTR –– 12.100 40.400 12.100 40.400 12.100 40.400 10.200 20.800
VAL –– 12.200 40.900 12.200 40.900 12.200 40.900 9.800 23.900
DVAL –– 19.400 45.600 19.400 45.600 19.400 45.600 14.000 33.100
ESTR –– 29.700 87.800 29.700 87.800 29.700 87.800 22.100 52.400

Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max. Min. Max.
Decimal point format all 2-digit specification 23.900 70.400 23.900 70.400 23.900 70.400 23.300 36.500
Exponent format all 6-digit specification 23.700 70.300 23.700 70.300 23.700 70.300 23.300 36.400
n = 1 10.200 41.800 10.200 41.800 10.200 41.800 5.600 19.700
n = 96 31.900 66.600 31.900 66.600 31.900 66.600 30.200 44.700
n = 1 8.600 43.400 8.600 43.400 8.600 43.400 7.500 23.100
n = 96 77.100 115.000 77.100 115.000 77.100 115.000 37.500 53.300
n = 1 10.900 29.600 10.900 29.600 10.900 29.600 7.600 11.400
n = 96 41.400 60.300 41.400 60.300 41.400 60.300 36.300 46.000
n = 1 10.600 29.300 10.600 29.300 10.600 29.300 6.500 16.100
A
n = 96 41.300 60.200 41.300 60.200 41.300 60.200 36.200 46.200
MIDR –– 11.700 30.600 11.700 30.600 11.700 30.600 9.500 19.100
MIDW –– 12.400 24.000 12.400 24.000 12.400 24.000 10.300 18.200
No match 22.000 38.200 22.000 38.200 22.000 38.200 19.300 29.000
Head 13.300 29.600 13.300 29.600 13.300 29.600 10.300 20.000
End 21.900 38.100 21.900 38.100 21.900 38.100 51.100 60.800
EMOD –– 11.600 24.000 11.600 24.000 11.600 24.000 10.300 15.300
EREXP –– 19.700 28.000 19.700 28.000 19.700 28.000 19.300 22.300
= 128 / = 40 /
47.000 102.000 47.000 102.000 47.000 102.000 44.300 96.700
= 128 / = 40 /
70.100 134.000 70.100 134.000 70.100 134.000 58.800 112.000
= 128 / = 40 /
46.400 93.600 46.400 93.600 46.400 93.600 39.000 78.100
Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
= 128 / = 40 /
44.500 70.600 44.500 70.600 44.500 70.600 36.000 69.200
SIN Single precision 6.400 13.900 6.400 13.900 6.400 13.900 4.500 9.900
COS Single precision 6.100 13.500 6.100 13.500 6.100 13.500 4.300 8.200
TAN Single precision 8.300 15.000 8.300 15.000 8.300 15.000 5.100 7.200
ASIN Single precision 7.300 15.600 7.300 15.600 7.300 15.600 6.100 13.700
ACOS Single precision 8.100 16.500 8.100 16.500 8.100 16.500 6.800 11.100
ATAN Single precision 5.350 12.000 5.350 12.000 5.350 12.000 4.000 6.900
SIND Double precision 13.400 51.300 13.400 51.300 13.400 51.300 9.600 26.000
COSD Double precision 14.700 51.700 14.700 51.700 14.700 51.700 10.000 26.900
TAND Double precision 17.400 54.400 17.400 54.400 17.400 54.400 11.400 25.300
ASIND Double precision 22.600 60.300 22.600 60.300 22.600 60.300 12.100 30.800
ACOSD Double precision 19.700 60.000 19.700 60.000 19.700 60.000 11.700 28.000
ATAND Double precision 15.000 51.800 15.000 51.800 15.000 51.800 9.700 22.000
RAD Single precision 3.200 10.300 3.200 10.300 3.200 10.300 2.500 4.800
RADD Double precision 5.200 43.100 5.200 43.100 5.200 43.100 4.100 16.400
DEG Single precision 3.200 11.500 3.200 11.500 3.200 11.500 2.500 4.700
DEGD Double precision 5.150 43.800 5.150 43.800 5.150 43.800 5.000 18.100
SQR Single precision 3.900 12.300 3.900 12.300 3.900 12.300 3.500 9.300
SQRD Double precision 7.000 45.700 7.000 45.700 7.000 45.700 5.700 25.400
= -10 6.350 13.800 6.350 13.800 6.350 13.800 4.000 13.000
S D
= 1 6.350 13.800 6.350 13.800 6.350 13.800 4.000 13.000


= -10 15.800 52.700 15.800 52.700 15.800 52.700 8.800 27.600
= 1 15.400 52.500 15.400 52.500 15.400 52.500 8.500 27.300
= 1 5.800 14.900 5.800 14.900 5.800 14.900 4.100 8.100
= 10 7.450 16.500 7.450 16.500 7.450 16.500 6.200 10.300
= 1 11.000 48.900 11.000 48.900 11.000 48.900 9.500 28.300
= 10 12.600 51.300 12.600 51.300 12.600 51.300 11.100 29.900
RND –– 1.950 5.450 1.950 5.450 1.950 5.450 1.200 2.300
SRND –– 2.750 4.550 2.750 4.550 2.750 4.550 1.400 2.400
= 0 2.500 6.800 2.500 6.800 2.500 6.800 1.800 3.300
= 9999 6.400 15.500 6.400 15.500 6.400 15.500 5.100 8.800
= 0 2.600 6.050 2.600 6.050 2.600 6.050 1.900 3.700
= 99999999 8.450 17.600 8.450 17.600 8.450 17.600 7.500 10.900
BSIN –– 11.500 32.800 11.500 32.800 11.500 32.800 8.700 20.200
BCOS –– 10.400 32.500 10.400 32.500 10.400 32.500 7.800 14.400
BTAN –– 12.100 33.700 12.100 33.700 12.100 33.700 9.000 17.000
BASIN –– 13.300 32.800 13.300 32.800 13.300 32.800 12.200 15.100
BACOS –– 13.400 33.700 13.400 33.700 13.400 33.700 13.100 14.900
BATAN –– 12.600 31.400 12.600 31.400 12.600 31.400 11.400 15.700
LOG10 Single precision 8.200 16.500 8.200 16.500 8.200 16.500 5.950 14.800
LOG10D Double precision 15.100 48.000 15.100 48.000 15.100 48.000 12.400 46.500
LIMIT –– 5.350 5.500 5.350 5.500 5.350 5.500 5.200 5.400
DLIMIT –– 6.000 6.150 6.000 6.150 6.000 6.150 5.700 5.900
BAND –– 5.450 12.400 5.450 12.400 5.450 12.400 5.400 6.300
DBAND –– 6.050 11.900 6.050 11.900 6.050 11.900 5.800 6.900
ZONE –– 6.250 10.700 6.250 10.700 6.250 10.700 5.200 11.100
DZONE –– 6.000 11.900 6.000 11.900 6.000 11.900 5.700 10.800


Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU


Standard RAM 6.800 26.900 6.800 26.900 6.800 26.900 3.000 16.400
SRAM card –– 3.000 16.400
SRAM card to standard RAM –– 230.000 327.000
Standard RAM to SRAM card –– 997.000 1066.000
SRAM card to standard ROM –– 525.000 690.000
Standard ROM to SRAM card –– 490.000 655.000
DATERD –– 5.600 27.800 5.600 27.800 5.600 27.800 5.100 14.700
DATEWR –– 7.800 42.100 7.800 42.100 7.800 42.100 7.100 23.000
No digit increase 14.200 41.200 14.200 41.200 14.200 41.200 6.500 13.100
Digit increase 14.200 41.200 14.200 41.200 14.200 41.200 5.700 21.200
No digit increase 15.100 41.200 15.100 41.200 15.100 41.200 6.500 11.500
Digit increase 15.100 41.200 15.100 41.200 15.100 41.200 5.700 17.200
SECOND –– 5.800 20.500 5.800 20.500 5.800 20.500 2.600 5.900
HOUR –– 6.200 22.500 6.200 22.500 6.200 22.500 3.000 5.300


Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU




Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU




Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max. Min. Max.
When not executed 0.480 0.320 0.240 0.160
8.200 25.500 8.200 25.500 6.500 25.500 7.000 23.000
8.200 25.500 8.200 25.500 6.500 25.500 7.000 23.000
6.500 23.100 6.500 23.100 6.500 23.100 5.600 21.900
6.500 23.100 6.500 23.100 6.500 23.100 5.600 21.900
When not executed 0.480 0.320 0.240 0.160
8.200 25.500 8.200 25.500 6.500 25.500 7.000 23.000
8.200 25.500 8.200 25.500 6.500 25.500 7.000 23.000
6.500 23.100 6.500 23.100 6.500 23.100 5.900 22.100
6.500 23.100 6.500 23.100 6.500 23.100 5.900 22.100
S.DATERD –– 9.250 51.000 9.250 51.000 9.250 51.000 7.500 23.400
No digit increase 16.800 75.400 16.800 75.400 16.800 75.400 9.100 23.400
Digit increase 16.800 75.400 16.800 75.400 16.800 75.400 8.900 22.200
No digit increase 17.600 75.300 17.600 75.300 17.600 75.300 9.000 22.200
Digit increase 16.900 75.300 16.900 75.300 16.900 75.300 9.800 22.100
PSTOP –– 82.200 199.000 82.200 199.000 82.200 199.000 61.400 84.500
POFF –– 82.600 198.000 82.600 198.000 82.600 198.000 121.000 246.000
PSCAN –– 83.600 200.000 83.600 200.000 83.600 200.000 126.000 232.000
WDT –– 2.900 12.000 2.900 12.000 2.900 12.000 1.300 3.000
DUTY –– 7.700 27.500 7.700 27.500 7.700 27.500 4.900 24.300
TIMCHK –– 5.350 24.500 5.350 24.500 5.350 24.500 7.400 23.300
File register of standard RAM 4.100 4.200 4.100 4.200 4.100 4.200 2.400 2.600
File register of SRAM card –– 2.500 2.800
File register of standard RAM 5.400 5.500 5.400 5.500 5.400 5.500 3.100 3.300
File register of SRAM card –– 3.300 3.600
ADRSET –– 2.400 6.650 2.400 6.650 2.400 6.650 4.200 4.900
ZPUSH –– 9.200 20.500 9.200 20.500 9.200 20.500 6.900 14.000
ZPOP –– 9.000 15.500 9.000 15.500 9.000 15.500 7.500 12.500

Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max. Min. Max.
29.400 91.700 29.400 91.700 29.400 91.700 20.600 55.000
29.500 91.600 29.500 91.600 29.500 91.600 20.600 66.100
MELSECNET/H,
79.900 214.000 79.900 214.000 79.900 214.000 102.000 180.000
79.900 214.000 79.900 214.000 79.900 214.000 29.800 102.000
S.RTREAD –– 9.200 57.700 9.200 57.700 9.200 57.700 6.700 33.500
S.RTWRITE –– 10.900 67.100 10.900 67.100 10.900 67.100 8.300 26.000
n2 = 1 6.000 33.100 6.000 33.100 6.000 33.100 4.000 29.100
n2 = 16 16.500 43.600 16.500 43.600 16.500 43.600 12.500 37.600
TYPERD 48.50 141.30 43.50 139.90 43.40 139.80 32.40 134.20
TRACE Start 174.000 96.600 103.000
TRACER –– 5.100 15.500 5.100 15.500 5.100 15.500 3.800 13.600
1 point –– –– 12.200 34.900 12.200 34.900 9.400 31.300
–– –– 121.500 145.100 121.500 145.100 118.500 141.300
1 point –– 9.400 31.400
Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
–– 178.500 201.300
SP.FWRITE –– 9.200 12.100
SP.FREAD –– 489.000 544.000
SP.DEVST –– 87.000 144.000
S.DEVLD –– 127.000 140.000

Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max. Min. Max.
n4 = 1 64.600 78.100 64.600 78.100 64.600 78.100 64.600 78.100
S.TO n1 n2 n3 n4
n4 = 320 115.000 126.000 115.000 126.000 115.000 126.000 154.000 126.000
n3 = 1 12.700 62.200 12.700 62.200 12.700 62.200 8.300 58.200
TO n1 n2 n3
n3 = 320 63.500 112.300 63.500 112.300 63.500 112.300 56.200 107.800
n3 = 1 13.500 62.300 13.500 62.300 13.500 62.300 8.600 58.300
DTO n1 n2 n3
n3 = 320 112.900 160.800 112.900 160.800 112.900 160.800 106.800 157.300
n3 = 1 12.100 58.700 12.100 58.700 12.100 58.700 8.400 52.600
n3 = 320 56.000 101.700 56.000 101.700 56.000 101.700 51.700 96.600
FROM n1 n2 n3
n3 = 1 24.400 82.900 24.400 82.900 24.400 82.900 16.600 37.000
n3 = 320 152.000 243.000 152.000 243.000 152.000 243.000 153.000 185.000
n3 = 1000 418.000 518.000 418.000 518.000 418.000 518.000 432.000 485.000
n3 = 1 12.100 58.700 12.100 58.700 12.100 58.700 8.800 53.400
n3 = 320 97.400 143.700 97.400 143.700 97.400 143.700 94.900 139.600
DFRO n1 n2 n3
n3 = 1 24.800 94.200 24.800 94.200 24.800 94.200 16.600 47.300
n3 = 320 276.000 367.000 276.000 367.000 276.000 367.000 278.000 339.000
n3 = 1000 799.000 892.000 799.000 892.000 799.000 892.000 841.000 892.000
For the instructions for which a rise execution instruction ( P) is not specified, the processing time is the same as an ON execution instruction.
WORDP instruction and TOP instruction

(b) When using Q03UD(E)JCPU, Q04UD(E)HCPU, Q06UD(E)HCPU, Q10UD(E)HCPU, Q13UD(E)HCPU, Q20UD(E)HCPU and Q26UD(E)HCPU
Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max.
ORB
MPS
–– 0.020 0.0095 0.0095
MPP
INV
0.020 0.0095 0.0095 When executed
0.020 0.0095 0.0095 When executed
A
EGP
0.020 0.0095 0.0095 When executed
PLS –– 1.300 1.600 0.890 1.100 0.890 1.100
PLF –– 1.500 1.600 0.940 1.200 0.940 1.200
When not executed 0.040 0.0185 0.0185
When executed 1.200 1.500 0.790 0.910 0.790 0.910
When not executed 0.040 0.0185 0.0185
When executed 2.800 3.600 2.400 3.200 2.400 3.200
When not executed 0.040 0.0185 0.0185
When executed 1.600 3.300 1.100 2.700 1.100 2.700
MCR –– 0.040 0.0185 0.0185
FEND
Error check performed 108.000 130.000 75.800 89.300 75.800 89.300
No error check performed 107.000 124.000 75.800 89.800 75.800 89.800
Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
NOPLF
–– 0.020 0.0095 0.0095
App-89


In conductive status 3.700 4.700 3.300 4.300 3.300 4.300
In non-conductive status 3.300 5.800 3.000 5.100 3.000 5.100
When not executed 3.500 5.600 3.000 5.200 3.000 5.200
In conductive status 0.060 0.0285 0.0285 In non-conductive status 3.600 5.200 3.300 4.900


In conductive status 3.800 6.000 3.300 5.500 0.0285 In non-conductive status 3.800 5.900 3.400 5.400
In conductive status 4.100 7.700 3.500 7.200 3.500 7.200
In non-conductive status 3.600 7.600 3.200 7.000 3.200 7.000
When not executed 3.900 7.700 3.400 7.400 3.400 7.400
In non-conductive status 3.800 8.800 3.400 8.300 3.400 8.300
In conductive status 4.000 9.300 3.700 8.800 3.700 8.800
In non-conductive status 4.400 8.200 3.900 7.700 3.900 7.700
When not executed 3.800 7.600 3.300 7.200 3.300 7.200
In conductive status 3.800 7.700 3.400 7.300 3.400 7.300
Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
In conductive status 4.100 9.300 3.700 8.900 3.700 8.900
In non-conductive status 3.800 8.900 3.400 8.400 3.400 8.400
When not executed 4.300 8.100 3.800 7.500 3.800 7.500
4.100 7.800 3.500 7.200 3.500 7.200 In non-conductive status
In conductive status 3.800 7.700 3.300 7.300 3.300 7.300
In non-conductive status 4.000 7.900 3.500 7.500 3.500 7.500
In non-conductive status 4.100 9.300 3.700 8.800 3.700 8.800
When not executed 4.100 9.300 3.700 8.800 3.700 8.800
In conductive status 4.000 8.000 3.500 7.400 3.500 7.400
In non-conductive status 3.800 7.700 3.300 7.200 3.300 7.200


In conductive status 4.300 8.300 3.800 7.600 3.800 7.600
In non-conductive status 3.800 7.800 3.300 7.300 3.300 7.300
When not executed 3.900 7.900 3.400 3.900 3.400 3.900
In non-conductive status 4.100 9.600 3.700 9.200 3.700 9.200
In conductive status 4.000 9.600 3.700 9.200 3.700 9.200
In non-conductive status 4.100 9.600 3.600 9.000 3.600 9.000
When not executed 3.800 7.900 3.400 7.400 3.400 7.400
In conductive status 3.900 8.100 3.400 7.500 3.400 7.500
In conductive status 4.100 9.600 3.700 9.200 3.700 9.200
In non-conductive status 4.000 7.200 3.600 6.600 3.600 6.600
When not executed 5.300 8.900 4.700 8.100 4.700 8.100
In conductive status 4.700 9.000 4.200 8.200 4.200 8.200
When not executed 4.400 6.800 3.900 6.400 3.900 6.400
In conductive status 4.500 6.700 4.000 6.300 4.000 6.300
In conductive status 5.100 8.200 4.200 7.600 4.200 7.600
In non-conductive status 5.000 8.100 4.000 7.200 4.000 7.200
When not executed 4.800 8.100 4.300 7.500 4.300 7.500
In conductive status 4.700 8.400 4.200 7.800 4.200 7.800
When not executed 4.300 5.500 4.100 5.100 4.100 5.100
In conductive status 4.500 5.900 4.400 5.400 4.400 5.400
In conductive status 5.200 7.300 4.100 6.700 4.100 6.700
In non-conductive status 5.100 7.200 4.100 6.700 4.100 6.700
When not executed 4.800 7.200 4.300 6.700 4.300 6.700
In conductive status 4.800 7.700 4.200 7.100 4.200 7.100
When not executed 4.500 7.100 4.000 6.700 4.000 6.700
In conductive status 4.600 7.600 4.300 7.000 4.300 7.000
In conductive status 5.100 6.800 4.300 6.200 4.300 6.200
In non-conductive status 5.200 7.200 4.300 6.600 4.300 6.600
When not executed 5.000 6.300 4.400 5.700 4.400 5.700
In conductive status 4.800 6.400 4.200 5.800 4.200 5.800


In conductive status 4.700 7.700 4.400 7.200 4.400 7.200
In non-conductive status 4.600 7.600 4.400 7.100 4.400 7.100
In conductive status 4.800 8.100 4.500 7.500 4.500 7.500
In non-conductive status 5.000 8.300 4.500 7.900 4.500 7.900
In conductive status 4.500 7.100 4.000 6.600 4.000 6.600
In non-conductive status 4.900 7.500 4.400 7.100 4.400 7.100
In conductive status 5.100 7.800 4.100 7.200 4.100 7.200
In non-conductive status 5.000 8.100 4.100 7.600 4.100 7.600
In conductive status 4.800 6.700 4.500 6.200 4.500 6.200
In non-conductive status 5.000 6.700 4.400 6.300 4.400 6.300
In conductive status 4.400 6.800 4.100 6.300 4.100 6.300
In non-conductive status 4.500 7.000 4.200 6.600 4.200 6.600
In conductive status 5.400 6.600 4.100 5.800 4.100 5.800
In non-conductive status 5.300 6.300 4.100 5.700 4.100 5.700
n = 1 8.200 10.700 7.500 10.000 7.500 10.000
n = 96 57.400 61.800 46.400 48.700 46.400 48.700
n = 1 8.200 10.700 7.500 10.000 7.500 10.000
n = 96 59.500 63.300 45.600 50.400 45.600 50.400
n = 1 8.200 10.800 7.500 10.100 7.500 10.100
Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
n = 96 59.500 63.400 47.700 50.500 47.700 50.500
n = 1 8.200 10.600 7.500 10.000 7.500 10.000
n = 96 57.400 61.700 46.400 49.000 46.400 49.000
n = 1 8.300 10.600 7.500 10.000 7.500 10.000
n = 96 59.500 63.600 47.600 50.500 47.600 50.500
n = 1 8.200 10.900 7.500 10.000 7.500 10.000
n = 96 57.400 62.000 46.400 48.900 46.400 48.900
n = 1 9.250 14.000 8.600 13.000 8.600 13.000
n = 96 60.700 67.500 47.900 52.800 47.900 52.800
n = 1 9.250 14.000 8.600 13.000 8.600 13.000
n = 96 60.700 67.500 47.900 52.800 47.900 52.800
n = 1 9.250 14.000 8.600 13.000 8.600 13.000
n = 96 60.700 67.500 47.900 52.800 47.900 52.800
n = 1 9.250 14.000 8.600 13.000 8.600 13.000
n = 96 60.700 67.500 47.900 52.800 47.900 52.800
n = 1 9.250 14.000 8.600 13.000 8.600 13.000
n = 96 60.700 67.500 47.900 52.800 47.900 52.800
n = 1 9.250 14.000 8.600 13.000 8.600 13.000
n = 96 60.700 67.500 47.900 52.800 47.900 52.800


DB + When executed 4.900 7.000 4.600 6.400 4.600 6.400
DB + When executed 5.200 7.300 4.800 6.700 4.800 6.700
DB - When executed 4.900 6.600 4.700 6.000 4.700 6.000
DB - When executed 5.200 7.500 4.800 6.600 4.800 6.600
DB * When executed 8.300 12.100 8.100 11.600 8.100 11.600
DB/ When executed 6.100 9.100 5.800 8.800 5.800 8.800
= 0, = 0 4.800 8.000 4.300 7.200 4.300 7.200
= 21023, = 21023 4.800 8.000 4.300 7.200 4.300 7.200
= 0, = 0 5.500 9.800 4.800 9.200 4.800 9.200
= 21023, = 21023 5.500 9.800 4.800 9.200 4.800 9.200
= 0, = 0 5.000 8.200 4.400 7.500 4.400 7.500
= 21023, = 21023 5.000 8.200 4.400 7.500 4.400 7.500
= 0, = 0 4.400 8.100 3.800 7.500 3.800 7.500
= 21023, = 21023 4.400 8.100 3.800 7.500 3.800 7.500
= 0, = 0 5.800 9.500 5.100 8.800 5.100 8.800
= 21023, = 21023 5.800 9.500 5.100 8.800 5.100 8.800
sion = 21023, = 21023 6.600 10.600 5.900 10.000 5.900 10.000
n = 1 9.100 11.200 8.500 10.600 8.500 10.600
n = 96 60.700 62.900 44.600 47.000 44.600 47.000
n = 1 9.700 12.000 8.900 11.300 8.900 11.300
n = 96 61.300 63.600 45.600 47.900 45.600 47.900
n = 1 7.000 10.700 6.450 9.950 6.450 9.950
n = 96 59.400 63.100 43.700 47.500 43.700 47.500
n = 1 7.000 10.700 6.450 9.950 6.450 9.950
n = 96 59.400 63.100 43.700 47.500 43.700 47.500
$ + –– 8.800 14.600 8.100 13.900 8.100 13.900
$ + –– 7.300 11.100 6.500 10.300 6.500 10.300
= 7FFFH 2.500 5.200 2.200 4.800 2.200 4.800
= 7FFFFFFFH 2.700 5.400 2.300 5.100 2.300 5.100


DBL When executed 2.700 3.400 2.300 2.700 2.300 2.700
WORD When executed 2.900 4.300 2.600 3.600 2.600 3.600
GRY When executed 2.700 3.900 2.300 3.400 2.300 3.400
DGRY When executed 2.900 3.500 2.500 3.000 2.500 3.000
GBIN When executed 4.000 4.800 3.800 4.300 3.800 4.300
DGBIN When executed 5.500 6.100 5.000 5.900 5.000 5.900
NEG When executed 2.400 3.900 2.000 3.300 2.000 3.300
DNEG When executed 2.500 3.700 2.500 3.300 2.500 3.300
Floating point = 0 2.500 3.300 2.300 2.800 2.300 2.800
Floating point = -1.0 2.700 4.500 2.500 3.900 2.500 3.900
Floating point = 0 2.200 3.500 1.800 3.100 1.800 3.100
Floating point = -1.0 2.400 3.500 1.900 3.000 1.900 3.000
n = 1 6.600 8.900 5.900 8.200 5.900 8.200
n = 96 71.300 74.100 61.000 63.400 61.000 63.400
n = 1 6.500 9.800 5.600 9.300 5.600 9.300
n = 96 56.300 59.500 49.200 52.500 49.200 52.500
transferred = 0 4.000 6.300 3.400 5.600 3.400 5.600
transferred = 32 14.600 16.500 11.400 13.300 11.400 13.300
n = 1 6.200 7.900 5.500 7.300 5.500 7.300
n = 96 67.000 68.800 47.300 49.300 47.300 49.300
Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
n = 1 4.200 5.900 3.700 5.600 3.700 5.600
n = 96 11.400 13.800 10.700 12.400 10.700 12.400
n = 1 3.800 4.800 3.400 4.800 3.400 4.800
n = 96 8.500 9.500 8.100 8.900 8.100 8.900


n = 1 9.000 11.700 8.300 11.000 8.300 11.000
n = 96 57.400 63.100 43.800 47.300 43.800 47.300
n = 1 7.700 10.000 7.700 9.500 7.700 9.500
n = 96 57.400 61.900 44.300 45.800 44.300 45.800
n = 1 7.800 10.100 7.300 9.200 7.300 9.200
n = 96 57.300 61.500 43.800 45.800 43.800 45.800
n = 1 7.800 9.600 7.600 8.900 7.600 8.900
n = 96 57.400 61.400 43.900 45.300 43.900 45.300
n = 1 3.700 5.400 3.200 4.800 3.200 4.800
n = 96 6.900 9.000 5.800 7.700 5.800 7.700
n = 1 4.100 5.900 3.400 5.100 3.400 5.100
n = 96 7.100 9.100 6.000 7.900 6.000 7.900
n1 = 16 / n2 = 1 7.950 17.500 7.600 16.900 7.600 16.900
n1 = 16 / n2 = 15 7.950 17.500 7.550 16.900 7.550 16.900
n1 = 16 / n2 = 1 7.950 17.900 7.500 17.400 7.500 17.400
n1 = 16 / n2 = 15 7.900 17.800 7.500 17.300 7.500 17.300
n1 = 16 / n2 = 1 5.950 10.600 4.600 8.700 4.600 8.700
n1 = 16 / n2 = 15 5.900 10.600 4.600 8.700 4.600 8.700
n1 = 16 / n2 = 1 5.950 10.700 4.550 8.700 4.550 8.700
n1 = 16 / n2 = 15 5.950 10.700 4.600 8.800 4.600 8.800
n = 1 3.000 3.400 2.500 2.800 2.500 2.800
n = 15 3.000 3.500 2.500 2.800 2.500 2.800
n = 1 3.000 3.400 2.600 2.800 2.600 2.800
n = 15 3.000 3.400 2.500 2.800 2.500 2.800
TEST When executed 4.400 5.300 3.700 4.700 3.700 4.700
DTEST When executed 4.500 5.400 3.900 4.800 3.900 4.800
n = 1 4.300 4.600 3.700 4.100 3.700 4.100
n = 96 6.000 6.800 5.100 6.000 5.100 6.000
= FFFFFFFFH 3.800 4.100 3.200 3.700 3.200 3.700
n = 2 6.000 7.500 5.300 6.900 5.300 6.900
n = 8 8.100 9.300 6.800 7.800 6.800 7.800
M1 = ON 5.300 5.700 4.700 5.100 4.700 5.100
M4 = ON 5.200 5.700 4.600 5.000 4.600 5.000
M1 = ON 10.400 11.400 9.000 10.000 9.000 10.000
M256 = ON 5.700 6.800 5.100 6.100 5.100 6.100


n = 1 4.400 5.300 3.800 4.600 3.800 4.600
n = 4 4.800 5.700 4.000 5.000 4.000 5.000
n = 1 5.000 5.300 3.500 4.800 3.500 4.800
n = 4 5.600 6.000 4.000 5.100 4.000 5.100
NDIS When executed 11.000 13.100 11.000 13.200 11.000 13.200
NUNI When executed 10.600 12.700 7.300 13.200 7.300 13.200
n = 1 5.000 6.500 4.400 5.800 4.400 5.800
n = 96 36.000 38.400 28.200 29.300 28.200 29.300
n = 1 5.100 6.100 4.600 5.500 4.600 5.500
n = 96 29.900 32.000 22.800 23.800 22.800 23.800
n = 1 4.300 6.900 4.000 6.100 4.000 6.100
n = 96 31.200 33.500 24.700 27.000 24.700 27.000
n = 1 4.400 6.800 4.000 6.000 4.000 6.000
n = 96 30.300 34.800 26.500 28.300 26.500 28.300
n = 1 4.800 9.100 4.800 8.100 4.800 8.100
n = 96 56.400 62.200 47.100 49.600 47.100 49.600
n = 1 4.800 6.800 4.300 5.900 4.300 5.900
n = 96 55.400 60.200 45.400 47.400 45.400 47.400
n = 1 6.200 9.300 5.600 8.800 5.600 8.800
n = 96 6.200 9.400 5.600 8.600 5.600 8.600
n = 1 6.200 9.300 5.600 8.200 5.600 8.200
n = 96 6.100 9.100 5.600 8.400 5.600 8.400
n = 1 4.800 6.200 4.200 5.500 4.200 5.500
n = 96 26.900 28.700 21.300 22.300 21.300 22.300
Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
n = 1 5.500 7.000 4.800 6.100 4.800 6.100
n = 96 53.000 56.300 42.700 44.000 42.700 44.000
n = 1 4.300 8.650 3.900 7.800 3.900 7.800
n = 96 16.000 21.400 12.900 18.000 12.900 18.000
n = 1 5.700 10.600 5.300 9.950 5.300 9.950
n = 96 29.200 35.200 23.000 28.800 23.000 28.800
Return to original program 2.000 3.000 1.600 2.600 1.600 2.600
Return to other program 2.300 3.700 2.000 3.100 2.000 3.100
Internal file pointer 3.100 4.400 2.700 3.600 2.700 3.600
FCALL Pn to –– 19.300 21.500 16.500 18.600 16.500 18.600
*: Program name –– 70.300 82.300 65.900 77.600 65.900 77.600
*: Program name –– 101.000 114.000 91.800 105.000 91.800 105.000
*: Program name –– 70.700 82.800 66.200 78.100 66.200 78.100
*: Program name –– 86.500 107.000 78.800 91.600 78.800 91.600

Category Instruction Condition (Device)
Q06UD(E)HCPU
Min. Max. Min. Max. Min. Max.
When selecting I/O refresh only 12.800 29.100 12.400 28.600 12.400 28.600
When selecting CC-Link refresh
only (Master station side) 16.000 39.500 15.500 39.100 15.500 39.100
When selecting CC-Link refresh
only (Local station side) 16.100 39.500 15.500 39.100 15.500 39.100
refresh only (Control station side) 34.700 70.400 34.400 69.800 34.400 69.800
refresh only (Normal station side) 34.700 70.400 34.400 69.800 34.400 69.800
When selecting intelli auto
refresh only 12.800 33.200 12.800 33.200 12.800 33.200
CCOM
When selecting I/O outside the
group only (Input only) 7.900 21.100 7.700 20.700 7.700 20.700
When selecting I/O outside the
group only (Output only) 16.900 44.800 16.500 44.200 16.500 44.200
When selecting I/O outside the
group only (Both I/O) 22.600 52.600 22.400 52.600 22.400 52.600
When selecting refresh of multi-
ple CPU high speed transmission
13.000 33.800 12.700 33.200 12.700 33.200
with peripheral device 7.250 18.800 7.100 18.500 7.100 18.500
Number of data points = 0 3.700 5.300 3.200 4.600 3.200 4.600
Number of data points = 96 3.800 4.400 3.300 3.800 3.300 3.800
Number of data points = 0 4.300 5.000 3.800 4.400 3.800 4.400
Number of data points = 96 33.500 35.500 24.800 25.700 24.800 25.700
Number of data points = 0 4.300 5.900 3.800 5.300 3.800 5.300
Number of data points = 96 4.300 5.900 3.700 5.400 3.700 5.400
Number of data points = 0 4.800 5.900 3.700 5.300 3.700 5.300
Number of data points = 96 4.300 5.900 3.700 5.300 3.700 5.300
Number of data points = 0 4.900 6.500 4.200 5.800 4.200 5.800
Number of data points = 96 34.200 35.900 25.400 25.900 25.400 25.900
n3 = 1 10.800 24.100 10.700 23.600 10.700 23.600
FROM n1 n2 n3
n3 = 1000 392.600 413.300 390.900 410.200 390.900 410.200
n3 = 1 13.600 27.700 12.600 26.700 12.600 26.700
DFRO n1 n2 n3
n3 = 500 392.600 413.300 390.900 410.200 390.900 410.200
n3 = 1 10.200 21.900 9.600 21.300 9.600 21.300
TO n1 n2 n3
n3 = 1000 373.700 394.100 372.500 390.800 372.500 390.800
n3 = 1 13.000 26.700 12.000 25.700 12.000 25.700
DTO n1 n2 n3
n3 = 500 373.700 394.100 372.500 390.800 372.500 390.800
No display no display 2.400 2.600 1.900 2.000 1.900 2.000
LED instruction execution no
28.100 39.400 24.400 35.800 24.400 35.800
= 1 4.900 6.500 4.300 5.600 4.300 5.600
S D
= -32768 7.200 8.700 6.500 8.000 6.500 8.000
= 1 5.700 7.100 4.900 6.300 4.900 6.300
S D
= -2147483648 10.400 12.000 9.600 11.000 9.600 11.000


= FFFFH 4.400 5.800 3.700 5.200 3.700 5.200
= FFFFFFFFH 5.100 6.500 4.600 6.000 4.600 6.000
= FFFFH 5.100 7.300 4.600 6.500 4.600 6.500
= FFFFFFFFH 6.300 8.500 5.600 7.700 5.600 7.700
Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU


all 2-digit specification 23.300 30.400 22.800 29.000 22.800 29.000
all 6-digit specification 23.300 30.500 22.500 29.000 22.500 29.000
n = 1 5.600 9.000 5.400 8.300 5.400 8.300
n = 96 28.700 32.100 25.200 28.400 25.200 28.400
n = 1 6.000 9.700 5.400 9.000 5.400 9.000
n = 96 35.600 39.800 31.300 35.000 31.300 35.000
n = 1 7.600 9.400 7.300 6.600 7.300 6.600
n = 96 36.300 40.000 29.200 31.600 29.200 31.600
n = 1 6.500 8.900 5.900 8.200 5.900 8.200
n = 96 36.200 39.700 29.200 31.500 29.200 31.500
SIN Single precision 4.500 6.200 4.100 5.700 4.100 5.700
COS Single precision 4.300 6.000 4.000 5.600 4.000 5.600
TAN Single precision 5.100 7.200 5.100 6.700 5.100 6.700
ASIN Single precision 6.100 8.900 5.900 8.500 5.900 8.500
ACOS Single precision 6.800 9.300 6.700 8.900 6.700 8.900
ATAN Single precision 4.000 6.500 3.900 6.000 3.900 6.000
SIND Double precision 8.800 14.300 8.500 13.800 8.500 13.800
COSD Double precision 9.300 15.100 8.800 14.600 8.800 14.600
TAND Double precision 11.200 16.900 10.800 16.500 10.800 16.500
ASIND Double precision 12.000 17.100 11.600 16.600 11.600 16.600
ACOSD Double precision 11.700 16.500 11.200 16.200 11.200 16.200
ATAND Double precision 9.500 14.200 9.100 13.800 9.100 13.800
RAD Single precision 2.500 4.800 2.100 4.300 2.100 4.300
RADD Double precision 4.000 9.600 3.600 9.200 3.600 9.200
DEG Single precision 2.500 4.700 2.200 4.400 2.200 4.400
DEGD Double precision 4.300 9.000 3.800 9.000 3.800 9.000
SQR Single precision 3.000 4.600 2.600 4.300 2.600 4.300
SQRD Double precision 5.600 11.500 5.200 11.000 5.200 11.000


Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
18.600 27.200 18.200 26.500 18.200 26.500 LOG10D Double precision



Q10/Q13/Q20/ Q26UD(E)HCPU
Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max.
Standard RAM 3.000 6.300 2.700 5.900 2.700 5.900
SRAM card 3.000 6.400 2.600 5.800 2.600 5.800
SRAM card to standard RAM 120.000 134.000 115.000 134.000 115.000 134.000
Standard RAM to SRAM card 533.000 560.000 520.000 553.000 520.000 553.000
SRAM card to standard ROM 306.000 346.000 305.000 346.000 305.000 346.000
Standard ROM to SRAM card 311.000 342.000 300.000 334.000 300.000 334.000
DATEWR –– 4.900 9.700 4.100 8.900 4.100 8.900
No digit increase 5.100 8.000 4.700 6.600 4.700 6.600
Digit increase 5.700 8.000 4.600 6.500 4.600 6.500
No digit increase 5.800 8.500 4.600 7.000 4.600 7.000
Digit increase 5.700 7.400 4.600 6.500 4.600 6.500
HOUR –– 2.900 4.800 2.400 4.300 2.400 4.300
status 7.400 11.400 6.800 10.900 6.800 10.900
status 7.400 11.600 6.800 10.900 6.800 10.900
status 5.900 10.000 5.500 9.700 5.500 9.700
status 5.900 10.100 5.500 9.700 5.500 9.700
When not executed 0.008 0.038 0.038
status 7.200 11.400 6.500 10.700 6.500 10.700
Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
status 7.200 11.400 6.500 10.700 6.500 10.700
status 5.700 9.900 5.300 9.300 5.300 9.300
status 5.700 9.900 5.300 9.300 5.300 9.300
When not executed 0.008 0.038 0.038
status 7.400 11.500 6.700 10.800 6.700 10.800
status 7.400 11.500 6.700 10.800 6.700 10.800
status 5.900 10.000 5.400 9.600 5.400 9.600
status 5.900 10.000 5.400 9.600 5.400 9.600
status 7.400 11.400 6.800 10.900 6.800 10.900
status 7.400 11.600 6.800 10.900 6.800 10.900
status 5.900 10.000 5.500 9.700 5.500 9.700
status 5.900 10.100 5.500 9.700 5.500 9.700

Q10/Q13/Q20/ Q26UD(E)HCPU
Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max.
When not executed 0.008 0.038 0.038
status 7.200 11.400 6.500 10.700 6.500 10.700
status 7.200 11.400 6.500 10.700 6.500 10.700
status 5.700 9.900 5.300 9.300 5.300 9.300
status 5.700 9.900 5.300 9.300 5.300 9.300
When not executed 0.008 0.038 0.038
status 7.400 11.500 6.700 10.800 6.700 10.800
status 7.400 11.500 6.700 10.800 6.700 10.800
status 5.900 10.000 5.400 9.600 5.400 9.600
status 5.900 10.000 5.400 9.600 5.400 9.600
status 7.400 11.400 6.800 10.900 6.800 10.900
status 7.400 11.600 6.800 10.900 6.800 10.900
status 5.900 10.000 5.500 9.700 5.500 9.700
status 5.900 10.100 5.500 9.700 5.500 9.700
When not executed 0.008 0.038 0.038
status 7.200 11.400 6.500 10.700 6.500 10.700
status 7.200 11.400 6.500 10.700 6.500 10.700
status 5.700 9.900 5.300 9.300 5.300 9.300
status 5.700 9.900 5.300 9.300 5.300 9.300
When not executed 0.008 0.038 0.038
status 7.400 11.500 6.700 10.800 6.700 10.800
status 7.400 11.500 6.700 10.800 6.700 10.800
status 5.900 10.000 5.400 9.600 5.400 9.600
status 5.900 10.000 5.400 9.600 5.400 9.600

Q10/Q13/Q20/ Q26UD(E)HCPU
Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max.
status 7.400 11.400 6.800 10.900 6.800 10.900
status 7.400 11.600 6.800 10.900 6.800 10.900
status 5.900 10.000 5.500 9.700 5.500 9.700
status 5.900 10.100 5.500 9.700 5.500 9.700
When not executed 0.008 0.038 0.038
status 7.200 11.400 6.500 10.700 6.500 10.700
status 7.200 11.400 6.500 10.700 6.500 10.700
status 5.700 9.900 5.300 9.300 5.300 9.300
status 5.700 9.900 5.300 9.300 5.300 9.300
When not executed 0.008 0.038 0.038
status 7.400 11.500 6.700 10.800 6.700 10.800
status 7.400 11.500 6.700 10.800 6.700 10.800
status 5.900 10.000 5.400 9.600 5.400 9.600
status 5.900 10.000 5.400 9.600 5.400 9.600
Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
status 7.400 11.400 6.800 10.900 6.800 10.900
status 7.400 11.600 6.800 10.900 6.800 10.900
status 5.900 10.000 5.500 9.700 5.500 9.700
status 5.900 10.100 5.500 9.700 5.500 9.700
When not executed 0.008 0.038 0.038
status 7.200 11.400 6.500 10.700 6.500 10.700
status 7.200 11.400 6.500 10.700 6.500 10.700
status 5.700 9.900 5.300 9.300 5.300 9.300
status 5.700 9.900 5.300 9.300 5.300 9.300
When not executed 0.008 0.038 0.038
status 7.400 11.500 6.700 10.800 6.700 10.800
status 7.400 11.500 6.700 10.800 6.700 10.800
status 5.900 10.000 5.400 9.600 5.400 9.600
status 5.900 10.000 5.400 9.600 5.400 9.600

Q10/Q13/Q20/ Q26UD(E)HCPU
Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max.
status 7.400 11.400 6.800 10.900 6.800 10.900
status 7.400 11.600 6.800 10.900 6.800 10.900
status 5.900 10.000 5.500 9.700 5.500 9.700
status 5.900 10.100 5.500 9.700 5.500 9.700
When not executed 0.008 0.038 0.038
status 7.200 11.400 6.500 10.700 6.500 10.700
status 7.200 11.400 6.500 10.700 6.500 10.700
status 5.700 9.900 5.300 9.300 5.300 9.300
status 5.700 9.900 5.300 9.300 5.300 9.300
When not executed 0.008 0.038 0.038
status 7.400 11.500 6.700 10.800 6.700 10.800
status 7.400 11.500 6.700 10.800 6.700 10.800
status 5.900 10.000 5.400 9.600 5.400 9.600
status 5.900 10.000 5.400 9.600 5.400 9.600
status 7.300 11.500 6.700 10.800 6.700 10.800
status 7.300 11.500 6.700 10.800 6.700 10.800
status 5.800 9.900 5.400 9.500 5.400 9.500
status 5.800 9.900 5.400 9.500 5.400 9.500
When not executed 0.008 0.038 0.038
status 7.000 11.500 6.300 10.800 6.300 10.800
status 7.000 11.500 6.300 10.800 6.300 10.800
status 5.500 9.900 5.100 9.500 5.100 9.500
status 5.500 9.900 5.100 9.500 5.100 9.500
When not executed 0.008 0.038 0.038
status 7.300 11.500 6.600 10.800 6.600 10.800
status 7.300 11.500 6.600 10.800 6.600 10.800
status 5.900 9.900 5.300 9.500 5.300 9.500

Q10/Q13/Q20/ Q26UD(E)HCPU
Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max.
status 7.300 11.500 6.700 10.800 6.700 10.800
status 7.300 11.500 6.700 10.800 6.700 10.800
status 5.800 9.900 5.400 9.500 5.400 9.500
status 5.800 9.900 5.400 9.500 5.400 9.500
When not executed 0.008 0.038 0.038
status 7.000 11.500 6.300 10.800 6.300 10.800
status 7.000 11.500 6.300 10.800 6.300 10.800
status 5.500 9.900 5.100 9.500 5.100 9.500
status 5.500 9.900 5.100 9.500 5.100 9.500
When not executed 0.008 0.038 0.038
status 7.300 11.500 6.600 10.800 6.600 10.800
status 7.300 11.500 6.600 10.800 6.600 10.800
status 5.900 9.900 5.300 9.500 5.300 9.500
status 5.900 9.900 5.300 9.500 5.300 9.500
Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
status 7.300 11.500 6.700 10.800 6.700 10.800
status 7.300 11.500 6.700 10.800 6.700 10.800
status 5.800 9.900 5.400 9.500 5.400 9.500
status 5.800 9.900 5.400 9.500 5.400 9.500
When not executed 0.008 0.038 0.038
status 7.000 11.500 6.300 10.800 6.300 10.800
status 7.000 11.500 6.300 10.800 6.300 10.800
status 5.500 9.900 5.100 9.500 5.100 9.500
status 5.500 9.900 5.100 9.500 5.100 9.500
When not executed 0.008 0.038 0.038
status 7.300 11.500 6.600 10.800 6.600 10.800
status 7.300 11.500 6.600 10.800 6.600 10.800
status 5.900 9.900 5.300 9.500 5.300 9.500
status 5.900 9.900 5.300 9.500 5.300 9.500

Q10/Q13/Q20/ Q26UD(E)HCPU
Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max.
status 7.300 11.500 6.700 10.800 6.700 10.800
status 7.300 11.500 6.700 10.800 6.700 10.800
status 5.800 9.900 5.400 9.500 5.400 9.500
status 5.800 9.900 5.400 9.500 5.400 9.500
When not executed 0.008 0.038 0.038
status 7.000 11.500 6.300 10.800 6.300 10.800
status 7.000 11.500 6.300 10.800 6.300 10.800
status 5.500 9.900 5.100 9.500 5.100 9.500
status 5.500 9.900 5.100 9.500 5.100 9.500
When not executed 0.008 0.038 0.038
status 7.300 11.500 6.600 10.800 6.600 10.800
status 7.300 11.500 6.600 10.800 6.600 10.800
status 5.900 9.900 5.300 9.500 5.300 9.500
status 5.900 9.900 5.300 9.500 5.300 9.500
status 7.300 11.500 6.700 10.800 6.700 10.800
status 7.300 11.500 6.700 10.800 6.700 10.800
status 5.800 9.900 5.400 9.500 5.400 9.500
status 5.800 9.900 5.400 9.500 5.400 9.500
When not executed 0.480 0.320 0.240
status 8.200 25.500 8.200 25.500 6.500 25.500
status 8.200 25.500 8.200 25.500 6.500 25.500
status 6.500 23.100 6.500 23.100 6.500 23.100
status 6.500 23.100 6.500 23.100 6.500 23.100
When not executed 0.480 0.320 0.240
status 8.200 25.500 8.200 25.500 6.500 25.500
status 8.200 25.500 8.200 25.500 6.500 25.500
status 6.500 23.100 6.500 23.100 6.500 23.100
status 6.500 23.100 6.500 23.100 6.500 23.100


Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
No digit increase 16.800 75.400 16.800 75.400 16.800 75.400
No digit increase 17.600 75.300 17.600 75.300 17.600 75.300
File register of standard RAM 4.100 4.200 4.100 4.200 4.100 4.200
File register of SRAM card ––
File register of standard RAM 5.400 5.500 5.400 5.500 5.400 5.500
File register of SRAM card ––

Q10/Q13/Q20/ Q26UD(E)HCPU
Category Instruction Condition (Device)
Min. Max. Min. Max. Min. Max.
19.600 26.500 19.300 26.000 19.300 26.000
19.600 26.500 19.100 26.200 19.100 26.200
MELSECNET/H,
53.500 73.500 53.000 72.700 53.000 72.700
29.800 41.200 29.800 40.600 29.800 40.600
S.RTWRITE –– 6.700 11.100 6.000 10.400 6.000 10.400
n2 = 1 4.000 8.400 3.700 8.000 3.700 8.000
n2 = 16 12.500 17.000 12.200 16.600 12.200 16.600
TRACE Start 46.600 48.300 43.800 44.700 43.800 44.700
1 point 11.300 16.800 9.200 15.100 9.200 15.100
points 120.700 127.100 61.000 68.600 61.000 68.600
1 point 11.200 16.700 9.400 15..600 9.400 15.600
points 180.700 187.100 165.000 172.600 165.000 172.600
SP.FREAD –– 5.900 11.000 5.400 10.500 5.400 10.500
SP.DEVST –– 4.500 36.500 4.000 34.500 4.000 34.500
S.DEVLD –– 11.000 17.800 10.000 17.000 10.000 17.000
App-110


n4 = 1 34.700 34.900 33.500 34.400 33.500 34.400
n4 = 320 85.900 87.600 75.200 75.500 75.200 75.500
n3 = 1 4.700 23.800 5.200 23.300 5.200 23.300
n3 = 320 57.500 76.200 47.100 64.500 47.100 64.500
n3 = 1 5.300 23.800 5.800 23.300 5.800 23.300
n3 = 320 111.300 128.400 91.500 108.500 91.500 108.500
n3 = 1 5.000 23.800 4.300 23.300 4.300 23.300
n3 = 320 51.400 65.600 44.400 60.700 44.400 60.700
n3 = 1 11.600 17.700 10.600 13.900 10.600 13.900
n3 = 320 142.000 160.000 142.000 149.000 142.000 149.000
n3 = 1000 431.000 463.000 422.000 448.000 422.000 448.000
n3 = 1 5.200 23.800 5.600 23.300 5.600 23.300
n3 = 320 96.400 113.200 83.600 100.800 83.600 100.800
n3 = 1 12.900 20.800 12.200 17.100 12.200 17.100
n3 = 320 277.000 299.000 274.000 291.000 274.000 291.000
n3 = 1000 838.000 860.000 835.000 857.000 835.000 857.000
Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
the instructions for which a rise execution instruction ( P) is not specified, the processing time is the same as an ON execution instruction.

(2) Table of the time to be added when file register, module access device or link direct device is used
(a) When using Q00UJCPU, Q00UCPUI, Q01UCPU and Q02UCPU
Device name data Device Specification
Bit Source 0.100
Destination 0.100
Word Source 0.100
Destination 0.100
Double word Source 0.100 0.100 0.100 0.200
Destination 0.100 0.100 0.100 0.200
Bit Source –– –– –– 0.220
Destination –– –– –– 0.180
Word Source –– –– –– 0.220
Destination –– –– –– 0.180
Double word Source –– –– –– 0.440
Destination –– –– –– 0.380
Bit Source –– –– –– 0.160
Destination –– –– –– 0.140
Word Source –– –– –– 0.160
Destination –– –– –– 0.140
Double word Source –– –– –– 0.320
Destination –– –– –– 0.300
Bit Source 0.120
Destination 0.120
Word Source 0.120
Destination 0.120
Double word Source 0.120 0.120 0.120 0.220
Destination 0.120 0.120 0.120 0.220
Bit Source –– –– –– 0.240
Destination –– –– –– 0.200
Word Source –– –– –– 0.240
Destination –– –– –– 0.200
Double word Source –– –– –– 0.460
Destination –– –– –– 0.400
Bit Source –– –– –– 0.180
Destination –– –– –– 0.160
Word Source –– –– –– 0.180
Destination –– –– –– 0.160
Double word Source –– –– –– 0.340
Destination –– –– –– 0.320
Bit Source –– –– –– 12.000
Destination –– –– –– 17.300
Word Source –– –– –– 9.700
(Un\G , U3En\G0 to G4095)
Destination –– –– –– 33.000
Double word Source –– –– –– 24.200
Destination –– –– –– 34.800
Bit Source –– –– –– 32.900
Destination –– –– –– 67.300
Word Source –– –– –– 37.200
Destination –– –– –– 37.000
Double word Source –– –– –– 39.500
Destination –– –– –– 41.900

(b) When using Q03UD(E)CPU, Q04UD(E)HCPU, Q06UD(E)HCPU, Q10UD(E)HCPU,
Q13UD(E)HCPU, Q20UD(E)HCPU and Q26UD(E)HCPU
Device name data Device Specification
Q10/Q13/Q20/
Q06UD(E)HCPU
Q26UD(E)HCPU
Bit Source 0.100 0.048 0.048
Destination 0.100 0.038 0.038
Word Source 0.100 0.048 0.048
Destination 0.100 0.038 0.038
Double word Source 0.200 0.095 0.095
Destination 0.200 0.086 0.086
Bit Source 0.220 0.200 0.200
Destination 0.180 0.162 0.162
Word Source 0.220 0.200 0.200
Destination 0.180 0.162 0.162
Double word Source 0.440 0.399 0.399
Destination 0.380 0.361 0.361
Bit Source 0.160 0.152 0.152
Destination 0.140 0.133 0.133
Word Source 0.160 0.152 0.152
Destination 0.140 0.133 0.133
Double word Source 0.320 0.304 0.304
Destination 0.300 0.295 0.295
Bit Source 0.120 0.057 0.057
Destination 0.120 0.048 0.048
Word Source 0.120 0.057 0.057
Destination 0.120 0.048 0.048
Double word Source 0.220 0.105 0.105
Destination 0.220 0.095 0.095
Bit Source 0.240 0.209 0.209
Destination 0.200 0.171 0.171
Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU
Word Source 0.240 0.209 0.209
Destination 0.200 0.171 0.171
Double word Source 0.460 0.409 0.409
Destination 0.400 0.371 0.371
Bit Source 0.180 0.162 0.162
Destination 0.160 0.143 0.143
Word Source 0.180 0.162 0.162
Destination 0.160 0.143 0.143
Double word Source 0.340 0.314 0.314
Destination 0.320 0.304 0.304
Bit Source 11.700 11.200 11.200
Destination 15.400 15.300 15.300
Word Source 9.460 9.410 9.410
(Un\G , U3En\G0 to G4095)
Destination 19.000 19.000 19.000
Double word Source 11.000 10.900 10.900
Destination 18.800 18.700 18.700
Bit Source 32.700 31.300 31.300
Destination 52.300 29.900 29.900
Word Source 28.500 17.300 17.300
Destination 27.500 14.700 14.700
Double word Source 30.300 18.100 18.100
Destination 30.600 15.700 15.700

Appendix 2.1 Comparison of Q with AnNCPU, AnACPU, and AnUCPU
Appendix 2.1.1 Usable devices
TableApp.2.1 Device Comparison
Device name QCPU AnUCPU AnACPU AnNCPU
Q02 Q02H Q06H Q12H Q25H Q02PH Q06PH Q12PH Q25PH Q12PRH Q25PRH Q03UD(E) Q04UD(E)H Q06UD(E)H Q10UD(E)H Q13UD(E)H Q20UD(E)H Q26UD(E)H Q02U : 2048 points
Number of I/O points*9
Number of I/O device points*8 2048 points*1 8192 points*1 8192 points Same with I/O devices points of each CPU
Internal relay 8192 points*1
Total 2048 points Latch relay 2048 points*1 8192 points*1
Sequence program –– ––
SFC 2048 points*6 8192 points ––
Annunciator 1024 points*1 2048 points*1 2048 points 2048 points 256 points
Edge relay 1024 points*1 2048 points*1 ––
Link relay 2048 points*1 8192 points*1 8192 points 4096 points 1024 points
Link special relay 1024 points 2048 points 56 points
Timer 512 points*1 2048 points*1 Total 2048 points Total 256 points Retentive timers 0 points*1
Counter 512 points*1 1024 points*1 1024 points 256 points
Data register 11136 points*1 12288 points*1 8192 points 6144 points 1024 points
Link register 2048 points*1 8192 points*1 8192 points 4096 points 1024 points
Link special register 1024 points 2048 points 56 points
Function input 16 points (FX0 to FXF)*7 ––
Function output 16 points (FY0 to FYF)*7 ––
Special relay 1000 points 2048 points 256 points Function register 5 points (FD0 to FD4) –– Special register 1000 points 2048 points 256 points
Link direct device Designated by J \ ––
device Designated by U \G ––
Z 10 points (Z0 to Z9) 16 points (Z0 to Z15) 7 points (Z, Z1 to Z6) 1 point (Z)
V*2 –– 7 points (V, V1 to V6) 1 point (V)
32768 points/ block*5 (R0 to R32767)
32768 points/block(R0 to R32767)*10 8192 points/block(R0 to R8191)
Accumulator*3 –– 2 points
Nesting 15 points 8 points
Pointer 300 points 512 points 4096 points 256 points
Interrupt pointers 128 points 128 points 256 points 32 points
SFC blocks 126*6 320 points ––
SFC transition devices –– 512 points –– Decimal constants K - 2147483648 toK2147483647 Hexadecimal constants H0 to HFFFFFFFF
Real number constants*6 E ± 1.17550-38 to E ± 3.40282+38 ––
Character string "QnACPU", "ABCD"*4 ––

*1 : The number of device points can be changed at the parameters. *2 : QCPU uses V as an edge relay. *3 : Instructions that used accumulators with the AnNCPU, AnACPU, and AnUCPU have different formats with
the QCPU. *4 : Can only be used by the $MOV instruction with the Q00JCPU, Q00CPU, and Q01CPU. *5 : The Q00JCPU does not have file registers. *6 : Applicable to products with the first 5 digits of the serial number 04122 or higher
(Q00JCPU, Q00CPU, and QCPU). *7 : Each 5 points of FX0 to FX4 and FY0 to FY4 can be used on the programs. *8 : The number of points that can be used on the programs *9 : The number of accessible points to actual I/O modules *10 : The Q00UJCPU does not have file registers.%ParaEnd% Appendix 2.1.2 I/O control mode
TableApp.2.2 I/O Control Mode

Symbol in table : Usable, ––: Unusable *1 : The DOUT, DSET, and SRST instructions are direct output dedicated instructions.
There are no dedicated instructions for direct input. *2 : Switching between the refresh mode and direct mode is conducted with an AnNCPU DIP switch.

Appendix2 CPU PERFORMANCE COMPARISON Appendix 2.1 Comparison of Q with AnNCPU, AnACPU, and AnUCPU
Symbols in table : Usable, –– : Unusable *1 : Applicable to products with the first 5 digits of the serial number 04122 or higher
(Q00JCPU, Q00CPU, and Q01CPU). *2 : Usable with only the MOV instruction for the Q00JCPU, Q00CPU, and Q01CPU.

TableApp.2.4 Timer Comparison

Change of measurement unit at the parameter is enabled.
Change of measurement unit at the parameter is enabled.
Same measurement unit as low speed timer Fixed at 100ms
Setting range for set values 1 to 32767 1 to 32767
Processing for set value 0 Momentarily ON No maximum (does not time out)
Contact Enabled (only Z0 and Z1 are usable) Enabled Disabled
Coil Enabled (only Z0 and Z1 are usable) Disabled Disabled
Set value Enabled (Z0 to Z15 are usable)*1 Disabled Disabled
Present value Enabled (Z0 to Z15 are usable)*1 Enabled Enabled
When OUT Tn instruction is executed When END processing is done Contact ON/OFF processing
*1 : The Q00J/Q00/Q01CPU can use Z0 to Z9.
The Universal model QCPU can use Z0 to Z19.
(1) Cautions on using timers
QCPU updates the present value of timers and turns ON/OFF the contacts of them at the execution of OUT T instruction. Therefore, if "Present value Set value" when the timer coil is turned ON, the contact of that timer is turned ON. When creating a program in which the operation of the timer contact triggers the operation of another timer, create the program for the timer that operates later first. In the following cases, all timers go ON at the same scan if the program is created in the order the timers operate.


T2 timer starts measurement from the next scan after turning the contact of T1 ON. T2
T1 timer starts measurement from the next scan after turning the contact of T0 ON.
T0 timer starts measurement when X0 is turned ON.

T0 timer starts measurement when X0 is turned ON.
Contacts of T1 and T2 timers are turned ON when contact of T0 is turned ON.
TableApp.2.5 Comparison of Counters

Appendix2 CPU PERFORMANCE COMPARISON Appendix 2.1 Comparison of Q with AnNCPU, AnACPU, and AnUCPU
*1: The Q00J/Q00/Q01CPU can use Z0 to Z9. The Universal model QCPU can use Z0 to Z19.

changed (Except dedicated instructions for AnACPU and AnUCPU)
Because the QCPU does not have accumulators (A0, A1), the format of AnUCPU, AnACPU and AnNCPU instructions that used accumulators has been changed.
TableApp.2.7 Instructions Whose Expression Has Changed
Instruction Format Remarks Instruction Format Remarks
ROR D n ROR n
RCR D n RCR n
ROL D n ROL n
RCL D n RCL n
DROR D n DROR n
DRCR D n DRCR n
DROL D n DROL n
DRCL D n DRCL n
16-bit data search • Search results are stored at the D and D+1 devices.
SER D n S1 S2 SER n S1 S2
32-bit data search • Search results are stored at the D and D+1 devices.
DSER D n S1 S2 DSER n S1 S2
Partial refresh • Dedicated instruction is added.
RFS D n SEG D n
8-character ASCII conversion –– ––
$MOV D (Character string) ASC D (Character string)
Carry flag set • No dedicated instruction ––
Carry flag reset • No dedicated instruction ––
Jump to END instruction • Dedicated instruction is added.
CHK instruction*1 • The CHKST instruction is added. ––
CHK P254 CHK
*1: Unusable for the Q00J/Q00/Q01CPU.

(1) Method of expression of dedicated instructions
Dedicated instructions based on the LEDA, LEDB, LEDC, SUB, and LEDR instructions, that are used with the AnACPU or AnUCPU have been changed for the same format as the basic instructions and the application instructions for the QCPU. The instructions that cannot be converted due to the absence of the corresponding instructions in the QCPU are converted into OUT SM1255/OUT SM999 (for the Q00J/Q00/ Q01CPU). The instructions that have been converted into OUT SM1255/OUT SM999 should be replaced by other instructions or deleted.
TableApp.2.8 Method of Expression of Dedicated Instruction
Instruction name LEDA(B) Command
Instruction name S D n Command
LEDR
: S, D, and n indicate data used by instructions.
(2) Dedicated instructions whose names have been changed
Dedicated instructions for the AnUCPU or AnACPU which have the same instruction name as is used for basic instructions and application instructions have undergone name changes in the QCPU.
Appendix2 CPU PERFORMANCE COMPARISON Appendix 2.1 Comparison of Q with AnNCPU, AnACPU, and AnUCPU
TableApp.2.9 Method of Expression of Dedicated Instruction
Floating point addition E+ ADD
Floating point subtraction E SUB
Floating point multiplication E* MUL
Floating point division E/ DIV
Data dissociation NDIS DIS
Data association NUNI UNI
Updating check patterns CHKCIR,CHKEND CHK, CHKEND
QCPU AnUCPU/AnACPU · n LEDC/SUB · Function QCPU AnUCPU/AnACPU

Special relays, SM, are internal relays whose applications are fixed in the Programmable Controller.
For this reason, they cannot be used by sequence programs in the same way as the normal internal relays.
However, they can be turned ON or OFF as needed in order to control the CPU module.
The heading descriptions in the following special relay lists are shown in 3.1.
TableApp.3.1 Explanation of special relay list
Item Function of Item
Number • Indicates special register number
Name • Indicates name of special relay
Meaning • Indicates contents of special relay
Explanation • Discusses contents of special relay in more detail
Indicated only for registers set by system
Initial : Set only during initial processing (when power supply is turned ON, or when going from STOP
System switching : Set when system switching is executed.
(When the contents are changed, the special relay is represented M9 format change. Incompatible with the
Q00J/Q00/Q01 and QnPRH.)
Indicates the corresponding CPU module type name.
QCPU : Indicates all the Q series CPU modules.
Q00J/Q00/Q01 : Indicates the Basic model QCPU.
Qn(H) : Indicates the High Performance model QCPU.
QnPH : Indicates the Process CPU.
QnPRH : Indicates the Redundant CPU.
Do not change the values of special relays set by the system with user program or device test operations. Doing so may result in system downtime or communication fault.

TableApp.3.2 Special relay
Number Name Meaning Explanation Set by (When Set)
CPU
M9
S (Error) New Q00J/Q00/Q01
S (Error) New Q00J/Q00/Q01
SM5 Error common information
SM16 Error individual information
S (Error) New Q00J/Q00/Q01
Appendix 3 SPECIAL RELAY LIST
SM53 AC/DC DOWN detection
S (Error) M9005 • Turns ON if an instantaneous power failure of within 10ms occurs during use of the DC power supply module. Reset when the power supply is switched OFF, then ON.

TableApp.3.2 Special relay
Number Name Meaning Explanation Set by (When Set)
CPU
M9
SM60 Blown fuse detection
SM61 I/O module verify error OFF : Normal ON : Error
SM62 Annunciator detection OFF : Not detected ON : Detected • Goes ON if even one annunciator (F) goes ON. S (Instruction
M9108
SM91 Corresponds to SD91 M9109
SM92 Corresponds to SD92 M9110
SM93 Corresponds to SD93 M9111
SM94 Corresponds to SD94 M9112
Startup of monitoring timer for step transition (Enabled only when SFC program exists)
SM95 Corresponds to SD95 M9113
SM96 Corresponds to SD96 M9114
SM97 Corresponds to SD97 New
SM98 Corresponds to SD98 New
SM99 Corresponds to SD99 New
SM100 Serial communication function using flag
function is used.
SM101 Communication protocol status flag
Q00UJ
Program memory batch transfer execution status
changed) New QnU*6

TableApp.3.3 Special relay
Number Name Meaning Explanation Set by (When Set)
CPU
M9
SM202 LED OFF command OFF ON : LED OFF • When this relay goes from OFF to ON, the LEDs corresponding to the individual bits at SD202 go off U New
SM203 STOP contact STOP status • Goes ON at STOP status S (Status change) M9042
SM204 PAUSE contact PAUSE status • Goes ON at PAUSE status S (Status change) M9041
SM210 Clock data set request OFF : Ignored ON : Set request
U M9025
SM213 Clock data read request
Turned ON when access can be made to the CPU module No.1 from the other CPU module at power-on or reset operation. SM220 is used as interlock for accessing the CPU module No.1 when the multiple CPU synchronous setting is asynchronous.
SM220 CPU No.1 preparation completed
Turned ON when access can be made to the CPU module No.2 from the other CPU module at power-on or reset operation. SM221 is used as interlock for accessing the CPU module No.2 when the multiple CPU synchronous setting is asynchronous.
SM221 CPU No.2 preparation completed
Turned ON when access can be made to the CPU module No.3 from the other CPU module at power-on or reset operation. SM222 is used as interlock for accessing the CPU module No.3 when the multiple CPU synchronous setting is asynchronous.
SM222 CPU No.3 preparation completed
Turned ON when access can be made to the CPU module No.4 from the other CPU module at power-on or reset operation. SM223 is used as interlock for accessing the CPU module No.4 when the multiple CPU synchronous setting is asynchronous.
SM223 CPU No.4 preparation completed
Appendix 3 SPECIAL RELAY LIST
SM235 Online module change flag
S (During online module change) New
S (When online module change is
SM236 Online module change complete flag
SM237 Device range check inhibit flag
U New QnU*6

TableApp.3.3 Special relay
Number Name Meaning Explanation Set by (When Set)
CPU
M9
SM240 No. 1 CPU reset flag
SM241 No. 2 CPU reset flag
SM242 No. 3 CPU reset flag
S (Status change) New
SM243 No. 4 CPU reset flag
SM244 No. 1 CPU error flag
SM245 No. 2 CPU error flag
SM246 No. 3 CPU error flag
SM247 No. 4 CPU error flag
S (Status change) New
SM250 Max. loaded I/O read OFF : Ignored ON : Read
SM254 All stations refresh command
*1: This applies to the CPU of function version B or later. *2: The module whose first 5 digits of serial No. is "09012" or later. *5: The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU. *6: The module whose first 5 digits of serial No. is "10042" or later. *8: The Universal model QCPU except the Q00UJCPU.

TableApp.3.3 Special relay
Number Name Meaning Explanation Set by (When Set)
CPU
M9
MELSECNET/10, MELSECNET/H module 1 information
MELSECNET/10, MELSECNET/H module 2 information
MELSECNET/10, MELSECNET/H module 3 information
MELSECNET/10, MELSECNET/H module 4 information
S (Status change) New
Communication reserved time delay enable/disable flag
Appendix 3 SPECIAL RELAY LIST
SM320 Presence/absence of SFC program
QnU SM321 Start/stop SFC program
*1: This applies to the CPU of function version B or later.

TableApp.3.3 Special relay
Number Name Meaning Explanation Set by (When Set)
CPU
M9
SM322 SFC program start status
Presence/absence of continuous transition for entire block
Set the presence/absence of continuous transition for the block where "Continuous transition bit" of the SFC data device has not been set.
SM324 Continuous transition prevention flag
S (Status change) New
Select whether the coil outputs of the active steps are held or not at the time of a block stop.
SM325 Output mode at block stop
SM326 SFC device clear mode
Selects the device status when the stopped CPU is run after the sequence program or SFC program has been modified when the SFC program exists.
Select the device status at the time of switching from STOP to program write to RUN.(All devices except the step relay)
SM327 Output during end step execution
Select whether clear processing will be performed or not if active steps other than the ones being held exist in the block when the end step is reached.?
Clear processing mode when end step is reached
U New Q00J/Q00/Q01*1
performed.
Select whether the low speed execution type program will be executed in the asynchronous mode or in the synchronous mode.
Operation mode for low speed execution type program
U New Qn(H) QnPH
SM331 Normal SFC program execution status
S (Status change) New
Program execution management SFC program execution status
ON indicates completion of intelligent function module access
SM390 Access execution flag
S (Status change) New
GINT instruction execution completion flag
Indicates execution status of the S(P).GINT instruction.
*1: This applies to the CPU of function version B or later. *3: The module whose first 5 digits of serial No. is "04122" or later. *4: The module whose first 5 digits of serial No. is "07032" or later.

TableApp.3.4 Special relay
Number Name Meaning Explanation Set by (When Set)
CPU
M9
SM400 Always ON • Normally is ON S (Every END
QCPU
SM401 Always OFF • Normally is OFF S (Every END
SM402 After RUN, ON for 1 scan only
1 scan ON OFF 1 scan of scan execution type
Initial execution type program
ON OFF 1 scan ON OFF
SM403 After RUN, OFF for 1 scan only
Initial execution type program
1 scan of scan execution type
Low speed execution type programON for 1 scan only after RUN
ON OFF
Appendix 3 SPECIAL RELAY LIST
Low speed execution type programAfter RUN, OFF for 1 scan only
ON OFF 1 scan
SM409 0.01 second clock
0.005s 0.005s
S (Status change) New
0.05s 0.05s
SM411 0.2 second clock M9031
0.1s 0.1s
SM412 1 second clock M9032
0.5s 0.5s
SM413 2 second clock M9033
S (Status change) M9034form
SM414 2n second clock

TableApp.3.4 Special relay
Number Name Meaning Explanation Set by (When Set)
CPU
M9
SM415 2n (ms) clock
S (Status change) New
SM421 User timing clock No.1 M9021
SM422 User timing clock No.2 M9022
SM423 User timing clock No.3 M9023
SM424 User timing clock No.4 M9024
n2 scan n2 scan
DUTY n1 n2 SM420
SM430 User timing clock No.5
SM431 User timing clock No.6
processing) New Qn(H) QnPH
SM432 User timing clock No.7
SM433 User timing clock No.8
SM434 User timing clock No.9
TableApp.3.5 Special relay

TableApp.3.6 Special relay

*1: This applies to the CPU of function version B or later.

TableApp.3.7 Special relay
Number Name Meaning Explanation Set by (When Set)
CPU
M9
SM600 Memory card usable flags
OFF : Unusable ON : Use enabled • ON when memory card is ready for use by user S (Status change) New
SM601 Memory card protect flag
OFF : No protect ON : Protect • Goes ON when memory card protect switch is ON S (Status change) New
SM602 Drive 1 flag OFF : No drive 1 ON : Drive 1 present • Turns ON when the mounted memory card is RAM S (Status change) New
SM603 Drive 2 flag OFF : No drive 2 ON : Drive 2 present • Turns ON when the mounted memory card is ROM S (Status change) New
SM604 Memory card in-use flag
OFF : Not used ON : In use • Goes ON when memory card is in use S (Status change) New
SM605 Memory card remove/ insert prohibit flag
SM609 Memory card remove/ insert enable flag
SM620 Drive 3/4 usable flags OFF : Unusable ON : Use enabled • Always ON S (Initial) New QCPU
SM623 Drive 4 flag OFF : No drive 4 ON : Drive 4 present • Always ON S (Initial) New QCPU
SM624 Drive 3/4 in-use flag OFF : Not used ON : In use
SM640 File register use OFF : File register not used ON : File register in use • Goes ON when file register is in use S (Status change) New
Appendix 3 SPECIAL RELAY LIST
*1: The Universal model QCPU except the Q00UJCPU, Q00UCPU, and Q01UCPU. *2: The Universal model QCPU except the Q00UJCPU.

TableApp.3.7 Special relay
Number Name Meaning Explanation Set by (When Set)
CPU
M9
SM650 Comment use OFF : File register not used ON : File register in use • Goes ON when comment file is in use S (Status change) New
Latch data backup to standard ROM completion flag
S (Status change) New QnU
Memory card file register access range flag
Error completion of latch data backup to standard ROM
Specification of restration repeated execution
SM680 Program memory write error
S (At write) New
SM681 Program memory writing flag
S (At write) New
Program memory overwrite count error flag
SM685 Standard ROM write error
SM686 Standard ROM writing flag
S (At write) New
Standard ROM overwrite count error flag
S (At write) New
SM691 Backup start preparation status flag
Turns on when the backup start preparation is completed. S (Status change) New
SM692 Restoration complete flag
Turns on when restoration of the backup data in the memory card is completed. S (Status change) New
*1: The Universal model QCPU except the Q00UJCPU, Q00UCPU, and Q01UCPU. *3: The modules whose serial number (first five digits) is "10102" or later are the relevant models. (Except the Q00UJCPU, Q00UCPU, and Q01UCPU)

(7) Instruction-Related Special Relays
TableApp.3.8 Special relay
Number Name Meaning Explanation Set by (When Set)
CPU
M9
SM700 Carry flag OFF : Carry OFF ON : Carry ON • Carry flag used in application instruction S (Instruction
SM701 Number of output characters selection
Switching the number of output characters and the output pattern
Turns on when the data to be compared by the DT or TM instruction is not recognized as date data or time data, or the device (3 words) to be compared exceeds the specified device range.
DT/TM instruction improper data detection flag
S (Instruction execution) or U New
SM710 CHK instruction priority ranking flag
SM715 EI flag OFF : During DI ON : During EI • ON when EI instruction is being executed. S (Instruction
Turns on when all data conditions are confirmed that they are met by the DBKCMP instruction. (Initial execution type program, scan execution type program, stand-by type program executed from initial execution type program or scan execution type program)
Block comparison (Except an interrupt program)
Turns on when all data conditions are confirmed that they are met by the DBKCMP instruction. (Interrupt program, fixed scan execution type program, stand-by type program executed from interrupt program or fixed scan execution type program)
SM717 Block comparison (Interrupt program)
Block comparison (Interrupt program (I45))
Turns on when all data conditions are confirmed that they are met by the DBKCMP instruction. (Interrupt program (I45) or Stand-by type program executed from interrupt program (I45))
Appendix 3 SPECIAL RELAY LIST
SM720 Comment read completion flag
S (Status change) New
S (Status change) New
SM722 BIN/DBIN instruction error disabling flag

TableApp.3.8 Special relay
Number Name Meaning Explanation Set by (When Set)
CPU
M9
XCALL instruction execution condition designation
U New Qn(H)*1
SFC comment readout instruction in execution flag
S (status change) New
instruction is activating.
SM738 MSG instruction reception flag
execution) New Qn(H) QnPRH
SM750 Scaling instruction search method setting
Determines a search method when the scaling instruction is executed. U New QnU*8
PID bumpless processing (for complete derivative)
Selection of refresh processing during COM/CCOM instruction execution
processes other than an I/O refresh ON : Performs refresh set
SM776 Enable/disable local device at CALL
U New Qn(H) QnPH QnPRH
Enable/disable local device in interrupt program
PID bumpless processing(for incomplete derivative)

TableApp.3.8 Special relay
Number Name Meaning Explanation Set by (When Set)
CPU
M9
Block information using multiple CPU high-speed transmission dedicated instruction (for CPU No.1)
Block information using multiple CPU high-speed transmission dedicated instruction (for CPU No.2)
Block information using multiple CPU high-speed transmission dedicated instruction (for CPU No.3)
A
Block information using multiple CPU high-speed transmission dedicated instruction (for CPU No.4)
*7: The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU.
TableApp.3.9 Special relay
Number Name Meaning Explanation Set by (When Set)
CPU
M9
SM802 Trace execution in progress
OFF : Suspend ON : Start • Switches ON during execution of trace. S (Status change) M9046
Appendix 3 SPECIAL RELAY LIST
SM804 After trace trigger OFF : Not after trigger ON : After trigger • Switches ON after trace is triggered. S (Status change) New
SM805 Trace completed OFF : Not completed ON : End • Switches ON at completion of trace S (Status change) M9043
SM826 Trace error OFF : Normal ON : Errors • Switches ON if error occurs during execution of trace S (Status change) New
Forced registration specification of trace setting
U New QnU*1
*1: The Universal model QCPU except the Q00UJCPU.

(9) A to Q conversion correspondences
Special relays SM1000 to SM1255 are the relays which correspond to ACPU special relays M9000 to M9255 after A to Q conversion. (However, the Basic model QCPU and Redundant CPU do not support the A to Q conversion.) These special relays are all set by the system, and cannot be set by the user program. To turn them ON/OFF by the user program, change the special relays in the program into those of QCPU. However, some of SM1084 and SM1200 to SM1255 (corresponding to M9084 and M9200 to M9255 before conversion) can be turned ON/OFF by the user program, if they could be turned ON/OFF by the user program before conversion.For details on the ACPU special relays, see the user's manuals for the individual CPUs, and MELSECNET or MELSECNET/ B Data Link System Reference Manuals
Check "Use special relay/special register from SM/SD1000" for "A-PLC" on the PLC system tab of PLC parameter in GX Developer when the converted special relays are used with the High Performance model QCPU, Process CPU, and Universal model QCPU. When not using the converted special relays, uncheck "Use special relay/special register from SM/SD1000" to save the time taken for processing special relays.
The following are additional explanations about the Special Relay for Modification column.
When a special relay for modification is provided, the device number should
be changed to the provided QCPU special relay.
When is provided, the converted special relay can be used for the device number.
When is provided, the device number does not work with QCPU.
TableApp.3.10 Special relay


TableApp.3.11 Special relay
Special Relay after Conversion
Special Relay for Modification
Name Meaning Details Corresponding
M9005 SM1005 – AC DOWN detection
M9006 SM1006 – Battery low OFF : Normal ON : Battery low
M9007 SM1007 – Battery low latch OFF : Normal ON : Battery low
M9008 SM1008 SM1 Self-diagnosis error
M9009 SM1009 SM62 Annunciator detection
M9011 SM1011 SM56 Operation error flag
M9012 SM1012 SM700 Carry flag OFF : Carry OFF ON : Carry ON • Carry flag used in application instruction.
Qn(H) QnPH M9016 SM1016 Data memory clear flag
M9017 SM1017 Data memory clear flag
M9020 SM1020 – User timing clock No.0
M9021 SM1021 – User timing clock No.1
DUTY n1 n2 SM1020
n1: ON scan interval n2: OFF scan interval * : If DUTY instruction, which specified from SM 1020 to
n2 scan n2 scan
M9022 SM1022 – User timing clock No.2
Appendix 3 SPECIAL RELAY LIST
SM 1024 of User timing clock in programs other than a program for a Universal model QCPU, changes the programmable controller to the Universal model QCPU, the special relays SM 420 to 424 will be replaced. (Universal model QCPUs cannot specify the special relays from SM 1020 to SM1024.)
M9023 SM1023 – User timing clock No.3
M9024 SM1024 – User timing clock No.4
M9025 SM1025 – Clock data set request
M9026 SM1026 – Clock data error OFF : No error ON : Error • Switched on by clock data (SD1025 to SD1028) error
M9028 SM1028 – Clock data read request
Batch processing of data communications requests
0.05s 0.05s
M9030 SM1030 – 0.1 second clock
0.1s 0.1s
M9031 SM1031 – 0.2 second clock
0.5s 0.5s
M9032 SM1032 – 1 second clock
M9033 SM1033 – 2 second clock

TableApp.3.11 Special relay
Special Relay after Conversion
Special Relay for Modification
Name Meaning Details Corresponding
ON OFF
M9036 SM1036 – Always ON
M9037 SM1037 – Always OFF
M9038 SM1038 – ON for 1 scan only after RUN
RUN flag(After RUN, OFF for 1 scan only)
ON OFF 1 scan
M9040 SM1040 SM206 PAUSE enable coil OFF : PAUSE disabled ON : PAUSE enabled • When RUN key switch is at PAUSE position or pause contact has turned on and if SM1040 is on, PAUSE mode is set and SM1041 is turned on.
M9041 SM1041 SM204 PAUSE status contact
M9042 SM1042 SM203 STOP status contact
M9043 SM1043 SM805 Sampling trace completed
OFF ON Same as STRA
instruction execution ON OFF Same as STRAR
M9044 SM1044 SM803 Sampling trace
M9045 SM1045 Watchdog timer (WDT) reset
M9046 SM1046 SM802 Sampling trace OFF : Trace not in progress ON : Trace in progress • Switched on during sampling trace. Qn(H) QnPH
M9047 SM1047 SM801 Sampling trace preparations
Switching the number of output characters
M9051 SM1051 CHG instruction execution disable
M9052 SM1052 SEG instruction switch

TableApp.3.11 Special relay
Special Relay after Conversion
Special Relay for Modification
Name Meaning Details Corresponding
M9056 SM1056 Main side P, I set request
M9057 SM1057 Sub side P, I set request
M9058 SM1058 Main side P, I set completion
Momentarily ON at P, I set
completion • Turned ON once when the P, I set has been completed, and then turned OFF again. M9059 SM1059 Sub program P, I set completion
Momentarily ON at P, I set
M9060 SM1060 Sub program 2 P, I set request
It is set whether the error checks below are performed or not when the END instruction is processed (to set the END instruction processing time).
M9091 SM1091 Operation error details flag
M9100 SM1100 SM320 Presence/absence of SFC program
M9101 SM1101 SM321 Start/stop SFC program
Appendix 3 SPECIAL RELAY LIST
M9102 SM1102 SM322 SFC program start status
*3: The A8UPU/A8PUJ is not available for the QCPU/QnACPU.

TableApp.3.11 Special relay
Special Relay after Conversion
Special Relay for Modification
Name Meaning Details Corresponding
Presence/absence of continuous transition
Continuous transition suspension flag
Step transition monitoring timer start (equivalent of SD90)
Step transition monitoring timer start (equivalent of SD91)
Step transition monitoring timer start (equivalent of SD92)
Step transition monitoring timer start (equivalent of SD93)
Step transition monitoring timer start (equivalent of SD94)
Step transition monitoring timer start (equivalent of SD95)
Step transition monitoring timer start (equivalent of SD96)
M9196 SM1196 SM325 Operation output at block stop
by using operation output of the step being executed at block stop. OFF : All coil outputs are turned off. (Operation output
by the SET instruction is retained regardless of the ON/OFF status of SM1196.)
M9197 SM1197
OFF OFF X/Y0 to 7F0
Switches I/O numbers in the fuse blow module storage registers (SD1100 to SD1107) and I/O module verify error storage registers (SD1116 to SD1123) according to the combination of ON/OFF of the SM1197 and SM1198.
Switch between blown fuse and I/O verify error display
ON OFF X/Y800 to
OFF ON X/Y1000 to
M9198 SM1198
ON ON X/Y1800 to
Data recovery of online sampling trace/status latch
(10) QCPU with built-in Ethernet port
TableApp.3.12 Special relay
Number Name Meaning Explanation Set by (When Set)
CPU
M9
Set this to ON when executing the time setting function (SNTP client). (Only when the time setting function is in "Use" with the time setting parameter.)
Time setting function (SNTP client) execution
SM1273 Remote password mismatch count clear
To clear the acumulated numeber (SD979 to 999) of mismatched remote passwords, the setting SM1273 is executed.
* 1: This applies to the Built-in Ethernet port QCPU.

(11) Process control instructions
TableApp.3.13 Special relay
Number Name Meaning Explanation Set by (When Set)
CPU
M9
(12) For redundant systems (Host system CPU information *1)
SM1510 to SM1599 are only valid for redundant systems. All off for standalone systems.
TableApp.3.14 Special relay
Number Name Meaning Explanation Set by (When Set)
CPU
M9
SM1511 System A identification flag
When TRK. CABLE ERR. (error code: 6210) occurs (Unknown)
SM1512 System B identification flag
ON
OFF
OFF
SM1512
OFF
ON
OFF
SM1513 Debug mode status flag
SM1515 Control system judgment flag
Appendix 3 SPECIAL RELAY LIST
When TRK. CABLE ERR. (error code: 6210) occurs (Unknown)
S (Status change) New
SM1516 Standby system judgment flag
ON
OFF
OFF
SM1516
OFF
ON
OFF
*1: The information of the host CPU module is stored.

TableApp.3.13 Special relay
Number Name Meaning Explanation Set by (When Set)
CPU
M9
SM1517 CPU module startup status
S (Status change) New
Standby system to control system switching status flag
SM1518
S (Each END) New
Previous Control System Identification Flag
ON OFF 1 scan
S (Each END) New
SM1521 SM1521 Block 2
SM1522 SM1522 Block 3
SM1523 SM1523 Block 4
SM1524 SM1524 Block 5
SM1525 SM1525 Block 6
SM1526 SM1526 Block 7
SM1527 SM1527 Block 8
SM1528 SM1528 Block 9
SM1529 SM1529 Block 10
SM1530 SM1530 Block 11
SM1531 SM1531 Block 12
SM1532 SM1532 Block 13
SM1533 SM1533 Block 14
Data tracking transfer trigger specification
SM1534 SM1534 Block 15
SM1535 SM1535 Block 16
SM1536 SM1536 Block 17
SM1537 SM1537 Block 18
SM1538 SM1538 Block 19
SM1539 SM1539 Block 20
SM1540 SM1540 Block 21
SM1541 SM1541 Block 22
SM1542 SM1542 Block 23
SM1543 SM1543 Block 24
SM1544 SM1544 Block 25
SM1545 SM1545 Block 26
SM1546 SM1546 Block 27
SM1547 SM1547 Block 28
SM1548 SM1548 Block 29

TableApp.3.13 Special relay
Number Name Meaning Explanation Set by (When Set)
CPU
M9
SM1549
SM1550 SM1550 Block 31
SM1551 SM1551 Block 32
SM1552 SM1552 Block 33
SM1553 SM1553 Block 34
SM1554 SM1554 Block 35
SM1555 SM1555 Block 36
SM1556 SM1556 Block 37
SM1557 SM1557 Block 38
SM1558 SM1558 Block 39
SM1559 SM1559 Block 40
SM1560 SM1560 Block 41
SM1561 SM1561 Block 42
SM1562 SM1562 Block 43
SM1563 SM1563 Block 44
SM1564 SM1564 Block 45
SM1565 SM1565 Block 46
Data tracking transfer trigger specification
SM1566 SM1566 Block 47
SM1567 SM1567 Block 48
SM1568 SM1568 Block 49
SM1569 SM1569 Block 50
SM1570 SM1570 Block 51
SM1571 SM1571 Block 52
SM1572 SM1572 Block 53
SM1573 SM1573 Block 54
SM1574 SM1574 Block 55
SM1575 SM1575 Block 56
SM1576 SM1576 Block 57
SM1577 SM1577 Block 58
SM1578 SM1578 Block 59
SM1579 SM1579 Block 60
SM1580 SM1580 Block 61
Appendix 3 SPECIAL RELAY LIST
SM1581 SM1581 Block 62
SM1582 SM1582 Block 63
SM1583 SM1583 Block 64
System switching enable/disable flag from network module
S (Each END) New
request issuing module present
This flag is used to determine if the new standby station detects 6210:STANDBY during system switching. This applies to the following switching methods:
new standby system at system switching OFF : Error is detected by
Standby system error detection disable flag at system switching
new standby system at system switching
SM1592 Enable/disable user system switching

TableApp.3.13 Special relay
Number Name Meaning Explanation Set by (When Set)
CPU
M9
Sets the operation for the case accessing buffer memory of the intelligent function module mounted on the extension base unit from the standby system CPU in separate mode. OFF : “OPERATION ERROR” (error code: 4112) will be
Setting to access extension base unit of standby system CPU
returned when accessing buffer memory of the intelligent function module on the extension base unit from the standby system CPU. ON : No processing is performed when accessing
buffer memory of intelligent function module on the extension base unit from the standby system CPU.
SM1595 Memory copy to other system start flag
SM1596 Memory copy to other system status flag
Memory copy to other system completion flag
Copy contents of standard ROM during memory copy
U
*2: The module whose first 5 digits of serial No. is “09012” or later.
(13) For redundant system (Other system CPU information *1)
SM1600 to SM1650 only valid for the CPU redundant system backup mode, so they cannot be refreshed during the separate mode. Either the backup mode or the separate mode is valid for the SM4651 to SM1699. SM1600 to SM1699 are all turned off for stand-alone system.
TableApp.3.14 Special relay
Number Name Meaning Explanation Set by (When Set)
SM *2
SM1600 Other system error flag
SM1610 Other system diagnostics error
S (Each END) SM0
SM1611 Other systems self diagnostics error.
S (Each END) SM1
SM1615 Other system common error information
Error individual information for other systems
By turning this relay from OFF to ON, the continue error that occurred in the standby system CPU module can be canceled. Use SD1649 to specify the error code of the error to be canceled.
SM1649 Standby system cancel error flag
*1 Stores other system CPU diagnostic information and system information.
*2 This shows the special relay(SM ) for the host system CPU.

(14) For redundant system (tracking)
Either the backup mode or the second mode is valid for SM1700 to SM1799. All is turned off for stand-alone system.
TableApp.3.15 Special relay
Number Name Meaning Explanation Set by (When Set)
CPU
M9
SM1700 Transfer trigger completion flag
Manual system switching disable/ enable setting during online program change redundant tracking
Transfer tracking data during online program change enable flag
U
Appendix 3 SPECIAL RELAY LIST

TableApp.3.15 Special relay

Turns ON only during one scan when the transmission of the corresponding block is completed.

TableApp.3.15 Special relay

Turns ON only during one scan when the transmission of the corresponding block is completed.
(15) Redundant power supply module information
TableApp.3.16 Special relay
Number Name Meaning Explanation Set by (When Set)
CPU
M9
supply module with input power OFF detected ON : Redundant power
SM1780 Power supply off detection flag
supply module with input power OFF detected
SM1781 Power supply failure detection flag
power supply module detected
Appendix 3 SPECIAL RELAY LIST
Momentary power failure detection flag for power supply 1 *1
Momentary power failure detection flag for power supply 2 *1
*1: The "power supply 1" indicates the redundant power supply module mounted on the POWER 1 slot of the redundant base unit (Q38RB/Q68RB/Q65WRB). The "power supply 2" indicates the redundant power supply module mounted on the POWER 2 slot of the redundant base unit (Q38RB/Q68RB/Q65WRB). *2: The module whose first 5 digits of serial No. is "04012" or later. However, for the multiple CPU system configuration, this applies to all CPU modules whose first 5 digits of serial No. are "07032" or later. *3: The module whose first 5 digits of serial No. is "10042" or later.

The special registers, SD, are internal registers with fixed applications in the Programmable Controller.
For this reason, it is not possible to use these registers in sequence programs in the same way that normal registers are used.
However, data can be written as needed in order to control the CPU modules.
Data stored in the special registers are stored as BIN values if no special designation has been made to the contrary.
The heading descriptions in the following special register lists are shown in 4.1.
TableApp.4.1 Descriptions of the special register lists headings
Item Function of Item
Number • Indicates special register number
Name • Indicates name of special register
Meaning • Indicates contents of special register
Explanation • Discusses contents of special register in more detail
Set by (When set)
(When the contents are changed, the special register is represented D9 format change. Incompatible with the Q00J/Q00/Q01 and QnPRH.) • New indicates the special register newly added to the Q series CPU module.
Indicates the relevant CPU module. QCPU : Indicates all the Q series CPU modules. Q00J/Q00/Q01 : Indicates the Basic model QCPU. Qn(H) : Indicates the High Performance model QCPU. QnPH : Indicates the Process CPU. QnPRH : Indicates the Redundant CPU. QnU : Indicates the Universal model QCPU Each CPU type name : Can be applied only to the specific CPU. (e.g. Q02U)
For details on the following items, refer to the following manuals:
Do not change the values of special relays set by the system with user program or device test operations. Doing so may result in system downtime or communication fault.
Corresponding ACPU · Corresponding CPU

TableApp.4.2 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
b15 b7 b0 b8 to to Year (0 to 99) Month (1 to 12)
Clock time for diagnosis error occurrence
Clock time for diagnosis error occurrence
S (Error) New SD2
b15 b7 b0 b8 to to Day (1 to 31) Hour (0 to 23)
(Example) 10 a.m. on 25th
A
b15 b7 b0 b8 to to Minutes (0 to 59) Seconds (0 to 59)
(Example) 35 min. 48 sec.
Category codes which help indicate what type of information is being stored in the common information areas (SD5 through SD15) and the individual information areas (SD16 through SD26) are stored here. The category code for judging the error information type is stored.
b15 b7 b0 b8 to to Individual information
2: File name/Drive name 3: Time (value set) 4: Program error location 5: System switching cause (for Redundant CPU only) 6: Reason(s) for tracking capacity excess error (specific to Redundant CPU) 7: Base No./Power supply No. (The first 5 digits of serial number 10072 or higer are chosen for Universal model QCPU.) 8: Tracking transmission data classification (specific to Redundant CPU) *: For a multiple CPU system that consists of the Basic model QCPU, High Performance model QCPU, Process CPU, Universal model QCPU the module number or CPU number is stored depending on the error that occurred. (Refer to the corresponding error code for which number has been stored.) CPU No. 1: 1, CPU No. 2: 2, CPU No. 3: 3, CPU No. 4: 4 • The individual information category codes store the following codes: 0: No error 1: (Empty) 2: File name/Drive name 3: Time (value actually measured) 4: Program error location 5: Parameter number 6: Annunciator number 7: CHK instruction failure No. (except for the Basic model QCPU and the Universal model QCPU) 8: Reason(s) for system switching failure (specific to Redundant CPU) 12: File diagnostic information (specific to the Universal model QCPU) 13: Parameter No./CPU No. (specific to the Universal model QCPU)
Appendix 4 SPECIAL REGISTER LIST
Error information category code
App-147

TableApp.4.2 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
SD6
1, 2, 3, 4 SD5 SD6 SD7 SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15
Slot No./CPU No./Base No.
I/O No. 5
SD8
SD9
*1: For a multiple CPU system that consists of the Basic model QCPU, High Performance model QCPU, Process CPU, Universal model QCPU, the slot number or CPU number is stored depending on the error that occurred. Slot 0 in the multiple CPU system is the one on the slot on the right of the rightmost CPU module. (Refer to the corresponding error code for which number has been stored.) No. 1 CPU: 1, No. 2 CPU: 2, No. 3 CPU: 3, No. 4 CPU: 4 *2: If a fuse blown or I/O verify error occurred in the module loaded in the MELSECNET/H remote I/O station, the network number is stored into the upper 8 bits and the station number into the lower 8 bits. Use the I/O No. to check the module where the fuse blown or I/O verify error occurred. *3: 255 is stored into SD5 of the Basic model QCPU when an instruction, etc. has been executed for the module later than the one on the last slot where a module can be mounted. *4: Definitions of base No. and slot No. Value used to identify the base unit on which the CPU module has been mounted. The following shows the definition of the base No.
SD11
SD12
SD13
S (Error) New QCPU
Base No.
Indicates the main base unit mounted with the CPU module. Indicates the extension base unit. The stage number setting made by the stage number setting connector on the extension base unit is the base No.
When stage number setting is extension 1:
Base No. = 1 when stage number setting is extension 7:
Base No. = 7
(Example) File name =
SD5 SD6 SD7 SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15
b15 to b8 b7 to b0
42H(B) 41H(A) 44H(D) 43H(C) 46H(F) 45H(E) 48H(H) 47H(G) 49H(I) 2EH(.) 4BH(K) 4AH(J)
App-148

TableApp.4.2 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
SD5
SD6
SD5 SD6 SD7 SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15
SD5 SD6 SD7 SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15
S (Error) New QCPU
Extension 2EH(.) (ASCII code: 3 characters)
Block No. Step No./transition condition
Sequence step No. (L) Sequence step No. (H)
0 1 2 3 4 15 14 to
Appendix 4 SPECIAL REGISTER LIST
0 to
SFC block designation present (1)/absent (0)
SFC step designation present (1)/absent (0)
SFC transition designation present (1)/absent (0)
SD14
SD15
App-149

TableApp.4.2 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
Number Meaning System switching condition 13
SD6
SD7 SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15
SD7
S (Error) New QnPRH
1 (SM1535)
1 (SM1528)
1 (SM1520)
SD5
0
SD11
SD7
0
0 1 (SM1568)
(Block49) 0
0
SD15
0
Number Meaning Base No. Power supply No.
SD5 SD6 SD7 SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15
"Power supply module 1":
"Power supply module 2":
Redundant power supply module mounted on POWER 2 slot of redundant base unit (Q38RB, Q68RB, Q65WRB)
*1: The module whose first 5 digits of serial No. is "07032" or later. *2: The module whose first 5 digits of serial No. is "10042" or later.

TableApp.4.2 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
SD5
SD6
SD7
A
Number Meaning Data type 15
SD5 SD6 SD7 SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15
b15 b5 b4 b3 b2 b1 b0 to b14
Appendix 4 SPECIAL REGISTER LIST
PIDINIT/S. PIDINIT instruction data
System switching request Operation mode change request
SD13
SD14
SD15
App-151

TableApp.4.2 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
(Example) File name =
b15 to b8 b7 to b0 Number Meaning
SD16 SD17 SD18 SD19 SD20 SD21 SD22 SD23 SD24 SD25 SD26
42H(B) 41H(A) 44H(D) 43H(C) 46H(F) 45H(E) 48H(H) 47H(G) 49H(I) 2EH(.) 4BH(K) 4AH(J)
Extension 2EH(.) (ASCII code: 3 characters)
SD16 SD17 SD18 SD19 SD20 SD21 SD22 SD23 SD24 SD25 SD26
SD21
SD16 SD17 SD18 SD19 SD20 SD21 SD22 SD23 SD24 SD25 SD26
S (Error) New QCPU
Extension 6 2EH(.) (ASCII code: 3 characters)
Block No. Step No./transition No. Sequence step No. (L) Sequence step No. (H)
0 1 2 3 4 15 14 to
0 to
SFC block designation present (1)/absent (0)
SFC step designation present (1)/absent (0)
SFC transition designation present (1)/absent (0)
Annunciator number / CHK instruction malfunction number
Number Meaning Number Meaning Parameter No. 16 No.
SD16 SD17 SD18 SD19 SD20 SD21 SD22 SD23 SD24 SD25 SD26
SD16 SD17 SD18 SD19 SD20 SD21 SD22 SD23 SD24 SD25 SD26
*16: For details of the parameter No., refer to the User's Manual (Function Explanation, Program Fundamentals) of the CPU module used.

*6 : Extensions are shown below.
TableApp.4.3 Extension name
Name File Type Higher 8 bits Lower 8 bits Higher 8 bits
51H 50H 41H QPA Parameters
51H 50H 47H QPG • Sequence program
51H 43H 44H QCD Device comment
51H 44H 49H QDI Initial device value
51H 44H 52H QDR File register
51H 44H 4CH QDL Local device
(Other than the Basic model QCPU)
51H 54H 44H QTD Sampling trace data
(Other than the Basic model QCPU)
(Other than the Basic model QCPU and
the Universal model QCPU)
51H 53H 54H QST SP.DEVST/S.DEVLD instruction file
(For Universal model QCPU only)
Appendix 4 SPECIAL REGISTER LIST
SDn SDn+1 Extension · Breakdown history data

TableApp.4.2 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
Number Meaning System switching prohibition
SD17 SD18 SD19 SD20 SD21 SD22 SD23 SD24 SD25 SD26
SD26 Error individual information
SD16 drive No.(L)
EXtension *6 2EH(.) (ASCll; 3 characters)
Failure information 2 (CRC value that is read)
Failure information 3 (CRC value that is calculated)
Parameter No.*16
CPU No. (1 to 4)
App-154

TableApp.4.2 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
Error number that performs error reset
0 b3 b2 b1 b0
Bit pattern indicating where battery voltage drop occurred
SD51 Battery low latch
Bit pattern indicating where battery voltage drop occurred
Number of times for AC/DC DOWN detection
SD53 AC/DC DOWN detection
Number of module with blown fuse
Number of module with blown fuse
I/O module verify error number
I/O module verify error module number
Appendix 4 SPECIAL REGISTER LIST

TableApp.4.2 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
Annunciator number • The first annunciator number (F number) to be detected is stored here. S (Instruction
SD63 Number of annunciators
Number of annunciators • Stores the number of annunciators searched. S (Instruction
When F goes ON due to OUT F or SET F instruction, the F numbers which go progressively ON from SD64 through SD79 are registered. The F numbers turned OFF by RST F instruction are deleted from SD64 - SD79, and the F numbers stored after the deleted F numbers are shifted to the preceding registers. Execution of the LEDR instruction shifts the contents of SD64 to SD79 up by one. After 16 annunciators have been detected, detection of the 17th will not be stored from SD64 through SD79.
SD65 D9126
SD66 D9127
SD67 D9128
SD68 D9129
SET F50
SET F25
SET F99
RST F25
SET F15
SET F70
SET F65
SET F38
SET F110
SET F151
SET F210 LEDR
SD69 D9130
SD62 0 50 99 (Number detected)
(Number of annunciators detected)
SD71 D9132
Table of detected annunciator numbers
SD63 0 1 2 3 2 3 4 5 6 7 8 9 8
0 50 99 SD64 SD65 SD66 SD67 SD68 SD69 SD70 SD71 SD72 SD73 SD74 SD75 SD76 SD77 SD78 SD79
0 0 25 25 99 15 0 0 0 99 0 15 70 70 65 0 65 38 0 38 110 110 110 110 151 0 0 151 0 151210 210
SD80 CHK number CHK number • Error codes detected by the CHK instruction are stored as BCD code. S (Instruction
Corresponds to SM90 • Set the annunciator number (F number) that will be turned ON when the step transition monitoring timer setting or monitoring timeout occurs.
SD91 Corresponds to SM91 D9109
SD92 Corresponds to SM92 D9110
SD93 Corresponds to SM93 D9111
b15 b7 b0 b8
Step transition monitoring timer setting value (Enabled only when SFC program exists)
SD94 Corresponds to SM94 D9112
F number for timer set value and time over error
F number setting (0 to 255)
Timer time limit setting (1 to 255s:
SD95 Corresponds to SM95 D9113
SD96 Corresponds to SM96 D9114
SD97 Corresponds to SM97 New
SD98 Corresponds to SM98 New
SD99 Corresponds to SM99 New

TableApp.4.2 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
Stores the transmission speed specified in the serial communication setting.
Transmission speed storage area
b0 to b3 b4 b5 b6 b15 to
Stores the communication setting specified in the serial communication setting.
Communication setting storage area
SD101
Q00U Q01U Q02U *4
Write during RUN setting
* : Since the data is used by the system, it is undefined.
Stores the transmission wait time specifed in the serial communication setting.
Transmission wait time storage area
Defaults to 0.
CH1 transmission speed setting (RS-232)
Stores the preset transmission speed when GX Developer is used.
Stores the data sending result when the serial communication function is used.
Data sending result storage area
Stores the error code at the timeout sending data. S (Error)
Q00UJ
Q00U Q01U Q02U *4 SD111
Stores the data receiving result when the serial communication function is used.
Data receiving result storage area
Stores the error code at the time of receiving data. S (Error)
Displays the current amount of battery consumption. The value range:1 to 2(Q00UJCPU, Q00UCPU, Q01UCPU,
Amount of battery consumption
Amount of battery consumption
Q02UCPU, Q03UD(E)CPU, Q04UD(E)HCPU) 1 to 3(Q06UD(E)HCPU) 1 to 4(Q10UD(E)HCPU, Q20UD(E)HCPU, Q13UD(E)HCPU, Q26UD(E)HCPU)
change) New QnU*4
Appendix 4 SPECIAL REGISTER LIST
Stores the factor which makes the battery life-prolonging function valid. When SD119 is other than 0, the battery life-prolonging function is valid.
0:No factor 1:Foctor
b15 to b2 b1 b0
b0:CPU switch setting
b1:Backup in execution by
latch data backup function (to standard ROM)
*3: This applies to Universal model QCPUs except for the Built-in Ethernet port QCPU. *4: The module whose first 5 digits of serial No. is "10102" or later.

TableApp.4.2 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
SD130
SD132
Bit pattern in units of 16 points, indicating the modules whose fuses have blown 0: No blown fuse 1: Blown fuse present
b15 b14 b13 b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
0 0 0 1 (YC0) 0 1 (Y80) SD130
0 0 1 (Y1F0) 0 1 (Y1A0) SD131 0 0
SD135
0 0 1 (Y7B0) 0 SD137 0 0 0 1 (Y730) 0
Indicates fuse blow.
S (Error) New Q00J/Q00/Q01
SD151
SD152
Bit pattern, in units of 16 points, indicating the modules with verify errors. 0: No I/O verify errors 1: I/O verify error present
b15 b14 b13 b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
SD153
0 SD150
I/O module verify error
0 SD151 0 0
SD155
0 SD157 0
Indicates an I/O module verify error.
App-158
Corres- ponding · Corresponding · Fuse blown module

TableApp.4.4 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
b15 b12 b11 b8 b7 b4 b3 b0
to
b8 through b12 correspond to SW1 through SW5 of system setting switch 1. 0: OFF, 1: ON. b13 through b15 are empty.
SD200 Status of switch Status of CPU switch
b15 b8 b7 b4 b3 b0
2):
Memory card switch Always OFF
b15 b8 b7 b4 b3 b0
S (when RUN/ STOP/RESET switch changed)
Appendix 4 SPECIAL REGISTER LIST
2):
Memory card switch Always OFF
b15 b12b11 b8 b7 b4b3 b0
to
1): RUN 5): BOOT 2): ERR. 6): Empty Mode bit pattern 3): USER 7): Empty 0: OFF 1: Green 4): BAT. 8): MODE 2: Orange (The Basic model QCPU does not include 3) to 8).)
SD201 LED status Status of CPU-LED
b15 b12b11 b8 b7 b4b3 b0
to
1): RUN 5): BOOT 2): ERROR 6): Empty 3): USER 7): Empty 4): BAT. 8): MODE (The Q00UJCPU, Q00UCPU, and Q01UCPU do not include 5).)

TableApp.4.4 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
b15 b8 b4 b0
SD202 LED off command
Bit pattern of LED that is turned off
BOOT LED
(The Q00UJCPU, Q00UCPU, and Q01UCPU cannot specify the BOOT LED.)
b15 b12 b11 b8 b7 b4 b3 b0
to
RUN STEP-RUN (For the QnACPU only) STOP PAUSE
SD203 Operating status of CPU
Operating status of CPU
Instruction in remote operation program from RUN/STOP switch ("RUN/STOP/ RESET switch" for Basic model QCPU) Remote contact Remote operation from GX Developer/ serial communication, etc. Internal program instruction Note: Priority is earliest first
0:
3:
b15 b12 b11 b8 b7 b4 b3 b0
SD204 LED display color
(The Q00UJCPU, Q00UCPU, and Q01UCPU do not include 5).)

TableApp.4.4 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
Priorities 1 to 4
b15 b12 to Priority 4 Priority 8
b11 b8 to Priority 3 Priority 7
b7 b4 to Priority 2 Priority 6 Priority 10 Priority 11
b3 b0 to Priority 1 Priority 5 Priority 9
SD208 Priorities 5 to 8
(Priority 11 is valid when Redundant CPU is used.)
LED display priority ranking
Default Value SD207 = 4321H(0000H for Basic model QCPU) SD208 = 8765H(0700H for Basic model QCPU)
(0765H for Redundant CPU) SD209 = 00A9H(0000H for Basic model QCPU)
SD209 Priorities 9 to 11 New
b15 b12 to b11 b8 to b7 b4 to b3 b0 to Example: July, 1993
SD210 Clock data Clock data (year, month)
Example: 31st, 10 a.m.
b15 b12 to b11 b8 to b7 b4 to b3 b0 to
Appendix 4 SPECIAL REGISTER LIST
QCPU SD211 Clock data Clock data (day, hour)
b15 b12 to b11 b8 to b7 b4 to b3 b0 to Example: 35 min, 48 s
SD212 Clock data Clock data (minute, second)
*9: Function version is B or later.

TableApp.4.4 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
b15 b12 to b11 b8 to b7 b4 to b3 b0 to
Clock data (higher digits of year, day of week)
Day of the week
0 1 2 3 4 5 6
Higher digits of year (19 or 20)
SD221
QCPU
b15 to b8 b7 to b0
15th character from the right
16th character from the right 13th character from the right
SD221
14th character from the right 11th character from the right
12th character from the right 9th character from the right
SD222
LED display data LED display data
S (When changed) New
10th character from the right 7th character from the right
SD224
8th character from the right 5th character from the right
SD225
SD225
6th character from the right 3rd character from the right
4th character from the right 1st character from the right
2nd character from the right
SD227
The header I/O number of the module to which online module change is being performed /10H
Module to which online module change is being performed
S (During online module change) New QnPH QnPRH
SD241 Extension stage number

TableApp.4.4 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
b0 b1 b2 b7
to Fixed to 0
Main base unit 1st extension base 2nd extension base
Fixed to 0 when the base is not installed.
to 7th extension base
b0 b1 b2 b4 Fixed to 0
Main base unit 1st extension base 2nd extension base
Installed Q base presence/ absence
S (Initial) New Q00J/Q00/Q01
b0 b1 b2 b7
to Fixed to 0
Main base unit 1st extension base
Fixed to 0 when the base is not installed.
Installed Q base presence/ absence
S (Initial) New QnU
to 7th extension base
b15 to b12 b11 to b8 b7 to b4 b3 to b0 Extension
SD243
Appendix 4 SPECIAL REGISTER LIST
b15 to b12 b11 to b8 b7 to b4 b3 to b0 Extension
No. of base slots (Operation status)
No. of base slots
Q00J/Q00/Q01
SD244
b15 to b12 b11 to b8 b7 to b4 b3 to b0 Extension
No. of base slots (Mounting status)
No. of base slots
S (Initial) Q00J/Q00/Q01*9
SD250 Loaded maximum I/O
Loaded maximum I/O No.
*9: Function version is B or later.

TableApp.4.4 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
Number of modules installed
I/O No. • Indicates I/O number of mounted MELSECNET/10 module or MELSECNET/H module
Information from 1st module
SD256 Network No.
SD258 Station No.
MELSECNET/ 10. MELSECNET/H information
QnU*10 SD260 to SD264
Information from 2nd module • Configuration is identical to that for the first module.
Information from 3rd module • Configuration is identical to that for the first module. Qn(H) QnPH QnPRH
QnU*11 SD270 to SD274
Information from 4th module • Configuration is identical to that for the first module.
b3 b4 b7 b8 b11 b12 b15
to
SD280 CC-Link error Error detection status
1st module 2nd module
3rd module 4th module
The above module Nos. n are in order of the head I/O numbers. (However, the one where parameter setting has not been made is not counted.)
*10: The Universal model QCPU except the Q00UJCPU, Q00UCPU, and Q01UCPU. *11: The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU.

TableApp.4.4 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
b3 b4 b7 b8 b11 b12 b15
to
SD281 CC-Link error Error detection status
5st module 6nd module
7rd module 8th module
The above module Nos. n are in order of the head I/O numbers. (However, the one where parameter setting has not been made is not counted.)
Points assigned to M (for extension)
S (Initial) New QnU*16 SD287
SD288 Points assigned to B (for extension)
Number of points assigned for X • Stores the number of points currently set for X devices
SD291 Number of points assigned for Y • Stores the number of points currently set for Y devices
SD292 Number of points assigned for M • Stores the number of points currently set for M devices
Device assignment (Same as parameter contents)
SD293 Number of points assigned for L • Stores the number of points currently set for L devices
SD294 Number of points assigned for B • Stores the number of points currently set for B devices
Appendix 4 SPECIAL REGISTER LIST
SD295 Number of points assigned for F • Stores the number of points currently set for F devices
SD296 Number of points assigned for SB • Stores the number of points currently set for SB devices
Number of points assigned for V • Stores the number of points currently set for V devices
QCPU
SD298 Number of points assigned for S • Stores the number of points currently set for S devices
SD299 Number of points assigned for T • Stores the number of points currently set for T device
Device assignment (Same as parameter contents)
SD300 Number of points assigned for ST • Stores the number of points currently set for ST devices
SD301 Number of points assigned for C • Stores the number of points currently set for C devices
SD302 Number of points assigned for D • Stores the number of points currently set for D devices
SD303 Number of points assigned for W • Stores the number of points currently set for W devices
SD304 Number of points assigned for SW • Stores the number of points currently set for SW devices
*14: The module whose first 5 digits of serial No. is "08032" or later. *15: The module whose first 5 digits of serial No. is "09012" or later. *16: The module whose first 5 digits of serial No. is "10042" or later.

TableApp.4.4 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
Device assignment (Index register)
16 bit modification Number of points assigned for Z
S (Initial) New QnU
SD306 Device assignment (Same as parameter contents)
Number of points assigned for ZR (for extension)
SD308 Device assignment (assignment including the number of points set to the extended data register (D) and extended link register (W))
Number of points assigned for D (for inside + for extension)
S (Initial) New QnU*17
SD310 Number of points assigned for W (for inside + for extension)
Time reserved for communication processing
Time reserved for communication processing
No. of modules installed • Indicates the number of mounted Ethernet module.
SD341
I/O No. • Indicates I/O No. of mounted Ethernet module
SD342 Network No. • Indicates network No. of mounted Ethernet module
Information of 1st module
SD343 Group No. • Indicates group No. of mounted Ethernet module
SD344 Station No. • Indicates station No. of mounted Ethernet module
SD345 to SD346 Empty
QnU*10 SD347 Empty
Information from 2nd module • Configuration is identical to that for the first module.
S (Initial) New SD355 to SD361
Information from 3rd module • Configuration is identical to that for the first module. Qn(H) QnPH QnPRH
QnU*11 SD362 to SD368
Information from 4th module • Configuration is identical to that for the first module.
*10: The Universal model QCPU except the Q00UJCPU, Q00UCPU, and Q01UCPU. *11: The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU. *17: The Universal model QCPU except the Q00UJCPU.

TableApp.4.4 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
b0 b1 b2 b3 b4 b5 b6 b7 b8 b15
Instruction reception status of channel 1 Instruction reception status of channel 2 Instruction reception status of channel 3 Instruction reception status of channel 4 Instruction reception status of channel 5 Instruction reception status of channel 6 Instruction reception status of channel 7 Instruction reception status of channel 8 ON: Received (Channel is being used.) OFF: Not received (Channel is not used.)
Ethernet instruction reception status
Instruction reception status of 1st module
A
Instruction reception status of 2nd module • Configuration is identical to that for the first module.
Ethernet instruction reception status
Instruction reception status of 3rd module • Configuration is identical to that for the first module.
Instruction reception status of 4th module • Configuration is identical to that for the first module.
Appendix 4 SPECIAL REGISTER LIST

TableApp.4.4 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
Number of multiple CPUs
SD393
to CPU No.2 CPU No.3 CPU No.1 SD394
b15 b8 b7 b12 b11 b4 b3 b0 Empty (0)
SD394 CPU mounting information
CPU module mounted or not mounted 0: Not mounted 1: Mounted
SD395 Multiple CPU number
Multiple CPU system information
SD396 No. 1 CPU operation status The operation information of each CPU No. is stored. (The information on the number of multiple CPUs indicated in SD393 is stored.)
b15 b8 b7 b4 b3 b0 to to to b14
QnU*17 SD397 No. 2 CPU operation status
Vacancy Classification Operation status
SD398 No. 3 CPU operation status
SD399 No. 4 CPU operation statu QnU*11
*9: Function version is B or later. *11: The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU. *17: The Universal model QCPU except the Q00UJCPU.
TableApp.4.5 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
SD412 1 second counter
Number of counts in 1-second units
SD414 2n second clock setting
2n second clock units
QnU SD420 Scan counter Number of counts in each scan
SD430 Low speed scan counter
Number of counts in each scan
processing) New Qn(H) QnPH

TableApp.4.6 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
SD500 Execution program No.
Program No. in execution
Low speed execution type program No. in execution
Low speed excution type program No.
processing) New Qn(H) QnPH
Current scan time (in 1 ms units)
QCPU
A
SD521 Current scan time (in 100 s units)
stored. SD520 = 23 SD521 = 600
Initial scan time (in 1 ms units)
SD523 Initial scan time (in 100 s units)
Minimum scan time (in 1 ms units)
Minimum scan time (in 100 s units)
Maximum scan time (in 1 ms units)
Maximum scan time (in 100 s units)
Appendix 4 SPECIAL REGISTER LIST
Current scan time (in 1 ms units)
SD528 Current scan time for low speed execution type programs
SD529 Current scan time (in 100 s units)
Minimum scan time (in 1 ms units)
SD532 Minimum scan time for low speed execution type programs
Minimum scan time (in 100 s units)
Maximum scan time (in 1 ms units)
SD534 Maximum scan time for low speed execution type programs
Maximum scan time (in 100 s units)
END processing time (in 1 ms units)
END processing time (in 100 s units)

TableApp.4.6 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
Minimum scan time (in 1 ms units)
Minimum scan time (in 100 s units)
Maximum scan time (in 1 ms units)
Maximum scan time (in 100 s units)
END processing time (in 1 ms units)
END processing time (in 100 s units)
Constant scan wait time (in 1 ms units)
Constant scan wait time
Constant scan wait time (in 100
Cumulative execution time for low speed execution type programs (in 1 ms units)
Cumulative execution time for low speed execution type programs
Cumulative execution time for low speed execution type programs (in 100 s units)
Execution time for low speed execution type programs (in 1 ms units)
Execution time for low speed execution type programs
Execution time for low speed execution type programs (in 100 s units)
Scan execution type program execution time (in 1 ms units)
Scan execution type program execution time
Scan execution type program execution time (in 100 s units)
Scan program execution time (in 1 ms units)
Scan program execution time
Scan program execution time (in 100 s units)
Service interval measurement module
Unit/module No. • Sets I/O number for module that measures service interval. U New
Qn(H) QnPH QnPRH SD551
Module service interval (in 1 ms units)
Module service interval (in 100 s units)
App-170

TableApp.4.7 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
b8 b7 b15 to to to
b4 b3 b0 0
Drive 1 (RAM) type
SD600 Memory card typs Memory card typs
S (Initial and card removal) New
(The bits for the drive 1 (RAM) type and drive 2 (ROM) type are fixed to "0" in the Q00UJCPU, Q00UCPU, and Q01UCPU.)
Drive 1 (Memory card RAM) capacity
Drive 2 (Memory card ROM) capacity
Drive 2 capacity • Drive 2 capacity is stored in 1 k byte units.*1 S (Initial and card removal) New
Memory card use conditions
Memory card use conditions
Appendix 4 SPECIAL REGISTER LIST
Memory card use conditions
Memory card use conditions
change) New QnU*2
*1: Turned ON at boot start and OFF at boot completion. *2: Turned ON when reflection of device initial value is started and OFF when reflection of device initial value is completed. *3: The module whose first 5 digits of serial No. is "10102" or later.
*1: When the Q2MEM-8MBA is used, value stored in the special register SD603 differs depending on the combination of the serial number of the High Performance model QCPU and the manufacture control number of the ATA card. For details, refer to QCPU User's Manual (Hardware Design, Maintenance and Inspection). *2: The Universal model QCPU except the Q00UJCPU, Q00UCPU, and Q01UCPU.

TableApp.4.7 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
0 b7 b4 b0 b15 b8 to to
Drive 3 (Standrd RAM)
Drive 4 (Standrd ROM)
SD620 Drive 3/4 typs Drive 3/4 typs
(The bits for the drive 3 (standard RAM) type is fixed to "0" in the Q00UJCPU.)
b4 b3 b0 0 b8 b7 b15 to to to
Drive 3 (Standard RAM)
S (Initial) New Q00J/Q00/Q01
Drive 4 (Standrd ROM)
Fixed to "3 (FLASH ROM)"
Drive 3 (Standard RAM) capacity
Drive 4 (Standard ROM) capacity
Drive 3/4 use conditions
Drive 3/4 use conditions
Drive 3/4 use conditions
Drive 3/4 use conditions
*1: Turned ON at boot start and OFF at boot completion. *2: The modules whose first 5 digits of serial No. is "11043" or later.
0 b4 b0 b15 to to
0
SD624 Drive 3/4 use conditions
Drive 3/4 use conditions
SD640 File register drive Drive number: • Stores drive number being used by file register S (Status change) *10 New
*3: The Universal model QCPU except the Q00UJCPU. *10: On the Basic model QCPU, data is set at STOP to RUN or RSET instruction execution after parameter execution.

TableApp.4.7 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
SD641
b15 to b8 b7 to b0 2nd character 1st character 4th character 3rd character 6th character 5th character 8th character 7th character
SD643
SD644
SD645
SD645
1st character of extension
SD646
3rd character of the extension
2nd character of the extension
File register file name
File register file name
b15 to b8 b7 to b0 2nd character (A) 1st character (M) 4th character (N) 3rd character (I) 6th character ( ) 5th character ( ) 8th character ( ) 7th character ( )
SD646
S (Initial) New Q00J/Q00/Q01
1st character of the extension (Q)
2E H (.)
3rd character of the extension (R)
2nd character of the extension (D)
SD647 File register capacity
SD648 File register block number
File register block number • Stores the currently selected file register block number. S (Status change) *10 D9035
SD650 Comment drive Comment drive number
Appendix 4 SPECIAL REGISTER LIST
b15 to b8 b7 to b0 2nd character 1st character 4th character 3rd character 6th character 5th character 8th character 7th character
SD651 SD652 SD653 SD654
SD654
SD655
1st character of the extension 3rd character of the extension
2E H (.)
SD656
2nd character of the extension
SD660
Boot designation file drive number
b15 to b8 b7 to b0 2nd character 1st character 4th character 3rd character 6th character 5th character 8th character 7th character
SD661 SD662 SD663 SD664
Boot operation designation file
File name of boot designation file
1st character of the extension 3rd character of the extension
2E H (.)
SD666
2nd character of the extension
*3: The Universal model QCPU except the Q00UJCPU. *4: The Universal model QCPU except the Q00UJCPU, Q00UCPU, and Q01UCPU. *10: On the Basic model QCPU, data is set at STOP to RUN or RSET instruction execution after parameter execution.

TableApp.4.7 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
Parameter enable drive information
Parameter enable drive No.
Indicates the status of the latch data backup function.
Presence/ absence of backup data
Restore operation at turning power supply
0 No backup data Absent Restoring not executed
ON from OFF the
Status of latch data backup function
completion Restoring not executed
3 Backup execution wait Restoring not executed
Restoring executed when turning power supply ON from OFF
b15 b12 to b11 b8 to b7 b4 to b3 b0 to Example: July, 1993
Backup time (Year and month)
b15 b12 to b11 b8 to b7 b4 to b3 b0 to
Example: 31st, 10 a.m.
SD673 Backup time (Day and hour)
Backup time (Minute and second)
b15 b12 to b11 b8 to b7 b4 to b3 b0 to Example: 35 min., 48 sec.
S (At write) New
b15 b12 to b11 b8 to b7 b4 to b3 b0 to
SD675 Backup time (Year and day of week)
Day of the week
0 1 2 3 4 5 6
Higher digits of year (0 to 99)

Number Name Meaning Explanation Set by (When Set)
CPU
b15 b12 to b11 b8 to b7 b4 to b3 b0 to Example: July, 1993
Restore time (Year and month)
b15 b12 to b11 b8 to b7 b4 to b3 b0 to
Example: 31st, 10 a.m.
SD677 Restore time (Day and time)
Backup data restration information
Restore time (Minute and second)
b15 b12 to b11 b8 to b7 b4 to b3 b0 to Example: 35 min., 48 sec.
3548 H
b15 b12 to b11 b8 to b7 b4 to b3 b0 to
Restore time (Year and day of week)
Day of the week
0 1 2 3 4 5 6
Higher digits of year (0 to 99)
Program memory write (transfer) status
Write (transfer) status display (percentage)
Displays the status of writing (transferring) the program memory (flash ROM) in percentage. (0 to 100%) "0" is set when the write direction is set. S (At write) New
Appendix 4 SPECIAL REGISTER LIST
Program memory write count index
Write count index up to present
S (At write) New SD683
Standard ROM write (transfer) status
Write (transfer) status display (per- centage)
Displays the status of writing (transferring) the standard ROM (flash ROM) in percentage. (0 to 100%) "0" is set when the write direction is set. S (At write) New
SD687
S (At write) New SD688
Standard ROM write count index
Write count index up to present
Stores the factor of the error that occurred in the backup. 0H : No error 100H: Memory card not inserted 200H: Size of backup target data exceeded 300H: Memory card write inhibit setting 400H: Memory card write error 500H: Backup target data read error (from program memory) 503H: Backup target data read error (from standard RAM) 504H: Backup target data read error (from standard ROM) 510H: Backup target data read error (from system data)
SD689 Backup error factor
Stores the current backup status. 0 : Before backup start 1 : Backup start prepared 2 : Backup start preparation completed 3 : Backup in execution 4 : Backup completed FF: Backup error
SD690 Backup status Backup status
*1: The module whose first 5 digits of serial No. is "10102" or later. (Except the Q00UJCPU, Q00UCPU, and Q01UCPU)

Number Name Meaning Explanation Set by (When Set)
CPU
Backup execution status display (Percentage)
SD691 Backup execution status
Stores the factor of an error that occurred in the restoration. Each error factor is as follows: 800H: The CPU module model name is not matched. 801H: The file password is set only for the restoration destination data or is not matched. 810H: The verified backup data file is not matched or the backup data read failed.
SD692 Restoration error factor
Factor of error occurred in the restoration
S (Error occurrence) New
Stores the current restoration execution status. Each error factor is as follows: 0 : Before restoration start 1 : Restoration in execution 2 : Restoration completed FF: Restoration error Sets "0" (Before restoring), however, when the restoration is completed only during the automatic restoration.
Restoration execution status display (Percentage)
SD694 Restoration execution status
Specification of writing to stan- dard ROM instruction count
Specification of writing to standard ROM instruction count
SD696 Available memory in memory card
Available memory in memory card
Stores the available memory in memory card. (Stores the value in 32-bit binary.)
operation) New QnU*1 SD697
SD698 Backup data capacity
Backup data capacity Stores the backup data capacity. (Stores the value in 32-bit binary.) SD699
*1: The module whose first 5 digits of serial No. is "10102" or later. (Except the Q00UJCPU, Q00UCPU, and Q01UCPU)

TableApp.4.8 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
SD705
Qn(H) QnPH QnPRH SD706
Mask pattern Mask pattern
IMASK instruction mask pattern
S (During execution) New
SD716
SD717
QCPU
SD717
A
SD718
Accumulator Accumulator • For use as replacement for accumulators used in A series programs. S/U New SD719
Program No. designation for PLOADP instruction
Program No. designation for PLOADP instruction
Stores the program number of the program to be loaded by the PLOADP instruction when designated. Designation range: 1 to 124
U New Qn(H) QnPH
b15 to b8 b7 to b0
SD738 SD739
2nd character 1st character
4th character 3rd character 6th character 5th character 8th character 7th character 10th character 9th character 12th character 11th character 14th character 13th character 16th character 15th character 18th character 17th character 20th character 19th character 22nd character 21st character 24th character 23rd character 26th character 25th character 28th character 27th character 30th character 29th character 32nd character 31st character 34th character 33rd character 36th character 35th character 38th character 37th character 40th character 39th character 42nd character 41st character 44th character 43rd character 46th character 45th character 48th character 47th character 50th character 49th character 52nd character 51st character 54th character 53rd character 56th character 55th character 58th character 57th character 60th character 59th character 62nd character 61st character 64th character 63rd character
SD740 SD741 SD742 SD743
SD743
SD744
SD745
SD744 SD745 SD746 SD747 SD748 SD749 SD750 SD751 SD752 SD753 SD754 SD755 SD756 SD757 SD758 SD759 SD760 SD761 SD762 SD763 SD764 SD765 SD766 SD767 SD768 SD769
SD747
SD748
SD749
Appendix 4 SPECIAL REGISTER LIST
SD751
SD752
SD753
Message storage Message storage
S (During execution) New QCPU
SD755
SD756
SD757
SD758
SD759
SD760
SD761
SD762
SD763
SD764
SD765
SD766
SD767
SD768
SD769
App-177

TableApp.4.8 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
PID limit setting (for complete derivative)
SD775
PID limit setting (for complete derivative)
to to b1 b0 b7 b8
U New Q00J/Q00/Q01*9
SD774
b0 b1 b2 b3 b4 b5 b14 b15
I/O refresh CC-Link refresh MELSECNET/H refresh
Automatic refresh of intelligent function modules
Automatic refresh of CPU shared memory (Fixed to "0" for Redundant CPU)
Execution/non- execution of communication with CPU module
b0 to b14: 0: Do not refresh 1: Refresh b15 bit 0: Communication with CPU module is executed 1: Communication withCPU module is nonexecuted
Refresh processing selection when the COM/ CCOM instruction is executed
b0 b1 b2 b3 b4 b5 b6 b14 b15
I/O refresh CC-Link refresh CC-Link IE controller network or
Automatic refresh of intelligent function modules
Reading input/output from group outside multiple CPU system
Auto refresh using the multiple CPU high speed transmission area of multiple CPU system
Execution/non- execution of communication with CPU module
*9: Function version is B or later. *11: The module whose first 5 digits of serial No. is "04012" or later. *12: The module whose first 5 digits of serial No. is "07032" or later. *13: The module whose first 5 digits of serial No. is "09012" or later.

TableApp.4.8 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
b0 b1 b2 b3 b4 b5 b6 b14 b15
I/O refresh CC-Link refresh Refresh of MELSECNET/H and CC-Link IE controller network
b0 to b14: 0: Do not refresh 1: Refresh b15 bit 0: communication with peripheral device is executed 1: communication with peripheral device is nonexecuted
Refresh processing selection when the COM/ CCOM instruction is executed
Automatic refresh of intelligent function modules
QCPU standard area of multiple CPU system and reading input/output from group outside.
Auto refresh using the multiple CPU high speed transmission area of multiple CPU system
Execution/non- execution of communication with CPU module
Mask pattern of IMASK instruction
S (During execution) New
(The Q00UJCPU, Q00UCPU, and Q01UCPU cannot use the special registers SD786 to SD793.)
Appendix 4 SPECIAL REGISTER LIST
Mask pattern of IMASK instruction
S (During execution) New Q00J/Q00/Q01
PID limit setting (for incomplete derivative)
SD795
PID limit setting (for incomplete derivative)
to b1 b0 b7 b8
U New Q00J/Q00/Q01*9
*9: Function version is B or later. *13: The module whose first 5 digits of serial No. is "09012" or later.

TableApp.4.8 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
Maximum number of blocks used for the multiple CPU high- speed transmission dedicated instruction setting (for CPU No.1)
U (At 1 scan
Maximum number of blocks used for the multiple CPU high- speed transmission dedicated instruction setting (for CPU No.2)
U (At 1 scan
Maximum number of blocks range for dedicated instructions Range: 1 to 7 (Default: 2 Or when setting other than 1 to 7, the register operates as 7).
Maximum number of blocks used for the multiple CPU high- speed transmission dedicated instruction setting (for CPU No.3)
U (At 1 scan
Maximum number of blocks used for the multiple CPU high- speed transmission dedicated instruction setting (for CPU No.4)
U (At 1 scan
*14: The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU. *15: The range is from 1 to 9 for the Q03UDCPU, Q04UDCPU, and Q06UDHCP whose first 5 digits of serial number is "10012" or earlier. (Default: 2 Or when setting other than 1 to 9, the register operates as 9).

TableApp.4.9 Special register

Stores the status of the debug function usage as shown below.
*1: The module whose first 5 digits of serial No. is "10042" or later.
(8) Redundant CPU information (host system CPU information*1)
TableApp.4.10 Special register

Stores the completion status of the memory copy from control system to standby system executed last. 1) Stores the same value as stored into SD1596 at normal completion/ abnormal completion of the memory copy from control system to standby system. 2) Backed up for a power failure, this special register holds the status of memory copy from control system to standby system executed last. 3) Cleared to 0 by latch clear operation.
History of memory copy from control system to standby system
Latest status of memory copy from control system to standby system
*1: The host system CPU information is stored.
(9) Remote password count
TableApp.4.11 Special register

Appendix 4 SPECIAL REGISTER LIST
Stores the count of unlock processing failures. Range: 0 to FFFEH (FFFFH when the limit is exceeded)
*1: This applies to the Built-in Ethernet port QCPU.
(7) Debug

(10) A to Q conversion
ACPU special registers D9000 to D9255 correspond to Q special registers SD1000 to SD1255 after A to Q/QnA conversion. (However, the Basic model QCPU and Redundant CPU do not support the A to Q conversion.) These special registers are all set by the system, and cannot be set by the user program. To set data by the user program, correct the program for use of the QCPU special registers. However, some of SD1200 to SD1255 (corresponding to D9200 to 9255 before conversion) can be set by the user program if they could be set by the user program before conversion. For details on the ACPU special registers, refer to the user's manual for the corresponding CPU, and MELSECNET or MELSECNET/B Data Link System Reference Manuals.
Check "Use special relay/special register from SM/SD1000" for "A-PLC" on the PLC system tab of PLC parameter in GX Developer when the converted special registers are used with the High Performance model QCPU, Process CPU, and Universal model QCPU. When not using the converted special registers, uncheck "Use special relay/ special registers from SM/SD1000" to save the time taken for processing special registers.
Supplemental explanation on "Special Register for Modification" column
For the device numbers for which a special register for modification is specified, modify it to the special register for QCPU.
For the device numbers for which is specified, special register after conversion can be used.
Device numbers for which is specified do not function for QCPU.

TableApp.4.13 Special register
Special Register for Modification
Name Meaning Details Corresponding
D9000 SD1000 – Fuse blown Number of module with blown fuse
AJ02 I/O module Extension base unit
slot No.
0 1 2 3 4 5 6 7
0 1 2 3 4 5 6 7
0 1 2 3
4 5 6 7
D9001 SD1001 – Fuse blown Number of module with blown fuse
D9002 SD1002 – I/O module verify error
I/O module verify error module number
D9005 SD1005 – AC DOWN counter
Number of times for AC DOWN
Appendix 4 SPECIAL REGISTER LIST
D9008 SD1008 SD0 Self-diagnostic error

TableApp.4.13 Special register
Special Register for Modification
Name Meaning Details Corresponding
D9009 SD1009 SD62 Annunciator detection
F number at which external failure has occurred
Step number at which operation error has occurred.
D9010 SD1010 Error step
Qn(H) QnPH D9011 SD1011 Error step
Step number at which operation error has occurred.
D9014 SD1014 I/O control mode
I/O control mode number
b15 b12 to b11 b8 to b7 b4 to b3 b0 to
Remote RUN/STOP by computer 0
RUN
STOP
STOP
D9015 SD1015 SD203 Operating status of CPU
Operating status of CPU
PAUSE
3 STEP RUN
Remains the same in remote RUN/STOP mode.
Remote RUN/STOP by parameter setting
RUN
STOP
PAUSE
*1: When the CPU mdoule is in RUN mode and SM1040 is off, the CPU module remains in RUN mode if changed to PAUSE mode.

TableApp.4.13 Special register
Special Register for Modification
Name Meaning Details Corresponding
D9016 SD1016 Program number
D9017 SD1017 SD524 Scan time Minimum scan time (10 ms units)
QnU*1 D9018 SD1018 SD520 Scan time Scan time (10 ms units)
D9019 SD1019 SD526 Scan time Maximum scan time (10 ms units)
Constant scan time (User sets in 10 ms units)
D9020 SD1020 Constant scan
value) 10 ms.
D9021 SD1021 – Scan time Scan time (1 ms units)
Appendix 4 SPECIAL REGISTER LIST
D9022 SD1022 SD412 1 second counter Count in units of 1s.
D9025 SD1025 – Clock data Clock data (year, month)
b15 b12 to b11 b8 to b7 b4 to b3 b0 to Example: 1987, July H8707
b15 b12 to b11 b8 to b7 b4 to b3 b0 to Example: 31st, 10 a.m. H3110
D9026 SD1026 – Clock data Clock data (day, hour)
b15 b12 to b11 b8 to b7 b4 to b3 b0 to Example: 35 min, 48 sec. H3548
D9027 SD1027 – Clock data Clock data (minute, second)

TableApp.4.13 Special register
Special Register for Modification
Name Meaning Details Corresponding
b15 b12 to b11 b8 to b7 b4 to b3 b0 to
D9028 SD1028 – Clock data Clock data (day of week)
Day of the week
D9035 SD1035 SD648 Extension file register Use block No. • Stores the block No. of the extension file register being used in BCD code.
Extension file registerfor designation of device number
Device number when individual devices from extension file register are directly accessed
Block No.1 area
Block No.2 area
SD1037,SD1036
Device No. (BIN data)
Priorities 1 to 4
b15 b12 b11 b8 b7 b4 b3 b0 to Priority 4 Priority 3
LED display priority ranking
SD208
Priority 7 Priority 6
D9039 SD1039 SD208 Priorities 5 to 7
D9044 SD1044 For sampling trace
Step or time during sampling trace
D9049 SD1049 Work area for SFC
Block number of extension file register
D9050 SD1050 SFC program error number
Error code generated by SFC program
D9051 SD1051 Error block Block number where error occurred
D9052 SD1052 Error step Step number where error occurred

TableApp.4.13 Special register
Special Register for Modification
Name Meaning Details Corresponding
Transition condition number where error occurred
D9053 SD1053 Error transition
Sequence step number where error occurred
D9054 SD1054 Error sequence step
Status latch execution step number
Block No.
Step No.
(BIN)
Lower 8 bits Upper 8 bits
Data check of serial communication module
Register for setting time check value
1 s to 65535 s
Number of special functions modules over
Number of special functions modules over
D9091 SD1091 Detailed error code
Self-diagnosis detailed error code • Stores the detail code of cause of an instruction error. Qn(H) QnPH
Head I/O number of I/O module to be replaced
Head I/O number of I/ O module to be replaced
Appendix 4 SPECIAL REGISTER LIST
b0 b1 b2 b3 b4 b5 b15
D9095 SD1095 SD200 DIP switch information
SW3 SW4 SW5

TableApp.4.13 Special register
Special Register for Modification
Name Meaning Details Corresponding
D9100 SD1100
b15 b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
SD1100
0 1 (Y80) 0 0 0 1 (YC0) 0 0 0
Bit pattern in units of 16 points, indicating the modules whose fuses have blown
SD1101
0
– Fuse blown module
0 1 Y7 B0
D9104 SD1104
SD1107
D9105 SD1105
Indicates fuse blow.
D9108 SD1108
b15 b7 b0 b8 to to
Step transfer monitoring timer setting
Timer setting valve and the F number at time out
(02 to 255) F number setting Timer time limit setting (1 to 255 s:(1 s units))
D9114 SD1114
D9116 SD1116
D9118 SD1118
b15 b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
D9119 SD1119
Bit pattern, in units of 16 points, indicating the modules with verification errors.
0
– I/O module verification error
0
D9120 SD1120
SD1123
0 1 XY 7B0
Indicates an I/O module verify error.
Number of annuciator detections
Number of annuciator detections

TableApp.4.13 Special register
Special Register for Modification
Name Meaning Details Corresponding
D9126 SD1126 SD65
D9127 SD1127 SD66
SET F50
SET F25
SET F99
RST F25
SET F15
SET F70
SET F65
SET F38
SET F110
SET F151
SET F210 LEDR
D9128 SD1128 SD67
SD1009
0 50 99
1 2 3 2 3 4 5 6 7 8 8 8
A
D9129 SD1129 SD68
SD1125
0 50 99
0 25 25 99 15
0 99 15 70
SD1128
0 70 65 0
0 65 38 0
SD1130
0 38 110
0 110 110 110 151 0
SD1132
0 151 151 210
Appendix 4 SPECIAL REGISTER LIST

(11) QCPU with built-in Ethernet port
TableApp.4.14 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
Stores the operation result of the time setting function. 0: Not executed 1: Success FFFFH: Failure
Stores operationresult.
Stores years (last two digits of the Christian Era) and monthes by two digits of BCD code.
b15 b12 to b11 b8 to b7 b4 to b3 b0 to Example: July, 1993
9307 H
Stores dates and hours acquired with time setting function by two digits of BCD code.
Example: 31st, 10 a.m.
b15 b12 to b11 b8 to b7 b4 to b3 b0 to
3110 H
Stores minutes and seconds acquired with time setting function by two digits of BCD code.
Stores time acquired with time setting function.
b15 b12 to b11 b8 to b7 b4 to b3 b0 to Example: 35 min., 48 sec.
3548 H
Stores years (first two digits of the Christian Era) and days acquierd with time setting function.
b15 b12 to b11 b8 to b7 b4 to b3 b0 to
SD1274
Day of the week
0 1 2 3 4 5 6
Higher digits of year (0 to 99)
Stores time taken from transmission to SNTP server to clook time setup at CPU. Range: 0 to FFFEH (Unit: ms) FFFFH when the above limit is exceeded.
Stores time required for clock time aquisition.
SD1276
Specify this when a connection is to be invalidated forcibly on the user program. If invalidation is specified for a connection, it stops communication and does not respond. (When a remote password is used and frequent unlock processing errors have occurred on a connection, this is useful for temporarily inhibiting access to the connection.)
b15b14 b0 b1 SD1276
Specifies forced connection invalidation.
b15b14 b13 b12 b4 b3 b2 b1 b0
0 0 0 to
MELSOFT
*1: This applies to the Built-in Ethernet port QCPU.

TableApp.4.15 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
Open completion status of connections (whose open system is socket communication) using socket communication functions is stored. All bits corresponding to connections using any communications other than the socket communication are fixed to "0".
b15b14 b0 b1 SD1282
SD1282 Open completion signal
Stores open completion status
change) New QnU*2
Open request status of connections using socket communication functions is stored. All bits corresponding to connections using any communications other than the socket communication are fixed to "0".
b15b14 b0 b1 SD1284
SD1284 Open request signal
Stores open request status
change) New QnU*2
Reception status of connections using socket communication functions is stored. All bits corresponding to connections using any communications other than the socket communication are fixed to "0".
b15b14 b0 b1 SD1286
SD1286 Reception status signal
change) New QnU*2
For TCP (Normal reception mode) 0 : Data have not been received. 1 : Data have been received. For TCP (Fixed length reception mode) 0 : Data have not been received ,or received data size has not been reached to valid buffer size. 1 : Received data size has been reached to valid buffer size. For UDP 0 : Data have not been received. 1 : Data have been received.
Appendix 4 SPECIAL REGISTER LIST
Connection status of built-in Ethernet port is stored.
Built-in Ethernet port connection status
Stores connection status of built-in Ethernet port
change) New QnU*2
Connection status 0 : Not connected with or disconnected from hubs or devices. 1 : Connected to hubs or devices
It may take several seconds for the QCPU to determine whether to connect or disconnect a built-in Ethernet port.
*2: The built-in Ethernet port QCPU whose serial number (first five digits) is "11012" or later is targeted.

(12) Fuse blown module
TableApp.4.16 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
SD1300
SD1302 D9102
SD1303 D9103
Bit pattern in units of 16 points, indicating the modules whose fuses have blown 0 : No blown fuse 1 : Blown fuse present
b15 b14b13b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
0 0 0 1 (YC0) 0 1 (Y80) SD1300
0 0 1 (Y1F0) 0 1 (Y1A0) SD1301 0 0
B0 SD1331 0 0 0 1 Y1F
Indicates fuse blow.
(13) I/O module verification
TableApp.4.17 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
SD1400
SD1402 D9118
Bit pattern, in units of 16 points, indicating the modules with verification errors. 0 : No I/O verification errors 1 : I/O verification error present
SD1404 D9120
SD1405 D9121
b15 b14 b13 b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
SD1406 D9122
I/O module verify error
0 SD1400
0 SD1401 0 0
0 SD1431 0
Indicates an I/O module verify error.
(14) Process control instructions
TableApp.4.18 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
SD1500 SD1501 Basic period Basic period tome
SD1501 SD1500 Floating points data = SD1501 SD1500 Floating point data =
Process control instruction detail error code
Process control instruction detail error code
Process control instruction generated error location
Process control instruction generated error location
SD1506 SD1507 Dummy device Dummy device • Used to specify dummy devices by a process control instruction. U New QnPH QnPRH
b0 Bumpless function availability setting for the S.PIDP instrunction 0: Enabled 1: Disabled (Default: 0)
Function availability selection for process control instruction
b0 b1 b2 b15 b14 to
U New QnPH QnPRH
Bumpless function availability for the S.PIDP instruction

(15) For redundant systems (Host system CPU information *1)
SD1510 to SD1599 are only valid for redundant systems. They are all set to 0 for stand-alone systems.
TableApp.4.19 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
The LED status for BACKUP, CONTROL, SYSTEM A, SYSTEM B is stored in the following format:
b0 to b2 b3 b4 b5 b6 b7 b8 b10b9 b15
Redundant system LED status
Stores the reason(s) for system switching on the host system. The following values are stored corresponding to the methods for system switching: Initialized to 0 when the power supply is switched off and then on or the RESET switch is set to the RESET position and then to the neutral position.
Reason(s) for system switch- ing
Reason(s) for system switching that occurred in host station
S (when condition occurs)
Appendix 4 SPECIAL REGISTER LIST
Reason(s) for system switching failure conditions
Reason(s) for system switching failure No.
b1 b0 b15 b11 to to 0 0/1 0/1 0
Network module head address, which requested system switching
Network module head address, which requested system switching
Module 0:
CPU module is invalid as it is 2-slot model. Module on the right side of the CPU module
Module 1:
Module11:
Module at the rightmost end of the 12-slot base (Q312B)
Memory copy target I/O number
Memory copy target I/O number
SD1596 Memory copy status
*1: The information of the host CPU module is stored.

(16) For redundant systems (Other system CPU information *1)
SD1600 to SD1659 is only valid during the back up mode for redundant systems, and refresh cannot be done when in the separate mode. SD1651 to SD1699 are valid in either the backup mode or separate mode. When a stand-alone system SD1600 to SD1699 are all 0.
TableApp.4.20 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
SD *2
b1 b0 b15 b2 Fixed to 0
SD1600
Tracking cable is not connected or damaged
Power-OFF, reset, watchdog timer error or hardware failure occurred in other system
SD1600 System error information
Other system stop error (except watchdog timer error)
Bit turns on when failing to connect with other system. The following causes are shown below:
Tracking H/W failure Host system WDT error Cannot recognize other system therefore causing error
Stores the reasons for system switching.
System switching dedicated instruction parameter
System switching dedicated instruction parameter
SD1610 Other system diagnostic error
SD1611 Other system diagnostic error occurrence time
Diagnostic error occurrence time
S(Every END) SD1 to
SD1613
Other system error information category
Error information category code
Other system error common information
S(Every END) SD5 to
Other system error individual information
S(Every END) SD16 to
*2: Shows the special register (SD ) for the host system CPU module.

TableApp.4.20 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
SD *2
Standby system error cancel command
Error code of error to be cleared
Stores the operation information of the other system CPU module in the following format. "00FFH" I stored when a communication error occurs, or when in debug mode.
b15 to to b8 b4 b7 to b3 b0 0 SD1650
0:No error 1:Continue error 2:Stop error F:Communication with
Other system operating information
Other system operating information
0:RUN 2:STOP 3:PAUSE F:Communication with
: Communication
with other system disabled, debug mode
Appendix 4 SPECIAL REGISTER LIST
b1 b0 b15 b11 to to 0 0/1 0/1 0
SD1690
Network module head address, which requested system switching on host (control) system
Network module head address, which requested system switching on host (control) system
Module 0: CPU module is invalid as it is 2- slot model Module 1: Module on the right side of the CPU module Module11: Module at the rightmost end of the 12-slot base (Q312B)
*2 : Shows the special register (SD ) for the host system CPU.

(17) For redundant systems (Trucking)
SD1700 to SD1779 is valid only for redundant systems. These are all 0 for stand-alone systems.
TableApp.4.21 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
SD1700 Tracking error detection count
Tracking error detection count
Waiting time for online program change (standby system)
Waiting time for online program change (standby system)
U/ S (Initial) QnPRH

(18) Redundant power supply module information
SD1780 to SD1789 are valid only for a redundant power supply system. The bits are all 0 for a singular power supply system.
TableApp.4.22 Special register
Number Name Meaning Explanation Set by (When Set)
CPU
Input power OFF detection status of
Input power OFF detection status of
power supply 2 Each bit 0: Input power ON status/ No redundant power supply module 1: Input power OFF status SD1780
power supply 1 1 1
Power supply off detection status
Power supply off detection status
b0 b7 b8 b15 to to
Main base unit Extension base unit 1st stage
:
Extension base unit 7th stage
Main base unit Extension base unit 1st stage
:
Extension base unit 7th stage
supply 2 Each bit 0: Redundant power supply module failure not detected/No redundant power supply module 1: Redundant power supply module failure detected (Detectable for redundant power supply module only)
Power supply failure detection status
Power supply failure detection status
b0 b7 b8 b15 to to
SD1781
Main base unit Extension base unit 1st stage
:
Appendix 4 SPECIAL REGISTER LIST
Extension base unit 7th stage
Main base unit Extension base unit 1st stage
:
Extension base unit 7th stage
Momentary power failure detection counter for power supply
Momentary power failure detection count for power supply 1
Momentary power failure detection counter for power supply
Momentary power failure detection count for power supply 2
*1: The "power supply 1" in dicates the redundant power supply module mounted on the POWER 1 slot of the redundant base unit (Q38RB/68RB/Q65WRB). The "power supply 2" indicates the redundant power supply module mounted on the POWER 2 slot of the redundant base unit (Q38RB/68RB/Q65WRB). *2: The module whose first 5 digits of serial No. is "07032" or later. However, for the multiple CPU system configuration, this applies to all CPU modules whose first 5 digits of serial No. are "07032" or later. *3: The module whose first 5 digits of serial No. is "10042" or later.

Appendix 5.1 Concept of Programs which Perform
Operations of X n ,
X n
(1) Concept of programs which perform operations of Xn
Xn can be operated using e(nlogeX).
For example, the operation of 101.2 is e(1.2 loge10), which is represented in the form of a sequence program as shown below.

Converts 10 into a real number format data and stores the result in D0 and D1. Executes Loge10 operation and stores the result in D2 and D3.
Converts 12 into a real number format data and stores the result into D4 and D5.
Divides D4 and D5 (12) by D0 and D1 (10), and stores the result (1, 2) in D6 and D7 (1, 2).
Multiplies D2 and D3 (Loge10) by D6 and D7 (1, 2) and stores the result in D8 and D9. Executes Loge(D8, D9) operation and stores the result in D10 and D11.
(2) Concept of program which performs operation of
X n ( log eX ) e
can be operated using .
For example, the operation of is , which is represented in the form of a
sequence program as shown below.

Converts 10 into a real number format data and stores the result in D20 and D21.
Executes Loge10 operation and stores the result in D22 and D23.
Converts 3 into a real number type data and stores the result in D24 and D25.
Divides D22 and D23 (Loge10) by D24 and D25 (3) and stores the result in D26 and D27.
Executes Loge(D26, D27) operation and stores the result in D28 and D29.
1 n

BIN 16-bit addition operations (+) 6-22 BIN 32-bit addition operations (D+) 6-26 Block addition (BK+) 6-59,6-62 Addition and subtraction of floating decimal point data (Double precision) (ED+, ED-) 6-50,6-52 Addition and subtraction of floating decimal point data (Single precision) (E+, E-) 6-46,6-48 ADRSET (Indirect address read) 7-395 ANB (Ladder block series connections) 5-10 AND (=, , >, , D, E, ED
- (BIN 16-bit subtraction operations) 6-22 $+ (Linking character strings) 6-65,6-67 $=, $, $>, $
16-bit data block transfers (FMOV) 6-120,6-122 16-bit data checks (SUM) 7-69 16-bit data exchange (XCH) 6-124 16-bit data exclusive NOR operation (WXNR) 7-27 16-bit data searches (SER) 7-66 16-bit dead band controls (BAND) 7-324 16-bit exclusive OR operations (WXOR) 7-19 16-bit negation transfers (CML) 6-114 16-bit transfers (MOV) 6-106 1-bit shift to left of n-bit data (BSFL) 7-49,7-51 1-bit shift to right of n-bit data (BSFR) 7-49,7-51 1-word shift to left of n-word data (DSFL) 7-54,7-56 1-word shift to right of n-word data (DSFR) 7-54,7-56 32-bit data checks (DSUM) 7-69 32-bit data exchanges (DXCH) 6-124 32-bit data exclusive NOR operation (DXNR) 7-27 32-bit data searches (DSER) 7-66 32-bit dead band controls (DBAND) 7-324 32-bit exclusive OR operations (DXOR) 7-19 32-bit negation transfers (DCML) 6-114 32-bit transfers (DMOV) 6-106 4-bit dissociation of 16-bit data (DIS) 7-77 4-bit linking of 16-bit data (UNI) 7-79 7-segment decode (SEG) 7-75
6-8 And inverse (ANI) 5-3 AND($=, $, $>, $
7-228 ASIN (SIN-1 operation on floating-point data (Single precision)) 7-262 ASIND (SIN-1 operation on floating-point data (Double precision)) 7-265 ATAN (TAN-1 operation on floating-point data (Single precision)) 7-271 ATAND (TAN-1 operation on floating-point data
7-273
B- (BCD 4-digit subtraction) 6-34 B contact operation start (LDI) 5-2 B* (BCD 4-digit multiplication) 6-42 B+ (BCD 4-digit addition) 6-34 B/ (BCD 4-digit division) 6-42 BACOS (BCD type COS-1 operation) 7-317 BAND (16-bit dead band controls) 7-324 Basic instructions 2-10 BASIN (BCD type SIN-1 operation) 7-315 BATAN (BCD type TAN-1 operation) 7-313 Batch recovery of index register (ZPOP) 7-400 Batch reset of bit devices (BKRST) 7-64 Batch save of index register (ZPUSH) 7-400 BCD (BIN data to 4-digit) 6-73 BCD 4-digit addition and subtraction operations (B+, B-) 6-34
A contact operation start (LD) 5-2 A contact parallel connection (OR) 5-2 A contact series connection (AND) 5-2 ACOS (COS-1 operation on floating-point data (Single precision)) 7-267 ACOSD (COS-1 operation on floating-point data (Double precision)) 7-269 Addition
Addition of floating decimal point (Double precision) (ED+) 6-50,6-52 Addition of floating decimal point (Single precision) (E+) 6-46,6-48 BCD 4-digit addition (B+) 6-34 BCD 8-digit addition (DB+) 6-38
[Symbols] · [Numerics]

BCD 4-digit multiplication and division operations (B*, B/) 6-42 BCD 4-digit square roots (BSQR) 7-306 BCD 8-digit addition and subtraction operations (DB+, DB-) 6-38 BCD 8-digit multiplication and division operations (DB*, DB/) 6-44 BCD 8-digit square roots (BDSQR) 7-306 BCD conversion
BK+ (Block addition) 6-59,6-62 BKAND (Block logical products) 7-9 BKBCD (Conversion from block BIN 16-bit data to BCD 4-digit data) 6-98 BKBIN (Conversion from block BCD 4-digit data to block BIN 16-bit data) 6-100 BKCMP (BIN block data comparisons) 6-15,6-18 BKOR (Block logical sum operations) 7-17 BKRST (Batch reset of bit devices) 7-64 BKXNR (Block exclusive NOR operations) 7-33 BKXOR (Block exclusive OR operations) 7-25 Block 16-bit exchanges (BXCH) 6-126 Block 16-bit transfers (BMOV) 6-117 Block addition (BK+) 6-59,6-62 Block exclusive NOR operations (BKXNR) 7-33 Block exclusive OR operations (BKXOR) 7-25 Block logical products (BKAND) 7-9 Block logical sum operations (BKOR) 7-17 Block subtraction (BK-) 6-59,6-62 BMOV (Block 16-bit data transfers) 6-117 BREAK (Forced end of FOR to NEXT instruction loop)
Conversion from BIN data to 4-digit BCD (BCD)
6-73 Conversion from BIN data to 8-digit BCD (DBCD)
6-73 BCD type COS operations (BCOS) 7-311 BCD type COS-1 operations (BACOS) 7-317 BCD type SIN operation (BSIN) 7-309 BCD type SIN-1 operation (BASIN) 7-315 BCD type TAN operation (BTAN) 7-313 BCD type TAN-1 operations (BATAN) 7-319 BCDDA (Conversion from BCD 4-digit to decimal ASCII) 7-189 BCOS (BCD type COS operations) 7-311 BDSQR (BCD 8-digit square roots) 7-306 BIN (BCD 4-digit data to BIN data) 6-75 BIN 16-bit addition and subtraction operations (+, -) 6-22 BIN 16-bit data comparisons (=, , >, , D
7-108 BRST (Bit reset for word devices) 7-59 BSET (Bit set for word devices) 7-59 BSFL (1-bit shift to left of n-bit data) 7-49,7-51 BSFR (1-bit shift to right of n-bit data) 7-49,7-51 BSIN (BCD type SIN operation) 7-309 BSQR (BCD 4-digit square roots) 7-306 BTAN (BCD type TAN operation) 7-313 BTOW (Data linking in byte units) 7-85 Buffer memory access instructions 2-41 BXCH (Block 16-bit data exchanges) 6-126
Calculation of averages for 16-bit or 32-bit data (MEAN(P),DMEAN(P)) 7-103 Calculation of totals for 16-bit data (WSUM) 7-99 Calculation of totals for 32-bit data (DWSUM)
7-101,7-103 CALL (Subroutine program calls) 7-110 Cautions on programming 3-27 Changing check format of CHK instruction (CHKCIR, CHKEND) 7-179 Character string data 3-11 Character string data comparisons 6-11 Character string length detection (LEN) 7-204 Character string processing instructions 2-43 Character string search (INSTR) ...7-239,7-241,7-243 Character string transfers ($MOV) 6-112 CHKCIR (Changing check format of CHK instruction)
7-179 CHKEND (Changing check format of CHK instruction)
7-179 CHKST, CHK (Special format failure checks) 7-175 CJ (Pointer branch instruction) 6-129 Clock comparison (TM=,TM,TM>,TM=) 7-361 Clock data addition operation (DATE+) 7-348 Clock data subtraction operation (DATE-) 7-350 Clock instructions 2-52

CML (16-bit negation transfers) 6-114 COM (Refresh instruction) 7-134,7-137,7-141 Common logarithm operation on floating-point data (Double precision) (LOG10D(P)) 7-302 Common logarithm operation on floating-point data (Single precision) (LOG10(P)) 7-300 Comparison operation instruction table 2-10 Comparison operation instructions 6-2 Comparisons (BIN 16-bit data) 6-2 Comparisons (BIN 32-bit data) 6-4 Comparisons (Character string data) 6-11 Complement of 2 of BIN 16-bit data (NEG) 6-94 Complement of 2 of BIN 32-bit data (DNEG) 6-94 COMRD (Reading device comment data) 7-201 Conditions for execution of instructions 3-33 Connection instructions
Conversion from ASCII to hexadecimal BIN (HEX)
7-230 Conversion from BCD 4-digit to decimal ASCII (BCDDA) 7-189 Conversion from BCD 8-digit to decimal ASCII (DBCDDA) 7-189 Conversion from BIN 16-bit to character string (STR)
7-206 Conversion from BIN 16-bit to decimal ASCII (BINDA)
7-183 Conversion from BIN 16-bit to floating decimal point (Double precision) (FLTD) 6-81 Conversion from BIN 16-bit to floating decimal point (Single precision) (FLT) 6-78 Conversion from BIN 16-bit to hexadecimal ASCII (BINHA) 7-186 Conversion from BIN 32-bit to character string (DSTR)
Association instruction table 2-7 Ladder block parallel connection (ORB) 5-10 Ladder block series connection (ANB) 5-10 Linking character strings ($+) 6-65 Contact instruction 2-6 Contact instructions
7-206 Conversion from BIN 32-bit to decimal ASCII (DBINDA) 7-183 Conversion from BIN 32-bit to floating decimal point (Double precision) (DFLTD) 6-81 Conversion from BIN 32-bit to floating decimal point (Single precision) (DFLT) 6-78 Conversion from BIN 32-bit to hexadecimal ASCII (DBINHA) 7-186 Conversion from block BCD 4-digit data to block BIN 16-bit data (BKBIN) 6-100 Conversion from block BIN 16-bit data to BCD 4-digit data (BKBCD) 6-98 Conversion from character string to BIN 16-bit (VAL)
Operation start (LD, LDI) 5-2 Parallel connection (OR, ORI) 5-2 Pulse operation start (LDF, LDP) 5-5,5-7 Pulse parallel connection (ORF,ORP) 5-5,5-7 Pulse serial connection (ANF, ANP) 5-5,5-7 Series connection (AND, ANI) 5-2 Conversion
BCD 4-digit to BIN (BIN) 6-75 BCD 8-digit to BIN (DBIN) 6-75 BIN 16-bit to BIN 32-bit (DBL) 6-88 BIN 16-bit to floating decimal point (Double precision) (FLTD) 6-81 BIN 16-bit to floating decimal point (Single precision) (FLT) 6-78 BIN 16-bit to Gray code (GRY) 6-90 BIN 32-bit to BIN 16-bit (WORD) 6-89 BIN 32-bit to floating decimal point (Double precision) (DFLTD) 6-81 BIN 32-bit to floating decimal point (Single precision) (DFLT) 6-78 BIN 32-bit to Gray code (DGRY) 6-90 BIN to BCD 4-digit (BCD) 6-73 BIN to BCD 8-digit (DBCD) 6-73 Double precision to Single precision (EDCON)
7-212 Conversion from character string to BIN 32-bit (DVAL)
7-212 Conversion from character string to floating decimal point (EVAL) 7-224 Conversion from decimal ASCII to BCD 4-digit (DABCD) 7-198 Conversion from decimal ASCII to BCD 8-digit (DDABCD) 7-198 Conversion from decimal ASCII to BIN 16-bit (DABIN)
7-192 Conversion from decimal ASCII to BIN 32-bit (DDABIN) 7-192 Conversion from floating decimal point to character string (ESTR) 7-217 Conversion from floating-point angle to radian (Double precision) (RADD) 7-277 Conversion from floating-point angle to radian (Single precision) (RAD) 7-275 Conversion from floating-point radian to angle (Double precision) (DEGD) 7-281,7-283,7-285 Conversion from floating-point radian to angle (Single precision) (DEG) 7-279 Conversion from hexadecimal ASCII to BIN 16-bit (HABIN) 7-195 Conversion from hexadecimal ASCII to BIN 32-bit (DHABIN) 7-195
6-104 Floating decimal point data to BIN 16-bit (Double precision) (INTD) 6-86 Floating decimal point data to BIN 16-bit (Single precision) (INT) 6-83 Floating decimal point data to BIN 32-bit (Single precision) (DINT) 6-83 Floating decimal point data to BIN32-bit (Double precision) (DINTD) 6-86 Gray code to BIN 16-bit (GBIN) 6-92 Gray code to BIN 32-bit (DGBIN) 6-92 Single precision to Double precision (ECON)
6-102

Conversion from hexadecimal BIN to ASCII (ASC) 7-228 Conversion of Gray code to BIN 16-bit (GBIN) 6-92 Conversion of Gray code to BIN 32-bit (DGBIN) 6-92 Conversion to BIN
Data table operation instructions 2-40 DATE- (Clock data subtraction operation) 7-350 Date comparison (DT=,DT,DT>,DT=) 7-356 DATE+ (Clock data addition operation) 7-348 DATERD (Reading clock data) 7-344 DATEWR (Writing clock data) 7-346 DB- (BCD 8-digit subtraction) 6-38 DB* (BCD 8-digit multiplication) 6-44 DB+ (BCD 8-digit addition) 6-38 DB/ (BCD 8-digit division) 6-44 DBAND (32-bit dead band controls) 7-324 DBCD (Conversion from BIN to BCD 8-digit) 6-73 DBCDDA (Conversion from BCD 8-digit to decimal ASCII) 7-189 DBIN (BCD 8-digit to BIN 16-bit conversion) 6-75 DBINDA (Conversion from BIN 32-bit to decimal ASCII) 7-183 DBINHA (Conversion from BIN 32-bit to hexadecimal ASCII) 7-186 DBK- 6-63 DBK+ 6-62 DBL (BIN 16-bit to BIN 32-bit) 6-88 DCML (32-bit negation transfers) 6-114 DDABCD (Conversion from decimal ASCII to BCD 8-digit) 7-198 DDABIN (Conversion from decimal ASCII to BIN 32-bit) 7-192 DDEC (Decrementing 32-bit BIN) 6-71 Debugging and failure diagnosis instructions 2-42 DEC (Decrementing 16-bit BIN) 6-69 DECO (Decoding from 8 to 256 bits) 7-71 Decoding from 8 to 256 bits (DECO) 7-71 Decrement
BCD 4-digit to BIN 16-bit (BIN) 6-75 BCD 8-digit to BIN 32-bit (DBIN) 6-75 Floating decimal point data to BIN 16-bit (Double precision) (INTD) 6-86 Floating decimal point data to BIN 16-bit (Single precision) (INT) 6-83 Floating decimal point data to BIN 32-bit (Double precision) (DINTD) 6-86 Floating decimal point data to BIN 32-bit (Single precision) (DINT) 6-83 Conversion to floating decimal point (Double precision) (FLTD, DFLTD) 6-81 Conversion to floating decimal point (Single precision) (FLT, DFLT) 6-78 COS (COS operation on floating-point data (Single precision)) 7-254 COS operation on floating-point data (Double precision) (COSD) 7-256 COS operation on floating-point data (Single precision) (COS) 7-254 COS-1 operation on floating-point data (Double precision) (ACOSD) 7-269 COS-1 operation on floating-point data (Single precision) (ACOS) 7-267 COSD (COS operation on floating-point data (Double precision)) 7-256 Count 1-phase input or down (UDCNT1) 6-143 Count 2-phase input or down (UDCNT2) 6-146 Counters (OUT C) 5-26
BIN 16-bit (DEC) 6-69 BIN 32-bit (DDEC) 6-71 Decrementing 16-bit BIN (DEC) 6-69 Decrementing 32-bit BIN (DDEC) 6-71 DEG (Conversion from floating-point radian to angle (Single precision)) 7-279 DEGD (Conversion from floating-point radian to angle (Double precision)) 7-281,7-283,7-285 Deleting data from data tables (FDEL) 7-157 Deletion of character string (STRDEL(P)) 7-243 DELTA (Pulse conversion of direct output) 5-42 Designating data 3-3 Designation of modification values in index modification (IXDEV, IXSET) 7-148 Device range check 3-27 DFLT (Conversion from BIN 32-bit to floating decimal point (Single precision)) 6-78 DFLTD (Conversion from BIN 32-bit to floating decimal point (Double precision)) 6-81 DFRO (Reading 2-word data from intelligent function modules) 7-160 DGBIN (Conversion of Gray code to BIN 16-bit)
D- (BIN 32-bit subtraction operations 6-26 D(P).DDRD(Reading Devices to Another CPU) 10-17 D(P).DDWR(Writing Devices to Another CPU) 10-13 D* (BIN 32-bit multiplication operations) 6-32 D+ (BIN 32-bit addition operations) 6-26 D/ (BIN 32-bit division operations) 6-32 D=, D, D>, D
6-92 DGRY (BIN 32-bit to Gray code) 6-90 DHABIN (Conversion from hexadecimal ASCII to BIN 32-bit) 7-195

DI (Interrupt disable) 6-133 Digit designation 3-4 Digit designation of bit devices 3-4 DINC (Incrementing 32-bit BIN) 6-71 DINT (Floating decimal point data to BIN 32-bit (Single precision)) 6-83 DINTD (Floating decimal point data to BIN 32-bit (Double precision)) 6-86 Direct 1-byte read from file register (ZRRDB) 7-391 DIS (4-bit grouping of 16-bit data) 7-77 Display instructions 2-41 Dissociation of random data (NDIS) 7-81 Division
E- (Subtraction of floating decimal point data (Single precision)) 6-46,6-48 E* (Multiplication of floating decimal point data (Single precision)) 6-54 E+ (Addition of floating decimal point data (Single precision)) 6-46,6-48 E/ (Dividion of floating decimal point data (Single precision)) 6-54 E=, E, E>, E
7-120 ECON (Single precision to Double precision conversion) 6-102 ED- (Subtraction of floating decimal point data (Double precision)) 6-50,6-52 ED* (Multiplication of floating decimal point data (Double precision)) 6-56 ED+ (Addition of floating decimal point data (Double precision)) 6-50,6-52 ED/ (Dividion of floating decimal point data (Double precision)) 6-56 ED=,ED,ED>,ED
BCD 4-digit (B/) 6-42 BCD 8-digit division (DB/) 6-44 BIN 16-bit (/) 6-30 Division of floating decimal point(Double precision) (ED/) 6-56 Division of floating decimal point(Single precision) (E/) 6-54 DLIMIT (Upper and lower limit controls for BIN 32-bit) 7-321 DMAX (Maximum value search for 32-bit data)... 7-89 DMEAN(P) 7-103 DMIN (Minimum value search for 32-bit data) 7-92 DMOV (32-bit transfers) 6-106 DNEG (Complement of 2 of BIN 32-bit data) 6-94 DOR (Logical sums of 32-bit data) 7-11 Double precision to Single precision conversion (EDCON) 6-104 Double word data 3-6 DRCL (Left rotation of 32-bit data) 7-44 DRCR (Right rotation of 32-bit data) 7-41 DROL (Left rotation of 32-bit data) 7-44 DROR (Right rotation of 32-bit data) 7-41 DSCL(P) 7-331 DSCL2(P) 7-335 DSER (32-bit data searches) 7-66 DSFL (1-word shift to left of n-word data) 7-54,7-56 DSFR (1-word shift to right of n-word data) 7-54,7-56 DSORT (BIN 32-bit data sort) 7-95 DSTR (Conversion from BIN 32-bit to character string) 7-206 DSUM (32-bit data checks) 7-69 DTEST (Bit tests) 7-61 DTO (Writing 2-word data to intelligent function modules) 7-163 DUTY (Timing pulse generation) 7-388 DVAL (Conversion from character string to BIN 32-bit) 7-212 DWSUM (Calculation of totals for 32-bit data) 7-101,7-103 DXCH (16-bit data exchanges) 6-124 DXNR (32-bit data exclusive NOR operation) 7-27 DXOR (32-bit exclusive OR operations) 7-19 DZONE (Zone control for BIN 32-bit data) 7-327,7-330,7-334
7-125 EGF (Pulse operation results / leading edge) 5-18 EGP (Pulse operation results / trailing edge) 5-18 EI (Interrupt enable) 6-133 EMOD (Floating decimal point to BCD) 7-245 EMOV (Floating-point data transfer (Single precision))
6-108 ENCO (Encoding from 256 to 8 bits) 7-73 Encoding from 256 to 8 bits (ENCO) 7-73 END (End sequence program) 5-53 End main routine program (FEND) 5-51 End sequence program (END) 5-53 ENEG (Floating-point sign invertion(Single precision))
6-96 EREXP (From BCD format data to floating decimal point) 7-248 Error display and annunciator reset instruction (LEDR)
7-172 ESTR (Conversion from floating decimal point to character string) 7-217 EVAL (Conversion from character string to floating decimal point) 7-217 EXP (Exponent operation on floating-point data (Single precision)) 7-291 Expansion clock data addition operation (S.DATE+)
7-366

Expansion clock data subtraction operation (S.DATE-) 7-366 EXPD (Exponent operation on floating-point data (Double precision)) 7-294 Exponent operation on floating-point data (Double precision) (EXPD) 7-294 Exponent operation on floating-point data (Single precision) (EXP) 7-291 Exponentiation operation on floating-point data (Single precision) (POW(P)) 7-283 Exponentiation operation on floating-point data (Single precision) (POWD(P)) 7-285 Extracting character string data from the left (LEFT) 7-232 Extracting character string data from the right (RIGHT) 7-232
From BCD format data to floating decimal point (EREXP) 7-248
GBIN (Conversion of Gray code to BIN 16-bit) 6-92 GOEND (Jump to END) 6-132 GRY (BIN 16-bit to Gray code) 6-90
HABIN (Conversion from hexadecimal ASCII to BIN 16-bit) 7-195 HEX (Conversion from ASCII to hexadecimal BIN)
7-230 High speed retentive timer (OUTH ST) 5-22 High speed timer (OUTH T) 5-22 High-speed block transfer of file register (RBMOV)
7-448 HOUR (Time data conversion) 7-354 How to read instruction tables 2-4 How to read instructions 4-2
FCALL (Subroutine program output OFF calls) 7-116 FDEL (Deleting data from data tables) 7-157 FEND (End main routine program) 5-51 FF (Bit device output reverse) 5-40 FIFR (Reading oldest data from data tables) 7-153 FIFW (Writing data to the data tables) 7-151 File register direct 1-byte write (ZRWRB) 7-393 File setting for comments (QCDSET) 7-342 FINS (Inserting data in data tables) 7-157 Fixed cycle pulse output (PLSY) 6-162 Floating decimal point data comparisons (Double precision) (ED=, ED, ED>, ED, E
I/O refrech (RFS) 6-141 I/O refresh instruction table 2-27 Identical 32-bit data block transfers (DFMOV(P))
6-122 IMASK (Interrupt program mask) 6-133 INC (Incrementing 16-bit BIN) 6-69 Increment
BIN 16-bit (INC) 6-69 BIN 32-bit (DINC) 6-71 Incrementing 16-bit BIN (INC) 6-69 Incrementing 32-bit BIN (DINC) 6-71 Index modification 3-12 Indirect address read (ADRSET) 7-395 Indirect specification 3-23 Inserting data in data tables (FINS) 7-157 Insertion of character string (STRINS(P)) 7-241 INSTR (Character string search) ...7-239,7-241,7-243 Instructions for data link 2-59 INT (Floating decimal point data to BIN 16-bit (Single precision)) 6-83 INTD (Floating decimal point data to BIN 16-bit (Double precision)) 6-86 Interrupt disable (DI) 6-133 Interrupt enable (EI) 6-133 Interrupt program mask (IMASK) 6-133 INV (Operation results inversion) 5-15 Inversion
Bit device output reverse (FF) 5-40 Operation results inversion (INV) 5-15 IRET (Recovery from interrupt programs) 6-139 IX, IXEND (Index modification of entire ladder)
7-144 IXDEV (Designation of modification values in index modification) 7-148 IXSET (Designation of modification values in index modification) 7-148

[M]
JMP (Pointer branch) 6-129 Jump to END (GOEND) 6-132
Master control instructions 5-47 Matrix input (MTR) 6-166 MAX (Maximum value search for 16-bit data) 7-89 Maximum value search for 16-bit data (MAX) 7-89 Maximum value search for 32-bit data (DMAX)... 7-89 MC (Setting the master control) 5-47 MCR (Resetting the master control) 5-47 MEAN(P) 7-103 MEF (Pulse operation results / trailing edge) 5-17 MEP (Pulse operation results / leading edge) 5-17 MIDR (Random selection from character strings)
KEY (Numerical key input from keyboard) 7-396
Ladder block parallel connections (ORB) 5-10 Ladder block series connections (ANB) 5-10 LD ($=, $, $>, $, , D, E, ED
7-235 MIDW (Random replacement in character strings)
7-235 MIN (Minimum value search for 16-bit data) 7-92 Minimum value search for 16-bit data (MIN) 7-92 Minimum value search for 32-bit data (DMIN) 7-92 MOV (16-bit transfers) 6-106 MPP (Operation results pop) 5-12 MPS (Operation results push) 5-12 MRD (Operation results read) 5-12 MTR (Matrix input) 6-166 Multiplication
BCD 4-digit (B*) 6-42 BCD 8-digit (DB*) 6-44 BIN 16-bit (*) 6-30 BIN 32-bit (D*) 6-32 Multiplication of floating decimal point (Double precision) (ED*) 6-56 Multiplication of floating decimal point (Single precision) (E*) 6-54 Multiplication and division of floating decimal point (Double precision)(ED*, ED/) 6-56 Multiplication and division of floating decimal point (Single precision)(E*, E/) 6-54
Natural logarithm operation on floating-point data (Double precision) (LOGD) 7-298 Natural logarithm operation on floating-point data (Single precision) (LOG) 7-296,7-302 n-bit shift to left of 16-bit data (SFL) 7-46 n-bit shift to right of 16-bit data (SFR) 7-46 n-bit shift to right or left of n-bit data (SFTBR(P), SFTBL(P)) 7-51 n-bit shift to right or left of n-word data (SFTWR(P), SFTWL(P)) 7-56 NEG (complement of 2 of BIN 16-bit data) 6-94 Network refresh instruction (ZCOM) 8-2 NEXT (FOR to NEXT) 7-105 No operation (NOP, NOPLF, PAGE) 5-57 NOP 5-57 NOP (No operation) 5-57 NOPLF (No operation page change) 5-57 Number of steps 3-34 Numerical key input (KEY) 7-396 Numerical key input from keyboard (KEY) 7-396 NUNI (Linking of random data) 7-81

PLOW (Program low speed execution registration)
7-382 PLS (Leading edge output) 5-37 PLSY (Fixed cycle pulse output) 6-162 POFF (Program output OFF standby instruction)
Operation errors 3-27 Operation results inversion (INV) 5-15 Operation results pop (MPP) 5-12 Operation results push (MPS) 5-12 Operation results read (MRD) 5-12 Operation start (LD, LDI) 5-2 OR ($=, $, $>, $, , D, E, ED
7-378 Pointer branching instruction (CJ, SCJ, JMP) ... 6-129 Pop (MPP) 5-12 PR (Print ASCII code instruction) 7-166 PRC (Print comment instruction) 7-169 Print ASCII code instruction (PR) 7-166 Print comment instruction (PRC) 7-169 Program branch instruction table 2-27 Program control instructions 2-56 Program execution control instruction table 2-27 Program low speed execition registration instruction (PCHK) 7-384 Program low speed execution registration (PLOW)
7-382 Program output OFF standby instruction (POFF)
7-378 Program scan execution registration instruction (PSCAN) 7-380 Program standby instruction (PSTOP) 7-377 PSCAN (Program scan execution registration instruction) 7-380 PSTOP (Program standby instruction) 7-377 PSWAPP (Load + unload) 7-445 Pulse conversion
(DELTA) 5-42 (EGF, EGP) 5-18 (MEF, MEP) 5-17 Pulse conversion of direct output (DELTA) 5-42 Pulse density measurement (SPD) 6-160 Pulse NOT operation start, pulse NOT series connection, pulse NOT parallel connection LDPI,LDFI, ANDPI,ANDFI,ORPI,ORFI) 5-7 Pulse operation results
Application instructions 2-29 Sequence instructions 2-6 OUT
Annunciator output (OUT F) 5-28 Counters (OUT C) 5-26 High speed retentive timer (OUTH ST) 5-22 High speed timer (OUTH T) 5-22 Low speed retentive timer (OUT ST) 5-22 Low speed timer (OUT T) 5-22 Output (OUT) 5-20 Out instructions (OUT) 5-20 Output instruction table 2-8 Output instructions (OUT) 5-20 Output of sub-routine program OFF calls (FCALL) 7-116 Output OFF calls between program files (EFCALL) 7-125 Output reverse (FF) 5-40
Operation result conversions (MEF, MEP) 5-17 Pulse conversions of edge relay operation results (EGF, EGP) 5-18 Pulse operation start (LDF, LDP) 5-5,5-7 Pulse parallel connection (ORF, ORP) 5-5,5-7 Pulse series connection (ANDF, ANDP) 5-5 Pulse width modulation (PWM) 6-164 PUNLOADP (Unload program from program memory)
7-443 Push (MPS) 5-12 PWM (Pulse width modulation) 6-164
PAGE (No operation page change) 5-57 Page change (NOPLF) 5-57 Page change (PAGE n) 5-57 Parallel connection (OR, ORI) 5-2 Parallel connections (ORB) 5-10 PCHK (Program low speed execution registeration instruction) 7-384 PLF (Trailing edge output) 5-37 PLOADP (Load program from Memory Card) ... 7-440
QCDSET (File setting for comments) 7-342 QCPU dedicated instructions 2-60 QDRSET(Setting files for file register use) 7-339
RAD (Conversion from floating-point angle to radian (Single precision)) 7-275

RADD (Conversion from floating-point angle to radian (Double precision)) 7-277 RAMP (Ramp signal) 6-157 Ramp signal (RAMP) 6-157 Random number generation (RND/SRND) 7-304 Random selection from and replacement in character strings (MIDR) 7-235 Random selection replacement in character strings (MIDW) 7-235 RBMOV (High-speed block transfer of file register) 7-448 RCL (Left rotation of 16-bit data) 7-38 RCR (Right rotation of 16-bit data) 7-35 Read (MRD) 5-12 Read data from standard ROM (S.DEVLD) 7-438 Reading 1-word data from intelligent function modules (FROM) 7-160 Reading 2-word data from intelligent function modules (DFRO) 7-160 Reading clock data (DATERD) 7-344 Reading data from designated file (SP.FREAD) 7-424 Reading device comment data (COMRD) 7-201 Reading expansion clock data (S.DATERD) 7-366 Reading from other CPU shared memory (FROM) 9-12 Reading module information (UNIRD) 7-402 Reading newest data from data tables (FPOP) 7-155 Reading oldest data from data tables (FIFR) 7-153 Reading routing information (RTREAD) 8-6 Real number data 3-8 Recovery from interrupt programs (IRET) 6-139 Refresh instruction (COM) 7-134 Related programming manuals 1-2 Resetting devices (RST) 5-32,5-35 Resetting the annunciators (RST F) 5-35 Resetting the master control (MCR) 5-47 Resetting watchdog timer (WDT) 7-386 RET (Return from sub-routine programs) 7-115 Return from sub-routine programs (RET) 7-115 Revercing
ROTC (Rotary table shortest direction control)
6-154 RSET (Switching file register numbers) 7-337 RST
Resetting devices (RST) 5-32 Resetting the annunciators (RST F) 5-35 RTREAD (Reading routing information) 8-6 RTWRITE (Writing routing information) 8-8
S.DATE- (Expansion clock data subtraction operation)
7-366 S.DATE+ (Expansion clock data addition operation)
7-366 S.DATERD (Reading expansion clock data) 7-366 S.DEVLD (Read data from standard ROM) 7-438 S.TO (Write to host CPU shared memory) 9-4 Scaling (Point-by-point coordinate data) (SCL(P), DSCL(P)) 7-330 Scaling (Point-by-point coordinate data) (SCL2(P), DSCL2(P)) 7-334 SCJ (Pointer branching instruction) 6-129 SCL(P) 7-330 SCL2 7-334 SECOND (Time data conversion) 7-352 SEG (7-segment decode) 7-75 Sequence instructions 2-6 Sequence program stop (STOP) 5-55 SER (16-bit data searches) 7-66 Series connection (AND, ANI) 5-2 Series connections (ANB) 5-10 SET
Setting devices (SET) 5-30 Setting the annunciators (SET F) 5-35 Setting devices (SET) 5-30,5-35 Setting files for file register use (QDRSET) 7-339 Setting the annunciators (SET F) 5-35 Setting the master control (MC) 5-47 SFL (n-bit shift to left of 16-bit data) 7-46 SFR (n-bit shift to right of 16-bit data) 7-46 SFT (Bit device shifts) 5-44 SFTBL(P) 7-52 SFTBR(P) 7-51 SFTWL(P) 7-57 SFTWR(P) 7-56 Shift instruction 5-44,7-46
Bit device output reverse (FF) 5-40 Floating-point sign invertion (Double precision) (EDNEG) 6-97 Floating-point sign invertion (Single precision) (ENEG) 6-96 Operation results inversion (INV) 5-15 RFS (I/O refresh) 6-141 RIGHT (Extracting character string data from the right) 7-232 Right rotation of 16-bit data (ROR, RCR) 7-35 Right rotation of 32-bit data (DROR, DRCL) 7-41 RND (Random number generation and series update) 7-304 ROL (Left rotation of 16-bit data) 7-38 ROR (Right rotation of 16-bit data) 7-35 Rotary table shortest direction control (ROTC) 6-154 Rotation instructions 2-32
(Application instructions) 2-29 Shift instruction table
(Sequence instructions) 2-6 SIN (SIN operation on floating-point data (Single precision)) 7-250 SIN operation on floating-point data (Double precision) (SIND) 7-252 SIN operation on floating-point data (Single precision) (SIN) 7-250 SIN-1 operation on floating-point data (Double precision) (ASIND) 7-265 SIN-1 operation on floating-point data (Single precision) (ASIN) 7-262

SIND (SIN operation on floating-point data (Double precision)) 7-252 Single precision to Double precision conversion (ECON) 6-102 SORT (BIN 16-bit data sort) 7-95 SP.CONTSW (System switching instruction) 11-2 SP.DEVST (Writing data to standard ROM) 7-436 SP.FREAD (Reading data from designated file) 7-424 SP.FWRITE (Writing data to designated file) 7-413 SPD (Pulse density measurement) 6-160 Special format failure checks (CHKST, CHK) ... 7-175 Special function instructions 2-46 Special timer (STMR) 6-151 SQR (Square root operation for floating-point data (Single precision)) 7-287 SQRD (Square root operation for floating-point data (Double precision)) 7-289 Square root operation for floating-point data (Double precision) (SQRD) 7-289 Square root operation for floating-point data (Single precision) (SQR) 7-287 SRND (Random number generation and series updates) 7-304 STMR (Special function timer) 6-151 STOP (Sequence program stop) 5-55 STR (Conversion from BIN 16-bit to character string) 7-206 Structure creation instructions 2-38 Subrotine program calls (CALL) 7-110 Subroutine calls (XCALL) 7-129 Subroutine calls between program files (ECALL) 7-120 Subroutine program output OFF calls (FCALL) 7-116 Subset processing 3-25 Subtraction
TAN-1 operation on floating-point data (Double precision)(ATAND) 7-273 TAN-1 operation on floating-point data (Single precision)(ATAN) 7-271 TAND (TAN operation on floating-point data (Double precision)) 7-260 Teaching timer (TTMR) 6-149 Termination instruction table 2-9 TEST (Bit tests) 7-61 TIMCHK (Time check instruction) 7-390 Time check instruction (TIMCHK) 7-390 Time data conversion (HOUR) 7-354,7-356,7-361 Time data conversion (SECOND) 7-352 Timer (OUT T) 5-22 Timing pulse generation (DUTY) 7-388 TO (Writing 1-word data to intelligent function modules) 7-163 TRACE (Trace set) 7-411 TRACER (Trace reset) 7-411 TTMR (Teaching timer) 6-149 Types of Instructions 2-2
UDCNT1 (Counter 1-phase input up or down) .. 6-143 UDCNT2 (Counter 2-phase input up or down) .. 6-146 UNI (4-bit linking of 16-bit data) 7-79 UNIRD (Reading module information) 7-402 Unload program from program memory (PUNLOADP)
7-443 Up / Down counter
Count 1-phase input or dawn (UDCNT1) 6-143 Count 2-phase input or down (UDCNT2) 6-146 Upper and lower byte exchanges (SWAP) 6-128 Upper and lower limit controls for BIN 32-bit (DLIMIT)
7-321
BCD 4-digit subtraction (B-) 6-34 BCD 8-digit subtraction (DB-) 6-38 BIN 16-bit subtraction operations (-) 6-22 BIN 32-bit subtraction operations (D-) 6-26 Block subtraction (BK-) 6-59,6-62 Subtraction of floating decimal point data (Double precision) (ED-) 6-50,6-52 Subtraction of floating decimal point data (Single precision) (E-) 6-46,6-48 SUM (16-bit data checks) 7-69 SWAP (Upper and lower byte exchanges) 6-128 Switching file register numbers (RSET) 7-337 Switching instructions 2-51 System Switching (SP.CONTSW) 11-2
VAL (Conversion from character string to BIN 16-bit)
7-212
WAND (Logical products with 16-bit data) 7-3 WDT (Resetting watchdog timer) 7-386 WOR (Logical sums of 16-bit data) 7-11 WORD (Conversion from BIN 32-bit to BIN 16-bit)
6-89 Word data 3-4 Word device bit designation 3-3 Writing 1-word data to intelligent function modules (TO) 7-163 Writing 2-word data to intelligent function modules (DTO) 7-163 Writing clock data (DATEWR) 7-346 Writing data to designated file (SP.FWRITE) 7-413 Writing data to standard ROM (SP.DEVST) 7-436 Writing data to the data tables (FIFW) 7-151 Writing routing information (RTWRITE) 8-8 Writing to the CPU shared memory of host CPU... 9-2
TAN (TAN operation on floating-point data (Single precision)) 7-258 TAN operation on floating-point data (Double precision)(TAND) 7-260 TAN operation on floating-point data (Single precision)(TAN) 7-258

S.TO 9-4 TO 9-7 WSUM (Calculation of totals for 16-bit data) 7-99 WTOB (Data dissociation in byte units) 7-85 WXNR (16-bit data exclusive NOR operation) 7-27 WXNR (16-bit data non-exclusive logical sum operations) 7-30 WXOR (16-bit exclusive OR operations) 7-19,7-22
XCALL (Subroutine program call) 7-129 XCH (32-bit data exchange) 6-124
ZCOM (Network refresh instruction) 8-2 ZONE (Zone control for BIN 16-bit) 7-327,7-330,7-334 Zone control for BIN 16-bit (ZONE) 7-327,7-330,7-334 Zone control for BIN 32-bit data (DZONE) 7-327,7-330,7-334 ZPOP (Batch recovery of index register) 7-400 ZPUSH (Batch save of index register) 7-400 ZRRDB (Direct 1-byte read from file register) 7-391 ZRWRB (File register direct 1-byte write) 7-393

Please confirm the following product warranty details before using this product. 1. Gratis Warranty Term and Gratis Warranty Range If any faults or defects (hereinafter "Failure") found to be the responsibility of Mitsubishi occurs during use of the product within the gratis warranty term, the product shall be repaired at no cost via the sales representative or Mitsubishi Service Company. However, if repairs are required onsite at domestic or overseas location, expenses to send an engineer will be solely at the customer's discretion. Mitsubishi shall not be held responsible for any re-commissioning, maintenance, or testing on-site that involves replacement of the failed module. [Gratis Warranty Term] The gratis warranty term of the product shall be for one year after the date of purchase or delivery to a designated place. Note that after manufacture and shipment from Mitsubishi, the maximum distribution period shall be six (6) months, and the longest gratis warranty term after manufacturing shall be eighteen (18) months. The gratis warranty term of repair parts shall not exceed the gratis warranty term before repairs. [Gratis Warranty Range] (1) The range shall be limited to normal use within the usage state, usage methods and usage environment, etc.,
which follow the conditions and precautions, etc., given in the instruction manual, user's manual and caution labels on the product. (2) Even within the gratis warranty term, repairs shall be charged for in the following cases. 1. Failure occurring from inappropriate storage or handling, carelessness or negligence by the user. Failure caused by the user's hardware or software design. 2. Failure caused by unapproved modifications, etc., to the product by the user. 3. When the Mitsubishi product is assembled into a user's device, Failure that could have been avoided if functions or structures, judged as necessary in the legal safety measures the user's device is subject to or as necessary by industry standards, had been provided. 4. Failure that could have been avoided if consumable parts (battery, backlight, fuse, etc.) designated in the instruction manual had been correctly serviced or replaced. 5. Failure caused by external irresistible forces such as fires or abnormal voltages, and Failure caused by force majeure such as earthquakes, lightning, wind and water damage. 6. Failure caused by reasons unpredictable by scientific technology standards at time of shipment from Mitsubishi. 7. Any other failure found not to be the responsibility of Mitsubishi or that admitted not to be so by the user. 2. Onerous repair term after discontinuation of production (1) Mitsubishi shall accept onerous product repairs for seven (7) years after production of the product is
discontinued. Discontinuation of production shall be notified with Mitsubishi Technical Bulletins, etc. (2) Product supply (including repair parts) is not available after production is discontinued. 3. Overseas service Overseas, repairs shall be accepted by Mitsubishi's local overseas FA Center. Note that the repair conditions at each FA Center may differ. 4. Exclusion of loss in opportunity and secondary loss from warranty liability Regardless of the gratis warranty term, Mitsubishi shall not be liable for compensation of damages caused by any cause found not to be the responsibility of Mitsubishi, loss in opportunity, lost profits incurred to the user by Failures of Mitsubishi products, special damages and secondary damages whether foreseeable or not , compensation for accidents, and compensation for damages to products other than Mitsubishi products, replacement by the user, maintenance of on-site equipment, start-up test run and other tasks. 5. Changes in product specifications The specifications given in the catalogs, manuals or technical documents are subject to change without prior notice. 6. Product application (1) In using the Mitsubishi MELSEC programmable controller, the usage conditions shall be that the application will
not lead to a major accident even if any problem or fault should occur in the programmable controller device, and that backup and fail-safe functions are systematically provided outside of the device for any problem or fault. (2) The Mitsubishi programmable controller has been designed and manufactured for applications in general
industries, etc. Thus, applications in which the public could be affected such as in nuclear power plants and other power plants operated by respective power companies, and applications in which a special quality assurance system is required, such as for Railway companies or Public service purposes shall be excluded from the programmable controller applications. In addition, applications in which human life or property that could be greatly affected, such as in aircraft, medical applications, incineration and fuel devices, manned transportation, equipment for recreation and amusement, and safety devices, shall also be excluded from the programmable controller range of applications. However, in certain cases, some applications may be possible, providing the user consults their local Mitsubishi representative outlining the special requirements of the project, and providing that all parties concerned agree to the special circumstances, solely at the users discretion.

Microsoft, Windows, Windows NT are registered trademarks of Microsoft Corporation in the United States and other
countries.
Pentium and Celeron are trademarks of Intel Corporation in the United States and other countries.
Ethernet is a trademark of Xerox Co., Ltd. in the United States.
CompactFlash is a trademark of SanDisk Corporation.
VxWorks, Tornado, WindPower, WindSh and WindView are registered trademarks of Wind River Systems, Inc.
Other company names and product names used in this document are trademarks or registered trademarks of respective
owners.




Pages referenced in this manual — manufacturer, support and downloads.
What the fault codes shown on the display mean and how to clear them.
| Code | Meaning | Fix | |
|---|---|---|---|
| SD80 | Failure No. | p.68 | |
| N1 | Number of scans for ON (BIN 16 bits) | p.756 | |
| N2 | Number of scans for OFF (BIN 16 bits) | p.756 | |
| 1000 | [MAIN CPU DOWN] Runaway or failure of CPU module or failure of main CPU • Malfunctioning due to noise or other reason • Hardware fault ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always | • Take noise reduction measures. • Reset the CPU module and RUN it again.If the same error is displayed again, this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.) | p.910 |
| 1001 | [MAIN CPU DOWN] Runaway or failure of CPU module or failure of main CPU • Malfunctioning due to noise or other reason • Hardware fault • Accessed to outlying devices with the device range checks disabled (SM237 is turned on)(This error occurs only when BMOV, FMOV, and DFMOV instructions are executed.) (Universal model QCPU only) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always | • Take noise reduction measures. • Reset the CPU module and RUN it again.If the same error is displayed again, this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.) • Check the devices specified by BMOV, FMOV, and DFMOV instructions and correct the device settings. (Universal model QCPU only) | p.910 |
| 1002 | [MAIN CPU DOWN] Runaway or failure of CPU module or failure of main CPU • Malfunctioning due to noise or other reason • Hardware fault ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always | • Take noise reduction measures. • Reset the CPU module and RUN it again.If the same error is displayed again, this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.) | p.910 |
| 1005 | [MAIN CPU DOWN] Runaway or failure of CPU module or failure of main CPU • Malfunctioning due to noise or other reason • Hardware fault ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always | • Take noise reduction measures. • Reset the CPU module and RUN it again.If the same error is displayed again, this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.) | p.910 |
| 1006 | [MAIN CPU DOWN] Runaway or failure of CPU module or failure of main CPU • Malfunctioning due to noise or other reason • Hardware fault ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always | • Take noise reduction measures. • Reset the CPU module and RUN it again.If the same error is displayed again, this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.) | p.911 |
| 1009 | [MAIN CPU DOWN] • A failure is detected on the power supply module, CPU module, main base unit, extension base unit or extension cable. • When using the redundant base unit, the redundant power supply module failure in both systems and/or the redundant base unit failure are detected. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always | Reset the CPU module and RUN it again.If the same error is detected again, it is considered that the power supply module, CPU module, main base unit, extension base unit or extension cable is faulty. (Contact your local Mitsubishi representative.) | p.911 |
| 1010 | [END NOT EXECUTE] Entire program was executed without the execution of an END instruction. • When the END instruction is executed it is read as another instruction code, e.g. due to noise. • The END instruction has been changed to another instruction code somehow. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • When an END instruction executed | • Take noise reduction measures. • Reset the CPU module and RUN it again. If the same error is displayed again, this suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.) | p.911 |
| 1020 | [SFCP. END ERROR] The SFC program cannot be normally terminated due to noise or other reason. • The SFC program cannot be normally terminated due to noise or any similar cause. • The SFC program cannot be normally terminated for any other reason. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • When SFC program is executed | • Take noise reduction measures. • Reset the CPU module and RUN it again. If the same error is displayed again, this suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.) | p.911 |
| 1035 | [MAIN CPU DOWN] Runaway or error of the CPU module was detected. • Malfunction due to noise etc. • Hardware failure ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always | • Take measures against noise. • Reset the CPU module and run it again. If the same error is displayed again, the CPU module has hardware failure.(Contact your local Mitsubishi representative, explaining a detailed description of the problem.) | p.911 |
| 1101 | [RAM ERROR] The sequence program storing program memory in the CPU module is faulty. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset/ When an END instruction executed | • Take noise reduction measures. • Reset the CPU module and RUN it again. If the same error is displayed again,this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.) | p.912 |
| 1102 | [RAM ERROR] • The work area RAM in the CPU module is faulty. • The standard RAM and extended RAM in the CPU module are faulty. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset/ When an END instruction executed | • Take noise reduction measures. • Reset the CPU module and RUN it again. If the same error is displayed again,this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.) | p.912 |
| 1103 | [RAM ERROR] The device memory in the CPU module is faulty. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | • Take noise reduction measures. • When indexing is performed, check the value of index register to see if it is within the device range. • Reset the CPU module and RUN it again. If the same error is displayed again,this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.) | p.912 |
| 1104 | [RAM ERROR] The address RAM in the CPU module is faulty. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | • Take noise reduction measures. • Reset the CPU module and RUN it again.If the same error is displayed again, this suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.) | p.912 |
| 1105 | [RAM ERROR] The CPU memory in the CPU module is faulty. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | • Take noise reduction measures. • Reset the CPU module and RUN it again.If the same error is displayed again, this suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.) | p.912 |
| 1106 | [RAM ERROR] The battery is dead. The program memory in the CPU module is faulty. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • STOP RUN/When an END instruction executed | • Check the battery to see if it is dead or not. If dead, replace the battery. • Take noise reduction measures. • Format the program memory, write all files to the PLC, then reset the CPU module, and RUN it again. If the same error is displayed again, the possible cause is a CPU module hardware fault. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) | p.913 |
| 1107 | [RAM ERROR] The work area RAM in the CPU module is faulty. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | This suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.) | p.913 |
| 1109 | [RAM ERROR] The work area RAM in the CPU module is faulty. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always | p.913 | |
| 1110 | [TRK. CIR. ERROR] A fault was detected by the initial check of the tracking hardware. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | p.913 | |
| 1111 | [TRK. CIR. ERROR] A tracking hardware fault was detected. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | p.913 | |
| 1112 | [TRK. CIR. ERROR] A tracking hardware fault was detected during running. • The tracking cable was disconnected and reinserted without the standby system being powered off or reset. • The tracking cable is not secured by the connector fixing screws. • The error occurred at a startup since the redundant system startup procedure was not followed. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • During running | • Start after checking that the tracking cable is connected. If the same error is displayed again, the cause is the hardware fault of the tracking cable or CPU module. (Please contact your local Mitsubishi representative, explaining a detailed description of the problem.) • Confirm the redundant system startup procedure, and execute a startup again. For details, refer to the QnPRHCPU User's Manual (Redundant System). | p.913 |
| 1115 | [TRK. CIR. ERROR] A fault was detected by the initial check of the tracking hardware. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | This suggests a CPU module hardware fault. (Contact your nearest Mitsubishi representative.) | p.914 |
| 1116 | [TRK. CIR. ERROR] A tracking hardware fault was detected during running. • The tracking cable was disconnected and reinserted without the standby system being powered off or reset. • The tracking cable is not secured by the connector fixing screws. • The error occurred at a startup since the redundant system startup procedure was not followed. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • During running | • Start after checking that the tracking cable is connected. If the same error is displayed again, the cause is the hardware fault of the tracking cable or CPU module. (Please contact your local Mitsubishi representative, explaining a detailed description of the problem.) • Confirm the redundant system startup procedure, and execute a startup again. For details, refer to the QnPRHCPU User's Manual (Redundant System). | p.914 |
| 1150 | [RAM ERROR] The memory of the CPU module in the Multiple CPU high speed transmission area is faulty. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | • Take noise reduction measures. • Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. Contact your local Mitsubishi representative, explaining a detailed description of the problem. | p.914 |
| 1160 | [RAM ERROR] The program memory in the CPU module is overwritten. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At program execution | • Take noise reduction measures. • Format the program memory, write all files to the PLC, then reset the CPU module, and RUN it again. If the same error is displayed again, the CPU module has hardware failure. Contact your local Mitsubishi representative, explaining a detailed description of the problem. | p.914 |
| 1161 | [RAM ERROR] The data of the device memory built in the CPU module is overwritten. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At program execution | • Take noise reduction measures. If the same error is displayed again, the CPU module has hardware failure. Contact your local Mitsubishi representative, explaining a detailed description of the problem. | p.914 |
| 1162 | [RAM ERROR] The error of the data held by the battery in the CPU module is detected. (It occurs when the automatic format is not set.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | • Take noise reduction measures. • Change the CPU main body or SRAM card battery. If the same error is displayed again, the CPU module has hardware failure. Contact your local Mitsubishi representative, explaining a detailed description of the problem. | p.914 |
| 1164 | [RAM ERROR] The destruction of the data stored in the standard RAM is detected. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • When instruction executed | • Take noise reduction measures. If the same error is displayed again, the CPU module has hardware failure. Contact your local Mitsubishi representative, explaining a detailed description of the problem. | p.915 |
| 1200 | [OPE. CIRCUIT ERR.] The operation circuit for index modification in the CPU module does not operate normally. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | This suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.) | p.915 |
| 1201 | [OPE. CIRCUIT ERR.] The hardware (logic) in the CPU module does not operate normally. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | p.915 | |
| 1202 | [OPE. CIRCUIT ERR.] The operation circuit for sequence processing in the CPU module does not operate normally. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | p.915 | |
| 1203 | [OPE. CIRCUIT ERR.] The operation circuit for index modification in the CPU module does not operate normally. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • When an END instruction executed | p.915 | |
| 1204 | [OPE. CIRCUIT ERR.] The hardware (logic) in the CPU module does not operate normally. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • When an END instruction executed | p.915 | |
| 1205 | [OPE. CIRCUIT ERR.] The operation circuit for sequence processing in the CPU module does not operate normally. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • When an END instruction executed | p.915 | |
| 1300 | [FUSE BREAK OFF] There is an output module with a blown fuse. ■Collateral information • Common Information:Module No.(Slot No.) [For Remote I/O network]Network No./ Station No. • Individual Information:– ■Diagnostic Timing • Always | • Check FUSE. LED of the output modules and replace the module whose LED is lit. (The module with a blown fuse can also be identified using GX Developer. Check the special registers SD1300 to SD1331 to see if the bit corresponding to the module is "1".) • When a GOT is bus-connected to the main base unit or extension base unit, check the connection status of the extension cable and the earth status of the GOT. | p.916 |
| 1310 | [I/O INT. ERROR] An interruption has occurred although there is no interrupt module. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • During interrupt | Any of the mounted modules is experiencing a hardware fault. Therefore, check the mounted modules and change the faulty module. (Contact your local Mitsubishi representative.) | p.916 |
| 1311 | [I/O INT. ERROR] An interrupt request from other than the interrupt module was detected. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • During interrupt | Take action so that an interrupt will not be issued from other than the interrupt module. | p.916 |
| 1320 | [LAN CTRL.DOWN] The H/W self-diagnostics detected a LAN controller failure. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | This suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.) | p.916 |
| 1401 | [SP. UNIT DOWN] • There was no response from the intelligent function module/special function module in the initial processing. • The size of the buffer memory of the intelligent function module/special function module is invalid. • The unsupported module is mounted. ■Collateral information • Common Information:Module No.(Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/ At reset/When intelligent function module is accessed | When the unsupported module is mounted, remove it. When the corresponding module is supported, this suggests the intelligent function module/special function module, CPU module and/or base unit is expecting a hardware fault (Contact your local Mitsubishi representative.) | p.917 |
| 1402 | [SP. UNIT DOWN] The intelligent function module/special function module was accessed in the program, but there was no response. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:Program error location ■Diagnostic Timing • When an intelligent function module access instruction is executed | This suggests the intelligient function module/ special function module , CPU module and/or base unit is expecting a hardware fault (Contact your local Mitsubishi representative.) | p.917 |
| 1403 | [SP. UNIT DOWN] • The unsupported module is mounted. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • When an END instruction executed | When the unsupported module is mounted, remove it. When the corresponding module is supported, this suggests the intelligent function module/special function module , CPU module and/or base unit is expecting a hardware fault (Contact your local Mitsubishi representative.) | p.917 |
| 1411 | [CONTROL-BUS. ERR.] When performing a parameter I/O allocation the intelligent function module/special function module could not be accessed during initial communications. (On error occurring, the head I/O number of the corresponding intelligent function module/special function module is stored in the common information.) ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | Reset the CPU module and RUN it again. If the same error is displayed again, the intelligent function module/special function module, CPU module or base unit is faulty. (Contact your local Mitsubishi representative.) | p.917 |
| 1412 | [CONTROL-BUS. ERR.] The FROM/TO instruction is not executable, due to a control bus error with the intelligent function module/special function module. (On error occurring, the program error location is stored in the individual information.) ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:Program error location ■Diagnostic Timing • During execution of FROM/TO instruction set | Reset the CPU module and RUN it again. If the same error is displayed again, the intelligent function module/special function module, CPU module or base unit is faulty. (Contact your local Mitsubishi representative.) | p.918 |
| 1413 | [CONTROL-BUS. ERR.] In a multiple CPU system, a CPU module incompatible with the multiple CPU system is mounted. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always | • Remove the CPU module incompatible with the multiple CPU system from the main base unit, or replace the CPU module incompatible with the multiple CPU system with a CPU module compatible with the multiple CPU system. • The intelligent function module, CPU module or base unit is faulty. (Contact your local Mitsubishi representative.) | p.918 |
| 1414 | [CONTROL-BUS. ERR.] • Fault of a loaded module was detected. • In a multiple CPU system, a CPU module incompatible with the multiple CPU system is mounted. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • Always | • Remove the CPU module incompatible with the multiple CPU system from the main base unit, or replace the CPU module with a CPU module compatible with the multiple CPU system. • Reset the CPU module and RUN it again. If the same error is displayed again, the intelligent function module, CPU module or base unit is faulty. (Contact your local Mitsubishi representative.) | p.918 |
| 1415 | [CONTROL-BUS. ERR.] Fault of the main or extension base unit was detected. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • When an END instruction executed | Reset the CPU module and RUN it again. If the same error is displayed again, the intelligent function module, CPU module or base unit is faulty. (Contact your local Mitsubishi representative.) | p.919 |
| 1416 | [CONTROL-BUS. ERR.] System bus fault was detected at power-on or reset. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | p.919 | |
| 1417 | [CONTROL-BUS. ERR.] A reset signal error was detected on the system bus. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always | p.919 | |
| 1418 | [CONTROL-BUS.ERR.] In the redundant system, at power-on/reset or switching system, the control system cannot access the extension base unit since it failed to acquire the access right. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power-ON/ At reset/ At Switching execution | Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module, the Q6 WRB, or hardware of extension cable is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) | p.919 |
| 1430 | [MULTI-C.BUS ERR.] The error of host CPU is detected in the Multiple CPU high speed bus. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) | p.919 |
| 1431 | [MULTI-C.BUS ERR.] The communication error with other CPU is detected in the Multiple CPU high speed bus. ■Collateral information • Common Information:Module No. (CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | • Take noise reduction measures. • Check the main base unit mounting status of the CPU module. • Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) | p.920 |
| 1432 | [MULTI-C.BUS ERR.] The communication time out with other CPU is detected in the Multiple CPU high speed bus. ■Collateral information • Common Information:Module No. (CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) | p.920 |
| 1433 | [MULTI-C.BUS ERR.] The communication error with other CPU is detected in the Multiple CPU high speed bus. ■Collateral information • Common Information:Module No. (CPU No.) • Individual Information:– ■Diagnostic Timing • Always | • Take noise reduction measures. • Check the main base unit mounting status of the CPU module. • Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) | p.920 |
| 1436 | [MULTI-C.BUS ERR.] The error of the Multiple CPU high speed main base unit is detected. (The error of the Multiple CPU high speed bus is detected.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) | p.920 |
| 1437 | • Take noise reduction measures. • Check the main base unit mounting status of the CPU module. • Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) | p.920 | |
| 1439 | [MULTI-C.BUS ERR.] An error of the multiple CPU high speed main base unit was detected. (An error of the multiple CPU high speed bus was detected.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) | p.920 |
| 1500 | [AC/DC DOWN] • A momentary power supply interruption has occurred. • The power supply went off. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always | Check the power supply. | p.920 |
| 1510 | [SINGLE PS. DOWN] The power supply voltage of either of redundant power supply modules on the redundant base unit dropped. ■Collateral information • Common Information:Base No./ Power supply No. • Individual Information:– ■Diagnostic Timing • Always | Check the power supplied to the redundant power supply modules mounted on the redundant base unit. | p.921 |
| 1520 | [SINGLE PS. ERROR] On the redundant base unit, the one damaged redundant power supply module was detected. ■Collateral information • Common Information:Base No./ Power supply No. • Individual Information:– ■Diagnostic Timing • Always | Hardware fault of the redundant power supply module. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) | p.921 |
| 1600 | [BATTERY ERROR*3] • The battery voltage in the CPU module has dropped below stipulated level. • The lead connector of the CPU module battery is not connected. • The lead connector of the CPU module battery is not securely engaged. ■Collateral information • Common Information:Drive Name • Individual Information:– ■Diagnostic Timing • Always | • Change the battery. • If the battery is for program memory, standard RAM or for the back-up power function, install a lead connector. • Check the lead connector of the CPU module for looseness. Firmly engage the connector if it is loose. | p.921 |
| 1601 | [BATTERY ERROR*3] Voltage of the battery on memory card has dropped below stipulated level. ■Collateral information • Common Information:Drive Name • Individual Information:– ■Diagnostic Timing • Always | Change the battery. | p.921 |
| 1610 | [FLASH ROM ERROR] The number of writing to flash ROM (standard ROM and system securement area) exceeds 100,000 times. (Number of writings >100,000 times) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • When writing to ROM | Change the CPU module. | p.921 |
| 2000 | [UNIT VERIFY ERR.] In a multiple CPU system, a CPU module incompatible with the multiple CPU system is mounted. ■Collateral information • Common Information:Module No. (Slot No.) [For Remote I/O network] Network No./Station No. • Individual Information:– ■Diagnostic Timing • When an END instruction executed | Replace the CPU module incompatible with the multiple CPU system with a CPU module compatible with the multiple CPU system. | p.922 |
| 2001 | [UNIT VERIFY ERR.] During operation, a module was mounted on the slot where the empty setting of the CPU module was made. ■Collateral information • Common Information:Module No. (CPU No.) • Individual Information:– ■Diagnostic Timing • When an END instruction executed | During operation, do not mount a module on the slot where the empty setting of the CPU module was made. | p.922 |
| 2010 | [BASE LAY ERROR] • More than applicable number of extension base units have been used. • When a GOT was bus-connected, the CPU module was reset while the power of the GOT was OFF. ■Collateral information • Common Information:Base No. • Individual Information:– ■Diagnostic Timing • At power ON/At reset | • Use the allowable number of extension base units or less. • Power on the Progammable Controller and GOT again. | p.922 |
| 2011 | [BASE LAY ERROR] The QA1S6 B, QA6 B, or QA6ADP+A5 B/A6 B was used as the base unit. ■Collateral information • Common Information:Base No. • Individual Information:– ■Diagnostic Timing • At power ON/At reset | Do not use the QA1S6 B, QA6 B, or QA6ADP+A5 B/A6 B as the base unit. | p.923 |
| 2012 | [BASE LAY ERROR] The GOT is bus-connected to the main base unit of the redundant system. The following errors are detected in the CPU redundant system compatible with the extension base unit. • The base unit other than the Q6 WRB is connected to the extension stage No.1. • The base unit is connected to any one of the extension stages No.2 to No.7, although the Q6 WRB does not exist in the extension stage No.1 . • The other system CPU module is incompatible with the extension base unit. • The Q5 B, QA1S6 B, QA6 B or QA6ADP+A5 B/A6 B is connected. • The number of slots of the main base unit for both systems is different. Information of the Q6 WRB cannot be read correctly. ■Collateral information • Common Information:Base No. • Individual Information:– ■Diagnostic Timing • At power ON/At reset | • Remove a bus connection cable for GOT connection connected to the main base unit. • Use the Q6 WRB (fixed to the extension stage No.1) • Use the CPU module compatible with the extension base unit for the other system. • Do not use the Q5 B, QA1S6 B, QA6 B or QA6ADP+A5 B/A6 B for the base unit. • Use the main base unit which has the same number of slots. • Hardware failure of the Q6 WRB. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) | p.923 |
| 2013 | [BASE LAY ERROR] Stage number of the Q6 WRB is recognized as other than extension stage No.1 in the redundant system. ■Collateral information • Common Information:Base No. • Individual Information:– ■Diagnostic Timing • At power ON/At reset | Hardware failure of the Q6 WRB. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) | p.923 |
| 2020 | [EXT.CABLE ERR.] The following errors are detected in the redundant system. • At power-on/reset, the standby system has detected the error in the path between the control system and the Q6 WRB. • The standby system has detected the error in the path between the host system CPU and the Q6 WRB at END processing. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power-ON/At reset/ When an END instruction executed | Check to see if the extension cable between the main base unit and the Q6 WRB is connected correctly. If not, connect it after turning OFF the main base unit where the extension cable will be connected. If the cable is connected correctly, hardware of the CPU module, Q6 WRB, or extension cable is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) | p.923 |
| 2100 | [SP. UNIT LAY ERR.] The slot to which the QI60 is mounted is set to other than Inteli (intelligent function module) or Interrupt (interrupt module) in the I/O assignment of PLC parameter. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset | Make setting again to match the PLC parameter I/O assignment with the actual loading status. | p.924 |
| 2101 | [SP. UNIT LAY ERR.] 13 or more A-series special function modules (except for the A1SI61) that can initiate an interrupt to the CPU module have been installed. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset | Reduce the A series special function modules (except the A1SI61) that can make an interrupt start to the CPU module to 12 or less. | p.924 |
| 2102 | [SP. UNIT LAY ERR.] Seven or more A1SD51S have been installed. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset | Keep the number of A1SD51S to six or fewer. | p.925 |
| 2103 | [SP. UNIT LAY ERR.] • Two or more QI60/A1SI61 modules are mounted in a single CPU system. • Two or more QI60/A1SI61 modules are set to the same control CPU in a multiple CPU system. • Two or more A1SI61 modules are loaded in a multiple CPU system. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset | • Reduce the number of QI60/A1SI61 modules mounted in the single CPU system to one. • Change the number of QI60/A1SI61 modules set to the same control CPU to only one in the multiple CPU system. • Reduce the number of A1SI61 modules to only one in the multiple CPU system. When using an interrupt module with each QCPU in a multiple CPU system, replace it with the QI60. (Use one A1SI61 module + max. three QI60 modules or only the QI60 modules.) | p.925 |
| 2106 | [SP.UNIT LAY ERR.] • Two or more MELSECNET/H modules are mounted. • Two or more CC-Link IE controller network modules are mounted. • Two or more Ethernet modules are mounted. ■Collateral information • Common Information:Module No. • Individual Information:– ■Diagnostic Timing • At power ON/At reset | • Reduce the number of MELSECNET/H modules to one. • Reduce the number of CC-Link IE controller network modules to one. • Reduce the number of Ethernet modules to one. | p.926 |
| 2107 | [SP. UNIT LAY ERR.] The start X/Y set in the PLC parameter’s I/O assignment settings is overlapped with the one for another module. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset | Make the PLC parameter’s I/O assignment setting again so it is consistent with the actual status of the intelligent function module/special function modules. | p.927 |
| 2108 | [SP. UNIT LAY ERR.] • Network module A1SJ71LP21, A1SJ71BR11, A1SJ71AP21, A1SJ71AR21, or A1SJ71AT21B dedicated for the A2USCPU has been installed. • Network module A1SJ71QLP21 or A1SJ71QBR11 dedicated for the Q2AS has been installed. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset | Replace the network module for the A2USCPU or the network module for the Q2ASCPU with the MELSECNET/H module. | p.927 |
| 2110 | [SP. UNIT ERROR] • The location designated by the FROM/TO instruction set is not the intelligent function module/special function module. • The module that does not include buffer memory has been specified by the FROM/TO instruction. • The intelligent function module/special function module, Network module being accessed is faulty. • Station not loaded was specified using the instruction whose target was the CPU share memory. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:Program error location ■Diagnostic Timing • When instruction executed | • Read the individual information of the error using the GX Developer, check the FROM/TO instruction that corresponds to that numerical value (program error location), and correct when necessary. • The intelligent function module/special function module that was accessed is experiencing a hardware fault. Therefore, change the faulty module. Alternatively, contact your local Mitsubishi representative. | p.928 |
| 2111 | [SP. UNIT ERROR] • The location designated by a link direct device (J \ ) is not a network module. • The I/O module (intelligent function module/ special function module) was nearly removed, completely removed, or mounted during running. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:Program error location ■Diagnostic Timing • When instruction executed | p.928 | |
| 2112 | [SP. UNIT ERROR] • The module other than intelligent function module/special function module is specified by the intelligent function module/special function module dedicated instruction. Or, it is not the corresponding intelligent function module/special function module. • There is no network No. specified by the network dedicated instruction. Or the relay target network does not exit. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:Program error location ■Diagnostic Timing • When instruction executed/STOP RUN | Read the individual information of the error using a peripheral device, and check the special function module /special function module dedicated instruction (network instruction) that corresponds to the value (program error part) to make modification. | p.928 |
| 2113 | [SP. UNIT ERROR] The module other than network module is specified bythe network dedicated instruction. ■Collateral information • Common Information:FFFFH (fixed) • Individual Information:Program error location ■Diagnostic Timing • When instruction executed/STOP RUN | p.928 | |
| 2114 | [SP. UNIT ERROR] An instruction, which on execution specifies other stations, has been used for specifying the host CPU. (An instruction that does not allow the host CPU to be specified). ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:Program error location ■Diagnostic Timing • When instruction executed/ STOP RUN | Read the individual information of the error using the GX Developer, check the program corresponding that value (program error location), and make correction. | p.929 |
| 2115 | [SP. UNIT ERROR] An instruction, which on execution specifies the host CPU, has been used for specifying other CPUs. (An instruction that does not allow other stations to be specified). ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:Program error location ■Diagnostic Timing • When instruction executed/ STOP RUN | p.929 | |
| 2116 | [SP. UNIT ERROR] • An instruction that does not allow the under the control of another CPU to be specified is being used for a similar task. • Instruction was executed for the A or QnA module under control of another CPU. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:Program error location ■Diagnostic Timing • When instruction executed/ STOP RUN | p.929 | |
| 2117 | [SP. UNIT ERROR] A CPU module that cannot be specified in the instruction dedicated to the multiple CPU system was specified. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:Program error location ■Diagnostic Timing • When instruction executed/ STOP RUN | p.929 | |
| 2118 | [SP. UNIT ERROR] When the online module change setting is set to be “enabled” in the PLC parameter in a multiple CPU system, intelligent function module controlled by other CPU using the FROM instruction/intelligent function module device (U \ G) is specified. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:Program error location ■Diagnostic Timing • When instruction executed | • When performing the online module change in a multiple CPU system, correct the program so that access will not be made to the intelligent function module controlled by the other CPU. • When accessing the intelligent function module controlled by the other CPU in a multiple CPU system, set the online module change setting to be “disabled” by parameter. | p.929 |
| 2120 | [SP. UNIT LAY ERR.] The locations of the Q5 B/Q6 B, QA1S6 B/ QA6 B, and QA6ADP+A5 B/A6 B are improper. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset | Check the location of the base unit. | p.930 |
| 2121 | [SP. UNIT LAY ERR.] The CPU module is installed to other than the CPU slot and slots 0 to 2. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset | Check the loading position of the CPU module and reinstall it at the correct slot. | p.930 |
| 2122 | [SP. UNIT LAY ERR.] The QA1S6 B/QA6 B and QA6ADP+A5 B/ A6 B are used for the main base unit. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset | Replace the main base unit with a usable one. | p.930 |
| 2124 | [SP. UNIT LAY ERR.] • A module is mounted on the 65th slot or later slot. • A module is mounted on the slot whose number is greater than the number of slots specified at [Slots] in [Standard setting] of the base setting. • A module is mounted on the slot whose number of I/O points exceeds 4096 points. • A module is mounted on the slot whose number of I/O points strides 4096 points. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset | • Remove the module mounted on the 65th slot or later slot. • Remove the module mounted on the slot whose number is greater than the number of slots specified at [Slots] in [Standard setting] of the base setting. • Remove the module mounted on the slot whose number of I/O points exceeds 4096 points. • Replace the module with the one whose number of occupied points does not exceed 4096 points. | p.930 |
| 2125 | [SP. UNIT LAY. ERR.] • A module which the QCPU cannot recognise has been installed. • There was no response form the intelligent function module/special function module. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | • Install a usable module. • The intelligent function module/special function module is experiencing a hardware fault. (Contact your local Mitsubishi representative.) | p.931 |
| 2126 | [SP. UNIT LAY. ERR.] CPU module locations in a multiple CPU system are either of the following. • There are empty slots between the QCPU and QCPU/motion controller. • A module other than the High Performance model QCPU/Process CPU (including the motion controller) is mounted on the left-hand side of the High Performance model QCPU/Process CPU. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | • Mount modules on the available slots so that the empty slots will be located on the right-hand side of the CPU module. • Remove the module mounted on the left-hand side of the High Performance model QCPU/ Process CPU, and mount the High Performance model QCPU/Process CPU on the empty slot. Mount the motion CPU on the right-hand side of the High Performance model QCPU/Process CPU. | p.932 |
| 2128 | [SP.UNIT LAY ERR.] The unusable module is mounted on the extension base unit in the redundant system. ■Collateral information • Common Information:Module No. • Individual Information:– ■Diagnostic Timing • At power-ON/ At reset | • Remove the unusable module from the extension base unit. | p.932 |
| 2150 | [SP. UNIT VER. ERR.] In a multiple CPU system, the control CPU of the intelligent function module incompatible with the multiple CPU system is set to other than CPU No.1. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset/ At writing to progurammable controller | • Change the intelligent function module for the one compatible with the multiple CPU system (function version B). • Change the setting of the control CPU of the intelligent function module incompatible with the multiple CPU system to CPU No.1. | p.932 |
| 2151 | [SP. UNIT VER. ERR.] Either of the following modules incompatible with the redundant system has been mounted in a redundant system. • CC-Link IE controller network modules • MELSECNET/H modules • Ethernet modules ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset/ At writing to progurammable controller | Use either of the following modules compatible with the redundant system. • CC-Link IE controller network modules • MELSECNET/H modules • Ethernet modules | p.932 |
| 2200 | [MISSING PARA.] There is no parameter file in the drive specified as valid parameter drive by the DIP switches. ■Collateral information • Common Information:Drive Name • Individual Information:– ■Diagnostic Timing • At power ON/At reset/ STOP RUN | • Check and correct the valid parameter drive settings made by the DIP switches. • Set the parameter file to the drive specified as valid parameter drive by the DIP switches. | p.933 |
| 2210 | [BOOT ERROR] The contents of the boot file are incorrect. ■Collateral information • Common Information:Drive name • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | Check the boot setting. | p.933 |
| 2211 | [BOOT ERROR] File formatting is failed at a boot. ■Collateral information • Common Information:Drive name • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | • Reboot. • CPU module hardware fault. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) | p.933 |
| 2220 | [RESTORE ERROR] • The device information (number of points) backuped by the device data backup function is different from the number of device points of the PLC parameter. After this error occurred, perform restore per power-on/reset until the number of device points is identical to the number of device points in the PLC parameter, or until the backup data is deleted. ■Collateral information • Common Information:File name/ Drive name • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | • Set the number of device points at the time of backup to the device point setting in [PLC parameter]. Then, turn ON from OFF power supply, or reset the CPU and cancel reset. • Delete the backuped data, and turn ON from OFF power supply, or reset the CPU and cancel reset. | p.933 |
| 2221 | [RESTORE ERROR] • The device information backuped by the device data backup function is incomplete. (Turning power supply OFF or reset is suspected.) Do not return the data when this error occurs. Also, delete the incomplete device information at the time of this error occurrence. ■Collateral information • Common Information:File name/ Drive name • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | Reset the CPU module and run it again. | p.934 |
| 2225 | [RESTORE ERROR] The model name of the restoration destination CPU module is different from the one of the backup source CPU module. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | Execute a restore for the CPU module whose name is same as the backup source CPU module. | p.934 |
| 2226 | [RESTORE ERROR] • ·The backup data file is destroyed. (The content of the file is different from the check code. • Reading the backup data from the memory card is not successfully completed. • Since the write protect switch of the SRAM card is set to on (write inhibited), the checked "Restore for the first time only" setting cannot be performed. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | • Execute a restore of other backup data because the backup data may be destructed. • Set the write protect switch of the SRAM card to off (write enabled). | p.934 |
| 2227 | [RESTORE ERROR] Writing the backup data to the restoration destination drive is not successfully completed. ■Collateral information • Common Information:File name/Drive name • Individual Information:– ■Diagnostic Timing • At power ON/ At reset | Execute a restore for the other CPU module too because the CPU module may be damaged. | p.934 |
| 2300 | [ICM. OPE. ERROR] • A memory card was removed without switching the memory card in/out switch OFF. • The memory card in/out switch is turned ON although a memory card is not actually installed. ■Collateral information • Common Information:Drive name • Individual Information:– ■Diagnostic Timing • When memory card is inserted or removed | • Remove memory card after placing the memory card in/out switch OFF. • Turn on the card insert switch after inserting a memory card. | p.934 |
| 2301 | [ICM. OPE. ERROR] • The memory card has not been formatted. • Memory card format status is incorrect. • The QCPU file does not exist in the Flash card. ■Collateral information • Common Information:Drive name • Individual Information:– ■Diagnostic Timing • When memory card is inserted or removed/When memory card is inserted | • Format memory card. • Reformat memory card. • Write the QCPU file the Flash card | p.935 |
| 2302 | [ICM. OPE. ERROR] A memory card that cannot be used with the CPU module has been installed. ■Collateral information • Common Information:Drive name • Individual Information:– ■Diagnostic Timing • When memory card is inserted or removed | • Format memory card. • Reformat memory card. • Check memory card. | p.935 |
| 2400 | [FILE SET ERROR] Automatic write to standard ROM was performed on the CPU module that is incompatible with automatic write to standard ROM. (Memory card where automatic write to standard ROM was selected in the boot file was fitted and the parameter enable drive was set to the memory card.) ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At reset/ At writing to progurammable controller | • Execute automatic write to standard ROM on the CPU module which is compatible with automatic write to standard ROM. • Using GX Developer, perform write of parameters and programs to standard ROM. • Change the memory card for the one where automatic write to standard ROM has not been set, and perform boot operation from the memory card. | p.935 |
| 2401 | [FILE SET ERROR] Program memory capacity was exceeded by performing boot operation or automatic write to standard ROM. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At reset/ At writing to progurammable controller | • Check and correct the parameters (boot setting). • Delete unnecessary files in the program memory. • Choose "Clear program memory" for boot in the parameter so that boot is started after the program memory is cleared. | p.936 |
| 2410 | [FILE OPE. ERROR] • The specified program does not exist in the program memory. This error may occur when the ECALL, EFCALL, PSTOP, PSCAN, POFF or PLOW instruction is executed. • The specified file does not exist. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Program error location ■Diagnostic Timing • When instruction executed | • Read the individual information of the error using the peripheral device, check to be sure that the program corresponds to the numerical values there (program location), and correct. Create a file created using parameters, and load it to the CPU module. • In case a specified file does not exist, write the file to a target memory and/or check the file specified with the instruction again. | p.936 |
| 2411 | [FILE OPE. ERROR] • The file is the one which cannot be specified by the sequence program (such as comment file). • The specified program exists in the program memory, but has not been registered in the program setting of the Parameter dialog box. This error may occur when the ECALL, EFCALL, PSTOP, PSCAN or POFF instruction is executed. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Program error location ■Diagnostic Timing • When instruction executed | Read the individual information of the error using the peripheral device, check to be sure that the program corresponds to the numerical values there (program location), and correct. | p.937 |
| 2412 | [FILE OPE. ERROR] The SFC program file is one that cannot be designated by the sequence program. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Program error location ■Diagnostic Timing • When instruction executed | Read the individual information of the error using the peripheral device, check to be sure that the program corresponds to the numerical values there (program location), and correct. | p.937 |
| 2413 | [FILE OPE. ERROR] No data has been written to the file designated by the sequence program. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Program error location ■Diagnostic Timing • When instruction executed | Read the individual information of the error using the peripheral device, check to be sure that the program corresponds to the numerical values there (program location), and correct. Check to ensure that the designated file has not been write protected. | p.937 |
| 2500 | [CAN'T EXE. PRG.] • There is a program file that uses a device that is out of the range set in the PLC parameter device setting. • After the PLC parameter setting is changed, only the parameter is written into the PLC. ■Collateral information • Common Information:File name/ Drive name • Individual Information:– ■Diagnostic Timing • At power ON/At reset/ STOP RUN | • Read the common information of the error using the peripheral device, check to be sure that the parameter device allocation setting and the program file device allocation correspond to the numerical values there (file name), and correct if necessary. • If PLC parameter device setting is changed, batch-write the parameter and program file into the PLC. | p.937 |
| 2501 | [CAN'T EXE. PRG.] There are multiple program files although "none" has been set at the PLC parameter program settings. ■Collateral information • Common Information:File name/ Drive name • Individual Information:– ■Diagnostic Timing • At power ON/At reset/ STOP RUN | Edit the PLC parameter program setting to "yes". Alternatively, delete unneeded programs. | p.938 |
| 2502 | [CAN'T EXE. PRG.] The program file is incorrect. Alternatively, the file contents are not those of a sequence program. ■Collateral information • Common Information:File name/ Drive name • Individual Information:– ■Diagnostic Timing • At power ON/At reset/ STOP RUN | Check whether the program version is .QPG, and check the file contents to be sure they are for a sequence program. | p.938 |
| 2503 | [CAN'T EXE. PRG.] There are no program files at all. ■Collateral information • Common Information:File name/ Drive name • Individual Information:– ■Diagnostic Timing • At power ON/At reset/ STOP RUN | • Check program configuration. • Check parameters and program configuration. | p.938 |
| 2504 | [CAN'T EXE. PRG.] Two or more SFC normal programs or control programs have been designated. ■Collateral information • Common Information:File name/ Drive name • Individual Information:– ■Diagnostic Timing • At power ON/At reset/ STOP RUN | p.938 | |
| 2700 | [REMOTE PASS.FAIL] The count of remote password mismatches reached the upper limit. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always | Check for illegal accesses. If any illegal access is identified, take actions such as disabling communication of the connection. If no illegal access is identified, clear the error and perform the following. (Clearing the error also clears the count of remote password mismatches.) • Check if the remote password sent is correct. • Check if the remote password has been locked. • Check if concurrent access was made from multiple devices to one connection by UDP. • Check if the upper limit of the remote password mismatch count is too low. | p.939 |
| 2710 | [SNTP OPE.ERROR] Time setting failed when the programmable controller was powered ON or reset. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • When time setting function is executed | • Check if the time setting function is set up correctly. • Check if the specified SNTP server is operating normally, or if any failure has occurred on the network connected to the specified SNTP server computer. | p.939 |
| 3000 | [PARAMETER ERROR] In a multiple CPU system, the intelligent function module under control of another CPU is specified in the interrupt pointer setting of the PLC parameter. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At reset/STOP RUN/ At writing to progurammable controller | • Specify the head I/O number of the intelligent function module under control of the host CPU. • Delete the interrupt pointer setting of the parameter. | p.940 |
| 3001 | [PARAMETER ERROR] The parameter settings are corrupted. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At reset/STOP RUN/ At writing to progurammable controller | • Read the individual information of the error using the peripheral device, check the parameter item corresponding to the numerical value (parameter No.), and correct it. • Rewrite corrected parameters to the CPU module, reload the CPU power supply and/or reset the module. • If the same error occurs, it is thought to be a hardware error. (Contact your local Mitsubishi representative.) | p.941 |
| 3002 | [PARAMETER ERROR] When "Use the following file" is selected for the file register in the PLC file setting of the PLC parameter dialog box, the specified file does not exist although the file register capacity has been set. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At reset/STOP RUN/ At writing to progurammable controller | • Read the individual information of the error using the peripheral device, check the parameter item corresponding to the numerical value (parameter No.), and correct it. • Rewrite corrected parameters to the CPU module, reload the CPU power supply and/or reset the module. • If the same error occurs, it is thought to be a hardware error. (Contact your local Mitsubishi representative.) | p.941 |
| 3003 | [PARAMETER ERROR] The automatic refresh range of the multiple CPU system exceeded the file register capacity. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • When an END instruction executed | Change the file register file for the one refresh- enabled in the whole range. | p.942 |
| 3004 | [PARAMETER ERROR] The parameter file is incorrect. Alternatively, the contents of the file are not parameters. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controller | Check whether the parameter file version is .QPA, and check the file contents to be sure they are parameters. | p.942 |
| 3005 | [PARAMETER ERROR] The contents of the parameter are broken. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power-ON/ At reset/ STOP RUN | • Read the individual information of the error using the peripheral device, check the parameter item corresponding to the numerical value (parameter No.), and correct it. • Write the modified parameter items to the CPU module again, and power-on the Programmable Controller or reset the CPU module. • When the same error occurs again, the hardware is faulty. Contact your local Mitsubishi representative, explaining a detailed description of the problem. | p.942 |
| 3006 | [PARAMETER ERROR] • The high speed interrupt is set in a Q02CPU. • The high speed interrupt is set in a multiple CPU system. • The high speed interrupt is set when aQA1S6 B or QA6 B is used. • No module is installed at the I/O address designated by the high speed interrupt. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controller | • Delete the setting of the Q02CPU' s high speed interrupt. To use high speed interrupts, change the CPU module to one of the Q02H/Q06H/ Q12H/Q25HCPU. • To use a multiple CPU system, delete the setting of the high-speed interrupt. To use high speed interrupts, change the system to a single CPU system. • To use either the QA1S6 B or QA6 B, delete the setting of the high speed interrupt. To use high speed interrupts, do not use the QA1S6 B/ QA6 B. • Re-examine the I/O address designated by the high speed interrupt setting. | p.942 |
| 3007 | [PARAMETER ERROR] The parameter file in the drive specified as valid parameter drive by the DIP switches is inapplicable for the CPU module. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controller | Create parameters using GX Developer, and write them to the drive specified as valid parameter drive by the DIP switches. | p.943 |
| 3009 | [PARAMETER ERROR] In a multiple CPU system, the modules for AnS, A, Q2AS and QnA have been set to multiple control CPUs. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controller | Re-set the parameter I/O assignment to control them under one CPU module. (Change the parameters of all CPUs in the multiple CPU system.) | p.943 |
| 3010 | [PARAMETER ERROR] The parameter-set number of CPU modules differs from the actual number in a multiple CPU system. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controller | Match the number of (CPU modules in multiple CPU setting) - (CPUs set as empty in I/O assignment) with that of actually mounted CPU modules. | p.943 |
| 3012 | [PARAMETER ERROR] Multiple CPU setting or control CPU setting differs from that of the reference CPU settings in a multiple CPU system. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controller | Match the multiple CPU setting or control CPU setting in the PLC parameter with that of the reference CPU (CPU No.1) settings. | p.943 |
| 3013 | [PARAMETER ERROR] Multiple CPU auto refresh setting is any of the followings in a multiple CPU system. • When a bit device is specified as a refresh device, a number other than a multiple of 16 is specified for the refresh-starting device. • The device specified is other than the one that may be specified. • The number of send points is an odd number. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controller | Check the following in the multiple CPU auto refresh setting and make correction. • When specifying the bit device, specify a multiple of 16 for the refresh starting device. • Specify the device that may be specified for the refresh device. • Set the number of send points to an even number. | p.944 |
| 3014 | [PARAMETER ERROR] • In a multiple CPU system, the online module change parameter (multiple CPU system parameter) settings differ from those of the reference CPU. • In a multiple CPU system, the online module change setting is enabled although the CPU module mounted does not support online module chang parameter. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controller | • Match the online module change parameter with that of the reference CPU. • If the CPU module that does not support online module change is mounted, replace it with the CPU module that supports online module change. | p.944 |
| 3015 | [PARAMETER ERROR] In a multiple CPU system configuration, the CPU verified is different from the one set in the parameter setting. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number/CPU No. ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controller | Read the individual information of the error using the peripheral device, check the parameter item corresponding to the numerical value (parameter No./CPU No.) and parameter of target CPU, and correct them. | p.945 |
| 3016 | [PARAMETER ERROR] The CPU module incompatible with multiple CPU synchronized boot-up is set as the target for the synchronized boot-up in the [Multiple CPU synchronous startup setting]. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number/ CPU No. ■Diagnostic Timing • At power ON/ At reset/ At writing to progurammable controller | Delete the CPU module incompatible with multiple CPU synchronized boot-up from the setting. | p.945 |
| 3040 | [PARAMETER ERROR] The parameter file is damaged. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset | With GX Developer, write [PLC parameter/Network parameter/Remote password] to a valid drive then reload the power supply for system and/or reset the CPU module. If the same error occurs, it is thought to be hardware error. (Contact your local Mitsubishi representative.) | p.945 |
| 3041 | [PARAMETER ERROR] Parameter file of intelligent function module is damaged. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset | With GX Developer, write [Intelligent function module parameter] to a valid drive to write the parameters then reload the power supply for system and/or reset the CPU module. If the same error occurs, it is thought to be a hardware error. (Contact your local Mitsubishi representative.) | p.945 |
| 3042 | [PARAMETER ERROR] The system file that have stored the remote password setting information is damaged. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset | • With GX Developer, write [PLC parameter/ Network parameter/Remote password] to a valid drive then reload the power supply for system and/or reset the CPU module. If the same error occurs, it is thought to be a hardware error. (Contact your local Mitsubishi representative.) • When a valid drive for parameter is set to other than [program memory], set the parameter file (PARAM) at the boot file setting to be able to transmit to the program memory. With GX Developer, write [PLC parameter/ Network parameter/Remote password] to a valid drive then reload the power supply for system and/or reset the CPU module. If the same error occurs, it is thought to be hardware error. (Contact your local Mitsubishi representative.) | p.945 |
| 3100 | [LINK PARA. ERROR] In a multiple CPU system, the CC-Link IE controller network module controlled by another CPU is specified as the head I/O number of the CC-Link IE controller network module. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power-ON/ At reset/ STOP RUN | • Delete the network parameter of the CC-Link IE controller network module controlled by another CPU. • Change the setting to the head I/O number of the CC-Link IE controller network module controlled by host CPU. | p.946 |
| 3101 | [LINK PARA. ERROR] The link refresh range exceeded the file register capacity. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • When an END instruction executed | Change the file register file for the one that enables entire range refresh. | p.948 |
| 3102 | [LINK PARA. ERROR] A CC-Link IE controller network parameter error was detected. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At reset/STOP RUN | • Correct and write the network parameters. • If the error occurs after correction, it suggests a hardware fault. (Contact your local Mitsubishi representative.) | p.950 |
| 3103 | [LINK PARA. ERROR] In a multiple CPU system, Ethernet interface module under control of another station is specified to the start I/O number of the Ethernet network parameter. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At reset/STOP RUN | • Delete the Ethernet network parameter of Ethernet interface module under control of another station. • Change the setting to the start I/O number of Ethernet interface module under control of the host station. | p.951 |
| 3104 | [LINK PARA. ERROR] • The Ethernet, MELSECNET/H and MELSECNET/10 use the same network number. • The network number, station number or group number set in the network parameter is out of range. • The specified I/O number is outside the range of the used CPU module. • The Ethernet-specific parameter setting is not normal. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At reset/STOP RUN | • Correct and write the network parameters. • If the error occurs after correction, it suggests a hardware fault. (Contact your local Mitsubishi representative.) | p.951 |
| 3105 | [LINK PARA. ERROR] In a multiple CPU system, the CC-Link module under control of another station is specified as the head I/O number of the CC-Link network parameter. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At reset/STOP RUN | • Delete the CC-Link network parameter of the CC-Link module under control of another station. • Change the setting to the start I/O number of the CC-Link module under control of the host station. | p.952 |
| 3106 | [LINK PARA. ERROR] The CC-Link link refresh range exceeded the file register capacity. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • When an END instruction executed | Change the file register file for the one refresh- enabled in the whole range. | p.953 |
| 3107 | [LINK PARA. ERROR] • The CC-Link parameter setting is incorrect. • The set mode is not allowed for the version of the mounted CC-Link module. ■Collateral information • Common Information:File name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At reset/STOP RUN | Check the parameter setting. | p.953 |
| 3200 | [SFC PARA. ERROR] The parameter setting is illegal. • Though Block 0 was set to "Automatic start" in the SFC setting of the PLC parameter dialog box, Block 0 does not exist. ■Collateral information • Common Information:File name • Individual Information:Parameter number ■Diagnostic Timing • STOP RUN | Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. | p.953 |
| 3201 | [SFC PARA. ERROR] The block parameter setting is illegal. ■Collateral information • Common Information:File name • Individual Information:Parameter number ■Diagnostic Timing • STOP RUN | p.953 | |
| 3202 | [SFC PARA. ERROR] The number of step relays specified in the device setting of the PLC parameter dialog box is less than that used in the program. ■Collateral information • Common Information:File name • Individual Information:Parameter number ■Diagnostic Timing • STOP RUN | Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. | p.954 |
| 3203 | [SFC PARA. ERROR] The execution type of the SFC program specified in the program setting of the PLC parameter dialog box is other than scan execution. ■Collateral information • Common Information:File name • Individual Information:Parameter number ■Diagnostic Timing • At power-ON/ At reset/ STOP RUN*3 | p.954 | |
| 3300 | [SP. PARA ERROR] The start I/O number in the intelligent function module parameter set on GX Configurator differs from the actual I/O number. ■Collateral information • Common Information:File name • Individual Information:Parameter number*2 ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controller | Check the parameter setting. | p.954 |
| 3301 | [SP. PARA ERROR] • The refresh setting of the intelligent function module exceeded the file register capacity. • The intelligent function module set in GX Configurator differs from the actually mounted module. ■Collateral information • Common Information:File name • Individual Information:Parameter number*2 ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controller | • Change the file register file for the one which allows refresh in the whole range. • Check the parameter setting. | p.954 |
| 3302 | [SP. PARA ERROR] The intelligent function module's refresh parameter are abnormal. ■Collateral information • Common Information:File name • Individual Information:Parameter number*2 ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controller | Check the parameter setting. | p.955 |
| 3303 | [SP. PARA ERROR] In a multiple CPU system, the automatic refresh setting or other parameter setting was made to the intelligent function module under control of another station. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controller | • Delete the automatic refresh setting or other parameter setting of the intelligent function module under control of another CPU. • Change the setting to the automatic refresh setting or other parameter setting of the intelligent function module under control of the host CPU. | p.955 |
| 3400 | [REMOTE PASS. ERR.] The head I/O number of the target module of the remote password is set to other than 0H to 0FF0H. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset/STOP RUN | Change the head I/O number of the target module to be within the 0H to 0FF0H range. | p.955 |
| 3401 | [REMOTE PASS. ERR.] Position specified as the head I/O number of the remote password file is incorrect due to one of the following reasons: • Module is not loaded. • Other than a the intelligent function module (I/O module) • Intelligent function module other than serial communication module, modem interface module or Ethernet module • Serial communication module or Ethernet module of function version A The intelligent function module where remote password is available is not mounted. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset/STOP RUN | Mount serial communication module, modem interface module or Ethernet module of function version B or later in the position specified in the head I/O No. of the remote password file. | p.956 |
| 4000 | [INSTRCT. CODE ERR] • The program contains an instruction code that cannot be decoded. • An unusable instruction is included in the program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • At power ON/At reset/STOP RUN When instruction executed | Read the common information of the error using a peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. | p.957 |
| 4001 | [INSTRCT. CODE ERR] The program contains a dedicated instruction for SFC although it is not an SFC program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • At power ON/At reset/STOP RUN When instruction executed | p.957 | |
| 4002 | [INSTRCT. CODE ERR] • The name of dedicated instruction specified by the program is incorrect. • The dedicated instruction specified by the program cannot be executed by the specified module. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • At power ON/At reset/STOP RUN When instruction executed | p.957 | |
| 4003 | [INSTRCT. CODE ERR] The number of devices for the dedicated instruction specified by the program is incorrect. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • At power ON/At reset/STOP RUN When instruction executed | p.957 | |
| 4004 | [INSTRCT. CODE ERR] The device which cannot be used by the dedicated instruction specified by the program is specified. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • At power ON/At reset/STOP RUN When instruction executed | p.957 | |
| 4010 | [MISSING END INS.] There is no END (FEND) instruction in the program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • At power ON/At reset/STOP RUN | Read the common information of the error using a peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. | p.958 |
| 4020 | [CAN'T SET(P)] The total number of internal file pointers used by the program exceeds the number of internal file pointers set in the parameters. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • At power ON/At reset/STOP RUN | p.958 | |
| 4021 | [CAN'T SET(P)] • The common pointer Nos. assigned to files overlap. • The local pointer Nos. assigned to files overlap. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • At power ON/At reset/STOP RUN | p.958 | |
| 4030 | [CAN'T SET(I)] The allocation pointer Nos. assigned by files overlap. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • At power ON/At reset/STOP RUN | p.958 | |
| 4100 | [OPERATION ERROR] The instruction cannot process the contained data. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | p.958 | |
| 4101 | [OPERATION ERROR] • The number of setting data dealt with the instruction exceeds the applicable range. • The storage data and constant of the device specified by the instruction exceeds the applicable range. • When writing to the host CPU shared memory, the write prohibited area is specified for the write destination address. • The range of storage data of the device specified by the instruction is duplicated. • The device specified by the instruction exceeds the range of the number of device points. • The interrupt pointer No. specified by the instruction exceeds the applicable range. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. | p.959 |
| 4102 | [OPERATION ERROR] In a multiple CPU system, the link direct device (J \ ) was specified for the network module under control of another station. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | • Delete from the program the link direct device which specifies the network module under control of another CPU. • Using the link direct device, specify the network module under control of the host CPU. | p.960 |
| 4103 | [OPERATION ERROR] The configuration of the PID dedicated instruction is incorrect. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | p.960 | |
| 4105 | [OPERATION ERROR] PLOADP/PUNLOADP/PSWAPP instructins were executed while setting program memory check. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | • Delete the program memory check setting. • When using the program memory check, delete PLOADP/PUNLOADP/PSWAPP instructions. | p.960 |
| 4107 | [OPERATION ERROR] 33 or more multiple CPU dedicated instructions were executed from one CPU module. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | Using the multiple CPU dedicated instruction completion bit, provide interlocks to prevent one CPU module from executing 33 or more multiple CPU dedicated instructions. | p.960 |
| 4109 | [OPERATION ERROR] With high speed interrupt setting PR, PRC, UDCNT1, UDCNT2, PLSY or PWM instruction is executed. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | Delete the high-speed interrupt setting. When using high-speed interrupt, delete the PR, PRC, UDCNT1, UDCNT2, PLSY and PWM instructions. | p.961 |
| 4111 | [OPERATION ERROR] An attempt was made to perform write/read to/from the CPU shared memory write/read disable area of the host station CPU module with the instruction. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | Read the common information of the error using GX Developer, and check and correct the error step corresponding to that value (program error location). | p.961 |
| 4112 | [OPERATION ERROR] The CPU module that cannot be specified with the multiple CPU dedicated instruction was specified. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | p.961 | |
| 4113 | [OPERATION ERROR] • When the SP.DEVST instruction is executed, the number of writing to the standard ROM of the day exceeds the value specified by SD695. • The value outside the specified range is set to SD695. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | • Check that the number of execution of the SP.DEVST instruction is proper. • Execute the SP.DEVST instruction again the following day or later day. Or, arrange the value of SD695. • Correct the value of SD695 so that it does not exceed the range. | p.961 |
| 4120 | [OPERATION ERROR] Since the manual system switching enable flag (special register SM1592) is OFF, manual system switching cannot be executed by the control system switching instruction (SP. CONTSW). ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | To execute control system switching by the SP. CONTSW instruction, turn ON the manual system switching enable flag (special register SM1592). | p.961 |
| 4121 | [OPERATION ERROR] • In the separate mode, the control system switching instruction (SP. CONTSW) was executed in the standby system CPU module. • In the debug mode, the control system switching instruction (SP. CONTSW) was executed. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | • Reexamine the interlock signal for the SP. CONTSW instruction, and make sure that the SP. CONTSW instruction is executed in the control system only. (Since the SP. CONTSW instruction cannot be executed in the standby system, it is recommended to provide an interlock using the operation mode signal or like.) • As the SP. CONTSW instruction cannot be executed in the debug mode, reexamine the interlock signal related to the operation mode. | p.961 |
| 4122 | [OPERATION ERROR] • The dedicated instruction was executed to the module mounted on the extension base unit in the redundant system. • The instruction for accessing the intelligent function module mounted on the extension base unit from the standby system at separate mode was executed. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | • Delete the dedicated instruction for the module mounted on the extension base unit. • Delete the instruction for accessing the intelligent function module mounted on the extension base unit from the standby system. | p.962 |
| 4130 | [OPERATION ERROR] Instructions to read SFC step comment (S(P).SFCSCOMR) and SFC transition condition comment (S(P).SFCTCOMR) are executed for the comment file in ATA card ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When END/other instruction executed | Target comment file is to be other than the comment file in ATA card. | p.962 |
| 4131 | [OPERATION ERROR] The SFC program is started up by the instruction while the other SFC program has not yet been completed. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | Check the SFC program specified by the instruction. Or, check the executing status of the SFC program. | p.962 |
| 4140 | [OPERATION ERROR] Operation where the input data is special value ("-0", unnormalized number, nonnumeric, ) is performed. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | Read the common information of the error using the peripheral device, check the error step corresponding to the numerical value (program error part), and correct it. | p.962 |
| 4141 | [OPERATION ERROR] Overflow occurs at operation. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | Read the common information of the error using the peripheral device, check the error step corresponding to the numerical value (program error part), and correct it. | p.962 |
| 4200 | [FOR NEXT ERROR] No NEXT instruction was executed following the execution of a FOR instruction. Alternatively, there are fewer NEXT instructions than FOR instructions. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. | p.962 |
| 4201 | [FOR NEXT ERROR] A NEXT instruction was executed although no FOR instruction has been executed. Alternatively, there are more NEXT instructions than FOR instructions. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. | p.963 |
| 4202 | [FOR NEXT ERROR] More than 16 nesting levels are programmed. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | Keep nesting levels at 16 or under. | p.963 |
| 4203 | [FOR NEXT ERROR] A BREAK instruction was executed although no FOR instruction has been executed prior to that. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. | p.963 |
| 4210 | [CAN'T EXECUTE(P)] The CALL instruction is executed, but there is no subroutine at the specified pointer. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | p.963 | |
| 4211 | [CAN'T EXECUTE(P)] There was no RET instruction in the executed subroutine program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. | p.963 |
| 4212 | [CAN'T EXECUTE(P)] The RET instruction exists before the FEND instruction of the main routine program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | p.963 | |
| 4213 | [CAN'T EXECUTE(P)] More than 16 nesting levels are programmed. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | Keep nesting levels at 16 or under. | p.963 |
| 4220 | [CAN'T EXECUTE(I)] Though an interrupt input occurred, the corresponding interrupt pointer does not exist. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. | p.964 |
| 4221 | [CAN'T EXECUTE(I)] An IRET instruction does not exist in the executed interrupt program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | p.964 | |
| 4223 | [CAN'T EXECUTE(I)] The IRET instruction exists before the FEND instruction of the main routine program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | p.964 | |
| 4225 | [CAN'T EXECUTE(I)] The interrupt pointer for the module mounted on the extension base unit is set in the redundant system. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power-ON/At reset | Delete the setting of interrupt pointer for the module mounted on the extension base unit, since it cannot be used. | p.964 |
| 4230 | [INST. FORMAT ERR.] The number of CHK and CHKEND instructions is not equal. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. | p.964 |
| 4231 | [INST. FORMAT ERR.] The number of IX and IXEND instructions is not equal. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | p.964 | |
| 4235 | [INST. FORMAT ERR.] The configuration of the check conditions for the CHK instruction is incorrect. Alternatively, a CHK instruction has been used in a low speed execution type program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. | p.965 |
| 4350 | [MULTI-COM.ERROR] • The multiple CPU high-speed transmission dedicated instruction used in the program specifies the wrong CPU module. Or, the setting in the CPU module is incompatible with the multiple CPU high-speed transmission dedicated instruction. • The reserved CPU is specified. • The uninstalled CPU is specified. • The head I/O number of the target CPU/16 (n1) is outside the range of 3EH to 3E3H. • The CPU module where the instruction cannot be executed is specified. • The instruction is executed in a single CPU system. • The host CPU is specified. • The instruction is executed without setting the "Use multiple CPU high speed communication". ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | p.965 | |
| 4351 | [MULTI-COM.ERROR] • The multiple CPU high-speed transmission dedicated instruction specified by the program cannot be executed to the specified target CPU module. • The instruction name is wrong. • The instruction unsupported by the target CPU module is specified. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | p.965 | |
| 4352 | [MULTI-COM.ERROR] The number of devices for the multiple CPU high- speed transmission dedicated instruction specified by the program is wrong. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | p.965 | |
| 4353 | [MULTI-COM.ERROR] The device which cannot be used for the multiple CPU high-speed transmission dedicated instruction specified by the program is specified. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. | p.966 |
| 4354 | [MULTI-COM.ERROR] The character string which cannot be handled by the multiple CPU high-speed transmission dedicated instruction is specified. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | p.966 | |
| 4355 | [MULTI-COM.ERROR] The number of read/write data (number of request/ receive data) for the multiple CPU high-speed transmission dedicated instruction specified by the program is not valid. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | p.966 | |
| 4400 | [SFCP. CODE ERROR] No SFCP or SFCPEND instruction in SFC program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN | Write the program to the CPU module again using GX Developer. | p.966 |
| 4410 | [CAN'T SET(BL)] The block number designated by the SFC program exceeds the range. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN | p.966 | |
| 4411 | [CAN'T SET(BL)] Block number designations overlap in SFC program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN | p.966 | |
| 4420 | [CAN'T SET(S)] A step number designated in an SFC program exceeds the range. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN | p.966 | |
| 4421 | [CAN'T SET(S)] Total number of steps in all SFC programs exceed the maximum. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN | Write the program to the CPU module again using GX Developer. | p.967 |
| 4422 | [CAN'T SET(S)] Step number designations overlap in SFC program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN | p.967 | |
| 4423 | [CAN'T SET(S)] The total number of (maximum step No.+1) of each block exceeds the total number of step relays. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN | Correct the total number of step relays so that it does not exceed the total number of (maximum step No.+1) of each block. | p.967 |
| 4430 | [SFC EXE. ERROR] The SFC program cannot be executed. • The data of the block data setting is illegal. • The SFC data device of the block data setting is beyond the device setting range set in the PLC parameter. ■Collateral information • Common Information:File name/Drive name • Individual Information:– ■Diagnostic Timing • STOP RUN | • Write the program to the CPU module again using GX Developer. • After correcting the setting of the SFC data device, write it to the CPU module. • After correcting the device setting range set in the PLC parameter, write it to the CPU module. | p.967 |
| 4431 | [SFC EXE. ERROR] The SFC program cannot be executed. • The block parameter setting is abnormal. ■Collateral information • Common Information:File name/Drive name • Individual Information:– ■Diagnostic Timing • STOP RUN | Write the program to the CPU module again using GX Developer. | p.967 |
| 4432 | [SFC EXE. ERROR] The SFC program cannot be executed. • The structure of the SFC program is illegal. ■Collateral information • Common Information:File name/Drive name • Individual Information:– ■Diagnostic Timing • STOP RUN | p.967 | |
| 4500 | [SFCP. FORMAT ERR.] The numbers of BLOCK and BEND instructions in an SFC program are not equal. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN | Write the program to the CPU module again using the peripheral device. | p.968 |
| 4501 | [SFCP. FORMAT ERR.] The configuration of the STEP* to TRAN* to TSET to SEND instructions in the SFC program is incorrect. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN | p.968 | |
| 4502 | [SFCP. FORMAT ERR.] The structure of the SFC program is illegal. • STEPI* instruction does not exist in the block of the SFC program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN | p.968 | |
| 4503 | [SFCP. FORMAT ERR.] The structure of the SFC program is illegal. • The step specified in the TSET instruction does not exist. • In jump transition, the host step number was specified as the destination step number. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN | • Write the program to the CPU module again using GX Developer. • Read the common information of the error using GX Developer, and check and correct the error step corresponding to that value (program error location). | p.968 |
| 4504 | [SFCP. FORMAT ERR.] The structure of the SFC program is illegal. • The step specified in the TAND instruction does not exist. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN | Write the program to the CPU module again using GX Developer. | p.968 |
| 4505 | [SFCP. FORMAT ERR.] The structure of the SFC program is illegal. • In the operation output of a step, the SET Sn/ BLmSn or RST Sn/BLmSn instruction was specified for the host step. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN | Read the common information of the error using GX Developer, and check and correct the error step corresponding to that value (program error location). | p.969 |
| 4506 | [SFCP. FORMAT ERR.] The structure of the SFC program is illegal. • In a reset step, the host step number was specified as the destination step. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN | p.969 | |
| 4600 | [SFCP. OPE. ERROR] The SFC program contains data that cannot be processed. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | Read common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. | p.969 |
| 4601 | [SFCP. OPE. ERROR] Exceeds device range that can be designated by the SFC program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | p.969 | |
| 4602 | [SFCP. OPE. ERROR] The START instruction in an SFC program is preceded by an END instruction. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | p.969 | |
| 4610 | [SFCP. EXE. ERROR] The active step information at presumptive start of the SFC program is incorrect. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN | Read common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. The program is automatically subjected to an initial start. | p.970 |
| 4611 | [SFCP. EXE. ERROR] Key-switch was reset during RUN when presumptive start was designated for SFC program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN | p.970 | |
| 4620 | [BLOCK EXE. ERROR] Startup was executed at a block in the SFC program that was already started up. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | Read common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. | p.970 |
| 4621 | [BLOCK EXE. ERROR] Startup was attempted at a block that does not exist in the SFC program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | • Read the common information of the error using GX Developer, and check and correct the error step corresponding to that value (program error location). • Turn ON if the special relay SM321 is OFF. | p.970 |
| 4630 | [STEP EXE. ERROR] Startup was executed at a block in the SFC program that was already started up. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | Read common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. | p.970 |
| 4631 | [STEP EXE. ERROR] • Startup was attempted at the step that does not exist in the SFC program. Or, the step that does not exist in the SFC program was specified for end. • Forced transition was executed based on the transition condition that does not exit in the SFC program. Or, the transition condition for forced transition that does not exit in the SFC program was canceled. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | • Read the common information of the error using the peripheral device, and check and correct the error step corresponding to that value (program error location). • Turn ON if the special relay SM321 is OFF. | p.971 |
| 4632 | [STEP EXE. ERROR] There were too many simultaneous active steps in blocks that can be designated by the SFC program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | Read common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. | p.971 |
| 4633 | [STEP EXE. ERROR] There were too many simultaneous active steps in all blocks that can be designated. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed | p.971 | |
| 5000 | [WDT ERROR] • The scan time of the initial execution type program exceeded the initial execution monitoring time specified in the PLC RAS setting of the PLC parameter. ■Collateral information • Common Information:Time (value set) • Individual Information:Time (value actually measured) ■Diagnostic Timing • Always | • Read the individual information of the error from the peripheral device, check its value (time), and shorten the scan time. • Change the initial execution monitoring time or the WDT value in the PLC RAS setting of the PLC parameter. • Resolve the endless loop caused by jump transition. | p.972 |
| 5001 | [WDT ERROR] • The scan time of the program exceeded the WDT value specified in the PLC RAS setting of the PLC parameter. ■Collateral information • Common Information:Time (value set) • Individual Information:Time (value actually measured) ■Diagnostic Timing • Always | • Read the individual information of the error using the peripheral device, check its value (time), and shorten the scan time. • Change the initial execution monitoring time or the WDT value in the PLC RAS setting of the PLC parameter. • Resolve the endless loop caused by jump transition. | p.972 |
| 5010 | [PRG. TIME OVER] The program scan time exceeded the constant scan setting time specified in the PLC RAS setting of the PLC parameter. ■Collateral information • Common Information:Time (value set) • Individual Information:Time (value actually measured) ■Diagnostic Timing • Always | • Review the constant scan setting time. • Review the constant scan setting time and low speed program execution time in the PLC parameter so that the excess time of constant scan can be fully secured. | p.973 |
| 5011 | [PRG. TIME OVER] The scan time of the low speed execution type program exceeded the low speed execution watch time specified in the PLC RAS setting of the PLC parameter dialog box. ■Collateral information • Common Information:Time (value set) • Individual Information:Time (value actually measured) ■Diagnostic Timing • Always | Read the individual information of the error using the peripheral device, check the numerical value (time) there, and shorten scan time if necessary. Change the low speed execution watch time in the PLC RAS setting of the PLC parameter dialog box. | p.973 |
| 6000 | [FILE DIFF.] In a redundant system, the control system and standby system do not have the same programs and parameters. The file type detected as different between the two systems can be checked by the file name of the error common information. • The program is different. (File name = ********.QPG) • The PLC parameters/network parameters/ redundant parameters are different. (File name = PARAM.QPA) • The remote password is different. (File name = PARAM.QPA) • The intelligent function module parameters are different. (File name = IPARAM.QPA) • The device initial values are different. (File name = ********.QDI) • The capacity of each write destination within the CPU for online pchange of multiple program blocks is different. (File name = MBOC.QMB) (This can be detected from the standby system of the redundant system.) ■Collateral information • Common Information:File name • Individual Information:– ■Diagnostic Timing • At power ON/At reset/ At tracking cable connection/At changing to backup mode/At completion of write during RUN/ At system switching/At switching both systems into RUN | • Match the programs and parameters of the control system and standby system. • Verify the systems by either of the following procedures 1), 2) to clarify the differences between the files of the two systems, then correct a wrong file, and execute “Write to PLC“ again. 1) After reading the programs/parameters of System A using GX Developer or PX Developer, verify them with those of System B. 2) Verify the programs/parameters of GX Developer or PX Developer saved in the offline environment with those written to the CPU modules of both systems. • When the capacity of each write destination within the CPU for online change of multiple program blocks is different between the two systems, take corrective action 1) or 2). 1) Using the memory copy from control system to standby system, copy the program memory from the control system to the standby system. 2) Format the CPU module program memories of both systems. (For the capacity of each write destination within the CPU for online change of multiple program blocks, set the same value to both systems.) | p.974 |
| 6001 | [FILE DIFF.] In a redundant system, the valid parameter drive settings (SW2, SW3) made by the DIP switches are not the same. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset/At tracking cable connection/At operation mode change | Match the valid parameter drive settings (SW2, SW3) by the DIP switches of the control system and standby system. | p.974 |
| SW3 | by the DIP switches of the control system | p.974 | |
| 6010 | [OPE. MODE DIFF.] The operational status of the control system and standby system in the redundant system is not the same. (This can be detected from the standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always | Synchronise the operation statuses of the control system and standby system. | p.975 |
| 6020 | [OPE. MODE DIFF.] At power ON/reset, the RUN/STOP switch settings of the control system and standby system are not the same in a redundant system. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset | Set the RUN/STOP switches of the control system and standby system to the same setting. | p.975 |
| 6030 | [UNIT LAY. DIFF.] • In a redundant system, the module configuration differs between the control system and standby system. • The network module mode setting differs between the two systems. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:Module No. • Individual Information:– ■Diagnostic Timing • At power ON/At reset/At tracking cable connection/At operation mode change | • Match the module configurations of the control system and standby system. • In the redundant setting of the network parameter dialog box, match the mode setting of System B to that of System A. | p.975 |
| 6035 | [UNIT LAY. DIFF.] In a redundant system, the CPU module model name differs between the control system and standby system. (This can be detected from the standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset/At tracking cable connection/At operation mode change | Match the model names of the control system and standby system. | p.975 |
| 6036 | [UNIT LAY. DIFF.] A difference in the remote I/O configuration of the MELSECNET/H multiplexed remote I/O network between the control system and standby system of a redundant system was detected. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:Module No. • Individual Information:– ■Diagnostic Timing • Always | Check the network cables of the MELSECNET/H multiplexed remote I/O network for disconnection. | p.976 |
| 6040 | [CARD TYPE DIFF.] In a redundant system, the memory card installation status (installed/not installed) differs between the control system and standby system. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset | Match the memory card installation statuses (set/ not set) of the control system and standby system. | p.976 |
| 6041 | [CARD TYPE DIFF.] In a redundant system, the memory card type differs between the control system and standby system. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset | Match the memory card types of the control system and standby system. | p.976 |
| 6050 | [CAN'T EXE. MODE] The function inexecutable in the debug mode or operation mode (backup/separate mode) was executed. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always | Execute the function executable in the debug mode or operation mode (backup/separate mode). | p.976 |
| 6060 | [CPU MODE DIFF.] In a redundant system, the operation mode (backup/separate) differs between the control system and standby system. (This can be detected from the standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset/At tracking cable connection | Match the operation modes of the control system and standby system. | p.976 |
| 6061 | [CPU MODE DIFF.] In a redundant system, the operation mode (backup/separate) differs between the control system and standby system. (This can be detected from the standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • When an END instruction executed | Match the operation modes of the control system and standby system. | p.977 |
| 6062 | [CPU MODE DIFF.] Both System A and B are in the same system status (control system). (This can be detected from the system B of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset/At tracking cable connection | Power the CPU module (System B) which resulted in a stop error, OFF and then ON. | p.977 |
| 6100 | [TRK. TRANS. ERR.] • An error (e.g. retry limit exceeded) occurred in tracking data transmission. (This error may be caused by tracking cable removal or other system power-off (including reset).) • The error occurred at a startup since the redundant system startup procedure was not followed. ■Collateral information • Common Information:Tracking transmission data classification • Individual Information:– ■Diagnostic Timing • Always | • Check the CPU module or tracking cable. If the error still occurs, this indicates the CPU module or tracking cable is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) • Confirm the redundant system startup procedure, and execute a startup again. | p.977 |
| 6101 | [TRK. TRANS. ERR.] • A timeout error occurred in tracking (data transmission). (This error may be caused by tracking cable removal or other system power-off (including reset).) • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:Tracking transmission data classification • Individual Information:– ■Diagnostic Timing • Always | p.977 | |
| 6102 | [TRK. TRANS. ERR.] A data sum value error occurred in tracking (data reception). (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always | • Check the CPU module or tracking cable. If the error still occurs, this indicates the CPU module or tracking cable is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) • Confirm the redundant system startup procedure, and execute a startup again. | p.978 |
| 6103 | [TRK. TRANS. ERR.] • A data error (other than sum value error) occurred in tracking (data reception). (This error may be caused by tracking cable removal or other system power-off (including reset).) • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always | p.978 | |
| 6105 | [TRK. TRANS. ERR.] • An error (e.g. retry limit exceeded) occurred in tracking (data transmission). (This error may be caused by tracking cable removal or other system power-off (including reset).) • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:Tracking transmission data classification • Individual Information:– ■Diagnostic Timing • Always | p.978 | |
| 6106 | [TRK. TRANS. ERR.] • A timeout error occurred in tracking (data transmission). (This error may be caused by tracking cable removal or other system power-off (including reset).) • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:Tracking transmission data classification • Individual Information:– ■Diagnostic Timing • Always | • Check the CPU module or tracking cable. If the error still occurs, this indicates the CPU module or tracking cable is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) • Confirm the redundant system startup procedure, and execute a startup again. | p.978 |
| 6107 | [TRK. TRANS. ERR.] A data sum value error occurred in tracking (data reception). (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always | • Check the CPU module or tracking cable. If the error still occurs, this indicates the CPU module or tracking cable is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) • Confirm the redundant system startup procedure, and execute a startup again. | p.979 |
| 6108 | [TRK. TRANS. ERR.] • A data error (other than sum value error) occurred in tracking (data reception). (This error may be caused by tracking cable removal or other system power-off (including reset).) • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always | p.979 | |
| 6110 | [TRK. SIZE ERROR] The tracking capacity exceeded the allowed range. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:Tracking capacity excess error factor • Individual Information:– ■Diagnostic Timing • When an END instruction executed | Reexamine the tracking capacity. | p.979 |
| 6111 | [TRK. SIZE ERROR] The control system does not have enough file register capacity for the file registers specified in the tracking settings. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • When an END instruction executed | Switch to the file registers of which capacity is greater than the file registers specified in the tracking settings. | p.979 |
| 6112 | [TRK. SIZE ERROR] File registers greater than those of the standby system were tracked and transmitted from the control system. (This can be detected from the standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • When an END instruction executed | Switch to the file registers of which capacity is greater than the file registers specified in the tracking settings. | p.979 |
| 6120 | [TRK. CABLE ERR.] • A start was made without the tracking cable being connected. • A start was made with the tracking cable faulty. • As the tracking hardware on the CPU module side was faulty, communication with the other system could not be made via the tracking cable. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset | Make a start after connecting the tracking cable. If the same error still occurs, this indicates the tracking cable or CPU module side tracking transmission hardware is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) | p.980 |
| 6130 | [TRK. DISCONNECT] • The tracking cable was removed. • The tracking cable became faulty while the CPU module is running. • The CPU module side tracking hardware became faulty. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always | • If the tracking cable was removed, connect the tracking cable to the connectors of the CPU modules of the two systems. • When the error is not resolved after connecting the tracking cable to the connectors of the CPU modules of the two systems and resetting the error, the tracking cable or CPU module side tracking hardware is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) | p.980 |
| 6140 | [TRK.INIT. ERROR] • The other system did not respond during initial communication at power ON/reset. • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset | • Power the corresponding CPU module OFF and then ON again, or reset it and then unreset. If the same error still occurs, this indicates the CPU module is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) • Confirm the redundant system startup procedure, and execute a startup again. | p.980 |
| 6200 | [CONTROL EXE.] The standby system has been switched to the control system in a redundant system. (Detected by the CPU that was switched from the standby system to the control system) Since this error code does not indicate the error information of the CPU module but indicates its status, the error code and error information are not stored into SD0 to 26, but are stored into the error log every system switching. (Check the error information by reading the error log using GX Developer.) ■Collateral information • Common Information:Reason(s) for system switching • Individual Information:– ■Diagnostic Timing • Always | – | p.980 |
| 6210 | [STANDBY] The control system has been switched to the standby system in a redundant system. (Detected by the CPU that was switched from the control system to the standby system) Since this error code does not indicate the error information of the CPU module but indicates its status, the error code and error information are not stored into SD0 to 26, but are stored into the error log every system switching. (Check the error information by reading the error log using GX Developer.) ■Collateral information • Common Information:Reason(s) for system switching • Individual Information:– ■Diagnostic Timing • Always | – | p.981 |
| 6220 | [CAN'T SWITCH] System switching cannot be executed due to standby system error/ tracking cable error/ online module change in execution at separate mode. Causes for switching system at control system are as follows: • System switching by SP. CONTSW instruction • System switching request from network module ■Collateral information • Common Information:Reason(s) for system switching • Individual Information:Reason(s) for system switching failure ■Diagnostic Timing • At switching execution | • Check the status of the standby system and resolve the error. • Complete the online module change. | p.981 |
| 6300 | [STANDBY SYS. DOWN] Any of the following errors was detected in the backup mode. • The standby system has not started up in the redundant system. • The standby system has developed a stop error in the redundant system. • The CPU module in the debug mode was connected to the operating control system. (This can be detected from the control system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always | • Check whether the standby system is on or not, and if it is not on, power it on. • Check whether the standby system has been reset or not, and if it has been reset, unreset it. • Check whether the standby system has developed a stop error or not, and if it has developed the error, remove the error factor and restart it. • When the CPU module in the debug mode was connected to the control system operating in the backup mode, make connection so that the control system and standby system are combined correctly. | p.981 |
| 6310 | [CONTROL SYS. DOWN] Any of the following errors was detected in the backup mode. • The control system has not started up in the redundant system. • The control system has developed a stop error in the redundant system. • The CPU module in the debug mode was connected to the operating standby system. • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always | • The standby system exists but the control system does not exist. • Check whether the system other than the standby system is on or not, and if it is not on, power it on. • Check whether the system other than the standby system has been reset or not, and if it is has been reset, unreset it. • Check whether the system other than the standby system has developed a stop error or not, and if has developed the error, remove the error factor, set the control system and standby system to the same operating status, and restart. • When the CPU module in the debug mode was connected to the control system operating in the backup mode, make connection so that the control system and control system are combined correctly. • Confirm the redundant system startup procedure, and execute a startup again. | p.982 |
| 6311 | [CONTROL SYS. DOWN] • As consistency check data has not transmitted from the control system in a redundant system, the other system cannot start as a standby system. • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset | • Replace the tracking cable. If the same error still occurs, this indicates the CPU module is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) • Confirm the redundant system startup procedure, and execute a startup again. | p.982 |
| 6313 | [CONTROL SYS. DOWN] The control system detected the error of the system configuration and informed it to the standby system (host system) in the redundant system. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset | Restart the system after checking that the connection between base unit and the system configuration (type/number/parameter of module) are correct. | p.982 |
| 6400 | [PRG. MEM. CLEAR] The memory copy from control system to standby system was executed, and the program memory was cleared. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At execution of the memory copy from control system to standby system | After the memory copy from control system to standby system is completed, switch power OFF and then ON, or make a reset. | p.982 |
| 6410 | [MEM.COPY EXE] The memory copy from control system to standby system was executed. (This can be detected from the control system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At execution of the function of copying memory from control system to standby system | – | p.983 |
| 6500 | [TRK. PARA. ERROR] The file register file specified in the tracking setting of the PLC parameter dialog box does not exist. ■Collateral information • Common Information:File name/Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At reset | Read the individual information of the error using GX Developer, and check and correct the drive name and file name. Create the specified file. | p.983 |
| 6501 | [TRK. PARA. ERROR] The file register range specified in the device detail setting of the tracking setting of the PLC parameter dialog box exceeded the specified file register file capacity. ■Collateral information • Common Information:File name/Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At reset | Read the individual information of the error using GX Developer, and increase the file register capacity. | p.983 |
| 7000 | [MULTI CPU DOWN] • In the operating mode of a multiple CPU system, a CPU error occurred at the CPU where "All station stop by stop error of CPU " was selected. • In a multiple CPU system, a CPU module incompatible with the multiple CPU system was mounted. • CPU modules other than CPU No.1 were removed from the base unit in operation, or reset. ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • Always | • Read the individual information of the error using GX Developer, identify the error of the CPU module, and remove the error. • Remove the CPU module incompatible with the multiple CPU system from the main base unit. • Check the mounting status of CPU modules other than CPU No.1 and whether the CPU modules were reset. | p.984 |
| 7002 | [MULTI CPU DOWN] • There is no response from the target CPU module in a multiple CPU system during initial communication. • In a multiple CPU system, a CPU module incompatible with the multiple CPU system was mounted. ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset | • Reset the CPU module and RUN it again. If the same error is displayed again, this suggests the hardware fault of any of the CPU modules. (Contact your local Mitsubishi representative.) • Remove the CPU module incompatible with the multiple CPU system from the main base unit. Or, replace the CPU module incompatible with the multiple CPU system with the compatible one. | p.984 |
| 7003 | [MULTI CPU DOWN] There is no response from the target CPU module in a multiple CPU system at initial communication stage. ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset | Reset the CPU module and RUN it again. If the same error is displayed again, this suggests the hardware fault of any of the CPU modules. (Contact your local Mitsubishi representative.) | p.984 |
| 7004 | [MULTI CPU DOWN] In a multiple CPU system, a data error occurred in communication between the CPU modules. ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • Always | • Check the system configuration to see if modules are mounted in excess of the number of I/O points. • When there are no problems in the system configuration, this indicates the CPU module hardware is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) | p.985 |
| 7010 | [MULTI EXE. ERROR] • In a multiple CPU system, a faulty CPU module was mounted. • In a multiple CPU system, a CPU module incompatible with the multiple CPU system was mounted. (The CPU module compatible with the multiple CPU system was used to detect an error.) • In a multiple CPU system, any of the CPU No. 2 to 4 was reset with power ON. (The CPU whose reset state was cancelled was used to detect an error.) ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset | • Read the individual information of the error using GX Developer, and replace the faulty CPU module. • Replace the CPU module with the one compatible with the multiple CPU system. • Do not reset any of the No. 2 to 4 CPU modules. • Reset CPU No. 1 and restart the multiple CPU system. | p.985 |
| 7011 | [MULTI EXE. ERROR] Either of the following settings was made in a multiple CPU system. • Multiple CPU automatic refresh setting was made for the inapplicable CPU module. • "I/O sharing when using multiple CPUs" setting was made for the inapplicable CPU module. ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset | • Correct the multiple CPU automatic refresh setting. • Correct the "I/O sharing when using multiple CPUs" setting. | p.986 |
| 7013 | [MULTI EXE. ERROR] The Q172(H)CPU(N) or Q173(H)CPU(N) is mounted to the CPU slot or slots 0 to 2. (The module may break down.) ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset | • Check the QCPU and Motion CPU that can be used in a multiple CPU system, and change the system configuration. • Remove the Motion CPU incompatible with the multiple CPU system. | p.986 |
| 7020 | [MULTI CPU ERROR] In the operating mode of a multiple CPU system, an error occurred in the CPU where "system stop" was not selected. (The CPU module where no error occurred was used to detect an error.) ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • Always | Read the individual information of the error using the peripheral device, check the error of the CPU module resulting in CPU module fault, and remove the error. | p.986 |
| 7030 | [CPU LAY. ERROR] An assignment error occurred in the CPU- mountable slot (CPU slot, I/O slot 0, 1) in excess of the number of CPU modules specified in the multiple CPU setting of the PLC parameter dialog box. ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset | • Set the same value to the number of CPU modules specified in the multiple CPU setting of the PLC parameter dialog box and the number of mounted CPU modules (including CPU (empty)). • Make the type specified in the I/O assignment setting of the PLC parameter dialog box consistent with the CPU module configuration. | p.986 |
| 7031 | [CPU LAY. ERROR] An assignment error occurred within the range of the number of CPUs specified in the multiple CPU setting of the PLC parameter dialog box. ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset | • Set the same value to the number of CPU modules specified in the multiple CPU setting of the PLC parameter dialog box and the number of mounted CPU modules (including CPU (empty)). • Make the type specified in the I/O assignment setting of the PLC parameter dialog box consistent with the CPU module configuration. | p.987 |
| 7032 | [CPU LAY. ERROR] • The number of CPU modules mounted in a multiple CPU system is wrong. ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset | Configure a system so that the number of mountable modules of each CPU module does not exceed the maximum number of mountable modules specified in the specification. | p.987 |
| 7035 | [CPU LAY. ERROR] The CPU module has been mounted on the inapplicable slot. ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset | Mount the CPU module on the applicable slot. | p.987 |
| 7036 | [CPU RAY ERROR] The host CPU No. set by the multiple CPU setting and the host CPU No. determined by the mounting position of the CPU module are not the same. ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset | • Mount the mounting slot of the CPU module correctly. • Correct the host CPU No. set by the multiple CPU setting to the CPU No. determined by the mounting position of the CPU module. | p.987 |
| 8031 | [INCORRECT FILE] The error of stored file (enabled parameter file) is detected. ■Collateral information • Common Information:– • Individual Information:File diagnostic information ■Diagnostic Timing • At power-On/ • At reset/ • STOP RUN/At writing to progurammable controller | Write the file shown as SD17 to SD22 of individual information to the drive shown as SD16(L) of individual information, and turn ON from OFF the power supply of the CPU module or cancel the reset. If the same error is displayed again, the CPU module has hardware failure. Contact your local Mitsubishi representative, explaining a detailed description of the problem. | p.987 |
| 9000 | [F**** ] Annunciator (F) was set ON ■Collateral information • Common Information:Program error location • Individual Information:Annunciator number ■Diagnostic Timing • When instruction executed | Read the individual information of the error using the peripheral device, and check the program corresponding to the numerical value (annunciator number). | p.987 |
| 9010 | [<CHK>ERR ***-***] Error detected by the CHK instruction. ■Collateral information • Common Information:Program error location • Individual Information:Failure No. ■Diagnostic Timing • When instruction executed | Read the individual information of the error using the peripheral device, and check the program corresponding to the numerical value (error number) there. | p.988 |
| 9020 | [BOOT OK] Storage of data onto ROM was completed normally in automatic write to standard ROM. (BOOT LED also flickers.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset | Use the DIP switches to set the valid parameter drive to the standard ROM. Then, switch power on again, and perform boot operation from the standard ROM. | p.988 |
| 10000 | [CONT. UNIT ERROR] In the multiple CPU system, an error occurred in the CPU module other than the Process CPU/High Performance model QCPU. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always | Check the details of the generated error by connecting to the corresponding CPU module using GX Developer. | p.988 |
Owners and our team usually reply within a day — and your question helps the next person too.
Be the first to ask — other owners or our team will answer.