CN105334796A - Accurate positioning method based on PLC controller - Google Patents

Accurate positioning method based on PLC controller Download PDF

Info

Publication number
CN105334796A
CN105334796A CN201510799906.9A CN201510799906A CN105334796A CN 105334796 A CN105334796 A CN 105334796A CN 201510799906 A CN201510799906 A CN 201510799906A CN 105334796 A CN105334796 A CN 105334796A
Authority
CN
China
Prior art keywords
plc
workpiece
setting value
position setting
station
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
CN201510799906.9A
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.)
WUXI GANGWAN NETWORK TECHNOLOGY Co Ltd
Original Assignee
WUXI GANGWAN NETWORK 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 WUXI GANGWAN NETWORK TECHNOLOGY Co Ltd filed Critical WUXI GANGWAN NETWORK TECHNOLOGY Co Ltd
Priority to CN201510799906.9A priority Critical patent/CN105334796A/en
Publication of CN105334796A publication Critical patent/CN105334796A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/054Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/13Plc programming
    • G05B2219/13164Remote and local programming unit, control panel

Abstract

The invention discloses an accurate positioning method based on a PLC controller. The positioning control flow comprises the following steps: starting positioning; correcting an original point; setting a position set value of a station; receiving the position set value of the station from an upper computer system by a PLC, and simultaneously calculating an actual value of a current position of a workpiece by the PLC; outputting corresponding pulse signals to a servo motor by the PLC according to the position set value and the actual value, and driving the workpiece to rotate by the servo motor until the difference between the position set value and the actual value is less than 0.02mm, thereby finishing the automatic positioning. The accurate positioning method has the advantages that the positioning precision is high, a program implementation algorithm is simple, the control effect is stable, the response speed is high, the rapid positioning of the workpiece can be realized, and the economic benefit of the production is increased.

Description

