1、 PUBLICLY AVAILABLE SPECIFICATION IEC PAS 62030Pre-Standard First edition2004-11 Digital data communications for measurement and control Fieldbus for use in industrial control systems Section 1:MODBUS Application Protocol Specification V1.1a Section 2:Real-Time Publish-Subscribe(RTPS)Wire Protocol S
2、pecification Version 1.0 Reference number IEC/PAS 62030:2004(E)Copyright International Electrotechnical Commission Provided by IHS under license with IECLicensee=Technip Abu Dabhi/5931917101 Not for Resale,02/22/2006 23:21:46 MSTNo reproduction or networking permitted without license from IHS-,-,-Pu
3、blication numbering As from 1 January 1997 all IEC publications are issued with a designation in the 60000 series.For example,IEC 34-1 is now referred to as IEC 60034-1.Consolidated editions The IEC is now publishing consolidated versions of its publications.For example,edition numbers 1.0,1.1 and 1
4、.2 refer,respectively,to the base publication,the base publication incorporating amendment 1 and the base publication incorporating amendments 1 and 2.Further information on IEC publications The technical content of IEC publications is kept under constant review by the IEC,thus ensuring that the con
5、tent reflects current technology.Information relating to this publication,including its validity,is available in the IEC Catalogue of publications(see below)in addition to new editions,amendments and corrigenda.Information on the subjects under consideration and work in progress undertaken by the te
6、chnical committee which has prepared this publication,as well as the list of publications issued,is also available from the following:IEC Web Site(www.iec.ch)Catalogue of IEC publications The on-line catalogue on the IEC web site(www.iec.ch/searchpub)enables you to search by a variety of criteria in
7、cluding text searches,technical committees and date of publication.On-line information is also available on recently issued publications,withdrawn and replaced publications,as well as corrigenda.IEC Just Published This summary of recently issued publications(www.iec.ch/online_news/justpub)is also av
8、ailable by email.Please contact the Customer Service Centre(see below)for further information.Customer Service Centre If you have any questions regarding this publication or need further assistance,please contact the Customer Service Centre:Email:custserviec.ch Tel:+41 22 919 02 11 Fax:+41 22 919 03
9、 00 Copyright International Electrotechnical Commission Provided by IHS under license with IECLicensee=Technip Abu Dabhi/5931917101 Not for Resale,02/22/2006 23:21:46 MSTNo reproduction or networking permitted without license from IHS-,-,-PUBLICLY AVAILABLE SPECIFICATIONIEC PAS 62030Pre-Standard Fir
10、st edition2004-11 Digital data communications for measurement and control Fieldbus for use in industrial control systems Section 1:MODBUS Application Protocol Specification V1.1a Section 2:Real-Time Publish-Subscribe(RTPS)Wire Protocol Specification Version 1.0 PRICE CODE IEC 2004 Copyright-all righ
11、ts reserved No part of this publication may be reproduced or utilized in any form or by any means,electronic or mechanical,including photocopying and microfilm,without permission in writing from the publisher.International Electrotechnical Commission,3,rue de Varemb,PO Box 131,CH-1211 Geneva 20,Swit
12、zerlandTelephone:+41 22 919 02 11 Telefax:+41 22 919 03 00 E-mail:inmailiec.ch Web:www.iec.ch XG For price,see current catalogue Commission Electrotechnique InternationaleInternational Electrotechnical Commission Copyright International Electrotechnical Commission Provided by IHS under license with
13、IECLicensee=Technip Abu Dabhi/5931917101 Not for Resale,02/22/2006 23:21:46 MSTNo reproduction or networking permitted without license from IHS-,-,-2 PAS 62030 IEC:2004(E)CONTENTS FOREWORD.5 Section 1 MODBUS Application Protocol Specification V1.1a.7 1 MODBUS.7 1.1 Introduction.7 1.1.1 Scope of this
14、 section.7 1.1.2 Normative references.8 1.2 Abbreviations.8 1.3 Context.8 1.4 General description.9 1.4.1 Protocol description.9 1.4.2 Data Encoding.11 1.4.3 MODBUS data model.12 1.4.4 MODBUS Addressing model.13 1.4.5 Define MODBUS Transaction.14 1.5 Function Code Categories.16 1.5.1 Public Function
15、 Code Definition.17 1.6 Function codes descripitons.17 1.6.1 01(0 x01)Read Coils.17 1.6.2 02(0 x02)Read Discrete Inputs.19 1.6.3 03(0 x03)Read Holding Registers.21 1.6.4 04(0 x04)Read Input Registers.22 1.6.5 05(0 x05)Write Single Coil.23 1.6.6 06(0 x06)Write Single Register.24 1.6.7 07(0 x07)Read E
16、xception Status(Serial Line only).26 1.6.8 08(0 x08)Diagnostics(Serial Line only).27 1.6.9 11(0 x0B)Get Comm Event Counter(Serial Line only).30 1.6.10 12(0 x0C)Get Comm Event Log(Serial Line only).32 1.6.11 15(0 x0F)Write Multiple Coils.34 1.6.12 16(0 x10)Write Multiple registers.35 1.6.13 17(0 x11)Report Slave ID(Serial Line only).37 1.6.14 20/6(0 x14/0 x06)Read File Record.37 1.6.15 21 /6(0 x15 /0 x06)Write File Record.39 1.6.16 22(0 x16)Mask Write Register.41 1.6.17 23(0 x17)Read/Write Multip