CN109189710A - A kind of multi-functional communications circuit and its communication means - Google Patents

A kind of multi-functional communications circuit and its communication means Download PDF

Info

Publication number
CN109189710A
CN109189710A CN201810792399.XA CN201810792399A CN109189710A CN 109189710 A CN109189710 A CN 109189710A CN 201810792399 A CN201810792399 A CN 201810792399A CN 109189710 A CN109189710 A CN 109189710A
Authority
CN
China
Prior art keywords
communication
modbus
mode
plc
ascii
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810792399.XA
Other languages
Chinese (zh)
Inventor
张耀升
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Yu Sheng Packaging Machinery Co Ltd
Original Assignee
Xiamen Yu Sheng Packaging Machinery Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Yu Sheng Packaging Machinery Co Ltd filed Critical Xiamen Yu Sheng Packaging Machinery Co Ltd
Priority to CN201810792399.XA priority Critical patent/CN109189710A/en
Publication of CN109189710A publication Critical patent/CN109189710A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • G06F13/4286Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a handshaking protocol, e.g. RS232C link

Abstract

It include RS-232 communication interface the present invention provides a kind of multi-functional communications circuit and its communication means, telecommunication circuit, for realizing the communication between touch screen and/or PLC by RS-232 communication protocol;MODBUS ASCII and/or MODBUS RTU communication interface, for realizing the communication between the communication between capacitance plate, and/or realization and PLC by ASCII mode or RTU mode.Compared with prior art, can be realized circuit board can be realized between capacitance plate communicate on the basis of, the communication being also able to achieve between touch screen and PLC, compatibility it is higher, substitutability is higher.

Description

A kind of multi-functional communications circuit and its communication means
Technical field
The present invention relates to a kind of multi-functional communications circuit and its communication means, are related to the communications field.
Background technique
In communication between the capacitance plate of the prior art, touch screen, circuit board and PLC, intelligence realizes capacitance plate and electricity The communication between communication and PLC and touch screen between the plate of road, communication mode is single, cannot arbitrarily substitute, and realizes more efficient The communication of energy.
Summary of the invention
The present invention provides a kind of multi-functional communications circuit and its communication means, has and can be realized circuit board can be with On the basis of realizing communication between capacitance plate, the communication being also able to achieve between touch screen and PLC, compatibility is higher, alternative The higher feature of property.
A kind of multi-functional communications circuit, which is characterized in that including,
RS-232 communication interface, for realizing the communication between touch screen and/or PLC by RS-232 communication protocol;
MODBUS ASCII and/or MODBUS RTU communication interface, for by ASCII mode or RTU mode realize with Communication between capacitance plate, and/or realize the communication between PLC.
Further include multiple-pulse delivery outlet, including 10 axis, 14 axis or 28 axis pulses output, accordingly, is able to drive 5 groups, 7 groups Or 14 groups of high-speed pulse outputs, frequency 100K.
A kind of multi-functional communications circuit communication method realizes that specific method includes based on above-mentioned telecommunication circuit,
Realize that the communication between touch screen (including graphic control panel), serial ports step-by-step are sent by RS-232 communication protocol With reception byte;
Realize that the communication with capacitance plate, user's selection are wanted by MODBUS ASCII mode or MODBUS RTU mode Mode, including serial communication parameter, all devices selection when configuring each controller, on a MODBUS network Identical transmission mode and serial ports parameter;Selected ASCII mode or RTU mode is only applicable to the MODBUS network of standard, fixed Each for the message section that justice continuously transmits on the MODBUS network of standard, and decide how information package into message Domain and how to decode;MODBUS message is turned into the frame unrelated with serial transmission on off-gauge MODBUS network;
The communication between PLC is realized by RS-232 communication interface or MODBUS communication interface.
Compared with prior art, technical solution of the present invention can be realized circuit board and communicate can realize between capacitance plate On the basis of, the communication being also able to achieve between touch screen and PLC, compatibility is higher, and substitutability is higher.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to embodiments, to the present invention It is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, is not used to limit The fixed present invention.
Any feature disclosed in this specification (including abstract) unless specifically stated can or tool equivalent by other There are the alternative features of similar purpose to be replaced.That is, unless specifically stated, each feature is a series of equivalent or similar characteristics In an example.
A kind of multi-functional communications circuit, including,
RS-232 communication interface, for realizing the communication between touch screen and/or PLC by RS-232 communication protocol;
MODBUS ASCII and/or MODBUS RTU communication interface, for by ASCII mode or RTU mode realize with Communication between capacitance plate, and/or realize the communication between PLC.
As one embodiment of the present invention, including RS-232 communication interface, MODBUS ASCII communication interface and MODBUS RTU communication interface;It further include receiving the DC 24V NPN signal source of external detection element data such as;Power input connects Mouth accesses DC 24V power supply, and internal conversion is handled after electric-controlled plate;All controls are calculated using meaning method chip processing program to issue.
Further include multiple-pulse delivery outlet, including 10 axis, 14 axis or 28 axis pulses output, accordingly, is able to drive 5 groups, 7 groups Or 14 groups of high-speed pulse outputs, frequency 100K.
Under normal circumstances, automatic packaging mechanical equipment selects Eco-power PLC more, and this kind of PLC is up to four axis Pulse output, the automatic packaging mechanical equipment more for some motors, four axis are not enough.It is extra to add arteries and veins Die block walks the PLC pulse output that communication drives slave station.
A kind of multi-functional communications circuit communication method realizes that specific method includes based on above-mentioned telecommunication circuit,
Realize that the communication between touch screen (including graphic control panel), serial ports step-by-step are sent by RS-232 communication protocol With reception byte;
Realize that the communication with capacitance plate, user's selection are wanted by MODBUS ASCII mode or MODBUS RTU mode Mode, including serial communication parameter (baud rate, verification mode etc.), when configuring each controller, in a MODBUS All devices on network select identical transmission mode and serial ports parameter;Selected ASCII mode or RTU mode is only applicable to The MODBUS network of standard defines the message section continuously transmitted on the MODBUS network of standard each, and determines How how information package at message field and is decoded;(as MAP and MODBUS Plus) on off-gauge MODBUS network MODBUS message is turned into the frame unrelated with serial transmission;
The communication between PLC is realized by RS-232 communication interface or MODBUS communication interface.
For RS-232 communication means, although slower than by the parallel communications of byte (byte), serial ports can used Data are received with another single line while single line sends data.It is very simple and can be realized telecommunication, and length can Up to 1200 meters.Typically, serial ports is used for the transmission of ASCII character character.Communication is completed using 3 lines: (1) ground wire, and (2) are sent, (3) it receives.Due to serial communication be it is asynchronous, port can send data on single line and on another single line receive number simultaneously According to.Other lines are for shaking hands.The most important parameter of serial communication is baud rate, data bit, stop position and even-odd check.For two A to carry out current port, these parameters must match.
Baud rate is the parameter of a measurement communication speed, it indicates the number of the bit of transmission each second.Such as 300 wave Spy indicates that each second sends 300 bit.When we mention the clock cycle, we just refer to baud rate for example, if agreement needs 4800 baud rates are wanted, then clock is 4800Hz.This means that the sample rate of serial communication on the data line is 4800Hz.
Data bit is to measure the parameter of actual data bits in communication.When circuit board sends a packet, actual data It will not be 8, the value of standard is 7 and 8.How the information that transmission is thought depending on you is set.For example, the ASCII character of standard It is 0~127 (7).The ASCII character of extension is 0~255 (8).If data use simple text (standard ASCII character), So each data packet uses 7 data.Each packet refers to a byte, including beginning/stop position, data bit and even-odd check Position.Due to the case where actual data bits depend on the selection of communication protocol, and term " packet " refers to any communication.
Stop position is used for last position for indicating individually to wrap, and typical value is 1 and 2.Since data are on the transmission line Timing, and each equipment has the clock of their own, it is likely that and there is slight difference in two equipment rooms in the communications Step.Therefore stop position is not only to indicate the end of transmission, and provide circuit board correction clock synchronous chance.Suitable for stopping The digit of stop bit is more, and the synchronous degrees of tolerance of different clocks is bigger, but data transmission rate is also slower simultaneously.
A kind of parity check bit simple error detection mode in serial communication.There are four types of error detection modes: even, odd, high and low. Certainly also possible without check bit.Check bit (data bit subsequent one can be arranged in the case where for even summation odd, serial ports Position), ensure that the data transmitted have even or odd logic high with a value.For example, if data are 011, for Even parity check, check bit 0 guarantee that logically high digit is even number.If it is odd, check bit position 1, thus there are 3 Logic high.High-order and low level does not check data really, and simple set logic is high or logic low verifies.Make to touch in this way Screen is able to know that the state of a position, and having an opportunity to judge whether there is noise jamming communication or whether transmit and receive data is It is no asynchronous.
There are 2 kinds of transmission modes may be selected in ModBus system.The ability that this 2 kinds of transmission modes are communicated with capacitance plate is same Deng.Should be depending on ModBus host (circuit board) used when selection, each ModBus system can only use one mode, not permit Perhaps 2 kinds of modes are mixed.One mode is ASCII (U.S. information permuted code), and another mode is RTU (remote terminal equipment).
The desired mode of user's selection, including serial communication parameter (baud rate, verification mode etc.), are configuring each control When device, all devices on a Modbus network must all select identical transmission mode and serial ports parameter.
For the communication between PLC, RS-232 MODBUS two ways is ok, and is mainly seen and the PLC that connect Whether its function is had, one such mode can only be selected to be communicated.

Claims (3)

