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

Similar documents
Revision 1.3. Sept 26, COM Protocol Manual. for MDC and ADC N 11th St - San Jose CA

Golander Peristaltic Pump MODBUS Communication Instruction

TPM Operation Manual

INTELLIS. Modbus Direct Network Monitor

SPM90 MODBUS PROTOCOL AND REGISTER LIST V1.0

INSTRUCTIONS MANUAL. ParaMon Software

Document Name: User Manual for SC10MK, Modbus RTU to Modbus TCP Converter

GW-7238D J1939 to Modbus TCP Server / RTU Slave Gateway

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

GW-7228 J1939/Modbus RTU Slave Gateway

CURRENT PROTECTION RELAY SMPR-1

Tongta Inverter TDS-F8

SC2004MBS 20x4 Characters MODBUS RTU Slave LCD

4511 MODBUS RTU. Configuration Manual. HART transparent driver. No. 9107MCM102(1739) For 4511 devices from ser. no:

BCT SERIES CONTROLLERS (VERSION 3.0) RS-485 COMMUNICATION INSTRUCTION MANUAL MODBUS Protocol Reference Guide

Chapter 5: Communications 5 1 SR55 Communications Overview 5 2

Embedded Modbus TCP Module GS11-MT. User Manual REV 1.1. SST Automation.

SPM33. MODBUS Protocol and register List V1.5

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

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register Map

SDM-8AO. Expansion Module 8 analog outputs. Manufactured for

Automatic transfer switch

Interface Definition RISH EM 2340/1320/30/ _Rev. D - 8/2016

Connecting UniOP as a Modbus Slave

RS485 MODBUS Module 8AO

Write Message to Trendview recorder via Modbus. Dan Weise, Lesman Instrument Co rev2a

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

Chapter. Modbus. In This Chapter...

Modbus on SenseAir S8

RS 485 Mini Modbus 1AO

4511 MODBUS RTU. Configuration Manual. Solenoid / alarm driver. No. 9203MCM100(1328)

N700E Inverter RS485 Interface Instruction Manual

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

VPGate Manual PROFIBUS to serial

INTEGRATED SYSTEMS AND CONTROL, INC. User s Hardware Manual. PCMNET V 7. xx

Hello Angles... A First Use Guide to the SOLAR Product Series: RS485 Interface with ModBus RTU Communication Protocol.

MCF. User's Manual. Air Flowmeter NPT Model. for Communication Functions. No. CP-SP-1301E

IFC 100 Supplementary instructions

Rev 1.3, Air-Farm User Manual. CO2 / Temperature / Humidity Transmitter

Phone: Fax: Web:

Conto D1 MODBUS COMMUNICATION PROTOCOL

VD SERIES CONTROLLERS (VERSION4.0) RS-485 COMMUNICATION INSTRUCTION MANUAL MODBUS Protocol Reference Guide

DL-10. User Manual. RS-485 Remote Temperature and Humidity. English Ver. 1.0, Jul. 2017

EGW1-IA3-MB User s Manual

COMMUNICATION MODBUS PROTOCOL

Manual 09/11 MN Z-EN. NZM-XATS-C Automatic Transfer Switch-Controller Modbus Communication Protocol

DataVU 5 - Interface Manual Modbus

IF96017 MODBUS COMMUNICATION PROTOCOL

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

DataVU 5 - Interface Manual Modbus

User Manual version 1.04 TLM8 COMMUNICATION PROTOCOLS

KTA-250 Anemometer Alarm Card

How-To. Modbus-TCP communication between CelciuX and NJ. History

COMMUNICATION MODBUS PROTOCOL

TALS 2. Torque Activated Logging System. Operating Instructions

B Interface description 12.01/

PWR. Power Module Slots

Conto D2 COMMUNICATION PROTOCOL CONTENTS 1.0 INTRODUCTION

General Specifications

VP Process Inc. Model: VP-EC-RDU Modbus RTU LCD Display

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

