CN203658791U - Switching value input expander circuit - Google Patents

Switching value input expander circuit Download PDF

Info

Publication number
CN203658791U
CN203658791U CN201320821584.XU CN201320821584U CN203658791U CN 203658791 U CN203658791 U CN 203658791U CN 201320821584 U CN201320821584 U CN 201320821584U CN 203658791 U CN203658791 U CN 203658791U
Authority
CN
China
Prior art keywords
resistance
switching value
switch
value input
input
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.)
Expired - Fee Related
Application number
CN201320821584.XU
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.)
Beijing Sany Heavy Machinery Co Ltd
Original Assignee
Beijing Sany Heavy 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 Beijing Sany Heavy Machinery Co Ltd filed Critical Beijing Sany Heavy Machinery Co Ltd
Priority to CN201320821584.XU priority Critical patent/CN203658791U/en
Application granted granted Critical
Publication of CN203658791U publication Critical patent/CN203658791U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The utility model discloses a switching value input expander circuit, which comprises at least one resistor and at least one switch used for changing the magnitude of voltage applied across an AD input pin. The at least one resistor is in series connection between the power supply end and the grounding end of the circuit. One end of the at least one switch is used for being connected with the AD input pin, and the other end of the switch is used for being connected with one end of the at least one resistor. According to the technical scheme of the utility model, the switching value input expander circuit can be applied in conditions wherein the input ports of a programmable logic controller (PLC) are insufficient in quantity and are to be slightly expanded in the industrial application field, and can also be applied in the embedded display field. Moreover, by means of the circuit, the problem of the switching value input expansion due to the insufficient quantity of control key ports is solved.

Description

Switching value input expander
Technical field
The utility model relates to a kind of switching value input expander.
Background technology
Programmable logic controller (PLC) (Programmable Logic Controller, PLC) because volume is little, low in energy consumption, cost performance is high, antijamming capability is strong, the advantage such as easy to use of programming is widely used in industrial control field.But in actual application, often there is the digital quantity input inadequate problem of counting.For this reason, often take to change PLC model, install the way such as digital quantity and analog quantity spread module additional and solved.
In embedded microcontroller field, switching value input is often used to be designed to the operation push-button of display.The design of operation push-button generally has stand alone type and matrix form.
But, for PLC, increase the expansion of counting of the method input of expansion module although can utilize, somewhat expensive, and also installation, wiring, debugging are also very complicated; In embedded microcontroller field, although can utilize matrix keyboard to scan realization in the time that number of keys is more to the expansion of display operation button, but sometimes, the in the situation that of the many and controller resource-constrained of system control amount, reduce the shared director port number of operation push-button very necessary.
Utility model content
In view of this, the utility model proposes a kind of switching value input expander, count and need not the problem of the occasion of a small amount of expanded application and built-in field display button port switching value input expanding when inadequate to solve in industrial application PLC input.
On the one hand, a kind of switching value input expander is provided, for being connected with the AD input pin of controller, described switching value input expander comprises: at least one resistance and for changing at least one switch of magnitude of voltage of described AD input pin, described at least one resistance string is located between power end and ground end, one end of described at least one switch is for being connected with described AD input pin, and the other end is connected with one end of described at least one resistance.
Further, the quantity of described resistance is at least two, and the first end of the first resistance in described at least two resistance is connected with described power end, and the second end connects described AD input pin and connects; Described at least one switch is corresponding in parallel one by one with other resistance beyond the first resistance in described at least two resistance.
Further, the quantity of described at least two resistance is five, and the quantity of described at least one switch is four.
Further, described the first resistance and the resistance ratio of other four described resistance that connects are successively: 4:1:2:4:8.
Further, described the first resistance and the resistance ratio of other four described resistance that connects are successively: 4:1:2:4:2.5.
Further, the other end of described at least one switch is connected near one end of described power end with described at least one resistance.
Further, the quantity of described at least one switch is consistent with the quantity of described at least one resistance, and the other end of described at least switch is corresponding is one by one connected near one end of described power end with described at least one resistance.
Further, the resistance of described at least one resistance is identical.
Further, the quantity of described at least one resistance is eight.
When the utility model switching value input expander passes through according to switch connection, the resistance value difference of access controller AD input pin (being controller analog input port), thereby corresponding magnitude of voltage is also different, and then distinguish the access of different switching value, realizing only needs an AD switched pins can obtain several switching value input functions, do not need to communicate connection with controller, alleviated communication load; Solve in the industrial application PLC input problem that needs not the occasion of a small amount of expanded application, built-in field display and control button port switching value input expanding when inadequate of counting; One-piece construction making is simple and easy, cost is low, can meet general application requirements.
Accompanying drawing explanation
The accompanying drawing that forms a part of the present utility model is used to provide further understanding of the present utility model, and schematic description and description of the present utility model is used for explaining the utility model, does not form improper restriction of the present utility model.In the accompanying drawings:
The circuit diagram of the switching value input expander that Fig. 1 provides for the utility model embodiment mono-; For convenience of understanding, in Fig. 1, also show controller AD input pin.
The circuit diagram of the switching value input expander that Fig. 2 provides for the utility model embodiment bis-; For convenience of understanding, in Fig. 2, also show controller AD input pin.
Embodiment
It should be noted that, in the situation that not conflicting, the feature in embodiment and embodiment in the utility model can combine mutually.Describe below with reference to the accompanying drawings and in conjunction with the embodiments the utility model in detail.
The circuit diagram of the switching value input expander that Fig. 1 provides for the utility model embodiment mono-; For convenience of understanding, in Fig. 1, also show the AD input pin of controller; As shown in Figure 1, switching value input expander comprises: string is located at five resistance R 0, R1, R2, R3, the R4 between power end VCC and ground end successively; Four K switch 1, K2, K3, K4 are corresponding in parallel one by one with resistance R 1, R2, R3, R4 respectively; Resistance R 0(can be called the first resistance) first end be connected with described power end, the second end connects AD input pin and connects; Above-mentioned four K switch 1, K2, K3, K4 are for changing the magnitude of voltage of AD input pin.
The present embodiment is mainly realized each switch and is not independently interfere with each other mutually, when each switch motion should be made, there is unique separate state output, logic is as shown in table 1 with output on the occasion of table, in this table 1, explains take the value ratio of each resistance as R0:R1:R2:R3:R4=4:1:2:4:8; Also desirable other ratio value when concrete operations, as R0:R1:R2:R3:R4=4:1:2:4:2.5, as long as make 16 kinds of State-outputs in table 1 without repeating or incomparable more approximate situation (difference is larger as far as possible, is convenient to distinguish, and the size of difference can be determined according to actual conditions).
Table 1
State K switch 1 K switch 2 K switch 3 K switch 4 Vout(V)
1 0 0 0 0 18.9
2 0 0 0 1 15.3
3 0 0 1 0 17.6
4 0 0 1 1 10.3
5 0 1 0 0 18.3
6 0 1 0 1 13.3
7 0 1 1 0 16.6
8 0 1 1 1 4.8
9 1 0 0 0 18.7
10 1 0 0 1 14.4
11 1 0 1 0 17.1
12 1 0 1 1 8
13 1 1 0 0 18
14 1 1 0 1 12
15 1 1 1 0 16
16 1 1 1 1 0
The present embodiment is expanded 4 way switch amounts with 1 road analog input and is input as example and explains, when concrete operations, the quantity of each resistance and switch can be adjusted (one or more all can) according to actual needs, be understandable that, the switch of expansion is more, the grade that the magnitude of voltage (for a certain default fixed value) of power end is divided is also just more, difference between each grade is just less, when number of switches reaches after some, voltage difference between two different brackets may be very little, cause switch corresponding to these two different brackets to be difficult to distinguish, the switch of expansion is more, power supply recognition capability is lower.
The utility model is by the feature for the input of PLC switching value, it is the situation between each switching value with separate non-interfering feature, realizing only needs an AD switched pins can obtain several switching value input functions, do not need to communicate connection with controller, alleviated communication load; Solve in industrial application PLC input and counted and need not occasion and the inadequate problem of built-in field display button port of a small amount of expanded application; One-piece construction making is simple and easy, cost is low, can meet general application requirements.
The circuit diagram of the switching value input expander that Fig. 2 provides for the utility model embodiment mono-; For convenience of understanding, in Fig. 2, also show the AD input pin of controller; As shown in Figure 2, switching value input expander comprises: successively string be located at eight resistance R 1 of power end VCC between holding with ground ', R2 ', R3 ', R4 ', R5 ', R6 ', R7 ', R8 '; Eight K switch 1 ', one end of K2 ', K3 ', K4 ', K5 ', K6 ', K7 ', K8 ' is for being connected with AD input pin, the other end corresponding and eight resistance R 0 one by one ', one end of R1 ', R2 ', R3 ', R4 ', R5 ', R6 ', the close power end VCC of R7 ', R8 ' is connected; Above-mentioned eight K switch 1 ', K2 ', K3 ', K4 ', K5 ', K6 ', K7 ', K8 ' be for changing the magnitude of voltage of AD input pin.
The present embodiment is mainly used to identify synchronization and only has the situation of switching value input.It can be applied in the display button expansion in embedded microcontroller field, can utilize an AD input pin (being the AD input pin in Fig. 2) of microcontroller to carry out the input problem of multiple buttons.The present embodiment is counted many than expansion embodiment illustrated in fig. 1, accuracy of identification is high.Logic is as shown in table 2 with output on the occasion of table, in this table 2 with identical the explaining of resistance of each resistance; Also desirable different resistance of each resistance in the present embodiment when concrete operations.
Table 2
Wherein, this Vout is controller AD input pin voltage; The present embodiment is expanded 8 way switch amounts with 1 road analog input and is input as example and explains, and when concrete operations, the quantity of each resistance and switch can be adjusted (one or more all can) according to actual needs.
The present embodiment shows the input feature of operation push-button for embedded microcontroller, be that general synchronization only has a button to press effective situation, realizing only needs an AD switched pins can obtain several switching value input functions, do not need to communicate connection with controller, alleviated communication load; Solve in industrial application PLC input and counted and need not the occasion of a small amount of expanded application, built-in field display and control the inadequate problem of button port; One-piece construction making is simple and easy, cost is low, can meet general application requirements.
The foregoing is only preferred embodiment of the present utility model; not in order to limit the utility model; all within spirit of the present utility model and principle, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection domain of the present utility model.

