MITSUBISHI ELECTRIC MELSEC System Q Programmable Logic Controllers User's Manual (Basic) Serial Communication Modules QJ71C24N/-R2/-R4, QJ71C24/-R2 GX Configurator-SC Art. no.
• 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. For the safety instructions of the programmable controller system, please read the user's manual of the CPU module to use.
[Design Instructions] ! 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.9inch) or more from each other. Not doing so could result in noise that may cause malfunction. • When using the module while values, such as buffer memory set values, are registered in the Flash ROM, do not turn off the power supply for the module loading station nor reset the PLC CPU.
[Wiring Instructions] ! CAUTION • When turning on the power and operating the module after installation and wiring are completed, always attach the terminal cover that comes with the product. There is a risk of electric shock if the terminal cover is not attached. • Perform correct pressure-displacement, crimp-contact or soldering for external wire connections using the tools specified by the manufactures. Incorrect connection may cause short circuits, fire, or malfunction.
[Startup/Maintenance Instructions] ! CAUTION • Do not disassemble or modify each module. Doing so could cause failure, malfunction injury or fire. • Switch all phases of the external power supply off when mounting or removing the module. Not doing so may cause failure or malfunction of the module. • Do not mount/remove the module onto/from base unit more than 50 times (IEC61131-2- compliant), after the first use of the product.
REVISIONS The manual number is given on the bottom left of the back cover. Print Date Dec., 1999 Oct., 2000 Manual Number Revision SH (NA)-080006-A First Printing SH (NA)-080006-B Add the contents of the function version B. Correction Contents, Entire manual (change MELSECNET/10H to MELSECNET/H), About Manuals, About The Generic Terms and Abbreviations, Product Configuration, Section 1.2, 1.2(8), 1.3 POINT, Section 2.2, 2.3, 2.5, 2.6, Section 3.1, 3.6, 3.9, Section 4.2, 4.4.1(2)(a)(Figure), 4.
The manual number is given on the bottom left of the back cover. Print Date Jan., 2003 Manual Number SH (NA)-080006-F Jun., 2004 SH (NA)-080006-G Revision Addition SAFETY PRECAUTIONS, About Manuals, About The Generic Terms and Abbreviations, Product Configuration, Section 1.3, Section 2.1, 2.2, 2.3, 2.5, 2.6, 2.7, Section 3.1, 3.2.1, 3.3.1, 3.6, 3.8, 3.9, Section 4.1, 4.3, 4.4, 4.5, 4.6, 4.7.1, Section 6.1.1, 6.1.2, Section 7.1, 7.2.2, Chapter 8(all), Section 9.1, 9.6, Section 10.1.2(b), 10.1.3(1), 10.
INTRODUCTION Thank you for purchasing the MELSEC-Q series PLC. Before using the equipment, please read this manual carefully to develop full familiarity with the functions and performance of the Q series PLC you have purchased, so as to ensure correct use. Please forward a copy of this manual to the end user. CONTENTS (This manual) SAFETY PRECAUTIONS..............................................................................................................................A- 1 REVISIONS ...................
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION 4- 1 to 33 4.1 Handling Precautions.............................................................................................................................. 4- 1 4.2 Settings and Procedures Prior to Operation .......................................................................................... 4- 2 4.3 Part Names and Functions ..................................................................................................................... 4- 3 4.
7 DATA COMMUNICATION USING THE BIDIRECTIONAL PROTOCOL 7- 1 to 7-28 7.1 Data Reception from the External Device.............................................................................................. 7- 2 7.1.1 Receiving methods........................................................................................................................... 7- 2 7.1.2 Arrangement and contents of the receive area and the receive data ............................................ 7- 4 7.1.
8.6.5 Non procedure monitor/test ............................................................................................................. 8-41 8.6.6 Bidirectional monitor......................................................................................................................... 8-43 8.6.7 PLC CPU monitoring monitor .......................................................................................................... 8-44 8.6.8 Transmission user frame No. designation monitor ...........
10.3.13 Troubleshooting when it is unclear whether the communication error cause is in the Q series C24 or an external device .................................................................................... 10-40 10.3.14 Troubleshooting when data cannot be communicated via modem.......................................... 10-41 10.3.15 Troubleshooting when data cannot be communicated with the ISDN sub-address................ 10-42 10.3.
(Related Manual-1) … Q Corresponding Serial Communication Module User's Manual (Application) SH-080007-G 1 OVERVIEW 1.1 Overview 1.2 Functions Added/Changed by Function Version B 2 USING THE PLC CPU MONITORING FUNCTION 2.1 Overview 2.2 About the PLC CPU Monitoring Function 2.3 Settings for Using the PLC CPU Monitoring Function 2.4 Precautionary Notes for Using the PLC CPU Monitoring Function 3 COMMUNICATIONS BY THE MODEM FUNCTION 3.1 Overview 3.2 System Configuration 3.3 Specifications 3.
(Related Manual-1) … Q Corresponding Serial Communication Module User's Manual (Application) SH-080007-G 13 COMMUNICATING WITH ASCII CODE (ASCIIBIN CONVERSION) 13.1 ASCII-BIN Conversion 13.2 Settings for ASCII-BIN Conversion 13.3 Performing ASCII-BIN Conversion for Data Communicated via Non Procedure Protocol 13.4 Example of Data Communication Using the Non Procedure Protocol 13.5 Performing ASCII-BIN Conversion for Data Communicated Via the Bidirectional Protocol 13.
(Related Manual-2) … Q Corresponding MELSEC Communication Protocol Reference Manual SH-080008-F 1 OVERVIEW 1.1 Overview of the MELSEC Communication Protocol 1.2 Features of the MELSEC Communication Protocol 2 DATA COMMUNICATION USING THE MELSEC COMMUNICATION PROTOCOL 2.1 Types and Applications of Data Communication Frames 2.2 Accessible Range of Each Data Communication Frames 2.3 How to Read the Control Procedures of the MC Protocol 2.4 Access Timing of the PLC CPU Side 2.
About Manuals The following table lists the manuals relating to this product. Please order the desired manual(s) as needed. Related manuals Manual Number (Model Code) Manual Name Q Corresponding Serial Communication Module User's Manual (Application) This manual explains the specifications and operating procedures for the special module functions, the settings for use of special functions, and data-communication method for use with external devices.
The Manual's Use and Structure How to use this manual In this manual, details of the serial communication modules (QJ71C24N, QJ71C24N-R2, QJ71C24N-R4, QJ71C24 and QJ71C24-R2) are organized as shown below, according to their applications. Please use this manual using the contents below as a reference. (1) To learn about features, functions and component parts (a) To learn about features and functions • Chapter 1 describes the features of the serial communication modules.
(3) To learn about data communication functions and detailed explanations (a) To learn about the communication functions • Section 3.4 describes an overview of the serial communication module functions. (b) To learn about detailed explanations of the communication functions • The basic communication methods are described in Chapters 5 to 7. • Special functions are described in the User's Manual (Application).
The structure of this manual The module's buffer memory stores default values that are used as initial settings to execute the data send/receive functions in order to communicate with the external devices. Data can be sent to or received from the external devices using these default values. However, it may be necessary to change the default values, depending on system specifications.
About The Generic Terms and Abbreviations This manual uses the following generic terms and abbreviations to describe the serial communication modules, unless otherwise specified. (1) Generic terms and abbreviations of relevant modules In this manual, the following generic terms and abbreviations are used to indicate the PLC CPU and other modules used for the data-communication functions of the serial communication modules. Module model names are provided when relevant model names are needed to be shown.
(2) Other generic terms and abbreviations This manual uses the following generic terms and abbreviations to explain the data-communication devices for the serial communication module. The names/model names are provided when it is necessary to explicitly identify the model being discussed.
Definitions and Descriptions of Terminology The following table lists the definitions and descriptions of terminology used in this manual and related manuals for the Q series serial communication modules. Terms Description One of the message formats for the serial communication module for performing communication using the MC protocol and ASCII code data. This is the same message format as when communicating using the protocol for the A series A compatible IC frame (Formats 1 to 4) computer link modules.
Terms QnA compatible 4C frame User frame A - 22 Description One of the message formats for the serial communication module for performing communication using the MC protocol and binary code data. This is the same message format as the communication frame using the protocol for the QnA (Format 5) series serial communication modules. • QnA compatible 4C frame (Format 5): QnA extension frame (Format 5) Details are explained in Chapter 3 of the Reference Manual.
Product Configuration The following lists the product configuration of the Q series serial communication modules.
1 OVERVIEW MELSEC-Q 1 OVERVIEW 1 This manual describes the specifications for the QJ71C24N, QJ71C24N-R2, QJ71C24N-R4, QJ71C24, QJ71C24-R2 serial communication module (hereinafter referred to as "Q series C24"), as well as the procedures prior to starting the operation, maintenance, inspection, data communication methods for use with external devices and troubleshooting.
1 OVERVIEW MELSEC-Q 1.2 Features of the Serial Communication Module 1 The following describes the features of the Q series C24. (1) Data communication based on the MELSEC communication protocol (hereinafter referred to as the MC protocol) (Details are explained in the MELSEC Communication Protocol Reference Manual.) (a) External devices can read/write the PLC device data and sequence programs, and can monitor PLC equipment status.
1 OVERVIEW QJ71C24 Q25HCPU MELSEC POWER MELSEC-Q MODE RUN QJ71E71 CH1. ERR. CH2. RUN INIT. OPEN SD CH1. ERR. COM.ERR RD Command 10BASE-T USER BAT. BOOT RS-232 10BASE CH.2 SDA 1 SG PULL USB SDB (FG) RDA RDB 3 4 5 +12V 6 RS-422 /485 MITSUBISHI Command request data 2 (FG) RS-232 12G 7 MELSECNET/H (MELSECNET/H mode) QJ71C24 Q25HCPU MELSEC POWER MODE RUN QJ71E71 CH1. ERR. CH2. RUN INIT. OPEN SD QJ71C24 Q25HCPU MELSEC ERR. COM.
1 OVERVIEW MELSEC-Q (d) It is necessary to create a sequence program for communication control that conforms to the external device. (e) Communication can be performed using an user frame by registering the fixed format portion of the head and tail sections of a message as an user frame. • When sending data, the Q series C24 adds an user frame to any data specified by the user. • When receiving data, the Q series C24 transfers any data excluding the user frame to the PLC CPU.
1 OVERVIEW MELSEC-Q (4) Monitoring the PLC CPU (Details are explained in the User's Manual (Application).) (a) The self-station's PLC CPU can be monitored at time intervals set by the user without using a sequence program. 1) The following monitoring information can be sent/notified as the result of monitoring the PLC CPU. • Transmission of information on devices and the PLC CPU status to be monitored. (It is also possible to send the monitoring information through combined use of the modem function.
1 OVERVIEW MELSEC-Q (7) Connecting the GX Developer and the GOT (a) Connecting the GX Developer (Details are explained in the GX Developer Operating Manual.) • By connecting a PC installed with a GX Developer to the interface of the Q series C24 at the same time, operations such as programming, monitoring and testing for the PLC CPU can be performed.
1 OVERVIEW MELSEC-Q (8) Functions supporting multiple CPU systems (Details are explained in the Reference Manual.) (a) When accessing QCPUs in a multiple CPU system using the MC protocol or through GX Developer, it is possible to perform data communication such as reading/writing device data by specifying the QCPU to be accessed. • When using the Q series C24 in a multiple CPU system, a QCPU controlling the Q series C24 (hereinafter referred to as the control PLC) should be specified using GX Developer.
1 OVERVIEW MELSEC-Q 3) It is possible to access the control PLC and non-control PLCs using the MC protocol and through GX Developer from the external device. In addition, data communication with the control PLC of the Q series C24 can be performed using the non procedure/bidirectional protocol.
1 OVERVIEW MELSEC-Q (9) Remote password check function (Details are explained in the User's Manual (Application) and the Reference Manual.) (a) The remote password check function of the Q series C24 prevents users at a remote location to access QCPUs illegally using the modem function of the Q series C24.
1 OVERVIEW MELSEC-Q 1.3 About Added/Changed Functions in Function Version B The table below lists the functions that have been added or changed in the Q series C24 of function version B. See Section 2.6 for the function version, serial NO. and software version of products (CPU module, GX Developer, GX Configurator-SC) related to the Q series C24 which can use added/changed functions. See Appendix 1.1 concerning a comparison of functions in the different Q series C24 function versions.
1 OVERVIEW Function MELSEC-Q QJ71C24N (-R2/R4) QJ71C24 (-R2) Outline of function Reference section Multiple specification of transparent codes for transmission This function allows specification of a maximum of 10 types of transparent codes for transmission per interface when sending data using one of the following protocols: • Non procedure protocol • Bidirectional protocol Switching to the GX Developer connection mode by switching the mode This functions allows the GX Developer connection mode t
2 SYSTEM CONFIGURATION AND AVAILABLE FUNCTIONS MELSEC-Q 2 SYSTEM CONFIGURATION AND AVAILABLE FUNCTIONS This Chapter describes the system configuration and available functions. 2.1 Applicable Systems 2 The following describes applicable systems. (1) Applicable modules and number of modules that can be mounted The following table lists the CPU module and network modules (for remote I/O stations) that the Q series C24 can be mounted and the number of modules which can be mounted.
2 SYSTEM CONFIGURATION AND AVAILABLE FUNCTIONS MELSEC-Q (4) Applicable software packages (a) Software/setting & monitor tools ( 1) for the PLC The following table lists the systems and software packages applicable for the Q series C24. When using the Q series C24, GX Developer is required.
2 SYSTEM CONFIGURATION AND AVAILABLE FUNCTIONS MELSEC-Q 2.2 Combinations of PLC CPU and External Device, and Available Functions The following describes the system configurations and available functions when using the Q series C24. (1) System configurations System configurations (combinations of PLC CPU and external device) for data communication are shown below. (a) External device and Q series C24 with 1:1 system configuration RS-232/422 QJ71E71 Q25HCPU MELSEC POWER MODE RUN RUN INIT.
2 SYSTEM CONFIGURATION AND AVAILABLE FUNCTIONS (c) MELSEC-Q External device and Q series C24 with 1:n system configuration RS-485 POWER QJ71C24 QJ71E71 Q25HCPU MELSEC ERR. COM.ERR RUN INIT. OPEN SD MODE RUN Q25HCPU MELSEC CH1. POWER CH2. MODE RUN RD ERR. QJ71C24 QJ71E71 ERR. COM.ERR RUN INIT. OPEN SD RUN BOOT 10 BASE 10 BASE 12G MITSUBISHI Q25HCPU MODE RS-232 6 RS-422 /485 RUN ERR. QJ71E71 RUN INIT. OPEN SD MITSUBISHI 7 QJ71C24 ERR. COM.
2 SYSTEM CONFIGURATION AND AVAILABLE FUNCTIONS MELSEC-Q (2) Correspondence between the data communication functions and system configurations The following shows system configurations that can use the data communication functions of the Q series C24.
2 SYSTEM CONFIGURATION AND AVAILABLE FUNCTIONS MELSEC-Q 2.3 For Use in Multiple CPU System This section explains the use of the Q series C24 in a multiple CPU system. (1) When making access from the external device to the non-control CPU of the Q series C24 using either of the following functions, use the Q series C24 of function version B. When the Q series C24 of function version A is used, only the control CPU can be accessed. (Access to the non-control CPU will result in an error.
2 SYSTEM CONFIGURATION AND AVAILABLE FUNCTIONS MELSEC-Q 2.4 For Use with Q00J/Q00/Q01CPU This section describes the use of the Q series C24 with the Q00J/Q00/Q01CPU. (1) Available functions The following table indicates the functions that can be used when the Q series C24 is mounted in the Q00J/Q00/Q01CPU.
2 SYSTEM CONFIGURATION AND AVAILABLE FUNCTIONS MELSEC-Q 2.5 For Use at MELSECNET/H Remote I/O Station This section describes the use of the Q series C24 at a MELSECNET/H remote I/O station. It is not necessary to read this section if the Q series C24 is used with the QCPU.
2 SYSTEM CONFIGURATION AND AVAILABLE FUNCTIONS MELSEC-Q 1 The following functions are available when communicating with the MELSECNET/H remote I/O station using the MC protocol.
2 SYSTEM CONFIGURATION AND AVAILABLE FUNCTIONS MELSEC-Q 3 The dedicated instructions are unavailable for the MELSECNET/H remote I/O station. For the functions that use the dedicated instructions to make communication, perform programming by the following methods. Dedicated instruction FROM, TO Method Perform programming using the REMFR/REMTO instruction. ONDEMAND Explanation section Appendix 9.2 Appendix 9.3 INPUT Perform programming using the REMFR/REMTO instruction OUTPUT and I/O signal.
2 SYSTEM CONFIGURATION AND AVAILABLE FUNCTIONS MELSEC-Q (3) Setting from GX Developer The following parameters should be set through GX Developer in order to use the Q series C24 mounted to a MELECNET/H remote I/O station. Each of setting is the same way as when setting the parameters for the Q series C24 mounted to a QCPU station: see Section 4.5 and after. See the operating manual for GX Developer for how to display each setting screen.
2 SYSTEM CONFIGURATION AND AVAILABLE FUNCTIONS MELSEC-Q 2.6 Checking the Function Version, Serial No., and Software Version This section explains how to check the the function version, serial No. and software version of related products that can use the functions added by the improvement of the Q series C24.
2 SYSTEM CONFIGURATION AND AVAILABLE FUNCTIONS MELSEC-Q (b) Using the GX Developer to check The method of checking the serial No. and function version of the corresponding module with the GX Developer is shown. The serial No. and function version are displayed on the GX Developer "Product Information List" or "Module's Detailed Information" screen. The method of checking the serial No. and function version on the "Product Information List" screen is shown below. (See Section 10.1.
2 SYSTEM CONFIGURATION AND AVAILABLE FUNCTIONS MELSEC-Q REMARK The version indication for the GX Configurator-SC has been changed as shown below from the SW0D5C-QSCU-E 40E upgrade product. Previous product Upgrade and subsequent versions SW0D5C-QSCU-E 40E GX Configurator-SC Version 1.
3 SPECIFICATIONS MELSEC-Q 3 SPECIFICATIONS The following shows the Q series C24 performance specifications. See the User's Manual of the QCPU (Q mode) for general specifications. 3.1 Performance Specifications The following shows the Q series C24 performance specifications. For the transmission specifications when communicating via the modem function, see this section and Chapter 3 of User's Manual (Application).
3 SPECIFICATIONS MELSEC-Q (Continued from preceding page) Specifications Item QJ71C24N QJ71C24 Transmission control QJ71C24N-R2 QJ71C24-R2 QJ71C24N-R4 RS-232 RS-422/485 DTR/DSR (ER/DR) control Enabled Disabled RS/CS control Enabled Disabled CD signal control Enabled Disabled DC1/DC3 (Xon/Xoff) control DC2/DC4 control Enabled Enabled • DTR/DSR signal control and DC code control are selected by the user.
3 SPECIFICATIONS MELSEC-Q 3.2 RS-232 Interface Specification The following shows the RS-232 interface specifications. 3.2.1 RS-232 connector specifications The following shows the specifications of the RS-232 connector that connects the Q series C24 to an external device.
3 SPECIFICATIONS MELSEC-Q 4) DTR signal (4) • When communicating data using the non procedure protocol, the Q series C24 turns on or off (on when data is receivable) depending on the amount of unused memory in the OS area allocated for receive data storage, if DTR/DSR control is being performed. Read the receive data from the sequence program, as the receive data is stored in the OS area when the DTR signal is OFF. If DTR/DSR control is not implements, the DTR signal is always ON.
3 SPECIFICATIONS MELSEC-Q REMARK (1) Confirmation of RS-232 control signal status The control signal status of DTR, DSR, RS, and CD can be confirmed during data communication by the RS-232 control signal status storage area (address 254H, 264H) of the GX Configurator-SC or Q series C24 buffer memory.
3 SPECIFICATIONS MELSEC-Q 3.3 RS-422/485 Interface Specifications The following shows the RS-422/485 interface specification. 3.3.1 RS-422/485 terminal block specifications The following shows the specifications of the RS-422 connector and RS-422/485 terminal block that connect to an external device.
3 SPECIFICATIONS MELSEC-Q 3.3.2 RS-422/485 cable specifications The following shows the RS-422/485 cable specification. (1) Use a 1200 m (3937 ft.), or shorter, cable that satisfies the following specification for the RS-422/485 cable (cable to connect the Q series C24 terminal block). (2) Make the total distance within 1200 m (3937 ft.) when two or more device are connected in a 1:n or m:n configuration. (3) The RS-422/485 cable specification is shown below.
3 SPECIFICATIONS MELSEC-Q 3.3.3 Precautions when transferring data using RS-422/485 circuit The following precautions must be observed when transferring data with an external device through the Q series C24 RS-422/485 interface. Take the following into account when the transferring data with the external device.
3 SPECIFICATIONS MELSEC-Q (2) RS-422/485 interface operation 1) RS-422-485 interface construction The following illustration shows the construction of the Q series C24 RS422/485 interface driver (send)/receiver (receive). SDR Driver Send data SDB RDA Output control input ( 1) Receiver Receive data 1 "Output control input" (also called send gate) of the driver (send) section of the illustration at the left determines whether or not data from SDA/SDB is output to the outside.
3 SPECIFICATIONS MELSEC-Q POINT (1) When the external device and the Q series C24 connected in n:1 and m:n configurations When the send signal of each device is connected as shown below, if the "Output control input" is turned ON at two or more devices, the relevant devices output (send) data at the same time. For the external device to transfer data normally, • "Output control input" must be turned ON only when sending data. • "Output control input" must be turned OFF when not sending data.
3 SPECIFICATIONS MELSEC-Q 3.4 Serial Communication Module Function List The following table lists the functions of the Q series C24. Function Reference section Communication with QnA compatible 3C frame Communication with ASCII code Communication with QnA compatible 4C frame Communication with QnA compatible 2C frame Formats 1 to 4 exist for each.
3 SPECIFICATIONS MELSEC-Q 3.5 Dedicated Instruction List The following table lists dedicated instructions that can be used in the Q series C24.
3 SPECIFICATIONS MELSEC-Q 3.6 Utility Package (GX Configurator-SC) Function List The following table lists the utility package function for the Q series C24. ( Function Auto refresh setting Refresh the Q series C24's error codes and set devices on the PLC CPU side. User frame Register the user frame in the flash ROM. : Protocol for which setting is valid) NonBidirectional MC procedure protocol protocol Explanation page Section 4.6 — Section 8.4.
3 SPECIFICATIONS MELSEC-Q 3.7 List of GX Developer Setting Items for Serial Communication Modules The following table lists the parameters that are set using the GX Developer.
3 SPECIFICATIONS MELSEC-Q 3.8 List of Input/Output Signals for the PLC CPU This section describes the input/output signals of the Q series C24. For assignments of the input/output signals shown in the table below, it is assumed that the Q series C24 is mounted in slot 0 of the basic base unit. Device numbers starting with X indicate input signals from the Q series C24 to the PLC CPU, and device numbers starting with Y indicate output signals from the PLC CPU to the Q series C24.
3 SPECIFICATIONS Device number MELSEC-Q Signal description X1A CH1 Global signal ON: Output instructed X1B CH2 Global signal ON: Output instructed X1C System setting default completion ON: Completed X1D (For system) Reference section Device number Section 3.10, Reference Y1A Section 8.4.
3 SPECIFICATIONS MELSEC-Q 3.9 List of Applications and Assignments of the Buffer Memory This section describes the buffer memory. (1) Configuration of the buffer memory A buffer memory consists of a user area and a system area, as shown below. (a) User area 1) This is the area where users write/read data. 2) The user area consists of areas for storing setting values for data communication, for actual data communication, and for storing communication status and communication error information.
3 SPECIFICATIONS MELSEC-Q POINT (1) Use the FROM/TO instructions or other applicable commands to access the buffer memory shown in this section when a program for a QnA series serial communication module is utilized for the Q series C24 (see Section 2 in Appendix). In QCPU, the access to the buffer memory of an intelligent function module is executed with a dedicated instruction.
3 SPECIFICATIONS Address Decimal (Hex) CH1 CH2 MELSEC-Q Application Initial value Name Applicable protocol MC Non Bi Registration allowed/not allowed Reference section Not allowed Section 8.6.10 Section 10.1.1 Section 10.1.2 Not allowed Section 8.4.1 Section 8.4.2 Section 8.4.11 Section 8.4.
3 SPECIFICATIONS Address Decimal (Hex) CH1 CH2 Application MELSEC-Q Initial value Name Applicable protocol MC Non Bi Registration allowed/not allowed Reference section Switching mode no.
3 SPECIFICATIONS Address Decimal (Hex) CH1 CH2 152 (98H) 153 (99H) Application For designation 312 of communica(138H) tion control MELSEC-Q Name 160 320 For designation (A0H) (140H) of on-demand 321 function 161 (A1H) (141H) 322 162 For designation (A2H) (142H) of transmission 323 area 163 For data reception 326 166 (A6H) (146H) For designation of reception area 327 167 (A7H) (147H) 328 For data 168 (A8H) (148H) reception 169 (A9H) 170 (AAH) 171 (ABH) 172 (ACH) 329 (149H) 330 For designation (14AH)
3 SPECIFICATIONS Address Decimal (Hex) CH1 CH2 Application MELSEC-Q Name User frame being transmitted 0 : Not send 1 to 100: User frame being transmitted (nth) CR/LF output designation 183 343 0: Do not send. 1: Send.
3 SPECIFICATIONS Address Decimal (Hex) CH1 CH2 MELSEC-Q Application Name Initial value Applicable protocol MC Non Bi Registration allowed/not allowed Reference section Not allowed Section 4.3 Section 4.5.2 Section 8.6.9 Switch setting error and mode switching error status 0: No error Other than 0: Switch setting error and mode switching error 515 (203H) For confirmation of switch setting and mode switching 516 (204H) CH1 Communication protocol setting No.
3 SPECIFICATIONS Address Decimal (Hex) CH1 CH2 Application For confirmation 551 to 552 of modem (227H to 228H) function 554 (22AH) 555 to 557 (22BH to 22DH) For confirmation 558 to 561 of notification (22EH to 231H) status 562 to 565 (232H to 235H) Initial value Applicable protocol MC Non Bi 0 R Registration allowed/not allowed Reference section Data registration status for initialization (for confirmation of registration No.) 0: No registration 1: Registered Bit corresponding to registration No.
3 SPECIFICATIONS Address Decimal (Hex) CH1 CH2 Application 597 613 (255H) (265H) 598 614 (256H) (266H) 599 615 For confirmation (257H) (267H) of communication result 600 616 (258H) (268H) 601 617 (259H) (269H) MELSEC-Q Name Transmission sequence status (For confirmation of MC protocol communication status) 0: Waiting for receiving command 1: Receiving command 2: Command reception complete 3: Waiting to access PLC CPU 4: Accessing PLC CPU 5: PLC CPU access complete 6: Response message transmission On-d
3 SPECIFICATIONS Address Decimal (Hex) CH1 CH2 Application MELSEC-Q Name Initial value Applicable protocol MC Non Bi 7486 to 7526 (1D3EH to 1D66H) 7527 to 7567 (1D67H to 1D8FH) 7568 to 7608 (1D90H to 1DB8H) 7609 to 7649 (1DB9H to 1DE1H) 7650 to 7690 (1DE2H to 1E0AH) 7691 to 7731 (1E0BH to 1E33H) 7732 to 7772 (1E34H to 1E5CH) 7773 to 7813 (1E5DH to 1E85H) 7814 to 7854 (1E86H to 1EAEH) 7855 to 7895 (1EAFH to 1DE7H) 7896 to 7936 (1ED8H to 1F00H) 7937 to 7977 (1F01H to 1F29H) 7978 to 8018 (1F2AH to 1F52H
3 SPECIFICATIONS Address Decimal (Hex) CH1 CH2 8206 (200EH) 8207 (200FH) Application For designation of modem function -3 8456 to 8463 (2108H Use prohibited to 210FH) MELSEC-Q Name Circuit disconnect wait time (PLC CPU watch use) 0000H to FFFFH: Wait time (unit: s) Reference section Allowed Section 8.4.4 Chapter 3 of User's Manual (Application) Allowed User's Manual — 1: Issue interrupt.
3 SPECIFICATIONS Address Decimal (Hex) CH1 CH2 MELSEC-Q 8256 8512 (2040H) (2140H) 8257 8513 (2041H) (2141H) 8514 8258 (2042H) (2142H) 8515 8259 (2043H) (2143H) For designation of PLC CPU monitoring function 8516 8260 (2044H) (2144H) 8261 8517 (2045H) (2145H) 8262 8518 (2046H) (2146H) 8263 to 8519 to 8268 8524 (2047H to (2147H to Use prohibited 204CH) 2149H) Cycle time units designation 0: 100 ms 1: s 2: min Cycle time designation 0H : No designation 1H to FFFFH: PLC CPU monitoring cycle time PLC CPU
3 SPECIFICATIONS Address Decimal (Hex) CH1 CH2 8422 Application Name 8678 (20E6H) (21E6H) 8423 8679 For designation of PLC CPU monitoring function (20E7H) (21E7H) 8424 MELSEC-Q CPU abnormal Use Prohibited 8449 (2101H) 8450 (2102H) 8451 (2103H) 8452 (2104H) For callback 8453 (2105H) function 8454 (2106H) 8455 (2107H) 8456 (2108H) 8457 (2109H) 8458 (210AH) 8704 to 8960 to 8707 8963 Use prohibited (2200H to (2300H to 2203H) 2303H) 8964 Output count designation (for condition agreement designat
3 SPECIFICATIONS Address Decimal (Hex) CH1 CH2 Application MELSEC-Q Name 8944 (22F0H) Callback permit accumulated count 0 or more : Accumulated count 8945 (22F1H) Callback denial accumulated count 0 or more : Accumulated count 8946 (22F2H) For callback function Auto (callback) connection permit accumulated count 0 or more : Accumulated count 8947 (22F3H) Auto (callback) connection denial accumulated count 0 or more : Accumulated count 8948 (22F4H) Accumulated count of callback receive procedu
3 SPECIFICATIONS MELSEC-Q [CH1 side buffer memory address: decimal (hexadecimal)] nth block monitoring device 5 6 1 2 3 4 8272 (2050H) 8281 (2059H) 8290 (2062H) 8299 (206BH) 8308 (2074H) 8273 to 8274 (2051H to 2052H) 8282 to 8283 (205AH to 205BH) 8291 to 8292 (2063H to 2064H) 8300 to 8301 (206CH to 206DH) 8275 (2053H) 8284 (205CH) 8293 (2065H) 8376 (2054H) 8385 (205DH) 8277 (2055H) 8278 (2056H) 8279 (2057H) 8280 (2058H) Name 7 8 9 10 8317 (207DH) 8326 (2086H) 8335 (208FH) 8344
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q 4 SETTINGS AND PROCEDURES PRIOR TO OPERATION This chapter explains the settings and procedures required before starting a system that uses the Q series C24. POINT (1) When using the Q series C24, please read the safety precautions at the beginning of this manual. (2) The installation and setup methods of the Q series C24 are the same as those for CPU modules. (3) For module installation and setup, see the user's manual for the PLC CPU used. 4.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q 4.2 Settings and Procedures Prior to Operation The outline of the procedure before operation is shown below. Start Check which functions and specifications are to be used • Connection of the Q series C24 and an external device • See Section 4.4 in this manual.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q 4.3 Part Names and Functions Part names of Q series C24 are shown below. QJ71C24N QJ71C24 ( 1) QJ71C24N-R2 QJ71C24-R2 ( 2) QJ71C24N 1) CH1 RUN NEU. SD RD QJ71C24N-R4 QJ71C24N-R2 ERR. NEU. SD CH2 RD 1) CH1 RUN NEU. SD RD QJ71C24N-R4 ERR. NEU. SD CH2 RD 1) CH1 RUN NEU. SD RD ERR. NEU.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q (1) LED display list QJ71C24N CH1 CH — LED RUN NEU. SD RD QJ71C24N-R2 ERR. NEU. SD CH2 RD CH1 Display contents RUN Normal operation display ERR Error display ( 1) RUN NEU. SD RD QJ71C24N-R4 ERR. NEU.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q 4.4 External Wiring This section explains wiring between the Q series C24 and external device. As the wiring precautions, external wiring which is resistant to the effects of external noise is a prerequisite for reliable system operation and full use of the Q series C24 function. (1) Ground the shield at only one point. (2) When connecting with an external device using an RS-232 line, use a connector shell as specified in Section 3.2.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q 4.4.1 Connecting the RS-232 interface (full-duplex communications) The following shows the connection precautions and connection examples when using the Q series C24 RS-232 interface for full-duplex communications. (1) Connection precautions (a) For further information about the following items, see the explanation in the applicable section in the User's Manual (Application).
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q (2) Connection examples (a) Connection example with an external device capable of turning on and off the CD signal (No. 1 pin) Q series C24 Signal name Pin No. CD 1 2 RD(RXD) External device Signal name CD RD(RXD) 3 4 5 SD(TXD) DSR(DR) RS(RTS) 6 7 CS(CTS) RI(CI) 8 9 CS(CTS) SD(TXD) DTR(ER) SG DSR(DR) DTR(ER) SG RS(RTS) The CD terminal check setting is set according to the specification of the external device.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q 4.4.2 Connecting the RS-422/485 interface The following shows the connection precautions and connection examples when using the Q series C24 RS-422/485 interface. (1) Connection precautions (a) When connecting the Q series C24 SG and FG signals to the external device, connect them according to the specifications of the external device. (b) Connect the shield of the connection cable to the FG terminal on either of the connected devices.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q (c) Terminal resistor must be set (or connected) for the station of both ends on the circuit. Match the Q series C24 to the specifications of the external device and connect a terminal resistor (packed with the Q series C24) according to this section. Connect, or set a terminal resistor at the external device according to the instruction manual of the external device.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q (b) External device and Q series C24 with 1:n (multidrop) system configuration 1) Connection example C24 1) External device SDA SDA SDA SDB SDB SDB RDA RDA RDA RDB RDB RDB SD SG SG SG RD FG FG R R RS-232 SD RD C24n C24 2) RS-422/485 cable R R FG RS-422/485 cable Linked operation Terminal resistor R 2) Connection example 2 External device C24 1) C24 2) SDA SDA SDA SDA SDB SDB SDB SDB RDA RDA RDA RDA RDB R
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q (d) External device and Q series C24 with m:n (multidrop) system configuration 1) Connection example 1 External device 1) External device 2) RS-232 RS-232 SD SD RD RD C24 1) C24 2) SD SD RD RD C24n R SDA SDA SDB SDB SDB RDA RDA RDA RDB RDB SG SG FG SDA R RDB SG FG RS-422/485 cable FG RS-422/485 cable Linked operation Terminal resistor R Linked operation 2) Connection example 2 External device 1) R C24 1) Extern
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q 4.5 Settings for GX Developer This chapter explains various settings via GX Developer that allow the Q series C24 to perform data communication with external devices. See Section 3.3.3 of the User's Manual (Application) for how to perform the remote password setting. 4.5.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q 4.5.2 Switch settings for I/O and intelligent functional module [Setting purpose] The switch settings for I/O module and intelligent functional module perform the settings for transmission specifications and communication protocol for communicate with external devices. [Setting procedure] [GX Developer] [PLC parameters] [I/O assignment setting] Switch setting . For screen display, see the GX Developer Operating Manual.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q (a) Transmission setting (CH1 side: switch 1 (lower level); CH2 side: switch 3 (lower level)) b7 b6 b5 b4 b3 b2 b1 b0 CH1 side CH2 side Bit Description OFF (0) ON (1) b0 Operation setting Independent Link Remarks Must be set to OFF on CH1 b1 Data bit 7 8 b2 Parity bit NO Yes Vertical parity Parity bit is not included b3 Even/odd parity Odd Even Valid only when parity bit is set to Yes — b4 Stop bit 1 2 b5 Sum check c
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q 4) Even/odd parity setting This sets whether the parity bit (vertical parity) should be odd parity or even parity when adding the parity bit (vertical parity), according to the specifications of the external device. 5) Stop bit setting This sets the stop bit length for one character in data communicated with an external device, according to the specifications of the external device.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q (b) Communication rate setting (CH1 side: switch 1 (upper level); CH2 side: switch 3 (upper level)) 1 2 3 Communication rate (Unit: bps) Bit position Communication rate (Unit: bps) Bit position b15 to b8 Remarks b15 to b8 50 0FH 14400 06H 300 00H 19200 07H 600 01H 28800 08H 1200 02H 38400 09H 2400 03H 57600 0AH 4800 04H 115200 0BH 9600 05H 230400 0CH Try lowering the communication rate when data cannot be communicated
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q (d) Station number setting (switch 5 (common for both CH1 and CH2 sides)) • This setting is for communication using the MC protocol. • When several the Q series C24s are connected on the same line with multidrop connection, set the station number designated in the data items of the transmission frame in each external device to 0 to 31 (0H to 1FH). This number designates which external device is to be communicated with the Q series C24.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q (b) Do not use the above settings for the following cases, because linked operation cannot be performed. 1) 2) 3) 4) When using the QJ71C24N-R2 or QJ71C24-R2. When an external device is not connected to either of the interfaces. When the bidirectional protocol is used for data communication.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q In linked operation, all data received from one of the two interfaces is transmitted from the other interface. In this case, exclusive control of the received data is necessary when data is communicated using the nonprocedure protocol since all the connected stations receive the data.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q 4.5.3 The Intelligent function module interrupt pointer setting The following explains the interrupt pointer setting with GX Developer in order to receive data using an interrupt program. For the method to receive data using an interrupt program, see User's Manual (Applications) Chapter 4.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q (3) Start I/O No. on the intelligent module (unit) side Set the start I/O No. for the Q series C24. (4) Start SI No. on intelligent module (unit) side 1) Assign control numbers (SI) on the Q series C24 side to the interrupt pointers (Ixx) used in the sequence program. 2) Set the start SI No. (0) of the interrupt control numbers. 3) The interfaces for data reception corresponding to the interrupt control numbers are as follows: SI No.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q 4.6 Settings with the Utility Package (GX Configurator-SC) The settings defined with GX Configurator-SC for operation of the Q series C24 are described in Chapter 8. The following concerns the data set from GX Configurator-SC. 1) Data set in the Q series C24 for the use of specific functions 2) Data set in the PLC CPU to communicate information between the Q series C24 and the PLC CPU of the mounting station.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q [Setting items] Setting item Buffer memory address Flash ROM access register/read/delete result CH1/CH2 LED ON status, communication error status ( Switch setting error, mode switching error status ( 4H 1 ) 201H /202H 1 ) 203H Number of registered user frame 204H Flash ROM system parameters write result 220H Modem function error code 221H Modem function sequence status 222H Number of data registrations for connection 223H Number of d
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q (1) Devices (a) Set the word device of the PLC CPU which stores error and status information in the setting item field when using the auto refresh function between the Q series C24 and the PLC CPU. (b) The devices used must be of the types X, Y, M, L, B, T, C, ST, D, W, R, or ZR. If bit devices of types X, Y, M, L, or B are used, a number that can be divided by 16 points (e.g., X30, Y120, M16, etc.) should be specified.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q 4.7 Individual Station Test After installing the Q series C24 to the base unit of QCPU, perform an individual station test first to check the switch setting (see Section 4.5.2) and operation of the Q series C24. POINT (1) When a problem occurs during data communication with an external device, perform an individual station test as described in this section to check whether or not there is any problem in the operation of the Q series C24.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q (2) Restart the PLC CPU station or reset the CPU. The test starts automatically in about one second. (3) For the Q series C24, the following tests should be performed once. 1) ROM check Read the ROM data and verify the sum check. 2) RAM check Write data to RAM, and read and check it. 3) Switch check Check whether or not each switch is set within the tolerance range and the operation setting in the transmission settings is set to off.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q (Procedure 4) Ending a ROM/RAM/switch test (1) Perform the following procedures after checking normal completion/abnormal completion of the test results. Normal completion : Perform operation (2) to finish tests. Upon error occurrence : When an error occurs in a switch check or linked operation setting check, set the correct values and test again. When an error occurs in a ROM or RAM check, check the mounting status of module and test again.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q 4.7.2 Individual station loopback test The individual station loopback test checks the operation of the communication function of the Q series C24. Follow the procedure below to perform an individual station loopback test. (Procedure 1) Connecting cable (1) Connect cables to two interfaces as follows. • Connect cables to the RS-232 interface within the connector and install it to the interface.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q (Procedure 4) Checking the results of an individual loopback test (1) This test is performed repeatedly. When the ERR LED is off, the test is being executed normally. (2) The test is completed with an error when the ERR LED is lit. Check the error description on one of the following screens. (The ERR LED is lit upon error occurrence, and the test is completed.) • The "Monitor/test others" screen of GX Configurator-SC (see Section 8.6.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q 4.8 Loopback Test A loopback test performs a communication test using the loopback test function of the MC protocol, in order to check the connection between the Q series C24 and an external device, the communication function of each device, and the operation of the communication program of the external device.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q (Procedure 5) Ending the loopback test Perform the following procedure according to the function used, and start data communication. • Set the switch settings with GX Developer according to the procedure specified in Section 4.5.2. • Turn on the power to the station on which the Q series C24 is installed. An example of control procedure when the TT command is used in the loopback test mentioned in Procedure 3.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q 4.9 Maintenance and Inspection This section explains the maintenance and inspection and installing and removing of the Q series C24. 4.9.1 Maintenance and inspection The Q series C24 has no special inspection items other than below. For items other than listed below, perform inspection according to the inspection items listed in the User's Manual of the PLC CPU module in order to always use the system in the optimal condition.
4 SETTINGS AND PROCEDURES PRIOR TO OPERATION MELSEC-Q 4.9.2 When mounting/dismounting the module Please read 4.1, "Handling Precautions" before mounting or dismounting the module, and make sure to pay attention to safety and handle the module properly during the operation. When replacing the Q series C24 and QCPU, it becomes necessary to register the following data on the Q series C24 again for the module to be replaced.
5 DATA COMMUNICATION USING THE MELSEC COMMUNICATION PROTOCOL MELSEC-Q 5 DATA COMMUNICATION USING THE MELSEC COMMUNICATION PROTOCOL This chapter explains an overview of the MELSEC communication protocol (hereinafter abbreviated as the MC protocol). See the following manual for a detailed explanation of the data communication functions that are available when using the MC protocol. Q Corresponding MELSEC Communication Protocol Reference Manual (SH-080008) 5.
5 DATA COMMUNICATION USING THE MELSEC COMMUNICATION PROTOCOL MELSEC-Q (4) Monitoring the PLC CPU This function monitors the operating status of the PLC CPU and the data in the device memory. The PLC CPU status and the device memory data can be sent to the external device at fixed intervals, when an error occurs in the machine equipment, or when certain conditions are satisfied. This function reduces the data read processing load on the external device side.
5 DATA COMMUNICATION USING THE MELSEC COMMUNICATION PROTOCOL MELSEC-Q (2) System settings using the GX Configurator-SC When it is necessary to change the default values registered in the Q series C24, perform the settings as indicated in Chapter 8 and register these to the flash ROM in the Q series C24.
5 DATA COMMUNICATION USING THE MELSEC COMMUNICATION PROTOCOL MELSEC-Q 5.1.5 Support for the QCPU remote password function This section explains an overview of the remote password function when a remote password is set for the Q series C24 mounted to a QCPU. See Chapter 3 of the User's Manual (Application) for a detailed explanation.
5 DATA COMMUNICATION USING THE MELSEC COMMUNICATION PROTOCOL MELSEC-Q REMARK The remote password should be set to a QCPU using GX Developer in order to use the remote password function of QCPU. • Unlocking the remote password is possible only for the QCPU of the local station with the Q series C24. It is impossible to unlock the remote password for the QCPU of other stations. See Section 3.18 of the Reference Manual for the command for unlocking the remote password.
5 DATA COMMUNICATION USING THE MELSEC COMMUNICATION PROTOCOL MELSEC-Q (b) Modem function monitor/test by GX Configurator-SC It is possible to monitor the setting values for the remote password and the number of occurrences up to the present, such as the designation of the number of times before notifying an unmatched remote password and the current number of occurrences. It is possible to set each monitor value to "0.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q 6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL Data communication using the non procedure protocol is a function for sending and receiving data between a PLC CPU and an external device using the message format and transmission control procedure specified by the user.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q 6.1 Data Reception from the External Device This section explains data reception from the external device. There are two methods for receiving data: the "reception via receive complete code" for receiving variable length messages, and the "reception via received data count" for receiving fixed length messages.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q (1) Data reception by receive complete code (for variable length reception) (a) This method is used to send data by adding the receive complete code set in the Q series C24 at the complete of the message to be sent from the external device. (b) When the Q series C24 receives the receive complete code data preset in GX Configurator-SC by the user, it sends a receive data read request to the sequence program.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q • If the next data (LF, etc.) is not received within the time set in the non reception monitoring time (timer 0) after CR is received, the Q series C24 stores the received data up to CR to the buffer memory receive data storage area and turns on the following signals to the PLC CPU.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q (2) Reception by received data count (For fixed length reception) (a) This method is used to receive messages of the same length (size) from the external device every time. (b) When the Q series C24 receives data of the received data count preset in GX Configurator-SC by the user, it sends a reception data read request to the sequence program.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q 6.1.2 The receive area and the received data list The following shows the list of the receive area and the receive data for performing data reception using the non procedure protocol. (1) Receive area The receive area is a memory area for storing the data received from the external device and the receive data count in order to read the receive data for the PLC CPU.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q POINT (1) The position and size of the receive area in the buffer memory can be changed with the GX Configurator-SC in accordance with the specifications of the external device and the receive data length. (See Section 8.4.7.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q (2) Receive data list The following describes the data list when data received from an external device is stored to the receive area. 1) The receive message is stored to the Q series C24 buffer memory (receive data storage area). 2) The data is stored to the receive data storage area in low address (L) (H), next address (L) (H) order.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q REMARK (1) Data reception when the receive data storage area is larger than the receive data length The following control is performed. (Example) When the receive area for the CH1 side interface is located at addresses 600H to 7FFH (default values) and data of 511 words or less is received by the CH1 side interface.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q 2) Reception by received data count When the received data count is set larger than the receive data storage area, the receive buffer memory length (default: 512 words) -1 set in buffer memory addresses A7H/147H is processed as the received data count.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q 6.1.3 Sequence program for data reception This section explains the sequence program for data reception. For details on the INPUT instruction for data reception, see Chapter 9. (CH1 side) X3 Read request Create control data from D0 Abnormal detection X4 G.INPUT M0 Un D0 D10 M0 M1 Processing for normal completion (receive data is stored) M1 Processing for abnormal completion (Reading and discarding received data, resent request, etc.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q 4) The device completing the INPUT instruction turns ON when the reading of receive data is completed. When the complete device + 1 (abnormal completion signal) turns ON, the error code is stored in the control data completion status (S1 + 1). (Program example) When the Q series C24 I/O signals are from X/Y00 to X/Y1F: Designate the receive channel. Clear the reception result and receive data count storage device to 0.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q POINT (1) Receive data can also be read using interrupt programs. For more details on reading receive data with interrupt programs, see Chapter 4 of the User's Manual (Application). Note that if the reading of data received from the same interface is to be performed, it is not possible to combine the reading of data received by the main program and reading of data received by the interrupt program.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q 6.1.4 Receive data clear For the data reception by a non procedure protocol, if the transmission of data from a transmitting device is interrupted due to trouble occurring, it may be necessary for the data received up to the present time are cleared in the receiving device and for the data to be received again from the start. The methods for clearing reception data in the Q Series C24 is shown below.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q The following is a program example of clearing the reception data by the dedicated instruction "CSET.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q Send request execution disabled (2) Dedicated instruction for sending execution disabled, too Q series C24 Buffer memory address A8H "0" Receive data clear processing (3) "1" "0" (1) PLC CPU (Program) TO instruction (Write "1" to address A8H) ( 1) ( 1) ( 1) 1 Add the dotted line portion to the sequence program when the function version A Q Series C24 is used. (Carry out communications when M19 is ON.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q 6.1.5 How to detect reception errors This section explains how to detect errors that may occur when receiving data from the external device. The following items are considered as the primary causes of errors that may occur during data reception. Cause of reception error Reference section A transmission error occurred due to noise. A timeout for the no-reception monitoring (timer 0) occurred.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q (2) Confirmation using the module and GX Configurator-SC 1) Confirmation using the display LED When the Q series C24 detects an error, including a transmission error, the ERR LED lights up. (See Chapter 10.) 2) Confirmation using GX Configurator-SC • The monitor function is used to check for errors. (See Sections 8.6.3 and 8.6.5.) • The ERR LED is turned off with the ERR LED OFF function. (See Section 8.6.10.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q Q series C24 PLC CPU Q25HCPU MODE. RUN. ERR. USER. BAT. BOOT.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q 6.1.6 Received data count and receive complete code settings The following default values have been set for the received data count and receive complete code that are used for data reception with the non procedure protocol. If it is necessary to change the following default settings, change the settings on the GX Configurator-SC "Non procedure system setting" screen according to the specifications of the external device (see Sections 8.4.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q (2) Setting values that can be changed Of the initial settings from GX Configurator-SC stored in the buffer memory, only the following setting values can be changed after data communication has started.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q 6.2 Sending Data to the External Device This section explains data transmission from the PLC CPU to the external device. 6.2.1 Transmission methods The following shows how to send data in any format using the non procedure protocol.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q 6.2.2 Arrangement and contents of the transmission area and the transmission data This section explains the arrangement and contents of the transmission area and the transmission data for performing data transmission using the non procedure protocol. (1) Transmission area The transmission area is a memory area for storing the data and the data count that are transmitted from the PLC CPU to the external device via the Q series C24.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q POINT (1) The position and size of the transmission area in the buffer memory can be changed with GX Configurator-SC in accordance with the specifications of the external device and the received data length. (See Sections 8.4.5 and 8.4.7.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q (2) Transmission data arrangement The following example shows an arrangement of the transmission data to be sent to the external device when storing it in the transmission area. (Example) When transmitting "ABCDEFG123" (The transmit area is the default value.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL Q series C24 ready signal (X1E) MELSEC-Q 1) 2) Transmission instruction 3) OUTPUT instruction OUTPUT 4) OUTPUT instruction complete device ON when transmission abnormal completion OUTPUT instruction complete device + 1 (normal completion/abnormal completion) Transmission data count designation area (buffer memory address: 400H) 1 scan 0 Transmission data storage area (buffer memory address: 401H to) n Transmission data Transmitting data 1
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q (Program example) When Q series C24 I/O signals are from X/Y00 to X/Y1F: The transmission command is converted into pulse. Transmission data is stored. Designate the number of the interface(CH data. ) that will send the Clear the transmission result storage device to 0. Designate the transmission data count in word units. (Designate K10 when the unit is bytes.) The transmission data stored in the designated device is sent.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q 6.2.4 How to detect transmission errors This section explains how to detect errors that may occur when sending data to the external device. The following items are considered as the primary causes of errors that may occur during data transmission.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q (2) Confirmation using the module and GX Configurator-SC 1) Confirmation using the display LED When the Q series C24 detects an error, including a transmission error, the ERR LED lights up. (See Chapter 10.) 2) Confirmation using the GX Configurator-SC • The monitor function is used to check for errors. (See Sections 8.6.3 and 8.6.5.) • The ERR LED is turned off with the ERR LED OFF function. (See Section 8.6.10.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q 6.3 Data Communications Precautions The following describes the precautions to be taken during non procedure protocol data communications. (1) The Q series C24 transmission sequence initialization conditions The initial status indicates the status where transmission has stopped and reception data has been discarded. The Q series C24 transmission sequence initialization conditions are as follows.
6 DATA COMMUNICATION USING THE NON PROCEDURE PROTOCOL MELSEC-Q (4) Retry processing for data reception errors The data when reception error occurred is discarded and only the data for the normal reception is taken into the Q series C24. For this reason, the reception message may be missing data when an error occurs.
7 DATA COMMUNICATION USING THE BIDIRECTIONAL PROTOCOL MELSEC-Q 7 DATA COMMUNICATION USING THE BIDIRECTIONAL PROTOCOL Data communication using the bidirectional protocol is a function for sending/receiving any data using the message format and transmission control procedure for the Q series C24 bidirectional protocol between external devices and PLC CPUs.
7 DATA COMMUNICATION USING THE BIDIRECTIONAL PROTOCOL MELSEC-Q 7.1 Data Reception from the External Device This section explains the data reception from the external device. 7.1.1 Receiving methods The following shows how to receive data sent from the external device using the bidirectional protocol. Since the size of each message received is recognized using the "data length" information contained in the message, messages of any size can be sent from the external device.
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q 1) When the control code ENQ is received, the Q series C24 starts data reception processing. When the data specified by the data length is received, the Q series C24 ends the reception processing of that data. If "Sum check" is set with GX Developer, the Q series C24 checks whether the message is normal or abnormal using the sum check code received immediately after the message and the sum check code calculated by internal processing.
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q 7.1.2 Arrangement and contents of the receive area and the receive data This section shows the arrangement and contents of the receive area and the receive data for performing data reception using the bidirectional protocol. (1) Receive area The receive area is a memory that stores the received data length (receive data count) and data area received from an external device.
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q POINT (1) The position and size of the receive area in the buffer memory can be changed with GX Configurator-SC in accordance with the specifications of the external device and the received data length. (See Sections 8.4.5 and 8.4.7.
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q (2) Arrangement of receive data The following example illustrates the arrangement of data received from the external device when it is stored in the receive area. 1) The receive message is stored to the Q series C24 buffer memory (receive data storage area). 2) The data is stored to the receive data storage area in low address (L) (H), next address (L) (H) order.
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q (b) Data length This indicates the number of bytes or words for the data portion of the message. The unit of data length (words/bytes) is in accordance with the word/byte units designation in GX Configurator-SC. 1) For data communication from the external device to the Q series C24 The Q series C24 checks the length of the data received.
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q (d) Sum check code The sum check code expresses the numeric value for the lower two bytes (16 bits) of the results (sum) from the addition of the data length and the data portion in the message as binary code data. When "Sum check" is specified with the transmission setting in GX Developer, it is necessary to add a sum check code at the end of the message.
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q (e) Error code The error code indicates the definition of the error during NAK response. (For more details on the error codes, see Chapter 10.) 1) For data communication from the external device to the Q series C24 For error codes from the external device, transmit the codes specified by the user. The error codes (0022H to 005FH) that are not used by the Q series C24 can be used.
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q 7.1.3 Sequence program for data reception This section explains the sequence program for data reception. For details on the BIDIN instruction for data reception, see Chapter 9. X3 Read request (CH1) Create control data from D0 G.BIDIN M0 Un D0 D10 M0 M1 Processing for normal completion (stores receive data, etc.
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q (Program example) When Q series C24 I/O signals are from X/Y00 to X/Y1F: Designate the receive channel. Clear the receive data count storage device to 0. Designate the allowable receive data count. With the normal completion, the receive data within the allowable receive data count (user designated) is read from the receive data storage area in the buffer memory.
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q POINT (1) Receive data can also be read using interrupt programs. For more details on reading receive data with interrupt programs, see Chapter 4 of the User's Manual (Application). Note that if the reading of data received from the same interface is to be performed, it is not possible to combine the reading of data received by the main program and reading of data received by the interrupt program.
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q 7.1.4 How to detect reception errors This section explains how to detect errors that may occur when receiving data from the external device. The following items are considered as the primary causes of errors that may occur during data reception. Cause of reception error Reference section A transmission error occurred because of noise. A timeout occurred for the no-reception monitoring time (timer 0).
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q (2) Confirmation using the module and GX Configurator-SC 1) Confirmation using the display LED When the Q series C24 detects an error, including a transmission error, the ERR LED lights up. (See Chapter 10.) 2) Confirmation using GX Configurator-SC • The monitor function is used to check for errors. (See Sections 8.6.3 and 8.6.6.) • The ERR LED is turned off with the ERR LED OFF function. (See Section 8.6.10.
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q 7.2 Sending Data to the External Device This section explains data transmission from the PLC CPU to the external device. 7.2.1 Transmission methods The following shows the method of sending data to the external device through data communication using the bidirectional protocol.
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q 7.2.2 Arrangement and contents of the transmission area and the transmission data This section explains the arrangement and contents of the transmission area and the transmission data for performing data transmission using the bidirectional protocol. For details on the contents of transmission data, see Section 7.1.2 (3).
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q POINT (1) The position and size of the transmission area in the buffer memory can be changed with GX Configurator-SC in accordance with the specifications of the external device and the transmission data length. (See Section 8.4.5.
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q (2) Transmission data arrangement The following example shows an arrangement of the transmission data to be sent to the external device when storing it in the transmission area.
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q 7.2.3 Sequence program for data transmission A sequence program for data transmission is explained below. For details on the BIDOUT instruction for data transmission, see Chapter 9. Transmission instruction (In case of the CH1 side) Create transmission data from D11 Create control data from D0 G.BIDOUT M0 Un D0 D11 M0 M1 Processing for normal completion M1 Processing for abnormal completion (retransmission, etc.
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q 1) Starts the local station PLC. The setting values for GX Developer are stored in the Q series C24. 2) Inputs the user data transmission instruction signal. 3) Executes the BIDOUT instruction after storing the transmission data and the control data for the BIDOUT instruction in the device. Data is sent when the BIDOUT instruction is executed.
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q Q series C24 Address Buffer memory Data transmission result storage area 257H For normal completion D0 D1 D2 Interface number Transmission result Transmission data count (0001H) (0000H) (0005H) 400H 401H to D11 to Transmission data D15 (4241H) to (0A0DH) Transmission data count designation area Transmission data designation area 5FFH For abnormal completion D0 D1 D2 (0001H) Interface number Transmission result (other than 0000H) Trans
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q 7.2.4 How to detect transmission errors This section explains how to detect errors that may occur when sending data to the external device. The following items are considered as the primary causes of errors that may occur during data transmission. Cause of transmission error Reference section A transmission error occurred because of noise. — A timeout occurred for the no-reception monitoring time (timer 0).
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q (2) Confirmation using the module and GX Configurator-SC 1) Confirmation using the display LED When the Q series C24 detects an error, including a reception error, the ERR LED lights up. (See Chapter 10.) 2) Confirmation using GX Configurator-SC • The monitor function is used to check for errors. (See Sections 8.6.3 and 8.6.6.) • The ERR LED is turned off with the ERR LED OFF function. (See Section 8.6.10.
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q 7.3 Processing when Simultaneous Transmission Performed During Full-Duplex Communications This section explains the processing when simultaneous transmissions occur in fullduplex communication. 7.3.1 Processing when simultaneous transmissions occur This section explains the processing performed by the Q series C24 when the external device and the Q series C24 transmit at the same time during data communications using the bidirectional protocol.
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q 7.3.2 Communication data processing when simultaneous transmissions occur Examples of the Q series C24 communication data processing for various settings of "Simultaneous transmission data valid/invalid designation" by GX Configurator-SC are explained.
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q (4) Transmission: invalid, reception: invalid 2)-1 E N Q External device Q series C24 E N Q Arbitrary data Sum check code Arbitrary data Sum check code Ignores the receive data of 1)-1. Generates a simultaneous transmission error. Ignores the receivedata of 2)-1. 1)-1 REMARK Time-check timer 1 (response monitoring time) shown in the illustration is described in Section 6.2 of User's Manual (Application).
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q 7.4 Data Communications Precautions The following shows the precautions when performing data communications using the bidirectional protocol. (1) When the transmission sequence is in the initial status, it indicates that data transmission and reception processing has not been started. The Q series C24 transmission sequence is initialized in the following cases. • The power is turned on, the CPU is reset. • When operating, or the mode is switched.
7 DATA COMMUNICATIONS USING BIDIRECTIONAL PROTOCOL MELSEC-Q POINT (1) Perform error processing according to the error code received immediately after the NAK message at the device that received NAK as the response message after data transmission. Chapter 10 shows the error codes that are transmitted from the Q series C24. (2) If the Q series C24 receives an NAK response while transmitting data to an external device, it completes data transmission, then reads the NAK, perform abnormal completion.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8 UTILITY PACKAGE (GX Configurator-SC) The GX Configurator-SC is a tool that supports the production of necessary PLC programs with initial setting, monitoring and testing, and data communication processing of the Q series C24. The GX Configurator-SC is composed of an intelligent function utility and protocol FB support function.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.1 Functions Available with Utility Package The following table lists the utility package function. ( : indicates that the setting is valid with the applicable protocol.) Function Auto refresh setting Refresh the Q series C24's error codes and set devices on the PLC CPU side. User frame Register the user frame in the flash ROM. Non Bidirectional MC procedure protocol protocol Explanation page Section 4.6 — Section 8.4.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.2 Installing and Uninstalling Utility Package See "Method of installing the MELSOFT Series" attached with the utility package regarding the install and uninstall operation for the utility package. 8.2.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q (6) About the number of parameters that can be set in GX Configurator-SC The number of parameters that can be set by the GX Configurator for an intelligent function module installed in the CPU module and in a remote I/O station of the MELSECNET/H network system is limited.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.2.2 Operating environment The operating environment of the personal computer where the GX Configurator-SC is used is explained. Item Peripheral devices Installation (Add-in) destination 1 ® Computer main unit Hard disk 2 Add-in to GX Developer Version 4 (English version) or later Personal computer on which Windows operates. CPU Refer to the following table "Used operating system and performance required for Required memory personal computer".
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.3 Explanation of Utility Package Operation 8.3.1 Operation overview GX Developer screen POINT The following settings must be performed before starting the intelligent function module utility: • Set the project using the GX Developer • Set "QCPU (Q mode)" for the PC series.
8 UTILITY PACKAGE (GX Configurator-SC) 1) When using online operation MELSEC-Q 2) When setting auto refresh Auto refresh Select [Online] – [Monitor/test] from the menu bar. Select monitor/test module screen Enter "Start I/O No.," then select "Module type" and "Module model name." Auto refresh screen See Screen 4.6 Monitor/test Select the parameter setting module for monitor/test. Monitor/test screen See Section 8.4 See Section 8.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q REMARK The following diagram illustrates the overview of a procedure in which the GX Configurator-SC is used to change the system setting values of the Q series C24 and save the new values to a file or write them to the Q series C24's flash ROM. Start Do you wish to change the setting values via offline operation? NO Go to 1) setting via online operation YES (offline operation) Start the [Flash ROM setting] screen.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 1) (Online operation) [Intelligent Function Module Select Parameter setting module] screen See Section 8.3.1 Start the [Monitor/test] screen. Is the original data saved? YES Is the data saved in a file? NO NO YES Read the data from the file. Read the data from the module's flash ROM. File read Set the flash ROM write allow/prohibit designation to "allowed". Select in the [Monitor] screen. See Section 8.4.12.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.3.2 Starting the intelligent function module utility (displaying the [select parameter setting module] screen) [Purpose] Start the intelligent function module utility from the GX Developer, and display the module selection screen for the intelligent function module utility parameter setting. The screens that perform system setting, auto refresh setting, and monitoring/testing for the Q series C24 can be started from this module selection screen.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q (2) Command buttons Initial settings : Cannot be selected. Auto refresh : Starts the auto refresh setting screen. Delete : Deletes the initial settings and auto refresh settings. Exit : Closes the parameter setting module selection screen. (3) Menu bar (a) File items The intelligent function module parameters for the project opened by GX Developer can be processed in file operation. [Open parameter] : Reads the parameter file.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q POINT (1) Saving the intelligent function module parameter files Since files cannot be saved using the GX Developer project save operation, save the files on the module selection screen for parameter setting described above. (2) Reading from and writing to PLC operations for the intelligent function module parameters using GX Developer (a) After the intelligent function module parameters are saved in a file, they can be read from and written into the PLC.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.3.3 Performing common utility operations This section explains how to perform the common operations in the data setting, auto refresh setting and monitor/test screens. (1) Available Control Keys The following table lists the special keys that can be used during operation of utility and their applications: Name of key ↑ Application Esc Cancels a newly entered value when entering data in a cell. Closes the window.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q : Saves all system setting data for the Q series C24 to the designated file (extension: UMD). : Reads all system setting data for the Q series C24 from the designated file (extension: UMD). : Closes the currently displayed screen and returns to the previously displayed screen. : Saves/writes the system setting data, closes the current screen, and returns to the previously displayed screen. With offline operation, only [File save] and [File read] are enabled.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q (a) The data set in [Flash ROM setting] can be saved in the desired directory separately from the GX Developer project. (b) Operations 4) and 5) shown in Figure 8.1 are performed as follows: 4) This operation can be performed from the [Flash ROM setting] screen or [Monitor/test] screen.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.4 System Registration to Flash ROM [Purpose] Display the menu screen for flash ROM registration, which is used to change the initial values set in the Q series C24's buffer memory. [Startup procedure] • Online operation Startup from Intelligent function module utility (GX Developer Version 4 or later) [Online] [Monitor/test] "Select monitor/test module" Monitor/test [Monitor] screen Startup from the system monitor (GX Developer Version 6 or later).
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q [Setting Items] The following table shows the selection menus for system setting/registration to be displayed: Function Section Remarks User frame registration Section 8.4.1 Data for modem initialization registration Section 8.4.2 Data for modem connection registration Section 8.4.3 Modem function system setting Section 8.4.4 Transmission control and others system setting Section 8.4.5 MC protocol system setting Section 8.4.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.4.1 User frame registration [Purpose] Register the user frame used in the following functions: • On-demand function using the MC protocol. • Data transmission/receive function using the non procedure protocol.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.4.2 Data for modem initialization registration [Purpose] Register the data for initializing the modem connected to the Q series C24.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.4.3 Data for modem connection registration [Purpose] For data communication and notification using the modem function, register the data for connection with external devices.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.4.4 Modem function system setting/registration [Purpose] For data communication using the modem function, register system setting values.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.4.5 Transmission control and others system setting [Purpose] For data communication with external devices, register system setting values for the transmission control method, monitoring time, and buffer memory assignment.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q [Setting items] Setting item Setting value storage Reference section containing buffer memory address detailed explanation DTR/DSR (ER/DR), DC control designation 93H/133H DC1/DC3 (Xon/Xoff) code designation 94H/134H DC2/DC4 code designation 95H/135H Communication system designation 98H/138H Section 3.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.4.6 MC protocol system setting [Purpose] For data transmission using the MC protocol, register system setting values.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.4.7 Non procedure system setting [Purpose] For data transmission using the non procedure protocol, register system setting values.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.4.8 Bidirectional system setting [Purpose] For data transmission using the bidirectional protocol, register system setting values.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.4.9 PLC CPU monitoring system setting [Purpose] Register system setting values to use the PLC CPU monitoring function.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q [Setting items] Setting item Setting value storage Reference section containing buffer memory address detailed explanation Cycle time units designation 2040H/2140H Cycle time designation 2041H/2141H PLC CPU monitoring function designation 2042H/2142H PLC CPU monitoring transmission measure designation 2043H/2143H Constant cycle transmission Transmission pointer 2044H/2144H Output count designation 2045H/2145H Data No.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.4.10 Transmission user frame No. designation system setting [Purpose] Register the output frame number to transmit data with the non procedure protocol using the user frame. [Startup procedure] • Online operation [Monitor] screen CH Output frame system setting • Offline operation [Flash ROM setting] screen CH Output frame system setting [Setting screen] [Setting item] Setting item Output frame No.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.4.11 Resetting the buffer memory/flash ROM setting values to the default values This section explains how to reset the values set in the buffer memory/flash ROM to their default values. [Startup procedure] [Online] [Monitor/test] "Select monitor/Test module" Monitor/test [Monitor] screen [Operating procedure] (Procedure 1) In the [Monitor] screen, select [Default request] for [System setting default]. (Procedure 2) Click on Execute test .
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.5 Auto Refresh Setting The Auto Refresh Settings are used to automatically store the error information and status information currently stored in the Q series C24's buffer memory in the device specified by the PLC CPU. For details, see Section 4.6.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.6 Monitor/Test [Purpose] The displayed menu screen is used to perform various operations, including the monitoring of the Q series C24's operating status and setting values and the testing of its output signals. The monitor/test operations can be performed only via online operation.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.6.1 X · Y monitor/test [Purpose] Perform the monitoring of I/O signals and testing of output signals.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.6.2 Modem function monitor/test [Purpose for monitor/test] Monitor/test the operating status and setting values of the modem function.
8 UTILITY PACKAGE (GX Configurator-SC) Monitor/test items MELSEC-Q Setting value storage Reference section containing buffer memory address detailed explanation Y11: Connection request — Y12: Modem disconnection request — Y14: Notification-issued request — Modem connection channel designation 2EH Notification execution designation 2FH Number of connection retires designation 30H Connection retry interval designation units: s Initialization/connection timeout designation 31H units: s
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q [Test Items] The following accumulated count of times counter values can be cleared to "0" by the select test function.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.6.3 Transmission control and others monitor/test [Purpose] Monitor the RS-232 signal status and the various setting values for data communication.
8 UTILITY PACKAGE (GX Configurator-SC) Monitor/test items Transmission status MELSEC-Q Setting value storage Reference section containing buffer memory address detailed explanation 253H/263H … b8 to b11 Transmission speed Section 4.5.2 of User's Manual (Basic) DTR/DSR (ER/DR), DC control designation 93H/133H DC1/DC3 (Xon/Xoff) code designation 94H/134H DC2/DC4 code designation 95H/135H Communication system designation 98H/138H Section 4.5.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.6.4 MC protocol monitor [Purpose] Monitor the status and setting values of the data communication using the MC protocol.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q [Monitor items] Monitor items Setting value storage Reference section containing buffer memory address detailed explanation Transmission sequence status 255H/265H On-demand execution result 256H/266H Data transmission result 257H/267H Data reception result 258H/268H MC protocol transmission error code 25AH/26AH Chapter 10 of — User's Manual (Basic) X00: CH1 Transmission normal completion X01: CH1 Transmission abnormal completion — X02: CH
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.6.5 Non procedure monitor/test [Purpose] Monitor the status and setting values of the data transmission using the non procedure protocol. The test operation for the receive data clear is explained in Section 8.7.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q [Monitor/test items] Monitor/test items Setting value storage Reference section containing buffer memory address detailed explanation Data transmission result 257H/267H Chapter 10 of Data reception result 258H/268H User's Manual (Basic) Receive user frame nth 25BH/26BH Chapter 11 of B6H/156H User's Manual (Application) User frame being transmitted X00: CH1 Transmission normal completion — X01: CH1 Transmission abnormal completion — X02: C
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.6.6 Bidirectional monitor [Purpose] Monitor the status and setting values of the data transmission using the bidirectional protocol.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.6.7 PLC CPU monitoring monitor [Purpose] Monitor the operating status and setting values of the PLC CPU monitoring function.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q [Monitor items] Monitor items Setting value storage Reference section containing buffer memory address detailed explanation PLC CPU Operation status 2204H/2304H monitoring Execution result 2205H/2305H function Number of transmission 2206H/2306H Monitoring condition arrival block No.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.6.8 Transmission user frame No. designation monitor [Purpose] Monitor the setting value of output frame number used when transmitting data with the non procedure protocol using the user frame. [Startup procedure] [Monitor] screen CH Output frame monitor [Monitor screen] [Monitor item] Monitor item Output frame No.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.6.9 Monitor/test others [Purpose] Monitor the result of access to the flash ROM, the data communication status of each interface, and the result of the intelligent function module switch settings using GX Developer.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q [Monitor/test items] Monitor/test items Flash ROM access register/read/delete result Station No. (Switch setting) Setting value storage Reference section containing buffer memory address detailed explanation 4H 200H Station No. (Instruction setting) 24FH SD WAIT status 201H … b0 201H … b1 SIO status PRO. status P/S status CH1 C/N status NAK status 201H … b4 201H … b5 NEU. LED status 201H … b6 201H … b7 ERR. LED status 202H … b15 ACK.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.6.10 Display LED off and communication error information/error code initialization This section explains how to turn off the display LEDs of the Q series C24 and initialize its communication error information and error codes. (1) CH ERR. clear request on Monitor/Test screen This is used to turn off the CH ERR. LED of the Q series C24 and to initialize (clear) the error codes stored in the CH side buffer memory. Refer to Section 10.1.
8 UTILITY PACKAGE (GX Configurator-SC) (2) Communication error clear request for CH Monitor/test others screen MELSEC-Q and to turn LED off on This is used to turn off the CH LED of the Q series C24 and to initialize (clear) the communication error information. The CH LED on status and communication error information can be confirmed on the Monitor/test others screen. [Operation procedure] 1) Display the "Monitor/test others" screen.
8 UTILITY PACKAGE (GX Configurator-SC) MELSEC-Q 8.7 Non Procedure Protocol Receive Data Clear This section explains how to clear the received data using the non procedure protocol. By using this function, the receive data can be cleared from GX Configurator-SC while the communication with the non procedure protocol is still in progress, without resetting the PLC CPU or turning off the power. [Operation procedure] (Procedure 1) Display the [Non procedure monitor/test] screen. (See Section 8.6.5.
9 DEDICATED INSTRUCTIONS MELSEC-Q 9 DEDICATED INSTRUCTIONS Dedicated instructions are used to simplify programming when using intelligent function module functions. This chapter describes the dedicated instructions for the Q series C24, which is part of the functions of the QCPU (in Q mode) explained in this manual. 9.1 Dedicated Instruction List The following table lists the dedicated instructions explained in this chapter.
9 DEDICATED INSTRUCTIONS MELSEC-Q 9.2 ONDEMAND Instruction The ONDEAMAND instruction transmission data using the on-demand function of the MC protocol. Applicable device Set Internal device data (System, user) Bit MELSECNET/H, File register Word MELSECNET/10 Special module Direct J \ Bit U \G Index register Zn Constant Others Word (S1) — — (S2) — — (D) — [Instruction code] [Executing condition] Command ONDEMAND G.ONDEMAND Un (S1) (S2) (D) GP.
9 DEDICATED INSTRUCTIONS MELSEC-Q Function (1) Data stored in the device designated in (S2) and succeeding devices are sent according to the control data of the device designated in (S1) and succeeding devices, via the on-demand function of the MC protocol of the module designated in Un. Q series C24 QCPU b15 to Channel to be used is set by the control data.
9 DEDICATED INSTRUCTIONS MELSEC-Q Error (1) When a dedicated instruction is completed abnormally, the abnormal completion signal, (D)+1, turns on and the error code is stored in the transmission result (S1)+1. In case of operation errors, the error flag (SM0) turns on and the error code is stored in the SD0. See one of the following manuals according to the error code, and check and correct the error.
9 DEDICATED INSTRUCTIONS MELSEC-Q 9.3 OUTPUT Instruction This instruction transmission data in any message format specified by the user using the non procedure protocol. Applicable device Set Internal device data (System, user) Bit MELSECNET/H, File register Word MELSECNET/10 Special module Direct J \ Bit U \G Index register Zn Constant Others Word (S1) — — (S2) — — (D) — [Instruction code] [Executing condition] Command OUTPUT G.OUTPUT Un (S1) (S2) (D) GP.
9 DEDICATED INSTRUCTIONS MELSEC-Q Function (1) Data stored in the device designated in (S2) and succeeding devices are sent according to the control data of the device designated in (S1) and succeeding devices, via the non procedure protocol of the module specified in Un. Q series C24 QCPU b15 to Channel to be used is set by the control data.
9 DEDICATED INSTRUCTIONS MELSEC-Q Error (1) When a dedicated instruction is completed abnormally, the abnormal completion signal, (D)+1, turns on and the error code is stored in the transmission result (S1)+1. In case of operation errors, the error flag (SM0) turns on and the error code is stored in the SD0. See one of the following manuals according to the error code, and check and correct the error.
9 DEDICATED INSTRUCTIONS MELSEC-Q 9.4 INPUT Instruction This instruction receives data in any message format specified by the user using the non procedure protocol. Applicable device Set Internal device data (System, user) Bit MELSECNET/H, File register Word MELSECNET/10 Special module Direct J \ Bit U \G Index register Zn Constant Others (S) (D2) Word (S) — — (D1) — — (D2) — [Instruction code] [Executing condition] Set data Command Un G.
9 DEDICATED INSTRUCTIONS MELSEC-Q 1 For error codes relating to abnormal completion, see Chapter 10 of the User's Manual (Basic). 2 When setting "Word/byte units designation" by GX Configurator-SC, set the number of bytes when bytes are designated and set the number of words when words are designated. 3 The settings are done by either of the following: • User: Data set by the user before executing the INPUT instructions. • System: The PLC CPU stores the execution result of the INPUT instructions.
9 DEDICATED INSTRUCTIONS MELSEC-Q Error (1) When a dedicated instruction is completed abnormally, the abnormal completion signal (D2)+1, turns on and the error code is stored in the transmission result (S1)+1. In case of operation errors, the error flag (SM0) turns on and the error code is stored in SD0. See one of the following manuals according to the error code, and check and correct the error.
9 DEDICATED INSTRUCTIONS MELSEC-Q 9.5 BIDOUT Instruction This instruction transmission data using the bidirectional protocol. Applicable device Set Internal device data (System, user) Bit MELSECNET/H, File register Word MELSECNET/10 Special module Direct J \ Bit U \G Index register Zn Constant Others Word (S1) — — (S2) — — (D) — [Instruction code] [Executing condition] Command BIDOUT G.BIDOUT Un (S1) (S2) (D) GP.
9 DEDICATED INSTRUCTIONS MELSEC-Q Function (1) The function sends data stored in the device designated in (S2) and succeeding devices according to the control data of the device designated in (S1) and succeeding devices, via the bidirectional protocol of the module designated in Un. (2) When a BIDOUT instruction is executed on a channel, other BIDOUT instructions cannot be executed on that channel at the same time.
9 DEDICATED INSTRUCTIONS MELSEC-Q Program example The following example shows a program that sends any data stored in D11 to D15 using the bidirectional protocol. When the input/output signals of the Q series C24 are from X/Y00 to X/Y1F: Transmission command is converted to pulse. Transmission data is stored. Designate the number of the interface (CH send the data. ) that will Clear the transmission result storage device to 0. Designate the transmission data count in word units.
9 DEDICATED INSTRUCTIONS MELSEC-Q 9.6 BIDIN Instruction This instruction receives data using the bidirectional protocol. Applicable device Set Internal device data (System, user) Bit MELSECNET/H, File register Word MELSECNET/10 Special module Direct J \ Bit Index register Zn U \G Constant Others Word (S) — — (D1) — — (D2) — [Instruction code] [Executing condition] Command BIDIN G.BIDIN Un (S) (D1) (D2) GP.
9 DEDICATED INSTRUCTIONS MELSEC-Q 1 When setting "Word/byte units designation" by GX Configurator-SC, set the number of bytes when bytes are designated and set the number of words when words are designated as the unit types. 2 The settings are done by either of the following: • User: Data set by the user before executing the BIDIN instructions. • System: The PLC CPU stores the execution result of the BIDIN instructions.
9 DEDICATED INSTRUCTIONS MELSEC-Q Error (1) In case of operation errors, the error flag (SM0) turns on and the error code is stored in SD0. See one of the following manuals according to the error code, and check and correct the error. 4FFFH or less : QCPU(Q Mode) User's Manual (Hardware Design, Maintenance and Inspection) Program example The following example shows a program that receives any data using the bidirectional protocol and stores that data in D10 or later.
9 DEDICATED INSTRUCTIONS MELSEC-Q 9.7 SPBUSY Instruction This instruction reads the status of data transmission and reception executed with dedicated instructions. Applicable device Set Internal device data (System, user) Bit MELSECNET/H, File register Word MELSECNET/10 Special module Direct J \ Bit Index register Zn U \G Constant Others Word (D) — [Executing condition] [Instruction code] Command SPBUSY G.SPBUSY Un (D) GP.
9 DEDICATED INSTRUCTIONS MELSEC-Q Error (1) In case of operation errors, the error flag (SM0) turns on and the error code is stored in SD0. See one of the following manuals according to the error code, and check and correct the error. 4FFFH or less : QCPU(Q Mode) User's Manual (Hardware Design, Maintenance and Inspection) 7000H or more: Section 10.2 of the User's Manual (Basic) Program example A program that reads the communication status of a target module.
9 DEDICATED INSTRUCTIONS MELSEC-Q 9.8 CSET (Receive data clear) Applicable device Set Internal device data (System, user) Bit MELSECNET/H, File register Word MELSECNET/10 Special module Direct J \ Bit Index register Zn U \G Constant Others Word (S1) — — (S2) — — (D1) — — (D2) K, H — — [Instruction code] [Executing condition] [Instruction form] CSET Set data ZP.
9 DEDICATED INSTRUCTIONS MELSEC-Q Function (1) This function clears reception data in the OS area. It does not clear the user data reception area in the buffer memory. (2) If the CSET instruction is executed while the read request (X03/X0A) or reception abnormal detection signal (X04/X0B) is turned on, the CSET instruction is kept waiting until the signal is turned off.
9 DEDICATED INSTRUCTIONS MELSEC-Q Program example This is an example of a program that clears reception data on the Q series C24 side. It is assumed that the input/output signals of the Q series C24 are X/Y00 to X/Y1F.
10 TROUBLESHOOTING MELSEC-Q 10 TROUBLESHOOTING This chapter explains the definitions of errors that may occur during data communication between the Q series C24 and external devices, and the corrective actions. 10.1 Checking the Status of the Serial Communication Module 10.1.
10 TROUBLESHOOTING MELSEC-Q [Displays] • Module The following information is displayed: Module name : The name of the module installed I/O Address : The start input/output signal (number) of the target module Implementation Position: The slot position where the module is mounted Product information : Product information The last character of the product information indicates the function version of the module. (Example) If the last character is "B," it means that the module is of function version B.
10 TROUBLESHOOTING MELSEC-Q [Displays] 1) H/W LED Information Right side (Left side: CH1 information/ Right side: CH2 information) Displays the transmission status and the communications error status of the Q series C24. (Displays 201H/202H of the buffer memory.) b15 Buffer memory address b8 to b7 b6 b5 b4 b3 b2 b1 b0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 1/0 201H For system (Information of CH1 side) SD WAIT SIO PRO.
10 TROUBLESHOOTING MELSEC-Q (3) Checking by GX Configurator-SC Display the "Monitor/test others" screen. For details on display screens, see Section 8.6.9 of the User's Manual (Basic). (4) Description of LED ON status and communications error status No.
10 TROUBLESHOOTING MELSEC-Q (a) When a communication error occurs, take corrective action according to Section 10.3. (b) The initial status of the LED ON and communications error indicates the status when the Q series C24 starts up by turning on the power or resetting the PLC CPU. (c) Each of the communications error status, C/N to SIO, CH1 ERR. and CH2 ERR., turns on when an error occurs, and keeps its on-status even after the communication returns to normal.
10 TROUBLESHOOTING MELSEC-Q 10.1.2 Initializing error information of the serial communication module This section explains the ERR. LED ON factors and the error code initialization (clear) for the Q series C24. (1) ERR. LED ON factors When any of the following errors occurs, its error code is stored in the buffer memory corresponding to the interface (CH) where the error occurred, and the ERR. LED turns on.
10 TROUBLESHOOTING MELSEC-Q (b) Initializing communication error information by writing Communication error information can be initialized by writing "1" to the corresponding bit in the buffer memory addresses 0H to 1H. The displayed LEDs and communication error information may be turned on/off in the following cases: • NEU. to NAK turn on/off depending on the status. • C/N to SIO turn on when errors occur and keep the ON-status even after the operation returns to normal.
10 TROUBLESHOOTING MELSEC-Q (c) Examples of programs that initialize displayed LED and communication error information The following shows examples of a program that reads error codes when errors described in (1) above occur in an interface on the CH1 side and initializes the displayed LED and communication error information. Incorporate the necessary part of the program.
10 TROUBLESHOOTING MELSEC-Q 10.1.3 Reading the RS-232 control signal status This section explains how to read the control signal status stored in the buffer memory during communication using RS-232 interface. When GX Configurator-SC is used, check the status using the "Transmission control and others monitor/test" screen (see Section 8.6.3). When a transmission problem occurs, read operation is executed to check the signal on/off status of the RS-232 interface.
10 TROUBLESHOOTING MELSEC-Q 10.1.4 Reading the data communication status (Transmission sequence status) This section explains how to read the current status of the data communication using the MC protocol stored in the buffer memory. When GX Configurator-SC is used, check the status using the "MC protocol monitor" screen (see Section 8.6.4). When a transmission problem occurs, read operation is executed to check the status of the data communication using the MC protocol.
10 TROUBLESHOOTING MELSEC-Q 10.1.5 Reading the switch setting status This section explains how to read the switch setting status of the Q series C24. When GX Configurator-SC is used, check the status in the "Monitor/test others" screen (see Section 8.6.9). REMARK (1) The switch settings can be changed when the mode is switched or when the UINI instruction is executed. (The station No. setting can be changed only when the UINI instruction is executed.
10 TROUBLESHOOTING MELSEC-Q (2) Example of a program that reads from the setting status storage area The following shows an example of a program that reads the setting of various switches of the Q series C24 from the setting status storage area. For details on XE and XF of the input/output signals used in the program, see Section 10.1.2 (3). (input/output signals X/Y00 to X/Y1F of the Q series C24) Example of FROM instruction Reads error description from address 203H.
10 TROUBLESHOOTING MELSEC-Q 10.1.6 How to read the current operation status This section explains how to read the current operation status of the Q series C24. When GX Configurator-SC is used, check the status in the "Transmission control and others monitor/test" screen (see Section 8.6.3). REMARK • The status of the switch settings by GX Developer can be checked by performing read operations as described in Section 10.1.5. • Refer to Section 4.5 for the switch settings.
10 TROUBLESHOOTING MELSEC-Q (2) Example of a program that reads from the current setting status storage area The following shows an example of a program that reads from the switch setting status storage area for current operation of the Q series C24. For details regarding XE and XF of the input/output signals used in the program, see Section 10.1.2 (3). (input/output signals X/Y00 to X/Y1F of the Q series C24) Example of FROM instruction Reads error description from address 203H.
10 TROUBLESHOOTING MELSEC-Q 10.2 Error Code Tables The following shows the error codes, error contents, and corrective action for errors that are generated during communication between the Q series C24 and an external device. The signal name in the following table indicates the CH side LED on status or communication error status that is stored into buffer memory address 201H/202H when an error occurs.
10 TROUBLESHOOTING Protocol Error code (Hexadecimal) 7148H 7149H 714AH 714BH to 714DH 714EH 7150H MELSEC-Q Error Error Contents Signal name Extension R block No. error • A nonexistent extension file register block No. was designated. • A block No. being used as an extension comment area, sampling trace area, or status latch area was designated. PRO System error • The OS of the Q series C24 detected some error.
10 TROUBLESHOOTING Error code (Hexadecimal) 716FH Error Device error 7170H 7171H A compatible 1C frame error 7172H MELSEC-Q Error Contents Signal name • A nonexistent device was designated. • Device that cannot be specified by the corresponding command was designated. PRO • Number of access points exceeded the range. PRO • A device that cannot be designated was designated. PRO • Written number of monitoring points is incorrect. For example, [0] was designated.
10 TROUBLESHOOTING MELSEC-Q Protocol Error code (Hexadecimal) Error Error Contents Signal name Corrective action PRO • Change the write destination to an unwritten frame No. • When overwriting, delete the given No. beforehand. PRO • Check and correct the external device transmit message and restart data communications. • Flash ROM write allow/prohibit designation from GX Configurator-SC is set to OFF. • At the switch setting on GX Developer, modification allowed switch was set to OFF.
10 TROUBLESHOOTING MELSEC-Q Protocol Error code (Hexadecimal) Error Error Contents Signal name Corrective action • Read point of monitoring device is out of range. 7E6DH CPU abnormal monitoring setting value error • Setting value (fixed value) of CPU abnormal monitoring is out of range. 7E6EH System error • The OS of the Q series C24 detected some error. 7E6FH Modem connection • Modem is connected to an incorrect channel.
10 TROUBLESHOOTING Protocol Error code (Hexadecimal) 7F24 H MELSEC-Q Error Sum check error Error Contents Signal name • The sum check calculated by the Q series C24 and the received sum check are not the same. P/S 7F25 H Data length error • The length of the received data exceeds the receive area size. CHn ERR. 7F26 H Command error • Another command was received before an unlock processing while the remote password is registered. CHn ERR.
10 TROUBLESHOOTING MELSEC-Q Protocol Error code (Hexadecimal) Error Error Contents Signal name 7F69H Parity error • Data does not match the parity bit setting. • A malfunction occurred in the network because the power source of the partner station was on or off. • Noise occurs in the network. • When the multidrop was connected, data was transmitted simultaneously by multiple devices. 7F6AH Buffer full error • OS receive buffer overflowed and receive data was skipped.
10 TROUBLESHOOTING Protocol Error code (Hexadecimal) 7FC9H to 7FCFH MELSEC-Q Error Error Contents Signal name • The OS of the Q series C24 detected some error. 7FE6H • Remote passwords do not match. 7FE7H • The remote password is not registered. • The remote password processing command was received on the interface side where the modem function is not used. • The GX Developer connection is selected in the communication protocol setting on the corresponding CH. CHn ERR.
10 TROUBLESHOOTING MELSEC-Q 1 Take corrective action in the following procedure. 1) Check whether the Q series C24, power supply module and CPU module are mounted correctly on the base unit. 2) Check whether the operating environment of the Q series C24 is within the general specifications range of the CPU module. 3) Check whether the power supply capacity is sufficient or not.
10 TROUBLESHOOTING MELSEC-Q 10.2.2 A compatible 1C frame communications error code table The following table lists the error code, error contents, and corrective action for errors generated during A compatible 1C frame communications. Protocol Error code (Hexadecimal) Error Signal name Error Contents Corrective action C/N • Change the setting to "Enable write during RUN" and restart data communications. • Stop the CPU and restart data communications.
10 TROUBLESHOOTING MELSEC-Q 10.2.3 Error code list while modem function is used The following describes the error codes, contents and corrective actions for errors (including errors at the abnormal completion) that may occur while the Q series C24 modem function is used. The error codes for the modem function are stored in the modem function error code storage area (address : 221H(545)) of the buffer memory. The reference pages listed in the table below are found in the User's Manual (Application).
10 TROUBLESHOOTING Error code (Hexadecimal) Error MELSEC-Q Error Contents Signal name There is an error in the designation of the user frame number. • Recheck the user frame number. • Designate the registered user frame number. • Register the designated data for initialization. There is an error in the designation of the output head pointer. • Designate the output head pointer in the range of 1 to 100. • Designate the position (n-th position) where the data for initialization number is designated.
10 TROUBLESHOOTING MELSEC-Q 10.3 Troubleshooting by Symptom This following shows troubleshooting of trouble generated during communications between the Q series C24 and external device according to the trouble symptom. When trouble occurs, first confirm the status of the Q series C24 and check the relevant item in the table below. Protocol Symptom LED turns on/off (check according to Section 4.3) Symptom description Dedicated Non procedure Bidirectional Reference section • "RUN" LED turned off.
10 TROUBLESHOOTING MELSEC-Q REMARK The following are precautionary notes when exchanging data with an external device via one of the Q series C24 interfaces. (1) When the power supply to the Q series C24 or external device is started, the remote device that is connected may generate a reception error. (2) If the remote device that is connected starts up while data is being transmitted, the remote device side will generate a reception error.
10 TROUBLESHOOTING MELSEC-Q Cause • A transmission setting switch is set to an Corrective action MC Non procedure Symptom Bidirectional 10.3.1 Troubleshooting when "RUN" LED is turned OFF • Set the switch by GX Developer correctly and after writing to the CPU reset the CPU. unusable position. • Remove the cause of the CPU error and reset • PLC CPU error. the CPU. Note • During the Q series C24 and external device loopback test, the minimum parameters file must be written to the CPU beforehand.
10 TROUBLESHOOTING MELSEC-Q Cause Corrective action MC Non procedure Symptom Bidirectional 10.3.2 Troubleshooting when "RD" LED does not blink even though an external device is transmitting a message • Check if the Q series C24 and external RD and • Signal lines are not connected correctly. SD signal lines are cross connected. • Use the external device OPEN statement to check if the opened port and the cable connection port are matched.
10 TROUBLESHOOTING MELSEC-Q Cause • Communication protocol is set incorrectly. • When "Check CD terminal" was set, the CD terminal was turned OFF. • The header byte of the message is not data needed by the set • An external device protocol and format. transmitted a message and "RD" blinked, but • The Q series C24 the Q series C24 did station No. switch not return a response setting and message message. ("NEU" station No. designation remains on and "SD" do not match.
10 TROUBLESHOOTING MELSEC-Q Cause Corrective action MC Non procedure Symptom Bidirectiona 10.3.4 Troubleshooting when an external device transmitted a message and "RD" LED blinked, but the Read Request signal was not turned ON • Check if the communication protocol is set correctly. • Check if the mode was switched without using the buffer memory mode switching area. • Communication protocol Note • The communication protocol setting contents and is set incorrect.
10 TROUBLESHOOTING MELSEC-Q Cause Corrective action MC Non procedure Symptom Bidirectional 10.3.5 Troubleshooting when communication error "NAK" generates • See section that describes the communication error signal ("C/N", "P/S", • Take corrective action corresponding to the "PRO", "SIO") that are contents of the error. turned on simultaneously when the "NAK" signal is turned on. • Communication error signal "NAK" turned on.
10 TROUBLESHOOTING Non procedure MC Non procedure Corrective action Bidirectional Cause Bidirectional Symptom MELSEC-Q • An error was generated • Check the error contents from the state of SB on the MELSECNET/ H, and SW related to the MELSECNET/H, MELSECNET/10. MELSECNET/10 with the GX Developer • The local station CPU on the MELSECNET/H, the corrective action described in the MELSECNET/10 MELSECNET/H, MELSECNET/10 reference generated an error.
10 TROUBLESHOOTING MELSEC-Q Cause Corrective action MC Non procedure Symptom Bidirectional 10.3.8 Troubleshooting when communication error "PRO." generates • Communications were • Check the Q series C24 communication performed with a control protocol setting and the message from the procedure different from external device and match the settings, or the Q series C24 correct the message and restart data communication protocol communications. setting.
10 TROUBLESHOOTING MELSEC-Q Cause Corrective action MC Non procedure Symptom Bidirectional 10.3.9 Troubleshooting when communication error "SIO" generates • Data does not match the • Check if the Q series C24 and external device stop bit setting. settings are the same. • Transmission rate is too • Decrease the transmission rate and restart data fast and the next data is communications. transmitted before the Q series C24 completes processing of the receive data.
10 TROUBLESHOOTING MELSEC-Q Cause • There is an error in the communication protocol or transmission setting. Corrective action MC • Read the error code from the buffer memory and check the error contents and change the switch setting to the correct setting. • There is an error in the • Read the error code from the buffer memory on-line mode switching and check the error contents and correct the designation. designation contents. • On-demand execution generated an error.
10 TROUBLESHOOTING MELSEC-Q Cause Corrective action MC Non procedure Symptom Bidirectional 10.3.11 Troubleshooting when communications is intermittently established and lost • With a multidrop link, two or • Connect the external devices and the Q series C24 in a 1:1 configuration and perform a communications test. more devices transmitted Since data is transmitted simultaneously from two or data at the same time.
10 TROUBLESHOOTING MELSEC-Q Cause • With a multidrop link, Corrective action MC Non procedure Symptom Bidirectional 10.3.12 Troubleshooting when data that cannot be decoded is transmitted and received • Connect the external devices and the Q series two or more devices C24 in a 1:1 configuration and perform a transmitted data at the communications test. same time.
10 TROUBLESHOOTING MELSEC-Q Cause Corrective action MC Non procedure Symptom Bidirectional 10.3.13 Troubleshooting when it is unclear whether the communication error cause is in the Q series C24 or an external device • Test the Q series C24 as described below to check where the cause is. 1) Check the hardware. • The Q series C24 must be installed firmly. • The pins of the Q series C24 must not be bent or otherwise abnormal. 2) Test the Q series C24 alone. (See Section 4.7.
10 TROUBLESHOOTING MELSEC-Q 10.3.14 Troubleshooting when data cannot be communicated via modem Symptom • Auto modem initialization cannot be executed. Cause Corrective action • A modem initialization error occurs. • Check the error code and execute processing accordingly. • Modem connection channel designation is not performed. • Set Modem connection channel designation.
10 TROUBLESHOOTING MELSEC-Q 10.3.15 Troubleshooting when data cannot be communicated with the ISDN sub-address Circumstance • Data cannot be communicated with ISDN sub-address Cause Corrective action • Sub-address is incorrect. • Review the sub-address. • Modem does not support ISDN subaddress. • Use modem that supports ISDN subaddress. • Sub-address is incorrectly partitioned. • Review how to partition the sub-address using the TA manual. MC Non Bidirection procedure al protocol protocol 10.
10 TROUBLESHOOTING MELSEC-Q 10.3.20 Troubleshooting when the "ERR" LED is lit Circumstance • "ERR" LED is lit 10 - 43 Cause Corrective action • A communication error has occurred. • Check the error and remove the cause according to Section 10.1.1. • Switch settings of the Q series C24 are incorrect. • Review the switch settings of the Q series C24.
APPENDIX MELSEC-Q APPENDIX App. Appendix 1 Functional Improvements of the Q Series C24 The Q series C24 of function version B has several functions that have been added or changed from the conventional product (function version A).
APPENDIX MELSEC-Q Q series C24 (function version) QJ71C24N (-R2/R4) Function App.
APPENDIX MELSEC-Q 1 There is a limitation in the production date of the Q series C24 that contains functions that are usable. For version verification, see section 2.6. 2 The data reception using format-0 refers to the method of receiving data by user frame, which was supported in the Q series C24 of function version A. 3 The Q series C24 of function version A is capable of setting one pair of transparent code and additional code per interface for both transmission and reception.
APPENDIX MELSEC-Q (2) List of added setting items for GX Configurator-SC The following table lists the setting items added to the GX Configurator-SC due to a software version upgrade. GX Configurator-SC Software version Screen (System setting/monitor) Modem function monitor/test Modem function system setting Transmission control and other monitoring/tests Additional setting item SW0D5C-QSCU-E Reference Version 2.06G Version 2.00A Version 1.
APPENDIX MELSEC-Q Appendix 1.2 Precautions when Updating the Module from Function Version A to B This section explains how to utilize programs created for the Q series C24 of function version A for the Q series C24 of function version B and how to incorporate function version B into the existing system. (1) Program utilization Programs created for the Q series C24 of function version A can be used as they are for the Q series C24 of function version B.
APPENDIX MELSEC-Q Appendix 2 QnA/A Series Module This section explains a comparison of the functions of the Q series C24 and QnA/A series modules, and explains how to utilize programs created for A series modules as well as how to install the Q series C24 into the existing system. QnA/A modules refer to the following products.
APPENDIX MELSEC-Q Function Q series C24 Accessing other stations with link dedicated instructions Interrupt processing (at data reception) QC24N QC24 UC24 C24-S8 (via QC24 (N)) Non procedure protocol Bidirectional protocol Communication via public lines using modem function Communication using the PLC CPU monitoring function Auto refresh directed to the PLC CPU Transmission control DC code control DTR/DSR signal control Half-duplex communication control Mode switching Independent operation of t
APPENDIX MELSEC-Q Appendix 2.2 Using Programs Designed for the QC24 (N) and Installing the Q Series C24 into Existing Systems This section explains how to use programs designed for serial communication modules in the QnA series and the installation of the Q series C24 into an existing system. POINT When using the Q series C24, make sure to set the operation mode, station number, and transmission specifications with the following parameter setting screen of GX Developer.
APPENDIX MELSEC-Q Appendix 2.2.2 Installing on existing systems The following explains the Installation of the Q series C24 on an existing system. (1) Installing on a multidrop connection system The Q series C24 can be installed on an existing system to which the PLC CPU and external devices are connected as 1:n or m:n multidrop connection ( 1). 1 This is when a QC24(N) or a computer link module (such as AJ71UC24) is used as the PLC CPU module of the multidrop connection.
APPENDIX MELSEC-Q Appendix 2.3 Using Programs Designed for the Computer Link Module and Installing the Q Series C24 into Existing Systems This section describes how to use programs created for A series computer link modules and installing the Q series C24 into an existing system. POINT When using the Q series C24, make sure to set the operation mode, station number, and transmission specifications with the following parameter setting screen of GX Developer.
APPENDIX MELSEC-Q (b) Command message and response message 1) The message format used in the data communication using the A compatible 1C frame is the same as the message format of UC24/C24-S8. 2) Check available commands and devices that can be accessed in Chapter 8 of the Reference Manual, and access the PLC CPU from the external device. 3) For the QCPU, only read/write of device memory is possible. For the range of devices that can be accessed, see Section 5.2.1 of the Reference Manual.
APPENDIX MELSEC-Q 3) When data is received by a reception end code, the external device side must send the end code data (the default is CR+LF (code: 0DH and 0AH) at the end of the data sent to the PLC CPU side. Once any end code is registered, data can be transmitted in the same way as for the UC24/C24-S8. 4) The external device side can receive data from the Q series C24 in the same ways as UC24.
APPENDIX MELSEC-Q Appendix 2.3.2 Installing the Q series C24 into existing systems This section shows the notes when installing the Q series C24 into an existing system that uses UC24/C24-S8.
APPENDIX MELSEC-Q Appendix 3 Processing Time (1) Time required to process communication using the non procedure protocol (guideline) The processing time for the Output and Input instructions can be estimated by the following formula. Note, however, that the processing time may become longer depending on other communication functions (e.g., communication using the MC protocol) and special functions (e.g., ASCII-binary conversion, transmission control) that are used at the same time.
APPENDIX MELSEC-Q (b) Input instruction Tp = Sr + 0.09 Dr + T2 Tp ( 1) : Time from the start of execution of the Input instruction to the End processing of the sequence scan at the completion of the Input instruction execution (ms) Sr : Scan time Dr : Number of bytes of reception data T2 : QJ71C24N (-R2/R4) T2 = 7.0 QJ71C24 (-R2) T2 = 14.91 1 This stands for the time range of processing (Tp).
APPENDIX MELSEC-Q 2) Processing time of dedicated instructions The following table shows the operation processing time (rough standard) of each dedicated instruction. The operation processing time differs slightly depending on the system configuration and communication protocol.
APPENDIX MELSEC-Q Appendix 4 ASCII-Code Table The ASCII-code table is shown below. (7-bit code) The codes 00H to 1FH indicated by the are used as Q series C24 control codes. (DC codes 11H to 14H can be changed by the user.
APPENDIX MELSEC-Q Appendix 5 External Dimensions (1) QJ71C24N, QJ71C24 The following diagram shows the QJ71C24 and QJ71C24N. The dimensions of the QJ71C24 are the same as QJ71C24N (except for model name). Cable diameter 4 + 10 QJ71C24N CH1 RUN NEU. SD RD ERR. NEU. SD CH2 RD 98 (3.86) CH1 RS-232 R2 ( 2) SDA 1 SDB 3 RDA 90 (3.54) 5 (FG) R1 ( 1) r1 ( 3) RDB 6 7 CH2 RS-422 /485 27.4 (1.08) 4.5 (0.18) (Unit: mm (in.
APPENDIX MELSEC-Q (2) QJ71C24N-R2, QJ71C24-R2 The following diagram shows the QJ71C24-R2 and QJ71C24N-R2. The dimensions of the QJ71C24-R2 are the same as QJ71C24N-R2 (except for model name). QJ71C24N-R2 4 + 10 RUN NEU. SD RD CH1 ERR. NEU. CH2 SD RD 98 (3.86) Cable diameter CH1 RS-232 R2 ( 1) CH2 RS-232 QJ71C24N-R2 90 (3.54) 27.4 (1.08) 4.5 (0.18) (Unit: mm (in.)) 1: R2 (Bending radius near connector) : Cable diameter 4 (3) QJ71C24N-R4 QJ71C24N-R4 CH1 RUN NEU. SD RD ERR. NEU.
APPENDIX MELSEC-Q Appendix 6 Example of Connection when a Converter is Used The following shows an example of a connection where the RS-232 to RS-422/485 converters are used in order to communicate data using data communication functions with the MC, non-procedure, or bidirectional protocol. The converters covered in the Appendix are as follows: Model name Manufacturer Tel No. Contact (Recommended Fax No. product) EL Engineering Ltd. System Sacom Co., Ltd.
APPENDIX MELSEC-Q (2) Connection example (Connection example 1) (EL-LINE-II) Q series C24 side CD RD SD DTR SG DSR RS CS RI RS232 signal 1 2 1 2 3 3 4 4 5 5 6 20 7 6 8 8 9 7 RS422 signal FG SW2 SW1 TXD 1 OFF 1 OFF RXD 2 ON 2 OFF 3 OFF 3 OFF 4 ON 4 OFF 5 OFF 5 OFF 6 ON 6 OFF 7 OFF 7 OFF 8 ON RTS CTS DTR DSR CD SG External device side FG TX 2 15 RX 6 19 SDA RTS 3 16 DSRA 7 20 1 or 14 DTRA CTS RDA RDB SG R SDB DSRB R DTRB RTSA RTSB CTSA C
APPENDIX MELSEC-Q (Connection example 3) (KS-485) Q series C24 side 1 CD RD SD DTR SG DSR RS CS RI RS232 signal 2 1 2 3 3 4 5 5 6 6 7 7 20 8 24 9 25 External device side RS485 signal 1 SG 2 TRD+ 3 TRD9 FG SW1 FG FG SDA RD 1 ON SD 2 ON 3 ON RDB 4 OFF SG 5 OFF 6 OFF 7 ON 8 ON CS ER SG DR TC CNT SDB RDA R • Data communication can be made in half-duplex communication.
APPENDIX MELSEC-Q Appendix 7 Communication Support Tool (MX Component) MX Component is an ActiveX control library that supports any types of communication paths between IBM PC/AT compatible personal computers and PLCs. It allows the users to establish communication using simple processing only, without having to know about the different communication protocols used in the individual communication. It also supports various programming languages, allowing for a wide range of application development.
APPENDIX MELSEC-Q (3) Support for wide choice of basic operating systems MX Component can run on IBM PC/AT compatible personal computers running the following basic operating systems: ® ® • Microsoft Windows 95 Operating System ® ® • Microsoft Windows 98 Operating System ® ® • Microsoft Windows NT Workstation Operating System Version 4.
APPENDIX MELSEC-Q Function name Function ReadBuffer Reads from buffer memory. WriteBuffer Writes to buffer memory. GetClockData Reads clock data from PLC CPU. SetClockData Writes clock data to PLC CPU. GetCpuType Reads a PLC CPU type. SetCpuStatus Remote RUN/STOP/PAUSE of PLC CPU EntryDeviceStatus Registers device status monitor. FreeDeviceStatus Deregisters device status monitor. OnDeviceStatus Announces event.
APPENDIX MELSEC-Q Appendix 7.2 Usage Procedure of MX Component This section explains the procedure for creating programs and sample programs using MX Component. (1) Procedure for creating programs The procedure for creating programs is outlined below. ® The usage procedure below uses Visual Basic as an example. 1) Perform the communication settings from a IBM PC/AT compatible personal computer to the PLC by following the wizard. (Some types of controls are set only by programs without using the wizard.
APPENDIX MELSEC-Q (2) Sample program The following sample program reads D0 to D4 (five points) of the target PLC using the logical station number. ® (a) When Visual Basic is used 1) Screen example (Form1) Text1 ' Enter the logical station number. Command1 ' Connect to the communication line. Command2 ' Read the device data. Command3 ' Cut the communication line.
APPENDIX MELSEC-Q Private Sub Command3_Click() ' ' Disconnection ' Dim rtn As Long ' Disconnection rtn = ActEasyIF1. Close() If rtn = 0 Then MsgBox "The disconnection was successful" Else MsgBox "Disconnection Error:" & Hex(rtn) End If End Sub (b) ® When Visual C++ is used // // Connection // void CVCDlg::OnOpen() { long lRet; CString szMessage; UpdateData(); // Get LogicalStationNumber m_actEasyIF. SetActLogicalStationNumber ( m_lLogicalStationNumber ): // Connection lRet = m_actEasyIF.
APPENDIX MELSEC-Q // // Read // void CVCDlg::OnRead() { long lRet; short sData[5]; CString szMessage; // D0-D4 are read lRet = m_actEasyIf. ReadDeviceBlock2 ( "D0", 5, sData ); if ( lRet == 0) { szMessage. Format ( "D0-D5 = %d, %d, %d, %d, %d", sData[0], sData[1], sData[2], sData[3], sData[4] ); MessageBox ( szMessage ); } else { szMessage.
APPENDIX MELSEC-Q Appendix 8 Example of Clear Process Program for Receive Data When performing data communications with non procedure protocol, use the receive data clear request shown in 6.1.4. and display the sequence program example if clearing the receive data from external device. (If the Q series C24 input/output signal is X/Y000 to X/Y01F.) The following I/O signals (X) and internal relays (M) are used in the program. App. - 30 App.
APPENDIX MELSEC-Q POINT When a function version A for the Q Series C24 is used, add the partial circuit (shown with 1) shown in the program example in Section 6.1.4 (3). (Communications are possible when M19 is ON.) App. - 31 App.
APPENDIX MELSEC-Q Appendix 9 Program Examples for Using Q Series C24 at MELSECNET/H Remote I/O Station Appendix 9.1 System configuration and program conditions (1) System configuration The system configuration used in the program examples of this section is shown below. QJ71LP21-25 Remote master station ( 2) GX Developer MELSECNET/H (remote I/O net) network No.1 Control target QJ72lP25-25 Remote I/O station (Station No.
APPENDIX MELSEC-Q (2) Program example for interlocking the remote master station and remote I/O station Interlocks should be applied to the programs according to the link status of the remote master station (host station) and remote I/O station (other station). The following example shows an interlock in the communication program that uses the link status (SB47, SB49) of the remote master station and the link status (SW70 bit 0, SW74 bit 0, SW78 bit 0) of the remote I/O station (Station No. 1).
APPENDIX MELSEC-Q Appendix 9.2 When accessing buffer memory using sequence program In the following program example, data are read from or written to the buffer memory of the Q series C24 using the REMFR/REMTO instruction. POINT Use GX Configurator-SC to change the default value of the buffer memory. Using GX Configurator-SC, save the new setting value to the flash ROM of the Q series C24. (Refer to Chapter 8.
APPENDIX MELSEC-Q Appendix 9.3 When sending on-demand data The following program example sends on-demand data using the REMFR/REMTO instruction and I/O signals. For the on-demand function, refer to Section 3.11 of the Reference Manual and Chapter 10 of the User's Manual (Application). (1) Program conditions The following program sends on-demand data from the CH1 side when the transmission command (X1022) turns ON. (a) Devices used: • Transmission command ..................................................
APPENDIX MELSEC-Q (2) Program example Changes the transmission command into pulses. Sets the transmission data. Transfers the transmission data to the transmission area address of the buffer memory.
APPENDIX MELSEC-Q Appendix 9.4 When receiving data using nonprocedural or bidirectional protocol The following program example receives data under the nonprocedural protocol (or bidirectional protocol) using the REMFR instruction and I/O signals. Refer to Chapter 6 for the communication using the nonprocedural protocol. Refer to Chapter 7 for the communication using the bidirectional protocol. Refer to Chapter 11 of the User's Manual (Application) for data communication using the user frames.
APPENDIX MELSEC-Q (2) Program example Changes the receive read request signal into pulses. Reads the received data count from the communication area of the buffer memory to D1. Received data acquisition command Abnormal completion of REMFR instruction Reads data as many as the received data count from the communication area of the buffer memory to D1.
APPENDIX MELSEC-Q Appendix 9.5 When sending data using nonprocedural or bidirectional protocol The following program example sends data under the nonprocedural protocol (or bidirectional protocol) using the REMFR/REMTO instruction and I/O signals. Refer to Chapter 6 for the communication using the nonprocedural protocol, and to Chapter 7 for the communication using the bidirectional protocol.
APPENDIX MELSEC-Q (2) Program example Changes the transmission command into pulses. Sets the transmission data. Sets the transmission data count. Transfers the setting value to the communication area of the buffer memory. Turns ON the transmission request signal. Abnormal completion of REMTO instruction Normal completion of transmission Turns OFF the transmission request signal.
APPENDIX MELSEC-Q Appendix 9.6 When clearing received data The following program example uses the receive data clear request area of the buffer memory. Refer to Section 6.1.4 for received data clear. (1) Program conditions The following program clears the received data in the OS area of the QJ71C24N when the receive clear command (X1025) turns ON. (a) Devices used: • Receive clear command ......................................................... X1025 • Receive clear processing execution command ........
APPENDIX MELSEC-Q (2) Program example Changes the receive clear command into pulses. Sets the receive clear acceptance flag. Receive clear processing execution command ( 1) Sets the clear request. Transfers the setting value to the receive data clear request area of the buffer memory. Sets the receive clearing flag. Sets the completion check flag.
APPENDIX MELSEC-Q Appendix 9.7 When sending data using user frames The following program example sends data by the user frames using the REMFR/REMTO instruction and I/O signals. Refer to Section 11.4 of the User's Manual (Application) for the transmission using the user frames. (1) Program conditions The following program sends data using the user frames from the CH1 side when the transmission signal (X1026) turns ON. (a) Devices used: • Transmission command ..............................................
APPENDIX MELSEC-Q (c) Buffer memory settings used in this example Address Decimal (Hexadecimal) Name CH1 150 (96H) Word/byte units designation 162 (A2H) Transmission buffer memory head address designation 0400H 163 (A3H) Transmission buffer memory length designation 0200H 183 (B7H) CR/LF output designation 0 184 (B8H) Output head pointer designation 1 185 (B9H) Output count designation 186 (BAH) First output frame No. designation 03F2H 187 (BBH) Second output frame No.
APPENDIX MELSEC-Q (2) Program example The user frames No. 3F2H, 3F3H, 41BH and 8001H are assumed to have been registered in advance. Changes the transmission command into pulses. Sets the transmission data count. Sets the transmission data. Transfers the setting value to the communication area of the buffer memory.
APPENDIX MELSEC-Q Appendix 9.8 When performing initial setting The following program example performs initial setting using the REMTO instruction. Execute this program when changing the default values of the Q series C24 buffer memory. Refer to Chapter 8 when changing the default values of the Q series C24 buffer memory using GX Configurator-SC. (1) Program conditions The following program performs initial setting on the CH1 side when the initial setting command (X1027) turns ON.
APPENDIX MELSEC-Q (2) Program example Changes the initial setting command into pulses. Sets the word/byte units designation to byte. Transfers the setting value to the word/byte units designation area of the buffer memory. Initial setting command 2 Abnormal completion of REMTO instruction Sets 400H to the buffer memory head address for on-demand transmission.
APPENDIX MELSEC-Q Appendix 9.9 When registering user frame The following program example registers a user frame to the flash ROM of the Q series C24 using the REMFR/REMTO instruction and I/O signals. Refer to Section 9.4 of the User's Manual (Application) for the registration of the user frame. POINT It is recommended to use GX Configurator-SC when registering a user frame to the flash ROM of the Q series C24. (Refer to Chapter 8.
APPENDIX MELSEC-Q (2) Program example Changes the registration command into pulses. Sets the registration instruction. Sets the frame No. Sets the number of data bytes registered. Sets the user frame. Transfers the setting values to the flash ROM access area of the buffer memory(registration instruction and frame No.).
APPENDIX MELSEC-Q Appendix 9.10 When reading user frame The following program example reads a user frame registered to the flash ROM of the Q series C24 using the REMFR/REMTO instruction and I/O signals. Refer to Section 9.4 of the User's Manual (Application) for details. POINT It is recommended to use GX Configurator-SC when reading a user frame registered to the flash ROM of the Q series C24. (Refer to Chapter 8.
APPENDIX MELSEC-Q (2) Program example Changes the read command into pulses. Sets the read instruction. Sets the frame No. Transfers the setting values to the flash ROM access area of the buffer memory. Sets the read flag. Abnormal completion of REMTO instruction Turns ON the flash ROM read request signal.
APPENDIX MELSEC-Q Appendix 9.11 When deleting user frame The following program example deletes a user frame registered to the flash ROM of the Q series C24 using the REMFR/REMTO instruction and I/O signals. Refer to Section 9.4 of the User's Manual (Application) for details. POINT It is recommended to use GX Configurator-SC when deleting a user frame registered to the flash ROM of the Q series C24. (Refer to Chapter 8.
APPENDIX MELSEC-Q (2) Program examples Changes the delete command into pulses. Sets the delete instruction. Sets the frame No. Transfers the setting values to the flash ROM access area of the buffer memory. Sets the delete flag. Abnormal completion of REMTO instruction Turns ON the flash ROM read request signal.
APPENDIX MELSEC-Q Appendix 9.12 When changing the communication protocol and transmission setting This section provides a program example that changes the communication protocol and transmission setting using the REMFR/REMTO instructions and I/O signals. (When the module is used on a MELSECNET/H remote I/O station, the station No. cannot be changed because the UINI instruction is unavailable.
APPENDIX MELSEC-Q (2) Program examples Sets the changing flag. Starts the change processing of CH1. Sets the switching mode No. designation. Sets the transmission specifications after switching designation. Transfers the set values to the mode switching designation area. Sets the CH1 change command. REMTO instruction abnormally completed Sets the CH1 mode switching request. Resets the CH1 mode switching request.
APPENDIX MELSEC-Q Resets the changing flag. Sets the change completion flag. Reexamines the modifications. REMFR instruction abnormally completed App. - 56 App.
APPENDIX MELSEC-Q Appendix 10 Setting Value Recording Sheet The following sheet is for recording parameter setting values set by GX Developer. Use as many copies as needed. In order to review the setting values of the utility package (GX Configurator-SC), print out the content of the file generated by the "Make text file" function of GX Configurator-SC which can be used as the setting value recording sheet. [Module No.
APPENDIX MELSEC-Q (GX Developer "Intelligent function module switch setting" setting values recording check sheet) (1) Transmission setting (Enter "0" or "1" in the bit position field) b7 b6 b5 b4 b3 b2 b1 b0 CH1 side CH2 side Bit Description OFF (0) ON (1) Remarks b0 Operation setting Independent Linked Always set to OFF on CH1 side. Do not include parity bit. b1 Data bit 7 8 b2 Parity bit No Yes Vertical parity Even Valid only when parity bit is set to Yes.
INDEX Ind [A] [F] Applicable modules ..................................... 2-1 ASCII-code table ...................................App-17 Auto refresh .............................................. 4-22 [B] Full-duplex communications ......................7-24 Function lists of the Q series C24..............3-11 Functions available with utility package ......8-2 [G] BIDIN.......................................................... 9-14 Bidirectional protocol ...................................
[M] [S] m:n ............................................................... 2-4 Monitor/test ................................................ 8-32 Multiple CPU system ............................ 1-7, 5-3 Ind Serial communication module .....................1-1 Setting and procedures prior to operation...4-1 Setting for GX Developer...........................4-12 Simultaneous transmissions......................7-24 SIO............................................................10-36 SPBUSY...............
WARRANTY 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.
Microsoft, Windows, Windows NT are registered trademarks of Microsoft Corporation in the United States and other countries. Adobe and Acrobat are registered trademarks of Adobe Systems Incorporation. 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. Other company names and product names used in this document are trademarks or registered trademarks of respective owners.
MITSUBISHI ELECTRIC HEADQUARTERS EUROPEAN REPRESENTATIVES EUROPEAN REPRESENTATIVES EUROPEAN REPRESENTATIVES MITSUBISHI ELECTRIC EUROPE EUROPE B.V. German Branch Gothaer Straße 8 D-40880 Ratingen Phone: +49 (0)2102 486-0 Fax: +49 (0)2102 486-1120 e mail: megfamail@meg.mee.com MITSUBISHI ELECTRIC FRANCE EUROPE B.V. French Branch 25, Boulevard des Bouvets F-92741 Nanterre Cedex Phone: +33 1 55 68 55 68 Fax: +33 1 55 68 56 85 e mail: factory.automation@fra.mee.com MITSUBISHI ELECTRIC IRELAND EUROPE B.V.