LoRaWAN Wzzard Utility Quick Guide. v /11/1

4511 MODBUS RTU. Configuration Manual. Pulse isolator. No. 9202MCM101(1707) For 4511 devices from ser. no:

Logosol Joystick Node LS-731

Modbus Protocol For TGP03 / THP03

APPLICATION NOTE #xx. Modbus Installation and Troubleshooting for AP9635/AP9635CH Network Management Card By Gary Ware.

SDM-6RO. Expansion Module 6 relay outputs. Manufactured for

Getting Started with your D3000M Series Module

+ (5~27 VDC) GND. Bluetooth V4.2 BLE RS-422/485 Serial Adapter. Model: BLE-485C. 1. Package content: BLE RS-422/485 adapter

Modbus TCP Client Ethernet Modbus TCP Client Modbus TCP Server Ethernet Modbus TCP Server 5

List of Contents 1. INTRODUCTION DEFINITIONS AND ABBREVIATIONS REFERENCES TECHNICAL DATA GENERAL MODBUS RTU...

LMV2 / LMV3... Modbus. User Documentation. Building Technologies Division

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

ENGLISH ENGLISH ENGLISH ENGLISH

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

Modbus on S8. Modbus is a simple, open protocol for both PLC and sensors. Details on Modbus can be found on

Modbus Protocol For FTS/FTM 3x&8x

+ (5~27 VDC) GND. Bluetooth V4.1 BLE RS-232 Serial Adapter. Model: BLE-232B. 1. Package content: BLE RS-232 adapter

Modbus on S8. Modbus is a simple, open protocol for both PLC and sensors. Details on Modbus can be found on

Modbus Installation and Troubleshooting for AP9635/AP9635CH Network Management Card By Gary Ware. Introduction

RS485 MODBUS Module 8I8O

ELECTRONIC METER SX1-A31E MODBUS RTU Protocol Specifications MDD-T0025A

ABB Modbus RTU Driver for JMobile

MODEL CIO-EN PROGRAMMING GUIDE MODBUS/TCP, MODBUS/RTU I/O MODULE. Revision A1 Rapid City, SD, USA, 09/2008

11 Serial Communications

Installation and Programming Manual. Niobrara Research & Development Corporation P.O. Box 3418 Joplin, MO USA

EQ-DCM User Manual Revision 1.02 Sep 10, 2013

COMMUNICATION MODBUS PROTOCOL

MODBUS Protocol Specification. MODBUS Protocol Specification V2.0

RS485 MODBUS Module 16I-M

COMMUNICATION MODBUS PROTOCOL MF96001 / 021 NEMO 96HD

MX200 SERIES Modbus Card 50P GE Zenith Controls. Operation and Maintenance Manual 50R-2200B 12/00

Modbus RTU Serial Communication User Manual

ENGLISH ENGLISH ENGLISH ENGLISH

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

Instruction Manual. Modbus RTU VLT 5000 VLT 6000 HVAC

Please refer to application note AN00129 for further details on HCP2 configuration in ABB motion control products.

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

Tango. alpha nea. Thermometers and controllers with digital communication - Series AM

Product Specification for SAB-S-MODBUS

Transcription:

Revision 1.2 July 24, 2017 COM Protocol Manual for MDC and ADC www.mountztorque.com - 1080 N 11th St - San Jose CA 95112-408.292.2214 1

1 Overview and Communication Specifications 1.1 Overview If the PC does not have Serial COM port, use good quality of USB to RS422 Serial MDC, ADC is capable of connecting to the host controller (Handy Loader, HMI, PLC, PC, converter. etc.) through RS232, RS422 serial communication or Ethernet, allowing the user to use such functions as parameter change and data monitoring. Series Communication Connection using RS232(MDC), RS422(ADC) RS422 RS232, Ethernet Multi-Drop Connection using RS422 (up to 31 controllers max.) IN OUT IN OUT IN OUT The pins of IN & OUT port are connected by parallel together (1:1), allowing for convenient multi-drop wiring. If the PC does not have Serial COM port, use good quality of USB to RS422 Serial converter. USB to RS422 Serial converter. www.mountztorque.com - 1080 N 11th St - San Jose CA 95112-408.292.2214 2

