The monitoring of punch product line reachs emulation software development

  • Time:
  • Click:54
  • source:DALLMAN CNC Machining
The article introduced the fashion of a kind of development in platform of the monitoring on product line of automation of automobile body punch, differ somewhat with the means that at present this domain uses generally, in VC++6.

Fictitious production technology is used on 0 platform, be based on standard of communication of OPC industry automation and product of series of Xi Menzi S7 mutual news report, the online monitoring that realized whole product line and contrail of motion of manipulator of different stamping workpiece reach those who produce a course to emulate imitate. At present platform of monitoring of industrial automation domain uses plane to show mostly, be in especially automation of automobile body punch line domain, because produce environmental characteristic and the collision that should prevent compressor and automation equipment generation, make people right the security that controls a process and dependability had higher demand, and the common surveillance that traditional monitoring platform is spot production condition only, test and verify cannot undertake to the program before production. What the monitoring software of article introduction can realize the spot to produce a course is all-around emulate, in computer screen in fictitious and three-dimensional environment can monitoring arrives the real time position of press slide block and manipulator; The athletic contrail that can pass to all sorts of debugging realizes the athletic process on computer to emulate, the validity of contrail of motion of test and verify. Fictitious production technology 1.

Virtual reality 1989, jaron Lanier of author of company of American VPL Research puts forward " Virtual Reality " (virtual reality) concept. Virtual reality or fictitious environment are artificial construction, the environment of interior of consist in computer. User can the means with nature and this environment is alternant (include to feel an environment and interpose environment) , produce place oneself thereby the visional feeling in corresponding real environment, be enmeshed the feeling of feeling and be personally on the scene. The computer in fictitious environment system was offerred " environment " , is not " data, information " , this changed the content of man-machine interface, this reflected the new way of computer application. At that time, the computer and user are the numerical value that computation concerns interactively, after this, the computer expands to process all sorts of data such as numeric, string and text. After this, the computer more the information that enlarges the multimedia such as processing image, graph, sound and language. The target that virtual reality system treats for the computer with the environment and interactive, this developed the new thinking of computer application, by the new revolution that analogy uses a field for the computer. Fictitious environment system or virtual reality system include interface of human handlers, man-machine and computer. 2.

Fictitious production technology is fictitious production technology is the application that virtual reality system is making a field, and fictitious production technology according to side key differ to be divided again to be a center in order to design fictitious make, what be a center in order to produce is fictitious what make and be a center in order to control is fictitious make. The article basically involves the application that commanding monitoring respect to fictitious production technology. Model and actual manufacturing process are controlled in fictitious environment, the manufacturing process of the product line of workshop punch automation with actual imitate, evaluate the dependability that manufactures an activity, and manipulator motion contrail and specific action can be debugged in fictitious environment, can replace thereby debug exercise actually. SIMOTION system serves as motion to control a system in application of punch automation on-line, SIMOTION controls logistic control, movement (fixed position, synchronism) and craft is controlled (control of pressure, temperature) concentration is in same a system is medium. SIMOTION provided platform of 3 kinds of hardware: Controller platform - SIMOTION C; Driver platform - SIMOTION D; PC platform - SIMOTION P. Same a control program is OK in random move on a kind of platform. Among them, SIMOTION D is the drive system that is based on platform of SINAMICS S120 drive, make its become thereby extremely compact the drive that has powerful control function at the same time controls a system. SIMOTION D has a certain number of planting norms, have different property, among them the application that SIMOTION D435 applies to medium dimensions. When it contains two to have, the bell is the same as interface of the PROFIBUS interface of the pace and two aether net. Be based on above characteristic, the SIMOTION D435 motion that is Xi Menzi company controls an electric control system that automation punch line uses system. The line uses punch automation manipulator expects transmission means realizes entire line up and down successive automation production, entire line tears open chop unit by thrum (tear open chop, move back and forth right medium, oiled with the makings on the first press) , 1 ~ 2 press transfer stage and manipulator combination transmit unit, 2 ~ 3 press transfer stage and manipulator combination transmit unit, 3 ~ 4 press transfer stage and manipulator combination transmit unit, 4 ~ transfer between 5 press machine of leather belt of tail of manipulator of stage, manipulator, the makings below string tail, string and illume unit composition, gross 5 unit. Entire line adopts plan of 5 D435 distributinging control, thrum uses safe PLC of a 317F-2PN/DP and a labour to accuse to go up a machine, between every unit D435 and D435, between D435 and 317F and D435 and labour accuse FROFINET communication is used between machine, assured sex of the high speed that corresponds between each unit, real time so. Standard of communication of NextpageOPC industry automation 1. OPC setting OPC (OLE For Process Control) it is the Distributed Internet Application that is based on Microsoft company (DNA) structural frame and Component Object Model (COM) technology, design according to easy expansibility. OPC standard defined interface of an industry standard, this standard makes COM technology applicable wait for applied domain with production automation with process control. OLE original intention is linked for the object with built-in, and present OLE included a lot of new features, if unite data to transmit, structured memory and automation, had become independence at computer language, operating system even a kind of standard of hardware platform. 2. OPC of OPC interface structure receives a composition by two: The OPC that client end and server programmer use defines interface oneself (OPC COM Custom Interfaces) ; The OPC automation port that supports the client program that uses high-end business application development (OPC OLE Automation Interfaces) . COM interface efficiency is tall, pass this interface, the client can develop the optimum behavior of OPC server, the client that uses C++ language adopts COM interface plan commonly; Automation interface makes explanatory sex language and server of grand visit OPC become a possibility, the client that uses VB language uses automation interface commonly. Automation interface simplifies the implementation of client application process, but the need when moving undertakes the type is checked, sacrificed the traversal speed of the program. The server must offer OPC defines interface oneself, and automation interface is not offerred certainly. 3. Technology of OPC of OPC interface relation is implementation equipment of control system spot and process management course have news alternant, implementation controls a system to open crucial technology of the gender. OPC regards the communication that uses program level as the standard with OLE/COM mechanism, use Client/Server pattern, put the job that develops visit interface in hardware manufacturer or tripartite manufacturer. Offer Client with the form of Server, set a series of interface standard, the object that is in charge of founding Server by Client reachs the interface that visits Server support, depart hardware manufacturer and software development staff effectively thereby come. Below this kind of circumstance, vendor of hardware manufacturer, software and user are attainable great and convenient. Platform of monitoring of punch automation product line 1. OPC communication configures server of SIMATIC NET OPC and configuration of communication of SIMOTION S7 join. (1) the hardware frame that configures PC station. After installing SIMATIC NET, use Station Configuraror configures PC station, show the name is computer of definitive edition machine PC station name. (2) in SIMATIC Manager configuration PC stands. Entire line item is opened in SIMATIC Manager, insert PC station, insert PC station and IE General in PC station HW Configuration, OPC Server is configured in NetPro, select kind of S7 Connection join, establish the link with the equipment in the project, configure good IP address. (3) data processing of address of variable of communication of entire line OPC. all need in SCOUT program the global variable of monitoring derives, go to each variable data copy in file of Microsoft Access database; The variable information that monitoring will need in thrum 317F (letterhead of variable name, join) in writing Access database, use at the monitoring to entire line signal. (4) Configuration Console is configured in SIMATIC NET. (5) use OPC Scout undertakes communication checks. 2.

Spot communication and the amount that emulate those who use a database to build the article to involve communication variable are larger, exceed 4000, and there is correlation between variable, use Microsoft Access to be in charge of the memory of setting data, with will save the data such as variable name, variable address and variable value, and be in charge of user information management, manufacturing data management wait. To form of each Access database, the CRecordset that founds correspondence on development platform kind, define its target in the project, be in charge of the operation of all setting database, this method is simple and reliable. Nextpage3. Monitoring is developed on VC++ platform advocate interface (1) interfacial design. Use VC++6.

