B-1672(0) FT1A Touch External Device Setup Manual Supplement Modbus RTU Slave Function

Similar documents
The Answer to the 14 Most Frequently Asked Modbus Questions

2. Terminal arrangement. Default (PV display) (SV display) Communication protocol selection Selects the Communication protocol. Modbus ASCII mode:

Modbus and ION Technology

FC5A Modbus Communication Training

RcWare SoftPLC Modbus server mapping editor User manual

Softstarters. Type PSTX Fieldbus communication, Built-in Modbus RTU. 1SFC132089M0201 April SFC132089M0201 1

Modbus and ION Technology

APNT#1168 Modbus - Establishing Communications Hints

Process Control and Automation using Modbus Protocol

Micro Motion Modbus Interface Tool

But for compatibility reasons the basic structure of the data area or the addressing mechanism of the protocol retained.

Modicon Modbus Protocol Reference Guide. PI MBUS 300 Rev. J

Using Logix5000 Controllers as Masters or Slaves on Modbus

Additional Setup Instructions for Modbus: RTU, ASCII, TCP, Omni & Enron

4511 MODBUS RTU. Configuration Manual. HART transparent driver. No. 9107MCM100(1328)

Modbus Protocol. PDF format version of the MODBUS Protocol. The original was found at:

PROFIBUS AND MODBUS: A COMPARISON

Environment Temperature Control Using Modbus and RS485 Communication Standards

MTS Master Custom Communications Protocol APPLICATION NOTES

ENTTEC Pixie Driver API Specification

8 data bits, least significant bit sent first 1 bit for even/odd parity (or no parity) 1 stop bit if parity is used; 1 or 2 bits if no parity

RS485 & Modbus Protocol Guide

Modbus Communications for PanelView Terminals

eztcp Technical Document Modbus/TCP of eztcp Caution: Specifications of this document may be changed without prior notice for improvement.

ATC-300+ Modbus Communications Guide

Using the AnyBus -X Gateway to Communicate between a DVT camera and a Profibus Master

White Paper. Technical Capabilities of the DF1 Half-Duplex Protocol

Master-Touch and ValuMass. Modbus Communications. INSTRUCTION MANUAL (Rev. 2.1)

Industrial Networks & Databases

Industrial Networks & Databases. Protocols and Networks - Device Bus - - Field Bus -

Modbus RTU Communications RX/WX and MRX/MWX

RS-485 Protocol Manual

1.Eastron SDM220Modbus Smart Meter Modbus Protocol Implementation V1.0

PRODUCT MANUAL SKX OPEN SKX ADVANCE ZN1RX-SKXOPEN. Edition 2 Version 1.1

MBP_MSTR: Modbus Plus Master 12

EnerVista TM Viewpoint Monitoring v7.10

SureServo Communication Parameters SureServo Parameter Memory Addresses Connecting to DirectLogic PLCs...6 8

WinTECH Software Industrial Automation Suite of Applications for the Windows O.S.

Virtual Integrated Design Getting started with RS232 Hex Com Tool v6.0

Omron I/O Driver (Series 2) Programmable Serial Interface Card

Using KEPServerEX OPC Server (Kepware)with the iologik E2210

Sample EHG CL and EHG SL10 16-bit Modbus RTU Packet

MODBUS TCP Master Driver

TECHNICAL NOTE TNOI32

PNSPO! Modbus Solution CP1H / CP1L / CJ1 / CJ2 / CS1. Version /18/2009

Modbus ASCII Driver Kepware, Inc.

MODBUS APPLICATION PROTOCOL SPECIFICATION V1.1b3 CONTENTS

7.7 Ethernet Communication (AFPX-COM5)

DDC-100 Direct-to-Host Programming Guide

(Master Slave Mode) This chapter explains how to connect multiple HMIs.

EtherNet/IP Scanner Configuration for the Moxa MGate 5105-MB-EIP

SLIP and PPP. Gursharan Singh Tatla

Library ModbusRTUlib Modbus RTU master communication. TXV rd Issue February 2010 All rights reserved

NB3H5150 I2C Programming Guide. I2C/SMBus Custom Configuration Application Note

Configuring Allen-Brandly ControlLogix PLC with Moxa MGate 5105-MB-EIP. 1 Application Description Objective Goals...

Scalable PLC AC500 Communication AC500 Modbus TCP. ABB Group Version 3.1 ( ) Technical Guides

Online simulator YES Broadcast command YES Extend address mode YES

Model Q46 Modbus TCP/IP Communications Manual

CX-Supervisor CX-MODBUS TCP

OPEN MODBUS/TCP SPECIFICATION

Programming Flash Microcontrollers through the Controller Area Network (CAN) Interface

Section TELEPHONE AUTOMATIC DIALER SYSTEM

1 Application Description Objective Goals... 3

RFID MODULE Mifare Reader / Writer SL025B User Manual Version 1.4 Nov 2012 StrongLink

Nemo 96HD/HD+ MODBUS

Introduction: Implementation of the MVI56-MCM module for modbus communications:

Technical Support Bulletin Nr.18 Modbus Tips

Temp. & humidity Transmitter Instructions

HOST Embedded System. SLAVE EasyMDB interface. Reference Manual EasyMDB RS232-TTL. 1 Introduction

This guide describes the details that are necessary for making a HMI (PC RT or panel) for an S5 PLC.

Honeywell. Installation and User Manual. Modbus protocol. for Variable Frequency Drives

CONTROL MICROSYSTEMS DNP3. User and Reference Manual

NC-12 Modbus Application

ENET-710. ENET Ethernet Module ENET-710 JAN / 06 FOUNDATION

Elo Interactive Digital Signage (IDS): Remote Management

User Manual Revision English

DS18B20 Programmable Resolution 1-Wire Digital Thermometer

ICC. NetLink Version Info INDUSTRIAL CONTROL COMMUNICATIONS, INC.

Soft-Starter SSW-06 V1.6X

WAN Data Link Protocols

1 Application Description System Topology Hardware and Software Requirements... 3

SERIAL INTERFACE. Series SSW-03 and 04

Sheet 7 (Chapter 10)

PROPERTY MANAGEMENT SYSTEM

TruePort Windows 2000/Server 2003/XP User Guide Chapter

MODBUS MASTER/SLAVE Serial and Ethernet Communication Server

How to use Citect (SCADA) with iologik 4000 (Modbus TCP/IP NA-4010 and Modbus Serial NA-4020/NA-4021)

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

2011, The McGraw-Hill Companies, Inc. Chapter 3

EtherNet/IP Modbus XPort, NET232, and NET485

ModScan A SCADA MODBUS Network Scanner. Mark Bristow mark.bristow@gmail.com

Start-up of IVI-KHD2-4HRX, IVI-KHA6-4HRX at S7-300 V1.1. Table of Contents TABLE OF CONTENTS... 1

DVPPF02-H2. PROFIBUS DP Slave Communication Module Application Manual

Mitsubishi Electric Q Series PLC Ladder Monitor. Operation Manual

S and STEP 7 Basic V10.5

Witte Software. Modbus Poll User manual. June 2015 Modbus Poll version 6.3 Copyright: Witte Software,

Motion Control Products Application note Connecting CP600 to motion products via Modbus TCP

Different Ways of Connecting to. 3DLevelScanner II. A.P.M Automation Solutions LTD. Version 3.0

ROC Protocol Specifications Manual

Docklight V2.1 User Manual 08/2015. Copyright 2015 Flachmann und Heggelbacher GbR

Transcription:

B-1672(0) FT1A Touch External Device Setup Manual Supplement Modbus RTU Slave Function

Introduction This manual is supplement for Automation Organizer External Device Setup Manual B912(25), and explains Modbus RTU Slave function which is added in Automation Organizer Ver.2.21(WindO/I-NV2 Ver.5.11). 1

Contants Table 1. Overview... 3 1.1. Overview... 3 1.2. Operation of the Communication... 3 1.3. Read/Write from the External Device... 3 2. Devices... 4 3. Settings... 4 4. Communication Format... 5 4.1. Basic Format... 5 4.2. Supported Function... 6 4.3. Function Details... 6 4.3.1. FC3 Read multiple registers... 6 4.3.2. FC16 Write multiple registers... 7 4.3.3. FC1 Read coils... 7 4.3.4. FC2 Read discrete inputs... 9 4.3.5. FC4 Read input registers... 10 4.3.6. FC5 Write coil... 10 4.3.7. FC6 Write single register... 11 2

FT1A Touch Modbus RTU Slave function 1. Overview 1.1. Overview Modbus RTU Slave function is a method that reads and writes FT1A Touch communication devices via RS232C or RS485/422 from a PC or PLC (referred to as the external device). The read/write of a device is performed using the Modbus RTU protocol. 1.2. Operation of the Communication The external device is capable of reading/writing to the FT1A Touch communication devices. It is also possible to read or write communication devices from the FT1A Touch. 1.3. Read/Write from the External Device The external device is capable of reading or writing the data in the communication devices at the any timing. 3

2. Devices The following devices are available for Modbus RTU Slave function. Bit Device Device Name Device Symbol Address Range FT1A Touch Read/Write External Device Address Gradual Read/Write Coil Status C 1-4096 R/W R/W Decimal Input Status I 100001-104096 R/W R Decimal Word Device Device Name Holding Register Input Register Device Symbol Address Range FT1A Touch Read/Write External Device Read/Write Address Gradual HR 400001-404096 R/W R/W Decimal IR 300001-304096 R/W R Decimal 3. Settings The settings of the Modbus RTU Slave function can be configured in the Configuration - System Setup - Project dialog boxes in WindO/I-NV3. The following table lists the configurable settings. Configure the settings according to the external device to be used. Dialog Box - Tab Settings Description Project Settings - Host I/F Driver or Communication Driver Project Settings - Communication Interface Manufacturer Host I/F Driver Communication Driver Slave Address Protocol Select Modicon. Select Modbus RTU Slave. Set FT1A Touch slave address. When using the O/I Link, select Enable. 4

4. Communication Format This chapter describes the communication format of the Modbus RTU communication. The Modbus RTU communication supports functions of the MODBUS APPLICATION PROTOCOL SPECIFICATION V1.1b3. For details about the communication methods, refer to the MODBUS over Serial LineSpecification and Implementation Guide V1.02 as well as this manual. 4.1. Basic Format The following table lists the basic format of communications. The same format applies to both requests and responses. Data is processed as a byte sequences. Description Idle 3.5 characters (*1) Byte 0 Slave Address Set FT1A Touch slave address Byte 1 Function code (*2) Byte 2- Data (*3) Byte n-1 Byte n CRC(*4) Idle 3.5 characters (*1) Idle means no data flowing on the communication line. RTU mode requires a minimum of 3.5-character-long idle time between frames to determine the beginning of a frame. (*2) Numbers assigned for functions such as reading and writing. (*3) Data required for each processing. (*4) CRC is calculated by the following method. CRC RTU mode uses CRC check codes. Modbus RTU Mode Calculating the CRC-16 (cyclic redundancy checksum) Calculate the BCC using CRC-16 for the range from the slave number to the byte immediately before the BCC. The generation polynomial is: X16 + X15 + X2 + 1. 1. Take the exclusive OR (XOR) of FFFFh and the first 1-byte data at the slave number. 2. Shift the result by 1 bit to the right. When a carry occurs, take the exclusive OR (XOR) of A001h, then go to step 3. If not, directly go to step 3. 3. Repeat step 2, shifting 8 times. 4. Take the exclusive OR (XOR) of the result and the next 1-byte data. 5