1.2 Communication Specifications and Connection Diagram Communication Specifications Item Communication Standard Communication Protocol Data bit Data Type Stop bit Parity Synchronous Transmission Speed Specifications ANSI/TIA/EIA-422 Standard MODBUS-RTU (Remote Terminal Unit) 8 bit 1 bit None Asynchronous method 9600/19200/38400/57600/115200(MDC)[bps] Speed can be selected at communication speed setting [0x3002] Transmission Distance Up to 200 [m] Power Consumption Less than 100[ ma ] Modbus-RTU Mode RTU (Remote Terminal Unit) mode, each 8 bit byte in a message contains two 4 bit hexadecimal characters. The main advantage of this mode is that its greater character density allows better data throughput than ASCII for the same baud rate. Each message must be transmitted in a continuous stream. The format for each byte in RTU mode is: Coding System: 8 bit binary, hexadecimal 0 9, A F Two hexadecimal characters contained in each 8 bit field of the message Bits per Byte: 1 start bit 8 data bits, least significant bit sent first 1 bit for even/odd parity; no bit for no parity 1 stop bit if parity is used; 2 bits if no parity Error Check Field: Cyclical Redundancy Check () RS422 communication connector pin details (for ADC) 1 8 Pin no. Description 1 No use 2 No use 3 RXD + 4 TXD - 5 TXD + 6 RXD - 7 No use ( Note 1) 8 No use (Note 1) Twisted pair Twisted pair www.mountztorque.com - 1080 N 11th St - San Jose CA 95112-408.292.2214 3

The pare of TXD+ / TXD- (4,5) and RXD+ / RXD- (3,6) wires should be twisted wiring. Note 1 : Never use these two pins to others. There is 5V power output for other purpose. 2 Basic Structure of Communication Protocol ADC complies with the MODBUS-RTU Protocol for communication. For issues not specified in this manual, please see the related standards (Related Standard: Modbus Application Protocol Specification 1.1b, 2006.12.28) In addition, the transmission (Tx) and reception (Rx) concepts are defined in reference to the host. Protocol Packet Descriptions - Modbus RTU Frame Format Name Length(bits) Start 28 at least 3 1 2 character times of silence (mark condition) Address 8 Station Address 8 Indicates the function code, eg read coils / inputs Data n * 8 Data + length will be filled depending on the message type 16 Error checks End 28 at least 3 1 2 character times of silence between frames Transmission(Query)/Reception(Response) Packet Structure Maximum length of transmission/reception packet of MODBUS-RTU is 256 Byte. Please make sure the total length of transmission/reception packet does not exceed 256 byte.. To classify packets, MODBUS-RTU Communication Mode requires empty spaces of at least 3.5 characters at the starting point and the end point. ADC controller provide limit of maximum transmission up to 100 integers. Modbus-RTU frame structure Code Data (RTU) (RTU) Code data www.mountztorque.com - 1080 N 11th St - San Jose CA 95112-408.292.2214 4

How to Compute the Modbus RTU Message To ensure message data integrity, it is advisable to implement code that checks for serial port (UART) framing errors in addition to the verifying the message. If the in the received message does not match the calculated by the receiving device, the message should be ignored. The C language code snippet below shows how to compute the Modbus message using bit-wise shift and exclusive OR operations. The is computed using every byte in the message frame except for the last two bytes which comprise the itself. // Compute the MODBUS RTU UInt16 ModRTU_(byte[] buf, int len) { UInt16 crc = 0xFFFF; for (int pos = 0; pos < len; pos++) { crc ^= (UInt16)buf[pos]; for (int i = 8; i!= 0; i--) { if ((crc & 0x0001)!= 0) { } crc >>= 1; crc ^= 0xA001; else } crc >>= 1; // XOR byte into least sig. byte of crc // Loop over each bit // If the LSB is set // Shift right and XOR 0xA001 // Else LSB is not set // Just shift right } // Note, this number has low and high bytes swapped, so use it accordingly (or swap bytes) return crc; } On-line calculation and free library and Help site - Modbus TCP Frame Format Name Length(byte) Transaction 2 For synchronization between messages of server & client Identifier Protocol 2 Zero for Modbus/TCP Identifier Length Field 2 Number of remaining bytes in this frame Unit 1 Slave Address (use 0) Identifier 1 codes as in other variants Data n Data as response or commands www.mountztorque.com - 1080 N 11th St - San Jose CA 95112-408.292.2214 5

Format of Modbus/TCP frame is described in the below figure. byte 0 ~ 1: transaction ID (Transaction Identification) This means the sequence number of queries and responses. While TCP operates as a master, it is incremented by one in every query (It doesn t matter if this field is set to 0x0000). byte 2 ~ 3: protocol ID (Protocol Identification) This means the protocol identification and the value is fixed as 0x0000 for Modbus/TCP byte 4 ~ 5: length The value of this means the number of bytes from next byte of length field to the end of the frame. byte 6: unit ID(Unit Identification) byte 7: FC ( Code) byte 8~ : data depending on function code 2 code & message details code Description Remark 03 (0x03) Read Holding Register 16bit data (Integer) ex) parameter 04 (0x04) Read Input Register 16bit data ex) monitoring data 06 (0x06) Write Single Register 16bit integer format ex) parameter data 16 (0x10) Write Multi Register 16bit integer format ex) parameter data 17 (0x11) Request Slave ID 100 (0x64) Request Graph date for MD No use ( Factory only ) 200 (0xc8) Request Graph date for AD No use ( Factory only ) < READ > code 03 & 04 details code 03 & 04 is used to read the register as like parameters and alarm in the slave device. The only integer number is allowed. [Query ( Request) ] Code Start Start No of No of (RTU) (RTU) code consist of one byte. But start and number of are consisted by 2 bytes with 4 digits of hexadecimal, starting with first 2 digits for high number, second 2 digits for low number. www.mountztorque.com - 1080 N 11th St - San Jose CA 95112-408.292.2214 6

[OK Response ] Slave Code No of byte Data #1 Data #1... x n data (RTU) (RTU) The number of data is consisted by 2 bytes with 4 digits of hexadecimal. So the total number of data is equal to 1/2 of the number of byte. [Abnormal Respons] code +0x080 Error code (RTU) (RTU) By adding 0x080 to the function code, it response any abnormal or wrong message [ Address for parameters ] Refer the appendix A for all details for parameters 1 250 : Parameter 1001 1250 : Parameter value range MIN 2001 2250 : Parameter value range MAX [ Example message, Query & Response ] To read the data of parameter 1 and 2, which is torque & speed value of Preset #1 ( 03 : Query) 03 00 02 00 02 Start : 0002 (hex) = 2 (dec) Number of : 0002 (hex) = 2 (dec) Read ( code 03 ) data of two es ( number of 0002 ) from the starting from #2 (0002) ( 03 : Response ) Code No of byte Data #1 Data #1... x n data 03 04 01 0F 03 21 Data value of 1 st : 010F (hex) = 271 (dec) torque value of Preset #1 Date value of 2 nd : 03E8(hex) = 1000 (dec) Torque limit value 10.00% www.mountztorque.com - 1080 N 11th St - San Jose CA 95112-408.292.2214 7

[ Address for monitoring ] Refer the appendix A for all details for monitoring 3100 3199 : Alarm data 3200 3299 : Data updated by event ( Start, F/L, Preset change, Torque up ) 3300 3399 : Real-time data < WRITE > code 06 : writing parameters code 06 is used to WRITE the parameter value in each register. The only integer number is allowed. ( Query ) Code Address Address Date Data ( OK Response ) Code Address Address Date Data It provides the echo response on the query (request) after writing data in register. - Refer the appendix A for all details for writing. - For frequent torque parameter changing, there are register es from 261 to 267 for torque of preset #1 7. These data are saved in RAM of the controller for quick and temporary use. It can save the life time of EEPROM from frequent erase and writing. These memory are disappeared when the power is off. - Address for the REMOTE CONTROL via serial COM. Description Address Data Alarm reset 4000 1 Driver operation Lock 4001 0 : Driver Unlock 1 : Lock both For & Rev 2 : Lock Reverse 3 : Lock Forward Real-time monitoring 4002 No use ( Factory only ) Remote start 4003 0 : Stop 1 : Start Preset no. change 4004 1 15 : Preset #1 15 16 : Multi sequence A 17 : Multi sequence B Forward / Reverse rotation 4005 0 : Fastening (Forward) 1 : Loosening (Reverse) Firmware upgrade 4500 No use ( Factory only ) Initialize to factory setting of 170 77 the controller parameters www.mountztorque.com - 1080 N 11th St - San Jose CA 95112-408.292.2214 8

< WRITE - Multiple parameters > code 16 : writing multiple parameters!!! ADC controller ONLY!!! code 16 is used to WRITE the multiple parameters in multiple registers. The only integer number is allowed. For remote control, use the function code 06. It is recommended not over 20 parameters for writing at once. Max data is limited within 200 bytes. ( Query ) code Start Start Number of Number of Byte count ( no x 2) Date Date (RTU) (RTU) ( OK Response ) Code Start Start Number of Number of (RTU) (RTU) [ Example message, Query & Response ] To write the data of parameter 2 and 3, which is torque & torque limit value of Preset #1 as below Torque : 15.00 Torque limit : 10% ( 10.00 ) Query 01 10 00 02 00 03 04 05 DC 03 E8 B2 EF Response 01 10 00 02 00 02 E0 08 < REQUEST > code 17 : Slave device information code 17 is used to read the slave device information about ID no, controller model, screwdriver model, serial no and firmware version. ( Query ) Code (17) (RTU) (RTU) ( Response ) Slave (00 for TCP) Code No. of byte ID ID Controller Controller model model Screw driver model Screw driver model Ver. Ver. S/N 4 S/N 3 S/N 2 S/N 1 (RTU) (RTU) www.mountztorque.com - 1080 N 11th St - San Jose CA 95112-408.292.2214 9

Error code for abnormal response If there are wrong function code or communication failure by protocol ( parity, LRC,..etc.), there will be no response. The master will show TIME OUT error. If the query contains wrong function code or, the function code + 0x80 will be responsed together with the following error code in data registry. Error code 0x01 0x02 0x03 0x07 0x0C 0x0E Description No defined function code or wrong function code Wrong or no existing Data length over the capacity Wrong value in query Over the number of byte Range of data is not available [ Example message, Query & Response ] To read the 5 parameter data starting from 564 to 568 ( 01 : Query) 01 02 34 00 05 Start : 0234 (hex) = 564 (dec) Number of : 0005 (hex) = 5 (dec) code 01 is not defined. code error Parameter from 564 to 568 are not existing. No existing ( 01 + 80 : Response ) 81 02 code (01) + 0x80 = 81 Error code for wrong data = 02 www.mountztorque.com - 1080 N 11th St - San Jose CA 95112-408.292.2214 10

< REQUEST > code 100 (0x64) : monitoring data output for MDC code 200 (0x64) : monitoring data output for ADC *** This function is exceptional from Modbus protocol. code 100 is used to response with the monitoring data. To request the monitoring data, use the function code 06 with data on the below. Parameter and data for monitoring Address Description 4100 Monitoring curve data output 4101 Channel 1 monitoring data 4102 Channel 2 monitoring data Data 0 : Disable, 1 : Enable To keep monitoring ON, repeat request with 1(Enable) in every 10 seconds. 1:torque, 2:current, 3:speed, 4:angle, 5:speed command, 6:current command (ma), 7: Sung Angle 0: disable, 1:torque, 2:current, 3:speed, 4:angle, 5:speed command, 6:current command (ma), 7: Sung Angle 4103 Sampling time 1 : 5ms, 2 : 10ms, 3 : 15ms 4104 Option 1 1 : fastening, 2: loosening, 3 : both Request the desired data on the above parameters in the 4101, 4102, 4103 and 4104. And repeat the request data 1 (Enable) on the parameter 4100 in every 10 seconds to keep data output ON. Otherwise the data output will be OFF For example, to monitor the curve data of torque at channel 1, speed at channel 2, Address 4101 : 1 ( torque at channel 1 ) Address 4102 : 2 ( speed at channel 2 ) ( Query ) Code 06 Address Address Date Data ( Response ) Code 100 No of byte No of byte Data #1 Data #1... x n data www.mountztorque.com - 1080 N 11th St - San Jose CA 95112-408.292.2214 11

The order of response data 1 : Channel 1 2 : Channel 2 3 : Sampling time 4 : Option 1 5 : Number of data 6 : Fastening time 7 : Target torque 8 : Converted torque 9 : Speed 10 : A1 angle 11 : A2 angle 12 : Sung Angle 13 : Error code 14 : Number of Screw Count 15 : Status ( 1 : Complete, 0 : others ) 16 415 (max) : monitoring data ( not fixed number ) / maximum 400 data for two channels. If the monitoring data is for only channel 1, all from 16 th data are included in Channel 1. If two channels are selected, the data for channel 2 comes later the data of channel 1. For example, total number of data are 400, the first 200 data are for channel 1. The rest 200 data are for channel 2 16 th 215 th : Data for channel 1 216 th 415 th : Data for channel 2 www.mountztorque.com - 1080 N 11th St - San Jose CA 95112-408.292.2214 12

www.mountztorque.com - 1080 N 11th St - San Jose CA 95112-408.292.2214 13

www.mountztorque.com - 1080 N 11th St - San Jose CA 95112-408.292.2214 14

www.mountztorque.com - 1080 N 11th St - San Jose CA 95112-408.292.2214 15

www.mountztorque.com - 1080 N 11th St - San Jose CA 95112-408.292.2214 16

www.mountztorque.com - 1080 N 11th St - San Jose CA 95112-408.292.2214 17

www.mountztorque.com - 1080 N 11th St - San Jose CA 95112-408.292.2214 18

www.mountztorque.com - 1080 N 11th St - San Jose CA 95112-408.292.2214 19

www.mountztorque.com - 1080 N 11th St - San Jose CA 95112-408.292.2214 20

Mountz Calibration & Repair Services Mountz Inc. features an experienced calibration and repair staff. Our trained technicians can calibrate and repair most any tool. Mountz provides rapid service with quality that you can trust as we offer three state-of-the-art calibration lab and repair facilities that can calibrate up to 20,000 lbf.ft. Since 1965, Mountz Inc. has proven in-depth knowledge of torque is reflected in our tool s craftsmanship and our ability to provide solutions to both common and uncommon torque applications. We perform calibrations in accordance with ANSI/NCSL-Z540. Mountz is dedicated solely to the manufacturing, marketing and servicing of high quality torque tools. Tool Service & Repair Capability - Torque Wrench Calibration: Click Wrench, Dial Torque Wrench, Beam Wrench, Cam-Over & Break-Over Wrench - Torque Screwdrivers: Dial, Micrometer, Preset & Adjustable - Torque Analyzers/Sensors: All brands - Electric Screwdrivers: All brands - Air Tools: All brands Impact Wrenches, Drills, Pulse Tools, Grinders, Percussive Tools, Air Screwdrivers, Nutrunners, DC Controlled Nutrunners - Torque Multipliers: All brands www.mountztorque.com - 1080 N 11th St - San Jose CA 95112-408.292.2214 21