MITSUBISHI ELECTRIC MELSEC FX Series Programmable Controllers User's Manual FX3U MODBUS Serial Communication Edition Art.
Safety Precautions (Read these precautions before use.) Before installing, operating, maintenance or inspecting this product, thoroughly read and understand this manual and the associated manuals. Also pay careful attention to handle the module properly and safety. This manual classifies the safety precautions into two categories: and . Indicates that incorrect handling may cause hazardous conditions, resulting in death or severe injury.
Safety Precautions (Read these precautions before use.) 2. WIRING PRECAUTIONS • Cut off all phases of the power source externally before installation or wiring work in order to avoid electric shock or damage of product. • Make sure to attach the terminal cover offered as an accessory to the product before turning on the power or starting the operation after installation or wiring work. Failure to do so may cause electric shock.
FX3U Series Programmable Controllers User’s Manual - MODBUS Serial Communication Edition FX3U Series Programmable Controllers User's Manual [MODBUS Serial Communication Edition] Manual number JY997D26201 Manual revision A Date 4/2007 Foreword This manual explains the "MODBUS serial communication" provided in FX3U Series Programmable Controllers and should be read and understood before attempting to install or use the unit.
FX3U Series Programmable Controllers User’s Manual - MODBUS Serial Communication Edition Outline Precautions • This manual provides information for the use of the FX3U Series Programmable Controllers. The manual has been written to be used by trained and competent personnel.
FX3U Series Programmable Controllers User’s Manual - MODBUS Serial Communication Edition Table of Contents Table of Contents SAFETY PRECAUTIONS .................................................................................................. (1) Related manuals........................................................................................................................ 6 Generic Names and Abbreviations Used in Manuals ............................................................ 7 1.
FX3U Series Programmable Controllers User’s Manual - MODBUS Serial Communication Edition 6. Related Devices and Communication Status 6.1 6.2 6.3 6.4 Table of Contents 32 Special Data Registers.................................................................................................................. 32 Communication setting for MODBUS............................................................................................ 37 Special Auxiliary Relays..............................................
FX3U Series Programmable Controllers User’s Manual - MODBUS Serial Communication Edition 9. Slave Specification 9.1 9.2 9.3 9.4 Table of Contents 84 MODBUS Slave Command Code List........................................................................................... 84 MODBUS device address allocation ............................................................................................. 85 MODBUS device address allocation (Default Values) ......................................................
FX3U Series Programmable Controllers User’s Manual - MODBUS Serial Communication Edition Related manuals Related manuals For a detailed explanation of the MODBUS serial communication network in FX3U PLCs, refer to this manual. For hardware information and instructions on the PLC main unit, other special function units/blocks, etc., refer to the appropriate manuals. For acquiring required manuals, contact the distributor from where your product was purchased.
FX3U Series Programmable Controllers User’s Manual - MODBUS Serial Communication Edition Generic Names and Abbreviations Used in Manuals Generic Names and Abbreviations Used in Manuals Abbreviation/generic name Name Programmable controllers FX3U Series FX3U PLC or main unit Generic name of FX3U Series PLCs Generic name of FX3U Series PLC main units Expansion boards Expansion board Generic name of expansion boards (The models shown below): FX3U-232-BD, FX3U-422-BD, FX3U-485-BD, FX3U-USB-BD, and FX3U-C
FX3U Series Programmable Controllers 1 Outline User’s Manual - MODBUS Serial Communication Edition 1. 1.1 Outline of System Outline This chapter outlines the MODBUS serial communication network. 1.1 Outline of System The MODBUS serial communication network allows up to 16 slaves to be controlled by one master in accordance with RS-485 to link devices, or one directly linked slave in accordance with RS-232C.
FX3U Series Programmable Controllers 1 Outline User’s Manual - MODBUS Serial Communication Edition 1 Major Procedures until Operation Outline 1.2 1.2 Major Procedures until Operation The flow chart below shows the procedure for setting up the MODBUS serial communication network: MODBUS Serial Communication 2 Refer to Chapter 1. Specifications Outline of system • Applicable PLC versions • Applicable programming tools Outline Refer to Chapter 2. Check communication specifications.
FX3U Series Programmable Controllers 1 Outline User’s Manual - MODBUS Serial Communication Edition 1.3 PLC Communication Type Applicability 1.3.1 Applicable versions 1.3 PLC Communication Type Applicability The communication type is applicable in the following versions. 3: Applicable (If applicable versions are limited, they are described inside ( ).) —: Not applicable PLC Applicability (applicable version) FX3U Series Remarks 3 (Ver. 2.40 or later) 1.
FX3U Series Programmable Controllers User’s Manual - MODBUS Serial Communication Edition Programming Tool Applicability 1.4.1 For applicable versions 1.4 Programming Tool Applicability 1 Outline 1.4 1 Outline 2 The programming tool is applicable for each FX Series from the following version: 3: Applicable (If applicable versions are limited, they are described inside ( ).) —: Not applicable Model name (Media model name is shown below.
FX3U Series Programmable Controllers 2 Specifications User’s Manual - MODBUS Serial Communication Edition 2. 2.1 Communication Specifications Specifications This chapter explains the communication specifications and performance. 2.1 Communication Specifications MODBUS Serial Communication can be implemented according to the specifications shown in the table below with the corresponding special adapter attached to the PLC, either the FX3U-232ADP-MB or FX3U485ADP-MB.
FX3U Series Programmable Controllers 2 Specifications User’s Manual - MODBUS Serial Communication Edition 1 Link Time Outline 2.2 2.2 Link Time The link time indicates the cycle time in which a Master module completes a single command with a Slave, as illustrated by the diagram below. 2 X0 SET M0 Specifications M0 ADPRW******* M8029 3 RST M0 System Configuration 4 Wiring 5 Communication Setup 6 Related Devices and Comm.
FX3U Series Programmable Controllers 2 Specifications User’s Manual - MODBUS Serial Communication Edition 2.2 Link Time The Master processing time (Tm) can be calculated in milliseconds (ms) as follows, where INT (n) indicates the concatenation of any remaining decimal values.
FX3U Series Programmable Controllers 2 Specifications User’s Manual - MODBUS Serial Communication Edition 2.2 Link Time 1 Outline Example Link Time Calculations: Master processing time (Tm) = 5ms = 5ms = Read Holding Registers 0-9 (Command Code 0x03) = RTU Mode = 8bytes (1byte Address, 5byte Frame, 2byte CRC) = 25bytes (1byte Address Echo, 22byte Frame, 2byte CRC) = 10bits (1bit Start, 8bit Data Length, 0bit Parity, 1bit Stop) = 19.
FX3U Series Programmable Controllers 3 System Configuration User’s Manual - MODBUS Serial Communication Edition 3. 3.1 System Configuration System Configuration This section explains the configuration of communication equipment operating in accordance with RS-485 and RS-232C and the selection of equipment required by FX3U PLCs. 3.1 System Configuration This section outlines the system configuration required to use MODBUS serial communication.
FX3U Series Programmable Controllers 3 System Configuration User’s Manual - MODBUS Serial Communication Edition 1 Applicable FX PLC and Communication Equipment Outline 3.2 3.2 Applicable FX PLC and Communication Equipment Select the most suitable combination of (optional) communication equipment from the table below, and put a check mark in the "Check" column of the corresponding equipment.
FX3U Series Programmable Controllers 3 System Configuration User’s Manual - MODBUS Serial Communication Edition 3.
FX3U Series Programmable Controllers 3 System Configuration User’s Manual - MODBUS Serial Communication Edition 1 Limitation when Channel 1 and Channel 2 are used at the same time Outline 3.3 3.3 Limitation when Channel 1 and Channel 2 are used at the When using Channel 1 (ch1) and Channel 2 (ch2) at the same time, the available communication type combinations are limited. For more details, refer to the table below.
FX3U Series Programmable Controllers User’s Manual - MODBUS Serial Communication Edition 4. 4 Wiring 4.1 Wiring Procedure Wiring This chapter explains the wiring. WIRING PRECAUTIONS • Cut off all phases of the power supply externally before installation or wiring work in order to avoid damage to the product or electric shock. • Make sure to attach the terminal cover, offered as an accessory, before turning on the power or initiating operation after installation or wiring work.
FX3U Series Programmable Controllers 4 Wiring User’s Manual - MODBUS Serial Communication Edition 1 Selecting Connection Method Outline 4.2 4.2 Selecting Connection Method When using MODBUS serial communication, communication can be achieved in accordance with MODBUS RS-232C or RS-485. For the FX3U, only one channel can be used for MODBUS serial communication, Master or Slave.
FX3U Series Programmable Controllers 4 Wiring User’s Manual - MODBUS Serial Communication Edition 4.3 4.3 Selecting Cables and Terminal Resistors (MODBUS RS- Selecting Cables and Terminal Resistors (MODBUS RS-485) Select cables using the procedure described below. 4.3.1 Twisted pair cable Use shielded twisted pair cables for connecting communication equipment operating in accordance with MODBUS RS-485. 1.
FX3U Series Programmable Controllers 4 Wiring User’s Manual - MODBUS Serial Communication Edition 1 Connecting cables Outline 4.3.2 4.3 Selecting Cables and Terminal Resistors (MODBUS RS- 1. European type terminal block Use shielded twisted pair cables for connecting communication equipment operating in accordance with MODBUS RS-485. The table below shows applicable cables and tightening torques.
FX3U Series Programmable Controllers 4 Wiring User’s Manual - MODBUS Serial Communication Edition 4.4 4.4 Connection Diagram for MODBUS RS-232C Connection Diagram for MODBUS RS-232C Representative wiring examples are shown in this section. When pin numbers in the counterpart equipment are different, wire the pins as shown below. 4.4.
FX3U Series Programmable Controllers 4 Wiring User’s Manual - MODBUS Serial Communication Edition 4.5 Connection Diagram for MODBUS RS-485 Connection Diagram for MODBUS RS-485 4.5.1 One-pair wiring Outline 4.
FX3U Series Programmable Controllers 4 Wiring User’s Manual - MODBUS Serial Communication Edition 4.6 4.6 Grounding Grounding Grounding should be performed as stated below. • The grounding resistance should be 100 Ω or less. • Independent grounding should be performed for best results. When independent grounding can not be performed, perform "shared grounding" as shown in the following figure → For details, refer to the Hardware Edition.
FX3U Series Programmable Controllers 5 Communication Setup User’s Manual - MODBUS Serial Communication Edition 5.1 Setup method for MODBUS serial communication 1 Outline 5. Communication Setup 5.1 Setup method for MODBUS serial communication 3 MODBUS communication is setup via the PLC program using GX Developer. Example of communication setup To initiate the setup, the PLC program must use the auxiliary relay M8411 for Channel 1 or Channel 2.
FX3U Series Programmable Controllers 5 Communication Setup User’s Manual - MODBUS Serial Communication Edition 5.2 Example of communication setup The ladder code for setting the Master parameters can be expressed as follows: Program for setting up a MODBUS Master 0 MODBUS Serial Communication Setup M8411 MOV b15 H1097 D8400 b0 0001 0000 1001 0111 The communication format is set. 1 0 9 7 8bit / Even / 1-bit / 19200bps / RS485 b15 MOV H1 D8401 The protocol is set.
FX3U Series Programmable Controllers 5 Communication Setup User’s Manual - MODBUS Serial Communication Edition 5.2 Example of communication setup 1 Device Name Communication Format D8401 Protocol D8411 Message to Message Delay D8414 Slave Node Address Description 2 For Descriptions, refer to Chapter 6.
FX3U Series Programmable Controllers 5 Communication Setup User’s Manual - MODBUS Serial Communication Edition 5.3 5.3 Simultaneous N:N Networking and MODBUS Simultaneous N:N Networking and MODBUS Communication When MODBUS communication and N:N Network are used simultaneously, N:N Networking must be setup first (at program step 0). After which it is possible to program the MODBUS communication setup, as shown below.
FX3U Series Programmable Controllers User’s Manual - MODBUS Serial Communication Edition 5.4 Cautions on Communication Setup 1 Cautions on Communication Setup Outline 5.4 5 Communication Setup 1. Timing of Communication Parameters Though the MODBUS communication parameters are setup using the PLC program, the parameters become effective only after the PLC power is switched from OFF to ON.
FX3U Series Programmable Controllers 6 Related Devices and Communication Status User’s Manual - MODBUS Serial Communication Edition 6. 6.1 Special Data Registers Related Devices and Communication Status In this section the device numbers and functions of the special data registers and special auxiliary relays are described for MODBUS serial communication. 6.1 Special Data Registers The table shows the Special Data registers used in MODBUS serial communication.
FX3U Series Programmable Controllers 6 Related Devices and Communication Status User’s Manual - MODBUS Serial Communication Edition 6.1 Special Data Registers 1 CH1 Name Valid Detailed description R/W Outline Special Data Register CH2 Communication D8405 D8425 Format Display M, S This device stores the communication format set in the PLC.
FX3U Series Programmable Controllers 6 Related Devices and Communication Status User’s Manual - MODBUS Serial Communication Edition Special Data Register CH1 Name Valid 6.1 Special Data Registers Detailed description R/W CH2 The turnaround delay defines the minimum delay time that the master has to wait after the transmission of a broadcast message before transmitting the next request. This delay allows the slaves to process the broadcast message and prepare the reception of the next request.
FX3U Series Programmable Controllers 6 Related Devices and Communication Status User’s Manual - MODBUS Serial Communication Edition 6.1 Special Data Registers 1 CH1 Name Valid Detailed description R/W Outline Special Data Register CH2 Defines the device range that is used to store the communication state (event & error counter and/or event log).
FX3U Series Programmable Controllers 6 Related Devices and Communication Status User’s Manual - MODBUS Serial Communication Edition Special Data Register CH1 Name Valid 6.
FX3U Series Programmable Controllers 6 Related Devices and Communication Status User’s Manual - MODBUS Serial Communication Edition 1 Communication setting for MODBUS Outline 6.2 6.2 Communication setting for MODBUS The following devices are used in the communication setting. When using the communication port (Ch1), set D8400. When using the communication port (Ch2), set D8420. 2 Bit No.
FX3U Series Programmable Controllers 6 Related Devices and Communication Status User’s Manual - MODBUS Serial Communication Edition 6.3 6.3 Special Auxiliary Relays Special Auxiliary Relays The table shows the Special Auxiliary Relays used for MODBUS serial communication. Special Device CH1 CH2 Name MODBUS Configuration Request Flag M8411 Valid M, S Detailed Description LD M8411 can be used to trigger a set of subsequent MOV commands that initialize the MODBUS function.
FX3U Series Programmable Controllers 6 Related Devices and Communication Status User’s Manual - MODBUS Serial Communication Edition 6.3 Special Auxiliary Relays 1 Name CH2 Valid Detailed Description R/W Outline Special Device CH1 Set while the master sends retries when the slave fails to respond in time. M8428 Retry M 2 R As long as the slave responds on one of the retries the error flag will not be set. 3 M8409 M8429 Timeout S System Configuration Set if a response timeout occurs.
FX3U Series Programmable Controllers 6 Related Devices and Communication Status User’s Manual - MODBUS Serial Communication Edition 6.4 6.4 Communication status Communication status The event and error counters will occupy ten devices beginning from the device defined by (D8415 / D8435) and (D8416/D8436). PLC destination devices are latched, therefore the Master's devices will be cleared at power ON and when the PLC is switched from STOP to RUN.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.1 MODBUS Standard Commands Support List 1 Outline 7. MODBUS Standard Commands 7.1 MODBUS Standard Commands Support List Command Code Subcommand Code Command Name Details Accessible Devices per Message Broadcast Reference 0x02 Read Discrete Inputs Read binary (RO) devices 1 to 2000 points ✘ Section 7.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition Command Code 0x08 Diagnosis 42 Subcommand Code Command Name 7.1 MODBUS Standard Commands Support List Details Accessible Devices per Message Broadcast Reference 0x0C Return Bus Communication Error Count Read number of detected communication errors - ✘ Subsection 7.11.8 0x0D Return Bus Exception Error Count Read number of detected exception conditions - ✘ Subsection 7.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 1 Frame Specifications Outline 7.2 7.2 Frame Specifications The following shows the frame specifications for the MODBUS protocol. Address field Function code Data Error check 2 Specifications MODBUS Protocol Data Section Section 7.3 to section 7.18 The following table details the frame specification for the MODBUS Protocol.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.2.1 7.2 Frame Specifications Frame mode For the FX-Series MODBUS Communication ADP, the following frame modes are available. The frame mode of the FX-Series MODBUS Communication ADP must be consistent with that of the target device. 1) Available frame modes a) RTU mode In this mode, frames are received or sent in binary codes.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.2 Frame Specifications 1 CRC error check procedure 16-bit register (MSB) (Load the register whose 16 bits are all "1") 1111 1111 02H(Station No.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.2 Frame Specifications b) ASCII mode In this mode, frames are received or sent in units of 2 characters 2 bytes of ASCII codes. The frame specifications are compliant with the MODBUS protocol specifications.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.2 Frame Specifications 1 Outline The following are calculation examples in the case where function code 01H is sent to station No. 2.
FX3U Series Programmable Controllers User’s Manual - MODBUS Serial Communication Edition 7.3 7 MODBUS Standard Commands 7.3 Protocol Data Unit Formats by Commands Protocol Data Unit Formats by Commands This section describes MODBUS protocol data unit formats used by the FX-Series MODBUS Communication ADP. 1) Precautions: a) When the FX-Series MODBUS Communication ADP receives a broadcast request message: Although the processing requested by the request message is performed etc.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.3 Protocol Data Unit Formats by Commands 1 Outline 3) How to see the request/response message formats provided in Section 7.4 to 7.18: a) Request/Response message format diagram The following shows how to see the request/response message format diagrams provided in Section 7.4 to 7.18.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.4 7.4 Read Coils (Command Code: 0x01) Read Coils (Command Code: 0x01) Reads the status (ON/OFF) of one or more coils.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 1 Read Discrete Inputs (Command Code: 0x02) Outline 7.5 7.5 Read Discrete Inputs (Command Code: 0x02) Reads the status (ON/OFF) of one or more inputs.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.6 7.6 Read Holding Registers (Command Code: 0x03) Read Holding Registers (Command Code: 0x03) Reads the values of one or more holding registers.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 1 Read Input Registers (Command Code: 0x04) Outline 7.7 7.7 Read Input Registers (Command Code: 0x04) Reads the values of one or more input registers.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.8 7.8 Write Single Coil (Command Code: 0x05) Write Single Coil (Command Code: 0x05) Writes a value (ON/OFF) to one coil.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 1 Write Single Register (Command Code: 0x06) Outline 7.9 7.9 Write Single Register (Command Code: 0x06) Writes a value to one holding register.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.10 7.10 Read Exception Status (Command Code: 0x07) Read Exception Status (Command Code: 0x07) Reads error status. 1) Request message format (Master → Slave) Function code Function code (07H) 2) Response message format (Slave → Master) (When completed normally) Function code Data Function code (07 H) Error information*1 *1. Vendor specific data.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 1 Diagnostics (Command Code: 0x08) Outline 7.11 7.11 Diagnostics (Command Code: 0x08) Executes the various diagnostics and checks the FX-Series MODBUS Communication ADP. 7.11.1 Return query data (sub-comand code: 0x00) 2 Specifications Returns the contents of the request message without change. Used to check if the network or the target device is operating normally.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.11 Diagnostics (Command Code: 0x08) 7.11.2 Restart communications option (sub-command code: 0x01) Initializes the communication port of the receiving channel side and restarts the slave function. Restart is performed after returning the response message corresponding to a request message. The operation status returns to online mode when it was in the listen only mode.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.11 Diagnostics (Command Code: 0x08) 1 Outline 7.11.3 Return diagnostic register (sub-command code: 0x02) Reads out the diagnostic register of the remote node to the master.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.11 Diagnostics (Command Code: 0x08) 7.11.4 Change ASCII input delimiter (sub-command code: 0x03) Changes the 2nd byte (LF(0AH)) of the end code in the ASCII mode to a specified data. The specified data is stored in D8406/D8426.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.11 Diagnostics (Command Code: 0x08) 1 Outline 7.11.5 Force listen only mode (sub-command code: 0x04) Places a slave into the offline mode. Used when disconnecting a slave from the network.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.11 Diagnostics (Command Code: 0x08) 7.11.6 Clear counters and diagnostic register (sub-command code: 0x0A) Clears counters (e.g. message count). The following counters will be cleared.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.11 Diagnostics (Command Code: 0x08) 1 Outline 7.11.7 Return bus message count (sub-command code: 0x0B) Reads out the number of messages detected on the line to the master.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.11 Diagnostics (Command Code: 0x08) 7.11.8 Return bus communication error count (sub-command code: 0x0C) Reads out the number of error messages detected on the line to the master.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.11 Diagnostics (Command Code: 0x08) 1 Outline 7.11.9 Return bus exception error count (sub-command code: 0x0D) Reads out the number of exception errors to the master.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.11 Diagnostics (Command Code: 0x08) 7.11.10 Return slave message count (sub-command code: 0x0E) Reads out the number of messages processed by the slave to the master.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.11 Diagnostics (Command Code: 0x08) 1 Outline 7.11.11 Return slave no response count (sub-command code: 0x0F) Reads to out the number of broadcast request messages received to the master.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.11 Diagnostics (Command Code: 0x08) 7.11.12 Return slave NAK count (sub-command code: 0x10) Reads out the number of NAK responses to the master. The FX-Series MODBUS Communication ADP always returns "0".
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.11 Diagnostics (Command Code: 0x08) 1 Outline 7.11.13 Return slave busy count (sub-command code: 0x11) Reads out the number of busy responses to the master. The FX-Series MODBUS Communication ADP always returns "0".
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.11 Diagnostics (Command Code: 0x08) 7.11.14 Return bus character overrun count (sub-command code: 0x12) Reads out the number of times the request message size exceeds the upper limit to the master.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 1 Get Communications Event Counter (Command Code: 0x0B) Outline 7.12 7.12 Get Communications Event Counter (Command Code: Acquires the number of messages whose requested actions (read/write, diagnostics, etc.) have been normally completed. Note 2 Specifications Only normally completed messages are counted.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.13 7.13 Get Communications Event Log (Command Code: 0x0C) Get Communications Event Log (Command Code: 0x0C) Acquires the communications event log of the FX-Series MODBUS Communication ADP into the master.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 1 Write Multiple Coils (Command Code: 0x0F) Outline 7.14 7.14 Write Multiple Coils (Command Code: 0x0F) Writes values (ON/OFF) to multiple coils. 1) Request message format (Master → Slave) 2 Function code (0F H) Specifications Function code Data Write points*1 (0001H to 07B0 H) Head coil number (0000 H to FFFFH) (H) (L) Number of bytes n*1 (0001H to 00F6 H) Device data 1 . .
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.15 7.15 Write Multiple Registers (Command Code: 0x10) Write Multiple Registers (Command Code: 0x10) Writes values to multiple holding registers.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 1 Report Slave ID (Command Code: 0x11) Outline 7.16 7.16 Report Slave ID (Command Code: 0x11) Acquires the information of the slave (FX-Series MODBUS Communication ADP) mounted station into the master.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 7.17 7.17 Mask Write Register (Command Code: 0x16) Mask Write Register (Command Code: 0x16) Masks the values stored in a single holding register with AND or OR and writes the value. The masked values written to the holding register are as shown below.
FX3U Series Programmable Controllers 7 MODBUS Standard Commands User’s Manual - MODBUS Serial Communication Edition 1 Read/Write Multiple Registers (Command Code: 0x17) Outline 7.18 7.18 Read/Write Multiple Registers (Command Code: 0x17) Reads from and writes to multiple holding registers. Writing is executed first and reading is then executed. 2 1) Request message format (Master → Slave) Specifications Function code Data Write device data 1 (H) . . .
FX3U Series Programmable Controllers 8 Master Specification User’s Manual - MODBUS Serial Communication Edition 8. 8.1 MODBUS Master Command List Master Specification This chapter explains the MODBUS Master functions supported by the FX-Series MODBUS Communication ADP. 8.
FX3U Series Programmable Controllers 8 Master Specification User’s Manual - MODBUS Serial Communication Edition 8.2 FNC 276 - MODBUS Read/Write Instruction FNC 276 - MODBUS Read/Write Instruction 8.2.1 Outline Outline 8.
FX3U Series Programmable Controllers 8 Master Specification User’s Manual - MODBUS Serial Communication Edition 8.3 8.3 ADPRW Command Parameters ADPRW Command Parameters The following table shows the required command parameters for each command code.
FX3U Series Programmable Controllers 8 Master Specification User’s Manual - MODBUS Serial Communication Edition 8.
FX3U Series Programmable Controllers 8 Master Specification User’s Manual - MODBUS Serial Communication Edition : Command Code S1 S2 S3 : : Device Address/ Device Count/Sub-command Sub-command Code Data/AND Mask 8.
FX3U Series Programmable Controllers 8 Master Specification User’s Manual - MODBUS Serial Communication Edition 8.
FX3U Series Programmable Controllers 9 Slave Specification User’s Manual - MODBUS Serial Communication Edition 9. 9.1 MODBUS Slave Command Code List Slave Specification This chapter explains the configuration of the slave for MODBUS Serial Communication. 9.
FX3U Series Programmable Controllers 9 Slave Specification User’s Manual - MODBUS Serial Communication Edition 9.
FX3U Series Programmable Controllers 9 Slave Specification User’s Manual - MODBUS Serial Communication Edition 9.
FX3U Series Programmable Controllers 9 Slave Specification User’s Manual - MODBUS Serial Communication Edition 1 User defined MODBUS Device Address Assignment Outline 9.4 9.4 User defined MODBUS Device Address Assignment Up to eight PLC device ranges can be mapped to the MODBUS Device Address range in a user defined order. The procedure for creating user defined mapping can be seen in the program example below.
FX3U Series Programmable Controllers 9 Slave Specification User’s Manual - MODBUS Serial Communication Edition 9.4.1 9.4 User defined MODBUS Device Address Assignment Format of the user defined device allocation The user defined device allocation affects only the RW areas - "Coils" and "Holding Register". The mapping of the Read Only (RO) areas "discrete inputs" and "Input Register" is fixed and cannot be changed from the default setting.
FX3U Series Programmable Controllers 9 Slave Specification User’s Manual - MODBUS Serial Communication Edition 1 Size (12bit): 1 to 2048 blocks. Outline d 9.
FX3U Series Programmable Controllers 9 Slave Specification User’s Manual - MODBUS Serial Communication Edition 9.4.2 9.4 User defined MODBUS Device Address Assignment Example of user defined device allocation The following table provides an example of a valid user defined device allocation.
FX3U Series Programmable Controllers User’s Manual - MODBUS Serial Communication Edition 9 Slave Specification 9.4 User defined MODBUS Device Address Assignment 1 Outline Program for Setting up MODBUS Slave MODBUS Serial Communication Setup M8411 0 D8400 MOV H11 D8401 MOV H1 D8414 MOV H11 D8415 MOV K100 D8416 For more details on the Communication Setup Parameters, refer to Section 5.
FX3U Series Programmable Controllers 9 Slave Specification User’s Manual - MODBUS Serial Communication Edition 9.
FX3U Series Programmable Controllers 9 Slave Specification User’s Manual - MODBUS Serial Communication Edition 9.
FX3U Series Programmable Controllers 9 Slave Specification User’s Manual - MODBUS Serial Communication Edition 9.5 9.5 Communication Event log Communication Event log This section details the communication event log details for the MODBUS slave device. 9.5.1 Communications event log 1. Communications event log information in the communication status area If configured in D8415/D8435 and D8416/D8436 the event log data is displayed in the communication status area.
FX3U Series Programmable Controllers 9 Slave Specification User’s Manual - MODBUS Serial Communication Edition 1 Communication event log timing and storage format Outline 9.5.2 9.5 Communication Event log Communication error Unused (Fixed to 0) 2 Specifications 1) When receiving a request message: The slave (FX-Series MODBUS Communication ADP) stores this kind of event to the communications event log before executing the processing of the request message.
FX3U Series Programmable Controllers User’s Manual - MODBUS Serial Communication Edition 9 Slave Specification 9.5 Communication Event log 4) When processing restart communications option: The slave (FX-Series MODBUS Communication ADP) stores this kind of event to the communications event log when processing the restart communications option. 00H is stored to the communications event log.
FX3U Series Programmable Controllers 10 Creating Programs User’s Manual - MODBUS Serial Communication Edition 10.1 Checking Contents of Related Devices 1 Outline 10. Creating Programs 10.1 Checking Contents of Related Devices 10.
FX3U Series Programmable Controllers 10 Creating Programs User’s Manual - MODBUS Serial Communication Edition 10.
FX3U Series Programmable Controllers User’s Manual - MODBUS Serial Communication Edition 10.4 Cautions on Program Creation 1 Cautions on Program Creation Outline 10.4 10 Creating Programs 1. MODBUS Configuration Request Flag (M8411) When setting up FX MODBUS Serial Communication on either Channel 1 or 2, be sure to use Special Auxiliary Relay M8411 as shown in Chapter 5 of this manual.
FX3U Series Programmable Controllers 11 Practical Program Examples User’s Manual - MODBUS Serial Communication Edition 11.1 Setting Program for Master Station 11. Practical Program Examples This chapter gives practical program examples of how FX MODBUS Serial Communication can be used. 11.1 Setting Program for Master Station The FX MODBUS Master station can be used to execute a sequence of MODBUS commands in a cycle as shown in the following program.
FX3U Series Programmable Controllers 11 Practical Program Examples User’s Manual - MODBUS Serial Communication Edition 11.
FX3U Series Programmable Controllers 11 Practical Program Examples User’s Manual - MODBUS Serial Communication Edition 11.2 11.2 Setting Program for Slave Station Setting Program for Slave Station After MODBUS Communication Setup, the FX MODBUS Slave station can be used to execute any User Program while the Master station reads and writes devices. An example Slave station program is shown below.
FX3U Series Programmable Controllers 12 Troubleshooting User’s Manual - MODBUS Serial Communication Edition 12.1 Checking the FX3U PLC Version Applicability 11 Practical Program Examples 12. Troubleshooting 12 This chapter explains troubleshooting. Checking the FX3U PLC Version Applicability Verify that the FX3U Series PLC main unit is an applicable version. → For the version applicability check, refer to Section 1.3. 12.
FX3U Series Programmable Controllers User’s Manual - MODBUS Serial Communication Edition 12 Troubleshooting 12.5 Checking Setting Contents and Errors 2. Communication setting using parameters Verify that the communication setting parameters are suitable for use. If the communication setting parameters are not suitable for use, communication will not function correctly. After changing any setting, make sure to reboot the PLC's power. → For the MODBUS communication settings, refer to Chapter 5. 3.
FX3U Series Programmable Controllers User’s Manual - MODBUS Serial Communication Edition 12 Troubleshooting 12.
FX3U Series Programmable Controllers 12 Troubleshooting User’s Manual - MODBUS Serial Communication Edition 12.6 MODBUS Error Code List 2) Error codes When a communication error occurs while using MODBUS communication, the corresponding communication error flag turns ON, and the MODBUS error code is stored in the corresponding data register. Device D8063 Name Description Serial Communication Error Code 1 (ch1) Set to 6321, representing MODBUS Error on ch1.
FX3U Series Programmable Controllers 12 Troubleshooting User’s Manual - MODBUS Serial Communication Edition 12.
FX3U Series Programmable Controllers 12 Troubleshooting User’s Manual - MODBUS Serial Communication Edition MODBUS Error Code Error Name and Details 12.6 MODBUS Error Code List Master Related Devices:(M & D) / Slave See above Verify that the MODBUS Device Address Allocation of the Slave is set correctly. Ensure master data is in a valid range for a selected command. Confirm that the master is accessing valid device ranges.
FX3U Series Programmable Controllers 12 Troubleshooting User’s Manual - MODBUS Serial Communication Edition 12.6 MODBUS Error Code List 11 Master Related Devices:(M & D) / Slave Error Name and Details Corrective Action Practical Program Examples MODBUS Error Code Illegal Data Value 0216 See above See Corrective Actions for Error Code 207. See above Do not use the ADPRW command in the MODBUS Slave.
FX3U Series Programmable Controllers 12 Troubleshooting User’s Manual - MODBUS Serial Communication Edition 12.6 MODBUS Error Code List 1. Exception codes supported by FX3U MODBUS Slave The following table outlines the exception codes supported by the MODBUS slave device.
FX3U Series Programmable Controllers User’s Manual - MODBUS Serial Communication Edition Warranty Warranty Please confirm the following product warranty details before using this product. 1. Gratis Warranty Term and Gratis Warranty Range If any faults or defects (hereinafter "Failure") found to be the responsibility of Mitsubishi occurs during use of the product within the gratis warranty term, the product shall be repaired at no cost via the sales representative or Mitsubishi Service Company.
FX3U Series Programmable Controllers User’s Manual - MODBUS Serial Communication Edition Revised History Revised History 112 Date Revision 4/2007 A Discription First Edition
MITSUBISHI ELECTRIC HEADQUARTERS EUROPEAN REPRESENTATIVES MITSUBISHI ELECTRIC EUROPE B.V. German Branch Gothaer Straße 8 Phone: +49 (0)2102 / 486-0 Fax: +49 (0)2102 / 486-1120 MITSUBISHI ELECTRIC EUROPE B.V. French Branch 25, Boulevard des Bouvets Phone: +33 (0)1 / 55 68 55 68 Fax: +33 (0)1 / 55 68 57 57 MITSUBISHI ELECTRIC EUROPE B.V. Irish Branch Westgate Business Park, Ballymount Kazpromautomatics Ltd. 2, Scladskaya str.