Summary of the invention
For solving the problem and blemish of above-mentioned middle existence, the invention provides the method for a kind of solid material from motion tracking, the method is using the material of following the tracks of as independent logical object, make it in tracing process, not rely on material self attributes, mean in the time that size, outward appearance or other physics, the chemical parameters of material change and do not form impact to following the tracks of.Described technical scheme is as follows:
Solid material is from a method for motion tracking, and the method adopts the form of server, client to carry out from motion tracking, it is characterized in that, described method comprises:
Key element is followed the tracks of in definition, and described key element is stored as controlling parameter;
Read the tracing object record of servers' data memory block, and by graphically showing user;
By server system, stack material throughput direction signal and light sensation detecting element signal are carried out compoundly, obtain new flip-over type signal, and described flip-over type signal is sent to the data communication units of tracker with the form of electronic message; And
The text receiving described in data communication units parsing;
From text, follow the tracks of event data and be stored into data storage area, and process following the tracks of event data.
The beneficial effect of technical scheme provided by the invention is:
The first, adopt the pattern of controlling end to end, tracing object is divided into two parts of head and tail.It in Industry Control, is not the absolute position that any moment all needs material.In the situation that meeting control requirement, adopt tracking material method end to end can greatly reduce the calculated load of tracker.
The second, adopt definition tracing object, tracing area, tracking event and between the method for mutual relationship.Material Tracking person only needs to draw region, the event design drawing in following range.Require to divide tracing area according to controlling, then carry out event definition according to the direction of motion of material, can automatically generate tracking processing logic, do not need to write separately control program.Wide for following range, tracing area is various, track path complicated situation is very applicable.
The 3rd, not high for the accuracy requirement of detection signal.At the more severe scene of some environment, the accuracy of detection signal is difficult to ensure.When signal occurs when abnormal, the wrong treatment mechanism of system will be carried out logic verify based on following the tracks of three elements rule.
The 4th, carry out 2 dimensional region definition by matrix pattern.The material that adopts the method can process specific type is followed the tracks of.For example: based on batch tracking, both each tracking event represented one batch integral position change.
The 5th, can under any circumstance follow the tracks of correction (online, off-line), adopt the method simple modifications positions of materials of simulating signal, this correction and the method for operation are irrelevant, no matter have been both to advance, retreat, reach the standard grade, roll off the production line.
The 6th, in the time that technological requirement and equipment layout change, only need to change the definition of tracing area and the event of tracking, can realize the system reform, do not need reconfiguration code.
The 7th, tracing area and event are all the definition in logical concept, and they not necessarily will be with in kind corresponding.Therefore the virtual test that can follow the tracks of and control by the mode of simulating signal easily.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail:
The present embodiment adopts the form of server, client to carry out the system from motion tracking, client part is used for following the tracks of interface display and position correction, this part, for reading the tracing object record of servers' data memory block, then shows user by graphical means.The tracking event extracting from communication data is stored into data storage area by server end, then processes following the tracks of event data, referring to Fig. 1, represented server and client side's processing unit structure and data stream relation.
Automated location Tracking need to carry out in two steps, and the first step is to follow the tracks of the design of three elements definition template.Second step is the design of tracking data reception & disposal.
The first step need to define to follow the tracks of three elements and set it as controls Parameter storage in the tracking rule of Fig. 1.Process section under tracing area inclusion region code, area type, matrix of areas dimension, region main technique direction, region.Here defined region is logic region, and it can be corresponding to one or more actual area.All need it abstract in thering is the matrix of different dimensions for any one tracing area.Matrix X is to representing with the coordinate of Y-direction the position that tracing object can be preserved.Tracking event comprises event code, event source region, event target region, event-action title, event direction, object handover type.Follow the tracks of action and comprise denomination of dive, sequence of movement, action executing processing unit.After definition completes, automatically generate record property script, distribute for controlling data access and task.
Second step tracking data reception & disposal comprises three separate parts.Part I is HMI interface display.This part, for the tracing object record of reading out data memory block, then shows user by graphical means.The for example changes in material in 1# operation room monitoring defined range 1,2,3; Changes in material in 2# operation room monitoring defined range 3,4,5; Need to design different tracking interface A, B for 1#, 2# operation room.The material in defined range 1,2,3 is directly read at A interface, and the material in defined range 3,4,5 is directly read at B interface.
As shown in Figure 2, for solid material is from the method for motion tracking, the method comprises:
Key element is followed the tracks of in step 201 definition, and described key element is stored as controlling parameter;
Step 202 reads the tracing object record of servers' data memory block, and by graphically showing user;
Step 203 is carried out stack material throughput direction signal and light sensation detecting element signal by server system compound, obtains new flip-over type signal, and described flip-over type signal is sent to the data communication units of tracker with the form of electronic message; And
The text receiving described in data communication units parsing;
Step 204 is followed the tracks of event data and is stored into data storage area from text, and processes following the tracks of event data.
Above-mentioned data communication part mainly solves the communication issue with basic automation systems, basic automation systems need to superpose material throughput direction signal and light sensation detecting element signal.The tracking event that this composite signal is defined with the first step is associated and produces new flip-over type signal, and Fig. 3 has represented the situation of material " head enters ".When the end of material E positive movement is to the intersection of region A, B, while blocking light sensation detecting element C, trigger, in the time that this situation occurs, basic automatization obtains new flip-over type signal by judgement, and trigger pip is sent to the data communication units of tracker with the form of TCP/IP electronic message, be responsible for resolving these texts by data communication units.
The tracking event data extracting from text is stored into data storage area, then processes following the tracks of event data, and its server end is followed the tracks of event handling overall process as shown in Figure 4:
Step 401 is obtained event.
Step 402 checks decision event validity;
If effectively, execution step 403, otherwise finish.
Step 403 identification event is distributed alignment processing unit;
If corresponding processing unit, execution step 404, otherwise finish.
Step 404 judges mobile type, selects tracing mode.
Step 405 is carried out the variation of following the tracks of positions of materials.
Be illustrated in figure 5 server end communication data treatment scheme, comprise:
Step 501 receives event signal by obtaining event;
The text receiving is extracted to operation, take out and follow the tracks of Case Number and additional data thereof.
Step 502 storage signal content;
The data that extract are sorted, make to store data storage area into according to time sequencing.
Step 503 trigger event supervisory control device;
After storage tracking signal ED, send to follow the tracks of and process service request, wait for data monitoring cell scheduling trace daemon.
Step 504 tracking treatment unit reads Case Number;
Follow the tracks of the validity check that treatment progress starts to retrieve untreated tracking event and then carry out according to sequential event after the allotment instruction of receiving data monitoring unit.
Be illustrated in figure 6 server end logic verify treatment scheme, comprise:
Step 601 checks by event validity, according to following the tracks of Case Number, obtains tracking event argument;
Get time parameter, execution step step 602, otherwise finish.
Step 602 is obtained tracing area parameter;
Obtain all parameters such as source region, target area of event representative according to following the tracks of event argument, if get source region, the target area of event representative, execution step 603, otherwise finish.
Step 603 is obtained the set that performs an action;
Obtain event-action sequential marshalling set according to following the tracks of event argument, if get event-action sequential marshalling set, and
Identification event is distributed alignment processing unit.
Be illustrated in figure 7 server end event handling performance element and select flow process, comprising:
Step 701 is distributed alignment processing unit to identification event, carries out corresponding actions according to parameter;
Judge that described event is device action or tracing object action.
Step 702 is determined event type according to area type;
Determine the type of action of material by event argument and region parameter.
Step 703 is selected the performance element of event by type;
Whether the type that judges source region and target area is identical, selects performance element according to judged result.
As shown in Figure 8, select flow process for server end tracing mode, comprising:
Step 801 judges the Move Mode of tracking event;
The Move Mode that judges tracking event is that mobile or composition moves separately, if move separately, execution step 802, if move in groups, performs step 803;
Step 802 moves separately;
Adopt FIFO(first in first out) principle, in source region matrix, search for tracing object and obtain independent overall tracing object when mobile.
Step 803 adopts a batch binding principle (in same batch, positions of materials, order are fixed), searches for tracing object, and obtain the overall tracing object while movement in groups in source region matrix.
Step 804 is determined all tracing objects;
Require (moving separately or integrated moving) according to the handover of tracing object, obtain all tracing objects.
Step 805 judges the moving direction of tracking event;
By following the tracks of event argument, tracing area parameter and tracing object, determine the direction of motion (forward or reverse) of material.
The described typical module of step 806 judgement;
According to the direction of motion of material and other event, region parameter, from the tracing mode of six quasi-representatives, select suitable processing rule, and
Carry out the variation of tracking object positions.
Be illustrated in figure 9 server end tracking object positions changing process, comprise:
Step 901 judges that head position changes;
Obtain the head position of tracing object, judge whether head position needs to change, if need to change, check the validity of target area matrix coordinate.
Step 902 judges that tail position changes;
Obtain the tail position of tracing object, judge whether tail position needs to change, if need to change, check the validity of target area matrix coordinate.
Step 903 inspection judges the availability of target area;
If head and afterbody all meet mobile condition, variable mark is set, all regions that relate to are locked simultaneously, execution step 904, otherwise finish.
Step 904 rearranges source region tracing object;
If head need to change, delete the head of source region tracing object, the head of amendment tracing object is to target area; If afterbody need to change, delete the afterbody of source region tracing object, the afterbody of amendment tracing object arrives target area.
Step 905 is carried out the regional change of tracing object;
Judge and in source region, whether have other object.If other object needs change of location, according to FIFO(first in first out) principle redistribution matrix of areas coordinate.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.