WO2023286431A1 - Method for assisting programming, program for assisting programming, and programming assistance system - Google Patents

Method for assisting programming, program for assisting programming, and programming assistance system Download PDF

Info

Publication number
WO2023286431A1
WO2023286431A1 PCT/JP2022/019820 JP2022019820W WO2023286431A1 WO 2023286431 A1 WO2023286431 A1 WO 2023286431A1 JP 2022019820 W JP2022019820 W JP 2022019820W WO 2023286431 A1 WO2023286431 A1 WO 2023286431A1
Authority
WO
WIPO (PCT)
Prior art keywords
computer
program
programming
peer
data
Prior art date
Application number
PCT/JP2022/019820
Other languages
French (fr)
Japanese (ja)
Inventor
圭 加藤
慎也 藤井
Original Assignee
パナソニックIpマネジメント株式会社
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 パナソニックIpマネジメント株式会社 filed Critical パナソニックIpマネジメント株式会社
Priority to CN202280046452.6A priority Critical patent/CN117581197A/en
Publication of WO2023286431A1 publication Critical patent/WO2023286431A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Definitions

  • the present disclosure relates to a programming support method, a program for programming support, and a programming support system. More specifically, the present disclosure relates to a programming support method, a programming support program, and a programming support system that support program creation.
  • Patent Document 1 As a conventional example, the program execution control method described in Patent Document 1 will be exemplified.
  • the conventional example described in Patent Document 1 is composed of variable name storage and reference means, variable name storage area, variable value address information storage and reference means, variable value address storage area, variable value storage and reference means, and variable value storage area. .
  • variable name storage reference means searches for the specified variable name from among the multiple variable names stored in the variable name storage area.
  • the address information storage and reference means refers to the address stored in the variable value address storage area to obtain the specified variable name. Get the corresponding address.
  • the variable value storage reference means rewrites the contents of the variable value storage area pointed to by the acquired address to the variable value designated to be registered.
  • variables created (declared) in one program can be used as variables in another program.
  • variables created (declared) by the user are exported to a CSV (comma separated value) file, and the exported CSV file is attached to an e-mail, for example, and sent.
  • CSV common value
  • An object of the present disclosure is to provide a programming support method, a program for programming support, and a programming support system that can simplify the work required to transfer sharable data.
  • a programming support method is a method of supporting programming using a computer.
  • the programming support method has a first step, a second step, a third step, and a fourth step.
  • the first step enables the first computer and the second computer to communicate in a peer-to-peer manner.
  • the second step selects sharable data from data used in a first program executed on the first computer.
  • the third step transmits the sharable data selected in the second step to the second computer.
  • the fourth step takes in the sharable data sent in the third step in a second program executed on the second computer.
  • a programming support program supports programming using a computer.
  • the programming support program causes the computer to execute a first process, a second process, and a third process.
  • the first processing puts the computer into a state capable of communicating by a peer-to-peer method.
  • the second process selects sharable data from data used in a programming program executed on the computer.
  • the third process transmits the sharable data selected in the second process through the peer-to-peer communication.
  • a programming support program supports programming using a computer.
  • the programming support program causes the computer to execute a fourth process and a fifth process.
  • the fourth process puts the computer in a peer-to-peer communicable state.
  • the fifth process captures, in a program executed on the computer, the peer-to-peer transmitted sharable data.
  • a programming support system includes a first computer that executes a first program for programming and a second computer that executes a second program for programming.
  • the first computer and the second computer are capable of communicating in a peer-to-peer fashion.
  • the first computer transmits data sharable between the first program and the second program to the second computer.
  • the second computer captures the sharable data transmitted from the first computer in the second program.
  • FIG. 1 is a system configuration diagram of a programming support system according to an embodiment of the present disclosure.
  • FIG. 2 is an explanatory diagram of a dialog box in the programming support program according to the embodiment of the present disclosure.
  • FIG. 3 is a sequence diagram for explaining pairing operations in the programming support method, the programming support program, and the programming support system according to the embodiment of the present disclosure.
  • FIG. 4 is a sequence diagram for explaining operations of global variable transfer in the programming support method, the program for programming support, and the programming support system.
  • FIG. 5 is an explanatory diagram of a menu screen of the first program executed by the first computer of the programming support system;
  • Programs to be supported for programming in the embodiments are application programs for programmable controllers and application programs for related peripheral devices.
  • the program that is the target of programming support in the embodiment may be a program used in a computer system other than the programmable controller and related peripheral devices.
  • a related peripheral device in the embodiment is, for example, a programmable display PD1 (see FIG. 1).
  • the programmable display PD1 uses a touch panel display as an HMI (Human-Machine Interface) and is connected to the programmable controller PLC1 to monitor the operation of the equipment and give control instructions (see Japanese Industrial Standards JIS B 3551).
  • the programmable controller PLC1 and the programmable display PD1 are communicably connected by a communication cable L4 conforming to serial communication standards such as RS232C or RS485.
  • An application program for the programmable controller is created (programmed) by, for example, executing dedicated programming software (first program) on a general-purpose personal computer (first computer PC1).
  • the first program supports a plurality of program languages standardized by the International Electrotechnical Commission (IEC) standard IEC61131-3 and the Japanese Industrial Standard JIS B 3503.
  • the multiple programming languages supported by the first program include two text languages, Instruction List (IL) and Structured Text (ST).
  • the multiple programming languages supported by the first program further include three graphic languages: Ladder Diagram (LD), Function Block Diagram (FBD) and Sequential Function Chart (SFC). contains.
  • An application program created by the first program is downloaded from the first computer PC1 to the programmable controller PLC1 through the communication cable L2 (see FIG. 1).
  • An application program for a programmable display is created (programmed) by, for example, executing dedicated programming software (second program) on a general-purpose personal computer (second computer PC2).
  • the first program and the second program each operate on an operating system such as Windows (registered trademark) manufactured by Microsoft Corporation.
  • the application program created by the second program is downloaded from the second computer PC2 to the programmable display PD1 through the communication cable L3.
  • the first computer PC1 and the second computer PC2 have communication functions that comply with wired LAN standards (100BASE-TX, 10BASE-T, etc.).
  • the first computer PC1 is connected to the second computer PC2 via a communication cable L1 made up of a UTP (Unshielded Twisted Pair) cable.
  • the first computer PC1 is connected to the programmable controller PLC1 via a communication cable L2 made of a UTP cable.
  • the second computer PC2 is connected to the programmable display PD1 via a communication cable L3 made of UTP cable.
  • the first computer PC1, the second computer PC2, the programmable controller PLC1, and the programmable display PD1 belong to one local area network, and perform data communication with each other via network equipment such as routers and switching hubs. may be connected so as to
  • At least the first computer PC1 and the second computer PC2 are directly connected via a communication cable L1 or connected via a network device, and one-to-one two-way communication is possible. (peer-to-peer communication) is possible.
  • the programming support method has a first step, a second step, a third step, and a fourth step.
  • the first step is to enable the first computer PC1 and the second computer PC2 to communicate in a peer-to-peer manner.
  • the second step is to have (the first operator) select sharable data from among the data used in the first program executed on the first computer PC1.
  • the third step is to send the sharable data selected in the second step to the second computer PC2.
  • a fourth step captures the sharable data sent in the third step in a second program running on the second computer PC2.
  • the first operator is a person who performs programming using the first program on the first computer PC1.
  • the essential work performed by the first worker is It is only the task of selecting data that is appropriate. Therefore, in the programming support method according to the embodiment, the work required to transfer the sharable data is less than the case of exporting a file containing sharable data and sending the exported file as an attachment to e-mail or the like. can be simplified.
  • the programming support program according to the embodiment is executed by each of the first computer PC1 and the second computer PC2.
  • the programming support program executed by the first computer PC1 causes the first computer PC1 to execute a first process, a second process, and a third process.
  • the first process puts the first computer PC1 into a state in which it can communicate (with the second computer PC2) in a peer-to-peer manner.
  • the second process causes (the first operator) to select sharable data from among the data used in the programming program (first program) executed by the first computer PC1.
  • a third process transmits (to the second computer PC2) the sharable data selected in the second process via peer-to-peer communication.
  • the programming support program executed by the second computer PC2 causes the second computer PC2 to execute the fourth process and the fifth process.
  • a fourth process enables the second computer PC2 to communicate (with the first computer PC1) in a peer-to-peer manner.
  • a fifth process captures (into the second program) sharable data transmitted in a peer-to-peer manner in a program (second program) executed on the second computer PC2.
  • the programming support program according to the embodiment when transferring sharable data from the first computer PC1 to the second computer PC2, the first operator at the first computer PC1 The only work required is the work of selecting sharable data.
  • the second operator person who uses the second program
  • the program for programming support according to the embodiment can simplify the work required to deliver sharable data at each of the sharable data sender and receiver.
  • the programming support system S1 has a first computer PC1 that executes a first program for programming and a second computer PC2 that executes a second program for programming.
  • the first computer PC1 and the second computer PC2 can communicate in a peer-to-peer manner.
  • the first computer PC1 transmits data that can be shared between the first program and the second program to the second computer PC2.
  • the second computer PC2 takes in the sharable data sent from the first computer PC1 in the second program.
  • the programming support system S1 exports a file containing sharable data, attaches the exported file to e-mail or the like, and transmits it. Work can be simplified.
  • a programming support system S1 (hereinafter abbreviated as support system S1) according to the embodiment includes a first computer PC1, a second and a computer PC2 (see FIG. 1).
  • the first computer PC1 is a so-called desktop personal computer. That is, the first computer PC1 includes a main body 10 housing a CPU (Central Processing Unit), a memory, a motherboard, a hard disk drive or solid state drive, a power supply, etc., a display device 11, a keyboard 12, and a mouse. 13 and. Similarly, the second computer PC2 includes a main body 20 housing a CPU, a memory, a motherboard, a hard disk drive or solid state drive, a power supply, etc., a display device 21, a keyboard 22, and a mouse 23. Prepare. The first computer PC1 and the second computer PC2 are equipped with Windows (registered trademark) made by Microsoft Corporation as an OS.
  • Windows registered trademark
  • the first computer PC1 and the second computer PC2 use an OS other than Windows (registered trademark), such as Mac OS (registered trademark) manufactured by Apple Inc., or Windows (registered trademark) such as Linux (registered trademark). ) may be used. At least one of the first computer PC1 and the second computer PC2 may be a notebook personal computer.
  • Windows registered trademark
  • Mac OS registered trademark
  • Windows registered trademark
  • Linux registered trademark
  • At least one of the first computer PC1 and the second computer PC2 may be a notebook personal computer.
  • the first computer PC1 executes the first program.
  • the first program is programming software for creating (programming) an application program that causes the programmable controller PLC1 to perform various controls.
  • the first program runs on the OS installed in the first computer PC1. Therefore, the first program can use various GUIs (Graphical User Interfaces) provided by the OS.
  • GUIs Graphic User Interfaces
  • the first worker is the developer of the application program for the programmable controller.
  • the number of application program developers may be plural.
  • one application program may be completed by combining programs created by a plurality of developers in appropriate programming languages for each function or process.
  • each of the multiple developers can be the "first worker".
  • the second computer PC2 executes the second program.
  • the second program is programming software for creating (programming) an application program for causing the programmable display device PD1 to display various screens and receive various inputs.
  • the second program runs on the OS installed in the second computer PC2. Therefore, the second program can use various GUIs provided by the OS, like the first program.
  • the second worker is a screen designer who designs application programs for programmable displays.
  • Data that can be shared between the first program and the second program is a global variable (GV).
  • Global variables are assigned, for example, to the input and output addresses of the programmable controller PLC1.
  • the input address and output address of the programmable controller PLC1 are programmed with fixed addresses, for example, if the programmable controller is changed, the input address and output address must be changed. not.
  • global variables are assigned to input addresses and output addresses, appropriate input addresses and output addresses are automatically assigned to the global variables in the application program for the programmable controller after the model change. That is, by sharing the global variables between the first program and the second program, it is possible to reduce the load required for creating (programming) each of the first program and the second program.
  • data that can be shared between the first program and the second program are not limited to global variables.
  • a program for programming support according to the embodiment (hereinafter referred to as a support program) is installed in each of the first computer PC1 and the second computer PC2. Installed.
  • Support programs are resident programs (also called resident applications).
  • the support program may be provided through an electric communication line.
  • the support program may be provided by being recorded on a non-temporary recording medium such as a computer system-readable memory card, optical disc, or hard disk drive.
  • the menu list of the support program includes the "pairing” menu (process).
  • the support program displays a dialog box DB1 for pairing on the screen (screens of the display devices 11 and 21) (see FIG. 2).
  • a pairing dialog box DB1 has a first table T1, a second table T2, and a plurality of command buttons CB1 to CB4.
  • the first table T1 has a space indicating the current pairing status, a space indicating the name of the pairing partner computer, and a space indicating the IP address assigned to the pairing partner computer. Either “paired” or “paired (disconnected)" is displayed in the space indicating the pairing status.
  • the second table T2 has a space indicating the name of the partner (request source) computer requesting pairing, and a space indicating the IP address assigned to the request source computer.
  • the left command button CB1 is a command button for starting the pairing process.
  • the command button CB2 on the right side is a command button for executing a process of canceling pairing with a paired computer.
  • the command button CB3 on the left side is a command button for executing processing for permitting pairing in response to a pairing request.
  • the command button CB4 on the right side is a command button for executing a process of rejecting the pairing in response to the pairing request.
  • FIGS. 3 and 4 are sequence diagrams for explaining the programming support method. Also, FIG. 5 is an example of the menu screen M1 of the first program.
  • the "first shared folder” is created in the hard disk drive or solid state drive of the first computer PC1.
  • the "first shared folder” is a file folder that can be accessed (read and written) not only from the first computer PC1 but also from the second computer PC2.
  • a “second shared folder” is created on the hard disk drive or solid state drive of the second computer PC2.
  • the “second shared folder” is a file folder that can be accessed (read and written) not only from the second computer PC2 but also from the first computer PC1.
  • the first operator who performs the programming work using the first program executes the support program and performs the pairing start operation (see [01] in Fig. 3).
  • the support program then sends a pairing request transmission frame containing the computer name and IP address of the first computer PC1 to the IP address of the second computer PC2 (see [02] in FIG. 3).
  • the support program of the second computer PC2 receives the transmission frame of the pairing request.
  • the support program displays the computer name and IP address included in the transmission frame in the second table T2 of the dialog box DB1 to confirm the possibility of pairing with the second worker (FIGS. 2 and 4). 3 [03]).
  • the second operator presses the command button CB3 arranged below the second table T2 of the dialog box DB1 by operating the mouse 23 to give the pairing permission to the support program (see FIG. 3). [04]).
  • the support program sends a transmission frame including a pairing permission message to the IP address of the first computer PC1 (see [05] in FIG. 3).
  • the support program of the first computer PC1 When the support program of the first computer PC1 receives the pairing permission transmission frame, it displays the character string "paired" in the space indicating the pairing state in the first table T1 of the dialog box DB1 ( See Figure 2). The first operator can confirm that the pairing between the first computer PC1 and the second computer PC2 is completed by looking at the character string ("paired" character string) ([ 06]).
  • a first worker creates an application program using the first program.
  • a first worker may share a global variable (GV) declared in an application program with an application program created by a second worker.
  • the first operator selects a shared global variable on the menu screen M1 of the first program (see [07] in FIG. 4 and FIG. 5).
  • the first worker places the mouse pointer on the display location of the variable name (for example, "GV1") of the global variable displayed on the menu screen M1, right-clicks the mouse 13, and selects the context menu CM1. is displayed (see FIG. 5).
  • the first worker places the mouse pointer on the item "Send To" in the context menu CM1, the information of the destination of the selected global variable is displayed.
  • This destination information includes the computer name "PC2" of the second computer PC2 paired with the first computer PC1, and the name "PC2" of the application program being created in the second program that shares the global variables. Project A” (see Figure 5). Then, when the first operator operates (left-clicks) the mouse 13 to confirm the selection of the global variables and the transmission destination, the first program creates a file containing the selected global variables (for example, a CSV file). file) to the first shared folder (see [08] in Fig. 4).
  • a file containing the selected global variables for example, a CSV file). file
  • the support program reads the file (hereinafter referred to as global variable file GV) written in the first shared folder (see [09] in FIG. 4), and stores the read global variable file GV in the paired Transfer to the second computer PC2 (see [10] in FIG. 4).
  • the global variable file GV transferred from the first computer PC1 is written in the second shared folder by the support program running on the second computer PC2 (see [11] in FIG. 4).
  • the support program causes the second worker to confirm addition of the global variable file GV through the second program (see [12] in FIG. 4). When the second worker permits the addition (see [13] in FIG.
  • the second program reads the global variable file GV from the second shared folder, and the global variables contained in the read global variable file GV are , is added to the application program created by the second program (see [14] in FIG. 4).
  • the second program notifies the support program of the second computer PC2 that the global variables have been read (see [15] in FIG. 4). This allows the second program to share global variables with the first program.
  • the support program receives the global variable read completion notification from the second program, it notifies the support program of the first computer PC1 of the end of the transfer of the global variable file GV ([16 in FIG. 4]. ]reference).
  • the support program of the first computer PC1 transfers to the first program the notification of the end of transfer of the global variable file GV received from the support program of the second computer PC2 (see [17] in FIG. 4).
  • the first program receives the transfer end notification from the support program, it displays a message on the menu screen M1 to inform the first worker that the transfer of the global variables has been completed ([18] in FIG. 4). reference).
  • the first operator needs to perform multiple operations, including selecting the global variable file GV and writing it to the file server.
  • the second operator it is necessary for the second operator to perform multiple operations until the necessary global variable files GV are selected from the global variable files GV stored in the fan server and downloaded to the second computer PC2.
  • the method of transferring the global variable file GV via the file server it is very difficult to simplify the work required to transfer the sharable data (global variable file GV).
  • the programming support method, support program, and programming support system S1 according to the embodiment, the first computer PC1 and the second computer PC2 directly exchange data in a peer-to-peer manner. Therefore, the programming support method, the support program, and the programming support system S1 according to the embodiment can simplify the work required to transfer the sharable data (global variable file GV). Moreover, since the first computer PC1 and the second computer PC2 exchange data directly in a peer-to-peer manner, there is an advantage that it is easy to maintain consistency of shared data (global variables).
  • both the first program executed by the first computer PC1 and the second program executed by the second computer PC2 are programming software for creating an application program for the programmable controller. It doesn't matter if there is.
  • both the first program executed by the first computer PC1 and the second program executed by the second computer PC2 are programming software for creating an application program for the programmable display. I do not care.
  • sharable data is transferred from the first shared folder of the first computer PC1 to the second shared folder of the second computer PC2. do. Therefore, the programming support method, support program, and programming support system S1 according to the embodiment mistakenly overwrite non-sharable data with sharable data, compared to transferring sharable data between folders that are not shared. It is possible to suppress the occurrence of a problem such as being lost.
  • a programming support method is a method of supporting programming using a computer.
  • a programming support method has a first step, a second step, a third step, and a fourth step.
  • the first step is to enable a first computer (PC1) and a second computer (PC2) to communicate in a peer-to-peer manner.
  • the second step is to select sharable data from among the data used in the first program running on the first computer (PC1).
  • a third step sends the sharable data selected in the second step to a second computer (PC2).
  • a fourth step captures the sharable data sent in the third step in a second program running on a second computer (PC2).
  • the programming support method when transferring sharable data from the first computer (PC1) to the second computer (PC2), the essential work performed by the first worker is It is only a task of selecting possible data. Therefore, in the programming support method according to the first aspect, compared to the case of exporting a file containing sharable data and sending the exported file as an attachment to an e-mail or the like, it is necessary to transfer sharable data. work can be simplified.
  • a programming support method can be implemented in combination with the first aspect.
  • the selected sharable data is stored in a first shared folder of the first computer.
  • the sharable data is transferred from the first shared folder to a second shared folder of the second computer.
  • a programming support method can be implemented in combination with the first or second aspect.
  • the sharable data is preferably data of variables used in each of the first program and the second program.
  • a programming support program is a programming support program that supports programming using a computer.
  • a programming support program causes a computer (first computer PC1) to execute a first process, a second process, and a third process.
  • the first process puts the computer into a state where it can communicate in a peer-to-peer manner.
  • a second process involves selecting sharable data from data used in a programming program running on a computer.
  • a third process transmits the sharable data selected in the second process via peer-to-peer communication.
  • the program for programming support according to the fourth aspect can simplify the work required to transfer sharable data.
  • a program for programming support according to the fifth aspect of the present disclosure can be implemented in combination with the fourth aspect.
  • the programming support program according to the fifth aspect causes the selected sharable data to be stored in the first shared folder of the computer in the second process.
  • the programming support program according to the fifth aspect transfers sharable data from the first shared folder to a second shared folder of the destination computer in the third process.
  • the program for programming support according to the fifth aspect has the problem that non-sharable data is mistakenly overwritten with sharable data compared to the case where sharable data is transferred between non-sharable folders. can be suppressed.
  • a programming support program is a programming support program that supports programming using a computer.
  • a programming support program causes a computer (second computer PC2) to execute a fourth process and a fifth process.
  • a fourth process puts the computer into a state capable of communicating in a peer-to-peer manner.
  • a fifth process captures shareable data sent peer-to-peer in a program running on a computer.
  • the program for programming support according to the sixth aspect can simplify the work required to transfer sharable data.
  • a program for programming support according to the seventh aspect of the present disclosure can be implemented in combination with the sixth aspect. It is preferable that the programming support program according to the seventh aspect imports the sharable data transferred to the second shared folder of the computer in the fifth process.
  • the program for programming support according to the seventh aspect has a problem that non-sharable data is mistakenly overwritten with sharable data compared to the case where sharable data is transferred between non-sharable folders. can be suppressed.
  • a programming support program according to the eighth aspect of the present disclosure can be realized by combining with any one of the fourth to seventh aspects.
  • the sharable data is preferably variable data used in the programming program executed by the computer.
  • a program for programming support shares data of variables used in each of the first program and the second program, so that each of the first program and the second program individually The workability of the programming work can be improved compared to the case of declaring variables in the .
  • a programming support system (S1) includes a first computer (PC1) that executes a first program for programming, and a second computer that executes a second program for programming. (PC2) and A first computer (PC1) and a second computer (PC2) can communicate in a peer-to-peer fashion.
  • the first computer (PC1) transmits data that can be shared between the first program and the second program to the second computer (PC2).
  • the second computer (PC2) takes in the sharable data sent from the first computer (PC1) in the second program.
  • the programming support system (S1) according to the ninth aspect when transferring sharable data from the first computer (PC1) to the second computer (PC2), the essential work performed by the first operator is only the task of selecting sharable data. Therefore, the programming support system (S1) according to the ninth aspect exports a file containing sharable data, and attaches the exported file to an e-mail or the like and transmits it. It is possible to simplify the work required for delivery.
  • a programming support system (S1) according to the tenth aspect of the present disclosure can be realized in combination with the ninth aspect.
  • the first computer (PC1) and the second computer (PC2) each have a mutually readable and writable shared folder.
  • a programming support system (S1) according to a tenth aspect transfers sharable data stored in a shared folder of a first computer (PC1) to a shared folder of a second computer (PC2). is preferred.
  • a programming support system (S1) according to the eleventh aspect of the present disclosure can be realized by combining with the ninth or tenth aspect.
  • the sharable data is preferably variable data used in each of the first program and the second program.
  • a programming support system (S1) shares data of variables used in each of the first program and the second program, so that each of the first program and the second program It is possible to improve the workability of the programming work compared to declaring variables individually.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Stored Programmes (AREA)
  • Programmable Controllers (AREA)

