CN102467106A - Programmable logic controller (PLC) digital input control device and control method - Google Patents
Programmable logic controller (PLC) digital input control device and control method Download PDFInfo
- Publication number
- CN102467106A CN102467106A CN2010105444922A CN201010544492A CN102467106A CN 102467106 A CN102467106 A CN 102467106A CN 2010105444922 A CN2010105444922 A CN 2010105444922A CN 201010544492 A CN201010544492 A CN 201010544492A CN 102467106 A CN102467106 A CN 102467106A
- Authority
- CN
- China
- Prior art keywords
- digital quantity
- quantity input
- plc
- output voltage
- circuit
- 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
- Programmable Controllers (AREA)
Abstract
The embodiment of the invention discloses a programmable logic controller (PLC) digital input control device, which comprises a PLC digital input processing module and at least one path of digital input control circuit. The PLC digital input processing module is connected with the digital input control circuit. The digital input control circuit comprises a first digital input circuit and a second digital input circuit, wherein the first and second digital input circuits receive a digital quantity from the same input port, and control and output the digital quantity. The PLC digital input processing module comprises at least one input failure detection module, wherein the input failure detection module is used for receiving a digital signal which is controlled and output by the first and second digital input circuits, detecting whether the digital input control circuit fails or not and setting failure state alarming information if a detection result indicates that the digital input control circuit fails. Correspondingly, the embodiment of the invention also discloses a PLC control system and a PLC digital input control method.
Description
Technical field
The present invention relates to electronic communication field, relate in particular to a kind of PLC digital quantity input control device and control method thereof.
Background technology
Programmable logic controller (PLC) (PLC, Programmable Logic Controller) is a kind of specially under industrial environment, using the electronic installation of the digital operation operation that designs, and PLC has been widely used in the industrial automation field.The digital quantity (switching value) of PLC control consumption in the system of a middle scale surpasses 1,000 points, all suitable huge of the quantity of input point and output point, and the reliability of its input point and output point is related to the reliability of whole automation application system.
In the prior art; The modal form of digital quantity input point is to adopt optocoupler to do isolation (being that photoelectricity is isolated); As shown in Figure 1; A digital quantity input port is connected to current-limiting resistance and optocoupler (being that photoelectricity is isolated) successively, and optocoupler also has certain filtering to go to disturb effect to input signal except the insulation blocking effect is arranged.But optocoupler is different in the following life-span of different operating mode, working temperature more the high life short more, the big more mission life of working current is also short more.Optocoupler lost efficacy and possibly cause the misoperation of digital quantity input, thereby caused loss without redemption to commercial production.
Summary of the invention
In order to solve the not high technical matters of digital quantity input point reliability in the prior art; The embodiment of the invention has proposed a kind of PLC digital quantity input control device; It comprises programmable logic controller (PLC) PLC digital quantity input processing module and at least one road digital quantity input control circuit; Said PLC digital quantity input processing module is connected with said digital quantity input control circuit, wherein
Said digital quantity input control circuit comprises the first digital quantity input circuit and the second digital quantity input circuit; The said first digital quantity input circuit and the second digital quantity input circuit receive the digital quantity of same input port input, and said digital quantity is controlled output;
Said PLC digital quantity input processing module comprises at least one input fault detection module; Be used to receive the digital quantity signal of said first digital quantity input circuit and second digital quantity input circuit control output; And detect said digital quantity input control circuit and whether break down; When the test results is yes, the malfunction warning information is set.
Wherein, said input fault detection module comprises:
First edge detecting unit is connected with the output terminal of the said first digital quantity input circuit, is used to receive the digital quantity signal of said first digital quantity input circuit control output, and detects the output voltage status information of the said first digital quantity input circuit;
Second edge detecting unit is connected with the output terminal of the said second digital quantity input circuit, is used to receive the digital quantity signal of said second digital quantity input circuit control output, and detects the output voltage status information of the said second digital quantity input circuit;
The fault judgement unit is used to analyze the output voltage status information that said first edge detecting unit and second edge detecting unit detect, and when the output voltage status information accordance, then judges said digital quantity input control circuit and does not break down; When the output voltage status information is inconsistent, then judges said digital quantity input control circuit and break down;
The malfunction Alarm Unit is used for when said fault judgement unit judges goes out said digital quantity input control circuit and breaks down, the malfunction warning information of said digital quantity input control circuit being set.
Wherein, said input fault detection module also comprises:
The first digital filtering unit is used for the output voltage status information that said first edge detecting unit detects is carried out importing said fault judgement unit after the filtering;
The second digital filtering unit is used for the output voltage status information that said second edge detecting unit detects is carried out importing said fault judgement unit after the filtering.
Wherein, said malfunction Alarm Unit specifically is used for,
When said fault judgement element analysis goes out to have only an output voltage state to be rising edge state or negative edge state, the malfunction warning information of said digital quantity input control circuit is set.
Wherein, said PLC digital quantity input processing module also comprises the voting output unit, is used for
When said fault judgement unit judges goes out said digital quantity input control circuit and does not break down, the digital quantity signal of the said first digital quantity input circuit input of voting output, or the digital quantity signal of the said second digital quantity input circuit input of voting output;
When said fault judgement element analysis goes out an output voltage state is the rising edge state, and another output voltage state is when continuing low level state, the digital quantity signal that the input circuit that the said rising edge state of voting output is corresponding is imported;
When said fault judgement element analysis goes out an output voltage state is the negative edge state, and another output voltage state is when continuing low level state, the digital quantity signal that the input circuit that the said negative edge state of voting output is corresponding is imported;
When said fault judgement element analysis goes out an output voltage state is rising edge state or negative edge state; Another output voltage state is when continuing high level state, the digital quantity signal that the input circuit that the said lasting high level state of voting output is corresponding is imported.
Wherein, said PLC digital quantity input processing module also comprises the state recording storer, is used to write down the fault status information of said digital quantity input control circuit, and/or the voting output information of said voting output unit.
Wherein, said PLC digital quantity input control device also comprises communication module, is used for the digital quantity signal according to said voting output unit voting output, communicates with outside PLC master controller to be connected.
Correspondingly; The embodiment of the invention discloses a kind of PLC control system; Comprise programmable logic controller (PLC) PLC master controller and PLC digital quantity input control device; Said PLC digital quantity input control device is above-mentioned PLC digital quantity input control device, and said PLC digital quantity input control device is controlled the digital quantity signal that receives, and imports said PLC master controller.
Correspondingly, the embodiment of the invention discloses a kind of PLC digital quantity input control method, comprising:
The first digital quantity input circuit and the second digital quantity input circuit receive the digital quantity of same programmable logic controller (PLC) PLC digital quantity input port input, and said digital quantity is controlled output;
At least one input fault detection module receives the digital quantity signal of said first digital quantity input circuit and second digital quantity input circuit control output; And whether detection digital quantity input control circuit breaks down; When the test results is yes, the malfunction warning information is set.
Wherein, The digital quantity signal of said first digital quantity input circuit of said reception and second digital quantity input circuit control output; And detect the digital quantity input control circuit and whether break down, when the test results is yes, the step that the malfunction warning information is set comprises:
First edge detecting unit receives the digital quantity signal of said first digital quantity input circuit control output, and detects the output voltage status information of the said first digital quantity input circuit; Second edge detecting unit receives the digital quantity signal of said second digital quantity input circuit control output, and detects the output voltage status information of the said second digital quantity input circuit;
Analyze the output voltage status information that said first edge detecting unit and second edge detecting unit detect, when the output voltage status information accordance, then judge the digital quantity input control circuit and do not break down; When the output voltage status information is inconsistent, then judges the digital quantity input control circuit and break down;
When judging the digital quantity input control circuit and break down, the malfunction warning information of digital quantity input control circuit is set.
Wherein, the step of the output voltage status information of said first edge detecting unit of said analysis and second edge detecting unit detection comprises:
Output voltage status information to said first edge detecting unit detects is carried out Filtering Processing; Output voltage status information to said second edge detecting unit detects is carried out Filtering Processing;
The output voltage status information that said first edge detecting unit after analysis filtered is handled and second edge detecting unit detect.
Wherein, said when judging the digital quantity input control circuit and break down, the step that the malfunction warning information of digital quantity input control circuit is set is specially:
When analyzing when having only an output voltage state to be rising edge state or negative edge state, the malfunction warning information of digital quantity input control circuit is set.
Wherein, PLC digital quantity input control method of the present invention also comprises:
When judging the digital quantity input control circuit and not breaking down, the digital quantity signal of the said first digital quantity input circuit input of voting output, or the digital quantity signal of the said second digital quantity input circuit input of voting output;
When analyzing an output voltage state is the rising edge state, and another output voltage state is when continuing low level state, the digital quantity signal that the input circuit that the said rising edge state of voting output is corresponding is imported;
When analyzing an output voltage state is the negative edge state, and another output voltage state is when continuing low level state, the digital quantity signal that the input circuit that the said negative edge state of voting output is corresponding is imported;
When analyzing an output voltage state is rising edge state or negative edge state, and another output voltage state is when continuing high level state, the digital quantity signal that the input circuit that the said lasting high level state of voting output is corresponding is imported.
Wherein, PLC digital quantity input control method of the present invention also comprises:
The fault status information of real time record digital quantity input control circuit, and/or voting output information.
Embodiment of the present invention embodiment has following beneficial effect:
Receive the digital quantity of same PLC digital quantity input port input through the first digital quantity input circuit and the second digital quantity input circuit; When wherein No. one input circuit breaks down inefficacy; Also have other No. one input circuit to guarantee the normal input of digital quantity; Can effectively solve the integrity problem of digital quantity input in the prior art, effectively reduce in the prior art because the loss that optocoupler lost efficacy and directly causes to the user; Whether PLC digital quantity input control device can detect the digital quantity input control circuit and break down; When the test results is yes; The malfunction warning information is set, and to the effective digital quantity signal of PLC master controller voting output, the user can understand the situation of digital quantity input easily; Guaranteed that thereby before thorough fault takes place digital quantity input circuit user can carry out reparation initiatively and avoid loss; Make the user can carry out the maintenance of system more efficiently, avoided the unusual of uncontrollable automation application system, improved the reliability of PLC digital quantity input greatly.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the structural representation of digital quantity input circuit in the prior art;
Fig. 2 is the structural representation of first embodiment of PLC control system of the present invention;
Fig. 3 is the structural representation of first embodiment of input fault detection module of the present invention;
Fig. 4 is the structural representation of second embodiment of input fault detection module of the present invention;
Fig. 5 is the structural representation of second embodiment of PLC control system of the present invention;
Fig. 6 is the principle assumption diagram that the photoelectricity of the embodiment of the invention is isolated;
Fig. 7 is the structural representation of the 3rd embodiment of PLC control system of the present invention;
Fig. 8 is the first embodiment process flow diagram of PLC digital quantity input control method of the present invention;
Fig. 9 is the second embodiment process flow diagram of PLC digital quantity input control method of the present invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The structural representation of first embodiment of PLC control system of the present invention as shown in Figure 2; The PLC control system comprises PLC digital quantity input control device 1 and PLC master controller 2; The digital quantity signal of 1 pair of reception of PLC digital quantity input control device is controlled, and input PLC master controller 2, and PLC master controller 2 carries out the robotization control of system according to the digital quantity signal of input; Particularly
PLC digital quantity input control device 1 comprises PLC digital quantity input processing module 11 and at least one road digital quantity input control circuit 12; Among present embodiment Fig. 2 to comprise that one road digital quantity input control circuit 12 is that example describes; PLC digital quantity input processing module 11 is connected with digital quantity input control circuit 12; Wherein
Digital quantity input control circuit 12 comprises the first digital quantity input circuit 121 and the second digital quantity input circuit 122; The first digital quantity input circuit 121 and the second digital quantity input circuit 122 receive the digital quantity of same input port input, and said digital quantity is controlled output; Need to prove the corresponding digital quantity input port of one road digital quantity input control circuit; PLC digital quantity input control device 1 can correspondingly insert a plurality of digital quantity input ports.
PLC digital quantity input processing module 11 comprises at least one input fault detection module 111; Among present embodiment Fig. 2 to comprise that an input fault detection module 111 is that example describes; Input fault detection module 111 is used to receive the digital quantity signal of the first digital quantity input circuit 121 and the 122 control outputs of the second digital quantity input circuit; And detect digital quantity input control circuit 12 and whether break down, when the test results is yes, the malfunction warning information is set.
Further; The structural representation of first embodiment of input fault detection module of the present invention as shown in Figure 3; Input fault detection module 111 comprises first edge detecting unit 1111, second edge detecting unit 1112, fault judgement unit 1113 and malfunction Alarm Unit 1114, wherein
First edge detecting unit 1111 is connected with the output terminal of the first digital quantity input circuit 121, is used to receive the digital quantity signal of the first digital quantity input circuit, 121 control outputs, and detects the output voltage status information of the first digital quantity input circuit 121;
Second edge detecting unit 1112 is connected with the output terminal of the second digital quantity input circuit 122, is used to receive the digital quantity signal of the second digital quantity input circuit, 122 control outputs, and detects the output voltage status information of the second digital quantity input circuit 122;
The output voltage status information that be used to fault judgement unit 1113 to analyze first edge detecting unit 1111 and second edge detecting unit 1112 detect respectively; When the output voltage status information accordance, then judge digital quantity input control circuit 12 and do not break down; When the output voltage status information is inconsistent, then judges digital quantity input control circuit 12 and break down;
Again further; The structural representation of second embodiment of input fault detection module of the present invention as shown in Figure 4; Input fault detection module 111 comprises outside first edge detecting unit 1111, second edge detecting unit 1112, fault judgement unit 1113 and the malfunction Alarm Unit 1114; Also comprise the first digital filtering unit 1115 and the second digital filtering unit 1116, wherein
The first digital filtering unit 1115 is used for the output voltage status information that first edge detecting unit 1111 detects is carried out input fault judging unit 1113 after the filtering;
The second digital filtering unit 1116 is used for the output voltage status information that second edge detecting unit 1112 detects is carried out input fault judging unit 1113 after the filtering.
Particularly; The structural representation of second embodiment of PLC control system of the present invention as shown in Figure 5; Comprise that with PLC digital quantity input control device 1 one road digital quantity input control circuit 12, PLC digital quantity input processing module 11 comprise that an input fault detection module 111 is that example is proceeded to specify; The first digital quantity input circuit 121 specifically can comprise current-limiting resistance, photoelectricity isolation and pull down resistor; The signal of digital quantity (switching value) input end input is input in the PLC digital quantity input processing module 11 through current-limiting resistance and photoelectricity isolation by series connection respectively, and photoelectricity is isolated through pull down resistor ground connection; The second digital quantity input circuit 122 is consistent with the first digital quantity input circuit 121, repeats no more here;
Need to prove the principle assumption diagram that the photoelectricity of the embodiment of the invention as shown in Figure 6 is isolated, the i.e. principle schematic of optocoupler; Add electric signal at the optocoupler input end and make light emitting source luminous, light intensity depends on the size of exciting current, after this illumination is mapped on the light-receiving device that is packaged together; Because of photoelectric effect has produced photocurrent, draw by the light-receiving device output terminal, so just realized the conversion of an electric light one electricity; After the output terminal of optocoupler connects pull down resistor; Be input as high level (being that input digit amount signal is 1) even its inefficacy shows as, optocoupler is output low level (digital quantity signal that is optocoupler output is 0) constantly, and promptly optocoupler breaks off.
First edge detecting unit 1111 receives the digital quantity signal of the first digital quantity input circuit, 121 control outputs, and detects the output voltage status information of the first digital quantity input circuit 121; Simultaneously, second edge detecting unit 1112 receives the digital quantity signal of the second digital quantity input circuit, 122 control outputs, and detects the output voltage status information of the second digital quantity input circuit 122; Then, the output voltage status information that detects of 1115 pairs first edge detecting unit in the first digital filtering unit 1111 is carried out input fault judging unit 1113 after the filtering; Simultaneously, the output voltage status information that detects of 1116 pairs second edge detecting unit in the second digital filtering unit 1112 is carried out input fault judging unit 1113 after the filtering.Fault judgement unit 1113 is analyzed after receiving the filtered voltage status information of the first digital filtering unit 1115 and the output of the second digital filtering unit 1116; When the output voltage status information accordance, then judge digital quantity input control circuit 12 and do not break down; When the output voltage status information is inconsistent, then judges digital quantity input control circuit 12 and break down; Particularly; When fault judgement unit 1113 analyzes when having only an output voltage state to be rising edge state or negative edge state; According to the optocoupler principle; Can judge digital quantity input control circuit 12 and break down, that is, and when being rising edge state or negative edge state such as the output voltage status information that analyzes the first digital quantity input circuit 121 that has only 1111 detections of first edge detecting unit; The output voltage status information of the second digital quantity input circuit 122 that second edge detecting unit 1111 detects can be judged digital quantity input control circuit 12 to break down for continuing high level state or lasting low level state so; And for example analyze the output voltage status information of having only the second digital quantity input circuit 122 that second edge detecting unit 1111 detects when being rising edge state or negative edge state; The output voltage status information of the first digital quantity input circuit 121 that first edge detecting unit 1111 detects is for continuing high level state or lasting low level state; Can judge digital quantity input control circuit 12 so and break down, trigger the malfunction warning information that malfunction Alarm Unit 1114 is provided with digital quantity input control circuit 12.
Further; PLC digital quantity input processing module 11 also comprises the voting output unit 112 that is connected with input fault detection module 111, and voting output unit 112 is corresponding one by one with input fault detection module 111, among Fig. 4 to comprise that deciding by vote output unit 112 for one is that example describes; Particularly
When the fault judgement unit 1113 of input fault detection module 111 is judged digital quantity input control circuit 12 and is not broken down; The digital quantity signal of the voting output unit 112 voting outputs first digital quantity input circuit 121 inputs, or the digital quantity signal of the voting output second digital quantity input circuit 122 inputs;
When fault judgement unit 1113 analyzes an output voltage state is the rising edge state, and another output voltage state is when continuing low level state, the digital quantity signal of the input circuit input of the said rising edge state correspondence of voting output unit 112 voting outputs; The output voltage status information that analyzes the first digital quantity input circuit 121 such as fault judgement unit 1113 is the rising edge state; The output voltage status information of the second digital quantity input circuit 122 is when continuing low level state, the digital quantity signal that the voting output unit 112 voting outputs first digital quantity input circuit 121 is imported;
When fault judgement unit 1113 analyzes an output voltage state is the negative edge state, and another output voltage state is when continuing low level state, the digital quantity signal of the input circuit input of the said negative edge state correspondence of voting output unit 112 voting outputs; The output voltage status information that analyzes the second digital quantity input circuit 122 such as fault judgement unit 1113 is the negative edge state; The output voltage status information of the first digital quantity input circuit 121 is when continuing low level state, the digital quantity signal that the voting output unit 112 voting outputs second digital quantity input circuit 122 is imported;
When fault judgement unit 1113 analyzes an output voltage state is rising edge state or negative edge state; Another output voltage state is when continuing high level state, the digital quantity signal of the input circuit input of the said lasting high level state correspondence of voting output unit 112 voting outputs; The output voltage status information that analyzes the first digital quantity input circuit 121 such as fault judgement unit 1113 is the negative edge state; The output voltage status information of the second digital quantity input circuit 122 is when continuing high level state, the digital quantity signal that the voting output unit 112 voting outputs second digital quantity input circuit 122 is imported; And for example to analyze the output voltage status information of the second digital quantity input circuit 122 be the rising edge state in fault judgement unit 1113; The output voltage status information of the first digital quantity input circuit 121 is when continuing high level state, the digital quantity signal that the voting output unit 112 voting outputs first digital quantity input circuit 121 is imported.
Further; The structural representation of the 3rd embodiment of PLC control system of the present invention as shown in Figure 7; Comprise that with PLC digital quantity input control device 1 one road digital quantity input control circuit 12, PLC digital quantity input processing module 11 comprise that an input fault detection module 111 is that example is proceeded to specify equally; PLC digital quantity input processing module 11 comprises input fault detection module 111 and decides by vote outside the output unit 112; Can also comprise state recording storer 113, be used to write down the fault status information of digital quantity input control circuit 12, and/or the voting output information of voting output unit 112.Particularly, as shown in the table:
The voting output information of state recording storer 113 records can also comprise the significance bit information of each digital quantity input circuit, to show effective situation of current digit amount input circuit; The output voltage status information of
expression digital quantity input circuit is the rising edge state; The output voltage status information of
expression digital quantity input circuit is the negative edge state; The output voltage status information of "---" expression digital quantity input circuit is for continuing high level state; " _ _ _ _ " represent that the output voltage status information of digital quantity input circuit is lasting low level state; "->1 " that this digital quantity input circuit is set is effective in expression, and "--" expression is provided with this digital quantity input circuit and keeps original setting.The fault status information of the digital quantity input control circuit 12 of state recording storer 113 records is any one situation in the above-mentioned table with the voting output information of voting output unit 112; Such as 113 current records of state recording storer label be 2 situation; Show that then fault judgement unit 1113 analysis and judgement go out output voltage status information accordance (all being the negative edge state); The current nominal situation that belongs to; Do not have fault warning information, current first digital quantity input circuit (being called for short first) and the second digital quantity input circuit (being called for short second) all are provided with effectively the digital quantity signal of the input of voting output first or second; And for example 113 current records of state recording storer label be the situation of C; Show that then fault judgement unit 1113 analysis and judgement go out output voltage status information inconsistent (first is the negative edge state, and second for continuing low level state), the current nominal situation that do not belong to; Be provided with fault warning information; The current first digital quantity input circuit is provided with effectively, and the second digital quantity input circuit has kept original setting, the digital quantity signal of voting output first input.
Need to prove that state recording storer 113 can be for the serial ferroelectric memory etc., be convenient to keep behind the power loss recovery status information of each digital quantity input circuit, be convenient to the user and safeguard.
Further, malfunction Alarm Unit 1114 can be light Alarm Unit, sound alarm unit or audible and visual alarm unit etc.; In Fig. 7, malfunction Alarm Unit 1114 is an example with the light Alarm Unit, specifically can be double-colored status indicator lamp, comprises alarm indication LED and data indication LED, breaks down in time to notify the user.
Need to prove; The PLC digital quantity input control device 1 of the embodiment of the invention also comprises communication module; Be connected with PLC digital quantity input processing module and outside PLC master controller respectively; Be used for digital quantity signal, communicate with outside PLC master controller and be connected according to said voting output unit voting output.
Embodiment of the present invention embodiment; Receive the digital quantity of same PLC digital quantity input port input through the first digital quantity input circuit and the second digital quantity input circuit; When wherein No. one input circuit breaks down inefficacy; Also have other No. one input circuit to guarantee the normal input of digital quantity, can effectively solve the integrity problem of digital quantity input in the prior art, effectively reduce in the prior art because the loss that optocoupler lost efficacy and directly causes to the user; Whether PLC digital quantity input control device can detect the digital quantity input control circuit and break down; When the test results is yes; The malfunction warning information is set, and to the effective digital quantity signal of PLC master controller voting output, the user can understand the situation of digital quantity input easily; Guaranteed that thereby before thorough fault takes place digital quantity input circuit user can carry out reparation initiatively and avoid loss; Make the user can carry out the maintenance of system more efficiently, avoided the unusual of uncontrollable automation application system, improved the reliability of PLC digital quantity input greatly.
Specified the PLC control system of the embodiment of the invention and the structure of PLC digital quantity input control device 1 above, below correspondingly, the PLC digital quantity input control method of the accompanying drawings embodiment of the invention.
The first embodiment process flow diagram of PL C digital quantity input control method of the present invention as shown in Figure 8 comprises:
Step S801: the first digital quantity input circuit and the second digital quantity input circuit receive the digital quantity of same programmable logic controller (PLC) PLC digital quantity input port input, and said digital quantity is controlled output;
Particularly; PLC digital quantity input control device comprises at least one road digital quantity input control circuit; This digital quantity input control circuit comprises the first digital quantity input circuit and the second digital quantity input circuit; The first digital quantity input circuit and the second digital quantity input circuit receive the digital quantity of same input port input, and said digital quantity is controlled output.Need to prove the corresponding digital quantity input port of one road digital quantity input control circuit; PLC digital quantity input control device 1 can correspondingly insert a plurality of digital quantity input ports.
Step S802: at least one input fault detection module receives the digital quantity signal of said first digital quantity input circuit and second digital quantity input circuit control output; And whether detection digital quantity input control circuit breaks down; When the test results is yes, the malfunction warning information is set.
Further, the second embodiment process flow diagram of PLC digital quantity input control method of the present invention as shown in Figure 9 comprises:
Step S901: the first digital quantity input circuit and the second digital quantity input circuit receive the digital quantity of same programmable logic controller (PLC) PLC digital quantity input port input, and said digital quantity is controlled output;
Step S902: first edge detecting unit receives the digital quantity signal of said first digital quantity input circuit control output, and detects the output voltage status information of the said first digital quantity input circuit; Second edge detecting unit receives the digital quantity signal of said second digital quantity input circuit control output, and detects the output voltage status information of the said second digital quantity input circuit;
Particularly, the input fault detection module of PLC digital quantity input control device can comprise first edge detecting unit and second edge detecting unit, detects the output voltage status information of the first digital quantity input circuit and the second digital quantity input circuit with correspondence.
Step S903: analyze the output voltage status information that said first edge detecting unit and second edge detecting unit detect, when the output voltage status information accordance, then judge the digital quantity input control circuit and do not break down; When the output voltage status information is inconsistent, then judges the digital quantity input control circuit and break down;
Particularly, PLC digital quantity input control device can also carry out Filtering Processing to the output voltage status information that said first edge detecting unit detects; Output voltage status information to said second edge detecting unit detects is carried out Filtering Processing; The output voltage status information that said first edge detecting unit after analysis filtered is handled then and second edge detecting unit detect.
Step S904: when judging the digital quantity input control circuit and break down, the malfunction warning information of digital quantity input control circuit is set.
Particularly, first edge detecting unit receives the digital quantity signal of first digital quantity input circuit control output, and detects the output voltage status information of the first digital quantity input circuit; Simultaneously, second edge detecting unit receives the digital quantity signal of second digital quantity input circuit control output, and detects the output voltage status information of the second digital quantity input circuit; Then; PLC digital quantity input control device carries out filtering to the output voltage status information that first edge detecting unit detects; The output voltage status information that simultaneously second edge detecting unit is detected is carried out filtering; PLC digital quantity input control device is analyzed after to filtered voltage status information, and when the output voltage status information accordance, the digital quantity input control circuit of then judging PLC digital quantity input control device does not break down; When the output voltage status information was inconsistent, the digital quantity input control circuit of then judging PLC digital quantity input control device broke down; Particularly; When analyzing when having only an output voltage state to be rising edge state or negative edge state; According to the optocoupler principle; Can judge the digital quantity input control circuit and break down, that is, and when being rising edge state or negative edge state such as the output voltage status information that analyzes the first digital quantity input circuit that has only the detection of first edge detecting unit; The output voltage status information of the second digital quantity input circuit that second edge detecting unit detects can be judged the digital quantity input control circuit to break down for continuing high level state or lasting low level state so; And for example analyze the output voltage status information of having only the second digital quantity input circuit that second edge detecting unit detects when being rising edge state or negative edge state; The output voltage status information of the first digital quantity input circuit that first edge detecting unit detects is for continuing high level state or lasting low level state; Can judge the digital quantity input control circuit so and break down, PLC digital quantity input control device will be provided with the malfunction warning information of digital quantity input control circuit.
Again further; The PLC digital quantity input control method of the embodiment of the invention can also comprise: when judging the digital quantity input control circuit and do not break down; The digital quantity signal of the said first digital quantity input circuit input of voting output, or the digital quantity signal of the said second digital quantity input circuit input of voting output;
When analyzing an output voltage state is the rising edge state, and another output voltage state is when continuing low level state, the digital quantity signal that the input circuit that the said rising edge state of voting output is corresponding is imported; Such as the output voltage status information that analyzes the first digital quantity input circuit is the rising edge state; The output voltage status information of the second digital quantity input circuit is when continuing low level state, the digital quantity signal of PLC digital quantity input control device voting output first digital quantity input circuit input;
When analyzing an output voltage state is the negative edge state, and another output voltage state is when continuing low level state, the digital quantity signal that the input circuit that the said negative edge state of voting output is corresponding is imported; Such as the output voltage status information that analyzes the second digital quantity input circuit is the negative edge state; The output voltage status information of the first digital quantity input circuit is when continuing low level state, the digital quantity signal of PLC digital quantity input control device voting output second digital quantity input circuit input;
When analyzing an output voltage state is rising edge state or negative edge state, and another output voltage state is when continuing high level state, the digital quantity signal that the input circuit that the said lasting high level state of voting output is corresponding is imported; Such as the output voltage status information that analyzes the first digital quantity input circuit is the negative edge state; The output voltage status information of the second digital quantity input circuit is when continuing high level state, the digital quantity signal of PLC digital quantity input control device voting output second digital quantity input circuit input; The output voltage status information that and for example analyzes the second digital quantity input circuit is the rising edge state; The output voltage status information of the first digital quantity input circuit is when continuing high level state, the digital quantity signal of PLC digital quantity input control device voting output first digital quantity input circuit input.
Again further, the PLC digital quantity input control method of the embodiment of the invention can also comprise: PLC digital quantity input control device real time record fault status information, and/or voting output information.
Particularly, PLC digital quantity input control device can also comprise a state recording storer, with the fault status information of each digital quantity input circuit of real time record, and/or voting output information, as shown in the table:
The voting output information of state recording storer record can also comprise the significance bit information of each digital quantity input circuit, to show effective situation of current digit amount input circuit; The output voltage status information of
expression digital quantity input circuit is the rising edge state; The output voltage status information of
expression digital quantity input circuit is the negative edge state; The output voltage status information of "---" expression digital quantity input circuit is for continuing high level state; " _ _ _ _ _ " represent that the output voltage status information of digital quantity input circuit is lasting low level state; "->1 " that this digital quantity input circuit is set is effective in expression, and "--" expression is provided with this digital quantity input circuit and keeps original setting.The fault status information of state recording storer record is any one situation in the above-mentioned table with voting output information; Such as the current record of state recording storer label be 2 situation; Show that then PLC digital quantity input control device analysis and judgement goes out output voltage status information accordance (all being the negative edge state); The current nominal situation that belongs to; Do not have fault warning information, current first digital quantity input circuit (being called for short first) and the second digital quantity input circuit (being called for short second) all are provided with effectively the digital quantity signal of the input of voting output first or second; And for example the current record of state recording storer label be the situation of C; Show that then PLC digital quantity input control device analysis and judgement goes out output voltage status information inconsistent (first is the negative edge state, and second for continuing low level state), the current nominal situation that do not belong to; Be provided with fault warning information; The current first digital quantity input circuit is provided with effectively, and the second digital quantity input circuit has kept original setting, the digital quantity signal of voting output first input.
Need to prove that the state recording storer can be for the serial ferroelectric memory etc., be convenient to keep behind the power loss recovery status information of each digital quantity input circuit, be convenient to the user and safeguard.
Need to prove that the PLC digital quantity input control device of the embodiment of the invention also comprises communication module, be connected, be used for digital quantity signal, communicate with outside PLC master controller and be connected according to voting output with outside PLC master controller.
In sum; Embodiment of the present invention embodiment; Receive the digital quantity that same PLC digital quantity input port is imported through the first digital quantity input circuit and the second digital quantity input circuit, when wherein No. one input circuit breaks down inefficacy, also have other No. one input circuit to guarantee the normal input of digital quantity; Can effectively solve the integrity problem of digital quantity input in the prior art, effectively reduce in the prior art because the loss that optocoupler lost efficacy and directly causes to the user; Whether PLC digital quantity input control device can detect the digital quantity input control circuit and break down; When the test results is yes; The malfunction warning information is set, and to the effective digital quantity signal of PLC master controller voting output, the user can understand the situation of digital quantity input easily; Guaranteed that thereby before thorough fault takes place digital quantity input circuit user can carry out reparation initiatively and avoid loss; Make the user can carry out the maintenance of system more efficiently, avoided the unusual of uncontrollable automation application system, improved the reliability of PLC digital quantity input greatly.
One of ordinary skill in the art will appreciate that the function that realizes all or part of flow process in the foregoing description method; Be can be through accomplishing for the relevant hardware of controller written program instruction; Described program can be stored in magnetic disc, CD, read-only storage memory body (Read-Only Memory; ROM) or at random store memory body (Random Access Memory; RAM), EEPROM (Electrically Erasable Programmable Read-Only Memory, EEPROM) etc.
The above disclosed preferred embodiment that is merely in the embodiment of the invention can not limit the present invention's interest field certainly with this, so according to the equivalent variations that claim of the present invention is done, still belong to the scope that the present invention is contained.
Claims (14)
1. PLC digital quantity input control device; It is characterized in that; Comprise programmable logic controller (PLC) PLC digital quantity input processing module and at least one road digital quantity input control circuit, said PLC digital quantity input processing module is connected with said digital quantity input control circuit, wherein
Said digital quantity input control circuit comprises the first digital quantity input circuit and the second digital quantity input circuit; The said first digital quantity input circuit and the second digital quantity input circuit receive the digital quantity of same input port input, and said digital quantity is controlled output;
Said PLC digital quantity input processing module comprises at least one input fault detection module; Be used to receive the digital quantity signal of said first digital quantity input circuit and second digital quantity input circuit control output; And detect said digital quantity input control circuit and whether break down; When the test results is yes, the malfunction warning information is set.
2. PLC digital quantity input control device as claimed in claim 1 is characterized in that, said input fault detection module comprises:
First edge detecting unit is connected with the output terminal of the said first digital quantity input circuit, is used to receive the digital quantity signal of said first digital quantity input circuit control output, and detects the output voltage status information of the said first digital quantity input circuit;
Second edge detecting unit is connected with the output terminal of the said second digital quantity input circuit, is used to receive the digital quantity signal of said second digital quantity input circuit control output, and detects the output voltage status information of the said second digital quantity input circuit;
The fault judgement unit is used to analyze the output voltage status information that said first edge detecting unit and second edge detecting unit detect, and when the output voltage status information accordance, then judges said digital quantity input control circuit and does not break down; When the output voltage status information is inconsistent, then judges said digital quantity input control circuit and break down;
The malfunction Alarm Unit is used for when said fault judgement unit judges goes out said digital quantity input control circuit and breaks down, the malfunction warning information of said digital quantity input control circuit being set.
3. PLC digital quantity input control device as claimed in claim 2 is characterized in that, said input fault detection module also comprises:
The first digital filtering unit is used for the output voltage status information that said first edge detecting unit detects is carried out importing said fault judgement unit after the filtering;
The second digital filtering unit is used for the output voltage status information that said second edge detecting unit detects is carried out importing said fault judgement unit after the filtering.
4. PLC digital quantity input control device as claimed in claim 3 is characterized in that said malfunction Alarm Unit specifically is used for,
When said fault judgement element analysis goes out to have only an output voltage state to be rising edge state or negative edge state, the malfunction warning information of said digital quantity input control circuit is set.
5. PLC digital quantity input control device as claimed in claim 4 is characterized in that, said PLC digital quantity input processing module also comprises the voting output unit, is used for
When said fault judgement unit judges goes out said digital quantity input control circuit and does not break down, the digital quantity signal of the said first digital quantity input circuit input of voting output, or the digital quantity signal of the said second digital quantity input circuit input of voting output;
When said fault judgement element analysis goes out an output voltage state is the rising edge state, and another output voltage state is when continuing low level state, the digital quantity signal that the input circuit that the said rising edge state of voting output is corresponding is imported;
When said fault judgement element analysis goes out an output voltage state is the negative edge state, and another output voltage state is when continuing low level state, the digital quantity signal that the input circuit that the said negative edge state of voting output is corresponding is imported;
When said fault judgement element analysis goes out an output voltage state is rising edge state or negative edge state; Another output voltage state is when continuing high level state, the digital quantity signal that the input circuit that the said lasting high level state of voting output is corresponding is imported.
6. PLC digital quantity input control device as claimed in claim 4; It is characterized in that; Said PLC digital quantity input processing module also comprises the state recording storer; Be used to write down the fault status information of said digital quantity input control circuit, and/or the voting output information of said voting output unit.
7. PLC digital quantity input control device as claimed in claim 4 is characterized in that, also comprises communication module, is used for the digital quantity signal according to said voting output unit voting output, communicates with outside PLC master controller to be connected.
8. PLC control system; Comprise programmable logic controller (PLC) PLC master controller and PLC digital quantity input control device; It is characterized in that; Said PLC digital quantity input control device is each described PLC digital quantity input control device of claim 1-7, and said PLC digital quantity input control device is controlled the digital quantity signal that receives, and imports said PLC master controller.
9. a PLC digital quantity input control method is characterized in that, comprising:
The first digital quantity input circuit and the second digital quantity input circuit receive the digital quantity of same programmable logic controller (PLC) PLC digital quantity input port input, and said digital quantity is controlled output;
At least one input fault detection module receives the digital quantity signal of said first digital quantity input circuit and second digital quantity input circuit control output; And whether detection digital quantity input control circuit breaks down; When the test results is yes, the malfunction warning information is set.
10. PLC digital quantity input control method as claimed in claim 9; It is characterized in that; The digital quantity signal of said first digital quantity input circuit of said reception and second digital quantity input circuit control output; And detect the digital quantity input control circuit and whether break down, when the test results is yes, the step that the malfunction warning information is set comprises:
First edge detecting unit receives the digital quantity signal of said first digital quantity input circuit control output, and detects the output voltage status information of the said first digital quantity input circuit; Second edge detecting unit receives the digital quantity signal of said second digital quantity input circuit control output, and detects the output voltage status information of the said second digital quantity input circuit;
Analyze the output voltage status information that said first edge detecting unit and second edge detecting unit detect, when the output voltage status information accordance, then judge the digital quantity input control circuit and do not break down; When the output voltage status information is inconsistent, then judges the digital quantity input control circuit and break down;
When judging the digital quantity input control circuit and break down, the malfunction warning information of digital quantity input control circuit is set.
11. PLC digital quantity input control method as claimed in claim 10 is characterized in that, the step of the output voltage status information that said first edge detecting unit of said analysis and second edge detecting unit detect comprises:
Output voltage status information to said first edge detecting unit detects is carried out Filtering Processing; Output voltage status information to said second edge detecting unit detects is carried out Filtering Processing;
The output voltage status information that said first edge detecting unit after analysis filtered is handled and second edge detecting unit detect.
12. PLC digital quantity input control method as claimed in claim 11 is characterized in that, said when judging the digital quantity input control circuit and break down, the step that the malfunction warning information of digital quantity input control circuit is set is specially:
When analyzing when having only an output voltage state to be rising edge state or negative edge state, the malfunction warning information of digital quantity input control circuit is set.
13. like each described PLC digital quantity input control method of claim 10-12, it is characterized in that, also comprise:
When judging the digital quantity input control circuit and not breaking down, the digital quantity signal of the said first digital quantity input circuit input of voting output, or the digital quantity signal of the said second digital quantity input circuit input of voting output;
When analyzing an output voltage state is the rising edge state, and another output voltage state is when continuing low level state, the digital quantity signal that the input circuit that the said rising edge state of voting output is corresponding is imported;
When analyzing an output voltage state is the negative edge state, and another output voltage state is when continuing low level state, the digital quantity signal that the input circuit that the said negative edge state of voting output is corresponding is imported;
When analyzing an output voltage state is rising edge state or negative edge state, and another output voltage state is when continuing high level state, the digital quantity signal that the input circuit that the said lasting high level state of voting output is corresponding is imported.
14. PLC digital quantity input control method as claimed in claim 13 is characterized in that, also comprises:
The fault status information of real time record digital quantity input control circuit, and/or voting output information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010544492.2A CN102467106B (en) | 2010-11-15 | 2010-11-15 | Programmable logic controller (PLC) digital input control device and control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010544492.2A CN102467106B (en) | 2010-11-15 | 2010-11-15 | Programmable logic controller (PLC) digital input control device and control method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102467106A true CN102467106A (en) | 2012-05-23 |
CN102467106B CN102467106B (en) | 2014-06-04 |
Family
ID=46070843
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010544492.2A Active CN102467106B (en) | 2010-11-15 | 2010-11-15 | Programmable logic controller (PLC) digital input control device and control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102467106B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104597822A (en) * | 2013-10-31 | 2015-05-06 | 施耐德电器工业公司 | Digital input line break detection method and circuit |
CN105425712A (en) * | 2014-09-16 | 2016-03-23 | 施耐德电器工业公司 | Input Module For Programmable Logic Controller |
CN106647697A (en) * | 2016-12-07 | 2017-05-10 | 广东电网有限责任公司电力调度控制中心 | Verification method for switching quantity input signals |
CN107831726A (en) * | 2017-11-17 | 2018-03-23 | 中石化石油工程技术服务有限公司 | A kind of functional safety switching input module of mixed architecture |
CN112288911A (en) * | 2020-10-21 | 2021-01-29 | 广东美电贝尔科技集团股份有限公司 | Gate inhibition logic control system and control method thereof |
CN114895614A (en) * | 2022-07-14 | 2022-08-12 | 天津飞旋科技股份有限公司 | Programmable controller |
CN116300673A (en) * | 2023-01-11 | 2023-06-23 | 广东鸿业管桩有限公司 | Device for protecting internal circuit of PLC digital quantity input module based on intermediate relay |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2495668A1 (en) * | 2005-01-26 | 2006-07-26 | Matthew Green | Plc output diagnostics device |
CN201084002Y (en) * | 2007-09-30 | 2008-07-09 | 沈之柱 | PLC digital quantity input interface circuit |
US7410293B1 (en) * | 2006-03-27 | 2008-08-12 | Altera Corporation | Techniques for sensing temperature and automatic calibration on integrated circuits |
CN201233432Y (en) * | 2008-07-31 | 2009-05-06 | 武汉钢铁(集团)公司 | PLC switching value input power supply line failure indication apparatus |
CN101737100A (en) * | 2009-12-28 | 2010-06-16 | 国电南京自动化股份有限公司 | Turbine emergency protective system capable of preventing misoperation |
-
2010
- 2010-11-15 CN CN201010544492.2A patent/CN102467106B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2495668A1 (en) * | 2005-01-26 | 2006-07-26 | Matthew Green | Plc output diagnostics device |
US7410293B1 (en) * | 2006-03-27 | 2008-08-12 | Altera Corporation | Techniques for sensing temperature and automatic calibration on integrated circuits |
CN201084002Y (en) * | 2007-09-30 | 2008-07-09 | 沈之柱 | PLC digital quantity input interface circuit |
CN201233432Y (en) * | 2008-07-31 | 2009-05-06 | 武汉钢铁(集团)公司 | PLC switching value input power supply line failure indication apparatus |
CN101737100A (en) * | 2009-12-28 | 2010-06-16 | 国电南京自动化股份有限公司 | Turbine emergency protective system capable of preventing misoperation |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104597822A (en) * | 2013-10-31 | 2015-05-06 | 施耐德电器工业公司 | Digital input line break detection method and circuit |
CN105425712A (en) * | 2014-09-16 | 2016-03-23 | 施耐德电器工业公司 | Input Module For Programmable Logic Controller |
CN105425712B (en) * | 2014-09-16 | 2019-09-17 | 施耐德电器工业公司 | Programmable logic controller (PLC), its input module and test method |
CN106647697A (en) * | 2016-12-07 | 2017-05-10 | 广东电网有限责任公司电力调度控制中心 | Verification method for switching quantity input signals |
CN107831726A (en) * | 2017-11-17 | 2018-03-23 | 中石化石油工程技术服务有限公司 | A kind of functional safety switching input module of mixed architecture |
CN112288911A (en) * | 2020-10-21 | 2021-01-29 | 广东美电贝尔科技集团股份有限公司 | Gate inhibition logic control system and control method thereof |
CN112288911B (en) * | 2020-10-21 | 2022-07-08 | 广东美电贝尔科技集团股份有限公司 | Entrance guard logic control system and control method thereof |
CN114895614A (en) * | 2022-07-14 | 2022-08-12 | 天津飞旋科技股份有限公司 | Programmable controller |
CN114895614B (en) * | 2022-07-14 | 2022-10-11 | 天津飞旋科技股份有限公司 | Programmable controller |
CN116300673A (en) * | 2023-01-11 | 2023-06-23 | 广东鸿业管桩有限公司 | Device for protecting internal circuit of PLC digital quantity input module based on intermediate relay |
Also Published As
Publication number | Publication date |
---|---|
CN102467106B (en) | 2014-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102467106B (en) | Programmable logic controller (PLC) digital input control device and control method | |
CN100549973C (en) | A kind of usb bus interface detection apparatus and detection method thereof | |
CN202304869U (en) | Fault diagnosis circuit of transducer | |
CN103680274A (en) | Automatic detection method and device for connection wire of electrical experimental facility | |
CN103869236B (en) | The method of testing of infrared touch panel PCBA and measurement jig | |
US10886773B2 (en) | Information processing system, battery module, control method, and program | |
CN102315844B (en) | Digital quantity output device of programmable logic controller and self-checking method | |
CN106354685A (en) | Method for realizing I2C bus deadlock recovery of PSU and ME communication | |
CN102375426A (en) | Controlling apparatus of digital quantity output of PLC and controlling method thereof | |
CN102968351A (en) | External control method for BIT parameters | |
CN103048116A (en) | Method and device for performing in-place detection on optical fiber as well as microcontroller | |
CN106549366A (en) | Electrical Safety detection protection circuit, switchgear or socket | |
CN103616660A (en) | Power-down processing reliability test device and method for intelligent ammeters in interference environment | |
CN103595999B (en) | The automatic testing method of intelligent television and automatic detection device | |
CN104678983A (en) | Traction control unit self-detection circuit | |
CN203643828U (en) | Self-detection circuit of traction control unit | |
CN103744752B (en) | A kind of online fault detection method of internal memory and device | |
CN102479143A (en) | Blade service system | |
CN113824611B (en) | Consumption flow test method, device and equipment of wireless communication module and storage medium | |
CN105116866A (en) | PLC (Programmable Logic Controller)-based production workshop equipment operation monitoring device | |
CN210573458U (en) | Power distribution cabinet environment monitoring system | |
CN102622846B (en) | Bus device address collision detection structure of fire alarm control unit | |
CN201576345U (en) | Alarming responser | |
CN115277079B (en) | Power terminal information attack monitoring method and system | |
CN205384725U (en) | Motormeter alarm signal's detection control apparatus |
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 |