Summary of the invention
In view of this, being used the technical problem to be solved by the application is to provide a kind of production line analogy method and device
The case where intuitively to show production line actual motion.
In order to solve the above-mentioned technical problem, this application discloses a kind of production line analogy methods, which comprises
According to an at least equipment for the first production line of composition, the determining and one-to-one device model of an at least equipment
And the corresponding device parameter of each device model, and corresponding device parameter is configured for each device model, it is corresponding to obtain each equipment
Virtual unit;
According to the connection relationship of each equipment in first production line, virtual unit corresponding with each equipment is connected
Come, make as the connection relationship of each equipment and the connection relationship of virtual unit corresponding with each equipment, obtains and first life
The corresponding simulation production line of producing line;
It is determining to simulated production process and described to simulated production process packet from the production procedure of first production line
At least target virtual devices included, and the device parameter and operation logic of each target virtual devices are called, control each institute
Target virtual devices are stated to run and execute described to simulated production process;
It obtains and executes the analog result to simulated production process.
Optionally, described when simulated production process in execution, further includes: corresponding rule-statistical model is called to count
Utilization rate of equipment and installations, cargo general input, cargo general output, current cargo total amount, average size, minimum residence time, maximum
Residence time, mean residence time.
Optionally, the method also includes:
The first modification instruction of modification device parameter is received, the first modification instruction includes what device parameter system was modified
Device model mark;
The first modification instruction is executed, the device parameter that the device model identifies corresponding device model is modified.
Optionally, the method also includes:
The second modification instruction of modification device model connection relationship is received, the second modification instruction includes first after modification
Connect the first device model mark and the second device model mark at both ends;
The second modification instruction is executed, first device model is connected and identifies corresponding device model and the second equipment
The corresponding device model of model identification.
Optionally, the method also includes:
According to modified simulation production line, each virtual unit for calling the modified simulation production line to include is set
Standby parameter and operation logic, control the production procedure that each virtual unit runs and executes the modified simulation production line;With
And obtain the analog result for executing the production procedure of the modified simulation production line.
Disclosed herein as well is a kind of production line simulator, described device includes:
Configuration unit, for at least equipment according to the first production line of composition, a determining and at least equipment is one by one
Corresponding device model and the corresponding device parameter of each device model, and corresponding device parameter is configured for each device model,
Obtain the corresponding virtual unit of each equipment;
Connection unit will void corresponding with each equipment for the connection relationship according to each equipment in first production line
It proposes for connecting, makes as the connection relationship of each equipment and the connection relationship of virtual unit corresponding with each equipment, obtain
Simulation production line corresponding with first production line;
Analogue unit, for determining to simulated production process and described to mould from the production procedure of first production line
At least target virtual devices that quasi- production procedure includes, and the device parameter of each target virtual devices and operation is called to patrol
Volume, it controls each target virtual devices and runs and execute described to simulated production process;Acquiring unit executes institute for obtaining
State the analog result to simulated production process.
Optionally, the analogue unit, is also used to: calling corresponding rule-statistical model to count utilization rate of equipment and installations, goods
Object general input, current cargo total amount, average size, the minimum residence time, the maximum residence time, is averaged at cargo general output
Residence time.
Optionally, described device further includes the first modification unit, is used for:
The first modification instruction of modification device parameter is received, the first modification instruction includes what device parameter system was modified
Device model mark;
The first modification instruction is executed, the device parameter that the device model identifies corresponding device model is modified.
Optionally, described device further includes the second modification unit, is used for:
The second modification instruction of modification device model connection relationship is received, the second modification instruction includes first after modification
Connect the first device model mark and the second device model mark at both ends;
The second modification instruction is executed, first device model is connected and identifies corresponding device model and the second equipment
The corresponding device model of model identification.
Optionally, the analogue unit, is also used to: according to modified simulation production line, calling the modified mould
The device parameter and operation logic for each virtual unit that quasi- production line includes control each virtual unit and run and execute the modification
The production procedure of simulation production line afterwards;And
The acquiring unit is also used to obtain the simulation knot for executing the production procedure of the modified simulation production line
Fruit.
Compared with prior art, the application can be obtained including following technical effect:
The embodiment of the present application can construct one and the identical simulation production line of actual production line, and can foundation
Actual production flowsheeting production process, to obtain corresponding analog result, and then according to the simulated production process and simulation
Led to the problem of in actual production line and production procedure as a result, it is possible to analyze, with can variation according to the actual situation at any time
Change layout, the case where intuitively to show production line actual motion.
Certainly, any product for implementing the application must be not necessarily required to reach all the above technical effect simultaneously.
Specific embodiment
Presently filed embodiment is described in detail below in conjunction with accompanying drawings and embodiments, how the application is applied whereby
Technological means solves technical problem and reaches the realization process of technical effect to fully understand and implement.
For inventor during studying the disclosure, there are problems for the discovery prior art: traditional production line simulation design
Method is in such a way that planar design and mathematical computations combine, and the layout of production line is carried out by the way of simplifying to entity
The case where arrangement, production line is run, then passes through mathematical computations and is deduced, while rule of thumb optimization layout, and finally guidance is real
The layout designs on border.But traditional technical solution although having done simplification, and actually differs greatly for location problem, in algorithm
It cannot accurately be solved in the finite time of solution, be difficult to carry out time update according to complicated actual change, it is more difficult to intuitive table
The case where existing production line actual motion.
In view of this, inventors herein proposing a kind of scheme, actual production line can be simulated, and control and simulate
The production line come executes actual production procedure, leads to the problem of in actual production line and production procedure to analyze, with energy
Enough variations according to the actual situation change layout at any time, the case where intuitively to show production line actual motion.
Referring to Fig. 1, the embodiment of the present application discloses a kind of production line analogy method, this method can be applied to terminal and set
Standby (such as PC, smart phone, IPAD etc.), also can be applied to server, can also be using set on cloud or entity device
Logical device, such as virtual machine.Method shown in FIG. 1 specifically includes step 102-108, for convenience of describing, the embodiment of the present application
Actual production line is known as the first production line.
Step 102, at least equipment according to the first production line of composition, determination are one-to-one with an at least equipment
Device model and the corresponding device parameter of each device model, and corresponding device parameter is configured for each device model, it obtains each
The corresponding virtual unit of equipment.
In the embodiment of the present application, the first production line includes the various equipment positioned at the production line flow process node, Mei Geliu
There is direct or indirect connection relationship between Cheng Jiedian and downstream node.This step is then set according to what the first production line included
It is standby, determine corresponding device model and the corresponding device parameter of the device model, wherein device parameter is setting for physical device
Standby parameter.Herein, device model is the virtual component for creating or developing according to existing equipment, by receiving matching for user's input
Order is set, to configure corresponding device parameter for each device model.
For example, it is assumed that the production procedure of the manufacturing industry production line of planning are as follows: manufacturing equipment manufactures product, then will manufacture
Product transported one by one by transmission equipment to shelf, shelf check the product data received by rays safety detection apparatus.So,
The equipment that the manufacturing industry production line includes has manufacturing equipment, transmission equipment, rays safety detection apparatus.
Then through this embodiment, determine corresponding with manufacturing equipment, transmission equipment, rays safety detection apparatus manufacturing equipment model,
Transmission equipment model, rays safety detection apparatus model.And the device parameter of each equipment is obtained, then set for the configuration of each device model is corresponding
Standby parameter, with creation and entity device (including device type, functions of the equipments, equipment performance etc.) identical virtual unit.
Step 104, the connection relationship according to each equipment in first production line, will virtual unit corresponding with each equipment
Connect, make as the connection relationship of each equipment and the connection relationship of virtual unit corresponding with each equipment, obtain with it is described
The corresponding simulation production line of first production line.
After each equipment of acquisition corresponding virtual unit, the connection relationship of each equipment in available first production, then
Each virtual unit is connected according to the connection relationship, make each equipment connection relationship and virtual unit corresponding with each equipment
Connection relationship it is the same, obtain corresponding with first production line simulation production line.
Still by taking the manufacturing industry production line of aforementioned planning as an example, in the manufacturing industry production line of planning, the connection of each equipment is closed
System is: manufacturing equipment connects transmission equipment, and transmission equipment connects rays safety detection apparatus.It is set obtaining virtual manufacturing device, virtually transmitting
After standby, virtual rays safety detection apparatus, according to aforementioned connection relationship, virtual manufacturing device is connect with virtual transfer device, and will be virtual
Transmission device is connect with virtual rays safety detection apparatus.
It should be understood that the present embodiment can also provide place, scene, object dummy model, and be dummy model
After setting corresponding site parameter, scenario parameters, object parameters, corresponding virtual objects are obtained, and the virtual objects are added
Enter into the corresponding flow nodes of production line.
Such as the warehouse in aforementioned manufacturing industry production line, it can determine corresponding storehouse model and relevant parameter, example
Then it is good to have configured parameter for the storehouse model, has obtained corresponding virtual warehouse for such as area, space, humidity, temperature.Finally
Warehouse is connect with rays safety detection apparatus.
Step 106, it determines from the production procedure of first production line to simulated production process and the life to be simulated
At least target virtual devices that process includes are produced, and call the device parameter and operation logic of each target virtual devices,
Each target virtual devices are controlled to run and execute described to simulated production process.
In the present embodiment, certain production procedures can be selected as to simulated production process from actual production procedure
It is simulated, is being determined after simulated production process, can determine the target virtual devices for waiting for that simulated production process includes.
Then the device parameter and operation logic of invocation target virtual unit controls each target virtual devices and runs and execute to mould
Quasi- production procedure.
Still by taking aforementioned manufacturing industry production line as an example, production procedure are as follows: manufacturing equipment manufactures product, then will manufacture
Product is transported one by one by transmission equipment to shelf, and shelf check the product data received by rays safety detection apparatus.
Assuming that selection to simulated production process 1 are as follows: manufacturing equipment manufacture product, the product manufactured is then passed through into biography
Equipment is sent to be transported one by one, then the target virtual devices for including are virtual manufacturing device and virtual transmission equipment.Assuming that selection
To simulated production process 2 are as follows: manufacturing equipment manufacture product, then the target virtual devices for including be virtual manufacturing device.It is false
If selection to simulated production process 3 are as follows: manufacturing equipment manufacture product, then by product manufacture pass through transmission equipment by by
A to transport shelf, shelf check the product data received by rays safety detection apparatus, then the target virtual devices for including are void
It draws up manufacturing apparatus, virtual transmission equipment and virtual rays safety detection apparatus.
For to simulated production process 1, we call the device parameter and operation logic, virtual transmission of virtual manufacturing device
The device parameter and operation logic of equipment, control virtual manufacturing device, the operation of virtual transmission equipment, to execute to simulated production stream
Journey 1.
Step 108, it obtains and executes the analog result to simulated production process.
The embodiment of the present application can construct one and the identical simulation production line of actual production line, and can foundation
Actual production flowsheeting production process, to obtain corresponding analog result, and then according to the simulated production process and simulation
Led to the problem of in actual production line and production procedure as a result, it is possible to analyze, with can variation according to the actual situation at any time
Change layout, the case where intuitively to show production line actual motion.
In another embodiment, step 106 is it may also is that call device parameter and the operation of each virtual unit
Logic controls each virtual unit operation, to execute the production procedure.
When wanting the analog result of certain virtual unit of analysis, it can control other virtual units in simulation production line
It is out of service.Specifically, can receive halt instruction, the halt instruction includes device model mark, executes the stopping and refers to
It enables, it is out of service to control the corresponding virtual unit of the device model mark.
In order in simulation process can analysis mode together, can execute described when simulated production process, call
Corresponding rule-statistical model, to count utilization rate of equipment and installations, cargo general input, cargo general output, current cargo total amount, put down
Equal capacity, minimum residence time, maximum residence time, mean residence time.Wherein, each rule-statistical model is as follows.
The ratio of utilization rate of equipment and installations statistical model, i.e. average size and place capacity.
Cargo general input statistical model, that is, be added to the summation of the quantity of goods of this entity.
Cargo general output statistical model, that is, be output to the summation of the quantity of goods of other entities.
Average size statistical model, the i.e. ratio of cargo general input and simulation run total time.
Minimum residence time statistical model, i.e. residence time are i.e. from being input to the time for being output to other entities.Minimum value
That the smallest value in i.e. total cargo.
Minimum big residence time statistical model, i.e. residence time are i.e. from being input to the time for being output to other entities.It is maximum
Value is that maximum value in total cargo.
Mean residence time statistical model, i.e., the residence time of all cargos and the ratio with cargo general input.
It should be understood that above-mentioned only play the role of example, rule-statistical model can be specific according to different production lines
Setting, the application are not particularly limited.
Change layout at any time in order to variation according to the actual situation, the embodiment of the present application can also modify equipment ginseng
Number.Specifically, referring to Fig. 2, the method also includes:
Step 1010, the first modification instruction of modification device parameter is received, the first modification instruction includes device parameter
It is the device model mark modified;The first modification instruction is executed, the device model is modified and identifies corresponding equipment mould
The device parameter of type.
It should be understood that step 1010 synchronous with step 104-106 can execute, it can also be in step 104-106
It is executed before or after either step.
Change layout at any time in order to variation according to the actual situation, the embodiment of the present application can also be modified between equipment
Connection relationship.Specifically, referring to Fig. 3, the method also includes:
Step 1012, the second modification instruction of modification device model connection relationship is received, the second modification instruction includes
The first device model mark and the second device model mark at the first connection both ends after modification;The second modification instruction is executed,
It connects first device model and identifies corresponding device model and the corresponding device model of the second device model mark.
It should be understood that step 1012 synchronous with step 104-106 can execute, it can also be in step 104-106
It is executed before or after either step.
Change layout at any time in order to variation according to the actual situation, the embodiment of the present application can also be according to modified
Production line is simulated, specifically, in modification device parameter or connection relationship or after simulated production process, referring to Fig. 4, this
Apply for that embodiment can also include: step 1014, according to modified simulation production line, calls the modified simulated production
The device parameter and operation logic for each virtual unit that line includes control each virtual unit and run and execute the modified mould
The production procedure of quasi- production line;And obtain the analog result for executing the production procedure of the modified simulation production line.
Referring to Fig. 5, disclosed herein as well is a kind of production line simulator, described device include: configuration unit 500,
Connection unit 501, analogue unit 502 and acquiring unit 503.The function of each unit describes specific as follows shown.
Configuration unit 500, for at least equipment according to the first production line of composition, a determining and at least equipment one
One corresponding device model and the corresponding device parameter of each device model, and corresponding equipment ginseng is configured for each device model
Number, obtains the corresponding virtual unit of each equipment.
Connection unit 501 will be corresponding with each equipment for the connection relationship according to each equipment in first production line
Virtual unit connects, and makes to obtain as the connection relationship of each equipment and the connection relationship of virtual unit corresponding with each equipment
Obtain simulation production line corresponding with first production line.
Analogue unit 502, for determining to simulated production process and described from the production procedure of first production line
To at least target virtual devices that simulated production process includes, and call the device parameter and fortune of each target virtual devices
Row logic controls each target virtual devices and runs and execute described to simulated production process.
Acquiring unit 503 executes the analog result to simulated production process for obtaining.
Optionally, the analogue unit 502, is also used to: call corresponding rule-statistical model count utilization rate of equipment and installations,
Cargo general input, current cargo total amount, average size, the minimum residence time, the maximum residence time, is put down at cargo general output
The equal residence time.
Optionally, described device further includes the first modification unit, is used for:
The first modification instruction of modification device parameter is received, the first modification instruction includes what device parameter system was modified
Device model mark;
The first modification instruction is executed, the device parameter that the device model identifies corresponding device model is modified.
Optionally, described device further includes the second modification unit, is used for:
The second modification instruction of modification device model connection relationship is received, the second modification instruction includes first after modification
Connect the first device model mark and the second device model mark at both ends;
The second modification instruction is executed, first device model is connected and identifies corresponding device model and the second equipment
The corresponding device model of model identification.
Optionally, the analogue unit 502, is also used to: according to modified simulation production line, calling described modified
The device parameter and operation logic for each virtual unit that simulation production line includes control each virtual unit and run and execute described repair
The production procedure of simulation production line after changing;And
The acquiring unit 503 is also used to obtain the simulation for executing the production procedure of the modified simulation production line
As a result.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include non-temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
As used some vocabulary to censure specific components in the specification and claims.Those skilled in the art answer
It is understood that hardware manufacturer may call the same component with different nouns.This specification and claims are not with name
The difference of title is as the mode for distinguishing component, but with the difference of component functionally as the criterion of differentiation.Such as logical
The "comprising" of piece specification and claim mentioned in is an open language, therefore should be construed to " include but do not limit
In "." substantially " refer within the acceptable error range, those skilled in the art can within a certain error range solve described in
Technical problem basically reaches the technical effect.In addition, " coupling " word includes any direct and indirect electric property coupling herein
Means.Therefore, if it is described herein that a first device is coupled to a second device, then representing the first device can directly electrical coupling
It is connected to the second device, or the second device indirectly electrically coupled through other devices or coupling means.Specification
Subsequent descriptions be implement the application better embodiment, so it is described description be for the purpose of the rule for illustrating the application,
It is not intended to limit the scope of the present application.The protection scope of the application is as defined by the appended claims.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
Include, so that commodity or system including a series of elements not only include those elements, but also including not clear
The other element listed, or further include for this commodity or the intrinsic element of system.In the feelings not limited more
Under condition, the element that is limited by sentence "including a ...", it is not excluded that in the commodity or system for including the element also
There are other identical elements.
Several preferred embodiments of the invention have shown and described in above description, but as previously described, it should be understood that the present invention
Be not limited to forms disclosed herein, should not be regarded as an exclusion of other examples, and can be used for various other combinations,
Modification and environment, and the above teachings or related fields of technology or knowledge can be passed through within that scope of the inventive concept describe herein
It is modified.And changes and modifications made by those skilled in the art do not depart from the spirit and scope of the present invention, then it all should be in this hair
In the protection scope of bright appended claims.