CN112152608A - PLC pulse signal counting method and device, computer equipment and storage medium - Google Patents

PLC pulse signal counting method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112152608A
CN112152608A CN202010847231.1A CN202010847231A CN112152608A CN 112152608 A CN112152608 A CN 112152608A CN 202010847231 A CN202010847231 A CN 202010847231A CN 112152608 A CN112152608 A CN 112152608A
Authority
CN
China
Prior art keywords
dev
dint
value
max
setting
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.)
Pending
Application number
CN202010847231.1A
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.)
SGIS Songshan Co Ltd
Original Assignee
SGIS Songshan 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 SGIS Songshan Co Ltd filed Critical SGIS Songshan Co Ltd
Priority to CN202010847231.1A priority Critical patent/CN112152608A/en
Publication of CN112152608A publication Critical patent/CN112152608A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K21/00Details of pulse counters or frequency dividers
    • H03K21/02Input circuits
    • H03K21/026Input circuits comprising logic circuits

Landscapes

  • Programmable Controllers (AREA)

Abstract

The invention relates to a PLC pulse signal counting method, a device, computer equipment and a storage medium, wherein the method comprises the following steps: the PLC system samples a pulse signal of a pulse encoder to obtain a real-time pulse count value PI _ DINT which changes in a continuous period; setting a variable UP _ F ═ PI _ MIN-PI _ MAX)/2; setting a variable DN _ F to (PI _ MAX-PI _ MIN)/2; setting a variable PI _ DEV to PI _ DINT-PI _ OLD; comparing the size of PI _ DEV with UP _ F, DN _ F; obtaining a relational expression of final output values PI _ DELTA and PI _ DEV according to the comparison result of PI _ DEV and UP _ F, DN _ F; outputting the value of PI _ DELTA according to the relation; the invention converts the continuous periodic counting in a smaller range into the real-time value of the pulse counting value change of the unit scanning period calculated according to the scanning period of the PLC system, thereby expanding the upper limit and the lower limit of the pulse counting value, improving the measuring range of the pulse encoder, accurately carrying out various distance measurement, signal tracking and position detection, effectively improving the accuracy of electrical control and ensuring stable and normal production.

Description