0 do development platform, actual condition completes combinative project finally the interface is shown 1 times like the graph. Graph 1 entire line advocate monitoring platform interface (2) of OPC communication component build. Because variable amount is larger, use OPC asynchronous news report so. If the graph is shown 2 times,delete the executive order of OPC object. Executive order of component of communication of graph 2 OPC is carried out in the program begin to define target of global OPC finger, variable type includes: IOPCServer, IOPCItemMgt, IOPCGroupStateMgt, IOPCAsyncIO2, OPCITEMRESULT, HRESULT and OPCHANDLE; Definition OPCITEMDEF array is used define an object attribute. OPC communication mechanism establishs a procedure particular branch is the following measure: ① registers COM port R1 = CoInitialize(NULL) ; ... ② basis ProgID, obtain accessary CLSIDr1= CLSIDFromProgID(L"OPC.

SIMATICNET" , &clsid) ; ... ③ builds R1 = CoCreateInstance (clsid of OPC server join, NULL, CLSCTX_LOCAL_SERVER, IID_IOPCServer, (Void**)&m_pIOPCServer) ; ... ④ adds group object basis project content, the page that AddGroup function of use M_pIOPCServer → needs to show to every establishs corresponding group target. ⑤ adds an object to use AddItems function to establish his target in each inter block, every a correspondence at each monitoring object. ⑥ gets QueryInterface(IID_IOPCGroupStateMgt of → of R1=m_pIOPCItemMgt_LineIf of IOPCGroupStateMgt interface finger to each groups of objects, (Void**) &m_pIOPCGroupStateMgt_LineIf) ; ... ⑦ gets QueryInterface(IID_IOPCAsyncIO2 of → of R1=m_pIOPCItemMgt_LineIf of IOPCAsyncIO2 interface finger to each groups of objects, (Void**)&m_pIOPCAsyncIO2_LineIf) ; ... Nextpage ⑧ founds LPUNKNOWN PCbUnk of object of Callback callback function; GetUnknown() of → of PCbUnk = PCOPCDataCallback; Server of ⑨ join OPC and HRESULT HRes = AtlAdvise(m_pIOPCGroupStateMgt_LineIf of object of user callback function, PCbUnk, IID_IOPCDataCallback, &m_dwAdvise_LineIf) ; ... ⑩ carries out read those who write operation variable numerical value take use below function finishs: Read(1 of → of R1 = M_pIOPCAsyncIO2_LineIf, phServer, 1, &dwCancelID, &pErrors) ; ... variable writes numericly use below function finishs: Write(3 of R1 =m_pIOPCAsyncIO2_LineIf → , phServer, values, 2, &dwCancelID, &pErrors) ; ... the information that ⑾ gets OPC server to release. In Callback.

The COPCDataCallback in Cpp file: In OnDataChange() function, become a variable that the object points to when producing change, can execute this function, possess the numerical value after change in function parameter, the monitoring of field data is finished in this function. ⑿ deletes OPC object, release memory. Finished place of product line spot finally to have variable link. Graph 3 showed the case that reads access cost. Communication of graph 3 OPC is read take spot signal 4.

The implementation of fictitious environment (1) of three-dimensional model build a model (see a picture 4) . Article model is in software of 3D MAX cartography scale, because spot equipment is more, workload is bigger. The real measure of the model and objective somewhat difference, this brings inevitable error to manipulator contrail is debugged in the program. Graph 4 entire lines are three-dimensional the model founds Nextpage (2) of object of the interior in fictitious environment found (see a picture 5) . In VC++6.

On 0 development platform, use World ToolKit fictitious environment to develop software package, each node in founding an environment and each three-dimensional model guides be bound with corresponding node in the environment decide one case. Graph the implementation of 5 entire lines in fictitious environment (3) perfect emulation function. Increase motion to control operation pushbutton; Increase indication viewpoint function; Increase stamping workpiece to choose a function; Build product database; Increase 5 cent to stand each manipulator condition edits casing, the athletic case that uses indication manipulator, executive circumstance is shown 6 times like the graph. Graph monitoring of 6 entire lines and copy come true really (4) the join of variable of position of the mobile that finish. Ceaseless loop is used to read the manipulator in taking a database in the program the numerical value of real position, will control the movement of the manipulator in the environment; Debug the orbit data that pass according to different pattern place, the movement that nod each contrail of memory and carries out at each o'clock (for example inspiratory, blow gas to wait) in reading in a program, come the motion of imitate entire line. (5) of athletic emulation program call. In advocate increase in monitoring interface " motion is emulated " pushbutton, gift function of message map processing makes its transfer CreateProcess function, will emulate ode of executable file method to give this function corresponding parameter, concentrate two programs finally on platform of a monitoring. Motion of SIMOTION of epilogue Xi Menzi controls a system to be able to control the parameter such as the athletic contrail of manipulator, speed and acceleration, can optimize athletic contrail; The article is based on OPC communication standard, manufacturing site the variable inside equipment of Xi Menzi automation is read take, the variable numerical value that takes according to reading in fictitious environment will control the movement of the equipment in fictitious environment, use development of C++ advanced language, whole read take process time shorter, accuse than using Net OPC should a lot of faster, raised the real time sex of monitoring. And if model measure is adequate accurate, contrail of each manipulator motion can be debugged in real fictitious now environment, will debug a result to save on carry program of automation device control character inside memory card, it is OK to accomplish come through aether net inside the office monitoring, debug and operate spot facility. CNC Milling CNC Machining