CN103257610B - The switching device shifter of PLC and PLC thereof - Google Patents

The switching device shifter of PLC and PLC thereof Download PDF

Info

Publication number
CN103257610B
CN103257610B CN201210035510.3A CN201210035510A CN103257610B CN 103257610 B CN103257610 B CN 103257610B CN 201210035510 A CN201210035510 A CN 201210035510A CN 103257610 B CN103257610 B CN 103257610B
Authority
CN
China
Prior art keywords
communication
switching
plc
shifter
module
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.)
Active
Application number
CN201210035510.3A
Other languages
Chinese (zh)
Other versions
CN103257610A (en
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.)
Siemens AG
Original Assignee
Siemens AG
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 Siemens AG filed Critical Siemens AG
Priority to CN201210035510.3A priority Critical patent/CN103257610B/en
Publication of CN103257610A publication Critical patent/CN103257610A/en
Application granted granted Critical
Publication of CN103257610B publication Critical patent/CN103257610B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides the switching device shifter of a kind of PLC, it comprises a first communication module (10), second communication mould (20) block and a mode switch module (50).First communication module is provided with first communication ends and a second communication end, and the first communication ends can communicate with cpu data.Second communication module is provided with a third communication end and the 4th communication ends, and third communication end can communicate with cpu data.Mode switch module comprises the signal of communication input end connecting second communication end, the signal of communication input end connecting the 4th communication ends, with the switching signal input end being connected CPU, the signal of communication of second communication end or the 4th communication ends is connected to user terminal by the switching signal that mode switch module can export according to CPU.By the present invention, the switching between the first communication pattern and second communication pattern can be completed by the control software design of CPU.Present invention also offers the PLC using this switching device shifter.

Description

The switching device shifter of PLC and PLC thereof
Technical field
The present invention relates to a kind of switching device shifter, particularly relate to the switching device shifter of two kinds of communication patterns in a kind of PLC.Present invention also offers the PLC using this switching device shifter.
Background technology
Usually two kinds of communication patterns can be had in programmable logic controller (PLC) (being called for short PLC), as the serial communication technology that RS232 and RS485 these two kinds often uses, PLC realizes exchanges data by RS232 or RS485 communication pattern and its user terminal (such as the industrial plants such as industrial control instrument, process equipment).The communication module realizing RS232 and/or RS485 function is integrated in the central processor unit (hereinafter referred to as CPU) of PLC usually.RS232 is the single-ended standard of low rate serial communication, and it can only support point point to-point communication.RS485 has extremely strong anti-common mode interference ability, and supports multipoint data Networked communication.
In commercially available PLC, in order to meet the needs of RS232 and RS485 two kinds of communication patterns in PLC respectively, needing to arrange respectively their respective communication port, or having been come by the module of discrete setting.Independently communication port is set and can increases the volume of a whole set of PLC; And when needing RS232 and RS485 two kinds of communication patterns in the use of PLC, user needs the standalone module buying RS232 and RS485 respectively, while a whole set of PLC volume of increase, also add use cost.
In addition, in the use of PLC, when RS232 and RS485 two kinds of communication patterns switch mutually, need the power supply first cutting off CPU, then manually adjust wiring corresponding with RS232 or RS485 in CPU, and also need switch communication mode in the control software design of CPU, complicated operation.
Summary of the invention
The object of this invention is to provide the switching device shifter of a kind of PLC, the switching between different data communication modes can be realized easily.
Another object of the present invention is to provide a kind of PLC, and its CPU is integrated with the data communication module of different patterns, and can control easily to switch between two kinds of communication patterns.
The invention provides the switching device shifter of a kind of PLC, it comprises a first communication module, a second communication module and a mode switch module.First communication module is provided with first communication ends and a second communication end, and the first communication ends can communicate with the cpu data of PLC.Second communication module is provided with a third communication end and the 4th communication ends, and third communication end can communicate with the cpu data of PLC.Mode switch module comprises the signal of communication input end connecting second communication end, the signal of communication input end connecting the 4th communication ends, with the switching signal input end of CPU being connected PLC, the signal of communication of second communication end or the 4th communication ends is connected to user terminal by the switching signal that mode switch module can export according to CPU.The switching device shifter of PLC, can complete the switching between the first communication pattern and second communication pattern by the control software design of CPU, without the need to CPU power-off with manually overlap tie line, greatly simplify the switching between plc data transmission mode.
In the switching device shifter of PLC and another schematic embodiment of PLC thereof, mode switch module is made up of relay circuit.
In the switching device shifter of PLC and the schematic embodiment of the another kind of PLC thereof, first communication module comprises a RS232 transceiver, and the first communication ends and second communication end are arranged in this RS232 transceiver.
In the switching device shifter of PLC and another schematic embodiment of PLC thereof, second communication module comprises a RS485 transceiver, and the 4th communication ends of third communication end is arranged in this RS485 transceiver.
In the switching device shifter of PLC and another schematic embodiment of PLC thereof, switching device shifter comprises a receiving port and a transmit port, switching device shifter is communicated with user terminal data with transmit port by receiving port, and second communication module also comprises first resistance and second resistance, one end of first resistance is connected to the connection branch road of second communication module and transmit port, and its other end is connected to the bias potential of switching device shifter; One end of second resistance is connected to the connection branch road of second communication module and receiving port, and its other end is connected to the common potential of switching device shifter.
Present invention also offers a kind of PLC, it comprises the switching device shifter of an a CPU and above-mentioned PLC.Switching device shifter can communicate with the user terminal data of CPU with PLC.
In another schematic embodiment of PLC, first communication module and second communication module are integrated on one piece of circuit board, and this circuit board is installed in CPU.
Hereafter by clearly understandable mode, accompanying drawings preferred embodiment, is further described the above-mentioned characteristic of the switching device shifter of PLC and PLC thereof, technical characteristic, advantage and implementation thereof.
Accompanying drawing explanation
The following drawings only schematically illustrates the present invention and explains, not delimit the scope of the invention.
Fig. 1 is for illustration of the structural representation of a kind of exemplary embodiment of switching device shifter of PLC.
Fig. 2 is for illustration of the structural representation of other exemplary embodiment of switching device shifter of PLC.
Label declaration
10 first communication modules
12 first communication ends
14 second communication ends
16RS232 transceiver
20 second communication modules
22 third communication ends
24 the 4th communication ends
26RS485 transceiver
30CPU
40 user terminals
50 mode switch module
60 receiving ports
70 transmit ports
R1 first resistance
R2 second resistance
Embodiment
In order to the technical characteristic to invention, object and effect have understanding clearly, now contrast accompanying drawing and the specific embodiment of the present invention is described, label identical in the various figures represents identical or the similar but part that function is identical of structure.
For making simplified form, only schematically show part related to the present invention in each figure, they do not represent its practical structures as product.In addition, be convenient to make simplified form understand, there are the parts of identical structure or function in some figure, only schematically depict one of them, or only marked one of them.
Herein, " first ", " second ", " the 3rd " and " the 4th " do not represent sequencing and significance level.In this article, " one " not only represents " only this ", also can represent the situation of " more than one ".
Fig. 1 is for illustration of the structural representation of a kind of exemplary embodiment of switching device shifter of PLC.As shown in the figure, the switching device shifter of PLC comprises a first communication module 10, second communication module 20 and a mode switch module 50.
Wherein, first communication module 10 is provided with first communication ends 12 and a second communication end 14, wherein the first communication ends 12 for CPU30 data communication, and second communication end 14 for user terminal 40 data communication.First communication module 10 receives the data message from CPU30 by the first communication ends 12, and these information is exported by its second communication end 14 according to specific first communication pattern; First communication module 10 also receives from the data message for terminal 40 by second communication end 14 in addition, and these information is converted to the discernible data of CPU and is sent to CPU30 by the first communication ends 12.In a kind of exemplary embodiment of the switching device shifter of PLC, the particular communication mode that first communication module 10 adopts is RS232 serial communication mode.
Second communication module 20 is provided with a third communication end 22 and the 4th communication ends 24, wherein third communication end 22 for CPU30 data communication, and the 4th communication ends 24 for user terminal 40 data communication.Second communication module 10 receives the data message from CPU30 by third communication end 22, and these information is exported by its 4th communication ends 24 according to specific second communication pattern; Second communication module 20 also receives from the data message for terminal 40 by the 4th communication ends 24 in addition, and these information is converted to the discernible data of CPU and is sent to CPU30 by third communication end 22.In a kind of exemplary embodiment of the switching device shifter of PLC, the particular communication mode that second communication module 20 adopts is RS485 serial communication mode.
Mode switch module 50 is in first communication module 10 and second communication module 20, with on the data transmission link of user terminal 40.Mode switch module 50 can receive the control signal S from CPU30 c.Control signal S ccontrollable mode handover module 50 sets up the tie line of second communication end 14 to the user terminal 40 of first communication module 10, or sets up the tie line of the 4th communication ends 24 to user terminal 40 of second communication module 20.
The switching device shifter of PLC, can complete the switching between the first communication pattern and second communication pattern by the control software design of CPU, without the need to CPU power-off with manually overlap tie line, greatly simplify the switching between plc data transmission mode.
In addition, the data communication mode between CPU and user terminal is not limited to above-mentioned RS232 and RS485, can also adopt other data communication modes of this area.The switching device shifter of PLC can also increase the quantity of communication module as required further to realize with the switching between multi-communication mode.
Fig. 2 is for illustration of the structural representation of other exemplary embodiment of switching device shifter of PLC.As shown in the figure, mode switch module 50 is realized by relay circuit.The relay circuit of mode switch module 50 comprises a bipolar transistor T1, a diode D1, a relay K 1, electric capacity C, a power supply VCC and a plurality of common ground end GND.
Wherein, the base stage of bipolar transistor T1 can receive the switching signal S from CPU30 c, its emitting stage is electrically connected on common ground end GND, and its collector is electrically connected on the anode of diode D1 and one end of relay K 1.The cathodic electricity of diode D1 is connected to one end of electric capacity C, and the other end of electric capacity C is electrically connected on the other end and the common ground end GND of relay K 1.Switching signal S cfor the low and high level that CPU30 exports, to control the conducting of bipolar transistor T1.
As the switching signal S of CPU30 cduring for high level, bipolar transistor T1 conducting, makes relay K 1 be energized, and makes the contact a of relay K 1 be connected to contact c, and contact b is connected to contact d, thus set up the tie line of second communication end 14 to user terminal 40 of first communication module 10.As the switching signal S of CPU30 cduring for low level, bipolar transistor T1 ends, and makes relay K 1 power-off, makes the contact a of relay K 1 be connected to contact e, and contact b is connected to contact f, thus set up the tie line of the 4th communication ends 24 to user terminal 40 of second communication module 20.
Certainly can also adopt the switching that other selection circuit realizes between the first communication pattern and second communication pattern, not repeat them here.
As shown in Figure 2, first communication module 10 comprises a RS232 transceiver 16, and it is by the first communication ends 12 and CPU30 data communication, and by second communication end 14 and user terminal 40 data communication.Second communication module 20 comprises a RS485 transceiver 26, and it is by third communication end 22 and CPU30 data communication, and by the 4th communication ends 24 and user terminal 40 data communication.
As shown in Figure 2, second communication module 20 also comprises a first resistance R1 and the second resistance R2, and the switching device shifter of PLC is provided with the switching device shifter of a receiving port RXD and transmit port TXD, PLC by receiving port RXD and transmit port TXD and user terminal 40 data communication.One end of first resistance R1 is electrically connected on the bias potential of+5V, and its other end is electrically connected on the branch road that second communication module 20 can be electrically connected on transmit port TXD.One end of second resistance R2 is electrically connected on common ground end GND, and its other end is electrically connected on the branch road that second communication module 20 can be electrically connected on receiving port RXD.First resistance R1 and the second resistance R2 is biasing resistor, and for RS485 communication pattern, the first resistance R1 and the second resistance R2 can effectively prevent the output signal of RS485 transceiver 26 from vibrating.In addition, first communication module and second communication module are by the public transmit port TXD of the switching device shifter of PLC and receiving port RXD and user terminal 40 data communication, and the switching device shifter avoiding PLC is provided separately and takies excessive space with the transmit port TXD of user terminal 40 data communication and receiving port RXD.
Present invention also offers a kind of PLC, it comprises the switching device shifter of an a CPU30 and above-mentioned PLC.Wherein, CPU is by user terminal 40 data communication of above-mentioned switching device shifter and PLC.
In PLC exemplary embodiment, first communication module 10 and second communication module 20 are integrated on one piece of circuit board, and this circuit board is installed in CPU30, can realize the space effectively utilized in CPU.
In this article, " schematically " expression " serves as example, example or explanation ", not should by being described to any diagram of " schematically " in this article, embodiment is interpreted as a kind of preferred or have more the technical scheme of advantage.
Be to be understood that, although this instructions describes according to each embodiment, but not each embodiment only comprises an independently technical scheme, this narrating mode of instructions is only for clarity sake, those skilled in the art should by instructions integrally, technical scheme in each embodiment also through appropriately combined, can form other embodiments that it will be appreciated by those skilled in the art that.
A series of detailed description listed is above only illustrating for possible embodiments of the present invention; they are also not used to limit the scope of the invention, all do not depart from the skill of the present invention Equivalent embodiments done of spirit or change all should be included within protection scope of the present invention.

