Mitsubishi Electric FX2N-485-BD User Manual

Mitsubishi Electric FX2N-485-BD User Manual

Fx2n series melsec-f programmable controllers communication board
Hide thumbs Also See for FX2N-485-BD:

Advertisement

USER'S MANUAL
FX
-485-BD COMMUNICATION BOARD
2N

Advertisement

Table of Contents
loading

Summary of Contents for Mitsubishi Electric FX2N-485-BD

  • Page 1 USER'S MANUAL -485-BD COMMUNICATION BOARD...
  • Page 2 USER'S MANUAL -485-BD COMMUNICATION BOARD HEAD OFFICE: MITSUBISHI DENKI BLDG MARUNOUCHI TOKYO 100 TELEX: J24532 CABLE MELCO TOKYO HIMEJI WORKS: 840, CHIYODA CHO, HIMEJI, JAPAN JY992D66201A Effective JUN. 1997 (MEE 9706) Specifications are subject to change without notice.
  • Page 3 -485-BD COMMUNICATION BOARD...
  • Page 4 -485-BD COMMUNICATION BOARD Foreword • This manual contains text, diagrams and explanations which will guide the reader in the correct installation and operation of the FX -485-BD COMMUNICATION BOARD. It should be read and understood before attempting to install or use the unit.
  • Page 5 All examples and diagrams shown in this manual are intended only as an aid to understanding the text, not to guarantee operation. MITSUBISHI ELECTRIC will accept no responsibility for actual use of the product based on these illustrative examples.
  • Page 6 -485-BD COMMUNICATION BOARD -485-BD COMMUNICATION BOARD Manual number: JY992D66201 USER’S MANUAL Manual revision: Date: JUNE 1997...
  • Page 7 -485-BD COMMUNICATION BOARD Guidelines for the safety of the user and protection of the FX -485-BD COMMUNICATION BOARD. This manual provides information for the installation and use of the FX -485-BD COMMUNICATION BOARD. The manual has been written to be used by trained and competent personnel. The definition of such a person or persons is as follows; a) Any engineer who is responsible for the planning, design and construction of automatic equipment using the product associated with this manual should be of a competent nature, (trained and qualified to the local and national standards required to fulfill that role).
  • Page 8 -485-BD COMMUNICATION BOARD Note’s on the symbology used in this manual At various times through out this manual certain symbols will be used to highlight points of information which are intended to ensure the users personal safety and protect the integrity of the equipment. Whenever any of the following symbols are encountered, its associated note must be read and understood.
  • Page 9: Table Of Contents

    -485-BD COMMUNICATION BOARD CONTENTS INTRODUCTION ........1-1 1.1 External Dimensions .
  • Page 10 -485-BD COMMUNICATION BOARD RS EXAMPLE PROGRAM ....... . 5-1 5.1 Printer ......... . 5-1 5.1.1 System Configuration .
  • Page 11 -485-BD COMMUNICATION BOARD 7.3.1 Setting the Station No. (D8176) ......7-4 7.3.2 Setting the Total Number of Slave Stations (D8177) ....7-4 7.3.3 Setting the Refresh Range (D8178) .
  • Page 12: Introduction

    -485-BD COMMUNICATION BOARD INTRODUCTION INTRODUCTION The communication board FX -485-BD for RS485 (hereinafter referred to as “485BD”) can be connected to the base unit of the FX Series PC to be used for the following applications. (1) Data transfer using the no protocol Data communication with diversified RS232C units including personal computers, bar code readers and printers can be performed via the RS485 (422) converter using the no protocol.
  • Page 13: External Dimensions

    -485-BD COMMUNICATION BOARD INTRODUCTION External Dimensions Accessory : M3 self-tapping screws × 2, Dimensions : mm (inches) Terminal resistor 330 Ω × 2 110 Ω × 1 Mounting holes (2- φ4.0(0.16")) Connector for programmable controller SD LED : Flashes at high speed during sending. RD LED : Flashes at high speed during sending.
  • Page 14: System Configuration

    -485-BD COMMUNICATION BOARD INTRODUCTION System Configuration 1.2.1 When Use No Protocol or Dedicated Protocol RS422/485 Unit FX/FX A series A series 485BD -485ADP (ON) Porgrammable controller's computer link unit When use 485BD in the system, total extension distance 50m. (No use : max. 500m) When use dedicated protocol, max.
  • Page 15: When Use N:n Network

    -485-BD COMMUNICATION BOARD INTRODUCTION 1.2.3 When Use N:N Network Master Slave Slave Slave 485BD 485BD 485BD 485BD Total extension distance 50m, max. 8 stations.
  • Page 16: Mounting And Wiring

    -485-BD COMMUNICATION BOARD MOUNTING AND WIRING MOUNTING AND WIRING Mounting Procedure Turn off the power of the programmable controller, and mount the 485BD using the following procedure. Remove the panel cover from the top face of the base unit. Connect the connector for programmable controller provided on the 485BD to the board mounting connector provided on the base unit.
  • Page 17: Cable And Terminal Resistor

    -485-BD COMMUNICATION BOARD MOUNTING AND WIRING Cable and Terminal Resistor 2.2.1 Cable To connect the RS485 (422) unit, use a shielded twist-pair cable. The cable model must be the AWG 26 to 16, and the maximum tightening torque must be 0.6 Nm (6 kgf•cm). If a cable other than the AWG 26 to 16 is used, normal communication cannot be assured because the terminal may be imperfectly contacted.
  • Page 18: Selection Of Wiring

    -485-BD COMMUNICATION BOARD MOUNTING AND WIRING 2.2.2 Selection of Wiring (1) When two-pair wiring is required. 1) When an RS422 unit is connected. 2) When N:N network no use. 3) When the dedicated protocol is used and high speed response is equired (when the transmission sentence wait time is required to be 70 ms or less).
  • Page 19: Terminal Resistor

    -485-BD COMMUNICATION BOARD MOUNTING AND WIRING 2.2.3 Terminal Resistor Provide the terminal resistor at the both ends of the line as described in Paragraphs 2-3 and 2-4. 1) In the case of two-pair wiring, connect the terminal resistor Orange Orange Brown (330 Ω, 1/4 W) between terminals SDA and SDB as well as between terminals RDA and RDB.
  • Page 20: Two-Pair Wiring

    -485-BD COMMUNICATION BOARD MOUNTING AND WIRING 2.2.4 Two-pair Wiring A series programmable RS485/422 unit 485BD -485ADP (ON) controller ' s computer link unit LINK Grounding of resistance 100 or less *1 R is the terminating resistance. Connect the terminating resistance (330 Ω) between terminals SDA and SDB, and terminals RDA and RDB.
  • Page 21: One-Pair Wiring

    -485-BD COMMUNICATION BOARD MOUNTING AND WIRING 2.2.5 One-pair Wiring A series programmable -485ADP RS485 unit 485BD (ON) controller ' s computer link unit LINK Grounding of resistance 100 or less *1 R is the terminating resistance. Connect the terminating resistance (110 Ω) between terminals SDA and SDB. *2 Shield of connect the 485BD to shielded twist-pair cable must be connected to ground (100 Ω...
  • Page 22: Specification

    -485-BD COMMUNICATION BOARD SPECIFICATIONS SPECIFICATION General Specification General specifications is same as those for the FX series programmable controller. Power Supply Specification 5V DC, 60 mA is supplied as the power from the programmable controller. Specification Transmission standard Conforming to RS485 and RS422 Transmission distance Max.
  • Page 23 -485-BD COMMUNICATION BOARD SPECIFICATIONS MEMO...
  • Page 24: Communication Format

    -485-BD COMMUNICATION BOARD COMMUNICATION FORMAT COMMUNICATION FORMAT This chapter contains diagnostic devices (related flags and data registers) and communication format use with no protocol and dedicated protocol communications. For details of the RS instruction, refer to the FX PROGRAMMING MANUAL. For details of the dedicated protocol, refer to the users manual of the FX-485PC-IF.
  • Page 25: Communication Format D8120

    -485-BD COMMUNICATION BOARD COMMUNICATION FORMAT Communication Format D8120 To send and receive the data between the RS485 (422) unit using the 485BD, the communication format including the transmission speed (baud rate) and the parity must be consistent between the 485BD and the RS485 unit. The communication format can be set using the parameters or the contents of the special data register D8120 of the FX programmable controller.
  • Page 26 -485-BD COMMUNICATION BOARD COMMUNICATION FORMAT Contents Bit No. Meaning 0 (OFF) 1 (ON) Header None D8124 *2 character *1 Terminator None D8125 *3 character *1 Control line None H / W type I *4 DTR check (Control line) Send and Receive Receive Control line None...
  • Page 27: Example Program Of Setting

    -485-BD COMMUNICATION BOARD COMMUNICATION FORMAT 4.2.1 Example Program of Setting The communication format is set by special data register D8120. Setting the communication format using D8120 is effective only at the time the RS instruction is driven, and therefore if changed after driving, it is not actually accepted. An example of setting D8120 is shown below.
  • Page 28: Rs Example Program

    -485-BD COMMUNICATION BOARD RS EXAMPLE PROGRAM RS EXAMPLE PROGRAM This example program use RS instruction. Printer When the printer having the RS232C interface is connected to the 485BD via the RS232C/485 signal converter (FX-485PC-IF), and the data sent from the programmable controller is printed 5.1.1 System Configuration RS232C/485...
  • Page 29: Communication Format

    -485-BD COMMUNICATION BOARD RS EXAMPLE PROGRAM 5.1.2 Communication Format The communication format of the serial printer is as follows. Data length 8 bit Parity Even Stop bit 2 bit Baud rate 2,400 bps Protocol No protocol Header Not use character Terminator Not use character...
  • Page 30: Example Program (1)

    -485-BD COMMUNICATION BOARD RS EXAMPLE PROGRAM 5.1.3 Example Program (1) M8000 Handled by 8-bit data M8161 M8002 Setting of communication format H182F D8120 X000 H 182F = 0001 1000 0010 1111 RS instruction drive X001 H0074 H0065 Writing of send data H006E Herein, "test line"...
  • Page 31: Personal Computer

    -485-BD COMMUNICATION BOARD RS EXAMPLE PROGRAM Personal Computer When the printer having the RS232C interface is connected to the 485BD via the RS232C/485 signal converter (FX-485PC-IF), and the data sent from the programmable controller is printed 5.2.1 System Configuration RS232C/485 signal converter Send Send...
  • Page 32: Communication Format

    -485-BD COMMUNICATION BOARD RS EXAMPLE PROGRAM 5.2.2 Communication Format The communication format of the programmable controller for this example is as follows. If the communication format of the software can not be adjusted this setting, adjusted the programmable controller and the software to be the same.
  • Page 33: Example Program (2)

    -485-BD COMMUNICATION BOARD RS EXAMPLE PROGRAM 5.2.3 Example Program (2) M8000 Handled by 8-bit data M8161 M8002 Setting of communication format H182F D8120 X000 H 182F = 0001 1000 0010 1111 RS instruction drive X001 H0074 H0065 Writing of send data H0074 Herein, "test line"...
  • Page 34: Parallel Link

    -485-BD COMMUNICATION BOARD PARALLEL LINK PARALLEL LINK This section describes how to use the parallel link when the programmable controllers are connected on the 1:1 basis. Parallel Link The parallel link refers to the link with which the programmable controllers are connected each other by the wiring described in Chapter 2, and the data is automatically transferred between them using the special auxiliary relays.
  • Page 35: Normal Mode (Special Auxiliary Relay M8162: Off)

    -485-BD COMMUNICATION BOARD PARALLEL LINK 6.2.1 Normal Mode (Special auxiliary relay M8162: OFF) Automatical Master Slave communication Master station to Slave station M800-M899 M800-M899 M800 to M899 (100 points) M900-M999 M900-M999 D490 to D499 (10 points) Slave station to Master station M8000 M8000 D490-D499...
  • Page 36: Example Program (3)

    -485-BD COMMUNICATION BOARD PARALLEL LINK Example Program (3) 6.3.1 Normal Mode The ON/OFF states of the inputs X000 to X007 in the master station is output to the Y000 to the Y007 in the slave station ( ). When the calculation result (D0 + D2) in the master station is 100 or less, the Y010 in the slave station is turned on ( ). The ON/OFF status of the M0 to the M7 in the slave station is output to the Y000 to the Y007 in the master station ( ).
  • Page 37: High Speed Mode

    -485-BD COMMUNICATION BOARD PARALLEL LINK 6.3.2 High Speed Mode When the calculation result (D0 + D2) in the master station is 100 or less, the Y010 in the slave station is turned on ( ). The D10 value in the slave station is set to the timer (T0) in the master station ( ). Master station Slave atation M8000...
  • Page 38: N:n Network

    -485-BD COMMUNICATION BOARD N:N NETWORK N:N NETWORK Outline The N:N link is a network for up to eight FX Series programmable controllers. In the network, data transfer is automatically performed among the programmable controllers for the devices determined in the refresh range. The devices in the refresh range can be monitored by all the stations.
  • Page 39: Related Flags And Data Registers

    -485-BD COMMUNICATION BOARD N:N NETWORK Related Flags and Data Registers 7.2.1 Special Auxiliary Relays Special Response Attribute Name Description type auxiliary relays N:N network M8038 Used to set N:N network parameters M, L parameter setting Network parameter When network parameter error is in master M8063 M, L error...
  • Page 40: Special Data Registers

    -485-BD COMMUNICATION BOARD N:N NETWORK 7.2.2 Special Data Registers Response Special data Attribute Name Description registers type D8173 Station No. Saves its own station No. M, L D8174 Total number of slave stations Saves total number of slave stations M, L D8175 Refresh range Saves refresh range...
  • Page 41: Setting

    -485-BD COMMUNICATION BOARD N:N NETWORK Setting Each setting for the N:N network becomes valid when the program is run or when the power of the programmable controller is turned on. 7.3.1 Setting the Station No. (D8176) Set a value 0 to 7 to the special data register D8176. Set value Decryption Master station...
  • Page 42: Setting The Refresh Range (D8178)

    -485-BD COMMUNICATION BOARD N:N NETWORK 7.3.3 Setting the Refresh Range (D8178) Set a value 0 to 2 to the special data register D8178. (Default = 0) This setting is not requires for the slave station. The devices used in each pattern are occupied by all the stations for the N:N network. Refresh range Communication device...
  • Page 43 -485-BD COMMUNICATION BOARD N:N NETWORK 2) In the case of pattern 1 Device No. Station No. Bit device (M) Word device (D) 32 points 4 points No. 0 M1000 to M1031 D0 to D3 No. 1 M1064 to M1095 D10 to D13 No.
  • Page 44: Setting Retry Count (D8178)

    -485-BD COMMUNICATION BOARD N:N NETWORK 7.3.4 Setting retry count (D8178) Set a value 0 to 10 to the special data register D8178. (Default = 3) This setting is not required for the slave station. If master station try to communicate the slave station this retry count or over, communication error occur in the station. 7.3.5 Setting comms time-out (D8179) Set value 5 to 255 to thespecial data register D8179.
  • Page 45: Program Used For Setting

    -485-BD COMMUNICATION BOARD N:N NETWORK 7.3.6 Program used for setting M8038 Station No. setting: Required for FNC 12 D8176 master station (Set range: 0 to 7) Total number of slave FNC 12 D8177 stations: 2 (Setting range: 1 to 7) Refresh range setting: FNC 12 D8178...
  • Page 46: Error Code

    -485-BD COMMUNICATION BOARD N:N NETWORK Error Code When station occur communication error, special auxiliary relays (M8183 to M8191) of communication error is ON in the station And the error code put into special data registers (D8211 to 8218). This error code is following the table. Error Error Check...
  • Page 47: Examples Program

    -485-BD COMMUNICATION BOARD N:N NETWORK Examples Program 7.5.1 System Configuration Master station (No.0) Slave station (No.1) Slave station (No.2) 485BD 485BD 485BD 1) Refresh range: 32 bit devices and 4 word devices (Pattern 1) 2) Retry count : 3 times 3) comms time-out : 5 (50 ms) 7-10...
  • Page 48: Operations

    -485-BD COMMUNICATION BOARD N:N NETWORK 7.5.2 Operations The following operations are performed in the system configuration above. The input points X000 to X003 (M1000 to M1003) in the master station are output to the output points Y010 to Y013 in the stations Nos. 1 and 2. The input points X000 to X003 (M1064 to M1067) in the station No.
  • Page 49: Example Of Set Program

    -485-BD COMMUNICATION BOARD N:N NETWORK 7.5.3 Example of Set Program For the set program for the master station and the stations Nos. 1 and 2, refer to Section 7.3.6 program. Master station Slave station No. 1 Slave station No. 2 Remarks D8176 Station No.
  • Page 50: Example Of Error Program

    -485-BD COMMUNICATION BOARD N:N NETWORK 7.5.4 Example of Error Program Master communication error M8183 Y000 Slave 1 communication error M8184 Y001 Slave 2 communication error M8185 Y002 Data communication M8191 Y003 Continued to a),b) or c) in "7.5.5 Program". 7-13...
  • Page 51: Example Of Operation Program

    -485-BD COMMUNICATION BOARD N:N NETWORK 7.5.5 Example of Operation Program a) Program of master station Master communication error M8183 K1X000 K1M1000 Operation Slave 1 communication error M8184 Operation K1M1064 K1Y014 Slave 2 communication error M8185 Operation K1M1128 K1Y020 Slave 1 communication error M8184 K 10...
  • Page 52 -485-BD COMMUNICATION BOARD N:N NETWORK Slave 2 communication error M8185 K 10 Contact of Operation slave 2 C2 device M1140 Y006 Slave 1 Slave 2 communication communication error error M8184 M8185 K 10 Operation K 10 Operation 7-15...
  • Page 53 -485-BD COMMUNICATION BOARD N:N NETWORK b) Program of slave station No.1 Counter reset X001 Master Slave 1 communication communication error error M8183 M8184 Operation K1M1000 K1Y010 Operation K1X000 K1M1064 Slave 2 communication error M8185 K1M1128 K1Y020 Operation Counter input X000 Y005 Operation M1070...
  • Page 54 -485-BD COMMUNICATION BOARD N:N NETWORK Slave 2 Contact of communication slave 2 C2 error device M8185 M1140 Y006 Operation K 10 D 10 Operation Slave 2 communication error M8185 Operation D 20 D 11 7-17...
  • Page 55 -485-BD COMMUNICATION BOARD N:N NETWORK c) Program of slave station No.2 Counter reset X001 Master Slave 2 communication communication error error M8183 M8185 K1M1000 K1Y010 Operation Slave 1 communication error M8184 K1M1064 K1Y014 Operation K1X000 K1M1128 Operation Slave 1 Contact of communication Slave 1 C1 error...
  • Page 56 -485-BD COMMUNICATION BOARD N:N NETWORK Counter input X000 Y006 Operation M1140 Operation K 10 D 20 Slave 1 communication error M8184 D 10 D 21 7-19...
  • Page 57 -485-BD COMMUNICATION BOARD N:N NETWORK MEMO 7-20...
  • Page 58: Diagnostics

    485-BD COMMUNICATION BOARD DIAGNOSTICS DIAGNOSTICS Common Items 1) Confirm the connection with the programmable controller by checking the status of the RD LED and SD LED provided on the 485BD. • When the these LEDs is lighted (ON), connection between the 485BD and the programmable controller is correct.
  • Page 59: Using The No Protocol

    485-BD COMMUNICATION BOARD DIAGNOSTICS Using the No Protocol 1) Check the status of the RD LED and the SD LED provided on each 485BD. • If the RD LED is not lighted when data is received, check the wiring. • If the SD LED is not lighted when data is sent, check the confirm the connection with the programmable controller 2) When setting for the N:N network (Section 7.3.5 program) is included in the program, delete the setting, turn off the power of the programmable controller, then turn it on again.
  • Page 60: Using The Dedicated Protocol

    485-BD COMMUNICATION BOARD DIAGNOSTICS Using the Dedicated Protocol 1) Check the status of the RD LED and the SD LED provided on each 485 BD. • If both of them are lighted and extinguished, nothing is wrong. • If the RD LED is lighted/extinguished but the SD LED is not lighted/extinguished (not lighted at all), check the setting of the station No.
  • Page 61: Using The Parallel Link

    485-BD COMMUNICATION BOARD DIAGNOSTICS Using the Parallel Link 1) Check the status of the RD LED and the SD LED provided on each 485 BD. • If both of them are lighted and extinguished, nothing is wrong. • If the RD LED is lighted/extinguished but the SD LED is not lighted/extinguished (not lighted at all), check the setting of the master station and the slave stations.
  • Page 62: Using The N:n Network

    485-BD COMMUNICATION BOARD DIAGNOSTICS Using the N:N network 1) Check the status of the RD LED and the SD LED provided on each 485 BD. • If both of them are lighted and extinguished, nothing is wrong. • If the RD LED is lighted/extinguished but the SD LED is not lighted/extinguished (not lighted at all), check the setting of the station No., the transmission rate (baud rate) and the total number of slave stations.
  • Page 63 485-BD COMMUNICATION BOARD DIAGNOSTICS MEMO...
  • Page 64 485-BD COMMUNICATION BOARD DIAGNOSTICS MEMO...
  • Page 65 485-BD COMMUNICATION BOARD DIAGNOSTICS MEMO...

Table of Contents