EasyManua.ls Logo

Mitsubishi MELSEC QCPU User Manual

Mitsubishi MELSEC QCPU
285 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #161 background imageLoading...
Page #161 background image
6 - 10 6 - 10
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
[Operation Errors]
(1) In the following cases an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• The code “00H” or non-matching does not exist within the relevant device range following the
device number designated by
S1
or
S2
. (Error code: 4101)
POINT
At the same time that it is conducting a character string comparison, character string data
comparison instruction also checks the device range.
For this reason, even in cases where the character string exceeds the device range, the
character string data is compared. If character non-matching is detected within the device
range at this time, the comparison operation results are output without returning an operation
error.
M0
D10D12287$
"B" "A"
D12287
"C"
00H
"Z" "A"
D11
"C"
00H
W0
D10
Example
S2
S1
data
S1
data
S2
In the example shown above, the
S1
character string exceeds the device range, but because
its second character is different from that of
S2
, the comparison result is "
S1
does not equal
S2
", and the operation result is non-continuity.
In this case, because the non-continuity detection is for D12287 (inside the device range),
there will be no operation error returned.
[Program Example]
(1) The following program compares character strings stored following D0 and characters
following D10.
[Ladder Mode] [List Mode]
Steps Instruction
Device
(2) The following program compares the character string "ABCDEF" with the character string
stored following D10.
[Ladder Mode] [List Mode]
Steps Instruction
Device
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC QCPU and is the answer not in the manual?

Mitsubishi MELSEC QCPU Specifications

General IconGeneral
ModelMELSEC QCPU
SeriesQ Series
CategoryController
MemoryVaries depending on CPU type
Program MemoryVaries depending on CPU type (e.g., 32K steps to 260K steps or more)
Data MemoryVaries depending on CPU type (e.g., 64K words to 512K words)
I/O CapacityUp to 4096 points (varies by model)
Number of I/O PointsUp to 4096 points
CommunicationEthernet
Programming LanguageLadder Logic, Instruction List, SFC, ST, Function Block Diagram
Program CapacityVaries depending on CPU type (e.g., 32K steps to 260K steps or more)
Power Supply24V DC or 100-240V AC (depending on model)
Operating Temperature0°C to 55°C
Storage Temperature-25°C to 75°C
Humidity5 to 95% RH, non-condensing
Shock Resistance147 m/s2, 3 times in X, Y, and Z directions

Summary

SAFETY PRECAUTIONS

REVISIONS

GENERAL DESCRIPTION

Related Programming Manuals

Lists other relevant programming manuals.

Abbreviation and Generic Name

Explains abbreviations and generic names used.

INSTRUCTION TABLES

Types of Instructions

Categorizes the types of CPU module instructions.

How to Read Instruction Tables

Explains the format and conventions of instruction tables.

Sequence Instructions

Instructions for relay control ladders.

Basic Instructions

Common operations like comparison and arithmetic.

Application Instructions

Instructions for specific applications like logical operations.

Instructions for Data Link

Instructions for data communication between stations.

QCPU Instructions

Instructions specific to QCPU modules.

Redundant System Instructions (For Q4ARCPU)

Instructions for redundant system configuration.

CONFIGURATION OF INSTRUCTIONS

Configuration of Instructions

Explains the structure of CPU module instructions.

Designating Data

Describes how to designate data types for instructions.

Index Modification

Explains how to use index registers for indirect addressing.

Indirect Designation

Explains how to use indirect addressing for devices.

Subset Processing

Explains subset processing for performance improvement.

Cautions on Programming (Operation Errors)

Describes programming cautions and potential operation errors.

Conditions for Execution of Instructions

Explains different execution conditions for instructions.

Counting Step Number

Explains how step numbers are calculated for instructions.

Operation when OUT, SET/RST, or PLS/PLF Instructions Use the Same Device

Explains behavior when multiple instructions use the same device.

HOW TO READ INSTRUCTIONS

How to Read Instructions

Explains how to read instruction descriptions.

SEQUENCE INSTRUCTIONS

Contact Instructions

Instructions for operation start and connections.

Connection Instructions

Instructions for connecting ladder blocks.

Operation results push, read, pop (MPS, MRD, MPP)

Instructions for managing operation results.

Timers (OUT T, OUTH T)

Instructions for low and high speed timers.

Counters (OUT C)

Instructions for up/down counters.

Resetting devices (except for annunciators) (RST)

Instruction to reset devices OFF.

Leading edge and trailing edge output (PLS, PLF)

Instructions for pulse output on leading/trailing edges.

Shift Instruction

Instructions for shifting bit devices.

Master Control Instructions

Instructions for master control of program execution.

Termination Instructions

Instructions to terminate program execution.

Other Instructions

Miscellaneous instructions.

BASIC INSTRUCTIONS

Comparison Operation Instruction

Instructions for comparing data.

Arithmetic Operation Instructions

Instructions for addition, subtraction, multiplication, division.

Data Conversion Instructions

Instructions for converting data formats.

Data Transfer Instructions

Instructions for moving data.

Program Execution Control Instructions

Instructions to control program execution flow.

Other Convenient Instructions

Various useful instructions.

APPENDICES

APPENDIX1 OPERATION PROCESSING TIME

Details processing times for various CPU modules.

APPENDIX 2 COMPARISON OF PERFORMANCE BETWEEN CPUs

Compares performance across different CPU types.

APPENDIX 3 SPECIAL RELAY LIST

Lists and explains special relays.

APPENDIX 4 SPECIAL REGISTER LIST

Lists and explains special registers.

APPENDIX 5 APPLICATION PROGRAM EXAMPLES

Provides examples of application programs.

Related product manuals