Claims (9)

1. a switching value input expander, for being connected with the AD input pin of controller, it is characterized in that, described switching value input expander comprises: at least one resistance and for changing at least one switch of magnitude of voltage of described AD input pin, described at least one resistance string is located between power end and ground end, one end of described at least one switch is for being connected with described AD input pin, and the other end is connected with one end of described at least one resistance.
2. switching value input expander according to claim 1, is characterized in that, the quantity of described resistance is at least two, and the first end of the first resistance in described at least two resistance is connected with described power end, and the second end connects described AD input pin and connects; Described at least one switch is corresponding in parallel one by one with other resistance beyond the first resistance in described at least two resistance.
3. switching value input expander according to claim 2, is characterized in that, the quantity of described at least two resistance is five, and the quantity of described at least one switch is four.
4. switching value input expander according to claim 3, is characterized in that, the resistance ratio of described the first resistance and other four described resistance of connecting is successively: 4:1:2:4:8.
5. switching value input expander according to claim 3, is characterized in that, the resistance ratio of described the first resistance and other four described resistance of connecting is successively: 4:1:2:4:2.5.
6. switching value input expander according to claim 1, is characterized in that, the other end of described at least one switch is connected near one end of described power end with described at least one resistance.
7. switching value input expander according to claim 6, it is characterized in that, the quantity of described at least one switch is consistent with the quantity of described at least one resistance, and the other end of described at least switch is corresponding is one by one connected near one end of described power end with described at least one resistance.
8. switching value input expander according to claim 7, is characterized in that, the resistance of described at least one resistance is identical.
9. switching value input expander according to claim 8, is characterized in that, the quantity of described at least one resistance is eight.
CN201320821584.XU 2013-12-12 2013-12-12 Switching value input expander circuit Expired - Fee Related CN203658791U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201320821584.XU CN203658791U (en) 2013-12-12 2013-12-12 Switching value input expander circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201320821584.XU CN203658791U (en) 2013-12-12 2013-12-12 Switching value input expander circuit

Publications (1)

Publication Number Publication Date
CN203658791U true CN203658791U (en) 2014-06-18

Family

ID=50925164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201320821584.XU Expired - Fee Related CN203658791U (en) 2013-12-12 2013-12-12 Switching value input expander circuit

Country Status (1)

Country Link
CN (1) CN203658791U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882973A (en) * 2021-02-02 2021-06-01 浙江大华技术股份有限公司 Method and device for determining extended slot position, storage medium and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882973A (en) * 2021-02-02 2021-06-01 浙江大华技术股份有限公司 Method and device for determining extended slot position, storage medium and electronic equipment
CN112882973B (en) * 2021-02-02 2023-06-13 浙江大华技术股份有限公司 Method and device for determining expansion slot position, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN203206212U (en) Clock frequency division circuit, clock generation network and chip
CN203658791U (en) Switching value input expander circuit
CN203457140U (en) A circuit structure using a single IO port to expand a plurality of buttons
CN107122069A (en) Expansible portable intelligent device based on usb bus technology
CN201716839U (en) Concentrator provided with modularized communication module
CN105988549A (en) Electronic device having very low quiescent current
CN203038265U (en) General-purpose input/output (GPIO) multiplex circuit
CN102096385A (en) Circuit for expanding analog input channel by utilizing code division multiple access method
CN103095307B (en) A kind of matrix switch key
CN202261221U (en) General key board
CN105183097A (en) Novel key system and key confirmation method
CN202886881U (en) Full-hardware startup and shutdown circuit
CN202600622U (en) Novel matrix type keyboard circuit
CN207817640U (en) A kind of keyboard circuit based on NE555 multi-harmonic-oscillations
CN202600934U (en) Smart acquisition terminal with multiple communication modes
CN100377077C (en) Flow line circuit capable of bypass register and using said register
CN203965851U (en) Utilize the circuit of one-chip machine port output analog voltage
CN102708916A (en) Address jump output device and method
CN203311180U (en) Industrial controller operation panel achieving rapid switches between numbers and letters
CN204832915U (en) Power module based on PLC system
CN203995715U (en) A kind of external adjusting push button automobile combination meter
CN204131504U (en) A kind of key circuit of real-time detection button trigger state and game paddle
CN203465563U (en) Mining combined control switch
CN203775174U (en) Multi-functional control circuit based on multi-segment slide switch and electronic equipment
CN203104413U (en) Matrix switch type key

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140618

Termination date: 20151212

EXPY Termination of patent right or utility model