CN103137052A - Method and system for digital display based on programmable logic controller (PLC) control - Google Patents

Method and system for digital display based on programmable logic controller (PLC) control Download PDF

Info

Publication number
CN103137052A
CN103137052A CN2011103760667A CN201110376066A CN103137052A CN 103137052 A CN103137052 A CN 103137052A CN 2011103760667 A CN2011103760667 A CN 2011103760667A CN 201110376066 A CN201110376066 A CN 201110376066A CN 103137052 A CN103137052 A CN 103137052A
Authority
CN
China
Prior art keywords
data
latch
digital display
plc
scan
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
Application number
CN2011103760667A
Other languages
Chinese (zh)
Other versions
CN103137052B (en
Inventor
刘欢欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Iron Technology Co Ltd
Original Assignee
Suzhou Iron Technology 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 Suzhou Iron Technology Co Ltd filed Critical Suzhou Iron Technology Co Ltd
Priority to CN201110376066.7A priority Critical patent/CN103137052B/en
Publication of CN103137052A publication Critical patent/CN103137052A/en
Application granted granted Critical
Publication of CN103137052B publication Critical patent/CN103137052B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Of El Displays (AREA)
  • Programmable Controllers (AREA)

Abstract

The invention provides a method and a system for digital display based on programmable logic controller (PLC) control. The method includes the following steps: S1 scanning a counting result generated by photoelectric counting in one period; S2 receiving scanning data; S3 conducting data conversion and converting received scanning data into preset-system data; S4 coding the converted data and outputting and latching obtained display driving signals; and S5 displaying latched data according to display driving signals. The method and the system for digital display based on PLC control are high in anti-jamming capability and capable of providing stable output display.

Description

Numeric displaying method and system based on PLC control
Technical field
The present invention relates to a kind of numeric displaying method and system that controls based on PLC.
Background technology
PLC is the major control equipment of industrial control field, uses for various automation control systems provide safe and reliable and fairly perfect control.In the industrial system that PLC controls, it is the important component part of industrial automation equipment that numeral shows, can show intuitively actual count quantity.
Existing display packing is all that the method by dynamic scan shows usually, yet this display packing poor anti jamming capability easily causes the unstable of demonstration, when being set in short-term the scan period, the low problem of display brightness can occur; When being set when long the scan period, the twinkling problem of glimmering can appear, can not reach a good effect.
Summary of the invention
In order to address the above problem, the invention provides a kind of numeric displaying method and system that controls based on PLC, antijamming capability is strong, and stable output display can be provided.
Concrete technical scheme is as follows:
A kind of numeric displaying method of controlling based on PLC that the embodiment of the present invention provides comprises the following steps:
The count results that in S1, scanning one-period, photoelectric counting produces;
S2, reception scan-data;
S3, carry out data-switching, convert the scan-data that receives to default standard data;
S4, the data after changing are carried out decoding, export and latch the display drive signals that obtains;
S5, according to the data of display drive signals display latch.
The preferred embodiment one of according to the present invention in step S1, also comprises judging whether to reach a scan period, if so, enters step S2, otherwise continues step S1.
The preferred embodiment one of according to the present invention in step S2, comprises that also whether the scan-data that judgement receives has renewal, if having, enters step S3, otherwise returns to step S1.
The preferred embodiment one of according to the present invention, in step S3, the tetrad data that described default standard data are binary-coded decimal.
The preferred embodiment one of according to the present invention, step S4 is specially: transmitting control signal allows decoding output, the data decoding output display after conversion is driven signal, and the display drive signals of output is latched.
A kind of digital display system of controlling based on PLC that the embodiment of the present invention provides comprises Programmable Logic Controller, latch decoder and digital display tube, wherein
Described Programmable Logic Controller connects and scans photoelectricity counting unit, will obtain scan-data and convert default standard data to, and transfer to described latch decoder;
Described latch decoder connects described Programmable Logic Controller, and the data after conversion are carried out decoding, exports and latchs the display drive signals that obtains and drive described digital display tube;
Described digital display tube connects described latch decoder, and according to the data of display drive signals display latch.
The preferred embodiment one of according to the present invention, described latch decoder adopts the CD4511 chip, its data input pin is pin one, 2,6 and 7, the latch signal end is pin 5, the decoding output terminal is pin 9,10,11,12,13,14 and 16, described data input pin is connected with described Programmable Logic Controller with the latch signal end, and described decoding output terminal is connected with described digital display tube.
The preferred embodiment one of according to the present invention is serially connected with divider resistance between the decoding output terminal of described latch decoder and described digital display tube.
The preferred embodiment one of according to the present invention, described latch decoder is corresponding one by one with digital display tube.
As can be seen from the above technical solutions, a kind of numeric displaying method and system that controls based on PLC provided by the invention, thereby the mode that adopts Programmable Logic Controller to realize in conjunction with software is controlled the duty control figure of latch decoder and is shown, has latch function, less demanding to the scan period, antijamming capability is strong, and stable output display can be provided.
Description of drawings
Fig. 1 is the process flow diagram of the numeric displaying method of controlling based on PLC that provides of the embodiment of the present invention one;
Fig. 2 is the particular flow sheet of the numeric displaying method of controlling based on PLC that provides of the embodiment of the present invention two;
Fig. 3 is the theory diagram of the digital display system of controlling based on PLC that provides of the embodiment of the present invention three;
Fig. 4 is the circuit diagram of the digital display system of controlling based on PLC that provides of the embodiment of the present invention three.
Embodiment
In order to make the purpose, technical solutions and advantages of the present invention clearer, describe the present invention below in conjunction with the drawings and specific embodiments.
Embodiment 1
Fig. 1 is the process flow diagram of the numeric displaying method of controlling based on PLC that provides of the present embodiment, and as shown in Figure 1, the method comprises the following steps:
The count results that in step S101, scanning one-period, photoelectric counting produces.
Photoelectric accounter is by photodiode, when have object by the time shelter from the light that photodiode receives, photodiode is in not on-state, trigger circuit are counted action.Such as, when medicine particle quantity is counted, count by the motor rotation that triggers in photoelectric accounter, fall a medicine and record a numeral.
PLC scans the count results that photoelectric counting produces, as scan-data.
Step S102, reception scan-data.
The scan-data that PLC receives is the count results of photoelectric counting, is generally decimal data, also may be the data of the standards such as scale-of-two or 16 systems.
Step S103, carry out data-switching, convert the scan-data that receives to default standard data.
The tetrad data that described default standard data are binary-coded decimal.The standard data that can identify due to latch or code translator are the binary-coded decimal data, thereby PLC need to convert the scan-data that receives to the binary-coded decimal data.
Before carrying out data, the judgement that the data of can advancedly going are upgraded, when having determined Data Update, but latch signal is set to input state, in order to the binary-coded decimal data are further processed.When determining data without renewal, latch signal is set to latch mode, does not receive the binary-coded decimal data.Described latch signal and binary-coded decimal data consist of the PLC signal of output.
Step S104, the data after changing are carried out decoding, export and latch the display drive signals that obtains.
This step is specially: first transmitting control signal allows decoding output, the data decoding output display after conversion is driven signal, and the display drive signals of output is latched.
The control signal that sends is the latch signal in the PLC signal, in order to control the binary-coded decimal data decoding output after whether changing.
Step S105, according to the data of display drive signals display latch.
The PLC signal comprises latch signal and binary-coded decimal data, and the binary-coded decimal data are through the high-low level display drive signals of output " 0 " and " 1 " after decoding, in order to the data of display latch.
Embodiment two
Fig. 2 is the particular flow sheet of the numeric displaying method of controlling based on PLC that provides of the present embodiment, and as shown in Figure 2, the method comprises:
The count results that step S201, scanning photoelectric counting produce.
PLC scans the count results that photoelectric counting produces, as scan-data.
Step S202, judge whether to complete a scan period, if so, enter step S203; Otherwise, return to step S201.
After completing a scan period, just allow to be for further processing.
Step S203, reception scan-data.
The scan-data that PLC receives is the count results of photoelectric counting, is generally decimal data, also may be the data of the standards such as scale-of-two or 16 systems.
Whether the data that step S204, judgement receive have renewal, if having, enter step S205; Otherwise, enter step S207.
When having determined Data Update, but latch signal is set to input state, is further processed.At this moment, latch signal is " 0 ", allows input.When determining data without renewal, latch signal is set to latch mode, does not receive the binary-coded decimal data.At this moment, latch signal is " 1 ", hold mode.
Step S205, carry out data system conversion.
PLC need to convert the scan-data that receives to the binary-coded decimal data.
Step S206, transmit control signal and change after data to latch decoder, carry out update displayed.
The PLC signal comprises latch signal and binary-coded decimal data.The control signal that sends is that in the PLC signal, numerical value is the latch signal of " 0 ".When latch signal is " 0 ", with the output of the binary-coded decimal data decoding after conversion, carry out update displayed.The binary-coded decimal data are through the high-low level display drive signals of output " 0 " and " 1 " after decoding, in order to the data of display latch.
After this step is completed, return to step S201, carry out the next one scan period.
Step S207, transmission latch signal keep original demonstration to latch decoder.
Sending latch signal is that in the PLC signal, numerical value for the latch signal of " 1 ", when latch signal is " 1 ", does not receive the binary-coded decimal data, keeps original demonstration.
After this step is completed, return to step S201, carry out the next one scan period.
Be more than the detailed description that method provided by the present invention is carried out, be described in detail below by three pairs of digital display systems provided by the invention of embodiment.
Embodiment 3
Fig. 3 is the theory diagram of the digital display system that provides of the present embodiment, and Fig. 4 is the circuit diagram of the digital display system that provides of the present embodiment, consults Fig. 3 and shown in Figure 4, and this system comprises Programmable Logic Controller 301, latch decoder 302 and digital display tube 303, wherein
Programmable Logic Controller 301 connects and scans photoelectricity counting unit, will obtain scan-data and convert default standard data to, and transfer to latch decoder 302.The PLC signal that is converted to is transferred to data input pin and the latch signal end of latch decoder 302, the decoding output terminal of latch decoder 302 is connected with the data input pin of digital display tube 303.
Latch decoder 302 connects Programmable Logic Controller 301, and the data after conversion are carried out decoding, exports and latchs the display drive signals that obtains and drive digital display tube 303.
Digital display tube 303 connects latch decoder 302, and according to the data of display drive signals display latch.
Wherein, the PLC signal comprises latch signal and binary-coded decimal data, and latch signal is connected to the latch signal end of latch decoder 302, and the binary-coded decimal data are connected to the binary-coded decimal input end of latch decoder 302.The high-low level display drive signals of output " 0 " and " 1 " after 302 decodings of binary-coded decimal data process latch decoder is in order to drive digital display tube 303.
As shown in Figure 4, this system comprises 4 latch decoders and 4 charactrons, latch decoder U1, U2, U3, U4 and digital display tube LED1, LED2, LED3, LED4, and latch decoder is corresponding one by one with digital display tube.Latch decoder 302 adopts the CD4511 chip, and its data input pin is the binary-coded decimal input end, is pin one, 2,6 and 7, and the latch signal end is pin 5, and the decoding output terminal is pin 9,10,11,12,13,14 and 16.Digital display tube 303 adopts the LED common cathode to show charactron, and its data input pin is pin two, 3,4,5,7,8,9 and 10.Be connected in series divider resistance R9 ~ R36 between the decoding output terminal of latch decoder and the data input pin of digital display tube.The test input of latch decoder (pin 3) is connected pin 4 with the blanking input end) connection+5V power supply, be high level.Control the duty of latch decoder by the latch signal LE1 in the PLC signal after conversion ~ LE4.When LE1 was low level 0, latch decoder U1 allowed the output of decoding output terminal, and charactron LED1 is according to the decode results output display of the binary-coded decimal data A0 ~ A3 in the PLC signal at this moment.When LE1 was output as high level 1, latch decoder U1 was the locking hold mode, the numerical value of input before keeping, and this moment, the demonstration of charactron LED1 did not change.
Numeric displaying method and the system that controls based on PLC provided by the invention, thereby the mode that adopts Programmable Logic Controller to realize in conjunction with software is controlled the duty control figure of latch decoder and is shown, has latch function, less demanding to the scan period, antijamming capability is strong, and stable output display can be provided.
The above is only preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, is equal to replacement, improvement etc., within all should being included in the scope of protection of the invention.

