MCS-8 RS232 & RS485 Network Protocol

Similar documents
TTDM-128 Modbus Register Map. Version 3.1 Series Current to Document Date

SPM90 MODBUS PROTOCOL AND REGISTER LIST V1.0

DNP3 Communications Protocol

APPLICATION NOTES - PIGNONE P6008 RTU CUSTOM PROTOCOL

Instruction Manual. Save These Instructions. Centrifugal Compressor Control System. Model Xe-145F Modbus. Instruction Manual

BACnet Protocol Implementation Conformance Statement

Growing Together Globally Serial Communication Design In Embedded System

Chaper 1: E10+ PLCs Host-Link Command Format

Modbus Module. Data sheet. Communication module for MULTICAL 403 and MULTICAL 603

Metasys N2 Instruction Manual VLT Adjustable Frequency Drive. 12/ Revision B

Model IR4000M. HART Field Device Specification Multi-Point Monitor. Instruction Manual 07-08

Relay Output Sequence for Heatcraft Chillers

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

DELPHI CORPORATION. LIN to RS-232 Gateway Systems Analysis INterface Tool (SAINT) Users Guide

B Interface description 12.01/

Modbus Module. Data sheet. Communication module for MULTICAL 403 and MULTICAL 603

Real Time Clock with Temperature Sensor and RS485/Modbus Comunications

PG&E Points List for Universal Controls

DNP Points List and Implementation

General Monitors S5000 Modbus Specification. Order No.: MANS5000M/00. MSAsafety.com

Getting Started Manual Rev. 2.3 DB-MAGNUM HARDWARE VERSION 8.1+

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

QEL - DEDESCO 5935 Ottawa Street Richmond, Ontario, Canada, K0A 2Z0.

Specification for Spektrum Bi-Directional SRXL

JUMO Quantrol LC100/LC200/LC300

W8735A1013 EnviraCOM Serial Adapter

MCS-CONNECT Quick Guide to Features

AL2-MBU Advanced Manual

Communication 7. What's in this Chapter? This chapter contains the following sections:

CIS-331 Fall 2014 Exam 1 Name: Total of 109 Points Version 1

CIS-331 Exam 2 Fall 2014 Total of 105 Points. Version 1

Elotech Standard Protocol. for Single R8200 SC

mbc082 Bus Converter

GoGo Board Tethered Mode Protocol Arnan (Roger) Sipitakiat Updated: July 8, 2011

DirectNET Host. Communications Programs. In This Chapter...

AN-881 APPLICATION NOTE

MM300 Motor Management System Communications Guide

RFID Application. Experimental and Applied Case

INTELLIS. Modbus Direct Network Monitor

MCS-CONNECT. Manual and Installation Guide. MCS Total Solution for all your Control Needs. Includes Graphics. Energy Efficient and RoHS Compliant

Solumetrix Toroidal Conductivity Sensors

Temperature Sensor TMP2 PMOD Part 1

PM130 Powermeters Reference Guide Modbus Communications Protocol

WebAccess Driver Configuration Manual

USER MANUAL. Modbus IHP24-A IHP24-AF IHP24-B IHP24-BF IHP24-F IHP24-I 1/26

LLR-MOD Modbus Light Level and Occupancy Sensor

FPU-16 A-B PROTOCOL/DATA LOGGER MANUAL

Venstar Thermostat Adapter

For more information Contact with details of the application.

Getting Started Manual

HA7E-User Manual ASCII RS232 to 1-Wire Host Adapter

MM200 Motor Management System Communications Guide

CAN-Transceiver Data Register Map MODBUS Slave RTU

HP 48 I/O Technical Interfacing Guide

RS485 S-Protocol Communications Supplemental Manual for Brooks GF40/GF80 Series Mass Flow Controllers and Meters

The Omega product you have just received is of the highest quality available, offering superior performance, reliability and value to the user.

M-BUS/MODBUS CONFIGURATION SOFTWARE FOR GINEERS MMCR-64

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

ATC-300+ Controller Modbus Communications Guide

MCS-MAGNUM +12. Power Supply 50w, 75w, 100w VAC input (+-15%) 12VDC output regulated. Stackable Expansion Boards Reduce Footprint

SR5 Serial Protocol - Issue 1.6

VersaChart MODBUS RTU Communication Protocol Partlow-West Company 2 Campion Road New Hartford NY 13413

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

Micro Module Shutter. Micro Module Shutter

Tejas V Master Protocol

460 Presentation Audio Mixer

PowerLogic ION7300 Profibus DP. Serial Communications Protocol October 2006

MM300 Motor Management System Communications Guide

Gateway Ascii Command Protocol

Mate Serial Communications Guide This guide is only relevant to Mate Code Revs. of 3.30 and greater

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

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1

PowerLogic ION6200 Serial Communications Protocol and ION / Modbus Register Map

SMARTRAIL X100 Protocol

Communications Guide. MM300 Motor Management System * AA* GE Grid Solutions. Low Voltage Motor Protection and Control

The RS-485 user manual for B800 series communication

UART TO SPI SPECIFICATION

DeviceNet SDNL-0404D-xxxx. IO Data Mapping DeviceNet Objects Indicators and Switches

A GUIDE TO RS-232 COMMUNICATION WITH FX PLCS

WebAccess Driver Configuration Manual

MX350 Automatic Transfer Control System Communications Guide

PRECISION DIGITAL CORPORATION

General information. Engineering with. Supply voltage. Load voltage L+ Input current. Power losses. Memory. Work memory.

Flex Series User Guide

User Manual. KE-Relay or KD-Relay Profibus DPV0 Communication Module. Page 1 / 18. KE-PROFI-DP0 Version (NE_NC-KE-PROFI-DP0_MAN_01_10_FN04)

I/O Interface DNA300

INSTEON Hidden Door Sensor

MOD-RI Room Interface Modules with Modbus

Laboratory 5 Communication Interfaces

COMMUNICATION MODBUS PROTOCOL MF96001 / 021 NEMO 96HD

ICC. Siemens FLN Master Driver Manual INDUSTRIAL CONTROL COMMUNICATIONS, INC Industrial Control Communications, Inc.

Generator Management Relay COMMUNICATIONS GUIDE

melabs Serial LCD Firmware Version 1.0 2/7/07

3710 ACM ACM / Modicon Modbus. Advanced Digital Power Instrumentation Package. Serial Communications Protocol and Register Map. Version 1.

melabs Serial LCD Firmware Version 1.1 3/5/07

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

1. System Topology Required Equipment and Components Hardware Equipment Software Equipment... 6

M500 Smart Modem. User s Reference Manual

C-Bus Interface Requirements

Modbus RTU Serial / Modicon Serial Device Driver Guide

Transcription:

Micro Control Systems APPLICATION NOTE APP-007 MCS-8 RS232 & RS485 Network Protocol Revision History Date Author Description 07/31/97 Brian Walterick Created Application Note. 08/01/97 Brian Walterick Added new sections for RS232 & RS485 Network Medium, Message Verification. Finished Class Number Descriptions. 08/04/97 Brian Walterick Added Class Definitions section. 07/09/98 R. Toney Indicated differences between 4 and 6 board message structure. 09/08/98 R. Toney Corrected app # s, 4 board APP#11 & 6 board APP#12. 11/05/98 BWW Added new class #44 BMS RAAM

This Application Note describes the network protocol for the MCS-8 RS232 and RS485 communication ports. Theory The network is a shared communication channel. To communicate with one another, the interconnected computers(nodes) must follow the rules concerning which nodes can transmit at which time. If the messages transmitted over the network are to be intelligible, their syntax and semantics must conform to a set of rules. These rules constitute the network protocol The network is a master-slave protocol. ONE node(pc-connection or equivalent) acts as the master and the other nodes function as slaves(mcs-8). Slaves communicate with the master only when the master initiates communication. Slaves cannot talk directly to other slaves. Network traffic is divided into discrete messages, each of which is a string of bytes. A message is a serial data stream with a predetermined format. Every message starts with a frame open character(17hex) and ends with a frame close character(18hex). Following the frame open character is a fixed header of 16 bytes. This header defines the length of the message, who the message is for, who the message is from, what type of message, what type of data, etc. Each message also contains a checksum. This is the last byte in the interior of the message, the byte right before the frame close character. The checksum is calculated by adding every byte between the frame open and the frame close characters (excluding the checksum byte). The checksum is use to ensure that the message was received as it was transmitted. After receiving a message, the calculated checksum must equal the transmitted checksum. If not the message is invalid and should be ignored. Since the message must contain arbitrary data patterns, a 17 or 18 hex could appear in the message s interior and can be misinterpreted as a frame open or close character. To prevent this problem the interior of the message is stuffed. Any 17, 18 or 10 hex bytes within the framing characters are transmitted as a two byte sequence. A 17 hex is transmitted as a 10 hex and 07 hex. A 18 hex is transmitted as 10 hex and 08 hex. A 10 hex is transmitted as a 10 hex and 00 hex. The receiving node must then convert these two byte sequences back to a single byte. The key is a 10 hex byte. Any time a 10 hex appears in the message simply add the next byte to it. This will convert all two byte sequence back to one byte. APP007 - MCS-8 RS232 & RS485 Network protocol.doc 2

Message Format The following is the message format. Every message must conform to this format. Message Fields Type Example Range Description Frame Open byte 17 17 Start of message indicator. Length - Low low byte of word 11 00-FF Number of bytes in interior(between frame open and frame close) of message before stuffing. Low byte of length word. Length - HI hi byte of 00 0-10 Hi byte of length word. word Receiver Address byte 01 0-FF Address of node the message is for. Transmitter byte FF 0-FF Address of node the message is from. Address Control Number byte 5A 0-FF Number to identify each message. Status Flag byte 03 0-FF Reserved. Command byte 01 01-05 80-84 Type of message being sent. Request, ACK, etc. Class Number byte 1A 00-55 The number of the class data. Starting Record byte 01 1-FF If class number is an array then this field indicates which record to start at else it must be a 1. Record Count byte 04 1-FF If class number is an array then this field indicates how many records else it must be a 1. Reserved 6 bytes 00 00 00 00 00 00 Class data 0 to 1024 bytes No class data in this message (INFO REQUEST). 0-FF 0-FF Reserved. This field contains that actual class data. It varies in length and structure based on the command field (info request, start cfg transmit, and end of cfg transmit message have no data) and the class number field. This field can not exceed 1024 bytes. DO NOT send a request or change message with class data that exceeds 1024 bytes. If all the element of the class data being requested or send can not fit within 1024 bytes, then break the message into multiple messages. Checksum byte 8E 0-FF Use these field to verify that message has been received intact. Simply add all bytes after frame open character(excluding the checksum and frame close) and verify that it equals the value in this field. Frame Close byte 18 18 End of message indicator. APP007 - MCS-8 RS232 & RS485 Network protocol.doc 3

Message Commands Request Type of Request Respond Type of Respond 01 INFORMATION REQUEST 80 INFORMATION REQUEST ACK 02 CHANGE REQUEST 81 CHANGE ACK 03 RESERVED 82 RESERVED 04 START CFG TRANSMIT REQUEST 83 START CFG TRANSMIT ACK 05 END CFG TRANSMIT REQUEST 84 END CFG TRANSMIT ACK Class Numbers Number of records for 4 board systems Number of records for 6 board systems Class # CLASS NAME 6bd 4bd DESCRIPTION 0 BEGIN EEPROM 1 1 Start of configuration marker. 1 VERSION NUMBER EEPROM 1 1 Site information for the unit. 2 CHILLER EEPROM 1 1 Configuration data for the unit. 3 RO EEPROM 48 32 Configuration data for Relay Outputs. 4 AO EEPROM 12 4 Configuration data for Analog Outputs. 5 SI EEPROM 48 32 Configuration data for Sensor Inputs. 6 SETPOINT EEPROM 120 60 Configuration data for Setpoints. 7 MACHINE EEPROM 1 1 Configuration data for the hardware. 8 RESERVED 0 0 Reserved. 9 AUTH EEPROM 10 15 Configuration data for auth codes. 10 HISTORY EEPROM 1 1 Configuration data for history. 11 RTC EEPROM 1 1 Configuration data for daylight savings 12 RESERVED 0 0 Reserved. 13 RESERVED 0 0 Reserved. 14 HELP EEPROM N/A 16 Four 16 characters help lines for LCD. 15 OPERATING SCHEDULE EEPROM 1 1 Configuration data for schedule. 16 RESERVED 0 0 Reserved. 17 RESERVED 0 0 Reserved. 18 RESERVED 0 0 Reserved. 19 RESERVED 0 0 Reserved. 20 RESERVED 0 0 Reserved. 21 END EEPROM 1 1 End of configuration marker. 22 CHECKSUM EEPROM 23 23 Checksums for EEPROM class. 23 CHILLER RAM 1 1 Control state information. 24 RO RAM STATUS 48 32 Current state for relay outputs 25 RO RAM INFO 48 32 Run time information for ROs 26 AO RAM STATUS 12 4 Current % for analog outputs 27 AO RAM INFO 12 4 min/max/avg for analog outputs. 28 SI RAM STATUS 48 32 Current values for sensor inputs. 29 SI RAM INFO 48 32 min/max/avg for sensor inputs. 30 MCSIO RAM 1 1 Diagnostic info for I/O communication. 31 SW STATUS 1 1 Diagnostic info for software & configuration 32 RESERVED 0 0 Reserved APP007 - MCS-8 RS232 & RS485 Network protocol.doc 4

Class # CLASS NAME 6bd 4bd DESCRIPTION 33 ALARM HISTORY 60 32 Last 32 alarm codes, dates and times. 34 MACHINE RAM 1 1 Diagnostic information on the hardware. 35 RTC RAM 1 1 Last time read from the RTC chip. 36 SW TIME RAM 1 1 Time for the software clock. 37 RESERVED 0 0 Reserved. 38 HISTORY POINTERS 1 1 Indexes for ALARM and HISTORY RAM. 39 HISTORY RAM 144 144 Trending info for all ROs, AOs & SIs. 40 RAM BEG MARK 1 1 Start of ram marker. 41 RAM CFG MARK 1 1 Start of ram CFG marker. 42 RAM END MARK 1 1 End of ram marker. 43 RAM AD RAW 8 8 AD counts being scanned. 44 BMS RAM 1 1 BMS interface data, Run/Stop etc. 45 RAM ALGO FILTERED 48 32 Filtered ad counts ready for conversion. 46 RAM OUTPUT IMAGE 6` 4 Information being written to the relays. 47 RS232 RAM 1 1 Diagnostic information for the RS232 port. 48 RS485 RAM 1 1 Diagnostic information for the RS485 port. 49 SETPOINT RAM 120 60 Values for all setpoints. 50 METER RAM 1 1 KW demand information. 51 METER HISTORY 1 1 KW data for the last 7 days by hour. 52 RESERVED 0 0 Reserved 53 RO RAM EXTRA 48 32 Manual % for all pulse outputs. 54 LOCKOUT HISTORY RAM 60 32 Sensor data at the time of an alarm. Message Verification When a node receives a message, the node must verify the message is in fact valid. Several fields must be check for the message to be valid. The calculated checksum of message as it is received must equal the checksum field in the message. The length of the received message after unstuffing must equal the length field in the message. The message must contain a valid command (01-05 or 80-84). The message must contain a valid class number(0-55 hex). The receiver address must match the network address of the node. Once all these condition are satisfied the message is valid and can be processed. RS232 Network Medium The RS232 medium supports a network of two nodes (one master & one slave) using a 3 conductor shielded cable. The RS232 network operates at 19,200 baud rate with a maximum cable length of 50 feet. The character format is 8 data bits, no parity, and 1 stop bit. RS485 Network Medium The RS485 medium supports a network of up to 20 nodes (one master & up to 19 slaves) using 2 conductor shielded cable. The RS485 network operates at 19,200 baud rate with a APP007 - MCS-8 RS232 & RS485 Network protocol.doc 5

maximum cable length of 5000 feet. The character format is 8 data bits, no parity, and 1 stop bit. Example Message INFO REQUEST message of CLASS 1C (28 - SI_RAM_STATUS) from MASTER node at address FF (255) to slave node at address 01 (1). 17 11 00 01 FF 5B 03 01 1C 01 20 00 00 00 00 00 00 AD 18 INFO REQUEST ACK message - The response to the above INFO REQUEST message. 17 51 00 FF 01 5B 00 80 1C 01 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 01 FC 00 00 D6 04 F7 02 8B 08 10 00 03 01 00 01 00 13 03 D0 02 16 03 DF 02 69 0B 10 00 03 01 00 00 00 13 03 4E 02 0E 03 C7 04 0E 05 0B 03 01 00 00 00 0B 03 EC 02 1A 03 CB 18 Class Definitions For detailed descriptions of 4 board class structures refer to APP NOTE 11, Four Board Class Definitions. For detailed descriptions of 6 board class structures refer to APP NOTE 12, Six Board Class Definitions. Suggested List of Class Numbers for communication Class # CLASS NAME Mimimum 1 VERSION NUMBER EEPROM 3 RO EEPROM 4 AO EEPROM 5 SI EEPROM 6 SETPOINT EEPROM 15 OPERATING SCHEDULE EEPROM 23 CHILLER RAM 24 RO RAM STATUS 25 RO RAM INFO 26 AO RAM STATUS 27 AO RAM INFO 28 SI RAM STATUS 29 SI RAM INFO 33 ALARM HISTORY 44 BMS RAM 49 SETPOINT RAM 53 RO RAM EXTRA APP007 - MCS-8 RS232 & RS485 Network protocol.doc 6