Instrument built-in NPN / PNP switching value signal converter

By setting up an NPN/PNP switching signal converter inside the test instrument, and using a photoelectric coupler and a switch to adjust the current direction, the problem of PLC interface signal incompatibility is solved, the instrument can be adapted to different PLCs, and the wiring is simplified and Improved reliability.

CN221633724UActive Publication Date: 2024-08-30CHANGZHOU HAOYI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202323188684.6
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2023-11-25
Publication Date
2024-08-30
Estimated Expiration
2033-11-25

AI Technical Summary

Technical Problem

The PLC interface signals of existing test instruments are often incompatible with the signals required by the PLC, resulting in signal mismatch when connected to the PLC, increasing wiring complexity and cost, and reducing the reliability of the equipment.

Method used

An NPN/PNP switching signal converter is set up inside the test instrument, and the current direction is adjusted through the photoelectric coupler and switch to realize the adaptation of the instrument to different types of PLC. It contains two power supplies and switch switches with opposite current directions to adapt to the PLC. Sink current output or source current output.

Benefits of technology

It effectively solves the problem of signal incompatibility, simplifies the wiring process, reduces costs, and improves the compatibility and reliability of the instrument and PLC.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221633724U
    Figure CN221633724U
Patent Text Reader

Abstract

The utility model discloses a built-in NPN / PNP switching value signal converter of an instrument, and relates to the technical field of NPN / PNP switching value signal conversion. The conversion circuit is connected with the photoelectric coupler, so that the instrument is matched with the NPN type PLC or the PNP type PLC; wherein the conversion circuit comprises two power supplies with opposite current directions and corresponds to a change-over switch on the photoelectric coupler, and the current direction when the PLC is connected to the photoelectric coupler is adjusted through the change-over switch. According to the instrument built-in NPN / PNP switching value signal converter of the utility model, two power supplies with opposite current directions are built in the instrument, and a communication input circuit of an instrument interface is switched through the change-over switch, so that the switching value of the instrument is greatly improved. The technical problem that PLC interface signals of an existing testing instrument are possibly incompatible with signals required by the PLCs is effectively solved, and then the purpose that the instrument is matched with different PLCs is achieved so as to cope with sink current output (NPN) or pull current output (PNP) of the PLCs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of NPN / PNP switch quantity signal conversion, in particular to an instrument built-in NPN / PNP switch quantity signal converter. Background Art

[0002] At present, PLC and various test instruments form industrial test systems and have been widely used. However, in actual applications, it is found that PLCs of different brands and models require different DC input / output signals. PLC digital logic input or output has two types: NPN and PNP. Japanese PLCs are mostly NPN type with sink output. European PLCs are mostly PNP type with source output. However, the communication interface of most test instruments can only receive one type of PLC output signal, which may cause incompatibility between the test instrument and the PLC signal. When the external signal connected to the PLC is wrong, the PLC or instrument will not work properly.

[0003] In order to solve the problem of incompatible communication signals, users usually need to connect an external conversion circuit to achieve the following (refer to Figure 1 and Figure 2 shown):

[0004] Since the measuring instrument that only receives NPN signals as input cannot communicate directly with the PLC with PNP output, the above figure adds an additional signal conversion circuit and an additional set of external power supplies (EX-VCC and EX-GND) between the two. The Q1 transistor here acts as a switch. When the PLC outputs, EX-VCC is applied to the base of Q1, the transistor is in saturation, and its Vce approaches zero, which makes the collector and emitter of the Q1 transistor almost short-circuited. In the internal communication interface circuit of the measuring instrument, the OPT1 photocoupler works. The output signal of the OPT1 photocoupler can be fed back to the CPU inside the instrument, so that it can process the received PLC signal.

[0005] However, this will lead to problems such as complicated wiring, increased costs, and reduced overall reliability of the test equipment. To this end, we propose an instrument-built-in NPN / PNP switch signal converter. Utility Model Content

[0006] 1. Technical issues to be resolved

[0007] In view of the shortcomings of the prior art, the utility model provides an instrument with a built-in NPN / PNP switching signal converter, which adjusts the current direction when different PLCs are connected to the circuit by setting a switching circuit, thereby solving the technical problem that the PLC interface signal of the existing test instrument may be incompatible with the signal required by the PLC.

[0008] (II) Technical solution

[0009] In order to achieve the above objectives, the present invention is implemented through the following technical solutions:

[0010] An instrument has a built-in NPN / PNP switch signal converter, which is arranged inside the instrument and is used to convert a signal sent by a PLC. The signal converter includes:

[0011] Optocoupler OPT1 for AC;

[0012] A conversion circuit is connected to the photocoupler OPT1 to adapt the instrument to the NPN type PLC or the PNP type PLC;

[0013] The conversion circuit includes two power supplies VCC with opposite current directions, which correspond to the switching switches on the photocoupler OPT1. The current direction when the PLC is connected to the photocoupler OPT1 is adjusted by the switching switches.

[0014] Preferably, the switch includes a first switch K1 and a second switch K2, and the free ends of the two switches K1 and K2 correspond to the terminals of the power supply VCC;

[0015] The fixed end of the first switch K1 is connected to the two input ends of the photocoupler OPT1 through a wire, and a pull-up resistor R1 is connected to one of the wires, so that a voltage difference is formed between the two input ends of the photocoupler OPT1;

[0016] The fixed end of the second switch K2 is connected to the common terminal of the instrument.

[0017] Preferably, one of the input terminals of the photoelectric coupler OPT1 is connected to the input terminal of the instrument, and a current limiting resistor R2 is arranged between the two.

[0018] Preferably, when the PLC is connected to an instrument, the common terminal and output end of the PLC are connected to the common terminal and input end of the instrument respectively.

[0019] (III) Beneficial effects

[0020] Since two power supplies with opposite current directions are built into the instrument, and the communication input circuit of the instrument interface is switched by a switch, the technical problem that the PLC interface signal of the existing test instrument may be incompatible with the signal required by the PLC is effectively solved, thereby achieving the purpose of adapting the instrument to different PLCs to cope with the PLC's current sinking output (NPN) or current sourcing output (PNP). BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The above description is only an overview of the technical solution of the utility model. In order to more clearly understand the technical means of the utility model and implement it according to the contents of the specification, the following is a detailed description of the preferred embodiments of the utility model in conjunction with the accompanying drawings.

[0022] Figure 1 is a block diagram of an existing external conversion circuit;

[0023] Figure 2 It is the principle diagram of the existing external conversion circuit;

[0024] Figure 3 This is a flowchart of a built-in NPN / PNP switch signal converter in an embodiment of the utility model;

[0025] Figure 4 This is a schematic diagram of the connection between the instrument and the PLC with NPN output in the embodiment of the utility model;

[0026] Figure 5 This is a schematic diagram of the connection between the instrument and a PLC with PNP output in an embodiment of the utility model.

[0027] Legend: OPT1, photocoupler; R1, pull-up resistor; R2, current limiting resistor; VCC, power supply; K1, first switch; K2, second switch. DETAILED DESCRIPTION

[0028] The embodiment of the present application provides an instrument with a built-in NPN / PNP switching signal converter to solve the technical problem that the PLC interface signal of the existing test instrument may be incompatible with the signal required by the PLC. When the existing instrument is used, two power supplies with opposite current directions are built into the instrument, and the communication input circuit of the instrument interface is switched by a switching switch, thereby achieving the purpose of adapting the instrument to different PLCs to cope with the PLC's current injection output (NPN) or current source output (PNP).

[0029] Example

[0030] The technical solution in the embodiment of the present application is to solve the technical problem that the PLC interface signal of the existing test instrument may be incompatible with the signal required by the PLC. The overall idea is as follows:

[0031] In view of the problems existing in the prior art, the utility model provides an instrument built-in NPN / PNP switch signal converter, the signal converter comprising:

[0032] Optocoupler OPT1 for AC;

[0033] A conversion circuit is connected to the photocoupler OPT1 to adapt the instrument to the NPN type PLC or the PNP type PLC;

[0034] The conversion circuit includes two power supplies VCC with opposite current directions, which correspond to the switching switches on the photocoupler OPT1. The current direction when the PLC is connected to the photocoupler OPT1 is adjusted by the switching switches.

[0035] In some examples, the switch includes a first switch K1 and a second switch K2, and free ends of the two switches K1 and K2 correspond to terminals of a power source VCC;

[0036] The fixed end of the first switch K1 is connected to the two input ends of the photocoupler OPT1 through wires, and a pull-up resistor R1 is connected to one of the wires, so that a voltage difference is formed between the two input ends of the photocoupler OPT1;

[0037] The fixed end of the second switch K2 is connected to the common terminal of the instrument.

[0038] In some examples, one of the input terminals of the optocoupler OPT1 is connected to the input terminal of the instrument, and a current limiting resistor R2 is arranged between the two.

[0039] In some examples, when the PLC is connected to the instrument, the common terminal and output terminal of the PLC are respectively connected to the common terminal and input terminal of the instrument.

[0040] In the specific implementation process, Figure 3-Figure 5 shown.

[0041] All signals are insulated by photocouplers to increase the anti-interference ability. The communication input circuit of the instrument interface is switched through the internal settings of the instrument to deal with the current sinking output (NPN) or current sourcing output (PNP) of the PLC.

[0042] like Figure 4 As shown, the instrument is connected to a PLC with NPN output. The internal communication circuit processing of the measuring instrument: OPT1 is different from ordinary optocouplers. It uses AC input voltage response type photocouplers. The optocoupler can work if the voltage difference between the two ends of the optocoupler input meets a certain value. Resistor R1 is a pull-up resistor to ensure that the OPT1 optocoupler does not work when the PLC does not send a signal. Resistor R2 is a current-limiting resistor and plays a protective role. VCC is a set of isolated power supplies inside the instrument. K1 and K2 are two sets of switching switches, which can be controlled by the instrument's external hardware dip switches or the instrument can control their status through software. When the instrument is connected to a PLC with NPN output (leakage output), K1 and K2 are switched to Figure 4 In the state shown, the load current flows to the PLC output terminal. When the PLC is outputting, the OPT1 photocoupler works, and the CPU inside the instrument can normally receive the signal sent by the PLC.

[0043] like Figure 5 As shown, the instrument is connected to a PLC with PNP output. When the instrument is connected to a PLC with PNP output (source output), K1 and K2 switch to Figure 5 In the state shown, the load current flows out from the PLC output terminal. When the PLC is outputting, the OPT1 photocoupler works, and the CPU inside the instrument can normally receive the signal sent by the PLC.

[0044] Finally, it should be noted that: Obviously, the above embodiments are only examples for clearly explaining the present invention, and are not intended to limit the implementation methods. For ordinary technicians in the relevant field, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from this are still within the scope of protection of the present invention.

Claims

1. An instrument with a built-in NPN / PNP switch signal converter, which is arranged inside the instrument and is used to convert the signal sent by the PLC, characterized in that: The signal converter includes: Optocoupler for AC power (OPT1); A conversion circuit, which is connected to the photocoupler (OPT1) to adapt the instrument to the NPN type PLC or the PNP type PLC; The conversion circuit includes two power supplies (VCC) with opposite current directions, which correspond to the switching switches on the photocoupler (OPT1), and the current direction when the PLC is connected to the photocoupler (OPT1) is adjusted by the switching switches.

2. The instrument built-in NPN / PNP switch signal converter as claimed in claim 1, characterized in that: The switching switch comprises a first switching switch (K1) and a second switching switch (K2), and the free ends of the two switching switches (K1, K2) correspond to the terminals of the power supply (VCC); The fixed end of the first switch (K1) is simultaneously connected to two input ends of the photoelectric coupler (OPT1) through a wire, and a pull-up resistor (R1) is connected to one of the wires, so that a voltage difference is formed between the two input ends of the photoelectric coupler (OPT1); The fixed end of the second switch (K2) is connected to the common terminal of the instrument.

3. The instrument built-in NPN / PNP switch signal converter as claimed in claim 2, characterized in that: One of the input terminals of the photoelectric coupler (OPT1) is connected to the input terminal of the instrument, and a current limiting resistor (R2) is arranged between the two.

4. The instrument built-in NPN / PNP switch signal converter as claimed in claim 1, characterized in that: When the PLC is connected to the instrument, the common terminal and the output end of the PLC are connected to the common terminal and the input end of the instrument respectively.