CN115657501A - Equipment 3D emulation test system - Google Patents

Equipment 3D emulation test system Download PDF

Info

Publication number
CN115657501A
CN115657501A CN202211381171.4A CN202211381171A CN115657501A CN 115657501 A CN115657501 A CN 115657501A CN 202211381171 A CN202211381171 A CN 202211381171A CN 115657501 A CN115657501 A CN 115657501A
Authority
CN
China
Prior art keywords
component
equipment
test system
simulation test
program
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
CN202211381171.4A
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.)
Guangdong Yonggu Technology Co ltd
Original Assignee
Guangdong Yonggu 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 Guangdong Yonggu Technology Co ltd filed Critical Guangdong Yonggu Technology Co ltd
Priority to CN202211381171.4A priority Critical patent/CN115657501A/en
Publication of CN115657501A publication Critical patent/CN115657501A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention belongs to the field of application of automation equipment, and particularly relates to a 3D simulation test system for equipment, which comprises: the component unit is used for classifying, logic state mechanism, registering, adding and acquiring components required by program operation and managing system components; and the modeling unit is used for importing a preset model into a program, setting actual units and coordinate setting according to the object parameter setting and the hierarchical relation, and generating an equipment model. According to the 3D simulation test system for the equipment, the running effect is obtained in advance, unreasonable or wrong places of design are found, the equipment is modified before being manufactured, the development cost of the equipment is greatly reduced, the running data is obtained in advance, the data of the relative score can be taken before the equipment is manufactured, the confidence and the trust of a client on the equipment are enhanced, the client is better served, and the equipment is improved; shortening the overall development cycle.

Description

