• SAFETY PRECAUTIONS • (Read these precautions before using this product.) Before using this product, please read this manual and the relevant manuals carefully and pay full attention to safety to handle the product correctly. These precautions apply only to this product. Refer to the user’s manual of the CPU module to use for a description of the programmable controller system safety precautions. WARNING" and " CAUTION".
[INSTALLATION PRECAUTIONS] CAUTION • Insert the tabs at the bottom of the module into the holes in the base unit before mounting the module. (For the Q2AS series modules, tighten the screws to the base unit with the specified torque.) Incorrect mounting may cause malfunction, failure, or drop of the module. • Shut off the external power supply for the system in all phases before mounting or removing the module. Failure to do so may result in damage to the product.
[WIRING PRECAUTIONS] CAUTION • Use applicable solderless terminals and tighten them within the specified torque range. If any spade solderless terminal is used, it may be disconnected when the terminal screw comes loose, resulting in failure. [STARTUP AND MAINTENANCE PRECAUTIONS] WARNING • Do not touch any terminal while power is on. Doing so can cause electric shock.
• CONDITIONS OF USE FOR THE PRODUCT • (1) Mitsubishi programmable controller ("the PRODUCT") shall be used in conditions; i) where any problem, fault or failure occurring in the PRODUCT, if any, shall not lead to any major or serious accident; and ii) where the backup and fail-safe function are systematically or automatically provided outside of the PRODUCT for the case of any problem, fault or failure occurring in the PRODUCT.
REVISIONS The manual number is noted at the lower left of the back cover. Print Date Nov. 1996 Feb. 1997 Manual Number IB (NA)-66722-A IB (NA)-66722-B Revision First printing Addition Section 3.2.1, 4.12.3, 13.2 Correction Chapter 1, Section 1.1, 3.2, 3.4, 8.3.2, 13.1, 13.5 Aug. 1997 IB (NA)-66722-C Addition Section 1.1, 5.3.4, 5.4, Chapter 14, 15, 16 Correction Chapter 1, Section 1.4, 1.5, 2.1, 2.2, 2.2.3, 3.2, 3.2.1, 3.3, 4.1, 5.1, 7.1, 7.2.1, 7.3, 7.5, 7.6.1, 7.6.3, 7.6.4, 7.7.1, 7.7.2, 7.8 Jan.
The manual number is noted at the lower left of the back cover. Print Date Apr. 2006 Manual Number IB (NA)-66722-I Revision Addition Conformation to the EMC Directive and Low Voltage Instruction, Section 11.1 Correction SAFETY PRECAUTIONS, Chapter 1, Section 2.2.2, 2.2.4, 3.2, 4.1, 4.8, 6.3, 7.5, 8.4.2, 11.3.2, 13.3 Sep. 2007 IB (NA)-66722-J Sep. 2009 IB (NA)-66722-K Correction Section 1.4, 1.5, 2.1, 2.2.3, 3.5.2, 7.3, 8.4.1, 15.2.2, 15.7, App 1.
INTRODUCTION Thank you for purchasing the MELSEC-QnA Series programmable controller. Before using the product, please read this manual thoroughly to gain an understanding of its functions so you can use it properly. Please forward a copy of this manual to the end user. CONTENTS SAFETY PRECAUTIONS..............................................................................................................................A- 1 CONDITIONS OF USE FOR THE PRODUCT .................................................
3.5 Buffer Memory......................................................................................................................................... 3-19 3.5.1 Buffer memory list ............................................................................................................................ 3-19 3.5.2 Buffer memory details ...................................................................................................................... 3-21 4. FUNCTIONS.................................
7.3 Name of Each Part and Settings ............................................................................................................ 7- 4 7.4 Checking Module Condition (Hardware Test)........................................................................................ 7- 8 7.5 Module Wiring with CC-Link Dedicated Cable....................................................................................... 7-10 7.6 T-Branch Connection with the CC-Link Dedicated Cable ............................
10. COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION................................................................................................................... 10- 1 to 10-14 10.1 System Configuration.......................................................................................................................... 10- 1 10.1.1 Setting of the master station ........................................................................................................ 10- 2 10.1.
. TROUBLESHOOTING............................................................................................................. 13- 1 to 13-18 13.1 Verification When a Trouble Occurs .................................................................................................. 13- 1 13.2 Troubleshooting When the "ERR" LED on the Master Station Is Flashing....................................... 13- 4 13.3 Error Codes .......................................................................................
15.9 Temporary Error Invalid Station Specification Function .................................................................... 15-15 15.9.1 I/O status of the temporary error invalid station specification..................................................... 15-15 15.9.2 Link special relays/registers (SB, SW) relating to the temporary error invalid station specification function.................................................................................................................... 15-15 15.9.
MANUAL The following manuals are to this product. Order as needed, referring to the table below. Relevant Manuals Manual No. (Model code) Manual Name SW2IVD/NX-GPPQ GPP Function Software Package Operating Manual (Offline Version) Describes the offline function of program creation method, print out method and file maintenance, etc. on the SW2NX-GPPQ/SW2IVD-GPPQ.
MEMO A - 14
1 OVERVIEW MELSEC-QnA 1. OVERVIEW The CC-Link system is a system that connects distributed modules such as I/O modules, intelligent function modules, and special function modules using dedicated cables so that these modules can be controlled by a programmable controller CPU. This chapter describes outline of the CC-Link. By distributing each module to the equipment device such as the conveyor line and machine devices, the wiring conservation of the entire system can be accomplished.
1 OVERVIEW MELSEC-QnA When applying any of the program examples to the actual system, examine the applicability and confirm that it will not cause system control problems. After unpacking, please check that the following components are included.
1 OVERVIEW MELSEC-QnA 1.1 How to Use This Manual The master/local module has the following functions added from the function version B or later. The detailed descriptions of the additional functions are provided in Chapter 14 or later. (1) Scan synchronous function Link scan can be executed synchronized with the sequence scan.
1 OVERVIEW MELSEC-QnA 1.2 Characteristics The characteristics of the CC-Link are described below: (1) Remote I/O station communication The communication is performed with only on/off data (remote input RX and remote output RY). Master station Remote I/O station Remote input (RX) Link scan Remote output (RY) Link scan Input Output (2) Remote device station communication The communication is performed with on/off data (remote input RX and remote output RY) and numeric data (remote register).
1 OVERVIEW MELSEC-QnA (3) Local station communication The data communication between programmable controller CPUs can be performed in N:N relationship with bit data (remote input RX and remote output RY) and word data (remote register) Master station Local station Local station Remote input (RX) Remote output (RY) Remote output (RY) Link scan Remote output (RY) Link scan Remote input (RX) Link scan Remote register (RWw) Remote input (RX) Link scan Remote register (RWr) Link scan Remote regist
1 OVERVIEW MELSEC-QnA (6) Link points 2048 points of remote input (RX), 2048 points of remote output (RY), and 512 points of remote register (RW) can be used for communication in one system. For one remote station or local station, 32 points of remote input (RX), 32 points of remote output (RY), and 8 points of remote register (RW) (RWw: 4 points, RWr: 4 points) can be handled.
1 OVERVIEW MELSEC-QnA (8) Reserved station function By setting the station which is not actually connected (station planned for connection in the future) as a reserved station, the station will not be handled as a faulty station. Station planned for connection in the future (Reserved station) Station No.4 Master station Local station (occupies 4 stations) Station No.1 Station No.3 Remote station (occupies 2 stations) Remote station (occupies 1 station) Station No.8 (Reserved station) Station No.
1 OVERVIEW MELSEC-QnA (10) Parameter registration to the E2PROM By registering the parameters to the E2PROM, the parameter settings do not have to be performed at each master station startup (power off on). Because this is the E2PROM, parameters are stored even if the module's power is turned off.
1 OVERVIEW MELSEC-QnA 1.3 Communication Overview 1.3.1 Communication between the master station and remote I/O station The overview of the communication between the master station and remote I/O station is described below. Refer to Section 4.2 for details.
1 OVERVIEW MELSEC-QnA 1.3.2 Communication between the master station and remote device station The overview of the communication between the master station and remote device station is described below. Refer to Section 4.3 for details.
1 OVERVIEW MELSEC-QnA 1.3.3 Communication between the master station and local station The overview of the communication between the master station and local station is described below. Refer to Section 4.4 for details.
1 OVERVIEW MELSEC-QnA 1.3.4 Compound system communication The overview of compound system communication with remote I/O stations, remote device stations, and local stations is described below. Refer to Section 4.5 for details.
1 OVERVIEW MELSEC-QnA 1.4 Number of Occupied Stations and Station Number, Number of Modules and Number of Stations The relationship between number of occupied station and station number, and between number of modules and number of stations is described below. (1) Number of occupied stations The number of occupied stations is fixed for each module (remote I/O station, remote device station, and local station). However, the number of occupied stations can be set (1 to 4 stations ) for local stations.
1 OVERVIEW MELSEC-QnA 1.5 Generic Terms and Abbreviations Generic terms and abbreviations used in this manual are shown below.
1 OVERVIEW MELSEC-QnA Generic Term/Abbreviation RWw RWr Description Remote register (Write area for CC-Link) Information output in 16-bit units from the master station to the slave station. Remote register (Read area for CC-Link) Information entered in 16-bit units from the slave station to the master station.
2 SYSTEM CONFIGURATION MELSEC-QnA 2. SYSTEM CONFIGURATION The system configuration for the CC-Link is described in this chapter. 2.1 Total Configuration 2 A total of 64 remote I/O stations, remote device stations, or local stations can be connected for one master station.
2 SYSTEM CONFIGURATION MELSEC-QnA 2.2 Applicable System The applicable CPU modules and the precautions for system configuration are described below. 2.2.1 Applicable CPU and number of modules that can be installed The applicable programmable controller CPU, data link system/network system, and the number of modules that can be installed are shown in Table 2.1. However, intelligent mode cannot be used for future plan. Table 2.
2 SYSTEM CONFIGURATION MELSEC-QnA 2.2.2 Precautions when configuring a system Design the system with the following considerations to prevent mis-input from the remote I/O module: (1) During power on and power off Start the data link after turning on the power for the remote I/O module. Turn off power for the remote I/O module after stopping the data link.
2 SYSTEM CONFIGURATION MELSEC-QnA (b) Countermeasure for mis-input Programmable controller CPU Master module Power supply module For DC input Wire the power supply cable for the power supply module, stabilized power, and input/external-supply power of the AC input from the same power source.
2 SYSTEM CONFIGURATION MELSEC-QnA POINT To utilize the functions described in Chapter 14 or later, use a module with "9707B*" or later is shown as a DATE code on the rating plate. * "9707B" indicates that the module was manufactured in July 1997 and its function version is B. PROGRAMMABLE CONTROLLER DATE 0512 B MODEL POWER DATE MADE IN JAPAN Manufactured date BD992C103H06 0512 B MADE IN JAPAN BD992C154H06 Manufactured date Function version Function version (3) Access to station No.
2 SYSTEM CONFIGURATION MELSEC-QnA 2.2.3 List of system equipment restricted by master/local module versions Table 2.2 lists the CC-Link system equipment restricted by the function, hardware and software versions of the master/local modules. Table 2.
2 SYSTEM CONFIGURATION MELSEC-QnA 2.2.4 About Ver. 1.10 The module of which the station to station cable length is uniformly 20cm or more by improving the conventional limit of the station to station cable length is defined as Ver. 1.10. The conventional modules are defined as Ver. 1.00. Refer to Section 3.2.2 for the maximum overall cable distance of Ver. 1.10. The conditions for setting the station to station cable length uniformly to 20cm or more are indicated below.
2 SYSTEM CONFIGURATION MELSEC-QnA (c) Front of the A1SJ61QBT11 8 NC 9 (FG) 10 A1SJ61QBT11 (d) Rating plate of A1SJ61QBT11 MODEL POWER DATE MADE IN JAPAN BD992C154H06 2-8 Relevant regulation standards
3 SPECIFICATION MELSEC-QnA 3. SPECIFICATION 3.1 General Specification For general specifications, refer to the user's manual for the CPU module used.
3 SPECIFICATION MELSEC-QnA 3.2 Performance Specifications The performance specifications of the CC-Link is shown in Table 3.2. Table 3.
3 SPECIFICATION MELSEC-QnA 3.2.1 Maximum overall cable distance (for Ver. 1.
3 SPECIFICATION MELSEC-QnA (Example) When the transmission rate is 10 Mbps, and 43 remote I/O stations and remote device stations are connected using the CC-Link dedicated high performance cable, because the cable connecting the second and third stations is "35 cm (13.78 in.)", the maximum overall cable distance will be "80 cm (31.5 in.)". Master station First Second Third 4th 43th Remote I/O station Remote device station Remote I/O station Remote I/O station Remote device station 1 m (3.
3 SPECIFICATION MELSEC-QnA 3.2.2 Maximum overall cable distance (for Ver. 1.10) The relation of the transmission speed and maximum overall cable distance when configuring the entire system with Version 1.10 modules and cable is shown below.
3 SPECIFICATION MELSEC-QnA 3.3 CC-Link Dedicated Cable Use the CC-Link dedicated cables for the CC-Link system. If a cable other than the CC-Link dedicated cable is used, the performance of the CC-Link system cannot be guaranteed. For the specifications of the CC-Link dedicated cables or any other inquiries, visit the following website: CC-Link Partner Association: http://www.cc-link.org/ REMARK For details, refer to the CC-Link cable wiring manual issued by CC-Link Partner Association.
3 SPECIFICATION MELSEC-QnA 3.4 I/O Signals to the Programmable Controller CPU The I/O signals for the master/local module's programmable controller CPU is described. 3.4.1 I/O signal list The list of I/O signals is described in Table 3.3. The "n" in the table indicates the master/local module's first I/O number, and it is determined by the installation position and the module installed before the master/local module.
3 SPECIFICATION MELSEC-QnA Table 3.
3 SPECIFICATION MELSEC-QnA 3.4.2 I/O signal details The on/off timing, conditions, etc. of I/O signals shown in Table 3.3 are described. (1) Module error: Xn0 Indicates if the module is normal or not. Turns ON when a watchdog timer error occurs due to a hardware fault or the like. When making a reset, reset the programmable controller CPU.
3 SPECIFICATION MELSEC-QnA (2) Data link status at host station: Xn1 Indicates data link status at the host station. SB006E represents the same meaning. For programming, use either Xn1 or SB006E. Note that the ON/OFF condition for Xn1 is opposite to that for SB006E.
3 SPECIFICATION MELSEC-QnA (4) Data link status at other stations: Xn3 Indicates data link status at other stations (remote/local stations). SB0080 represents the same meaning. For programming, use either Xn3 or SB0080. OFF : all stations normal ON : error station exists (An error station status is stored in SW0080 to 83.) (5) Module reset acceptance complete: Xn4 Indicates the acceptance status of reset request by the module reset request (Yn4). Reset cannot be performed when module error (Xn0 on).
3 SPECIFICATION MELSEC-QnA (b) When module reset request (Yn4) is turned on, module ready (XnF) turns off and initialization is executed. When the initialization is completed abnormally, module ready (XnF) does not turn on, but module error (Xn0) turns on.
3 SPECIFICATION MELSEC-QnA (7) Data link startup by buffer memory parameter error completion: Xn7 Indicates abnormal completion in data link startup requested by the buffermemory parameter data link startup request (Yn6). (a) When (Yn6) is turned on, the parameter contents at the (address 0H to 5FH) in buffer memory are checked. If error is detected the signal for "data link startup by buffer-memory parameter abnormal completion" (Xn7) is turned on.
3 SPECIFICATION MELSEC-QnA (9) Data link startup by E2PROM parameter error completion: Xn9 Indicates abnormal completion in data link startup requested by the E2PROM parameter data link startup request (Yn8). (a) When (Yn8) is turned on, the E2PROM parameter contents are checked. If error is detected the signal for "data link startup by E2PROM parameter abnormal completion" (Xn9) is turned on.
3 SPECIFICATION MELSEC-QnA (11) Parameter registration to E2PROM error completion: XnB Indicates abnormal completion in registering parameters at (buffer-memory address 0H to 5FH) to E2PROM requested by the parameter registration request to E2PROM (YnA). (a) When the parameter registration request (YnA) to the E2PROM is turned on, the parameters stored in the buffer-memory "parameter information area (address 0H to 5FH)" are written to the E2PROM.
3 SPECIFICATION MELSEC-QnA (12) E2PROM erasure normal completion: XnD This signal indicates the normal completion of erasing the parameters in the E2PROM in response to the E2PROM erasure request (YnD). (a) When the E2PROM erasure request (YnD) turns on, the parameters in the E2PROM are erased. (b) On normal completion of erasure, the E2PROM erasure normal completion (XnD) turns on. (c) By turning off the E2PROM erasure request (YnD), the E2PROM erasure normal completion (XnD) turns off.
3 SPECIFICATION MELSEC-QnA (14) Module ready: XnF Indicates if the module is ready for operation. (a) Turns on automatically when the module becomes ready for operation Used as an interlock signal when a sequence program is used to make access to the master/local module. (b) Turns off when one of the following conditions occur: • There is an error in the module switch settings. • The module reset request signal (Yn4) is turned on. • The module error signal (Xn0) is turned on.
3 SPECIFICATION MELSEC-QnA (16) Module reset request: Yn4 Signal used to reset the module for debugging. The module can be reset individually without resetting the programmable controller CPU. If you cannot start the remote station earlier than starting the system in any method, resetting the module after the start of the remote station allows the system to start from the initial status securely. Refer to (5) for signal timing.
3 SPECIFICATION MELSEC-QnA 3.5 Buffer Memory The buffer memory is used to swap data between the master/local module and the programmable controller CPU. In the programmable controller CPU, the FROM/TO instructions are used to read/write data. The contents of the buffer memory return to the default values when the power is turned off and the programmable controller CPU is reset. 3.5.1 Buffer memory list The buffer memory list is shown in Table 3.4.
3 SPECIFICATION MELSEC-QnA Table 3.4 Buffer memory list (2/2) Address Hex. Dec. Item Remote register (RWr) 2E0H (Master station: 736 to to for receiving 991 3DFH Local station: for receiving) 3E0H 992 to to 1503 5DFH (Prohibited to use) Read/write possibility Details When master station: Stores the received data from the remote/local station. When local station: Stores the received data from the master station. – 1504 to Link special relay (SB) 1535 Stores the data-link status.
3 SPECIFICATION MELSEC-QnA 3.5.2 Buffer memory details The details of each item shown in Table 3.4 of Section 3.5.1 is described. (1) Parameter information area The conditions to perform data link is set. Also, these can be registered in the E2PROM. Table 3.5 Parameter information area list Address Hex. Dec.
3 SPECIFICATION MELSEC-QnA (c) Number of automatic return modules This sets the number of remote/local stations that can return to the system during 1 link scan. The range is "1 to 10 (modules)." (d) Operation specification when CPU is down This specifies the data-link status when the master station programmable controller CPU has an error which "stops the error operation". "0" is stop and "1" is continue.
3 SPECIFICATION MELSEC-QnA (f) Error invalid station specification This is set so that the remote/local station that can no longer perform data link due to power off, etc. will not be treated as a "data-link faulty station" on the master station and the local station. Be careful, however, for errors will not be detected. 1 When the same station number is specified as a reserved station, the reserved station specification has the priority.
3 SPECIFICATION MELSEC-QnA (g) Station information This sets the remote/local station type for connected remote/local stations and reserved stations. 1 The data configuration to be set is shown below.
3 SPECIFICATION MELSEC-QnA (2) Remote input (RX) and remote output (RY) (a) Master station local station 1 Master station • Input status from remote I/O station, remote device station (RX) and local station (RY) are stored. • Two words are used per station. Remote I/O station (station No.1: occupies 1 station) Master station Address E0H For station No.1 E1H E2H For station No.2 E3H E4H For station No.3 E5H E6H For station No.4 E7H E8H For station No.5 E9H EAH For station No.6 EBH ECH For station No.
3 SPECIFICATION MELSEC-QnA 2 Local station • Data to be sent to master station is stored in the remote output (RY) corresponding to the host station. • Input status from remote I/O station, remote device station (RX) and other local station are stored. • Two words are used per station. ... The last 2 bits cannot be used when the master station and the local station are communicating. Local station (station No.4: occupies 1 station) Local station (station No.
3 SPECIFICATION MELSEC-QnA (b) Master station station 1 Master station • Output status to remote I/O station, remote device station (RY) and all local stations (RX) are stored. • Two words are used per station. Remote I/O station (station No.1: occupies 1 station) Master station Address 160H For station No.1 161H 162H For station No.2 163H 164H For station No.3 165H 166H For station No.4 167H 168H For station No.5 169H 16AH For station No.6 16BH 16CH For station No.7 16DH 16EH For station No.
3 SPECIFICATION MELSEC-QnA 2 Local station • Data received from remote I/O station, remote device station (RY) and master station (RY) are stored. • Two words are used per station. ... The last 2 bits cannot be used when the master station and the local station are communicating. Local station (station No.4: occupies 1 station) Local station (station No.
3 SPECIFICATION MELSEC-QnA (3) Remote register (RWw) and remote register (RWr) (a) Master station (RWw) Remote device station (RWw)/ local station (RWr) 1 Master station • Data to be sent to remote register at remote device station (RWw) and remote registers of all local stations (RWr) are stored. • Four words are used per station. Remote I/O station (station No.1: occupies 1 station) Master station Remote device station (station No.
3 SPECIFICATION MELSEC-QnA 2 Local station • Data sent to the remote register (RWw) of remote device station can also be received. • Four words are used per station. Local station (station No.4: occupies 1 station) Remote register (RWr) Local station (station No.
3 SPECIFICATION MELSEC-QnA Following tables show the relationship between station numbers and buffer memory addresses used.
3 SPECIFICATION MELSEC-QnA [Local station] Station number and buffer memory correspondence table Station number 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Buffer memory address 2E0H to 2E3H 2E4H to 2E7H 2E8H to 2EBH 2ECH to 2EFH 2F0H to 2F3H 2F4H to 2F7H 2F8H to 2FBH 2FCH to 2FFH 300H to 303H 304H to 307H 308H to 30BH 30CH to 30FH 310H to 313H 314H to 317H 318H to 31BH 31CH to 31FH 320H to 323H 324H to 327H 328H to 32BH 32CH to 32FH 330H to 333H 334H to 337H 33
3 SPECIFICATION MELSEC-QnA (b) Master station (RWr) local station (RWw) 1 For station No.1 For station No.2 For station No.3 For station No.4 For station No.5 For station No.6 For station No.7 For station No.
3 SPECIFICATION MELSEC-QnA 2 Local station • Data is sent to the master station and other local stations by storing in the address corresponding to the host station number. • Data in the remote register (RWr) of remote device station can also be received. Local station (station No.4: occupies 1 station) Local station (station No.
3 SPECIFICATION MELSEC-QnA Following tables show the relationship between station numbers and buffer memory addresses used.
3 SPECIFICATION MELSEC-QnA (4) Link special relay (SB) Data link status is stored in the form of bit on/off information. Buffer memory address 5E0H to 5FFH corresponds to SB0000 to SB01FF. Refer to Section 8.4.1 for details of link special relay (SB0000 to SB01FF). Following table shows the relationship between buffer memory address 5E0H to 5FFH and SB0000 to SB01FF.
3 SPECIFICATION MELSEC-QnA MEMO 3 - 37
4 FUNCTIONS MELSEC-QnA 4. FUNCTIONS This chapter describes the functions. 4.1 Function List The function list is shown in Table 4.1. Table 4.1 Function list Item Communication between master and remote I/O stations Communication between master and remote device stations Communication between master and local stations Communication with compound system Reserved station function Error invalid station function Function summary Performs on/off data communication with remote I/O station.
4 FUNCTIONS MELSEC-QnA The functions indicated with * are available only when the CPU and software package versions are any of the following: • Q2ASCPU(S1) of the software version Q or later • Q2ASHCPU(S1) of the software version Q or later • Q2ACPU(S1) of the software version E or later • Q3ACPU of the software version E or later • Q4ACPU of the software version E or later • SW21VD-GPPQ/SW2NX-GPPQ or later 4-2
4 FUNCTIONS MELSEC-QnA 4.2 Communication Between the Master Station and Remote I/O Station The overview of the communication between the master station and remote I/O station is described.
4 FUNCTIONS MELSEC-QnA [Remote input] 3 The remote I/O station's input status is automatically (for each link scan) stored in the master station's "remote input (RX)" in the buffer memory. 4 Programmable controller CPU The input status stored in the "remote input (RX)" in the buffer memory is received to the programmable controller CPU with the FROM instruction. Master station Remote I/O station Remote I/O station (station No. 1: occupies 1 station) (station No.
4 FUNCTIONS MELSEC-QnA 4.3 Communication Between the Master Station and Remote Device Station The overview of the communication between the master station and remote device station is described.
4 FUNCTIONS MELSEC-QnA [Data link startup] 1 Turn on the refresh instruction (Yn0) and make the remote output (RY) data valid. When the refresh instruction (Yn0) is off, all the remote output (RY) data is treated as 0 (off). 2 Turn on the data link startup by the E2PROM parameters (Yn8), and start the data link. However, the parameters must be set in E2PROM beforehand. When the data link is started normally, the host data link status (Xn1) turns on.
4 FUNCTIONS MELSEC-QnA [Remote output] 5 With the TO instruction, the on/off data in the remote device station's remote output (RY) is written to the "remote output (RY)" in the buffer memory. 6 Programmable controller CPU Depending on the output status stored in the "remote output (RY)" in the buffer memory, the remote device station's remote output (RY) is turned on/off. Remote device station (station No.
4 FUNCTIONS MELSEC-QnA [Written to the remote register (RWw)] 7 With the TO instruction, the transmission data is written to the "remote register (RWw)" in the buffer memory. 8 Programmable controller CPU TO The data stored in the "remote register (RWw)" in the buffer memory is sent to the remote device station's remote register (RWw). Remote device station (station No.
4 FUNCTIONS MELSEC-QnA [Reading from the remote register (RWr)] 9 The data in the remote device station's remote register (RWr) is automatically stored in the master station's "remote register (RWr)" in the buffer memory 10 Programmable controller CPU FROM The remote device station's remote register (RWr) data stored in the "remote register (RWr)" in the buffer memory is received to the programmable controller CPU with the FROM instruction. Remote device station (station No.
4 FUNCTIONS MELSEC-QnA 4.4 Communication Between the Master Station and Local Station The overview of the communication between the master and local stations is described. Programmable controller CPU SET Yn0 SET Yn8 1 2 Master station Local station (station No. 1) Refresh instruction Refresh instruction 1 Data link startup by EEPROM parameters Buffer memory Buffer memory Remote input (RX) FROM FROM Remote output (RY) 4 5 Receive area from local station No.
4 FUNCTIONS MELSEC-QnA Local station (station No. 2) Programmable controller CPU 1 Refresh instruction SET Yn0 Buffer memory 4 Link scan Link scan Remote output (RY) Receive area from local station No. 1 Send area for host (station No.
4 FUNCTIONS MELSEC-QnA [Data link startup] 1 Turn on the refresh instruction (Yn0) and make the remote output (RY) data valid. When the refresh instruction (Yn0) is off, all the remote output (RY) data is treated as 0 (off). 2 Turn on the data link startup by the E2PROM parameters (Yn8) and start the data link. However, the parameters must be set in the E2PROM beforehand. When the data link is started normally, the host data link status (Xn1) turns on.
4 FUNCTIONS MELSEC-QnA [On/off data from the master station the local station] 7 With the TO instruction, the on/off data to be sent to the local station is written to the master station's "remote output (RY)" in the buffer memory. Programmable controller CPU TO 8 The data in the "remote output (RY)" in the buffer memory is automatically (for each link scan) stored in the local station's remote input (RX) in the buffer memory.
4 FUNCTIONS MELSEC-QnA [Word data from the master station to all local stations] 10 With the TO instruction, the word data to be sent to all local station is written to the master station's "remote register (RWw)" in the buffer memory. Programmable controller CPU TO 11 The data in the "remote register (RWw)" in the buffer memory is automatically (for each link scan) stored to all local station's "remote registers (RWr)".
4 FUNCTIONS MELSEC-QnA [Word data from the local station the master station/other local stations] 13 With the TO instruction, the word data to be sent to the master station or other local stations is written to the local station's "remote register (RWw)" in the buffer memory. However, only writing can be performed to the area corresponding to the host station number.
4 FUNCTIONS MELSEC-QnA 4.5 Communication in Compound Systems The overview of the communication where the remote I/O station, remote device station and local station coexist in the system. Programmable controller CPU SET Yn0 SET Yn8 Remote I/O station (station No. 1) Master station 1 2 Refresh instruction Data link startup by EEPROM parameters Buffer memory FROM FROM FROM FROM 5 5 5 5 Remote input (RX) 3 Receive area from remote I/O station No. 1 Receive area from remote device station No.
4 FUNCTIONS MELSEC-QnA Remote device station (station No. 2) Local station (station No. 3) Local station (station No. 4) 1 1 Refresh instruction Refresh instruction Buffer memory Buffer memory Remote output (RY) Remote output (RY) 3 Receive area from remote I/O station No. 1 Receive area from remote device station No. 2 3 Remote input (RX) Host (station No. 3) send area Receive area from local station No. 4 3 3 4 4 7 Receive area from master station (station No.
4 FUNCTIONS MELSEC-QnA [Data link startup] 1 Turn on the refresh instruction (Yn0) and make the remote output (RY) data valid. When the refresh instruction (Yn0) is off, all the remote output (RY) data is treated as 0 (off). 2 Turn on the data link startup by the E2PROM parameters (Yn8) and start the data link. However, the parameters must be set in the E2PROM beforehand. When the data link is started normally, the host data link status (Xn1) turns on.
4 FUNCTIONS MELSEC-QnA [On/off data from the master station the remote I/O station/remote device station/ local station] 6 With the TO instruction, the on/off data to be sent to the remote I/O station, remote device station and local station is written to the master station's "remote output (RY)" in the buffer memory.
4 FUNCTIONS MELSEC-QnA [Word data from the master station remote device station/all local stations] 8 With the TO instruction, the word data to be sent to remote device station and all local station is written to the master station's "remote register (RWw)" in the buffer memory. 9 The data in the "remote register (RWw)" in the buffer memory is automatically (for each link scan) stored to remote device station's remote register (RWw) and all local stations' remote registers (RWr).
4 FUNCTIONS MELSEC-QnA [Word data from the remote device station/local station the master station] 11 The data in the remote device station's remote register (RWr) is automatically (for each link scan) stored in the master station's remote register (RWr) and all local stations' remote registers (RWw).
4 FUNCTIONS MELSEC-QnA 4.6 Reserved Station Function This is a function to treat the remote and local stations that are not actually connected (but planned for connection in the future) not as "data-link faulty stations". POINT If already connected remote and local stations are set as reserved station, the specified remote and local stations cannot perform data link at all. (1) Setting method The reserved station specification is performed with parameters (buffer memory address 10H to 13H).
4 FUNCTIONS MELSEC-QnA 4.7 Error Invalid Station Function This is a function to treat the remote and local stations that cannot perform data links due to power off, etc. not as "data-link faulty stations" on the master station and the local station. Be careful, however, for errors will not be detected at all if set so. POINT If the remote or local station set as the invalid station and also "specified as a reserved station", the reserved station function has priority.
4 FUNCTIONS MELSEC-QnA 4.8 Data Link Status Setting When the Master Station Programmable Controller CPU Has an Error The data link status for when the master station's programmable controller CPU has an "operation-stop error" can be set. The data link between local stations can be continued. POINT Even if the master station programmable controller CPU has an "operation-stop error", the data link continues.
4 FUNCTIONS MELSEC-QnA 4.9 Setting the Status of Input Data from a Data Link Faulty Station The input (received) data status from a data-link faulty station can be set. (1) Target input (received) data The target buffer-memory area is shown below: Remote I/O station (station No. 1) Master station Remote input (RX) Station No.1 Station No.2 Station No.3 Station No.4 Remote device station (station No. 2) Local station (station No. 3) Local station (station No.
4 FUNCTIONS MELSEC-QnA 4.10 Module Reset Function from a Sequence Program When the switch setting is changed or an error occurs with the module, the module can be reset from the sequence program instead of resetting the programmable controller CPU. However, reset cannot be performed when there is module error (Xn0 is on). POINT Because the programmable controller CPU is not reset, other modules will not be affected at all. A program example for resetting is shown below.
4 FUNCTIONS MELSEC-QnA 4.11 Data Link Stop/Restart The data link in the host station can be stopped or restarted. When the data link is stopped for the master station, the data link for the entire system stops. (1) The link special relay used in the program is shown below: SB0000: Data link restart request SB0002: Data link stop request SB0041: Data link restart complete SB0045: Data link stop complete (2) A program example to stop/restart the data link is shown below.
4 FUNCTIONS MELSEC-QnA 4.12 RAS Function RAS is an abbreviation for Reliability, Availability and Serviceability. This refers to the total ease of use in an automated facility. 4.12.1 Automatic return function This function allows the remote and local station disconnected from the data link due to power off, etc. to be recovered to the data link automatically when the module returns to normal operation. When using the automatic return function, set the mode setting switch to "0" or "1".
4 FUNCTIONS MELSEC-QnA 4.12.2 Slave station cut-off function This function allows data link to continue with the normal remote and local stations by cutting off the remote and local stations which cannot perform data links due to power off, etc.
4 FUNCTIONS MELSEC-QnA 4.12.3 Station number overlap checking function Checks whether the number of occupied stations overlap, by observing the status of the stations actually connected during data link startup (turn on Yn6 and Yn8).
5 DATA LINK PROCESSING TIME MELSEC-QnA 5. DATA LINK PROCESSING TIME 5.1 Status of Each Station When an Error Has Occurred The status of each station when an error has occurred is shown in the table below.
5 DATA LINK PROCESSING TIME MELSEC-QnA Remote device station Data link status Remote input (RX) Remote output (RY) Remote register (RWw) Remote register (RWr) Local station/standby master station/ intelligent device station Remote Remote Remote Remote input output register register (RX) (RY) (RWw) (RWr) When the master station's All points All points programmable controller CPU is stopped Continue Continue Continue OFF OFF (data link continue) When the local station's programmable controller CPU is
5 DATA LINK PROCESSING TIME MELSEC-QnA Remote device station Data link status Remote input (RX) Remote output (RY) Remote register (RWw) Remote register (RWr) Local station, standby master station, intelligent device station Remote Remote Remote Remote input output register register (RX) (RY) (RWw) (RWr) Master Clear station Keep Clear the receive area InputWhen a from the local data Clear communication station with a status error (power communication Continue Continue Continue Continue setting of o
5 DATA LINK PROCESSING TIME MELSEC-QnA 5.2 Link Scan Time The link scan time of CC-Link is calculated as follows using: [Link scan time (LS)] LS = BT {29.4 + (NI × 4.8) + (NW × 9.6) + (N × 32.4) + (ni × 4.8) + (nw × 9.6)} + ST + {Number of communication faulty stations × 48 × BT × Number of retries} BT: Constant (Transmission speed) Transmission speed BT 156kbps 51.2 625kbps 12.8 2.5Mbps 3.2 5Mbps 1.6 [µs] 10Mbps 0.
5 DATA LINK PROCESSING TIME MELSEC-QnA 5.3 Transmission Delay Time Indicates transmission delay time (time required for data transmission). 5.3.1 Master station remote I/O station (1) Master station (RX) remote I/O station (input) [Expression] SM + LS × 3 + Remote I/O station response time [ms] SM: Scan time of the master station's sequence program LS : Link scan time (See Section 5.2.
5 DATA LINK PROCESSING TIME MELSEC-QnA (2) Master station (RY) remote I/O station (output) [Expression] SM + LS × 3 + Remote I/O station response time [ms] SM: Scan time of the master station's sequence program LS : Link scan time (See Section 5.2.
5 DATA LINK PROCESSING TIME 5.3.2 Master station MELSEC-QnA remote device station (1) Master station (RX) remote device station (RX) [Expression] SM + LS × 2 + Remote device station process time [ms] SM: Scan time of the master station's sequence program LS : Link scan time (See Section 5.2.
5 DATA LINK PROCESSING TIME (2) Master station (RY) MELSEC-QnA remote device station (RY) [Expression] SM + LS × 3 + Remote device station process time [ms] SM: Scan time of the master station's sequence program LS : Link scan time (See Section 5.2.
5 DATA LINK PROCESSING TIME MELSEC-QnA (3) Master station (RWw) remote device station (RWw) [Expression] SM + LS × 3 + Remote device station process time [ms] SM: Scan time of the master station's sequence program LS : Link scan time (See Section 5.2.
5 DATA LINK PROCESSING TIME MELSEC-QnA (4) Master station (RWr) remote device station (RWr) [Expression] SM + LS × 2 + Remote device station process time [ms] SM: Scan time of the master station's sequence program LS : Link scan time (See Section 5.2.
5 DATA LINK PROCESSING TIME 5.3.3 Master station MELSEC-QnA local station (1) Master station (RY) local station (RX) [Expression] SM + LS × 3 + SL [ms] SM : Scan time of the master station's sequence program LS : Link scan time (See Section 5.2.
5 DATA LINK PROCESSING TIME MELSEC-QnA (2) Master station (RX) local station (RY) [Expression] SM + LS × 3 + SL [ms] SM : Scan time of the master station's sequence program LS : Link scan time (See Section 5.2.
5 DATA LINK PROCESSING TIME MELSEC-QnA (3) Master station (RWw) local station (RWr) [Expression] SM + LS × 3 + SL [ms] SM : Scan time of the master station's sequence program LS : Link scan time (See Section 5.2.
5 DATA LINK PROCESSING TIME MELSEC-QnA (4) Master station (RWr) local station (RWw) [Expression] SM + LS × 3 + SL [ms] SM : Scan time of the master station's sequence program LS : Link scan time (See Section 5.2.
5 DATA LINK PROCESSING TIME 5.3.4 Master station MELSEC-QnA intelligent device station The transmission delay time between the master station and intelligent device station varies depending on the type of intelligent device station. Refer to the user's manual of the intelligent device used.
5 DATA LINK PROCESSING TIME MELSEC-QnA 5.4 Dedicated Instruction Processing Time Indicates the dedicated instruction processing time (time from when an instruction is issued until a reply is received). 5.4.1 Master station local station local station (1) Master station Indicates the time from when the master station issues an instruction until it receives a reply from a local station. [Expression] (a) For reading MB = [SM + LS × 2 + α + SL + LS × 2 + {(No.
5 DATA LINK PROCESSING TIME MELSEC-QnA (b) For writing 1 MB = [SM + LS + {(No. of writing points + 16)/72} × LS + α + SL + LS × 3 + β + constant bps] × N [ms] SM : Master station sequence scan time SL : Local station sequence scan time LS : Link scan time (Refer to section 5.2) α : Send end internal processing time LS β : Receive end internal processing time LS [Constant bps] Transmission speed 156kbps 625kbps 2.5Mbps 5Mbps 10Mbps constant bps LS LS × 2 LS × 4 LS × 6 LS × 7 N : No.
5 DATA LINK PROCESSING TIME MELSEC-QnA (2) Local station master station Indicates the time from when a local station issues an instruction until it receives a reply from the master station. [Expression] (a) For reading MB = [SL + LS × 3 + α + SM + LS + {(No. of reading points +16)/72} × LS + β + constant bps] × N [ms] SM : Master station sequence scan time SL : Local station sequence scan time LS : Link scan time (Refer to section 5.
5 DATA LINK PROCESSING TIME MELSEC-QnA (b) For writing MB = [SL + LS × 2 + {(No. of writing points + 16)/16} + SM + LS × 2 + β + constant bps] × N [ms] SM : Master station sequence scan time SL : Local station sequence scan time LS : Link scan time (Refer to section 5.2) α : Send end internal processing time 1 × LS + α No.
5 DATA LINK PROCESSING TIME 5.4.2 Local station MELSEC-QnA local station (1) Local station local station Indicates the time from when a local station issues an instruction until it receives a reply from another local station. [Expression] (a) For reading MB = [SL1 + LS × 3 + α + SL2 + LS × 2 1 × LS + β + {(No. of reading points + 16)/16} + constant bps ] × N [ms] SL1: Send end local station sequence scan time SL2: Receive end local station sequence scan time LS : Link scan time (Refer to section 5.
5 DATA LINK PROCESSING TIME MELSEC-QnA (b) For writing MB = [SL1 + LS × 2 + {(No. of writing points + 16)/16} + SL2 + LS × 3 + β + constant bps] × N [ms] SL1: Send end local station sequence scan time SL2: Receive end local station sequence scan time LS : Link scan time (Refer to section 5.2) α : Send end internal processing time 1 × LS + α No.
5 DATA LINK PROCESSING TIME 5.4.3 Master station MELSEC-QnA intelligent device station (1) Master station intelligent device station Indicates the time from when the master station issues an instruction until it receives a reply from an intelligent device station. [Expression] (a) For reading MB = [SM + LS × 2 + α + SM + LS × 2 + {(No. of reading points + 16)/16} × LS + β + constant bps] × N [ms] SM : Master station sequence scan time LS : Link scan time (Refer to section 5.
5 DATA LINK PROCESSING TIME MELSEC-QnA (b) For writing 1 MB = [SM + LS + {(No. of writing points + 16)/72} × LS + α + SM + LS × 3 + β + constant bps] × N [ms] SM : Master station sequence scan time LS : Link scan time (Refer to section 5.2) α : Send end internal processing time LS β : Receive end internal processing time LS [Constant bps] Transmission speed 156kbps 625kbps 2.5Mbps 5Mbps 10Mbps constant bps LS LS × 2 LS × 4 LS × 6 LS × 7 N : No.
5 DATA LINK PROCESSING TIME MELSEC-QnA MEMO 5 - 24
6 PARAMETER SETTING MELSEC-QnA 6. PARAMETER SETTING The parameter setting necessary to perform data link with CC-Link is described. 6.1 Procedure from Parameter Setting to Data Link Startup The flow from setting the parameters to starting the data link is described. 6.1.1 Relationship between buffer memory, E2PROM and internal memory The relationship between the master station buffer memory, E2PROM and the internal memory is described.
6 PARAMETER SETTING MELSEC-QnA (3) Internal memory Data link is executed using the parameter information stored in the internal memory. When the module power is turned off, the parameters are erased. Master station Programmable controller CPU SET YnA The parameters area erased when the power is turned off. E2PROM Parameters are not erased even if the power is turned off. Internal memory Data link is executed using these parameter information.
6 PARAMETER SETTING MELSEC-QnA 6.1.2 Procedure from parameter setting to data link start Follow the procedure below: Programmable controller CPU Data (number of connected modules, number of retries, etc.) is written to the master station's "parameter information area (address 0H to 5FH)" in the buffer memory.
6 PARAMETER SETTING MELSEC-QnA 6.2 Parameter Settings The items to set in the master station's "parameter information area (address 0H to 5FH)" in the buffer memory is shown in Table 6.1. Refer to Section 3.5.2 for details of each item. Table 6.
6 PARAMETER SETTING MELSEC-QnA 6.3 Setting from a Sequence Program The parameter setting from a sequence program is described. (1) Program overview This program assumes that the master station's first I/O number is X/Y20 to 3F.
6 PARAMETER SETTING MELSEC-QnA SM402 SET Y20 PLS M2 SET M3 SET Y26 RST Y26 RST M3 Refresh instruction X0020 X002F M2 M3 X0026 Data link by buffer-memory parameters When data link by buffer-memory parameters is completed normally X0027 FROM H0002 H0668 D100 K1 RST Y26 RST M3 PLS M4 SET M5 SET Y2A RST Y2A RST M5 When data link by buffer-memory parameters is completed fault Register command X0020X002F M4 M5 X002A Parameter registration 2 to E PROM When parameter re
6 PARAMETER SETTING MELSEC-QnA (b) During operation SM402 SET Y20 PLS M0 SET M1 SET Y28 RST Y28 RST M1 Refresh instruction X0020 X002F M0 M1 X0028 Data link by E2PROM parameters When data link startup by E2PROM parameters is completed normally X0029 FROM 6-7 H0002 H0668 D100 K1 RST Y28 RST M1 When data link startup by E2PROM parameters is completed fault
6 PARAMETER SETTING MELSEC-QnA (2) Program example A parameter-setting program example with the following system configuration is shown below: (a) System configuration example Reserved station (to be connected in the future) Station No.11 Station No.3 Invalid station Master station (X/Y20 to 3F) Station No.1 Station No.2 1 Remote 2 Remote I/O station (occupies 1 station) I/O station (occupies 1 station) 3 Local station (occupies 4 stations) Station No.7 Station No.
6 PARAMETER SETTING MELSEC-QnA M1 TO MOV H0101 D12 1 Remote I/O station MOV H0102 D13 2 Remote I/O station MOV H2403 D14 3 Local station (reserved station) MOV H1207 D15 4 Remote device station MOV H1209 D16 5 Remote device station MOV H210B D17 6 Local station H0002 H0020 D12 K6 RST M1 SET Y20 PLS M2 SET M3 SET Y26 RST Y26 RST M3 SM402 X0020 Refresh instruction X002F M2 M3 Data link by buffer-memory parameters X0026 When data link startup by buffer-memor
6 PARAMETER SETTING MELSEC-QnA 2 During operation SM402 SET Y20 PLS M0 SET M1 SET Y28 RST Y28 RST M1 Refresh instruction X0020 X002F M0 M1 X0028 Data link by E 2 PROM parameters When data link startup by E2 PROM parameters is completed normally X0029 FROM 6 - 10 H0002 H0668 D100 K1 RST Y28 RST M1 When data link startup by 2 E PROM parameters is completed fault
7 DATA LINK PROCEDURE MELSEC-QnA 7. DATA LINK PROCEDURE 7.1 Data Link Procedure The procedure of performing CC-Link's data link is shown below: Mount the master module, local module, and standby master module to the base unit. Install the remote module and intelligent device module to the control panel or machine. Check that each of master module, local module, and standby master module operates correctly. (Hardware test) .........Refer to Section 7.4.
7 DATA LINK PROCEDURE MELSEC-QnA 7.2 Installation and Setting The following section explains the precautions when handling the master and local modules, from the time they are unpacked until they are installed. For more details on the module installation, see the user's manual for the CPU module used. 7.2.1 Precautions when handling the module (1) Do not drop the module case or subject it to heavy impact since it is made of resin. (2) Do not remove the print circuit board of each module from its case.
7 DATA LINK PROCEDURE MELSEC-QnA 7.2.
7 DATA LINK PROCEDURE MELSEC-QnA 7.3 Name of Each Part and Settings The name of each part in the master/local module, contents of LED display and the setting method of each switch are described. AJ61QBT11 RUN ERR. MST S MST LOCAL CPU R / W R A T E 1 SW M/S PRM TIME LINE E R R O R B 156K 625K 2. 5M 5M 10M TEST S0 S1 S2 L RUN L ERR.
7 DATA LINK PROCEDURE No. 1 MELSEC-QnA Name Description LED display Data-link status can be checked from the LED on status. AJ61QBT11 RUN ERR. MST S MST LOCAL CPU R / W E R R O R SW M/S PRM TIME LINE L RUN L ERR. B 156K 625K 2. 5M 5M 10M LED name R A T E RUN TEST S0 S1 S2 T E S T ERR. MST S MST LOCAL SD RD CPU R/W SW RUN ERR. MST S MST LOCAL CPU R / W L RUN L ERR. SW M/S PRM TIME LINE E R R O R ERROR M/S A1SJ61QBT11 SD RD PRM TIME LINE L RUN TEST BRATE L ERR.
7 DATA LINK PROCEDURE No. 2 Name Description Station number setting switch AJ61QBT11 78 Sets the module's station number (setting at shipment: 0) • In the remote net mode Master station :0 local station : 1 to 64 Standby master station : 1 to 63 The "SW" and "L ERR." LEDs are turned on when a value other than 0 to 64 is set. 456 901 STATION NO. 10 23 456 901 78 1 23 A1SJ61QBT11 STATION NO.
7 DATA LINK PROCEDURE No. 5 Name Description Sets the operation condition (setting at shipment: All is OFF) Condition setting switch AJ61QBT11 OFF M/L ON S MST CLEAR 1/2 1/4 HOLD 3/4 2/3 ON SW 1 2 3 4 5 6 7 8 A1SJ61QBT11 1 2 3 4 5 6 7 8 ON SW OFF SW2 SW3 2 3 CLR HLD 5 1/2 3/4 6 1/4 2/3 Number SW1 ON 1 M / L S.
7 DATA LINK PROCEDURE MELSEC-QnA 7.4 Checking Module Condition (Hardware Test) The hardware test checks if the module alone operates normally. Always perform a hardware test before configuring the system. Perform a hardware test by following the procedure below: Start Connect the terminating resistor with the module between terminal DA and DB for the master/local module. Set master/local module's "mode setting switch" to "6".
7 DATA LINK PROCEDURE MELSEC-QnA Continued from the previous page The test results are displayd on the "LEDs" of master · local module. [When normal] The LEDs are turned on in the following order: "SW" "M/S" "PRM" "TIME". SW M/S PRM TIME Repeats [When error] The error description for each check item is shown below. Replace the module if an error occurs.
7 DATA LINK PROCEDURE MELSEC-QnA 7.5 Module Wiring with CC-Link Dedicated Cable This section explains how to connect the master module, local modules, standby master module, remote modules and intelligent device modules with the CC-Link dedicated cables. (1) Ver.1.10-compatible CC-Link dedicated cables, CC-Link dedicated cables (Ver.1.00), and CC-Link dedicated high-performance cables cannot be used together. If used together, correct data transmission will not be guaranteed.
7 DATA LINK PROCEDURE MELSEC-QnA (10) The connection method is shown below.
7 DATA LINK PROCEDURE MELSEC-QnA 7.6 T-Branch Connection with the CC-Link Dedicated Cable This section explains how to perform a T-branch connection using the CC-Link dedicated cable. 7.6.1 T-Branch system configuration The following shows a system configuration using T-branch connection.
7 DATA LINK PROCEDURE MELSEC-QnA 7.6.2 T-Branch communication specifications list The following describes the communication specifications for T branch connection. For communication specifications not listed below, see Section 3.2. Item Transmission speed Maximum length of the main line Specification 156 kbps 10 Mbps, 5 Mbps, and 2.5 Mbps are not allowed. 100 m (328.1 ft.) 500 m (1640.5 ft.) Indicates the length of the cable between terminating resistors.
7 DATA LINK PROCEDURE MELSEC-QnA Item Specification Remarks CC-Link dedicated cable, Version 1.10 compatible CC-Link dedicated cable (terminating resistor 110 Ω) Distance Length of cable between Transmission Maximum length of between the remote I/O stations or speed main line T remote device stations 1 branches Maximum length of main line, distance between T branches, and length of cable between stations 625 kbps 156 kbps 100 m (328.1 ft.) 500 m (1640.5 ft.
7 DATA LINK PROCEDURE MELSEC-QnA 7.7 Switch Settings The setting method for each switch on the module is described. 7.7.1 Station number setting (master station, local station, standby master station, and remote station) The station number setting method is described for the master station, local station, standby master station, and remote station. POINT Set the data so that it matches the setting in the "station information (address 20H to 5FH)" in the parameter information area in the buffer memory.
7 DATA LINK PROCEDURE MELSEC-QnA (2) Do not skip station numbers. The skipped station number is treated as a "data-link faulty station (link special register SW0080 to 0083: can be checked with buffer memory address 680H to 683H)". However, by setting as a reserved station, the station number will not be treated as a data-link faulty station.
7 DATA LINK PROCEDURE MELSEC-QnA (3) There cannot be duplicate station numbers. If there are duplicate numbers, it results in loading status error. (Error code is stored in SW0069.
7 DATA LINK PROCEDURE MELSEC-QnA 7.7.4 Condition setting The setting method of the condition setting switch (DIP switch) is shown in Table 7.2. Table 7.
7 DATA LINK PROCEDURE MELSEC-QnA 7.8 Checking the Connection Condition (Line Test) The Line Test is performed after all modules are connected with CC-Link dedicated cables to check if the connection is correctly established to perform data link with each remote, intelligent device, local, and standby stations. POINT Line Test 2 is performed when an error has occurred in Line Test 1. Therefore, there is no need to perform Line Test 2 if no error was detected in Line Test 1. 7.8.
7 DATA LINK PROCEDURE MELSEC-QnA Continued from the previous page The test results are displayed on the "LEDs" of master module. [When at least one station is communicating normally] The LEDs are turned on in the following order: "SW" "M/S" "PRM" "TIME". The test result is stored in SW00B4 to B7. However, the test is performed for 64 stations, so ignore the bits for the unconnected stations. SW M/S PRM TIME LED on PRM none Repeats until all stations become faulty.
7 DATA LINK PROCEDURE MELSEC-QnA 7.8.2 Checking communication status with specific remote station/local station/standby master station (line test 2) Confirms if data link can be performed normally with specific remote, local, and standby master stations. There is no need to set parameters. Perform Line Test 2 by following the procedure below: Start Connect only the modules subject of the test to the master module, or power supply on only the test station.
7 DATA LINK PROCEDURE MELSEC-QnA Continued from the previous page The test results are displayed on the "LEDs" of master module. [When normal] The LEDs are turned on in the following order: "SW" "M/S" It is judged as normal when this repeats five times or more. "PRM" "TIME". SW M/S PRM TIME Repeats [When error] LED on Error code storage area Cause PRM • Cable is disconnected, or the corresponding station has error. • Test transmission text is corrupt. none • Test cannot start.
7 DATA LINK PROCEDURE MELSEC-QnA 7.9 Checking Parameters (Parameter Confirmation Test) Contents of the parameters registered in the master module's E2PROM can be confirmed. Perform the test by following the procedure below: Start Set the master module's "mode setting switch" to "5". The test can be performed even when cables are connected to the master module.
7 DATA LINK PROCEDURE MELSEC-QnA Continued from the previous page The test results are displayed on the "LEDs" of master module. By switching the mode setting switch, the parameter content corresponding to each mode number is displayed on LED.
8 PROGRAMMING MELSEC-QnA 8. PROGRAMMING 8.1 Precautions When Programming Precautions when creating programs are described below: (1) Create a read program from the remote input RX (address E0H to 15FH) after data link is started. Also, create a write program to the remote output RY (address 160H to 1DFH) at the last of the entire program.
8 PROGRAMMING MELSEC-QnA (3) Create a program which checks and interlooks the data-link status at remote I/O station, remote device station and local station. Also, create an error-handling program. SW0080 (other station's data link status) Xn0 XnF Xn1 FROM H0000 H0680 K4MO K4 Error-handling program M0 Station No.1 Normal program Station No.
8 PROGRAMMING MELSEC-QnA 8.2 Precautions for Registering Parameters to E2PROM This section explains the precautions for registering parameters to E2PROM. This section may be read by only those who will use the module indicated in Section 8.2.1 and register parameters to E2PROM more than 127 times without switching power off or resetting the CPU. The number of times when parameters can be registered to E2PROM is cleared by switching power off or resetting the CPU. 8.2.
8 PROGRAMMING MELSEC-QnA 8.2.3 Program for registering parameters to E2PROM The program for registering parameters to E2PROM is shown below. This example assumes that the master module is installed to the head I/O number 40. Register command X40 X4F PLS M501 M501 FROM H4 H6BB W0BB K1 <> K0 W0BB SET M510 = K0 W0BB SET M512 Checks the number of times when parameters can be registered to E2PROM.
8 PROGRAMMING MELSEC-QnA M512 PLS M513 M513 X41 TO H4 H5E0 H4 K1 SET M514 Checks the data link status. X41 SET M515 M514 FROM H4 B44 H5E4 K4B40 K1 B45 RST M514 Check that data link has stopped. SET M515 M515 Erases E 2 PROM. PLS M516 Erases E2PROM.
8 PROGRAMMING MELSEC-QnA 8.3 Programming Procedure The procedure for creating a program is described. 8.3.1 Communication between the master station and remote I/O station The basic procedure for creating a program to communicate with remote I/O station is shown below. Refer to Chapter 9 for a program example. Parameter setting .........Buffer memory address 0H to 5FH Refresh instruction .........Yn0 Data link startup by the buffer-memory parameters .........
8 PROGRAMMING MELSEC-QnA 8.3.2 Communication between the master station and remote device station The basic procedure for creating a program to communicate with remote device station is shown below. Refer to Chapter 10 for a program example. Parameter setting .........Buffer memory address 0H to 5FH Refresh instruction .........Yn0 Data link startup by the buffer-memory parameters .........Yn6 For debugging only Parameter registration to E PROM 2 .........YnA Refresh instruction .........
8 PROGRAMMING MELSEC-QnA 8.3.3 Communication between the master station and local station The basic procedure for creating a program to communicate with local station is shown below. Refer to Chapter 11 for a program example. (1) Master station Parameter setting .........Buffer memory address 0H to 5FH Refresh instruction .........Yn0 Data link startup by the buffer-memory parameters .........Yn6 For debugging only Parameter registration to E PROM 2 .........YnA Refresh instruction .........
8 PROGRAMMING MELSEC-QnA (2) Local station 8-9
8 PROGRAMMING MELSEC-QnA 8.3.4 Communication in a compound system The basic procedure for creating a program to remote I/O, remote device and local stations is shown below. Refer to Chapter 12 for a program example. (1) Master station .........Buffer memory address 0H to 5FH Parameter setting Refresh instruction .........Yn0 Data link startup by the buffer-memory parameters .........Yn6 For debugging only 2 Parameter registration to E PROM .........YnA Refresh instruction .........
8 PROGRAMMING MELSEC-QnA (2) Local station Refresh instruction .........Yn0 .........Buffer memory address E0H to 15FH Read from remote input (RX) Read from remote output (RY) .........Buffer memory address 160H to 1DFH Read from remote register (RWw) .........Buffer memory address 1E0H to 2DFH Read from remote register (RWr) .........
8 PROGRAMMING MELSEC-QnA 8.4 Link Special Relay/Register (SB/SW) The data link status can be checked with bit data (link special relay SB) and word data (link special register SW). The SB and SW are used to conveniently express the information on the buffer memory of the master and local modules. They are read and written before use with FROM/TO instructions. • Link special relay (SB).................. Buffer memory address 5E0H to 5FFH • Link special register (SW) ............
8 PROGRAMMING MELSEC-QnA Table 8.1 Link special relay list (continued) Number Name Description Stores the status of communications between the master/local module and the CPU module. OFF : Normal ON : Error Indicates the acceptance status of SEND/RECV/READ/WRITE/REQ instructions (when channel 1 is used).
8 PROGRAMMING MELSEC-QnA Table 8.1 Link special relay list (continued) Number Name SB004C 1 SB004D 1 SB004E 1 SB004F 1 SB0050 SB0060 SB0061 SB0062 1 SB0065 SB0066 SB0067 2 Description Availability ( : available, : not available ) Online Master Local Offline station station Indicates the line test request acceptance status. OFF : Not executed ON : Specification accepted Indicates the line test complete status.
8 PROGRAMMING MELSEC-QnA Table 8.1 Link special relay list (continued) Number Name Description Indicates specification when CPU is down status by parameter. OFF : Stop ON : Continue Indicates the reserved station specified status by parameters (SW0074 to SW0077).
8 PROGRAMMING MELSEC-QnA Table 8.1 Link special relay list (continued) Number Name Description Indicates the transient transmission error occurrence status (SW0094 to SW00897). OFF : No error Transient transmission ON : Error SB0094 1 status Depending on the refresh timing, this relay may be updated with the difference of one sequence scan from the update of Transient transmission error status (SW0094 to SW0097). Indicates the transient transmission status of the master station.
8 PROGRAMMING MELSEC-QnA 8.4.2 Link special register (SW) SW0000 to SW003F are stored in the sequence program, and SW0040 to SW00FF are automatically stored. The value in the ( ) next to the number indicates the buffer memory address. When using a master/local module as a standby master station, refer to the respective columns under "Availability" in the table as explained below.
8 PROGRAMMING MELSEC-QnA Table 8.2 Link special register list (continued) Number SW0049 (649H) SW004B (64BH) SW004D (64DH) SW004F (64FH) SW0060 (660H) SW0061 (661H) SW0062 (662H) Name Description Stores the execution results of the temporary error invalid station request specification by SB0004. 0 : Normal Other than 0 : Stores error code (Refer to Section 13.3.
8 PROGRAMMING MELSEC-QnA Table 8.
8 PROGRAMMING MELSEC-QnA Table 8.2 Link special register list (continued) Number SW0080 (680H) SW0081 (681H) SW0082 (682H) SW0083 (683H) SW0084 (684H) SW0085 (685H) SW0086 (686H) SW0087 (687H) SW0088 (688H) SW0089 (689H) SW008A (68AH) SW008B (68BH) SW008C (68CH) SW008D (68DH) SW008E (68EH) SW008F (687FH) SW0090 (690H) Name Description Other station data link status 3 6 Stores the data link status of each station.
8 PROGRAMMING MELSEC-QnA Table 8.2 Link special register list (continued) Number SW0094 (694H) SW0095 (695H) SW0096 (696H) SW0097 (697H) SW0098 (698H) SW0099 (699H) SW009A (69AH) SW009B (69BH) SW009C (69CH) SW009D (69DH) SW009E (69EH) SW009F (69FH) Name Availability ( : available, : not available ) Online Master Local Offline station station Description Transient transmission error status 1 Stores the transient transmission error occurrence status for each station.
8 PROGRAMMING MELSEC-QnA The timing when the link special register (SW) data is updated differs depending on the number. The update timing is indicated in Table 8.3. Table 8.
9 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE I/O STATION MELSEC-QnA 9. COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE I/O STATION How to set, program, and confirm the operation of the module is described using a system configuration example. 9.1 System Configuration A system with five remote I/O stations is used as an example.
9 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE I/O STATION MELSEC-QnA 9.1.1 Setting of the master station The settings of the switches on the master station are shown below: AJ61QBT11 RUN ERR. MST S MST LOCAL CPU R / W SW M/S PRM TIME LINE E R R O R B 156K 625K 2. 5M 5M 10M R A T E TEST S0 S1 S2 L RUN L ERR. T E S T Station number setting switch SD RD 4 4 23 BCD Transmission speed setting switch 89 67 A 01 EF 2 4 01 56 345 2 (2.5Mbps) 78 9 156K 625K 2.
9 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE I/O STATION MELSEC-QnA 9.1.2 Setting of the remote I/O station The settings of the switches on the remote I/O station are shown below: Station number setting switch Transmission speed setting switch 2 (2.5Mbps) Module AJ65BTB1-16D AJ65BTC1-32D AJ65BTB1-16T AJ65BTC1-32T AJ65BTB1-16DT MITSUBISHI AJ65BTB1-16D X10 0 0 0 0 0 B RATE 0 1 PW L RUN SD 0 1 2 3 4 RD L ERR. 5 6 7 8 4 9 A B C D E F 9-3 2 3 STATION NO.
9 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE I/O STATION MELSEC-QnA 9.2 Creating a Program 9.2.1 Program for parameters This program automatically initiates the data link when the programmable controller CPU starts running. [When debugging] X0040 X004F PLS M300 SET M301 MOV K5 D0 Number of connected modules MOV K7 D1 Number of retries MOV K1 D2 Number of automatic return modules H0001 D0 K3 MOV K0 D3 H0006 D3 K1 MOV H0101 D4 AJ65BTB1-16D (Station No.
9 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE I/O STATION MELSEC-QnA SM402 SET Y40 PLS M302 SET M303 SET Y46 RST Y46 RST M303 Refresh instruction X0040 X004F M302 M303 X0046 Data link by the parameters in the buffer memory When the data link startup is completed normally by the parameters in the buffer memory X0047 FROM H0004 H0668 D100 K1 RST Y46 RST M303 PLS M304 SET M305 SET Y4A RST Y4A RST M305 When the data link startup is completed fault by the parameters
9 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE I/O STATION MELSEC-QnA [During operation] SM402 SET Y40 PLS M300 SET M301 SET Y48 RST Y48 RST M301 Refresh instruction X0040 X004F M300 M301 X0048 Data link by the parameters in E2PROM When the data link by the parameters in E2PROM is completed normally X0049 FROM H0004 H0668 D100 K1 9-6 RST Y48 RST M301 When the data link by the parameters in E2 PROM is completed fault
9 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE I/O STATION MELSEC-QnA 9.2.2 Communication program A program to control the remote I/O stations is shown below. The following configuration of the programmable controller CPU, master station's buffer memory and the remote I/O stations is assumed.
9 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE I/O STATION X0040 X004F X0041 MC N0 N0 M500 FROM H0004 H0680 K4M401 K1 M401 Remote I/O station (station No.1) is in error. YD1 Remote I/O station (station No.2) is in error. YD2 Remote I/O station (station No.3) is in error. YD3 Remote I/O station (station No.4) is in error. YD4 Remote I/O station (station No.5) is in error.
9 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE I/O STATION X60 For communication with AJ65BTC1-32T (station No.4) M232 X7F to M263 M128 YC0 M135 For communication with AJ65BTB1-16DT (station No.5) to YC7 MELSEC-QnA When X60 to X7F of the master station AX42 is turned on, output (Y00 to Y1F) of AJ65BTC1-32T is turned on. When input (X00 to X07) of AJ65BTB1-16DT is turned on, YC0 to YC7 of the master station AY42 is turned on.
9 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE I/O STATION MELSEC-QnA 9.3 Performing the Data Link Turn on the power supply of the remote I/O station first, then the power supply of the master station to start the data link. 9.3.1 Confirming the operation by LED display The following diagram shows the LED display status of the master station and the remote I/O station when the data link is performed normally.
9 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE I/O STATION MELSEC-QnA 9.3.2 Confirming the operation by the program Using the sequence program, confirm that the data link is proceeding normally. 1 2 For example, when X00 of the remote I/O station AJ65BTB1-16D (station No.1) is turned on, Y20 (AY41) of the master station is turned on. When X10 (AX41) of the master station is turned on, Y00 of the remote I/O station AJ65BTB1-16T (station No.3) is turned on.
9 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE I/O STATION MEMO 9 - 12 MELSEC-QnA
10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MELSEC-QnA 10. COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION How to set, program, and confirm the operation of the module is described using a system configuration example. 10.1 System Configuration A system with two remote device stations is used as an example.
10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MELSEC-QnA 10.1.1 Setting of the master station The settings of the switches on the master station are shown below: AJ61QBT11 RUN ERR. MST S MST LOCAL CPU R / W SW M/S PRM TIME LINE E R R O R B 156K 625K 2. 5M 5M 10M R A T E TEST S0 S1 S2 L RUN L ERR.
10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MELSEC-QnA 10.1.2 Setting of the remote device station The settings of the switches on the remote device station are shown below: Transmission speed setting switch Station number setting switch 2 (2.5Mbps) Module AJ65BT-64AD AJ65BT-64DAV B RATE MITSUBISHI PW RUN L RUN L ERR. SD RD AJ65BT-64AD 10 - 3 01 2 3 4 CH 10 0 0 STATION NO.
10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MELSEC-QnA 10.2 Creating a Program 10.2.1 Program for parameters This program automatically initiates the data link when the programmable controller CPU starts running.
10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MELSEC-QnA SM402 SET Y40 PLS M302 SET M303 SET Y46 RST Y46 RST M303 Refresh instruction X0040 X004F M302 M303 Data link by the parameters in the buffer memory X0046 When the data link startup is completed normally by the parameters in the buffer memory X0047 FROM H0004 H0668 D100 K1 RST Y46 RST M303 PLS M304 SET M305 SET Y4A RST Y4A RST M305 When the data link startup is completed fault by the para
10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MELSEC-QnA [During operation] SM402 SET Y40 PLS M300 SET M301 SET Y48 RST Y48 RST M301 Refresh instruction X0040 X004F M300 M301 Data link by the parameters in 2 E PROM X0048 When the data link by the parameters 2 in E PROM is completed normally X0049 FROM 10 - 6 H0004 H0668 D100 K1 RST Y48 RST M301 When the data link by the parameters 2 in E PROM is completed fault
10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MELSEC-QnA 10.2.2 Communication program A program to control the remote device stations is shown below. The following configuration of the programmable controller CPU, master station's buffer memory and the remote device stations is assumed. For details of each device station, refer to the user’s manual of each module.
10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MELSEC-QnA [Remote register (RWw, RWr)] Programmable controller CPU Remote device station (station No.
10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION X0040 X004F X0041 FROM H0004 H0680 K1M401 K1 M401 CALL Read the data link status (SW0080) from the remote device station AJ65BT-64AD data link is proceeding P10 M401 YA0 M403 CALL MELSEC-QnA AJ65BT-64AD data link is in error AJ65BT-64DAV data link is in proceeding P20 M403 YA1 AJ65BT-64DAV data link is in error FEND Communication program with AJ65BT-64AD P10 SM400 FROM H0004 H00E0 K4M0 K2 M24 (Initial data processing requ
10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION Remote READY (RX1B) M27 Read digital value MELSEC-QnA M0 (CH1 A/D conversion complete flag: RX0) FROM H0004 H02E0 D210 K1 CH1 Digital output value M1 (CH2 A/D conversion complete flag: RX1) FROM H0004 H02E1 D211 K1 CH2 Digital output value M26 (Error status flag: RX1A) Read error code FROM H0004 H02E4 D212 K1 X10 M126 SM400 TO H0004 H0160 K4M100 K2 RET 10 - 10 Error code Error reset request (RY1A) Write AJ65BT-64AD remote
10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MELSEC-QnA Communication program with AJ65BT-64DAV P20 SM400 FROM H0004 H00E4 K4M200 K2 M224 (Initial data processing request flag: X18) MOV H0008 D300 TO H0004 H01EC D300 Read AJ65BT-64DAV remote input (RX) D/A conversion enable/ disable specification (CH1 to CH3 conversion permission) K1 SET M324 Initial data processing complete (RY18) SET M325 Initial data setting reguest (RY19) RST M324 RST M325 MOV K300 D301
10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MELSEC-QnA 10.3 Performing the Data Link Turn on the power supply of the remote device station first, then the power supply of the master station to start the data link. 10.3.1 Confirming the operation by LED display The following diagram shows the LED display status of the master station and the remote I/O station when the data link is performed normally.
10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MELSEC-QnA 10.3.2 Confirming the operation by the program Using the sequence program, confirm that the data link is proceeding normally. 1 2 The digital value which was converted by AJ65BT-64AD is stored in D210 (CH1 digital value) and D211 (CH2 digital value). When X60 is turned on, the output voltage appears on CH1 of AJ65BT-64DAV.
10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MEMO 10 - 14 MELSEC-QnA
11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-QnA 11. COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION 11 How to set, program, and confirm the operation of the module is described using a system configuration example. 11.1 Secured 32-bit Data When the following conditions, 1) and 2) are satisfied in the CC-Link network, 32-bit data in remote registers (RWr/RWw) between a programmable controller CPU and a master/local station can be secured.
11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-QnA 11.2 System Configuration A system with two local stations is connected as an example. Master station A62P Q3ACPU AX41 AY41 AJ61 AX42 AY42 QBT11 X00 to Y20 X/Y40 X60 to to to YA0 to X1F Y3F X/Y5F X9F YDF Terminating resistor Local station (station No.1: occupies 1 station) A62P Q3ACPU AJ61 AX40 AY40 AX41 AY41 QBT11 X/Y00 X20 to to Y30 to X40 to Y60 to X/Y1F X2F Y3F X5F Y7F Local station (station No.
11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-QnA 11.2.1 Setting of the master station The settings of the switches on the master station are shown below: AJ61QBT11 RUN ERR. MST S MST LOCAL CPU R / W SW M/S PRM TIME LINE E R R O R B 156K 625K 2. 5M 5M 10M R A T E TEST S0 S1 S2 L RUN L ERR. T E S T Station number setting switch SD RD 0 (X10) Always set "00" for the 0 (X1) master station.
11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION 11.2.2 Setting of the local station The settings of the switches on the local station are shown below: AJ61QBT11 RUN ERR. MST S MST LOCAL CPU R / W SW M/S PRM TIME LINE E R R O R B 156K 625K 2. 5M 5M 10M R A T E TEST S0 S1 S2 L RUN L ERR. T E S T Station number setting switch SD RD Module Local station (station No.1) Local station (station No.
11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-QnA 11.3 Creating a Program 11.3.1 Program for the master station (1) Program for parameter This program automatically initiates the data link when the programmable controller CPU starts running.
11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-QnA SM402 SET Y40 PLS M302 SET M303 SET Y46 RST Y46 RST M303 Refresh instruction X0040 X004F M302 M303 Data link by the parameters in the buffer memory X0046 When the data link startup is completed normally by the parameters in the buffer memory X0047 FROM H0004 H0668 D100 K1 RST Y46 RST M303 PLS M304 SET M305 SET Y4A RST Y4A RST M305 When the data link startup is completed fault by the parameters i
11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-QnA [During operation] SM402 SET Y40 PLS M300 SET M301 SET Y48 RST Y48 RST M301 Refresh instruction X0040 X004F M300 M301 X0048 Data link by the parameters in E2PROM When the data link by the parameters 2 in E PROM is completed normally X0049 FROM H0004 H0668 D100 K1 11 - 7 RST Y48 RST M301 When the data link by the parameters 2 in E PROM is completed fault
11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-QnA (2) Communication program The following configuration of the programmable controller CPU device, master station's buffer memory and local station's buffer memory is assumed. [Remote input (RX), remote output (RY)] Programmable controller CPU Local station (station No.
11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-QnA [Remote register (RWw, RWr)] Programmable controller CPU D200 to D203 D204 to D207 D300 to D303 D304 to D307 Local station (station No.1: occupies 1 station) Master station TO TO FROM FROM Remote register (RWw) 1E0H Send area to the to local station No.1 1E3H 1E4H Send area to the to local station No.
11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION X0040 X004F X0041 FROM H0004 H0680 K1M401 K1 M401 CALL Read the data link status (SW0080) of the local station Local station No.1 data link is proceeding P10 M401 Local station No.1 data link is in error Y20 M402 CALL MELSEC-QnA Local station No.2 data link is proceeding P20 M402 Local station No.
11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-QnA 11.3.2 Local station program (1) Program for parameters Local stations do not need this. (2) Program for communication Refer to Section 11.3.1 (2), for the relationship among the programmable controller CPU device, master station's buffer memory, and the local station's buffer memory. (a) Local station No.
11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-QnA (b) Local station No.2 SM402 SET Y0000 Refresh instruction N0 M500 Host station data link is proceeding X0000 X000F X0001 MC N0 M500 SM400 FROM H0000 H0680 K4M600 K1 M600 Y0030 SM400 Station No.
11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-QnA REMARK By building an interlock using the remote I/O (RX/RY), data read from/written to each slave station will not be separated between the new and old one. Configure an interlock with remote I/O (RX/RY) as shown in the following example. Sending station (master station) 1) Receiving station (local station) 2) 1) 3) 4) 5) 6) 7) 1) The send/receive command (M700) turns ON. 2) Data of D200 to D203 are stored in RWw0 to RWw3.
11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-QnA 11.4 Performing the Data Link Turn on the power supply of the local station first, then the power supply of the master station to start the data link. 11.4.1 Confirming the operation by LED display The following diagram shows the LED display status of the master station and the local station when the data link is performed normally.
11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-QnA 11.4.2 Confirming the operation by the program Using the sequence program, confirm that the data link is proceeding normally. When M200 of the master station is turned on, M200 of the local station No.1 and the local station No.2 are turned on. 2 When M0 of the local station No.1 is turned on, M0 of the master station and the local station No.2 are turned on. 3 When M32 of the local station No.
11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MEMO 11 - 16 MELSEC-QnA
12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-QnA 12. COMMUNICATION IN THE COMPOUND SYSTEM How to set, program, and confirm the operation of the module in a system where the remote I/O station, remote device station and local station coexist is described. 12.1 System Configuration 12 A system with a remote I/O station, a remote device station and a local station is used as an example.
12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-QnA 12.1.1 Setting of the master station The settings of the switches on the master station are shown below: AJ61QBT11 RUN ERR. MST S MST LOCAL CPU R / W SW M/S PRM TIME LINE T E S T Station number setting switch SD RD 56 4 56 4 89 67 A 4 23 56 345 78 2 (2.5Mbps) 01 HOLD 3/4 2/3 Transmission speed setting switch 9 CLEAR 1/2 1/4 BCD 01 EF 2 ON S MST 0 (online) 01 OFF M/L 78 9 B RATE 156K 625K 2.
12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-QnA 12.1.2 Setting of the remote I/O station The settings of the switches on the remote I/O station are shown below: Transmission speed setting switch Station number setting switch 2 (2.5Mbps) 0 (X10) 1 (X1) MITSUBISHI AJ65BTB1-16DT B RATE 0 1 PW L RUN SD 0 1 2 3 4 RD L ERR. 5 6 7 8 4 2 3 STATION NO. X10 X1 0 1 9 0 1 2 8 2 3 7 3 6 5 4 6 5 4 9 A B C D E F 12.1.
12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-QnA 12.1.4 Setting of the local station The settings of the switches on the local station are shown below: AJ61QBT11 RUN ERR. MST S MST LOCAL CPU R / W SW M/S PRM TIME LINE E R R O R R A T E TEST S0 S1 S2 T E S T Station number setting switch SD RD Mode setting switch 4 01 56 23 9 X1 78 Transmission speed setting switch 23 89 67 A 4 2 (2.5Mbps) 01 56 345 78 9 B RATE 156K 625K 2. 5M 5M 10M BCD 01 EF 2 MODE 0 : ONLINE (A. R.
12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-QnA 12.2 Creating a Program 12.2.1 Program for the master station (1) Parameter program Program for the parameter this program automatically initiates the data link when the programmable controller CPU starts running.
12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-QnA SM402 SET Y40 PLS M302 SET M303 SET Y46 RST Y46 RST M303 Refresh instruction X0040 X004F M302 M303 X0046 Data link by the parameters in the buffer memory When the data link startup is completed normally by the parameters in the buffer memory X0047 FROM H0004 H0668 D100 K1 RST Y46 RST M303 PLS M304 SET M305 SET Y4A RST Y4A RST M305 When the data link startup is completed fault by the parameters in the buffer memory Regist
12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-QnA [During operation] SM402 SET Y40 PLS M300 SET M301 SET Y48 RST Y48 RST M301 Refresh instruction X0040 X004F M300 M301 X0048 Data link by the parameters in E2PROM When the data link by the parameters in E2PROM is completed normally X0049 FROM H0004 H0668 12 - 7 D100 K1 RST Y48 RST M301 When the data link by the parameters in E2PROM is completed fault
12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-QnA (2) Communication program The following configuration of the programmable controller CPU device, master station's buffer memory and local station's buffer memory is assumed. [Remote input (RX), remote output (RY)] Programmable controller CPU Remote I/O station (station No.
12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-QnA [Remote register (RWw, RWr)] Programmable controller CPU Remote device station (station No.
12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-QnA X0040 X004F X0041 FROM H0004 H0680 K2M401 K1 M401 CALL Remote I/O station data link is proceeding P10 M401 YA0 M402 CALL Remote I/O station data link is in error Remote device station data link is proceeding P20 M402 YA1 M404 CALL Read the data link status (SW0080) of the remote device station Remote device station data link is in error Local station data link is in proceeding P30 M404 YA2 Local station data link is in error FEND Communication
12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-QnA Communication program with AJ65BT-64AD P20 SM400 FROM H0004 H00E2 K4M20 K2 M44 (Initial data processing request flag: RX18) Initial settings MOV H0202 D200 MOV K60 MOV H0001 D205 MOV H0003 D206 Read AJ65BT-64AD remote input (RX) Data format specification (-2048 to 2047) D202 TO H0004 H01E5 D200 K1 TO H0004 H01E6 D202 K1 TO H0004 H01E9 D205 K2 Average processing specification (CH2 average time) CH2 Average time, number of time
12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-QnA Communication program with the local station P30 SM400 FROM H0004 H00E6 K4M60 K2 Read the remote input (RX) FROM H0004 H02EC D310 Read the remote register (RWr) K4 Control program by the received data from the local station No.4. Program to create the transmission data to the local station No.4.
12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-QnA 12.2.2 Local station program (1) Program for parameters Local stations do not need this. (2) Program for communication Refer to Section 12.2.1 (2), for the relationship between the programmable controller CPU device, master station's buffer memory, and the local station's buffer memory. SM402 SET Y0000 Refresh instruction X0000 X000F X0001 MC N0 N0 M500 Host station data link is proceeding.
12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-QnA 12.3 Performing the Data Link Turn on the power supply of the remote I/O station/remote device station/local station first, then the power supply of the master station to start the data link. 12.3.1 Confirming the operation by LED display The following diagram shows the LED display status of the master station, the remote I/O station, the remote device station, and the local station when the data link is performed normally.
12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-QnA (3) LED display of the remote device station Confirm that the LED display shows the following status: 24VDC is supplied. PW Module is normal. RUN L RUN The data link is proceeding normally. SD RD AJ65BT-64AD L ERR. Sending data. Receiving data. (4) LED display of the local station Confirm that the LED display shows the following status: AJ61QBT11 Module is normal. Set as a local station. Communicating with programmable controller CPU.
12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-QnA 12.3.2 Confirming the operation by the program Confirm if the data link can be performed normally using a sequence program. 1 2 3 4 5 6 7 When X00 of the remote I/O station is turned on, Y20 of the master station is turned on. When X10 of the master station is turned on, Y08 of the remote I/O station is turned on.
13 TROUBLESHOOTING MELSEC-QnA 13. TROUBLESHOOTING 13.1 Verification When a Trouble Occurs Details to be checked and corrective actions for each trouble are shown below: Trouble description Unable to perform data link for the entire system. Confirmation action • Check the cable status visually or with a line test. • Verify the line status (SW0090). Are terminating resistors connected properly Connect terminating resistors attached to to both end stations? AJ61QBT11 and A1SJ61QBT11 to both end stations.
13 TROUBLESHOOTING MELSEC-QnA Trouble description Details to be checked Confirmation action Cannot turn on/off remote output (RY) Is the remote device station performing data Verify using the following means: from a remote device station. link? • LED display of the module • Other station data link status (SW0080 to SW0083) of the master station Is the refresh instruction (Yn0) turned on at Verify the sequence program.
13 TROUBLESHOOTING MELSEC-QnA Trouble description Unable to communicate from the master station (remote register RWw) to the local station (remote register RWr).
13 TROUBLESHOOTING MELSEC-QnA 13.
13 TROUBLESHOOTING From the previous page MELSEC-QnA From the previous page Is the "L RUN" LED on? Y From the previous page N Is the "SD" LED on (flashing)? Is the "SD" LED on (flashing)? N Y N N Is the baud rate setting correct? Y Y Malfunction of the corresponding module Set the baud rate correctly. Reset the power supply/ press the reset switch. Is the communication cable wired correctly? 1 Y N Wire the communication cable correctly.
13 TROUBLESHOOTING MELSEC-QnA 13.3 Error Codes Table 13.1 lists the error codes that are stored in the link special registers (SW). When a standby master station is used, refer to the respective columns under "Delectability" in the table as explained below. x When a standby master station is operating as a master station: "Master station" column x When a standby master station is operating as a standby master station: "Local station" column Table 13.
13 TROUBLESHOOTING MELSEC-QnA Table 13.1 Error code list (2/6) Error code (hexadecimal) Error details Cause of error occurrence (details) Corrective action The station types of the module are different from parameter settings. Example) Connected module Loading/parameter compatibility error B30A Remote device Parameter setting Remote I/O Set the correct parameters.
13 TROUBLESHOOTING MELSEC-QnA Table 13.1 Error code list (3/6) Error code (hexadecimal) Cause of error occurrence (details) The retry count parameter (address 2H) was set to a value other than "1 to 7". The operation when the CPU is down Operation when CPU is down specification parameter (address 6H) was specified error (parameter) set to a value other than "0 or 1". Scan mode specification error The scan mode parameter (address 7H) was set to a value other than "0 or 1".
13 TROUBLESHOOTING MELSEC-QnA Table 13.1 Error code list (4/6) Error code (hexadecimal) Error details Cause of error occurrence (details) B510 2 Transmission channel in use (host station) B511 2 Receive channel in use The channel of the target station is in use. A channel being used was used.
13 TROUBLESHOOTING MELSEC-QnA Table 13.1 Error code list (5/6) Error code (hexadecimal) Error details Cause of error occurrence (details) Corrective action B801 1 Access code setting error A non-existing access code/attribute was Set a correct access set. code/attribute. B802 2 Access code error An access code that does not exist was used. B803 1 Data points error The number of data points were out of range.
13 TROUBLESHOOTING MELSEC-QnA Table 13.1 Error code list (6/6) Error code (hexadecimal) Error details BBC1 Mode setting error (switch) BBC2 Station number setting error (switch) BBC3 Transmission speed setting error (switch) BBC4 BBC5 Cause of error occurrence (details) The mode setting switch is set outside the range. The station number setting switch setting of the module is other than "0 to 64". Alternatively, the last station number is greater than 64.
13 TROUBLESHOOTING MELSEC-QnA 13.4 LED Display Status The LED display status of each station for each data-link (system) status is shown below, where the transmission speed is set at 2.5 Mbps. Refer to Troubleshooting. 13.4.1 When data link is normal The "PW", "RUN", "L RUN", "SD" and "RD" LEDs are on. AJ61QBT11 RUN ERR. MST S MST LOCAL CPU R/W 156K 625K 2.5M 5M 10M E SW R M/S R PRM O TIME R LINE TEST S0 S1 S2 L RUN L ERR. AJ61QBT11 B RUN ERR. MST S MST LOCAL CPU R/W R A T E T E S T SD RD ...
13 TROUBLESHOOTING MELSEC-QnA 13.4.3 When a cable is shorted Data link for all the stations is lost. You cannot identify a short circuit occurred by the LED indications. AJ61QBT11 RUN ERR. MST S MST LOCAL CPU R/W 156K 625K 2.5M 5M 10M E SW R M/S R PRM O TIME R LINE TEST S0 S1 S2 L RUN L ERR. AJ61QBT11 B RUN ERR. MST S MST LOCAL CPU R/W R A T E T E S T SD RD ................. indicates the "light-on" status. ................. indicates the "light-off" status. .................
13 TROUBLESHOOTING MELSEC-QnA 13.4.5 When power supply to a remote I/O station is turned off Data link is continued excluding that remote I/O station. "ERR." LEDs at the master station and the local station flash. Because data link is disabled at one station (Turned off if the remote I/O station is set as an invalid station by the parameter.) AJ61QBT11 RUN ERR. MST S MST LOCAL CPU R/W E R R O R 156K 625K 2.5M 5M 10M SW M/S PRM TIME LINE TEST S0 S1 S2 L RUN L ERR.
13 TROUBLESHOOTING MELSEC-QnA 13.4.7 When the power supply to the local station (programmable controller CPU) is turned off Data link is continued excluding the local station. The "ERR." LED at the master station flashes. Because data link is disabled at one station (Turns is off if the local station is set as an invalid station by the parameter.) AJ61QBT11 RUN ERR. MST S MST LOCAL CPU R/W 156K 625K 2.5M 5M 10M E SW R M/S R PRM O TIME R LINE TEST S0 S1 S2 L RUN L ERR. AJ61QBT11 B RUN ERR.
13 TROUBLESHOOTING MELSEC-QnA 13.4.9 When the transmission speed is set incorrectly This is a case where the transmission speed for the remote device station is set incorrectly. The "L RUN" LED for the remote device station with the incorrect transmission-speed setting turns off. AJ61QBT11 RUN ERR. MST S MST LOCAL CPU R/W 156K 625K 2.5M 5M 10M E SW R M/S R PRM O TIME R LINE TEST S0 S1 S2 L RUN L ERR. AJ61QBT11 B RUN ERR. MST S MST LOCAL CPU R/W R A T E T E S T SD RD .................
13 TROUBLESHOOTING MELSEC-QnA 13.4.11 When data link is started with the switch set outside the range This is a case where data link was started with the switch set outside the range. The "L RUN" and "SD" LEDs at the remote device station turn off and "L ERR." LED is turn on. AJ61QBT11 RUN ERR. MST S MST LOCAL CPU R/W 156K 625K 2.5M 5M 10M E SW R M/S R PRM O TIME R LINE TEST S0 S1 S2 L RUN L ERR. AJ61QBT11 B RUN ERR. MST S MST LOCAL CPU R/W R A T E T E S T SD RD .................
13 TROUBLESHOOTING MELSEC-QnA 13.4.13 When the remote device station is not set by the parameter (i.e., is set as reserved) No data link can be performed with the remote device station at all, and no error occurs. The "L RUN", "SD" LEDs at the remote device station turn off. AJ61QBT11 No error occurs. RUN ERR. MST S MST LOCAL CPU R/W 156K 625K 2.5M 5M 10M E SW R M/S R PRM O TIME R LINE TEST S0 S1 S2 L RUN L ERR. AJ61QBT11 B No error occurs. R A T E T E S T SD RD .................
14 OVERVIEW (FUNCTION VERSION B OR LATER) MELSEC-QnA 14. OVERVIEW (FUNCTION VERSION B OR LATER) The functions available with the master and local modules depend on their function versions and CPU types, as shown in Table 14.1. Table 14.
14 OVERVIEW (FUNCTION VERSION B OR LATER) MELSEC-QnA POINT Functions marked with 1 are available only when a CPU of function version B or later is used. Functions marked with 2 are available only when a CPU of function version B or later and the SW2IVD-GPPQ/SW2NX-GPPQ or later software package are used. The functions denoted 3 cannot be used when a remote I/O station of MELSECNET/10 is installed. Functions marked with 4 are available with software version J (manufactured in Jan., 1998) or later.
15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-QnA 15. FUNCTIONS (FUNCTION VERSION B OR LATER) The functions added in the function version B or later are explained. 15.1 List of Functions A list of functions is shown in Table 15.1. Table 15.1 List of functions Item Function overview Sets parameters from a peripheral device as a part of CPU Parameter registration parameters.
15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-QnA 15.2.1 Network parameters Network parameters are used for performing data link. The items that are set by the network parameters are shown in Table 15.2. Table 15.2 Network parameters Setting item Buffer memory address Description Sets the number of remote stations, local stations, intelligent device stations, and standby master station connected to the master station. Number of connected (Includes reserved stations.
15 FUNCTIONS (FUNCTION VERSION B OR LATER) Setting item Buffer memory address Description Hex. Specifies the size of the buffer memory that is allocated during the transient transmission to local, standby master or intelligent device stations.
15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-QnA 15.4 Scan Synchronous Function This function sets whether link scan is synchronized with the sequence scan, using the network parameter setting. 15.4.1 Synchronous mode Performs data link using the scan synchronized with the sequence program. The operation overview in the synchronous mode is shown in Figure 15.1. In general, the transmission delay is smaller in the synchronous mode than in the asynchronous mode.
15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-QnA 15.4.2 Asynchronous mode Performs data link without synchronizing with the sequence program. The operation overview in the asynchronous mode is shown in Figure 15.2.
15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-QnA 15.5 Standby Master Function This function allows data link to continue when an error occurs at the master station, by switching to the standby master station. However, switching from the standby master station to the master station will not occur automatically when the master station returns. 15.5.1 Operation overview The operation overview of the standby master function is shown in Figure 15.3.
15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-QnA 15.5.2 Settings on using the standby master function The settings on using the standby master function are as follows: (1) Setting of the standby master station 1) Set the station number setting switch in the range of 1 to 63. 2) Turn on the condition setting switch SW1. (2) Setting of the master station 1) Change the standby master station specification in the network parameter to the station number of the standby master station.
15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-QnA 15.5.3 Link special relays/registers (SB, SW) relating to the standby master function The link special relays and link special registers relating to the standby master function are explained. They are stored in the buffer memory. (1) Link special relays (SB) The link special relays (SB) relating to the standby master function are as follows. The figures in parentheses in the number column indicate buffer memory address and bit location.
15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-QnA 15.5.4 Notes on using the standby master function The following are the notes on using the standby master function. 1 2 3 4 5 6 7 8 There can be only one standby master station in a data link system. The total number of stations is 64 including the standby master station. The number of occupied stations for the standby master station is one or four. Parameter registration to the standby master station is not necessary.
15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-QnA 15.5.5 Program example on using the standby master function The following is a program example on using the standby master function. SM400 X1 FROM H0 H5E4 K1M400 K1 FROM H0 H5E7 K1M500 K1 FROM H0 H643 D900 Reads the link special relay and link special register information. K1 M500 (SB70) Executes control as a local station. Local station control M500 (SB70) PLS M800 Detects the switch to the standby master.
15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-QnA 15.6 Dedicated Instructions Transient transmission can be performed to the intelligent device station and local station using dedicated instructions. Dedicated instructions also facilitate read/write of data with handshake from/to remote devices. The dedicated instructions that can be used from different types of stations are shown in Table 15.6. Refer to the QnACPU Programming Manual (Special Function Module) for the detail of each instruction.
15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-QnA 15.7 Communication Instructions (Software Version J and Later) Data communication with other stations can be performed using communication instructions. Device read/write with other stations can also be performed. Table 15.7 lists communication instructions. Refer to the QnACPU Programming Manual (Common Instructions) for the details of each instruction. Table 15.
15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-QnA 15.8 Remote I/O Net Mode For the system configured only with the master station and the remote I/O stations, communication can be performed without setting parameters. 15.8.1 Features When the system is configured only with the master station and the remote I/O stations, the following advantages can be obtained by the use of the remote I/O net mode. (1) The setting of network parameters can be eliminated.
15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-QnA 15.8.4 Link scan time The link scan time (LS) when the remote I/O net mode is used can be calculated using the following expression. LS = BT {25.0 + (NI × 4.0) + (N × 28.0) + (ni × 4.0)} + ST + {Number of communication faulty stations × 48 × BT × Number of retries} [µs] BT : Constant (transmission speed) Transmission speed 156kbps 625kbps 2.5Mbps 5Mbps 10Mbps BT 51.2 12.8 3.2 1.6 0.
15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-QnA 15.9 Temporary Error Invalid Station Specification Function Replacement of modules can be performed online without detecting an error of the corresponding remote station. 15.9.1 I/O status of the temporary error invalid station specification All of the cyclic transmission data of the station specified as a temporary error invalid station will be refreshed.
15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-QnA (2) Link special registers (SW) The link special registers (SW) relating to the cut-off station specification function are as follows. The figures in parentheses in the number column indicate buffer memory address. Table 15.
15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-QnA 15.9.3 Execution procedure for the temporary error invalid station specification function The execution procedure for the temporary error invalid station specification function is as follows: Select whether or not to specify multiple stations as temporary error invalid stations. (SW0003) (00: multiple stations specification, 01 to 64) Turn on the temporary error invalid station request.
15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-QnA 15.10 Online Test Function Parameter test, line test and network test can be conducted from a peripheral device. 15.10.1 Parameter test Parameters in the actual system are checked for integrity with parameter values set in the SW IVD-GPPQ/SW NX-GPPQ/GX Developer parameter mode. If the parameters in the actual system differs from the set parameter values, an error code is indicated.
15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-QnA 15.11 Monitor/ Diagnosis Functions Line monitoring (of host or other stations) and device monitoring are feasible from a peripheral device. 15.11.1 Line monitor (host station) Monitors items such as the data link status of the host station (connected to the peripheral device). For the operation, refer to the SW IVD-GPPQ/SW NX-GPPQ Operation Manual (Online) /GX Developer.
15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-QnA 15.11.3 Device monitor Device status is monitored by specifying the head station number or device name (RX, RY, RWw or RWr). For the operation, refer to the SW IVD-GPPQ/SW NX-GPPQ Operation Manual (Online) /GX Developer.
16 COMMUNICATION WITH INTELLIGENT DEVICES (FUNCTION VERSION B OR LATER) MELSEC-QnA 16. COMMUNICATION WITH INTELLIGENT DEVICES (FUNCTION VERSION B OR LATER) The method for communication between the master station and the intelligent device stations varies depending on the intelligent device station. For the communication between the master station and the intelligent device stations, refer to the applicable intelligent device station operation manual.
16 COMMUNICATION WITH INTELLIGENT DEVICES (FUNCTION VERSION B OR LATER) MEMO 16 - 2 MELSEC-QnA
APPENDICES MELSEC-QnA APPENDICES Appendix 1 External Dimensions Appendix 1.1 AJ61QBT11 2 (0.08) 4.2 (0.17) AJ61QBT11 RUN ERR. MST S MST LOCAL CPU R / W SW M/S PRM TIME LINE E R R O R B 156K 625K 2. 5M 5M 10M R A T E TEST S0 S1 S2 SD RD STATION NO. X10 78 9 01 456 L RUN L ERR. T E S T 23 901 456 78 X1 HOLD 3/4 2/3 67 456 250 (9.84) 23 CLEAR 1/2 1/4 345 ON S MST 89A 23 OFF M/L 78 901 B RATE 156K 625K 2. 5M 5M 10M 0 1 2 3 4 BCD 01 EF 2 MODE 0 : ONLINE (A. R.
APPENDICES MELSEC-QnA Appendix 1.2 A1SJ61QBT11 A1SJ61QBT11 RUN ERR. MST S MST LOCAL CPU R / W L RUN L ERR. SD RD STATION NO. 4 56 23 23 5 4 6 23 5 4 6 SW OFF ON 1 M / L S. M 2 3 4 CLR HLD 5 1/2 3/4 6 1/4 2/3 7 8 23 0 156K 1 625K 2 2. 5M 3 5M 4 10M 130 (5.12) 5 4 6 F01 B RATE ON 0 9 1 78 78 9 CD AB E 78 1 2 3 4 5 6 7 8 1 0 9 1 X MODE 78 0 9 1 X 10 E R R O R SW M/S PRM TIME LINE NC 1 DA NC 2 NC 4 NC 6 NC 8 3 DB 5 DG 7 SLD 9 (FG) 10 A1SJ61QBT11 6.5 (0.
APPENDICES MELSEC-QnA Appendix 2 Parameter Setting Sheet Buffer memory address Remark Default value 1 to 64 1H – 64 1 to 7 2H – 3 1 to 10 3H – 1 4H – 0 6H – 0 (stop) 8H 10H 11H 12H 13H 14H 15H 16H 17H 20H 21H 22H 23H 24H 25H 26H 27H 28H 29H 2AH 2BH 2CH 2DH 2EH 2FH 30H 31H 32H 33H 34H 35H 36H 37H 38H 39H 3AH 3BH – Station No. 16 to 1 Station No. 32 to 17 Station No. 48 to 33 Station No. 64 to 49 Station No. 16 to 1 Station No. 32 to 17 Station No. 48 to 33 Station No.
APPENDICES Item Station information MELSEC-QnA Setting range Buffer memory address Remark Default value 3CH 3DH 3EH 3FH 40H 41H 42H 43H 44H 45H 46H 47H 48H 49H 4AH 4BH 4CH 4DH 4EH 4FH 50H 51H 52H 53H 54H 55H 56H 57H 58H 59H 5AH 5BH 5CH 5DH 5EH 5FH 29th module 30th module 31st module 32nd module 33rd module 34th module 35th module 36th module 37th module 38th module 39th module 40th module 41st module 42nd module 43rd module 44th module 45th module 46th module 47th module 48th module 49th module 50t
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, and Windows Vista are registered trademarks of Microsoft Corporation in the United States and other countries. Pentium is a trademark of Intel Corporation in the United States and other countries. Ethernet is a trademark of Xerox Corporation. All other company names and product names used in this manual are trademarks or registered trademarks of their respective companies.