Claims (7)

1. a switching device shifter of PLC, is characterized in that, it comprises:
A first communication module (10), it is provided with first communication ends (12) and a second communication end (14), described first communication ends (12) can with the CPU of described PLC (30) data communication;
A second communication module (20), it is provided with a third communication end (22) and the 4th communication ends (24), described third communication end (22) can with the CPU of described PLC (30) data communication; With
A mode switch module (50), it comprises the signal of communication input end connecting described second communication end (14), the signal of communication input end connecting described 4th communication ends (24), with the switching signal input end of CPU (30) being connected described PLC, under the control of the control software design of described CPU, the signal of communication of described second communication end (14) or described 4th communication ends (24) is connected to user terminal (40) by the switching signal that described mode switch module (50) can export according to described CPU (30)
Described switching device shifter comprises a receiving port (RXD) and a transmit port (TXD), and the described first communication module (10) of described switching device shifter and described second communication module (20) are all by described receiving port (RXD) and described transmit port (TXD) and described user terminal (40) data communication.
2. switching device shifter as claimed in claim 1, wherein said mode switch module (50) is made up of relay circuit.
3. switching device shifter as claimed in claim 1, wherein said first communication module (10) comprises a RS232 transceiver (16), and described first communication ends (12) and described second communication end (14) are arranged in this RS232 transceiver (16).
4. switching device shifter as claimed in claim 1, wherein said second communication module (20) comprises a RS485 transceiver (26), and described 4th communication ends (24) of described third communication end (22) is arranged in this RS485 transceiver (26).
5. switching device shifter as claimed in claim 1, wherein:
Described second communication module (20) also comprises first resistance (R1) and second resistance (R2), one end of described first resistance (R1) is connected to the connection branch road of described second communication module (20) and described transmit port (TXD), and its other end is connected to the bias potential of described switching device shifter; One end of described second resistance (R2) is connected to the connection branch road of described second communication module (20) and described receiving port (RXD), and its other end is connected to the common potential of described switching device shifter.
6. a PLC, is characterized in that, it comprises:
A CPU (30); With
A switching device shifter as described in claim 1 to 5 any one, described switching device shifter can with user terminal (40) data communication of described CPU and described PLC.
7. PLC as claimed in claim 6, wherein said first communication module (10) and described second communication module (20) are integrated on one piece of circuit board, and this circuit board is installed in described CPU (30).
CN201210035510.3A 2012-02-16 2012-02-16 The switching device shifter of PLC and PLC thereof Active CN103257610B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210035510.3A CN103257610B (en) 2012-02-16 2012-02-16 The switching device shifter of PLC and PLC thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210035510.3A CN103257610B (en) 2012-02-16 2012-02-16 The switching device shifter of PLC and PLC thereof