Abstract

The objective of the present disclosure is to simplify an operation necessary for passing shareable data. The method for assisting programming according an embodiment includes a first step, a second step, a third step, and a fourth step. The first step puts a first computer and a second computer into a state enabling communication by a peer-to-peer scheme. The second step causes selection of shareable data from data used in a first program executed by the first computer. The third step transmits the shareable data selected in the second step to the second computer. The fourth step imports the shareable data transmitted in the third step into the second program executed by the second computer.

Description

プログラミング支援方法、プログラミング支援用のプログラム、及びプログラミング支援システムProgramming support method, program for programming support, and programming support system
 本開示は、プログラミング支援方法、プログラミング支援用のプログラム、及びプログラミング支援システムに関する。より詳細には、本開示は、プログラムの作成を支援するプログラミング支援方法、プログラミング支援用のプログラム、及びプログラミング支援システムに関する。 The present disclosure relates to a programming support method, a program for programming support, and a programming support system. More specifically, the present disclosure relates to a programming support method, a programming support program, and a programming support system that support program creation.
 従来例として特許文献1記載のプログラムの実行制御方式を例示する。特許文献1記載の従来例は、変数名称記憶参照手段,変数名称記憶領域,変数値のアドレス情報記憶参照手段,変数値アドレス記憶領域,変数値記憶参照手段,変数値記憶領域から構成されている。 As a conventional example, the program execution control method described in Patent Document 1 will be exemplified. The conventional example described in Patent Document 1 is composed of variable name storage and reference means, variable name storage area, variable value address information storage and reference means, variable value address storage area, variable value storage and reference means, and variable value storage area. .
 変数名称記憶参照手段は、変数名称記憶領域に記憶されている複数の変数名称から、指定された変数名称をサーチする。アドレス情報記憶参照手段は、変数名称記憶参照手段が変数名称記憶領域から指定された変数名称を見つけた場合、変数値アドレス記憶領域に格納されているアドレスを参照して、指定された変数名称に対応するアドレスを取得する。変数値記憶参照手段は、取得したアドレスの指す変数値記憶領域の内容を、登録されるべく指定された変数値に書き換える。 The variable name storage reference means searches for the specified variable name from among the multiple variable names stored in the variable name storage area. When the variable name storage and reference means finds the specified variable name from the variable name storage area, the address information storage and reference means refers to the address stored in the variable value address storage area to obtain the specified variable name. Get the corresponding address. The variable value storage reference means rewrites the contents of the variable value storage area pointed to by the acquired address to the variable value designated to be registered.
 ところで、一部のプログラムにおいては、任意の変数をユーザが作成(宣言)することができる。また、1つのプログラムにおいて作成(宣言)された変数を、別のプログラムの変数として利用することができる。 By the way, in some programs, users can create (declare) arbitrary variables. Also, variables created (declared) in one program can be used as variables in another program.
 例えば、1つのプログラムにおいて、ユーザが作成(宣言)した変数をCSV(comma separated value)ファイルにエクスポートし、エクスポートしたCSVファイルを、例えば、電子メールに添付して送信する。 For example, in one program, variables created (declared) by the user are exported to a CSV (comma separated value) file, and the exported CSV file is attached to an e-mail, for example, and sent.
 そして、別のプログラムを作成するユーザは、電子メールに添付されているCSVファイルを別のプログラムにインポートする。このようにして、1つのプログラムで作成された変数を、別のプログラムの変数として利用することができる。 Then, the user who creates another program imports the CSV file attached to the e-mail into another program. In this way, variables created in one program can be used as variables in another program.
 しかしながら、上述の方法では、一部のデータ(例えば、変数)を共用して複数のプログラムを作成(プログラミング)する場合に煩雑な作業が必要であった。 However, the above method requires complicated work when creating (programming) multiple programs by sharing some data (for example, variables).
特開平05-035476号公報JP-A-05-035476
 本開示の目的は、共用可能なデータの受け渡しに必要な作業の簡素化を図ることができるプログラミング支援方法、プログラミング支援用のプログラム、及びプログラミング支援システムを提供することである。 An object of the present disclosure is to provide a programming support method, a program for programming support, and a programming support system that can simplify the work required to transfer sharable data.
 本開示の一態様に係るプログラミング支援方法は、コンピュータを使用したプログラミングを支援する方法である。前記プログラミング支援方法は、第1のステップと、第2のステップと、第3のステップと、第4のステップと、を有する。前記第1のステップは、第1のコンピュータと第2のコンピュータをピアツーピア方式で通信可能な状態とする。前記第2のステップは、前記第1のコンピュータで実行される第1のプログラムにおいて使用されるデータのうちから共用可能なデータを選択させる。前記第3のステップは、前記第2のステップで選択された前記共用可能なデータを、前記第2のコンピュータへ送信する。前記第4のステップは、前記第2のコンピュータで実行される第2のプログラムにおいて、前記第3のステップで送信された前記共用可能なデータを取り込む。 A programming support method according to one aspect of the present disclosure is a method of supporting programming using a computer. The programming support method has a first step, a second step, a third step, and a fourth step. The first step enables the first computer and the second computer to communicate in a peer-to-peer manner. The second step selects sharable data from data used in a first program executed on the first computer. The third step transmits the sharable data selected in the second step to the second computer. The fourth step takes in the sharable data sent in the third step in a second program executed on the second computer.
 本開示の一態様に係るプログラミング支援用のプログラムは、コンピュータを使用したプログラミングを支援する。前記プログラミング支援用のプログラムは、第1の処理と、第2の処理と、第3の処理と、を前記コンピュータに実行させる。前記第1の処理は、前記コンピュータをピアツーピア方式で通信可能な状態とする。前記第2の処理は、前記コンピュータで実行されるプログラミング用のプログラムにおいて使用されるデータのうちから共用可能なデータを選択させる。前記第3の処理は、前記第2の処理で選択された前記共用可能なデータを、前記ピアツーピア方式の通信によって送信する。 A programming support program according to one aspect of the present disclosure supports programming using a computer. The programming support program causes the computer to execute a first process, a second process, and a third process. The first processing puts the computer into a state capable of communicating by a peer-to-peer method. The second process selects sharable data from data used in a programming program executed on the computer. The third process transmits the sharable data selected in the second process through the peer-to-peer communication.
 本開示の一態様に係るプログラミング支援用のプログラムは、コンピュータを使用したプログラミングを支援する。前記プログラミング支援用のプログラムは、第4の処理と、第5の処理とを、前記コンピュータに実行させる。前記第4の処理は、前記コンピュータをピアツーピア方式で通信可能な状態とする。前記第5の処理は、前記コンピュータで実行されるプログラムにおいて、前記ピアツーピア方式で送信された共用可能なデータを取り込む。 A programming support program according to one aspect of the present disclosure supports programming using a computer. The programming support program causes the computer to execute a fourth process and a fifth process. The fourth process puts the computer in a peer-to-peer communicable state. The fifth process captures, in a program executed on the computer, the peer-to-peer transmitted sharable data.
 本開示の一態様に係るプログラミング支援システムは、プログラミング用の第1のプログラムを実行する第1のコンピュータと、プログラミング用の第2のプログラムを実行する第2のコンピュータと、を有する。前記第1のコンピュータと前記第2のコンピュータは、ピアツーピア方式で通信可能である。前記第1のコンピュータは、前記第1のプログラムと前記第2のプログラムで共用可能なデータを前記第2のコンピュータへ送信する。前記第2のコンピュータは、前記第2のプログラムにおいて、前記第1のコンピュータから送信された前記共用可能なデータを取り込む。 A programming support system according to one aspect of the present disclosure includes a first computer that executes a first program for programming and a second computer that executes a second program for programming. The first computer and the second computer are capable of communicating in a peer-to-peer fashion. The first computer transmits data sharable between the first program and the second program to the second computer. The second computer captures the sharable data transmitted from the first computer in the second program.
図1は、本開示の実施形態に係るプログラミング支援システムのシステム構成図である。FIG. 1 is a system configuration diagram of a programming support system according to an embodiment of the present disclosure. 図2は、本開示の実施形態に係るプログラミング支援用のプログラムにおけるダイアログボックスの説明図である。FIG. 2 is an explanatory diagram of a dialog box in the programming support program according to the embodiment of the present disclosure. 図3は、本開示の実施形態に係るプログラミング支援方法、同上のプログラミング支援用のプログラム、及び同上のプログラミング支援システムにおけるペアリングの動作を説明するためのシーケンス図である。FIG. 3 is a sequence diagram for explaining pairing operations in the programming support method, the programming support program, and the programming support system according to the embodiment of the present disclosure. 図4は、同上のプログラミング支援方法、同上のプログラミング支援用のプログラム、及び同上のプログラミング支援システムにおけるグローバル変数の転送の動作を説明するためのシーケンス図である。FIG. 4 is a sequence diagram for explaining operations of global variable transfer in the programming support method, the program for programming support, and the programming support system. 図5は、同上のプログラミング支援システムが有する第1のコンピュータで実行される第1のプログラムのメニュー画面の説明図である。FIG. 5 is an explanatory diagram of a menu screen of the first program executed by the first computer of the programming support system;
 以下、本開示の実施形態に係るプログラミング支援方法、プログラミング支援用のプログラム、及びプログラミング支援システムについて、図面を参照して詳細に説明する。ただし、以下の実施形態で説明する構成は本開示の一例にすぎない。本開示は、以下の実施形態に限定されず、本開示の効果を奏することができれば、設計等に応じて種々の変更が可能である。 The programming support method, programming support program, and programming support system according to the embodiments of the present disclosure will be described in detail below with reference to the drawings. However, the configurations described in the following embodiments are merely examples of the present disclosure. The present disclosure is not limited to the following embodiments, and various modifications can be made according to design and the like as long as the effects of the present disclosure can be achieved.
 (1)概要
 実施形態においてプログラミングの支援対象となるプログラムは、プログラマブルコントローラ用のアプリケーションプログラム、及び関連周辺装置用のアプリケーションプログラムである。ただし、実施形態においてプログラミングの支援対象となるプログラムは、プログラマブルコントローラ及び関連周辺装置以外のコンピュータシステムで使用されるプログラムであっても構わない。