1. a kind of multi-functional communications circuit, which is characterized in that including,
RS-232 communication interface, for realizing the communication between touch screen and/or PLC by RS-232 communication protocol;
MODBUS ASCII and/or MODBUS RTU communication interface, for by ASCII mode or RTU mode is realized and capacitor Communication between screen, and/or realize the communication between PLC.
2. multi-functional communications circuit according to claim 1, which is characterized in that further include multiple-pulse delivery outlet, including 10 Axis, 14 axis or 28 axis pulses output, accordingly, are able to drive 5 groups, 7 groups or 14 groups high-speed pulse outputs, frequency 100K.
3. a kind of multi-functional communications circuit communication method is realized, specific method based on telecommunication circuit of any of claims 1 or 2 Including,
Realize that the communication between touch screen, serial ports step-by-step send and receive byte by RS-232 communication protocol;
The communication with capacitance plate, the desired mould of user's selection are realized by MODBUS ASCII mode or MODBUS RTU mode Formula, including serial communication parameter, when configuring each controller, all devices on a MODBUS network select phase Same transmission mode and serial ports parameter;Selected ASCII mode or RTU mode is only applicable to the MODBUS network of standard, definition Each of the message section continuously transmitted on the MODBUS network of standard, and decide how information package into message field How to decode;MODBUS message is turned into the frame unrelated with serial transmission on off-gauge MODBUS network;
The communication between PLC is realized by RS-232 communication interface or MODBUS communication interface.
CN201810792399.XA 2018-07-18 2018-07-18 A kind of multi-functional communications circuit and its communication means Pending CN109189710A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810792399.XA CN109189710A (en) 2018-07-18 2018-07-18 A kind of multi-functional communications circuit and its communication means

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810792399.XA CN109189710A (en) 2018-07-18 2018-07-18 A kind of multi-functional communications circuit and its communication means

Publications (1)

Publication Number Publication Date
CN109189710A true CN109189710A (en) 2019-01-11

Family

ID=64936298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810792399.XA Pending CN109189710A (en) 2018-07-18 2018-07-18 A kind of multi-functional communications circuit and its communication means

Country Status (1)

Country Link
CN (1) CN109189710A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7734359B2 (en) * 2005-11-14 2010-06-08 General Electric Company Systems and methods for capturing data within an intelligent electronic device
CN104400188A (en) * 2014-10-27 2015-03-11 南京理工大学泰州科技学院 Three-dimensional automatic welding system and welding control method thereof
CN105278437A (en) * 2014-06-16 2016-01-27 上海宝信软件股份有限公司 Modbus RTU/ASCII protocol realization method based on S7-300/400 PLC
CN205540716U (en) * 2016-02-03 2016-08-31 北京长城华瑞科技有限公司 System communication module

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7734359B2 (en) * 2005-11-14 2010-06-08 General Electric Company Systems and methods for capturing data within an intelligent electronic device
CN105278437A (en) * 2014-06-16 2016-01-27 上海宝信软件股份有限公司 Modbus RTU/ASCII protocol realization method based on S7-300/400 PLC
CN104400188A (en) * 2014-10-27 2015-03-11 南京理工大学泰州科技学院 Three-dimensional automatic welding system and welding control method thereof
CN205540716U (en) * 2016-02-03 2016-08-31 北京长城华瑞科技有限公司 System communication module

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵威: "基于Modbus_RTU协议转换器的监控器网络查询控制系统", 《中国优秀硕士学位论文全文数据库信息科技辑(月刊)》 *

Similar Documents

Publication Publication Date Title
CN103218331B (en) Synchronous mode is adopted to switch and the self-adjusting bus unit of frame priority and method
CN106528478B (en) A kind of monobus asynchronous serial communication system and its communication means
TW437173B (en) Method and apparatus for encoding and decoding a bit sequence for transmission over pots wiring
CN100521637C (en) Optical fiber-based high speed serial industrial real-time communication bus system and its control method
CN102972070B (en) System and method for using multiple network addresses to establish synchronization of a device under test and test equipment controlling the test
CN103414547B (en) A kind of main website controls method, main website and the system of many slave stations
CN101431390A (en) Circuit and method for data serial transmission
CN100489821C (en) Communication system for use between electronic devices and method thereof
CN102053935A (en) MODBUS serial communication protocol-based communication method
CN203120211U (en) Data conversion device of flexible LED driver and dimming system
CN100469046C (en) System, method and device for autonegotiation
CN108153688A (en) Serial isolation communication means and system
EP2856691B1 (en) Clock for serial communication device
CN101431389B (en) Circuit and its signal transmission method
CN106066838A (en) Extension module based on FPGA multichannel UART and extended method
CN202230378U (en) Motion control system with terminal capable of being expanded at will
CN109189710A (en) A kind of multi-functional communications circuit and its communication means
CN103368908A (en) Gateway protocol, gateway equipment and electrical equipment control system
CN110471882A (en) A kind of monobus telecommunication circuit and method
CN206097099U (en) UART expands module
Chhatrawala et al. FPGA based data acquisition with Modbus protocol
CN101751772B (en) Infrared remote control system for controlling household appliance and remote control method thereof
Ma et al. A sensor network for buildings based on the DALI bus
CN209015139U (en) A kind of I2C bus circuit, chip and system
CN114756498A (en) Chip, master control chip, chip communication method, chip array and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190111

RJ01 Rejection of invention patent application after publication