Sample F4T 32-bit Modbus RTU Packet

Similar documents
Sample F4T 32-bit Modbus RTU Packet

Sample F4T 32-bit Modbus TCP Packet

Using ModbusTest. Introduction:

Interface design document MODBUS Protocol. Ab s t r a c t Description of the MODBUS implementation for the Modbus I/O board

Golander Peristaltic Pump MODBUS Communication Instruction

Conto D2 COMMUNICATION PROTOCOL CONTENTS 1.0 INTRODUCTION

IF96017 MODBUS COMMUNICATION PROTOCOL

MODBUS TESTER SOFTWARE U S E R M A N U A L

MPU-32 AND FPU-32 TIA-485 NETWORK

VERIS H8035 and H8036

KMD Modbus Interface

MCW Application Notes 24 th February 2017

VISY-Command. Technical Documentation. with Modbus Protocol. Edition: Version: 1 Art. no.:

CE4DMID01 COMMUNICATION PROTOCOL CONTENTS 1.0 INTRODUCTION

MODBUS Protocol. The ecode Encoders contain both single register (16 bit) and double register (32 bit) values.

COMMUNICATION MODBUS PROTOCOL

TORRIX RS485. Technical Documentation. with MODBUS Protocol. Edition: Version: 2 Art. no.:

User Manual version 1.04 TLM8 COMMUNICATION PROTOCOLS

MicroStrain LXRS Wireless Base Station EEPROM Map

DataVU 5 - Interface Manual Modbus

Chapter 5: Communications 5 1 SR55 Communications Overview 5 2

DataVU 5 - Interface Manual Modbus

SC2004MBS 20x4 Characters MODBUS RTU Slave LCD

COMMUNICATION MODBUS PROTOCOL

CTT MODBUS-RTU COMMUNICATION PROTOCOL TEMPERATURE MONITOR DEVICE

GE MDS, LLC. NETio Series. Protocol Communications Supplement. March 2013 Part No A01, Rev. C

JUMO Quantrol LC100/LC200/LC300

JUMO ctron 04/08/16. Compact controller with timer and ramp function. B Interface Description Modbus /

Modbus Protocol For TGP03 / THP03

COMMUNICATION MODBUS PROTOCOL

Conto D1 MODBUS COMMUNICATION PROTOCOL

MODBUS Protocol Specification. MODBUS Protocol Specification V2.0

CAN / RS485. Product Description. Technical Reference Note. Interface Adapter. Special Features

ENGLISH ENGLISH ENGLISH ENGLISH

Input Channels: 4 differential or four single-ended. Address / Baud rate / range configurable by the user

INTELLIS. Modbus Direct Network Monitor

Modbus Protocol For FTS/FTM 3x&8x

T7 Modbus Communication User Guide

JUMO di 308. Digital Indicator. B Interface Description Modbus 12.07/

B Interface description 12.01/

ENGLISH ENGLISH ENGLISH ENGLISH

TECH TIP. Tritex Modbus Protocol Specification

COMMUNICATION MODBUS PROTOCOL MF96001 / 021 NEMO 96HD

INSTRUCTION MANUAL ESI-Manager communication How to use RS485 USB Ethernet connections

E2 Modbus RTU Register Map Revision History Version Comments Author Date 1.02 Previous version PAE 11/06/ Revised to new format PAE 09/03/09

[ 公司地址 ] Modbus Protocol. For THS/THM 30X&80X_Temp.&Humididy & THS8X/THM8X_Dew Point Series V7.0

Modbus/TCP is supported on some controllers. See QCI-AN028 Modbus TCP.

EZ-ZONE PM Bundy Boulevard., Winona, Minnesota USA Phone: +1 (507) , Fax: +1 (507)

INSTRUCTION MANUAL RVT communication How to use RS485 USB Ethernet RVT connections

AEGIS_Modbus. Ethernet TCP. 2. Address Contents 2.1 Current Values of Sensors, Meters, Contact Sets

Communications guide. Line Distance Protection System * F1* GE Digital Energy. Title page

EGW1-IA3-MB User s Manual

SOFTWARE FUNCTIONAL REQUIREMENTS SPECIFICATION. Athena DeviceNet Interface Module Revision /26/2001

The Modbus Driver. This document relates to Modbus driver version 1.0, 1.1 and 2.0

Modbus ASCII Serial Device Driver Help 2009 Kepware Technologies

Forlong MODBUS Protocol Specification V1.0

MODBUS APPLICATION PROTOCOL SPECIFICATION V1.1a CONTENTS

Metrologics, LLC. Modbus Client Application User s Manual

ENGLISH ENGLISH ENGLISH ENGLISH

EMS_ _Measure_MonoPh_R_2P_ModbusTable_LG_EN_v1.01.xlsx

Protocol Manual. Specifications and dimensions are subject to change without notice and do not constitute any liability whatsoever.

Revision 1.2. July 24, COM Protocol Manual. for MDC and ADC N 11th St - San Jose CA

E2 Modbus RTU Register Map

Protocol VIT5. Communications RS485. Version 1.0. Pg.Up ENTER. Pg.Up ENTER. Pg.Up ENTER. Pg.Up ENTER. Pg.Up ENTER. Pg.Up ENTER. Pg.Up ENTER. Pg.

Modbus Protocol For PMX / PXM3X

Servo press kit YJKP - Host interface

T1 4-Channel Protocol Manual

Modbus User s Programming Manual for Protocol 3

C192PF8-RPR. Power Factor Manager & Reactive Power Regulator Reference Guide. Modbus. Communications Protocol. BG0348 Rev. A1

Mapping Modbus Registers to BACnet Objects

Application Note: Using Modbus With the Conext CL Series. Important Safety Instructions

CONTO IMP PROTOCOL COMMUNICATION CONTENTS 1.0 INTRODUCTION

Alstom Redundant Ethernet Driver Help Kepware Technologies

Temperature Calibrator Communication Protocol Dry TC 165 Dry TC 650 Liquid TC 165 Liquid TC 255

IQ Home Modbus-RTU Master

VPGate Manual PROFIBUS to serial

EM23-DIN COMMUNICATION PROTOCOL. Version 0 Revision 0

GSE Scale Systems Ethernet IP Option

MODBUS EXPANSION CARD

DTSX3000 Communications(Modbus) Guide

Stabiliti Modbus Programming Guide

ModBus Communication protocol. The ModBus protocol is an industrial communications and distributed control system

TORRIX RS485. Technical Documentation. with MODBUS Protocol. Edition: Version: 3 Art. no.:

SLX200 LabVIEW VI Library User Manual

1 Introduction Revision History... 4

OCEANIC SYSTEMS NMEA2000 AC MODBUS GATWAY Part Numbers: 3155 USER MANUAL

JUMO ecoline O-DO/NTU

SERIES PM172EH POWERMETERS COMMUNICATIONS REFERENCE GUIDE

Using the MODBUS Protocol with Athena Series C (1ZC, 16C, 18C, and 25C) Controllers

MODBUS. M920 protocol description. User s manual

6 Remote memory access protocol (normative)

JDICON 1000 JDICON B Interface Description 3.99/ Universal Process Controller. Universal Profile Controller

AL2-MBU Advanced Manual

NMEA2000 to Modbus Gateway Part No User Manual

N700E Inverter RS485 Interface Instruction Manual

MTR-4. C8 Command to MODBUS Bridge User Manual F-1, No. 631, Chung Der Road, Sec 1, Taichung Taiwan.

Technical Specification. Third Party Control Protocol. AV Revolution

Quick Talking to ControlLogix (PCCC-style)

Data point description for the Modbus protocol. 4 quadrant controller. multicomp 6D6-ESMSBSDS-1V1C6RO. Your partner for network analysis

AN-881 APPLICATION NOTE

Transcription:

F4T Configuration Note: The user can specify the units of temperature measurement over serial independently from the display in addition to other Modbus settings. The default is Modbus Data Map 1. suggest use of Modbus Data Map 1 allowing more parameters accessed which the examples are based upon. The Modbus Word Order is settable between Low/High and High/Low. The default is Low/High. If set to High/Low, change the decoding accordingly. Navigate on keypad to Main Menu, Settings, Network, Modbus, Modbus Address, Baud Rate, Parity, Display Units, Modbus Word Order, and Data Map selections settings. Modbus RTU Configuration Note: The user specifies the PC/PLC timeout setting to determine when a typical response on the serial network is received. Ensure the entered value in the software driver is greater than the typical response time to prevent timeout errors. The Modbus standard does not specify a maximum response time. Sent to F4T - Read (32-bit) Slot 1, Analog Input 1 value 00000011 0x03 3 Function Code - Read Holding Registers 01101011 0x6B 107 Read Starting at register High Byte (Analog Input 1 value in slot 1 is contained in registers 27586 & 27587) 11000010 0xC2 194 Read Starting at register Low Byte (Analog Input 1 value in slot 1 is contained in registers 27586 & 27587) 00000000 0x00 0 Read number of consecutive registers - High Byte (Always 0) 00000010 0x02 2 Read number of consecutive registers - Low Byte (1 to 125) 01111001 0x79 121 Low byte of CRC 11010011 0xD3 211 High byte of CRC The CRC (also a 16-bit wide value) is sent in reverse order, low byte then high byte. Received from F4T - Read Slot 1, Analog Input 1 value of 78.295 F (32-bit) 00000011 0x03 3 Function Code - Read Holding Registers 00000100 0x04 4 Number of data bytes returned 10010111 0x97 151 Data High Byte of 1 st register Read - MSB of LSW 01111101 0x7D 125 Data Low Byte of 1 st register Read - LSB of LSW consecutive registers 01000010 0x42 66 Data High Byte of 2 nd register Read - MSB of MSW 10011100 0x9C 156 Data Low Byte of 2 nd register Read - LSB of MSW consecutive registers 01110110 0x76 118 Low byte of CRC 10010110 0x96 150 High byte of CRC Description of example above: Slot 1, Analog Input 1 value is contained in two 16-bit registers. Register 27586 contains the two lower bytes (least significant word, LSW) while register 27587 contains the two higher bytes (most significant word, MSW). High register 27587 and low register 27586 contain 0x429C977D. The 32-bit answer is an IEEE 754, float data type is 78.29588. The packet described is assembled and sent to the F4T as one continuous stream of bits per the Modbus standard. The packet returned from the F4T is decoded per the Modbus standard. 2015 Electric Manufacturing Company 1 RGH 08/10/18