5. Repeat step 2 through step 4 up to the byte immediately before the BCC. 6. Swap the higher and lower bytes of the result of step 5, and store the resultant CRC-16 to the BCC (CRC) position. (:1234h 34h, 12h) 4.2. Supported Function The FT1A Touch supports the following functions. Function Function name Description code 3 Read multiple registers Reading of Holding Register (HR) consecutively 16(10Hex) Write multiple registers Writing to Holding Register (HR) consecutively 1 Read coils Reading of Coil (C) consecutively 2 Read discrete inputs Reading of Input Relay (I) consecutively 4 Read input registers Reading of Input Register (IR) consecutively 5 Write coil Writing to a single Coil (C) 6 Write single register Writing to a single Holding Register (HR) 4.3. Function Details The following section describes the details of the functions. 4.3.1. FC3 Read multiple registers Reading of Holding Register (HR) consecutively FC (Function code) = 03 byte 4-5 Number of read words (1 to 125 words) FC (Function code) = 03 byte 2 Number of bytes of the response (number of read words x 2) byte 3~ Read data FC (Function code) = 83 (HEX) Reading of HR400001 (1 word). The read value is 1234 (HEX). 03 00 00 00 01 => 03 02 12 34 6

4.3.2. FC16 Write multiple registers Writing to Holding Register (HR) consecutively FC (Function code) = 10 (HEX) byte 4-5 Number of write words (1 to 100 words) byte 6 Number of write bytes (2 x number of write words) byte 7 ~ Write data FC (Function code) = 10(HEX) byte 4~ Number of write words FC (Function code) = 90 (HEX) Writing to HR400001 (1 word). The write value is 1234 (HEX). 10 00 00 00 01 02 12 34 => 10 00 00 00 01 4.3.3. FC1 Read coils Reading of Coil (C) consecutively FC (Function code) = 01 byte 4-5 Number of read bits (1 to 2000 bits) FC (Function code) = 01 byte 2 Number of bytes for the response ((number of read bits +7)/8) byte 3 ~ Read data FC (Function code) = 81 (HEX) Reading of C1. 1 bit. The read value is 1. 01 00 00 00 01 => 01 01 01 7

Data sequence of read value When two or more data are read out, the read data are arranged starting from the lowest address by 8 bits (1 byte). Within any 1 byte, data in the lower address is set to the lower bit. The data in the unread bit becomes 0. For example, when reading an 11-bit data as shown below, the read value becomes 21 03. Address Data Remarks C 1 1 Data for the 1st byte C 2 0 Bit pattern= 00100001 = 21 (HEX) C 3 0 C 4 0 C 5 0 C 6 1 C 7 0 C 8 0 C 9 1 Data for 2nd byte C 10 1 Bit pattern 00000011 = 03 (HEX) C 11 0 C 12 0 C 13 0 C 14 0 C 15 0 C 16 0 8

4.3.4. FC2 Read discrete inputs Reading of Input Relay (I) consecutively FC (Function code)=02 byte 4-5 Number of read bits (1 to 2000 bits) FC (Function code)=02 byte 2 Number of bytes for the response ((number of read bits+7)/8) byte 3~ Read data FC (Function code)=82 (HEX) Reading of I100001. 1 bit. The read value is 1. 02 00 00 00 01 => 02 01 01 The data sequence for the read value is similar to that of FC1 Read Coils. 9

4.3.5. FC4 Read input registers Reading of Input Register (IR) consecutively FC (Function code)=04 byte 4-5 Number of read words (1 to 125 words) FC (Function code)=04 byte 2 Number of bytes for the response (number of read words x 2) byte 3 ~ Read data FC (Function code)=84 (HEX) Reading of IR300001 (1 word). The read value is 1234 (HEX). 04 00 00 00 01 => 04 02 12 34 4.3.6. FC5 Write coil Writing to a single Coil (C) FC (Function code)=05 byte 4 Write value (FF when write value is 1, and 00 when write value is 0) byte 5 Fixed value 00 FC (Function code)=05 byte 4 Write value (FF when write value is 1, and 00 when write value is 0) byte 5 Fixed value 00 FC (Function code)=85 (HEX) Writing of C1 (1 bit). The write value is 1. 05 00 00 FF 00 => 05 00 00 FF 00 10

4.3.7. FC6 Write single register Writing to a single Holding Register (HR) FC (Function code) = 06 (HEX) byte 4-5 Write data FC (Function code) = 06 (HEX) byte 4-5 Write data FC (Function code)=86 (HEX) Writing to HR400001. The write value is 1234 (HEX). 06 00 00 12 34 => 06 00 00 12 34 11