(1) Overview Programs to be supported for programming in the embodiments are application programs for programmable controllers and application programs for related peripheral devices. However, the program that is the target of programming support in the embodiment may be a program used in a computer system other than the programmable controller and related peripheral devices.
 実施形態における関連周辺装置は、例えば、プログラマブル表示器PD1である(図1参照)。プログラマブル表示器PD1は、タッチパネルディスプレイをHMI(Human-machine Interfaces)として用い、プログラマブルコントローラPLC1と接続して設備の稼働監視、制御指示などを行うものである(日本産業規格JIS B 3551参照)。なお、プログラマブルコントローラPLC1とプログラマブル表示器PD1は、RS232C又はRS485などのシリアル通信規格に準拠した通信ケーブルL4によって通信可能に接続される。 A related peripheral device in the embodiment is, for example, a programmable display PD1 (see FIG. 1). The programmable display PD1 uses a touch panel display as an HMI (Human-Machine Interface) and is connected to the programmable controller PLC1 to monitor the operation of the equipment and give control instructions (see Japanese Industrial Standards JIS B 3551). The programmable controller PLC1 and the programmable display PD1 are communicably connected by a communication cable L4 conforming to serial communication standards such as RS232C or RS485.
 プログラマブルコントローラ用のアプリケーションプログラムは、例えば、汎用のパーソナルコンピュータ(第1のコンピュータPC1)で専用のプログラミングソフトウェア(第1のプログラム)を実行することによって作成(プログラミング)される。なお、第1のプログラムは、国際電気標準会議(IEC:International Electrotechnical Commission)の規格IEC61131-3、及び日本産業規格JIS B 3503で規格化されている複数のプログラム言語をサポートしている。第1のプログラムがサポートする複数のプログラム言語は、命令リスト(IL:Instruction List)及び構造化テキスト(ST:Structured Text)の2つのテキスト言語を含んでいる。第1のプログラムがサポートする複数のプログラム言語は、ラダー図(LD:Ladder Diagram)、ファンクションブロックダイアグラム(FBD:Function Block Diagram)及びシーケンシャルファンクションチャート(SFC:Sequential Function Chart)の3つのグラフィック言語を更に含んでいる。第1のプログラムによって作成されたアプリケーションプログラムは、第1のコンピュータPC1から通信ケーブルL2を通してプログラマブルコントローラPLC1にダウンロードされる(図1参照)。 An application program for the programmable controller is created (programmed) by, for example, executing dedicated programming software (first program) on a general-purpose personal computer (first computer PC1). The first program supports a plurality of program languages standardized by the International Electrotechnical Commission (IEC) standard IEC61131-3 and the Japanese Industrial Standard JIS B 3503. The multiple programming languages supported by the first program include two text languages, Instruction List (IL) and Structured Text (ST). The multiple programming languages supported by the first program further include three graphic languages: Ladder Diagram (LD), Function Block Diagram (FBD) and Sequential Function Chart (SFC). contains. An application program created by the first program is downloaded from the first computer PC1 to the programmable controller PLC1 through the communication cable L2 (see FIG. 1).
 プログラマブル表示器用のアプリケーションプログラムは、例えば、汎用のパーソナルコンピュータ(第2のコンピュータPC2)で専用のプログラミングソフトウェア(第2のプログラム)を実行することによって作成(プログラミング)される。なお、第1のプログラム及び第2のプログラムはそれぞれ、マイクロソフト社製のウィンドウズ(登録商標)などのオペレーティングシステム上で動作する。第2のプログラムによって作成されたアプリケーションプログラムは、第2のコンピュータPC2から通信ケーブルL3を通してプログラマブル表示器PD1にダウンロードされる。 An application program for a programmable display is created (programmed) by, for example, executing dedicated programming software (second program) on a general-purpose personal computer (second computer PC2). The first program and the second program each operate on an operating system such as Windows (registered trademark) manufactured by Microsoft Corporation. The application program created by the second program is downloaded from the second computer PC2 to the programmable display PD1 through the communication cable L3.
 第1のコンピュータPC1と第2のコンピュータPC2は、有線LANの規格(100BASE-TX, 10BASE-Tなど)に準拠した通信機能を有している。第1のコンピュータPC1は、UTP(Unshielded Twisted Pair)ケーブルからなる通信ケーブルL1を介して第2のコンピュータPC2と接続される。また、第1のコンピュータPC1は、UTPケーブルからなる通信ケーブルL2を介してプログラマブルコントローラPLC1と接続される。第2のコンピュータPC2は、UTPケーブルからなる通信ケーブルL3を介してプログラマブル表示器PD1と接続される。ただし、第1のコンピュータPC1、第2のコンピュータPC2、プログラマブルコントローラPLC1、及びプログラマブル表示器PD1は、1つのローカルエリアネットワークに所属し、ルータ及びスイッチングハブなどのネットワーク機器を介して相互にデータ通信を行うように接続されても構わない。 The first computer PC1 and the second computer PC2 have communication functions that comply with wired LAN standards (100BASE-TX, 10BASE-T, etc.). The first computer PC1 is connected to the second computer PC2 via a communication cable L1 made up of a UTP (Unshielded Twisted Pair) cable. Also, the first computer PC1 is connected to the programmable controller PLC1 via a communication cable L2 made of a UTP cable. The second computer PC2 is connected to the programmable display PD1 via a communication cable L3 made of UTP cable. However, the first computer PC1, the second computer PC2, the programmable controller PLC1, and the programmable display PD1 belong to one local area network, and perform data communication with each other via network equipment such as routers and switching hubs. may be connected so as to
 なお、少なくとも第1のコンピュータPC1と第2のコンピュータPC2は、通信ケーブルL1を介して直接接続されているか、あるいは、ネットワーク機器を介して接続されているかに関わらず、1対1の双方向通信(ピアツーピア方式の通信)が可能である。 At least the first computer PC1 and the second computer PC2 are directly connected via a communication cable L1 or connected via a network device, and one-to-one two-way communication is possible. (peer-to-peer communication) is possible.
 実施形態に係るプログラミング支援方法は、第1のステップと、第2のステップと、第3のステップと、第4のステップと、を有する。第1のステップは、第1のコンピュータPC1と第2のコンピュータPC2をピアツーピア方式で通信可能な状態とする。第2のステップは、第1のコンピュータPC1で実行される第1のプログラムにおいて使用されるデータのうちから共用可能なデータを(第1の作業者に)選択させる。第3のステップは、第2のステップで選択された共用可能なデータを、第2のコンピュータPC2へ送信する。第4のステップは、第2のコンピュータPC2で実行される第2のプログラムにおいて、第3のステップで送信された共用可能なデータを取り込む。なお、第1の作業者は、第1のコンピュータPC1上で第1のプログラムを使用してプログラミングを行う者である。 The programming support method according to the embodiment has a first step, a second step, a third step, and a fourth step. The first step is to enable the first computer PC1 and the second computer PC2 to communicate in a peer-to-peer manner. The second step is to have (the first operator) select sharable data from among the data used in the first program executed on the first computer PC1. The third step is to send the sharable data selected in the second step to the second computer PC2. A fourth step captures the sharable data sent in the third step in a second program running on the second computer PC2. The first operator is a person who performs programming using the first program on the first computer PC1.
 しかして、実施形態に係るプログラミング支援方法によれば、第1のコンピュータPC1から第2のコンピュータPC2へ共用可能なデータを転送する場合において、第1の作業者が行う必須の作業は、共用可能なデータを選択する作業のみである。したがって、実施形態に係るプログラミング支援方法は、共用可能なデータを含むファイルをエクスポートし、エクスポートしたファイルを電子メールなどに添付して送信する場合と比べて、共用可能なデータの受け渡しに必要な作業の簡素化を図ることができる。 Thus, according to the programming support method according to the embodiment, when transferring sharable data from the first computer PC1 to the second computer PC2, the essential work performed by the first worker is It is only the task of selecting data that is appropriate. Therefore, in the programming support method according to the embodiment, the work required to transfer the sharable data is less than the case of exporting a file containing sharable data and sending the exported file as an attachment to e-mail or the like. can be simplified.
 また、実施形態に係るプログラミング支援用のプログラムは、第1のコンピュータPC1と第2のコンピュータPC2のそれぞれで実行される。 Also, the programming support program according to the embodiment is executed by each of the first computer PC1 and the second computer PC2.
 第1のコンピュータPC1で実行されるプログラミング支援用のプログラムは、第1の処理と、第2の処理と、第3の処理と、を第1のコンピュータPC1に実行させる。第1の処理は、第1のコンピュータPC1をピアツーピア方式で(第2のコンピュータPC2と)通信可能な状態とする。第2の処理は、第1のコンピュータPC1で実行されるプログラミング用のプログラム(第1のプログラム)において使用されるデータのうちから共用可能なデータを(第1の作業者に)選択させる。第3の処理は、第2の処理で選択された共用可能なデータを、ピアツーピア方式の通信によって(第2のコンピュータPC2へ)送信する。 The programming support program executed by the first computer PC1 causes the first computer PC1 to execute a first process, a second process, and a third process. The first process puts the first computer PC1 into a state in which it can communicate (with the second computer PC2) in a peer-to-peer manner. The second process causes (the first operator) to select sharable data from among the data used in the programming program (first program) executed by the first computer PC1. A third process transmits (to the second computer PC2) the sharable data selected in the second process via peer-to-peer communication.
 一方、第2のコンピュータPC2で実行されるプログラミング支援用のプログラムは、第4の処理と、第5の処理と、を第2のコンピュータPC2に実行させる。第4の処理は、第2のコンピュータPC2をピアツーピア方式で(第1のコンピュータPC1と)通信可能な状態とする。第5の処理は、第2のコンピュータPC2で実行されるプログラム(第2のプログラム)において、ピアツーピア方式で送信された共用可能なデータを(第2のプログラムに)取り込む。 On the other hand, the programming support program executed by the second computer PC2 causes the second computer PC2 to execute the fourth process and the fifth process. A fourth process enables the second computer PC2 to communicate (with the first computer PC1) in a peer-to-peer manner. A fifth process captures (into the second program) sharable data transmitted in a peer-to-peer manner in a program (second program) executed on the second computer PC2.
 しかして、実施形態に係るプログラミング支援用のプログラムによれば、第1のコンピュータPC1から第2のコンピュータPC2へ共用可能なデータを転送する場合、第1のコンピュータPC1において第1の作業者が行う必須の作業は、共用可能なデータを選択する作業のみである。一方、第2のコンピュータPC2において第2の作業者(第2のプログラムを使用する者)は何らかの作業を行う必要がない。したがって、実施形態に係るプログラミング支援用のプログラムは、共用可能なデータの送り手及び受け手のそれぞれにおいて、共用可能なデータの受け渡しに必要な作業の簡素化を図ることができる。 Thus, according to the programming support program according to the embodiment, when transferring sharable data from the first computer PC1 to the second computer PC2, the first operator at the first computer PC1 The only work required is the work of selecting sharable data. On the other hand, the second operator (person who uses the second program) does not need to perform any work in the second computer PC2. Therefore, the program for programming support according to the embodiment can simplify the work required to deliver sharable data at each of the sharable data sender and receiver.
 さらに、実施形態に係るプログラミング支援システムS1は、プログラミング用の第1のプログラムを実行する第1のコンピュータPC1と、プログラミング用の第2のプログラムを実行する第2のコンピュータPC2と、を有する。第1のコンピュータPC1と第2のコンピュータPC2は、ピアツーピア方式で通信可能である。第1のコンピュータPC1は、第1のプログラムと第2のプログラムで共用可能なデータを第2のコンピュータPC2へ送信する。第2のコンピュータPC2は、第2のプログラムにおいて、第1のコンピュータPC1から送信された共用可能なデータを取り込む。 Furthermore, the programming support system S1 according to the embodiment has a first computer PC1 that executes a first program for programming and a second computer PC2 that executes a second program for programming. The first computer PC1 and the second computer PC2 can communicate in a peer-to-peer manner. The first computer PC1 transmits data that can be shared between the first program and the second program to the second computer PC2. The second computer PC2 takes in the sharable data sent from the first computer PC1 in the second program.
 しかして、実施形態に係るプログラミング支援システムS1によれば、第1のコンピュータPC1において第1の作業者が行う必須の作業は、共用可能なデータを選択する作業のみである。第2のコンピュータPC2において第2の作業者は、何らかの作業を行う必要がない。したがって、実施形態に係るプログラミング支援システムS1は、共用可能なデータを含むファイルをエクスポートし、エクスポートしたファイルを電子メールなどに添付して送信する場合と比べて、共用可能なデータの受け渡しに必要な作業の簡素化を図ることができる。 However, according to the programming support system S1 according to the embodiment, the only task that the first operator must perform in the first computer PC1 is the task of selecting sharable data. The second operator at the second computer PC2 does not need to do any work. Therefore, the programming support system S1 according to the embodiment exports a file containing sharable data, attaches the exported file to e-mail or the like, and transmits it. Work can be simplified.
 (2)実施形態の詳細
 (2-1)実施形態に係るプログラミング支援システムの詳細
 実施形態に係るプログラミング支援システムS1(以下、支援システムS1と略す。)は、第1のコンピュータPC1と、第2のコンピュータPC2と、を有する(図1参照)。