PLC pulse signal counting method and device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of electrical automation control, in particular to a PLC pulse signal counting method, a PLC pulse signal counting device, computer equipment and a storage medium.
Background
In the field of electrical automation control, it is a common method to control equipment by using incremental encoder pulse signals. As shown in fig. 1, the PLC collects a pulse square wave input signal through the high-speed counter module, accumulates the pulse square wave input signal in the input process mapping area, and stores the pulse square wave input signal as a real-time count value that changes within a fixed range, and when the pulse square wave input signal exceeds the storage range, the count value overflows. According to the mode of the counting value, a plurality of counting modes can be divided, wherein the most common counting mode is continuous cycle counting, as shown in fig. 2 and fig. 3.
In fig. 2 and 3, PI _ MAX is the upper limit value of the real-time count value, and PI _ MIN is the lower limit value of the real-time count value. In fig. 2, in a fixed range, the encoder rotates (moves) in one direction, and the real-time count value of the pulse signal is counted from small to large in a positive direction; when the counting value counts in the positive direction and reaches the upper limit PI _ MAX and the next positive pulse arrives, the counting value jumps to the lower limit PI _ MIN, and the positive counting is recovered from the lower limit, and the continuous positive counting can not exceed the upper limit. In fig. 3, the encoder rotates (moves) in the other direction within a fixed value range, and the real-time count value of the pulse signal is counted from large to small in a reverse direction; when the counting value is reversely counted and reaches the lower limit PI _ MIN, the counting value jumps to the upper limit PI _ MAX when the next negative pulse comes, and the reverse counting is recovered from the upper limit, and the continuous reverse counting cannot be performed again when the counting value is lower than the lower limit. If the required counting range exceeds the upper limit value or the lower limit value in practical application, the counting measurement cannot be completed.
Disclosure of Invention
The present invention is directed to a PLC pulse signal counting method, apparatus, computer device and storage medium, which solve one or more of the problems of the prior art and provide at least one of the advantages of the present invention.
The technical purpose of the invention is realized by the following technical scheme: a PLC pulse signal counting method, the method comprising the steps of:
the PLC system samples a pulse signal of a pulse encoder to obtain a real-time pulse count value PI _ DINT which changes in a continuous period;
setting a variable UP _ F ═ PI _ MIN-PI _ MAX)/2;
setting a variable DN _ F to (PI _ MAX-PI _ MIN)/2;
setting a variable PI _ DEV to PI _ DINT-PI _ OLD;
comparing the size of PI _ DEV with UP _ F, DN _ F;
obtaining a relational expression of final output values PI _ DELTA and PI _ DEV according to the comparison result of PI _ DEV and UP _ F, DN _ F;
outputting the value of PI _ DELTA according to the relation;
wherein, PI _ DELTA is the final output value and is the real-time variation value of PI _ DINT; PI _ MAX is the upper limit value of PI _ DINT in the period; PI _ MIN is the lower limit value of PI _ DNT in the period; PI _ OLD is the register value of PI _ DINT at the end of the last cycle.
In one embodiment, the setting PI _ DEV _ PI _ DINT-PI _ OLD further includes:
setting a variable PI _ OLD ═ PI _ NEW;
wherein, PI _ NEW is the register value of PI _ DINT at the end of the last cycle, and PI _ NEW is used as the input value of PI _ OLD.
In one embodiment, the relationship between the final output values PI _ DELTA and PI _ DEV according to the comparison result between PI _ DEV and UP _ F, DN _ F is as follows:
if UP _ F is less than or equal to PI _ DEV is less than or equal to DN _ F, when the PI _ DINT count value is not increased to the upper limit value PI _ MAX or PI _ DIT is not decreased to the lower limit value P _ MIN, the relationship PI _ DELTA is greater than PI _ DEV.
In one embodiment, the relationship between the final output values PI _ DELTA and PI _ DEV according to the comparison result between PI _ DEV and UP _ F, DN _ F is as follows:
if PI _ DEV is less than or equal to UP _ F, when the PI _ DINT count value reaches the upper limit value PI _ MAX or the critical upper limit value PI _ MAX, and when the next cycle pulse arrives, PI _ DINT jumps to the lower limit value PI _ MIN or the jump value is greater than the lower limit value PI _ MIN, PI _ DELTA is PI _ DEV + (PI _ STR + 1);
wherein PI _ STR is PI _ MAX-PI _ MIN.
In one embodiment, the relationship between the final output values PI _ DELTA and PI _ DEV according to the comparison result between PI _ DEV and UP _ F, DN _ F is as follows:
if PI _ DEV is larger than or equal to DN _ F, when the count-down of PI _ DINT reaches the lower limit value PI _ MIN or the critical lower limit value PI _ MIN, and when the next cycle pulse arrives, PI _ DINT jumps to the upper limit value PI _ MAX or the jump value is smaller than the upper limit value PI _ MAX, PI _ DELTA is PI _ DEV- (PI _ STR + 1);
wherein PI _ STR is PI _ MAX-PI _ MIN.
In one embodiment, the method further comprises:
and setting PI _ DINT as PI _ NEW, and jumping to the step of setting PI _ OLD as PI _ NEW to perform loop calculation.
A PLC pulse signal counting apparatus comprising:
the sampling module is used for sampling a pulse signal of the incremental pulse encoder;
the acquisition module is used for acquiring a real-time pulse count value PI _ DINT which changes in a continuous period;
the setting module is used for setting a variable PI _ DEV as PI _ DINT-PI _ OLD; setting a variable UP _ F ═ PI _ MIN-PI _ MAX)/2; setting a variable DN _ F to (PI _ MAX-PI _ MIN)/2;
the comparison module is used for comparing the sizes of the PI _ DEV and the UP _ F, DN _ F; obtaining a relational expression of final output values PI _ DELTA and PI _ DEV according to the comparison result of PI _ DEV and UP _ F, DN _ F;
and the output module is used for outputting the value of the PI _ DELTA according to the relation.
In one embodiment, the apparatus further includes a skip module, and the skip module is configured to skip to the step of setting PI _ OLD ═ PI _ NEW to perform loop calculation.
A computing device, the computing device comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of a PLC pulse signal counting method as described above.
A computer-readable storage medium, on which a computer method program is stored, which, when being executed by a processor, carries out the steps of a PLC pulse signal counting method as described above.
In conclusion, the invention has the following beneficial effects:
the invention converts the continuous periodic counting in a smaller range into the real-time value of the pulse counting value change of the unit scanning period calculated according to the scanning period of the PLC system, thereby expanding the upper limit and the lower limit of the pulse counting value, improving the measuring range of the pulse encoder, accurately carrying out various distance measurement, signal tracking and position detection, effectively improving the accuracy of electrical control and ensuring stable and normal production.
Drawings
FIG. 1 is a schematic diagram of an incremental encoder signal input PLC pulse counter module;
FIG. 2 is a diagram of a positive increase in the encoder pulse signal;
FIG. 3 is a graph of encoder pulse signal reversal increase;
fig. 4 is an algorithm flow chart of a PLC pulse signal counting method.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and the detailed description, and it should be noted that any combination of the embodiments or technical features described below can be used to form a new embodiment without conflict.
Referring to fig. 4, a PLC pulse signal counting method of the present invention is shown, which includes the following steps:
step 1, a PLC system samples pulse signals of a pulse encoder to obtain a real-time pulse count value PI _ DINT which changes in a continuous period;
step 2, setting a variable PI _ STR-PI _ MIN;
step 3, setting a variable UP _ F to be (PI _ MIN-PI _ MAX)/2;
setting a variable DN _ F to (PI _ MAX-PI _ MIN)/2;
step 4, setting a variable PI _ OLD ═ PI _ NEW;
step 5, setting a variable PI _ DEV as PI _ DINT-PI _ OLD;
step 6, comparing the sizes of the PI _ DEV and the UP _ F, DN _ F, and if the UP _ F is not less than the PI _ DEV and not more than the DN _ F, jumping to step 7; if PI _ DEV is less than or equal to UP _ F, skipping to step 8; if the PI _ DEV is more than or equal to DN _ F, jumping to the step 9;
and 7, when the PI _ DINT counting value is not increased to the upper limit value PI _ MAX or the PI _ DINT counting value is not decreased to the lower limit value PI _ MIN, obtaining the relation PI _ DELTA _ PI _ DEV.
Step 8, when the up count of the PI _ DINT count value reaches the upper limit value PI _ MAX or the critical upper limit value PI _ MAX, when the next cycle pulse arrives, the PI _ DINT jumps to the lower limit value PI _ MIN or the jump value is larger than the lower limit value PI _ MIN, and then PI _ DELTA is PI _ DEV + (PI _ STR + 1);
step 9, when the PI _ DINT count value counts down to reach the lower limit value PI _ MIN or the critical lower limit value PI _ MIN, when the next cycle pulse arrives, the PI _ DINT jumps to the upper limit value PI _ MAX or the jump value is smaller than the upper limit value PI _ MAX, and then PI _ DELTA is PI _ DEV- (PI _ STR + 1);
step 10, outputting the value of PI _ DELTA according to the relational expression;
step 11, set PI _ DINT to PI _ NEW, and go to the step to set PI _ OLD to PI _ NEW to perform loop calculation.
Wherein, PI _ DELTA is the final output value and is the real-time variation value of PI _ DINT; PI _ MAX is the upper limit value of PI _ DINT in the period; PI _ MIN is the lower limit value of PI _ DINT in the period; PI _ NEW is the register value of PI _ DINT at the end of the last cycle, and is used as the input value of PI _ OLD. PI _ OLD is a register value of PI _ DINT at the end of the last period; PI _ STR is PI _ MAX-PI _ MIN.
In embodiment 1, the PLC system samples the pulse signal of the pulse encoder to obtain a real-time pulse count value PI _ DINT that changes in a continuous period. PI _ DINT is a signed 16-bit integer, so PI _ MIN is-32768 and PI _ MAX is 32767.
1. PI _ STR-PI _ MAX-PI _ MIN 32767- (-32168) 65535
2. Setting UP _ F ═ (PI _ MIN-PI _ MAX) ÷ 2 ═ 32768-32767) ÷ 2 ═ 32767.5
Set DN _ F ═ (PI _ MAX-PI _ MIN) ÷ 2 ═ 32767- (-32768)) ═ 32767.5
3. The PI _ OLD is set to PI _ NEW, which is the value of PI _ DINT at the end of a scanning cycle on the PLC system.
4. And setting PI _ DEV as PI _ DINT-PI _ OLD, wherein according to the calculation method, when the PLC system is operated, the encoder rotates, and PI _ DINT does not exceed the upper limit value PI _ MAX and does not fall below the lower limit value PI _ MIN, PI _ DEV is an increment value in a scanning period of the PLC system, for example, the encoder rotates uniformly in the positive direction, the pulse increment value in a unit scanning period is 3, and PI _ DEV is 3.
5. PI _ DEV is compared in size with UP _ F and DN _ F. According to the difference of the comparison values, selective calculation is carried out, and the conditions for selecting jump calculation are as the following steps 6, 7 and 8.
6. When UP _ F ≦ PI _ DEV ≦ DN _ F, i.e., -32767.5 ≦ PI _ DEV ≦ 32767.5, proceed to step 9.
7. When PI _ DEV ≦ UP _ F, i.e., PI _ DEV ≦ -32767.5, it jumps to step 10. This is the case when PI _ DINT reaches the upper limit PI _ MAX (i.e. PI _ DINT reaches 32767), and when the PLC system arrives at the next scanning period and the pulse is further increased by one or more numbers in the forward direction, for example, PI _ DINT is-32766, PI _ DEV is-32766-32767 is-65533 < -32767.5.
8. When PI _ DEV ≧ DN _ F and PI _ DEV ≧ 32767.5, go to step 11. This is the case when PI _ DINT reaches the lower limit PI _ MIN (i.e., PI _ DINT — 32768), and when the PLC system arrives at the next scanning period and the pulse is increased by one or more numbers in the reverse direction, for example, PI _ DINT 32766, then PI _ DEV 32766- (-32768) ═ 65534> 32767.5.
9. If the condition 6 is satisfied, jumping to the step: when the PI _ DINT count value is not increased to the upper limit value PI _ MAX (32767), and PI _ DINT is not decreased to the lower limit value (-32768), the final output value PI _ DELTA is PI _ DEV is 3.
10. When condition 7 is satisfied, the process jumps to this step, and the final output value PI _ DELTA ═ PI _ DEV + (PI _ STR +1), for example: when PI _ DINT jumps from 32767 to-32766, then:
the final output value PI _ DELTA ═ PI _ DEV + (PI _ STR +1) — (32766-.
11. When condition 8 is satisfied, the process jumps to this step, and the final output value PI _ DELTA is PI _ DEV- (PI _ STR +1), for example:
when PI _ DINT jumps from-32768 to 32756, then:
the final output value PI _ DELTA ═ PI _ DEV- (PI _ STR +1) ═ 32765- (-32768)) - (PI _ STR +1) ═ 3, which coincides with the result of the inverse reduction of the actual result by 3 pulses. Since the rotation is in the reverse direction, "-" is used for representation.
12. PI _ DINT is set to PI _ NEW.
In the above embodiment, PI _ DELTA is the final output, and when the encoder rotates at a constant speed, PI _ DELTA is a constant value and is not limited by the upper limit of PI _ MAX and the lower limit of PI _ MIN. If other calculation methods are used, functions of distance range measurement expansion, signal tracking, position detection and the like can be conveniently realized. The pulse signal calculation method is applicable to pulse calculation of PLC systems of various models, and is simple and convenient.
A PLC pulse signal counting apparatus comprising:
and the sampling module is used for sampling the pulse signal of the incremental pulse encoder.
And the acquisition module is used for acquiring a real-time pulse count value PI _ DINT which changes in a continuous period.
A setting module, configured to set a variable PI _ OLD ═ PI _ NEW; setting a variable PI _ DEV to PI _ DINT-PI _ OLD; setting a variable UP _ F ═ PI _ MIN-PI _ MAX)/2; the variable DN _ F is set to (PI _ MAX-PI _ MIN)/2.
The comparison module is used for comparing the sizes of the PI _ DEV and the UP _ F, DN _ F; obtaining a relational expression of final output values PI _ DELTA and P _ DEV according to the comparison result of PI _ DEV and UP _ F, DN _ F;
in the embodiment of the present invention, PI _ DEV is compared with UP _ F, DN _ F, and if UP _ F is not greater than PI _ DEV is not greater than DN _ F, when the PI _ DINT count value is not increased to the upper limit PI _ MAX or PI _ DINT is not decreased to the lower limit PI _ MIN, the relationship PI _ DELTA is PI _ DEV. (ii) a If PI _ DEV is less than or equal to UP _ F, when the PI _ DINT count value reaches the upper limit value PI _ MAX or the critical upper limit value PI _ MAX, when the next cycle pulse arrives, PI _ DINT jumps to the lower limit value PI _ MIN or the jump value is greater than the lower limit value PI _ MIN, then PI _ DELTA is PI _ DEV + (PI _ STR + 1); if PI _ DEV is not less than DN _ F, when the PI _ DINT counting value reaches the lower limit value PI _ MI or the critical lower limit value PI _ MIN, PI _ DINT jumps to the upper limit value PI _ MAX or the jump value is less than the upper limit value PI _ MAX when the next cycle pulse arrives, and PI _ DELTA is PI _ DEV- (PI _ STR + 1).
And the output module is used for outputting the value of the PI _ DELTA according to the relation.
And the skipping module is used for skipping to the step setting PI _ OLD ═ PI _ NEW to perform loop calculation.
The invention converts the continuous periodic counting in a smaller range into the real-time value of the pulse counting value change of the unit scanning period calculated according to the scanning period of the PLC system, thereby expanding the upper limit and the lower limit of the pulse counting value, improving the measuring range of the pulse encoder, accurately carrying out various distance measurement, signal tracking and position detection, effectively improving the accuracy of electrical control and ensuring stable and normal production.
A computing device, the computing device comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of a PLC pulse signal counting method as described above.
A computer-readable storage medium, on which a computer method program is stored, which, when being executed by a processor, carries out the steps of a PLC pulse signal counting method as described above.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above description is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments, and all technical solutions belonging to the idea of the present invention belong to the protection scope of the present invention. It should be noted that modifications and embellishments within the scope of the invention may occur to those skilled in the art without departing from the principle of the invention, and are considered to be within the scope of the invention.

