MELSEC iq-f FX5 User's Manual (MODBUS Communication)

Size: px
Start display at page:

Download "MELSEC iq-f FX5 User's Manual (MODBUS Communication)"

Transcription

1 MELSEC iq-f FX5 User's Manual (MODBUS Communication)

2

3 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 attention to safety in order to handle the product correctly. This manual classifies the safety precautions into two categories: [ WARNING] and [ CAUTION]. WARNING CAUTION Indicates that incorrect handling may cause hazardous conditions, resulting in death or severe injury. Indicates that incorrect handling may cause hazardous conditions, resulting in minor or moderate injury or property damage. Depending on the circumstances, procedures indicated by [ CAUTION] may also cause severe injury. It is important to follow all precautions for personal safety. Store this manual in a safe place so that it can be read whenever necessary. Always forward it to the end user. [DESIGN PRECAUTIONS] WARNING Make sure to set up the following safety circuits outside the PLC to ensure safe system operation even during external power supply problems or PLC failure. Otherwise, malfunctions may cause serious accidents. - Note that when the CPU module detects an error, such as a watchdog timer error, during selfdiagnosis, all outputs are turned off. Also, when an error that cannot be detected by the CPU module occurs in an input/output control block, output control may be disabled. External circuits and mechanisms should be designed to ensure safe machine operation in such a case. Construct an interlock circuit in the program so that the whole system always operates on the safe side before executing the control (for data change) of the PLC in operation. Read the manual thoroughly and ensure complete safety before executing other controls (for program change, parameter change, forcible output and operation status change) of the PLC in operation. Otherwise, the machine may be damaged and accidents may occur due to erroneous operations. For the operating status of each station after a communication failure of the network, refer to relevant manuals for the network. Incorrect output or malfunction may result in an accident. 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. 1