(2) Details of the Embodiment (2-1) Details of the Programming Support System According to the Embodiment A programming support system S1 (hereinafter abbreviated as support system S1) according to the embodiment includes a first computer PC1, a second and a computer PC2 (see FIG. 1).
 第1のコンピュータPC1は、いわゆるデスクトップ型のパーソナルコンピュータである。すなわち、第1のコンピュータPC1は、CPU(Central Processing Unit)、メモリ、マザーボード、ハードディスクドライブ又はソリッドステートドライブ、電源装置、などをケースに収容した本体10と、ディスプレイ装置11と、キーボード12と、マウス13と、を備える。同様に、第2のコンピュータPC2は、CPU、メモリ、マザーボード、ハードディスクドライブ又はソリッドステートドライブ、電源装置、などをケースに収容した本体20と、ディスプレイ装置21と、キーボード22と、マウス23と、を備える。なお、第1のコンピュータPC1及び第2のコンピュータPC2は、OSとして、マイクロソフト社製のウィンドウズ(登録商標)を搭載している。ただし、第1のコンピュータPC1及び第2のコンピュータPC2は、ウィンドウズ(登録商標)以外のOS、例えば、アップル社製のマックOS(登録商標)、あるいは、リナックス(登録商標)などのウィンドウズ(登録商標)以外のOSでも構わない。また、第1のコンピュータPC1及び第2のコンピュータPC2の少なくとも一方が、ノート型のパーソナルコンピュータであっても構わない。 The first computer PC1 is a so-called desktop personal computer. That is, the first computer PC1 includes a main body 10 housing a CPU (Central Processing Unit), a memory, a motherboard, a hard disk drive or solid state drive, a power supply, etc., a display device 11, a keyboard 12, and a mouse. 13 and. Similarly, the second computer PC2 includes a main body 20 housing a CPU, a memory, a motherboard, a hard disk drive or solid state drive, a power supply, etc., a display device 21, a keyboard 22, and a mouse 23. Prepare. The first computer PC1 and the second computer PC2 are equipped with Windows (registered trademark) made by Microsoft Corporation as an OS. However, the first computer PC1 and the second computer PC2 use an OS other than Windows (registered trademark), such as Mac OS (registered trademark) manufactured by Apple Inc., or Windows (registered trademark) such as Linux (registered trademark). ) may be used. At least one of the first computer PC1 and the second computer PC2 may be a notebook personal computer.
 第1のコンピュータPC1は、第1のプログラムを実行する。第1のプログラムは、プログラマブルコントローラPLC1に種々の制御を行わせるアプリケーションプログラムを作成(プログラミング)するためのプログラミングソフトウェアである。 The first computer PC1 executes the first program. The first program is programming software for creating (programming) an application program that causes the programmable controller PLC1 to perform various controls.
 第1のプログラムは、第1のコンピュータPC1が搭載するOS上で動作する。したがって、第1のプログラムは、OSが提供する種々のGUI(Graphical User Interface)を利用することができる。 The first program runs on the OS installed in the first computer PC1. Therefore, the first program can use various GUIs (Graphical User Interfaces) provided by the OS.
 第1の作業者は、プログラマブルコントローラ用のアプリケーションプログラムの開発者である。ただし、アプリケーションプログラムの開発者は複数名であっても構わない。例えば、複数名の開発者がそれぞれ、機能ごと、あるいは工程ごとに適切なプログラム言語で作成したプログラムが結合されて1つのアプリケーションプログラムが完成する場合がある。この場合、複数名の開発者のそれぞれが「第1の作業者」になり得る。 The first worker is the developer of the application program for the programmable controller. However, the number of application program developers may be plural. For example, one application program may be completed by combining programs created by a plurality of developers in appropriate programming languages for each function or process. In this case, each of the multiple developers can be the "first worker".
 第2のコンピュータPC2は、第2のプログラムを実行する。第2のプログラムは、プログラマブル表示器PD1に種々の画面表示及び種々の入力受付などを行わせるアプリケーションプログラムを作成(プログラミング)するためのプログラミングソフトウェアである。 The second computer PC2 executes the second program. The second program is programming software for creating (programming) an application program for causing the programmable display device PD1 to display various screens and receive various inputs.
 第2のプログラムは、第2のコンピュータPC2が搭載するOS上で動作する。したがって、第2のプログラムは、第1のプログラムと同様に、OSが提供する種々のGUIを利用することができる。 The second program runs on the OS installed in the second computer PC2. Therefore, the second program can use various GUIs provided by the OS, like the first program.
 第2の作業者は、プログラマブル表示器用のアプリケーションプログラムを設計する画面設計者である。 The second worker is a screen designer who designs application programs for programmable displays.
 第1のプログラムと第2のプログラムで共用可能なデータは、グローバル変数(GV:Global Variable)である。グローバル変数は、例えば、プログラマブルコントローラPLC1の入力アドレス及び出力アドレスに割り付けられる。第1のプログラム及び第2のプログラムにおいて、プログラマブルコントローラPLC1の入力アドレス及び出力アドレスが固定アドレスでプログラミングされると、例えば、プログラマブルコントローラが機種変更された場合に入力アドレス及び出力アドレスを変更しなければならない。これに対して、グローバル変数を入力アドレス及び出力アドレスに割り付けていた場合、機種変更後のプログラマブルコントローラ用のアプリケーションプログラムにおいて、グローバル変数に自動的に適切な入力アドレス及び出力アドレスが割り付けられる。つまり、第1のプログラム及び第2のプログラムでグローバル変数を共用することにより、第1のプログラム及び第2のプログラムのそれぞれの作成(プログラミング)に要する負担の軽減を図ることができる。ただし、第1のプログラムと第2のプログラムで共用可能なデータは、グローバル変数に限定されない。 Data that can be shared between the first program and the second program is a global variable (GV). Global variables are assigned, for example, to the input and output addresses of the programmable controller PLC1. In the first program and the second program, if the input address and output address of the programmable controller PLC1 are programmed with fixed addresses, for example, if the programmable controller is changed, the input address and output address must be changed. not. On the other hand, when global variables are assigned to input addresses and output addresses, appropriate input addresses and output addresses are automatically assigned to the global variables in the application program for the programmable controller after the model change. That is, by sharing the global variables between the first program and the second program, it is possible to reduce the load required for creating (programming) each of the first program and the second program. However, data that can be shared between the first program and the second program are not limited to global variables.
 (2-2)実施形態に係るプログラミング支援用のプログラムの詳細
 実施形態に係るプログラミング支援用のプログラム(以下、支援プログラムと呼ぶ。)は、第1のコンピュータPC1及び第2のコンピュータPC2のそれぞれにインストールされる。支援プログラムは、常駐プログラム(常駐アプリケーションとも呼ばれる。)である。なお、支援プログラムは、電気通信回線を通じて提供されてもよい。あるいは、支援プログラムは、コンピュータシステムで読み取り可能なメモリカード、光学ディスク、ハードディスクドライブ等の非一時的記録媒体に記録されて提供されてもよい。