Claims (10)

1. A PLC pulse signal counting method is characterized in that: the method comprises the following steps:
the PLC system samples a pulse signal of a pulse encoder to obtain a real-time pulse count value PI _ DINT which changes in a continuous period;
setting a variable UP _ F ═ PI _ MIN-PI _ MAX)/2;
setting a variable DN _ F to (PI _ MAX-PI _ MIN)/2;
setting a variable PI _ DEV to PI _ DINT-PI _ OLD;
comparing the size of PI _ DEV with UP _ F, DN _ F;
obtaining a relational expression of final output values PI _ DELTA and PI _ DEV according to the comparison result of PI _ DEV and UP _ F, DN _ F;
outputting the value of PI _ DELTA according to the relation;
wherein, PI _ DELTA is the final output value and is the real-time variation value of PI _ DINT; PI _ MAX is the upper limit value of PI _ DINT in the period; PI _ MIN is the lower limit value of PI _ DINT in the period; PI _ OLD is the register value of PI _ DINT at the end of the last cycle.
2. The PLC pulse signal counting method according to claim 1, wherein: before the setting PI _ DEV _ PI _ DINT-PI _ OLD, the method further includes:
setting a variable PI _ OLD ═ PI _ NEW;
wherein, PI _ NEW is the register value of PI _ DINT at the end of the last cycle, and PI _ NEW is used as the input value of PI _ OLD.
3. The PLC pulse signal counting method according to claim 1, wherein: the relationship between the final output value PI _ DELTA and PI _ DEV obtained according to the comparison result between PI _ DEV and UP _ F, DN _ F is specifically as follows:
if UP _ F is less than or equal to PI _ DEV is less than or equal to DN _ F, when the PI _ DINT count value is not increased to the upper limit PI _ MAX or PI _ DINT is not decreased to the lower limit PI _ MIN, the relationship PI _ DELTA is PI _ DEV.
4. The PLC pulse signal counting method according to claim 1, wherein: the relationship between the final output value PI _ DELTA and PI _ DEV obtained according to the comparison result between PI _ DEV and UP _ F, DN _ F is specifically as follows:
if PI _ DEV is less than or equal to UP _ F, when the PI _ DINT count value reaches the upper limit value PI _ MAX or the critical upper limit value PI _ MAX, and when the next cycle pulse arrives, PI _ DINT jumps to the lower limit value PI _ MIN or the jump value is greater than the lower limit value PI _ MIN, PI _ DELTA is PI _ DEV + (PI _ STR + 1);
wherein PI _ STR is PI _ MAX-PI _ MIN.
5. The PLC pulse signal counting method according to claim 1, wherein: the relationship between the final output value PI _ DELTA and PI _ DEV obtained according to the comparison result between PI _ DEV and UP _ F, DN _ F is specifically as follows:
if PI _ DEV is larger than or equal to DN _ F, when the count-down of PI _ DINT reaches the lower limit value PI _ MIN or the critical lower limit value PI _ MIN, and when the next cycle pulse arrives, PI _ DINT jumps to the upper limit value PI _ MAX or the jump value is smaller than the upper limit value PI _ MAX, PI _ DELTA is PI _ DEV- (PI _ STR + 1);
wherein PI _ STR is PI _ MAX-PI _ MIN.
6. The PLC pulse signal counting method according to claim 2, wherein: the method further comprises the following steps:
and setting the variable PI _ DINT to PI _ NEW, and jumping to the step of setting the variable PI _ OLD to PI _ NEW to perform loop calculation.
7. A PLC pulse signal counting device is characterized in that: the method comprises the following steps:
the sampling module is used for sampling a pulse signal of the incremental pulse encoder;
the acquisition module is used for acquiring a real-time pulse count value PI _ DINT which changes in a continuous period;
the setting module is used for setting a variable PI _ DEV as PI _ DINT-PI _ OLD; setting a variable UP _ F ═ PI _ MIN-PI _ MAX)/2; setting a variable DN _ F to (PI _ MAX-PI _ MIN)/2;
the comparison module is used for comparing the sizes of the PI _ DEV and the UP _ F, DN _ F; obtaining a relational expression of final output values PI _ DELTA and PI _ DEV according to the comparison result of PI _ DEV and UP _ F, DN _ F;
and the output module is used for outputting the value of the PI _ DELTA according to the relation.
8. The PLC pulse signal counting apparatus according to claim 7, wherein: the jump module is used for jumping to the step of setting PI _ OLD as PI _ NEW to perform loop calculation.
9. A computing device, the computing device comprising: memory, processor and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of a PLC pulse signal counting method according to any of claims 1 to 6.
10. A computer-readable storage medium, having stored thereon a computer program of a method of counting, which when executed by a processor, carries out the steps of a method of counting PLC pulse signals of any one of claims 1 to 6.
CN202010847231.1A 2020-08-21 2020-08-21 PLC pulse signal counting method and device, computer equipment and storage medium Pending CN112152608A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010847231.1A CN112152608A (en) 2020-08-21 2020-08-21 PLC pulse signal counting method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010847231.1A CN112152608A (en) 2020-08-21 2020-08-21 PLC pulse signal counting method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112152608A true CN112152608A (en) 2020-12-29

Family

ID=73888176

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010847231.1A Pending CN112152608A (en) 2020-08-21 2020-08-21 PLC pulse signal counting method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112152608A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1041809A (en) * 1996-07-23 1998-02-13 Okuma Mach Works Ltd Pulse count circuit
JP2008085543A (en) * 2006-09-27 2008-04-10 Japan Aviation Electronics Industry Ltd Counter circuit
JP2010074637A (en) * 2008-09-19 2010-04-02 Alps Electric Co Ltd Up/down counter device
CN101789732A (en) * 2009-01-23 2010-07-28 三洋电机株式会社 Pulse period measurement method
KR20120124338A (en) * 2011-05-03 2012-11-13 엘에스산전 주식회사 High Speed Counter
KR20130028440A (en) * 2011-09-09 2013-03-19 엘에스산전 주식회사 Plc high speed counter and plc high speed counting method
CN105573244A (en) * 2014-10-30 2016-05-11 Ls产电株式会社 PLC high speed counter and operating method thereof
KR20160108654A (en) * 2015-03-04 2016-09-20 엘에스산전 주식회사 High speed counter
CN110061733A (en) * 2019-04-19 2019-07-26 苏州瑞迈斯医疗科技有限公司 Method of counting, method for reconstructing and the chip of pulse signal
CN110061734A (en) * 2019-04-12 2019-07-26 北京无线电测量研究所 A kind of inertial navigation component output pulse counting method and device
CN111337702A (en) * 2020-03-24 2020-06-26 深圳市微秒控制技术有限公司 Data processing system and method for optical incremental encoder

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1041809A (en) * 1996-07-23 1998-02-13 Okuma Mach Works Ltd Pulse count circuit
JP2008085543A (en) * 2006-09-27 2008-04-10 Japan Aviation Electronics Industry Ltd Counter circuit
JP2010074637A (en) * 2008-09-19 2010-04-02 Alps Electric Co Ltd Up/down counter device
CN101789732A (en) * 2009-01-23 2010-07-28 三洋电机株式会社 Pulse period measurement method
KR20120124338A (en) * 2011-05-03 2012-11-13 엘에스산전 주식회사 High Speed Counter
KR20130028440A (en) * 2011-09-09 2013-03-19 엘에스산전 주식회사 Plc high speed counter and plc high speed counting method
CN105573244A (en) * 2014-10-30 2016-05-11 Ls产电株式会社 PLC high speed counter and operating method thereof
KR20160108654A (en) * 2015-03-04 2016-09-20 엘에스산전 주식회사 High speed counter
CN110061734A (en) * 2019-04-12 2019-07-26 北京无线电测量研究所 A kind of inertial navigation component output pulse counting method and device
CN110061733A (en) * 2019-04-19 2019-07-26 苏州瑞迈斯医疗科技有限公司 Method of counting, method for reconstructing and the chip of pulse signal
CN111337702A (en) * 2020-03-24 2020-06-26 深圳市微秒控制技术有限公司 Data processing system and method for optical incremental encoder

Similar Documents

Publication Publication Date Title
CN110232483B (en) Deep learning load prediction method and device and terminal equipment
CN1103139C (en) Interpolation circuit for coder
CN108089938B (en) Abnormal data processing method and device
CN110955648A (en) Non-equidistant time sequence monitoring data normalization mapping processing method
CN111757008B (en) Focusing method, device and computer readable storage medium
CN113568960B (en) Real-time analysis method and system for data of Internet of things and computer readable storage medium
CN102098101A (en) Crest searching method and system
CN113783962B (en) Data acquisition system and method based on edge calculation
CN112580793A (en) Neural network accelerator based on time domain memory computing and acceleration method
CN112152608A (en) PLC pulse signal counting method and device, computer equipment and storage medium
CN116256532A (en) Speed measurement method, device, equipment and storage medium
CN109959407B (en) Method and device for quickly detecting linearity of steering engine position sensor
CN110837885B (en) Sigmoid function fitting method based on probability distribution
Dichev et al. Analysis of instrumental errors influence on the accuracy of instruments for measuring parameters of moving objects
CN210690813U (en) Analog-digital measuring circuit for time interval of pulse laser radar
CN115270894B (en) Abnormal vibration signal extraction method for methanol generator
CN115174761A (en) Method and device for adjusting image acquisition frequency and image acquisition of camera
CN111721210B (en) Initialization method, device, equipment and medium after conversion of logical raster resolution
CN112013892B (en) Encoder ranging correction method and device, electronic equipment and storage medium
CN115223735A (en) Rod position determination method and device for pressurized water reactor control rod and rod position measurement system
CN1493883A (en) Agitating measuring device and measuring method
SU1531108A1 (en) Device for signal segmentation
KR100467581B1 (en) Velocity measurement apparatus and method using quantization error
CN116086497B (en) Output correction method, device and medium for optical fiber gyroscope under low angular rate based on neural network
CN117708507B (en) Efficient alpha and beta ray identification and classification method based on artificial intelligence

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination