CN102695048A - Image sampling method of native mode dual communication based on MC protocol and Telnet - Google Patents

Image sampling method of native mode dual communication based on MC protocol and Telnet Download PDF

Info

Publication number
CN102695048A
CN102695048A CN2012101251741A CN201210125174A CN102695048A CN 102695048 A CN102695048 A CN 102695048A CN 2012101251741 A CN2012101251741 A CN 2012101251741A CN 201210125174 A CN201210125174 A CN 201210125174A CN 102695048 A CN102695048 A CN 102695048A
Authority
CN
China
Prior art keywords
image
plc
data
image system
telnet
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
CN2012101251741A
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.)
CONFIRMWARE TECHNOLOGY (HANGZHOU) Inc
Original Assignee
CONFIRMWARE TECHNOLOGY (HANGZHOU) Inc
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 CONFIRMWARE TECHNOLOGY (HANGZHOU) Inc filed Critical CONFIRMWARE TECHNOLOGY (HANGZHOU) Inc
Priority to CN2012101251741A priority Critical patent/CN102695048A/en
Publication of CN102695048A publication Critical patent/CN102695048A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The invention discloses an image sampling method of native mode dual communication based on an MC protocol and Telnet. A system with the method comprises a PLC, an Ethernet module, and an image system. The PLC is used for storing configuration command data, setting parameters, and controlling the image system, and processes the data transmitted by the image system. The image system carries out image acquisition and image processing. The Ethernet module is used for data transmitting between the PLC and the image system. A native mode is employed in the PLC to control the image acquisition of the image system and JOB switching. The MC protocol is employed to work out and transmit the result of the image processing. When the transmission of complex data is involved, the MC protocol is directed used. In the IN-Sight browser of COGNEX, related settings of the MC communication protocol are carried out, and the calculated data and the address of a host computer are correctly set, thereby realizing data transmission. With the method of the invention, the workload of programming is largely reduced, the scan time of the host computer is shortened, and the processing speed each time is increased.

Description

Based on the diplex image sampling method of the Native pattern of MC agreement and Telnet
Technical field
The present invention relates to based on the diplex image sampling method of the Native pattern of MC agreement and Telnet.
Background technology
" machine vision " is not an ancient topic; When product in manufacturing is; Need check, need to confirm whether the object situation has flaw, needs measurement size and information sequence is delivered to the robot device who handles product on the production line, and obviously, the collection of image, processing and transmission are necessary; The image of every kind of object needs to be detected and accurate in locating, the notion that Here it is " machine vision ".
The image system product of the premier COGNEX of machine vision industry (Cognex); Communication aspect at the scene; Support the open-standards communications protocol of PLC leader label; Comprise CC-Link, MELSEC communications protocol, Ethernet/IP, PROFINET and ModbusTCP, also support TCP/IP, FTP, SFTP, Telnet and SMTP etc. on the Ethernet in addition.
Telnet is positioned at the 7th layer of osi model--and a kind of agreement the on-application layer, being one provides the ICP/IP protocol that is connected to distance host terminal emulation through creating virtual terminal.This agreement need be carried out authentication through the user name and password, is the standard agreement of Internet telnet service.Application Telnet agreement can become the employed computer of local user a terminal of remote host system.It provides three kinds of basic services:
1) network virtual terminal of Telnet definition is that remote system provides a standard interface.Client program needn't the detail knowledge remote system, and they only need structure to use the program of standard interface;
2) Telnet comprises a mechanism that allows client-server to consult option, and it also provides one group of standard option;
3) two ends of Telnet symmetrical treatment connection, promptly Telnet does not force client computer to import from keyboard, does not force client computer on screen, to show output yet.Though the Telnet service also belongs to the service of model of client, its bigger meaning is to have realized the Telnet (long-distance interactive calculating) based on the Telnet agreement.
The MC communications protocol is the title of the communication modes used of Mitsubishi's Q series of PLC, promptly method, apparatus is carried out reading/writing of PLC CPU soft element data and program through the Q of Mitsubishi series C24 or Q series E71.If equipment can enroll transceiver that application program and control sequence that can enough MC agreements carries out data just the enough MC agreements of ability carry out communication.The file format and the control sequence that method, apparatus are used to visit PLC are determined by every kind of Q series C24 and Q series E71.File format when carrying out data communication with the MC agreement and control sequence are the same with through original product A/QnA series module visit PLC the time.
When using the image system product of COGNEX (Cognex) in the every profession and trade at present, all use the above a certain agreement of introducing to carry out transfer of data, communication etc.
When the single communication protocol of current use is carried out simple IMAQ, processing; Have easy left-hand seat, simply train after; Just can reach the detection effect, particularly need not spend long time and energy to go to learn the control mode of other communication protocols.
But when there is a tangible drawback in this, but an image system needs detect to different workpiece; For example this production line production of front a period of time is the A product, and what and then produce is the B product, so just need switch JOB (engineering); Can certainly carry out the switching of JOB (engineering) through the expansion I/O mouth; Perhaps adopt all work all to adopt the native mode of Telnet to carry out the collection of data, handle, transmission etc.Adopt the former mode can increase hardware cost, thousands of easily units of expansion I/O mouth, but also need go up the direct distribution of level controller etc., indirect increase production cost.Adopt the latter's mode, at first, owing to relate to the shooting of image, the calculation of data, and the obtaining of data transmit etc., and what procedure quantity can be very is huge, and the indirect time that makes each processing is elongated.Be very secondly to require the agreement of native is proficient in very much, all must be very familiar to the flow process and the order of each item data processing.
Summary of the invention
To above-mentioned technological deficiency, the present invention proposes based on the diplex image sampling method of the Native pattern of MC agreement and Telnet.
In order to solve the problems of the technologies described above, technical scheme of the present invention is following;
Based on the diplex image sampling method of the Native pattern of MC agreement and Telnet; System comprises PLC, Ethernet module and image system; Said PLC deposits the setting of configuration order data, parameter, to the control of said image system; And the data of said image system transmission are handled, said image system carries out collection, the treatment of picture of image, and said Ethernet module is used for the transfer of data between said PLC and the said image system; In said PLC, adopt the native pattern to control the IMAQ to said image system, the JOB switching is controlled, and adopts the MC agreement to carry out the result's of image processing calculation, transmission.
Further, said PLC adopts the Q04UDCPU of Mitsubishi; Said Ethernet module adopts the said image system of the QJ71E71-100 of Mitsubishi to adopt COGNEX In-Sight 5403.
Beneficial effect of the present invention is; On the one hand need be to not carrying out appending of hardware, the distribution on the circuit etc. need not carry out any change certainly yet, just can realize that each JOB directly switches, and according to the IMAQ signal, carries out the collection of image with the mode of order, has reduced cost.On the one hand, relate to the translator unit of complex data, directly adopt the MC agreement to carry out; In the IN-Sight of COGNEX browser, carry out the related setting of MC communication protocol, and with the data of calculating; Carry out correct setting with the address of host computer, can realize the transmission of data.Reduce the workload of coding to a great extent, shortened the sweep time of host computer, improved each processing speed.
Description of drawings
Fig. 1 is a system construction drawing;
Fig. 2 when utilizing the MC agreement to carry out the processing of data, is provided with figure in the In-Sight browser;
Fig. 3 when utilizing the MC agreement to carry out the processing of data, is provided with figure in the In-Sight browser;
Fig. 4 is provided with figure for what the native pattern of in the In-Sight browser, using telnet communicated;
Fig. 5 is the flow chart that calls the native pattern of MC agreement and telnet;
The network parameter that Fig. 6 carries out the Ethernet module for PLC is provided with;
The action setting that Fig. 7 carries out the Ethernet module for PLC;
Fig. 8 opens setting for PLC to what the Ethernet module was carried out.
Embodiment
To combine accompanying drawing and specific embodiment that the present invention is done further explanation below.
As shown in Figure 1, native system mainly is made up of image system, PLC and Ethernet module three parts, and main hardware comprises as follows: PLC: the Q04UDCPU of Mitsubishi; Ethernet module: the QJ71E71-100 of Mitsubishi; The In-Sight 5403 of image system: COGNEX; PLC wherein: the CPU module of system, the program that edits is deposited in the inside, and being provided with etc. of relevant parameter, and this module is carried out the operation of this program, and the reception and the transmission of data in the program, and said image system is controlled etc.Ethernet module QJ71E71-100: the reception of the data between image system and the PLC and transmission; In-Sight 5403: carry out image collection, treatment of picture, view data is received and sends to PLC etc.To in the engineering, IMAQ, JOB switches, and adopts the native pattern to control, and the result's of image processing calculation, transmits and adopt the MC agreement to carry out,
Adopt the present invention, on the one hand need be to not carrying out appending of hardware, the distribution on the circuit etc. need not carry out any change certainly yet; Just can realize that each JOB directly switches; And, carry out the collection of image with the mode of order according to the IMAQ signal, reduced cost.On the one hand, relate to the translator unit of complex data, directly adopt the MC agreement to carry out; In the IN-Sight of COGNEX browser, carry out the related setting of MC communication protocol, and with the data of calculating; Carry out correct setting with the address of host computer, can realize the transmission of data.Reduce the workload of coding to a great extent, shortened the sweep time of host computer, improved each processing speed.
Embodiment one
Utilize the MC agreement, when carrying out the processing of data, need in the In-Sight browser, carry out the relevant setting of Fig. 3 (part of drawing a circle) like Fig. 2;
Use the native pattern of telnet to communicate, need in the In-Sight browser, to carry out transducer → network settings, content specifically is set, referring to following Fig. 4 (part of drawing a circle);
When the native pattern that adopts telnet is carried out programming, press the flow chart of Fig. 5, carry out the login of username and password, the loading of JOB (engineering) and the collection of image etc.As shown in Figure 5, PLC carries out by from left to right mode among the figure in proper order.
For with the communicating of image system, the network parameter, the action that also need the Ethernet module is carried out are provided with, open setting, the operation of Fig. 6 specific as follows, Fig. 7, Fig. 8.(part of drawing a circle among the figure is for being provided with part)
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the present invention's design; Can also make some improvement and retouching, these improvement and retouching also should be regarded as in the protection range of the present invention.

Claims (2)

1. based on the diplex image sampling method of the Native pattern of MC agreement and Telnet; It is characterized in that; System comprises PLC, Ethernet module and image system, and said PLC deposits the setting of configuration order data, parameter, to the control of said image system, and the data of said image system transmission are handled; Said image system carries out collection, the treatment of picture of image, and said Ethernet module is used for the transfer of data between said PLC and the said image system; In said PLC, adopt the native pattern to control the IMAQ to said image system, the JOB switching is controlled, and adopts the MC agreement to carry out the result's of image processing calculation, transmission.
2. the diplex image sampling method of the Native pattern based on MC agreement and Telnet according to claim 1 is characterized in that, said PLC adopts the Q04UDCPU of Mitsubishi; Said Ethernet module adopts the said image system of the QJ71E71-100 of Mitsubishi to adopt COGNEX In-Sight 5403.
CN2012101251741A 2012-04-25 2012-04-25 Image sampling method of native mode dual communication based on MC protocol and Telnet Pending CN102695048A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101251741A CN102695048A (en) 2012-04-25 2012-04-25 Image sampling method of native mode dual communication based on MC protocol and Telnet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101251741A CN102695048A (en) 2012-04-25 2012-04-25 Image sampling method of native mode dual communication based on MC protocol and Telnet

Publications (1)

Publication Number Publication Date
CN102695048A true CN102695048A (en) 2012-09-26

Family

ID=46860311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101251741A Pending CN102695048A (en) 2012-04-25 2012-04-25 Image sampling method of native mode dual communication based on MC protocol and Telnet

Country Status (1)

Country Link
CN (1) CN102695048A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070226317A1 (en) * 2006-02-21 2007-09-27 Rydberg Kris M System, method, and device for communicating between a field device, device controller, and enterprise application
US20090164850A1 (en) * 2007-07-03 2009-06-25 Mcguinn Jackie Electronic Supervisor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070226317A1 (en) * 2006-02-21 2007-09-27 Rydberg Kris M System, method, and device for communicating between a field device, device controller, and enterprise application
US20090164850A1 (en) * 2007-07-03 2009-06-25 Mcguinn Jackie Electronic Supervisor

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
三菱电机: "《Q CPU用户手册(功能解说程序基础篇)》", 30 December 2005 *
三菱电机株式会社: "《Q系列以太网接口模块用户手册(web功能)》", 30 December 2001 *
陈光伟等: "数控机床远程监控系统的实现与优化", 《机床与液压》 *

Similar Documents

Publication Publication Date Title
CN106411184B (en) The multi-axle motor sync control device and method of a kind of networking
CN105005280B (en) A kind of industrial equipment man-machine interactive system and its control method based on intelligent wireless terminal
CN100438473C (en) Method for remotely assisting other network users via controlling input of the network data packet
CN209170419U (en) One kind is based on the twinborn apparatus remote maintenance system of digitlization
CN102143458A (en) Multi-protocol converter based on GSM (Global System for Mobile Communications) short message transmission in wireless communication network
CN103593056A (en) Gesture data recognizing and processing method, television and gesture input device
CN109884978A (en) A kind of remote system and its method for PLC device debugging
CN201601691U (en) Communication protocol conversion device based on wide area data acquisition
CN106713411A (en) Communication apparatus and method based on Ethernet virtual serial port technology and LTE wireless network
CN102695048A (en) Image sampling method of native mode dual communication based on MC protocol and Telnet
CN209497533U (en) A kind of video processor, display and video control system
TWI537743B (en) Remote management method and the apparatus thereof
CN105871663B (en) Wireless ethernet network control method and wireless ethernet network system
CN104216377B (en) A kind of gas utensil wireless control system and controlled in wireless gas utensil
CN210780850U (en) Internet of things radio frequency control intelligent gateway
CN204463147U (en) A kind of Internet of Things information scanning device of items sold machine inside
CN108566480A (en) The control method of wearable device, apparatus and system
CN106603699A (en) Method and system for controlling mobile terminal in real time and remotely
CN106227166A (en) A kind of industrial real-time operation control system based on virtual reality
CN203554485U (en) CAN bus test equipment
CN104579888A (en) Method for establishing connection of IP networking device
CN102497386A (en) Control system for mobile platform of quantum microscopic CT (computed tomography) instrument in cloud computing environment
CN108537839A (en) A kind of fieldbus based vision guide hard real time indicator device
CN105847189B (en) A kind of working method of interchanger and interchanger
CN205247381U (en) Absolute value servo driver RS485 communication circuit

Legal Events

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

Application publication date: 20120926