GFK2220-GE-PLCmodbus主站通信.pdf
《GFK2220-GE-PLCmodbus主站通信.pdf》由会员分享,可在线阅读,更多相关《GFK2220-GE-PLCmodbus主站通信.pdf(38页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、 GFK-2220B 1 Modbus RTU Master Communications This document describes the operation of Modbus RTU Master from the user interface point of view.Use this information as a supplement to the Serial Communications Users Manual (GFK-0582).This document contains the following information:?Overview?Supporte
2、d Products?Mode of Operation?COMMREQs?Time Constraints?Serial Connections?Standards?Multidrop Connections?Drivers and Receivers?Cable?Grounding?Connector Wiring?Four-Wire?Two-Wire?Point-to-Point?COMMREQ Function Block Format?COMMREQ Function Block Parameters?COMMREQ Function Block Output?COMMREQ Com
3、mand Data Block?Modbus RTU Master Status Word Format?Queue Limitations for Modbus RTU Master COMMREQs?Local Data?Modbus RTU Master Diagnostic Status Words?Modbus RTU Master Commands?Initialize RTU Master Port:65520(FFF0)?Clear RTU Master Diagnostic Status Words:08000(1F40)?Read RTU Master Diagnostic
4、 Status Words:08001(1F41)?Send RTU Read/Force/Preset Query:08002(1F42)?Send RTU Diagnostic Query:08003(1F43)?Error Codes?Example Application Modbus is a registered trademark of Schneider Electric.2 Modbus RTU Master Communications-December 2003 GFK-2220B Overview Modbus Serial Line protocol is an op
5、en standard for data communications between PLCs and related devices.The Modbus Serial Line standard provides for communication using either printable characters exclusively(Modbus ASCII),or binary data(Modbus RTU).This document describes Modbus RTU Master communications on GE Fanuc PLC CPUs.Support
6、ed Products Modbus RTU Master communications is currently available on the Series 90-30 IC693CPU363 and VersaMax modular CPU models IC200CPU001,IC200CPU002,IC200CPU005 and IC200CPUE05.Mode of Operation A Modbus RTU master device(the client)sends query messages to one or more slave devices(the server
7、s)on a serial network.Queries may contain data,requests for data or status,or commands.Each slave on the network has a unique device address.Any query may be addressed either to a specific slave device or to a special broadcast address.Queries addressed to the broadcast address are called broadcast
8、queries.Queries that require a response may not be addressed to the broadcast address.A slave that receives a well-formed,non-broadcast query must send a response message to the master.The query/response transaction completes when the master receives a well-formed response.Slaves do not respond to b
9、roadcast queries.After sending a broadcast query,the master must wait a specified time before completing the transaction and sending the next query.Some broadcast queries contain commands that require the slaves to take specified actions.COMMREQs The application program running in the PLC CPU contro
10、ls the timing and content of each query by sending a COMMREQ message.The COMMREQ must be addressed to the CPU serial port that is connected to the Modbus RTU serial network.COMMREQ data specifies the content of the query.When the query/response transaction completes,a COMMREQ status value indicates
11、the success or failure of the transaction.See the COMMREQ Function Block Format section of this document and the sections that follow it for details.Time Constraints The Modbus over Serial Line Specification and Implementation guide V1.01 contains several important timing requirements.Serial Connect
12、ions Series 90 and VersaMax are trademarks of GE Fanuc Automation.1 The current Modbus RTU specification is available online in the documents Modbus Application Protocol Specification V1.1 and Modbus over Serial Line Specification and Implementation guide V1.0 at http:/www.modbus.org/.Follow the Mod
13、bus Standard Library link to find them.GFK-2220B 3 A Modbus RTU network has one master device and one or more(up to 247)slave devices.A serial network interconnects all these devices.If there is only one slave,a point-to-point connection is used.A multidrop connection is needed for two or more slave
14、s.Standards Virtually all PLC serial communications ports(including all serial ports on GE Fanuc PLC CPUs)support one(or two or three in some cases)of three physical layer standards for asynchronous serial communications.The current revisions of all three may be purchased from the Telecommunications
15、 Industries Association at http:/www.tiaonline.org/standards/.EIA/TIA-232-F:Interface Between Data Terminal Equipment and Data Circuit-Terminating Equipment Employing Serial Binary Data Interchange(ANSI/TIA/EIA-232-F-1997)This standard is commonly referred to as“RS-232”or“RS-232C”because the definit
16、ive earlier revision was titled“RS-232-C”.RS-232 ports transmit and receive data and control signals on unbalanced circuits.That is,one Signal Common(or Signal Ground)wire serves as the return path for all the data and control circuits.RS-232 ports are suitable for point-to-point connections up to a
17、bout 25 meters in length,but not for longer lines or multidrop connections.The specification recommends limiting the data rate to(in effect)19,200 bits per second(bps)or less,but rates up 115,200 bps are frequently used with short cables(typically about 2 meters).EIA/TIA-422-B:Electrical Characteris
18、tics of Balanced Voltage Digital Interface Circuits(ANSI/TIA/EIA-422-B-94,revised 2000)This standard is usually called“RS-422”because the initial revision had that title.It specifies twisted-pair cabling and a balanced line driver and receiver for each circuit.RS-442 supports higher data rates and l
19、onger distances than RS-232.A 100-ohm nominal impedance is recommended for twisted pair circuits in cables,and 100-ohm terminating resistors are recommended for the receiving end of each circuit.Some RS-422 ports support multidrop(multipoint)operation.However,this capability is not guaranteed by the
20、 standard.Use caution when attempting to use an RS-422 device on a multidrop network.EIA/TIA-485-A:Electrical Characteristics of Generators and Receivers for Use in Balanced Digital Multipoint Systems(ANSI/TIA/EIA-485-A-98)The original version of this standard was titled“RS-485”;it is frequently ref
21、erred to by that name.This standard has effectively replaced RS-422 because it adds guaranteed multidrop(multipoint)capability.Line drivers in the data circuits are required to switch to a high-impedance state(“tristate”themselves)except when transmitting,and the control and status circuits are rare
22、ly connected through the cable in multidrop applications.Consequently,multiple data line drivers can be connected in parallel to each data circuit.The port firmware guarantees only one port at a time will attempt to transmit on each circuit.RS-485 uses 120-ohm cable and terminating resistors.Because
23、 transmitters are not always connected to the line,terminating resistors must be used at both ends of each circuit.Note that some RS-485 devices may require pull-up and pull-down resistors to polarize(bias)receive-data circuits to the mark state when all transmitters are in the high-impedance state.
24、GE Fanuc RS-485 ports do not require pull-up and pull-down resistors.4 Modbus RTU Master Communications-December 2003 GFK-2220B Multidrop Connections Four-Wire(4-Wire)In this network configuration,the Send Data(SD)pair of the RTU master device is connected to the Receive Data(RD)pairs of all the sla
25、ves,and the SD pairs of all the slaves are connected to the RD pair of the master.The slave devices must all use RS-485-compatible serial ports so that their transmitters are disabled except when transmitting.Although some RS-442 devices disable outputs when not transmitting,the RS-442 specification
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- GFK2220 GE PLCmodbus 通信
限制150内