YOKOGAWA F3SP71-4S User Manual

YOKOGAWA F3SP71-4S User Manual

Sequence cpu - modbus/tcp functions

Advertisement

User's
Manual
Sequence CPU - Modbus/TCP Functions
Applicable Modules:
Model Code
F3SP71-4S
F3SP76-7S
Yokogawa Electric Corporation
Model Name
Sequence CPU Module (with network functions)
Sequence CPU Module (with network functions)
IM 34M06P15-03E
IM 34M06P15-03E
2nd Edition

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the F3SP71-4S and is the answer not in the manual?

Questions and answers

Summary of Contents for YOKOGAWA F3SP71-4S

  • Page 1 User’s Manual Sequence CPU - Modbus/TCP Functions IM 34M06P15-03E Applicable Modules: Model Code Model Name F3SP71-4S Sequence CPU Module (with network functions) F3SP76-7S Sequence CPU Module (with network functions) IM 34M06P15-03E 2nd Edition Yokogawa Electric Corporation...
  • Page 2 Blank Page Blank Page...
  • Page 3: Applicable Product

    Document No. IM 34M06P15-03E Document Model Code DOCIM Media No. IM 34M06P15-03E (CD) 2nd Edition : Jan. 31, 2012 (YHQ) IM 34M06P15-03E 2nd Edition: Jan. 31, 2012-00 All Rights Reserved Copyright © 2011, Yokogawa Electric Corporation...
  • Page 4: Important

    - Every effort has been made to ensure accuracy in the preparation of this manual. However, should any errors or omissions come to the attention of the user, please contact the nearest Yokogawa Electric representative or sales office. Safety Precautions when Using/Maintaining the Product - The following safety symbols are used on the product as well as in this manual.
  • Page 5 WARRANTY that is provided separately. - Yokogawa Electric assumes no liability to any party for any loss or damage, direct or indirect, caused by the use or any unpredictable defect of the product.
  • Page 6 Software Supplied by the Company - Yokogawa Electric makes no other warranties expressed or implied except as provided in its warranty clause for software supplied by the company. - Use the software with one computer only. You must purchase another copy of the software for use with each additional computer.
  • Page 7 General Requirements for Using the FA-M3 Controller Avoid installing the FA-M3 controller in the following locations: - Where the instrument will be exposed to direct sunlight, or where the operating temperature exceeds the range 0°C to 55°C (32°F to 131°F). - Where the relative humidity is outside the range 10 to 90%, or where sudden temperature changes may occur and cause condensation.
  • Page 8 - Preventive maintenance (replacement of the module or its battery) is required for using the module beyond 10 years. For enquiries on battery replacement service (for purchase), contact your nearest Yokogawa Electric representative or sales office. (The module has a built-in lithium battery. Lithium batteries may exhibit decreased voltage, and in rare cases, leakage problems after 10 years.)
  • Page 9 “Monitoring and Control instrumentation” product. Do not dispose in domestic household waste. When disposing products in the EU, contact your local Yokogawa Europe B. V. office. How to Discard Batteries The following description on DIRECTIVE 2006/66/EC (hereinafter referred to as the EU new directive on batteries) is valid only in the European Union.
  • Page 10: Introduction

    This manual explains the commands and responses for communication control with higher-order computers via Modbus/TCP and with the sequence CPU module used with the FA-M3 (F3SP71-4S, F3SP76-7S). Related User’s Manuals Depending on the type of the CPU module, you should refer to different user's manuals.
  • Page 11: Copyrights And Trademarks

    Registering or recording onto videotapes and other media is also prohibited without expressed permission of Yokogawa Electric Corporation. Trademarks - Ethernet is a registered trademark of XEROX Corporation.
  • Page 12 Blank Page...
  • Page 13: Table Of Contents

    TOC-1 FA-M3 Sequence CPU - Modbus/TCP Functions IM 34M06P15-03E 2nd Edition CONTENTS Applicable Product ..................i Important ....................ii Introduction....................viii Copyrights and Trademarks ..............ix Overview ..................1-1 Overview of Modbus/TCP Slave Function ..........1-1 System Configuration of Modbus/TCP Slave Function....... 1-2 Modbus/TCP Slave Function ............2-1 Specifications ..................
  • Page 14 TOC-2 Read Input Registers ($04) ..............3-4 Write Single Coil ($05)................3-5 Write Single Register ($06)..............3-6 Write Multiple Coils ($0F) ............... 3-7 Write Multiple Registers ($10) ..............3-8 Read File Record ($14)................3-9 3.10 Write File Record ($15) ................. 3-11 3.11 Mask Write Register ($16)..............
  • Page 15: Overview

    Overview This manual describes only the Modbus/TCP server (slave) function (hereinafter referred to as "Modbus/TCP slave function"). CAUTION F3SP7 - S does not have the Modbus/TCP client (master) function. Overview of Modbus/TCP Slave Function The Modbus/TCP slave function is for connecting FA-M3 to a Modbus network. It enables Modbus communication to receive process requests from a master device via Ethernet lines under Modbus commands.
  • Page 16: System Configuration Of Modbus/Tcp Slave Function

    System Configuration of Modbus/TCP Slave Function This section describes the system configuration of the Modbus/TCP slave function. Configuration via Ethernet In this system configuration, connection is via the 10BASE-T/100BASE-TX connector located on the front panel of the module. A monitor or PC is connected using Modbus/TCP application protocol.
  • Page 17: Modbus/Tcp Slave Function

    Modbus/TCP Slave Function This chapter describes the Modbus/TCP slave function via Ethernet. Specifications This section describes the functional and communication specifications of the Modbus/TCP slave function. Functional Specifications The following table shows the functional specifications of the Modbus/TCP slave function. Table 2.1.1 Supported Modbus Slave Functions Function Description...
  • Page 18: Data Frames

    Data Frames The specifications of the Modbus/TCP data frames are as shown below. Ethernet Application Data Header Header Header (Modbus/TCP ADU) MBAP Header Function Transaction Protocol Length Unit ID Data Code F020301.VSD Figure 2.3.1 Modbus/TCP Data Frames MBAP Header The Modbus Application Protocol (MBAP) header consists of seven bytes. Table 2.3.1 MBAP Header Name Size...
  • Page 19: Function Codes

    Function Codes This section describes the Modbus function codes. Support Function Codes The functions codes supported by this module are as shown below. Table 2.4.1 Function Code List Function Name Description Supported Code 01 ($01) Read Coils Consecutively reads the status of a max. of 2,000 coils.
  • Page 20: Pdu Configuration

    PDU Configuration This subsection describes the configuration of function codes and data. Specifying Device Numbers in PDU "(Device number) - 1" is specified in the PDU for setting a device number. The above does not apply to file and record numbers specified at Read/Write File Record command.
  • Page 21: Response Error Code

    Response Error Code This section describes the response error codes. If Error Response is Returned This module returns a response as shown below if there is a mismatch in the PDU during a request or an error during processing. (PDU at Faulty Completion) Data Function Code Error Code...
  • Page 22: Modbus Device Allocation Specifications

    Modbus Device Allocation Specifications This section describes the associations between the Modbus device and the devices of this module. Modbus Device List Modbus devices are as defined below. Devices are as described below. Table 2.6.1 Modbus Device List Modbus Device Unit/Direction Points Number...
  • Page 23: Modbus Device Associations

    Modbus Device Associations This subsection describes the associations between the Modbus device and the devices of this module. Coil Coils are associated with internal relays (I). Coils (000001 to 65536) 00001 Internal Relays (I00001 to I65535) 65535 65536 F020601.VSD Figure 2.6.1 Associations of Coil/Internal Relay I00001 is associated with 00001 of the coils.
  • Page 24 Discrete Inputs Discrete inputs are associated with input relays (X) and special relays (M). Discrete Inputs (00001 to 65536) 00001 00064 00065 Input Relays (X00201 to X71664) 08192 08193 10000 10001 Special Relays (M00001 to M09984) 19984 19985 65536 F020602.VSD Figure 2.6.2 Associations of Discrete Inputs with Internal Relays (X) and Special Relays (M) X00201 is associated with input 00065.
  • Page 25 Input Register Special registers (Z) are associated with input registers. Input Registers ( 00001 to 65536 ) 00001 Special Registers ( Z00001 to Z01024 ) 01024 01025 65536 F020603.VSD Figure 2.6.3 Associations of Input Registers with Special Registers (Z) Z00001 is associated with 00001 of the input registers. The input register device number associated with a special register is calculated using the following formula.
  • Page 26 2-10 Holding Register Holding registers are associated with data registers (D). Holding Registers ( 00001 to 65536 ) 00001 Data Registers ( D00001 to D65535 ) 65535 65536 F020604.VSD Figure 2.6.4 Associations of Holding Registers and Data Registers (D) D00001 is associated with 00001 of the holding registers. The holding register device number associated with a data register is calculated using the following formula.
  • Page 27 2-11 File Record File records are associated with file registers (B) and cache registers (F). File Records (File Nos. 00000 to 65535) (Record Nos. 0000 to 9999) 0000 File Nos. 9999 File Registers 0000 File Nos. (B000001 to B262144) 9999 ·...
  • Page 28: Specifying Devices In Commands

    2-12 Specifying Devices in Commands This section describes how to address a device of a sequence CPU module in a command. List of Supported Devices The table below lists the devices of a sequence CPU module that are accessible using commands.
  • Page 29: Modbus/Tcp Slave Function Settings

    2-13 Modbus/TCP Slave Function Settings This section describes the settings for using the Modbus/TCP slave function. Required Settings Settings required for using the Modbus/TCP slave function via Ethernet are as shown below. Table 2.8.1 Required Settings (Modbus/TCP Slave Function via Ethernet) Setting Name Setting Type Reference for Details...
  • Page 30: Settings Specified As Necessary

    2-14 Settings Specified as Necessary Settings specified as necessary for using the Modbus/TCP slave function via Ethernet are as shown below. Table 2.8.3 Settings Specified as Necessary (Modbus/TCP Slave Function via Ethernet) Setting Name Setting Type Reference for Details Network Filter Settings CPU Properties A9.5.8 Network Filter Setup CPU Operation...
  • Page 31: Using Modbus/Tcp Slave Function Via Ethernet

    2-15 Using Modbus/TCP Slave Function via Ethernet This section describes how to use the Modbus/TCP slave function via Ethernet. Connecting to a Monitor To connect to a monitor, perform the following steps: 1. Create screen data on a PC. 2. Transfer screen data to a monitor. 3.
  • Page 32 Blank Page...
  • Page 33: Command/Response Details

    3. Command/Response Details Read Coils ($01) Reads the status (on/off) of a single or multiple coils. The amount of devices that can be accessed with a single request is 1 to 2,000 points. Request Format (Master => Slave) Data Function Code Starting Coil Nos.
  • Page 34: Read Discrete Inputs ($02)

    Read Discrete Inputs ($02) Reads the status (on/off) of a single or multiple inputs. The amount of devices that can be accessed with a single request is 1 to 2,000 points. Request Format (Master => Slave) Data Function Code Starting Input Nos. Read Points ($0000 to $FFFF) ($0001 to $07D0)
  • Page 35: Read Holding Registers ($03)

    Read Holding Registers ($03) Reads the value(s) of a single or multiple holding registers. The amount of devices that can be accessed with a single request is 1 to 125 points. Request Format (Master => Slave) Data Function Code Read Points Starting Holding Register Nos.
  • Page 36: Read Input Registers ($04)

    Read Input Registers ($04) Reads the value(s) of a single or multiple input registers. The amount of devices that can be accessed with a single request is 1 to 125 points. Request Format (Master => Slave) Data Function Code Starting Input Register Nos. Read Points ($0000 to $FFFF) ($0001 to $007D)
  • Page 37: Write Single Coil ($05)

    Write Single Coil ($05) Writes the value (either 1 or 0) to a single coil. The amount of devices that can be accessed with a single request is one point. Request Format (Master => Slave) Data Function Code Coil Nos. Specified Value ($0000 to $FFFF) 1:$FF00...
  • Page 38: Write Single Register ($06)

    Write Single Register ($06) Writes the value to a single holding register. The amount of devices that can be accessed with a single request is one point. Request Format (Master => Slave) Data Function Code Holding Register Nos. Write Points ($0000 to $FFFF) ($0000 to $FFFF) 1-byte...
  • Page 39: Write Multiple Coils ($0F)

    Write Multiple Coils ($0F) Writes the value (either 1 or 0) to multiple coils. The amount of devices that can be accessed with a single request is 1,968 points. Request Format (Master => Slave) Function Data Code Write Points Write Device Device Starting Coil Nos.
  • Page 40: Write Multiple Registers ($10)

    Write Multiple Registers ($10) Writes the values to multiple holding registers. The amount of devices that can be accessed with a single request is 1 to 123 points. Request Format (Master => Slave) Data Function Code Starting Holding Register Nos. Write Points ($0000 to $FFFF) ($0001 to $007B)
  • Page 41: Read File Record ($14)

    Read File Record ($14) Reads the values of multiple file records. The amount of devices that can be accessed with a single request is 1 to 124 points. Request Format (Master => Slave) Function Data Code Length ( 7×m ) 1-byte 1-byte Data...
  • Page 42 3-10 Response Format (Slave => Master) (At Normal Completion) Function Data Code Length 1-byte 1-byte Data Sub-request 1 Read Reference Data Size Data 1 Data ・・・ n1 × 2 + 1 2-byte 2-byte 1-byte 1-byte Data Sub-request m Read Reference Data 1 Data Data Size...
  • Page 43: Write File Record ($15)

    3-11 3.10 Write File Record ($15) Writes the values to multiple file records. The amount of devices that can be accessed with a single request is 1 to 122 points. Request Format (Master => Slave) Function Data Code Length 1-byte 1-byte Data Sub-request 1...
  • Page 44 3-12 Response Format (Slave => Master) (At Normal Completion) Function Data Code Length 1-byte 1-byte Data Sub-request 1 Reference File Nos. Write Starting Record Write Record Count Data 1 Data n1 Nos. ($0000 to $FFFF) ($0000 to $007C) ($0000 to $270F) 1-byte 2-byte 2-byte...
  • Page 45: Mask Write Register ($16)

    3-13 3.11 Mask Write Register ($16) Masks the value stored in a single holding register using AND or OR, and writes the value. The amount of devices that can be accessed with a single request is one point. The value written into a holding register is as described below. Written value = (Current value &...
  • Page 46: Read/Write Multiple Registers ($17)

    3-14 3.12 Read/Write Multiple Registers ($17) Reads and writes multiple holding registers. Processing consists of writing followed by reading. The amount of devices that can be accessed with a single request is 1 to 125 points for reading and 1 to 121 points for writing. Request Format (Master =>...
  • Page 47: Read Fifo Queue ($18)

    3-15 3.13 Read FIFO Queue ($18) Reads the value(s) of a single or multiple holding registers. The amount of devices that can be accessed with a single request is 1 to 31 points. Request Format (Master => Slave) Function Data Code FIFO Pointer Nos.
  • Page 48 Blank Page...
  • Page 49: Revision Information

    Written by PLC Group International Sales Promotion Dept. IA Systems Business Headquarters Yokogawa Electric Corporation Published by Yokogawa Electric Corporation 2-9-32 Nakacho, Musashino-shi, Tokyo, 180-8750, JAPAN Printed by Kohoku Publishing & Printing Inc. IM 34M06P15-03E 2nd Edition: Jan. 31, 2012-00...
  • Page 50 Blank Page...

This manual is also suitable for:

F3sp76-7s

Table of Contents

Save PDF