CN101882125A - Serial communication interface time sharing multiplex device based on programmable logic controller - Google Patents
Serial communication interface time sharing multiplex device based on programmable logic controller Download PDFInfo
- Publication number
- CN101882125A CN101882125A CN2010102102622A CN201010210262A CN101882125A CN 101882125 A CN101882125 A CN 101882125A CN 2010102102622 A CN2010102102622 A CN 2010102102622A CN 201010210262 A CN201010210262 A CN 201010210262A CN 101882125 A CN101882125 A CN 101882125A
- Authority
- CN
- China
- Prior art keywords
- interface
- programmable logic
- plc
- logic controller
- rs232c
- 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.)
- Granted
Links
Images
Landscapes
- Communication Control (AREA)
- Programmable Controllers (AREA)
Abstract
The invention relates to a serial communication interface time sharing multiplex device based on a programmable logic controller, which is characterized in that one RS-232C interface of a programmable logic controller (PLC) is simultaneously connected with two or more than two pieces of equipment carrying out communication through the RS-232C interface. ( wherein RS refers to the recommended standard, 232 refers to the identifier and C refers to the last revision) and belongs to the technical field of automatic control equipment. The RS-232C interface on the programmable logic controller in the device is firstly connected with the RS-232C interface of a first RS485/RS232C converter; the RS485 interface of the first RS485/RS232C converter is connected with two RS485/RS232C converters in parallel; the two RS485/RS232C converters are respectively connected with external equipment carrying out communication with different programmable logic controllers through the normally open contact and the normally closed contact of a relay. In the invention, the RS-232C interface of a PLC native is simultaneously connected with two or more than two pieces of equipment carrying out communication through the RS-232C interface, and thereby, the hardware cost of a communication port expansion module is saved.
Description
Technical field
The invention belongs to the automatic control equipment technical field, a RS-232C interface that relates to a programmable logic controller (PLC) of a kind of usefulness (PLC) connects two or more a kind of serial communication interface time sharing multiplex devices based on programmable logic controller (PLC) that carry out the equipment of communication by the RS-232C interface simultaneously.
Background technology
At present, most programmable logic controller (PLC) (PLC) only is with a RS-232C interface, according to the operating characteristic of RS-232C interface, the RS-232C interface can only be man-to-man use-pattern, so programmable logic controller (PLC) (PLC) can only connect a RS-232C interface communication equipment.
If programmable logic controller (PLC) (PLC) needs the RS-232C interface communication equipment of control more than two, just need to increase the communication port expansion module, because this machine of PLC can free communication to the serial ports that carries, visit full memory address, the communication interface of expansion then can't directly be visited the memory address of this machine of programmable logic controller (PLC) (PLC), need be undertaken alternately by the memory address of the memory address on the expansion module and this machine.Because the memory address on the expansion module is seldom, this in the use-pattern of rotatable access memory address, communication efficiency is reduced greatly.So use RS-232 communication port expansion module to connect plural RS-232C interface communication equipment, not only increase cost but also the efficient of communication is reduced.
Summary of the invention
The object of the present invention is to provide a RS-232C interface of a PLC controller of a kind of usefulness to connect two or more a kind of serial communication interface time sharing multiplex devices that carry out the equipment of communication by the RS-232C interface simultaneously based on programmable logic controller (PLC).
Technical solution of the present invention is: device comprises programmable logic controller (PLC), the RS485/RS232C converter, relay reaches the external equipment with the programmable logic controller (PLC) communication, RS-232C interface on the programmable logic controller (PLC) is connected with the RS-232C interface of a RS485/RS232C converter earlier, the RS485 interface of the one RS485/RS232C converter two RS485/RS232C converters in parallel, the one RS485/RS232C converter is connected with the RS485 interface of the 2nd RS485/RS232C converter by the normally opened contact of relay, the normally closed contact of the one RS485/RS232C converter by relay is connected with the RS485 interface of the 3rd RS485/RS232C converter, and the RS-232C interface of the 2nd RS485/RS232C converter of parallel connection and the RS-232C interface of the 3rd RS485/RS232C converter join with the different external equipment with the programmable logic controller (PLC) communication respectively.
The RS485 interface of a described RS485/RS232C converter is determined the quantity of RS485/RS232C converter in parallel according to the connect and the quantity of the external equipment of programmable logic controller (PLC) communication.
Advantage that the present invention has and beneficial effect, the present invention uses a RS-232C interface of this machine of programmable logic controller (PLC) (PLC) to connect two or more external equipments that carry out communication by the RS-232C interface simultaneously, need not to adopt conventional expansion communication module mode.Because the RS-232C interface of this machine of programmable logic controller (PLC) (PLC) can directly be visited the full memory address of PLC, expansion communication module mode then can't directly be visited the memory address of this machine of programmable logic controller (PLC) (PLC), need be undertaken by the memory address of the memory address on the expansion module and this machine alternately, promptly when receiving data, the communication data that needs earlier external communication apparatus to be sent is stored on the memory address of expansion communication module, then PLC again with this data read in the memory address of this machine; Direction is opposite when sending data, promptly PLC earlier will deposit data to be sent to the memory address of expanding communication module, and then these data are sent on the external communication apparatus.Simultaneously since the memory address on the expansion communication module seldom, when sending mass data, need carry out aforesaid operations repeatedly and just can finish a data interaction.So in this using method significant prolongation of rotatable access memory communication time, communication efficiency is reduced greatly.So the present invention had both saved the hardware cost (this expansion communication module often price than PLC itself is also expensive) of expansion communication module, communication efficiency far above expansion communication module pattern, has not only efficient but also economic characteristics again, is fit to large-area popularization.
Description of drawings
Fig. 1 is a connection diagram of the present invention.
Embodiment
See accompanying drawing 1, the RS-232C interface that the present invention includes PLC controller 1 is connected with RS485/RS232C converter 2 earlier, serial ports 232 conversion of signals of PLC controller 1 are become serial ports 485 signals, this 485 signal parallel connection again is divided into two-way, the normally opened contact of relay K 5 of leading up to is connected with 485 interfaces of RS485/RS232C converter 4, and the RS-232C interface of this RS485/RS232C converter 4 is connected with the RS-232C interface of first external equipment 6 again; Another road is connected with 485 interfaces of RS485/RS232C converter 5 by the normally closed contact of relay K 5, and the RS-232C interface of this RS485/RS232C converter 5 is connected with the RS-232C interface of second external equipment 6 again.The break-make of switching value output control relay K5 by PLC controller 1 realizes the time-sharing multiplex function of the PLC controller 1 and first external equipment 6 and second external equipment 6.Plural in this way communication apparatus, principle is the same, only needs to increase the quantity of relay and RS485/RS232C converter, and the normally-open normally-close contact combination with relay allows each external communication apparatus mutual exclusion get final product simultaneously.
Embodiment
The RS-232C interface that includes PLC controller 1 is connected with RS485/RS232C converter 2 earlier, serial ports 232 conversion of signals of PLC controller 1 are become serial ports 485 signals, this 485 signal parallel connection again is divided into 3 the tunnel, the normally closed contact of normally opened contact series relay K6 of relay K 5 of leading up to is connected with 485 interfaces of RS485/RS232C converter 3, and the RS-232C interface of this RS485/RS232C converter 3 is connected with the RS-232C interface of article one code reader 6 again; Another road is connected with 485 interfaces of RS485/RS232C converter 4 by the normally closed contact of the normally closed contact series relay K6 of relay K 5, and the RS-232C interface of this RS485/RS232C converter 4 is connected with the RS-232C interface of bar code printer 6 again; Third Road is connected with 485 interfaces of RS485/RS232C converter 5 by the normally closed contact of the normally opened contact series relay K5 of relay K 6, and the RS-232C interface of this RS485/RS232C converter 5 is connected with the RS-232C interface of second code reader 6 again.By the switching value output difference pilot relay K5 of PLC controller 1 and the break-make of K6, realize the time-sharing multiplex function of PLC controller 1 and article one code reader 6, second code reader 6 and bar code printer 6.Utilize to increase relay and RS485/RS232C converter quantity in this example, adopt the normally-open normally-close contact combination of relay allow the method for each external communication apparatus mutual exclusion, realized the timesharing communication function of 3 external communication apparatus and PLC.
Claims (2)
1. serial communication interface time sharing multiplex device based on programmable logic controller (PLC), it is characterized in that, device comprises programmable logic controller (PLC) (1), RS485/RS232C converter (2,4,5), relay (K5) reaches the external equipment (6) with programmable logic controller (PLC) (1) communication, RS-232C interface on the programmable logic controller (PLC) (1) is connected with the RS-232C interface of a RS485/RS232C converter (2) earlier, the RS485 interface of the one RS485/RS232C converter (2) two RS485/RS232C converters (4 and 5) in parallel, the one RS485/RS232C converter (2) is connected with the RS485 interface of the 2nd RS485/RS232C converter (4) by the normally opened contact of relay (K5), the normally closed contact of the one RS485/RS232C converter (2) by relay (K5) is connected with the RS485 interface of the 3rd RS485/RS232C converter (5), and the RS-232C interface of the 2nd RS485/RS232C converter (4) of parallel connection and the RS-232C interface of the 3rd RS485/RS232C converter (5) join with the different external equipment (6) with programmable logic controller (PLC) (1) communication respectively.
2. a kind of serial communication interface time sharing multiplex device according to claim 1 based on programmable logic controller (PLC), it is characterized in that the RS485 interface of a described RS485/RS232C converter (2) is determined the quantity of RS485/RS232C converter in parallel according to the connect and the quantity of the external equipment (6) of programmable logic controller (PLC) (1) communication.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010210262.2A CN101882125B (en) | 2010-06-28 | 2010-06-28 | Serial communication interface time sharing multiplex device based on programmable logic controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010210262.2A CN101882125B (en) | 2010-06-28 | 2010-06-28 | Serial communication interface time sharing multiplex device based on programmable logic controller |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101882125A true CN101882125A (en) | 2010-11-10 |
CN101882125B CN101882125B (en) | 2015-06-10 |
Family
ID=43054141
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010210262.2A Active CN101882125B (en) | 2010-06-28 | 2010-06-28 | Serial communication interface time sharing multiplex device based on programmable logic controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101882125B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102760111A (en) * | 2012-06-27 | 2012-10-31 | 浙江大学 | FPGA-based (Field Programmable Gate Array) extended multi-serial port device and data receiving-transmitting method thereof |
CN103885349A (en) * | 2014-03-12 | 2014-06-25 | 安徽省(水利部淮河水利委员会)水利科学研究院 | Device for controlling multiplexing of communication serial ports of instrument |
CN104049619A (en) * | 2014-06-30 | 2014-09-17 | 北京煜能电仪自动化技术有限公司 | Switching device remote monitoring terminal shared by remote control loop and remote communication loop |
CN104853044A (en) * | 2015-05-13 | 2015-08-19 | 惠州Tcl移动通信有限公司 | Time division multiplexing device of MIPI interface and parallel port, method thereof and mobile terminal |
CN110119124A (en) * | 2018-02-06 | 2019-08-13 | 莫布林 | Equipment combines control mode |
CN111007672A (en) * | 2019-12-05 | 2020-04-14 | 苏州精濑光电有限公司 | Macroscopic inspection machine for display panel and communication line switching device thereof |
CN112671929A (en) * | 2021-01-04 | 2021-04-16 | 薛金山 | Time-sharing multiplexing method for communication interfaces of old secondary water supply equipment |
CN112859729A (en) * | 2021-01-18 | 2021-05-28 | 杭州好一科技有限公司 | Circuit structure for multi-path sharing of DO port |
CN117587522A (en) * | 2024-01-19 | 2024-02-23 | 苏州优晶半导体科技股份有限公司 | Silicon carbide crystal growth equipment with high-precision cooling control and control method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1069799C (en) * | 1996-08-09 | 2001-08-15 | 研华股份有限公司 | Transmission converter of personal computer and equipment for communication |
US6446147B1 (en) * | 1999-05-13 | 2002-09-03 | Lucent Technologies Inc. | Wired-or connection in differential transmission environment |
CN101510184A (en) * | 2009-03-13 | 2009-08-19 | 上海微电子装备有限公司 | Multichannel serial communications system and control method thereof |
-
2010
- 2010-06-28 CN CN201010210262.2A patent/CN101882125B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1069799C (en) * | 1996-08-09 | 2001-08-15 | 研华股份有限公司 | Transmission converter of personal computer and equipment for communication |
US6446147B1 (en) * | 1999-05-13 | 2002-09-03 | Lucent Technologies Inc. | Wired-or connection in differential transmission environment |
CN101510184A (en) * | 2009-03-13 | 2009-08-19 | 上海微电子装备有限公司 | Multichannel serial communications system and control method thereof |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102760111A (en) * | 2012-06-27 | 2012-10-31 | 浙江大学 | FPGA-based (Field Programmable Gate Array) extended multi-serial port device and data receiving-transmitting method thereof |
CN102760111B (en) * | 2012-06-27 | 2015-05-20 | 浙江大学 | FPGA-based (Field Programmable Gate Array) extended multi-serial port device and data receiving-transmitting method thereof |
CN103885349A (en) * | 2014-03-12 | 2014-06-25 | 安徽省(水利部淮河水利委员会)水利科学研究院 | Device for controlling multiplexing of communication serial ports of instrument |
CN104049619A (en) * | 2014-06-30 | 2014-09-17 | 北京煜能电仪自动化技术有限公司 | Switching device remote monitoring terminal shared by remote control loop and remote communication loop |
CN104853044A (en) * | 2015-05-13 | 2015-08-19 | 惠州Tcl移动通信有限公司 | Time division multiplexing device of MIPI interface and parallel port, method thereof and mobile terminal |
CN110119124A (en) * | 2018-02-06 | 2019-08-13 | 莫布林 | Equipment combines control mode |
CN111007672A (en) * | 2019-12-05 | 2020-04-14 | 苏州精濑光电有限公司 | Macroscopic inspection machine for display panel and communication line switching device thereof |
CN112671929A (en) * | 2021-01-04 | 2021-04-16 | 薛金山 | Time-sharing multiplexing method for communication interfaces of old secondary water supply equipment |
CN112671929B (en) * | 2021-01-04 | 2022-07-01 | 薛金山 | Time-sharing multiplexing method for communication interfaces of old secondary water supply equipment |
CN112859729A (en) * | 2021-01-18 | 2021-05-28 | 杭州好一科技有限公司 | Circuit structure for multi-path sharing of DO port |
CN117587522A (en) * | 2024-01-19 | 2024-02-23 | 苏州优晶半导体科技股份有限公司 | Silicon carbide crystal growth equipment with high-precision cooling control and control method |
CN117587522B (en) * | 2024-01-19 | 2024-05-14 | 苏州优晶半导体科技股份有限公司 | Silicon carbide crystal growth equipment with high-precision cooling control and control method |
Also Published As
Publication number | Publication date |
---|---|
CN101882125B (en) | 2015-06-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101882125A (en) | Serial communication interface time sharing multiplex device based on programmable logic controller | |
CN202602678U (en) | Expansion circuit with multiple CAN (Controller Area Network) channel interfaces | |
CN105373079B (en) | A kind of motion controller and servo-driver cooperative control system | |
CN110471880A (en) | A kind of ARINC429 bus module and its data transmission method for supporting No. Label screening based on FPGA | |
CN202772914U (en) | General communication interface interconnection system | |
CN102662383B (en) | Realizing method for controlling chain of chain control system | |
CN103105839A (en) | Intelligent network control system and method of fracturing device | |
CN108521412A (en) | Data collector, data collecting system and collecting method | |
CN107145465A (en) | Transfer control method, the apparatus and system of serial peripheral equipment interface SPI | |
CN102263709A (en) | Gateway for realizing communication transformation between EtherCAT (Ethernet for control and automation technology) and RS485 and communication method thereof | |
CN105353683A (en) | MBUS-based multifunctional energy consumption data acquisition controller | |
CN202535392U (en) | Protocol conversion device | |
CN103916488A (en) | Method and device for bidirectional address configuration of parallel display control system | |
CN204203718U (en) | Based on the PLC wireless control system of Arduino | |
CN102096650B (en) | Interface device | |
CN206361659U (en) | A kind of relay client/server system | |
CN202221317U (en) | Digital input output interface expanding device for testing vehicle electronic products | |
CN205139637U (en) | Multi -functional energy consumption data acquisition controller based on MBUS | |
CN210377133U (en) | Master-slave configurable PLC controller based on CAN bus | |
CN201616012U (en) | Main controller device used for high-voltage frequency converter modular design | |
CN102331762A (en) | Control system implemented by mode that master station writes in address codes by RS-485 buses and method thereof | |
CN204556718U (en) | A kind of based on monolithic processor controlled hyperchannel small area analysis real-time acquisition system | |
CN208334957U (en) | A kind of exhaust gas concentration control system | |
CN103945018A (en) | Parallel display system and bi-directional address configuration method thereof | |
CN105182838A (en) | Intelligent terminal processing circuit suitable for building intelligence |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |