Mitsubishi QD51-R24 User Manual
Mitsubishi QD51-R24 User Manual

Mitsubishi QD51-R24 User Manual

Melesec q series
Hide thumbs Also See for QD51-R24:
Table of Contents

Advertisement

Advertisement

Table of Contents
loading

Summary of Contents for Mitsubishi QD51-R24

  • Page 3: Safety Precautions

    • SAFETY PRECAUTIONS • (Always read these instructions before using this equipment.) Before using this product, please read this manual and the relevant manuals introduced in this manual carefully and pay full attention to safety to handle the product correctly. The instructions given in this manual are concerned with this product.
  • Page 4 [Disposal Precautions] CAUTION • Do not bunch the control wires or communication cables with the main circuit or power wires, or install them close to each other. They should be installed 100mm (3.94 in.) or more away from each other. Not doing so could result in noise that would cause erroneous operation.
  • Page 5 [Wiring Precautions] CAUTION • When turning on the power supply or operating the module after installation or wiring work, be sure that the module's terminal covers are correctly attached. Not attaching the terminal cover could result in electric shock. • External connections shall be crimped or pressure welded with the specified tools, or correctly soldered.
  • Page 6 [Startup and Maintenance precautions] CAUTION • Do not disassemble or modify the modules. Doing so could cause trouble, erroneous operation, injury, or fire. • Completely turn off the externally supplied power used in the system before mounting or removing the module. Not doing so could result in damage to the product. •...
  • Page 7: Revisions

    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.
  • Page 8: Table Of Contents

    INTRODUCTION Thank you for purchasing the MELSEC-Q series programmable controller. Before using the equipment, please read this manual carefully to develop full familiarity with the functions and performance of the Q series programmable controller you have purchased, so as to ensure correct use. CONTENTS SAFETY PRECAUTIONS..........................A- 1 REVISIONS ..............................A- 5...
  • Page 9 3.5.5 Special register (ED9000 to ED9127) ..................... 3-31 3.5.6 Expansion relay (EM0 to EM1023)....................3-35 3.5.7 Special relay (EM9000 to EM9127)....................3-38 3.6 Receive Buffer............................3-41 3.7 List of GX Developer Setting Items for the QD51 (-R24)............... 3-42 3.8 List of Input/Output Signals From/To the Programmable controller CPU..........3-43 3.8.1 Input (X) detailed explanation ......................
  • Page 10 4.8.3 Data communications by common memory..................4-24 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION 5- 1 to 5-17 5.1 Handling Precautions..........................5- 1 5.2 Settings and Procedures Up Until Operation ..................5- 2 5.3 Names of Parts and Functions ....................... 5- 3 5.4 Connection with a Console, Debugger....................
  • Page 11: About Manuals

    (1) For programmable controller system To configure a system meeting the requirements of the EMC and Low Voltage Directives when incorporating the Mitsubishi programmable controller (EMC and Low Voltage Directives compliant) into other machinery or equipment, refer to Chapter 9 "EMC AND LOW VOLTAGE DIRECTIVES" of the QCPU User's Manual (Hardware Design, Maintenance and Inspection).
  • Page 12: How To Read This Manual, And Configuration

    How to read this manual, and Configuration How to use this manual We will explain concerning the QD51 (-R24) for each purpose of use. Use this manual for reference for the following contents. (1) When desiring to know the features, functions and component parts (a) When desiring to know the features and functions •...
  • Page 13: About The Generic Terms And Abbreviations

    QD51 Shows only the QD51. QD51-R24 Shows only the QD51-R24. QD51(-R24) Shows both the AD51 and QD51-R24. Q00JCPU, Q00CPU, Q01CPU, Q02CPU, Q02HCPU, Q06HCPU, Q12HCPU, Q25HCPU, Q02PHCPU, Q06PHCPU, Q12PHCPU, Q25PHCPU, Q12PRHCPU, Q25PRHCPU, QCPU Q02UCPU, Q03UDCPU, Q04UDHCPU, Q06UDHCPU, Q13UDHCPU, Q26UDHCPU, Q03UDECPU, Q04UDEHCPU, Q06UDEHCPU, Q13UDEHCPU, Q26UDEHCPU...
  • Page 14 (2) Other Generic terms and Abbreviations In this manual, intelligent communications module data communications devices, etc. are explained using the following generic terms and abbreviations. When it is necessary to indicate clearly what the object of the explanation is, the name / model name of that item is included.
  • Page 15: Product Configuration

    Model Name Product Name Quantity QD51 Model QD51 Intelligent Communications Module Model QD51-R24 Intelligent Communications Module Terminal Resistor 330 Ω, 1/4 W (For RS-422 communications) QD51-R24 Terminal Resistor 110 Ω, 1/2 W (For RS-485 communications) A - 13 A - 13...
  • Page 16: Overview

    1 OVERVIEW This manual explains the system configuration, performance specifications and functions of the QD51 / QD51-R24 Intelligent Communications Module. When applying the following program examples to the actual system, make sure to examine the applicability and confirm that it will not cause system control problems.
  • Page 17: Operation Overview For Qd51 (-R24)

    • Data reading • Task start request • Interrupt request • Data writing 1 In the case of the QD51 RS-232 2 Channels In the case of the QD51-R24 RS-232 1 Channel RS-422/485 1 Channel 1 - 2 1 - 2...
  • Page 18 • QD51 : 2 RS-232 channels • QD51-R24 : 1 RS-232 channel, 1 RS-422/485 channel Production instructions, production results and other data can be sent to or received from a personal computer or other external device connected to the RS- 232 or RS-422/485 interface or the console non-procedurally.
  • Page 19: Features Of Qd51 (-R24)

    • Data input to a console or terminal <Printout on a Printer> Data can be printed out on a printer connected to the RS-232 interface. Robot, bar code reader, thermostat, etc. QD51-R24 PC/AT personal computer, etc. ERR. PROG P.RUN CH.1 CH.2...
  • Page 20 1 OVERVIEW MELSEC-Q (3) Data communications with the programmable controller are possible Data can be sent to or received from a programmable controller CPU installed with the QD51(-R24) or the one on the MELSECNET/H or MELSECNET/10 network. The types of data which can be sent to and received from a programmable controller CPU are shown below.
  • Page 21 By connecting the QD51 (-R24) to a PC/AT personal computer and carrying out settings at a console, a BASIC program can be edited and debugged. In the case of programming with a PC/AT personal computer. RS-232 Cable QD51-R24 Q J71E71 Q D 51- R 24 Q 25HC PU...
  • Page 22 1 OVERVIEW MELSEC-Q (9) Multiple CPU system compatible functions If access to a QCPU in a multiple CPU system is done by a BASIC program, the access destination QCPU is specified, then reading/writing of device data is executed. If the QD51 (-R24) is used in a multiple CPU system, set the QCPU that controls the QD51 (-R24) (called the control CPU) with the GX Developer.
  • Page 23 1 OVERVIEW MELSEC-Q It is possible to access the Control CPU / Non Control CPU from the QD51 (-R24) by a BASIC program. Control CPU QD51(-R24) Non-Control CPU BASIC Program (Read/Write) 03E0 to 03E3 03FF The access destination QCPU is specified by the requesting module's I/O No.
  • Page 24: About The Function Added/Changed To The Function Version B

    1 OVERVIEW MELSEC-Q 1.3 About the Function Added/Changed to the Function Version B This shows the functions that have been added to or changed in the Function Version B QD51 (-R24). Function Function overview Explanatory section When reading device data from or writing them Multiple CPU AD51H-BASIC to a multiple CPU system, it is possible to...
  • Page 25: System Configuration And Usable Functions

    2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS MELSEC-Q 2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS This shows system configurations and the functions that can be used. 2.1 Application Systems This section describes the applicable systems. (1) Applicable modules and base units, and No. of modules (a) When mounted with a CPU module The table below shows the CPU modules and base units applicable to the QD51(-R24) and quantities for each CPU model.
  • Page 26 2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS MELSEC-Q Applicable CPU module Base unit No. of modules CPU type CPU model Main base unit Extension base unit Q06CCPU-V C Controller Q06CCPU-V-B : Applicable, : N/A 1 Limited within the range of I/O points for the CPU module. 2 Can be installed to any I/O slot of a base unit.
  • Page 27 2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS MELSEC-Q (3) Applicable Software Package The following software package supports the QD51 (-R24) Console/debugger software package (essential) Product Name Model Name Remarks AD51H-BASIC Software Package SW1IVD-AD51HP-E For PC/AT Personal Computers CAUTION To use SW1IVD-AD51HP-E on Microsoft Windows 95 Operating System or Microsoft...
  • Page 28 2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS MELSEC-Q 2.2 Combining Programmable Controller CPU(s) with Other Device(s) This section shows the system configurations and functions which are available when the QD51 (-R24) is used. (1) System Configurations The following shows the system configurations (combinations) for data communications.
  • Page 29 2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS MELSEC-Q 1:n system configuration Q J71E71 Q D 51- R 24 M ELSEC Q 25H C PU R U N ER R . P O W ER M O D E I N I T. CO M .
  • Page 30: For Use In Multiple Cpu System

    2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS MELSEC-Q 2.3 For Use in Multiple CPU System This section describes the use of the QD51(-R24) in a multiple CPU system. Making access from a BASIC program to a non-control CPU When making access from a BASIC program to a non-control CPU, use the QD51 (-R24) of function version B.
  • Page 31: For Use With Redundant Cpus

    2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS MELSEC-Q 2.4 For Use with Redundant CPUs This section describes the use of the QD51(-R24) with the Redundant CPUs. (1) Dedicated instructions The dedicated instructions are not applicable. 2 - 7 2 - 7...
  • Page 32: For Use At Melsecnet/H Remote I/O Station

    2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS MELSEC-Q 2.5 For Use at MELSECNET/H Remote I/O Station This section describes the use of the QD51(-R24) on a MELSECNET/H remote I/O station. When using the QD51(-R24) with a QCPU, it is not necessary to read this section. (1) System Configuration (Example) (Remote Master Station)
  • Page 33 2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS MELSEC-Q REMARK For QnA/A Series MELSECNET/10 remote I/O stations, only reading from and writing to the intelligent function module's buffer memory can be done. (3) Setting from GX Developer In the case of mounting the QD51(-R24) on a MELSECNET/H remote I/O station, set the following parameters in GX Developer.
  • Page 34: How To Confirm The Function Version

    2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS MELSEC-Q 2.6 How to Confirm the Function Version This section describes how to confirm the function version of the QD51(-R24). (1) How to confirm the function version of QD51(-R24) Looking at the "rating plate's SERIAL section" on the side face of the module The serial No.
  • Page 35 2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS MELSEC-Q POINT The serial No. on the rating plate may not match the serial No. displayed on the product information screen of GX Developer. • The serial No. on the rating plate indicates the management information of the product.
  • Page 36: Specifications

    3.1 Performance Specifications The performance specifications of the QD51 (-R24) are shown below. Specification Item QD51 QD51-R24 Programming language AD51H-BASIC (Interpreter, Compiler) Number of tasks • Start by power is turned on. • Start by an interrupt from the programmable controller CPU.
  • Page 37 Oki Electric Wire (Corp.) The number of pairs is shown in the part) SPEV (SB) –MPC-0.2 3P External diameter approx. 6.5 mm Recommended cables (Manufactured by Mitsubishi Electric Wire Co. Ltd.) RS-422/485 SPEV (SB) -0.2 3P External diameter approx. 7.5 mm (Manufactured by Mitsubishi Electric Wire Co. Ltd.) ( 5 V DC internal current consumption 0.26A...
  • Page 38: Interface Specifications

    3 SPECIFICATIONS MELSEC-Q 3.2 RS-232 Interface Specifications This section describes the RS-232 interface specifications. 3.2.1 RS-232 connector specifications The connector specifications for the RS-232 used to connect with another device are shown below. Signal direction Signal Signal name Pin No. QD51 abbreviation External...
  • Page 39: Cable Specifications

    3 SPECIFICATIONS MELSEC-Q RS Signal (7) • If RS/CS control is being exercised, the QD51 (-R24) is turned ON or OFF according to the size of the empty space in the OS area for reception data storage. (It is ON when it is ready to receive data.) When the RS signal is OFF, reception data have been stored in the OS area, so read out the reception data from a BASIC program.
  • Page 40: Rs-422/485 Interface Specifications

    3 SPECIFICATIONS MELSEC-Q 3.3 RS-422/485 Interface Specifications This section describes the RS-422/485 interface specifications. 3.3.1 RS-422/485 terminal block specifications The following shows the RS-422/485 terminal block specifications for connection to the target device. Signal direction Signal Signal name External QD51 abbreviation device -R24...
  • Page 41: Rs-422/485 Cable Specifications

    Recommended conductor size 0.2 mm to 0.75 mm (Recommended Cables) SPEV (SB) – MPC –0.2 3P : (Manufactured by Mitsubishi Electric Wire Co. Ltd.) SPEV (SB) – 0.2 : (Manufactured by Mitsubishi Electric Wire Co. Ltd.) The electrical characteristics of the recommended cables SPEV (SB) -MPC- 3P and SPEV (SB) -0.2...
  • Page 42: Cautions During Data Communications With A Rs-422/485 Line

    3 SPECIFICATIONS MELSEC-Q 3.3.3 Cautions during data communications with a RS-422/485 line Caution is necessary in the following points when carrying out data communications with the opposite device via the QD51 (-R24)'s RS-422/485 interface. As for the opposite device, please send and receive data with consideration of the following points.
  • Page 43 3 SPECIFICATIONS MELSEC-Q (2) RS-422/485 Interface Operation RS-422/485 Interface Configuration In the case of the RS-422-485 interface, the configuration of the QD51 (-R24) driver (Send) and receiver (Receive) are as shown in the following figure. Driver Send Data 1 The "Output Control Input" (also called the send gate) of the driver (Send) portion in the figure at Output Control Input ( 1) left decides whether data from SDA or SDB are...
  • Page 44 • Set the "Output Control Input" so that it is in the OFF state when data are not being sent. The QD51-R 24 side automatically controls the output control input. QD51-R24 Send Data Output Control Input Receive Data...
  • Page 45: List Of Commands And Functions In Ad51H-Basic

    3 SPECIFICATIONS MELSEC-Q 3.4 List of Commands and Functions in AD51H-BASIC The commands in AD51H-BASIC which can be used by the QD51 (-R24) are shown in the following table. (For details concerning each command and function, refer to the Programming Manual (Commands).) Command, Classification...
  • Page 46 3 SPECIFICATIONS MELSEC-Q Command, Classification Operation Function Command to Writing to the write to the WTSET Writes 0 or 1 to the specified bit of an integer array variable. designated bit designated bit Command to Reading from the read from the RDSET Reads 1-bit data from the specified bit of an integer array variable.
  • Page 47 3 SPECIFICATIONS MELSEC-Q Command, Classification Operation Function INPUT Used to input data from the keyboard. Input from Stores an entire key-input line (255 characters or less) into the character string keyboard Input/Output LINE INPUT variable area without any breaks. Control Input from port ZRECEIVE Receives data from a communication port.
  • Page 48 3 SPECIFICATIONS MELSEC-Q Command, Classification Operation Function Returns -1 if the end of a sequential file is detected. File information File information Returns the file size as the number of sectors. functions Returns the current logical location within a file. Converts a character string converted by the MKI$ function back to an integer.
  • Page 49 3 SPECIFICATIONS MELSEC-Q Command, Classification Operation Function Returns an absolute value for the expression. Returns the arctangent (tan ) for the expression. Returns the trigonometric cosine value. Returns the exponential function value of base e. Returns only the integer part after truncating the fractional part of a numeric value. Returns an integer value for the expression Returns a natural logarithm value.
  • Page 50 3 SPECIFICATIONS MELSEC-Q Command, Classification Operation Function ZEVENT Enables or disables event generation. Defines an event for synchronizing execution between programs. DEF ZEVENT Defines an event to be triggered according to the QD51(-R24)'s extension relay (EM). Real time ZRELEASE Allows other programs to use a resource to which a resource number is assigned. control Real time control ZRESERVE...
  • Page 51: Qd51 (-R24) Internal Memory

    3 SPECIFICATIONS MELSEC-Q 3.5 QD51 (-R24) Internal Memory The following memory can be used by the user in the QD51 (-R24). (1) Memory where programs for execution can be stored • Program Area · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·Refer to Section 3.5.1 This is memory where BASIC programs which run the QD51 (-R24) are stored.
  • Page 52 3 SPECIFICATIONS MELSEC-Q CAUTION Internal memory is not backed up by a battery. If the QD51 (-R24)'s power is turned OFF, the BASIC program written to it and the data in the buffer memory, etc. are erased. Therefore, observe the following (1) and (2).
  • Page 53: Program Area

    3 SPECIFICATIONS MELSEC-Q 3.5.1 Program area Following programs can be stored in the program area: • BASIC programs created at the console • Programs for execution read from the flash ROM (1) Memory Capacity The program area's maximum capacity is 64 k bytes. This 64 k bytes is divided so it can be used for a maximum of 2 BASIC programs (Task 1 to Task 2).
  • Page 54 3 SPECIFICATIONS MELSEC-Q POINT A program for running the flash ROM is read to the QD51 (-R24)'s program area when the module is powered ON or is reset. However, for an area where the multitask setting is set "ON", reading to the QD51 (-R24) is not done.
  • Page 55: Buffer Memory

    3 SPECIFICATIONS MELSEC-Q 3.5.2 Buffer memory Buffer memory is memory for carry out sending and receiving of data between the QD51 (-R24) and the programmable controller CPU. (Data from the programmable controller CPU that are written to buffer memory can be read from multiple tasks.
  • Page 56 3 SPECIFICATIONS MELSEC-Q In the QD51 (-R24), reading of data from, or writing of data to buffer memory is done using the GETMEM/PUTMEM command in the BASIC program. QD51(-R24) GETMEM (Writing of data) (Reading of data) Programmable Buffer BASIC controller Memory program PUTMEM...
  • Page 57 3 SPECIFICATIONS MELSEC-Q (4) Buffer Memory Addresses Addresses in buffer memory differ depending on whether they are designated by the programmable controller CPU or by a BASIC program, and are as follows. If designated from the programmable controller CPU If designated by the programmable controller CPU, addresses are in 1- word units.
  • Page 58: Common Memory

    3 SPECIFICATIONS MELSEC-Q 3.5.3 Common memory Common memory is memory that can be used to send and receive data between the QD51 (-R24) internally and each task. Data from the programmable controller CPU can also be read and written using this memory.
  • Page 59 3 SPECIFICATIONS MELSEC-Q In a sequence program, data are read from or written to common memory using the FROM/TO command. Program example The following shows a program where values in D0 to D9 are written into the common memory area addressed 0C00 to 0C09 when the multitask execution start signal (X0B) is ON.
  • Page 60 3 SPECIFICATIONS MELSEC-Q (4) Common Memory Addresses Addresses in common memory differ depending on whether they are designated by the programmable controller CPU or by a BASIC program, and are as follows. If designated from the programmable controller CPU If designated by the programmable controller CPU, addresses are in 1- word units.
  • Page 61: Expansion Register (Ed0 To Ed1023)

    3 SPECIFICATIONS MELSEC-Q 3.5.4 Expansion register (ED0 to ED1023) The expansion register is internal memory where 1-word (16-bit) data can be stored. If the expansion register is used, data can be stored internally in the QD51 (-R24) and 1-word data can be sent and received between tasks and between the QD51 (-R24) and the programmable controller CPU.
  • Page 62 3 SPECIFICATIONS MELSEC-Q Writing/Reading of data by the special variable W@ in a BASIC program With the special variable W@, the expansion register is designated by ED0 to ED1023. The designation is in 1-word units. QD51(-R24) Expansion Register (Reading of data) BASIC program ED1021...
  • Page 63 3 SPECIFICATIONS MELSEC-Q Writing/Reading data by the PUTMEM/GETMEM command in a BASIC program With the PUTMEM/GETMEM command, data can be written to or read from the extension register. An address can be specified by ED0 to ED1023 in units of 1 byte. QD51(-R24) Expansion Register Lower order...
  • Page 64 3 SPECIFICATIONS MELSEC-Q (c) Writing/Reading data by the FROM/TO command in a sequence program With the FROM/TO command, designate the expansion register by the address. The designation address is 1C00 to 1FFF , in 1-word units. QD51(-R24) Expansion Register 1C00 1C01 (Writing of data) 1C02...
  • Page 65 3 SPECIFICATIONS MELSEC-Q (2) During execution of a BASIC program by multitasking, data can be written or read from either task. Expansion Register (ED) Reading of data Writing of data Task Task (3) Number of Expansion Register Points The expansion register in the QD51 (-R24) is 1024 points, from ED0 to ED1023. (The expansion register No.
  • Page 66: Special Register (Ed9000 To Ed9127)

    3 SPECIFICATIONS MELSEC-Q 3.5.5 Special register (ED9000 to ED9127) The special register is a register which has its use determined by the QD51 (-R24). Data are stored by the QD51 (-R24)'s OS, so in a BASIC program, use the special variable W@ to read and use the stored data.
  • Page 67 3 SPECIFICATIONS MELSEC-Q Buffer Memory Related Address as Special Related Name Content Details of Contents Special seen from the Register No. Special Relay Register • The status of BASIC tasks 1 and 2 is stored as shown below. b8 b7 0/10/1 BASIC task in •...
  • Page 68 3 SPECIFICATIONS MELSEC-Q (1) Reading data in the special register Data are read from the special register by the following methods. • Using the special variable W@ of the BASIC program • Using the FROM command in the sequence program The method of designating the special register differs in the special variable W@ and the FROM command, as shown below.
  • Page 69 3 SPECIFICATIONS MELSEC-Q Reading of data by the FROM command in a sequence program The special register is designated using the FROM command by the address. The designated address is 2400 to 247F , in 1-word units. QD51(-R24) Special Register 2400 ED9000 2401...
  • Page 70: Expansion Relay (Em0 To Em1023)

    3 SPECIFICATIONS MELSEC-Q 3.5.6 Expansion relay (EM0 to EM1023) The expansion relay is a relay that can be used to send and receive ON/OFF data between tasks internally in the QD51 (-R24). (1) Turning the expansion relay ON and OFF, and reading ON/OFF data The special variable B@ can be used in a BASIC program to turn the expansion relay ON and OFF and to read ON/OFF data.
  • Page 71 3 SPECIFICATIONS MELSEC-Q (3) Writing/ Reading of Expansion Relay ON/OFF Data ON/OFF data are written to or read from the expansion relay by the following methods. • Using the special variable B@ of the BASIC program • Using the FROM/TO command in the sequence program The expansion relay designation method differs as follows in the special variable B@ and the FROM/TO command.
  • Page 72 3 SPECIFICATIONS MELSEC-Q In the FROM/TO command for writing or reading data in accordance with the FROM/TO command of a sequence program, an expansion relay is designated in the address. The designated address is in 1-word units, from 2380 to 23BF QD51(-R24) Expansion Relay 2380...
  • Page 73: Special Relay (Em9000 To Em9127)

    3 SPECIFICATIONS MELSEC-Q 3.5.7 Special relay (EM9000 to EM9127) The special relays are relays whose use is determined internally in the QD51 (-R24). ON/OFF control is performed by the QD51 (-R24) OS, so in each BASIC program, read the ON/OFF status using the special variable B@ to use these relays. Buffer Memory Related Address as...
  • Page 74 3 SPECIFICATIONS MELSEC-Q Reading data by the special variable B@ in BASIC program With the special variable B@, the special relays are designated by EM9000 to EM9127. Designation is in 1-bit units. QD51(-R24) Special Relay EM9000 EM9001 EM9002 (Reading of data) EM9003 BASIC EM9004...
  • Page 75 3 SPECIFICATIONS MELSEC-Q Reading data by the FROM command in a sequence program With the FROM command, special relays are designated by addresses. Designation addresses are 2500 to 2507 , in 1-word units. QD51(-R24) Special Relay EM9000 to EM9015 2500 FROM EM9016 to EM9031 2501...
  • Page 76: Receive Buffer

    3 SPECIFICATIONS MELSEC-Q 3.6 Receive Buffer The receive buffer is a memory buffer used for sending and receiving data between the QD51 (-R24)'s RS-232 interface and RS-422/485 interface and an external device connected to them. The receive buffer for each respective interface is 1024 bytes. (The receive buffer size can be changed by the ZCNTL command.) The receive buffer stores the data sent from an external device.
  • Page 77: List Of Gx Developer Setting Items For The Qd51 (-R24)

    3 SPECIFICATIONS MELSEC-Q 3.7 List of GX Developer Setting Items for the QD51 (-R24) The following table shows a list of parameter setting items set using GX Developer. Parameter Setting Item Parameter Contents Setting Contents Explanation Section Type Model name Allocates I/O in the QD51 (-R24), I/O Allocation Setting and enables the following switch...
  • Page 78: List Of Input/Output Signals From/To The Programmable Controller Cpu

    3 SPECIFICATIONS MELSEC-Q 3.8 List of Input/Output Signals From/To the Programmable controller CPU The QD51 (-R24)'s input/output signals are explained. The following I/O signal assignment is based on the case where the start I/O No. of the QD51 (-R24) is "0000" (installed to slot 0 of the main base unit). Device X is an input signal from the QD51 (-R24) to a programmable controller CPU.
  • Page 79 3 SPECIFICATIONS MELSEC-Q Important Do not output (turn ON) the "Use Prohibited" signal, which is one of the input/output signals related to the programmable controller CPU. If an output is activated for the "Use Prohibited" signal, there is danger that the programmable controller system could malfunction.
  • Page 80: Input (X) Detailed Explanation

    3 SPECIFICATIONS MELSEC-Q 3.8.1 Input (X) detailed explanation Here, the input (X) for the QD51 (-R24) is explained. The input No. (Xn) used in this section is the No. as viewed from the programmable controller CPU. (1) General Input (X00 to X0A, X10 to X1E: 26 points) The general input can be used freely by the user and can be used to send ON/OFF data from the QD51 (-R24) to the programmable controller CPU.
  • Page 81 3 SPECIFICATIONS MELSEC-Q (2) Multitask Execution Start Signal [X0B] When the QD51 (-R24)'s mode setting switch 1 1 is set in the "Run Mode (0 or 1)", this signal is enabled (it carries out ON/OFF control). (If the QD51 (-R24) is in a mode other than the Run mode, it remains OFF and does not change.) If the QD51 (-R24) is in the Run mode, after the power is turned on or after a Reset, if multitask execution is enabled, this signal goes ON.
  • Page 82 3 SPECIFICATIONS MELSEC-Q In the QD51 (-R24)'s Run mode, it is OFF in the cases shown below. When the reset request signal (Y1A) of the QD51 (-R24) is turned on and reset is performed. (It goes ON again if the QD51 (-R24)'s reset processing is completed and the multitask execution enabled state is restored.) When a BASIC error is detected.
  • Page 83 3 SPECIFICATIONS MELSEC-Q (4) QD51 (-R24) System Down Signal [X0D] When the QD51 (-R24)'s mode setting switch is set in the "Run Mode (0 or 1)", this signal is enabled (it carries out ON/OFF control). (If the QD51 (-R24) is in a mode other than the Run mode, it remains OFF and does not change.) This signal goes ON when the system goes down during multitask execution and an error is detected.
  • Page 84: Output (Y) Detailed Explanation

    3 SPECIFICATIONS MELSEC-Q 3.8.2 Output (Y) detailed explanation Here, QD51 (-R24) outputs (Y) are explained. The output No. (Yn) used in this section is the number as viewed from the programmable controller CPU. (1) General Output (Y00 to Y10, Y13 to Y18: 23 points) The general output signals can be used to send ON/OFF data from the programmable controller CPU to the QD51 (-R24).
  • Page 85 3 SPECIFICATIONS MELSEC-Q To turn OFF the signal designated by the start task No. that was turned ON, do so only after confirming that the designate task has been executed. To check if the designated task has started, use the method of turning the general input (X) allocated to the Reset (OFF) instruction by the BASIC program as shown in the example on the next page.
  • Page 86 3 SPECIFICATIONS MELSEC-Q (3) Task Start Signal (Y19) This is a signal that starts the task designated by the start task No. designation signal (Y11/Y12). The task start signal (Y19) cannot be used as a general output even in cases where there is no task that is started by an interrupt from the sequencer CPU.
  • Page 87 3 SPECIFICATIONS MELSEC-Q REMARK 1 This is a task that corresponds to the device No. of the device designated by Y11, Y12 that is turned ON. However, a device No. that does not have "IT (started by an interrupt from the programmable controller CPU)" set for the multitask setting is disregarded.
  • Page 88: Relationship Between The Qd51 (-R24) Start Condition And The Flash Rom Execution Program Area

    3 SPECIFICATIONS MELSEC-Q 3.9 Relationship between the QD51 (-R24) Start Condition and the Flash ROM Execution Program Area The start condition for each task is set "BOOT" as default. To set to any other than "BOOT", change it using the system command SET. The BASIC program's storage state in the program area differs as follows depending on the set start conditions.
  • Page 89: Qd51 (-R24) Operation When The Power Is Turned On

    3 SPECIFICATIONS MELSEC-Q 3.10 QD51 (-R24) Operation when the Power is Turned On The QD51 (-R24) operates in the mode set by the intelligent function module switch [Mode Setting] in GX Developer when the power is turned on. Operation differs depending on the mode. Programming Mode Multitask Debug Mode Run Mode...
  • Page 90: In The Case Of The Multitask Debug Mode

    3 SPECIFICATIONS MELSEC-Q 3.10.2 In the case of the multitask debug mode This section explains the case in which the QD51 (-R24) is set to the Multitask debug mode by GX Developer When it is turned ON or reset, and after the program to be run is read from the flash ROM to the QD51 (-R24)'s program area (Refer to Section 3.5.1), the mode is switched to the Multitask debug mode.
  • Page 91: In The Case Of The Run Mode

    3 SPECIFICATIONS MELSEC-Q 3.10.3 In the case of the run mode This section explains the case in which the QD51 (-R24) is set to the Run mode by GX Developer When it is turned ON or reset, and after the program to be run is read from the flash ROM to the QD51 (-R24)'s program area (Refer to Section 3.5.1), the multitask processing is executed.
  • Page 92: Running A Task (A Created Program)

    3 SPECIFICATIONS MELSEC-Q 3.11 Running a Task (a created program) Here, running a task when the QD51 (-R24) is in the Run Mode and in the Multitask Debug Mode is explained. 3.11.1 Conditions for permitting running of a task and start conditions In the QD51 (-R24), a task is permitted to be run when it satisfies all the conditions shown below (1).
  • Page 93: Starting By Turning The Power On Or By Reset (Start Condition: Start)

    3 SPECIFICATIONS MELSEC-Q 3.11.2 Starting by turning the power on or by reset (start condition: START) This is the case where the start condition in the multitask setting is set on "START". Starting of a task is done if the "Run Permission Conditions" listed in Section 3.11.1 are established.
  • Page 94 3 SPECIFICATIONS MELSEC-Q If the program runs all the time The program runs all the time if an END command is not used at the end of the BASIC program, but instead a "GOTO" command is used to cause it to jump to a specific line.
  • Page 95: Starting By An Interrupt From The Programmable Controller Cpu (Start Condition: It)

    3 SPECIFICATIONS MELSEC-Q 3.11.3 Starting by an interrupt from the programmable controller CPU (Start Condition: IT) This is the case where the start condition in the multitask settings is set on "IT". Starting of a task is done if the "Run Permission Conditions" listed in Section 3.11.1 are established and when there is a start request from the programmable controller CPU.
  • Page 96: Starting By A Start Request From Another Task (Start Condition: Boot, On)

    3 SPECIFICATIONS MELSEC-Q 3.11.4 Starting by a start request from another task (Start condition: BOOT, ON) This is the case where the start condition in the multitask settings is set to "BOOT" or "ON". A task is started when the "Run Permission Conditions" are satisfied and when the start is requested by the ZSTART command from another BASIC program.
  • Page 97 3 SPECIFICATIONS MELSEC-Q (2) Running a task Starting a task A task starts when it is designated by the "ZSTART" command from another BASIC program. The designation method of the "ZSTART" command varies depending on the start condition. BOOT : Designated by <number> of the task No. area : Designated by <number>...
  • Page 98: Running A Basic Program By Multitask Processing

    3 SPECIFICATIONS MELSEC-Q 3.12 Running a BASIC Program by Multitask Processing Here, the method of running a QD51 (-R24) BASIC program, etc. is explained. 3.12.1 Multitask processing The QD51 (-R24) us a unit which operates by BASIC programs created by the user. The QD51 (-R24) has one main CPU (central processing unit).
  • Page 99: Basic Program Priority Order (Priority)

    3 SPECIFICATIONS MELSEC-Q 3.13 BASIC Program Priority Order (Priority) In the QD51 (-R24), a priority order (priority) can be assigned to BASIC programs that are created. When BASIC programs are started, all BASIC programs are set at the same priority order.
  • Page 100: Synchronizing Execution Between Basic Programs (Event Control)

    3 SPECIFICATIONS MELSEC-Q 3.13.1 Synchronizing execution between BASIC programs (Event control) In multitask processing, each BASIC program is process independently. for this reason, if data are shared between BASIC programs, it is necessary that the receiving side read the data after confirming that the sending side has sent the data. Event control is used to synchronize the execution of the data sending side BASIC program and the data receiving side BASIC program.
  • Page 101: Sharing Equipment (Resources) By Multitasking

    3 SPECIFICATIONS MELSEC-Q 3.13.2 Sharing equipment (Resources) by multitasking If use of resources is shared by BASIC programs, the same resources cannot be used by multiple BASIC programs at the same time. Exclusive control of resources is a way of making it impossible for another BASIC program to use resources while one BASIC program is using them.
  • Page 102: About Qd51 (-R24) Functions

    4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q 4 ABOUT QD51 (-R24) FUNCTIONS Here, the functions possessed by the QD51 (-R24) are explained. 4.1 List of Functions A list of QD51 (-R24) functions is shown below. Item Content Reference Complex numerical calculations and function calculations which would lengthen the programmable controller CPU' s scan time Refer to the Programming Sub-CPU Function...
  • Page 103 4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q 4.2 Communications with a Console / Terminal Data can be displayed on the screen and can be input from the keyboard of a console/terminal connected to the QD51 (-R24). A console is a device (PC/AT personal computer) connected to a channel that is set as a console by the GX Developer intelligent function module switch settings in the QD51 (-R24).
  • Page 104: Communications With A Console / Terminal

    4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q 4.2.1 Communications with a console (1) Display of data on a console screen Here, the way of thinking in the case of display of data on a console screen is explained. Console [In the case of a PC/AT personal computer] QD51 QD51 RUN ERR...
  • Page 105 4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q (2) Inputting data from a console keyboard Here, the way of thinking in the case of inputting of data from a console keyboard is explained. Console [In the case of a PC/AT personal computer] QD51 QD51 RUN ERR...
  • Page 106 4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q [Commands and functions used] The commands and functions used to input data from the console keyboard are as shown below. Command, Function Name Processing Contents ZIDV Switches the data input destination. INPUT • Carries out key input of data. •...
  • Page 107: Communications With A Terminal

    4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q 4.2.2 Communications with a terminal (1) Displaying data on a terminal screen Here, the way of thinking in the case of displaying data on the terminal screen is explained. Terminal QD51 Hello!! QD51 RUN ERR P.RUN CH.1 CH.2...
  • Page 108 4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q [Command and functions used] The commands and functions used to display data on the terminal screen are as shown below. Command, Function Name Processing Contents ZOPEN Opens the interface and prepares for communications with an external device.
  • Page 109 4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q (2) Input from the terminal keyboard Here the way of thinking when data are input from the terminal keyboard is explained. Terminal QD51 QD51 RUN ERR P.RUN CH.1 CH.2 Keyboard CH.1 RS-232 Data input CH.1 (Input data from keyboard) CH.2...
  • Page 110 4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q [Command, functions used] The commands and functions used to input data from a terminal keyboard are as shown below. Command, Function Name Processing Contents ZOPEN Opens the interface and prepares for communications with an external device.
  • Page 111: Printing By A Printer

    4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q 4.3 Printing by a Printer Data can be printed out from a printer connected to the QD51 (-R24)'s RS-232 interface. A printer can also be connected to a PC/AT personal computer which is being used as a console, and can be used to print out data.
  • Page 112: Printing From A Printer Connected To An Interface That Is Not Set In The Console

    4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q 4.3.1 Printing from a printer connected to an interface that is not set in the console Here, the way of thinking in the case of printing from a printer connected to an interface that is not set in the console is explained. QD51 QD51 RUN ERR...
  • Page 113 4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q [Commands and functions used] The commands used for printing from a printer connected to an interface that is not set in the console is as shown below. Command, Function Name Processing Contents ZOPEN Opens the interface and prepares for communications with an external device.
  • Page 114: Printing From A Printer Connected To The Console

    4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q 4.3.2 Printing from a printer connected to the console Here, the way of thinking in the case of printing out by a printer that is connected to a PC/AT personal computer which is set as a console and connected to the interface is explained.
  • Page 115: Communications With The External Device

    4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q 4.4 Communications with the External Device An external device 1 can be connected to the QD51 (-R24)'s RS-232 interface or RS- 422/485 interface and communications carried out between them. 4.4.1 If data are being sent Here, the way of thinking in the case of sending data from the QD51 (-R24) to a device other than a console, terminal or printer.
  • Page 116: If Data Are Received

    4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q 4.4.2 If data are received Here, the way of thinking in the case of receiving data sent to the QD51 (-R24) from a device other than a console or terminal is explained. If data are received, the procedure is as follows. Open the interface.
  • Page 117: Communications With The Programmable Controller Cpu

    4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q 4.5 Communications with the Programmable controller CPU Data can be written to the programmable controller CPU and read from the programmable controller CPU by the QD51 (-R24) using a BASIC program. The data which can be written to and read from the programmable controller CPU are shown below.
  • Page 118: On/Off Data Communications By General Output (X/Y)

    4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q 4.5.1 ON/OFF data communications by general output (X/Y) Using the QD51 (-R24)'s general purpose input / output, ON/OFF data can be communicated between the QD51 (-R24) and the programmable controller CPU. Programmable controller CPU QD51(-R24) Internal Memory Sequence Program...
  • Page 119: Reading And Writing Data From/To Buffer Memory

    4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q 4.5.2 Reading and writing data from/to buffer memory 16-bit data communications can be carried out between the QD51 (-R24) and the programmable controller CPU using the QD51 (-R24)'s buffer memory. QD51(-R24) Programmable controller CPU Sequence Program Reading of 16-bit data...
  • Page 120: Reading And Writing Data From/To The Programmable Controller Cpu

    4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q 4.5.3 Reading and writing data from/to the programmable controller CPU Data can be written to and read from the programmable controller CPU's device memory directly by a QD51 (-R24) BASIC program. Programmable controller CPU QD51(-R24) Sequence Program Device Memory...
  • Page 121: Reading And Writing Data From/To The Programmable Controller Cpu's Expansion File Register

    4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q 4.5.4 Reading and writing data from/to the programmable controller CPU's expansion file register Data can be written to and read from the programmable controller CPU's expansion file register (file registers after block No. 1) directly by a QD51 (-R24) BASIC program. Refer to Section 4.5.3 concerning writing of data to and reading data from a file register (block No.
  • Page 122: Reading And Writing Data From/To The Buffer Memory Of Another Intelligent Function Module/Special Function Module

    4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q 4.6 Reading and Writing Data from/to the Buffer Memory of Another Intelligent Function Module/Special Function Module Data can be written to and read from the buffer memory of another intelligent function module or special function module by a QD51 (-R24) BASIC program. QD51(-R24) Programmable controller CPU Reading of data...
  • Page 123: Reading And Writing Clock Data

    4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q 4.7 Reading and Writing Clock Data The QD51 (-R24) does not include a clock function. If a clock function is used with the QD51 (-R24), read the calendar (Year, Month, Day, Day of Week) or time (Hour, Minute, Second) from a programmable controller CPU with a clock function using a BASIC program.
  • Page 124: Data Communications Between Tasks

    4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q 4.8 Data Communications Between Tasks During multitask processing, the content of variables or arrays in each task, etc. can only be referred to in each respective BASIC program. For exchange of data between BASIC programs during multitask processing, use the following.
  • Page 125: Data Communications By Expansion Register (Ed)

    4 ABOUT QD51 (-R24) FUNCTIONS MELSEC-Q 4.8.2 Data communications by expansion register (ED) The QD51 (-R24)'s expansion register (ED) is a device which can store data from all tasks and perform reading of data. (For details of the expansion relay, refer to Section 3.5.4.) Data storage Expansion register Reading of data...
  • Page 126: Settings And Procedures Up Until Operation

    5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC-Q 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION Here, the procedures and setting methods up to the point where operation can begin in a system where the QD51 (-R24) is used are explained. POINT (1) When the QD51 (-R24) is used, be sure to read the "Safety Precautions"...
  • Page 127 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC-Q 5.2 Settings and Procedures Up Until Operation A brief list of procedures up until operation of this module is shown below. Start Check the functions used and the specifications. Connect the console and the module with •...
  • Page 128: Names Of Parts And Functions

    5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC-Q 5.3 Names of Parts and Functions Name Contents Indicator LED Indicator LED (Refer to (1) for the indication contents.) CH1 side RS-232 interface (D-Sub 9-pin) for serial CH1-side RS-232 communications with external devices and for connection of a Interface console / debugger.
  • Page 129: Connection With A Console, Debugger

    5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC-Q 5.4 Connection with a Console, Debugger This section explains the connection methods of a personal computer with a console. (1) Connection method Connection with a PC/AT personal computer Cables need to be produced by the users to make a connection. (2) Cable wiring The wiring of the user-created cable is show below.
  • Page 130: Connection With The External Device

    5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC-Q 5.5 Connection with the External Device Here the wiring between the QD51 (-R24) and the external device is explained. As a precaution when connecting cables, and as a condition for achieving a highly reliable system in which the full potential of the QD51 (-R24)'s functions is realized, it is necessary to carry out wiring so that the influence of noise will be minimized.
  • Page 131: Connecting To The Rs-232 Interface

    5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC-Q 5.5.1 Connecting to the RS-232 interface Here connection precautions and an example of connection when carrying out full duplex communications using the QD51 (-R24)'s RS-232 interface are shown. (1) Precautions when connecting Connect the FG signal and shield of the connection cable as shown below.
  • Page 132 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC-Q (2) Connection example Example of connection to an external device with a CD signal (pin 1) that can be turned ON and OFF. QD51 (-R24) Side External Device Side Signal Name Pin No. Signal Name RD(RXD) RD(RXD)
  • Page 133: Connecting To The Rs-422/485 Interface

    5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC-Q 5.5.2 Connecting to the RS-422/485 interface Here connection precautions and an example of connection when using the QD51 (-R24)'s RS-422/485 interface are shown. (1) Precautions when connecting (a) When the QD51 (-R24)'s SG signal and FG signal are connected to the external device, make connections in accordance with the external device's specifications.
  • Page 134 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC-Q It is necessary to set (or connect) a terminal resistor in both terminals when wiring. On the QD51 (-R24) side, connect a terminal resistor (packed together with the QD51 (-R24))in accordance with this section to match the external device's specifications.
  • Page 135 External Device 1) External Device 2) External Device n RS-422/485 Cable RS-422/485 RS-422/485 Cable Cable Terminal Resistor If connecting n:1 (multiple drop) QD51-R24 1) QD51-R24 2) QD51-R24 n External Device 1) RS-422/485 RS-422/485 RS-422/485 Cable Cable Cable Terminal Resistor If connecting m:n (multiple drop) (External Device: QD51 (-R24))
  • Page 136: Setting From The Gx Developer

    Item Setting Contents Remarks Type Sets "Intelligent" Model name Sets the model name of the installed module (QD51 or QD51-R24). Number of points Sets 32 points. I/O assignment Header XY Sets the header input / output (hexadecimal) of the relevant module.
  • Page 137: Switch Setting For I/O And Intelligent Function Module

    5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC-Q 5.6.2 Switch setting for I/O and intelligent function module [Setting purpose] The I/O module and intelligent function module switch settings set the specifications for data transfers with external devices, communications protocols, etc. [Start procedure] [GX Developer] [PC Parameters]...
  • Page 138 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC-Q (1) Setting switches b7 b6 b5 b4 b3 b2 b1 b0 Contents OFF(0) ON(1) position Channel setting Refer to (a) Console Software Not used Used Not used Fixed on OFF Console, debugger type Ctrl + C setting Disabled Enabled...
  • Page 139 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC-Q Console Sets whether a console will be used or not, which channel (CH1/CH2) will be used, and whether software is to be used or not. • Channel setting : Sets which channel the console will be connected to. (Cannot be connected to CH3.) •...
  • Page 140 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC-Q Debugger This sets whether the debugger will be used or not used, which channel (CH1/CH2) will be used, and whether software will be used or not used. • Channel setting : Sets which channel the debugger is connected to. (Cannot be connected to CH3.) •...
  • Page 141: Intelligent Function Module Interrupt Point Settings

    5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC-Q 5.6.3 Intelligent function module interrupt point settings Here, the interrupt pointer settings in GX Developer for sending and receiving data with a BASIC program by an interrupt program are explained. [Purpose of settings] Intelligent function module interrupt pointer settings set information for starting a programmable controller CPU interrupt program from a BASIC program.
  • Page 142: Maintenance, Checks

    5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC-Q 5.7 Maintenance, Checks Except for the following confirmation items, there are no check items in particular for the QD51 (-R24). Other than the following points, in order to be able to use the system in its optimum state at all times, please carry out maintenance in accordance with the check items listed in the programmable controller CPU User's Manual.
  • Page 143: Exclusive Commands

    6 EXCLUSIVE COMMANDS MELSEC-Q 6 EXCLUSIVE COMMANDS Exclusive commands are commands which make programming easier when using the functions of the intelligent function module. In this chapter, the QD51 (-R24) commands which are exclusive QCPU (Q Mode) commands described in this manual are explained. 6.1 Exclusive Command List and Available Devices (1) Exclusive command list The exclusive commands explained in this chapter are listed below.
  • Page 144: Z(P).Ycheck

    6 EXCLUSIVE COMMANDS MELSEC-Q 6.2 Z(P).YCHECK This checks the rise of the task start signal (Y19) and shortens the BASIC program start time. Usable Device Internal Device Intelligent Link direct device J (System, User) Setting Data Constant function Index Register File Register Other module device...
  • Page 145: Troubleshooting

    7 TROUBLESHOOTING MELSEC-Q 7 TROUBLESHOOTING Here, the methods for checking the contents of errors that occur in the QD51 (-R24) are explained. For error contents, refer to the Programming Manual (Commands). 7.1 About QD51 (-R24) Status Checks 7.1.1 Checking the LED lighting status, communications error status and QD51 (-R24) switch setting status Here the method used to check the communications status between the QD51 (-R24) and an external device and the QD51 (-R24)'s switch setting status is explained.
  • Page 146 7 TROUBLESHOOTING MELSEC-Q [Display contents] • Module The following information is displayed. Model name : Installed module model name Header I/O No. : Relevant module's header Input / Output signal Installation position : The slot position where the module is installed. Product information : Product information The last character of the product information indicates the function version of the module.
  • Page 147: Errors That Occur In Basic

    7 TROUBLESHOOTING MELSEC-Q [Display contents] H/W LED information package Displays the display status of the QD51 (-R24)'s ERR LED, PRG LED and RUN LED. 1/ 0 1/ 0 1/ 0 1/ 0 1/ 0 1/ 0 1/ 0 1/ 0 For System ERR.
  • Page 148: Appendix

    Appendix-1 Comparison of Functions with Previous Modules A comparison of the QD51 (-R24)'s functions with the functions of previous modules is shown. Item AD51H-S3 A1SD51S QD51 QD51-R24 Cpu element 80C186 (15 MHz) V53A (20 MHz) Arithmetic element None AD51H-BASIC Programming language...
  • Page 149: Appendix-2 About Use Of Programs From Previous Modules

    However, the points shown below differ slightly, so exercise caution. (1) Usable channels Usable channels are as shown below. AD51H-S3 A1SD51S QD51 QD51-R24 CH. 1 (RS-232) CH. 2 (RS-232) Channel CH. 3 (RS-422/RS-485) CH. 4 (Parallel) : Can be used : Cannot be used.
  • Page 150 APPENDIX MELSEC-Q (2) Communications specifications Data bit and stop bit settings differ. Correct the BASIC program. AD51H-S3 A1SD51S QD51(-R24) Data bit 5, 6, 7, 8 5, 6, 7, 8 7, 8 1, 1.5, 2 Stop bit 1, 1.5, 2 1, 2 (3) Common memory backup Common memory backup is as shown below.
  • Page 151 APPENDIX MELSEC-Q (5) Maximum number of tasks The maximum number of tasks that can be run simultaneously is as shown below. AD51H-S3 A1SD51S QD51(-R24) Maximum number of tasks In the QD51 (-R24), a maximum of 2 BASIC programs can be run at a time. (6) PCRD/PCWT command The processing codes shown below cannot be executed with respect to the Q/QnA CPU.
  • Page 152 APPENDIX MELSEC-Q PCWT command Processing codes used in the A1SD51S/AD51H-S3 Treatment Contents Processing Code Device memory monitor registration 2(&H2) Random writing to device memory 3(&H3) Writing to expansion file register 4(&H4) Writing to Q/QnA series device memory Expansion file register monitor registration 5(&H5) Processing Code 515 (&H203) Random writing to expansion file register...
  • Page 153: Appendix-3 External Dimensions

    APPENDIX MELSEC-Q Appendix-3 External Dimensions Outside cable diameter 90 (3.54) 4.3 (0.17) 27.4 (1.08) 90 (3.54) 4.3 (0.17) 27.4 (1.08) (Unit : mm (in.)) R1 (Bending radius near the terminal block) : Outside cable diameter R2 (Bending radius near the connector) : Outside cable diameter r1 (Bending radius near crimp contact) : Connectable as long as not bended...
  • Page 154 APPENDIX MELSEC-Q MEMO App - 7 App - 7...
  • Page 155 INDEX Application System........2 - 1 I/O Assignment Settings ......5 - 11 I/O Module, Intelligent Function Module Switch Setting .........5 - 12 BOOT............3 - 61 Input/Output Signals ........3 - 43 Buffer Memory..........3 - 20 Intelligent Function Module Interrupt Point Setting..........5 - 16 Internal Memory ...........3 - 16 Commercially Available Compilation...
  • Page 156 RS-232 Cable Specifications ......3 - 4 RS-232 Connector Specifications....3 - 3 RS-232 Interface Specifications ....3 - 3 RS-422/485 Cable Specifications....3 - 6 RS-422/485 Interface Specifications .... 3 - 5 RS-422/485 Terminal Block Specifications .. 3 - 5 Run Mode ............A - 13 Running a Task ...........
  • Page 157 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.
  • Page 158 Microsoft, Windows, Windows NT, and Windows Vista are registered trademarks of Microsoft Corporation in the United States and other countries. Pentium is a trademark of Intel Corporation in the United States and other countries. Ethernet is a trademark of Xerox Corporation. All other company names and product names used in this manual are trademarks or registered trademarks of their respective companies.

This manual is also suitable for:

Qd51

Table of Contents