Mitsubishi Electric L26CPU-BT User Manual

Melsec-l cc-link system master/local module
Hide thumbs Also See for L26CPU-BT:
Table of Contents

Advertisement

Quick Links

MELSEC-L CC-Link System Master/Local Module
User's Manual
-L26CPU-BT
-L26CPU-PBT
-LJ61BT11

Advertisement

Table of Contents
loading

Summary of Contents for Mitsubishi Electric L26CPU-BT

  • Page 1 MELSEC-L CC-Link System Master/Local Module User's Manual -L26CPU-BT -L26CPU-PBT -LJ61BT11...
  • Page 3: Safety Precautions

    SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this product, please read this manual and the relevant manuals carefully and pay full attention to safety to handle the product correctly. The precautions given in this manual are concerned with this product only. For the safety precautions of the programmable controller system, refer to the user's manual for the CPU module used.
  • Page 4 [Design Precautions] WARNING ● For the operating status of each station after a communication failure, refer to Page 136, Section 8.2.6 in this manual. Incorrect output or malfunction due to a communication failure may result in an accident. ● When connecting a peripheral with the CPU module or connecting an external device, such as a personal computer, with an intelligent function module to modify data of a running programmable controller, configure an interlock circuit in the program to ensure that the entire system will always operate safely.
  • Page 5 [Security Precautions] WARNING ● To maintain the security (confidentiality, integrity, and availability) of the programmable controller and the system against unauthorized access, denial-of-service (DoS) attacks, computer viruses, and other cyberattacks from external devices via the network, take appropriate measures such as firewalls, virtual private networks (VPNs), and antivirus solutions.
  • Page 6 [Wiring Precautions] CAUTION ● Use applicable solderless terminals and tighten them within the specified torque range. If any spade solderless terminal is used, it may be disconnected when a terminal block screw comes loose, resulting in failure. ● Do not install the control lines or communication cables together with the main circuit lines or power cables.
  • Page 7 [Startup and Maintenance Precautions] CAUTION ● Do not disassemble or modify the modules. Doing so may cause failure, malfunction, injury, or a fire. ● Shut off the external power supply (all phases) used in the system before mounting or removing a module.
  • Page 8: Conditions Of Use For The Product

    Notwithstanding the above restrictions, Mitsubishi Electric may in its sole discretion, authorize use of the PRODUCT in one or more of the Prohibited Applications, provided that the usage of the PRODUCT is limited only for the specific applications agreed to by Mitsubishi Electric and provided further that no special quality assurance or fail-safe, redundant or other safety features which exceed the general specifications of the PRODUCTs are required.
  • Page 9: Introduction

    Thank you for purchasing the Mitsubishi MELSEC-L series programmable controllers. This manual explains the functions and programming required to use the L26CPU-BT/L26CPU-PBT built-in CC-Link system master/local function and the LJ61BT11 CC-Link system master/local module (hereinafter referred to as the L series master/local module).
  • Page 10: Compliance With Emc And Low Voltage Directives

    COMPLIANCE WITH EMC AND LOW VOLTAGE DIRECTIVES (1) Method of ensuring compliance To ensure that Mitsubishi programmable controllers maintain EMC and Low Voltage Directives when incorporated into other machinery or equipment, certain measures may be necessary. Please refer to one of the following manuals.
  • Page 11: Relevant Manuals

    RELEVANT MANUALS (1) CPU module user's manual Manual name Description <manual number (model code)> Specifications of the CPU modules, power supply modules, display MELSEC-L CPU Module User's Manual (Hardware Design, unit, branch module, extension module, SD memory cards, and Maintenance and Inspection) batteries, information on how to establish a system, maintenance and <SH-080890ENG, 13JZ36>...
  • Page 12: Table Of Contents

    CONTENTS CONTENTS SAFETY PRECAUTIONS ............. 1 CONDITIONS OF USE FOR THE PRODUCT .
  • Page 13 6.4.1 T-branch system configuration ..........65 6.4.2 T-branch communication specifications list .
  • Page 14 CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING Dedicated Instructions ............191 9.1.1 Dedicated instruction list, applicable devices, and precautions .
  • Page 15 12.1.4 Creating a program ............291 12.1.5 Performing the data link .
  • Page 16 APPENDICES Appendix 1 Details of the I/O Signals..........387 Appendix 2 Buffer Memory Details.
  • Page 17: Terms

    Buffer memory address function module Built-in CC-Link function The abbreviation for the L26CPU-BT/L26CPU-PBT built-in CC-Link system master/local function A function by which data are periodically exchanged among stations on the same system using link Cyclic transmission devices (RX, RY, RWw, and RWr)
  • Page 18 Term Description Programming tool A generic term for GX Works2 and GX Developer QCPU Another term for the MELSEC-Q series CPU module QnACPU Another term for the MELSEC-QnA series CPU module A station that exchanges I/O signals (bit data) and I/O data (word data) with another station by cyclic Remote device station transmission.
  • Page 19: Packing List

    The LJ61BT11 package contains the following items. Before using the product, check if all of them are in the package. For the packaged items for the L26CPU-BT and L26CPU-PBT, refer to the MELSEC-L CPU Module User's Manual (Hardware Design, Maintenance and Inspection).
  • Page 20: Chapter 1 Features

    CHAPTER 1 FEATURES CC-Link CC-Link is a system where distributed modules, such as I/O modules and intelligent function modules, are connected using dedicated cables, enabling a CPU module to control the modules. Ethernet Plant level (Information management) CC-Link IE Controller Network Among production lines (Production control) CC-Link IE Field Network...
  • Page 21: Overview Of Communication

    CHAPTER 1 FEATURES Overview of Communication The overview of CC-Link communication is described below. (1) Remote I/O station communication The remote I/O station is a remote station that handles bit data only. The ON/OFF information of a switch or indicator lamp is sent or received using the remote input RX and remote output RY (refer to Page 110, Section 8.1.1).
  • Page 22 (3) Local station communication The local station is a station having a programmable controller CPU and the ability to communicate with the master and other local stations. Communication between a master station and a local station uses two types of transmission methods: cyclic transmission and transient transmission (refer to Page 118, Section 8.1.3).
  • Page 23 CHAPTER 1 FEATURES (4) Intelligent device station communication The intelligent device station is a station that can handle bit and word data. Communication between a master station and an intelligent device station uses two types of transmission methods: cyclic transmission and transient transmission (refer to Page 124, Section 8.1.4).
  • Page 24: Chapter 2 Part Names

    PART NAMES The following describes the parts names of the L series master/local modules. (1) L26CPU-BT, L26CPU-PBT For parts other than those for the built-in CC-Link functions, refer to the following manual. MELSEC-L CPU Module User's Manual (Hardware Design, Maintenance and Inspection)
  • Page 25 CHAPTER 2 PART NAMES Number Name Description The data link status can be checked with each ON/OFF status. LED name Description On : Operating normally Off : Hardware error or watchdog timer error L RUN On: Data link is being executed On: Operating as a master station.
  • Page 26 Number Name Description Terminal block A CC-Link dedicated Ver.1.10 compatible cable is connected for data linking. For the connection method, refer to Page 62, Section 6.3. Terminals SLD and FG are connected inside the module. Since a 2-piece type terminal block is used, the module can be replaced without disconnecting the signal lines to the terminal block.
  • Page 27: Chapter 3 Specifications

    CHAPTER 3 SPECIFICATIONS CHAPTER 3 SPECIFICATIONS This chapter provides the specifications of the L series master/local modules. General Specifications For the general specifications of the L series master/local modules, refer to the following manual. "Safety Guidelines", the manual supplied with the CPU module or head module...
  • Page 28: Performance Specifications

    Performance Specifications The following shows the performance specifications of the L series master/local module. Specification Item Built-in CC-Link function LJ61BT11 Transmission speed Can be selected from 156 kbps/ 625 kbps/ 2.5 Mbps/ 5 Mbps/ 10 Mbps Maximum overall cable distance Varies according to the transmission speed (Refer to Page 30, Section 3.2.2) (Maximum transmission distance)
  • Page 29 CHAPTER 3 SPECIFICATIONS (1) Number of link points in remote net ver.2 mode or remote net additional mode (a) Maximum number of link points per system Item Number of link points Remote I/O (RX/RY) 8192 points 2048 points (master station  remote device station/local station/ intelligent device station/standby master Remote register (RWw) station) 2048 points (remote device station/local station/ intelligent device station/standby master station ...
  • Page 30: Maximum Number Of Connected Stations

    3.2.1 Maximum number of connected stations A CC-Link system can be configured with the number of modules meeting the following conditions. (1) Remote net ver.1 mode A total of 64 device stations can be connected to a single master station. However, the following conditions must all be satisfied.
  • Page 31 CHAPTER 3 SPECIFICATIONS (2) Remote net ver.2 mode, remote net additional mode A total of 64 device stations can be connected to a single master station. However, the following conditions must all be satisfied. a: The total number of ver.1 compatible device stations that {(a + a2 + a4 + a8) occupy 1 station, and ver.2 compatible device + (b + b2 + b4 + b8) ...
  • Page 32: Maximum Overall Cable Distance

    3.2.2 Maximum overall cable distance The relation of the transmission speed and maximum overcall cable distance when configuring the entire system with products compatible with CC-Link Ver.1.10 or higher and Ver.1.10 compatible CC-Link dedicated cables is shown below. For the identification of the CC-Link Version, refer to the installation manual issued by the CC-Link Partner Association. Version 1.10 compatible CC-Link dedicated cable (terminating resistor of 110...
  • Page 33: Ver.1.10 Compatible Cc-Link Dedicated Cable

    CHAPTER 3 SPECIFICATIONS 3.2.3 Ver.1.10 compatible CC-Link dedicated cable Use Ver.1.10 compatible CC-Link dedicated cables for the CC-Link system. If a cable other than the Ver.1.10 compatible CC-Link dedicated cable is used, the performance of the CC-Link system cannot be guaranteed. For the specifications of the Ver.1.10 compatible CC-Link dedicated cables or any other inquiries, visit the following website: Website of CC-Link Partner Association: www.cc-link.org...
  • Page 34: Function List

    Function List The following shows the function list of the L series master/local module. (1) List of the "basic functions" Item Description Reference Page 110, Section Communication with remote I/O stations Performs on/off data communication with remote I/O stations. 8.1.1 Communication with remote device Performs on/off data and numeric data communication with remote Page 113, Section...
  • Page 35 CHAPTER 3 SPECIFICATIONS (3) List of the "handy functions" Item Description Reference Programs for the initial setting become unnecessary, since the initial Remote device station initialization Page 165, settings in the remote device station are set at the network parameter. The procedure registration function Section 8.3.1 initial settings in the remote device station can be configured easily.
  • Page 36 (4) List of the "functions for transient transmission" Item Description Reference Page 191, Transient transmission Specifies a target and communicates with it at any timing when required. Section 9.1...
  • Page 37: Mode Selection

    CHAPTER 3 SPECIFICATIONS Mode Selection There are two different CC-Link versions: Ver.1 and Ver.2, and the L series master/local modules are Ver.2-compatible modules. The L series master/local modules have four types of modes for various systems. (1) Overview of the modes CC-Link Connectable station Mode...
  • Page 38 (2) Mode selection flowchart The following flowchart explains the points of mode selection. Mode selection Creating a system consisting of Create a system remote I/O stations only consisting of remote I/O stations only? Including remote device stations and intelligent device stations Creating the system with Ver.1 Are the remote compatible device stations only...
  • Page 39: Expanded Cyclic Setting

    CHAPTER 3 SPECIFICATIONS 3.4.1 Expanded cyclic setting When increasing the number of link points, select the remote net ver.2 mode or the remote net additional mode. (1) Remote net ver.2 mode This mode is designed to configure a new system. The number of link points can be increased as indicated below.
  • Page 40 (2) Remote net additional mode This mode is designed for use when device stations including a ver.2 compatible station is added to the existing ver.1 system. The program of the existing system can be used as is. Local station Remote device station Remote device station additional mode Remote I/O station...
  • Page 41 CHAPTER 3 SPECIFICATIONS (3) Mode combination (a) Whether system can be configured or not The following tables indicate whether cyclic transmission can be made or not in each station. Device station A1SJ61BT11 L series master/local module, QJ61BT11N, Q81BD-J61BT11, Q80BD-J61BT11N A1SJ61QBT11 Standby Master station Local...
  • Page 42 A link is performed as shown in the following areas. Local station Standby master station Local station Local station additional mode additional mode Ver. 1 mode Ver. 2 mode Master station (Station number 1: (Station number 2: (Station number 3: (Station number 7: Occupies 1 station) Occupies 1 station)
  • Page 43 CHAPTER 3 SPECIFICATIONS (b) Whether send/receive is enabled or not • Cyclic transmission The following table indicates whether send/receive of cyclic data is enabled or not. Receive station L series master/local module, QJ61BT11N Master station Send station Ver. 2 mode Additional mode Ver.1 mode Ver.2...
  • Page 44 Receive station L series master/local module, QJ61BT11N Local station Send station Ver. 2 mode Additional mode Ver.1 mode Ver.2 Ver.1 Ver.2 Ver.1 Ver.2 Ver.1 compatible compatible compatible compatible compatible compatible area area area area area area Ver.2 compatible   ...
  • Page 45 CHAPTER 3 SPECIFICATIONS Receive station Remote I/O Intelligent device station Remote device station Send station station Ver.2 Ver.1 Ver.2 Ver.1 Ver.1 compatible compatible compatible compatible compatible Ver.2 compatible      area Ver.2 mode Ver.1 compatible   ...
  • Page 46 • Transient transmission The following table indicates whether send/receive of transient data is enabled or not. Receive station Intelligent device Master station Local station Send station station Ver.2 Additional Ver.1 Ver.2 Additional Ver.1 Ver.2 Ver.1 mode mode mode mode mode mode mode mode...
  • Page 47: I/O Signal List

    CHAPTER 3 SPECIFICATIONS I/O Signal List The following describes the I/O signal list of the L series master/local module. The "n" in the table indicates the master/local module's first I/O number of the L series, which is determined by both the installation position and the module installed before the L series master/local module.
  • Page 48 When the master/local module's first I/O number of the L series is X/Y30 Xn0 to X(n+1)F  X30 to X4F Yn0 to Y(n+1)F  Y30 to Y4F Signal direction: Signal direction: Programmable controller CPU  L series master/local module Programmable controller CPU  L series master/local module Availability Availability Input...
  • Page 49: Buffer Memory List

    CHAPTER 3 SPECIFICATIONS Buffer Memory List The buffer memory is used for data exchange between the L series master/local module and a programmable controller CPU. Data can be read or written by parameter settings in GX Works2 or with dedicated instructions. The contents of the buffer memory return to the default when the power is turned OFF or the programmable controller CPU is reset.
  • Page 50 Address Availability Read/write Item Description Reference Master Local possibility Hexadecimal Decimal station station For the master station: Stores the send data to the remote   device/all local /intelligent Write only device/standby master stations. Remote register For the local station: Stores the (RWw) send data to the Master station: For...
  • Page 51 CHAPTER 3 SPECIFICATIONS Address Availability Read/write Item Description Reference Master Local possibility Hexadecimal Decimal station station 3000 12288        Use prohibited 3FFF 16383 For the master station: Stores the   input status from the device 4000 16384 Ver.2 compatible...
  • Page 52: Chapter 4 Procedure Before Operation

    CHAPTER 4 PROCEDURE BEFORE OPERATION This chapter explains the procedure before operation. The following describes the procedure before operation. Start Mount the master module, local module and standby master module at any configuration. Mount the remote modules on the control panel and machine.
  • Page 53 CHAPTER 4 PROCEDURE BEFORE OPERATION Continued from the previous figure When setting When setting parameters parameters with GX Works2 with dedicated instruction Create a program in which the G(P). Set the parameters with GX Works2. RLPASET instruction is used. (1) When remote net ver.1 mode is used (2) When remote net ver.2 mode is used (3) When remote net additional mode is used (4) When remote I/O net mode is used...
  • Page 54: Chapter 5 System Configuration

    CHAPTER 5 SYSTEM CONFIGURATION This chapter explains the system configuration of the L series master/local module and the number of connectable modules. System Configuration 5.1.1 System configuration of the L series master/local modules (1) When using the built-in CC-Link function Power supply module CPU module END cover...
  • Page 55: System Configuration On Cc-Link

    CHAPTER 5 SYSTEM CONFIGURATION 5.1.2 System configuration on CC-Link The following shows a system configuration. Master station Remote I/O station Device manufactured by one Remote device station of our partner manufacturers Local station Remote I/O station Intelligent device station...
  • Page 56: Applicable System

    Applicable System Applicable programmable controller CPUs and precautions on the system configuration are described below. 5.2.1 Applicable modules and number of connectable modules (1) Modules applicable to the LJ61BT11, and number of connectable modules Refer to the following manual. MELSEC-L CPU Module User's Manual (Hardware Design, Maintenance and Inspection) MELSEC-L CC-Link IE Field Network Head Module User's Manual (2) Compatible software package Refer to the following manual.
  • Page 57: Precautions On The System Configuration

    CHAPTER 5 SYSTEM CONFIGURATION 5.2.3 Precautions on the system configuration (1) When using the remote station This section describes notes to be paid attention upon system design to prevent an incorrect input from a remote station. (a) When powering on or off Start the data link after turning on the power of the remote station.
  • Page 58 • Countermeasure for incorrect input To the power supply module, the stabilized power supply and the external supply power of AC input, connect power cables from the same power source. Programmable controller CPU Remote station For DC input Module power supply Input external- supply power Stabilized...
  • Page 59 CHAPTER 5 SYSTEM CONFIGURATION (3) Access to station No.64 (a) To a local station of No. 64, other station access from GX Works2 or GOT is not allowed. If the station No. is changed to any of 0 to 63, other station access is executable. (b) From the CC-Link board, other station access is not allowed to access a local station or intelligent device station whose station No.
  • Page 60: Chapter 6 Installation And Connection

    CHAPTER 6 INSTALLATION AND CONNECTION This chapter describes the installation and connection of the L series master/local modules. Module Installation Environment and Position Refer to the following manual. MELSEC-L CPU Module User's Manual (Hardware Design, Maintenance and Inspection) MELSEC-L CC-Link IE Field Network Head Module User's Manual 6.1.1 Handling precautions (1) Before installing or removing the module, shut off the external power supply...
  • Page 61 CHAPTER 6 INSTALLATION AND CONNECTION (7) Prevent foreign matter such as dust or wire chips from entering the module. Such foreign matter can cause a fire, failure, or malfunction. (8) A protective film is attached to prevent foreign matter, such as wire chips, from entering the module during wiring.
  • Page 62: Hardware Test

    Hardware Test The hardware test checks whether or not each module works properly by itself. Always perform this hardware test before configuring the system. Be sure to execute the hardware test in the following status. ● Perform this hardware test by itself and without connecting any CC-Link Ver.1.10 compatible cable. If the hardware test is performed with the cable connected, it may result in an abnormal termination.
  • Page 63 CHAPTER 6 INSTALLATION AND CONNECTION Continued from the previous figure Reset the programmable controller CPU, or power it OFF and then ON. "MST" LED is flashing (test in progress) Flashing The test result is shown by the "LEDs" of the L series master/local module. [When normal] The "MST"...
  • Page 64: Connecting Modules With Ver.1.10 Compatible Cc-Link Dedicated Cables

    Connecting Modules with Ver.1.10 Compatible CC-Link Dedicated Cables This section explains how to connect the master module, local modules, standby master module, remote modules and intelligent device modules with the Ver.1.10 compatible CC-Link dedicated cables. (1) Cables can be connected in any order, regardless of station numbers. (2) Connect the shielded wire of the Ver.1.10 compatible CC-Link dedicated cable to "SLD"...
  • Page 65 CHAPTER 6 INSTALLATION AND CONNECTION (8) The connection method is shown below.
  • Page 66: Wiring Check

    6.3.1 Wiring check The following explains how to check the wiring status between the remote I/O and external devices. [Example of wiring check] Specify the "Remote Input(RX)" for the master station to "X1000" and the "Remote Output(RY)" to "Y1000" in GX Works2.
  • Page 67: T-Branch Connection

    CHAPTER 6 INSTALLATION AND CONNECTION T-Branch Connection 6.4.1 T-branch system configuration The following shows a system configuration using T-branch connection. T-branch terminal block/connector (Main line) Local station/ Remote I/O station/ Master Remote I/O station/ intelligent remote device station station remote device station device station (Branch line) (Branch line)
  • Page 68: T-Branch Communication Specifications List

    6.4.2 T-branch communication specifications list The following describes the communication specifications for T-branch connection. For communication specifications not listed below, refer to Page 26, Section 3.2. Item Specification Remarks Transmission speed 625kbps 156kbps 10 M/5 M/2.5 Mbps are not allowed. Indicates the length of the cable between Maximum length of terminating resistors.
  • Page 69: Loop Test

    CHAPTER 6 INSTALLATION AND CONNECTION Loop Test Confirm that the master station and device stations are correctly connected with the Ver.1.10 compatible CC-Link dedicated cables and that data linking can be performed. Loop test 1 checks the status of communication between the master station and all device stations connected to the master station.
  • Page 70: Loop Test 1

    6.5.1 Loop test 1 Loop test 1 checks the connection status and the status of communication with device stations. Perform the loop test 1 according to the following procedure. Start Check the following befor executing loop test 1: The programmable controller CPU switch is set to "STOP".
  • Page 71 CHAPTER 6 INSTALLATION AND CONNECTION Continued from the previous figure Reset the programmable controller CPU, or power it OFF and then ON. The test result is shown by the "LEDs" of the master module. [When test is complete] The "L RUN" LED lights up and the "MST"...
  • Page 72: Loop Test 2

    6.5.2 Loop test 2 Loop test 2 checks whether data linking can be performed normally with a specified device station. Perform the loop test 2 according to the following procedure. Start Check the following befor executing loop test 2: The programmable controller CPU switch is set to "STOP".
  • Page 73 CHAPTER 6 INSTALLATION AND CONNECTION Continued from the previous figure The test result is shown by the "LEDs" of the master module. [At normal completion of test] The "L RUN" LED lights up. [At abnormal completion of test] The "MST" LED lights up and the "ERR."...
  • Page 74: Chapter 7 Parameter Settings

    CHAPTER 7 PARAMETER SETTINGS For CC-Link, set parameters both for a master station and a device station. For a master station, set the information about a device station to be connected to a CC-Link system. For a device station, set the station number of the device station. For how to set the parameters of a device station, refer to the manual for the device station used.
  • Page 75 CHAPTER 7 PARAMETER SETTINGS ● If network parameters are set for modules on a system with both GX Works2 and the G(P).RLPASET instruction, the number of module(s) whose network parameters are set with the G(P).RLPASET instruction should not be included in the "Number of Modules"...
  • Page 76: Parameter Setting List

    Parameter Setting List This section lists the parameter setting items for the L series master/local module and whether the settings are required for each station. : The setting is available. : The setting is required if necessary. : The setting is not available. Necessity of the setting Local station, Item...
  • Page 77 CHAPTER 7 PARAMETER SETTINGS Necessity of the setting Local station, Item Remark Master standby station master station PLC Down Select    Scan Mode Setting     Delay Time Setting The settings are not required when "Remote I/O Net Mode"...
  • Page 78: Parameter Settings For A Master Station

    Parameter Settings for a Master Station This chapter describes the parameter settings when the L series master/local module is used as a master station. 7.3.1 Setting method Open the "Network Parameter" window on a programming tool. Project window [Parameter] [Network Parameter] [CC-Link] Check the checkbox next to "Set the station information in the CC-Link configuration window"...
  • Page 79: Setting Details

    CHAPTER 7 PARAMETER SETTINGS 7.3.2 Setting details Item Description Setting range Select the number of the L series master/local modules that are set using a programming tool. Varies depending on a CPU module. (Refer to Number of Modules Do not include the number of the L series master/local Page 72, Section 7.1) modules that are set using the dedicated instruction (Default: Blank)
  • Page 80 Item Description Setting range Select "Master Station". To configure the system that switches the control to the standby master station if the master station goes down, set as follows. Operation Setting When a failed master station becomes normal again, it does Master Station •...
  • Page 81 CHAPTER 7 PARAMETER SETTINGS Item Description Setting range Set the start device where data in RX, RY, RWr, and • Device RWw are transferred. By setting these items, data in X, M, L, B, D, W, R, ZR (X and W for a head RX, RY, RWr, and RWw can be automatically module) Remote Input(RX)
  • Page 82 Item Description Setting range Ver.2 Remote Input(RX) When "Remote Net(Additional Mode)" is set in Same as "Remote Input(RX)" "Mode", set the start device where data in RX, RY, Ver.2 Remote Same as "Remote Output(RY)" RWr, and RWw (Ver.2-compatible area) of the L series Output(RY) master/local module are transferred.
  • Page 83 CHAPTER 7 PARAMETER SETTINGS Item Description Setting range Whether to synchronize the link scan with the sequence scan of a CPU module or not can be selected. (Refer to Page 182, Section 8.3.7.) • Asynchronous A link scan does not synchronize with a sequence •...
  • Page 84 (1) Operation Setting Project window [Parameter] [Network Parameter] [CC-Link] [Operation Setting] button Item Description Setting range Set the parameter name. (Even if the parameter name 8 characters Parameter Name is not set, this will not affect the operation of the CC- (Default: Blank) Link system).
  • Page 85 CHAPTER 7 PARAMETER SETTINGS (2) Station Information Setting (a) When the checkbox next to "Set the station information in the CC-Link configuration window" is checked There are two ways to set the parameters. • Set the parameters by automatically detecting the system configuration; and •...
  • Page 86 The following items are automatically reflected to the CC-Link Configuration window: • Station No. • Station Type • Version • # of STA Occupied Stations • Expanded Cyclic Setting When device stations are used as local stations, the stations are displayed as intelligent device stations. Change the station type if necessary.
  • Page 87 CHAPTER 7 PARAMETER SETTINGS [Select modules in "Module List" and drag and drop them to "List of stations"] 1. Open the CC-Link configuration window. Project window [Parameter] [Network Parameter] [CC-Link] [CC-Link Configuration Setting] button 2. Select modules in "Module List" and drag and drop them to "List of stations". Device stations are added to "List of stations".
  • Page 88 Item Description Setting range Select the CC-Link version of the device station. Select the mode of the L series master/local module if the device station is an Varies depending on the module L series master/local module. (Refer to Page 35, Section 3.4.) Version that was set.
  • Page 89 CHAPTER 7 PARAMETER SETTINGS Item Description Setting range The list of device stations is displayed. Information about device stations can  be set to the master station by dragging and dropping the items from "Module List". Select The list of CC-Link modules is displayed. Select modules from "General CC- CC-Link Link Module"...
  • Page 90 (b) When the checkbox next to "Set the station information in the CC-Link configuration window" is not checked 1. Set "Mode" and "Total Module Connected" in the "Network Parameter" window and open "CC-Link Station Information" window. Project window [Parameter] [Network Parameter] [CC-Link] [Station Information] button 2.
  • Page 91 CHAPTER 7 PARAMETER SETTINGS Item Description Setting range The number of points of remote I/O (RX, RY) occupied by the device station is displayed. The number of points can be changed for the Ver. 1 remote I/O station when "Remote Net(Ver.2 Mode)" is set in "Mode Setting". Changing the number of points can save the areas of a refresh device in a CPU module.
  • Page 92 (3) Remote Device Station Initial Setting Register the initial settings using a programming tool, and reflect them to a remote device station using Remote device station initialization procedure registration instruction (SB000D). Project window [Parameter] [Network Parameter] [CC-Link] [Initial Setting] button In "Target Station No.", set the station number of the remote device station where the initial settings are configured.
  • Page 93 CHAPTER 7 PARAMETER SETTINGS Item Description Setting range   Set the condition to execute the initial settings. • RX Condition Select the device to execute the initial settings. • SB Device (Default: Blank) Set the device number of the device set in "Condition Device". Set a device with a device number of 0 as the first device of each station.
  • Page 94 5. When the initial settings are completed, write the settings to the CPU module using a programming tool. [Online] [Write to PLC] 6. The settings are reflected by resetting the CPU module or powering off and on the system. 7. Turn on Remote device station initialization procedure registration instruction (SB000D) and start the initial settings.
  • Page 95 CHAPTER 7 PARAMETER SETTINGS (4) Interrupt Settings Project window [Parameter] [Network Parameter] [CC-Link] [Interrupt Settings] button 1. In the "Interrupt Settings" window, set the conditions on which the L series master/local module issues the interrupt to a CPU module. 2. Click the [End] button and close the setting window. Item Description Setting range...
  • Page 96 (Setting range) If the interrupt condition is established upon completion of a link scan, the interrupt is issued. If "Scan Completed" is set in "Device Code", the interrupt is issued without condition upon completion of a link scan. Channel Device Word Device Interrupt Device No.
  • Page 97 CHAPTER 7 PARAMETER SETTINGS Item Description Setting range Interrupt Pointer Set the start number (I) of the interrupt pointer. 50 to 255 (Default: Blank) Start No. PLC Side Interrupt Pointer Set the number of the interrupt conditions set in the "Interrupt 1 to 16 (Default: Blank) Count Settings"...
  • Page 98 (a) Precautions [When interrupt conditions are always established with "Level Detect" being set to "Detection Method"] The interrupt process is performed for each link scan; therefore, if the sequence scan time is much longer than the link scan time, a watchdog timer error may occur in the CPU module due to the prolonged sequence scan. To avoid this, check the conditions using a program and do not use the interrupt settings.
  • Page 99 CHAPTER 7 PARAMETER SETTINGS [When multiple interrupts occur simultaneously] The operation may delay. [Executing an interrupt program at rise or fall of the specified device] Do not execute an interrupt program by using the rise (using the PLS instruction) or fall (using the PLF instruction) of the specified device because the device change may not be recognized.
  • Page 100: Parameter Settings For A Local Station And Standby Master Station

    Parameter Settings for a Local Station and Standby Master Station This section describes the parameter settings when the L series master/local module is used as a local station or standby master station. 7.4.1 Setting method Open the "Network Parameter" window in a programming tool. Project window [Parameter] [Network Parameter]...
  • Page 101: Setting Details

    CHAPTER 7 PARAMETER SETTINGS 7.4.2 Setting details Item Description Setting range Varies depending on a CPU module. (Refer to Select the number of the L series master/local modules. Number of Do not include the number of the L series master/local modules Page 72, Section 7.1.) Modules that are set using the dedicated instruction (G(P).RLPASET).
  • Page 102 Item Description Setting range Master Station The setting is not required when the L series master/local module  Data Link Type is used as a local station or standby master station. • Remote Net(Ver.1 Mode) • Remote Net(Ver.2 Mode) Set the mode for the L series master/local module. (Refer to •...
  • Page 103 CHAPTER 7 PARAMETER SETTINGS Item Description Setting range Set the start device where data in RX, RY, RWr, and RWw are • Device transferred. By setting these items, data in RX, RY, RWr, and X, M, L, B, D, W, R, ZR (X and W for a head RWw can be automatically transferred to a device in a CPU module) Remote Input...
  • Page 104 Item Description Setting range • Device M, L, B, D, W, R, SB, ZR (W and SB for a head module only) Special Relay • Device number (SB) Within the device range of the CPU module or head module Set the start device where SB and SW are transferred. By setting (Default: Blank) these items, SB and SW can be automatically transferred to a •...
  • Page 105 CHAPTER 7 PARAMETER SETTINGS (1) Operation setting Project window [Parameter] [Network Parameter] [CC-Link] [Operation Setting] button Item Description Setting range Set the parameter name. (Even if the parameter name is not set, 8 characters Parameter Name this will not affect the operation of the CC-Link system). (Default: Blank) Select whether to clear or hold data input from a data link faulty •...
  • Page 106 (2) Interrupt Settings Project window [Parameter] [Network Parameter] [CC-Link] [Interrupt Settings] button In the "Interrupt Settings" window, set the conditions on which the L series master/local module issues the interrupt to a CPU module. Click the [End] button and close the setting window. Item Description Setting range...
  • Page 107 CHAPTER 7 PARAMETER SETTINGS (Setting range) If the interrupt condition is established upon completion of a link scan, the interrupt is issued. If "Scan Completed" is set in "Device Code", the interrupt is issued without condition upon completion of a link scan.
  • Page 108 Item Description Setting range Interrupt Pointer Set the start number (I) of the interrupt pointer. 50 to 255 (Default: Blank) Start No. PLC Side Interrupt Pointer Set the number of the interrupt conditions set in the 1 to 16 (Default: Blank) Count "Interrupt Settings"...
  • Page 109: Precautions On The Parameter Setting

    CHAPTER 7 PARAMETER SETTINGS Precautions on the Parameter Setting (1) Station number setting The following explains how to set the station numbers for the master station and device stations. Specify the station numbers according to the following conditions. • Set the station numbers not used for other stations. If a station number already in use is set, an error occurs. •...
  • Page 110 (2) Transmission speed setting For using the module as a local station or standby master station, the transmission speed can be set to "Auto- tracking". In that case, no transmission speed setting error will occur because the local station or standby master station tracks the transmission speed of the master station automatically.
  • Page 111 CHAPTER 7 PARAMETER SETTINGS (4) Precautions on the mode between the master/local station and the standby master station In any of the following cases, an error (error code: B3A0 ) will occur at a local or standby master station. If an error has occurred, correct the that for the master, local, or standby master station, and reset the CPU module.
  • Page 112: Chapter 8 Functions

    CHAPTER 8 FUNCTIONS This chapter explains the functions of the L series master/local module, dividing them into three sections: "Basic Functions", "Functions for Improving System Reliability" and "Handy Functions". Basic Functions This section explains the basic functions of the L series master/local module. 8.1.1 Communication with remote I/O stations The following is an overview of the communication between the master station and a remote I/O station using the...
  • Page 113 CHAPTER 8 FUNCTIONS [Data link startup] When the programmable controller system is powered on, the network parameters in the programmable controller CPU are transferred to the master station, and the CC-Link system automatically starts up. [Remote input] The input status of a remote I/O station is stored automatically (for each link scan) in the master station's "remote input RX"...
  • Page 114 WARNING ● When setting the automatic refresh parameters, it is recommended to specify "Y" as the remote output RY refresh device. If any device other than "Y" (e.g. M or L) is specified, parameter setting must be made to compulsorily clear the device status at a CPU STOP. If parameter setting is not made, the device status before a STOP is retained as is.
  • Page 115: Communication With Remote Device Stations

    CHAPTER 8 FUNCTIONS 8.1.2 Communication with remote device stations This section explains an overview of the communication between the master and remote device stations. In the communication with remote device stations, the signals for handshaking with remote device stations (initial data request flag, error reset request flag, etc.) are communicated using remote input RX and remote output RX.
  • Page 116 [Data link startup] When the programmable controller system is powered on, the network parameters in the programmable controller CPU are transferred to the master station, and the CC-Link system automatically starts up. [Remote input] The remote input RX of a remote device station is stored automatically (for each link scan) in the master station's "remote input RX"...
  • Page 117 CHAPTER 8 FUNCTIONS [Remote output] The on/off data of the CPU device set with the automatic refresh parameters is stored in the "remote output RY" buffer memory. Remote output RY is automatically set to on/off (for each link scan) according to the output status stored in the "remote output RY"...
  • Page 118 [Writing to the remote register RWw] The transmission data of the CPU device set with the automatic refresh parameters is stored in the "remote register RWw" buffer memory. The data stored in the "remote register RWw" buffer memory is automatically sent to the remote register RWw of each remote device station.
  • Page 119 CHAPTER 8 FUNCTIONS [Reading from the remote register (RWr)] The remote register RWr data of a remote device station is automatically stored in the "remote register Rwr" buffer memory of the master station. The remote register RWr data of a remote device station stored in the "remote register RWr" buffer memory is stored in the CPU device set with the automatic refresh parameters.
  • Page 120: Communication With Local Stations

    8.1.3 Communication with local stations This section explains an overview of the communication between the master and local stations. (1) Communication between the master and local stations by cyclic transmission Data communication between programmable controller CPUs can be performed in N:N mode using remote input RX and remote output RY (bit data used in local station systems) as well as remote register RWw and remote register RWr (word data for writing and reading used in local station systems).
  • Page 121 CHAPTER 8 FUNCTIONS [Data link startup] When the programmable controller system is powered on, the network parameters in the programmable controller CPU are transferred to the master station and the CC-Link system starts up automatically. [On/off data from a local station to the master station or other local stations] The on/off data of the CPU device set with the automatic refresh parameters is stored in the "remote output RY"...
  • Page 122 [On/off data from the master station to local stations] The on/off data of the CPU device set with the automatic refresh parameters is stored in the "remote output RY" buffer memory of the master station. The data in the "remote output RY" buffer memory is stored automatically (for each link scan) in the "remote input RX"...
  • Page 123 CHAPTER 8 FUNCTIONS [Word data from the master station to all local stations] The word data of the CPU device set with the automatic refresh parameters is stored in the "remote register RWw" buffer memory of the master station. The remote register RWw is used as word data for writing in local station systems. The data in the buffer memory "remote register RWw"...
  • Page 124 [Word data from a local station to the master and other local stations] Word data set with the automatic refresh parameters is stored in the "remote register RWw" buffer memory of the local station. However, the data is stored only in the area corresponding to its own station number. The data in the "remote register RWw"...
  • Page 125 CHAPTER 8 FUNCTIONS (2) Communication between the master and local stations by transient transmission Transient transmission is one of the transmission methods, and by which data are sent or received at any timing on a one-to-one basis (1:1) by specifying the target. [Writing data to the buffer memory in a local station using the G(P).RIWT instruction] Data to be written to the buffer memory in a local station is stored in the send buffer in the master module.
  • Page 126: Communication With Intelligent Device Stations

    8.1.4 Communication with intelligent device stations This section explains an overview of the communication between the master and intelligent device stations. (1) Communication between the master station and intelligent device stations by cyclic transmission Handshaking signals with intelligent device stations (positioning complete, positioning start. etc.) are sent or received using remote input RX and remote output RX.
  • Page 127 CHAPTER 8 FUNCTIONS [Data link startup] When the programmable controller system is powered on, the network parameters in the programmable controller CPU are transferred to the master station, and the CC-Link system automatically starts up. [Remote input] The remote input RX of an intelligent device station is stored automatically (for each link scan) in the master station's "remote input RX"...
  • Page 128 [Remote output] The on/off data of the CPU device set with the automatic refresh parameters is stored in the "remote output RY" buffer memory. Remote output RY of the intelligent device station is automatically set to on/off (for each link scan) according to the output status stored in the "remote output RY"...
  • Page 129 CHAPTER 8 FUNCTIONS [Writing to the remote register (RWw)] The transmission data of the CPU device set with the automatic refresh parameters is stored in the "remote register RWw" buffer memory. The data stored in the "remote register RWw" buffer memory is automatically sent to the remote register RWw of the intelligent device station.
  • Page 130 [Reading from the remote register (RWr)] The remote register RWr data of the intelligent device station is automatically stored in the "remote register Rwr" buffer memory of the master station. The remote register RWr data of the intelligent device station stored in the "remote register RWr" buffer memory is stored in the CPU device set with the automatic refresh parameters.
  • Page 131 CHAPTER 8 FUNCTIONS (2) Communication between the master and intelligent device stations by transient transmission Transient transmission is one of the transmission methods, and by which data are sent or received at any timing on a one-to-one basis (1:1) by specifying the target. [Writing data to the buffer memory in the intelligent device station using the G(P).RIWT instruction] Data to be written to the buffer memory in an intelligent device station is stored in the send buffer in the master module.
  • Page 132: Functions For Improving System Reliability

    Functions for Improving System Reliability This section explains the functions for improving the reliability of the CC-Link system. 8.2.1 Device station cut-off function This function disconnects a device station that has gone down due to a cause such as power off, and continues the data link among only normal device stations (no setting is required).
  • Page 133: Automatic Return Function

    CHAPTER 8 FUNCTIONS 8.2.2 Automatic return function This function allows a device station that has been disconnected from the data link due to a cause such as power off to be automatically reconnected to the data link when it returns to the normal status. [Setting method] Set a value for "Automatic Reconnection Station Count"...
  • Page 134: Data Link Status Setting In Case Of Master Station Programmable Controller Cpu Failure

    8.2.3 Data link status setting in case of master station programmable controller CPU failure This function sets the data link status (stop/continue) in case that an "error that stops the operation" occurs in the master station programmable controller CPU when the system does not have a standby master station. When it is set to "continue", the data link among local stations can be continued.
  • Page 135: Setting The Status Of Input Data From A Data Link Faulty Station

    CHAPTER 8 FUNCTIONS 8.2.4 Setting the status of input data from a data link faulty station This function sets whether to clear or retain the input data (remote input (RX)) from data link faulty stations. For the status of each station at error occurrence, refer to Page 136, Section 8.2.6.
  • Page 136: Device Station Refresh/Compulsory Clear Setting In Case Of Programmable Controller Cpu

    8.2.5 Device station refresh/compulsory clear setting in case of programmable controller CPU STOP This function forcibly clears the output data (remote output RY) to device stations when the programmable controller CPU comes to STOP. Remote output RY refresh device setting in the automatic refresh parameter dialog box provides the following choices. •...
  • Page 137 CHAPTER 8 FUNCTIONS ● Selecting the compulsory clear option disables compulsory output to device stations at CPU STOP using GX Works2. ● This setting is also valid when the TO instruction is used for RY refresh. (2) Setting method Set a mode in "Operation Setting" - "Case of CPU STOP Setting" in the network parameter setting of GX Works2. (Refer to Page 82, Section 7.3.2 (1) and Page 103, Section 7.4.2 (1).)
  • Page 138: Station Status At Error Occurrence

    8.2.6 Station status at error occurrence This section explains the status of each station that is set in network parameter's "PLC Down Select" and "Operation Setting" in case of error occurrence. (Refer to Page 132, Section 8.2.3, Page 133, Section 8.2.4 and Page 134, Section 8.2.5.) (1) Status of the master station, standby master station (acting as a master station) and remote I/O station at error occurrence...
  • Page 139 CHAPTER 8 FUNCTIONS Master station, standby master station (acting as a Remote I/O station master station) Data link status Remote Remote Remote Remote output register register Input Output input (RX) (RY) (RWw) (RWr) Clears the receive area from the local Clear station with a Retains the...
  • Page 140 (2) Status of the remote device station, local station, standby master station (acting as a local station) and intelligent device station at error occurrence The following shows the status of the remote device station, local station, standby master station (acting as a local station) and intelligent device station at error occurrence.
  • Page 141 CHAPTER 8 FUNCTIONS Remote device station, intelligent Local station, standby master station device station (acting as a local station) Data link status Remote Remote Remote Remote Remote Remote Remote Remote input output register register input register register output (RY) (RX) (RY) (RWw) (RWr)
  • Page 142: Standby Master Function

    8.2.7 Standby master function This function enables the data link to continue working by switching the control to the standby master station (meaning a backup station for the master station) if a system down occurs in the master station due to a malfunction in the programmable controller CPU or power supply.
  • Page 143 CHAPTER 8 FUNCTIONS (2) Operation of the standby master function The following are the operations of the master station and standby master station of when the master station goes down. The following figures show the operation until a failed master station goes back to normal after the standby master station starts to operate as a master station and data link is continued.
  • Page 144 Continued from the previous figure An error has occurred in the standby master station. → Data link is controlled by the master station. Master station Station number 1 Intelligent device station Standby master station Remote device station Controlling Station number 4 Station number 2 Occupies 1 station Occupies 2 stations...
  • Page 145 CHAPTER 8 FUNCTIONS (3) Overview of link data transmission when the standby master function is used The following shows an overview of link data transmission when the standby master function is used. (a) When the master station controls the data link •...
  • Page 146 (b) Master station down  Standby master station data link control If the master station goes down, the standby master station takes over the control of data link as the master station. • Standby master station output Outputs (RY/RWw) of the master station are stored in inputs (RX/RWr) of the standby master station. By transferring the inputs (RX/RWr) of the standby master station to the outputs (RY/RWw), outputs to the device stations are continued (shaded areas in the figure above).
  • Page 147 CHAPTER 8 FUNCTIONS (c) When the master station returns to system operation and the standby master station is controlling the data link • Standby master station output Outputs (RY/RWw) from the standby master station are stored in inputs (RX/RWr) of the master station (shaded areas in the figure below).
  • Page 148 (d) Standby master station down  Master station data link control If the standby master station goes down, the master station takes over the control of data link. • Master station output Outputs (RY/RWw) of the standby master station are stored in inputs (RX/RWr) of the master station. By transferring the inputs (RX/RWr) of the master station to the outputs (RY/RWw), outputs to the device stations are continued (shaded areas in the figure above).
  • Page 149 CHAPTER 8 FUNCTIONS (4) Setting method Perform the setting using GX Works2. (a) Setting the master station Configure the settings in "Type" and "Standby Master Station No." of the network parameter as follows. For other settings, refer to Page 77, Section 7.3.2 Open the "Network Parameter"...
  • Page 150 (b) Setting the standby master station Configure the settings in "Type" and "Mode" of the network parameter as follows. For other settings, refer to Page 99, Section 7.4.2 Open the "Network Parameter" window to configure the setting in "Type" as follows Operation When the master When a failed master...
  • Page 151 CHAPTER 8 FUNCTIONS (5) Precautions (a) The number of standby master stations One standby master station can be connected in one system. (b) Right of controlling data link of a standby master station When a master station goes down, the right of controlling data link is automatically transferred to a standby master station.
  • Page 152 (i) Processing that sets the link devices saved at master switching and refresh instruction at standby master switching After saving the link devices, wait a fixed number of scans and execute the processing that sets the link devices saved at master switching and Refresh instruction at standby master switching (SB0001). Number of scans for waiting after saving the link devices differs depending on the mode setting.
  • Page 153 CHAPTER 8 FUNCTIONS (7) On/off timings of link special relays (SB) relating to the standby master function The following shows the on/off timings of the link special relays (SB) relating to the standby master function. SB0070 (Master station information) SB007B (Host master/standby master operation status) SB005A (Master switching request acknowledgement)
  • Page 154 (8) Program example when the standby master function (master station duplex function) is used A program example is created under the following conditions when the standby master function (master station duplex function) is used. (a) System configuration Standby master station Intelligent device station Station number 1 Remote device station...
  • Page 155 CHAPTER 8 FUNCTIONS (d) Program example when standby master function (master station duplex function) is used • Control start relay used when master station is operating: M10 • Control start relay used when standby master station is operating: M11...
  • Page 156 Control start relay when the master station is operating Initial device Control start relay when the standby master station is operating Set scan waiting completion to OFF (scan waiting incomplete) after saving the link devices at master switching. Clear the number of scans after saving the link devices at master switching.
  • Page 157 CHAPTER 8 FUNCTIONS (e) When forcibly switching the data link control right from the standby master station to the master station The areas enclosed by the broken and dotted lines in the program example shown in (d) must be modified as shown below.
  • Page 158: Data Link Start By Standby Master Station

    8.2.8 Data link start by standby master station This function allows data link to start by turning on either of the master or standby master station. When the standby master station is turned on, even if no power is applied to the master station, data link will start. To enable this function, the same parameters and programs must be set to the master and standby master stations.
  • Page 159 CHAPTER 8 FUNCTIONS Continued from the previous figure Error occurred in standby master station Master station controls data link. Master station Station number 1 Standby master station Intelligent device station Controlling Remote device station Station number 4: Occupies 1 station Station number 2: Occupies 2 stations Cyclic communication Cyclic communication...
  • Page 160 (1) Setting method The following shows how to make settings. (a) Set station No.0 for the master station, and any of station 1 to 64 for the standby master station. (b) Configure the same system (the same programmable controller CPU, I/O modules, and/or intelligent function modules) for the master and standby master stations.
  • Page 161: Block Guarantee Of Cyclic Data Per Station

    CHAPTER 8 FUNCTIONS 8.2.9 Block guarantee of cyclic data per station This function allows guaranteeing the consistency of the cyclic data for each device station according to the parameter setting. To ensure the consistency of data exceeding two words, use this function. When this function is not used, cyclic data may be separated into new data and old data in 2-word (32-bit) units, depending on the auto refresh timing.
  • Page 162 The following example shows the range in which data of remote register RWw are guaranteed when this function is set in the remote net Ver.2 mode. Programmable Remote station Master station controller CPU Station number 1 Remote register Device RWw0 Automatic refresh 4 stations occupied...
  • Page 163 CHAPTER 8 FUNCTIONS (1) Setting method The following describes the setting method. (a) Click the Operation Setting button in the network parameter setting in GX Works2. (b) The [Operation Setting] window is displayed. Check the [Block Data Assurance per Station] checkbox. (c) Make the auto refresh settings for each remote device.
  • Page 164 (2) Precautions when using the block guarantee of cyclic data per station (a) When using this function, be sure to make the auto refresh settings. If the auto refresh settings have not been made for all devices, remote input (RX), remote output (RY) and remote registers (RWr/RWw) in the buffer memory may not be refreshed.
  • Page 165 CHAPTER 8 FUNCTIONS (b) When this function is used, the transmission delay time increases (compared with when this function is not used). When designing a new system by using an existing system as it is, confirm the delay time of the data from the remote station before starting the system.
  • Page 166: Secured 32-Bit Data

    8.2.10 Secured 32-bit data When the following conditions, 1) and 2) are satisfied in the CC-Link network, 32-bit data in remote registers (RWr/RWw) between a programmable controller CPU and a master/local station can be secured. 1) Access starts from a remote resister (RWr/RWw) address of an "even number". Programmable Programmable Master station...
  • Page 167: Handy Functions

    CHAPTER 8 FUNCTIONS Handy Functions This section explains some handy functions of the L series master/local module. 8.3.1 Remote device station initialization procedure registration function The initial settings of remote device stations can be performed using GX Works2 for registration to the programmable controller CPU.
  • Page 168 (a) In "Target Station No.", set the station number of the module for which the initial settings are to be performed. Setting range: 1 to 64 (b) Set the initial setting procedure in "Regist Procedure". Input format Set the data input format for "Write Data" in details of execution. DEC.
  • Page 169 CHAPTER 8 FUNCTIONS Executional condition settings "Execute Condition" Set the conditions under which initial settings are performed. Setting range: ON Details of execution "Write Device" Set the device to which the contents of the initial setting are written. Setting range: RY Details of execution "Device No."...
  • Page 170 (3) Method for initializing only a specified station (specification of remote device station to be initialized) When a running remote device station is replaced due to a failure, initial processing that has been done for all stations conventionally can be performed for the replaced remote device station by specifying it. Remote device stations other than the specified station continue their operations.
  • Page 171 CHAPTER 8 FUNCTIONS (4) Enable initial settings Before creating a program for communication with remote device stations, create a program to enable the initial settings using SB000D (remote device station initialization procedure registration instruction) and SB005F (completion status of remote device station initialization procedure execution). For details, refer to Page 255, Section 11.1.3, Page 267, Section 11.2.3 and Page 280, Section 11.3.3.
  • Page 172 (5) Preparation for communication with remote device stations Register the network parameters and the created program in the programmable controller CPU. Reset the programmable controller CPU or power it off and then on. Instruct the master station to register the remote device station initialization procedure (SB000D). (This instruction may not be necessary in some cases such as when the remote input RX is set as a startup condition.) ●...
  • Page 173 CHAPTER 8 FUNCTIONS (6) Link special relays and registers (SB/SW) relating to remote device station initialization procedure registration The following shows the list of the link special relays and registers relating to the remote device station initialization procedure registration. For more details, refer to Page 409, Appendix 3.
  • Page 174: Event Issuance For The Interrupt Program

    8.3.2 Event issuance for the interrupt program This function issues events (signals to execute an interrupt program) according to factors such as the on/off status of specified RX, RY and SB devices and the match/mismatch status of specified RWr and SW device data, in order to allow the programmable controller CPU to execute the interrupt program.
  • Page 175 CHAPTER 8 FUNCTIONS Interrupt condition Set the conditions under which events are issued. When RX, SB or RY is selected ON/OFF Setting range: When RWr or SW is selected Equal/Unequal Word device setting value Set the conditions under which events are issued when RWr or SW is selected. 0 to 65535 (Decimal) Setting range: 0 to FFFF (Hexadecimal)
  • Page 176 "Start SI No." on the intelligent module side Set the smallest number for intelligent function module interrupt pointers specified in "Interrupt (SI) No." of the "Interrupt Setting" in the network parameter setting. Setting range: 0 to 15 (3) Precautions (a) When interrupt conditions are always established with "Level Detect" being set to "Detection Method"...
  • Page 177 CHAPTER 8 FUNCTIONS (c) When multiple interrupts occur simultaneously The operation may delay. (d) Executing the interrupt program at rise or fall of the specified device Do not execute the interrupt program by using the rise (using the PLS instruction) or fall (using the PLF instruction) of the specified device because the device change may not be recognized.
  • Page 178: Automatic Cc-Link Startup

    8.3.3 Automatic CC-Link startup When in a system configuration including not only remote I/O stations but also remote device stations and intelligent device stations, the CC-Link startup and data refresh are performed only by powering up the system and without creating a program for it.
  • Page 179 CHAPTER 8 FUNCTIONS (c) Default operation setting Item Description Data Link Faulty Station Setting Clear the input data. Case of CPU STOP Setting Refresh. Block Data Assurance per Station Disable the setting. (d) Buffer memory size specification for intelligent device station 64 words Send buffer 64 words...
  • Page 180: Reserved Station Function

    8.3.4 Reserved station function This function prevents device stations that are not actually connected (but to be connected in the future) from being treated as "data link faulty stations" by the master station and local stations. When the master station is placed in the remote net ver.2 mode, points for reserved stations can be set to 0. Use GX Works2 to set 0 points for reserved stations.
  • Page 181: Error Invalid Station Setting Function

    CHAPTER 8 FUNCTIONS 8.3.5 Error invalid station setting function This function prevents device stations that are powered off in the system configuration from being treated as "data link faulty stations" by the master station and local stations, using the network parameter settings. Note that if a station is set as an error invalid station, problems occurring in that station can no longer be detected.
  • Page 182: Temporary Error Invalid Station Setting Function

    8.3.6 Temporary error invalid station setting function This function allows the replacement of modules while online, without error detection. Also, this function prevents device stations, which are turned off in the system configuration, from being treated as "data link faulty stations" temporarily. (1) Setting method Set the [Diagnostics] [CC-Link Diagnostics] using GX Works2.
  • Page 183 CHAPTER 8 FUNCTIONS (2) Precautions (a) Precautions when temporary error invalid station setting is executed • Do not write to buffer memory addresses 5E0 , and 603 to 607 • Do not execute at one time by programs and other peripherals. If executed at one time, temporary error invalid station setting may not operate normally.
  • Page 184: Scan Synchronous Function

    8.3.7 Scan synchronous function This function selects whether to synchronize or not the link scan with the sequence scan. (1) Synchronous mode Performs data linking using the scan that is synchronized with the program. (The sequence scan and link scan start at the same time.) In the synchronous mode, the link scan interval becomes longer when the sequence scan takes long because the link scan is synchronized with the sequence scan.
  • Page 185 CHAPTER 8 FUNCTIONS (4) Data flows in synchronous and asynchronous modes The data flows in both the synchronous and asynchronous modes are explained using examples of communications between the master station and remote I/O stations. Even if latched device (listed in "CPU side device" in the table below) data are cleared to 0 by a program at reset of the CPU module or at power off and on, the latched data may be output depending on the timing of link scan and link refresh.
  • Page 186 (b) Data flow in the synchronous mode • Sequence scan  Link scan Programmable controller CPU (Sequence scan) Master station buffer memory (Remote input RX) Link scan Response time of the first station Response time of the corresponding station Response time of the final station Responses from remote I/O stations Input 1)
  • Page 187 CHAPTER 8 FUNCTIONS • Sequence scan < Link scan Programmable controller CPU (Sequence scan) Master station buffer memory (Remote input RX) Link scan Response time of the first station Response time of the corresponding station Response time of the final station Responses from remote I/O stations Input 1)
  • Page 188: Data Link Stop/Restart

    8.3.8 Data link stop/restart This function stops and restarts local data links. If the data link is stopped, programs can be efficiently debugged, since other stations data are not received and host station data are not sent. If the data link of the master station is stopped, the data link of the entire system stops. (1) Setting method Set the [Diagnostics] [CC-Link Diagnostics] using GX Works2.
  • Page 189 CHAPTER 8 FUNCTIONS (2) Precautions (a) Precautions when executing data link stop/restart • Do not write to buffer memory address 5E0 • Do not execute at one time by programs and other peripherals. If executing at one time, data link stop/restart may not operate normally. (b) If executing "Stop Data Link"...
  • Page 190: Remote I/O Station Points Setting

    8.3.9 Remote I/O station points setting The points of each remote I/O station can be set to 8, 16 or 32 points. This saves the refresh device points of the programmable controller CPU and link refresh time. The remote I/O station points setting can be used in the remote net ver. 2 mode only. For parameter setting, use GX Works2.
  • Page 191 CHAPTER 8 FUNCTIONS [Setting method] Use GX Works2 to set "Station Information Setting" - "Remote Station Points" in the network parameter setting. (Refer Page 83, Section 7.3.2 (2).) (1) Precautions for setting the remote I/O station points The number of parameter-set remote I/O station points should be equal to or greater than the number of I/O points of the mounted remote I/O stations.
  • Page 192: Master Station Duplication Error Cancel Function

    8.3.10 Master station duplication error cancel function This function cancels a master station duplication error without turning the power supply off to on, or without resetting the programmable controller CPU, if a master station duplication error is detected. (1) Removing the cause of error occurrence Before performing the master station duplication error cancel function, remove the cause of error occurrence of the master station duplication error.
  • Page 193: Chapter 9 Dedicated Instructions And Programming

    CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING The following explains precautions on dedicated instructions and programming. Dedicated Instructions Using dedicated instructions, the L series master/local module is capable of the transient transmission to local stations and intelligent device stations.
  • Page 194 Execute the dedicated instructions while the data link is being performed. If any of the dedicated instructions is executed offline, no error will occur, but the execution of the dedicated instruction will not be completed. (2) Available devices The following devices are available for the dedicated instructions: Internal devices File register Constant...
  • Page 195: G(P).Rird

    CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING 9.1.2 G(P).RIRD The G(P).RIRD instruction reads the specified points of data from the buffer memory or the programmable controller CPU device of the specified station. Usable devices Link direct Intelligent Internal device device Constant File function module Index register...
  • Page 196 Control data Device Item Set data Setting range Set by Stores the status when the instruction is complete. (S) + 0 Completion status 0: No error (normal completion)  System Other than 0: Error code Specify the station numbers of the master station, local station (S) + 1 Station number 0 to 64...
  • Page 197 CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING (1) Buffer memory in the CC-Link Attribute Buffer Memory contents Access code code Buffer in the intelligent device station Random access buffer Remote input Remote output Buffers in master station and local station Remote register Link special relay Link special register (2) Device memory in the programmable controller CPU...
  • Page 198 (3) Functions (a) Operation chart for the G(P).RIRD instruction Master station Specified station Programmable controller CPU Master module Local module Programmable controller CPU Command G(P).RIRD Buffer memory Device memory Device memory Receive buffer Accesses the buffer memory specified by (S)+2 and (S)+3 of the station specified by (S)+1, or the programmable controller CPU device.
  • Page 199 CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING (c) There are two types of interlock signals for the G(P).RIRD instruction: the completion device (D2) and status display device at completion (D2) + 1. • Completion device Turns ON in the END processing of the scan where the G(P).RIRD instruction is completed, and turns OFF in the next END processing.
  • Page 200 (5) Program example When X0 is turned ON, 10-word data are stored from the area starting D1000 in a local station (station No.1), which is connected to the master module in the I/O No. position of X/Y40 to X/Y5F, into the area starting from D0. (When the link special register (SW) refresh device is set to SW0000) M12 is the RIRD instruction executing flag.
  • Page 201: G(P).Riwt

    CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING 9.1.3 G(P).RIWT The G(P).RIWT instruction writes the specified points of data, to the buffer memory or the programmable controller CPU device of the specified station. Usable devices Link direct Intelligent Internal device device Constant File function module Index register...
  • Page 202 Control data Device Item Set data Setting range Set by Stores the status when the instruction is complete.  (S1) + 0 Completion status 0: No error (normal completion) System Other than 0: Error code Specify the station numbers of the master station, local station (S1) + 1 Station number 0 to 64...
  • Page 203 CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING (1) Buffer memory in the CC-Link Attribute Buffer Memory contents Access code code Buffer in the intelligent device station Random access buffer Remote input Remote output Buffers in master station and local station Remote register Link special relay Link special register (2) Device memory in the programmable controller CPU...
  • Page 204 (3) Functions (a) Operation chart for the G(P).RIWT instruction Master station Specified station Programmable controller CPU Master module Local module Programmable controller CPU Command Send buffer Buffer memory Device memory Device memory Stores the data to be written to the specified station in the send buffer of the master module. Writes the data specified by (S2) to the buffer memory specified by (S1)+2 and (S1)+3 of the station specified by (S1)+1 or to the programmable controller CPU device.
  • Page 205 CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING (c) There are two types of interlock signals for the G(P).RIWT instruction: the completion device (D) and the status display device at completion (D) + 1. 1) Completion device Turns ON in the END processing of the scan where the G(P).RIWT instruction is completed, and turns OFF in the next END processing.
  • Page 206 (5) Program example When X0 is turned ON, 10-word data are written from the area starting D0 in a local station (station No.1), which is connected to the master module in the I/O No. position of X/Y40 to X/Y5F, into the area starting from D1000. (When the link special register (SW) refresh device is set to SW0000) M13 is the G(P).RIWT instruction executing flag.
  • Page 207: G(P).Rircv

    CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING 9.1.4 G(P).RIRCV The G(P).RIRCV instruction automatically performs handshaking with an intelligent device station and reads data from the buffer memory of the specified intelligent device station. Available for modules that have signals for the handshake (e.g. AJ65BT-R2N). Usable devices Link direct Intelligent...
  • Page 208 Control data Setting Device Item Set data Set by range Stores the status when the instruction is complete. (S1) + 0 Completion status 0: No error (normal completion)  System Other than 0: Error code (S1) + 1 Station number Specify the station number of the intelligent device station.
  • Page 209 CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING (1) Functions (a) Operation chart for the G(P).RIRCV instruction Master station Specified station Programmable controller CPU Master module Intelligent device station Command G(P).RIRCV Buffer memory Receive buffer Device memory 1) Instructs the master module to read data from the buffer memory specified in (S1)+2 and (S1)+3 of the station specified in (S1)+1.
  • Page 210 (c) There are two types of interlock signals for the G(P).RIRCV instruction: the completion device (D2) and the status display device at completion (D2)+1. • Completion device Turns ON in the END processing of the scan where the G(P).RIRCV instruction is completed, and turns OFF in the next END processing.
  • Page 211 CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING (2) Operation error In the following cases, an operation error occurs; the error flag (SM0) turns ON and the error code is stored in SD0. Error code Description of operation error When the module specified by Un is not an intelligent function module. 2112 When the module specified by Un is not a special function module.
  • Page 212: G(P).Risend

    9.1.5 G(P).RISEND The G(P).RISEND instruction automatically performs handshaking with an intelligent device station and writes data to the buffer memory of the specified intelligent device station. Available for modules that have signals for the handshake (e.g. AJ65BT-R2N). Usable devices Link direct Intelligent Internal device device...
  • Page 213 CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING Control data Setting Device Item Set data Set by range Stores the status when the instruction is complete.  (S1) + 0 Completion status 0: No error (normal completion) System Other than 0: Error code (S1) + 1 Station number Specify the station number of the intelligent device station.
  • Page 214 (1) Functions (a) Operation chart for the G(P).RISEND instruction Master station Specified station Programmable controller CPU Master module Intelligent device station Executes Command request G(P).RISEND processing Buffer memory Send buffer Device memory 1) Instructs the master module to write data to the buffer memory specified in (S1)+2 and (S1)+3 of the station specified in (S1)+1.
  • Page 215 CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING (c) There are two types of interlock signals for the G(P).RISEND instruction: the completion device (D) and the status display device at completion (D)+1. • Completion device Turns ON in the END processing of the scan where the G(P).RISEND instruction is completed, and turns OFF in the next END processing.
  • Page 216 (2) Operation error In the following cases, operation error occurs; the error flag (SM0) turns ON and the error code is stored in SD0. Error code Description of operation error When the module specified by Un is not an intelligent function module. 2112 When the module specified by Un is not a special function module.
  • Page 217: G(P).Rifr

    CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING 9.1.6 G(P).RIFR The G(P).RIFR instruction reads the data from the automatic update buffer of the specified station. Available for modules that have the automatic update buffer (e.g. AJ65BT-R2N). Usable devices Link direct Intelligent Internal device device Constant File...
  • Page 218 (1) Functions (a) Operation chart for the G(P).RIFR instruction Master station Specified station Programmable controller CPU Master module Intelligent device station Command Communication Buffer memory G(P).RIFR commences when conditions are met Automatic update buffer memory Automatic Device memory update buffer 1) Accesses the automatic update buffer specified by n1 and n2 of the master module specified by Un.
  • Page 219 CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING (2) Operation error In the following cases, operation error occurs; the error flag (SM0) turns ON and the error code is stored in SD0. Error code Description of operation error When the module specified by Un is not an intelligent function module. 2112 When the module specified by Un is not a special function module.
  • Page 220: G(P).Rito

    9.1.7 G(P).RITO The G(P).RITO instruction writes data to the automatic update buffer of the specified station. Available for modules that have the automatic update buffer (e.g. AJ65BT-R2N). Usable devices Link direct Intelligent Internal device device Constant File function module Index register data (System, user) Other...
  • Page 221 CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING (1) Functions (a) Operation chart for the G(P).RITO instruction Master station Specified station Programmable controller CPU Master module Intelligent device station Command Communication Buffer memory commences G(P).RITO when conditions are met Automatic update buffer memory Automatic Device memory update buffer...
  • Page 222 (2) Operation error In the following cases, operation error occurs; the error flag (SM0) turns ON and the error code is stored in SD0. Error code Description of operation error When the module specified by Un is not an intelligent function module. 2112 When the module specified by Un is not a special function module.
  • Page 223: G(P).Rlpaset

    CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING 9.1.8 G(P).RLPASET The G(P).RLPASET instruction sets network parameters to the master station and starts the data link. Usable devices Link direct Intelligent Internal device device Constant File function module Index register data (System, user) Other J\...
  • Page 224 Control data Setting range Device Item Set data Set by Stores the status when the instruction is complete.  (S1) + 0 Completion status 0: No error (normal completion) System Other than 0: Error code Specifies whether the individual setting data from (S2) to (S5) is valid or invalid.
  • Page 225 CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING Device station setting data Setting Device Item Set data Set by range The type of device station, number of occupied device stations and station number are set as follows. b12 b11 b8 b7  Station number Number of occupied device stations Type of device station...
  • Page 226 Reserved station specification data Setting Device Item Set data Set by range Specify reserved stations. 0: Not specified 1: Specified (S3) + 0 Setting for 1 to 64 (S3)+0   User modules (S3)+1 (S3) + 3 (S3)+2 (S3)+3 1 to 64 in the table indicate station numbers. Default parameter setting is "0: Not specified"...
  • Page 227 CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING Send, receive and automatic refresh buffer assignment data Device Item Set data Setting range Set by Specify assignments of buffer memory size at transient transmission to local stations and intelligent device stations. Send/receive buffer (S5)+0 Send buffer size (no setting),...
  • Page 228 (1) Functions (a) Operation chart for the G(P).RLPASET instruction. Programmable controller CPU Master module Command G(P).RLPASET Network parameter Device memory Execution result 3) Data link start Pass the network parameters set in (S1) to (S5) to the master module specified by Un. The master module analyzes the settings of the network parameters.
  • Page 229 CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING (d) After executing the G(P).RLPASET instruction, turn on SB0003 (refresh instruction) to refresh cyclic data. [When all the stations are normal] processing processing processing processing processing processing processing Program Refresh start Refresh stop Data link stop Data link start G(P).RLPASET instruction...
  • Page 230 (2) Operation error In the following cased, an operation error occurs; the error flag (SM0) turns ON and the error code is stored in SD0. Error code Description of operation error When the module specified by Un is not an intelligent function module. 2112 When the module specified by Un is not a special function module.
  • Page 231 CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING (3) Example of Parameter setting/Program This program sets the network parameters for the master module mounted at the I/O numbers X/Y00 to X/Y1F and starts the data link. Master station Station number 1 (X/Y90 to X/YAF) Local station (occupies 1 station) Station number 2...
  • Page 232 Description Setting range Set the transmission speed. • 156kbps: 0000 • 625kbps: 0001 0000 to 0004 Switch 1 • 2.5Mbps: 0002 • 5Mbps: 0003 • 10Mbps: 0004 Set 0000 Fixed to 0000 Switch 2 Set the mode of the L series master/local module. (Mode) •...
  • Page 233 CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING (b) Program example Parameter setting Instruct to set parameters G(P).RLPASET instruction Control data Clear complete status. All setting data: Valid Number of connected modules involved in communication: 3 Number of retries: 3 times Number of automatic return modules: 1 module Operation specification when CPU is down: stop...
  • Page 234 Processing at completion of the G(P).RLPASET instruction Turn the parameter setting instruction off. Instruct to refresh at normal completion of the G(P).RLPASET instruction. Instruct to start the control program at normal completion of the G(P).RLPASET instruction. Performs abnormal completion processing Parameter setting change Parameter change instruction Instruct to stop data link...
  • Page 235 CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING Parameter registration (data link startup) Dedicated instruction (G(P).RLPASET) Processing at completion of the G(P).RLPASET instruction Turn the parameter setting instruction off. Instruct to refresh at normal completion of the G(P).RLPASET instruction. Instruct to start the control program at normal completion of the G(P).RLPASET instruction.
  • Page 236 (4) Precautions when using the G(P).RLPASET instruction to set the network parameters (a) The remote I/O net mode cannot be used. The module operates in remote net mode. (b) If it is necessary to change the network parameters while the programmable controller CPU is running and the data link is being performed, the data link should be stopped once using SB0002 (data link stop).
  • Page 237 CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING (j) In order to change the parameter setting method, turn the power supply to the programmable controller system off and back on, or reset the programmable controller CPU. The following table shows how the programmable controller CPU operates when changing the parameter setting method without turning the power supply to the programmable controller system off and back on, or resetting the programmable controller CPU.
  • Page 238: G(P).Rdmsg

    9.1.9 G(P).RDMSG This instruction reads/writes parameters from/to the remote device station and reads the status of the remote device station. Available for communication with a remote device station that supports the message transmission function (e.g. NZ2AW1C2AL) Usable devices Link direct Intelligent Internal device device...
  • Page 239 CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING Control data Setting Device Item Set data Set by range Stores the status when the instruction is complete.  (S1) + 0 Completion status 0: No error (normal completion) System Other than 0: Error code (S1) + 1 Station number Specifies the station number of the remote device station.
  • Page 240 (2) Receivable data size and receive data size Set a receivable data size ((S1)+3) so that it will satisfy the following conditional expression: Receivable data size ((S1)+3)  Receive data size ((S1)+4) Programmable controller CPU Master station Remote device station Size Device Received...
  • Page 241 CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING (3) Functions (a) Operation chart of the G(P).RDMSG instruction Master station Target station Remote device station Programmable controller CPU Master station Command G(P).RDMSG Send data Request Device memory Received data Response The send data (S2) in the size specified in (S1)+2 are stored into the master station. The send data are sent to the station specified in (S1)+1.
  • Page 242 (c) There are two types of interlock signals for the G(P).RDMSG instruction: Completion device (D2) and Status display device at completion (D2)+1. • Completion device Turns on in the END process of the scan where the G(P).RDMSG instruction is completed, and turns off in the next END process.
  • Page 243: Precautions On Programming

    CHAPTER 9 DEDICATED INSTRUCTIONS AND PROGRAMMING Precautions on Programming The following explains precautions on the creation of a program: Create a program that allows the detection of data-link status and interlocking with the device stations. In addition, create an error-handling program. [Program example] Set the "Special Relay(SB)"...
  • Page 244: Chapter 10 Example Of Communication Between The Master Station And Remote I/O Stations

    CHAPTER 10 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE I/O STATIONS This chapter explains the procedures from module settings to parameter settings, programming, and finally operation check using a system configuration example. 10.1 When Remote I/O Net Mode is Used The remote I/O net mode is used.
  • Page 245 CHAPTER 10 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE I/O STATIONS (1) Setting the remote I/O stations Settings of the remote I/O station switches are shown below: Station number setting switch 10 place 1 place Station Module AJ65SBTB1-16D AJ65SBTB1-16T AJ65SBTB1-16DT Transmission speed setting switch...
  • Page 246: Parameter Setting

    10.1.2 Parameter setting (1) Setting the network parameters and automatic refresh parameters of the master station Set the network parameters and automatic refresh parameters as follows. For the operation setting, refer to Page 245, Section 10.1.2 (2). Refer to Section 10.1.2 (2). Do not set the same refresh devices as the following.
  • Page 247 CHAPTER 10 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE I/O STATIONS (2) Operation setting Set the operation settings as follows.
  • Page 248: Creating A Program

    10.1.3 Creating a program This section shows the program used to control the remote I/O stations. The following diagram shows the relationship between the devices of the programmable controller CPU and the inputs/outputs of remote I/O stations. The shaded areas indicate the devices that are actually used. Programmable controller CPU Remote I/O station (station number 1) AJ65SBTB1-16D...
  • Page 249: Performing The Data Link

    CHAPTER 10 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE I/O STATIONS 10.1.4 Performing the data link Turn on the remote I/O stations first, and then the master station to start the data link. (1) Confirming the operation with the LED indicators The following diagram shows the LED status of the master station and the remote I/O station when the data link is being performed normally.
  • Page 250 (2) Confirming the operation with the program Using the program, confirm that the data link is being performed normally. 1) For example, when X00 of the remote I/O station AJ65SBTB1-16D (station number 1) is turned on, Y40 (LY10R2) of the master station turns on. 2) When X21 (LX40C6) of the master station is turned on, Y08 of the remote I/O station AJ65SBTB1-16DT (station number 3) turns on.
  • Page 251: Chapter 11 Example Of Communication Between The Master Station And Remote Device Stations

    CHAPTER 11 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE DEVICE STATIONS CHAPTER 11 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE DEVICE STATIONS This chapter explains the procedures from module settings to parameter settings, programming, and finally operation check using a system configuration example.
  • Page 252 (1) Setting the remote device station Settings of the remote device station switches are shown below: For more detailed information about the settings, refer to the User's Manual for the remote device station. Station number setting switch, Transmission speed setting switch Station number 1...
  • Page 253: Parameter Setting

    CHAPTER 11 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE DEVICE STATIONS 11.1.2 Parameter setting (1) Setting the network parameters and automatic refresh parameters of the master station Set the network parameters and automatic refresh parameters as follows. Refer to Page 252, Section 11.1.2 (2) for the operation setting.
  • Page 254 (2) Operation setting Set the operation settings as follows. (3) Station information setting Set parameters as follows.
  • Page 255 CHAPTER 11 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE DEVICE STATIONS (4) Remote device station initial setting (a) Setting the target station number Set the target station for which the initial setting is performed. Setting the target station number Set the target station No.
  • Page 256 Set parameters as follows. The initial settings registered by using GX Works2 can be reflected to the remote device station by writing the settings to the CPU module and turning on the remote device station initialization procedure registration instruction (SB000D). (Refer to Page 169, Section 8.3.1 (4))
  • Page 257: Creating A Program

    CHAPTER 11 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE DEVICE STATIONS 11.1.3 Creating a program This section shows a program used to control remote device stations. The following diagrams show the relationships of the remote input/output and remote registers between the programmable controller CPU devices and the remote device station.
  • Page 258 [Remote registers (RWw and RWr)] Programmable controller CPU Remote device station (station number 1) AJ65VBTCU-68ADVN For write RWw0 (A/D conversion enable/prohibit specification) W100 RWw1 (CH.1 to CH.4 input range setting) W101 W102 RWw2 (CH.5 to CH.8 input range setting) W103 RWw3 (Average processing specification) RWw4 (CH.1 average time, number of times setting) W104...
  • Page 259 CHAPTER 11 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE DEVICE STATIONS Checking of AJ65VBTCU-68ADVN status AJ65VBTCU-68ADVN data link normal AJ65VBTCU-68ADVN data link abnormal Initialization procedure registration Turns off initialization procedure registration directive. Turns on initialization procedure registration directive. Changing of initial settings A/D conversion enable/ Initial setting change...
  • Page 260: Performing The Data Link

    11.1.4 Performing the data link Turn on the remote device station first, and then the master station to start the data link. (1) Confirming the operation with the LED indicators The following diagram shows the LED status of the master station and the remote device station when the data link is being performed normally.
  • Page 261 CHAPTER 11 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE DEVICE STATIONS (2) Confirming the operation with the program Using the program, confirm that the data link is being performed normally. 1) Change the voltage input to the AJ65VBTCU-68ADVN and confirm that the converted digital value also changes accordingly.
  • Page 262: When Remote Net Ver.2 Mode Is Used

    11.2 When Remote Net Ver.2 Mode is Used 11.2.1 Configuring a system As shown below, a system where one ver.1 compatible remote device station and one ver.2 compatible remote device station are connected is used as an example.
  • Page 263 CHAPTER 11 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE DEVICE STATIONS (1) Setting the remote device station Settings of the remote device station switches are shown below: For more detailed information about the settings, refer to the User's Manual for the remote device station. Setting of AJ65VBTCU-68ADVN Station number setting switch, Transmission speed setting...
  • Page 264 Setting of AJ65VBTCU-68DAVN Setting of AJ65VBTCU-68DAVN J65VBTCU-68DAVN POWER L RUN DOWN L ERR Station number setting switch, Transmission speed setting switch TEST Station number 4 OFFSET GAIN 156kbps MODE Mode select switch 3 (Ver.2 Mode Normal mode)
  • Page 265: Parameter Setting

    CHAPTER 11 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE DEVICE STATIONS 11.2.2 Parameter setting (1) Setting the network parameters and automatic refresh parameters of the master station Set the network parameters and automatic refresh parameters as follows. Refer to Page 264, Section 11.2.2 (2) for the operation setting.
  • Page 266 (2) Operation setting Set the operation setting as follows. (3) Station information setting Set parameters as follows.
  • Page 267 CHAPTER 11 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE DEVICE STATIONS (4) Initial setting of the remote device station (a) Setting the target station number Set the target station for which the initial setting is performed. Setting the target station number Set the target station numbers to "1"...
  • Page 268 Set parameters as follows. Procedure registration of AJ65VBTCU-68DAVN Click the "Regist Procedure" of the target station number "4". The details to be set are as follows: • Set channels 1 and 2 to Analog output enable. (the first condition) • Set the output range of channel 1 to 0 - 5V, and channel 2 to User range setting 1. (the second condition) •...
  • Page 269: Creating A Program

    CHAPTER 11 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE DEVICE STATIONS 11.2.3 Creating a program This section shows a program used to control remote device stations. The following diagrams show the relationships of the remote input/output and remote registers between the programmable controller CPU devices and the remote device stations.
  • Page 270 [Remote registers (RWw and RWr)] Remote device station (station number 1) Remote device station (station number 4) Programmable controller CPU AJ65VBTCU-68ADVN AJ65VBTCU-68DAVN For write RWw0 (A/D conversion enable/prohibit specification) W1000 RWw1 (CH.1 to CH.4 input range setting) W1001 (CH.5 to CH.8 input range setting) RWw2 W1002 RWw3...
  • Page 271 CHAPTER 11 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE DEVICE STATIONS Status confirmation of AJ65VBTCU-68ADVN, AJ65VBTCU-68DAVN AJ65VBTCU-68ADVN, AJ65VBTCU-68DAVN data link normal AJ65VBTCU-68ADVN data link abnormal AJ65VBTCU-68DAVN data link abnormal Initialization procedure registration Turns off initialization procedure registration directive. Turns on initialization procedure registration directive.
  • Page 272 AJ65VBTCU-68DAVN initial setting change AJ65VBTCU-68DAVN Initial setting change Analog output enable/ disable setting (RWw8) CH.1 to CH.4 output range setting (RWw9) Turns on initial data setting request flag (RY19). Turns off initial data setting request flag (RY19). AJ65VBTCU-68DAVN digital value setting AJ65VBTCU-68DAVN CH.1 digital value setting (RWw0) : 500...
  • Page 273: Performing The Data Link

    CHAPTER 11 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE DEVICE STATIONS 11.2.4 Performing the data link Turn on the remote device stations first, and then the master station to start the data link. (1) Confirming the operation with the LED indicators The following diagram shows the LED status of the master station and the remote device station when the data link is being performed normally.
  • Page 274 (2) Confirming the operation with the program Using the program, confirm that the data link is being performed normally. 1) Change the voltage input to the AJ65VBTCU-68ADVN and confirm that the converted digital value also changes accordingly. 2) Set digital values to the AJ65VBTCU-68DAVN, and confirm that the voltages converted from digital to analog are output.
  • Page 275: When Remote Net Additional Mode Is Used

    CHAPTER 11 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE DEVICE STATIONS 11.3 When Remote Net Additional Mode is Used 11.3.1 Configuring a system As shown below, a system where one ver.1 compatible remote device station and one ver.2 compatible remote device station are connected is used as an example.
  • Page 276 (1) Setting the remote device station Settings of the remote device station switches are shown below: For more detailed information about the contents of the settings, refer to the User's Manual for the remote device station. Setting of AJ65VBTCU-68ADVN Station number setting switch, Transmission speed setting switch Station...
  • Page 277 CHAPTER 11 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE DEVICE STATIONS Setting of AJ65VBTCU-68DAVN Setting of AJ65VBTCU-68DAVN J65VBTCU-68DAVN POWER L RUN DOWN L ERR Station number setting switch, Transmission speed setting switch TEST Station number 4 OFFSET GAIN 156kbps MODE Mode select switch...
  • Page 278: Parameter Setting

    11.3.2 Parameter setting (1) Setting the network parameters and automatic refresh parameters of the master station Set the network parameters and automatic refresh parameters as follows. Refer to Page 277, Section 11.3.2 (2) for the operation setting. Refer to Page 277, Section 11.3.2 (3) for the station information setting.
  • Page 279 CHAPTER 11 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE DEVICE STATIONS (2) Operation setting Set the operation setting as follows. (3) Station information setting Set parameters as follows.
  • Page 280 (4) Initial setting of the remote device station (a) Setting the target station number Set the target station for which the initial setting is performed. Setting the target station number Set the target station numbers to "1" and "4". Selecting the Regist Procedure Click the "Regist Procedure"...
  • Page 281 CHAPTER 11 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE DEVICE STATIONS Set parameters as follows. Procedure registration of AJ65VBTCU-68DAVN Click the "Regist Procedure" of the target station number "4". The details to be set are as follows: • Set channels 1 and 2 to Analog output enable. (the first condition) •...
  • Page 282: Creating A Program

    11.3.3 Creating a program This section shows a program used to control the remote device stations. The following diagrams show the relationships of the remote input/output and remote registers between the programmable controller CPU devices and the remote device station. The shaded areas indicate the devices that are actually used.
  • Page 283 CHAPTER 11 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE DEVICE STATIONS [Remote registers (RWw and RWr)] Remote device station (station number 1) Remote device station (station number 4) Programmable controller CPU AJ65VBTCU-68ADVN AJ65VBTCU-68DAVN Ver.1 compatible for write W100 RWw0 (A/D conversion enable/prohibit specification) W101 RWw1 (CH.1 to CH.4 input range setting)
  • Page 284 Status confirmation of AJ65VBTCU-68ADVN, AJ65VBTCU-68DAVN AJ65VBTCU-68ADVN, AJ65VBTCU-68DAVN data link normal AJ65VBTCU-68ADVN data link abnormal AJ65VBTCU-68DAVN data link abnormal Initialization procedure registration Turns off initialization procedure registration directive. Turns on initialization procedure registration directive. AJ65VBTCU-68ADVN initial setting change AJ65VBTCU-68ADVN Initial setting change A/D conversion enable/ prohibit specification (RWw0)
  • Page 285 CHAPTER 11 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE DEVICE STATIONS AJ65VBTCU-68DAVN initial setting change AJ65VBTCU-68DAVN Initial setting change Analog output enable/ disable setting (RWw8) CH.1 to CH.4 output range setting (RWw9) Turns on initial data setting request flag (RY19). Turns off initial data setting request flag (RY19).
  • Page 286: Performing The Data Link

    11.3.4 Performing the data link Turn on the remote device stations first, and then the master station to start the data link. (1) Confirming the operation with the LED indicators The following diagram shows the LED status of the master station and the remote device station when the data link is being performed normally.
  • Page 287 CHAPTER 11 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND REMOTE DEVICE STATIONS (2) Confirming the operation with the program Using the program, confirm that the data link is being performed normally. Change the voltage input to the AJ65VBTCU-68ADVN and confirm that the converted digital value also changes accordingly.
  • Page 288: Chapter 12 Example Of Communication Between The Master Station And Local Stations

    CHAPTER 12 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND LOCAL STATIONS This chapter explains the procedures from module settings to parameter settings, programming, and finally operation check using a system configuration example. 12.1 When Remote Net Ver.1 Mode is Used 12.1.1 Configuring a system As shown below, a system with one local station is used as an example.
  • Page 289: Setting The Master Station Parameters

    CHAPTER 12 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND LOCAL STATIONS 12.1.2 Setting the master station parameters (1) Setting the network parameters and automatic refresh parameters Set the network parameters and automatic refresh parameters as follows. Refer to Page 288, Section 12.1.2 (2) for the operation setting. Refer to Page 288, Section 12.1.2 (3) for the station information setting.
  • Page 290 (2) Operation setting Set the operation setting as follows. (3) Station information setting Set parameters as follows.
  • Page 291: Setting The Local Station Parameters

    CHAPTER 12 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND LOCAL STATIONS 12.1.3 Setting the local station parameters (1) Setting the network parameters and automatic refresh parameters Set the network parameters and automatic refresh parameters as follows. For the operation setting, refer to Section Page 290, Section 12.1.3 (2).
  • Page 292 (2) Operation setting Set the operation setting as follows.
  • Page 293: Creating A Program

    CHAPTER 12 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND LOCAL STATIONS 12.1.4 Creating a program This section shows the program to be used for communication between the master and local stations. The following diagram shows the relationship between the devices of the master station programmable controller CPU and the devices of the local station programmable controller CPU.
  • Page 294 [Remote registers (RWw and RWr)] Master station Local station programmable programmable Master station Local station controller CPU controller CPU W000 RWr00 RWw00 W100 W001 RWr01 RWw01 W101 W002 RWr02 RWw02 W102 W003 RWr03 RWw03 W103 W004 RWr04 RWw04 W104 W005 RWr05 RWw05 W105...
  • Page 295 CHAPTER 12 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND LOCAL STATIONS (1) Master station program Local station status confirmation Station number 1 is performing the data link Station number 1 is faulty Control program Control program using data received from a local station Program to generate transmission data to a local station...
  • Page 296 Remark By enabling "Block Data Assurance per Station", the consistency of the cyclic data for each device station can be guaranteed. ( Page 159, Section 8.2.9) Data of more than one station are not guaranteed. Also, to configure an interlock in the program, do so by using remote I/O (RX/RY) as shown below. Sending station (master station) Receiving station (local station) 1)The send/receive command (M0) turns ON.
  • Page 297: Performing The Data Link

    CHAPTER 12 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND LOCAL STATIONS 12.1.5 Performing the data link Turn on the local station first, and then the master station to start the data link. (1) Confirming the operation with the LED indicators The following diagram shows the LED status of the master station and the local station when the data link is being performed normally.
  • Page 298 (2) Confirming the operation with the program Using the program, confirm that the data link is being performed normally. 1) When X20 of the master station is turned on, Y41 of the local station turns on. 2) When X21 of the local station is turned on, Y40 of the master station turns on.
  • Page 299: When Remote Net Ver.2 Mode Is Used

    CHAPTER 12 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND LOCAL STATIONS 12.2 When Remote Net Ver.2 Mode is Used 12.2.1 Configuring a system As shown below, a system with two local stations is used as an example.
  • Page 300: Setting The Master Station Parameters

    12.2.2 Setting the master station parameters (1) Setting the network parameters and automatic refresh parameters Set the network parameters and automatic refresh parameters as follows. Refer to Page 299, Section 12.2.2 (2) for the operation setting. Refer to Page 299, Section 12.2.2 (3) for the station information setting.
  • Page 301 CHAPTER 12 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND LOCAL STATIONS (2) Operation setting Set the operation setting as follows. (3) Station information setting Set parameters as follows.
  • Page 302: Setting The Local Station Parameters

    12.2.3 Setting the local station parameters (1) Setting the parameters of the Ver.1 compatible local station (station number 1) (a) Setting the network parameters and automatic refresh parameters Set the network parameters and automatic refresh parameters as follows. For the operation setting, refer to Page 301, Section 12.2.3 (1) (b).
  • Page 303 CHAPTER 12 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND LOCAL STATIONS (b) Operation setting Set the operation setting as follows.
  • Page 304 (2) Setting the parameters of the Ver.2 compatible local station (station number 5) (a) Setting the network parameters and automatic refresh parameters Set the network parameters and automatic refresh parameters as follows. For the operation setting, refer to Page 303, Section 12.2.3 (2) (b). Refer to Section 12.2.3 (2) (b).
  • Page 305 CHAPTER 12 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND LOCAL STATIONS (b) Operation setting Set the operation setting as follows.
  • Page 306: Creating A Program

    12.2.4 Creating a program This section shows the program to be used for communication between the master and local stations. The following diagram shows the relationship between the devices of the master station programmable controller CPU and the devices of the local station programmable controller CPU. The shaded areas indicate the devices that are actually used.
  • Page 307 CHAPTER 12 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND LOCAL STATIONS [Remote registers (RWw and RWr)] Ver.1 compatible local station Ver.2 compatible local station (station number 5) Master station (station number 1) Local station programmable controller CPU RWw00 W0000 W1001 RWw01 W1002...
  • Page 308 (1) Master station program Local station status confirmation Station number 1 is faulty Station number 5 is faulty Control program Control program of station number 1 Control program using data received from local station of station No. 1 Program to generate transmission data to local station of station No.
  • Page 309 CHAPTER 12 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND LOCAL STATIONS (b) Ver.2 compatible local station (station number 5) program Confirmation of data link status Local station is performing data link Control program Control program using data received from a master station Program to generate send data to the master station Remark...
  • Page 310: Performing The Data Link

    12.2.5 Performing the data link Turn on the local stations first, and then the master station to start the data link. (1) Confirming the operation with the LED indicators The following diagram shows the LED status of the master station and the local station when the data link is being performed normally.
  • Page 311 CHAPTER 12 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND LOCAL STATIONS (2) Confirming the operation with the program Using the program, confirm that the data link is being performed normally. • When X20 of the master station is turned on, Y41 of local station No. 1 turns on. •...
  • Page 312: When Remote Net Additional Mode Is Used

    12.3 When Remote Net Additional Mode is Used 12.3.1 Configuring a system As shown below, a system with two local stations is used as an example.
  • Page 313: Setting The Master Station Parameters

    CHAPTER 12 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND LOCAL STATIONS 12.3.2 Setting the master station parameters (1) Setting the network parameters and automatic refresh parameters Set the network parameters and automatic refresh parameters as follows. Refer to Page 312, Section 12.3.2 (2) for the operation setting. Refer to Page 312, Section 12.3.2 (3) for the station information setting.
  • Page 314 (2) Operation setting Set the operation setting as follows. (3) Station information setting Set parameters as follows.
  • Page 315: Setting The Local Station Parameters

    CHAPTER 12 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND LOCAL STATIONS 12.3.3 Setting the local station parameters (1) Setting the parameters of the Ver.1 compatible local station (station number 1) (a) Setting the network parameters and automatic refresh parameters Set the network parameters and automatic refresh parameters as follows.
  • Page 316 (b) Operation setting Set the operation setting as follows.
  • Page 317 CHAPTER 12 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND LOCAL STATIONS (2) Setting the parameters of the Ver.2 compatible local station (station number 5) (a) Setting the network parameters and automatic refresh parameters Set the network parameters and automatic refresh parameters as follows. For the operation setting, refer to Page 316, Section 12.3.3 (2) (b).
  • Page 318 (b) Operation setting Set the operation setting as follows.
  • Page 319: Creating A Program

    CHAPTER 12 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND LOCAL STATIONS 12.3.4 Creating a program This section shows the program to be used for communication between the master and local stations. The following diagram shows the relationship between the devices of the master station programmable controller CPU and the devices of the local station programmable controller CPU.
  • Page 320 [Remote registers (RWw and RWr)] Ver.1 compatible local station Ver.2 compatible local station Master station (station number 1) (station number 5) Master station Local station Local station programmable Ver.1 compatible programmable Ver.1 compatible programmable controller CPU buffer memory controller CPU buffer memory controller CPU W0000...
  • Page 321 CHAPTER 12 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND LOCAL STATIONS (1) Master station program Local station status confirmation Station number 1 is faulty Station number 5 is faulty Control program Control program of station number 1 Control program using data received from local station of station No.
  • Page 322 (b) Ver.2 compatible local station (station number 5) program Confirmation of data link status Local station is performing data link Control program Control program using data received from a master station Program to generate send data to the master station Remark By enabling "Block Data Assurance per Station", the consistency of the cyclic data for each device station can be guaranteed.
  • Page 323: Performing The Data Link

    CHAPTER 12 EXAMPLE OF COMMUNICATION BETWEEN THE MASTER STATION AND LOCAL STATIONS 12.3.5 Performing the data link Turn on the local stations first, and then the master station to start the data link. (1) Confirming the operation with the LED indicators The following diagram shows the LED status of the master station and the local station when the data link is being performed normally.
  • Page 324 (2) Confirming the operation with the program Using the program, confirm that the data link is being performed normally. • When X20 of the master station is turned on, Y41 of local station No. 1 turns on. • When X21 of local station No. 1 is turned on, Y40 of the master station turns on. •...
  • Page 325: Chapter 13 Communication Between The Master Station And Intelligent Device Stations

    CHAPTER 13 COMMUNICATION BETWEEN THE MASTER STATION AND INTELLIGENT DEVICE STATIONS CHAPTER 13 COMMUNICATION BETWEEN THE MASTER STATION AND INTELLIGENT DEVICE STATIONS The method for communication between the master and intelligent device stations varies by intelligent device station. For more details, refer to the manual for each intelligent device station.
  • Page 326 Memo...
  • Page 327: Chapter 14 Example Of Communication When Using The Head Module

    CHAPTER 14 EXAMPLE OF COMMUNICATION WHEN USING THE HEAD MODULE CHAPTER 14 EXAMPLE OF COMMUNICATION WHEN USING THE HEAD MODULE This chapter explains the parameter settings and programming using a system configuration example. For the parameter settings on the head module and details of cyclic transmission, refer to the following manual. MELSEC-L CC-Link IE Field Network Head Module User’s Manual 14.1 System Configuration Example...
  • Page 328: Image Of Link Scan And Link Refresh By Cyclic Transmission

    14.2 Image of Link Scan and Link Refresh by Cyclic Transmission The following shows a transmission image of link device remote input RX, remote output RY, and the remote registers RWr and RWw. 1) Configure the link refresh of CC-Link IE Field Network in "Refresh Parameters" in Network Parameter of the CC- Link IE Field Network master station.
  • Page 329: Parameter Settings

    CHAPTER 14 EXAMPLE OF COMMUNICATION WHEN USING THE HEAD MODULE 14.3 Parameter Settings 14.3.1 Setting parameters of the CC-Link IE Field Network master station Set the parameters so that the CC-Link master station link special relay/register (SB/SW) is applied to the link refresh of CC-Link IE Field Network.
  • Page 330 (2) Setting the network configuration Set "Network Configuration Setting" in Network Parameter as follows. (3) Setting the refresh parameters Set "Refresh Parameters" in Network Parameter as follows.
  • Page 331: Setting Parameters Of The Head Module

    CHAPTER 14 EXAMPLE OF COMMUNICATION WHEN USING THE HEAD MODULE 14.3.2 Setting parameters of the head module Data of the CC-Link remote register (RWw/RWr) and link special relay/register (SB/SW) are exchanged by using the CC-Link IE Field Network remote register (RWw/RWr). (1) Communication Head Setting in PLC parameter Select "PLC Parameter"...
  • Page 332 (2) Operation Setting in PLC Parameter Select "PLC Parameter" - "Operation Setting", and set as follows. There are two directions for the link special relay/register (SB/SW) of the head module: the writing direction and the reading direction. 1) When writing to link special relay/register (SB/SW), set the following transfer destination. •...
  • Page 333 CHAPTER 14 EXAMPLE OF COMMUNICATION WHEN USING THE HEAD MODULE (3) Setting network parameters for the LJ61BT11 Set the CC-Link network parameters as follows, using GX Works2. 1) Set the "Special Relay(SB)" and "Special Register(SW)" within the following range. • "Special Relay(SB)": SB1000 to SB1FFF •...
  • Page 334: Program Example Of Cc-Link Ie Field Network Master Station

    14.4 Program Example of CC-Link IE Field Network Master Station (1) Example of interlock by data link status Configure an interlock by the data link status of the target station on the CC-Link IE Field Network. The following shows an interlock program example by the data link status of the head module (station number 1). [Link special relay (SB), Link special register (SW)] Device Application...
  • Page 335 CHAPTER 14 EXAMPLE OF COMMUNICATION WHEN USING THE HEAD MODULE (2) Program example of each target station The following is a program example of communication between the LJ61BT11 (master station), which is connected to the head module, and the AJ65BT-64AD (device station).
  • Page 337: Chapter 15 Troubleshooting

    CHAPTER 15 TROUBLESHOOTING CHAPTER 15 TROUBLESHOOTING This chapter describes the details of errors that may occur in the L series master/local module and the troubleshooting. For the troubleshooting from the display unit, refer to the following manual. MELSEC-L CPU Module User's Manual (Hardware Design, Maintenance and Inspection)
  • Page 338: Troubleshooting Procedures

    15.1 Troubleshooting Procedures 15.1.1 Flowcharts for troubleshooting by LEDs Start Troubleshoot according to "When Master station the master station "RUN" LED is RUN on off". When the CC-Link system is When the CC-Link system configured newly or changed has operated Master station L RUN on Master station...
  • Page 339 CHAPTER 15 TROUBLESHOOTING The programming tool is required to check the trouble contents. Page 337, Section 15.1.1 (1) Page 339, Section 15.1.2 The item corresponds to the number of the check item in "When disconnecting a device station". Refer to the corresponding check item and take the action.
  • Page 340 (2) Common module check procedure Start Perform the hardware test. Was the hardware test performed? Is the hardware test completed normally? Replace the target module. If no error related to the L series master/local module is detected, perform the troubleshooting of the CPU module referring to the following.
  • Page 341: Flowcharts For Troubleshooting By Gx Works2

    CHAPTER 15 TROUBLESHOOTING 15.1.2 Flowcharts for troubleshooting by GX Works2 (1) Troubleshooting by CC-Link diagnostics Connect GX Works2 to the master station and execute the CC-Link diagnostics. Start Troubleshoot according to Diagnostics window "When the master station is started. "RUN" LED is off." When the CC-Link system is When the CC-Link system configured newly or changed...
  • Page 342 Selected station information Confirm the consistency with the actual equipment. 1) Reservation setting mismatch 2) Error invalid setting mismatch When the CC-Link system is When the CC-Link system 3) Station type mismatch configured newly or changed has operated 4) Number of occupied stations mismatch 5) Expanded cyclic setting mismatch A2-4 No error...
  • Page 343 CHAPTER 15 TROUBLESHOOTING When the CC-Link system is When the CC-Link system configured newly or changed has operated L RUN LED on A1-7 A1-1, A1-5, A1-8, Master station B1-3, B1-4 L ERR. flashing A3-1, A3-4 A1-1, A1-7, A1-9, B1-1, B1-5 A3-2, A3-5 A2-5, A2-6, A2-9, Device station...
  • Page 344 Are multiple stations repeating normal/faulty? Faulty station type Remote I/O station Remote I/O station cyclic data failure Perform the troubleshooting by the status logging. Is the output C2-1 disabled for all RY? C1-1, C1-2 Remote device station Remote device station cyclic data failure Is the remote device station disabled to...
  • Page 345 CHAPTER 15 TROUBLESHOOTING Page 344, Section 15.1.2 (2) The item corresponds to the number of the check item in "When cyclic data are faulty". Refer to the corresponding check item and take the action. ( Page 353, Section 15.2.2) The item corresponds to the number of the check item in "When transient data are faulty". Refer to the corresponding check item and take the action.
  • Page 346 (2) Troubleshooting by status logging Start Register the logs to the flash ROM? Clear the flash ROM and execute logging? Is the system in data link? Stop data link. Select "RAM + Flash ROM". Select "RAM + Flash ROM". Clear the logs. Clear the logs.
  • Page 347: List Of Problems

    CHAPTER 15 TROUBLESHOOTING 15.2 List of Problems 15.2.1 When disconnecting a device station (1) Problems on device station disconnection (when creating a new CC-Link system or modifying the existing system) Description Check item Check contents Check procedure Corrective action of problem Is the station number Check the station number Set the station number...
  • Page 348 Description Check item Check contents Check procedure Corrective action of problem Is there any disconnection, short-circuit, incorrect wiring, faulty connection, or status out of specifications Check if the cable between the (transmission distance, master station and device Connect the cable properly. distance between stations, station is not disconnected.
  • Page 349 CHAPTER 15 TROUBLESHOOTING Description Check item Check contents Check procedure Corrective action of problem Wire the transmission cable and power wiring as Check if the transmission cable separated as possible. and power wiring are separated (recommended to keep a enough. distance of more than 100mm) Is there any noise on the...
  • Page 350 Description Check item Check contents Check procedure Corrective action of problem Check if the SD LED and RD Is there any disconnection, LED are flashing at the faulty Connect the cable properly. short-circuit, incorrect station. wiring, faulty connection, or status out of specifications Check the cable of the closest (transmission distance, faulty station from the master...
  • Page 351 CHAPTER 15 TROUBLESHOOTING Description Check item Check contents Check procedure Corrective action of problem Is there any Check the cable between the cable/connector Connect the corresponding A3-1 Cables master station and device disconnected or out of cable properly. station. specifications? Does the sequence scan time exceed the tolerance? Switch to the...
  • Page 352 Description Check item Check contents Check procedure Corrective action of problem Check if the transmission cable Wire the transmission and power wiring are separated cable and power wiring as enough. separated as possible. Check if the FG is separated Set FG and the power Is there any noise on the A4-3 Noise...
  • Page 353 CHAPTER 15 TROUBLESHOOTING (2) Problems on device station disconnection (when the CC-Link system has been normally operated) Description Check item Check contents Check procedure Corrective action of problem Correct the error code of the programmable controller Check the error code of the CPU.
  • Page 354 Description Check item Check contents Check procedure Corrective action of problem Power supply Is any voltage drop Check the power supply at Set the supplied voltage to B2-1 (for occurring? the faulty station. within the specified range. communication) Check the connection cable at the faulty station.
  • Page 355: When Cyclic Data Are Faulty

    CHAPTER 15 TROUBLESHOOTING 15.2.2 When cyclic data are faulty (1) Problems on abnormal cyclic data of a remote I/O station Description Check item Check contents Check procedure Corrective action of problem Check if the automatic refresh Set the automatic refresh setting range is correct.
  • Page 356 (2) Problems on abnormal cyclic data of a remote device station Description Check item Check contents Check procedure Corrective action of problem Is the automatic refresh set Set so as not to overlap Is not the area overlapped with properly? with devices used in the the program or device used at (RX, RY, RWw, RWr, SB,...
  • Page 357 CHAPTER 15 TROUBLESHOOTING (3) Problems on abnormal cyclic data of an intelligent device station (local station) Description Check item Check contents Check procedure Corrective action of problem Is the automatic refresh set Set so as not to overlap Check if there is no overlapping properly? with devices used in the with devices used in the...
  • Page 358: When Transient Data Are Faulty

    15.2.3 When transient data are faulty (1) Problems on abnormal transient data of an intelligent device station (local station) Description Check item Check contents Check procedure Corrective action of problem Is there any fault in the Refresh data Check if a correct address is Access the corresponding F1-1 transient transmission...
  • Page 359: When Operation Of The Master Station Is Faulty

    CHAPTER 15 TROUBLESHOOTING 15.2.4 When operation of the master station is faulty (1) Problems on abnormal operation of the master station Description Check item Check contents Check procedure Corrective action of problem Check the program. Set the SB area properly. Is the data link stop Check the automatic refresh Turn on the data link stop...
  • Page 360: Error Codes

    15.3 Error Codes When a trouble such as data link failure has occurred, the cause can be identified by an error code. 15.3.1 How to check error codes Error codes can be checked on GX Works2. They can also be checked in link special registers (SW). (Refer to Page 416, Appendix 3.2.) (1) Checking with GX Works2 Error codes that are corresponding to the errors occurred in the L series master/local module can be checked by...
  • Page 361 CHAPTER 15 TROUBLESHOOTING (b) Checking on the "Error History" window On this window, errors including those occurred in other modules are displayed, and these data can be output in a CSV file. Error code and date and time of error occurrence can be checked even after powering off and then on the programmable controller or resetting the programmable controller CPU.
  • Page 362 For the L series master/local module, the following will be displayed. Item Description Action status Operation status of the host station Data link status Data link status of the host station Data link status of each station Other station data link status (SW0080 to SW0083) 0: Normal 1: Data link error occurred Line status (SW0090)
  • Page 363 CHAPTER 15 TROUBLESHOOTING 3) [Create CSV File] button Click this button to output the module error history in a CSV file. ● If errors have frequently occurred in the L series master/local module, "*HST.LOSS*" may be displayed instead of an error code in the Error Code column.
  • Page 364: Error Code List

    15.3.2 Error code list The following shows the error codes list. When a standby master station is used, refer to the respective columns under "Detectability" in the table as explained below. • When a module is used as a master station: "Master station" column •...
  • Page 365 CHAPTER 15 TROUBLESHOOTING Detectability Error code Error details Cause of error occurrence (details) Corrective action Master Local (hexadecimal) station station Check the communication status of A data link error occurred at the other stations, whether or not a Corresponding station error ...
  • Page 366 Detectability Error code Error details Cause of error occurrence (details) Corrective action Master Local (hexadecimal) station station Set the contents of the installation Loading/parameter The contents of the installation status and B30B status and network parameters to   consistency error network parameters do not match.
  • Page 367 CHAPTER 15 TROUBLESHOOTING Detectability Error code Error details Cause of error occurrence (details) Corrective action Master Local (hexadecimal) station station Please consult your local Mitsubishi    B321 System error representative. Status logging flash ROM During data link, the logs were cleared with Stop the data link and then clear the B322 ...
  • Page 368 Detectability Error code Error details Cause of error occurrence (details) Corrective action Master Local (hexadecimal) station station Operation when CPU is The operation when the CPU is down B392 down specified error specification parameter was set to a value Set "0 or 1". ...
  • Page 369 CHAPTER 15 TROUBLESHOOTING Detectability Error code Error details Cause of error occurrence (details) Corrective action Master Local (hexadecimal) station station Model invalid has occurred between the master and local/standby master stations. • The mode differs between the master and standby master stations. •...
  • Page 370 Detectability Error code Error details Cause of error occurrence (details) Corrective action Master Local (hexadecimal) station station The setting of the interlock signal storage Change the setting of the interlock Interlock signal data outside B414 device of the G(P).RIRCV or G(P).RISEND signal storage device to within the ...
  • Page 371 CHAPTER 15 TROUBLESHOOTING Detectability Error code Error details Cause of error occurrence (details) Corrective action Master Local (hexadecimal) station station The transmission destination and source Check the transmission destination Station number specification   B782 stations were the same when other station station number, or change to host error connection was specified.
  • Page 372 Detectability Error code Error details Cause of error occurrence (details) Corrective action Master Local (hexadecimal) station station BA02 Please consult your local Mitsubishi    System error representative. BA05 Please consult your local Mitsubishi BA06 to BA13 Error (hardware test) A hardware error has been detected.
  • Page 373 CHAPTER 15 TROUBLESHOOTING Detectability Error code Error details Cause of error occurrence (details) Corrective action Master Local (hexadecimal) station station Please consult your local Mitsubishi    BC02 System error representative. The target station specified for the message transmission function is in any of the following status.
  • Page 374 Detectability Error code Error details Cause of error occurrence (details) Corrective action Master Local (hexadecimal) station station Increase the value for Monitoring In the message transmission function, a time setting (SW0009). If the error communication timeout has occurred. occurs again, check the request destination module and cables.
  • Page 375 CHAPTER 15 TROUBLESHOOTING Detectability Error code Error details Cause of error occurrence (details) Corrective action Master Local (hexadecimal) station station Target station specification The target of the remote device station error Check the specified target station   BC73 access from the peripheral is a remote I/O (Remote device station No.
  • Page 376 Detectability Error code Error details Cause of error occurrence (details) Corrective action Master Local (hexadecimal) station station Error detected in CC-Link IE Field Network D000 to DFFF (Refer to the CC-Link IE Field Network User's Manual.) Error detected in CC-Link IE Controller Network E000 to EFFF (Refer to the CC-Link IE Controller Network Reference Manual.) Error detected in a MELSECNET/H or MELSECNET/10 network system...
  • Page 377: Cc-Link Diagnostics

    CHAPTER 15 TROUBLESHOOTING 15.4 CC-Link Diagnostics Check the status of each module after all the modules have been connected using Ver.1.10 compatible CC-Link dedicated cable, and verify that data link can be performed normally. 15.4.1 Host monitoring/Other station monitoring This function monitors the items such as the data link status of the host (the station to which peripheral devices are connected).
  • Page 378 (1) Description of CC-Link Diagnostics window Item Description Diagnostics Result Displays the number of all errors/warnings that have occurred on the L series master/local module(s). Displays the list of L series master/local modules and the number of errors and warnings). The diagnosis object can be changed by clicking a module.
  • Page 379 CHAPTER 15 TROUBLESHOOTING Item Description Displays the explanation of the icons on the diagnostics window. [Legend] Updating of the number of errors/warnings in "Diagnostics Result" Only the number of errors/warnings that have occurred in the network of the module selected in "Module list/diagnosis object select"...
  • Page 380: Loop Test/Obtain Transmission Speed Setting

    15.4.2 Loop test/Obtain transmission speed setting (1) Loop test Checks the line operation of all stations or for the specified station. (a) Operation procedure Connect all the modules with Ver.1.10 compatible CC-Link dedicated cables. In GX Works2, select [Diagnostics] and then [CC-Link Diagnostics] and double-click the "Loop Test"...
  • Page 381 CHAPTER 15 TROUBLESHOOTING (b) Precautions on the loop test • Do not write to buffer memory addresses 5E0 and 608 • Do not concurrently perform loop tests by programs and other peripherals. If this happens, the loop test may not operate normally. (2) Obtain transmission speed setting Checks the transmission speed settings of all stations.
  • Page 382: Status Logging

    15.4.3 Status logging This function logs the data link status of all stations. When multiple stations, such as stations of a specific station number and higher, repeatedly fail and recover, the cause and location of the problem (e.g. poor cable contact or noise) can be identified easily.
  • Page 383 CHAPTER 15 TROUBLESHOOTING Set the time for logging data acquisition. Enter the time during which logs are collected. If "0" is set, log collection is continued until the [Stop Logging] button is clicked or the number of logs reaches 5000. Click the [Start Logging] button.
  • Page 384: Creating A Check Sheet

    15.4.4 Creating a check sheet By following the wizard, check sheets can be created for troubleshooting with the open field network CC-Link troubleshooting guidance. (1) Operation procedure In GX Works2, select [Diagnostics] and then [CC-Link Diagnostics] and double-click the "Create Check Sheet"...
  • Page 385 The following is an example of the check sheet when Microsoft Excel 2000 or later is installed. Confirmation Item Contents [1]Master Type Master Station Programmable Controller PLC L26CPU-BT Master Module L26CPU-BT [2]Master Version Programmable Controller PLC 111110000000000A Master Module 111110000000000A...
  • Page 386: H/W Information

    15.4.5 H/W information This function displays the operating and setting states of the master module, local modules and standby master module. (1) Operation procedure (for the LJ61BT11) Select [Diagnostics] [System Monitor] in GX Works2. Select the LJ61BT11. Click the [H/W Information] button. (2) Product information The function version and serial No.
  • Page 387 CHAPTER 15 TROUBLESHOOTING (3) H/W LED Information The H/W LED Information area displays the following data link information. Item Value 1: Operating normally 0: Hardware error or watchdog timer error 1: All stations are faulty ERR. Switching between 0 and 1: There is a faulty station 1: Set to the master station S MST 1: Set to the standby master station...
  • Page 388 Memo...
  • Page 389: Appendices

    APPENDICES APPENDICES Appendix 1 Details of the I/O Signals The following explains the on/off timings and conditions of the I/O signals shown in "I/O Signal List" (refer to Page 45, Section 3.5): (1) Module error: Xn0 This signal indicates whether the module is normal or faulty. OFF: Module normal ON: Module error Module error...
  • Page 390 (4) Module ready: XnF This signal indicates whether the module is ready to operate. (a) When the module reaches ready-to-operate status, this signal turns ON automatically. (b) This signal turns OFF when either of the following conditions occurs: • When an error is detected in the switch setting status for the module •...
  • Page 391: Appendix 2 Buffer Memory Details

    APPENDICES Appendix 2 Buffer Memory Details The following explains the details of items shown in "Buffer Memory List" (refer to Page 47, Section 3.6). (1) Parameter information area Stores the parameter settings. Do not perform write to the parameter information area. Doing so may cause an error. The following table lists the parameter information areas.
  • Page 392 Address Item Description Hex. Dec. Stores the setting status of the types of the connected device stations. Default value: 0101 (Ver.1 compatible remote I/O station, Occupies 1 station, Station number 1) to 0140 (Ver.1 compatible remote I/O station, Occupies 1 station, Station number 64) Storage area: Refer to the following Number of Station type...
  • Page 393 APPENDICES Address Item Description Hex. Dec. 0 points Stores the station numbers of the reserved stations set to 0 points. to DB 216 to 219 reserved Default value: 0 (no setting) station setting Storage area: Bit corresponding to the station number turns on. (Use to DF ...
  • Page 394 (2) Remote input (RX) and remote output (RY) Used when the remote net ver.1 mode, remote net additional mode or remote I/O network mode is selected. (a) Master station  remote I/O station/remote device station/local station • Master station • The input data from the remote I/O station, remote device station (RX) and local station (RY) is stored. •...
  • Page 395 APPENDICES The following tables show the station numbers and corresponding buffer-memory addresses. [Master station] Table of station numbers and corresponding buffer memory addresses Station Buffer memory Station Buffer memory Station Buffer memory Station Buffer memory Station Buffer memory number address number address number...
  • Page 396 (b) Master station  remote I/O station/remote device station/local station • Master station • The output data to the remote I/O station, remote device station (RY) and all local stations (RX) is stored. • Two words are used per station. •...
  • Page 397 APPENDICES The following tables show the station numbers and corresponding buffer memory addresses. [Master station] Table of station numbers and corresponding buffer memory addresses Station Buffer memory Station Buffer memory Station Buffer memory Station Buffer memory Station Buffer memory number address number address...
  • Page 398 (3) Remote registers (RWw) and (RWr) Used when the remote net ver.1 mode or remote net additional mode is selected. (a) Master station (RWw)  remote device station (RWw)/local station (RWr) • Master station • The data to be sent to the remote register (RWw) of the remote device station and the remote registers (RWr) of all local stations are stored.
  • Page 399 APPENDICES (b) Master station (RWr)  remote device station (RWr)/local station (RWw) • Master station • The send data from the remote register (RWr) of the remote device station and the remote register (RWw) of the local station is stored. •...
  • Page 400 The following tables show the station numbers and corresponding buffer memory addresses. [Master station] Table of station numbers and corresponding buffer memory addresses Station Buffer memory Station Buffer memory Station Buffer memory Station Buffer memory Station Buffer memory number address number address number...
  • Page 401 APPENDICES (4) Device station offset, size information In the remote net ver.2 mode or remote net additional mode, the assignment of RX/RY/RWw/RWr for the station numbers varies according to the expanded cyclic setting and remote I/O station points setting. (a) Offset Stores the head buffer memory address of RX/RY/RWw/RWr assigned to each station.
  • Page 402 When the local station where expanded cyclic setting has been made and the remote I/O stations where remote I/O station points setting has been made are connected Local station (Station number 1, Occupies 2 stations, Remote I/O station Remote I/O station Expanded cyclic setting: (Station number 3, (Station number 4,...
  • Page 403 APPENDICES Buffer memory name Value Description 4C40 Station No. 4 RWr offset Head buffer memory address of RWr of station No. 4 Station No. 4 RWr size 0 (default) Buffer memory size of RWr of station No. 4...
  • Page 404 (5) Link special relays (SB) The link special relays store the data link status using bit ON/OFF data. Buffer memory addresses 5E0 to 5FF correspond to link special relays SB0000 to SB01FF. For details on the link special relays (SB0000 to SB01FF), refer to Page 410, Appendix 3.1.
  • Page 405 APPENDICES (6) Link special registers (SW) The link special registers store the data link status using word data. Buffer memory addresses 600 to 7FF correspond to link special registers SW0000 to SW01FF. For details on the link special registers (SW0000 to SW01FF), refer to Page 416, Appendix 3.2.
  • Page 406 Master station Local station (first module) Buffer memory Send buffer Device memory G(P).RIWT for the first module 1) Stores the data to be written in the buffer memory of the local station or to the device memory of the CPU in the send buffer for the first module.
  • Page 407 APPENDICES (10)Ver.2 compatible remote input (RX) and Ver.2 compatible remote output (RY) Used when the remote net ver.2 mode or remote net additional mode is selected. (a) Master station  Remote I/O station/remote device station/local station • Master station • The input status from the remote I/O station, remote device station (RX) and local station (RY) is stored. •...
  • Page 408 (b) Master station  Remote I/O station/remote device station/local station • Master station • The output status to the remote I/O station, remote device station (RY) and all local stations (RX) is stored. • When 1 station is occupied, 2, 4 or 8 words are used. The number of used points changes depending on the extended cyclic setting and the number of occupied stations.
  • Page 409 APPENDICES (11)Ver.2 compatible remote registers (RWw) and (RWr) Used when the remote net ver.2 mode or remote net additional mode is selected. (a) Master station (RWw)  remote device station (RWw)/local station (RWr) • Master station • The data to be sent to the remote register (RWw) of the remote device station and the remote registers (RWr) of all local stations are stored.
  • Page 410 (b) Master station (RWr)  remote device station (RWr)/local station (RWw) • Master station • The send data from the remote register (RWr) of the remote device station and the remote register (RWw) of the local station is stored. • When 1 station is occupied, any of 4 to 32 words are used. The number of used points changes depending on the expanded cyclic setting and the number of occupied stations.
  • Page 411: Appendix 3 Link Special Relays And Registers (Sb/Sw)

    APPENDICES Appendix 3 Link Special Relays and Registers (SB/SW) The data link status can be checked with bit data (link special relays: SB) and word data (link special registers: SW). The SB and SW represent the information in the buffer memory of the L series master/local module, which is used by reading to the device specified in an automatic refresh parameter.
  • Page 412: Appendix 3.1 Link Special Relays (Sb)

    Appendix 3.1 Link special relays (SB) Link special relays SB0000 to SB001F are turned ON/OFF by the program, and SB0020 to SB01FF are turned ON/OFF by the L series master/local module. The numeric values in parentheses in the Number column indicate addresses and bit positions of the buffer memory. Example: For buffer memory address 5E0 and bit 0: (5E0 ,b0)
  • Page 413 APPENDICES Availability (: Available, : Not available) Number Name Description Online Offline Master Local station station Use this to perform the transmission speed test. SB000B Transmission speed test OFF: Not requested    (5E0 , b11) request ON: Requested Forcefully transfers the data link control from the standby master station that is controlling the data link to the standby master station SB000C...
  • Page 414 Availability (: Available, : Not available) Number Name Description Online Offline Master Local station station Indicates the acknowledgement status of temporary error invalid SB004B Temporary error invalid cancel instruction.    (5E4 , b11) canceling complete status OFF: Not executed ON: Temporary error invalid station cancellation complete Indicates the loop test request acknowledgement status.
  • Page 415 APPENDICES Availability (: Available, : Not available) Number Name Description Online Offline Master Local station station Indicates the status of the data link faulty station setting configured SB0065 Input data status of host for the host station.    (5E6 , b5) data link faulty station...
  • Page 416 Availability (: Available, : Not available) Number Name Description Online Offline Master Local station station Indicates whether there is a temporary error invalid station setting. OFF: No setting ON: Setting exists (information is stored in SW007C to SW007F) SB0076 Temporary error invalid ...
  • Page 417 APPENDICES Availability (: Available, : Not available) Number Name Description Online Offline Master Local station station Detects changes in setting switches of other stations during data linking. OFF: No change SB0083 Other station switch ON: Change detected.    (5E8 , b3) change status...
  • Page 418: Link Special Registers (Sw)

    Appendix 3.2 Link special registers (SW) Data is stored in the link special registers SW000 to SW001F by the program, and data is automatically stored in SW0020 to SW01FF. The values in parentheses in the number column indicate the buffer memory addresses. When a standby master station is used, refer to the respective columns under "Availability"...
  • Page 419 APPENDICES Availability (: Available, : Not available) Number Name Description Online Offline Master Local station station Set the number of retries for use of dedicated instructions. SW000B Dedicated instruction Default value: 0 (No retry)    (60B retry count setting Setting range: 0 to 7 (times) When the set value is out of the range, 7 is applied.
  • Page 420 Availability (: Available, : Not available) Number Name Description Online Offline Master Local station station Stores the details of the LED display status. 0: OFF 1: ON b15 b14 b13 b12 b11 b8 b7 b6 b5 b4 b2 b1 b0 LINE(ERR.) : Cable is disconnected or the transmission path is affected by...
  • Page 421 APPENDICES Availability (: Available, : Not available) Number Name Description Online Offline Master Local station station Stores the detailed display status of the module LED. 0: OFF 1: ON b8b7 0 0 0 0 Station number setting × 1 BCD code1 (0: Off, 1: On) Station number setting ×...
  • Page 422 Availability (: Available, : Not available) Number Name Description Online Offline Master Local station station Stores the operation setting status of the module. b14b13 b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 Station type 0: Master station/local station 1: Standby master station (Valid only when b1 is 0) Master station duplex function 0: Master station duplex function disabled...
  • Page 423 APPENDICES Availability (: Available, : Not available) Number Name Description Online Offline Master Local station station SW0070 Total number of Stores the final station number set in the parameter.    (670 stations 1 to 64 (stations) Stores the maximum station number (set number of the station number setting) that is SW0071 Max.
  • Page 424 Availability (: Available, : Not available) Number Name Description Online Offline Master Local station station Stores the data link status of each station. 0: Normal SW0080 1: Data link error occurred (680 SW0081 SW0080 (681 Other station data SW0081  ...
  • Page 425 APPENDICES Availability (: Available, : Not available) Number Name Description Online Offline Master Local station station Indicates the transient transmission error status. 0: No transient transmission error SW0094 1: Transient transmission error occurrence (694 SW0095 SW0094 (695 Transient SW0095  ...
  • Page 426 Availability (: Available, : Not available) Number Name Description Online Offline Master Local station station Stores the loop test 1 result. SW00B4 0: Normal (6B4 1: Abnormal SW00B5 (6B5 SW00B4    Loop test 1 result SW00B6 SW00B5 (6B6 SW00B6 SW00B7 SW00B7...
  • Page 427 APPENDICES Availability (: Available, : Not available) Number Name Description Online Offline Master Local station station Remote device station initialization SW0113 procedure (713 registration execution individual information (target 4) Remote device station initialization SW0114 procedure (714 registration execution individual information (target 5) Remote device station initialization...
  • Page 428 Availability (: Available, : Not available) Number Name Description Online Offline Master Local station station Remote device station initialization SW0119 procedure (719 registration execution individual information (target 10) Remote device station initialization SW011A procedure (71A registration execution individual information (target 11) Remote device station initialization SW011B...
  • Page 429 APPENDICES Availability (: Available, : Not available) Number Name Description Online Offline Master Local station station Stores the CC-Link version matching status of the parameters and device stations. 0: Normal 1: Matching error Example of matching error SW0144 (744 Installation Parameter SW0145 Ver.2 compatible remote device station...
  • Page 430 Availability (: Available, : Not available) Number Name Description Online Offline Master Local station station Indicates transmission speed test results by station numbers. SW0184 0: Normal (Same transmission speed as that of master station), or no response from (784 the module 1: Abnormal (Different transmission speed from that of master station) SW0185 (785...
  • Page 431 APPENDICES The timing when the data in a link special register (SW) is updated differs depending on the link register number. The following table lists the update timings of link special registers. Link special register Data update timing Link special register Data update timing SW0041 SW0071...
  • Page 432: Appendix 4 Data Link Processing Time

    Appendix 4 Data Link Processing Time This chapter explains the data link processing time such as the link scan time and transmission delay time. The retry processing time (RT) and return processing time (F), which are included in the expression, do not need to be added if all CC-Link system stations are correctly data-linked.
  • Page 433 APPENDICES (1) For remote net mode BT {27 + (NI  4.8) + (NW  9.6) + (N  30) + (ni  4.8) + (nw  9.6) + TR} + ST + EX + RT + F [s] LS = BT: Constant (transmission speed) Transmission 156kbps...
  • Page 434 Constant (The largest value found in 1) to 3) below. However, 2) is disregarded when B = 0 and 3) is disregarded when C = 0) 1) 800 + (A  15) 2) 900 + (B  50) 3) For C  26 : 1200 + (C  100), For C > 26 : 3700 + {(C - 26)  25} Constant (only when remote net ver.2 mode or remote net additional mode is used) 50 + total in the following table Number of occupied stations...
  • Page 435 APPENDICES Using the following system configuration when the transmission speed is 10 Mbps (assuming that there is no faulty station or transient transmission.) Station number 8 Station Station Station Station number 1 number 2 number 4 number 12 Master Local Remote Remote Intelligent...
  • Page 436 (2) For remote I/O net mode LS = BT {27 + (NI  4.8) + (N  30) + (ni  4.8)} + ST + RT + F [s] BT: Constant (transmission speed) Transmission 156kbps 625kbps 2.5Mbps 5Mbps 10Mbps speed 51.2 12.8 NI: NI: Final station number (must be a multiple of 8)
  • Page 437: Appendix 4.2 Transmission Delay Time Of Master Station <-> Remote I/O Station

    APPENDICES Appendix 4.2 Transmission delay time of master station <-> remote I/O station (1) Master station (RX)  Remote I/O station (input) This indicates the time from the moment a signal is input to a remote I/O station until the corresponding CPU device turns ON (OFF).
  • Page 438 (2) Master station (RY)  Remote I/O station (output) This indicates the time from the moment a CPU device turns ON (OFF) until a remote I/O station output turns ON (OFF). (a) Expression The meanings of symbols in the table are as follows: •...
  • Page 439: Appendix 4.3 Transmission Delay Time Of Master Station <-> Remote Device Station

    APPENDICES Appendix 4.3 Transmission delay time of master station <-> remote device station (Ver.1 compatible device station) (1) Master station (RX)  Remote device station (RX), (RWr) This indicates the time from when a signal is input to a remote device station until the corresponding CPU device turns ON (OFF) or CPU device data is changed.
  • Page 440 (2) Master station (RY)  Remote device station (RY), (RWr) This indicates the time from when the CPU device turns ON (OFF) until the remote device station output turns ON (OFF), or the time from when data are set to a CPU device until the corresponding data on the remote device station is changed.
  • Page 441: Appendix 4.4 Transmission Delay Time Of Master Station <-> Remote Device Station

    APPENDICES Appendix 4.4 Transmission delay time of master station <-> remote device station (Ver.2 compatible device station) (1) Master station (RX)  Remote device station (RX), (RWr) This indicates the time from when a signal is input to a remote device station until the corresponding CPU device turns ON (OFF) or CPU device data is changed.
  • Page 442 (2) Master station (RY)  Remote device station (RY), (RWr) This indicates the time from when a CPU device turns ON (OFF) until a remote device station output turns ON (OFF), or the time from when data is set to a CPU device until the corresponding data on the remote device station is changed.
  • Page 443: Appendix 4.5 Transmission Delay Time Of Master Station <-> Local Station

    APPENDICES Appendix 4.5 Transmission delay time of master station <-> local station (Ver.1 compatible device station) (1) Master station (RX)  Local station (RY), Master station (RWr)  Local station (RWw) This indicates the time from the moment a local station CPU device turns ON (OFF) until the corresponding master station CPU device turns ON (OFF).
  • Page 444 (2) Master station (RY)  Local station (RX), Master station (RWw)  Local station (RWr) This indicates the time from the moment a master station CPU device turns ON (OFF) until the corresponding local station CPU device turns ON (OFF). Or, it indicates the time from when data is set to a master station CPU device until data is stored in the corresponding local station CPU device.
  • Page 445: Appendix 4.6 Transmission Delay Time Of Master Station <-> Local Station

    APPENDICES Appendix 4.6 Transmission delay time of master station <-> local station (Ver.2 compatible device station) (1) Master station (RX)  Local station (RY), Master station (RWr)  Local station (RWw) This indicates the time from the moment a local station CPU device turns ON (OFF) until the corresponding master station CPU device turns ON (OFF).
  • Page 446 (2) Master station (RY)  Local station (RX), Master station (RWw)  Local station (RWr) This indicates the time from the moment a master station CPU device turns ON (OFF) until the corresponding local station CPU device turns ON (OFF). Or, it indicates the time from when data is set to a master station CPU device until the data is stored to the corresponding local station CPU device.
  • Page 447: Appendix 4.7 Transmission Delay Time Of Master Station <-> Intelligent Device Station

    APPENDICES Appendix 4.7 Transmission delay time of master station <-> intelligent device station The transmission delay time between the master station and an intelligent device station varies by the type of intelligent device station used. Refer to the User's Manual for the intelligent device module to be used.
  • Page 448: Appendix 4.8 Processing Time For Dedicated Instructions Of Master Station <-> Local Station

    Page 416, Appendix 3.2.) When the programmable controller CPU type is L26CPU-BT, the transmission speed is 10 Mbps, the link scan time is 5 ms, the read points are 20 words (buffer memory in the CC-Link), the monitoring time is 10 s, and the number of retries is zero.
  • Page 449 Page 416, Appendix 3.2.) When the programmable controller CPU type is L26CPU-BT, the transmission speed is 10 Mbps, the link scan time is 5 ms, the write points are 20 words (buffer memory in the CC-Link), the monitoring time is 10 s, and the number of retries is zero.
  • Page 450 Page 416, Appendix 3.2.) When the programmable controller CPU type is L26CPU-BT, the transmission speed is 10 Mbps, the link scan time is 5 ms, the read points are 20 words (buffer memory in the CC-Link), the monitoring time is 10 s, and the number of retries is zero.
  • Page 451 Page 416, Appendix 3.2.) When the programmable controller CPU type is L26CPU-BT, the transmission speed is 10 Mbps, the link scan time is 5ms, the write points are 20 words (buffer memory in the CC-Link), the monitoring time is 10 s, and the number of retries is zero.
  • Page 452: Appendix 4.9 Processing Time For Dedicated Instructions Of Local Station <-> Local Station

    Page 416, Appendix 3.2.) When the programmable controller CPU type is L26CPU-BT, the transmission speed is 10 Mbps, the link scan time is 5 ms, the read points are 20 words (buffer memory in the CC-Link), the monitoring time is 10 s, and the number of retries is zero.
  • Page 453 Page 416, Appendix 3.2.) When the programmable controller CPU type is L26CPU-BT, the transmission speed is 10 Mbps, the link scan time is 5 ms, the write points are 20 words (buffer memory in the CC-Link), the monitoring time is 10 s, and the number of retries is zero.
  • Page 454: Intelligent Device Station

    Page 416, Appendix 3.2.) When the programmable controller CPU type L26CPU-BT, the transmission speed is 10 Mbps, the link scan time is 5 ms, the read points are 20 words, the monitoring time is 10 s, and the number of retries is zero.
  • Page 455 Page 416, Appendix 3.2.) When the programmable controller CPU type is L26CPU-BT, the transmission speed is 10 Mbps, the link scan time is 5 ms, the write points are 20 words, the monitoring time is 10 s, and the number of retries is zero.
  • Page 456: Appendix 4.11 Link Refresh Time Of Master Station/Local Station

    0.14 L02CPU, L02CPU-P Local station 0.17 0.15 L06CPU, L06CPU-P, Master station 0.14 0.12 L26CPU, L26CPU-P, Local station 0.15 0.13 L26CPU-BT, L26CPU-PBT Master station 0.38 0.20 Head module Local station 0.65 0.45 KM2 ( 10 KM3 ( 10 When When When...
  • Page 457 (Example) When using the L26CPU-BT and the LJ61BT11 is mounted, the number of CC-Link modules counted is two. When the L26CPU-BT is used as the master station, and 2048 points of RX, 2048 points of RY, 256 points of RWw, 256 points of RWr, 512 points of SB and 512 points of SW are refreshed only for the main block.
  • Page 458 0.18 L02CPU, L02CPU-P Local station 0.21 0.19 L06CPU, L06CPU-P, Master station 0.18 0.16 L26CPU, L26CPU-P, Local station 0.19 0.17 L26CPU-BT, L26CPU-PBT Master station 0.45 0.26 Head module Local station 0.71 0.53 KM2 ( 10 KM3 ( 10 When When When...
  • Page 459 (Example) When using the L26CPU-BT and the LJ61BT11 is mounted, the number of CC-Link modules counted is two. When the L26CPU-BT is used as the master station, and 1024 points of RX, 896 points of RX2, 1024 points of RY, 896 points of RY2, 128 points of RWw, 128 points of RWw2, 128 points of RWr, 128 points of RWr2, 512 points of SB and 512 points of SW are refreshed.
  • Page 460: Appendix 5 How To Confirm The Serial No. And Function Version

    Appendix 5 How to Confirm the Serial No. and Function Version. For the method to confirm the serial No. and function version, refer to the following manual. MELSEC-L CPU Module User's Manual (Hardware Design, Maintenance and Inspection) MELSEC-L CC-Link IE Field Network Head Module User's Manual...
  • Page 461: Appendix 6 Added Functions

    APPENDICES Appendix 6 Added Functions The following table lists availability of the added function. First 5 digits of the serial number of Added function GX Works2 the L series master/local module Connected devices auto-detection 14112 or later 1.98C or later function...
  • Page 462: Appendix 7 Differences Between The L Series Master/Local Module And Qj61Bt11N

    Appendix 7 Differences Between the L Series Master/Local Module and QJ61BT11N Appendix 7.1 Specification comparison The following lists the specification comparison between the L series master/local module and QJ61BT11N. Difference Item Reference L series master/local module QJ61BT11N Automatic CC-Link startup •...
  • Page 463: Appendix 8 When Using The Gx Developer

    APPENDICES Appendix 8 When Using the GX Developer Appendix 8.1 Compatible software package Refer to the following manual. MELSEC-L CPU Module User's Manual (Hardware Design, Maintenance and Inspection) Appendix 8.2 Operation comparison The following shows the operating method to use the GX Developer. For details on the operation of GX Developer, refer to the Operating Manual of GX Developer.
  • Page 464 (2) How to set the temporary error invalid station Set the [Diagnostics] [CC-Link / CC-Link/LT Diagnostics] "Monitoring other station ..." "Invalid station if temporary error". Place the cursor at the station to be set as a temporary error invalid station and click "Setting/Cancel". (3) How to set the data link stop/restart Set the [Diagnostics] [CC-Link / CC-Link/LT Diagnostics].
  • Page 465 APPENDICES (4) Operating procedure of the host monitoring [Diagnostics] [CC-Link / CC-Link/LT diagnostics] Select "CC-Link" for "Module Setting". Specify the target module of Host monitoring for "Module No." or "I/O Address". Click the [Start Monitoring] button. (5) Operating procedure of the other station monitoring [Diagnostics] [CC-Link / CC-Link/LT diagnostics] Select "CC-Link"...
  • Page 466 (6) Operating procedure of the loop test [Diagnostics] [CC-Link / CC-Link/LT diagnostics] Select "CC-Link" for "Module Setting". Specify the target master module of loop test for "Module No." or "I/O Address". Click the [Start Monitoring] button. Click the [Loop Test] button. When checking the communication status of all stations Select "All stations"...
  • Page 467 APPENDICES (7) Operating procedure of the transmission speed test Start Connect all modules with Ver.1.10 compatible CC-Link dedicated cables. Checking prior to transmission speed test • Verify that the programmable controller CPU switch is set to "STOP". Set the following network parameters in GX Developer. •...
  • Page 468 Set SB0002 (Data link stop) to ON to stop data link. Set SB000B (Transmission speed test request) to ON to start transmission speed test. Upon start of the test, SB0185 (Transmission speed test accept status) is set to ON. Upon completion of the test, SB0186 (Transmission speed test completion status) is set to ON.
  • Page 469: Appendix 9 External Dimensions

    Appendix 9 External Dimensions The following describes the external dimensions of the LJ61BT11. For the external dimensions of L26CPU-BT and L26CPU-PBT, refer to the following manual. MELSEC-L CPU Module User's Manual (Hardware Design, Maintenance and Inspection) DIN rail center 28.5...
  • Page 470 Memo...
  • Page 471: Index

    INDEX Differences between the L series master/local ....460 module and QJ61BT11N ......54 Applicable system .
  • Page 472 ..21 Intelligent device station communication ....15 Intelligent function module ......412 .
  • Page 473 ......16 ....16,191 Remote station Transient transmission .
  • Page 474: Revisions

    Japanese Manual Version SH-080880-G This manual confers no industrial property rights or any rights of any other kind, nor does it confer any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual.
  • Page 475: Warranty

    WARRANTY Please confirm the following product warranty details before using this product. 1. Gratis Warranty Term and Gratis Warranty Range If any faults or defects (hereinafter "Failure") found to be the responsibility of Mitsubishi occurs during use of the product within the gratis warranty term, the product shall be repaired at no cost via the sales representative or Mitsubishi Service Company.
  • Page 476: Trademarks

    TRADEMARKS Microsoft and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. The company names, system names and product names mentioned in this manual are either registered trademarks or trademarks of their respective companies. In some cases, trademark symbols such as '' or '' are not specified in this manual.
  • Page 478 SH(NA)-080895ENG-F(2310)MEE MODEL: LJ61BT11-U-E MODEL CODE: 13JZ41 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:

L26cpu-pbtLj61bt11

Table of Contents