Based on the accurate positioning method of PLC
Technical field
The present invention relates to a kind of experimental teaching equipment control technology field, be specifically related to a kind of accurate positioning method based on PLC.
Background technology
The core of machine vision is image procossing, in recent years, develops along with domestic machine vision technique, and all trades and professions are widely used appearance to employing machine vision image processing equipment.Domestic relevant universities and colleges, research institute and enterprise also actively think, feel free to try for nearly 2 years, progressively start to move towards industry spot application in image procossing.But, existing visual experiment platform is generally simple beam, camera can be installed, light source, student or researchist are when assessing vision sample, can not the actual conditions of real simulation industry spot, user cannot the process of real understanding Industry Control, has a strong impact on quality of instruction or quality of research; And correlation machine visual experiment platform operations is difficult, flexibility ratio is poor, the analog detection research that have impact on scientific research to a great extent, impart knowledge to students in commercial production.
By machine vision platform application in scientific research, impart knowledge to students in commercial production analog detection research time, generally need to use many kinds of work position to carry out analog sample state in actual production, the positioning precision of current positioning system is low, attainable workpiece station is few, can not meet current requirement of experiment.
Therefore, the problems referred to above urgently to be resolved hurrily.
Summary of the invention
Goal of the invention: the object of the invention is, for problem existing in above-mentioned prior art, to propose the accurate positioning method based on PLC of a kind of high precision, multistation.
Technical scheme: the invention discloses a kind of accurate positioning method based on PLC, described positioning control flow process comprises:
Step 1: positioning starting;
Step 2: origin correction;
Step 3: the position setting value of setting station;
Step 3: described PLC receives the position setting value of described station from master system, described PLC calculates the actual value of the current present position of workpiece simultaneously;
Step 4: described PLC, according to this position setting value and actual value, exports corresponding pulse signal to servomotor, servomotor drives workpiece to rotate, until the difference of this position setting value and actual value is less than 0.02mm, has now automatically located.
Wherein, in described step 2, described PLC sends correction instruction to servo-drive system, orders it to drive workpiece to rotate a circle, and when PLC detection workpiece is in initial position, has namely located.
Preferably, in described step 3, described station has 6; And described 6 stations are rounded or oval distribution.
Beneficial effect: the accurate positioning method that the present invention is based on PLC compared with prior art, has following beneficial effect: Binding experiment requires and workpiece feature, and servomotor is set to Pulse Width Control, eliminates the positioning error of workpiece; Positioning precision of the present invention is high, and program implementation algorithm is simple, and control effects is stablized, and fast response time, effectively can improve conventional efficient, reduces regulation time during indexing, increases the economic benefit of operation.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the accurate positioning method that the present invention is based on PLC.
Embodiment
Below in conjunction with accompanying drawing, technical scheme of the present invention is described further.
As shown in Figure 1, the invention discloses a kind of accurate positioning method based on PLC, described positioning control flow process comprises:
Step 1: positioning starting;
Step 2: origin correction;
Step 3: the position setting value of setting station;
Step 3: described PLC receives the position setting value of described station from master system, described PLC calculates the actual value of the current present position of workpiece simultaneously;
Step 4: described PLC, according to this position setting value and actual value, exports corresponding pulse signal to servomotor, servomotor drives workpiece to rotate, until the difference of this position setting value and actual value is less than 0.02mm, has now automatically located.
In described step 2, described PLC sends correction instruction to servo-drive system, orders it to drive workpiece to rotate a circle, and when PLC detection workpiece is in initial position, has namely located.
In described step 3, described station has 6; And described 6 stations are rounded or oval distribution.
Embodiment 1
When a positioning is initiated, first PLC sends origin correction instruction in the present invention, drives servomotor to drive workpiece to rotate a circle, and when initial position got back to by PLC detection workpiece, has namely corrected.Have 6 stations in the present invention, and these 6 stations are to distribute clockwise, the position setting value of 6 stations is respectively K 1, K 2, K 3, K 4, K 5, K 6.
When workpiece is in 1 place, position, namely the actual value of workpiece is K 1, PLC is K from the station position setting value that master system receives 2, then the corresponding pulses signal that PLC exports is 1 × 1280 positive pulse; PLC is K from the station position setting value that master system receives 3, then the corresponding pulses signal that PLC exports is 2 × 1280 positive pulses; PLC is K from the station position setting value that master system receives 4, then the corresponding pulses signal that PLC exports is 3 × 1280 positive pulses or 3 × 1280 negative pulses; PLC is K from the station position setting value that master system receives 5, then the corresponding pulses signal that PLC exports is 2 × 1280 negative pulses; PLC is K from the station position setting value that master system receives 6, then the corresponding pulses signal that PLC exports is 1 × 1280 negative pulse.
When workpiece is in 2 place, position, namely the actual value of workpiece is K 2, PLC is K from the station position setting value that master system receives 1, then the corresponding pulses signal that PLC exports is 1 × 1280 negative pulse; PLC is K from the station position setting value that master system receives 3, then the corresponding pulses signal that PLC exports is 1 × 1280 positive pulse; PLC is K from the station position setting value that master system receives 4, then the corresponding pulses signal that PLC exports is 2 × 1280 positive pulses; PLC is K from the station position setting value that master system receives 5, then the corresponding pulses signal that PLC exports is 3 × 1280 positive pulses or 3 × 1280 negative pulses; PLC is K from the station position setting value that master system receives 2, then the corresponding pulses signal that PLC exports is 2 × 1280 negative pulses.
When workpiece is in 3 place, position, namely the actual value of workpiece is K 3, PLC is K from the station position setting value that master system receives 1, then the corresponding pulses signal that PLC exports is 2 × 1280 negative pulses; PLC is K from the station position setting value that master system receives 2, then the corresponding pulses signal that PLC exports is 1 × 1280 negative pulse; PLC is K from the station position setting value that master system receives 4, then the corresponding pulses signal that PLC exports is 1 × 1280 positive pulse; PLC is K from the station position setting value that master system receives 5, then the corresponding pulses signal that PLC exports is 2 × 1280 positive pulses; PLC is K from the station position setting value that master system receives 6, then the corresponding pulses signal that PLC exports is 3 × 1280 positive pulses or 3 × 1280 negative pulses.
When workpiece is in 4 place, position, namely the actual value of workpiece is K 4, PLC is K from the station position setting value that master system receives 1, then the corresponding pulses signal that PLC exports is 3 × 1280 positive pulses or 3 × 1280 negative pulses; PLC is K from the station position setting value that master system receives 2, then the corresponding pulses signal that PLC exports is 2 × 1280 negative pulses; PLC is K from the station position setting value that master system receives 3, then the corresponding pulses signal that PLC exports is 1 × 1280 negative pulse; PLC is K from the station position setting value that master system receives 5, then the corresponding pulses signal that PLC exports is 1 × 1280 positive pulse; PLC is K from the station position setting value that master system receives 6, then the corresponding pulses signal that PLC exports is 2 × 1280 positive pulses.
When workpiece is in 5 place, position, namely the actual value of workpiece is K 5, PLC is K from the station position setting value that master system receives 1, then the corresponding pulses signal that PLC exports is 2 × 1280 positive pulses; PLC is K from the station position setting value that master system receives 2, then the corresponding pulses signal that PLC exports is 3 × 1280 positive pulses or 3 × 1280 negative pulses; PLC is K from the station position setting value that master system receives 3, then the corresponding pulses signal that PLC exports is 2 × 1280 negative pulses; PLC is K from the station position setting value that master system receives 4, then the corresponding pulses signal that PLC exports is 1 × 1280 negative pulse; PLC is K from the station position setting value that master system receives 6, then the corresponding pulses signal that PLC exports is 1 × 1280 positive pulse.
When workpiece is in 6 place, position, namely the actual value of workpiece is K 6, PLC is K from the station position setting value that master system receives 1, then the corresponding pulses signal that PLC exports is 1 × 1280 positive pulse; PLC is K from the station position setting value that master system receives 2, then the corresponding pulses signal that PLC exports is 2 × 1280 positive pulses; PLC is K from the station position setting value that master system receives 3, then the corresponding pulses signal that PLC exports is 3 × 1280 positive pulses or 3 × 1280 negative pulses; PLC is K from the station position setting value that master system receives 4, then the corresponding pulses signal that PLC exports is 2 × 1280 negative pulses; PLC is K from the station position setting value that master system receives 5, then the corresponding pulses signal that PLC exports is 1 × 1280 negative pulse.
When servomotor receives positive pulse, namely drive workpiece to rotate clockwise, when servomotor receives negative pulse, namely drive workpiece to rotate counterclockwise; Servomotor drives workpiece to rotate, until the difference of this position setting value and actual value is less than 0.02mm, has now automatically located.

