Spectra 100 Developer\'s Guide
October 30, 2017 | Author: Anonymous | Category: N/A
Short Description
to Daniel within twelve (12) months of the date of shipment (eighteen . Understanding Function Codes ......
Description
Spectra 100 Developer’s Guide
DANIEL MEASUREMENT AND CONTROL Houston, Texas Manual Part Number 3-9000-102
Revision E SEPTEMBER 2000
DANIEL
Spectra 100 Developer’s Guide Daniel Industries, Inc.
NOTICE Daniel Industries, Inc. and Daniel Measurement and Control ("Daniel") shall not be liable for technical or editorial errors in this manual or omissions from this manual. Daniel makes no warranties, express or implied, including the implied warranties of merchantability and fitness for a particular purpose with respect to this manual and, in no event, shall daniel be liable for any special or consequential damages including, but not limited to, loss of production, loss of profits, etc. Product names used herein are for manufacturer or supplier identification only and may be trademarks/registered trademarks of these companies.
Copyright © 2000 by Daniel Measurement and Control, Houston, Texas, U.S.A. All rights reserved. No part of this work may be reproduced or copied in any form or by any means — graphic, electronic, or mechanical — without first receiving the written permission of Daniel Measurement and Control, Houston, Texas, U.S.A.
Spectra 100 Developer’s Guide
WARRANTY Daniel Measurement and Control ("Daniel") warrants all equipment manufactured by it to be free from defects in workmanship and material, provided that such equipment was properly selected for the service intended, properly installed, and not misused. Equipment which is returned, transportation prepaid to Daniel within twelve (12) months of the date of shipment (eighteen (18) months from date of shipment for destinations outside of the United States), which is found after inspection by Daniel to be defective in workmanship or material, will be repaired or replaced at Daniel's sole option, free of charge, and return-shipped at lowest cost transportation. All transportation charges and export fees will be billed to the customer. Warranties on devices purchased from third party manufacturers not bearing a Daniel label shall have the warranty provided by the third party manufacturer. Extended warranty - Models 2470, 2480 and 2500 are warranted for a maximum of twenty-four (24) months. The Danalyzer valves are warranted for the life of the instrument and the columns for five years. The warranties specified herein are in lieu of any and all other warranties, express or implied, including any warranty of merchantability or fitness for a particular purpose. Daniel shall be liable only for loss or damage directly caused by its sole negligence. Daniel's liability for any loss or damage arising out of, connected with, or resulting from any breach hereof shall in no case exceed the price allocable to the equipment or unit thereof which gives rise to the claim. Daniel's liability shall terminate one year after the delivery of the equipment except for overseas deliveries and extended warranty products as noted above. In no event, whether as a result of breach of warranty or alleged negligence, shall Daniel be liable for special or consequential damages, including, but not limited to, loss of profits or revenue; loss of equipment or any associated equipment; cost of capital; cost of substitute equipment, facilities or services; downtime costs; or claims of customers of the purchaser for such damages.
SEP 2000
TABLE OF CONTENTS
Spectra 100 Developer’s Guide
i
TA B L E O F C O N T E N T S INTRODUCTION 1.1
Purpose of This Manual ...................................................................................... 1-1
1.2
Documentation Suite for Spectra 100 ................................................................ 1-2 EMBEDDED DATABASE AND DATA POINTS OF THE SPECTRA 100
2.1
About the Spectra 100 Database and Data Points............................................ 2-1
2.2
Online Guide to Spectra 100 Data Points .......................................................... 2-2 MODBUS GUIDE FOR THE SPECTRA 100
3.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.1.10 3.1.11 3.1.12 3.1.13 3.1.14 3.1.15 3.1.16 3.1.17
General Principles of Modbus Protocol............................................................. 3-2 About Modbus................................................................................................. 3-2 Modbus Modifications for Daniel Flow Computer Systems ............................ 3-3 Communication Transmission Modes, ASCII vs RTU .................................... 3-3 Framing in ASCII Modbus Transmission ........................................................ 3-5 Framing in RTU Modbus Transmission .......................................................... 3-6 Address Field.................................................................................................. 3-7 Function Code Field........................................................................................ 3-7 Data Field ....................................................................................................... 3-8 Function Codes Supported by the Spectra100 ............................................... 3-8 Understanding Function Codes and Nominal Responses .............................. 3-9 Exception Responses Supported by Spectra100 ......................................... 3-12 Error Detection, CRC.................................................................................... 3-14 Error Detection, LRC .................................................................................... 3-16 Data Type: Boolean ...................................................................................... 3-18 Data Type: Short Word (Integer 16-bit) ........................................................ 3-18 Data Type: Long Word (Long Integer 32-bit) ................................................ 3-19 Data Type: Floating Point (32-bit)................................................................. 3-19
3.2 3.2.1 3.2.2 3.2.3
Function Code Details ....................................................................................... 3-21 Function Code 01, Read Boolean Status ..................................................... 3-21 Function Code 03, Read Numeric Variables ................................................ 3-24 Function Code 05, Set Single Boolean ......................................................... 3-26
SEP 2000
ii
TABLE OF CONTENTS
Spectra 100 Developer’s Guide
3.2.4 3.2.5 3.2.6
Function Code 06, Set Single Numeric Variable .......................................... 3-28 Function Code 15, Set Multiple Boolean Variables ...................................... 3-30 Function Code 16, Set Multiple Numeric Variables ...................................... 3-32
3.3 3.3.1 3.3.2 3.3.3 3.3.4
Modbus Register Contents ............................................................................... 3-34 Modbus Data Types...................................................................................... 3-34 Registers 0002-0009, Clock ......................................................................... 3-35 Registers 0032, 0701-0704, 0797-0799, Logs (Event, Alarm, Data, and System).................................................................................................. 3-35 Registers 1001-7999, Boolean and Numeric Data Points ............................ 3-36
3.4 3.4.1 3.4.2 3.4.3
Special Modbus Operations for Spectra100 ................................................... 3-38 Setting the Spectra100 Clock ....................................................................... 3-38 Reading the Spectra100 Clock ..................................................................... 3-40 Reading and Configuring Spectra100 Logs.................................................. 3-42 SPECTRA100 LOGS
4.1 4.1.1 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6
Basic Concepts of Spectra100 Logs.................................................................. 4-2 The Five Types of Logs .................................................................................. 4-2 Timed Data Log: Memory Storage.................................................................. 4-4 Contract Data Log: Memory Storage .............................................................. 4-6 Operator Event (or Audit) Log: Memory Storage ............................................ 4-6 Alarm Event Log: Memory Storage................................................................. 4-8 System Log: Memory Storage ...................................................................... 4-10
4.2 4.2.1 4.2.2 4.2.3 4.2.4
Data Logs: Read with Modbus ......................................................................... 4-11 Timed Data Log: Read with Modbus ............................................................ 4-11 Contract Data Log: Read with Modbus......................................................... 4-14 Timed Data Log: Read with Modbus ............................................................ 4-17 Contract Data Log: Read with Modbus......................................................... 4-20
4.3 4.3.1 4.3.2 4.3.3 4.3.4 4.3.5 4.3.6
Data Logs: Configure with Modbus ................................................................. 4-22 Timed Data Log: Default Configuration ........................................................ 4-22 Timed Data Log: Read Configuration with Modbus ...................................... 4-25 Timed Data Log: Write Configuration with Modbus ...................................... 4-28 Contract Data Log: Default Configuration..................................................... 4-32 Contract Data Log: Read Configuration with Modbus .................................. 4-34 Contract Data Log: Write Configuration with Modbus................................... 4-37
SEP 2000
Spectra 100 Developer’s Guide
TABLE OF CONTENTS
iii
4.4 4.4.1 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7
Operator and Alarm Logs: Read with Modbus................................................ 4-41 Operator and Alarm Logs: Combined ........................................................... 4-41 Operator and Alarm Logs: Modbus Framing ................................................ 4-41 Operator and Alarm Logs: Bitmasks ............................................................. 4-43 Handshaking Sequence: Read / Clear / Reset ............................................. 4-44 Operator Event Log: Read with Modbus....................................................... 4-46 Alarm Event Log: Read with Modbus ........................................................... 4-51 Operator/Alarm Event Log: Clear or Reset................................................... 4-56
4.5 4.5.1 4.5.2 4.5.3
System Log: Read with Modbus....................................................................... 4-59 Log Types ..................................................................................................... 4-60 Log Data Description .................................................................................... 4-64 Log Collection via Modbus Register ............................................................. 4-66
Appendix A, DEFAULT MODBUS REGISTER ASSIGNMENTS Appendix B, UNITS OF MEASUREMENT INDEX NUMBERS USED IN DATA LOG CONFIGURATIONS Appendix C, GLOSSARY
SEP 2000
iv
TABLE OF CONTENTS
Spectra 100 Developer’s Guide
This page is intentionally left blank.
SEP 2000
INTRODUCTION
Spectra 100 Developer’s Guide
1-1
1
INTRODUCTION 1.1
PURPOSE OF THIS MANUAL
! " # $ % &
" # $ %
" ' '" ! % $ ! ' " (
( ( ) ( ('
( *! % ! %
+ !
%+ ) %,
' " %
SEP 2000
Purpose of This Manual
1-2
1.2
INTRODUCTION
Spectra 100 Developer’s Guide
DOCUMENTATION SUITE FOR SPECTRA 100
" # $ ( % & -
-
!" 2
-
.
( ( ( ( %/
%01 %
3 4 5 6 " $
" # $ %$) % " $(
#7'
( 8 % # & #$
All the online manuals can be found in the ...\Help subdirectory that is made by installing the SpectraCom software. You can make Windows shortcuts to the filenames of the manuals for quicker access to them.
%&" 2
3 4 9 ' '" # $ " $ % % " $( 8 % # & #$
Documentation Suite for Spectra 100
SEP 2000
INTRODUCTION
Spectra 100 Developer’s Guide
-
%'!"
-
1-3
. :: %.# 9 ! '" # $ ' " ! %5 :: 9
( %% ( % # & '#
" 2
3 4 5 6 " $
" # $ %$)
% " $ (
#7'(
8 % # &#$
' 1 ' ( $ " %9
%
SEP 2000
Documentation Suite for Spectra 100
1-4
INTRODUCTION
Spectra 100 Developer’s Guide
This page is intentionally left blank.
Documentation Suite for Spectra 100
SEP 2000
EMBEDDED DATABASE AND DATA POINTS OF THE SPECTRA 100 Spectra 100 Developer’s Guide
2-1
2
EMBEDDED DATABASE AND DATA POINTS OF THE SPECTRA 100 2.1
ABOUT THE SPECTRA 100 DATABASE AND DATA POINTS " # $
( (% % )
% # ( * % : (! "
' %;((!
)' (( !
( %
Online Guide to Spectra 100 Data Points
SEP 2000
EMBEDDED DATABASE AND DATA POINTS OF THE SPECTRA 100 Spectra 100 Developer’s Guide
2-3
: ' %> (' ( ' %
" . , ' " $ ( " $=8 6 %
. , " $( 4 0) #$(=9 6' 7 % % ' " $ (%%%?8
'( " $ %#
( 4
' 4 7 4 = ( 76%
SEP 2000
Online Guide to Spectra 100 Data Points
2-4
EMBEDDED DATABASE AND DATA POINTS OF THE SPECTRA 100 Spectra 100 Developer’s Guide
This page is intentionally left blank.
Online Guide to Spectra 100 Data Points
SEP 2000
MODBUS GUIDE FOR THE SPECTRA 100
Spectra 100 Developer’s Guide
3-1
3
MODBUS GUIDE FOR THE SPECTRA 100 Section Contents General Principles of Modbus .......................................................................See section 3.1 About Modbus............................................................................................................ 3.1.1 Modbus Modifications for Daniel Flow Computer Systems........................................ 3.1.2 Communications Transmission Modes, ASCII vs RTU.............................................. 3.1.3 Framing in ASCII Modbus Transmission.................................................................... 3.1.4 Framing in RTU Modbus Transmission...................................................................... 3.1.5 Address Field ............................................................................................................. 3.1.6 Function Code Field................................................................................................... 3.1.7 Data Field................................................................................................................... 3.1.8 Function Codes Supported by the Spectra100 .......................................................... 3.1.9 Understanding Function Codes and Nominal Responses ....................................... 3.1.10 Exception Responses Supported by Spectra100 .................................................... 3.1.11 Error Detection, CRC ............................................................................................... 3.1.12 Error Detection, LRC................................................................................................ 3.1.13 Data Type: Boolean ................................................................................................. 3.1.14 Data Type: Short Word (Integer 16-bit).................................................................... 3.1.15 Data Type: Long Word (Long Integer 32-bit) ........................................................... 3.1.16 Data Type: Floating Point (32-bit) ............................................................................ 3.1.17 Function Code Details ....................................................................................See section 3.2 Function Code 01, Read Boolean Status................................................................... 3.2.1 Function Code 03, Read Numeric Variables.............................................................. 3.2.2 Function Code 05, Set Single Boolean ...................................................................... 3.2.3 Function Code 06, Set Single Numeric Variable ........................................................ 3.2.4 Function Code 15, Set Multiple Boolean Variables.................................................... 3.2.5 Function Code 16, Set Multiple Numeric Variables.................................................... 3.2.6 Modbus Register Contents ............................................................................See section 3.3 Modbus Data Types ................................................................................................... 3.3.1 Registers 0002-0009, Clock....................................................................................... 3.3.2 Registers 0032, 0701-0704, Logs (Event, Alarm, and Data) ..................................... 3.3.3 Registers 1001-7999, Boolean and Numeric Data Points ......................................... 3.3.4 Special Modbus Operations for Spectra100.................................................See section 3.4 Setting the Spectra100 Clock .................................................................................... 3.4.1 Reading the Spectra100 Clock .................................................................................. 3.4.2 Reading and Configuring Spectra100 Logs ............................................................... 3.4.3
SEP 2000
3-2
MODBUS GUIDE FOR THE SPECTRA 100
3.1
GENERAL PRINCIPLES OF MODBUS PROTOCOL
3.1.1
About Modbus
Spectra 100 Developer’s Guide
! ' ' ( ( ( % ! ! 7 ' , %$ '(! , " "%:%(# %! ' @! . @ '! &
View more...
Comments