In this example, we extract 0x977D 0x429C from the packet for the answer. Changing the Modbus Word Order to High Word, Low Word we see the answer is 0x429C977D. General steps to read registers are: Assemble a packet to send the controller: 1. Determine controller address to read. 2. Determine function code for read. Example: Function Code (0x03) Read Holding Registers or Function Code (0x04) Read Input Registers. The F4T responds to both command with the same information. 3. Determine Modbus relative registers to read (27586 & 27587 decimal for Slot 1, Analog Input 1 value) 4. Convert register numbers to hexadecimal. 5. Determine number of registers to read. 6. Enter 0x00 for number of registers to read high byte. 7. Enter number of registers to read low byte from previous step into packet. As many as 125 registers may be read with one read command. Example: Use 0x02 registers to retrieve one 32-bit value. Use 0x04 to retrieve four consecutive registers which might contain two 32-bit values or four 16-bit values or other combinations. 8. Calculate the CRC on the packet. Use the Internet to find free programs to demonstrate how CRCs are calculated. 9. Enter the Low Byte of CRC calculation into packet. 10. Enter the High Byte of CRC calculation into packet. 11. Send packet as one continuous stream. 12. Wait for response from controller. 13. If no response or exception code returned, enter error routine per standard. Process the packet received based on these steps: 14. Process packet for accuracy by comparing CRC to calculated value. 15. If CRC is correct, proceed else enter error routine per standard. 16. Parse answer from packet based on number of bytes returned. 17. Convert answers to appropriate data type. Some data is 32-bit floating point values while enumerated data is 16-bit unsigned integer values. In very few registers, the data type is 32-bit unsigned integer values. A column in the F4T User s Guide provides the relative register address, the data type and whether the register is read only or read/write capable. Please note that the difference between a Modbus RTU packet and a Modbus TCP packet is that Modbus TCP uses the same Modbus RTU packet without the CRC shown above and encapsulates the packet into an Ethernet packet using the Modbus TCP protocol. MSB = Most significant byte LSB = Least significant byte MSW = Most significant word LSW = Least significant word CRC = Cyclic Redundancy Check 2015 Electric Manufacturing Company 2 RGH 08/10/18

Sent to F4T - Write (32-bit) Set Point 1 of 75.0 F 00010000 0x10 16 Function Code Write Multiple Registers 00001010 0x0A 10 Write Starting at register High Byte (Set Point 1 is register 2782 & 2783) 11011110 0xDE 222 Write Starting at register Low Byte (Set Point 1 is register 2782 & 2783) 00000000 0x00 0 Write number of consecutive registers High Byte (Always 0) 00000010 0x02 2 Write number of consecutive registers Low Byte (1 to 123) 00000100 0x04 4 Number of Bytes to Write (always 2 x write number) 00000000 0x00 0 Data High Byte of 1 st register write MSB of LSW 00000000 0x00 0 Data Low Byte of 1 st register write LSB of LSW consecutive registers 01000010 0x42 66 Data High Byte of 2 nd register write MSB of MSW 10010110 0x96 150 Data Low Byte of 2 nd register write LSB of MSW consecutive registers 10110001 0xB1 177 Low byte of CRC 00001001 0x11 17 High byte of CRC The CRC (also a 16-bit wide value) is sent in reverse order, low byte then high byte. Received from F4T - Writing Set Point 1 of 75.0 F 00010000 0x10 16 Function Code Write Multiple Registers 00001010 0x0A 10 High Byte of Register 2782 decimal Start writing at register 11011110 0xDE 222 Low Byte of Register 2782 decimal Start writing at register 00000000 0x00 0 High Byte number of registers written 00000010 0x02 2 Low Byte number of registers written 00100010 0x22 32 Low byte of CRC 00101010 0x2A 42 High byte of CRC Description of example above: The Set Point for control loop 1 of the F4T is contained in two 16-bit registers. Register 2782 contains the two lower bytes (least significant word, LSW) while register 2783 contains the two higher bytes (most significant word, MSW). The 32-bit value is an IEEE 754, 32-bit float data type. Floating point writes must always be accomplished using a Function Code - Multiple Write Registers command. The packet described is assembled and sent to the F4T as one continuous stream of bits per the Modbus standard. The packet returned from the F4T is decoded per the Modbus standard. In this example, we write a set point of 75.0. 0x42960000 = 75.0 degrees when read/written as a 32-bit float data type 0000 4296 is in Low Word (LSW), High Word (MSW) Order. Register 2780 is written with LSW of 0x0000 Register 2781 is written with MSW of 0x4296 2015 Electric Manufacturing Company 3 RGH 08/10/18

General steps to write registers are: Assemble a packet to send the controller: 1. Determine controller address to write. 2. Determine function code for write. Example: Function Code (0x10) Write Multiple Registers or Function Code (0x06) Write Single Register. The F4T uses Write Multiple Registers for all 32-bit values. 3. Determine starting Modbus relative registers to write. 4. Convert and enter register number to hexadecimal. 5. Enter 0x00 for number of consecutive registers to write high byte. 6. Enter 0x02 for number of consecutive registers to write low byte. 7. Enter 0x04 for the number of bytes to write 4 bytes is for a 32-bit value. 8. Calculate the CRC on the packet. 9. Enter the Low Byte of CRC calculation into packet. 10. Enter the High Byte of CRC calculation into packet. 11. Send packet as one continuous stream to serial port. 12. Wait for response from controller. Process the packet received based on these steps: 13. Process packet for accuracy by comparing CRC to calculated value. 14. If CRC is correct, proceed else enter error routine per standard. 15. If no response or exception code returned, enter error routine per standard. 16. Validate response matches sent packet. 2015 Electric Manufacturing Company 4 RGH 08/10/18

Additional details Some process values may be rounded off to fit into the five-character display of the F4T. Full floating-point process values are readable via Modbus. The displayed units of measurement are independent of the units of measurement sent via communications. Example: The controller may be set to display in C on the F4T touchscreen but utilize F in communication exchanged values. For Modbus RTU settings, see Main Menu, Settings, Network, Modbus to configure Modbus Address, Baud Rate, Parity, Display Units, Modbus Word Order and Data Map settings. The Display Units in the Network settings affects the communications exchanged and the Temperature Units in the Settings, Global affect the values on the F4T touchscreen. All temperature parameters exchanged via communications are in F through Modbus by default. Modbus Word Order is Low High by default. Baud Rate is 9600 with no parity by default. Data Map is set to 1 by default and should not be changed unless compatibility to a legacy F4 controller is needed with a limited number of registers available. See the F4T User s Guide for Modbus register assignment and additional information. To prevent unintended programming changes never write values until you have read the desired register and validated it as the correct register assignment. By default, the low register number contains the two lower bytes (least significant word); high register numbers contain the two higher bytes (most significant word) of the four-bytes for 32-bit floating-point values. To change the word order, set parameter Modbus Word Order Low High to High Low. For Modbus settings, see Main Menu, Settings, Network, Modbus to configure using the F4T touchscreen. The F4T has 6 slots that may be populated with various cards. The assigned Modbus register is based on the allocated function and may be affected by the location of the card. The Modbus RTU communications card must be in slot 6. The only function codes supported in the F4T are Function Code (0x03) Read Input Registers Function Code (0x04) Read Holding Registers Function Code (0x06) Write Single Register Function Code (0x10) Write Multiple Registers Visit http://www.modbus.org for a free download of the Modbus RTU and Modbus TCP implementation specifications. Visit http://www.watlow.com/literature/software.cfm and locate ModbusTest for a free sample program to test communication with Modbus RTU. Visit http://www.modbusdriver.com/shop/product_info.php?products_id=66 for a third-party Modbus software driver. The software may be purchased from ModbusDRIVER.com and is an excellent buy to get your software quickly talking to Modbus devices when writing a.net application. The software driver includes their technical support assistance. See the documentation for converting between relative versus absolute Modbus addressing for a given driver. 2015 Electric Manufacturing Company 5 RGH 08/10/18