Mitsubishi A1SJ61BT11 User Manual

Control & communication link system master/local module, melsec a
Table of Contents

Advertisement

Control & Communication Link System Master/Local Module
,
Type AJ61BT11/A1SJ61BT11 User
s Manual
Mitsubishi Programmable Controller

Advertisement

Table of Contents
loading

Summary of Contents for Mitsubishi A1SJ61BT11

  • Page 1 Control & Communication Link System Master/Local Module Type AJ61BT11/A1SJ61BT11 User s Manual Mitsubishi Programmable Controller...
  • Page 3: Safety Precautions

    Also pay careful attention to safety and handle the module properly. These precautions apply only to Mitsubishi equipment. Refer to the user’s manual of the CPU module to use for a description of the PLC system safety precautions.
  • Page 4 [INSTALLATION PRECAUTIONS] CAUTION • Use the PC in the environment given in the general specifications section of this manual. Using the PC outside the range of the general specifications may result in electric shock, fire, or erroneous operation or may damage or degrade the product. •...
  • Page 5 [STARTING AND MAINTENANCE PRECAUTIONS] CAUTION • Do not touch any terminal without turning off all phases of the external power supply used in the system. It may cause erroneous operation. • Be sure to shut off all phases of the external power supply before cleaning or retightening the terminal screws.
  • Page 6: Revisions

    Revisions The manual number is noted at the lower left of the back cover. Print Date Manual Number Revision Nov. 1996 IB (NA)-66721-A First printing Jan. 1997 IB (NA)-66721-B Addition Section 3.2.1, 4.12.3, 13.2 Correction Chapter 1, Section 1.1, 3.2, 3.4.1, 7.3, 7.6.3, 8.3.2, 13.1, 13.5.8 Aug.
  • Page 7 Japanese Manual Version SH-3603-L This manual does not imply guarantee or implementation right for industrial ownership or implementation of other rights. Mitsubishi Electric Corporation is not responsible for industrial ownership problems caused by use of the contents of this manual.
  • Page 8: Table Of Contents

    INTRODUCTION Thank you for choosing a Mitsubishi MELSEC-A Series General Purpose Programmable Controller. Before using your new PC, 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.
  • Page 9 4. Functions ............................4- 1 to 4-30 4.1 Function List ............................4- 1 4.2 Communication Between the Master Station and Remote I/O Station ..........4- 2 4.3 Communication Between the Master Station and Remote Device Station........... 4- 4 4.4 Communication Between the Master Station and Local Station ............4-10 4.5 Communication in Compound Systems....................
  • Page 10 7. Data Link Procedure........................7- 1 to 7-22 7.1 Data Link Procedure ..........................7- 1 7.2 Installation and Setting..........................7- 2 7.2.1 Precautions when handling the module ..................7- 2 7.2.2 Setting environment ......................... 7- 2 7.3 Name of Each Part and Settings ......................7- 3 7.4 Checking Module Condition (Hardware Test)..................
  • Page 11 9.3 Performing the Data Link ........................9-10 9.3.1 Confirming the operation by LED display..................9-10 9.3.2 Confirming the operation by the program..................9-11 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 ......................
  • Page 12 13. 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 ............................13- 6 13.4 LED Display Status ..........................13-12 13.4.1 When data link is normal......................
  • Page 13 16. Communication with the Intelligent Device (Function Version B or Later) ......16- 1 to 16- 2 Appendix ............................App- 1 to App- 5 Appendix 1 External Dimensions Diagram....................App- 1 1.1 AJ61BT11 ............................App- 1 1.2 A1SJ61BT11 ...........................App- 2 Appendix 2 Parameter Setting Sheet .......................App- 3 A - 11...
  • Page 14: About This Manual

    (Sold separately) Conformation to the EMC Directive and Low Voltage Instruction When incorporating the Mitsubishi PLC into other machinery or equipment and ensuring compliance with the EMC and low voltage directives, refer to Chapter 3, "EMC and Low Voltage Directives" of the User's Manual (Hardware) included with the CPU module or base unit used.
  • Page 15 1 OVERVIEW MELSEC-A 1. Overview The overview of the Control & Communication Link system (abbreviated as CC-Link from here on) is described in this chapter. CC-Link is... 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.
  • Page 16: Overview

    Terminating resistance 130 Ω, 1/2 W (Brown, orange, brown) A1SJ61BT11 main unit A1SJ61BT11 CC-Link System Master·Local Module User's Manual A1SJ61BT11 Control & Communication (Hardware) Link System Master·Local Module Terminating resistance 110 Ω, 1/2 W (All brown) Terminating resistance 130 Ω, 1/2 W...
  • Page 17: How To Use This Manual

    1 OVERVIEW MELSEC-A 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.
  • Page 18: Characteristics

    1 OVERVIEW MELSEC-A 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 Link scan Remote input Input (RX)
  • Page 19 1 OVERVIEW MELSEC-A (3) Local station communication The data communication between PC 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)
  • Page 20 1 OVERVIEW MELSEC-A (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.
  • Page 21 1 OVERVIEW MELSEC-A (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...
  • Page 22 1 OVERVIEW MELSEC-A (10) Parameter registration to the E PROM By registering the parameters to the E PROM, the parameter settings do not have to be performed at each master station startup (power off on). Because this is the E PROM, parameters are stored even if the module's power is turned off.
  • Page 23: Communication Overview

    1 OVERVIEW MELSEC-A 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. PC CPU Master station Remote I/O station Refresh specification...
  • Page 24: Communication Between The Master Station And Remote Device Station

    1 OVERVIEW MELSEC-A 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. PC CPU Master station Remote device station Refresh specification SET Yn0 Data-link startup...
  • Page 25: Communication Between The Master Station And Local Station

    1 OVERVIEW MELSEC-A 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. Master station Local station Local station Refresh specification Refresh specification Refresh specification Data link startup...
  • Page 26: Compound System Communication

    1 OVERVIEW MELSEC-A 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. Master station Remote I/O station Remote device station Local station Refresh specification Refresh specification...
  • Page 27: Number Of Occupied Stations And Station Number, Number Of Unit And Number Of Stations

    AJ65BT-D75P2-S3 4 stations The AJ61BT11 of hardware version F or later and the A1SJ61BT11 of hardware version G or later are compatible with this setting. For other than the above, the setting is 1 or 4 stations only. (2) Station number When the number of occupied station for all connected stations is set to "1...
  • Page 28: Abbreviations And Special Terms

    Master·local module General name for AJ61BT11 and A1SJ61BT11. Master module General name for AJ61BT11 and A1SJ61BT11 when they are used as master station. Local module General name for AJ61BT11 and A1SJ61BT11 when they are used as local station. Remote module...
  • Page 29: System Configuration

    A : Number of remote I/O stations B : Number of remote device stations C : Number of local stations, standby master stations, intelligent device stations Maximum 26 Master station Local station Local station A1SJ61BT11 A1SJ61BT11 A1SJ61QBT11 AJ61BT11 AJ61BT11 AJ61QBT11 CC-Link dedicated cable...
  • Page 30: Applicable System

    The applicable PC CPU, data link system/network system, and number of cards that can be installed are shown in Table 2.1. However, intelligent mode can not be used for future plan. Table 2.1 Number of cards that can be installed A1SJ61BT11 AJ61BT11 Installation area Remarks...
  • Page 31: Precautions When Configuring A System

    2 SYSTEM CONFIGURATION MELSEC-A 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.
  • Page 32 2 SYSTEM CONFIGURATION MELSEC-A (b) Countermeasure for mis-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. PC CPU Remote I/O module Module power supply Input external-supply power...
  • Page 33 2 SYSTEM CONFIGURATION MELSEC-A POINT To utilize the functions described in Chapter 14 or later, use a module with a rating plate where "9707B*" or later is shown as a DATE code. * "9707B" indicates that the module was manufactured in July 1997 and its function version is PROGRAMMABLE CONTROLLER 0512 DATE...
  • Page 34: List Of System Equipment Restricted By Master/Local Module Versions

    1 Supported by the hardware version F and later of the AJ61BT11 and AJ61QBT11, the hardware version G and later of the A1SJ61BT11 and A1SJ61QBT11, and the function version B and later of the QJ61BT11. For other than the above, the setting is one station or four stations only.
  • Page 35: About Ver. 1.10

    The "CC-Link" logo is stamped on the "plate" for the Version 1.10 modules. (a) Rating plate of AJ61BT11 PROGRAMMABLE CONTROLLER DATE Relevant regulation standards MADE IN JAPAN BD992C103H06 (b) Rating plate of A1SJ61BT11 MODEL POWER DATE Relevant regulation MADE IN JAPAN BD992C154H06 standards...
  • Page 36 2 SYSTEM CONFIGURATION MELSEC-A MEMO 2 - 8...
  • Page 37: Specification

    3 SPECIFICATION MELSEC-A 3. Specification 3.1 General Specification The general specification is shown in Table 3.1. Table 3.1 General specification Item Specifications Ambient operating 0 to 55°C temperature Ambient storage -20 to 75°C temperature Ambient operating 10 to 90% RH, Non-condensing humidity Ambient storage humidity 10 to 90% RH, Non-condensing...
  • Page 38: Performance Specifications

    0.4 kg 0.25 kg 1 : The AJ61BT11 of hardware version F or later and the A1SJ61BT11 of hardware version G or later are compatible with this setting. For other than the above, the setting is 1 or 4 stations only.
  • Page 39: Maximum Overall Cable Distance (For Ver. 1.00)

    3 SPECIFICATION MELSEC-A 3.2.1 Maximum overall cable distance (for Ver. 1.00) The relationship between the transmission speed and the maximum overall cable distance is described below: (1) For a system consisting of only remote I/O stations and remote device stations Remote I/O station Remote I/O station Remote I/O station...
  • Page 40 3 SPECIFICATION MELSEC-A (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.)".
  • Page 41: Maximum Overall Cable Distance (For Ver. 1.10)

    3 SPECIFICATION MELSEC-A 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. Local station or Local station or Remote I/O station Remote I/O station Master station...
  • Page 42: Cc-Link Dedicated Cable

    3 SPECIFICATION MELSEC-A 3.3 CC-Link Dedicated Cable Use the CC-Link dedicated cable 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 and contacts of the CC-Link dedicated cable, visit the CC-Link Partner Association home page at http://www.cc-link.org/.
  • Page 43: I/O Signals To The Pc Cpu

    3 SPECIFICATION MELSEC-A 3.4 I/O Signals to the PC CPU The I/O signals for the master/local module's PC 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.
  • Page 44 3 SPECIFICATION MELSEC-A Table 3.3 I/O signal list Signal direction: PC CPU master/local module Signal direction: PC CPU master/local module Availability Availability Input Output Signal name Signal name Master Local Master Local number number station station station station X(n+1)0 Y(n+1)0 X(n+1)1 Y(n+1)1 X(n+1)2...
  • Page 45: I/O Signal Details

    3 SPECIFICATION MELSEC-A 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. If the module is abnormal (Xn0 is ON), do not execute the FROM/TO instruction for the module.
  • Page 46 3 SPECIFICATION MELSEC-A (3) Parameter setting status: Xn2 Indicates parameter setting status at host station. SB006D has the same meaning. OFF : normal : error in setting (An error code is stored in SW0068.) Turns off when Yn6 or Yn8 is executed in the status that error does not occur.
  • Page 47 3 SPECIFICATION MELSEC-A (6) Data link startup by buffer memory parameter normal completion: Xn6 Indicates normal completion in data link startup requested by the buffer-memory parameter data link startup request (Yn6). (a) When (Yn6) is turned on, the parameter contents at the (address 0 to 5F ) in buffer memory are checked.
  • Page 48 3 SPECIFICATION MELSEC-A (8) Data link startup by E PROM parameter normal completion: Xn8 Indicates normal completion in data link startup requested by the E PROM parameter data link startup request (Yn8). (a) When (Yn8) is turned on, the E PROM parameter contents are checked.
  • Page 49 3 SPECIFICATION MELSEC-A (10) Parameter registration to E PROM normal completion: XnA Indicates normal completion in registering parameters at (buffer-memory address to 5F ) to E PROM requested by the parameter registration request to PROM (YnA). (a) When (YnA) is turned on, the parameter contents stored in the parameter information area buffer memory (address 0 to 5F ) are checked.
  • Page 50 3 SPECIFICATION MELSEC-A (12) Data link priority signal: XnC This signal suppresses the FROM/TO instructions and gives priority to data link. Utilize this signal when a probrem shown in section 13.1, such as "Xn1 (host station data link status) does not turn ON" or "Link special relay (SB) /link special register (SW) is not updated correctly", has occurred.
  • Page 51 3 SPECIFICATION MELSEC-A (14) E PROM erasure abnormal completion: XnE This signal indicates the abnormal completion of erasing the parameters in the PROM in response to the E PROM erasure request (YnD). (a) When the E PROM erasure request (YnD) turns on, the parameters in the PROM are erased.
  • Page 52: Buffer Memory

    3 SPECIFICATION MELSEC-A (15) Module ready: XnF Indicates if the module is ready for operation. Used as an interlock signal when a sequence program is used to make access to the master/local module. (a) Turns on automatically when the module becomes ready for operation. (b) Turns off when one of the following conditions occur: There is an error in the module switch settings.
  • Page 53 3 SPECIFICATION MELSEC-A (17) Module reset request: Yn4 Signal used to reset the module for debugging. The module can be reset individually without resetting the PC 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.
  • Page 54: Buffer Memory List

    3 SPECIFICATION MELSEC-A 3.5 Buffer Memory The buffer memory is used to swap data between the master/local module and the PC CPU. In the PC 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 PC CPU is reset.
  • Page 55 3 SPECIFICATION MELSEC-A Table 3.4 (2) Buffer memory list (bank 1) Address Availability Read/write Item Details Reference Master Local possibility Hex. Dec. station station When the transient transmission (communication using communication buffer) is performed with the intelligent Read/write Section to FFF 0 to 4095 Communication buffer device stations, this stores the...
  • Page 56: Buffer Memory Details

    3 SPECIFICATION MELSEC-A 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 E PROM.
  • Page 57 3 SPECIFICATION MELSEC-A (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 PC CPU has an error which "stops the error operation".
  • Page 58 3 SPECIFICATION MELSEC-A (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.
  • Page 59 3 SPECIFICATION MELSEC-A (g) Station information This sets the remote/local station type for connected remote/local stations and reserved stations. The data configuration to be set is shown below. Number of Station number Station type occupied stations 1 to 64 1: occupies 1 station to 40 2: occupies 2 stations 3: occupies 3 stations...
  • Page 60 3 SPECIFICATION MELSEC-A (2) Remote input (RX) and remote output (RY) (a) Master station Remote I/O station/remote device station/local station 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 Remote device station Master station...
  • Page 61 3 SPECIFICATION MELSEC-A 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.
  • Page 62 3 SPECIFICATION MELSEC-A (b) Master station remote I/O station/remote device station/local station 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 Remote device station Master station (station No.1: occupies 1 station)
  • Page 63 3 SPECIFICATION MELSEC-A 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.
  • Page 64 3 SPECIFICATION MELSEC-A (3) Remote register (RWw) and remote register (RWr) (a) Master station (RWw) Remote device station (RWw)/ local station (RWr) 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.
  • Page 65 3 SPECIFICATION MELSEC-A 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 Local station (station No.5: occupies 4 stations) (station No.4: occupies 1 station) Remote register (RWr) Remote register (RWr) Address RWr 0...
  • Page 66 3 SPECIFICATION MELSEC-A Following tables show the relationship between station numbers and buffer memory addresses used. [Master station] Station number and buffer memory correspondence table Station number Buffer memory address Station number Buffer memory address to 1E3 to 263 to 1E7 to 267 to 1EB to 26B...
  • Page 67 3 SPECIFICATION MELSEC-A [Local station] Station number and buffer memory correspondence table Station number Buffer memory address Station number Buffer memory address to 2E3 to 363 to 2E7 to 367 to 2EB to 36B to 2EF to 36F to 2F3 to 373 to 2F7 to 377...
  • Page 68 3 SPECIFICATION MELSEC-A (b) Master station (RWr) Remote device station (RWr)/ local station (RWw) Master station Data to be sent to remote register (RWr) of remote device station and remote register (RWw) of local station are stored. Four words are used per station. Remote I/O station Remote device station Master station...
  • Page 69 3 SPECIFICATION MELSEC-A 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.
  • Page 70 3 SPECIFICATION MELSEC-A Following tables show the relationship between station numbers and buffer memory addresses used. [Master station] Station number and buffer memory correspondence table Station Buffer memory Station Buffer memory Station Buffer memory Station Buffer memory Station Buffer memory number address number...
  • Page 71 3 SPECIFICATION MELSEC-A (4) Link special relay (SB) Data link status is stored in the form of bit on/off information. Buffer memory address 5E0 to 5FF 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 5E0 and SB0000 to SB01FF.
  • Page 72 3 SPECIFICATION MELSEC-A MEMO 3 - 36...
  • Page 73: Functions

    4 FUNCTIONS MELSEC-A 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 Function availability Item Function summary Reference Master Local station station Communication between master and Performs on/off data communication with remote I/O station. Section 4.2 remote I/O stations Communication between master and...
  • Page 74: Communication Between The Master Station And Remote I/O Station

    4 FUNCTIONS MELSEC-A 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. PC CPU Master station Remote I/O station Refresh specification SET Yn0 Data link startup by E PROM SET Yn8 parameters...
  • Page 75 4 FUNCTIONS MELSEC-A [Remote input] 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. The input status stored in the "remote input (RX)" in the buffer memory is received to the PC CPU with the FROM instruction.
  • Page 76: Communication Between The Master Station And Remote Device Station

    4 FUNCTIONS MELSEC-A 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. PC CPU Master station Remote device station Refresh specification SET Yn0 Data link startup by EEPROM SET Yn8 parameters...
  • Page 77 4 FUNCTIONS MELSEC-A [Data link startup] Turn on the refresh specification (Yn0) and make the remote output (RY) data valid. When the refresh specification (Yn0) is off, all the remote output (RY) data is treated as 0 (off). Turn on the data link startup by the E PROM parameters (Yn8), and start the data link.
  • Page 78 4 FUNCTIONS MELSEC-A [Remote output] 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. 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.
  • Page 79 4 FUNCTIONS MELSEC-A [Written to the remote register (RWw)] With the TO instruction, the transmission data is written to the "remote register (RWw)" in the buffer memory. The data stored in the "remote register (RWw)" in the buffer memory is sent to the remote device station's remote register (RWw).
  • Page 80 4 FUNCTIONS MELSEC-A [Reading from the remote register (RWr)] 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 The remote device station's remote register (RWr) data stored in the "remote register (RWr)"...
  • Page 81 4 FUNCTIONS MELSEC-A MEMO 4 - 9...
  • Page 82: Communication Between The Master Station And Local Station

    4 FUNCTIONS MELSEC-A 4.4 Communication Between the Master Station and Local Station The overview of the communication between the master and local stations is described. PC CPU Master station Local station (station No. 1) Refresh specification Refresh specification SET Yn0 Data link startup SET Yn8 by EEPROM...
  • Page 83 4 FUNCTIONS MELSEC-A Local station (station No. 2) PC CPU Refresh specification SET Yn0 Buffer memory Remote output (RY) Receive area from local FROM Link scan station No. 1 Send area for host Link scan (station No. 2) Remote input (RX) Receive area Link scan from master...
  • Page 84 4 FUNCTIONS MELSEC-A [Data link startup] Turn on the refresh specification (Yn0) and make the remote output (RY) data valid. When the refresh specification (Yn0) is off, all the remote output (RY) data is treated as 0 (off). Turn on the data link startup by the E PROM parameters (Yn8) and start the data link.
  • Page 85 4 FUNCTIONS MELSEC-A [On/off data from the master station the local station] 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. 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.
  • Page 86 4 FUNCTIONS MELSEC-A [Word data from the master station to all local stations] 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. The data in the "remote register (RWw)"...
  • Page 87 4 FUNCTIONS MELSEC-A [Word data from the local station the master station/other local stations] 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.
  • Page 88: Communication In Compound Systems

    4 FUNCTIONS MELSEC-A 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. PC CPU Master station Remote I/O station (station No. 1) SET Yn0 Refresh specification Data link startup by EEPROM...
  • Page 89 4 FUNCTIONS MELSEC-A Remote device station (station No. 2) Local station (station No. 3) Local station (station No. 4) Refresh specification Refresh specification Buffer memory Buffer memory Remote output (RY) Remote output (RY) Receive area from Receive area from remote I/O remote I/O station No.
  • Page 90 4 FUNCTIONS MELSEC-A [Data link startup] Turn on the refresh specification (Yn0) and make the remote output (RY) data valid. When the refresh specification (Yn0) is off, all the remote output (RY) data is treated as 0 (off). Turn on the data link startup by the E PROM parameters (Yn8) and start the data link.
  • Page 91 4 FUNCTIONS MELSEC-A [On/off data from the master station the remote I/O station/remote device station/ local station] 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)"...
  • Page 92 4 FUNCTIONS MELSEC-A [Word data from the master station remote device station/all local stations] 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.
  • Page 93 4 FUNCTIONS MELSEC-A [Word data from the remote device station/local station the master station] 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).
  • Page 94: Reserved Station Function

    4 FUNCTIONS MELSEC-A 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.
  • Page 95: Error Invalid Station Function

    4 FUNCTIONS MELSEC-A 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.
  • Page 96: Data Link Status Setting When The Master Station Pc Cpu Has An Error

    4 FUNCTIONS MELSEC-A 4.8 Data Link Status Setting when the Master Station PC CPU has an Error The data link status for when the master station's PC CPU has an "operation-stop error" can be set. The data link between local stations can be continued. POINT Even if the master station PC CPU has an "operation-stop error", the data link continues.
  • Page 97: Setting The Status Of Input Data From A Data Link Faulty Station

    4 FUNCTIONS MELSEC-A 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 staion Remote device station Local station...
  • Page 98: Module Reset Function From A Sequence Program

    4 FUNCTIONS MELSEC-A 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 PC CPU. However, reset cannot be performed when there is module error (Xn0 is on). While the module reset request is being executed, do not execute the FROM/TO instruction for the module.
  • Page 99: Data Link Stop/Restart

    4 FUNCTIONS MELSEC-A 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...
  • Page 100: Ras Function

    4 FUNCTIONS MELSEC-A 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.
  • Page 101: Slave Station Cut-Off Function

    4 FUNCTIONS MELSEC-A 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. Master Local station Local station...
  • Page 102: Station Number Overlap Checking Function

    4 FUNCTIONS MELSEC-A 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). (Example) Local station (station number 1, occupied stations: 4) Station 1 Station 2 Station 3 Station 4 Overlap Station 4 Station 5...
  • Page 103: Data Link Processing Time

    5 DATA LINK PROCESSING TIME MELSEC-A 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. Master station Remote I/O station Remote Remote Remote...
  • Page 104 5 DATA LINK PROCESSING TIME MELSEC-A Local station, standby master station, Remote device station intelligent device station Data link status Remote Remote Remote Remote Remote Remote Remote Remote input output resister resister input output resister resister (RX) (RY) (RWw) (RWr) (RX) (RY) (RWw)
  • Page 105 5 DATA LINK PROCESSING TIME MELSEC-A Local station, standby master station, intelligent Remote device station device station Data link status Remote Remote Remote Remote Remote Remote Remote Remote input output resister resister input output resister resister (RX) (RY) (RWw) (RWr) (RX) (RY) (RWw)
  • Page 106: Link Scan Time

    5 DATA LINK PROCESSING TIME MELSEC-A 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 ×...
  • Page 107: Transmission Delay Time

    5 DATA LINK PROCESSING TIME MELSEC-A 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.) [Data flow]...
  • Page 108 5 DATA LINK PROCESSING TIME MELSEC-A (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.) [Data flow] PC CPU (SM) Master station buffer memory...
  • Page 109 5 DATA LINK PROCESSING TIME MELSEC-A 5.3.2 Master station 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.) [Data flow] FROM...
  • Page 110: Master Station Remote Device Station

    5 DATA LINK PROCESSING TIME MELSEC-A (2) Master station (RY) 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.) [Data flow] PC CPU (SM) Master station buffer memory...
  • Page 111 5 DATA LINK PROCESSING TIME MELSEC-A (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.) [Data flow] PC CPU (SM) Master station buffer memory...
  • Page 112 5 DATA LINK PROCESSING TIME MELSEC-A (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.) [Data flow] FROM FROM...
  • Page 113 5 DATA LINK PROCESSING TIME MELSEC-A 5.3.3 Master station 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.) SL : Scan time of the local station's sequence program [Data flow] PC CPU (SM)
  • Page 114 5 DATA LINK PROCESSING TIME MELSEC-A (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.) SL : Scan time of the local station's sequence program [Data flow] PC CPU (SL)
  • Page 115 5 DATA LINK PROCESSING TIME MELSEC-A (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.) SL : Scan time of the local station's sequence program [Data flow] PC CPU (SM)
  • Page 116 5 DATA LINK PROCESSING TIME MELSEC-A (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.) SL : Scan time of the local station's sequence program [Data flow] PC CPU (SL)
  • Page 117: Master Station Intelligent Device Station

    5 DATA LINK PROCESSING TIME MELSEC-A 5.3.4 Master station 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 (Details) of the intelligent device used. 5 - 15...
  • Page 118: Master Station Local Station

    5 DATA LINK PROCESSING TIME MELSEC-A 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 (1) Master station local station Indicates the time from when the master station issues an instruction until it receives a reply from a local station.
  • Page 119 5 DATA LINK PROCESSING TIME MELSEC-A (b) For writing × LS + α MB = [SM + LS + {(No. of writing points + 16)/72} + 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) α...
  • Page 120 5 DATA LINK PROCESSING TIME MELSEC-A (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} ×...
  • Page 121 5 DATA LINK PROCESSING TIME MELSEC-A (b) For writing × LS + α 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)
  • Page 122: Local Station Local Station

    5 DATA LINK PROCESSING TIME MELSEC-A 5.4.2 Local station 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 + LS ×...
  • Page 123 5 DATA LINK PROCESSING TIME MELSEC-A (b) For writing × LS + α MB = [SL + LS × 2 + {(No. of writing points + 16)/16} + LS × 3 + β + constant bps] × N [ms] + SL : Send end local station sequence scan time : Receive end local station sequence scan time LS : Link scan time (Refer to section 5.2)
  • Page 124: Master Station Intelligent Device Station

    5 DATA LINK PROCESSING TIME MELSEC-A 5.4.3 Master station 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 ×...
  • Page 125 5 DATA LINK PROCESSING TIME MELSEC-A (b) For writing × LS + α MB = [SM + LS + {(No. of writing points + 16)/72} + SM + LS × 3 + β + constant bps] × N [ms] SM : Master station sequence scan time LS : Link scan time (Refer to section 5.2) α...
  • Page 126 5 DATA LINK PROCESSING TIME MELSEC-A MEMO 5 - 24...
  • Page 127: Parameter Setting

    6 PARAMETER SETTING MELSEC-A 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, E PROM and internal memory The relationship between the master station buffer memory, E...
  • Page 128 6 PARAMETER SETTING MELSEC-A (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. PC CPU Master station Parameters are The parameters not erased even E PROM area erased if the power is...
  • Page 129: Procedure From Parameter Setting To Data Link Start

    6 PARAMETER SETTING MELSEC-A 6.1.2 Procedure from parameter setting to data link start Follow the procedure below: PC CPU Master station Buffer memory Data (number of connected E PROM modules, number of retries, etc.) Parameter is written to the master station's information "parameter information area area...
  • Page 130: Parameter Settings

    6 PARAMETER SETTING MELSEC-A 6.2 Parameter Settings The items to set in the master station's "parameter information area (address 0 )" in the buffer memory is shown in Table 6.1. Refer to Section 3.5.2 for details of each item. Table 6.1 Parameter setting items Buffer memory Setting item Description...
  • Page 131: Setting From A Sequence Program

    6 PARAMETER SETTING MELSEC-A 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. (a) When debugging X0020 X002F Number of connected modules...
  • Page 132 6 PARAMETER SETTING MELSEC-A M9038 Refresh specification X0020 X002F X0026 When data link by Data link by buffer-memory buffer-memory parameters is parameters completed normally X0027 FROM H0002 H0668 D100 When data link by buffer-memory parameters is completed fault Register X0020X002F command X002A When parameter...
  • Page 133 6 PARAMETER SETTING MELSEC-A (b) During operation M9038 Refresh specification X0020 X002F X0028 When data link startup Data link by by E PROM PROM parameters is parameters completed normally X0029 FROM H0002 H0668 D100 When data link startup by E PROM parameters is completed fault 6 - 7...
  • Page 134 6 PARAMETER SETTING MELSEC-A (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.3 Station No.11 Invalid station Local Master Local Station No.1 Station No.2 Station No.7...
  • Page 135 E normally X002B FROM H0002 H06B9 D101 When parameter registration PROM is completed to E fault : Refer to Section 8.2 when using the software version E (manufactured in Aug., 2001) or later of the A1SJ61BT11. 6 - 9...
  • Page 136 6 PARAMETER SETTING MELSEC-A During operation M9038 Refresh specification X0020 X002F X0028 Data link by When data link startup by PROM parameters PROM parameters is completed normally X0029 FROM H0002 H0668 D100 When data link startup by PROM parameters is completed fault 6 - 10...
  • Page 137: Data Link Procedure

    7 DATA LINK PROCEDURE MELSEC-A 7. Data Link Procedure 7.1 Data Link Procedure The procedure of performing CC-Link's data link is shown below: Install the master module and local module to the base module. Install the remote module and intelligent device module to the control board or machine.
  • Page 138: Installation And Setting

    7 DATA LINK PROCEDURE MELSEC-A 7.2 Installation and Setting The precautions from when opening the package to installing the master·local module are described. Refer to the User's Manual of your PC CPU module for details of the module installation and setting. 7.2.1 Precautions when handling the module (1) Since the module case·terminal is made of resin, do not apply strong shock or drop them.
  • Page 139: Name Of Each Part And Settings

    B RATE ISM SFM 0 156K 1 625K 2 2. 5M 3 5M 4 10M M / L S MST CLEAR HOLD 1 / 2 3 / 4 1 / 4 2 / 3 ISFM (FG) A1SJ61BT11 (FG) 7 - 3...
  • Page 140 7 DATA LINK PROCEDURE MELSEC-A Name Description LED display The data-link status can be checked from the LED on status. LED display status Master station Local station J61BT11 (Standby (Standby Description name master station) master station) When When When When 156K normal error...
  • Page 141 Local station : 1 to 64 Standby master station : 1 to 64 A1SJ61BT11 The "SW" and "L ERR." LEDs are turned on when a value other than 0 to 64 is set. STATION NO. In remote I/O net mode...
  • Page 142 (FG) 1 : The AJ61BT11 of hardware version F or later and the A1SJ61BT11 of hardware version G or later are compatible with this setting. For other than the above, only SW5 is used to set the number of occupied stations.
  • Page 143: Checking Module Condition (Hardware Test)

    Start Connect the terminal resistive with the module between terminal DA and DB for the master · local module. Set masterálocal module's "mode setting switch" to "6". For AJ61BT11: For A1SJ61BT11: ACPU AJ61 AnSCPU A2ASCPU BT11 BT11 Operate the RUN/STOP key switch and the...
  • Page 144 7 DATA LINK PROCEDURE MELSEC-A 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: "M/S" "PRM" "SW" "TIME". TIME Repeats [When error] The error description for each check item is shown below.
  • Page 145: Module Wiring With Cc-Link Dedicated Cable

    7 DATA LINK PROCEDURE MELSEC-A 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) CC-Link cables can be connected from any station number. (2) Connect the supplied "terminal resistors"...
  • Page 146: T-Branch Connection With The Cc-Link Dedicated Cable

    7 DATA LINK PROCEDURE MELSEC-A 7.6 T-Branch Connection with the CC-Link Dedicated Cable The T-Branch connection method with CC-Link dedicated cable is described below. 7.6.1 T-Branch system configuration The system configuration in the connection of T-Branch is as shown below. T-Branch terminal block/connector Trunk line...
  • Page 147 7 DATA LINK PROCEDURE MELSEC-A Item Specification Remark When the hardware version of the master module is as follows: AJ61BT11 : Hardware version C or later AJ61QBT11 : Hardware version C or later AISJ61BT11 : Hardware version D or later Use commercial terminating resistances of AISJ61QBT11 : Hardware version D or later 110 Ω...
  • Page 148: Switch Settings

    7 DATA LINK PROCEDURE MELSEC-A 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 and remote station) The station number setting method is described for the master station, local station and remote station.
  • Page 149 7 DATA LINK PROCEDURE MELSEC-A (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 680 )". However, by setting as a reserved station, the station number will not be treated as a data-link faulty station.
  • Page 150: Mode Setting

    7 DATA LINK PROCEDURE MELSEC-A (3) There cannot be duplicate station numbers. If there are duplicate numbers, it results in Loading status error. (Error code is stored in SW0069.) [Setting example] When a station number is duplicated: Station Station Station number "0"...
  • Page 151: Condition Setting

    : ON 1 : The AJ61BT11 of hardware version F or later and the A1SJ61BT11 of hardware version G or later are compatible with this setting. For other than the above, only SW5 is used to set the number of occupied stations.
  • Page 152: Checking The Connection Condition (Line Test)

    Perform Line Test by following the procedure below: Start Set the master module's "mode setting switch" ..Set "0 (online)" at local stations. to "3". For AJ61BT11: For A1SJ61BT11: ACPU AJ61 AnSCPU A2ASCPU BT11 BT11 Operate the RUN/STOP key switch of the...
  • Page 153 7 DATA LINK PROCEDURE MELSEC-A 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"...
  • Page 154: Checking Connection And Communication Status With Specific Remote Station/Local Station (Line Test 2)

    Set the station number setting switch of the master module to the station number of the module to be tested. Set the master module's "mode setting switch" ..Set "0 (online)" at local stations. to "4". For AJ61BT11: For A1SJ61BT11: ACPU AJ61 AnSCPU BT11 A2ASCPU BT11...
  • Page 155 7 DATA LINK PROCEDURE MELSEC-A 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" "PRM" "TIME". It is judged as normal when this repeats five times or more. TIME Repeats [When error]...
  • Page 156: Checking Parameters (Parameter Confirmation Test)

    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. For AJ61BT11: For A1SJ61BT11: ACPU AJ61 AnSCPU BT11 A2ASCPU BT11...
  • Page 157 7 DATA LINK PROCEDURE MELSEC-A 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. Mode setting switch Parameter item Used LEDs and contents Total number of stations...
  • Page 158 7 DATA LINK PROCEDURE MELSEC-A MEMO 7 - 22...
  • Page 159: Programming

    8 PROGRAMMING MELSEC-A 8. Programming 8.1 Precautions when Programming Precautions when creating programs are described below: POINT The time to return to the system automatically is influenced by the number of sequence scans, link scans and FROM/TO instructions. Execute the FROM/TO instruction once or so per link scan.
  • Page 160 8 PROGRAMMING MELSEC-A (3) In a program, reading received data and writing transmission data should be performed after the host station becomes the data link status (Xn1 is on). Module error Module ready Host data link status Communication program (4) Create a program which checks and interlooks the data-link status at remote I/O station, remote device station and local station.
  • Page 161: Precautions For Registering Parameters To E 2 Prom

    8.2.1 Target module and versions The target module and versions are as indicated below. Target Module Hardware version Software version A1SJ61BT11 H or later E (manufactured in Aug., 2001) or later 8.2.2 Precautions The following are the precautions for registering parameters to E PROM.
  • Page 162: Program For Registering Parameters To E 2 Prom

    8 PROGRAMMING MELSEC-A 8.2.3 Program for registering parameters to E PROM The program for registering parameters to E PROM is shown below. This example assumes that the master module is installed to the head I/O number 40. Register command PLS M501 M501 FROM H4 H6BB...
  • Page 163 8 PROGRAMMING MELSEC-A M512 PLS M513 M513 H5E0 Checks the data M514 link status. SET M515 M514 K4B40 K1 FROM H4 H5E4 Check that data RST M514 link has stopped. SET M515 M515 PLS M516 Erases E PROM. M516 Erases E PROM. SET Y4D RST Y4D On normal completion...
  • Page 164: Programming Procedure

    8 PROGRAMMING MELSEC-A 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.
  • Page 165: Communication Between The Master Station And Remote Device Station

    8 PROGRAMMING MELSEC-A 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 0 to 5F Refresh specification ..Yn0...
  • Page 166: Communication Between The Master Station And Local Station

    8 PROGRAMMING MELSEC-A 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 0 to 5F Refresh specification...
  • Page 167 8 PROGRAMMING MELSEC-A (2) Local station Refresh specification ..Yn0 Read from remote input (RX) and remote ..Buffer memory address E0 to 15F output (RY) Read from remote register (RWr) ..Buffer memory address 1E0 to 2DF Read from remote register (RWw) ..Buffer memory address 2E0 to 3DF Control by read data from remote input...
  • Page 168: Communication In A Compound System

    8 PROGRAMMING MELSEC-A 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 0 to 5F Parameter setting Refresh specification...
  • Page 169 8 PROGRAMMING MELSEC-A (2) Local station Refresh specification ..Yn0 Read from remote input (RX) ..Buffer memory address E0 to 15F Read from remote output (RY) ..Buffer memory address 160 to 1DF Read from remote register (RWw) ..Buffer memory address 1E0 to 2DF Read from remote register (RWr) ..Buffer memory address 2E0...
  • Page 170: Link Special Relay/Register (Sb/Sw)

    8 PROGRAMMING MELSEC-A 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 show the information on the buffer memories of the master and local modules for convenience.
  • Page 171 8 PROGRAMMING MELSEC-A Availability : available, : not available ) Number Name Description Online Offline Master Local station station Indicates the acceptance status of SEND/RECV/READ/WRITE/REQ commands (when channel 1 is used).(Usable on AJ61QBT11 and Communication command SB0030 2 A1SJ61QBT11) (1) acceptance OFF : Not accepted ON : Accepted Indicates the complete status of SEND/RECV/READ/WRITE/REQ...
  • Page 172 1 : Link special relay added to the function version B or later 2 : Link special relay added to the AJ61BT11 of hardware version F or later and the A1SJ61BT11 of hardware version G or later 8 - 14...
  • Page 173 8 PROGRAMMING MELSEC-A Availability : available, : not available ) Number Name Description Online Offline Master Local station station Indicates the scan mode setting status. SB0072 1 Scan mode setting OFF : Asynchronous mode ON : Synchronous mode Indicates specification when CPU is down status by parameter. Operation specification SB0073 OFF : Stop...
  • Page 174: Link Special Register (Sw)

    8 PROGRAMMING MELSEC-A 8.4.2 Link special register (SW) The value in the ( ) next to the number indicates the buffer memory address. Table 8.2 Link special register list Availability : available, : not available ) Number Name Description Online Offline Master Local...
  • Page 175 8 PROGRAMMING MELSEC-A Availability : available, : not available ) Number Name Description Online Offline Master Local station station Stores the execution results of the temporary error invalid station SW0049 Temporary error invalid request specification by SB0004. (649 station request result : Normal Other than 0 : Stores error code (Refer to Section 13.3.) Stores the execution results of the temporary error invalid station...
  • Page 176 8 PROGRAMMING MELSEC-A Table 8.2 Link special register list (continued) Availability : available, : not available ) Number Name Description Online Offline Master Local station station The station number overlap and consistency with the parameters are stored for each module. SW0069 Loading status : Normal...
  • Page 177 8 PROGRAMMING MELSEC-A Availability : available, : not available ) Number Name Description Online Offline Master Local station station Stores the data link status of each station. SW0080 0: Normal (680 1: Data link error occurred SW0081 (681 Other station data link SW0080 SW0082 status...
  • Page 178 4 : Turns on only the bit for the head station number.And check is performed only when the link is started up, and stored. 5 : Link special register added to the software version E (manufactured in Aug., 2001) or later of the A1SJ61BT11.
  • Page 179 8 PROGRAMMING MELSEC-A 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.3 Update timing of the link special register Link special register Data update timing Link special register Data update timing Updated independently regardless of SB...
  • Page 180 8 PROGRAMMING MELSEC-A MEMO 8 - 22...
  • Page 181: Communication Between The Master Station And The Remote I/O Station

    9 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE I/O STATION MELSEC-A 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.
  • Page 182: Setting Of The Master Station

    9 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE I/O STATION MELSEC-A 9.1.1 Setting of the master station The settings of the switches on the master station are shown below: J61BT11 156K ERR. 625K 2. 5M S MST LOCAL CPU R / W M / S TEST TIME...
  • Page 183: Setting Of The Remote I/O Station

    Station number setting switch 2 (2.5Mbps) Module AJ65BTB1-16D AJ65BTC1-32D AJ65BTB1-16T AJ65BTC1-32T AJ65BTB1-16DT MITSUBISHI J65BTB1-16D B RATE L RUN SD RD L ERR. STATION NO. 1 2 3 4 5 6 7 8 9 A B C D E F 9 - 3...
  • Page 184: Creating A Program

    9 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE I/O STATION MELSEC-A 9.2 Creating a Program 9.2.1 Program for parameters This program automatically initiates the data link when the PC CPU starts running. [When debugging] X0040 X004F PLS M300 M300 SET M301 M301 Number of connected...
  • Page 185 M305 X004B FROM H0004 H06B9 D101 K1 When parameter PROM registration to E is completed fault M305 : Refer to Section 8.2 when using the software version E (manufactured in Aug., 2001) or later of the A1SJ61BT11. 9 - 5...
  • Page 186 9 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE I/O STATION MELSEC-A [During operation] M9038 Refresh command X0040 X004F M300 M300 M301 M301 X0048 When the data link Data link by the by the parameters parameters in in E PROM is PROM completed normally M301...
  • Page 187: Communication Program

    9 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE I/O STATION MELSEC-A 9.2.2 Communication program A program to control the remote I/O stations is shown below. The following configuration of the PC CPU, master station's buffer memory and the remote I/O stations is assumed. PC CPU Master station Remote I/O station (Station No.
  • Page 188 9 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE I/O STATION MELSEC-A X0040 X004F X0041 Master station is performing M500 the data link. M500 M9036 Read each station's data FROM H0004 H0680 K4M401 K1 link status (SW0080) M401 Remote I/O station (station No.1) is in error.
  • Page 189 9 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE I/O STATION MELSEC-A When X60 to X7F of the M232 For communication master station AX42 is with AJ65BTC1-32T turned on, output (Y00 to (station No.4) Y1F) of AJ65BTC1-32T M263 is turned on. M128 When input (X00 to X07) of AJ65BTB1-16DT is...
  • Page 190: Performing The Data Link

    9 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE I/O STATION MELSEC-A 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.
  • Page 191: Confirming The Operation By The Program

    9 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE I/O STATION MELSEC-A 9.3.2 Confirming the operation by the program Using the sequence program, confirm that the data link is proceeding normally. 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.
  • Page 192 9 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE I/O STATION MELSEC-A MEMO 9 - 12...
  • Page 193: Communication Between The Master Station And The Remote Device Station

    10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MELSEC-A 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.
  • Page 194: Setting Of The Master Station

    10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MELSEC-A 10.1.1 Setting of the master station The settings of the switches on the master station are shown below: J61BT11 156K ERR. 625K 2. 5M S MST LOCAL CPU R / W M / S TEST TIME...
  • Page 195: 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 STATION NO. MITSUBISHI J65BT-64AD L RUN L ERR. OFFSET GAIN RESET 10 - 3...
  • Page 196: Creating A Program

    10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MELSEC-A 10.2 Creating a Program 10.2.1 Program for parameters This program automatically initiates the data link when the PC CPU starts running. [When debugging] X0040 X004F PLS M300 M300 SET M301 M301 Number of connected...
  • Page 197 M305 X004B FROM H0004 H06B9 D101 K1 When parameter registration to E PROM is completed fault M305 : Refer to Section 8.2 when using the software version E (manufactured in Aug., 2001) or later of the A1SJ61BT11. 10 - 5...
  • Page 198 10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MELSEC-A [During operation] M9038 Refresh command X0040 X004F M300 M300 M301 M301 X0048 When the data link Data link by the by the parameters parameters in E PROM is in E PROM completed normally...
  • Page 199: Communication Program

    10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MELSEC-A 10.2.2 Communication program A program to control the remote device stations is shown below. The following configuration of the PC CPU, master station's buffer memory and the remote device stations is assumed. Refer to each module's User's Manuals (Detailed Edition) for details.
  • Page 200 10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MELSEC-A [Remote register (RWw, RWr)] Remote device station (station No.1) PC CPU Master station AJ65BT-64AD Remote register Remote register (RWw) (RWw) D200 Averaging process specification Averaging process specification CH1 Average time, number of times CH1 Average time, number of times D202 CH2 Average time,number of times...
  • Page 201 10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MELSEC-A X0040 X004F X0041 Read the data link status FROM H0004 H0680 K1M401 K1 (SW0080) from the remote device station M401 AJ65BT-64AD data link is CALL proceeding M401 AJ65BT-64AD data link is in error M403 AJ65BT-64DAV data link is...
  • Page 202 10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MELSEC-A Remote READY M0 (CH1 A/D conversion complete flag: RX0) (RX1B) FROM H0004 H02E0 D210 K1 CH1 Digital output value Read digital M1 (CH2 A/D conversion complete flag: RX1) value FROM H0004 H02E1 D211 K1...
  • Page 203 10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MELSEC-A Communication program with AJ65BT-64DAV M9036 Read AJ65BT-64DAV FROM H0004 H00E4 K4M200 K2 remote input (RX) D/A conversion enable/ M224 (Initial data processing request flag: X18) disable specification H0008 D300 (CH1 to CH3 conversion permission) H0004...
  • Page 204: Performing The Data Link

    10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MELSEC-A 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 device station when the data link is performed normally.
  • Page 205: Confirming The Operation By The Program

    10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MELSEC-A 10.3.2 Confirming the operation by the program Using the sequence program, confirm that the data link is proceeding normally. The digital value which was converted by AJ65BT-64AD is stored in D210 (CH1 digital value) and D211 (CH2 digital value).
  • Page 206 10 COMMUNICATION BETWEEN THE MASTER STATION AND THE REMOTE DEVICE STATION MELSEC-A MEMO 10 - 14...
  • Page 207: Communication Between The Master Station And The Local Station

    11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-A 11. Communication Between the Master Station and the Local Station How to set, program, and confirm the operation of the module is described using a system configuration example. 11.1 System Configuration A system with two local stations is connected as an example.
  • Page 208: Setting Of The Master Station

    11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-A 11.1.1 Setting of the master station The settings of the switches on the master station are shown below: J61BT11 156K ERR. 625K 2. 5M S MST LOCAL CPU R / W M / S TEST TIME...
  • Page 209: Setting Of The Local Station

    11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-A 11.1.2 Setting of the local station The settings of the switches on the local station are shown below: J61BT11 156K ERR. 625K 2. 5M S MST LOCAL CPU R / W M / S TEST TIME...
  • Page 210: Creating A Program

    11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-A 11.2 Creating a Program 11.2.1 Program for the master station (1) Program for parameter This program automatically initiates the data link when the PC CPU starts running. [When debugging] X0040 X004F M300 M300...
  • Page 211 M305 X004B FROM H0004 H06B9 D101 K1 When parameter registration to E PROM is completed fault M305 : Refer to Section 8.2 when using the software version E (manufactured in Aug., 2001) or later of the A1SJ61BT11. 11 - 5...
  • Page 212 11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-A [During operation] M9038 Refresh command X0040 X004F M300 M300 M301 M301 X0048 When the data link Data link by the by the parameters parameters in E PROM is in E PROM completed normally M301...
  • Page 213 11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-A (2) Communication program The following configuration of the PC CPU device, master station's buffer memory and local station's buffer memory is assumed. [Remote input (RX), remote output (RY)] Local station PC CPU Master station (station No.
  • Page 214 11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-A [Remote register (RWw, RWr)] Local station PC CPU Master station (station No.1: occupies 1 station) PC CPU Remote register (RWw) Remote register (RWr) D200 D200 Send area to the Receive area from local station No.1 the master station...
  • Page 215 11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-A X0040 X004F X0041 Read the data link status FROM H0004 H0680 K1M401 K1 (SW0080) of the local station M401 Local station No.1 data link CALL is proceeding M401 Local station No.1 data link is in error M402 Local station No.2 data link...
  • Page 216: Local Station Program

    11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-A 11.2.2 Local station program (1) Program for parameters Local stations do not need this. (2) Program for communication Refer to Section 11.2.1 (2), for the relationship between the PC CPU device, master station's buffer memory, and the local station's buffer memory.
  • Page 217 11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-A (b) Local station No.2 M9038 Y0000 Refresh command X0000 X000F X0001 Host station data M500 link is proceeding M500 M9036 FROM H0000 H0680 K4M600 K1 M600 Station No.1 local Y0030 station error M9036...
  • Page 218: Performing The Data Link

    11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-A 11.3 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.3.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.
  • Page 219: Confirming The Operation By The Program

    11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-A 11.3.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.
  • Page 220 11 COMMUNICATION BETWEEN THE MASTER STATION AND THE LOCAL STATION MELSEC-A MEMO 11 - 14...
  • Page 221: Communication In The Compound System

    12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-A 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 A system with a remote I/O station, a remote device station and a local station is used as an example.
  • Page 222: Setting Of The Master Station

    12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-A 12.1.1 Setting of the master station The settings of the switches on the master station are shown below: J61BT11 156K ERR. 625K 2. 5M S MST LOCAL CPU R / W M / S TEST TIME LINE...
  • Page 223: 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 J65BTB1-16DT B RATE L RUN SD RD L ERR. STATION NO. 1 2 3 4 5 6 7 8 9 A B C D E F 12.1.3 Setting of the remote device station...
  • Page 224: Setting Of The Local Station

    12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-A 12.1.4 Setting of the local station The settings of the switches on the local station are shown below: J61BT11 156K ERR. 625K 2. 5M S MST LOCAL CPU R / W M / S TEST TIME LINE...
  • Page 225: Creating A Program

    12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-A 12.2 Creating a Program 12.2.1 Program for the master station (1) Parameten program Program for the parameter this program automatically initiates the data link when the PC CPU starts running. [When debugging] X0040 X004F M300 M300 M301...
  • Page 226 M305 X004B FROM H0004 H06B9 D101 K1 When registration parameter to E PROM is completed fault M305 : Refer to Section 8.2 when using the software version E (manufactured in Aug., 2001) or later of the A1SJ61BT11. 12 - 6...
  • Page 227 12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-A [During operation] M9038 Refresh command X0040 X004F M300 M300 M301 M301 X0048 When the data link Data link by the by the parameters in parameters in PROM is completed PROM M301 normally X0049 FROM H0004 H0668 D100 K1 When the data link...
  • Page 228 12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-A (2) Communication program The following configuration of the PC CPU device, master station's buffer memory and local station's buffer memory is assumed. [Remote input (RX), remote output (RY)] Remote I/O station (station No.1) AJ65BTB1-16DT PC CPU Master station...
  • Page 229 12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-A [Remote register(RWw, RWr)] Remote device station (station No.2) AJ65BT-64AD PC CPU Master station Remote register (RWw) Remote register (RWw) Averaging processing specification CH1 Average time,number of times CH2 Average time,number of times CH3 Average time,number of times CH4 Average time,number of times D200 Averaging processing specification...
  • Page 230 12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-A X0040 X004F X0041 Read the data link status FROM H0004 H0680 K2M401 (SW0080) of the remote device station M401 Remote I/O station data CALL link is proceeding M401 Remote I/O station data link is in error M402 Remote device station data CALL...
  • Page 231 12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-A Communication program with AJ65BT-64AD M9036 Read AJ65BT-64AD remote FROM H0004 H00E2 K4M20 input (RX) (Initial data processing request flag: RX18) Data format specification H0202 D200 (-2048 to 2047) D202 Average processing specification H0001 D205 (CH2 average time) CH2 Average time,...
  • Page 232 12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-A Communication program with the local station M9036 FROM H0004 H00E6 K4M60 Read the remote input (RX) FROM H0004 H02EC D310 Read the remote register (RWr) Control program by the received data from the local station No.4. Program to create the transmission data to the local station No.4.
  • Page 233: Local Station Program

    12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-A 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 PC CPU device, master station's buffer memory, and the local station's buffer memory. M9038 SET Y0000 Refresh command...
  • Page 234: Performing The Data Link

    12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-A 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.
  • Page 235 12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-A (3) LED display of the remote device station Confirm that the LED display shows the following status: 24VDC is supplied. Module is normal. L RUN The data link is proceeding normally. J65BT-64AD L ERR. Sending data.
  • Page 236: Confirming The Operation By The Program

    12 COMMUNICATION IN THE COMPOUND SYSTEM MELSEC-A 12.3.2 Confirming the operation by the program Confirm if the data link can be performed normally using a sequence program. When X00 of the remote I/O station is turned on, Y20 of the master station is turned When X10 of the master station is turned on, Y08 of the remote I/O station is turned The digital value which was converted by the remote device station is stored in D210 (CH1) and D211 (CH2) of the master station and the local station.
  • Page 237: Troubleshooting

    Are terminal resistors connected properly to Connect terminal resistors attached to AJ61BT11 and both end stations? A1SJ61BT11 to both end stations. Has an error occurred at the master station's Verify the error code of PC CPU and perform the PC CPU? corrective action.
  • Page 238 13 TROUBLESHOOTING MELSEC-A 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 The master station's communications status with other stations (SW0080 to SW0083) Is the refresh specification (Yn0) turned on...
  • Page 239 13 TROUBLESHOOTING MELSEC-A Trouble description Details to be checked Confirmation action Unable to communicate from the Is the corresponding local station performing Check the LED indication of the corresponding local master station (remote register RWw) data link? station. to the local station (remote register Check the communication status of the master Does the occupied station count setting of RWr).
  • Page 240: Troubleshooting When The "Err" Led On The Master Station Is Flashing

    13 TROUBLESHOOTING MELSEC-A 13.2 Troubleshooting when the "ERR" LED on the Master Station is Flashing The "ERR" LED on the master station is flashing Are the parameter setting and loading system configuration compatible? Malfunction of the master station Are the master station link special registers SW0080 to SW0083...
  • Page 241 13 TROUBLESHOOTING MELSEC-A From the previous page From the previous page From the previous page Is the "L RUN" LED on? Is the "SD" LED on (flashing)? Is the "SD" LED Is the baud rate on (flashing)? setting correct? Set the baud rate correctly.
  • Page 242: Error Codes

    13 TROUBLESHOOTING MELSEC-A 13.3 Error Codes Table 13.1 lists the error codes that are stored in the link special registers (SW). When the standby master station is operating as the master station, the detectability is identical to that of the master station. When the standby master is operating as a local station, the detectability is identical to that of the local station.
  • Page 243 13 TROUBLESHOOTING MELSEC-A Table 13.1 Error code list (2/6) Error code Detectability Error details Cause of error occurrence (details) Corrective action (hexadecimal) Master station Local station The station types of the module are different from parameter settings. Example) Connected Parameter module setting Loading/parameter...
  • Page 244 13 TROUBLESHOOTING MELSEC-A Table 13.1 Error code list (3/6) Detectability Error code Error details Cause of error occurrence (details) Corrective action (hexadecimal) Master station Local station Retry count setting error The retry count parameter (address 2 Set a value within the range B391 (parameter) was set to a value other than "1 to 7".
  • Page 245 13 TROUBLESHOOTING MELSEC-A Table 13.1 Error code list (4/6) Detectability Error code Error details Cause of error occurrence (details) Corrective action (hexadecimal) Master station Local station The same channel cannot be used simultaneously. Change Transmission channel in use B510 A channel being used was used. the channel number, or try not (host station) to use the same channel...
  • Page 246 13 TROUBLESHOOTING MELSEC-A Table 13.1 Error code list (5/6) Detectability Error code Error details Cause of error occurrence (details) Corrective action (hexadecimal) Master station Local station A non-existing access code/attribute was Set a correct access B801 Access code setting error set.
  • Page 247 BBC7 Module error Module is defective. Replace the module. There is most likely a hardware error in either the AJ61BT11/A1SJ61BT11, the A hardware error was detected. CPU module, the base unit or BD85 Hardware error detection other modules. Contact your nearest Mitsubishi representative.
  • Page 248: Led Display Status

    13 TROUBLESHOOTING MELSEC-A 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"...
  • Page 249: When A Cable Is Shorted

    13 TROUBLESHOOTING MELSEC-A 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. J61BT11 J61BT11 156K 156K 625K 625K ERR. ERR. 2.5M 2.5M S MST S MST LOCAL LOCAL...
  • Page 250: When Power Supply To A Remote I/O Station Is Turned Off

    13 TROUBLESHOOTING MELSEC-A 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 Because data link J61BT11 J61BT11 is disabled at one...
  • Page 251: When The Power Supply To The Local Station (Pc Cpu) Is Turned Off

    13 TROUBLESHOOTING MELSEC-A 13.4.7 When the power supply to the local station (PC CPU) is turned off Data link is continued excluding the local station. The "ERR." LED at the master station flashes. Because data link J61BT11 J61BT11 is disabled at one 156K 156K station (Turnes off...
  • Page 252: When The Transmission Speed Is Set Incorrectly

    13 TROUBLESHOOTING MELSEC-A 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 turn off.
  • Page 253: When Data Link Is Started With The Switch Set Outside The Range

    13 TROUBLESHOOTING MELSEC-A 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.
  • Page 254: When The Remote Device Station Is Not Set By The Parameter (I.e., Is Set As Reserved)

    13 TROUBLESHOOTING MELSEC-A 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. J61BT11 J61BT11 No error...
  • Page 255: Overview (Function Version B Or Later)

    14 OVERVIEW (FUNCTION VERSION B OR LATER) MELSEC-A 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.1 List of available functions with different function versions Function version Function Description...
  • Page 256 14 OVERVIEW (FUNCTION VERSION B OR LATER) MELSEC-A POINT The functions denoted 1 can be used only when the following CPUs are used: A1SHCPU, A1SJHCPU , A2SHCPU : Not limited by software version A2UCPU(S1), A3UCPU, A4UCPU : Software version Q (manufactured in Jul., 1999) or later A2ASCPU(S1) : Software version E (manufactured in Jul., 1999) or later A2USHCPU-S1 : Software version L (manufactured in Jul., 1999) or later...
  • Page 257: Functions (Function Version B Or Later)

    15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-A 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 Availability of functions Reference...
  • Page 258 15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-A Table 15.2 Network parameters Buffer memory address Setting item Description Hex. Dec. Sets the number of remote stations, local stations, intelligent device stations, and waiting master station connected to the master station. Number of connected (Includes reserved stations.) modules...
  • Page 259: Automatic Refresh Parameters

    15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-A Table 15.2 Network parameters (continued) Buffer memory address Setting item Description Hex. Dec. Specifies the size of the buffer memory that is allocated during the transient transmission to local, standby master or intelligent device stations. Default value Send buffer: 40 (64) (word)
  • Page 260: Scan Synchronous Function

    15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-A 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.
  • Page 261: Asynchronous Mode

    15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-A 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. Sequence scan > link scan SM : Sequence scan Send Send Send...
  • Page 262: Standby Master Function

    15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-A 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.
  • Page 263: Settings On Using The Standby Master Function

    15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-A 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 64. 2) Turn on the condition setting switch SW1.
  • Page 264: Special Link Relays/Resisters (Sb,Sw) Relating To The Standby Master Function

    15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-A 15.5.3 Special link relays/resisters (SB,SW) relating to the standby master function The special link relays and special link registers relating to the standby master function are explained. They are stored in the buffer memory. (1) Special link relays (SB) The special link relays (SB) relating to the standby master function are as follows.
  • Page 265: Notes On Using The Standby Master Function

    15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-A 15.5.4 Notes on using the standby master function The following are the notes on using the standby master function. 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.
  • Page 266: Program Example On Using The Standby Master Function

    15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-A 15.5.5 Program example on using the standby master function The following is a program example on using the standby master function. M9036 FROM H5E4 K1M400 K1 Reads the special link relay and FROM H5E7 K1M500...
  • Page 267: Dedicated Instructions

    15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-A 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.
  • Page 268: Remote I/O Net Mode

    Table 15.7 Software Version corresponding to Master Module and Its CPU Master module and CPU type Corresponding software version AJ61BT11, AJ61QBT11, A1SJ61BT11, A1SJ61QBT11 P (manufactured on Sep., 1998) or later A2UCPU (S1), A3UCPU, A4UCPU K (manufactured on Aug., 1998) or later A2ASCPU (S1) A (manufactured on Aug., 1998) or later...
  • Page 269: Link Scan Time

    15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-A 15.7.4 Link scan time When the remote I/O net mode is used, the link scan time (LS) is given by the following expression. LS = BT {25.0 + (NI × 4.0) + (N × 28.0) + (ni × 4.0)} + ST + { Number of communication faulty stations ×...
  • Page 270: Temporary Error Invalid Station Specification Function

    15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-A 15.8 Temporary Error Invalid Station Specification Function Replacement of modules can be performed online without detecting an error of the corresponding remote station. 15.8.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.
  • Page 271 15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-A (2) Special link registers (SW) The link special resisters (SW) relating to the temporary error invalid station specifying function are as follows. The figures in parentheses in the number column indicate buffer memory address. Table 15.9 List of link special resisters relating to temporary error invalid station specifying function Availability : available,...
  • Page 272: Execution Procedure For The Temporary Error Invalid Station Specification Function

    15 FUNCTIONS (FUNCTION VERSION B OR LATER) MELSEC-A 15.8.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.
  • Page 273: Communication With The Intelligent Device (Function Version B Or Later)

    16 COMMUNICATION WITH THE INTELLIGENT DEVICE (FUNCTION VERSION B OR LATER) MELSEC-A 16. Communication with the Intelligent Device (Function Version B or Later) The method of communication between the master station and the intelligent device stations varies from intelligent device station to intelligent device station. Refer to the applicable intelligent device station manual for the communication between the master station and the intelligent device stations.
  • Page 274 16 COMMUNICATION WITH THE INTELLIGENT DEVICE (FUNCTION VERSION B OR LATER) MELSEC-A MEMO 16 - 2...
  • Page 275: Appendix

    APPENDIX MELSEC-A Appendix Appendix 1 External Dimensions Diagram 1.1 AJ61BT11 (0.17) J61BT11 156K ERR. 625K 2. 5M S MST LOCAL CPU R / W M / S TEST TIME LINE L RUN L ERR. STATION NO. MODE 0 : ONLINE (A. R. ) 2 : OFFLINE B RATE 156K...
  • Page 276: A1Sj61Bt11

    APPENDIX MELSEC-A 1.2 A1SJ61BT11 1SJ61BT11 ERR. M / S S MST TIME LOCAL LINE CPU R / W L RUN L ERR. STATION NO. MODE SW OFF M / L S. M ISM SFM B RATE 0 156K 1 625K 2 2.
  • Page 277: Appendix 2 Parameter Setting Sheet

    APPENDIX MELSEC-A Appendix 2 Parameter Setting Sheet Buffer memory Item Setting range Remark Default value Setting value address Number of linked 1 to 64 – modules Number of retries 1 to 7 – Number of automatic 1 to 10 – return modules Standby master station 0 to 64...
  • Page 278 APPENDIX MELSEC-A Buffer memory Item Setting range Remark Default value Setting value address 29th module 011D 30th module 011E 31th module 011F 32th module 0120 33th module 0121 34th module 0122 35th module 0123 36th module 0124 37th module 0125 38th module 0126 39th module...
  • Page 279 APPENDIX MELSEC-A MEMO App - 5...
  • Page 280 6. Failure caused by reasons unpredictable by scientific technology standards at time of shipment from Mitsubishi. 7. Any other failure found not to be the responsibility of Mitsubishi or that admitted not to be so by the user. 2. Onerous repair term after discontinuation of production (1) Mitsubishi shall accept onerous product repairs for seven (7) years after production of the product is discontinued.
  • Page 282 Control & Communication Link System Master/Local Module Type AJ61BT11/A1SJ61BT11 User s Manual A(1S)J61BT11-U-E MODEL MODEL 13J872 CODE IB(NA)-66721-L(0709)MEE HEAD OFFICE : TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN NAGOYA WORKS : 1-14 , YADA-MINAMI 5-CHOME , HIGASHI-KU, NAGOYA , JAPAN When exported from Japan, this manual does not require application to the Ministry of Economy, Trade and Industry for service transaction permission.

This manual is also suitable for:

Aj61bt11A1sj61qbt11Aj61qbt11

Table of Contents