Mitsubishi Electric A1SJ71DN91 User Manual
Mitsubishi Electric A1SJ71DN91 User Manual

Mitsubishi Electric A1SJ71DN91 User Manual

Devicenet master module
Table of Contents

Advertisement

Quick Links

A1SJ71DN91,
AJ71DN91
User's manual
_______________________________________________________________________________________________________
SHNA 4004A

Advertisement

Table of Contents
loading

Summary of Contents for Mitsubishi Electric A1SJ71DN91

  • Page 1 A1SJ71DN91, AJ71DN91 User’s manual _______________________________________________________________________________________________________ SHNA 4004A...
  • Page 2 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 3 If a communication error occurs in the network of the DeviceNet, the communication error station enters the state shown below. (1) The master station (AJ71DN91, A1SJ71DN91) holds the data that was input from a slave station before the occurrence of a communication error.
  • Page 4 [Cautions on Mounting] CAUTION • Use the PC in an environment that conforms to the general specifications in the manual. Using the PC in environments outside the ranges stated in the general specifications will cause electric shock, fire, malfunction, or damage to/deterioration of the product. •...
  • Page 5 [Cautions on Startup and Maintenance] CAUTION • Always turn off all external power supply phases before touching any terminals. Failure to do this may result in malfunction. • Always turn off all external power supply phases before cleaning or tightening the terminal screws. Failure to do this may result in malfunction.
  • Page 6: Table Of Contents

    INTRODUCTION Thank you for purchasing the Mitsubishi MELSEC-A-series. Before using the equipment, please read the manual carefully to develop full familiarity with the functions and performance of MELSEC-A-series you have purchased, so as to ensure correct use. Please forward a copy of this manual to the end user. CONTENTS OUTLINE 1 –...
  • Page 7 FUNCTIONS 4 – 1 ~ 4 – 5 I/O Communication Functions ......................4 – 1 Message Communication Functions ....................4 – 3 4.2.1 Get attribute........................4 – 3 4.2.2 Set attribute ........................4 – 4 4.2.3 Read communication error information................4 – 5 SETTINGS AND PROCEDURES BEFORE OPERATION 5 –...
  • Page 8 APP – 1 ~ APP – 4 APPENDIX 1 External View....................... APP – 1 AJ71DN91..........................APP – 1 A1SJ71DN91..........................APP – 2 APPENDIX 2 Parameter Setting Sheet ....................APP – 3 APPENDIX 3 List of Communication Parameter with Each Maker’s Slave Station........ APP – 4 −...
  • Page 9: Features

    OUTLINE This manual gives information including the specifications and descriptions of parts of the AJ71DN91/A1SJ71DN91 DeviceNet Master Unit (hereafter AJ71DN91, A1SJ71DN91, or DN91), which is used in combination with the MELSEC-A/QnA Series PLC CPU. DN91 is the DeviceNet master station which controls the DeviceNet devices.
  • Page 10 1. OUTLINE MELSEC-A REMARK When a network analyzer is connected to monitor the DeviceNet network, DN91 is recognized as a product of the Hilscher company. −...
  • Page 11: Communication Outline

    1. OUTLINE MELSEC-A 1.2 Communication Outline 1.2.1 Network configuration The DN91-based DeviceNet network is configured as shown below. Master station Drop line Trunk line Network power supply unit Termination (24 VDC) resistance Slave station Slave station Termination resistance Power tap Drop line (branch) Slave station Slave station...
  • Page 12 1. OUTLINE MELSEC-A (1) Network Specifications This section describes the network specifications of a DeviceNet using DN91. (a) Communication Speed The communication speed can be selected as 125, 250, or 500 kbaud using a sequence program or a configuration software. The maximum cable length depends on the communication speed.
  • Page 13: Outline Of Parameter Settings

    1. OUTLINE MELSEC-A 1.2.2 Outline of parameter settings Parameter setting is required in advance to communicate with slave stations. The parameters include DeviceNet communication speed, station number (MAC ID) of DN91, the number of I/O points of slave stations etc. They are set in any of the following methods and stored in separate areas of E PROM inside DN91.
  • Page 14 1. OUTLINE MELSEC-A (2) Outline of Message Communication Message communication is a function to read and write slave station attribute data. An outline of message communication is shown below. See 4.2 Message Communication Functions for details. (a) Reading attributes PLC CPU DN91 Slave station Device...
  • Page 15 1. OUTLINE MELSEC-A (b) Writing attributes PLC CPU DN91 Slave station Device Message Class communication command area Instance D, R Attribute Message communication Attribute data area (Up to 240 byte) Device Class Instance FROM Message D, R communication Attribute result area Instance Attribute Attribute...
  • Page 16 1. OUTLINE MELSEC-A (c) Reading communication error information PLC CPU DN91 Slave station communi- cation Device Class 1 Message communication Instance command area D, R Attribute Attribute Slave information storage area Device Instance FROM Message Attribute communication Attribute result area D, R Attribute Message...
  • Page 17: System Configuration 2 - 1

    A master station can communicate with up to 63 slave stations. Each station is connected via a tap on the trunk line or is directly connected to the trunk line. The system configuration using AJ71DN91/A1SJ71DN91 as the master station is described below.
  • Page 18: System Configuration With A Devicenet Master Unit

    STOP L.CLR ERROR RESET RESET Trunk line or drop line PULL PLC CPU 1SJ71DN91 L.RUN DeviceNet RS-232-C Main base DeviceNet master unit AJ71DN91 A1SJ71DN91 RS-232C cross-cable Extension Cable Extension base Configuration unit (*) *: PC/AT-compatible computer + configuration software −...
  • Page 19: Applicable Systems

    Mountable CPUs and number of units Table 2.1 shows which PLC CPUs can be mounted and the number of units. Table 2.1 Mountable CPUs and Number of Units Number of Mountable Units Mounting Position A1SJ71DN91 AJ71DN91 A0J2CPU Cannot be used A0J2HCPU...
  • Page 20: Important Points About The System Configuration

    2. SYSTEM CONFIGURATION MELSEC-A 2.2.2 Important points about the system configuration This section gives some important points about configuration of a DeviceNet network system. (1) Maximum Number of Units Units up to the number of CPU I/Os may be installed. The DN91 uses 32 I/O points and one slot.
  • Page 21: Operating Environment Of The Configuration Software (Parameter Setting Tool)

    2. SYSTEM CONFIGURATION MELSEC-A 2.2.3 Operating environment of the configuration software (parameter setting tool) This section describes the operating environment when setting DN91 parameters with the configuration software. The configuration software is a peripheral device which installs the following configuration software in a personal computer to allocate communication data for each slave station to the DeviceNet master station.
  • Page 22: Products Connectable To A Slave Station

    2. SYSTEM CONFIGURATION MELSEC-A REMARK Configurator suppliers are listed below. • USA Synergetic Micro Systems, Inc. 2506 Wisconsin Ave. Downers Grove, IL USA 60515 TEL: +1-630-434-1770 FAX: +1-630-434-1987 • Germany Hilscher Gesellschaft füE Systemautomation GmbH Rheinstrasse 78 D-65795 Hattersheim Germany TEL: +49-6190-9907-0 FAX: +49-6190-9907-50 •...
  • Page 23: Specifications 3 - 1

    3. SPECIFICATIONS MELSEC-A SPECIFICATIONS 3.1 General Specifications Table 3.1 shows the general specifications of the DN91. Table 3.1 General Specifications Item Specification Operating ambient 0 to 55 °C temperature Operating ambient 10 to 90 %RH, no condensation humidity Storage ambient - 20 to 75 °C temperature Storage ambient...
  • Page 24: Performance Specifications

    Internal current consumption 0.24 at 5 VDC (A) Product weight (kg) A1SJ71DN91: 0.23, AJ71DN91: 0.43 *: See the DeviceNet Specifications (Release 2.0) Volume 1 and Volume 2 for details about the maximum cable lengths. 3.2.1 Maximum transfer distance of a trunk line that contains both thick and thin cables This section shows the maximum transfer distances for thick cable/thin cable com-binations.
  • Page 25: Table Of I/O Signals

    3. SPECIFICATIONS MELSEC-A 3.3 PLC CPU I/O Signals This section describes the I/O signals for the DN91 PLC CPU. 3.3.1 Table of I/O signals Table 3.3 shows the table of DN91 I/O signals. The letter "n" in the table represents the leading I/O number of DN91. It is determin-ed by the position installed and the unit installed before DN91.
  • Page 26 3. SPECIFICATIONS MELSEC-A Important The output signals designated as "unusable" in Table 3.3 are reserved for system use and are not available to the user. Normal operation cannot be guaranteed if the user operates one of these output signals (that is, turns the signal ON or OFF). −...
  • Page 27: I/O Signal Details

    3. SPECIFICATIONS MELSEC-A 3.3.2 I/O signal details This section explains the I/O signal ON/OFF timing and conditions. (1) Watchdog timer error: Xn0 Turns ON if an error occurs in DN91. OFF: Unit normal Unit abnormal Watchdog timer error (Xn0) Unit ready (XnF) (2) Refreshing: Xn1, Refresh request: Y(n+1)1 These signals determine whether the data in the input data area and output data area of the buffer memory is used to refresh the network.
  • Page 28 3. SPECIFICATIONS MELSEC-A (3) Message communication complete : Xn2 Message communication error signal : Xn5 Message communication request : Y(n+1)2 These signals are used for message communication. Message communication is conducted if the status of the master communication status area in buffer memory is "operation in progress."...
  • Page 29 3. SPECIFICATIONS MELSEC-A (5) Slave down signal: Xn4 This signal indicates whether any slave station has stopped communication. (a) This signal turns ON if any slave station for which parameters are set stops communication. OFF : All stations communicating normally ON : Abnormal communication at a station Which station has stopped communication can be confirmed from the station communication status area at addresses 01BC...
  • Page 30: Buffer Memory

    3. SPECIFICATIONS MELSEC-A (7) Unit ready: XnF This signal indicates whether the unit is able to operate. It turns ON automatically when unit operation is enabled. 3.4 Buffer Memory Buffer data is used for data communication between DN91 and the PLC CPU. It is used for reading and writing of DN91 buffer memory data and for the PLC CPU FROM/TO instructions.
  • Page 31: Details Of The Buffer Memory

    3. SPECIFICATIONS MELSEC-A 3.4.2 Details of the buffer memory This section describes details about the items listed in Table 3.4. (1) Input Data (Addresses : 0000 to 007F /0 to 127) Data received from each slave station is saved. The order of the data differs according to whether the parameters were set by a sequence program or by the configuration software.
  • Page 32 3. SPECIFICATIONS MELSEC-A (b) Parameters set by configuration software The buffer memory address at which the input data for each station is stored is shown in the diagram below. The address is displayed for the Customized I/O data, I. Addr item on the screen. The memory address is determined by the value of the Customized I/O data, I.
  • Page 33 3. SPECIFICATIONS MELSEC-A 2) If the addressing mode is word addressing The setting screen appears as: and the relationship between the buffer memory address and I. Addr is a 1:1 correspondence, as shown in the diagram below. 0000 0001 0002 0003 0004 0005...
  • Page 34 3. SPECIFICATIONS MELSEC-A (b) Parameters set by configuration software The buffer memory address at which the input data for each station is stored is displayed for the Customized I/O data, O. Addr item on the configuration software screen. The memory address is determined by the value of the Customized I/O data, O. Addr item on the configuration software screen and the addressing mode set from the configuration software Master Setting screen.
  • Page 35: Buffer Memory Table

    3. SPECIFICATIONS MELSEC-A (3) Message Communication Commands (Addresses - 0110 to 011F /272 to 287) TO command is used to write the message communication command. (a) Reading Attribute Data from a Slave Station 1) Set the command data in the message communication command area using the TO instruction.
  • Page 36 3. SPECIFICATIONS MELSEC-A (c) Reading error information from a slave station 1) Set the command data in the message communication command area using the TO instruction. 2) Turn ON message communication request (Y(n+1)2) with a sequence program. 3) Once reading action completes, the message communication complete (Xn2) automatically turns ON.
  • Page 37 3. SPECIFICATIONS MELSEC-A Buffer Memory Address Item Contents (Hexadecimal) 0120 Command number 0102 = Set Attribute Normal completion: 0000 0121 Execution error code Error : Execution error code Slave station Lower byte: Slave station number (MAC ID) 0112 number (slave MAC Upper byte: Object class ID ID), class ID 0123...
  • Page 38 3. SPECIFICATIONS MELSEC-A (b) Set Attribute Data Attribute data to be written via message communication is written as a byte string . 0130 Second byte First byte Fourth byte Third byte Sixth byte Fifth byte Write attribute data 01A7 (c) Read Communication Error Information Stores read communication error information.
  • Page 39 3. SPECIFICATIONS MELSEC-A 1) Slave status The problem at a slave station is notified by turning bits ON and OFF, as shown in the diagram below. 0130 Bit 15 to bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1...
  • Page 40 3. SPECIFICATIONS MELSEC-A 2) Table 3.14 shows the DeviceNet general error codes Table 3.14 Table of DeviceNet General Error Codes Error Code Error Name Description Hexadecimal Decimal 0000 to 0001 0 to 1 Reserved Reserved by DeviceNet. The requested service could not be run as the required resource 0002 Resource unavailable was not free.
  • Page 41 3. SPECIFICATIONS MELSEC-A (6) Master Communication Status (Address 01B0 /432) The master communication status is shown by the upper and lower bytes, as shown below. (a) Upper Byte This byte shows the DN91 I/O communication status. It contains a value indicating the communication status, as shown in Table 3.15.
  • Page 42 3. SPECIFICATIONS MELSEC-A (7) Error Information (Address 01B1 /433) Stores the detected communication error code. (a) The error information is stored in the error information area when an error occurs. The error set signal (Xn3) turns ON. (b) The data in the "Error information" area is cleared by turning ON the error reset request (Y(n+1)3) through the sequence program.
  • Page 43 3. SPECIFICATIONS MELSEC-A (11) Station Communication Status (Address 01BC to 01BF /444 to 447) Stores whether or not I/O communication is normal for each slave station. • If a bit is ON, I/O communication • If a bit is OFF, I/O communication interrupted The buffer memory addresses and the station number corresponding to each bit are shown in Table 3.17.
  • Page 44 3. SPECIFICATIONS MELSEC-A (13) Down-station Detection Disabled Setting (Address 01CC to 01CF /460 to 463) This setting determines whether the down status of a slave station shown in the Station Communication Status (Address 01BC to 01BF /444 to 447) is reflect-ed in the slave down signals (Xn4).
  • Page 45 3. SPECIFICATIONS MELSEC-A (14) Parameters (Address 0154 to 034F /340 to 847) Used to set parameters via the sequence program. The parameters set by a sequence program are written to E PROM. Once parameters have been set, they do not require setting again until changes are made to the parameters.
  • Page 46 3. SPECIFICATIONS MELSEC-A Buffer Memory Item Contents Address (16 hex) Slave station watchdog timeout action Set value = 0000 (default value) Equal to TIMEOUT below. Set value = 0001 : TIMEOUT Connection enters timeout status. Can only be reset by the Watchdog timeout action for the operator stopping and restarting communication.
  • Page 47 3. SPECIFICATIONS MELSEC-A Buffer Memory Item Contents Address (16 hex) Same as with the first slave station 02D8 to 02DF Setting for the 33rd slave station Same as with the first slave station 02E0 to 02E7 Setting for the 34th slave station Same as with the first slave station 02E8 to 02EF...
  • Page 48 3. SPECIFICATIONS MELSEC-A Table 3.21 Details of Expected Packet Rate and Production Inhibit Time Expected Packet Rate Production Inhibit Time (1) Set the communication watchdog timer value for a (1) Set the minimum transmission interval, or the slave station. Any interruption of communication minimum time a slave can get the transmission data between the master and slave stations for the time ready.
  • Page 49: Functions

    4. FUNCTIONS MELSEC-A FUNCTIONS This section describes the functions. The DN91 offers the following two types of functions. Proper parameter setting is required in advance. • I/O communication functions (see Section 4.1) • message communication functions (see Section 4.2) 4.1 I/O Communication Functions The I/O communication functions conduct I/O data communication with the slave stations.
  • Page 50 4. FUNCTIONS MELSEC-A [Input Data] The input status of each slave station is automatically stored in the input data area of the DN91 buffer memory. The input statuses stored in the input data area of the buffer memory are read to the PLC CPU using sequence program FROM instruction.
  • Page 51: Message Communication Functions

    4. FUNCTIONS MELSEC-A 4.2 Message Communication Functions The message communication functions read and write data to the slave station special area. 4.2.1 Get attribute PC CPU DN91 Slave station (MAC ID) Class 0110 Message communication Instance command area 011F Attribute Message communi- Y(n+1)2 Attribute...
  • Page 52: Set Attribute

    4. FUNCTIONS MELSEC-A 4.2.2 Set attribute PC CPU DN91 Slave station (MAC ID) 0110 Class Message communication Iinstance command area 011F Attribute 0130 Message Attribute communication data area 01A7 Message communi- Y(n+1)2 Class cation request Instance 0120 Message communication Attribute result area 012F Instance...
  • Page 53: Read Communication Error Information

    4. FUNCTIONS MELSEC-A 4.2.3 Read communication error information PC CPU DN91 Slave station (MAC ID) I/O Communi- cation 0110 Class 1 Message communication Instance command area 011F Attribute Message communi- Y(n+1)2 cation request Attribute Instance Slave information storage area Attribute Attribute 0120 Message...
  • Page 54: Settings And Procedures Before Operation

    5. SETTINGS AND PROCEDURES BEFORE OPERATION MELSEC-A SETTINGS AND PROCEDURES BEFORE OPERATION This section describes the procedure before start-up of a system using DN91. 5.1 Settings and Procedures 5.1.1 DN91 start-up procedure when setting parameters with a sequence program Start Develop a parameter-setting sequence program.
  • Page 55: Dn91 Start-Up When Setting Parameters With The Configuration Software

    5. SETTINGS AND PROCEDURES BEFORE OPERATION MELSEC-A 5.1.2 DN91 start-up when setting parameters with the configuration software Start Obtain EDS file for the slave station used from the manufacturer of the station. Copy the EDS file onto the EDS storage folder of the configuration software.
  • Page 56: Mounting And Installation

    ⋅ ⋅ ⋅ ⋅ cm (kg cm) [lb inch] A1SJ71DN91 Module mounting screw 78 to 118 (8 to 12) [6.93 to 10.48] DeviceNet Connector screw 35.3 to 48.0 (3.6 to 4.9) [3.13 to 4.26] DeviceNet Connector wire screw 60.8 to 82.3 (6.2 to 8.3) [5.40 to 7.31] 5.2.2...
  • Page 57: Nomenclature

    5. SETTINGS AND PROCEDURES BEFORE OPERATION MELSEC-A 5.3 Nomenclature This section describes the AJ71DN91 and A1SJ71DN91 parts. AJ71DN91 J71DN91 L.RUN DeviceNet connector DeviceNet RS-232-C RS-232C connector A1SJ71DN91 1SJ71DN91 L.RUN DeviceNet connector DeviceNet RS-232-C RS-232C connector −...
  • Page 58: Led Displays And Indicator Descriptions

    5. SETTINGS AND PROCEDURES BEFORE OPERATION MELSEC-A 5.4 LED Displays and Indicator Descriptions This section describes the names of the LEDs at the top of the AJ71DN91 and A1SJ71DN91 front panel and provides indicator descriptions. Color Description LED Display Status...
  • Page 59: Connecting Communication Cable To Dn91

    5. SETTINGS AND PROCEDURES BEFORE OPERATION MELSEC-A 5.5 Connecting Communication Cable to DN91 (1) Connecting communication cables This section describes how to connect the communication cable to the DN91. V+ (red) CAN_H (white) Shield (drain wire) CAN_L (blue) V- (black) The DN91 DeviceNet connector is shown in the diagram above.
  • Page 60: Instructions For Connecting The Network Power Supply

    5. SETTINGS AND PROCEDURES BEFORE OPERATION MELSEC-A 5.6 Instructions for Connecting the Network Power Supply This sections describes the instructions for connecting the network power supply. 5.6.1 Network power supply unit installation position Follow the procedure below to determine the position to install the network power supply unit. 1) Calculate the current consumption of the stations required on the network.
  • Page 61: Calculating Network Power Supply Unit Installation Position And Current Capacity

    5. SETTINGS AND PROCEDURES BEFORE OPERATION MELSEC-A 5.6.2 Calculating network power supply unit installation position and current capacity This section describes the calculating network power supply unit installation position and current capacity. (1) Network power supply unit connected to an end of the network The current capacity is calculated as shown below when the network power supply unit is connected to the end of a thick-cable network with a total length of 200 m.
  • Page 62 5. SETTINGS AND PROCEDURES BEFORE OPERATION MELSEC-A (3) Remedy for Insufficient Network Power Supply Current Capacity If the network power supply unit is connected to a thick-cable network, as shown below. Network power supply unit Termination Termination resistance resistance Master station Slave station Slave station Slave station...
  • Page 63 5. SETTINGS AND PROCEDURES BEFORE OPERATION MELSEC-A (4) Mixed Trunk Line and Drop Line The current capacity is calculated as shown below when the network power supply unit is connected network with thick-cable trunk line 6 m of thin-cable drop line. Network power supply unit...
  • Page 64: Parameter Settings

    6. PARAMETER SETTINGS MELSEC-A PARAMETER SETTINGS This section describes parameter settings required DN91 operation. The following two methods are available to set the parameters: Parameters that have been set are stored in separate areas on E PROM within DN91. Once the parameters are set, no subsequent parameter setting is required as long as no change in the parameters is necessary.
  • Page 65: Setting With A Sequence Program

    6. PARAMETER SETTINGS MELSEC-A Setting the address mode to the byte address using the configuration software may result in the division of a word data into upper and lower bytes and may be stored in separate addresses of the buffer memory. For that reason, data processing by the sequence program may be required.
  • Page 66: Setting Parameters With The Configuration Software (Parameter Setting Tool)

    6. PARAMETER SETTINGS MELSEC-A 6.4 Setting Parameters with the Configuration Software (Parameter Setting Tool) This system gives an outline of the setting method using the configuration software. While the following explanations are based on screens of SyCon Ver. 2.0.6.2, the screen hierarchy and items of the setting are subject to change due to potential changes in the specifications of the configuration software.
  • Page 67: Setting Master Parameters

    6. PARAMETER SETTINGS MELSEC-A 6.4.2 Setting master parameters Set the master parameters on the screen below. Set the items as follows: 1) Startup behavior after system initialization Select "Controlled release of the communication by the application program." 2) User program monitoring This is the time to monitor whether the DN91 is operating normally (units: 1 msec).
  • Page 68: Setting Bus Parameters

    6. PARAMETER SETTINGS MELSEC-A 6.4.3 Setting bus parameters Set the bus parameters on the screen below. Set the items as follows: 1) Baudrate Select one of the following baud rate settings: • 125 Kbit/s (125 kbaud) • 250 Kbit/s (250 kbaud) •...
  • Page 69: Set The Device (Slave Station) Parameters

    6. PARAMETER SETTINGS MELSEC-A 6.4.4 Set the device (slave station) parameters Set the slave station parameters on the screen below. Set the items as follows: 1) MAC ID Set the slave station number as a value from 0 to 63. 2) Description Enter a name for the slave station.
  • Page 70 6. PARAMETER SETTINGS MELSEC-A 9) Watchdog timeout action Set the action on a watchdog timeout. See 3.4.2(14) Parameters for details about the settings. 10) Configured I/O connection data and its offset address Set the I/O module configuration. Also, set I. Addr and O. Addr to the DN91 buffer memory address allocated to the I/O module I/O data.
  • Page 71: Programming

    7. PROGRAMMING MELSEC-A PROGRAMMING This section describes how to create programs. 7.1 Important Points about Programming Follow the points below when creating a program. (1) Creating a Slave Station I/O Communication Program • Place the I/O communication reading program at the beginning of the sequence program.
  • Page 72: System Configuration

    7. PROGRAMMING MELSEC-A 7.2 System Configuration The program described in this section is based on the system described below. 1) DN91 is set to station number 5, the first sensor is set to station number 1, and the second remote I/O is set to station number 0. 2) Bit strobe communication...
  • Page 73 7. PROGRAMMING MELSEC-A The relationship between the PLC CPU, master station buffer memory, first slave station (remote I/O), and second slave station (remote I/O) is shown below. DN91 master station PLC CPU Remote I/O (station number 4) 16-point input Input data FROM Status X10F to X100...
  • Page 74: Setting Parameters With A Sequence Program

    7. PROGRAMMING MELSEC-A 7.3 Setting Parameters with a Sequence Program This section describes a sample sequence program to set parameters. Parameter set command MOVP Set host station to 1. MOVP Set baud rate to 500 kbps. MOVP H104 Set first slave station (sensor) to station number 4.
  • Page 75 7. PROGRAMMING MELSEC-A The relationship between PLC CPU and master station buffer memory and the meaning of buffer memory data is shown below. PLC CPU Buffer memory 01D4 Stores host station number 1 01D5 Stores baud rate = 500 kbaud −...
  • Page 76: I/O Communication With Slave Stations

    7. PROGRAMMING MELSEC-A I/O Communication with Slave Stations This section describes a sample sequence program to conduct I/O communication. 7.4.1 Reading slave station I/O data Parameter setting Parameter setting program program (see Section 7.3) Parameter request program Refresh command Output data initial value K4Y100 setting Refresh request...
  • Page 77: Message Communication

    7. PROGRAMMING MELSEC-A Message Communication This section describes a sample sequence program to conduct message communication. 7.5.1 Message communication - reading The following sample program represents a case of reading attributes of expected packet rate for the polling connection from the station number 3. Read attributes Writing...
  • Page 78: Message Communication - Writing

    7. PROGRAMMING MELSEC-A 7.5.2 Message communication - writing The following sample program represents a case of writing attributes of expected packet rate for the polling connection from the station number 3. Write attributes Reading Set onto D30 the data to K1000 be written.
  • Page 79: Acquiring Error Information

    7. PROGRAMMING MELSEC-A Acquiring Error Information This section describes a sample sequence program to acquire error information. FROMP H1B1 D500 Read error information D501 D500 WANDP H0FF Station number generating error MOVP D500 D502 Error information SFRP D502 Error code Error reset Set error reset request Reset error reset request...
  • Page 80: Troubleshooting

    8. TROUBLESHOOTING MELSEC-A TROUBLESHOOTING This section describes errors which may occur when using a DN91 master unit and the troubleshooting procedures. This section is divided into the following sub-sections. Section 8.1 Troubleshooting Tables Determine the appropriate remedy from the symptom of the problem. Section 8.2 Troubleshooting using LED Indications Determine the appropriate remedy from the LED indicator status.
  • Page 81: Troubleshooting By Symptom Type

    8. TROUBLESHOOTING MELSEC-A 8.1 Troubleshooting Tables Determine the appropriate remedy from the symptom of the problem. 8.1.1 Troubleshooting by Symptom Type Refer to the following tables to determine the appropriate remedy for the symptom. Symptom Check Item Remedy No Communication With Any Slave Station Is communication cable connected to the DN91 DeviceNet interface connector? Correctly connect the cable.
  • Page 82 8. TROUBLESHOOTING MELSEC-A Symptom Check Item Remedy Is the power supply connected to that station? Turn ON the slave station power supply. Replace with a power supply of larger capacity. Is the network power supply capacity sufficient? Add a power supply. Reduce the network load.
  • Page 83 8. TROUBLESHOOTING MELSEC-A Symptom Check Item Remedy Is the correct I/O data area referred to in buffer memory? Check that the I/O data area is correct, referring to 3.4.2 Set the correct reference area. Details of the Buffer Memory. Make the baud rate setting match the Is the correct baud rate set for the slave station? baud rate setting at the slave station.
  • Page 84: Problems Due To Incorrect Parameter Settings

    8. TROUBLESHOOTING MELSEC-A 8.1.2 Problems due to incorrect parameter settings Refer to the following tables to determine the appropriate remedy for problems arising due to incorrect parameters or an incorrect sequence program. Symptom Check Item Remedy Parameters Cannot be Set by Ensure refresh request (Y(n+1)1) does Is refresh request (Y(n+1)1) ON before parameter set Sequence Program...
  • Page 85: Errors Caused By Incorrect Parameter Settings Or Abnormal Network

    8. TROUBLESHOOTING MELSEC-A 8.2.2 Errors caused by incorrect parameter settings or abnormal network L.RUN Status Check item Remedy   Communication stopped Are parameters set? Set parameters. Parameters are defective if   ¥ Communication ready Wait and see flashing continues. Repair or replace the parameters.
  • Page 86 8. TROUBLESHOOTING MELSEC-A L.RUN Status Check item Remedy Is a station number used for Duplicate station number error Correct the station numbers. more than one station? Is the same baud rate set for all Set the same baud rate for all stations? stations.
  • Page 87: Troubleshooting Using Error Codes

    8. TROUBLESHOOTING MELSEC-A 8.3 Troubleshooting Using Error Codes Determine problem appropriate remedy from error codes. Error codes include communication error codes and execution error codes for message communication. (1) Check the details of the communication error codes by turning on the error reset signal (Xn3) to read the error codes.
  • Page 88 8. TROUBLESHOOTING MELSEC-A (2)In case the error-detected station number (lower byte of the error data) is FE Error Error Details Remedy Code Detected • Set the host station number within 0000 Host station number (MAC ID) in the buffer to 0003 DN91 memory is out of range.
  • Page 89 8. TROUBLESHOOTING MELSEC-A (3) In case the error-detected station number (lower byte of the error information) is any value other than FF and FE Error Error Details Remedy Code Detected A fault has been detected with the network after • Check if cables are properly connected. DN91 communication being started.
  • Page 90: Execution Error Codes For Message Communication

    8. TROUBLESHOOTING MELSEC-A 8.3.2 Execution error codes for message communication The execution error codes are stored at address 00A1 in buffer memory. Normal completion : 0000 Faulty : Execution error code Buffer memory 0121 Normal completion : 0000 Faulty : Execution error code (1) Reading communication error information Error Error...
  • Page 91 8. TROUBLESHOOTING MELSEC-A Error Error Details Remedy Code Detected • Check if the designated station number, class ID, instance ID, and attribute ID are correct. Slave • Refer to the slave station manual to determine the The enabled/privilege check failed station conditions for the slave station to notify this error, and take the appropriate remedy.
  • Page 92: Appendices

    APPENDICES MELSEC-A APPENDICES APPENDIX 1 External View 1.1 AJ71DN91 J71DN91 L.RUN DeviceNet RS-232-C 106 (4.17) 37.5 (1.48) (0.17) Unit : mm (inch) −...
  • Page 93: A1Sj71Dn91

    APPENDICES MELSEC-A 1.2 A1SJ71DN91 1SJ71DN91 L.RUN DeviceNet RS-232-C 93.6 (3.69) 34.5 (1.36) (0.26) Unit : mm (inch) −...
  • Page 94: Appendix 2 Parameter Setting Sheet

    APPENDICES MELSEC-A APPENDIX 2 Parameter Setting Sheet Buffer Memory Item Setting Range Comments Address Value Host station number 0000 to 003F (host 01D4 Station numer of DN91. (0 to 63) station MAC ID) 1: 500kbaud Baud rate 1 to 3 01D5 2: 250kbaud 3: 125kbaud...
  • Page 95: Appendix 3 List Of Communication Parameter With Each Maker's Slave Station

    APPENDICES MELSEC-A APPENDIX 3 List of Communication Parameter with Each Maker’s Slave Station Examples of parameter setting for communicating with each maker’s slave station are listed below. Contact each maker for inquires about the details of parameter setting. Set Value(in brackets set value when parameters are set with a sequence Remark program is indicated) Number of...

This manual is also suitable for:

Aj71dn91

Table of Contents