(2-2) Details of Program for Supporting Programming According to Embodiment A program for programming support according to the embodiment (hereinafter referred to as a support program) is installed in each of the first computer PC1 and the second computer PC2. Installed. Support programs are resident programs (also called resident applications). In addition, the support program may be provided through an electric communication line. Alternatively, the support program may be provided by being recorded on a non-temporary recording medium such as a computer system-readable memory card, optical disc, or hard disk drive.
 支援プログラムのメニューリストには、「ペアリング」のメニュー(処理)が含まれる。支援プログラムは、メニューリストから「ペアリング」が選択された場合、ペアリング用のダイアログボックスDB1を画面(ディスプレイ装置11、21の画面)に表示する(図2参照)。 The menu list of the support program includes the "pairing" menu (process). When "pairing" is selected from the menu list, the support program displays a dialog box DB1 for pairing on the screen (screens of the display devices 11 and 21) (see FIG. 2).
 ペアリング用のダイアログボックスDB1は、第1のテーブルT1、第2のテーブルT2、複数のコマンドボタンCB1~CB4を有している。 A pairing dialog box DB1 has a first table T1, a second table T2, and a plurality of command buttons CB1 to CB4.
 第1のテーブルT1は、現在のペアリングの状態を示すスペース、ペアリング相手のコンピュータの名前を示すスペース、ペアリング相手のコンピュータに割り当てられているIPアドレスを示すスペースを有する。ペアリングの状態を示すスペースには、「ペアリング済み」と「ペアリング(切断中)」のいずれかの文字列が表示される。 The first table T1 has a space indicating the current pairing status, a space indicating the name of the pairing partner computer, and a space indicating the IP address assigned to the pairing partner computer. Either "paired" or "paired (disconnected)" is displayed in the space indicating the pairing status.
 第2のテーブルT2は、ペアリングを要求してきている相手(要求元)のコンピュータの名前を示すスペース、要求元のコンピュータに割り当てられているIPアドレスを示すスペースを有する。 The second table T2 has a space indicating the name of the partner (request source) computer requesting pairing, and a space indicating the IP address assigned to the request source computer.
 第1のテーブルT1の下に2つのコマンドボタンCB1、CB2が左右に並べて配置されている。左側のコマンドボタンCB1は、ペアリングの処理を開始させるためのコマンドボタンである。右側のコマンドボタンCB2は、ペアリング済みのコンピュータとのペアリングを解除する処理を実行させるためのコマンドボタンである。 Two command buttons CB1 and CB2 are arranged side by side under the first table T1. The left command button CB1 is a command button for starting the pairing process. The command button CB2 on the right side is a command button for executing a process of canceling pairing with a paired computer.
 第2のテーブルT2の下に2つのコマンドボタンCB3、CB4が左右に並べて配置されている。左側のコマンドボタンCB3は、ペアリングの要求に対してペアリングを許可する処理を実行させるためのコマンドボタンである。右側のコマンドボタンCB4は、ペアリングの要求に対してペアリングを拒否する処理を実行させるためのコマンドボタンである。 Two command buttons CB3 and CB4 are arranged side by side under the second table T2. The command button CB3 on the left side is a command button for executing processing for permitting pairing in response to a pairing request. The command button CB4 on the right side is a command button for executing a process of rejecting the pairing in response to the pairing request.
 次に、図2~図5を参照して、支援プログラムによるプログラミング支援方法について説明する。図3及び図4は、プログラミング支援方法を説明するためのシーケンス図である。また、図5は、第1のプログラムのメニュー画面M1の一例である。 Next, the programming support method by the support program will be described with reference to FIGS. 3 and 4 are sequence diagrams for explaining the programming support method. Also, FIG. 5 is an example of the menu screen M1 of the first program.
 図3及び図4において、「第1の共有フォルダ」は、第1のコンピュータPC1のハードディスクドライブ又はソリッドステートドライブに作成される。「第1の共有フォルダ」は、第1のコンピュータPC1だけでなく、第2のコンピュータPC2からもアクセス(読み書き)可能なファイルフォルダである。同様に、「第2の共有フォルダ」は、第2のコンピュータPC2のハードディスクドライブ又はソリッドステートドライブに作成される。「第2の共有フォルダ」は、第2のコンピュータPC2だけでなく、第1のコンピュータPC1からもアクセス(読み書き)可能なファイルフォルダである。  In Figures 3 and 4, the "first shared folder" is created in the hard disk drive or solid state drive of the first computer PC1. The "first shared folder" is a file folder that can be accessed (read and written) not only from the first computer PC1 but also from the second computer PC2. Similarly, a "second shared folder" is created on the hard disk drive or solid state drive of the second computer PC2. The "second shared folder" is a file folder that can be accessed (read and written) not only from the second computer PC2 but also from the first computer PC1.
 まず、第1のプログラムを使ってプログラミング作業を行う第1の作業者が、支援プログラムを実行してペアリング開始の操作を行う(図3の[01]参照)。すると、支援プログラムは、第1のコンピュータPC1のコンピュータ名とIPアドレスを含むペアリング要求の送信フレームを第2のコンピュータPC2のIPアドレス宛に送信する(図3の[02]参照)。 First, the first operator who performs the programming work using the first program executes the support program and performs the pairing start operation (see [01] in Fig. 3). The support program then sends a pairing request transmission frame containing the computer name and IP address of the first computer PC1 to the IP address of the second computer PC2 (see [02] in FIG. 3).
 第2のコンピュータPC2の支援プログラムは、ペアリング要求の送信フレームを受信する。支援プログラムは、当該送信フレームに含まれるコンピュータ名とIPアドレスを、ダイアログボックスDB1の第2のテーブルT2に表示することで第2の作業者に対してペアリング可否を確認する(図2及び図3の[03]参照)。第2の作業者は、マウス23を操作することにより、ダイアログボックスDB1の第2のテーブルT2の下に配置されているコマンドボタンCB3を押して、支援プログラムにペアリングの許可を与える(図3の[04]参照)。支援プログラムは、ペアリング許可のメッセージを含む送信フレームを第1のコンピュータPC1のIPアドレス宛に送信する(図3の[05]参照)。 The support program of the second computer PC2 receives the transmission frame of the pairing request. The support program displays the computer name and IP address included in the transmission frame in the second table T2 of the dialog box DB1 to confirm the possibility of pairing with the second worker (FIGS. 2 and 4). 3 [03]). The second operator presses the command button CB3 arranged below the second table T2 of the dialog box DB1 by operating the mouse 23 to give the pairing permission to the support program (see FIG. 3). [04]). The support program sends a transmission frame including a pairing permission message to the IP address of the first computer PC1 (see [05] in FIG. 3).
 第1のコンピュータPC1の支援プログラムは、ペアリング許可の送信フレームを受信すると、ダイアログボックスDB1の第1のテーブルT1におけるペアリングの状態を示すスペースに「ペアリング済み」の文字列を表示させる(図2参照)。第1の作業者は、当該文字列(「ペアリング済み」の文字列)を見て、第1のコンピュータPC1と第2のコンピュータPC2のペアリングが完了したことを確認できる(図3の[06]参照)。 When the support program of the first computer PC1 receives the pairing permission transmission frame, it displays the character string "paired" in the space indicating the pairing state in the first table T1 of the dialog box DB1 ( See Figure 2). The first operator can confirm that the pairing between the first computer PC1 and the second computer PC2 is completed by looking at the character string ("paired" character string) ([ 06]).
 第1の作業者は、第1のプログラムを使用してアプリケーションプログラムを作成する。第1の作業者は、アプリケーションプログラム中で宣言したグローバル変数(GV)を、第2の作業者が作成するアプリケーションプログラムと共用する場合がある。この場合、第1の作業者は、第1のプログラムのメニュー画面M1において、共用するグローバル変数を選択する(図4の[07]及び図5参照)。具体的には、第1の作業者は、メニュー画面M1に表示されたグローバル変数の変数名(例えば、「GV1」)の表示箇所にマウスポインタを合わせ、マウス13を右クリックしてコンテキストメニューCM1を表示させる(図5参照)。さらに、第1の作業者が、コンテキストメニューCM1の中の「Send To」の項目にマウスポインタを合わせると、選択したグローバル変数の送信先の情報が表示される。この送信先の情報は、第1のコンピュータPC1とペアリングされている第2のコンピュータPC2のコンピュータ名「PC2」、及びグローバル変数を共用する、第2のプログラムで作成中のアプリケーションプログラムの名前「Project A」を含む(図5参照)。そして、第1の作業者がマウス13を操作(左クリック)してグローバル変数の選択及び送信先を確定させると、第1のプログラムは、選択されたグローバル変数を含むファイル(例えば、CSV形式のファイル)を第1の共有フォルダに書き込む(図4の[08]参照)。 A first worker creates an application program using the first program. A first worker may share a global variable (GV) declared in an application program with an application program created by a second worker. In this case, the first operator selects a shared global variable on the menu screen M1 of the first program (see [07] in FIG. 4 and FIG. 5). Specifically, the first worker places the mouse pointer on the display location of the variable name (for example, "GV1") of the global variable displayed on the menu screen M1, right-clicks the mouse 13, and selects the context menu CM1. is displayed (see FIG. 5). Furthermore, when the first worker places the mouse pointer on the item "Send To" in the context menu CM1, the information of the destination of the selected global variable is displayed. This destination information includes the computer name "PC2" of the second computer PC2 paired with the first computer PC1, and the name "PC2" of the application program being created in the second program that shares the global variables. Project A” (see Figure 5). Then, when the first operator operates (left-clicks) the mouse 13 to confirm the selection of the global variables and the transmission destination, the first program creates a file containing the selected global variables (for example, a CSV file). file) to the first shared folder (see [08] in Fig. 4).
 支援プログラムは、第1の共有フォルダに書き込まれたファイル(以下、グローバル変数ファイルGVと呼ぶ。)を読み込み(図4の[09]参照)、読み込んだグローバル変数ファイルGVを、ペアリングされている第2のコンピュータPC2に転送する(図4の[10]参照)。第2のコンピュータPC2において、第1のコンピュータPC1から転送されたグローバル変数ファイルGVは、第2のコンピュータPC2で動作する支援プログラムによって第2の共有フォルダに書き込まれる(図4の[11]参照)。さらに、支援プログラムは、第2のプログラムを通じて、第2の作業者に対してグローバル変数ファイルGVの追加の確認を行わせる(図4の[12]参照)。第2の作業者が追加を許可すると(図4の[13]参照)、第2のプログラムが第2の共有フォルダからグローバル変数ファイルGVを読み出し、読み出したグローバル変数ファイルGVに含まれるグローバル変数を、第2のプログラムで作成されるアプリケーションプログラムに追加する(図4の[14]参照)。第2のプログラムは、グローバル変数の読込が完了したことを第2のコンピュータPC2の支援プログラムに通知する(図4の[15]参照)。これにより、第2のプログラムは、第1のプログラムとグローバル変数を共用することができる。なお、支援プログラムは、第2のプログラムからグローバル変数の読込完了の通知を受け取ると、第1のコンピュータPC1の支援プログラムに対して、グローバル変数ファイルGVの転送終了を通知する(図4の[16]参照)。 The support program reads the file (hereinafter referred to as global variable file GV) written in the first shared folder (see [09] in FIG. 4), and stores the read global variable file GV in the paired Transfer to the second computer PC2 (see [10] in FIG. 4). In the second computer PC2, the global variable file GV transferred from the first computer PC1 is written in the second shared folder by the support program running on the second computer PC2 (see [11] in FIG. 4). . Furthermore, the support program causes the second worker to confirm addition of the global variable file GV through the second program (see [12] in FIG. 4). When the second worker permits the addition (see [13] in FIG. 4), the second program reads the global variable file GV from the second shared folder, and the global variables contained in the read global variable file GV are , is added to the application program created by the second program (see [14] in FIG. 4). The second program notifies the support program of the second computer PC2 that the global variables have been read (see [15] in FIG. 4). This allows the second program to share global variables with the first program. When the support program receives the global variable read completion notification from the second program, it notifies the support program of the first computer PC1 of the end of the transfer of the global variable file GV ([16 in FIG. 4]. ]reference).
 第1のコンピュータPC1の支援プログラムは、第2のコンピュータPC2の支援プログラムから受け取ったグローバル変数ファイルGVの転送終了の通知を第1のプログラムに転送する(図4の[17]参照)。第1のプログラムは、支援プログラムから転送終了の通知を受け取ると、グローバル変数の転送が完了したことを第1の作業者に知らせるためのメッセージをメニュー画面M1に表示させる(図4の[18]参照)。 The support program of the first computer PC1 transfers to the first program the notification of the end of transfer of the global variable file GV received from the support program of the second computer PC2 (see [17] in FIG. 4). When the first program receives the transfer end notification from the support program, it displays a message on the menu screen M1 to inform the first worker that the transfer of the global variables has been completed ([18] in FIG. 4). reference).
 以上のようにして、支援プログラムによるプログラミング支援方法が実施される。 As described above, the programming support method by the support program is implemented.
 ここで、第1のコンピュータPC1と第2のコンピュータPC2が所属するネットワークにファイルサーバ(ストレージサーバ)が存在していると仮定する。このとき、ファイルサーバを介して第1のコンピュータPC1から第2のコンピュータPC2へグローバル変数ファイルGVを転送することが考えられる。 Here, it is assumed that a file server (storage server) exists in the network to which the first computer PC1 and the second computer PC2 belong. At this time, it is conceivable to transfer the global variable file GV from the first computer PC1 to the second computer PC2 via the file server.
 しかしながら、ファイルサーバを介してグローバル変数ファイルGVを転送する場合、グローバル変数ファイルGVの選択からファイルサーバへの書込までを含めて、第1の作業者が複数回の操作を行う必要がある。同様に、ファンルサーバに保存されたグローバル変数ファイルGVから必要なグローバル変数ファイルGVを選択して第2のコンピュータPC2にダウンロードするまで、第2の作業者が複数回の操作を行う必要がある。つまり、ファイルサーバを介してグローバル変数ファイルGVを転送する方法では、共用可能なデータ(グローバル変数ファイルGV)の受け渡しに必要な作業の簡素化を図ることが非常に困難である。 However, when transferring the global variable file GV via the file server, the first operator needs to perform multiple operations, including selecting the global variable file GV and writing it to the file server. Similarly, it is necessary for the second operator to perform multiple operations until the necessary global variable files GV are selected from the global variable files GV stored in the fan server and downloaded to the second computer PC2. In other words, with the method of transferring the global variable file GV via the file server, it is very difficult to simplify the work required to transfer the sharable data (global variable file GV).
 一方、実施形態に係るプログラミング支援方法、支援プログラム及びプログラミング支援システムS1によれば、第1のコンピュータPC1と第2のコンピュータPC2がピアツーピア方式で直接データを授受する。そのため、実施形態に係るプログラミング支援方法、支援プログラム及びプログラミング支援システムS1は、共用可能なデータ(グローバル変数ファイルGV)の受け渡しに必要な作業の簡素化を図ることができる。しかも、第1のコンピュータPC1と第2のコンピュータPC2がピアツーピア方式で直接データを授受するので、共用されるデータ(グローバル変数)の整合性を保ちやすいという利点がある。 On the other hand, according to the programming support method, support program, and programming support system S1 according to the embodiment, the first computer PC1 and the second computer PC2 directly exchange data in a peer-to-peer manner. Therefore, the programming support method, the support program, and the programming support system S1 according to the embodiment can simplify the work required to transfer the sharable data (global variable file GV). Moreover, since the first computer PC1 and the second computer PC2 exchange data directly in a peer-to-peer manner, there is an advantage that it is easy to maintain consistency of shared data (global variables).
 ところで、実施形態において、第1のコンピュータPC1で実行される第1のプログラムと第2のコンピュータPC2で実行される第2のプログラムが双方とも、プログラマブルコントローラのアプリケーションプログラムを作成するためのプログラミングソフトウェアであっても構わない。あるいは、第1のコンピュータPC1で実行される第1のプログラムと第2のコンピュータPC2で実行される第2のプログラムが双方とも、プログラマブル表示器のアプリケーションプログラムを作成するためのプログラミングソフトウェアであっても構わない。 By the way, in the embodiment, both the first program executed by the first computer PC1 and the second program executed by the second computer PC2 are programming software for creating an application program for the programmable controller. It doesn't matter if there is. Alternatively, both the first program executed by the first computer PC1 and the second program executed by the second computer PC2 are programming software for creating an application program for the programmable display. I do not care.
 また、実施形態に係るプログラミング支援方法、支援プログラム及びプログラミング支援システムS1では、第1のコンピュータPC1の第1の共有フォルダから、第2のコンピュータPC2の第2の共有フォルダに共用可能なデータを転送する。そのため、実施形態に係るプログラミング支援方法、支援プログラム及びプログラミング支援システムS1は、共用可能なデータを共有でないフォルダ間で転送する場合に比べて、共用可能でないデータを共用可能なデータで誤って上書きしてしまうというような不具合の発生を抑制することができる。 Further, in the programming support method, support program, and programming support system S1 according to the embodiment, sharable data is transferred from the first shared folder of the first computer PC1 to the second shared folder of the second computer PC2. do. Therefore, the programming support method, support program, and programming support system S1 according to the embodiment mistakenly overwrite non-sharable data with sharable data, compared to transferring sharable data between folders that are not shared. It is possible to suppress the occurrence of a problem such as being lost.
 (3)まとめ
 本開示の第1の態様に係るプログラミング支援方法は、コンピュータを使用したプログラミングを支援する方法である。第1の態様に係るプログラミング支援方法は、第1のステップと、第2のステップと、第3のステップと、第4のステップと、を有する。第1のステップは、第1のコンピュータ(PC1)と第2のコンピュータ(PC2)をピアツーピア方式で通信可能な状態とする。第2のステップは、第1のコンピュータ(PC1)で実行される第1のプログラムにおいて使用されるデータのうちから共用可能なデータを選択させる。第3のステップは、第2のステップで選択された共用可能なデータを、第2のコンピュータ(PC2)へ送信する。第4のステップは、第2のコンピュータ(PC2)で実行される第2のプログラムにおいて、第3のステップで送信された共用可能なデータを取り込む。