Claims (9)

1. the numeric displaying method of controlling based on PLC is characterized in that, comprises the following steps:
The count results that in S1, scanning one-period, photoelectric counting produces;
S2, reception scan-data;
S3, carry out data-switching, convert the scan-data that receives to default standard data;
S4, the data after changing are carried out decoding, export and latch the display drive signals that obtains;
S5, according to the data of display drive signals display latch.
2. method according to claim 1, is characterized in that, in step S1, also comprises judging whether to reach a scan period, if so, enters step S2, otherwise continue step S1.
3. method according to claim 1, is characterized in that, in step S2, comprises that also whether the scan-data that judgement receives has renewal, if having, enters step S3, otherwise returns to step S1.
4. method according to claim 1, is characterized in that, in step S3, and the tetrad data that described default standard data are binary-coded decimal.
5. method according to claim 1, is characterized in that, step S4 is specially: transmitting control signal allows decoding output, the data decoding output display after conversion is driven signal, and the display drive signals of output is latched.
6. the digital display system of controlling based on PLC is characterized in that, comprises Programmable Logic Controller, latch decoder and digital display tube, wherein
Described Programmable Logic Controller connects and scans photoelectricity counting unit, will obtain scan-data and convert default standard data to, and transfer to described latch decoder;
Described latch decoder connects described Programmable Logic Controller, and the data after conversion are carried out decoding, exports and latchs the display drive signals that obtains and drive described digital display tube;
Described digital display tube connects described latch decoder, and according to the data of display drive signals display latch.
7. system according to claim 6, it is characterized in that, described latch decoder adopts the CD4511 chip, its data input pin is pin one, 2,6 and 7, the latch signal end is pin 5, the decoding output terminal is pin 9,10,11,12,13,14 and 16, and described data input pin is connected with described Programmable Logic Controller with the latch signal end, and described decoding output terminal is connected with described digital display tube.
8. system according to claim 7, is characterized in that, is serially connected with divider resistance between the decoding output terminal of described latch decoder and described digital display tube.
9. system according to claim 6, is characterized in that, described latch decoder is corresponding one by one with digital display tube.
CN201110376066.7A 2011-11-23 2011-11-23 The numeric displaying method controlled based on PLC and system Active CN103137052B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110376066.7A CN103137052B (en) 2011-11-23 2011-11-23 The numeric displaying method controlled based on PLC and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110376066.7A CN103137052B (en) 2011-11-23 2011-11-23 The numeric displaying method controlled based on PLC and system

Publications (2)

Publication Number Publication Date
CN103137052A true CN103137052A (en) 2013-06-05
CN103137052B CN103137052B (en) 2016-04-27

Family

ID=48496813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110376066.7A Active CN103137052B (en) 2011-11-23 2011-11-23 The numeric displaying method controlled based on PLC and system

Country Status (1)

Country Link
CN (1) CN103137052B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107527580A (en) * 2016-06-19 2017-12-29 金华职业技术学院 A kind of PLC control program and method of LED digital-scroll techniques
CN112581878A (en) * 2020-12-17 2021-03-30 优利德科技(中国)股份有限公司 Dot-matrix nixie tube and display control method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5644559A (en) * 1995-01-04 1997-07-01 Hewlett-Packard Company Flip latch assembly for media autochanger
CN1383128A (en) * 2002-03-04 2002-12-04 胡继炜 Parallel display method for display
CN1674067A (en) * 2004-03-23 2005-09-28 精工爱普生株式会社 Display driver and electronic instrument

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5644559A (en) * 1995-01-04 1997-07-01 Hewlett-Packard Company Flip latch assembly for media autochanger
CN1383128A (en) * 2002-03-04 2002-12-04 胡继炜 Parallel display method for display
CN1674067A (en) * 2004-03-23 2005-09-28 精工爱普生株式会社 Display driver and electronic instrument

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107527580A (en) * 2016-06-19 2017-12-29 金华职业技术学院 A kind of PLC control program and method of LED digital-scroll techniques
CN112581878A (en) * 2020-12-17 2021-03-30 优利德科技(中国)股份有限公司 Dot-matrix nixie tube and display control method thereof