4 [WIRING PRECAUTIONS] WARNING Make sure to cut off all phases of the power supply externally before attempting installation or wiring work. Failure to do so may cause electric shock or damage to the product. Make sure to attach the terminal cover, provided as an accessory, before turning on the power or initiating operation after installation or wiring work. Failure to do so may cause electric shock. The temperature rating of the cable should be 80 or more. Make sure to properly wire to the terminal block (European type) in accordance with the following precautions. Failure to do so may cause electric shock, equipment failures, a short-circuit, wire breakage, malfunctions, or damage to the product. - The disposal size of the cable end should follow the dimensions described in the manual. - Tightening torque should follow the specifications in the manual. - Twist the ends of stranded wires and make sure that there are no loose wires. - Do not solder-plate the electric wire ends. - Do not connect more than the specified number of wires or electric wires of unspecified size. - Affix the electric wires so that neither the terminal block nor the connected parts are directly stressed. [WIRING PRECAUTIONS] CAUTION Install module so that excessive force will not be applied to terminal blocks, power connectors, I/O connectors, communication connectors, or communication cables. Failure to do so may result in wire damage/breakage or PLC failure. Make sure to observe the following precautions in order to prevent any damage to the machinery or accidents due to malfunction of the PLC caused by abnormal data written to the PLC due to the effects of noise. (1) Do not bundle the power line, control line and communication cables together with or lay them close to the main circuit, high-voltage line, load line or power line. As a guideline, lay the power line, control line and communication cables at least 100 mm (3.94") away from the main circuit, high-voltage line, load line or power line. (2) Ground the shield of the shielded wire or shielded cable at one point on the PLC. However, do not use common grounding with heavy electrical systems. [STARTUP AND MAINTENANCE PRECAUTIONS] WARNING Do not touch any terminal while the PLC's power is on. Doing so may cause electric shock or malfunctions. Before cleaning or retightening terminals, cut off all phases of the power supply externally. Failure to do so in the power ON status may cause electric shock. Before modifying the program in operation, forcible output, running or stopping the PLC, read through this manual carefully, and ensure complete safety. An operation error may damage the machinery or cause accidents. Do not change the program in the PLC from two or more peripheral equipment devices at the same time. (i.e. from an engineering tool and a GOT) Doing so may cause destruction or malfunction of the PLC program. 2

5 [STARTUP AND MAINTENANCE PRECAUTIONS] CAUTION 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. Turn off the power to the PLC before attaching or detaching the following devices. Failure to do so may cause equipment failures or malfunctions. - Peripheral devices, expansion board and expansion adapter - Extension modules, bus conversion module and connector conversion module - Battery 3

6 INTRODUCTION This manual contains text, diagrams and explanations which will guide the reader in the correct installation, safe use and operation of the FX5 MODBUS Communication and should be read and understood before attempting to install or use the unit. It should be read and understood before attempting to install or use the unit. Store this manual in a safe place so that you can read it whenever necessary. Always forward it to the end user. Regarding use of this product This product has been manufactured as a general-purpose part for general industries, and has not been designed or manufactured to be incorporated in a device or system used in purposes related to human life. Before using the product for special purposes such as nuclear power, electric power, aerospace, medicine or passenger movement vehicles, consult Mitsubishi Electric. This product has been manufactured under strict quality control. However when installing the product where major accidents or losses could occur if the product fails, install appropriate backup or failsafe functions in the system. Note If in doubt at any stage during the installation of the product, always consult a professional electrical engineer who is qualified and trained in the local and national standards. If in doubt about the operation or use, please consult the nearest Mitsubishi Electric representative. Since the examples indicated by this manual, technical bulletin, catalog, etc. are used as a reference, please use it after confirming the function and safety of the equipment and system. Mitsubishi Electric will accept no responsibility for actual use of the product based on these illustrative examples. This manual content, specification etc. may be changed, without a notice, for improvement. The information in this manual has been carefully checked and is believed to be accurate; however, if you notice a doubtful point, an error, etc., please contact the nearest Mitsubishi Electric representative. When doing so, please provide the manual number given at the end of this manual. 4

7 MEMO 5

8 CONTENTS SAFETY PRECAUTIONS INTRODUCTION RELEVANT MANUALS TERMS PART 1 MODBUS SERIAL COMMUNICATION CHAPTER 1 OUTLINE Outline of Function Procedure for Operation CHAPTER 2 CONFIGURATION System Configuration CHAPTER 3 SPECIFICATIONS Communication Specifications Link Time CHAPTER 4 MODBUS COMMUNICATION SPECIFICATIONS MODBUS Protocol Frame mode List of supported MODBUS standard functions CHAPTER 5 WIRING Wiring Procedure Selecting Connection For RS-232C For RS Connecting cables Termination resistor setting Connection Diagram Connection diagram for RS-232C Connection diagram for RS Grounding CHAPTER 6 COMMUNICATION SETTING Setup Method for MODBUS Serial Communication Using the CPU module Using an Extended board Using an Expansion adapter Contents of parameter setting CHAPTER 7 FUNCTION Master Function Slave Function

9 7.3 Related Devices List of related devices Details of Related Devices CHAPTER 8 CREATING PROGRAMS Creating Programs for the Master Station Cautions on Program Creation PART 2 MODBUS/TCP COMMUNICATION CHAPTER 9 OUTLINE Outline of Function Procedure for Operation CHAPTER 10 SPECIFICATIONS 48 CONTENTS 10.1 Communication Specifications CHAPTER 11 MODBUS/TCP COMMUNICATION SPECIFICATIONS MODBUS Protocol Frame specifications List of supported MODBUS standard functions CHAPTER 12 COMMUNICATION SETTING Setup Method for Port No Setup Method for MODBUS/TCP Communication Contents of parameter setting CHAPTER 13 FUNCTION Master Function Slave Function Related Devices Details of Related Devices APPENDIX 59 Appendix 1 Troubleshooting MODBUS serial communication MODBUS/TCP communication Appendix 2 Error code Appendix 3 The frame specifications Procedure for generating of CRC MODBUS protocol data unit formats Appendix 4 Initial values of MODBUS device allocation Appendix 5 Added and Enhanced Functions INDEX 78 REVISIONS WARRANTY TRADEMARKS

10 RELEVANT MANUALS Manual name <manual number> MELSEC iq-f FX5 User's Manual (Startup) <JY997D58201> MELSEC iq-f FX5U User's Manual (Hardware) <JY997D55301> MELSEC iq-f FX5UC User's Manual (Hardware) <JY997D61401> MELSEC iq-f FX5 User's Manual (Application) <JY997D55401> MELSEC iq-f FX5 Programming Manual (Program Design) <JY997D55701> MELSEC iq-f FX5 Programming Manual (Instructions, Standard Functions/Function Blocks) <JY997D55801> MELSEC iq-f FX5 User's Manual (Serial Communication) <JY997D55901> MELSEC iq-f FX5 User's Manual (MELSEC Communication Protocol) <JY997D60801> MELSEC iq-f FX5 User's Manual (MODBUS Communication) <JY997D56101> (This manual) MELSEC iq-f FX5 User's Manual (Ethernet Communication) <JY997D56201> MELSEC iq-f FX5 User's Manual (SLMP) <JY997D56001> MELSEC iq-f FX5 User's Manual (CC-Link IE) <JY997D64201> MELSEC iq-f FX5 User's Manual (CC-Link) <SH ENG> MELSEC iq-f FX5 User's Manual (ASLINK) <SH ENG> MELSEC iq-f FX5 User's Manual (Positioning Control - CPU module built-in, High-speed pulse input/output module) <JY997D56301> MELSEC iq-f FX5 User's Manual (Positioning Control - Intelligent function module) <SH ENG> MELSEC iq-f FX5 Simple Motion Module User's Manual (Startup) <IB > MELSEC iq-f FX5 Simple Motion Module User's Manual (Application) <IB > MELSEC iq-f FX5 Simple Motion Module User's Manual (Advanced Synchronous Control) <IB > MELSEC iq-f FX5 User's Manual (Analog Control - CPU module builtin, Expansion adapter) <JY997D60501> MELSEC iq-f FX5 User's Manual (Analog Control - Intelligent function module) <SH ENG> MELSEC iq-f FX5 User's Manual (Temperature Control) <SH ENG> GX Works3 Operating Manual <SH ENG> Transition from MELSEC FX3U, FX3UC Series to MELSEC iq-f Series Handbook <JY997D66201> Description Performance specifications, procedures before operation, and troubleshooting of the CPU module. Describes the details of hardware of the FX5U CPU module, including input/output specifications, wiring, installation, and maintenance. Describes the details of hardware of the FX5UC CPU module, including input/output specifications, wiring, installation, and maintenance. Describes basic knowledge required for program design, functions of the CPU module, devices/labels, and parameters. Describes specifications of ladders, ST, FBD/LD, and other programs and labels. Describes specifications of instructions and functions that can be used in programs. Describes N:N network, Parallel link, MELSEC Communication protocol, inverter communication, non-protocol communication, and predefined protocol support. Explains methods for the device that is communicating with the CPU module by MC protocol to read and write the data of the CPU module. Describes MODBUS serial communication and MODBUS/TCP communication. Describes the functions of the built-in Ethernet port communication function. Explains methods for the device that is communicating with the CPU module by SLMP to read and write the data of the CPU module. Describes CC-Link IE field network module. Describes CC-Link system master/intelligent device module. Describes AnyWireASLINK system master module. Describes the positioning function of the CPU module built-in and the high-speed pulse input/output module. Describes the positioning module. Specifications, procedures before operation, system configuration, wiring, and operation examples of the Simple Motion module. Functions, input/output signals, buffer memories, parameter settings, programming, and troubleshooting of the Simple Motion module. Functions and programming for the synchronous control of the Simple Motion module. Describes the analog function of the CPU module built-in and the analog adapter. Describes the analog input module, analog output module, and multiple input module. Describes the temperature control module. System configuration, parameter settings, and online operations of GX Works3. Describes the transition from MELSEC FX3U/FX3UC series to MELSEC iq-f series. 8

11 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 Devices FX5 FX3 FX5 CPU module FX5U CPU module FX5UC CPU module Extension module FX5 extension module FX3 extension module Extension module (extension cable type) Extension module (extension connector type) I/O module Input module Input module (extension cable type) Input module (extension connector type) Output module Output module (extension cable type) Output module (extension connector type) Input/output module Input/output module (extension cable type) Input/output module (extension connector type) Powered input/output module High-speed pulse input/output module Extension power supply module FX5 extension power supply module FX5 extension power supply module (extension cable type) FX5 extension power supply module (extension connector type) FX3 extension power supply module Intelligent module Intelligent function module FX5 intelligent function module Description Generic term for FX5U and FX5UC PLCs Generic term for FX3S, FX3G, FX3GC, FX3U, and FX3UC PLCs Generic term for FX5U CPU module and FX5UC CPU module Generic term for FX5U-32MR/ES, FX5U-32MT/ES, FX5U-32MT/ESS, FX5U-64MR/ES, FX5U-64MT/ES, FX5U-64MT/ESS, FX5U-80MR/ES, FX5U-80MT/ES, FX5U-80MT/ESS, FX5U-32MR/DS, FX5U-32MT/DS, FX5U-32MT/DSS, FX5U-64MR/DS, FX5U-64MT/DS, FX5U-64MT/DSS, FX5U-80MR/DS, FX5U-80MT/DS, and FX5U-80MT/DSS Generic term for FX5UC-32MT/D, FX5UC-32MT/DSS, FX5UC-64MT/D, FX5UC-64MT/DSS, FX5UC-96MT/D, FX5UC-96MT/DSS, FX5UC-32MT/DS-TS, and FX5UC-32MT/DSS-TS Generic term for FX5 extension modules and FX3 function modules Generic term for I/O modules, FX5 extension power supply modules, and FX5 intelligent function modules Generic term for FX3 extension power supply module and FX3 intelligent function module Generic term for Input modules (extension cable type), Output modules (extension cable type), Input/output modules (extension cable type), Powered input/output module, High-speed pulse input/output module, Extension power supply module (extension cable type), Connector conversion module (extension cable type), Intelligent function modules, and Bus conversion module (extension cable type) Generic term for Input modules (extension connector type), Output modules (extension connector type), Input/ output modules (extension connector type), Extension power supply module (extension connector type), Connector conversion module (extension connector type), and Bus conversion module (extension connector type) Generic term for Input modules, Output modules, Input/output modules, Powered input/output modules, and High-speed pulse input/output modules Generic term for Input modules (extension cable type) and Input modules (extension connector type) Generic term for FX5-8EX/ES and FX5-16EX/ES Generic term for FX5-C16EX/D, FX5-C16EX/DS, FX5-C32EX/D, FX5-C32EX/DS, and FX5-C32EX/DS-TS Generic term for Output modules (extension cable type) and Output modules (extension connector type) Generic term for FX5-8EYR/ES, FX5-8EYT/ES, FX5-8EYT/ESS, FX5-16EYR/ES, FX5-16EYT/ES, and FX5-16EYT/ESS Generic term for FX5-C16EYT/D, FX5-C16EYT/DSS, FX5-C32EYT/D, FX5-C32EYT/DSS, FX5-C32EYT/D-TS, and FX5-C32EYT/DSS-TS Generic term for Input/output modules (extension cable type) and Input/output modules (extension connector type) Generic term for FX5-16ER/ES, FX5-16ET/ES, and FX5-16ET/ESS Generic term for FX5-C32ET/D, FX5-C32ET/DSS, FX5-C32ET/DS-TS, and FX5-C32ET/DSS-TS Generic term for FX5-32ER/ES, FX5-32ET/ES, FX5-32ET/ESS, FX5-32ER/DS, FX5-32ET/DS, and FX5-32ET/ DSS Generic term for FX5-16ET/ES-H and FX5-16ET/ESS-H Generic term for FX5 extension power supply module and FX3 extension power supply module Generic term for FX5 extension power supply module (extension cable type) and FX5 extension power supply module (extension connector type) Different name for FX5-1PSU-5V Different name for FX5-C1PS-5V Different name for FX3U-1PSU-5V The abbreviation for intelligent function modules Generic term for FX5 intelligent function modules and FX3 intelligent function modules Generic term for FX5-4AD, FX5-4DA, FX5-8AD, FX5-4LC, FX5-20PG-P, FX5-40SSC-S, FX5-80SSC-S, FX5- CCLIEF, FX5-CCL-MS, and FX5-ASL-M 9

12 Terms FX3 intelligent function module Expansion board Communication board Expansion adapter Communication adapter Analog adapter Bus conversion module Bus conversion module (extension cable type) Bus conversion module (extension connector type) Connector conversion module Connector conversion module (extension cable type) Connector conversion module (extension connector type) Extended extension cable Connector conversion adapter Battery Peripheral device GOT Software packages Engineering tool GX Works3 Communication-related Built-in RS-485 port Serial port Description Generic term for FX3U-4AD, FX3U-4DA, FX3U-4LC, FX3U-1PG, FX3U-2HC, FX3U-16CCL-M, FX3U-64CCL, and FX3U-128ASL-M Generic term for board for FX5U CPU module Generic term for FX5-232-BD, FX5-485-BD, and FX5-422-BD-GOT Generic term for adapter for FX5 CPU module Generic term for FX5-232ADP and FX5-485ADP Generic term for FX5-4AD-ADP, FX5-4DA-ADP, FX5-4AD-PT-ADP, and FX5-4AD-TC-ADP Generic term for Bus conversion module (extension cable type) and Bus conversion module (extension connector type) Different name for FX5-CNV-BUS Different name for FX5-CNV-BUSC Generic term for Connector conversion module (extension cable type) and Connector conversion module (extension connector type) Different name for FX5-CNV-IF Different name for FX5-CNV-IFC Generic term for FX5-30EC and FX5-65EC Different name for FX5-CNV-BC Different name for FX3U-32BL Generic term for engineering tools and GOTs Generic term for Mitsubishi Electric Graphic Operation Terminal GOT1000 and GOT2000 series The product name of the software package for the MELSEC programmable controllers The product name of the software package, SWnDND-GXW3, for the MELSEC programmable controllers (The 'n' represents a version.) CPU module built-in RS-485 port Generic name for FX5 CPU module built-in RS-485 port (CH1), communication board (CH2), communication adapter 1 (CH3), communication adapter 2 (CH4) (4 ports) 10

13 PART 1 MODBUS SERIAL COMMUNICATION PART 1 This part consists of the following chapters. 1 OUTLINE 2 CONFIGURATION 3 SPECIFICATIONS 4 MODBUS COMMUNICATION SPECIFICATIONS 5 WIRING 6 COMMUNICATION SETTING 7 FUNCTION 8 CREATING PROGRAMS 11

14 1 OUTLINE This chapter explains the FX5 MODBUS serial communication. When predefined protocol support function is used, refer to the MELSEC iq-f FX5 User's Manual (Serial Communication). 1.1 Outline of Function The FX5 MODBUS serial communication function can control 32 slaves for RS-485 communication and one slave for RS- 232C communication by a single master. The master function and slave function are supported and the master and slave can be used simultaneously by a single FX5. (Only one channel for the master) Up to 4 channels can be used for MODBUS serial communication function by one CPU module. The master uses a PLC command dedicated to MODBUS serial communication and controls the slave. The communication protocol supports the RTU mode. System <RS-485> 1200 m (3937' 0") (50 m (164' 0") or shorter when other than the FX5-485ADP is included in the system) FX5 master station FX5 slave station 1 FX5 slave station n Built-in RS-485 port etc Built-in RS-485 port etc Built-in RS-485 port etc <RS-232C> 15 m (49' 2") FX5 master station FX5 slave station 1 RS-232C communication equipment RS-232C communication equipment The slave station No. can be set from 1 to 247 *1. However, the number of slave station which can be connected to the FX5 master station is 32. *1 Slave station No. that can be set in FX5 master station differs depending on the version. ( Page 77 Added and Enhanced Functions) 12 1 OUTLINE 1.1 Outline of Function

15 1.2 Procedure for Operation The flow chart below shows the procedure for setting up a MODBUS serial communication network: 1 1. Check communication specifications Refer to Page 16 SPECIFICATIONS or Page 20 MODBUS COMMUNICATION SPECIFICATIONS Communication Specifications Link Time MODBUS Serial Communication Specifications MODBUS Serial Communication Protocol, Details of MODBUS Standard Functions 2. System configuration and selection Refer to Page 14 CONFIGURATION System Configuration Selection of communication equipment 3. Wiring Refer to Page 22 WIRING Wiring procedure Wiring example 4. Communication settings Refer to Page 27 COMMUNICATION SETTING Communication setting using GX Works3 *1 *1 For details on the connection method or operation method to the PLC of GX Works3, refer to the following manual. GX Works3 Operating Manual Setting parameters, Related special device 5. Program creation Refer to Page 32 FUNCTION or Page 43 CREATING PROGRAMS Function Master function, Slave function, Related special device MODBUS serial communication program Example of creating programs of the master using ADPRW instruction 1 OUTLINE 1.2 Procedure for Operation 13

16 2 CONFIGURATION This chapter explains the configuration of RS-485 and RS-232C communication of the FX System Configuration This section outlines the system configuration required to use MODBUS serial communication. FX5U CPU module In FX5U CPU module, up to four communication port channels can be connected to a CPU module using built-in RS-485 port, communication board, and communication adapter. The communication channel assignments are fixed to the following numbers, regardless of the system configuration. CH4: Communication adapter 2 CH3: Communication adapter 1 CH2: Communication board CH1: Built-in RS-485 port Communication port Important point in selection Total extension distance Built-in RS-485 port CH1 Since it is built-into the CPU module, there is no need to add equipment 50 m (164' 0") or less Communication board FX5-485-BD CH2 Mounted on top of the CPU module, there is no change in the FX5-232-BD installation space requirements 50 m (164' 0") or less 15 m (49' 2") or less Communication adapter FX5-485ADP CH3, CH4 *1 Mount the communication adapter to the left of the CPU module 1200 m (3937' 0") or less FX5-232ADP 15 m (49' 2") or less *1 Assigned to CH3 or CH4 in order of proximity to CPU module CONFIGURATION 2.1 System Configuration

17 FX5UC CPU module In FX5UC CPU module, up to three communication port channels can be connected to a CPU module using built-in RS-485 port, and communication adapter. The communication channel assignments are fixed to the following numbers, regardless of the system configuration. CH4: Communication adapter-2 CH3: Communication adapter-1 2 Communication port *1 Assigned to CH3 or CH4 in order of proximity to CPU module. Important point in selection Built-in RS-485 port CH1 Since it is built-into the CPU module, there is no need to add equipment Communication adapter Total extension distance 50 m (164' 0") or less FX5-485ADP CH3, CH4 *1 Mount the communication adapter to the left of the CPU module 1200 m (3937' 0") or less FX5-232ADP CH1: Built-in RS-485 port 15 m (49' 2") or less 2 CONFIGURATION 2.1 System Configuration 15

18 3 SPECIFICATIONS This chapter explains the specifications of MODBUS serial communication. 3.1 Communication Specifications MODBUS serial communication is executed within the specifications shown in the table below. The baud rate, etc. can be changed in the parameter settings of GX Works3. Item Specifications Remarks Number of connectable units Communication specifications Master function Communication interface Built-in RS-485 port FX5-485-BD FX5-485ADP Up to 4 Channel (Only one channel for the master) FX5-232-BD FX5-232ADP RS-485 RS-232C Baud rate 300/600/1200/2400/4800/9600/19200/38400/57600/ bps Data length 8 bit Parity bit None, odd or even Stop bit 1 bit/2 bit Transmission distance Communication protocol Number of connectable slaves 1200 m (3937' 0") or less for the system configured with FX5-485ADP only 50 m (164' 0") or less for the system configured with devices other than above RTU The channel can be used as master or slave. 15 m (49' 2") or less The transmission distance varies depending on communication equipment type. 32 slaves 1 slave The number of slaves varies depending on communication equipment type. Number of functions 8 (No diagnosis function) Number of simultaneous sending messages Maximum number of writes Maximum number of reads 1 message 123 words or 1968 coils 125 words or 2000 coils Slave function Number of functions 8 (No diagnosis function) Number of messages which can be received simultaneously 1 message Station number 1 to SPECIFICATIONS 3.1 Communication Specifications

19 3.2 Link Time The link time indicates the cycle time in which a master module completes a single instruction with a slave, as illustrated by the diagram below. X0 SET M0 M0 ADPRW ** ** ** ** ** ** 3 SM8029 Instruction execution complete flag RST M0 M0 SM8029 Master processing time (Tm) T1 T2 T3 Master Message to Message Delay T4 Command Creation Request Sending Slave Delay Response Receiving T5 3.5 character wait T6 T7 T8 T9 T10 Processing T11 T12 T13 Request Receiving Slave Message to Message Delay Processing T14 T15 Response Sending Slave processing time (Ts) 3 SPECIFICATIONS 3.2 Link Time 17

20 The master processing time (Tm) can be calculated in milliseconds (ms) as follows. "INT(n)" indicates an integer obtained by truncating decimal places of "n". Character length (bits): Start bit (1 bit) + Data Length (8 bit) + Parity bit (0 bit or 1 bit) + Stop bit (1 bit or 2 bit) Tm = T1 + T2 + T3 T4 T1 = INT +1 Max. Scan Time Max. Scan Time T4 = SD8864, SD8874, SD8884, or SD8894 (depending on the communication channel) T5 T2 = INT +1 Max. Scan Time Max. Scan Time T5 = T6 + T7 + T8 + T9 + T10 T6 = less than 1 ms Number of Bytes in Request Character Length (bits) T7 = Baud Rate (bps) T8 = Slave delay time (depending on the slave) 1000 (ms) + 1 ms Number of Bytes in Response Character Length (bits) T9 = 1000 (ms) + 1 ms Baud Rate (bps) T10 = 3.5 Characters Character Length (bits) Baud Rate (bps) 1000 (ms) + 1 ms T3 = less than 1 ms The slave processing time (Ts) can be calculated in milliseconds (ms) as follows. Character length (bits): Start bit (1 bit) + Data Length (8 bit) + Parity bit (0 bit or 1 bit) + Stop bit (1 bit or 2 bit) Ts = T11 + T12 + T13 T11 = T14 + T15 + Max. Scan Time T14 = Number of Bytes in Request Character Length (bits) 1000 (ms) + 1 ms Baud Rate (bps) T15 = SD8864, SD8874, SD8884, or SD8894 (depending on the communication channel) T12 = less than 1 ms Number of Bytes in Response Character Length (bits) T13 = 1000 (ms) + 1 ms Baud Rate (bps) 18 3 SPECIFICATIONS 3.2 Link Time

21 Example link time calculations: Master processing time (Tm) SD8864 = 5 ms Max. scan time = 5 ms Function = Read holding registers 0 to 9 (function code: 03H) Frame mode = RTU mode Number of bytes in request = 8 bytes (1 byte Address, 5 byte Frame, 2 byte CRC) Number of bytes in response = 25 bytes (1 byte Address echo, 22 byte Frame, 2 byte CRC) Character length = 10 bits (1 bit Start bit, 8 bit Data length, 0 bit Parity bit, 1 bit Stop bit) Baud rate = 19.2 kbps Slave delay time = 10 ms 3 T4 = 5 ms 5 ms T1 = INT +1 5 ms 5 ms = (1 + 1) 5 ms = 10 ms T6 1 ms T7 = 8 Bytes 10 Bits bps 1000 (ms) + 1 ms 5.2 ms T8 = 10 ms T9 = 25 Bytes 10 Bits bps 1000 (ms) + 1 ms 14.0 ms T10 = 3.5 Characters 10 Bits bps 1000 (ms) + 1 ms 2.8 ms T5 = 1 ms ms + 10 ms ms ms = 33 ms 33 ms T2 = INT +1 5 ms 5 ms = (6 + 1) 5 ms = 35 ms T3 1ms Tm = 5 ms + 35 ms + 1 ms = 41 ms Slave processing time (Ts) Function = Read holding registers 0 to 9 (function code: 03H) Frame mode = RTU mode Number of bytes in request = 8 bytes (1 byte Address, 5 byte Frame, 2 byte CRC) Number of bytes in response = 25 bytes (1 byte Address echo, 22 byte Frame, 2 byte CRC) Character length = 10 bits (1 bit Start bit, 8 bit Data length, 0 bit Parity bit, 1 bit Stop bit) Baud rate = 19.2 kbps SD8864 = 5 ms Max. scan time = 5 ms T14 = 8 Bytes 10 Bits bps 1000 (ms) + 1 ms 5.2 ms T15 = 5 ms T11 = 5.2 ms + 5 ms + 5 ms = 15.2 ms T12 1 ms T13 = 25 Bytes 10 Bits bps 1000 (ms) + 1 ms 14.0 ms Ts = 15.2 ms + 1 ms ms = 30.2 ms 3 SPECIFICATIONS 3.2 Link Time 19

22 4 MODBUS COMMUNICATION SPECIFICATIONS This chapter explains the details of MODBUS Protocol for MODBUS serial communication and the MODBUS standard functions supported by the FX5. For the list of supported MODBUS standard functions, refer to Page 21 List of supported MODBUS standard functions. For usage of the supported MODBUS standard functions, refer to Page 32 FUNCTION. 4.1 MODBUS Protocol The following shows the frame specifications for the MODBUS protocol. Address field Function code Data Error check MODBUS Protocol Data Section *1 *1 For details of the MODBUS protocol data section, refer to Page 65. The following table details the frame specifications for the MODBUS Protocol. Area name Address field Function code Data Error check Description [When the master sends a request message to a slave] 0: Sends a request message to all the slaves. (Broadcast) 1 to 247: Sends a request to a specific Slave number. Note: 247 is the MODBUS maximum address number. *1 [When the slave sends a response message to the master] The host station number is stored when sending a response message. [When the master sends a request message to a slave] The master specifies the function code to the slave. [When the slave sends a response message to the master] The requested function code is stored in the case of normal completion. The most significant bit turns ON in the case of abnormal end. [When the master sends a request message to a slave] The information needed to execute the action specified by a function code is stored. [When the slave sends a response message to the master] The execution result of the action specified by a function code is stored. An exception code is stored when failed. The node (master or slave) adds the check code automatically to all transmitted messages and recalculates the check code for any received message. The received message is discarded if it has an error. *1 The address number that can be used in FX5 master station differs depending on the version. ( Page 77 Added and Enhanced Functions) Refer to Page 21 Frame mode for the data size of each area MODBUS COMMUNICATION SPECIFICATIONS 4.1 MODBUS Protocol

23 Frame mode For the FX5, the following frame modes are available. If the frame mode of the FX5 differs from the one of the target device, it cannot be used. Available frame modes RTU mode In this mode, frames are received or sent in binary codes. The frame specifications are compliant with the MODBUS protocol specifications. END Start Address field Function code Data Error check Address field (Start) 3.5 character 3.5 character 1 byte 1 byte 0 to 252 bytes 2 bytes 1 byte time or more time or more 4 Error check calculation range The error check in the RTU mode is conducted by CRC (Cyclic Redundancy Check). The CRC field is two bytes, containing a 16 bit binary value. The CRC value is calculated by the transmitting device, which appends the CRC to the message. The device that receives recalculates a CRC during receipt of the message, and compares the calculated value to the actual value it received in the CRC field. If the two values are not equal, an error occurs. (For procedure for generating of CRC, refer to Page 63 The frame specifications) List of supported MODBUS standard functions The following table lists the MODBUS standard functions supported by the FX5. Function code Function Name Details Accessible devices per message Broadcast Reference 01H Read coils Read binary (R/W) devices 1 to 2000 points Page 66 02H Read inputs Read binary (RO) devices 1 to 2000 points Page 67 03H Read holding registers Read 16 bit (R/W) registers 1 to 125 points Page 68 04H Read input registers Read 16 bit (RO) registers 1 to 125 points Page 69 05H Write single coil Write single binary device 1 point Page 70 06H Write single register Write single 16 bit register device 1 point Page 70 0FH Write multiple coils Write multiple binary (R/W) devices 1 to 1968 points Page 71 10H Write multiple registers Write multiple 16 bit (R/W) registers 1 to 123 points Page 72 :Applicable, :Not applicable 4 MODBUS COMMUNICATION SPECIFICATIONS 4.1 MODBUS Protocol 21

24 5 WIRING This chapter explains the wiring. 5.1 Wiring Procedure 1. Preparing for wiring Prepare cables required for wiring. ( Page 22 Selecting Connection) 2. Turning off the power to the PLC Before wiring, make sure that the power of the PLC is off. 3. Wiring communication equipment Connect RS-485 or RS-232C communication equipment. ( Page 25 Connection Diagram) 5.2 Selecting Connection Select cables using the procedure described below. For RS-232C Use an RS-232C cable of the RS-232 standard within 15 m (49' 2"). For RS-485 Use shielded twisted pair cables for connecting RS-485 communication equipment. Twisted pair cable RS-485 cable specifications Item Cable type Number of pairs Conductor resistance (20 ) Insulation resistance Dielectric strength Electrostatic capacitance (1 khz) Characteristic impedance (100 khz) Description Shielded cable 2p, 3p 88.0 /km or less M -km or more 500 V DC, 1 minute 60 nf/km or less as an average Cable structural drawing (reference) Pair Shield Example of two-pair cable structural drawing Example of three-pair cable structural drawing 22 5 WIRING 5.1 Wiring Procedure

25 Connecting cables The table below shows applicable cables and tightening torques. Number of connected electric wires per terminal Cable size Solid wire, Stranded wire Wire ferrule with insulating sleeve Tightening torque FX5U CPU module built-in RS-485 port FX5UC CPU module built-in RS-485 port FX5-485-BD FX5-485ADP 1-wire connection 0.2 to 0.5 mm 2 (AWG24 to 20) 0.2 to 0.5 mm 2 (AWG24 to 20) 0.22 to 0.25 N m 2-wire connection 0.2 mm 2 (AWG24) 1-wire connection 0.3 to 0.5 mm 2 (AWG22 to 20) 0.3 to 0.5 mm 2 (AWG22 to 20) 2-wire connection 0.3 mm 2 (AWG22) Precautions Do not tighten terminal screws with torque beyond the specified range. Otherwise it may cause equipment failure or malfunction. Wire end treatment 5 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 wires. Dimension of the wire end FX5U CPU module built-in RS-485 port FX5UC CPU module built-in RS-485 port, FX5-485-BD, FX5-485ADP 5 mm (0.2") 9 mm (0.36") When using a wire ferrule with insulating sleeve Because it is difficult to insert a cable into the 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 Insulating sleeve Contact portion (Crimp area) Insulating sleeve Contact portion (Crimp area) 2 to 2.5 mm (0.07" to 0.09") 6 mm (0.23") 10.5 to 12 mm (0.41" to 0.47") 2.6 mm (0.1") 8 mm (0.31") 14 mm (0.55") <Reference> Manufacturer Model name Crimping tool FX5U CPU module built-in RS-485 port Phoenix Contact GmbH & Co. KG AI 0.5-6WH CRIMPFOX 6 FX5UC CPU module built-in RS-485 port FX5-485-BD FX5-485ADP AI 0.5-8WH CRIMPFOX 6T-F Tool For tightening the terminal, use a commercially available small screwdriver with straight tip that is not widened toward the end as shown below. Precautions If the diameter of the screwdriver tip is too small, the required tightening torque cannot be achieved. To achieve the appropriate tightening torque shown in the previous page, use the following screwdriver or its equivalent (grip diameter: approximately 25 mm (0.98")). <Reference> 0.4 mm (0.01") With straight tip 2.5 mm (0.09") Manufacturer Phoenix Contact GmbH & Co. KG Model SZS WIRING 5.2 Selecting Connection 23

26 Termination resistor setting Make sure to provide a termination resistor at each end of a line. Built-in RS-485 port, FX5-485-BD, and FX5-485ADP have a built-in termination resistor. Set the termination resistor selector switch accordingly. Wiring Two-pair wiring One-pair wiring FX5U CPU module built-in RS-485 port Termination resistor selector switch FX5UC CPU module built-in RS-485 port Termination resistor selector switch Termination resistor selector switch FX5-485-BD Termination resistor selector switch FX5-485ADP Termination resistor selector switch 24 5 WIRING 5.2 Selecting Connection

27 5.3 Connection Diagram Representative wiring examples are shown in this section. When pin numbers in the counterpart equipment are different, wire the pins as shown below. Connection diagram for RS-232C Name FG PLC FX5-232-BD FX5-232ADP 9-pin D-Sub - FG Name External equipment operating in accordance with RS-232C Using CS and RS D-Sub 9-pin - D-Sub 25-pin 1 FG Name Using DR and ER D-Sub 9-pin - D-Sub 25-pin 1 RD (RXD) SD (TXD) ER (DTR) RD (RXD) SD (TXD) RS (RTS) RD (RXD) SD (TXD) ER (DTR) SG (GND) DR (DSR) 5 6 *1 SG (GND) CS (CTS) SG (GND) DR (DSR) *1 For third-party external equipment requiring the control signal, connect these pins. The FX5-232-BD, FX5-232ADP does not require these pins to be connected. Connection diagram for RS-485 One-pair wiring Master built-in RS-485 port FX5-485-BD FX5-485ADP Slave built-in RS-485 port FX5-485-BD FX5-485ADP Slave built-in RS-485 port FX5-485-BD FX5-485ADP Slave built-in RS-485 port FX5-485-BD FX5-485ADP SDA (TXD+) SDA (TXD+) SDA (TXD+) SDA (TXD+) Termination resistor: 110 *2 SDB (TXD-) RDA (RXD+) SDB (TXD-) RDA (RXD+) SDB (TXD-) RDA (RXD+) SDB (TXD-) RDA (RXD+) Termination resistor: 110 *2 RDB (RXD-) RDB (RXD-) RDB (RXD-) RDB (RXD-) SG SG SG SG Class-D grounding (resistance: 100 or less) *1 Class-D grounding (resistance: 100 or less) *1 Class-D grounding (resistance: 100 or less) *1 *1 Make sure to perform Class-D grounding on the shield of the twisted pair cable to be connected. *2 Make sure to provide a termination resistor at each end of a line. Set the selector switch to 110 when the termination resistor is built in. 5 WIRING 5.3 Connection Diagram 25

28 Two-pair wiring Master built-in RS-485 port FX5-485-BD FX5-485ADP Slave built-in RS-485 port FX5-485-BD FX5-485ADP Slave built-in RS-485 port FX5-485-BD FX5-485ADP Slave built-in RS-485 port FX5-485-BD FX5-485ADP *2 SDA (TXD+) SDB (TXD-) SDA (TXD+) SDB (TXD-) SDA (TXD+) SDB (TXD-) SDA (TXD+) SDB (TXD-) *2 *2 Termination resistor: RDA (RXD+) RDB (RXD-) RDA (RXD+) RDB (RXD-) RDA (RXD+) RDB (RXD-) RDA (RXD+) RDB (RXD-) SG SG SG SG *2 Termination resistor: Class-D grounding (resistance: 100 or less) *1 Class-D grounding (resistance: 100 or less) *1 Class-D grounding (resistance: 100 or less) *1 *1 Make sure to perform Class-D grounding on the shield of the twisted pair cable to be connected. *2 Make sure to provide a termination resistor at each end of a line. Set the selector switch to 330 when the termination resistor is built in. 5.4 Grounding Grounding should be performed as stated below. The grounding should be class D and the resistance should be 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 User's Manual (Hardware) of the CPU module used. PLC Other equipment PLC Other equipment PLC Other equipment Independent grounding (Best condition) Shared grounding (Good condition) Common grounding (Not allowed) The grounding wire size should be AWG 14 (2 mm 2 ) or larger. The grounding point should be close to the PLC, and all grounding wires should be as short as possible WIRING 5.4 Grounding

29 6 COMMUNICATION SETTING This chapter explains the setup method for using MODBUS serial communication with an FX Setup Method for MODBUS Serial Communication For the MODBUS serial communication setting of the FX5, set parameters with GX Works3. Setting of parameter differs according to the module used. The procedure for each module is as follows. Using the CPU module "Navigation window" [Parameter] [FX5UCPU] [Module Parameter] [485 Serial Port] Window The following screen will be displayed if "MODBUS_RTU Communication" is set for Communication Protocol Type. Basic Settings 6 Item Setting Corresponding station Communication Protocol Type When using this function, select "MODBUS_RTU Communication". Master/Slave Parity Bit None, Odd, Even Master/Slave Stop Bit 1bit, 2bit Master/Slave Baud Rate Fixed Setting 300bps, 600bps, 1200bps, 2400bps, 4800bps, 9600bps, 19200bps, 38400bps, 57600bps, bps Master/Slave Item Setting Corresponding station Host Station No. *1 0 to 247 (Master station: 0, Slave station: 1 to 247) Master/Slave Slave Response Timeout 1 to ms Master/Slave Broadcast Delay *2 1 to ms Master/Slave Message to Message Delay 1 to ms Master/Slave Timeout Retry Count Setting 0 to 20 Master/Slave *1 When set to "Latch" by SM/SD Setting, setting values of the Host Station No. can be changed through special registers. ( Page 31 Latch Setting) When other than 0 is set for the special register of a channel that is already set as a master station (station number: 0) by parameter, the channel does not function as a slave station. In addition, when 0 is set for the special register of a channel that is already set as a slave station (station number: 1 to 247) by parameter, the channel does not function as a master station. *2 Set master station side broadcast delay as equal to one or more scan times of the slave station. 6 COMMUNICATION SETTING 6.1 Setup Method for MODBUS Serial Communication 27

30 Modbus Device Assigned Item Setting Corresponding station Device Assigned Page 29 Slave SM/SD Setting Item Setting Corresponding station Advanced Settings Do Not Latch Host Station No. Do Not Latch, Latch Master/Slave Slave Response Timeout Do Not Latch Broadcast Delay Do Not Latch Message to Message Delay Do Not Latch Timeout Retry Count Setting Do Not Latch SM/SD for Compatible Disable, CH1, CH2 ( Page 31) Master/Slave For Latch Setting, refer to Page 31 Latch Setting. Using an Extended board "Navigation window" [Parameter] [FX5UCPU] [Module Parameter] [Extended Board] Window The following screen will be displayed, if Extended Board to be used is set up and "MODBUS_RTU Communication" is set Communication Protocol Type. Basic Settings Item Setting Corresponding station Extended Board When using this function, select "FX5-232-BD" or "FX5-485-BD". Master/Slave Communication Protocol Type When using this function, select "MODBUS_RTU Communication". Master/Slave All screens and setting fields other than extended board are the same as "Using the CPU module". ( Page 27) 28 6 COMMUNICATION SETTING 6.1 Setup Method for MODBUS Serial Communication

31 Using an Expansion adapter When an expansion adapter is used, add expansion adapter to Module Information. "Navigation window" [Parameter] [Module Information] "Right-click" [Add New Module] After adding the expansion adapter, make settings on the screen displayed from the following operation. "Navigation window" [Parameter] [Module Information] [ADP1(to ADP6)] [Module Parameter] Window Each setting screen is the same as "Using the CPU module". ( Page 27) Contents of parameter setting The MODBUS device allocation, Latch Setting, SM/SD storage area specification which are used for parameter setting of MODBUS serial communication are as follows. MODBUS device allocation In the MODBUS device allocation, initial values are set for parameters. (Refer to Page 75 FX5 dedicated pattern) Parameter contents can be changed with following screen of GX Works3. Window 6 <Detailed Setting> of "MODBUS Device Assigned" ( Page 28) is double-clicked. Setting item Description Allocation 1 to 16 Allocation of each MODBUS device can be set to 1 to 16. Device Start MODBUS Device No. Allocation Points Set the device type and head number of the device to be allocated.(for available devices, refer to Page 30 Available devices) Set the start MODBUS device number. Set the number of allocation points. 6 COMMUNICATION SETTING 6.1 Setup Method for MODBUS Serial Communication 29

32 Available devices The following table shows devices that can be set to coil, input, input register, and holding register. List of devices Allocable MODBUS device Device type Device Coil Input Input register Holding register Special relay SM *1 *1 Special register SD Input X *1 *1 Output Y *1 *1 Internal relay M *1 *1 Latch relay L *1 *1 Annunciator F *1 *1 Link relay B *1 *1 Data register D Link register W Timer Coil TC *1 *1 *1 Set the device number and the allocating points in multiples of 16. In the case that the number of points is not a multiple of 16, a parameter setting error occurs in GX Works3. *2 Because MODBUS devices are long type devices, 2 points are allocated. Precautions Contact TS *1 *1 Current value TN Retentive timer Coil SC *1 *1 Contact SS *1 *1 Current value SN Counter Coil CC *1 *1 Contact CS *1 *1 Current value CN Long counter Coil LC *1 *1 Contact LS *1 *1 Current value LN *2 *2 Link special relay SB *1 *1 Link special register SW Step relay S *1 *1 Index register Z Index register LZ *2 *2 File register R Extended file register ER The same device cannot be set for a coil and an input. The same device cannot be set for an input register and a holding register. A parameter setting error occurs in GX Works3 when the total of selected head device number and the allocated points exceed the valid range for the selected PLC device COMMUNICATION SETTING 6.1 Setup Method for MODBUS Serial Communication

33 Latch Setting In latch setting, it can be set up whether the host number should operate using the GX Works3 parameter or special register. In the case of "Do Not Latch", the host number operates using the value set by the parameter setting of GX Works3. In the case of "Latch", special relays corresponding to each CH turn on and the host number operates using the value set by special registers. Value of special registers can be changed by program. The following table shows, special relays and special registers corresponding for each channel. CH Special relays Special registers Corresponding parameter CH1 SM8861 SD8861 Host station number setting CH2 SM8871 SD8871 CH3 SM8881 SD8881 CH4 SM8891 SD8891 Setting value of special registers or parameter are reflected when the power supply is turned from off to on or reset. Precautions When the SD latch setting valid information is set to off due to memory clear and so on, while special registers are set to "Latch" by the parameter, the parameter setting becomes valid when the power is turned off to on or reset. 6 SM/SD for FX3 Series compatible In the FX5, special relays of the FX3 and special registers of the FX3 can be used in the compatibility area. Channel numbers may differ between the FX3 and the FX5 depending on the configuration. Select whether to use special devices for the corresponding channel number (CH1 or CH2) in this setting. When this setting is not configured, SM and SD for FX3 series compatibility are not used. When this setting is configured, select CH1 or CH2 SM and SD for FX3 series compatibility. For the device for FX3 series compatible, refer to the following. Page 35 Related Devices 6 COMMUNICATION SETTING 6.1 Setup Method for MODBUS Serial Communication 31

34 7 FUNCTION This chapter explains the function of MODBUS serial communication. 7.1 Master Function In the FX5 master function, communication is executed with the slave station using the ADPRW instruction. ADPRW This instruction allows to communicate (read/write data) with the slave station by the function code which is supported by the master. Ladder diagram Structured text ENO:=ADPRW(EN,s1,s2,s3,s4,s5d1,d2); (s1) (s2) (s3) (s4) (s5)/(d1) (d2) FBD/LD EN s1 ENO d2 s2 s3 s4 s5d1 Setting data Descriptions, ranges, data types Operand Description Range Data type Data type (label) (s1) Slave station No. 0 to F7H *1 16-bit signed binary ANY16 (s2) Function code (Refer to Page 33) 01H to 06H, 0FH, 10H 16-bit signed binary ANY16 (s3) (s4) (s5)/(d1) (d2) *2 Function parameter depending on the function code (Refer to Page 33) Function parameter depending on the function code (Refer to Page 33) Function parameter depending on the function code (Refer to Page 33) Start bit device number to which communication execution status is output 0 to FFFFH 16-bit signed binary ANY16 1 to bit signed binary ANY16 Bit/16-bit signed binary ANY_ELEMENTARY Bit ANYBIT_ARRAY (Number of elements: 3) EN Execution condition Bit BOOL ENO Execution result Bit BOOL *1 Slave station No. that can be used in FX5 master station differs depending on the version. ( Page 77 Added and Enhanced Functions) *2 Three devices are occupied from the device specified in (d2). Make sure that these devices are not used in other controls FUNCTION 7.1 Master Function

35 Available devices Operand Bit Word Double word Indirect Constant X, Y, M, L, SM, T, ST, C, D, W, U \G Z LC LZ specification K, H E $ F, B, SB SD, SW, R (s1) *1 (s2) *1 (s3) *1 (s4) *1 (s5)/(d1) *1 (d2) *1 *1 T, ST, C cannot be used. Processing details Function code (s2) is operated on slave station No. (s1) according to parameters (s3), (s4), and (s5)/(d1). Use 0 as the slave station No. (s1) for broadcast commands. (Refer to Page 33 Function code and function parameters.) The communication execution status (d2) is output according to each status of the ADPRW instruction such as communicating/completed normally/completed with an error. (Refer to Page 34 Communication execution status output device.) Others Function code and function parameters The following table shows the parameter allocation of (s3), (s4), and (s5)/(d1) for each function code (s2). (s2): Function code 01H Read coils 02H Read inputs 03H Read holding registers 04H Read input registers 05H Write coils 06H Write holding registers (s3): MODBUS address (s4): Device count (s5)/(d1): Start device storing data Applicable device: (Refer to the following applicable devices.) MODBUS address: 0000H to FFFFH MODBUS address: 0000H to FFFFH MODBUS address: 0000H to FFFFH MODBUS address: 0000H to FFFFH MODBUS address: 0000H to FFFFH MODBUS address: 0000H to FFFFH Device count: 1 to 2000 Device count: 1 to 2000 Device count: 1 to 125 Device count: 1 to 125 Start device storing read data Applicable device Word device (Refer to the following table of the applicable devices.) Bit device (Refer to the following table of the applicable devices.) Number of occupied points Word device ((s4) + 15) 16 points *1 Bit device (s4) points Start device storing read data Applicable device Word device (Refer to the following table of the applicable devices.) Bit device (Refer to the following table of the applicable devices.) Occupied points Word device ((s4) + 15) 16 points *1 Bit device (s4) points Start device storing read data Applicable device (Refer to the following table of the applicable devices.) Occupied points (s4) points Start device storing read data Applicable device (Refer to the following table of the applicable devices.) Occupied points (s4) points 0 (fixed) Start device storing write data Applicable device *2 Occupied points Word device (Refer to the following table of the applicable devices.) Bit device (Refer to the following table of the applicable devices.) 1 point 0 (fixed) Start device storing write data Applicable device Occupied points (Refer to the following table of the applicable devices.) 1 point 7 7 FUNCTION 7.1 Master Function 33

36 (s2): Function code 0FH Write multiple coils 10H Write multiple holding registers (s3): MODBUS address (s4): Device count (s5)/(d1): Start device storing data Applicable device: (Refer to the following applicable devices.) MODBUS address: 0000H to FFFFH MODBUS address: 0000H to FFFFH Device count: 1 to 1968 Device count: 1 to 123 *1 Fractions are rounded off. *2 When the least significant bit is 0, the bit is off. When the least significant bit is 1, the bit is on. Applicable device table Start device storing write data Applicable device Word device (Refer to the following table of the applicable devices.) Bit device (Refer to the following table of the applicable devices.) Occupied points Word device ((s4) + 15) 16 points *1 Bit device (s4) points Start device storing write data Applicable device (Refer to the following table of the applicable devices.) Occupied points (s4) points No. Applicable device T, ST, C, D, R, W, SW, SD, label device T, ST, C, D, R, W, SW, SD, label device, K, H X, Y, M, L, B, F, SB, S, SM, label device Communication execution status output device The following shows the timing of operation of the communication execution status output device (d2) according to each communication status, and the special relays which operate at the same time. Operand Timing of operation Special relay which operates at the same time (d2) Turns on while the instruction is executed and SM8800 (CH1), SM8810 (CH2), SM8820 (CH3), SM8830 (CH4) *1 turns off in the status other than while the instruction is executed. (d2) + 1 *2 Turns on when the instruction is completed SM8029 normally and turns off when the instruction is started. (d2) + 2 *2 Turns on when the instruction is completed with an error and turns off when the instruction is started. SM8029 *1 SM8401 (CH1) or SM8421 (CH2) turn on, when SM/SD for FX3 compatible is set. *2 (d2) + 1 turns on when the instruction is completed normally and (d2) + 2 turns on when the instruction is completed with an error, so that whether the instruction is completed normally or with an error can be judged. Precautions The channel which uses the ADPRW instruction must be set to the master station by the GX Works3. ( Page 27 Fixed Setting) When it is not set, the device does not operate even though the ADPRW instruction is executed. (Also no error occurs.) If the program stops due to error, the device value is turned off if a non-latch device is designated as the communication execution status output device. Specify a latch device to keep the communication state output FUNCTION 7.1 Master Function

37 7.2 Slave Function This function performs operations according to the supported function code by communication with the master station. For the supported function codes, refer to Page 21 List of supported MODBUS standard functions. 7.3 Related Devices In this section, the functions of the special registers and special relays are described for MODBUS serial communication. List of related devices Special relays The table shows the special relays used for the FX5 MODBUS serial communication. Only for FX5 Device number Name Valid Details R/W CH1 CH2 CH3 CH4 SM8500 SM8510 SM8520 SM8530 Serial communication error Master/ Slave SM8800 SM8810 SM8820 SM8830 During MODBUS serial communication *1 The devices become R/W when a latch is set and R when a latch is not set. For FX3 compatibility Master Turns on when an error occurs during the serial communication. Turns on when the instruction is started until the instruction execution complete flag is turned on during MODBUS serial communication. SM8801 SM8811 SM8821 SM8831 Retry Master Turns on while the master sends retries when the slave fails to respond until timeout setting time. SM8802 SM8812 SM8822 SM8832 Timeout Master Turns on if a response timeout occurs. R SM8861 SM8871 SM8881 SM8891 Host station number latch setting valid Slave Turns on when the latch setting is set to "Latch". *1 R: Read only, R/W: Read/Write R R R 7 Device number Name Valid Details R/W CH1 CH2 SM8029 Instruction execution complete SM8401 SM8421 During MODBUS communication SM8402 SM8422 MODBUS communication error SM8403 SM8423 MODBUS communication error (latched) Master Turns on if the processing of an instruction is completed. R Master Master Master/ Slave SM8063 SM8438 Serial communication error Master/ Slave Turns on when the instruction is started until the instruction execution complete flag is turned on during MODBUS serial communication. Turns on when an error occurs during MODBUS serial communication. Turns on once an error occurs during MODBUS serial communication. Turns on once an error occurs during MODBUS serial communication. SM8408 SM8428 Retry Master Turns on while the master sends retries when the slave fails to respond until timeout setting time. SM8409 SM8429 Timeout Master Turns on if a response timeout occurs. R R: Read only R R R R R 7 FUNCTION 7.2 Slave Function 35

38 Special registers The table shows the special registers used for the FX5 MODBUS serial communication. Only for FX5 Device number Name Valid Details R/W CH1 CH2 CH3 CH4 SD8500 SD8510 SD8520 SD8530 Serial communication error code SD8501 SD8511 SD8521 SD8531 Serial communication error details SD8502 SD8512 SD8522 SD8532 Serial communication setting SD8503 SD8513 SD8523 SD8533 Serial communication operation mode SD8865 SD8875 SD8885 SD8895 Timeout retry count Master/ Stores the timeout retry count setting value. R Slave R: Read, R/W: Read/Write *1 The devices vary depending on the Latch Setting. The device becomes R when the Latch setting is "Do not Latch", and R/W when the Latch setting is "Latch". For FX3 compatibility Master/ Slave Master/ Slave Master/ Slave Master/ Slave SD8800 SD8810 SD8820 SD8830 Current retry value Master/ Slave SD8861 SD8871 SD8881 SD8891 Host station number Master/ Slave SD8862 SD8872 SD8882 SD8892 Slave response timeout Master/ Slave SD8863 SD8873 SD8883 SD8893 Broadcast delay Master/ Slave SD8864 SD8874 SD8884 SD8894 Message to message delay Master/ Slave Stores the current error code generated during serial communication. Stores current error details. Stores the communication properties in the CPU module. Stores the mode of serial communication being executed. Stores the current value of retries of when a R communication retry is executed due to slave response timeout. Stores the host station number setting value. *1 Stores the slave response timeout setting value. Stores the broadcast delay setting value. Stores the message to message delay setting value. Device number Name Valid Details R/W CH1 CH2 SD8063 SD8438 Serial communication error code Master/ Slave SD8402 SD8422 Communication error code Master/ Slave SD8403 SD8423 Error details Master/ Slave SD8405 SD8425 Communication format setting value Master/ Slave SD8408 SD8428 Current retry value Master/ Slave SD8419 SD8439 Communication operation mode R: Read Master/ Slave Stores the current error code generated during serial communication. Stores the current error code generated during serial communication. Stores the current error details. Stores the communication parameter set in the CPU module. Stores the current value of retries of when a communication retry is executed due to slave response timeout. Stores the communication operation mode in the CPU module. R R R R R R R R R R R R R 36 7 FUNCTION 7.3 Related Devices

39 Details of Related Devices The following devices are used in MODBUS serial communication. The devices of "For FX3 compatibility" operate in the channel which specifies by the SM/SD for FX3 compatibility in communication setting. Instruction execution complete This device checks whether the execution of the instruction is completed. Only for FX5 For FX3 compatibility Description R/W CH1 CH2 CH3 CH4 CH1 CH2 SM8029 Turns on if the processing of the instruction is completed. R R: Read SM8029 is also used as the execution completed flag for other instructions (such as positioning instructions). When using SM8029, provide the contact just under the instruction whose execution completion is to be checked. Precautions Do not turn ON with program or engineering tool. This device does not turn OFF even if normal communication is restored. The device is cleared when the power supply is turned from off to on, reset, set from STOP to RUN, or the next ADPRW instruction is executed. 7 During MODBUS communication This device checks if MODBUS serial communication is being executed. Only for FX5 For FX3 compatibility Description R/W CH1 CH2 CH3 CH4 CH1 CH2 SM8800 SM8810 SM8820 SM8830 SM8401 SM8421 Turns on when the instruction is started until the instruction execution complete flag is turned on during MODBUS serial communication. R: Read Precautions Do not turn ON with program or engineering tool. The device is cleared when the power supply is turned from off to on, reset, or set from STOP to RUN. MODBUS communication error This device checks if an error occurs during MODBUS serial communication. For FX3 compatibility Description R/W CH1 CH2 SM8402 SM8422 Turns on when an error occurs during MODBUS serial communication. R: Read Precautions Do not turn ON with program or engineering tool. This device does not turn OFF even if normal communication is restored. The device is cleared when the power supply is turned from off to on, reset, set from STOP to RUN, SM50 (Error Detection Reset Completion) is turned on, or the next ADPRW instruction is executed. R R 7 FUNCTION 7.3 Related Devices 37

40 MODBUS communication error (latched) This device checks if an error occurs during MODBUS serial communication. For FX3 compatibility Description R/W CH1 CH2 SM8403 SM8423 Turns on once an error occurs during MODBUS serial communication. R: Read Precautions Do not turn ON with program or engineering tool. The device is cleared when the power supply is turned from off to on, reset, or set from STOP to RUN. Serial communication error This device checks if an error occurs during serial communication. Only for FX5 For FX3 compatibility Description R/W CH1 CH2 CH3 CH4 CH1 CH2 SM8500 SM8510 SM8520 SM8530 SM8063 SM8438 Turns on when an error occurs during serial communication. R: Read Precautions Do not turn ON with program or engineering tool. This device do not turn OFF even if normal communication is restored. The device is cleared when the power supply is turned from off to on, reset, set from STOP to RUN, or SM50 (Error Detection Reset Completion) is turned on. Retry This device checks if a retry occurs during MODBUS serial communication. Only for FX5 For FX3 compatibility Description R/W CH1 CH2 CH3 CH4 CH1 CH2 SM8801 SM8811 SM8821 SM8831 SM8408 SM8428 Turns on while the master sends retries when the slave fails to respond in time. R: Read Precautions Do not turn ON with program or engineering tool. The device is cleared when the power supply is turned from off to on, reset, set from STOP to RUN, SM50 (Error Detection Reset Completion) is turned on, or the next ADPRW instruction is executed. R R R 38 7 FUNCTION 7.3 Related Devices

41 Timeout This device checks if a timeout occurs during MODBUS serial communication. Only for FX5 For FX3 compatibility Description R/W CH1 CH2 CH3 CH4 CH1 CH2 SM8802 SM8812 SM8822 SM8832 SM8409 SM8429 Turns on if a response timeout occurs. R R: Read Precautions Do not turn ON with program or engineering tool. The device is cleared when the power supply is turned from off to on, reset, set from STOP to RUN, SM50 (Error Detection Reset Completion) is turned on, or the next ADPRW instruction is executed. If the number of retries is 1 or more, the error flag ( Page 60 Error flags) is not set until the set number of retries fail by timeout (or another failure). Host station number SD latch setting valid The device which set latch valid/invalid of host station number for MODBUS serial communication. Only for FX5 Description R/W CH1 CH2 CH3 CH4 SM8861 SM8871 SM8881 SM8891 Turns on when host station number setting is "Latch" in MODBUS communication parameter. R: Read, R/W: Read/Write *1 The devices vary depending on the Latch Setting. The device becomes R when the Latch setting is "Do not Latch", and R/W when the Latch setting is "Latch". *1 7 Precautions Do not turn ON with program or engineering tool. The device is set when the power supply is turned from off to on or reset. Serial communication error code This device stores the current error codes during serial communication. ( Page 60 Error code.) Only for FX5 For FX3 compatibility Description R/W CH1 CH2 CH3 CH4 CH1 CH2 SD8500 SD8510 SD8520 SD8530 SD8402 SD8063 R: Read Precautions SD8422 SD8438 Stores the current error code generated by serial communication. Do not change the device value using a program or an engineering tool. The device is cleared when the power supply is turned from off to on, reset, set from STOP to RUN, or SM50 (Error Detection Reset Completion) is turned on, only in the master. R 7 FUNCTION 7.3 Related Devices 39

42 Serial communication error details This device stores the current error details during serial communication. ( Page 60 Error code.) Only for FX5 For FX3 compatibility Description R/W CH1 CH2 CH3 CH4 CH1 CH2 SD8501 SD8511 SD8521 SD8531 SD8403 SD8423 Stores the current error details generated during serial communication. R: Read Precautions Do not change the device value using a program or an engineering tool. The device is cleared when the power supply is turned from off to on, reset, set from STOP to RUN, or SM50 (Error Detection Reset Completion) is turned on, only in the master. Communication format setting value This device stores the communication format setting value. Only for FX5 For FX3 compatibility Description R/W CH1 CH2 CH3 CH4 CH1 CH2 SD8502 SD8512 SD8522 SD8532 SD8405 SD8425 Stores the parameters set by an engineering tool. For details, refer to the following table. R: Read The following table shows the parameter descriptions of the communication format. Bit Name Description 0 (bit = OFF) 1 (bit = ON) b0 b1, b2 Parity bit (b2, b1) = (0, 0): None (b2, b1) = (0, 1): Odd (b2, b1) = (1, 1): Even b3 Stop bit 1bit 2bit b4 to b7 Baud rate (bps) (b7, b6, b5, b4) = (0, 0, 1, 1): 300 (b7, b6, b5, b4) = (0, 1, 0, 0): 600 (b7, b6, b5, b4) = (0, 1, 0, 1): 1200 (b7, b6, b5, b4) = (0, 1, 1, 0): 2400 (b7, b6, b5, b4) = (0, 1, 1, 1): 4800 (b7, b6, b5, b4) = (1, 0, 0, 0): 9600 (b7, b6, b5, b4) = (1, 0, 0, 1): (b7, b6, b5, b4) = (1, 0, 1, 0): (b7, b6, b5, b4) = (1, 0, 1, 1): (b7, b6, b5, b4) = (1, 1, 0, 1): b8 to b15 Precautions Do not change the device value using a program or an engineering tool. The setting value changes when the power supply is turned from off to on or reset. R R 40 7 FUNCTION 7.3 Related Devices

43 Operation mode display This device stores the operation mode of the serial communication being executed. Only for FX5 For FX3 compatibility Description R/W CH1 CH2 CH3 CH4 CH1 CH2 SD8503 SD8513 SD8523 SD8533 SD8419 SD8439 0: MELSOFT Connection or MC protocol 3: N:N Network Communication 5: Non-protocol Communication 6: Parallel Link Communication 7: Inverter Communication 9: MODBUS RTU Communication 12: Predefined protocol support Other than above: Not used R: Read Precautions Do not change the device value using a program or an engineering tool. The device is cleared when ADPRW instruction is executed. Current retry value This device stores the current retry value. R Only for FX5 For FX3 compatibility Description R/W CH1 CH2 CH3 CH4 CH1 CH2 SD8800 SD8810 SD8820 SD8830 SD8408 SD8428 Stores the current value of retries executed by the slave response timeout. R: Read R 7 Precautions Do not change the device value using a program or an engineering tool. The device is cleared when the power supply is turned from off to on, reset, set from STOP to RUN, SM50 (Error Detection Reset Completion) is turned on, or next ADPRW instruction is executed. Host station number This device stores the host station number setting value. Only for FX5 Description R/W CH1 CH2 CH3 CH4 SD8861 SD8871 SD8881 SD8891 Stores the parameters (host station number) set by a program or an engineering tool. For 0: Master station For 1 to 247: Slave station (station number: 1 to 247) R: Read, R/W: Read/Write *1 The devices vary depending on the Latch Setting. The device becomes R when the Latch setting is "Do not Latch", and R/W when the Latch setting is "Latch". Precautions "Latch" The device value can be changed by the program. "Do Not latch" Do not change the device value using a program or an engineering tool. Change "Do Not Latch" to "Latch" The setting value is reflected when the power supply is turned from off to on or reset, after parameter write from an engineering tool. *1 7 FUNCTION 7.3 Related Devices 41

44 Slave response timeout This device stores the slave response timeout setting value. Only for FX5 Description R/W CH1 CH2 CH3 CH4 SD8862 SD8872 SD8882 SD8892 Stores the parameters (slave response timeout) set by an engineering tool. R: Read Precautions The setting value is reflected when the power supply is turned from off to on, reset, or the next ADPRW instruction is executed. Broadcast delay This device stores the broadcast delay setting value. Only for FX5 Description R/W CH1 CH2 CH3 CH4 SD8863 SD8873 SD8883 SD8893 Stores the parameters (broadcast delay) set by an engineering tool. R: Read Precautions The setting value is reflected when the power supply is turned from off to on, reset, or the next ADPRW instruction is executed. Message to message delay This device stores the message to message delay setting value. Only for FX5 Description R/W CH1 CH2 CH3 CH4 SD8864 SD8874 SD8884 SD8894 Stores the parameters (message to message delay) set by an engineering tool. R: Read Precautions The setting value is reflected when the power supply is turned from off to on, reset, or the next ADPRW instruction is executed. Timeout retry count This stores the timeout retry count setting value. Only for FX5 Description R/W CH1 CH2 CH3 CH4 SD8865 SD8875 SD8885 SD8895 Stores the parameters (timeout retry count) set by an engineering tool. R: Read Precautions The setting value is reflected when the power supply is turned from off to on, reset, or the next ADPRW instruction is executed. R R R R 42 7 FUNCTION 7.3 Related Devices

45 8 CREATING PROGRAMS This chapter explains an example of creating programs for the master in MODBUS serial communication. 8.1 Creating Programs for the Master Station Programs allowing the master station to read and write slave station devices can be created as shown in the example below. For ADPRW instruction, refer to Page 32 ADPRW. For cautions on program creation, refer to Page 43 Cautions on Program Creation. Read Coils from Slave 02H M0 ADPRW H2 H1 K100 K8 D0 M11 RST Instruction completed normally M10 M0 Program for Reading Coils Slave address: 02H Function code: 01H MODBUS address: 100 Device count: 8 Start device storing read data: D0 8 coil device values starting at MODBUS Address 100 of Slave 02H are read to the low-order 8 bits in D0 of the Master. Write Multiple Registers to Slave 03H M1 ADPRW H3 H10 K0 K4 D1000 M21 RST Instruction completed normally M20 M1 Program for Writing Multiple Registers Slave address: 03H Function code: 10H MODBUS address: 0 Device count: 4 Start device storing write data: D1000 The value of D1000 to D1003 of the Master is written to MODBUS Address 0 and onward for Slave 03H Cautions on Program Creation Make sure the driving contact of the ADPRW instruction does not turn off until the instruction has been completed. When driving multiple ADPRW instructions at the same time, the next ADPRW instruction in the program is executed after the current instruction has been completed. (only one instruction will be executed at a time) When using the Read coils function or Read inputs function in the Master with a word device (i.e. D, or R) as the destination device, only the number of bits assigned in the device count of the ADPRW instruction will be overwritten. The remaining bits of the word device will not be affected. 8 CREATING PROGRAMS 8.1 Creating Programs for the Master Station 43

46 MEMO 44 8 CREATING PROGRAMS 8.2 Cautions on Program Creation

47 PART 2 MODBUS/TCP COMMUNICATION PART 2 This part consists of the following chapters. 9 OUTLINE 10 SPECIFICATIONS 11 MODBUS/TCP COMMUNICATION SPECIFICATIONS 12 COMMUNICATION SETTING 13 FUNCTION 45

48 9 OUTLINE This chapter explains the FX5 MODBUS/TCP communication (slave station). For details of predefined protocol support function, refer to MELSEC iq-f FX5 User's Manual (Ethernet Communication). 9.1 Outline of Function The FX5 MODBUS/TCP communication function allows communication, via Ethernet connection, with various MODBUS/TCP master devices which are connected to FX5 set as the slave station. The master function and slave function are supported and the master and slave can be used simultaneously by a single FX5. Up to 8 connections can be used for MODBUS/TCP communication function by one CPU module. The master uses a predefined protocol support function and controls the slave. System FX5 master station Third party programmable controller master station Personal computer master station Display module master station Ethernet FX5 slave station Accessible from each master station to FX5 (slave function) An external device other than FX5 can be used as the master station and slave station OUTLINE 9.1 Outline of Function

49 9.2 Procedure for Operation The flow chart below shows the procedure for setting up a MODBUS/TCP communication (slave station): 9 1. Check communication specifications Refer to Page 48 Communication Specifications or Page 50 MODBUS/TCP COMMUNICATION SPECIFICATIONS Communication Specifications MODBUS Serial Communication Specifications Details of MODBUS Standard Functions 2. Communication settings Refer to Page Page 52 COMMUNICATION SETTING Communication setting using GX Works3 *1 Setting parameters 3. Check of function *2 Refer to Page 55 FUNCTION Slave function *1 For details on the connection method or operation method to the PLC of GX Works3, refer to the following manual. GX Works3 Operating Manual *2 Slave station doesn't need a program. 9 OUTLINE 9.2 Procedure for Operation 47

50 10 SPECIFICATIONS This chapter explains the specifications of MODBUS/TCP communication Communication Specifications MODBUS/TCP communication is executed within the specifications shown in the table below. For communication specification other than the followings, refer to MELSEC iq-f FX5 User's Manual (Ethernet Communication). Item Protocol type Specification MODBUS/TCP (Support only the binary) Number of connections Total of 8 connections *1 (Up to 8 external devices can access one CPU module at the same time.) Slave function Number of function 10 Port station No. 502 *2 *1 The number of available connections decreases when the other Ethernet communication function is used. However, the first of MELSOFT connection, CC-Link IE field network Basic, FTP server, SNTP client, and Web server page are not included in the number of connections (The second and subsequent of MELSOFT connection are included). For details of Ethernet function, refer to the following manual. MELSEC iq-f FX5 User's Manual (Ethernet Communication) *2 The port station No. can be changed by the communication setting SPECIFICATIONS 10.1 Communication Specifications

51 MEMO SPECIFICATIONS 10.1 Communication Specifications 49

52 11 MODBUS/TCP COMMUNICATION SPECIFICATIONS This chapter explains the details of MODBUS Protocol for MODBUS/TCP communication and the MODBUS standard functions supported by the FX5. For the list of supported MODBUS standard functions, refer to Page 50 List of supported MODBUS standard functions. For usage of the supported MODBUS standard functions, refer to Page 55 FUNCTION MODBUS Protocol Frame specifications The following figure illustrates the frame specifications for the MODBUS protocol. Transaction ID Protocol ID Message length Module ID Function code Data 2 byte 2 byte 2 byte 1 byte 1 byte 0 to 252 byte MODBUS protocol data section *1 Message length *1 For details of the MODBUS protocol data section, refer to Page 65. The following table provides details of the frame specifications for the MODBUS Protocol. Area name Transaction ID Protocol ID Message length Module ID Function code Data Description Used by the master for matching of the response message from the slave. Indicates the protocol of the PDU (protocol data unit). Stores 0 in the case of MODBUS/TCP. Stores the message size in byte unit. The message length after this field is stored. (See the above figure.) Used to specify the slave connected to the other line, e.g. MODBUS serial protocol. (FX5 is not supported) The master specifies the function code to the slave. [When the master sends a request message to a slave] Stores the requested processing. [When the slave sends a response message to the master] Stores the result of processing execution. List of supported MODBUS standard functions The following table lists the MODBUS standard functions supported by the MODBUS/TCP communication of FX5. Function code Function Name Details Accessible devices per message Reference 01H Read coils Read binary (R/W) devices 1 to 2000 points Page 66 02H Read inputs Read binary (RO) devices 1 to 2000 points Page 67 03H Read holding registers Read 16 bit (R/W) registers 1 to 125 points Page 68 04H Read input registers Read 16 bit (RO) registers 1 to 125 points Page 69 05H Write single coil Write single binary device 1 point Page 70 06H Write single register Write single 16 bit register device 1 point Page 70 0FH Write multiple coils Write multiple binary (R/W) devices 1 to 1968 points Page 71 10H Write multiple registers Write multiple 16 bit (R/W) registers 1 to 123 points Page 72 16H Mask write register Manipulate slave register with AND Mask/OR Mask 1 point Page 73 17H Read/write multiple registers Read/write multiple 16 bit (R/W) registers Read: 1 to125 points Write: 1 to 121 points Page MODBUS/TCP COMMUNICATION SPECIFICATIONS 11.1 MODBUS Protocol

53 MEMO MODBUS/TCP COMMUNICATION SPECIFICATIONS 11.1 MODBUS Protocol 51

54 12 COMMUNICATION SETTING This chapter explains the setup method for using slave station in MODBUS/TCP communication with an FX Setup Method for Port No. Set the port No. to identify the communication between the slave station and the master station. "Navigation window" [Parameter ] [FX5UCPU] [Module Parameter] [Ethernet Port] [Basic Settings] [External Device Configuration] <Detailed Setting> of "External Device Configuration" is double-clicked Window Drag and drop the "MODBUS/TCP Connection Module" from "Module List" to the left side on the window. Execute the settings as described below. Item Description Remarks PLC Port No. 1 to 4999, 5010 to (Default value: 502) Do not specify 5000 to 5009 because these ports are reserved by the system. Set the port No. of slave station. For setup method for IP address of slave station, refer to MELSEC iq-f FX5 User's Manual (Ethernet Communication). Precautions When using the following functions, do not specify the port No. of the function to be used in MODBUS/TCP communication function. File transfer function (FTP server): 20 (14H), 21 (15H) Web server function: 80 (50H) *1 Time setting function (SNTP client): 123 (7BH) SLMP function: (F000H), (F001H) CC-Link IE field network Basic: (F00AH) *1 Port No. can be changed. (Default: 80) 12.2 Setup Method for MODBUS/TCP Communication For the MODBUS/TCP communication setting of the FX5, set parameters with GX Works3. "Navigation window" [Parameter ] [FX5UCPU] [Module Parameter] [Ethernet Port] [Basic Settings] [MODBUS/TCP Settings] COMMUNICATION SETTING 12.1 Setup Method for Port No.

55 Window Item Setting Remarks To Use or Not to Use MODBUS/ TCP Setting Used/Not Used Contents of parameter setting Display the status in External Device Configuration whether MODBUS/TCP connection device is used or not used. ( Page 52 Setup Method for Port No.) Device Assigned Page 53 When To Use or Not to Use MODBUS/TCP Setting is "Used", Device Assigned can be set. The device allocation used for parameter setting of MODBUS/TCP communication are as follows. 12 MODBUS device allocation In the MODBUS device allocation, initial values are set for parameters. (Refer to Page 75 FX5 dedicated pattern) Parameter contents can be changed from the following screen of GX Works3. Window "Navigation window" [Parameter ] [FX5UCPU] [Module Parameter] [Ethernet Port] [Basic Settings] [MODBUS/TCP Settings] <Detailed Setting> of "Device Assigned" is double-clicked Setting item Description Allocation 1 to 16 Allocation of each MODBUS device can be set to 1 to 16. Device Set the device type and head number of the device to be allocated.(for available devices, refer to Page 54 Available devices) Start MODBUS Device No. Allocation Points Set the start MODBUS device number. Set the number of allocation points. 12 COMMUNICATION SETTING 12.2 Setup Method for MODBUS/TCP Communication 53

56 Available devices The following table shows devices that can be set to coil, input, input register, and holding register. List of devices Allocable MODBUS device Device type Device Coil Input Input register Holding register Special relay SM *1 *1 Special register SD Input X *1 *1 Output Y *1 *1 Internal relay M *1 *1 Latch relay L *1 *1 Annunciator F *1 *1 Link relay B *1 *1 Data register D Link register W Timer Coil TC *1 *1 *1 Set the device number and the allocating points in multiples of 16. In the case that the number of points is not a multiple of 16, a parameter setting error occurs in GX Works3. *2 Because MODBUS devices are long type devices, 2 points are allocated. Precautions Contact TS *1 *1 Current value TN Retentive timer Coil SC *1 *1 Contact SS *1 *1 Current value SN Counter Coil CC *1 *1 Contact CS *1 *1 Current value CN Long counter Coil LC *1 *1 Contact LS *1 *1 Current value LN *2 *2 Link special relay SB *1 *1 Link special register SW Step relay S *1 *1 Index register Z Index register LZ *2 *2 File register R Extended file register ER The same device cannot be set for a coil and an input. The same device cannot be set for an input register and a holding register. A parameter setting error occurs in GX Works3 when the total of selected head device number and the allocated points exceed the valid range for the selected PLC device COMMUNICATION SETTING 12.2 Setup Method for MODBUS/TCP Communication

57 13 FUNCTION This chapter explains the function of MODBUS/TCP communication Master Function The master station of FX5 executes communication between the master station and the slave station by using the predefined protocol support function. The CPU module executing the predefined protocol support function will be the master station. The communication setup method and procedure for program of MODBUS/TCP communication (master) are shown below. For details of each operations and applied instructions, refer to MELSEC iq-f FX5 User's Manual (Ethernet Communication). Connection settings "Navigation window" [Parameter ] [FX5UCPU] [Module Parameter] [Ethernet Port] [Basic Settings] [External Device Configuration] double click <Detailed Setting> of "External Device Configuration" 13 Window Drag and drop the "Active Connection Module" from "Module List" to the left side on the window. Execute the settings as described below. Item Setting Remarks Communication Method Specify the Predefined Protocol. PLC Port No. 1 to 4999, 5010 to Do not specify 5000 to 5009 because these ports are used by the system. Set the port No. of master station. Sensor/Device IP Address to Set the IP Address of slave station. Port No. 1 to 4999, 5010 to Do not specify 5000 to 5009 because these ports are used by the system. Set the port No. of slave station. 13 FUNCTION 13.1 Master Function 55

58 Protocol settings Send the request message from the master station to the slave station through the predefined protocol support function. Create the protocol data of MODBUS function requesting to the slave station. [Tool] [Predefined Protocol Support Function] [File] [New] "Protocol Setting" screen [Edit] [Add Protocol] Set the following items, and add the protocol of MODBUS/TCP communication. Item Type Manufacturer Model Protocol Name *1 Description Specify the Predefined ProtocolLlibrary. Specify the General-purpose protocol. Specify MODBUS/TCP. 01: RD Coils (01H: Read coils) 02: RD Discrete Inputs (02H: Read inputs) 03: RD Holding Registers (03H: Read holding registers) 04: RD IN Registers (04H: Read input registers) 05: WR Single Coil (05H: Write single coil) 06: WR Single Registers (06H: Write single register) 15: WR Multi Coil (0FH: Write multiple coils) 16: WR Multi Registers (10H: Write multiple registers) 20: RD File Record (14H: Read file record) *2 21: WR File Record (15H: Write file record) *2 22: Mask WR Registers (16H: Mask Write register) 23: RD/WR Multi Registers (17H: Read/write multiple registers) *1 ( ) is the MODBUS standard function compatible with each protocol name. *2 Support only the master station. Set the packet setting to the added protocol according to the description of MODBUS device read/write. When setting the packet setting to the FX5 slave station, use the device assigned MODBUS device for the device specified to variable. ( Page 53 MODBUS device allocation) FUNCTION 13.1 Master Function

MELSEC iq-f FX5 User's Manual (Serial Communication)

MELSEC iq-f FX5 User's Manual (Serial Communication) MELSEC iq-f FX5 User's Manual (Serial Communication) SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this product, please read this manual and the relevant manuals

More information

MELSEC iq-f FX5 User's Manual (Serial Communication)

MELSEC iq-f FX5 User's Manual (Serial Communication) MELSEC iq-f FX5 User's Manual (Serial Communication) SAFETY PRECAUTIONS (Read these precautions before use.) Before using this product, please read this manual and the relevant manuals introduced in this

More information

MELSEC iq-f FX5 User's Manual (SLMP)

MELSEC iq-f FX5 User's Manual (SLMP) MELSEC iq-f FX5 User's Manual (SLMP) SAFETY PRECAUTIONS (Read these precautions before use.) Before using this product, please read this manual and the relevant manuals introduced in this manual carefully

More information

MELSEC iq-f FX5 User's Manual (MELSEC Communication Protocol)

MELSEC iq-f FX5 User's Manual (MELSEC Communication Protocol) MELSEC iq-f FX5 User's Manual (MELSEC Communication Protocol) SAFETY PRECAUTIONS (Read these precautions before use.) Before using this product, please read this manual and the relevant manuals introduced

More information

MELSEC iq-f FX5 User's Manual (Positioning Control - CPU module built-in, High-speed pulse input/output module)

MELSEC iq-f FX5 User's Manual (Positioning Control - CPU module built-in, High-speed pulse input/output module) MELSEC iq-f FX5 User's Manual (Positioning Control - CPU module built-in, High-speed pulse input/output module) SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this

More information

USER'S MANUAL - MODBUS Serial Communication Edition FX3U SERIES PROGRAMMABLE CONTROLLERS

USER'S MANUAL - MODBUS Serial Communication Edition FX3U SERIES PROGRAMMABLE CONTROLLERS USER'S MANUAL - MODBUS Serial Edition FX3U SERIES PROGRAMMABLE CONTROLLERS Safety Precautions (Read these precautions before use.) Before installing, operating, maintenance or inspecting this product,

More information

MELSEC iq-f FX5 User's Manual (Analog Control)

MELSEC iq-f FX5 User's Manual (Analog Control) MELSEC iq-f FX5 User's Manual (Analog Control) SAFETY PRECAUTIONS (Read these precautions before use.) Before using this product, please read this manual and the relevant manuals introduced in this manual

More information

Transition from MELSEC FX3U, FX3UC Series to MELSEC iq-f Series Handbook

Transition from MELSEC FX3U, FX3UC Series to MELSEC iq-f Series Handbook Transition from MELSEC FX3U, FX3UC Series to MELSEC iq-f Series Handbook SAFETY PRECAUTIONS (Read these precautions before use.) Before using this product, please read this manual and the relevant manuals

More information

FX3S/FX3G/FX3GC/FX3U/FX3UC SERIES PROGRAMMABLE CONTROLLERS USER'S MANUAL. MODBUS Serial Communication Edition

FX3S/FX3G/FX3GC/FX3U/FX3UC SERIES PROGRAMMABLE CONTROLLERS USER'S MANUAL. MODBUS Serial Communication Edition FX3S/FX3G/FX3GC/FX3U/FX3UC SERIES PROGRAMMABLE CONTROLLERS USER'S MANUAL MODBUS Serial Edition Safety Precautions (Read these precautions before use.) Before installation, operation, maintenance or inspection

More information

MELSEC iq-f Series CPU Module

MELSEC iq-f Series CPU Module MELSEC iq-f Series CPU iq-f Series The iq-f Series is a completely new controller with an elegant design that does not waver from the familiar look-and-feel of Mitsubishi Electric s compact controllers.

More information

MELSEC iq-f FX5 Programming Manual (Program Design)

MELSEC iq-f FX5 Programming Manual (Program Design) MELSEC iq-f FX5 Programming Manual (Program Design) SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using the FX5 PLCs, please read the manual supplied with each product

More information

MELSEC iq-f FX5 User's Manual (Ethernet Communication)

MELSEC iq-f FX5 User's Manual (Ethernet Communication) MELSEC iq-f FX5 User's Manual (Ethernet Communication) SAFETY PECAUTIONS (ead these precautions before use.) Before using this product, please read this manual and the relevant manuals introduced in this

More information

MELSEC iq-f FX5UC User's Manual (Hardware)

MELSEC iq-f FX5UC User's Manual (Hardware) MELSEC iq-f FXUC User's Manual (Hardware) SAFETY PRECAUTIONS (Read these precautions before use.) Before using this product, please read this manual and the relevant manuals introduced in this manual

More information

MELSEC iq-f FX5U User's Manual (Hardware)

MELSEC iq-f FX5U User's Manual (Hardware) MELSEC iq-f FX5U User's Manual (Hardware) SAFETY PRECAUTIONS (Read these precautions before use.) Before using this product, please read this manual and the relevant manuals introduced in this manual

More information

PROGRAMMABLE CONTROLLERS

PROGRAMMABLE CONTROLLERS PROGRAMMABLE CONTROLLERS FX CPU FX(FX1N,FX1NC) FX3 series Replacement Guidance Conversion tool GX Works2 GX Developer Ver. 8 Safety Precautions (Read these precautions before using.) Before installation,

More information

Requirement for Compliance with LVD directive

Requirement for Compliance with LVD directive Requirement for Compliance with LVD directive The following products have shown compliance through direct testing (of the identified standards below) and design analysis (through the creation of a technical

More information

USER'S MANUAL. FX3U-32DP PROFIBUS-DP Interface Block

USER'S MANUAL. FX3U-32DP PROFIBUS-DP Interface Block USER'S MANUAL FX3U-32DP PROFIBUS-DP Interface Block Safety Precautions (Read these precautions before use.) Before installation, operation, maintenance or inspection of this product, thoroughly read through

More information

MELSEC iq-f Series iq Platform-compatible PLC

MELSEC iq-f Series iq Platform-compatible PLC FACTORY AUTOMATION MELSEC iq-f Series iq Platform-compatible PLC The next level of industry 2 Contents OVERVIEW Concept 4 Function introduction 8 System Configuration 16 Performance 20 Lineup details/model

More information

1) Indicates that the identified danger WILL cause physical and property damage.

1) Indicates that the identified danger WILL cause physical and property damage. CC-Link Ver.1.10 FX2N-16CCL-M CC-Link SYSTEM MASTER BLOCK HARDWARE MANUAL JY992D93201D This manual contains text, diagrams and explanations which will guide the reader in the correct installation and operation

More information

FX-USB-AW/FX3U-USB-BD. USER'S MANUAL USB Driver Installation Edition

FX-USB-AW/FX3U-USB-BD. USER'S MANUAL USB Driver Installation Edition FX-USB-AW/FX3U-USB-BD USER'S MANUAL Safety Precautions (Read these precautions before use.) BEFORE installation, operation, maintenance or inspection of this product, thoroughly read through and understand

More information

FX-485PC-IF RS485 Interface Unit Hardware Manual

FX-485PC-IF RS485 Interface Unit Hardware Manual JY992D81801B Date: 2015 April FX- RS485 Interface Unit Hardware Manual This manual contains text, diagrams and explanations which will guide the reader in the correct installation and operation of the

More information

USER'S MANUAL. FX3U-64DP-M PROFIBUS-DP Master Block

USER'S MANUAL. FX3U-64DP-M PROFIBUS-DP Master Block USER'S MANUAL FX3U-64DP-M PROFIBUS-DP Master Block Safety Precautions (Read these precautions before use.) Before installation, operation, maintenance or inspection of this product, thoroughly read through

More information

USER'S MANUAL. FX3U-64DP-M PROFIBUS-DP Master Block

USER'S MANUAL. FX3U-64DP-M PROFIBUS-DP Master Block USER'S MANUAL FX3U-64DP-M PROFIBUS-DP Master Block Safety Precautions (Read these precautions before use.) Before installation, operation, maintenance or inspection of this product, thoroughly read through

More information

FX3U-ENET-ADP USER'S MANUAL

FX3U-ENET-ADP USER'S MANUAL FX3U-ENET-ADP USER'S MANUAL Safety Precautions (Read these precautions before use.) Before installation, operation, maintenance or inspection of this product, thoroughly read through and understand this

More information

USER'S GUIDE FX-485ADP COMMUNICATION ADAPTER FX0N-485ADP COMMUNICATION ADAPTER

USER'S GUIDE FX-485ADP COMMUNICATION ADAPTER FX0N-485ADP COMMUNICATION ADAPTER FX- COMMUNICATION ADAPTER FX0N- COMMUNICATION ADAPTER USER'S GUIDE JY992D53201C This manual contains text, diagrams and explanations which will guide the reader in the correct installation and operation

More information

FX3U-ENET-ADP USER'S MANUAL

FX3U-ENET-ADP USER'S MANUAL FX3U-ENET-ADP USER'S MANUAL Safety Precautions (Read these precautions before use.) Before installation, operation, maintenance or inspection of this product, thoroughly read through and understand this

More information

MELSEC-L Analog Input/Output Module User's Manual -L60AD2DA2

MELSEC-L Analog Input/Output Module User's Manual -L60AD2DA2 MELSEC-L Analog Input/Output Module User's Manual -L60AD2DA2 SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this product, please read this manual and the relevant

More information

FACTORY AUTOMATION. MELSEC iq-f Series iq Platform-compatible PLC. The next level of industry

FACTORY AUTOMATION. MELSEC iq-f Series iq Platform-compatible PLC. The next level of industry FACTORY AUTOMATION MELSEC iq-f Series iq Platform-compatible PLC The next level of industry 2 Contents OVERVIEW Concept 4 Function introduction 8 System Configuration 30 Performance 34 New products 35

More information

USER S MANUAL. FX2N-64DNET DeviceNet Interface Block

USER S MANUAL. FX2N-64DNET DeviceNet Interface Block USER S MANUAL FX2N-64DNET DeviceNet Interface Block FX2N-64DNET DeviceNet Interface Block Foreword This manual contains text, diagrams and explanations which will guide the reader in the correct installation

More information

MELSEC-F Series FX3U/FX3UC Main Units and Configuration

MELSEC-F Series FX3U/FX3UC Main Units and Configuration MELSEC-F Series FXU/FXUC Main Units and Configuration Speed ommunication FXU - Top of the Line Controllable I/O: - 8 points with CC-Link or AS-i remote I/O Main Unit I/O: //8//80/8 points Exchangeable

More information

CC-Link IE Field Network Basic Reference Manual

CC-Link IE Field Network Basic Reference Manual CC-Link IE Field Network Basic Reference Manual SAFETY PRECAUTIONS (Read these precautions before using Mitsubishi Electric programmable controllers.) Before using Mitsubishi Electric programmable controllers,

More information

FX1N-2EYT-BD Output Expansion Board

FX1N-2EYT-BD Output Expansion Board FX1N-2EYT-BD Output Expansion Board USER S MANUAL JY992D95201C This manual contains text, diagrams and explanations which will guide the reader in the correct installation, safe use and operation of the

More information

HITACHI. EH-150 series PLC EH-RTD8 Resistance Temperature Detective input module Instruction manual. Safety precautions

HITACHI. EH-150 series PLC EH-RTD8 Resistance Temperature Detective input module Instruction manual. Safety precautions HITACHI EH-150 series PLC Resistance Temperature Detective input module Instruction manual Thank you for purchasing a Hitachi Programmable Logic Controller. To operate it safely, please read this instruction

More information

Maximum Value for OEMs SM. NX70 Serial Communications Unit (SCU) User Manual

Maximum Value for OEMs SM. NX70 Serial Communications Unit (SCU) User Manual Maximum Value for OEMs SM NX7 Serial Communications Unit (SCU) User Manual Important User Information Solid state equipment has operational characteristics differing from those of electromechanical equipment.

More information

MICRO 3 C PLC User s Manual

MICRO 3 C PLC User s Manual MICRO 3 C PLC User s Manual SAFETY PRECAUTIONS Read this user s manual to make sure of correct operation before starting installation, wiring, operation, maintenance, and inspection of the MICRO 3 C. All

More information

SAFETY PRECAUTIONS. (Always read these instructions before using this product.)

SAFETY PRECAUTIONS. (Always read these instructions before using this product.) SAFETY PRECAUTIONS (Always read these instructions before using this product.) Before using this product, please read this manual and the relevant manuals introduced in this manual carefully and pay full

More information

TABLE OF CONTENTS. Communication Functions

TABLE OF CONTENTS. Communication Functions TABLE OF CONTENTS Chapter 1: Chapter 2: Chapter 3: Chapter 4: General Features....................................................... 1-1 Functions......................................................

More information

FX1N-4EX-BD Input Expansion Board

FX1N-4EX-BD Input Expansion Board Input Expansion Board USER S MANUAL JY992D95001C This manual contains text, diagrams and explanations which will guide the reader in the correct installation, safe use and operation of the FX 1N-4EX-BD

More information

FX3U-64CCL USER'S MANUAL

FX3U-64CCL USER'S MANUAL FX3U-64CCL USER'S MANUAL Safety Precautions (Read these precautions before using.) Before installation, operation, maintenance or inspection of this product, thoroughly read through and understand this

More information

FX3U-CF-ADP USER'S MANUAL

FX3U-CF-ADP USER'S MANUAL FX3U-CF-ADP USER'S MANUAL Safety Precautions (Read these precautions before use.) Before installation, operation, maintenance or inspection of this product, thoroughly read through and understand this

More information

MELSEC iq-r Serial Communication Module User's Manual (Startup) -RJ71C24 -RJ71C24-R2 -RJ71C24-R4

MELSEC iq-r Serial Communication Module User's Manual (Startup) -RJ71C24 -RJ71C24-R2 -RJ71C24-R4 MELSEC iq-r Serial Communication Module User's Manual (Startup) -RJ71C24 -RJ71C24-R2 -RJ71C24-R4 SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this product, please

More information

MELSEC iq-r DeviceNet Master/Slave Module User's Manual (Startup) -RJ71DN91

MELSEC iq-r DeviceNet Master/Slave Module User's Manual (Startup) -RJ71DN91 MELSEC iq-r DeviceNet Master/Slave Module User's Manual (Startup) -RJ71DN91 SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this product, please read this manual and

More information

SAFETY PRECAUTIONS. (Always read these instructions before using this product.)

SAFETY PRECAUTIONS. (Always read these instructions before using this product.) SAFETY PRECAUTIONS (Always read these instructions before using this product.) Before using this product, please read this manual and the relevant manuals introduced in this manual carefully and pay full

More information

Module Type Controller SRV. PLC/Host Communication Instruction Manual IMS01P05-E5 RKC INSTRUMENT INC.

Module Type Controller SRV. PLC/Host Communication Instruction Manual IMS01P05-E5 RKC INSTRUMENT INC. Module Type Controller SRV PLC/Host Communication Instruction Manual RKC INSTRUMENT INC. IMS01P05-E5 Modbus is a registered trademark of Schneider Electric. The name of each programmable controller (PLC)

More information

USER S MANUAL. FX2N-32DP-IF Profibus-DP Interface Unit

USER S MANUAL. FX2N-32DP-IF Profibus-DP Interface Unit USER S MANUAL FX2N-32DP-IF Profibus-DP Interface Unit FX2N-32DP-IF Profibus-DP Interface Unit Foreword This manual contains text, diagrams and explanations which will guide the reader in the correct installation

More information

YAMAHA Robot Controller. MRCH/QRCH/QRCX Series UNIT OWNER'S MANUAL

YAMAHA Robot Controller. MRCH/QRCH/QRCX Series UNIT OWNER'S MANUAL YAMAHA Robot Controller MRCH/QRCH/QRCX Series UNIT OWNER'S MANUAL Safety Precautions (Always read before starting use) Always read this manual, the robot controller instruction manual and programming manual

More information

SAFETY PRECAUTIONS. (Read these precautions before using this product.)

SAFETY PRECAUTIONS. (Read these precautions before using this product.) SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this product, please read this manual and the relevant manuals carefully and pay full attention to safety to handle the

More information

SLMP Reference Manual

SLMP Reference Manual SLMP Reference Manual SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this product, please read this manual carefully and pay full attention to safety to handle the

More information

MELSEC-Q High Speed Analog-Digital Converter Module User's Manual -Q64ADH

MELSEC-Q High Speed Analog-Digital Converter Module User's Manual -Q64ADH MELSEC-Q High Speed Analog-Digital Converter Module User's Manual -Q64ADH SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this product, please read this manual and

More information

H Series PLC. ! : Indicates Compulsion. EH-150 Analog input module EH-AXH8M Instruction manual. Safety precautions DANGER CAUTION COMPULSION

H Series PLC. ! : Indicates Compulsion. EH-150 Analog input module EH-AXH8M Instruction manual. Safety precautions DANGER CAUTION COMPULSION H Series PLC EH-150 Analog input module EH-AXH8M Instruction manual Thank you for purchasing a Hitachi Programmable Logic Controller. To operate it safely, please read this instruction manual and all the

More information

Operation Manual. Fieldbus system EX510-GPR1. PROFIBUS DP Compatible GW unit

Operation Manual. Fieldbus system EX510-GPR1. PROFIBUS DP Compatible GW unit Fieldbus system PROFIBUS DP Compatible GW unit Operation Manual EX50-GPR URL http://www.smcworld.com Akihabara UDX 5F, --, Sotokanda, Chiyoda-ku, Tokyo 0-00, JAPAN Phone: +8 3-507-89 Fax: +8 3-598-536

More information

FX Configurator-EN-L OPERATION MANUAL

FX Configurator-EN-L OPERATION MANUAL OPERATION MANUAL FX Configurator-EN-L Manual number JY997D38401 Manual revision H Date 11/2017 Foreword This manual describes FX Configurator-EN-L and should be read and understood before attempting installation

More information

Programmable Controllers MELSEC iq-f/f Series Selection Guide

Programmable Controllers MELSEC iq-f/f Series Selection Guide Programmable Controllers MELSEC iq-f/f Series Selection Guide FACTORY AUTOMATION The next level of industry Push the limits of control. Contents OVERVIEW Concept 4 Function Introduction 8 System Configuration

More information

MELSEC iq-r Digital-Analog Converter Module User's Manual (Startup) -R60DA4 -R60DAV8 -R60DAI8

MELSEC iq-r Digital-Analog Converter Module User's Manual (Startup) -R60DA4 -R60DAV8 -R60DAI8 MELSEC iq-r Digital-Analog Converter Module User's Manual (Startup) -R60DA4 -R60DAV8 -R60DAI8 SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using the MELSEC iq-r series

More information

MELSEC iq-r Channel Isolated Thermocouple Input Module/Channel Isolated RTD Input Module User's Manual (Startup) -R60TD8-G -R60RD8-G

MELSEC iq-r Channel Isolated Thermocouple Input Module/Channel Isolated RTD Input Module User's Manual (Startup) -R60TD8-G -R60RD8-G MELSEC iq-r Channel Isolated Thermocouple Input Module/Channel Isolated RTD Input Module User's Manual (Startup) -R60TD8-G -R60RD8-G SAFETY PRECAUTIONS (Read these precautions before using this product.)

More information

USER S MANUAL. FX2N-32ASI-M AS-interface Master Block

USER S MANUAL. FX2N-32ASI-M AS-interface Master Block USER S MANUAL FX2N-32ASI-M AS-interface Master Block FX2N-32ASI-M AS-interface Master Block Foreword This manual contains text, diagrams and explanations which will guide the reader in the correct installation

More information

Appendix G. CJ1W-CIF11 RS-422A Converter

Appendix G. CJ1W-CIF11 RS-422A Converter CJ1W-CIF11 RS-422A Converter The CJ1W-CIF11 RS-422A Converter connects directly to a CS/CJ-series RS-232C port and converts RS- 232C to RS-422A/485. Specifications General Specifications Item Specification

More information

MELSEC iq-r CC-Link System Master/Local Module User's Manual (Startup) -RJ61BT11

MELSEC iq-r CC-Link System Master/Local Module User's Manual (Startup) -RJ61BT11 MELSEC iq-r CC-Link System Master/Local Module User's Manual (Startup) -RJ61BT11 SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this product, please read this manual

More information

ERNT-AQTX10 ERNT-AQT68AD-GH. User s Manual. Mitsubishi General-Purpose Programmable Logic Controller Renewal Tool Conversion Adapter.

ERNT-AQTX10 ERNT-AQT68AD-GH. User s Manual. Mitsubishi General-Purpose Programmable Logic Controller Renewal Tool Conversion Adapter. Mitsubishi General-Purpose Programmable Logic Controller Renewal Tool Conversion Adapter Model ERNT-AQT68AD-GH User s Manual ERNT-AQTX10 Model ERNT-AQT68AD-GH 50CM-D180033-A(0810)MEE SAFETY PRECAUTIONS

More information

Analog Input Installation Manual

Analog Input Installation Manual Analog Input Installation Manual August 2011 Part Number: 144-23917 Copyright 2011 Magnetek 1. Preface and Safety Magnetek manufactures products used as components in a wide variety of industrial systems

More information

Device/PLC Connection Manuals

Device/PLC Connection Manuals Device/PLC Connection Manuals About the Device/PLC Connection Manuals Prior to reading these manuals and setting up your device, be sure to read the "Important: Prior to reading the Device/PLC Connection

More information

Production Discontinuation of the FX2N series of PLCs

Production Discontinuation of the FX2N series of PLCs Issued by:mitsubishi Electric Corporation-Himeji orks o. HIME-T-P-3 Production Discontinuation of the F2 series of PCs Thanks to the loyal support of our customers, the MESEC-F series of PCs has been and

More information

MELSEC iq-r Analog-Digital Converter Module User's Manual (Startup) -R60AD4 -R60ADV8 -R60ADI8

MELSEC iq-r Analog-Digital Converter Module User's Manual (Startup) -R60AD4 -R60ADV8 -R60ADI8 MELSEC iq-r Analog-Digital Converter Module User's Manual (Startup) -R60AD4 -R60ADV8 -R60ADI8 SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using MELSEC iq-r series programmable

More information

FX Configurator-EN-L OPERATION MANUAL

FX Configurator-EN-L OPERATION MANUAL OPERATION MANUAL FX Configurator-EN-L Manual number JY997D38401 Manual revision C Date 9/2010 Foreword This manual describes FX Configurator-EN-L and should be read and understood before attempting installation

More information

MELSEC iq-r CC-Link System Master/Local Module User's Manual (Startup) -RJ61BT11

MELSEC iq-r CC-Link System Master/Local Module User's Manual (Startup) -RJ61BT11 MELSEC iq-r CC-Link System Master/Local Module User's Manual (Startup) -RJ61BT11 SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this product, please read this manual

More information

MELSEC iq-r Channel Isolated Analog-Digital Converter Module User's Manual (Startup) -R60AD8-G -R60AD16-G

MELSEC iq-r Channel Isolated Analog-Digital Converter Module User's Manual (Startup) -R60AD8-G -R60AD16-G MELSEC iq-r Channel Isolated Analog-Digital Converter Module User's Manual (Startup) -R60AD8-G -R60AD16-G SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this product,

More information

FX2NC-ENET-ADP Ethernet adapter USER'S MANUAL

FX2NC-ENET-ADP Ethernet adapter USER'S MANUAL Y1 Y0 Y2 2NC POWER LINK ACT SD RD - Ethernet adapter USER'S MANUAL Manual Number JY997D12301 Revision D Date May 2007 This manual contains text, diagrams and explanations which guide the reader in the

More information

INVERTER INSTRUCTION MANUAL. Relay output function. Plug-in option FR-A7AR PRE-OPERATION INSTRUCTIONS INSTALLATION AND WIRING RELAY OUTPUT

INVERTER INSTRUCTION MANUAL. Relay output function. Plug-in option FR-A7AR PRE-OPERATION INSTRUCTIONS INSTALLATION AND WIRING RELAY OUTPUT INVERTER Plug-in option FR-A7AR INSTRUCTION MANUAL Relay output function PRE-OPERATION INSTRUCTIONS INSTALLATION AND WIRING RELAY OUTPUT 1 2 3 Thank you for choosing this Mitsubishi Inverter plug-in option.

More information

FX2N-4AD-PT SPECIAL FUNCTION BLOCK

FX2N-4AD-PT SPECIAL FUNCTION BLOCK FX2N-4AD-PT SPECIAL FUNCTION BLOCK USER S GUIDE JY992D65601G This manual contains text, diagrams and explanations which will guide the reader in the correct installation and operation of the FX2N-4AD-PT

More information

User Manual Connection to Mitsubishi MelsecA

User Manual Connection to Mitsubishi MelsecA User Manual Connection to Mitsubishi MelsecA Part Number: 80 860.676 Version: 1 Date: 17.11.2005 Valid for: TSwin.net 4.1x Version Date Modifications 1 17.11.2005 First edition This manual, including all

More information

USER S MANUAL Enhanced Communication Function

USER S MANUAL Enhanced Communication Function UM-TS02E -E003 PROGRAMMABLE CONTROLLER PROSEC T2E/T2N USER S MANUAL Enhanced Communication Function Main Menu Contents TOSHIBA CORPORATION Important Information Misuse of this equipment can result in property

More information

GX Works2 Beginner's Manual (Structured Project) -SW1DND-GXW2-E -SW1DNC-GXW2-E

GX Works2 Beginner's Manual (Structured Project) -SW1DND-GXW2-E -SW1DNC-GXW2-E GX Works2 Beginner's Manual (Structured Project) -SW1DND-GXW2-E -SW1DNC-GXW2-E SAFETY PRECAUTIONS (Always read these instructions before using this product.) Before using this product, thoroughly read

More information

Appearance Size (mm) Power supply voltage Model (W H D) 100 to 240 VAC K3SC to 240 VAC

Appearance Size (mm) Power supply voltage Model (W H D) 100 to 240 VAC K3SC to 240 VAC Interface Converter A compact converter that allows communications between RS-C/USB and RS-/8 devices. Ideal for industrial applications. Allows communications between RS-C/USB (Universal Serial Bus) and

More information

over time. Improper wiring practices could result in drive malfunction due to loose terminal connections. Control Circuit Terminal Block Functions Dri

over time. Improper wiring practices could result in drive malfunction due to loose terminal connections. Control Circuit Terminal Block Functions Dri Figure 3.14 Main speed frequency reference. Multi-function programmable Safety input Forward run/stop Reverse run/stop External fault Fault reset Multi-step speed 1 main/aux switch Multi-step speed 2 Jog

More information

Package Contents. GP Options (Made by Digital)

Package Contents. GP Options (Made by Digital) When connecting the power cord terminals to the GP, be sure the cord has first been unplugged from the power outlet to prevent the possibility of an electric shock. With the exception of changing the GP's

More information

Operation Manual. Fieldbus system EX510-GDN1. DeviceNet Compatible GW unit

Operation Manual. Fieldbus system EX510-GDN1. DeviceNet Compatible GW unit Fieldbus system DeviceNet Compatible GW unit Operation Manual EX50-GDN URL http://www.smcworld.com Akihabara UDX 5F, --, Sotokanda, Chiyoda-ku, Tokyo 0-00, JAPAN Phone: +8-507-89 Fax: +8-598-56 Note: Specifications

More information

Additional Explanation for A851GOT Graphic Operation Terminal

Additional Explanation for A851GOT Graphic Operation Terminal Additional Explanation for A851GOT Graphic Operation Terminal GRAPHIC OPERATION TERMINAL Mitsubishi Graphic Operation Terminal SAFETY PRECAUTIONS (Always read these instructions before using this equipment.)

More information

FX3U-1PG USER'S MANUAL

FX3U-1PG USER'S MANUAL FX3U-1PG USER'S MANUAL Safety Precautions (Read these precautions before use.) Before installation, operation, maintenance or inspection of this product, thoroughly read through and understand this manual

More information

MELSEC iq-r HART-Enabled Analog-Digital Converter Module User's Manual (Startup) -R60ADI8-HA -SW1DNN-HARTCDTM-BD (CommDTM for R60ADI8-HA)

MELSEC iq-r HART-Enabled Analog-Digital Converter Module User's Manual (Startup) -R60ADI8-HA -SW1DNN-HARTCDTM-BD (CommDTM for R60ADI8-HA) MELSEC iq-r HART-Enabled Analog-Digital Converter Module User's Manual (Startup) -R60ADI8-HA -SW1DNN-HARTCDTM-BD (CommDTM for R60ADI8-HA) SAFETY PRECAUTIONS (Read these precautions before using this product.)

More information

MELSEC iq-r DeviceNet Master/Slave Module User's Manual (Application) -RJ71DN91

MELSEC iq-r DeviceNet Master/Slave Module User's Manual (Application) -RJ71DN91 MELSEC iq-r DeviceNet Master/Slave Module User's Manual (Application) -RJ71DN91 SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this product, please read this manual

More information

FR-A8AR INSTRUCTION MANUAL

FR-A8AR INSTRUCTION MANUAL INVERTER Plug-in option FR-A8AR INSTRUCTION MANUAL Relay output function PRE-OPERATION INSTRUCTIONS INSTALLATION AND WIRING RELAY OUTPUT 1 2 3 Thank you for choosing this Mitsubishi inverter plug-in option.

More information

MELSEC iq-r Ethernet/CC-Link IE User's Manual (Startup) -RJ71EN71 -RJ71GP21-SX -RJ71GF11-T2 -R04CPU -R08CPU -R16CPU -R32CPU -R120CPU

MELSEC iq-r Ethernet/CC-Link IE User's Manual (Startup) -RJ71EN71 -RJ71GP21-SX -RJ71GF11-T2 -R04CPU -R08CPU -R16CPU -R32CPU -R120CPU MELSEC iq-r Ethernet/CC-Link IE User's Manual (Startup) -RJ71EN71 -RJ71GP21-SX -RJ71GF11-T2 -R04CPU -R08CPU -R16CPU -R32CPU -R120CPU SAFETY PRECAUTIONS (Read these precautions before using this product.)

More information

SECTION 10 Analog Input/Output Option Board

SECTION 10 Analog Input/Output Option Board SECTION 10 Input/Output Option Board This section describes how to use Input/Output Option Board. 10-1 General Specifications.......................................... 506 10-2 Part Names...................................................

More information

MELSEC Communication Protocol Reference Manual

MELSEC Communication Protocol Reference Manual MELSEC Communication Protocol Reference Manual SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this product, please read this manual and the relevant manuals carefully

More information

MELSEC iq-r Online Module Change Manual

MELSEC iq-r Online Module Change Manual MELSEC iq-r Online Module Change Manual SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using MELSEC iq-r series programmable controllers, please read the manuals for the

More information

DANGERS When Designing your GLC System: WARNINGS Wiring Warnings:

DANGERS When Designing your GLC System: WARNINGS Wiring Warnings: DANGERS When Designing your GLC System: - Be sure to design your GLC control system so that in the event of a main power supply failure or a GLC accident, the user system s overall safety integrity will

More information

MELSEC iq-r Channel Isolated Digital-Analog Converter Module User's Manual (Startup) -R60DA8-G -R60DA16-G

MELSEC iq-r Channel Isolated Digital-Analog Converter Module User's Manual (Startup) -R60DA8-G -R60DA16-G MELSEC iq-r Channel Isolated Digital-Analog Converter Module User's Manual (Startup) -R60DA8-G -R60DA16-G SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this product,

More information

Device/PLC Connection Manuals

Device/PLC Connection Manuals Device/ Connection Manuals About the Device/ Connection Manuals Prior to reading these manuals and setting up your device, be sure to read the "Important: Prior to reading the Device/ Connection manual"

More information

NX-series SSI Input Unit. Read position information from encoders with Synchronous Serial Interface (SSI). Features. System Configuration

NX-series SSI Input Unit. Read position information from encoders with Synchronous Serial Interface (SSI). Features. System Configuration NX-series SSI Input Unit CSM DS_E_1_1 Read position information from encoders with Synchronous Serial Interface (SSI). Process SSI encoder input data using the MC Function Modules of the NJ-series Machine

More information

MODBUS Interface Module User's Manual. -QJ71MB91 -GX Configurator-MB (SW1D5C-QMBU-E)

MODBUS Interface Module User's Manual. -QJ71MB91 -GX Configurator-MB (SW1D5C-QMBU-E) MODBUS Interface Module User's Manual -QJ71MB91 -GX Configurator-MB (SW1D5C-QMBU-E) SAFETY PRECAUTIONS (Always read these instructions before using this product.) Before using this product, please read

More information

User's Manual. FP7 CPU Unit. COM port communication PROGRAMMABLE CONTROLLER

User's Manual. FP7 CPU Unit. COM port communication PROGRAMMABLE CONTROLLER PROGRAMMABLE CONTROLLER FP7 CPU Unit User's Manual COM port communication Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com Safety Precautions Observe the following

More information

MELSEC iq-r CC-Link IE Field Network Remote Head Module User's Manual (Startup) -RJ72GF15-T2

MELSEC iq-r CC-Link IE Field Network Remote Head Module User's Manual (Startup) -RJ72GF15-T2 MELSEC iq-r CC-Link IE Field Network Remote Head Module User's Manual (Startup) -RJ72GF15-T2 SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this product, please read

More information

PC CONNECTION Programmable Terminal OPERATION MANUAL

PC CONNECTION Programmable Terminal OPERATION MANUAL Cat No. V042-E1-1 PC CNECTI Programmable Terminal OPERATI MANUAL PLC CNECTI Programmable Terminal Operation Manual Produced April 1997 iii OMR Product References All OMR products are capitalized in this

More information

Appendix 3 Using NS-AL002 Converters

Appendix 3 Using NS-AL002 Converters Appendix 3 Using Converters The RS-232C/RS-422A Converter is connected directly to RS-232C port A or B of the, and converts RS-232C communications to RS-422A/RS-485. Any of the Converters listed in Appendix

More information

Analog Monitor Installation Manual

Analog Monitor Installation Manual Analog Monitor Installation Manual Part Number: 144-23919 Copyright 2011 Magnetek 1. Preface and Safety Magnetek manufactures products used as components in a wide variety of industrial systems and equipment.

More information

AD-8923-BCD. Remote Controller (BCD) INSTRUCTION MANUAL 1WMPD

AD-8923-BCD. Remote Controller (BCD) INSTRUCTION MANUAL 1WMPD AD-8923-BCD Remote Controller (BCD) INSTRUCTION MANUAL 1WMPD4002137 2010 A&D Company, Limited. All rights reserved. No part of this publication may be reproduced, transmitted, transcribed, or translated

More information

DX200 OPTIONS MECHATROLINK-II COMMUNICATION FUNCTION INSTRUCTIONS

DX200 OPTIONS MECHATROLINK-II COMMUNICATION FUNCTION INSTRUCTIONS DX200 OPTIONS MECHATROLINK-II COMMUNICATION FUNCTION INSTRUCTIONS (FOR MP2110-ET3 MADE BY YASKAWA ELECTRIC CORPORATION ) Upon receipt of the product and prior to initial operation, read these instructions

More information

CC-Link IE Field Network Interface Board User's Manual (For SW1DNC-CCIEF-B) -Q80BD-J71GF11-T2 -Q81BD-J71GF11-T2

CC-Link IE Field Network Interface Board User's Manual (For SW1DNC-CCIEF-B) -Q80BD-J71GF11-T2 -Q81BD-J71GF11-T2 CC-Link IE Field Network Interface Board User's Manual (For SW1DNC-CCIEF-B) -Q80BD-J71GF11-T2 -Q81BD-J71GF11-T2 SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this

More information

Machine Controller MP920 Communications Module USER'S MANUAL

Machine Controller MP920 Communications Module USER'S MANUAL YASKAWA Machine Controller MP920 Communications Module USER'S MANUAL YASKAWA MANUAL NO. SIEZ-C887-2.6B Copyright 1999 YASKAWA ELECTRIC CORPORATION All rights reserved. No part of this publication may be

More information

MELSEC iq-r PROFIBUS-DP Module User's Manual (Startup) -RJ71PB91V

MELSEC iq-r PROFIBUS-DP Module User's Manual (Startup) -RJ71PB91V MELSEC iq-r PROFIBUS-DP Module User's Manual (Startup) -RJ71PB91V SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this product, please read this manual and the relevant

More information