Mitsubishi MELSEC iQ-F FX5 User Manual
Hide thumbs Also See for MELSEC iQ-F FX5:
Table of Contents

Advertisement

MELSEC iQ-F
FX5 User's Manual (Serial Communication)

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MELSEC iQ-F FX5 and is the answer not in the manual?

Questions and answers

Summary of Contents for Mitsubishi MELSEC iQ-F FX5

  • Page 1 MELSEC iQ-F FX5 User's Manual (Serial Communication)
  • Page 3: Safety Precautions

    SAFETY PRECAUTIONS (Read these precautions before use.) Before using this product, please read this manual and the relevant manuals introduced in this manual carefully and pay full attention to safety in order to handle the product correctly. This manual classifies the safety precautions into two categories: " WARNING"...
  • Page 4 WARNING ● To maintain the safety of the programmable controller system against unauthorized access from external devices via the network, take appropriate measures. To maintain the safety against unauthorized access via the Internet, take measures such as installing a firewall. [WIRING PRECAUTIONS] WARNING ●...
  • Page 5 ● Do not disassemble or modify the PLC. Doing so may cause fire, equipment failures, or malfunctions. For repair, contact your local Mitsubishi Electric representative. ● Turn off the power to the PLC before connecting or disconnecting any extension cable. Failure to do so may cause equipment failures or malfunctions.
  • Page 6: Introduction

    If in doubt about the operation or use, please consult your local Mitsubishi Electric representative. • Mitsubishi Electric will not accept responsibility for actual use of the product based on these illustrative examples. Please use it after confirming the function and safety of the equipment and system.
  • Page 7 MEMO...
  • Page 8: Table Of Contents

    CONTENTS SAFETY PRECAUTIONS ..............1 INTRODUCTION .
  • Page 9 Termination resistor setting ..............56 Connection diagram .
  • Page 10 CHAPTER 5 INVERTER COMMUNICATION Function Outline ............... . 92 Procedure before Operation.
  • Page 11 Cable ................. 154 Termination resistor setting .
  • Page 12 Checking the communication settings ............224 Checking absence/presence of errors.
  • Page 14: Relevant Manuals

    Functions and programming for the synchronous control of the Simple Motion Synchronous Control) module. <IB0300255> MELSEC iQ-F FX5 User's Manual (Analog Control - CPU module built- Describes the analog function of the CPU module built-in and the analog adapter. in, Expansion adapter) <JY997D60501>...
  • Page 15: Terms

    TERMS Unless otherwise specified, this manual uses the following terms. For details on the FX3 devices that can be connected with the FX5, refer to the User’s Manual (Hardware) of the CPU module to be used. Terms Description ■Devices Generic term for FX5U and FX5UC PLCs Generic term for FX3S, FX3G, FX3GC, FX3U, and FX3UC PLCs FX5 CPU module Generic term for FX5U CPU module and FX5UC CPU module...
  • Page 16 Different name for FX3U-32BL Peripheral device Generic term for engineering tools and GOTs Generic term for Mitsubishi Electric Graphic Operation Terminal GOT1000 and GOT2000 series ■Software packages Engineering tool The product name of the software package for the MELSEC programmable controllers...
  • Page 17: Chapter 1 Outline

    OUTLINE The table below shows the serial communication types supported by the FX5. Communication Function Reference functions section N:N Network Up to eight PLCs are connected, and data is automatically transferred among them. Page 16 Parallel link Function for connecting two FX5 PLCs and mutually linking devices. Page 50 MC protocol MC protocol is used to access CPU module and external devices (PC, GOT, etc.) from equipment that supports...
  • Page 18: Chapter 2 N:n Network

    N:N NETWORK This chapter explains the N:N Network. Outline of System N:N Network allows connection of up to eight FX5 PLCs or FX3 PLCs via mutually linked devices through communication in accordance with RS-485. • One of three patterns can be selected according to the number of devices to be linked. •...
  • Page 19: Procedures Before Operation

    Procedures before Operation The flow chart below shows the N:N Network setting procedures up until data link: Check communication specifications For communication specifications, link specifications, link pattern and number of link points, and link time, refer to Page 18 Specifications. System configuration and selection For system configuration, and select communication equipment, refer to Page 17 System Configuration.
  • Page 20: Specifications

    Communication device Serial port Important points in selection Overall distance Built-in RS-485 port Since it is built-into the CPU module, there is no need to add 50 m or less equipment. Communication FX5-485-BD Mounted on top of the CPU module, there is no change in the 50 m or less board installation space requirements.
  • Page 21: Link Specifications

    Link specifications Link pattern and number of link points Settings of the link pattern are performed with GX Works3 Serial Communication setting. (Page 24 Communication Setting) The number of occupied points of the link device differ depending on the number of link patterns and local stations to be used. The devices to be occupied are assigned according to the head number of the link device.
  • Page 22 Refresh range: pattern 1, link device head number: all station D1000/M4000 Master station: FX5 PLC, slave station: FX5 PLC × 3 Station number Master station Slave stations Station No. 0 (FX5 PLC) Station No. 1 (FX5 PLC) Station No. 2 (FX5 PLC) Station No.
  • Page 23: Wiring

    Wiring This section explains about the wiring. For the wiring of FX3 PLC, refer to FX Series User's Manual - Data Communication Edition. Wiring procedure Preparing for wiring Prepare cables required for wiring. (Page 21 Cable) Turn OFF the PLC power Before wiring, make sure that the PLC power is OFF.
  • Page 24 Precautions Do not tighten terminal screws exceeding the specified torque range. Failure to do so may cause equipment failures or malfunctions. ■Wire end treatment With regard to the cable end treatment, use a stranded cable or solid cable as is, or use a wire ferrule with insulating sleeve. •...
  • Page 25: Termination Resistor Setting

    Termination resistor setting Make sure to provide a termination resistor at both ends of the wire. The built-in RS-485 port, FX5-485-BD and FX5-485ADP have a built-in termination resistor. Set the termination resistor selector switch to 110 Ω. ■FX5U CPU module built-in RS-485 port ■FX5UC CPU module built-in RS-485 port Termination resistor selector...
  • Page 26: Grounding

    Grounding Grounding should be performed as stated below. • Perform D class grounding. (grounding resistance: 100 Ω or less) • Independent grounding should be performed for best results. When the independent grounding can not be performed, perform "shared grounding" as shown in the following figure. For details, refer to the following.
  • Page 27 ■SM/SD Setting Communication board (CH2) Navigation Window  Parameter  FX5UCPU  Module Parameter  Extended Board Window The following screen will be displayed if [FX5-485-BD] is set for the extended board and [N:N Network] is set for the communication protocol type. Fixed setting and SM/SD setting are the same as in the case of built-in RS-485 port (CH1). ■Basic Settings Communication adapter (CH3/CH4) When an expansion adapter is used, add expansion adapter to Module Information.
  • Page 28 Parameter setting details Set the following items for the serial ports that use N:N Network. However, only one channel can be set to the N:N Network. Items Setting value Reference section  Basic Settings Extended Board When using this function, select [FX5-485-BD]. Communication Protocol Type When using this function, select [N:N Network].
  • Page 29: Programming

    Programming This section explains how to set the N:N Network and how to create programs. Configuration only for FX5 PLC configuration (master station + slave station × 7 stations) In N:N Network, pattern 0, 1 or 2 can be set according to the refresh range value. The number of used devices varies depending on the pattern.
  • Page 30 Link device The devices are assigned according to the set pattern in the refresh range setting as the following set device number (All stations, bit device (M): 4000, word device (D): 1000) set at the head. (Page 19 Link specifications) ■Pattern 0 Station Master...
  • Page 31: Communication Test

    Communication test It is recommended to wire the master station and slave station, perform communication settings, and then execute the communication test using the following procedure to confirm proper operation. Communication test program is not required during operation. Communication test process After configuring the communication setting of the master station and slave station, and programming, turn the CPU module power supply OFF→ON or reset.
  • Page 32 Test program for communication (slave station) Determine the station number of each slave station, and then transfer a program corresponding to the station number to each slave station. Assign station numbers from "1" in the ascending order. (Use one station number only once. Do not skip station numbers). RUN monitor SM400 Steps for reading information from a slave station...
  • Page 33: Create The Master Station Program

    Create the master station program Create programs for the master station. Arbitrarily create programs for reading and writing link devices. Program for indicating link errors This program is required to indicate the N:N Network status. Create this step for each connected slave Data transfer sequence error in station.
  • Page 34 Program for reading link devices (slave station → master station) This program is required to read information from Data transfer each slave station to the master station. Monitor link sequence error in errors in each slave station, and read them. slave station No.
  • Page 35: Create Programs For The Slave Stations

    Create programs for the slave stations Create programs for the slave stations. Arbitrarily create programs for reading and writing link devices. The following program is for the slave station of station number 1. Program for station number 2 and later are similar. Program for indicating link errors This program is required to indicate the N:N Network Data transfer...
  • Page 36: Cautions On Program Creation

    Program for reading link devices (slave station ← master or slave station) This program is required to read information from the master station or another slave station to a slave station. Data transfer Monitor link errors in each slave station, and read sequence error in slave station No.
  • Page 37: Troubleshooting

    • Precaution when changing the station number and number of slave stations Only when the station number and number of slave stations are set with latch setting can the setting values be written to the corresponding word device from a program or an engineering tool and the setting be changed by powering OFF→ON or a reset.
  • Page 38: Checking Sequence Program

    Checking sequence program With the channel number that uses N:N Network is specified in the instructions to be used in the inverter communication, non- protocol communication and predefined protocol support function, some error may occurs. (Page 236 Combined Use of Serial Communication) Checking the communication setting Verify that protocol type is "N:N Network".
  • Page 39 Data transfer sequence error ■Check while data transfer sequence is being executed Verify that the device specified in the table below is ON. While N:N Network is being executed, the data transfer sequence ON flag remains ON. FX5 only FX3 Series Name Descriptions compatible...
  • Page 40: Related Devices

    Error Error name Station in Station Description of error Check point codes which which (hexad error detected ecimal) occurred error 7714H Message format The message from the master station is incorrect. • Wiring error in master • Power station • Station number settings 7715H Insufficient link The link device corresponding to the local station number cannot...
  • Page 41 Device Name Descriptions Dete Available station ction Master Slave stations station (Station No. 0)   SM9041 Data transfer sequence error Turns ON when data transfer sequence error of slave station (Slave station 1) occurs (Except station 1) However, data sequence errors that occurred in the local SM9042 Data transfer sequence error ...
  • Page 42 Special Register ■FX5 only Device Name Descriptions Dete Available station ction Master Slave stations station (Station No. 0)   SD9040 Station number settings Provided to check the station number. status (Station 1 to 7)   SD9041 Number of slave stations Provided to check the number of slave stations.
  • Page 43 Device Name Descriptions Dete Available station ction Master Slave stations station (Station No. 0)   SD9062 Data transmission error code Number of data transfer sequence errors occurred in other (slave station 1) slave station. (Except station 1) However, data sequence errors that occurred in the local SD9063 Data transmission error code ...
  • Page 44 Device Name Descriptions Dete Available station ction Master Slave stations station (Station No. 0)   SD8439 Serial communication Store the communication function of the serial operation mode (CH2) communication operation with the SM/SD compatible with (Station 1 to 7) FX3 Series in CH2.
  • Page 45: Details Of Related Devices

    Details of related devices The devices described below are used in N:N Network. The "FX3 Series-compatible" device operates only the channel which is specified in the SM/SD settings of communication setting. (Page 24) Serial communication error Turns ON when an error occurs in serial communication. These flags are for check of the serial communication error. FX5 only FX3 Series Descriptions...
  • Page 46 Data transfer sequence ON Turns ON the data send operation with the master station and also the other slave stations. FX5 only FX3 Series compatible Descriptions SM9056 SM8191 ON: Data transfer sequence processing OFF: Data transfer sequence is stopped R: Read only Precautions Do not turn ON with program or engineering tool.
  • Page 47 Station number settings status Stores the set station number in the communication settings (Page 24). This device is for checking the setting status of station number of the local station. FX5 only FX3 Series compatible Descriptions SD9040 SD8173 0: Master station 1 to 7: Slave station R: Read only •...
  • Page 48 Number of slave stations setting status Stores the set number of slave stations in the communication settings. Use this device to check the number of slave stations set in the master station. FX5 only FX3 Series compatible Descriptions SD9041 SD8174 1 to 7 R: Read only •...
  • Page 49 Refresh range setting status Stores the set refresh range in the communication settings (Page 24). Use this device to check the refresh range set in the master station. FX5 only FX3 Series compatible Descriptions SD9082 SD8175 0: pattern 0 1: pattern 1 2: pattern 2 R: Read only •...
  • Page 50 Present link scan time This device stores the current value of the network cycle in the N:N Network. FX5 only FX3 Series compatible Descriptions SD9043 SD8201 0 to 32767 (×10 ms) R: Read only Precautions Do not change the value with program or engineering tool. Maximum link scan time This device stores the maximum value of the network cycle in the N:N Network.
  • Page 51 Data transmission error code These devices store the error code (Page 37) of the master station or the slave stations. Station number Master Slave stations station Station Station Station Station Station Station Station Station No. 0 No. 1 No. 2 No.
  • Page 52: Chapter 3 Parallel Link Function

    PARALLEL LINK FUNCTION This chapter explains parallel link. Function Outline The parallel link function is designed to connect two FX5 PLCs and mutually link the devices. • The link mode can be selected from two modes, normal parallel link and high-speed parallel link modes, depending on the number of devices to be linked and link time.
  • Page 53: Procedure Before Operation

    Procedure before Operation The flow chart below shows the procedures from parallel link function setting to data link: Check communication specifications For the communication specifications, link specifications, link time, link device numbers and number of link points, refer to Page 52 Specifications. System configuration and selection For the system configuration and selection of communication devices, refer to Page 51 System Configuration.
  • Page 54: Specifications

    Specifications This section describes the communication specifications and performance of the parallel link function. Communication specifications The parallel link function is executed according to the communication specifications (fixed) shown in the table below. Specification items such as baud rate cannot be changed. Item Specifications Remarks...
  • Page 55 Link device number and number of link points The devices to be occupied are assigned according to the head number of the link device set by GX Works3. Also the link mode is specified by GX Works3. (Page 57 Communication Setting) Mode Normal parallel link mode High-speed parallel link mode...
  • Page 56: Wiring

    Wiring This section explains about the wiring. Wiring procedure Preparing for wiring Prepare cables required for wiring. (Page 54 Cable) Turn OFF the PLC power Before wiring, make sure that the PLC power is OFF. Wire the communication equipment Connect the RS-485 communication equipment. (Page 56 Connection diagram) Cable Select cables using the procedure described below.
  • Page 57 Connecting cables The table below shows applicable cables and tightening torques. Number of Wire size Tightening torque wires Solid wire, Stranded wire Wire ferrule with connected insulation sleeve per terminal FX5U CPU module built-in RS-485 port One wire 0.2 to 0.5 mm (AWG24 to 20) 0.2 to 0.5 mm (AWG24 to 20)
  • Page 58: Termination Resistor Setting

    Termination resistor setting Make sure to provide a termination resistor at both ends of the wire. The built-in RS-485 port, FX5-485-BD and FX5-485ADP have a built-in termination resistor. Set the termination resistor selector switch as below. Wiring Termination resistor selector switch 330 Ω...
  • Page 59: Grounding

    Grounding Grounding should be performed as stated below. • Perform D class grounding. (Grounding resistance: 100 Ω or less) • Independent grounding should be performed for best results. When independent grounding can not be performed, perform "shared grounding" as shown in the following figure. For details, refer to the following.
  • Page 60 Communication board (CH2) Navigation Window  Parameter  FX5UCPU  Module Parameter  Extended Board Window The following screen will be displayed if [FX5-485-BD] is set for the extended board and [Parallel link] is set for the communication protocol type. Fixed setting and SM/SD setting are the same as in the case of built-in RS-485 port (CH1). ■Basic Settings Communication adapter (CH3/CH4) When an expansion adapter is used, add expansion adapter to Module Information.
  • Page 61: Programming

    FX3 Series-compatible SM/SD When using the FX3 Series compatible SM/SD storage area, set to use special devices for either the FX3 Series CH1 or CH2. FX3 Series compatible devices corresponding to the specified channel can be used. For details, refer to the following. Page 66 Related devices Programming This section explains how to set the parallel link and how to create programs.
  • Page 62 Link Device ■Device for master station • Sending device Device for sending information from master station to slave station Device No. Number of link Descriptions points ■In the case of normal parallel link mode Internal relay M4000 to M4099 100 points The status of the master station device is automatically updated to the slave station device.
  • Page 63: Communication Test

    Communication test It is recommended to wire the master and slave stations, perform communication settings, and then execute the communication test using the following procedure to confirm proper operation. Communication test program is not required during operation. Communication test process After writing the communication configuration of the master and slave stations and the program, turn OFF→ON or reset the power supply to the FX5 PLC.
  • Page 64: Creation Of Programs For Master Station

    Creation of programs for master station Create programs for the master station. Parallel link operation SM9090 Program for indicating link errors When the parallel link of the master/slave station is suspended or a setting error occurs, Y10 is set to Program for writing link devices RUN monitor (master station ...
  • Page 65: Creation Of Programs For Slave Station

    Creation of programs for slave station Create programs for the slave station. Parallel link operation SM9090 Program for indicating link errors When the parallel link of the master/slave station is suspended or a setting error occurs, Y10 is set to Program for writing link devices RUN monitor (slave station ...
  • Page 66: Troubleshooting

    Troubleshooting This section explains troubleshooting. Checking communication status based on LED indication Check the status of the LED indications of [RD] and [SD] on the CPU module or the communication board/communication adapter. LED status Operation status The data is being sent or received. The data is received, but is not sent.
  • Page 67: Checking Absence/Presence Of Errors

    Checking absence/presence of errors Confirm whether an error has not occurred in the PLCs at the master or slave station. To confirm, check the following flags. Parallel link operation "Parallel link operation" flag is ON while the parallel link is running. Verify that the device specified in the table below is ON. FX5 dedicated FX3 Series Name...
  • Page 68: Related Devices

    Related devices List of related devices Special relays ■FX5 dedicated Device No. Name Descriptions Detect SM8500 SM8510 SM8520 SM8530 Serial communication error Turns ON when an error occurs in serial communication. M, L SM9090 Parallel link operation ON during parallel link operation. M, L R: Read only, M: Master station, L: Slave station ■FX3 Series compatible...
  • Page 69: Details Of Related Devices

    Details of related devices The devices described below are used in the parallel link. The "FX3 Series-compatible" device operates only for the channel which is specified in the SM/SD settings. Serial communication error Turns ON when an error occurs in serial communication. FX5 dedicated FX3 Series Descriptions...
  • Page 70 Serial communication setting Stores the set communication parameter in the communication settings. FX5 only FX3 Series Descriptions compatible SD8502 SD8512 SD8522 SD8532 SD8405 SD8425 Stores the setting of the communication parameter. R: Read only The description of the communication parameter is as follows. Bit No.
  • Page 71 Error determination time setting Stores the error determination time setting value in the serial communication settings. FX5 dedicated Descriptions SD9092 10 to 32767 (ms) R: Read only Precautions Do not change the value with program or engineering tool. Serial communication operation mode Stores the communication function code of the serial communication being used.
  • Page 72: Chapter 4 Mc Protocol

    MC PROTOCOL An MC protocol is a protocol to access an equipment compatible with MC protocol from a CPU module and external equipment (PC or indicator etc.) using serial communication. In case of a serial port of FX5, communication is possible by MC protocol QnA-compatible 3C/4C frame. Function Summary An MC protocol function is a function to access an equipment compatible with MC protocol from a CPU module and counterpart device equipments (PC or GOT etc.) using serial communication.
  • Page 73: Procedures Before Operation

    Procedures before Operation The flow chart below shows the MC protocol setting procedures up until data link. Check communication specifications For communication specifications, link specifications, and link time, refer to Page 72 Specifications. System configuration and selection For select communication equipment, refer to Page 71 System Configuration. Wiring For wiring with twisted pair cable, and wiring example, refer to Page 74 Wiring.
  • Page 74: Specifications

    Specifications Communication specifications Communication is executed within the specifications shown in the table below. Set the baud rate, etc. in the parameter settings of an engineering tool. Items Specifications Remarks  Number of connectable units 16 maximum  Transmission standard RS-485 or RS-232C standard Maximum total extension distance RS-485...
  • Page 75 *3 This is the number of characters when format1 is used and the sum check is not provided at the time of execution of batch read/write command. When format4 is used, add "4" to this value. Further, when the sum check is provided, add "4" to this value also. Further, when specifying an extension, add "+7"...
  • Page 76: Wiring

    Wiring This section explains the wiring. Wiring procedure Select the connection method Select the connection method suitable to the application. (Page 74 Selecting connection method) Make arrangements for wiring Prepare cables required for wiring. (Page 75 Cable) Turn OFF the PLC power Before wiring, make sure that the PLC power is OFF.
  • Page 77: Cable

    One-pair wiring and two-pair wiring are applicable for communication in accordance with RS-485 (RS-422). The wiring method is determined for each application. Refer to the table below, and perform suitable wiring. One-pair wiring Two-pair wiring   MC protocol When the message waiting time should be 70 ms or less ...
  • Page 78 ■Wire end treatment With regard to the cable end treatment, use a stranded cable or solid cable as is, or use a wire ferrule with insulating sleeve. • When using a stranded cable or solid cable as is - Twist the end of stranded wire and make sure that there are no loose wires. - Please do not solder plate the ends of the cable.
  • Page 79: Termination Resistor Setting

    Termination resistor setting Make sure to provide a termination resistor at both ends of the wire. The built-in RS-485 port, FX5-485-BD and FX5-485ADP have a built-in termination resistor. Set the termination resistor selector switch as below. Wiring Termination resistor selector switch 330 Ω...
  • Page 80 ■Connection diagram between FX-485PC-IF and the personal computer FX-485PC-IF Personal computer Name Pin No. Name SD (TXD) SD (TXD) RD (RXD) RD (RXD) RS (RTS) RS (RTS) CS (CTS) CS (CTS) DR (DSR) DR (DSR) SG (GND) SG (GND) ER (DTR) ER (DTR) RS-485/RS-422 ■One-pair wiring...
  • Page 81: Grounding

    Grounding Grounding should be performed as stated below. • Perform D class grounding. (grounding resistance: 100 Ω or less) • Independent grounding should be performed for best results. When the independent grounding cannot be performed, perform "shared grounding" as shown in the following figure. For details, refer to the following.
  • Page 82 Communication board (CH2) Navigation Window  Parameter  FX5UCPU  Module Parameter  Extended Board Window The following screen will be displayed if [FX5-232-BD] or [FX5-485-BD] is set for the extended board and [MC Protocol] is set for the communication protocol type. Fixed setting and SM/SD setting are the same as in the case of built-in RS-485 port (CH1).
  • Page 83: Mc Protocol Command

    The following settings are unnecessary (fixed values). Items Descriptions Start bit 1 bit Header Not added Terminator Not added Control mode  Control procedure None Latch Setting Set the necessity of the corresponding SD (special register) latch. Descriptions Setting range Compatible devices Station number settings Latch/Do Not Latch...
  • Page 84 Name Comm Sub- Contents of processing Number of points ands comm processed in one- time update Random writing 1402H 0001H Writes data in 1-bit unit to a bit device by randomly specifying the device number. 188 points 0000H • Writes data in 16-bit unit to a bit device by randomly specifying the device number. (Number of word access •...
  • Page 85: Applicable Device

    Applicable device The table below shows devices and device number range that can handled in commands used in communication by MC protocol. Specify devices and device number range that are there in the targeted unit for performing data reading, writing etc. In 3C/4C frame, in the following "Device Code", specify a device of the access point.
  • Page 86: Troubleshooting

    Division Device Type Device Code Device No. FX5 device (Device specification available format: Long) ASCII code Binary code  Index register 16 bit Specify within the Decimal (Z***) (CC00H) range of device numbers that the unit  32 bit Decimal at the access point (LZ**) (6200H)
  • Page 87: Checking Sequence Program

    Checking sequence program An error may occur when a serial port using MC protocol is specified in a command that will be used in inverter communication, non-protocol communication or predefined protocol support function. (Page 236 Combined Use of Serial Communication) Checking the communication setting Verify that protocol type is "MC Protocol".
  • Page 88 Error Error item Description of error Troubleshooting code (hexadeci mal) 7F24H Sum check error • The received sum check code does not match with the • Check the sum check code of the counterpart equipment. calculated sum check code. • Check the horizontal parity code of the counterpart •...
  • Page 89 When an error code above is stored, check the following items: Name Description of error Troubleshooting Parity, overrun or framing error The transfer data is abnormal. Check the transfer specifications set using parameters, and execute communication again. Monitoring time out The received message was insufficient.
  • Page 90: Related Devices

    Related Devices List of related devices Special relay Device No. Name Description SM8500 SM8510 SM8520 SM8530 Serial communication error Turns ON when an error occurs in serial communication. SM8740 SM8750 SM8760 SM8770 Station number setting latch Turns ON when the SD latch setting of station number setting is setting valid flag valid.
  • Page 91 Station number setting latch setting valid flag When latch for the station number setting set in the parameter is “latch”, these flags turn ON when power supply ON→OFF or when system is reset. In that case, the station number set in SD8740, SD8750, SD8760, SD8770 turns valid. When latch not required for the station number setting set in the parameter is “no latch”, these flags turn OFF when power supply ON→OFF or when system is reset.
  • Page 92 Bit No. Name Description 0 (bit = OFF) 1 (bit = ON) Baud rate b7, b6, b5, b4 (0, 0, 1, 1): 300 bps (0,1,0,0): 600bps (0, 1, 0, 1): 1200 bps (0,1,1,0): 2400bps (0,1,1,1): 4800bps (1,0,0,0): 9600bps (1,0,0,1): 19200bps (1,0,1,0): 38400bps (1,0,1,1): 57600bps (1,1,0,0): 76800bps...
  • Page 93 Time out judge time Stores the judgment time until the error when a data reception is stopped from the counterpart equipment, set in the parameter when the power supply is turned OFF→ON or reset. Description SD8742 SD8752 SD8762 SD8772 0 to 32767 (ms) When "0"...
  • Page 94: Chapter 5 Inverter Communication

    • Mitsubishi general-purpose inverters FREQROL-F800/A800/F700PJ/F700P/A700/E700/E700EX (sensor less servo) / D700/V500 Series can be linked. • Inverter operations can be monitored, various commands can be given, and parameters can be read or written.
  • Page 95: System Configuration

    System Configuration This section outlines the system configuration required to use inverter communication. You can use the inverter communication function in the CPU module using the built-in RS-485 port, communication board, and communication adapter. Allotment of serial ports is set to the following fixed numbers, regardless of system configuration. ■FX5U CPU module ■FX5UC CPU module CH4: Communication adapter-2...
  • Page 96: Applicable Inverter

    Applicable inverter Series Connection destination FREQROL-F800 Series Built-in RS-485 terminal FREQROL-A800 Series Built-in RS-485 terminal FREQROL-F700PJ Series Built-in PU connector FREQROL-F700P Series Built-in RS-485 terminal FREQROL-A700 Series Built-in RS-485 terminal FREQROL-E700 Series Built-in PU connector, FR-E7TR (optional) FREQROL-E700EX Series Built-in PU connector FREQROL-D700 Series Built-in PU connector FREQROL-V500 Series...
  • Page 97 Inverter Operation control The table below shows instruction codes for writing to the inverter which can be specified by IVDR instruction (Page 128) operand (s2) and their contents. For the instruction codes, refer to the pages explaining computer link in detail in each inverter manual. Inverter Write contents Applicable inverter...
  • Page 98: Time Required For Inverter Communication Instructions

    Time required for inverter communication instructions Outline The period of time after one inverter communication instruction is driven until communication with the inverter is completed (SM8029 turns ON) is considered as the required time for the inverter communication instruction as shown. Inverter communication instruction SM8029...
  • Page 99 Calculation method The required time "Tinv" for inverter communication instruction in units of "ms" is calculated as follows. "INT(n)" in the calculation formula indicates an integer obtained by truncating decimal places of "n". ■Length of 1 character In inverter communication, the communication setting is as shown in the following table. The length of 1 character is as shown in the following expression.
  • Page 100 ■Number of sent/received characters Inverter Parameter/ First Second Third communication instruction code Send Receive Total Send Receive Total Send Receive Total instruction IVCK H73, H7A, H7F, H6C             Other than above ...
  • Page 101 Calculation example This is a calculation example for the following communication settings and scan time when communicating with an inverter. Communication speed = 19200[bps] Length of 1 character = 10[bit] Scan time = 10[ms] ■Calculation example 1 Calculation of required time when Pr. 3 is read by the IVRD instruction Tinv=T =181[ms] =10[ms], T...
  • Page 102: Wiring

    ■Calculation example 3 Calculation of required time when Pr. 10 to Pr. 14 [(s2) = 5] are written by the IVBWR instruction Tinv=T =851[ms] =10×(s2)=50[ms], T =1[ms] Calculate "T " as follows because Pr.10 to Pr. 14 do not require change of the 2nd parameter and the time required for writing is same in each parameter.
  • Page 103: Connection Method

    Connection method When connecting to RS-485 communication equipment, use the 10BASE-T cable or shielded twisted pair cables, depending on the connection method. PU connector Single wire Termination resistor (RJ45 connector) (Use twisted pair cable or (Which is built in the FX5 PLC, and must be 10BASE-T cable for LAN.) arranged by the user for the inverter, and supplied with or built in for other communication...
  • Page 104 • In the case of 1-to-n connection Termination 10BASE-T 10BASE-T resistor cable cable Distributor Distributor Distributor 10BASE-T 10BASE-T 10BASE-T cable cable cable 10BASE-T cable connector connector connector • Because the termination resistor cannot be connected to the inverter, use a distributor. •...
  • Page 105: Cable

    ■FR-A5NR (V500 Series only) • In the case of 1-to-1 connection When a distributor is not used FR-A5NR Twisted pair cable Termination resistor • In the case of 1-to-n connection When a distributor is not used Twisted pair cable Twisted pair cable Termination resistor Twisted pair cable FR-A5NR...
  • Page 106 ■Cable structural drawing (reference) Example of three-pair cable structural drawing ■Point of contact For details on cables such as specifications, contact each cable manufacturer. 10BASE-T cable Available 10BASE-T cables for PC LAN wiring can be used. ■Selection procedure when purchasing Cable type: 10BASE-T cable (Category 3 or higher) Connection specifications: Straight type Connector: RJ45 connector...
  • Page 107: Connection Devices (Rj45 Connector And Distributor)

    • When using a wire ferrule with insulation sleeve Because it is difficult to insert a cable into an insulating sleeve depending on the thickness of the cable sheath, select the proper cable according to the outline drawing. FX5U CPU module built-in RS-485 port FX5UC CPU module built-in RS-485 port, FX5-485-BD, FX5- 485ADP Contact area...
  • Page 108: Termination Resistor Setting

    Termination resistor setting Set or connect termination resistor of the inverter farthest from the FX5 PLC. For details on connection, refer to Page 107 Connection diagram. At the FX5 PLC The built-in RS-485 port, FX5-485-BD and FX5-485ADP have a built-in termination resistor. Set the termination resistor selector switch to 110 Ω.
  • Page 109: Shielded Wiring

    ■PU connector The customer needs to provide 100 Ω, 1/2 W termination resistors such as the following. =100  1 0 1 (10 ) • Connect a termination resistor between pin No. 3 (RDA) and pin No. 6 (RDB). • Connect a distributor to the PU terminal because termination resistors cannot be connected. •...
  • Page 110 • When multiple (up to 16) inverters are connected Set the termination resistor selector Set the termination resistor switch to "110 ". selector switch of the farthest Built-in RS-485 port inverter to "100 ". FX5-485-BD Twisted pair cable FX5-485ADP (0.3 mm or more) 0.3 mm or more...
  • Page 111 • When multiple (up to 16) inverters are connected (4-wire type) Connect a termination resistor of 100 , 1/2 W (not supplied) Set the termination resistor selector to the most distant inverter. switch to "110 ". Built-in RS-485 port FX5-485-BD Distributor Distributor Distributor...
  • Page 112 ■FR-E7TR • When one inverter is connected (4-wire type) Set the termination resistor selector Built-in RS-485 port switch to "110 ". FX5-485-BD FX5-485ADP Twisted pair cable (0.3 mm or more) Set the termination resistor selector switch to "100 ". 0.3 mm or more Terminal arrangement Terminal block...
  • Page 113 • When one inverter is connected (2-wire type) Set the termination resistor selector Built-in RS-485 port switch to "110 ". FX5-485-BD FX5-485ADP Twisted pair cable (0.3 mm or more) Crossover Set the termination resistor selector switch to "100 ". wiring 0.3 mm or more Terminal array...
  • Page 114: Grounding

    ■FR-A5NR • When one inverter is connected Set the termination resistor selector switch to "110 ". Built-in RS-485 port FX5-485-BD FX5-485ADP Twisted pair cable (0.3 mm or more) Connect the termination resistor connection piece. 0.3 mm or more Terminal array Terminal block Screw size: (M3)
  • Page 115: Inverter Communication Settings

    N038 RS-485 communication CR/LF CR: Provided, LF: Not provided selection N000 Protocol selection Mitsubishi inverter (computer link) protocol D000 Operation mode selection External operation mode is selected when power is turned ON. D001 Communication startup mode selection Network operation mode 5 INVERTER COMMUNICATION 5.6 Inverter Communication Settings...
  • Page 116 Parameters (test operation, operation) Parameters that must be adjusted for test operation and operation are as follows. Parameter Parameter item Setting Set conditions group value N035 RS-485 communication number of 9999 Set the value shown on the left during adjustment, and set a value retries from 1 to 10 during operation.
  • Page 117: Freqrol-F700P/A700 Series

    Pr.79 Operation mode selection External operation mode is selected when power is turned ON. Pr.549 Protocol selection Mitsubishi inverter (computer link) protocol Pr.340 Communication startup mode Network operation mode selection Parameters (test operation, operation) Parameters that must be adjusted for test operation and operation are as follows.
  • Page 118: Freqrol-F700Pj/E700/D700/E700Ex Series

    Pr.79 Operation mode selection External operation mode is selected when power is turned ON. Pr.549 Protocol selection Mitsubishi inverter (computer link) protocol Pr.340 Communication startup mode 1 or 10 1: Network operation mode selection 10: Network operation mode (Operation mode can be changed between the PU operation mode and network operation mode from the operation panel.)
  • Page 119: Freqrol-V500 Series

    ■Cautions during setting Caution for setting the PU communication check time interval (Pr.122) Description Setting value During adjustment or when communication with the PLC is not executed 9999 periodically When communication with the PLC is not executed Set the communication time in the following cases. 1 to 9998 •...
  • Page 120: Plc Communication Settings

    Parameters (test operation, operation) Parameters that must be adjusted for test operation and operation are as follows. Parameter No. Parameter item Setting Set conditions value Pr.121 Number of communication retries 9999 Set the value shown on the left during adjustment, and set a value from 1 to 10 during operation.
  • Page 121 ■SM/SD Setting Communication board (CH2) Navigation Window  Parameter  FX5UCPU  Module Parameter  Extended Board Window The following screen will be displayed if [FX5-485-BD] is set for the extended board and [Inverter Communication] is set for the communication protocol type. Fixed setting and SM/SD setting are the same as in the case of built-in RS-485 port (CH1). ■Basic Settings Communication adapter (CH3/CH4) When an expansion adapter is used, add expansion adapter to Module Information.
  • Page 122: Programming

    The following settings are unnecessary (fixed values). Items Description Start Bit 1 bit Header Not Added Terminator Not Added Control Mode None Sum Check Code Not Added Control Procedure None FX3 Series-compatible SM/SD When using the FX3 Series compatible SM/SD storage area, set to use special devices for either the FX3 Series CH1 or CH2. FX3 Series compatible devices corresponding to the specified channel can be used.
  • Page 123 Function and operation ■Communication start timing At the rising edge (OFF→ON) of the drive contact of the inverter communication instruction, the PLC starts communication with an inverter. Even if the drive contact turns OFF during communication with an inverter, the PLC executes communication until the last instruction.
  • Page 124 • Inverter communication instructions standby for 11 ms after acquiring a communication port, and then starts communication. Even if the drive contact turns ON, the inverter communication instruction stands by until (SM8920) turns ON→OFF when the SM8920 inverter communication busy flag has been turned ON by other inverter communication instruction.
  • Page 125 (2) Precautions for programming When communicating with inverters for multiple items, set the command contact for inverter communication instruction to ON until transmission is complete. Program so that the command contact is turned OFF, when all communication with the inverter has been completed, using the instruction execution normal end flag ([d] +1 or [d2] +1), instruction execution abnormal end flag ([d] +2 or (d2) +2) or instruction execution completed flag (SM8029).
  • Page 126 ■Operation of instruction execution complete flag When communication with an inverter is completed, the instruction execution completed flag (SM8029) turns ON, and remains ON for 1 scan. SM8029 indicates completion of IVDR instruction communication as shown below, when M0, M2 are OFF and M1 is ON. If inverter communication instruction ends normally, instruction execution normal end flag (Page 121) turns ON simultaneously with SM8029.
  • Page 127 ■When programming an inverter communication instruction in a state of an STL instruction Do not turn state OFF until communication with the inverter is finished. Program in accordance with the following sequence. • Add SM8029 (instruction execution complete flag) ON condition to the state relay transfer condition, and provide interlock such that the state relay ON/OFF status does not change during communication with an inverter.
  • Page 128: Inverter Operation Monitoring Instruction

    Inverter operation monitoring instruction This instruction reads the operation status of an inverter. For information concerning inverter communication instruction expressions and execution format, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks). IVCK Ladder FBD/LD ENO:=IVCK (EN, s1, s2, n, d1, d2); (s1) (s2) (d1) (d2)
  • Page 129 Program example Reads status (H7A) of inverter (station No. 0) into PLC (CH1), stores the read value in M100 to M107 and outputs externally (Y0 to Y3). Read contents: Inverter operating = M100, normal rotation = M101, reverse rotation = M102, error occurrence = M107 RUN monitor (s1) (s2)
  • Page 130: Inverter Operation Control Instruction

    Inverter operation control instruction This instruction writes an inverter operation required set value to an inverter. For information concerning inverter communication instruction expressions and execution format, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks). IVDR Ladder FBD/LD ENO:=IVDR (EN, s1, s2, s3, n, d);...
  • Page 131 Operation error Operation errors pertaining to the instruction are as follows. Operation Error Flag Operation Error Description Codes SM56 SM8067 SD8067 1810H When specified channel is used with another instruction. 2820H When specified device exceeds the device range. 3405H When the value specified for (s1) is other than K0 to 31. When the value specified for (n) is other than K1 to 4.
  • Page 132: Inverter Parameter Read

    Inverter parameter read This instruction reads an inverter parameter to the PLC. For information concerning inverter communication instruction expressions and execution format, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks). IVRD Ladder FBD/LD ENO:=IVRD (EN, s1, s2, n, d1, d2); (s1) (s2) (d1) (d2)
  • Page 133 Program example Reads value of the following inverter (station No. 6) parameters to storage device for PLC (CH1). Example of program using second parameter specification code (Page 140) of FREQROL-F700P Series inverter. Parameter No. Name Second parameter Storage devices specification code Terminal 2 frequency setting bias D100 frequency...
  • Page 134: Inverter Parameter Write

    Inverter parameter write This instruction writes a value from the PLC to a parameter in an inverter. For information concerning inverter communication instruction expressions and execution format, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks). IVWR Ladder FBD/LD ENO:=IVWR (EN, s1, s2, s3, n, d);...
  • Page 135 Operation error Operation errors pertaining to the instruction are as follows. Operation Error Flag Operation Error Description Codes SM56 SM8067 SD8067 1810H When specified channel is used with another instruction. 2820H When specified device exceeds the device range. 3405H When the value specified for (s1) is other than K0 to 31. When the value specified for (s2) is outside the range that can be specified.
  • Page 136: Inverter Parameter Block Write

    Inverter parameter block write This instruction writes parameters of an inverter at one time For information concerning inverter communication instruction expressions and execution format, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks). IVBWR Ladder FBD/LD ENO:=IVBWR (EN, s1, s2, s3, n, d); (s1) (s2) (s3) Setting data...
  • Page 137 Processing details Continuously writes parameter numbers and their values (2 words/parameter) for the number of points specified by (s2) starting from word device specified by (s3) for station No. (s1) of inverter connected to communication channel (n) (no limit to number of points that can be written).
  • Page 138 Program example Writes upper limit frequency (Pr. 1): 120 Hz, lower limit frequency (Pr. 2): 5 Hz, acceleration time (Pr. 7): 1 second, deceleration time (Pr. 8): 1 second for inverter (station No. 5) from PLC (CH1). Writing contents: Parameter No. 1 = D200, 2 = D202, 7 = D204, 8 = D206, upper limit frequency = D201, lower limit frequency = D203, acceleration time = D205, deceleration time = D207 Initial pulse SM402...
  • Page 139: Multiple Inverter Commands

    Multiple inverter commands This instruction writes 2 types of settings (operation command and set frequency) to the inverter, and reads 2 types of data (inverter status monitor, output frequency, etc.) from the inverter at the same time. For information concerning inverter communication instruction expressions and execution format, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks).
  • Page 140 ■Send/receive data type The table below shows valid send data 1 and 2 and receive data 1 and 2 specified by the (s2) send/receive data type. (s2) Send/receive data Send data (Written to the Inverter) Receive data (Read from Inverter) type (HEX) Data 1 (s3) Data 2 ([s3] +1)
  • Page 141 RUN monitor SM400 Initial value at startup: MOVP K6000 60 Hz Switch Switch command command (Speed 1) (Speed 2) Write contents to Inverter MOVP K4000 Operation speed: 40 Hz Transmission data 2 (s3)+1 Switch Switch command command (Speed 2) (Speed 1) MOVP K2000 Operation speed: 20 Hz...
  • Page 142: Second Parameter Specification Code

    Second parameter specification code When handling the following parameters in inverter communication, it is necessary to select second parameters. In IVRD, IVWR, and IVBWR instructions, when a value shown in the tables below is set in (s2) ((s3) in IVBWR instruction), the extension parameter and second parameter are automatically overwritten, and parameter values are either read or written.
  • Page 143 Parameter Name Second parameter specification code Bias (speed) for terminal No. 1 1917 Gain frequency (speed) for terminal No. 1 Gain (speed) for terminal No. 1 1918 Bias command (torque/magnetic flux) for terminal No. 1 Bias (torque/magnetic flux) for terminal No. 1 1919 Gain command (torque/magnetic flux) for terminal No.
  • Page 144 Parameter Name Second parameter specification code Terminal 4 frequency setting gain 1905 Bias frequency (speed) for terminal No. 1 Bias (speed) for terminal No. 1 1917 Gain frequency (speed) for terminal No. 1 Gain (speed) for terminal No. 1 1918 Bias command (torque/magnetic flux) for terminal No.
  • Page 145: Troubleshooting

    Parameter No. Name Second parameter specification code Offset/Gain (H00) Analog (H01) Analog value of terminal (H02) Speed setting No. 2 gain 1903 2903 Torque command No. 3 bias 1904 2904 Torque command No. 3 gain 1905 2905 No.1 terminal bias (speed) 1917 2917 No.1 terminal gain (speed)
  • Page 146: Checking The Communication Settings

    Checking the communication settings CPU module communication settings Verify that the protocol type is “Inverter Communication”. If the communication settings are not “Inverter Communication”, communication will not function correctly. (Page 118 PLC Communication settings) After changing communication settings, make sure to turn the PLC power from OFF→ON, or reset. Checking inverter operation status When the operation mode of an inverter is not changed to computer link operation mode •...
  • Page 147 ■List of error codes for inverter communication The error codes shown below are stored when a communication error is caused by an inverter communication instruction. Error code Description of error Inverter operation (HEX)  0000H Normal end (No Errors) 7601H ...
  • Page 148 ■IVMC instruction error codes When errors occur in the send data of the IVMC instruction, the following error codes are stored. Error code Description of error Inverter operation (HEX)  0000H No error has occurred in both send data 1 and send data 2. Normal end 7640H IVMC instruction send data 1: Mode error...
  • Page 149: Related Devices

    5.10 Related Devices List of related devices Special relay ■FX5 only Device No. Name Description SM8029 Instruction execution Turns ON when execution of instruction is completed, and remains completed ON for 1 scan. SM8500 SM8510 SM8520 SM8530 Serial communication error Turns ON when an error occurs in serial communication.
  • Page 150: Details Of Related Devices

    Details of related devices The following devices are used in inverter communications. The "FX3 Series-compatible" device operates only the channel which is specified in the SM/SD settings of communication setting (Page 118). Instruction execution completed Turns ON when the execution of inverter communication instruction is completed, and remains ON for 1 scan. When an error occurs in an inverter communication instruction, remains ON for 1 scan in the same way.
  • Page 151 Precautions When [Inverter communicating] is ON, instructions other than the instruction under execution cannot be executed. Do not turn ON/OFF by program or engineering tool. Inverter communication error If FX3 Series compatible SM/SD area settings have been set, the devices turn ON if an error occurs for an inverter communication instruction.
  • Page 152 Serial communication error code Stores the error code (Page 144) when the inverter communication instruction error occurs. FX5 dedicated FX3 Series Description compatible SD8500 SD8510 SD8520 SD8530 SD8063 SD8438 When a serial communication error occurs, the error code is stored. R: Read only Precautions Do not change the value with program or engineering tool.
  • Page 153 Precautions Do not change the value with program or engineering tool. Inverter communication error code is not cleared even if communication is restored to normal state. Devices are cleared when power is turned OFF→ON, STOP→RUN, reset or SM50 (Error Detection Reset Completion) is turned ON.
  • Page 154: Chapter 6 Non-Protocol Communication

    NON-PROTOCOL COMMUNICATION This chapter describes non-protocol communication. Function Summary Non-protocol communication exchanges data between a printer, bar code reader, etc. with no protocol. Non-protocol communication is available using the RS2 instruction. The RS2 instruction can simultaneously communicate on 4 channels by specifying the channels. •...
  • Page 155: Procedure Before Operation

    Procedure before Operation The flow chart below shows the Non-Protocol Communication setting procedure up until data link: Check communication specifications For communication specifications, and communication applicability, refer to Page 154 Specifications. System configuration and selection. For system configuration of each PLCs, refer to Page 153 System Configuration. Wiring For selection of cables and connection equipment, and wiring example, refer to Page 154 Wiring.
  • Page 156: Specifications

    Specifications This section describes the communication specifications and performance of non-protocol communication. Items Specifications Transmission standard RS-485 and RS-422 standard RS-232C standard Maximum overall distance When FX5-485ADP is used: 1200 m or less 15 m or less When using built-in RS-485 port or FX5-485-BD: 50 m or less Number of Transfer Data 0 to 4096...
  • Page 157 ■Cable structural drawing (reference) Pair Shield Example of two-pair cable structural drawing Example of three-pair cable structural drawing Connecting cables The table below shows applicable cables and tightening torques. Number of wires Wire size Tightening torque connected per Solid wire, Wire ferrule with terminal Stranded wire...
  • Page 158: Termination Resistor Setting

    <Reference> Manufacturer Model name Crimping tool FX5U CPU module built-in RS-485 port PHOENIX CONTACT GmbH & AI 0.5-6WH CRIMPFOX 6 Co. KG CRIMPFOX 6T-F FX5UC CPU module built-in RS-485 port AI 0.5-8WH FX5-485-BD FX5-485ADP • Tool For tightening the terminal, use a commercially available small screwdriver with straight tip that is not widened toward the end as shown below.
  • Page 159: Connection Diagram

    Connection diagram RS-232C communication equipment ■Connector pin arrangement FX5-232-BD, FX5-232ADP Signal name Function D-SUB 9-pin (male) Pin No. CD (DCD) Receive carrier detection RD (RXD) Receive data SD (TXD) Send data ER (DTR) Send request SG (GND) Signal ground DR (DSR) Send enabled 7,8,9 Not used...
  • Page 160 RS-485 communication equipment One-pair wiring and two-pair wiring (for RS-422) are applicable for RS-485 communication. Wire according to the counterpart equipment. The wiring that can be used is limited by the control line setting in the communication settings (Page 159 Communication Settings).
  • Page 161: Grounding

    Grounding Grounding should be performed as stated below. • Perform Class-D grounding. (Grounding resistance: 100 Ω or less) • Independent grounding should be performed for best results. When independent grounding cannot be performed, perform "shared grounding" as shown in the following figure. For details, refer to the following.
  • Page 162 ■SM/SD Setting Communication board (CH2) Navigation Window  Parameter  FX5UCPU  Module Parameter  Extended Board Window The following screen will be displayed if [FX5-232-BD] or [FX5-485-BD] is set for the extended board and [Non-protocol Communication] is set for the communication protocol type. Fixed setting and SM/SD setting are the same as in the case of built-in RS-485 port (CH1).
  • Page 163 Parameter setting details Set the following items for the serial ports that use non-protocol communication. Items Setting value Reference section  Basic Settings Extended Board When using this function, select [FX5-232-BD] or [FX5-485- BD]. Communication Protocol Type When using this function, select [Non-protocol Communication].
  • Page 164: Programming

    Serial data communication This section explains the function, operation and programming method of the RS2 instruction. For details on the expression and executable format of the RS2 instruction, refer to the MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks).
  • Page 165 Precautions • The RS2 instruction cannot be used in the same serial port as that of the inverter communication instruction and predefined protocol support instruction. • To change the header, terminator, time-out time or 8-bit processing mode, do so before the RS2 instruction is driven (while off).
  • Page 166 ■Terminator When terminators are set in the communication settings (Page 159), the set values are stored in SD8625 and SD8626 for CH1, SD8635 and SD8636 for CH2, SD8645 and SD8646 for CH3 and SD8655 and SD8656 for CH4. Up to 4 terminators can be set. Terminator FX5 dedicated First header...
  • Page 167 Function and operation RS2 instruction specifies head device of the send data, no. of data, head device for storing the received data, the maximum no. of data that can be received. Create a program as shown below. Drive contact D100 D200 •...
  • Page 168 Send/receive data and amount of data RS2 instruction can handle sent and received data in two modes, 16-bit mode and 8-bit mode. The processing mode is set in the communication settings, and when the RS2 instruction is drive, the mode is switched to the set mode. The handling of data is as follows.
  • Page 169 • Receive data and amount of data received Header Data area Terminator Sum data The order is different from the data area. High High High High High order of order of order of order of order of order of order of order of order of order of...
  • Page 170 ■8-bit mode monitor SM400 16-bit data D100 D200 Ignored Lower 8 bits The upper 8 bits are ignored. Serial communication setting Only the lower 8 bits are valid. • Header : [Added] [DLE + STX (SD8623: 0210H, SD8624: 0000H)] • Terminator : [Added] [DLE + ETX (SD8625: 0310H, SD8626: 0000H)] •...
  • Page 171 • Receive data and amount of data received Header Data area Terminator Sum data The order is different from the data area. High High order of order of order of order of order of order of order of order of order of order of SD8623...
  • Page 172 ■Precautions for sending When sending data, please take care about the following. • While the sending request flag is ON, do not change the amount of send data or the contents of the send data. • Do not set the sending request flag to OFF in the program. If the send data is changed while the sending request flag (M8122) is ON or if the sending request flag (M8122) is set to OFF in the sequence program, correct data will not be sent.
  • Page 173 The time-out flag does not automatically turn OFF. Reset using program. While it remains ON, the PLC cannot receive the next set of data. When the receiving completed flag is set to OFF, the time-out flag is also set to OFF. Using this function, the PLC can receive data from equipment where the amount of send data varies without the terminators.
  • Page 174 Half-duplex, bi-directional communication operation ■Send completed → start send operation When sending of the data is completed, the sending request flag is automatically set to OFF. When RS2 instruction is executed again after the sending request flag is set to ON, the PLC starts to send. ■Send completed →...
  • Page 175: Operation Of Control Line (Rs-232C)

    ■For receive data The order is different Header Data area Terminator Sum data from the data area. High High High High High order Low order order of order of order of order of order of order of order of order of of sum of sum SD8623...
  • Page 176 Normal mode Use this mode for only sending or only receiving. ■Send only RS2 instruction The message 1 is interrupted OFF ON execution because DSR is turned off. SD(TXD) Message Message Message Send data Sending request DR(DSR) (Other device → FX) Sending wait flag ER(DTR) (FX →...
  • Page 177 Modem mode RS2 instruction OFF ON execution SD(TXD) Message Message 4 Send data Sending request ER(DTR) Turned off when a (FX → other device) sending request is sent in the modem mode. Turned on when a RD(RXD) sending request is sent Message 3 Message 2 Receive data...
  • Page 178: Precautions For Program Creation

    *2 In the interlink mode, the PLC sets ER (DTR) to OFF when the amount of data already received becomes "Number of bytes to be received -30", and asks the external equipment to stop sending. After this send request, the PLC can only receive up to 30 characters and no more, so the external equipment temporarily stops sending, and then sends the remaining data after the ER (DTR) signal turns ON again.
  • Page 179: Troubleshooting

    Troubleshooting This chapter explains troubleshooting and error codes. Checking communication status based on LED display Check the status of the LED display of [RD] and [SD] on the CPU module or the communication board/communication adapter. LED status Operation status Data is being sent or received. Data is being received, but not being transmitted.
  • Page 180 ■Error codes When the serial communication error turns ON, the error code is stored in the corresponding device specified in the table below. FX5 dedicated FX3 Series Name Description compatible SD8500 SD8510 SD8520 SD8530 SD8063 SD8438 Serial communication error When a serial communication error occurs, code the error code is stored.
  • Page 181: Related Devices

    Related Devices List of related devices Special relays ■FX5 only Device No. Name Description SM8500 SM8510 SM8520 SM8530 Serial communication error Turns ON when an error occurs in serial communication. SM8561 SM8571 SM8581 SM8591 Send request flag When this device is set to ON, the PLC starts to send. SM8562 SM8572 SM8582...
  • Page 182: Details Of Related Devices

    Device No. Name Description SD8503 SD8513 SD8523 SD8533 Serial communication This device stores the current communication mode being used. operation mode R: Read only, R/W: Read/Write ■FX3 Series compatible Device No. Name Description SD8063 SD8438 Serial communication error Stores the error code when a serial communication error occurs. code SD8402 SD8422...
  • Page 183 Sending wait flag These devices remain ON while the PLC is waiting to send. FX5 dedicated FX3 Series Description compatible SM8560 SM8570 SM8580 SM8590 SM8401 SM8421 These devices turn ON when serial communication is waiting to send. R: Read only •...
  • Page 184 Carrier detection flag These devices turn ON/OFF in synchronization with the CD (DCD) signal. FX5 dedicated FX3 Series Description compatible SM8563 SM8573 SM8583 SM8593 SM8404 SM8424 When the CD (DCD) signal of the counterpart device that is communicating via communication is turned ON, this synchronizes with it and turns ON.
  • Page 185 The time-out flag turns OFF when the PLC waits to receive. Using this function, the PLC can receive data from equipment where the amount of send data varies, without the terminators. Receive data is suspended. Receiving Data Set to OFF in program. Time-out time Timeout Receiving completed...
  • Page 186 Bit No. Name Description 0 (bit = OFF) 1 (bit = ON) Baud rate b7, b6, b5, b4 (0,0,1,1): 300 bps (0,1,0,0): 600 bps (0,1,0,1): 1200 bps (0,1,1,0): 2400 bps (0,1,1,1): 4800 bps (1,0,0,0): 9600 bps (1,0,0,1): 19200 bps (1,0,1,0): 38400 bps (1,0,1,1): 57600 bps (1,1,0,1): 115200 bps Header...
  • Page 187 Communication parameter display The communication parameter content set in the communication settings (Page 159) is stored when the power is turned OFF → ON or reset. The stored values are the same as the serial communication property values. (Page 183) FX3 Series compatible Description SD8405...
  • Page 188 Precautions Do not change the value with program or engineering tool. When the sum check code is set to [Added] in the communication settings, always select [Added] for the terminator. Time-out time These devices set the evaluation time for error when receiving of data is interrupted. (Unit: ms) FX5 dedicated Description SD8621...
  • Page 189 Precautions Even if the headers are set to [Added] in the communication settings, if the first header value is "00H", this is the [Do Not Add] state. The area before "00H" (in 1-byte units) is used to set the headers. Do not change the headers while the RS2 instruction is being driven.
  • Page 190: Chapter 7 Predefined Protocol Support Function

    PREDEFINED PROTOCOL SUPPORT FUNCTION This chapter describes predefined protocol support function (serial communication protocol support function). For details about built-in Ethernet protocol support function, refer to MELSEC iQ-F FX5 User's Manual (Ethernet Communication). Function Summary With predefined protocol support function, data can be sent and received between the counterpart device and CPU module according to the protocol of the counterpart device.
  • Page 191: Procedure Before Operation

    Procedure before Operation The flow chart below shows the Predefined Protocol Support Function setting and sequence program creation procedure up until communication with a counterpart device: Check communication specifications For communication specifications, and predefined protocol specifications, refer to Page 190 Specifications. System configuration and selection For system configuration, and select communication equipment, refer to Page 189 System Configuration.
  • Page 192: Specifications

    Communication device Serial port Important points for selection Overall distance Built-in RS-485 port Since it is built-into the CPU module, there is no need to add 50 m or less equipment. Communication FX5-485-BD Mounted on top of the CPU module, there is no change in the 50 m or less board installation space requirements.
  • Page 193: Communication Type

    Items Specifications Items Monitoring time 0 to 300000 ms When set 0 ms, timeout does not occur.  Communication data code Binary/ASCII  The maximum data length that can be 2048 byte sent/received at one time. Communication type With the predefined protocol support function, communications with counterpart devices are performed using the following procedures (communication types).
  • Page 194 Communication board (CH2) Navigation Window  Parameter  FX5UCPU  Module Parameter  Extended Board Window The following screen will be displayed if [FX5-232-BD] or [FX5-485-BD] is set for the extended board and [Predefined Protocol Support Function] is set for the communication protocol type. ■Basic Settings Communication adapter (CH3/CH4) When an expansion adapter is used, add expansion adapter to Module Information.
  • Page 195: Protocol Setting

    Protocol Setting Protocols can be selected and edited from the libraries that are pre-registered in GX Works3 or registered by the user. Execute the protocol setting from a protocol setting window displayed by the following operation in GX Works3. ToolPredefined Protocol Support FunctionCPU(Serial)New The fields in the protocol setting window are as follows.
  • Page 196: Adding Protocols

    Adding protocols Add or create a protocol from the predefined protocol library or user protocol library. Add a protocol on the screen displayed by the following operation. Protocol setting screen  Edit  Add Protocol Window The setting item of above screen is follows. Item Description Setting requirement...
  • Page 197: Configuring Detailed Setting Of Protocols

    Configuring detailed setting of protocols Set the send/reception parameters of the added protocol. Set the detailed setting of the protocol on the screen displayed by the following operation. Protocol setting screen  Select a row of any protocol on the protocol setting screen  Edit Protocol Detailed Setting Window The setting item of above screen is follows.
  • Page 198: Operations For Protocol Setting Data

    • The protocol setting data is written to module extended parameter (UEX3FF01.PPR). • When using protocol setting data written to SD memory card, set the protocol setting data transferred to the CPU built-in memory by boot operation. For details, refer to MELSEC iQ-F FX5 User's Manual (Application).
  • Page 199 Reading protocol setting data Read the protocol setting data on the screen displayed by the following operation. Online  Module Read Window The procedure to read the data is as follows. Select a CPU module from which the protocol setting data is read from Module Selection.
  • Page 200: Packet Setting

    Verification protocol setting data Verify the protocol setting data that is currently set with the protocol setting data that is written to the memory on the screen displayed by the following operation. Online  Module Verification Window The procedure to verify the data is as follows. Select the CPU module of the verification target to which the protocol setting data is written from Module Selection.
  • Page 201 *1 Element: Length / static data/ non-conversion variable / conversion variable / check code / non-verified reception Set the packet in the packet setting screen displayed by the following operation of GX Works3. Protocol setting screen  Desired packet setting Window The setting item of above screen is follows.
  • Page 202: Header

    Header Use this element when a specific code or character string exists at the head of a packet. • When sending: Sends a specified code and character string. • When receiving: Verifies a header and received data. Window Item Description Remarks Element Name Set the name of the element.
  • Page 203: Terminator

    Terminator Use this element when a code or character string indicating the end of the packet is included. Window Item Description Remarks  Element Name Set the name of the element.  Code Type Select a data type of the setting value. •...
  • Page 204: Length

    Length Use this element when an element indicating the data length is included in a packet. • When sending: Calculates the data length of a specified range, and adds the result to a send packet. • When receiving: Verifies the data (value) corresponding to the length in the received data as the data length of the specified range.
  • Page 205: Static Data

    Caution • When the number of digits of calculation result is greater than that specified in Data Length, digits greater than the specified digit are omitted (ignored). When 2 bytes is specified in Data Length and the calculation result is 123 bytes, the data length is considered as 23. •...
  • Page 206: Non-Conversion Variable

    Non-conversion Variable Use this element to send the data in the data device as a part of a send packet, or store a part of a receive packet to the device. Use when there is a variable element in the packet format that depends on the system. For data examples of non-conversion variable, refer to Page 243 Data examples of Non-conversion Variable.
  • Page 207 *2 For the variable data length, the data storage area is decided by specifying the data length storage area. (Page 205 When Fixed Length/Variable Length is Variable Length) Configuration of the data storage area ■When Fixed Length/Variable Length is Fixed Length An area starting from the device number which is specified on the Element Setting screen is considered as the data storage area.
  • Page 208 ■Settable devices Settable devices to data storage area is follows. Device Setting range Remarks Input 0 to 1023 When the assignment has been changed, the devices including the one having the maximum device number after the change can be Output accessed.
  • Page 209: Conversion Variable

    Conversion Variable This element converts the numerical data in the value of device to an ASCII string and sends it, or converts the received data (ASCII string) to numerical data and stores it to the device. When a variable element that is dependent on the system exists during packet formatting, use this function.
  • Page 210 Item Description Blank-padded Character • 0 Select a character used to fill upper digits when the number of digits of data is not Variable at Send • Space Number of Digits and the number of digits of transmitted/received data is less than the specified number of send digits of data.
  • Page 211 ■Occupied size in data storage area The size occupied in the data storage area varies depending on the settings of Conversion Unit and Number of Decimals. Setting item Occupied size in data storage area per one data Conversion Unit Number of Decimals Word No Decimal point/Fixed point 1 word...
  • Page 212 ■Range of value that can be used in the data storage area The following table shows the range of value that can be used in the data storage area. Conversion Sign Conversion unit Range of value HEX → ASCII decimal Unsigned Word 0 to 65535 (0H to FFFFH)
  • Page 213 Caution ■A string other than '0'-'9', 'A'-'F', or 'a'-'f' is received When Conversion is ASCII Hexadecimal→HEX, an error may occur if a string other than '0'-'9', 'A'-'F', or 'a'-'f' is received. ■A string other than '0'-'9' is received When Conversion is ASCII Decimal→HEX, an error may occur if a string other than '0'-'9' is received. However, the error does not occur in the following cases.
  • Page 214: Check Code

    ■A data that cannot be distinguished between Terminator or a Static data In received packet data from counterpart devices, CPU module needs to be able to distinguish data corresponding to a conversion variable from those of a Terminator or a Static data following a Conversion variable. The reception processing may not be performed normally if they cannot be distinguished.
  • Page 215: Non-Verified Reception

    Item Description Remarks Data Flow Forward Direction When Sends a calculated check code, from the lower byte. Not settable when (Upper Byte → Lower Byte) sending Processing Method is 16-bit CRC (for When Handles received data as a check code, from the upper MODBUS), or when the receiving byte.
  • Page 216 Considerations for configuring packet element ■When Data Length is '1 to 2048', the following requirements need to be met Multiple Non-verified receptions can be used in a packet and placed in any position of the data portion. ■When Data Length is '0', the following requirements need to be met Only one Non-verified reception can be placed in a packet, and one of the following requirements need to be met.
  • Page 217: Programming

    Predefined protocol support instruction This section explains the function, operation and programming method of the S(P).CPRTCL instruction. For details on the expression and executable format of the S(P).CPRTCL instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks).
  • Page 218 ■Control data Device Item Description Setting Set by range  Result of executed The result of executed S(P).CPRTCL instruction is stored. When two or more protocols are System protocols executed, the execution result of the protocol executed last is stored. •...
  • Page 219 Processing details • Protocols registered with the engineering tool are executed. The communication CH specified by (n1) is used and the protocol to be executed follows the control data of the device specified by (s) or later. • Protocols are executed consecutively for the number of the protocols specified by (n2) (up to eight protocols) in one instruction execution.
  • Page 220 Information to judge whether the predefined protocol can be executed or not Whether the predefined protocol can be executed or not can be judged with the value set in predefined protocol ready (SD9102). • SD9102 = 0: The protocol cannot be executed because the protocol setting has an error. •...
  • Page 221 Precautions • If a cancel request is issued while no protocol is being executed, the CPU module completes the cancel request without performing any processing. • The CPU module periodically checks for a cancel request. For this reason, it may take time until cancel processing is performed after a cancel request is issued.
  • Page 222 ■Monitor stop Monitoring is stopped by one of the following methods. • Monitoring is stopped when 0000H is set for send/receive data monitoring function setting. • When monitoring stop (bit 0: ON) is set for Data area full stop specification Monitoring is stopped when the data is stored for the size of the monitor data area.
  • Page 223 • Monitor data The monitor data is stored in the following configuration in 1-word units. Communication type Receiving data When data receiving Sending data When data sending When sending error detection FE: Framing error, OVR: Overrun error, PE: Parity error One word consists of the send/receive data (1 byte) for lower 8 bits and the data classification/signal monitor for upper 8 bits.
  • Page 224: Program Example

    Program example The following shows an example of a program to execute consecutively the protocols in order of protocol numbers 4, 7, and 5 from the communication board (CH2) with the predefined protocol support function. Program example Drive Drive S(P).CPRTCL instruction instruction = SD9102 K1 Protocol number executed first (4)
  • Page 225 Program example Monitor start Monitor start trigger Monitoring Monitoring data device specification SD9242 (R device) Monitoring data start device No. SD9243 specification (R0) Monitoring data size specification (33 • Monitoring data device No.: R0 HD00 SD9244 • Number of monitoring data: R1 •...
  • Page 226: Troubleshooting

    Troubleshooting This chapter explains troubleshooting and error codes. Checking communication status based on LED display Check the status of the LED display of [RD] and [SD] on the CPU module or the communication board/communication adapter. LED status Operation status Data is being sent or received. Data is being received, but not being transmitted.
  • Page 227 ■Error codes When the serial communication error turns ON, the error code is stored in the corresponding device specified in the table below. And be stored in resulting of executed S(P).CPRTCL instruction (operand (s)). Name Description SD8500 SD8510 SD8520 SD8530 Serial communication error When a serial communication error occurs, code...
  • Page 228 Error codes Name Description of error Error handling (hexadecimal) 7D21H Decimal point • An out-of-range decimal point position is set when the • Check the set decimal point position. place number of decimals is set to variable point. • Check the number of digits setting, and set the specification •...
  • Page 229 • Rewrite the program, reset the CPU module, and perform RUN. If the same error persists, it may be due to a hardware failure of the CPU module. Contact your local Mitsubishi Electric representative. 3405H Operation error The operand device number range or data value set for the Check the data specified by the S(P).CPRTCL...
  • Page 230: Related Devices

    7.10 Related Devices List of related devices Special relays Device No. Name Description SM8500 SM8510 SM8520 SM8530 Serial communication error Turns ON when an error occurs in serial communication. R: Read only Special registers Device No. Name Description SD8500 SD8510 SD8520 SD8530 Serial communication error...
  • Page 231: Details Of Related Devices

    Details of related devices The devices described below are used in predefined protocol support function. Serial communication error Turns ON when an error occurs in serial communication. These flags are for check of the serial communication error. Description SM8500 SM8510 SM8520 SM8530 Turns ON when an error occurs in serial...
  • Page 232 Bit No. Name Description 0 (bit = OFF) 1 (bit = ON) Baud rate b7, b6, b5, b4 (0,0,1,1): 300 bps (0,1,0,0): 600 bps (0,1,0,1): 1200 bps (0,1,1,0): 2400 bps (0,1,1,1): 4800 bps (1,0,0,0): 9600 bps (1,0,0,1): 19200 bps (1,0,1,0): 38400 bps (1,0,1,1): 57600 bps (1,1,0,1): 115200 bps Precautions...
  • Page 233 Predefined protocol setting data error When a protocol setting data error was detected, information to identify the error position is stored. ■Predefined protocol setting data error information: Protocol No. When a protocol setting data error was detected, the number of the protocol where the error has occurred is stored. Starting from the smallest protocol number, protocols are checked in order, and the number of the protocol where the error has first been detected is stored.
  • Page 234 ■Predefined protocol setting data error information: Element No. When a protocol setting data error was detected, the number of the element where the error has occurred is stored. Starting from the smallest element number, elements are checked in order, and the number of the element where the error has first been detected is stored.
  • Page 235 Protocol execution status The status of a protocol in execution is stored. For details, refer to Page 217. Description SD9150 SD9170 SD9190 SD9210 0: Unexecuted 1: Waiting for transmission 2: Sending 3: Waiting for data reception 4: Receiving 5: Completed R: Read only Precautions Do not change the value with program or engineering tool.
  • Page 236 Send/receive data monitoring function option setting The data area full stop specification and 1-packet stop specification of the send/receive data monitoring function can be enabled or disabled by storing a value. For details, refer to Page 219 Send/receive data monitoring function. Description SD9231 SD9241...
  • Page 237 Monitoring data size specification The size of word devices used as the monitor data areas with the send/receive data monitoring function is stored in word units. For details, refer to Page 220 Monitor data. Description SD9234 SD9244 SD9254 SD9264 0 to 32765 W: Write only Precautions When a device value is changed after the send/receive data monitoring has been started, the change is not reflected.
  • Page 238: Appendix

    APPENDIX Appendix 1 Combined Use of Serial Communication Channel specification The same serial port cannot be used for more than one communication function. Duplicate channel numbers cannot be specified in communication settings, but an error may still result if channel numbers for communications functions other than the designated function are specified in the following commands.
  • Page 239: Appendix 2 Operation Image And Data Structure Of Predefined Protocol

    Appendix 2 Operation Image and Data Structure of Predefined Protocol Operation image of each communication type Operation image of each communication type of protocol as shown below. Send only The specified packet is transmitted once. Counterpart Terminator Header Data area CPU module device The operation is as follows.
  • Page 240 Receive only When data are received from the counterpart device, the process completes when the received data matches the receive packet and the receiving process is performed. For verification mismatch, the receive data is discarded, and the CPU unit waits for the next receive data. (Page 240 Operation Image and Data Structure of Predefined Protocol) Settable receive packet (expected packet) is up to 16.
  • Page 241 Send & receive A packet is sent once, and the status changes to the data receive wait status after the transmission completes normally. Then, data is received from the counterpart device, and the process completes when the received data matches the receive packet and the receiving process is performed.
  • Page 242: Verification Operation

    • When variables are included in receive packet elements, variable parts are not verified. • When more than one receive packet is specified, received data is verified with the receive packet information of the first registered packet in the order of registration. The receive processing is performed once received data match one of the receive packet number, and further verification is not performed.
  • Page 243: Data Examples Of Length

    Operation performed for verification mismatch When receive data does not match with all receive packets, the receive data is discarded. Note that discarding receive data does not cause an error. Receive packet Packet No.1 Packet No.2 Packet No.3 Packet No.16 (expected packet) Verification Verification...
  • Page 244 ■Data flow is Reverse Direction Code type Data length 1 byte 2 byte 3 byte 4 byte ASCII hexadecimal  20 (32H 30H) 201 (32H 30H 31H) 2010 (32H 30H 31H 30H)  ASCII decimal 85 (38H 35H) 852 (38H 35H 32H) 8520 (38H 35H 32H 30H) ...
  • Page 245: Data Examples Of Non-Conversion Variable

    Calculating range The following shows specification examples of the calculating range of Length. Packet Packet Packet Packet Packet Packet element 1 element 2 element 3 element n-2 element n-1 element n Packet format Header Length Static data Variable Terminator Check code Calculating range when specifying 1 to n Example 1 Calculating range when specifying 3 to (n-2)
  • Page 246: Data Examples Of Conversion Variable

    Data examples of Conversion Variable Shows the data examples of element conversion variable that can be placed in a packet. Data example The following table shows send data when a packet consists of [Header], [Conversion variable], [Terminator] and data stored in the data storage area is D0=837 (0345H), D1=18 (0012H).
  • Page 247 Item Description Data Storage Area Specification [Header]345,[Terminator] [Header]_ 345,_ _ 12[Terminator] [Header]345,12[Terminator] Send data *1 The "_" indicates a space. Operation of Sign Character ■Sending Conversion: HEX→ASCII Decimal Number of Send Data: 1 Conversion Unit: Word Number of Send Digits of Data: 5 •...
  • Page 248 Operation of Number of Decimals ■Sending • Fixed point Conversion: HEX→ASCII Decimal Number of Send Data: 2 Conversion Unit: Word Number of Send Digits of Data: 4 Number of Decimals: 1 Data Storage Area Send 123.4 1234 (04D2H) Value First data 567.8 5678 (162EH) Second data...
  • Page 249 • Variable Point Conversion: ASCII Decimal→HEX Number of Receive Data: 2 Conversion Unit: Word Number of Receive Digits of Data: 4 Receive Data Storage Area 1234 (04D2H) Value 123.4 First data Decimal point 10 (000AH) position area 5678 (162EH) Value 5.678 Second data Decimal point...
  • Page 250 ■Receiving • Comma (Space too) Conversion: ASCII Decimal→HEX Number of Receive Data: 1 Conversion Unit: Word Number of Receive Digits of Data: 4 Receive Data Storage Area “1” “2” “3” “4” “,” 1234 (04D2H) First data Conversion: ASCII Decimal→HEX Number of Receive Data: 2 Conversion Unit: Word Number of Receive Digits of Data: 4 Receive...
  • Page 251: Data Examples Of Check Code

    Data examples of Check Code Shows the data examples of element check code that can be placed in a packet. Calculation procedure for horizontal parity The following show procedures for calculating horizontal parities using the following sample data. Horizontal “Q” “J”...
  • Page 252 ■Data Flow: Reverse Direction • No complement calculation is designated (Reference) Hexadecimal: 15H, Decimal: 21 Code type Data length (Values in ( ) indicate ASCII code.) 1 byte 2 byte 3 byte 4 byte ASCII hexadecimal  51 (35H 31H) 510 (35H 31H 30H) 5100 (35H 31H 30H 30H) ...
  • Page 253 • Two's complement is designated (Two's complement for 0000 0015H: FFFF FFEBH) When Code Type is ASCII Decimal, the lower one word is extracted and converted from hexadecimal to decimal. (hexadecimal: FFEBH, decimal: 65515) Code type Data length (Values in ( ) indicate ASCII code.) 1 byte 2 byte 3 byte...
  • Page 254 ■Data Flow: Reverse Direction • No complement calculation is designated (Reference) Hexadecimal: 1FDH, Decimal: 509 Code type Data length (Values in ( ) indicate ASCII code.) 1 byte 2 byte 3 byte 4 byte ASCII hexadecimal  DF (44H 46H) DF1 (44H 46H 31H) DF10 (44H 46H 31H 30H) ...
  • Page 255 • Two's complement is designated (Two's complement for 0000 01FDH: FFFF FE03H) When Code Type is ASCII Decimal, the lower one word is extracted and converted from hexadecimal to decimal. (hexadecimal: FE03H, decimal: 65027) Code type Data length (Values in ( ) indicate ASCII code.) 1 byte 2 byte 3 byte...
  • Page 256 CRC error checking procedure 16-bit register (MSB) Flag Calculating procedure Shift 1 0100 0000 1001 1100 Generator polynomial 1010 0000 0000 0001 Exclusive OR (XOR) 1110 0000 1001 1101 Shift 2 0111 0000 0100 1110 Generator polynomial 1010 0000 0000 0001 Exclusive OR (XOR) 1101 0000 0100 1111...
  • Page 257: Data Examples Of Non-Verified Reception

    Data examples of Non-verified reception Shows the data examples of element non-verified reception that can be placed in a packet. The usage example for non-verified reception is shown below. Example of format of packet from other device Data to be read Variable number 1 byte 2 byte...
  • Page 258: Appendix 3 Ascii Code Table

    Appendix 3 ASCII Code Table ASCII code table (8-bit code expressed in hexadecimal) Hexadecimal value " & < > APPX Appendix 3 ASCII Code Table...
  • Page 259: Appendix 4 Added And Enhanced Functions

    Appendix 4 Added and Enhanced Functions The functions added or changed with the CPU module and engineering tool, and the supported CPU modules' firmware version and engineering tool software version are given below. • The firmware version can be confirmed with module diagnosis (CPU diagnosis). Refer to the User's Manual (Hardware) for the CPU module in use for details on diagnosing the module (CPU diagnosis).
  • Page 260: Index

    INDEX 0 to 9 ..... . . 104 ......191,198 10BASE-T cable Packet .
  • Page 261 MEMO...
  • Page 262: Revisions

    7.10, Appendix 4 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 263: Warranty

    If any faults or defects (hereinafter "Failure") found to Mitsubishi shall accept onerous product repairs for be the responsibility of Mitsubishi occurs during use of seven (7) years after production of the product is the product within the gratis warranty term, the discontinued.
  • Page 264: Trademarks

    TRADEMARKS   Microsoft and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Ethernet is a trademark of Xerox Corporation. Anywire and ANYWIREASLINK is a registered trademark of the Anywire Corporation. ...
  • Page 266 Manual number: JY997D55901E Model: FX5-U-SC-E Model code: 09R540 When exported from Japan, this manual does not require application to the Ministry of Economy, Trade and Industry for service transaction permission. HEAD OFFICE: TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN Specifications are subject to change without notice.

Table of Contents