CN109948251B - CAD-based data processing method, device, equipment and storage medium - Google Patents

CAD-based data processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN109948251B
CN109948251B CN201910212165.8A CN201910212165A CN109948251B CN 109948251 B CN109948251 B CN 109948251B CN 201910212165 A CN201910212165 A CN 201910212165A CN 109948251 B CN109948251 B CN 109948251B
Authority
CN
China
Prior art keywords
data
target
variable
processed
cad
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.)
Active
Application number
CN201910212165.8A
Other languages
Chinese (zh)
Other versions
CN109948251A (en
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.)
Glory Intelligence Technology Kunshan Co Ltd
Original Assignee
Glory Intelligence Technology Kunshan 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 Glory Intelligence Technology Kunshan Co Ltd filed Critical Glory Intelligence Technology Kunshan Co Ltd
Priority to CN201910212165.8A priority Critical patent/CN109948251B/en
Publication of CN109948251A publication Critical patent/CN109948251A/en
Application granted granted Critical
Publication of CN109948251B publication Critical patent/CN109948251B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a CAD-based data processing method, a device, equipment and a storage medium, wherein the method comprises the following steps: receiving a data calling instruction for calling data of a target object in a layout created based on CAD; according to the data calling instruction, calling the data to be processed corresponding to the target object, and according to the attribute information of the data to be processed, extracting the target data from the data to be processed; and exporting the target data. According to the technical scheme, the technical problems that in the prior art, when the project is large, the workload is large, time and labor are wasted when the variable is modified manually, and labor is wasted are solved, the technical effects that in the process of making a layout diagram, data corresponding to the target attribute are stored in a data input block imported in advance, and when the data is required to be changed, the content in the data input block is only required to be modified at the corresponding position, so that the data input and the modification workload are reduced, and the processing efficiency is improved are achieved.

Description

CAD-based data processing method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of data processing, in particular to a CAD-based data processing method, device, equipment and storage medium.
Background
With the development of automatic manufacturing equipment, the process centralization is increasingly being seen by the manufacturing industry due to the advantages of shortening the processing period and the like. The common equipment track and other information needs to be written by a special programmer or generated by a third-party software such as code import, and the related information of different equipment also needs to be input into a PLC variable table by related personnel, namely, the I/O relationship between the variable and the interior of the PLC is established.
After the PLC variable table is established and online connection is established with the PLC, hardware configuration and programs can be downloaded to the PLC, and a user can conduct online debugging to search and find problems in program design. The variable table may have displayed thereon a variable of interest to the user, which may be used to monitor and modify the variable value.
In the specific use process, the user is required to input corresponding information, when the operation is wrong, the user is required to check and modify the variables, if the project is huge, when thousands of inputs and outputs exist, the workload is great, and when the variables are modified manually, the technical problems of time and labor waste are caused.
Disclosure of Invention
The embodiment of the invention provides a CAD-based data processing method, device, equipment and storage medium, which are used for realizing the technical effects of reducing the workload of data input and modification and improving the data processing efficiency.
In a first aspect, an embodiment of the present invention provides a CAD-based data processing method, including:
receiving a data calling instruction for calling data of a target object in a layout created based on CAD;
according to the data calling instruction, calling the data to be processed corresponding to the target object, and according to the attribute information of the data to be processed, extracting target data from the data to be processed;
and exporting the target data.
In a second aspect, an embodiment of the present invention further provides a CAD-based data processing apparatus, including:
the data calling module is used for receiving a data calling instruction for calling the data of the target object in the layout created based on the CAD;
the target data extraction module is used for extracting the data to be processed corresponding to the target object according to the data extraction instruction and extracting target data from the data to be processed according to the attribute information of the data to be processed;
and the data export module is used for exporting the target data.
In a third aspect, an embodiment of the present invention further provides an apparatus, including:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the CAD-based data processing method according to any of the embodiments of the invention.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to perform a CAD-based data processing method according to any of the embodiments of the present invention.
According to the technical scheme, the data to be processed corresponding to the image to be processed is called according to the data calling instruction by receiving a trigger instruction for calling the target object data in the layout created based on the CAD, and the data calling instruction for calling the target object data in the layout created based on the CAD is received; according to the technical problems that the data to be processed corresponding to the target object are called according to the data calling instruction, the target data are extracted from the data to be processed according to the attribute information of the data to be processed, and finally the target data are exported, the problems that in the prior art, corresponding numerical values are required to be manually input into a PLC variable table, if an operation error occurs, corresponding variable values are required to be checked and modified manually, when the project is large, the workload is large, time and labor are wasted when the variable is modified manually, and labor force is wasted are solved, the data corresponding to the target attribute are stored into a data input block imported in advance in the process of making a layout diagram, and when the data are required to be modified, only the content in the data input block is required to be modified at the corresponding position, so that the data input and the modified workload are reduced, and the technical effect of processing the data efficiency is improved.
Drawings
In order to more clearly illustrate the technical solution of the exemplary embodiments of the present invention, a brief description is given below of the drawings required for describing the embodiments. It is obvious that the drawings presented are only drawings of some of the embodiments of the invention to be described, and not all the drawings, and that other drawings can be made according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a CAD-based data processing method according to an embodiment of the present invention;
fig. 2 is a flowchart of a CAD-based data processing method according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a CAD-based data processing apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a schematic flow chart of a CAD-based data processing method according to an embodiment of the present invention, where the method may be performed by a CAD-based data processing device, and the device may be implemented in software and/or hardware, where variable names and variable addresses required when PLC programs are input into a data input block that is imported in advance, and the variable names and variable addresses are imported into a variable table in a programmable logic controller.
As shown in fig. 1, the method of this embodiment includes:
s110, receiving a data calling instruction for calling the data of the target object in the layout created based on the CAD.
The layout may be understood as a layout corresponding to the item may be made in CAD before the programmable logic controller is programmed. The target object may be understood as forming part of the layout, i.e. the layout may be seen as being formed of at least one sub-image, which may be selected by the user from the layout as the target object. For example, if the layout is formed by at least one nand gate and a corresponding connection line, if a user selects one nand gate, the nand gate may be targeted.
Specifically, after clicking and selecting a target object in a layout diagram established based on CAD, a user can trigger a button for data retrieval, and accordingly a data retrieval instruction corresponding to the data retrieval operation can be generated.
S120, the data to be processed corresponding to the target object is called according to the data calling instruction, and the target data is extracted from the data to be processed according to the attribute information of the data to be processed.
In the CAD operation process, there may be a corresponding data processing module, which may receive a data retrieval instruction corresponding to the trigger data retrieval operation, and may acquire data to be processed corresponding to the target object according to the data retrieval instruction.
The data to be processed may be understood as all data associated with the target object, optionally, the size of the target object, the length of the line, and so on. The target data may be understood as data screened from the data to be processed according to a preset screening condition.
It should be noted that different data may correspond to different attribute types. When a data calling instruction is received, the data information to be processed corresponding to the target object can be obtained, and the target data can be extracted according to the attribute information in the data to be processed. That is, after the data to be processed is acquired, the data corresponding to the preset attribute information may be selected from the data to be processed according to the attribute in the data to be processed, and the data acquired at this time may be used as the target data.
Optionally, displaying at least one attribute category in a preset display interface, and receiving a selection instruction of the at least one attribute category; when an operation instruction triggering data extraction is received, data corresponding to the selected attribute category is extracted from the data to be processed as target data.
It may be understood that, when the user selects the target object and triggers the operation of data extraction, the data processing module may receive the data extraction instruction and extract the data to be processed corresponding to the target object according to the data extraction instruction.
After the data to be processed is obtained, the data processing module can also receive a data screening instruction. The specific steps can be as follows: the user triggers a data screening operation, and the corresponding data processing module can receive a screening instruction corresponding to the screening operation. When the screening instruction is received, at least one attribute category can be displayed on a preset interface, optionally, at any position of the current display interface or at a preset specific position. The user can select at least one attribute category to be screened out, optionally, the target attribute, and click the determining button, which is equivalent to that the data processing module sends an attribute selecting instruction, the data processing module receives the data selecting instruction, and screens out data corresponding to the selected instruction from the data to be processed, namely, extracts the target data corresponding to the target attribute from the data to be processed.
It should be noted that a data input block may be previously introduced into the CAD.
The data input block may include a variable name and a variable address corresponding to the variable name. In the process of making the layout, a variable name and a variable address corresponding to the sub-image may be added to each sub-image constituting the layout.
Specifically, in the process of making a layout, a data adding instruction can be triggered, when the data adding instruction is received, a data input interface of a data input block which is pre-input can be popped up on a display interface, and a variable name and a variable address corresponding to a sub-image can be added on the input interface. That is, a data input block may be imported in advance in the CAD, the attribute of the block may be defined as a target attribute, and a variable name and a variable address corresponding to each image constituting the layout may be stored in the block. Accordingly, the target data may include only the variable name corresponding to each image in the composition layout, and the variable address corresponding to the variable name.
Wherein the variable names stored in the data input block and the variable addresses corresponding to the variable names are required when the programmable logic controller is programmed, so that the variable names and the variable addresses corresponding to the sub-images can be written only in the data input block imported in advance.
S130, exporting the target data.
After the target data is screened from the data to be processed according to the attribute information, the target data can also be derived from the CAD so as to be applied to programming of the programmable logic controller.
Optionally, when receiving an export instruction for exporting the target data from the CAD, exporting the target data according to a preset format.
The preset formats may be doc, txt, etc. or the same format as that applied when the programmable logic controller is programmed, and specific preset format types are not limited herein, and a user may set the export format of the target data according to actual requirements.
After the target data is exported according to the preset format, the target data can be used in the programmable logic controller. The data applied by the programmable logic controller mainly comprises variable names and variable addresses which form the layout, so that when the target data is applied to the programmable logic controller, the target data only comprises the variable names and the variable addresses which correspond to the sub-images which form the layout.
The variable name may be understood as a specific symbol, a shape, or the like, and the variable address may be understood as a number corresponding to the variable name.
Therefore, after the target data is exported, the variable names in the target data and the variable addresses corresponding to the variable names can be copied into a variable table in the programmable logic controller to be used as a programmable target variable table; and importing the programmable target variable table into the programmable logic controller so that the programmable logic controller operates according to the data in the target data table.
It should be noted that if the preset format is the same as the format required when the programmable logic controller is programmed, the derived data may be directly called into the programmable logic controller. If the preset format is different from the variable table format required by the programming of the programmable logic controller, the variable table can be derived from the programmable logic controller, the variable name in the target data and the variable address corresponding to the variable name are copied into the variable table, and the variable table obtained at the moment is used as the programmable target variable table. The programmable target variable table may be imported into the programmable logic controller to cause the programmable logic controller to operate in accordance with the data in the programmable target variable table.
According to the technical scheme, the data to be processed corresponding to the image to be processed is called according to the data calling instruction by receiving a trigger instruction for calling the target object data in the layout created based on the CAD, and the data calling instruction for calling the target object data in the layout created based on the CAD is received; according to the technical problems that the data to be processed corresponding to the target object are called according to the data calling instruction, the target data are extracted from the data to be processed according to the attribute information of the data to be processed, and finally the target data are exported, the problem that in the prior art, corresponding numerical values are required to be manually input into a variable table of a programmable logic controller, if running errors occur, corresponding variable values are required to be manually checked and modified, when the project is large, the workload is large, the variable is changed manually, time and labor are wasted, and labor are wasted is caused, is solved, the data corresponding to the target attribute are stored into a data input block imported in advance in the process of making a layout, and when the data are required to be changed, the content in the data input block is only required to be modified at the corresponding position, so that the data input and the modified workload are reduced, and the technical effect of the data processing efficiency is improved.
Example two
As a preferred embodiment of the foregoing embodiment, as shown in fig. 2, the method according to the embodiment of the present invention includes:
s201, importing the data input block into CAD in advance.
The data input block is imported into CAD in advance, and the variable names required by the variable table when the programmable logic controller is programmed and the variable addresses corresponding to the variable names can be stored in the data input block. The programmable logic controller can be programmed and operated according to variable names and variable addresses stored in the variable table.
That is, only the variable names and the variable addresses required for the variable table in the programmable logic controller may be stored in the data input block.
S202, triggering data extraction, and selecting a part needing to extract data.
Before triggering the data extraction, it should be noted that, in the process of making the layout, data may be added to each sub-image that makes up the layout. The added data can be understood as a variable name and a variable address corresponding to the sub-image are written in the data block imported in advance.
When the user selects the middle molecular image and triggers data extraction, the data to be processed corresponding to the sub-image can be extracted.
It should be noted that the data written in the data input block may be defined as a target attribute.
The data to be processed at this time not only includes the data written in the data input block which is pre-introduced, namely the target attribute data, but also includes the data of other attributes.
S203, filtering data corresponding to the target attribute in a filter.
In order to apply the data derived in the CAD to the programmable logic controller, data corresponding to the target attribute may be derived.
Specifically, when the user triggers data filtering or data filtering operation, data corresponding to the target attribute may be filtered from the data to be processed, and optionally, the filtered data only includes a variable name corresponding to each sub-image and a variable address corresponding to the variable name.
S204, judging whether the data need to be exported, if so, executing S205; if not, the process returns to S202.
After filtering the target data, an instruction whether to export the data may be popped up on the display interface, and if the user confirms that the target data is exported and triggers a button for confirming the export of the data, the target data may be exported, that is, S205 is executed; if the user clicks the no button, the target data may not be exported, and the process returns to S202.
S205, exporting the target data.
The target data may be derived in a preset format. The preset format may be the same as the format of the variable table of the programmable logic controller, or may be a format defined in CAD.
The target data includes only the variable names constituting the sub-images of the layout, and the variable addresses corresponding to the variable names.
S206, exporting a variable table of the PLC programming software, wherein the exported file has a fixed format.
If the export format of the target data is different from the format required by the programmable logic controller, the variable table in the programmable logic controller can be exported from the programmable logic controller software, and the exported format is the same as the file format required by the programmable logic controller during programming.
S207, fusing files output by CAD with files exported by a PLC variable table, and importing the fused files into the PLC variable table, so that the files can be directly used in programming.
The content in the derived target data can be copied and pasted into a variable table derived from the programmable logic controller for use in programming the programmable logic controller.
According to the technical scheme, the data to be processed corresponding to the image to be processed is called according to the data calling instruction by receiving a trigger instruction for calling the target object data in the layout created based on the CAD, and the data calling instruction for calling the target object data in the layout created based on the CAD is received; according to the technical problems that the data to be processed corresponding to the target object are called according to the data calling instruction, the target data are extracted from the data to be processed according to the attribute information of the data to be processed, and finally the target data are exported, the problem that in the prior art, corresponding numerical values are required to be manually input into a variable table of a programmable logic controller, if running errors occur, corresponding variable values are required to be manually checked and modified, when the project is large, the workload is large, the variable is changed manually, time and labor are wasted, and the labor is wasted is caused, the technical problems that in the process of making a layout diagram, the data corresponding to the target attribute are stored into a data input block imported in advance are achieved, and when the data are required to be changed, the content in the data input block is only required to be modified at the corresponding position, so that the data input and the modified workload are reduced, and the technical effect of the processing efficiency is improved.
Example III
Fig. 3 is a schematic structural diagram of a CAD-based data processing apparatus according to a third embodiment of the present invention, where the apparatus includes: the data retrieval module 310, the extraction target data module 320 and the data export module 330.
A data retrieving module 310, configured to receive a data retrieving instruction for performing data retrieving on a target object in a layout created based on CAD; an extraction target data module 320, configured to extract data to be processed corresponding to the target object according to the data extraction instruction, and extract target data from the data to be processed according to attribute information of the data to be processed; a data export module 330, configured to export the target data.
Based on the above technical solution, the extracting the target data module 320 further includes: an attribute category obtaining unit, configured to obtain at least one attribute category corresponding to attribute information of the data to be processed, where the attribute category includes a variable name and a variable address corresponding to the variable name; and determining a target data unit, wherein the target data unit is used for extracting target data from the data to be processed according to the attribute category.
On the basis of the above technical solutions, the determining the target data unit is further configured to:
displaying the at least one attribute category in a preset display interface, and receiving a selection instruction of the at least one attribute category; when an operation instruction triggering data extraction is received, extracting data corresponding to the selected attribute category from the data to be processed as target data.
On the basis of the technical schemes, the method further comprises the following steps:
and pre-writing the attribute category comprising variable names and variable addresses corresponding to the variable names into a pre-leading data input block.
On the basis of the technical schemes, the method further comprises the following steps:
and when the operation of triggering the data adding operation in the layout is detected, displaying a data input interface of the data input block which is pre-imported.
On the basis of the technical schemes, the data export module is also used for: and when receiving an export instruction for exporting the target data from the CAD, exporting the target data according to a preset format.
On the basis of the above technical solutions, the data export module is further configured to, after being configured to export the target data according to a preset format:
copying a variable name in the target data and a variable address corresponding to the variable name into a programmable logic controller variable to serve as a programmable target variable table; and importing the programmable target variable table into a programmable logic controller so that the programmable logic controller operates according to the data in the target data table.
According to the technical scheme, the data to be processed corresponding to the image to be processed is called according to the data calling instruction by receiving a trigger instruction for calling the target object data in the layout created based on the CAD, and the data calling instruction for calling the target object data in the layout created based on the CAD is received; according to the technical problems that the data to be processed corresponding to the target object are called according to the data calling instruction, the target data are extracted from the data to be processed according to the attribute information of the data to be processed, and finally the target data are exported, the problem that in the prior art, corresponding numerical values are required to be manually input into a variable table of a programmable logic controller, if running errors occur, corresponding variable values are required to be manually checked and modified, when the project is large, the workload is large, the variable is changed manually, time and labor are wasted, and the labor is wasted is caused, the technical problems that in the process of making a layout diagram, the data corresponding to the target attribute are stored into a data input block imported in advance are achieved, and when the data are required to be changed, the content in the data input block is only required to be modified at the corresponding position, so that the data input and the modified workload are reduced, and the technical effect of the processing efficiency is improved.
The CAD-based data processing device provided by the embodiment of the invention can execute the CAD-based data processing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that each unit and module included in the above apparatus are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the embodiments of the present invention.
Example IV
Fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention. Fig. 4 shows a block diagram of an exemplary device 40 suitable for use in implementing the embodiments of the present invention. The device 40 shown in fig. 4 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 4, device 40 is in the form of a general purpose computing device. Components of device 40 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, a bus 403 that connects the various system components (including the system memory 402 and the processing units 401).
Bus 403 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 40 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by device 40 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 404 and/or cache memory 405. Device 40 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in fig. 4, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 403 through one or more data medium interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 408 having a set (at least one) of program modules 407 may be stored in, for example, memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
The device 40 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), one or more devices that enable a user to interact with the device 40, and/or any devices (e.g., network card, modem, etc.) that enable the device 40 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 411. Also, device 40 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, via network adapter 412. As shown, network adapter 412 communicates with other modules of device 40 over bus 403. It should be appreciated that although not shown in fig. 4, other hardware and/or software modules may be used in connection with device 40, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 401 executes various functional applications and data processing by running a program stored in the system memory 402, for example, implements the CAD-based data processing method provided by the embodiment of the present invention.
Example five
A fifth embodiment of the present invention also provides a storage medium containing computer-executable instructions for performing a CAD-based data processing method when executed by a computer processor.
The method comprises the following steps:
receiving a trigger instruction for calling target object data in a layout diagram created based on CAD, and calling the data to be processed corresponding to the image to be processed according to the data calling instruction; receiving a data calling instruction for calling data of a target object in a layout created based on CAD; according to the data calling instruction, calling the data to be processed corresponding to the target object, and according to the attribute information of the data to be processed, extracting target data from the data to be processed; and exporting the target data.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (7)

1. A CAD-based data processing method, comprising:
a data input block is imported into the CAD in advance, and a data calling instruction for calling data of a target object in a layout created based on the CAD is received; the data input block comprises variable names and variable addresses corresponding to the variable names;
according to the data calling instruction, calling the data to be processed corresponding to the target object, and according to the attribute information of the data to be processed, extracting target data from the data to be processed; the data to be processed are all data associated with the target object;
when receiving an export instruction for exporting the target data from the CAD, exporting the target data according to a preset format;
copying the variable names in the target data and the variable addresses corresponding to the variable names into a PLC variable table to be used as a programmable target variable table;
importing the programmable target variable table into a programmable logic controller so that the programmable logic controller operates according to the data in the programmable target variable table;
the extracting the target data from the data to be processed according to the attribute information of the data to be processed includes:
acquiring at least one attribute category corresponding to attribute information of the data to be processed, wherein the attribute category comprises a variable name and a variable address corresponding to the variable name;
and extracting target data from the data to be processed according to the attribute category.
2. The method according to claim 1, wherein extracting target data from the data to be processed according to the attribute category comprises:
displaying the at least one attribute category in a preset display interface, and receiving a selection instruction of the at least one attribute category;
when an operation instruction triggering data extraction is received, extracting data corresponding to the selected attribute category from the data to be processed as target data.
3. The method as recited in claim 2, further comprising:
and pre-writing the attribute category comprising variable names and variable addresses corresponding to the variable names into a pre-leading data input block.
4. A method according to claim 3, further comprising:
and when the operation of triggering the data adding operation in the layout is detected, displaying a data input interface of the data input block which is pre-imported.
5. A CAD-based data processing apparatus, comprising:
the data calling module is used for importing a data input block into the CAD in advance and receiving a data calling instruction for calling the data of the target object in the layout created based on the CAD; the data input block comprises variable names and variable addresses corresponding to the variable names;
the target data extraction module is used for extracting the data to be processed corresponding to the target object according to the data extraction instruction and extracting target data from the data to be processed according to the attribute information of the data to be processed; the data to be processed are all data associated with the target object;
the data export module is used for exporting the target data according to a preset format when receiving an export instruction for exporting the target data from the CAD;
copying the variable names in the target data and the variable addresses corresponding to the variable names into a PLC variable table to be used as a programmable target variable table;
importing the programmable target variable table into a programmable logic controller so that the programmable logic controller operates according to the data in the programmable target variable table;
the extraction target data module further includes: an attribute category obtaining unit, configured to obtain at least one attribute category corresponding to attribute information of the data to be processed, where the attribute category includes a variable name and a variable address corresponding to the variable name; and determining a target data unit, wherein the target data unit is used for extracting target data from the data to be processed according to the attribute category.
6. An apparatus, the apparatus comprising:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the CAD-based data processing method of any one of claims 1-4.
7. A storage medium containing computer executable instructions for performing the CAD-based data processing method of any one of claims 1-4 when executed by a computer processor.
CN201910212165.8A 2019-03-20 2019-03-20 CAD-based data processing method, device, equipment and storage medium Active CN109948251B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910212165.8A CN109948251B (en) 2019-03-20 2019-03-20 CAD-based data processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910212165.8A CN109948251B (en) 2019-03-20 2019-03-20 CAD-based data processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109948251A CN109948251A (en) 2019-06-28
CN109948251B true CN109948251B (en) 2023-12-19

Family

ID=67011082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910212165.8A Active CN109948251B (en) 2019-03-20 2019-03-20 CAD-based data processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109948251B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113764110A (en) * 2021-01-29 2021-12-07 北京京东拓先科技有限公司 Data processing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001075614A (en) * 1999-08-31 2001-03-23 Digital Electronics Corp Editor device and recording medium recording editor program
JP2001184198A (en) * 1999-12-27 2001-07-06 Digital Electronics Corp Retrieval system and computer readable recording medium storing retrieval program
EP1638028A2 (en) * 2004-08-24 2006-03-22 Siemens Aktiengesellschaft Computer aided generation and change management for user interfaces
EP2110762A1 (en) * 2008-04-18 2009-10-21 Siemens Aktiengesellschaft Digital plant structure method and system thereof
WO2018232234A1 (en) * 2017-06-15 2018-12-20 Trounson James Edmund Iii Integrated cad/cam/cnc software machine tool and machine tool therewith

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8135567B2 (en) * 2000-09-29 2012-03-13 Ford Global Technologies, Llc Method of emulating machine tool behavior for programmable logic controller logical verification system
US9110653B2 (en) * 2011-08-26 2015-08-18 Siemens Product Lifecycle Management Software Inc. Generating PLC code from CAD models
DE102012207916B3 (en) * 2012-05-11 2013-09-19 Artis Gmbh Method and device for the automated configuration of a monitoring function of a machine tool
US10360316B2 (en) * 2012-12-21 2019-07-23 Rockwell Automation Technologies, Inc. Integration of simulation of a machine for industrial automation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001075614A (en) * 1999-08-31 2001-03-23 Digital Electronics Corp Editor device and recording medium recording editor program
JP2001184198A (en) * 1999-12-27 2001-07-06 Digital Electronics Corp Retrieval system and computer readable recording medium storing retrieval program
EP1638028A2 (en) * 2004-08-24 2006-03-22 Siemens Aktiengesellschaft Computer aided generation and change management for user interfaces
EP2110762A1 (en) * 2008-04-18 2009-10-21 Siemens Aktiengesellschaft Digital plant structure method and system thereof
WO2018232234A1 (en) * 2017-06-15 2018-12-20 Trounson James Edmund Iii Integrated cad/cam/cnc software machine tool and machine tool therewith

Also Published As

Publication number Publication date
CN109948251A (en) 2019-06-28

Similar Documents

Publication Publication Date Title
US10176239B2 (en) Automation-assisted curation of technical support information
US10120654B2 (en) Domain specific language design
EP2677451B1 (en) License verification method and apparatus, and computer readable storage medium storing program therefor
CN110955428A (en) Page display method and device, electronic equipment and medium
CN106844181B (en) Method, system and mobile terminal for recording user behavior
US20150242380A1 (en) Checking testing coverage
WO2017020459A1 (en) Method and apparatus for configuring plugin package for host
CN112748923A (en) Method and device for creating visual billboard, electronic equipment and storage medium
US20130042200A1 (en) System and method for annotating graphical user interface
CN111782651A (en) Visual editing method, device and equipment for data association relation and storage medium
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
CN114003269A (en) Component processing method and device, electronic equipment and storage medium
CN109948251B (en) CAD-based data processing method, device, equipment and storage medium
CN114048415A (en) Form generation method and device, electronic equipment and computer readable storage medium
CN109684207B (en) Method and device for packaging operation sequence, electronic equipment and storage medium
CN114077430A (en) Interface generation method and device, electronic equipment and storage medium
CN114356290A (en) Data processing method and device and computer readable storage medium
CN113961835A (en) Data processing method and device, electronic equipment and storage medium
CN113760317A (en) Page display method, device, equipment and storage medium
CN112181429A (en) Information processing method and device and electronic equipment
CN111273913A (en) Method and device for outputting application program interface data represented by specifications
CN114911534B (en) Page information extraction method, setting method, device, electronic equipment and medium
CN113179183B (en) Service switch state control device and method
CN115421785B (en) Method, device and medium for transplanting application program
CN107609008A (en) A kind of data importing device and method from relevant database to Kafka based on Apache Sqoop

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
GR01 Patent grant
GR01 Patent grant