CN103616847A - Method for conducting communication between industrial personal computer and PLC on high-speed production line - Google Patents
Method for conducting communication between industrial personal computer and PLC on high-speed production line Download PDFInfo
- Publication number
- CN103616847A CN103616847A CN201310651250.7A CN201310651250A CN103616847A CN 103616847 A CN103616847 A CN 103616847A CN 201310651250 A CN201310651250 A CN 201310651250A CN 103616847 A CN103616847 A CN 103616847A
- Authority
- CN
- China
- Prior art keywords
- address
- plc
- hardware control
- control plc
- image detection
- 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
Abstract
The invention belongs to the field of machine vision, and relates to a method for conducting communication between an industrial personal computer and a PLC on the high-speed production line. The method comprises the steps of manufacturing a signal agreement table, determining the communication address between the hardware PLC and a trigger sensor, reading the communication address of the hardware PLC by image detection software in the industrial personal computer, and receiving the address of the detection result of the image detection software by the hardware PLC; setting four threads used for detecting whether products have defects or not, and editing numbers for each thread; when an object which passes the high-speed production line triggers a sensor, sending trigger signals to the H1.00 of the hardware PLC by the sensor, when each signal comes, adding one into the value of the H1.00, and after the four signals, conducting restoration and the next cycle; reading the values of the H1.00 by the image detection software, according to the values, entering the corresponding thread to begin detection, detecting the completed threads, and sending the detection results to the corresponding addresses by the image detection software. The method can prevent detection omission and misoperation from happening.
Description
Technical field
The invention belongs to field of machine vision, be applicable to detect the article that continuous high speed passes through.
Technical background
Along with the fast development of industrial automation, now increasing automation equipment has replaced people to carry out production machining object product, and speed has significantly promoted.But due to the limitation of checkout equipment, it is fast that detection speed does not have that the speed of production line promotes, and causes occurring that phenomenon undetected, that by mistake pick is very serious on the production line of a lot of high-speed production.
Summary of the invention
In view of the above problems, the object of this invention is to provide a kind of method of industrial computer and PLC communication in high-speed production lines, to adapt to the needs of the high speed detection based on machine vision of high-speed production lines.The structure that the present invention takes thread ordering, line up has effectively made up the defect of existing equipment, can avoid generation undetected and that mistake behaviour picks.This invention realizes by following technology and method:
A method for industrial computer and PLC communication in high-speed production lines, comprises following several aspect:
1) make a signal agreement table, define the address of hardware control PLC and trigger sensor, the image detection software in industrial computer reads the address of hardware control PLC, and hardware control PLC accepts the address of image detection software detection result; Wherein, the H1.00 in hardware control PLC memory address H district, be defined as the address of hardware control PLC and trigger sensor; The address that image detection software reads hardware control PLC is also H1.00; The H2.00 in hardware control PLC memory address H district, H3.00, H4.00, H5.00, is defined as the address that hardware control PLC reading images detects software detection result;
2) setting up whether defective 4 threads of image detection software detection article, is each thread number;
3) on production line, pass through at a high speed object trigger sensor time, sensor sends to trigger pip in the H1.00 of hardware control PLC, often carrys out a signal, the value of H1.00 the inside adds to reset after 1, four signal carries out next one and circulates;
4) image detection software reads the value of H1.00 the inside, according to the numeral of the inside, entering corresponding thread the inside starts to detect, the thread that detection completes, image detection software sends to corresponding H2.00 testing result, H3.00, H4.00, H5.00, if testing result is non-defective unit, to address, send out 0; If testing result is defective products, to address, send out 1; The value that hardware control PLC reads H2.00, H3.00, H4.00, H5.00 the inside is to carry out the rejecting of defective products after 1.
The structure that the present invention takes thread ordering, line up has effectively made up the defect of existing equipment, can avoid generation undetected and that mistake behaviour picks.
Embodiment
The means of communication between industrial computer of the present invention and PLC, the value of the address H1.00 of trigger sensor and PLC, software reads the value of PLC, and PLC accepts the value of software detection result, has relation one to one.Step is as follows:
1. make a signal agreement table, define the address of hardware control PLC and trigger sensor, software reads the address of PLC, and PLC accepts the address of software detection result.
The setting of PLC address: the H1.00 in PLC memory address H district, be defined as the address of PLC and trigger sensor; The address that software reads PLC is also H1.00; The H2.00 in PLC memory address H district, H3.00, H4.00, H5.00, is defined as the address of PLC reading software testing result.
2. trigger sensor receives that signal is sent in the H1.00 of PLC, software reads H1.00 the inside value, then start to detect, after detection, testing result is sent to H2.00, H3.00, H4.00, H5.00, PLC rejects after reading the bad result inside H2.00, H3.00, H4.00, H5.00.
On production line, pass through at a high speed object trigger sensor time, sensor sends to trigger pip in the H1.00 of PLC, often carrys out a signal, the value of H1.00 the inside adds to reset after 1, four signal carries out next one and circulates.Software reads the value of H1.00 the inside, enters corresponding software image detect thread (corresponding thread: 1,2,3,4 four queues) the inside starts to detect according to the numeral of the inside.The thread that detection completes, software sends to corresponding H2.00, H3.00, H4.00, H5.00 testing result.If testing result is non-defective unit, to address, send out 0; If testing result is defective products, to address, send out 1.The value that PLC reads H2.00, H3.00, H4.00, H5.00 the inside is to reject after 1.
3. the value of the address H1.00 of trigger sensor and PLC, software reads the value of PLC, and PLC accepts the value of software detection result, has relation one to one.
Trigger sensor triggers 1 time, and the value of H1.00 is exactly 1, and the value that software reads H1.00 is 1, just enters into Line 1 journey the inside and starts to detect, and after having detected, just testing result is sent to H2.00 the inside, and PLC basis is rejected after reading the value of H2.00.
Below principle of the present invention is further illustrated:
The method is based on field of machine vision, and the article defects being applicable in high-speed production lines detects.In high-speed production lines, when an object process trigger sensor, sensor sends a pulse signal can to the input end of hardware control PLC, and phase chance is clapped once photograph.PLC starts counting after receiving pulse signal, carrys out one of a note, and the result of record is deposited to internal memory H1.00 the inside.When H1.00 count down to 4, the digital reset of its inside is become to 0, then enter circulation next time.Software continuously reads H1.00 the inside value, if read, is 0, reads photo that digital words just photographed camera send in the queue of numeral correspondence and go to detect if do not detect.After software detection (if being Line 1 journey), if detected as non-defective unit, send 0 to this address of H2.00; If detected as defective products, send 1 to this address of H2.00.PLC receives after result, and the numeral that reads H2.00 the inside is 1, connects device for eliminating, rejects, and the numeral that reads H2.00 the inside is 0, does not reject.
In sum, this invention has greatly improved accuracy of detection in the situation that hardware cost is constant, has effectively solved line speed fast, detected parameters many detection times of not enough problem.
Claims (1)
1. a method for industrial computer and PLC communication in high-speed production lines, comprises following several aspect:
1) make a signal agreement table, define the address of hardware control PLC and trigger sensor, the image detection software in industrial computer reads the address of hardware control PLC, and hardware control PLC accepts the address of image detection software detection result; Wherein, the H1.00 in hardware control PLC memory address H district, be defined as the address of hardware control PLC and trigger sensor; The address that image detection software reads hardware control PLC is also H1.00; The H2.00 in hardware control PLC memory address H district, H3.00, H4.00, H5.00, is defined as the address that hardware control PLC reading images detects software detection result;
2) setting up whether defective 4 threads of testing product, is each thread number;
3) on production line, pass through at a high speed object trigger sensor time, sensor sends to trigger pip in the H1.00 of hardware control PLC, often carrys out a signal, the value of H1.00 the inside adds to reset after 1, four signal carries out next one and circulates;
4) image detection software reads the value of H1.00 the inside, according to the numeral of the inside, entering corresponding thread the inside starts to detect, the thread that detection completes, image detection software sends to corresponding H2.00 testing result, H3.00, H4.00, H5.00, if testing result is non-defective unit, to address, send out 0; If testing result is defective products, to address, send out 1; The value that hardware control PLC reads H2.00, H3.00, H4.00, H5.00 the inside is to reject after 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310651250.7A CN103616847B (en) | 2013-12-04 | 2013-12-04 | A kind of method of industrial computer and PLC communication in high-speed production lines |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310651250.7A CN103616847B (en) | 2013-12-04 | 2013-12-04 | A kind of method of industrial computer and PLC communication in high-speed production lines |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103616847A true CN103616847A (en) | 2014-03-05 |
CN103616847B CN103616847B (en) | 2016-03-09 |
Family
ID=50167551
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310651250.7A Active CN103616847B (en) | 2013-12-04 | 2013-12-04 | A kind of method of industrial computer and PLC communication in high-speed production lines |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103616847B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104148299A (en) * | 2014-08-12 | 2014-11-19 | 武汉华科喻德科技有限公司 | Unaccepted product automatic removal device on high-speed production line |
CN105511315A (en) * | 2015-12-01 | 2016-04-20 | 天津普达软件技术有限公司 | Method for enabling machine vision detection and controller to remain synchronous |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5353495A (en) * | 1992-11-16 | 1994-10-11 | Pfu Limited | Parts supply system applied to a versatile production line |
CN1485616A (en) * | 2002-09-23 | 2004-03-31 | 华中农业大学 | Fowl eggs quality non-destruction automatic detection grading apparatus and process |
JP2009245435A (en) * | 2008-03-31 | 2009-10-22 | Honda Motor Co Ltd | Process control system with ability to exchange data with production line machine controller |
CN201935873U (en) * | 2010-12-30 | 2011-08-17 | 天津普达软件技术有限公司 | Online image detection system for bottle cap |
-
2013
- 2013-12-04 CN CN201310651250.7A patent/CN103616847B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5353495A (en) * | 1992-11-16 | 1994-10-11 | Pfu Limited | Parts supply system applied to a versatile production line |
CN1485616A (en) * | 2002-09-23 | 2004-03-31 | 华中农业大学 | Fowl eggs quality non-destruction automatic detection grading apparatus and process |
JP2009245435A (en) * | 2008-03-31 | 2009-10-22 | Honda Motor Co Ltd | Process control system with ability to exchange data with production line machine controller |
CN201935873U (en) * | 2010-12-30 | 2011-08-17 | 天津普达软件技术有限公司 | Online image detection system for bottle cap |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104148299A (en) * | 2014-08-12 | 2014-11-19 | 武汉华科喻德科技有限公司 | Unaccepted product automatic removal device on high-speed production line |
CN105511315A (en) * | 2015-12-01 | 2016-04-20 | 天津普达软件技术有限公司 | Method for enabling machine vision detection and controller to remain synchronous |
CN105511315B (en) * | 2015-12-01 | 2017-10-27 | 天津普达软件技术有限公司 | A kind of method for making Machine Vision Detection synchronous with controller holding |
Also Published As
Publication number | Publication date |
---|---|
CN103616847B (en) | 2016-03-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102253048B (en) | Machine vision detection method and system for detection of various products | |
CN209300267U (en) | A kind of cigarette appearance images processing control system and its on-line measuring device | |
CN103341454B (en) | Automatically sorting method for electric energy meter | |
CN104432498A (en) | Machine-vision-based visual cigarette appearance inspection device of cigarette making machine | |
CN206154352U (en) | Robot vision system and robot with motion object detection and tracking function | |
CN102053091A (en) | Vision detection device used for detecting defects on surface of plastic medicine bottle | |
CN203164132U (en) | Food inspection information storage system of production line | |
CN105499144A (en) | Component sorting method and sorting device for industrial production line | |
WO2024055796A1 (en) | Defect detection system, method and apparatus, electronic device, and storage medium | |
CN103616847A (en) | Method for conducting communication between industrial personal computer and PLC on high-speed production line | |
CN105301012A (en) | Capsule detection method and system | |
CN101807061A (en) | Vision detection control system and method for integrated circuit tendon-cut system | |
JP2014085341A5 (en) | ||
CN109174693A (en) | A kind of synchronous method of linear sweep graph as acquisition system and device for eliminating | |
CN108745956A (en) | Glass dropping fraction location detecting apparatus and method, computer readable storage medium | |
CN108160508A (en) | Machine vision detection method based on PLC serial communications | |
CN110108713A (en) | A kind of Superficial Foreign Body defect fast filtering method and system | |
CN107552414B (en) | Pipe arranging machine detection method and pipe arranging machine detection device | |
CN205518679U (en) | Full -automatic USB interface sieve separator | |
CN103453840B (en) | The automatic testing method of lock core precision of cylinder lock | |
CN105548210A (en) | Detection method for American-standard power source extension wire based on machine vision | |
CN103247105A (en) | Novel sorter waste treatment process and device | |
CN102589464A (en) | Detection method for contour dimension of automobile airbag and application device of detection method | |
CN114143458A (en) | Image acquisition control method and device based on machine vision | |
CN103499305B (en) | The automatic testing method of spring lock lock body precision |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | 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 |