Also Published As

Publication number Publication date
CN103137052B (en) 2016-04-27

Similar Documents

Publication Publication Date Title
CN101339738B (en) Single line cascade chip for lamp point display
CN202285409U (en) Intelligent household control system
CN103957056A (en) Visible light communication system compatible with intelligent cell phone
CN103137052A (en) Method and system for digital display based on programmable logic controller (PLC) control
CN202352296U (en) Digital display system based on control of programmable logic controller (PLC)
CN101882420A (en) Led display system
Lv et al. A new USB home appliances based on PC and infrared remote control protocol
CN102385795B (en) Method and device for controlling multiple systems based on single group of infrared receiving devices
CN110763927A (en) In-situ equipment debugging method based on wireless communication
CN103220565A (en) Digital television terminal matched with remote control device and used for textile workshop
CN203520160U (en) Hand-held debugging device for industrial site and industrial site debugging system
CN101499242B (en) Horizontal drive device, driving device and correlated sequence type transmission circuit apparatus
RU2415461C2 (en) Control panel
CN203219448U (en) Television infrared remote-control signal switching device
CN218679080U (en) Photoelectric fault signal display device
CN202351919U (en) Display device of drug counting machine
CN106991803B (en) Remote control system and remote controller
CN102841874B (en) Data output method and data output device
CN101656038B (en) Source electrode driving device and driving method thereof
CN210491048U (en) HDMI extender powered by POE
CN204068864U (en) A kind of semi-automatic photovoltaic module logging
CN103136581A (en) Display device of medicine counting machine
CN204681337U (en) A kind of half-duplex isolating safety grid
CN204314869U (en) A kind of multichannel SMII signal is to the multiplex system of a road MII signal
CN202453881U (en) I/O (Input/Output) communication interface module

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Suzhou City, Jiangsu province 215123 wangdun Road, Suzhou Industrial Park, No. 188

Applicant after: Suzhou Iron Technology Co., Ltd.

Address before: Suzhou City, Jiangsu province 215123 wangdun Road, Suzhou Industrial Park, No. 188

Applicant before: Suzhou Iron Technology Co., Ltd.

COR Change of bibliographic data
C14 Grant of patent or utility model
GR01 Patent grant