Claims (4)

1. based on an accurate positioning method for PLC, it is characterized in that, described positioning control flow process comprises:
Step 1: positioning starting;
Step 2: origin correction;
Step 3: the position setting value of setting station;
Step 3: described PLC receives the position setting value of described station from master system, described PLC calculates the actual value of the current present position of workpiece simultaneously;
Step 4: described PLC, according to this position setting value and actual value, exports corresponding pulse signal to servomotor, servomotor drives workpiece to rotate, until the difference of this position setting value and actual value is less than 0.02mm, has now automatically located.
2. the accurate positioning method based on PLC according to claim 1, it is characterized in that: in described step 2, described PLC sends correction instruction to servo-drive system, orders it to drive workpiece to rotate a circle, when PLC detection workpiece is in initial position, namely locate.
3. the accurate positioning method based on PLC according to claim 1, is characterized in that: in described step 3, described station has 6 stations.
4. the accurate positioning method based on PLC according to claim 3, is characterized in that: in described step 3, the rounded or oval distribution of described 6 stations.
CN201510799906.9A 2015-11-19 2015-11-19 Accurate positioning method based on PLC controller Pending CN105334796A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510799906.9A CN105334796A (en) 2015-11-19 2015-11-19 Accurate positioning method based on PLC controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510799906.9A CN105334796A (en) 2015-11-19 2015-11-19 Accurate positioning method based on PLC controller

Publications (1)

Publication Number Publication Date
CN105334796A true CN105334796A (en) 2016-02-17

Family

ID=55285408

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510799906.9A Pending CN105334796A (en) 2015-11-19 2015-11-19 Accurate positioning method based on PLC controller

Country Status (1)

Country Link
CN (1) CN105334796A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113146926A (en) * 2021-03-31 2021-07-23 巨宝馨机械(苏州)有限公司 Intelligent correction method for die gap of foam plastic forming machine
CN114801021A (en) * 2022-04-24 2022-07-29 巨宝馨机械(苏州)有限公司 Intelligent correction system and method for mold closing time of foam molding machine

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100505046B1 (en) * 1998-07-24 2005-11-01 엘에스산전 주식회사 How to improve the performance of PL using positioning module
CN200950316Y (en) * 2006-08-02 2007-09-19 无锡职业技术学院 Work teaching aid using man-machine interface and PLC control
CN201025507Y (en) * 2007-02-13 2008-02-20 上海威士机械有限公司 A rotary positioning structure for rotary tray adhesion machine
CN101244574A (en) * 2007-02-13 2008-08-20 上海威士机械有限公司 Rotation positioning method for turntable type fusing machine and mechanism thereof
CN101879779A (en) * 2010-07-15 2010-11-10 柳州市精业机器有限公司 High-accuracy rotation locating control device of double-station plastic injecting and blowing hollow molding machine
CN102814816A (en) * 2012-08-31 2012-12-12 深圳市华成工业控制有限公司 Accurate original point finding method of manipulator
CN103472855A (en) * 2013-09-16 2013-12-25 苏州凯欧机械科技有限公司 Novel three-position rotating workbench with PLC

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100505046B1 (en) * 1998-07-24 2005-11-01 엘에스산전 주식회사 How to improve the performance of PL using positioning module
CN200950316Y (en) * 2006-08-02 2007-09-19 无锡职业技术学院 Work teaching aid using man-machine interface and PLC control
CN201025507Y (en) * 2007-02-13 2008-02-20 上海威士机械有限公司 A rotary positioning structure for rotary tray adhesion machine
CN101244574A (en) * 2007-02-13 2008-08-20 上海威士机械有限公司 Rotation positioning method for turntable type fusing machine and mechanism thereof
CN101879779A (en) * 2010-07-15 2010-11-10 柳州市精业机器有限公司 High-accuracy rotation locating control device of double-station plastic injecting and blowing hollow molding machine
CN102814816A (en) * 2012-08-31 2012-12-12 深圳市华成工业控制有限公司 Accurate original point finding method of manipulator
CN103472855A (en) * 2013-09-16 2013-12-25 苏州凯欧机械科技有限公司 Novel three-position rotating workbench with PLC

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113146926A (en) * 2021-03-31 2021-07-23 巨宝馨机械(苏州)有限公司 Intelligent correction method for die gap of foam plastic forming machine
CN115157537A (en) * 2021-03-31 2022-10-11 巨宝馨机械(苏州)有限公司 Intelligent correction method for die gap of foam plastic forming machine
CN114801021A (en) * 2022-04-24 2022-07-29 巨宝馨机械(苏州)有限公司 Intelligent correction system and method for mold closing time of foam molding machine
CN114801021B (en) * 2022-04-24 2024-02-02 巨宝馨机械(苏州)有限公司 Intelligent correction system and method for mold closing time of foam molding machine

Similar Documents

Publication Publication Date Title
CN110315534B (en) Processing method and system for offline programming of ship welding robot
CN104841593B (en) Control method of robot automatic spraying system
CN108527319B (en) Robot teaching method and system based on vision system
US8706300B2 (en) Method of controlling a robotic tool
CN109159151A (en) A kind of mechanical arm space tracking tracking dynamic compensation method and system
CN110171000B (en) Groove cutting method, device and control equipment
KR101724458B1 (en) System and method for compensating robot teaching
CN103713579B (en) A kind of industrial robot operation method
CN108890666B (en) Robot welding seam tracking method and system
CN104325268A (en) Industrial robot three-dimensional space independent assembly method based on intelligent learning
US10025290B2 (en) Thermal displacement correction training unit for machine tool
CN103439880A (en) PID parameter setting method based on MCP standard transfer function
EP2872954A1 (en) A method for programming an industrial robot in a virtual environment
JP2016031735A (en) Servo motor control apparatus for improving accuracy of multi-axial machining
CN105334796A (en) Accurate positioning method based on PLC controller
CN113787245A (en) Robot intelligent welding program generation method and system
CA2241710A1 (en) Off-line teaching method
CN108472808B (en) Synchronization of multiple robots
CN112692409A (en) Tube plate welding system based on touch position finding calibration and welding method thereof
CN107052312B (en) A kind of casting cleaning machining locus automatically correct and generation method
US10241495B2 (en) Apparatus and method for providing feedback force and machine tool system
CN112935772B (en) Method and device for screwing screw by vision-guided robot, storage medium and equipment
CN104061888A (en) Robot three-dimensional laser machining head TCP coordinate correcting method and device
CN103737423A (en) Accurate tool-setting method of numerical control machine tool and numerical control machine tool
CN102385386B (en) Line-heating intelligent robot path planning method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160217

RJ01 Rejection of invention patent application after publication