Publications (2)

Publication Number Publication Date
CN103257610A CN103257610A (en) 2013-08-21
CN103257610B true CN103257610B (en) 2016-03-09

Family

ID=48961586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210035510.3A Active CN103257610B (en) 2012-02-16 2012-02-16 The switching device shifter of PLC and PLC thereof

Country Status (1)

Country Link
CN (1) CN103257610B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103792876B (en) * 2014-03-07 2014-11-12 安徽大学 Programmable logic controller bringing convenience to communication

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03251902A (en) * 1990-03-01 1991-11-11 Fuji Electric Co Ltd Programming device for programmable controller
CN101140557A (en) * 2007-10-23 2008-03-12 中兴通讯股份有限公司 System and method of RS232/RS48 compatibility interface
CN101520763A (en) * 2009-04-16 2009-09-02 成都市华为赛门铁克科技有限公司 Method for switching serial ports and sharing device of serial ports
CN101719112A (en) * 2009-11-19 2010-06-02 北京东方信联科技有限公司 Half-duplex automatic receiving-transmitting switching circuit of RS485
CN102033833A (en) * 2009-09-25 2011-04-27 研祥智能科技股份有限公司 Serial port communication switching method and serial port communication system
CN202794946U (en) * 2012-02-16 2013-03-13 西门子公司 Switching device of PLC (programmable logic controller) and PLC applying same

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM249116U (en) * 2004-01-08 2004-11-01 Uis Abler Electronics Co Ltd Switching device for RS-232 serial port and USB serial port
CN1842091A (en) * 2005-03-28 2006-10-04 无锡蓝天电子有限公司 Automatic switching device of serial port RS232 and RS485
CN102143238B (en) * 2010-12-30 2014-01-22 华为技术有限公司 Communication interface, switching circuit and switching method of communication interfaces

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03251902A (en) * 1990-03-01 1991-11-11 Fuji Electric Co Ltd Programming device for programmable controller
CN101140557A (en) * 2007-10-23 2008-03-12 中兴通讯股份有限公司 System and method of RS232/RS48 compatibility interface
CN101520763A (en) * 2009-04-16 2009-09-02 成都市华为赛门铁克科技有限公司 Method for switching serial ports and sharing device of serial ports
CN102033833A (en) * 2009-09-25 2011-04-27 研祥智能科技股份有限公司 Serial port communication switching method and serial port communication system
CN101719112A (en) * 2009-11-19 2010-06-02 北京东方信联科技有限公司 Half-duplex automatic receiving-transmitting switching circuit of RS485
CN202794946U (en) * 2012-02-16 2013-03-13 西门子公司 Switching device of PLC (programmable logic controller) and PLC applying same

Also Published As

Publication number Publication date
CN103257610A (en) 2013-08-21

Similar Documents

Publication Publication Date Title
CN101404001B (en) Serial port signal and USB signal compatible control circuit board and communication data cable
CN203658996U (en) Chip interface multiplex circuit and mobile terminal
CN103257610B (en) The switching device shifter of PLC and PLC thereof
CN202794946U (en) Switching device of PLC (programmable logic controller) and PLC applying same
CN202111685U (en) Extensible switch matrix plate
CN103178580A (en) Interface circuit used for cascade connection and series battery management and method thereof
CN106105120A (en) Dispensing device and communication system
CN103108446B (en) Switchboard internet access indicator light multi-status display system
CN104678809A (en) Universal sensor control equipment and system
CN202189359U (en) Multiplexing equipment
CN205105240U (en) Communication circuit
CN104216744B (en) A kind of online burning equipment
CN105515607A (en) Communication circuit
CN103294637B (en) Based on the Magnetic isolation data input/output module of ARM adaptive direction control
CN202948445U (en) Universal serial bus (USB) interface expansion circuit
CN105262388B (en) Driving device for step-by-step and step motor control system
CN105281748A (en) Isolated signal transfer device, isolation signal transmission circuit and isolation signal receiving circuit
CN103475421B (en) A kind of SFF2X10 optical transceiver module
CN103674329B (en) A kind of calibration system of temperature transmitter
CN203535933U (en) LED lamp plate
CN105259989A (en) Method for achieving multisource compatibility of notebook on-board memory
CN213403041U (en) Universal network test bench capable of configuring vehicle types at will
CN202041846U (en) Equipment for simulation system to be communicated with electronic control unit through different buses
CN205139898U (en) Thing networking hardware development board
CN201336712Y (en) Network jumper wire rack

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
C14 Grant of patent or utility model