Equipment 3D emulation test system
Technical Field
The invention relates to the field of application of automation equipment, in particular to a 3D simulation test system for equipment.
Background
At present, nonstandard equipment automation is widely applied to various large industrial fields and is one of huge industrial power.
At present, the equipment of each large nonstandard automation equipment company can obtain the complete data of the equipment operation after complete development, so that the risk of equipment development is greatly improved, the development period of the equipment is prolonged, and the development cost is increased. 3D simulation systems existing in the current 3D simulation industry of equipment cannot perfectly fit the non-standard equipment automation industry, and cannot achieve corresponding 3D simulation effects aiming at the customization industry.
Therefore, a device 3D simulation test system is proposed to address the above problems.
Disclosure of Invention
In order to make up for the defects of the prior art and solve the problem that 3D simulation systems existing in the current 3D simulation industry of equipment cannot perfectly fit the non-standard equipment automation industry, the invention provides a 3D simulation test system of the equipment.
The technical scheme adopted by the invention for solving the technical problems is as follows: the invention relates to a 3D simulation test system of equipment, which comprises:
the component unit is used for classifying, logically and mechanically processing, registering, adding and acquiring components required by program operation, and managing system components;
the modeling unit is used for importing a preset model into a program, setting actual units and coordinate setting according to object parameter setting and hierarchical relation setting, and generating an equipment model;
and the simulation program unit is used for performing program operation on the component unit and the modeling unit, binding the model and the component, setting parameters, and writing and binding component operation logic on the component.
The method comprises the steps of importing a prepared model and a prepared component driving library into a Unity 3D program, carrying out component binding and parameter setting aiming at an actual hierarchical structure of the model, writing and binding component operation logic on the components, and finally generating a simulation program, wherein Unity 3D mainly comprises importing the model and the component driving library, binding components and setting component information of related game objects, and controlling actions of the game objects by writing component control logic, so that automatic operation of equipment is realized, and a machine operation program is generated.
Preferably, the component unit comprises a component parent class, a standard hardware component, an object control component, a logic state mechanism component and a management system, wherein the standard hardware component comprises a column of standard hardware such as an input sensor, an output sensor, an industrial camera and a jig, and the object control component comprises a series of operation control components such as a video camera, a component display and a rate control.
Preferably, the component parent class is used for registering components and automatically registering a general command, and includes setting parameters, acquiring parameters, setting parent-child relationships, removing parent-child relationships, setting a display state, and delaying waiting.
Preferably, the logical state mechanism component is used for management of logical states, including loop execution, start, pause of the state machine and one-time addition of tasks.
Preferably, the management system is configured to provide registration, addition, acquisition, and management of system components.
Preferably, the preset model importing program is to import a wrl type model into 3D modeling rendering and manufacturing software based on a PC system.
Preferably, the component operation logic is that the component object is acquired in the component unit by the component name by creating the action instruction, and whether a call event exists is checked by a callback type contained in the current action instruction in a callback event check function of the re-calling component;
when no calling function exists, no operation is executed and the current instruction is assigned with a completion state; when the calling function exists, the calling function is immediately added to the running callback function set.
Preferably, the component execution logic includes logic for detecting whether an executable task exists in the update function, and when the executable task exists, executing the loop call-back event until the assignment completion state.
Preferably, the component unit further comprises component construction logic, and the component construction logic includes polling state calls automatically added to the component management set, the registration of the callback event, the addition of the callback management set, and the instruction callback set.
Preferably, the simulation program unit further includes exception handling, when the program exception looks up the log through a debugging mode, if the program exception is in the debugging mode, the console outputs whether the log is abnormal, and when the program exception is in the abnormal state, the console eliminates the error according to the log prompt; and when the output log is not abnormal, debugging the break point through Visual Studio to troubleshoot the problem.
The invention has the advantages that:
according to the invention, by acquiring the operation effect in advance, unreasonable or wrong design places are found, and the design is modified before the equipment is manufactured, so that the equipment development cost is greatly reduced, the operation data is acquired in advance, the data of a relative score can be taken before the equipment is manufactured, the confidence and the trust of a client on the equipment are enhanced, the client is better served, and the equipment is better improved; the whole development period is shortened.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a schematic view of the overall structure of the embodiment;
FIG. 2 is a schematic diagram of the logic for the operation of the components of an embodiment;
FIG. 3 is a diagram illustrating exception handling of an exemplary emulator unit;
FIG. 4 is a component build logic diagram of an embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1-4, a 3D simulation test system for a device includes:
the component unit is used for classifying, logic state mechanism, registering, adding and acquiring components required by program operation and managing system components;
the modeling unit is used for importing a preset model into a program, setting actual units and coordinate setting according to object parameter setting and hierarchical relation setting, and generating an equipment model;
and the simulation program unit is used for performing program operation on the component unit and the modeling unit, binding the model and the component, setting parameters, and writing and binding component operation logic on the component.
The method comprises the steps of importing a prepared model and a prepared component driving library into a Unity 3D program, binding components and setting parameters according to the actual hierarchical structure of the model, compiling and binding component operation logic on the components, and finally generating a simulation program, wherein Unity 3D mainly comprises the steps of importing the model and the component driving library, binding components and setting component information of related game objects, and controlling the actions of the game objects by compiling component control logic, so that the automatic operation of equipment is realized, and a machine operation program is generated.
In this embodiment, the component unit includes a component parent class, a standard hardware component, an object control component, a logic state mechanism component, and a management system, where the standard hardware component includes a column of standard hardware such as an input sensor, an output sensor, an industrial camera, and a fixture, and the object control component includes a series of operation control components such as a video camera, component display, and rate control.
In this embodiment, the component parent class is used for registering components and automatically registering a general command, and includes setting parameters, acquiring parameters, setting parent-child relationships, removing parent-child relationships, setting a display state, and delaying waiting.
In this embodiment, the logic state mechanism component is used for management of logic states, including loop execution, start, pause, and one-time addition of tasks of the state machine.
In this embodiment, the management system is configured to provide registration, addition, acquisition, and manage system components.
In this embodiment, the preset model importing program is to import a wrl type model into 3D modeling rendering and manufacturing software based on a PC system.
In this embodiment, the component operation logic is to acquire a component object in a component unit by a component name by creating an action instruction, and then check whether a call event exists in a callback event check function of a component by a callback type included in a current action instruction;
when no calling function exists, no operation is executed and the current instruction is assigned with a completion state; when a calling function exists, immediately adding the calling function into the operation callback function set;
cs acquires component object functions: public static component service GetServiceByName (string name)
Cs checks callback instruction function: public pool checkTaskCommandByTaskInfo (ref TaskInfo info)
Cs creates action command function: public TaskInfo (TaskType type, object info)
Cs callback command execution function:
public delegate bool TaskCommand(ref string stateIndex, ref object data);
private void Update()
{
if ((curTask == null || curTask.taskState) && taskInfos.Count > 0)
{
curTask = taskInfos.Dequeue();
}
else if (curTask != null && !curTask.taskState)
{
TaskCommand func = DicTaskCommands[curTask.taskType];
curTask.taskState = func(ref curTask.RunStateIndex, ref curTask.taskInfo);
}
ServiceUpdate();
}。
in this embodiment, the component operation logic includes logic for detecting whether an executable task exists in the update function, and when the executable task exists, executing the loop call-back event until the assignment completion state.
In this embodiment, the component unit further includes component construction logic, and the component construction logic includes polling state calls that are automatically added to the component management set, registration of the callback event, addition of the callback management set, and instruction callback set.
In this embodiment, the simulation program unit further includes exception handling, when a program exception is caused, the log is checked through a debugging mode, if the program exception is caused in the debugging mode, the console outputs whether the log is abnormal, and when the log is abnormal, an error is eliminated according to log prompt; and if the output log is not abnormal, debugging the break point through Visual Studio to troubleshoot the problem.
The foregoing shows and describes the general principles, essential features, and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed.

Claims (10)