(3) Conclusion A programming support method according to the first aspect of the present disclosure is a method of supporting programming using a computer. A programming support method according to a first aspect has a first step, a second step, a third step, and a fourth step. The first step is to enable a first computer (PC1) and a second computer (PC2) to communicate in a peer-to-peer manner. The second step is to select sharable data from among the data used in the first program running on the first computer (PC1). A third step sends the sharable data selected in the second step to a second computer (PC2). A fourth step captures the sharable data sent in the third step in a second program running on a second computer (PC2).
 第1の態様に係るプログラミング支援方法は、第1のコンピュータ(PC1)から第2のコンピュータ(PC2)へ共用可能なデータを転送する場合において、第1の作業者が行う必須の作業は、共用可能なデータを選択する作業のみである。したがって、第1の態様に係るプログラミング支援方法は、共用可能なデータを含むファイルをエクスポートし、エクスポートしたファイルを電子メールなどに添付して送信する場合と比べて、共用可能なデータの受け渡しに必要な作業の簡素化を図ることができる。 In the programming support method according to the first aspect, when transferring sharable data from the first computer (PC1) to the second computer (PC2), the essential work performed by the first worker is It is only a task of selecting possible data. Therefore, in the programming support method according to the first aspect, compared to the case of exporting a file containing sharable data and sending the exported file as an attachment to an e-mail or the like, it is necessary to transfer sharable data. work can be simplified.
 本開示の第2の態様に係るプログラミング支援方法は、第1の態様との組合せにより実現され得る。第2の態様に係るプログラミング支援方法は、第2のステップにおいて、選択された共用可能なデータを、第1のコンピュータが有する第1の共有フォルダに格納することが好ましい。第3のステップにおいて、第1の共有フォルダから、第2のコンピュータが有する第2の共有フォルダに共用可能なデータを転送することが好ましい。 A programming support method according to the second aspect of the present disclosure can be implemented in combination with the first aspect. Preferably, in the second step of the programming support method according to the second aspect, the selected sharable data is stored in a first shared folder of the first computer. Preferably, in the third step, the sharable data is transferred from the first shared folder to a second shared folder of the second computer.
 第2の態様に係るプログラミング支援方法は、共用可能なデータを共有でないフォルダ間で転送する場合に比べて、共用可能でないデータを共用可能なデータで誤って上書きしてしまうというような不具合の発生を抑制することができる。 In the programming support method according to the second aspect, compared with the case where sharable data is transferred between folders that are not shared, problems such as overwriting non-sharable data with sharable data by mistake occur. can be suppressed.
 本開示の第3の態様に係るプログラミング支援方法は、第1又は第2の態様との組合せにより実現され得る。第3の態様に係るプログラミング支援方法において、共用可能なデータは、第1のプログラム及び第2のプログラムのそれぞれで使用される変数のデータであることが好ましい。 A programming support method according to the third aspect of the present disclosure can be implemented in combination with the first or second aspect. In the programming support method according to the third aspect, the sharable data is preferably data of variables used in each of the first program and the second program.
 第3の態様に係るプログラミング支援方法は、第1のプログラム及び第2のプログラムのそれぞれで使用される変数のデータを共用することにより、第1のプログラム及び第2のプログラムのそれぞれで個別に変数を宣言する場合に比べてプログラミング作業の作業性の向上を図ることができる。 In the programming support method according to the third aspect, by sharing data of variables used in each of the first program and the second program, each of the first program and the second program individually It is possible to improve the workability of the programming work compared to the case of declaring
 本開示の第4の態様に係るプログラミング支援用のプログラムは、コンピュータを使用したプログラミングを支援するプログラミング支援用のプログラムである。第4の態様に係るプログラミング支援用のプログラムは、コンピュータ(第1のコンピュータPC1)に、第1の処理と、第2の処理と、第3の処理と、を実行させる。第1の処理は、コンピュータをピアツーピア方式で通信可能な状態とする。第2の処理は、コンピュータで実行されるプログラミング用のプログラムにおいて使用されるデータのうちから共用可能なデータを選択させる。第3の処理は、第2の処理で選択された共用可能なデータを、ピアツーピア方式の通信によって送信する。 A programming support program according to the fourth aspect of the present disclosure is a programming support program that supports programming using a computer. A programming support program according to a fourth aspect causes a computer (first computer PC1) to execute a first process, a second process, and a third process. The first process puts the computer into a state where it can communicate in a peer-to-peer manner. A second process involves selecting sharable data from data used in a programming program running on a computer. A third process transmits the sharable data selected in the second process via peer-to-peer communication.
 第4の態様に係るプログラミング支援用のプログラムは、共用可能なデータの受け渡しに必要な作業の簡素化を図ることができる。 The program for programming support according to the fourth aspect can simplify the work required to transfer sharable data.
 本開示の第5の態様に係るプログラミング支援用のプログラムは、第4の態様との組合せにより実現され得る。第5の態様に係るプログラミング支援用のプログラムは、第2の処理において、選択された共用可能なデータを、コンピュータが有する第1の共有フォルダに格納させることが好ましい。第5の態様に係るプログラミング支援用のプログラムは、第3の処理において、第1の共有フォルダから、送信先のコンピュータが有する第2の共有フォルダに共用可能なデータを転送させることが好ましい。 A program for programming support according to the fifth aspect of the present disclosure can be implemented in combination with the fourth aspect. Preferably, the programming support program according to the fifth aspect causes the selected sharable data to be stored in the first shared folder of the computer in the second process. Preferably, the programming support program according to the fifth aspect transfers sharable data from the first shared folder to a second shared folder of the destination computer in the third process.
 第5の態様に係るプログラミング支援用のプログラムは、共用可能なデータを共有でないフォルダ間で転送する場合に比べて、共用可能でないデータを共用可能なデータで誤って上書きしてしまうというような不具合の発生を抑制することができる。 The program for programming support according to the fifth aspect has the problem that non-sharable data is mistakenly overwritten with sharable data compared to the case where sharable data is transferred between non-sharable folders. can be suppressed.
 本開示の第6の態様に係るプログラミング支援用のプログラムは、コンピュータを使用したプログラミングを支援するプログラミング支援用のプログラムである。第6の態様に係るプログラミング支援用のプログラムは、コンピュータ(第2のコンピュータPC2)に、第4の処理と、第5の処理と、を実行させる。第4の処理は、コンピュータをピアツーピア方式で通信可能な状態とする。第5の処理は、コンピュータで実行されるプログラムにおいて、ピアツーピア方式で送信された共用可能なデータを取り込む。 A programming support program according to the sixth aspect of the present disclosure is a programming support program that supports programming using a computer. A programming support program according to a sixth aspect causes a computer (second computer PC2) to execute a fourth process and a fifth process. A fourth process puts the computer into a state capable of communicating in a peer-to-peer manner. A fifth process captures shareable data sent peer-to-peer in a program running on a computer.
 第6の態様に係るプログラミング支援用のプログラムは、共用可能なデータの受け渡しに必要な作業の簡素化を図ることができる。 The program for programming support according to the sixth aspect can simplify the work required to transfer sharable data.
 本開示の第7の態様に係るプログラミング支援用のプログラムは、第6の態様との組合せにより実現され得る。第7の態様に係るプログラミング支援用のプログラムは、第5の処理において、コンピュータが有する第2の共有フォルダに転送された共用可能なデータを取り込むことが好ましい。 A program for programming support according to the seventh aspect of the present disclosure can be implemented in combination with the sixth aspect. It is preferable that the programming support program according to the seventh aspect imports the sharable data transferred to the second shared folder of the computer in the fifth process.
 第7の態様に係るプログラミング支援用のプログラムは、共用可能なデータを共有でないフォルダ間で転送する場合に比べて、共用可能でないデータを共用可能なデータで誤って上書きしてしまうというような不具合の発生を抑制することができる。 The program for programming support according to the seventh aspect has a problem that non-sharable data is mistakenly overwritten with sharable data compared to the case where sharable data is transferred between non-sharable folders. can be suppressed.
 本開示の第8の態様に係るプログラミング支援用のプログラムは、第4~第7のいずれかの態様との組合せにより実現され得る。第8の態様に係るプログラミング支援用のプログラムにおいて、共用可能なデータは、コンピュータで実行されるプログラミング用のプログラムで使用される変数のデータであることが好ましい。 A programming support program according to the eighth aspect of the present disclosure can be realized by combining with any one of the fourth to seventh aspects. In the programming support program according to the eighth aspect, the sharable data is preferably variable data used in the programming program executed by the computer.
 第8の態様に係るプログラミング支援用のプログラムは、第1のプログラム及び第2のプログラムのそれぞれで使用される変数のデータを共用することにより、第1のプログラム及び第2のプログラムのそれぞれで個別に変数を宣言する場合に比べてプログラミング作業の作業性の向上を図ることができる。 A program for programming support according to an eighth aspect shares data of variables used in each of the first program and the second program, so that each of the first program and the second program individually The workability of the programming work can be improved compared to the case of declaring variables in the .
 本開示の第9の態様に係るプログラミング支援システム(S1)は、プログラミング用の第1のプログラムを実行する第1のコンピュータ(PC1)と、プログラミング用の第2のプログラムを実行する第2のコンピュータ(PC2)と、を有する。第1のコンピュータ(PC1)と第2のコンピュータ(PC2)は、ピアツーピア方式で通信可能である。第1のコンピュータ(PC1)は、第1のプログラムと第2のプログラムで共用可能なデータを第2のコンピュータ(PC2)へ送信する。第2のコンピュータ(PC2)は、第2のプログラムにおいて、第1のコンピュータ(PC1)から送信された共用可能なデータを取り込む。 A programming support system (S1) according to a ninth aspect of the present disclosure includes a first computer (PC1) that executes a first program for programming, and a second computer that executes a second program for programming. (PC2) and A first computer (PC1) and a second computer (PC2) can communicate in a peer-to-peer fashion. The first computer (PC1) transmits data that can be shared between the first program and the second program to the second computer (PC2). The second computer (PC2) takes in the sharable data sent from the first computer (PC1) in the second program.
 第9の態様に係るプログラミング支援システム(S1)は、第1のコンピュータ(PC1)から第2のコンピュータ(PC2)へ共用可能なデータを転送する場合において、第1の作業者が行う必須の作業は、共用可能なデータを選択する作業のみである。したがって、第9の態様に係るプログラミング支援システム(S1)は、共用可能なデータを含むファイルをエクスポートし、エクスポートしたファイルを電子メールなどに添付して送信する場合と比べて、共用可能なデータの受け渡しに必要な作業の簡素化を図ることができる。 In the programming support system (S1) according to the ninth aspect, when transferring sharable data from the first computer (PC1) to the second computer (PC2), the essential work performed by the first operator is only the task of selecting sharable data. Therefore, the programming support system (S1) according to the ninth aspect exports a file containing sharable data, and attaches the exported file to an e-mail or the like and transmits it. It is possible to simplify the work required for delivery.
 本開示の第10の態様に係るプログラミング支援システム(S1)は、第9の態様との組合せにより実現され得る。第10の態様に係るプログラミング支援システム(S1)において、第1のコンピュータ(PC1)及び第2のコンピュータ(PC2)はそれぞれ、互いに読み書き可能な共有フォルダを有することが好ましい。第10の態様に係るプログラミング支援システム(S1)は、第1のコンピュータ(PC1)が有する共有フォルダに格納された共用可能なデータを、第2のコンピュータ(PC2)が有する共有フォルダに転送することが好ましい。 A programming support system (S1) according to the tenth aspect of the present disclosure can be realized in combination with the ninth aspect. In the programming support system (S1) according to the tenth aspect, it is preferable that the first computer (PC1) and the second computer (PC2) each have a mutually readable and writable shared folder. A programming support system (S1) according to a tenth aspect transfers sharable data stored in a shared folder of a first computer (PC1) to a shared folder of a second computer (PC2). is preferred.
 第10の態様に係るプログラミング支援システム(S1)は、共用可能なデータを共有でないフォルダ間で転送する場合に比べて、共用可能でないデータを共用可能なデータで誤って上書きしてしまうというような不具合の発生を抑制することができる。 In the programming support system (S1) according to the tenth aspect, compared to the case of transferring sharable data between folders that are not shared, it is possible to accidentally overwrite non-sharable data with sharable data. It is possible to suppress the occurrence of defects.
 本開示の第11の態様に係るプログラミング支援システム(S1)は、第9又は第10の態様との組合せにより実現され得る。第11の態様に係るプログラミング支援システム(S1)において、共用可能なデータは、第1のプログラム及び第2のプログラムのそれぞれで使用される変数のデータであることが好ましい。 A programming support system (S1) according to the eleventh aspect of the present disclosure can be realized by combining with the ninth or tenth aspect. In the programming support system (S1) according to the eleventh aspect, the sharable data is preferably variable data used in each of the first program and the second program.
 第11の態様に係るプログラミング支援システム(S1)は、第1のプログラム及び第2のプログラムのそれぞれで使用される変数のデータを共用することにより、第1のプログラム及び第2のプログラムのそれぞれで個別に変数を宣言する場合に比べてプログラミング作業の作業性の向上を図ることができる。 A programming support system (S1) according to an eleventh aspect shares data of variables used in each of the first program and the second program, so that each of the first program and the second program It is possible to improve the workability of the programming work compared to declaring variables individually.
 S1 プログラミング支援システム
 PC1 第1のコンピュータ
 PC2 第2のコンピュータ
S1 programming support system PC1 first computer PC2 second computer

Claims (11)

  1.  コンピュータを使用したプログラミングを支援する方法であって、
     第1のコンピュータと第2のコンピュータをピアツーピア方式で通信可能な状態とする第1のステップと、
     前記第1のコンピュータで実行される第1のプログラムにおいて使用されるデータのうちから共用可能なデータを選択させる第2のステップと、
     前記第2のステップで選択された前記共用可能なデータを、前記第2のコンピュータへ送信する第3のステップと、
     前記第2のコンピュータで実行される第2のプログラムにおいて、前記第3のステップで送信された前記共用可能なデータを取り込む第4のステップと、
    を有する、
    プログラミング支援方法。
    A method of assisting programming using a computer, comprising:
    a first step of enabling the first computer and the second computer to communicate in a peer-to-peer manner;
    a second step of selecting sharable data from data used in a first program executed on said first computer;
    a third step of transmitting said sharable data selected in said second step to said second computer;
    a fourth step, in a second program executed on the second computer, of retrieving the sharable data transmitted in the third step;
    has a
    Programming assistance method.
  2.  前記第2のステップにおいて、選択された前記共用可能なデータを、前記第1のコンピュータが有する第1の共有フォルダに格納し、
     前記第3のステップにおいて、前記第1の共有フォルダから、前記第2のコンピュータが有する第2の共有フォルダに前記共用可能なデータを転送する、
    請求項1記載のプログラミング支援方法。
    storing the selected sharable data in a first shared folder of the first computer in the second step;
    In the third step, transferring the sharable data from the first shared folder to a second shared folder of the second computer;
    2. The programming support method according to claim 1.
  3.  前記共用可能なデータは、前記第1のプログラム及び前記第2のプログラムのそれぞれで使用される変数のデータである、
    請求項1又は2記載のプログラミング支援方法。
    The sharable data is variable data used in each of the first program and the second program,
    3. The programming support method according to claim 1 or 2.
  4.  コンピュータを使用したプログラミングを支援するプログラミング支援用のプログラムであって、
     前記コンピュータをピアツーピア方式で通信可能な状態とする第1の処理と、
     前記コンピュータで実行されるプログラミング用のプログラムにおいて使用されるデータのうちから共用可能なデータを選択させる第2の処理と、
     前記第2の処理で選択された前記共用可能なデータを、前記ピアツーピア方式の通信によって送信する第3の処理と、
    を、前記コンピュータに実行させる、
    プログラミング支援用のプログラム。
    A programming support program that supports programming using a computer,
    a first process that enables the computer to communicate in a peer-to-peer manner;
    a second process for selecting sharable data from data used in a programming program executed by the computer;
    a third process of transmitting the sharable data selected in the second process through the peer-to-peer communication;
    causing the computer to execute
    A program for programming assistance.
  5.  前記第2の処理において、選択された前記共用可能なデータを、前記コンピュータが有する第1の共有フォルダに格納させ、
     前記第3の処理において、前記第1の共有フォルダから、送信先のコンピュータが有する第2の共有フォルダに前記共用可能なデータを転送させる、
    請求項4記載のプログラミング支援用のプログラム。
    storing the selected sharable data in a first shared folder of the computer in the second process;
    transferring the sharable data from the first shared folder to a second shared folder of a destination computer in the third process;
    5. A program for programming support according to claim 4.
  6.  コンピュータを使用したプログラミングを支援するプログラミング支援用のプログラムであって、
     前記コンピュータをピアツーピア方式で通信可能な状態とする第4の処理と、
     前記コンピュータで実行されるプログラムにおいて、前記ピアツーピア方式で送信された共用可能なデータを取り込む第5の処理と、
    を、前記コンピュータに実行させる、
    プログラミング支援用のプログラム。
    A programming support program that supports programming using a computer,
    a fourth process that enables the computer to communicate in a peer-to-peer manner;
    a fifth process, in the program executed by the computer, of capturing the peer-to-peer transmitted sharable data;
    causing the computer to execute
    A program for programming assistance.
  7.  前記第5の処理において、前記コンピュータが有する第2の共有フォルダに転送された前記共用可能なデータを取り込む、
    請求項6記載のプログラミング支援用のプログラム。
    In the fifth process, importing the sharable data transferred to a second shared folder of the computer;
    7. A program for programming support according to claim 6.
  8.  前記共用可能なデータは、前記コンピュータで実行されるプログラミング用のプログラムで使用される変数のデータである、
    請求項4~7のいずれか1項に記載のプログラミング支援用のプログラム。
    The sharable data is variable data used in a programming program executed on the computer,
    A program for programming support according to any one of claims 4 to 7.
  9.  プログラミング用の第1のプログラムを実行する第1のコンピュータと、
     プログラミング用の第2のプログラムを実行する第2のコンピュータと、
    を有し、
     前記第1のコンピュータと前記第2のコンピュータは、ピアツーピア方式で通信可能であり、
     前記第1のコンピュータは、前記第1のプログラムと前記第2のプログラムで共用可能なデータを前記第2のコンピュータへ送信し、
     前記第2のコンピュータは、前記第2のプログラムにおいて、前記第1のコンピュータから送信された前記共用可能なデータを取り込む、
    プログラミング支援システム。
    a first computer executing a first program for programming;
    a second computer executing a second program for programming;
    has
    the first computer and the second computer are capable of communicating in a peer-to-peer manner;
    The first computer transmits data sharable between the first program and the second program to the second computer,
    the second computer captures the sharable data transmitted from the first computer in the second program;
    Programming support system.
  10.  前記第1のコンピュータ及び前記第2のコンピュータはそれぞれ、互いに読み書き可能な共有フォルダを有しており、
     前記第1のコンピュータが有する前記共有フォルダに格納された前記共用可能なデータを、前記第2のコンピュータが有する前記共有フォルダに転送する、
    請求項9記載のプログラミング支援システム。
    The first computer and the second computer each have a shared folder that can read and write to each other,
    transferring the sharable data stored in the shared folder of the first computer to the shared folder of the second computer;
    10. The programming support system according to claim 9.
  11.  前記共用可能なデータは、前記第1のプログラム及び前記第2のプログラムのそれぞれで使用される変数のデータである、
    請求項9又は10記載のプログラミング支援システム。
    The sharable data is variable data used in each of the first program and the second program,
    11. The programming support system according to claim 9 or 10.
PCT/JP2022/019820 2021-07-14 2022-05-10 Method for assisting programming, program for assisting programming, and programming assistance system WO2023286431A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202280046452.6A CN117581197A (en) 2021-07-14 2022-05-10 Programming support method, programming support program, and programming support system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2021116654A JP2023012900A (en) 2021-07-14 2021-07-14 Programming support method, program for programming support, and programming support system
JP2021-116654 2021-07-14

Publications (1)

Publication Number Publication Date
WO2023286431A1 true WO2023286431A1 (en) 2023-01-19

Family

ID=84919305

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2022/019820 WO2023286431A1 (en) 2021-07-14 2022-05-10 Method for assisting programming, program for assisting programming, and programming assistance system

Country Status (3)

Country Link
JP (1) JP2023012900A (en)
CN (1) CN117581197A (en)
WO (1) WO2023286431A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002244705A (en) * 2001-02-19 2002-08-30 Digital Electronics Corp Data transfer system and data transfer program for editor device
JP2009146229A (en) * 2007-12-14 2009-07-02 Fuji Electric Systems Co Ltd Programmable controller system
JP2009157533A (en) * 2007-12-25 2009-07-16 Fuji Electric Systems Co Ltd Programmable controller system
JP2019160074A (en) * 2018-03-15 2019-09-19 オムロン株式会社 Program development assistance system, program development assistance method and program development assistance program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002244705A (en) * 2001-02-19 2002-08-30 Digital Electronics Corp Data transfer system and data transfer program for editor device
JP2009146229A (en) * 2007-12-14 2009-07-02 Fuji Electric Systems Co Ltd Programmable controller system
JP2009157533A (en) * 2007-12-25 2009-07-16 Fuji Electric Systems Co Ltd Programmable controller system
JP2019160074A (en) * 2018-03-15 2019-09-19 オムロン株式会社 Program development assistance system, program development assistance method and program development assistance program

Also Published As

Publication number Publication date
CN117581197A (en) 2024-02-20
JP2023012900A (en) 2023-01-26

Similar Documents

Publication Publication Date Title
KR100397760B1 (en) Control system, display device, control-use host computer, and data transmission method
US7945937B2 (en) Programmable display device
JP6705266B2 (en) Control device, control method and program
JP2015043201A (en) Systems and methods for batch commissioning and decommissioning of devices
JP2020017099A (en) Remote operation system and program
JP2009157533A (en) Programmable controller system
WO2023286431A1 (en) Method for assisting programming, program for assisting programming, and programming assistance system
JP5808922B2 (en) Air conditioner control interface device, air conditioner and air conditioner control system
JP3847585B2 (en) Editor registration device, registration program, and recording medium recording the same
JP2001290665A (en) Processor system
WO2020075351A1 (en) Control device
CN112655175B (en) Control device, support device, and communication system
EP3779622B1 (en) Control device
JP3795357B2 (en) Editor device, editor program, and recording medium recording the same
JP2019057212A (en) Programmable controller and control system
JP2009032241A (en) Computer system, computer control method, and storage medium storing control programs
JP2006309565A (en) Plotting editor device, display device for control, program therefor and recording medium
Badescu Next-Generation ECU
WO2020066986A1 (en) Control system, support device, and support program
JP6634225B2 (en) How to access multiple internal registers of the server
WO2020217435A1 (en) Screen data generating system, screen data generating method, and program
JP2022014311A (en) Control device
JP2002297208A (en) Display device for control and its program and recording medium with the same program recorded
JP2001075612A (en) Method and device for preparing screen data and recording medium recording its program
JP2012128720A (en) Client computer, programmable display, data display system and programs thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22841778

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 202280046452.6

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE