Backup Systems and Devices
The backup system uses visual programming to convert control program module IDs and parameters into two-dimensional codes, addressing inefficiencies in conventional methods by reducing data volume and preventing information leakage.
Patent Information
- Application Number
- JP2021094949
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-06-07
- Publication Date
- 2024-11-13
- Estimated Expiration
- 2041-06-07
AI Technical Summary
Conventional data backup methods using two-dimensional barcodes require excessive paper due to the capacity limitations of these codes, making it inefficient to back up control programs and associated data.
A backup system that utilizes a visual programming language to convert control program module IDs and parameters into two-dimensional codes, reducing data volume by encoding module IDs and parameters as text data, which can then be efficiently backed up and decoded.
The system efficiently reduces the data volume of control programs by converting them into two-dimensional codes, minimizing the need for physical media and preventing information leakage during backup processes.
Smart Images

Figure 0007582080000001 
Figure 0007582080000002 
Figure 0007582080000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a backup system and device. [Background technology]
[0002] There is known a device that can back up data without using an external memory to prevent information leakage (for example, Patent Document 1). This device backs up data by converting confidential information data stored in the device into a two-dimensional barcode or the like and printing the converted two-dimensional code on paper. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2006-101456 A Summary of the Invention [Problem to be solved by the invention]
[0004] The data to be backed up may include data indicating the operating environment of the device, such as a control program for controlling the operation of the device and various parameters. Since there is a limit to the capacity of a two-dimensional code, a large amount of paper may be required to back up a control program in the conventional technology. Therefore, a technology for efficiently backing up data while suppressing the amount of data to be backed up has been desired. [Means for solving the problem]
[0005] The present disclosure can be realized in the following forms.
[0006] (1) According to one embodiment of the present disclosure, a backup system is provided, comprising: an apparatus used in manufacturing, the apparatus having a control program for controlling the operation of the apparatus, the control program being written in a visual programming language capable of outputting program codes and parameters of the control program as image objects, a storage unit for storing correspondence information representing a correspondence relationship between a group of the program codes and unique module IDs corresponding to the program codes, an encoding unit for converting the module IDs and the parameters corresponding to the program codes associated with the image objects representing the control programs into two-dimensional codes, and an output unit for outputting the converted two-dimensional codes, and a terminal device having a two-dimensional code acquisition unit for acquiring the output two-dimensional codes by image recognition. According to this form of backup system, by backing up module IDs and parameters associated with the program code of the control program written in a visual programming language, the amount of data of the converted text data can be made smaller than the amount of data of the control program written in a programming language. Therefore, the program code and parameters of the control program can be converted into a two-dimensional code with a limited amount of data, and can be efficiently backed up. (2) In the backup system of the above aspect, the encoding unit may extract the module ID and the parameters corresponding to the program code associated with the image object as text data, and convert the extracted text data into the two-dimensional code. According to the backup system of this form, the program code and parameters of the control program can be converted into a two-dimensional code by a simple method using text data. (3) In the backup system of the above aspect, the terminal device may further include a decoding unit that uses the acquired two-dimensional code to decode the program code and the parameters. According to this form of backup system, the program code and parameters of the control program can be decoded into the terminal device, and the control program can be edited on the terminal device. (4) According to another aspect of the present disclosure, there is provided an apparatus for use in manufacturing, the apparatus including: a storage unit for storing a control program for controlling an operation of the apparatus, the control program being written in a visual programming language capable of outputting program codes and parameters of the control program as image objects, correspondence information representing a correspondence relationship between a group of the program codes and unique module IDs corresponding to the program codes, an encoding unit for converting the module IDs and the parameters corresponding to the image objects representing the control program into two-dimensional codes, and an output unit for outputting the converted two-dimensional codes. According to this embodiment, by backing up the module IDs and parameters associated with the program code of the control program written in a visual programming language, the data volume of the converted text data can be made smaller than the data volume of the control program written in a programming language. Therefore, the program code and parameters of the control program can be converted into a two-dimensional code with a limited data volume, and can be efficiently backed up. (5) In the device of the above aspect, the encoding unit may extract the module ID and the parameters corresponding to the program code associated with the image object as text data, and convert the extracted text data into the two-dimensional code. According to the device of this embodiment, the program code and parameters of the control program can be converted into a two-dimensional code by a simple method using text data. (6) The device of the above embodiment may further include a two-dimensional code acquisition unit that acquires the output two-dimensional code by image recognition, and a decoding unit that decodes the program code and the parameters using the acquired two-dimensional code. According to the device of this embodiment, it is possible to decrypt the data backed up using the two-dimensional code. The present disclosure can also be realized in various forms other than a backup system or device, for example, a backup method, a terminal device, a control method for a backup system, a control method for a manufacturing device, a control method for a terminal device, a computer program for realizing these control methods, a non-transitory recording medium on which the computer program is recorded, etc. [Brief description of the drawings]
[0007] [Figure 1] FIG. 1 is a block diagram showing the functional configuration of a backup system according to a first embodiment. [Diagram 2] FIG. 2 is a block diagram showing the internal functional configuration of the terminal device. [Diagram 3] FIG. 4 is a flow diagram showing a backup method according to the present embodiment. [Figure 4] FIG. 11 is a flow diagram showing a method for decrypting backup data. [Diagram 5] FIG. 4 is a first explanatory diagram showing an example of how a driving unit of a manufacturing apparatus operates; [Figure 6] FIG. 13 is a second explanatory diagram showing an example of how the driving unit of the manufacturing apparatus operates. [Figure 7] FIG. 2 is an explanatory diagram showing an image object output by a visual programming language. [Figure 8] FIG. 1 is a first explanatory diagram showing an example of an image object in a visual programming language. [Figure 9] FIG. 4 is a second explanatory diagram showing an example of an image object in a visual programming language. [Figure 10] FIG. 11 is a third explanatory diagram showing an example of an image object in a visual programming language. [Figure 11]FIG. 4 is a fourth explanatory diagram showing an example of an image object in a visual programming language. [Figure 12] FIG. 5 is a fifth explanatory diagram showing an example of an image object in a visual programming language. [Figure 13] FIG. 6 is a sixth explanatory diagram showing an example of an image object in a visual programming language. [Figure 14] FIG. 4 is an explanatory diagram showing text data from which modules and parameters are extracted. [Figure 15] FIG. 4 is an explanatory diagram showing a module ID correspondence table. [Figure 16] FIG. 1 is an explanatory diagram showing an example of a two-dimensional code. [Figure 17] FIG. 11 is an explanatory diagram showing a backup system according to a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] A. First embodiment: The configuration of a backup system 300 according to a first embodiment of the present disclosure will be described with reference to Fig. 1 and Fig. 2. Fig. 1 is a block diagram showing a functional configuration of the backup system 300 according to the first embodiment of the present disclosure. The backup system 300 includes a manufacturing apparatus 100 and a terminal apparatus 200. The backup system 300 is used to back up data related to the operating environment of the apparatus, including various parameters included in the control program of the manufacturing apparatus 100.
[0009] The manufacturing apparatus 100 is, for example, a conveying device for conveying a product. Specifically, the manufacturing apparatus 100 is a roller conveyor that places an object to be conveyed on a plurality of rollers and moves it. The manufacturing apparatus 100 includes a control device 80, a drive unit 90, and a sensor 96. The manufacturing apparatus 100 may be various devices used in the manufacture of products, such as a conveying device, a processing machine, a welding machine, a molding machine, a coating machine, or a surface treatment machine. In the present disclosure, the term "apparatus" also includes equipment that is intended to be used in manufacturing, such as water supply and drainage equipment, electrical equipment, heat source equipment, communication equipment, and conveying equipment.
[0010] The operation of the driving unit 90 is controlled under the control of the control device 80. In this embodiment, the driving unit 90 is, for example, an electric cylinder for moving the transported object on the roller to a predetermined position. The sensor 96 is, for example, a photoelectric sensor for detecting the arrival or passage of a product. The sensor 96 may be various sensors such as an optical sensor, a sound sensor, a heat sensor, a current sensor, a voltage sensor, a distance sensor, an air pressure sensor, an acceleration sensor, a rotation speed sensor, a humidity sensor, a pressure sensor, and a magnetic sensor. The sensor 96 may be a camera, and in this case, for example, by image recognition of a figure displayed on the product, it is possible to detect the arrival and passage of the product and also obtain various information related to the product, such as the type of product, the serial number, and the destination of the product associated with the figure. The detection result by the sensor 96 is output to the control device 80.
[0011] The control device 80 controls the operation of each part of the manufacturing apparatus 100. The control device 80 includes a central processing unit (CPU) 60, a memory unit 70, a receiving unit 30, a two-dimensional code acquisition unit 40, and an output unit 50. The CPU 60, the memory unit 70, the receiving unit 30, the two-dimensional code acquisition unit 40, and the output unit 50 are connected to each other via a bus 82 and are capable of bidirectional communication.
[0012] The CPU 60 functions as a control unit 61, an encoding unit 62, and a decoding unit 66 by executing various programs stored in a storage unit 70. The storage unit 70 is, for example, a RAM, a ROM, a hard disk drive (HDD), etc. Various programs for realizing the functions provided in this embodiment are stored in the HDD or ROM, and the various programs read from the HDD are expanded on the RAM and executed by the CPU 60.
[0013] The storage unit 70 stores a control program 72 for controlling the operation of each unit of the manufacturing apparatus 100, such as the drive unit 90, and a module ID correspondence table 74. In this embodiment, the control program 72 is written in a visual programming language capable of outputting a program code 722 and a parameter 724 as an image object. The program code 722 is written in a so-called text language, such as python, Java, PHP, JavaScript, etc. As described later, a unique module ID is associated with each module in the program code 722. As the visual programming language, for example, Blockly, SCRATCH, MakeCode, MESH, etc. can be used. In this embodiment, the modules and parameters of the control program 72 can be edited using the image object, and the operating environment of the manufacturing apparatus 100 can be edited. The edited setting data of the operating environment of the manufacturing apparatus 100, etc. is stored in the storage unit 70. As the visual programming language, various visual programming languages may be used regardless of the type, such as a so-called block type or flow type. The module ID correspondence table 74 is an example of correspondence information indicating the correspondence between a group of program codes 722 and unique module IDs corresponding to the program codes 722 .
[0014] The control unit 61 controls the operation of the drive unit 90 based on the control program 72. The encoding unit 62 converts a module ID and parameters 724 corresponding to an image object representing the control program 72 into a two-dimensional code CD1. In this embodiment, the encoding unit 62 extracts the module ID and parameters 724 associated with the image object as text data, and converts the extracted text data into the two-dimensional code CD1. The encoding unit 62 may omit the extraction of the text data and convert the module ID and parameters 724 into a two-dimensional code. The decoding unit 66 decodes the program code 722 and the parameters 724 using the two-dimensional code.
[0015] The receiving unit 30 receives the detection result by the sensor 96 via wireless communication or wired communication. The two-dimensional code acquiring unit 40 is a camera for image recognition of the two-dimensional code. The output unit 50 outputs the two-dimensional code CD1 generated by the encoding unit 62. In this embodiment, the output unit 50 is a display provided in the manufacturing apparatus 100. The output unit 50 displays an image of the two-dimensional code CD1 on the display as a method of outputting the two-dimensional code. The method of outputting the two-dimensional code is not limited to image display, and may be printing on a recording medium such as paper or cloth. From the viewpoint of preventing information leakage, it is preferable that the output unit 50 does not use wireless communication or wired communication.
[0016] 2 is a block diagram showing an internal functional configuration of the terminal device 200. The terminal device 200 is, for example, a portable information device such as a tablet, a smartphone, or a notebook computer. The terminal device 200 does not need to be connected to a network, regardless of whether it has a communication function with other devices. The terminal device 200 may include portable devices such as a digital camera and a portable game machine, provided that the functions of the present disclosure can be realized.
[0017] The terminal device 200 includes a two-dimensional code acquisition unit 240, an output unit 250, a central processing unit (CPU) 260, and a storage unit 270. The two-dimensional code acquisition unit 240, the output unit 250, the CPU 260, and the storage unit 270 are connected to one another via a bus 210, and are capable of bidirectional communication. The storage unit 270 is, for example, a RAM, a ROM, or a hard disk drive (HDD). Various programs for implementing the functions provided in this embodiment are stored in the HDD or ROM, and the various programs read from the HDD are expanded on the RAM and executed by the CPU 260. The storage unit 270 stores the two-dimensional code CD1 acquired by the two-dimensional code acquisition unit 240.
[0018] The two-dimensional code acquisition unit 240 is a camera that performs image recognition of the two-dimensional code CD1, and acquires the two-dimensional code CD1 as image data. The output unit 250 outputs the two-dimensional code CD1 stored in the storage unit 270. In this embodiment, the output unit 250 is a display provided in the terminal device 200. As an output method of the two-dimensional code CD1, the output unit 250 displays the two-dimensional code CD1 on the display of the terminal device 200. The method of outputting the two-dimensional code CD1 by the output unit 250 is not limited to displaying it on a display, and it may be printed on a recording medium.
[0019] 3 is a flow diagram showing the backup method of this embodiment. This flow starts, for example, when the manufacturing apparatus 100 receives an operation by a user instructing the start of a backup. The instruction to start a backup may be output from either the manufacturing apparatus 100 or the terminal apparatus 200. In step S10, the encoding unit 62 extracts, as text data, the module ID associated with the program code 722 of the control program 72 and the parameter 724 according to the module ID correspondence table 74.
[0020] In step S20, the encoding unit 62 converts the extracted text data into a two-dimensional code CD1. In step S30, the converted two-dimensional code CD1 is output by the output unit 50. In this embodiment, the two-dimensional code CD1 is output by being displayed on a display serving as the output unit 50. In step S40, the two-dimensional code CD1 displayed on the output unit 50 is acquired as image data by the two-dimensional code acquisition unit 240 of the terminal device 200 into the terminal device 200. The acquired two-dimensional code CD1 is stored in the memory unit 270 of the terminal device 200. With the above, the backup of the program code 722 and the parameters 724 of the control program 72 is completed.
[0021] 4 is a flow diagram showing a method for decrypting backup data. This flow starts, for example, when the terminal device 200 receives an instruction from a user to start decrypting the backup data. The instruction to start decrypting the backup data may be output from either the manufacturing apparatus 100 or the terminal device 200. In step S110, the two-dimensional code CD1 stored in the memory unit 270 of the terminal device 200 is output to the display of the terminal device 200 as the output unit 250.
[0022] In step S120, the manufacturing apparatus 100 reads an image of the two-dimensional code CD1 displayed on the output unit 250. For example, the manufacturing apparatus 100 can acquire the two-dimensional code CD1 by capturing an image of the terminal device 200 with the two-dimensional code CD1 displayed on the display by the two-dimensional code acquisition unit 40 of the manufacturing apparatus 100. The acquired two-dimensional code CD1 is temporarily stored in the storage unit 70.
[0023] In step S130, the decoding unit 66 analyzes the two-dimensional code CD1 temporarily stored in the storage unit 70 and decodes it into text data. The text data does not need to match the text data converted by the encoding unit 62 in step S20. In step S140, the decoding unit 66 analyzes the converted text data, for example, by using the module ID correspondence table 74, and decodes the program code 722 and parameters 724 of the control program 72. This completes the decoding of the backup data.
[0024] The manufacturing apparatus 100 will be described in detail with reference to Fig. 5 and Fig. 6. Fig. 5 is a first explanatory diagram showing an example of how the driving unit 90 of the manufacturing apparatus 100 operates. Fig. 6 is a second explanatory diagram showing an example of how the driving unit 90 of the manufacturing apparatus 100 operates.
[0025] 5 and 6 show an example of the manufacturing apparatus 100, and show a drive unit 90 of the manufacturing apparatus 100, a sensor 96 as a photoelectric sensor, and a control device 80. The drive unit 90 is, for example, an electric cylinder, and a conveying unit 92 for conveying the product WK reciprocates along the conveying direction D1 by rotating a ball screw 94 by a motor (not shown). The position of the conveying unit 92 shown in FIG. 5 is the most upstream side in the conveying direction D1, and the position of the conveying unit 92 shown in FIG. 6 is the most downstream side in the conveying direction D1. The position of the conveying unit 92 shown in FIG. 5 is also called the "rear end", and the position of the conveying unit 92 shown in FIG. 6 is also called the "forward end".
[0026] In the examples of FIG. 5 and FIG. 6, the product WK is conveyed on the conveyor 130 along the conveying direction D1. As shown in FIG. 5, the manufacturing apparatus 100 waits in an initial state with the conveying unit 92 disposed at the rear end. When the product WK is input from the previous process PS0 to the process PS1, the manufacturing apparatus 100 detects the product WK by the sensor 96. When the product WK is detected, the manufacturing apparatus 100 drives the drive unit 90 to move the conveying unit 92 to the forward end along the direction D2 toward the downstream side. As a result, the product WK is conveyed to the subsequent process PS2. As shown in FIG. 6, the conveying unit 92 that has moved to the forward end is moved to the rear end along the direction D3 toward the upstream side of the conveying direction D1 by the control of the drive unit 90, and returns to the initial state again.
[0027] The visual programming language will be described in detail with reference to Fig. 7 as well as Fig. 8 to Fig. 13 as appropriate. Fig. 7 is an explanatory diagram showing image objects output by the visual programming language. As shown in Fig. 7, the control program 72 is output by the visual programming language as a visible block-shaped image object. The user can edit the parameters of the control program 72 by editing this block-shaped image object.
[0028] 7, execution commands by program code 722 are written in each block-like image object. The execution commands by program code 722 are written in association with each type of image object. The control program 72 can be edited by connecting these image objects according to predetermined rules. As shown in FIG. 7, there are multiple types of image objects corresponding to each program code 722, and a different module ID is assigned to each type of image object.
[0029] The types of image objects will be described with reference to Figs. 8 to 13. Fig. 8 is a first explanatory diagram showing an example of an image object in a visual programming language. The image object M1 shown in Fig. 8 has a program code written therein that executes a so-called loop. For example, when the condition of the image object connected to the connection part E11 is satisfied, the content of the image object connected to the connection part E12 is repeatedly executed. For example, the image object M2 shown in Fig. 7 can be executed to exit the loop. Fig. 7 shows an image object M1a as an example of the image object M1.
[0030] Fig. 9 is a second explanatory diagram showing an example of an image object in a visual programming language. In the image object M3 shown in Fig. 9, a program code is written in which the content of the image object linked to the linking part E32 is executed when the condition of the image object linked to the linking part E31 is satisfied. Fig. 7 shows image objects M3a to M3c as examples of the image object M3.
[0031] Fig. 10 is a third explanatory diagram showing an example of an image object in a visual programming language. In the image object M4 shown in Fig. 10, a program code is written to execute the contents of the image object connected to the connection part E42 when the condition of the image object connected to the connection part E41 is satisfied. In the image object M4 shown in Fig. 10, a program code is written to execute the contents of the image object connected to the connection part E43 when the condition of the image object connected to the connection part E41 is not satisfied. Fig. 7 shows an image object M4a as an example of the image object M4.
[0032] FIG. 11 is a fourth explanatory diagram showing an example of an image object of a visual programming language. The image object M6 shown in FIG. 11 is an image object used for setting a condition. The image object M6 has a fitting portion E61 for fitting an image object P1 for setting a parameter, and a fitting portion E62 for fitting an image object P2 for setting a parameter. In this embodiment, the image object P1 can select predetermined parameters such as start, sensor, forward command, forward end, reverse command, reverse end, carry-out completed, abnormal, and entry possible. The image object P2 can select predetermined parameters such as true and false. The image object M6 has a drop-down list P3 for setting parameters. The drop-down list P3 includes parameters for comparing the fitting portion E61 and the fitting portion E62. In the drop-down list P3, parameters such as =, ≠, <, ≦, >, and ≧ can be set. FIG. 7 shows image objects M6a to M6d as examples of the image object M6.
[0033] Fig. 12 is a fifth explanatory diagram showing an example of an image object of a visual programming language. The image object M7 shown in Fig. 12 is an image object for setting a condition, and has a fitting portion E71 for fitting a block-shaped image object P1, a fitting portion E72 for fitting a block-shaped image object P2, and a drop-down list P4. The contents of the drop-down list are different from those of the image object M6 shown in Fig. 11. In the drop-down list P4, parameters such as "and" and "or" can be set. Fig. 7 shows an image object M7a as an example of the image object M7.
[0034] Fig. 13 is a sixth explanatory diagram showing an example of an image object of a visual programming language. The image object M5 shown in Fig. 13 is an image object for which execution contents can be set, and has a fitting portion E51 for fitting block-shaped image objects P1 and P2, and a drop-down list P5. In the drop-down list P5, for example, parameters of the same contents as those of the image object P1 can be set. Fig. 7 shows image objects M5a, M5b, and M5c as examples of the image object M5.
[0035] From the above, it can be understood that the visual programming language shown in FIG. 7 executes the following controls to realize the operation of manufacturing apparatus 100 described with reference to FIGS. (1) According to image object M1, while the condition of image object M6a is satisfied, specifically, while the manufacturing apparatus 100 is started (startup = true), the contents of image object M4a are repeatedly executed until the loop is broken by execution of image object M2. (2) According to the image object M4a, if the condition of the image object M6b is satisfied, the image object M2 causes the loop of the image object M1 to be exited. If the condition of the image object M6b is not satisfied, the contents of the image objects M3a to M3c are executed in order. Specifically, if an abnormality has occurred in the manufacturing apparatus 100 (abnormality=true), the image object M2 causes the loop to be exited and the processing of the image object M4a is terminated. If no abnormality has occurred in the manufacturing apparatus 100, the contents of the image objects M3a to M3c are executed in order. (3) According to the image object M3a, if the transportation of the product WK is not completed (transport completed=false) and the sensor 96 detects the product WK (sensor=true), the transport unit 92 is moved forward (forward command=true). According to the image object M3b, if the transport unit 92 is located at the forward end (forward end=true), the forward movement of the transport unit 92 is stopped (forward command=false) and the transport unit 92 is moved backward (reverse command=true). According to the image object M3c, if the transport unit 92 is located at the reverse end (reverse end=true) and the sensor 96 has not detected the product WK (sensor=false), the reverse movement of the transport unit 92 is stopped (reverse command=false) and the acceptance of a new product WK from the previous process PS0 is permitted (entry permitted=true).
[0036] A method for backing up module IDs and parameters corresponding to program codes will be described in detail with reference to Figures 14 to 16. Figure 14 is an explanatory diagram showing text data from which module IDs and parameters 724 have been extracted. The text data shown in Figure 14 is text data extracted by the encoding unit 62 from the control program 72 shown in Figure 7. The encoding unit 62 extracts the control program 72 written in a visual programming language as the text data shown in Figure 14 in accordance with a preset rule, for example, by using a module ID correspondence table 74.
[0037] FIG. 15 is an explanatory diagram showing a module ID correspondence table 74. The module ID correspondence table 74 shows the correspondence between a group of program codes 722 and a unique module ID corresponding to each program code 722. In FIG. 15, in order to facilitate understanding of the technology, the program codes 722 are shown by the type of image object corresponding to the program codes 722. For example, a module ID is assigned to each of the image objects M1 to M7 shown in FIG. 7 to FIG. 13. The module ID is extracted as text data using three half-width capital alphabet characters conforming to ASCII or the like. FIG. 15 shows an example in which half-width capital alphabet characters "AAA" to "GGG" are assigned to the image objects M1 to M7 as module IDs.
[0038] As shown in FIG. 15, the parameters are assigned unique text data corresponding to the screen display of the image object. The parameters are extracted as text data using half-width / lowercase alphabets conforming to ASCII or the like, numbers, and some symbols such as "_ (Low Line)", "- (Hyphen-Minus)", and "' (Apostrophe)". In this embodiment, "' (Grave Accent)" is not used. The rules for characters and the like used in the text data when extracting the module ID and parameters are not limited to the above examples, and may be set using various letters, numbers, and symbols, or may be set in any combination.
[0039] As shown in Fig. 14, the codes M1, M6a, M4a, M6b, M5b, M5c, and M2 attached to the text data correspond to the codes M1, M6a, M4a, M6b, M5b, M5c, and M2 attached to the image objects shown in Fig. 7. As shown in Fig. 14, in extracting the text data by the encoding unit 62, the linking relationship of the image objects, that is, the execution order of the program code 722, is converted according to a preset rule, for example, as shown below. (1) One image object is formed from text corresponding to the module ID corresponding to the program code 722 to text corresponding to the same module ID written next. For example, in the image object M6a, as shown by arrow C1, the text "FFF" of the module ID corresponding to the image object M6 to the next text "FFF" as shown by arrow C2 is text data corresponding to one image object M6a and the parameters contained therein. Note that the text "'" shown by arrow C4 indicates departure from the module. (2) The text data written between the texts of the module IDs indicates the contents of the parameters. For example, in the image object M6a, the text "sen1-f1-e0" included between the text "FFF" indicated by the arrow C1 and the next text "FFF" indicated by the arrow C2 describes the parameters included in the image object M6a. (3) When there are multiple parameters between module IDs, they are described using the text "-" indicated by the arrow C3. For example, the image object M6a describes that it contains three parameters, "sen1", "f1", and "e0", linked to each other using the text "-", in succession. (4) The text "_" is used to link each module ID. In the first example, the text "_" is omitted to indicate that the image object M6 is linked to an adjacent layer. For example, as shown in Fig. 7, the text "AAA" and the text "FFF" are written consecutively without using the text "_", which indicates that the image object M6 is linked to the linking part E11 of the image object M1, that is, to the layer adjacent to the image object M1. In the second example, two consecutive texts "_" indicate that a module is linked to the next layer. For example, as shown in Fig. 7, the linking of an image object M4a to the next layer of the image object M1 after the image object M6a linked to the image object M1 is formed by writing two texts "_" indicated by an arrow C5 after the text "FFF'" indicated by arrows C2 and C4, and further by writing the text "DDD" corresponding to the image object M4. As a third example, by describing one text "_", it is shown that different modules are linked at the same level. For example, as shown in Fig. 7, the linking of image objects M5b and M5c at the same level at linking part E32 of image object M3c is formed by linking text "EEE'" corresponding to the departure of image object M5b and text "EEE" corresponding to image object M5c using one text "_" as shown by arrow C6 in Fig. 14.
[0040] Fig. 16 is an explanatory diagram showing an example of a two-dimensional code. Fig. 16 shows a two-dimensional code CD1 converted from the text data shown in Fig. 15. As the two-dimensional code, various two-dimensional codes such as QR Code (registered trademark), micro QR Code, iQR Code, PDF417, etc. In this embodiment, the two-dimensional code CD1 is a QR code that can display a character string using 8-bit byte data.
[0041] There is an upper limit to the capacity of a QR code. For example, the capacity of a version 40 QR code is several thousand characters of text data using alphanumeric characters conforming to ASCII. Therefore, when converting data in a programming language constituting the control program 72 directly into a QR code, one QR code may not be sufficient and a large number of QR codes may be required. The version of the QR code, the display mode of the character string, etc. may be set arbitrarily based on the amount of text data to be backed up.
[0042] As described above, the backup system 300 of this embodiment includes the manufacturing apparatus 100 and the terminal device 200. The manufacturing apparatus 100 includes a storage unit 70, an encoding unit 62 for converting a module ID and parameters 724 corresponding to the program code 722 associated with an image object representing the control program 72 into a two-dimensional code CD1, and an output unit 50 for outputting the converted two-dimensional code CD1. The storage unit 70 stores the control program 72 written in a visual programming language capable of outputting the program code 722 and parameters 724 of the control program 72 as an image object, and a module ID correspondence table 74 indicating the correspondence between a group of program codes 722 and unique module IDs corresponding to the program codes 722. The terminal device 200 includes a two-dimensional code acquisition unit 40 for acquiring the output two-dimensional code CD1 by image recognition. According to the backup system 300 of the present embodiment, the program code 722 and parameters 724 of the control program 72 written in a visual programming language, and the setting data including the execution order of modules are targeted for backup, so that the amount of data of the converted text data can be made smaller than the amount of data of the control program 72 written in a programming language. Therefore, the program code 722 and parameters 724 of the control program 72 can be converted into a two-dimensional code CD1 with a limited amount of data, and backup can be performed efficiently. In addition, the terminal device 200 can acquire the two-dimensional code CD1 output by the manufacturing apparatus 100 as image data. Therefore, it is not necessary to connect the manufacturing apparatus 100 to a network. In addition, when acquiring backup data, it is not necessary to connect peripheral devices such as the terminal device 200 and storage media to the I / F of the manufacturing apparatus 100. Therefore, it is possible to reduce or prevent information leakage accompanying data backup.
[0043] According to the backup system 300 of this embodiment, the encoding unit 62 extracts the module ID and parameters 724 corresponding to the program code 722 associated with the image object as text data, and converts the extracted text data into the two-dimensional code CD1. Therefore, the program code 722 and parameters 724 of the control program 72 can be converted into the two-dimensional code CD1 by a simple method using text data.
[0044] The manufacturing apparatus 100 of this embodiment includes a storage unit 70, an encoding unit 62 for converting a module ID and a parameter 724 corresponding to a program code 722 into a two-dimensional code CD1, and an output unit 50 for outputting the converted two-dimensional code CD1. The storage unit 70 stores a control program 72 written in a visual programming language, and a module ID correspondence table 74 indicating a correspondence between a group of program codes 722 and a unique module ID corresponding to the program code 722. According to the manufacturing apparatus 100 of this embodiment, the data amount of the converted text data can be made smaller than the data amount of the control program 72 written in a programming language by backing up the module ID and parameters of the control program 72 written in a visual programming language, and the setting data including the execution order of the modules. Therefore, the program code 722 and the parameters 724 of the control program 72 can be converted into the two-dimensional code CD1 with a limited data amount, and can be efficiently backed up. The terminal device 200 can obtain the two-dimensional code CD1 output by the manufacturing apparatus 100 as image data. Therefore, it is not necessary to connect the manufacturing apparatus 100 to a network. Also, when acquiring backup data, it is not necessary to connect peripheral devices such as the terminal device 200 and storage media to the I / F of the manufacturing apparatus 100. Therefore, it is possible to reduce or prevent information leakage accompanying data backup.
[0045] According to the manufacturing apparatus 100 of this embodiment, the encoding unit 62 extracts the module ID and parameters 724 corresponding to the program code 722 associated with the image object as text data, and converts the extracted text data into the two-dimensional code CD1. Therefore, the program code 722 and parameters 724 of the control program 72 can be converted into the two-dimensional code CD1 by a simple method using text data.
[0046] B. Second embodiment: 17 is an explanatory diagram showing a backup system 300b as the second embodiment. The backup system 300b of the second embodiment includes a terminal device 200b having a function of encoding and decoding the control program 272, instead of the terminal device 200. The rest of the configuration of the backup system 300b is the same as that of the backup system 300 of the first embodiment.
[0047] The CPU 260 of the terminal device 200b executes various programs stored in the storage unit 270 to function as an encoding unit 262 and a decoding unit 266. The encoding unit 262, like the encoding unit 62 described in the first embodiment, converts a module ID and parameters corresponding to a program code associated with an image object representing a control program 272 of the manufacturing apparatus 100 into a two-dimensional code. The decoding unit 266, like the decoding unit 66 described in the first embodiment, decodes the two-dimensional code into the control program 272.
[0048] The storage unit 270 stores a control program 272 for the manufacturing apparatus 100 and a module ID correspondence table 274 that is the same as the module ID correspondence table 74 shown in the first embodiment. In this embodiment, the control program 272 can be edited using the terminal device 200b. The control program 272 is written in a visual programming language that can output program codes and parameters as image objects. For example, a user can decode the control program 72 for the manufacturing apparatus 100 from the two-dimensional code CD1 acquired from the manufacturing apparatus 100 by the decoding unit 266 into the terminal device 200b as the control program 272, and edit the control program 272 using the terminal device 200b.
[0049] A user of the terminal device 200b can, for example, edit the control program 272 using the terminal device 200b, and generate the edited control program 272 as a two-dimensional code CD2 by the encoding unit 262 and the encoding unit 262. The edited control program 272 can be reflected in the manufacturing apparatus 100 by decoding the two-dimensional code CD2 output by the output unit 250 as a program code and parameters.
[0050] According to the backup system 300b of this embodiment, the terminal device 200b includes a decoding unit 266 for decoding the program code and parameters using the acquired two-dimensional code CD1. Therefore, the program code 722 and the parameters 724 can be decoded in the terminal device 200b, and the program code 722 and the parameters 724 can be edited in the terminal device 200b.
[0051] The manufacturing apparatus 100 of this embodiment includes a two-dimensional code acquisition unit 40 that acquires the two-dimensional code CD2 by image recognition, and a decoding unit 66 that uses the acquired two-dimensional code CD2 to decode parameters 724 of a visual programming language. The manufacturing apparatus 100 can decode program code 722 and parameters 724 edited by a device other than the manufacturing apparatus 100, via the two-dimensional code CD2. By providing the manufacturing apparatus 100 with the function of decoding program code 722 and parameters 724, it becomes unnecessary to provide a decoding unit in other devices such as the terminal apparatus 200, and the configuration of other devices such as the terminal apparatus 200 can be simplified.
[0052] C. Other embodiments: The control unit and the method described in the present disclosure may be realized by a special-purpose computer provided by configuring a processor and a memory programmed to execute one or more functions embodied in a computer program. Alternatively, the control unit and the method described in the present disclosure may be realized by a special-purpose computer provided by configuring a processor with one or more dedicated hardware logic circuits. Alternatively, the control unit and the method described in the present disclosure may be realized by one or more special-purpose computers configured by a combination of a processor and a memory programmed to execute one or more functions and a processor configured with one or more hardware logic circuits. In addition, the computer program may be stored in a computer-readable non-transitory tangible recording medium as instructions executed by a computer.
[0053] The present disclosure is not limited to the above-mentioned embodiment, and can be realized in various configurations without departing from the spirit of the present disclosure. For example, the technical features in the embodiments corresponding to the technical features in each aspect described in the Summary of the Invention column can be appropriately replaced or combined to solve some or all of the above-mentioned problems or to achieve some or all of the above-mentioned effects. Furthermore, if the technical feature is not described as essential in this specification, it can be appropriately deleted. [Explanation of symbols]
[0054] 30...receiving unit, 40...two-dimensional code acquisition unit, 50...output unit, 60...CPU, 61...control unit, 62...encoding unit, 66...decoding unit, 70...storage unit, 72...control program, 74...module ID correspondence table, 80...control device, 82...bus, 90...driving unit, 92...transport unit, 94...ball screw, 96...sensor, 100...manufacturing device, 200, 200b...terminal device, 210...bus, 240...two-dimensional code acquisition unit, 250...output unit, 260...CPU, 262...encoding unit, 266...decoding unit, 2 70...storage unit, 272...control program, 274...module ID correspondence table, 300, 300b...backup system, 722...program code, 724...parameter, CD1, CD2...two-dimensional code, E11, E12, E31, E32, E41, E42, E43...connection unit, E51, E61, E62, E71, E72...fitting unit, M1 to M7, P1, P2...image object, PS0...pre-process, PS1...process, PS2...post-process, P3 to P5...drop-down list, WK...product
Claims
1. A backup system, An apparatus for use in manufacturing, a storage unit that stores a control program for controlling an operation of the device, the control program being written in a visual programming language capable of outputting program codes and parameters of the control program as image objects, and correspondence information that indicates a correspondence relationship between a group of the program codes and a unique module ID corresponding to the program codes; an encoding unit for converting the module ID and the parameters corresponding to the program code associated with the image object representing the control program into a two-dimensional code; An output unit for outputting the converted two-dimensional code; and a terminal device having a two-dimensional code acquisition unit that acquires the output two-dimensional code by image recognition. Backup system.
2. 2. The backup system according to claim 1, The encoding unit is extracting, as text data, the module ID and the parameters corresponding to the program code associated with the image object; converting the extracted text data into the two-dimensional code; Backup system.
3. 3. The backup system according to claim 1, the terminal device further includes a decoding unit that decodes the program code and the parameters by using the acquired two-dimensional code. Backup system.
4. An apparatus for use in manufacturing, a storage unit that stores a control program for controlling an operation of the device, the control program being written in a visual programming language capable of outputting program codes and parameters of the control program as image objects, and correspondence information that indicates a correspondence relationship between a group of the program codes and a unique module ID corresponding to the program codes; an encoding unit for converting the module ID and the parameters corresponding to the image object representing the control program into a two-dimensional code; and an output unit for outputting the converted two-dimensional code. Device.
5. 5. The apparatus of claim 4, The encoding unit is extracting, as text data, the module ID and the parameters corresponding to the program code associated with the image object; converting the extracted text data into the two-dimensional code; Device.
6. 6. An apparatus according to claim 4 or claim 5, Furthermore, a two-dimensional code acquisition unit that acquires the output two-dimensional code by image recognition; a decoding unit that decodes the program code and the parameters by using the acquired two-dimensional code; Device.
Citation Information
Patent Citations
Data collection processor
JP2004192082A
Data backup program, data backup method, portable terminal and data backup device
JP2005189969A
Device and its control method, program, and storage medium
JP2006101456A
Machine tool control device
JP2006260128A
Remote controlled apparatus, remote control apparatus, and remote control system and remote control method using them
JP2009016983A