1. A device 3D simulation test system, comprising:
the component unit is used for classifying, logically and mechanically processing, registering, adding and acquiring components required by program operation, and managing system components;
the modeling unit is used for importing a preset model into a program, setting actual units and coordinate setting according to object parameter setting and hierarchical relation setting, and generating an equipment model;
and the simulation program unit operates the component unit and the modeling unit through programs, binds the model and the component, sets parameters, and writes and binds the component operation logic.
2. The device 3D simulation test system of claim 1, wherein: the component unit comprises a component parent class, a standard hardware component, an object control component, a logic state mechanism component and a management component.
3. The device 3D simulation test system of claim 2, wherein: the component parent class is used for registration of components and automatic registration of general commands.
4. The 3D simulation test system for the equipment according to claim 2, wherein: the logical state mechanism component is used for management of logical states.
5. The device 3D simulation test system of claim 2, wherein: the management system is used for providing registration, addition, acquisition and managing system components.
6. The device 3D simulation test system of claim 1, wherein: the preset model importing program is used for importing the wrl type model into 3D modeling rendering and manufacturing software based on a PC system.
7. The 3D simulation test system for equipment according to claim 1, wherein: the component operation logic is to acquire a component object in a component unit by a component name by creating an action instruction, and then to check whether a call event exists in a callback event check function of the component by a callback type contained in a current action instruction;
when no calling function exists, no operation is executed and the current instruction is assigned with a completion state; when a calling function exists, the calling function is immediately added to the running callback function set.
8. The device 3D simulation test system of claim 7, wherein: the component operation logic comprises a function for detecting whether an executable task exists in the update function, and when the executable task exists, the loop calling callback event is executed until the assignment completion state.
9. The device 3D simulation test system of claim 1, wherein: the component unit also comprises component construction logic, and the component construction logic comprises polling state calling which is automatically added to the component management set, the registration of the callback event, the addition of the callback management set and the instruction callback set.
10. The device 3D simulation test system of claim 1, wherein: the simulation program unit also comprises exception handling, when the program is abnormal, the log is checked through a debugging mode, if the program is abnormal in the debugging mode, the control console outputs whether the log is abnormal, and when the log is abnormal, errors are eliminated according to the prompt of the log; and if the output log is not abnormal, debugging the break point through Visual Studio to troubleshoot the problem.
CN202211381171.4A 2022-11-06 2022-11-06 Equipment 3D emulation test system Pending CN115657501A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211381171.4A CN115657501A (en) 2022-11-06 2022-11-06 Equipment 3D emulation test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211381171.4A CN115657501A (en) 2022-11-06 2022-11-06 Equipment 3D emulation test system

Publications (1)

Publication Number Publication Date
CN115657501A true CN115657501A (en) 2023-01-31

Family

ID=85016031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211381171.4A Pending CN115657501A (en) 2022-11-06 2022-11-06 Equipment 3D emulation test system

Country Status (1)

Country Link
CN (1) CN115657501A (en)

Similar Documents

Publication Publication Date Title
JP7209034B2 (en) Edge computing test method, apparatus, equipment and readable storage medium
US6668370B1 (en) Synchronous execution of object-oriented scripts and procedural code from within an interactive test facility
US7519960B2 (en) Method and system for debugging business process flow
US8776025B2 (en) Integrated debugger and code coverage tool
US20050273757A1 (en) Methods, systems, and computer program products for summarizing operational behavior of a computer program
CN112131315A (en) Database synchronization method and device under multi-task parallel development
CN107122203B (en) Configuration file setting method and device
CN113760462A (en) Method and device for constructing verification environment of dispatching automation system
US7721273B1 (en) Controller equipment model systems and methods
CN115657501A (en) Equipment 3D emulation test system
CN112541746A (en) Full-stack automatic arrangement method and system
CN112579460B (en) Multi-level debugging method based on multi-core embedded system
CN115509913A (en) Software automation test method, device, machine readable medium and equipment
CN113127162B (en) Automatic task execution method and device, electronic equipment and computer storage medium
Kasik et al. Reflections on using a UIMS for complex applications
CN112068938A (en) Method and system for realizing online function service of hybrid CPU (Central processing Unit) architecture cloud platform
Neuser A GUI for Real-time Visualization of On-line Model Checking with UPPAAL
CN117742783B (en) Cross-language automatic log data recording method for software system
CN112199259B (en) Rule engine-based fault judging and implementing method and system
Orjala Unit testing methods for Internet of Things Mbed OS operating system
Zhang et al. A Scheme and Implementation of Automatic Deployment of Multilingual Industrial Mechanism Model Based on OpenStack
GB2485204A (en) Automating testing of an application using a hook mechanism
CN117742783A (en) Cross-language automatic log data recording method for software system
JP2001256075A (en) Developing system and developing method and recording medium
CN115061900A (en) Method, system, equipment and medium for locally debugging offline package

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination