WO2014188602A1 - Programmable controller system, motion video editor thereof, and program thereof - Google Patents

Programmable controller system, motion video editor thereof, and program thereof Download PDF

Info

Publication number
WO2014188602A1
WO2014188602A1 PCT/JP2013/064532 JP2013064532W WO2014188602A1 WO 2014188602 A1 WO2014188602 A1 WO 2014188602A1 JP 2013064532 W JP2013064532 W JP 2013064532W WO 2014188602 A1 WO2014188602 A1 WO 2014188602A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen data
data
memory
memory access
information
Prior art date
Application number
PCT/JP2013/064532
Other languages
French (fr)
Japanese (ja)
Inventor
泰治 田端
Original Assignee
発紘電機株式会社
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 発紘電機株式会社 filed Critical 発紘電機株式会社
Priority to PCT/JP2013/064532 priority Critical patent/WO2014188602A1/en
Priority to CN201380074337.0A priority patent/CN105009007B/en
Priority to JP2015518035A priority patent/JP6042980B2/en
Publication of WO2014188602A1 publication Critical patent/WO2014188602A1/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
    • G05B19/056Programming the PLC
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2615Audio, video, tv, consumer electronics device

Definitions

  • the present invention relates to a drawing editor apparatus that supports creation of screen data for a programmable display.
  • Programmable displays are generally connected to various connected devices such as PLC (Programmable Logic Controller) and temperature control devices, and numerical items, lamps, and other items for displaying the status of these connected devices, and user-specified
  • An image of an item such as a switch for issuing an instruction is displayed.
  • An item is also called a screen component or the like.
  • images of a plurality of screen components (items) are displayed on the screen of the programmable display (referred to as an operation display screen).
  • Data or the like for displaying such an operation display screen (referred to as screen data or the like) is arbitrarily created in advance by a developer or the like in a support device or the like and downloaded from the support device to a programmable display.
  • the screen data includes, for each item, data such as an image of the item (switch image or lamp image), display position coordinates, and an address (assigned memory address) of a predetermined area of the external memory described later. It is. In addition, some programs may be included.
  • the support device has a function of performing various types of support for allowing the user to arbitrarily create the screen data, for example. This is a well-known existing technique and will not be described here.
  • Each of the items is, for example, a status display of the component corresponding to an arbitrary component of an arbitrary connected device, or receiving an ON / OFF instruction for the component. is there.
  • the current temperature is displayed numerically as needed.
  • the lamp item indicating the ON / OFF state of the temperature control device, the lamp is turned on if the temperature control device is ON, and the lamp is turned off if the temperature control device is OFF.
  • a lamp-on image and a lamp-off image are registered in advance as item images, and the screen data includes a lamp-on image and a lamp-off image for one lamp item.
  • the screen data includes a lamp-on image and a lamp-off image for one lamp item.
  • the display control related to the various items is realized by, for example, periodically executing predetermined processing for each item.
  • the predetermined process is, for example, data stored in a predetermined storage area of a predetermined memory device (referred to as an external memory device) in a predetermined connected device related to the item (in the predetermined allocation memory area indicated by the allocation memory address). Stored data).
  • a process for determining and displaying the display content of an item based on the stored data display content refresh process
  • the process of reading the data stored in the predetermined allocation memory area is generally a process of accessing the external memory device, and therefore may be referred to as an external memory access process.
  • the connected device updates the stored data in a predetermined area of the external memory device as needed. For example, if the connected device is the temperature control device, the connected device updates the temperature measurement value as needed.
  • the support device also has a function of allowing the user to set an arbitrary allocated memory address for each item when creating screen data.
  • the screen data also includes the set allocated memory address.
  • the screen data is downloaded from the support device to the programmable display device and stored. During operation, the allocated memory area is accessed based on the allocated memory address corresponding to each item.
  • an access command is generated and transmitted for each item, that is, for each allocated memory area, but an access command to a memory area including a plurality of allocated memory areas is generated and transmitted.
  • data of a plurality of items can be acquired at once.
  • the number of times of command transmission / reception can be reduced, and the external memory access processing time can be shortened.
  • Patent Document 1 there are conventional techniques disclosed in Patent Documents 1, 2, and 3, for example.
  • the prior art described in Patent Document 1 is to enable anomaly analysis to be performed easily and reliably in an FA system of Ethercat (registered trademark).
  • the controller has a protocol monitor function that operates according to the monitor system program, and constantly monitors data communicated with the remote device. Since the controller has an abnormality diagnosis function for detecting an abnormality, when an abnormality is detected there, the controller monitors the data monitored immediately before that.
  • the built-in protocol monitor function eliminates the need for a new protocol monitor to join the network as an external device after an error occurs. By monitoring the system from the beginning of operation, the data that causes it can be detected from the first error that occurred. Can be used for analysis.
  • Patent Document 2 efficiently associates addresses to objects in the same group in order to group and operate objects such as parts on a screen displayed on a programmable display.
  • the drawing editor unit is grouped by a common group address by the group setting unit.
  • the grouping is performed on a plurality of objects arranged in the drawing window displayed by the drawing editor unit.
  • the group setting unit sets the group address in common for the selected object.
  • the programmable display displays a screen including grouped objects, if the contents (bits or words) of the address corresponding to the group address in the PLC internal memory change, each grouped object will be changed accordingly. Change the display status of all at once.
  • Patent Document 3 analyzes a communication protocol and creates a communication program corresponding to the communication protocol.
  • the communication program creation device acquires communication between the programmable display and the PLC by the monitor unit, and automatically analyzes the PLC protocol by the analysis unit.
  • the protocol format is stored in the storage unit, and the communication program P1 which is a communication interface is generated in the program creation unit.
  • the communication program creation apparatus can communicate with the PLC using the protocol format stored in the storage unit from the communication program P1 as if the programmable display device is communicating with the PLC.
  • More appropriate settings are memory address settings that allow the external memory access processing time to be shorter. Thus, for example, with the creation of screen data, there is a demand for a function that assists the user in making more appropriate settings.
  • An object of the present invention relates to a drawing editor apparatus that supports creation of screen data for a programmable display, and provides a drawing editor apparatus and the like that supports a user to set an appropriate allocated memory address.
  • the present invention provides a programmable display that accesses an external memory of an external device based on screen data including external memory access information related to each item on the screen, and a drawing editor device that arbitrarily creates the screen data.
  • a programmable controller system having the following configuration.
  • the drawing editor device has the following configurations.
  • Backup information generation means for generating default backup information from the external memory access information of arbitrary screen data;
  • a setting changing means for arbitrarily changing the backup information;
  • Processing time calculation means for calculating and displaying a memory access processing time related to external memory access according to the backup information at that time based on the default or changed backup information;
  • FIG. 1 is a schematic configuration diagram of the entire programmable controller system of this example.
  • the programmable controller system in the illustrated example has a configuration in which a programmable display 1 is connected to a drawing editor device 5 via a communication line 3.
  • the programmable display 1 is also connected to one or more connection devices 4 (external devices) via the communication line 6.
  • Each connection device 4 is, for example, various PLC main bodies, the above-described temperature control device, or the like.
  • the programmable display 1 is provided with a plurality of communication interfaces 2 (communication ports), and is connected to various connection devices 4 and the drawing editor device 5 by the communication line 3 / communication line 6 connected to each communication interface 2. ing.
  • the configuration shown in FIG. 1 is an example, and the present invention is not limited to this example.
  • the configuration in which the programmable display device 1 is not necessarily connected to the drawing editor device 5 via the communication line 3 may be used.
  • the programmable display 1 and the drawing editor device 5 may exist separately. However, it is desirable that the screen data arbitrarily created by the drawing editor device 5 is transferred to the programmable display device 1 by some method and stored.
  • the drawing editor device 5 also has the function of the existing support device described in the background art above. That is, it has an existing function or the like that supports a developer or the like to arbitrarily create data or the like (screen data or the like) for displaying the operation display screen on the programmable display 1.
  • various item images are prepared in advance as the existing function, and the user repeats the operation of selecting a desired item image and placing it at a desired position, thereby creating the screen data.
  • the user can arbitrarily set a desired allocated memory address (allocated memory area) for each item. That is, the screen data includes setting information for the allocated memory address for each item.
  • the screen data created in this way is downloaded from the drawing editor device 5 to the programmable display device 1.
  • the drawing editor device 5 of this example further has a user support function (to be described later) in connection with the screen data creation support by this existing function.
  • the user support function is a function for assisting the user to set an appropriate allocated memory address, so that screen data with more appropriate contents can be created (particularly, an appropriate allocated memory address is set).
  • Like is a function to support the user. Details will be described later.
  • the programmable display 1 displays the operation display screen based on the screen data as in the conventional case. During the display, for example, the display content is refreshed periodically. For this purpose, the above-mentioned allocation memory area related to each item on the operation display screen is accessed, the latest data is acquired, and the operation display screen having contents corresponding to the latest data is displayed.
  • a request command (such as a read command) for accessing one storage area including an allocated memory area of one or a plurality of items is transmitted once or a plurality of times. Generate and send once. Basically, the allocated memory area of all items on the displayed operation display screen is accessed. And it is desirable that the time required for this (external memory access processing time) is short. It can be considered that the shorter the external memory access processing time, the better the communication performance.
  • the transmission destination of the request command or the like related to the external memory access is the connected device 4, and the allocated memory area of each item is an arbitrary storage area in the memory (external memory) in the connected device 4 It is.
  • the function itself of the programmable display 1 may be the same as the conventional one, and in this example, the drawing editor device 5 has a new function.
  • the drawing editor device 5 is realized by, for example, a general general-purpose computer (such as a personal computer). Therefore, although not shown in the drawings, it has a configuration of a general personal computer or the like. That is, for example, it has an arithmetic processor such as a CPU, a storage device such as a memory and a hard disk, an operation unit such as a keyboard and a mouse, a display unit such as a display, a communication function unit, and the like.
  • a predetermined application program is stored in the storage device in advance, and various functions of the drawing editor device 5 are realized by the arithmetic processor executing the application program.
  • the programmable display 1 may also have a general hardware configuration. Therefore, a brief description will be given below with reference to FIG.
  • FIG. 2 is a hardware configuration example of the programmable display device 1.
  • the programmable display device 1 has a function of displaying each screen (operation display screen) based on the above-described screen data and the like in substantially the same manner as the conventional example described above.
  • the display process of the operation display screen includes the above-described display content refresh process. That is, the external memory access process (data acquisition process from the allocated memory area) corresponding to the item on the screen is also included.
  • the illustrated programmable display 1 includes a display operation control device 10, a touch panel 18, a display 19, the communication interface 2, and the like.
  • the display operation control device 10 includes a CPU 11, a ROM 12 (flash memory or the like), a RAM 13, a communication controller 14, a graphic controller 15, a touch panel controller 16, and the like, which are connected to a bus 17.
  • the CPU 11 is a central processing unit (arithmetic processor) that controls the entire display operation control device 10.
  • the CPU 11 executes application programs (for example, a main body program 21 described later) stored in the ROM 12 in advance, thereby performing various arithmetic processes of the programmable display device 1 (particularly, various flowchart processes and functional block diagram processes described later). Function).
  • the ROM 12 stores screen data described in the background art (screen data 22 described later).
  • the screen data 22 includes various data related to each item such as a switch and a lamp arranged on the operation display screen (the various data includes data such as an image, display position coordinates, size, and the like described above. Allocated memory address).
  • the display target data based on the screen data 22 and the acquired data by the external memory access is developed (drawn) on the RAM 13, for example. Details will be described later.
  • the RAM 13 can be replaced with a video RAM (not shown).
  • the graphic controller 15 displays the above-described operation display screen on the display 19.
  • the display 19 is composed of, for example, a liquid crystal panel, and a touch panel 18 is provided so as to overlap the liquid crystal panel.
  • the detection result of the pressing operation position (touch position) on the touch panel 18 by the operator or the like is taken into the CPU 11 or the like via the touch panel controller 16 and analyzed. For example, analysis is performed based on the display position coordinates and size data of each item. For example, when an operator or the like touches the display position of the switch image, the CPU 11 or the like analyzes that an operation on the switch has been performed.
  • the communication controller 14 communicates with a connection device 4 and a drawing editor device 5 such as a PLC main body (not shown), a temperature control device, and the like via the communication interface 2.
  • a drawing editor device 5 such as a PLC main body (not shown), a temperature control device, and the like
  • FIG. 3 shows a software configuration diagram of the system.
  • various programs / data such as a main body program 21, screen data 22, and a communication program 23 are stored in the ROM 12 such as a flash memory.
  • the CPU 11 reads / executes / references these programs / data, etc., thereby performing display control of each operation display screen for the programmable display.
  • This operation display screen is composed of the above-described numerical display, image display of various items such as lamps and switches, and the display content of each item is, for example, data acquired from a predetermined storage area of an external memory device of each connected device 4 Updated as needed to reflect. In other words, the operation display screen is updated as needed to reflect the acquired data from the allocated memory area.
  • the CPU 11 executes display control of the operation display screen based on the main body program 21, the screen data 22, and the acquired data.
  • the display content of each item (each screen component) on the operation display screen reflects the content of the acquired data (numerical display such as temperature, lighting / extinguishing of the lamp, etc.). Note that this is an existing function and will not be described in further detail.
  • each allocated memory area of a plurality of items is sequentially accessed one by one. In other words, access is generally made to some extent. If possible, the allocated memory area (allocated address) of all items is accessed once.
  • the programmable display 1 connects a request command for accessing the storage area including all the assigned addresses of each item once based on the screen data 22 (the assigned memory area for each item).
  • the device 4 By transmitting to the device 4, there are cases in which the allocated addresses of all items are accessed. An example thereof is shown in FIG.
  • the programmable display device 1 transmits a request command for accessing a storage area including an allocation address of one or more items in each item to the connection device 4 a plurality of times based on the screen data 22 or the like. By doing so, the allocated addresses of all items may be accessed. An example thereof is shown in FIG.
  • the screen data 22 is, for example, a screen data file 32 arbitrarily created in advance on the drawing editor device 5 side, downloaded to the programmable display device 1 and stored. That is, the screen data 22 and the screen data file 32 may be regarded as substantially the same. However, the present invention is not limited to this example.
  • the screen data file 32 stores a plurality of screen data, and a part of them is downloaded to the programmable display 1 and stored as the screen data 22. You may hesitate.
  • the screen data file 32 may be described as the screen data 22 or the screen data 32.
  • the communication program 23 is a program in which, for example, a communication program file 33 stored in advance on the drawing editor device 5 side is downloaded and stored in the programmable display device 1.
  • a communication program file 33 stored in advance on the drawing editor device 5 side is downloaded and stored in the programmable display device 1.
  • each communication program file 33 (various communication program group) is created in advance corresponding to the communication protocol of the various connected devices 4. And the communication program file 33 corresponding to the connection apparatus 4 (the communication protocol etc.) connected to the programmable display 1 of a download destination is downloaded to the said programmable display 1 among various communication program groups. Become. Then, the communication program 23 is stored.
  • the communication program 23 of the programmable display 1 is a program for communicating with the connection device 4 via the communication line 6.
  • each connected device 4 has a communication protocol (communication rule) unique to each model and performs communication between the programmable display 1 and the connected device 4 in accordance with this communication rule. Therefore, the communication program 23 needs to be developed for each model of each connected device 4.
  • the CPU 11 and the like execute the communication program 23 to realize communication processing with the connected device 4.
  • connection device 4 There are various manufacturers / models of the connection device 4 such as the PLC main body, and each manufacturer / model has its own communication program. Depending on the manufacturer / model of the connection device 4, there are many communication programs depending on the manufacturer / model. The types are created and stored in the drawing editor device 5 as the numerous communication program files 33.
  • communication between the programmable display 1 and the drawing editor device 5 is performed by the main body program 21 and the drawing editor 31, for example.
  • a communication function is incorporated in the drawing editor 31. This is not particularly relevant and will not be shown or described.
  • a program for realizing various processes such as access to the allocated memory area and screen display may be included in the main body program 21 or may be included in the screen data 22, for example.
  • the CPU 11 executes such a program, for example, various operations of the programmable display 1 are realized.
  • the drawing editor 31 of the drawing editor device 5 has the above existing function and new function related to screen data creation support.
  • the user creates arbitrary screen data (screen data 32) while receiving support from the drawing editor 31.
  • various items created in advance are stored in the hard disk of the drawing editor device 5 or the like. These various items are displayed in a list by the creation support function of the operation display screen by the drawing editor 31, and the user selects a desired item and arranges it at a desired position. Furthermore, an arbitrary allocated memory address is set for each item. Up to this point, although it may be regarded as an existing technology, the drawing editor 31 of this example further has a new function for assisting the user to set an appropriate allocated memory address. Details will be described later.
  • the drawing editor device 5 is, for example, a personal computer or the like, and has a general general-purpose computer configuration (not shown). That is, for example, a CPU, a storage unit (hard disk, memory, etc.), a communication unit, an operation unit (mouse, etc.), a display, etc.
  • a CPU central processing unit
  • storage unit hard disk, memory, etc.
  • communication unit an operation unit (mouse, etc.)
  • an operation unit mouse, etc.
  • a display etc.
  • FIG. 4 is a functional block diagram of the drawing editor device 5 (its drawing editor 31).
  • the drawing editor device 5 in the illustrated example includes a communication content display unit 41, a memory analysis processing unit 42, a switch monitoring processing unit 43, a memory setting processing unit 44, a communication content editing processing unit 45, and various processing functions of the memory analysis processing group 46. Part. As described above, these various processing functions are realized by a CPU (not shown) executing an application program stored in a storage unit (not shown).
  • the memory analysis processing group 46 includes the existing functions of the programmable display device 1 mounted in the drawing editor device 5.
  • the communication content display unit 41 generates external device information 51 and default external device memory data 52 based on the screen data 32 and the like, and includes a memory analysis processing unit 42, a switch monitoring processing unit 43, and a communication content editing processing unit 45. Operate appropriately. This allows the user to make arbitrary external memory settings, and calculates and displays communication performance information according to the settings.
  • the communication performance information means an external memory access processing time.
  • the communication content editing processing unit 45 causes the user to arbitrarily change the setting content of the allocated memory address of an arbitrary item. Then, the changed contents are reflected in the external device memory data 52.
  • the memory analysis processing unit 42 operates the memory analysis processing group 46.
  • the memory analysis processing group 46 executes predetermined analysis processing based on the external device information 51 and the external device memory data 52, and outputs analysis data 53 as a processing result.
  • This generates the analysis data 53 by executing the predetermined analysis process based on the external device information 51, the external device memory data 52, and the like. That is, the memory analysis processing unit 42 generates analysis data 53 by executing analysis processing based on the external device information 51, the default state of the external device memory data 52, and the information after the allocation memory address setting is changed.
  • the predetermined analysis process is an existing process as described above, and will be described later.
  • the memory analysis processing unit 42 calculates information indicating communication performance between the programmable display device 1 and the connection device 4 (external device) (particularly according to user settings). This particularly calculates the processing time (external memory access processing time) for external memory access related to arbitrary screen data. For example, as described later, the transmission time for command transmission / reception for external memory access is calculated, but the present invention is not limited to this example. Details will be described later.
  • the above analysis result is displayed.
  • the user refers to this display content to determine whether or not the allocated memory address is appropriate in the current state. If it is determined as inappropriate, the setting contents of the allocated memory address are further changed, and a new analysis result is displayed. On the other hand, if it is deemed appropriate.
  • a predetermined switch operation is performed.
  • the switch monitoring processing unit 43 monitors the presence / absence of this switch operation, and operates the memory setting processing unit 44 when a predetermined switch operation is performed.
  • the memory setting processing unit 44 reflects the contents of the external device memory data 52 at that time in the screen data 32 (updates the screen data 32). As a result, the existing allocated memory address in the screen data 32 is changed to the allocated memory address when the user determines that it is appropriate.
  • the screen data 32 is composed of a plurality of screen data, for example, as shown in FIGS. 5 and 6, for example, a screen data list is first displayed to allow the user to select arbitrary screen data to be analyzed. .
  • analysis processing and display of the processing result (analysis data 53) according to the external device memory data 52 for each default setting or any address setting change are performed.
  • the screen data to be analyzed is updated based on the external device memory data 52 at that time.
  • the screen data to be analyzed is, for example, a screen No. described later. 101 or the like.
  • the updated screen data 32 is automatically downloaded (transferred) to the programmable display device.
  • a transfer unit for updating the screen data 22 may be further provided. As a result, it is possible to avoid a situation where the screen data 22 on the programmable display side is forgotten to be updated.
  • FIG. 7 and 8 are specific examples of the analysis setting display screen by the drawing editor device 5.
  • FIG. 7 shows a default state
  • FIG. 8 shows an arbitrary address setting change.
  • the analysis setting display screen 60 shown in FIGS. 7 and 8 has a memory setting display / change area 61 and an analysis result display area 62. Further, various switches (buttons) such as an OK switch 63, an application switch 64, and a cancel switch 65 are provided.
  • each allocated memory address of the external device memory data 52 is the same as the screen data 32 in the default state.
  • Each allocated memory address of the external device memory data 52 is the same as the selected screen data to be analyzed when the screen data 32 is composed of a plurality of screen data. That is, in the default state, each allocated memory address of the screen data 32 is displayed.
  • each allocated memory address after the change is displayed.
  • the display on the memory setting display / change area 61 displays, for example, the allocated memory addresses related to all items on the screen data to be analyzed. For example, in the example shown in FIG. 7, a 10-word area from addresses D0 to D9 and a 1-word area at address D100 are allocated for the screen data to be analyzed.
  • the allocated memory address of each item on the screen data to be analyzed is not known. Therefore, in the case of the illustrated example, there may be 11 items on the screen data to be analyzed, and a memory area may be assigned to each item by one word. Alternatively, there may be two items on the screen data to be analyzed, one of which is assigned addresses D0 to D9 and the other is assigned address D100. However, this point is not relevant in this method.
  • each address is described as being in units of one word.
  • the present invention is not limited to this example.
  • the analysis processing result corresponding to the display content of the memory setting display / change area 61, that is, the current external device memory data 52 is displayed in the analysis result display area 62.
  • the block read command (request command) is used twice as a result of the memory analysis.
  • a block read command for accessing a memory in an arbitrary address range one word or more
  • a random read command for accessing a memory in any one or a plurality of addresses or a memory in bit units
  • a bit read command to access is a bit read command to access.
  • a read command or a request command means a block read command or the like.
  • the command is not limited to a read command, and may be a write command or the like. Thus, there is a case where it is called access without distinguishing between read and write.
  • the time required to send an arbitrary request command to the connected device 4 and complete the reception of the response command from the connected device 4 in response to this is the main time taken to acquire external memory data for each command. It is assumed to be called “processing time” shown in the figure. In other words, the “processing time” is “request command transmission time + response command transmission time”.
  • the response command includes data stored in the allocated memory area.
  • the “processing time” for each request command and the total of these “processing times” are calculated by the memory analysis processing group 46 and displayed in the analysis result display area 62 as shown in the figure. Is displayed.
  • the first processing time is 28.646 [ms] [ms]
  • the second processing time is 9.896 [ms]
  • 38.542 [ms] for the time taken to acquire the data in the allocated memory area of all items of arbitrary screen data.
  • the external memory access processing time relating to arbitrary screen data is 38.542 [ms].
  • the memory setting display / change area 61 not only the current memory setting contents are displayed as described above, but also the user can arbitrarily change the memory setting contents.
  • this change operation method may be various, in the example shown in FIG. 8, an arbitrary memory area is dragged and moved by a mouse operation, and a drop operation is performed at an arbitrary destination. As a result, in the illustrated example, the allocated memory address for an arbitrary item is changed from D100 to D10. This changed content is reflected in the external device memory data 52.
  • the analysis processing is performed by the memory analysis processing unit 42 (memory analysis processing group 46) based on the external device memory data 52 after the change, and as a result, the analysis result display area 62 in FIG.
  • the analysis result shown is obtained.
  • a read command (request command) is used only once as a result of memory analysis.
  • the processing time is 30.729 [ms], which is only once, so the total processing time is 30.729 [ms].
  • the entire processing time is shorter in the case of FIG. 8 than in FIG. 7, and it can be seen that the memory address setting in FIG. 8 is more appropriate than in FIG.
  • the allocated memory address of the memory setting display / change area 61 in FIG. 8 is reflected in the screen data 32 to be analyzed.
  • the switch monitor processing unit 43 detects the above-described OK switch 63 operation or the like
  • the memory setting processing unit 44 uses the currently allocated memory address of the external device memory data 52 to assign the corresponding allocated memory address of the screen data 32. Update.
  • the request command is used twice or once, but is not limited to this example, and may be used three or more times.
  • the number of times of use of the read command may be regarded as meaning the number of times of communication between the programmable display 1 and the connected device 4 related to one refresh process.
  • a conventional programmable display for example, when performing external memory access related to each item on the screen data currently being displayed in relation to the refresh process, the number of use of the request command and the access destination for each request command ( (Address range) was determined.
  • the function of the conventional programmable display device is also installed in the drawing editor device 5.
  • the address range is D0 to D100, and naturally addresses other than the allocated memory address (D10 to D99) are included.
  • the allocated memory addresses are continuous, they are accessed together. Accordingly, in the example of FIG. 7, since the allocated memory addresses are continuous from D0 to D9, it is determined that the addresses are accessed together and also D100 is accessed separately. That is, the request command is twice.
  • the transmission time that is relatively short is adopted.
  • the transmission time is shorter when the request command is used twice.
  • the programmable display device performs control to reduce the number of times the request command is used as much as possible under the above-described restrictions. In other words, it is first determined whether or not all data can be read with a single request command. If it cannot be read, it is subsequently determined whether or not all data can be read with two request commands. Then, it is determined whether or not all data can be read out by three request commands. This is continued until it is determined that reading is possible.
  • FIGS. 9A and 9B are specific examples of the screen data 32 (22).
  • the screen data 32 (22) includes data items such as an item type 71, coordinates 72, size 73, “data for each item type” 74, memory address information 75, and the like. Note that information of each record shown in the figure is stored for each item.
  • FIG. 9B shows a detailed example of the memory address information 75.
  • the item type 71 stores item type identification information indicating the item type (switch, lamp, numerical display, etc.).
  • Data for each item type” 74 stores, for example, an image related to the item.
  • the image relating to the item is, for example, an image of various items such as a lamp ON image and a lamp OFF image for a lamp item, or a switch ON image and a switch OFF image for a switch item.
  • Coordinate 72 and size 73 store information indicating the display position and size of the item image on the operation display screen.
  • the memory address information 75 is information related to the external memory access process, and includes information such as the allocated memory address. Then, the setting data correction / change target by this method is the memory address information 75 (particularly, the address 84).
  • the memory address information 75 includes a memory model 81, a memory access 82, a device name 83, an address 84, a data number 85, and the like.
  • the memory model 81 is identification information of the connected device 4 to be accessed.
  • the memory access 82 indicates an access format to the external memory device indicated by the device name 83.
  • the format is, for example, 1-bit access, 16-bit (1 word) access, or the like.
  • the device name 83 is identification information of an external memory device to be accessed.
  • the address 84 is the head address of the storage area to be accessed in the external memory device indicated by the device name 83.
  • the number of data 85 indicates, for example, the capacity of the storage area to be accessed. For example, if the address 84 is “101” and the number of data 85 is “3”, the addresses 101 to 103 are the storage areas of the access destination.
  • the storage area indicated by the address 84 or the like of the memory device indicated by the device name 83 in the connected device 4 indicated by the memory model 81 corresponds to the allocated memory area. Changes to be made by this method are mainly allocated memory areas.
  • the external device information 51 and the external device memory data 52 are generated based on the screen data 32 and the like.
  • the external device information 51 of the example of FIG. 10A described below cannot be generated only with the screen data 22.
  • communication protocol information may be separately stored in advance for each of various connection devices. For example, a physical line (serial, Ethernet (registered trademark), etc.), baud rate, data length, stop bit, parity, etc. are registered in association with identification information for each of various connected devices. .
  • the memory address information 75 may include information corresponding to the external device information 51 shown in FIG. In this description, this example is used. Accordingly, the external device information 51 and the external device memory data 52 are generated based on the screen data 32 and the like. This may be regarded as the external device information 51 and the external device memory data 52 being generated by copying a part of the screen data 32. That is, the external device information 51 and the external device memory data 52 may be regarded as backup information for the screen data 32.
  • the backup information (mainly external device memory data 52) is updated with the user setting work related to this method. Then, the changed contents of the backup information are reflected in the screen data 32 in accordance with a predetermined instruction operation by the user.
  • the external device information 51 is generated by extracting the communication protocol information corresponding to the connected device indicated by the device name 83 from the communication protocol information and the memory address information 75 for each of the various connected devices (not shown).
  • the external device information 51 includes data items such as an external device 91, a physical line 92, a baud rate 93, a data length 94, a stop bit 95, a parity bit 96, and a start bit 97.
  • the external device 91 is identification information of an arbitrary connected device 4 related to the screen data 32, and the communication protocol information related to the connected device 4 is a physical line 92 to a parity 96 and the like.
  • Each data of the external device information 51 is included in the screen data 32 (22), for example.
  • the external device memory data 52 is stored in the screen No. 101, data items such as a device name 102 and an address 103.
  • Screen No. 101 includes screen Nos. Of screens arbitrarily selected by the user from the screens displayed as a list in FIGS. Is stored. Screen No.
  • the device name 83 and address 84 in the screen data 32 relating to the screen 101 are stored in the device name 102 and address 103.
  • a dialog box for example, the analysis setting display screen 60
  • the device name 102, the address 103, and the like are updated in step S33 described later. Details will be described later.
  • screen No. I identification information of screen data, and although not particularly shown, each screen No.
  • the screen data 32 of the example shown in FIG. FIG. 11 shows a specific example of the analysis data 53.
  • the analysis data 53 includes the communication command type 111, No. 112, processing time 113, external memory 114, and other data items.
  • the address range of the access destination is stored in the external memory 114, and the external memory access processing time as the analysis processing result is stored in the processing time 113.
  • information regarding two commands is stored. That is, the number of records is 2.
  • information regarding one command is stored. That is, the number of records is 1.
  • each command is stored in the communication command type 111.
  • “block read” is stored.
  • there are other commands such as bit read, but this is not relevant in this description.
  • a calculation result (simulation result) of the “processing time” (request command transmission time + response command transmission time) related to external memory access using these commands is stored in the processing time 113. Also, the access destination (device name + address range) by this command is stored in the external memory 114. No. 112 is a simple serial number.
  • FIG. 12 is a processing flowchart of the communication content display unit 41. This can also be regarded as an overall flowchart of the user support function according to the present method.
  • the communication content display unit 41 first executes the processes of steps S11, S12, and S13, which are processes for generating and displaying an initial dialog box.
  • the dialog box in the initial state is, for example, the analysis setting display screen 60 in the initial state shown in FIG.
  • step S11 external device information 51 and external device memory data 52 are generated based on the screen data 32 of the selected screen (step S11). Then, the memory analysis processing unit 42 is activated to execute memory analysis processing (step S12). A flowchart of the memory analysis process is shown in FIG. 13 and will be described later. Then, an initial state dialog box (the analysis setting display screen 60 etc.) is displayed using the memory analysis processing result (step S13). This can be said to display the external memory setting contents of the current screen data 32 and the analysis processing result corresponding thereto.
  • the communication content editing processing unit 45 repeats the process of monitoring the memory setting changing operation by the user and executing the memory analysis process according to this setting and displaying the processing result in the dialog box (step S14).
  • the dialog box at this time is, for example, the analysis setting display screen 60 of FIG.
  • the detailed processing flowchart of step S14 is shown in FIG. 14 and will be described later.
  • step S15 Each time the new analysis processing result or the like is displayed in the dialog box, the switch monitoring processing unit 43 monitors the predetermined switch operation by the user, and if there is a predetermined switch operation, the memory setting processing unit The process of starting 44 is performed (step S15). A detailed flowchart of step S15 is shown in FIG. 15 and will be described later. A processing flowchart of the memory setting processing unit 44 is shown in FIG. 16 and will be described later.
  • the screen data 32 is updated by the memory setting processing unit 44. This is because the screen data 32 is updated in such a manner as to reflect the memory setting change by the user.
  • the predetermined switch operation is, for example, the OK switch 63 or the application switch 64 shown in FIGS.
  • the OK switch 63 when the OK switch 63 is operated, the processing of the memory setting processing unit 44 is executed and it is determined that the dialog box display is finished (NO in step S16), and the dialog box is hidden. (Step S17), and this process is terminated.
  • the application switch 64 when the application switch 64 is operated, the process of the memory setting processing unit 44 is executed, and it is determined that the dialog box display is continued (step S16, YES), and the process returns to step S14.
  • step S17 When the cancel switch is operated, the dialog box is hidden at any time (step S17), and this process is terminated.
  • the processing in FIG. 12 has been described above.
  • FIG. 13 is a process flowchart of the memory analysis processing unit 42.
  • the analysis data 53 is initialized such as data deletion (step S21).
  • new analysis data 53 is generated based on the external device information 51 and the external device memory data 52 (step S22). If this process is the process of step S12, the external device memory data 52 remains in the original screen data 32, that is, in the default state. On the other hand, if this processing is processing in step S34 described later, the external device memory data 52 has contents corresponding to user settings on a dialog box (for example, the analysis setting display screen 60).
  • a dialog box for example, the analysis setting display screen 60.
  • step S22 in step S12 will be described below using the specific example shown in FIG. 7 and the specific example shown on the upper and lower sides of FIG. 10A.
  • the allocated memory addresses are D0 to D9 and D100.
  • the transmission time of the response command from the connection device 4 in response to each request command depends on the total amount of data to be read (in the above example, one is 10 words and the other is 1 word).
  • the transmission time of the request command is as follows.
  • one frame of the request command is composed of a plurality of “characters”.
  • one frame of the request command is composed of 12 “characters”.
  • one frame of a response command is composed of a plurality of “characters” as in the request command.
  • the present invention is not limited to this example.
  • a case corresponding to a “character” in FIG. 17 may be called a “frame”.
  • description will be made according to the definition shown in FIG.
  • each character is composed of the stop bit, parity bit, start bit, and the like, and data, and as described above, 10 characters per character in this example.
  • the number of characters in the request command is fixedly determined, and here, it is assumed that the number of characters is 12 [characters] using the example shown in FIG.
  • the number of characters in the response command varies depending on the amount of data read from the external memory.
  • 3 [characters] are required as command identification information indicating a response command. Therefore.
  • the memory analysis result corresponding to the external device memory data 52 (original screen data 32) in the default state is displayed as an analysis setting as shown in FIG. It is displayed on the screen 60 or the like (step S13).
  • the memory access processing time is “request command transmission time + response command transmission time”.
  • each command is generated and the connected device 4 side is connected from an external memory. Time to read data will be added. Therefore, the memory access processing time may be calculated by adding these times.
  • “request command transmission time + response command transmission time” may be used as the memory access processing time as in the above-described example. That is, in this method, it is only necessary to confirm the increase / decrease according to the setting change, and therefore, “request command transmission time + response command transmission time” may be used as the memory access processing time.
  • FIG. 14 is a detailed flowchart of step S14. This can also be said to be a processing flowchart diagram of the communication content editing processing unit 45.
  • the process of FIG. 14 is cyclically executed, and a specific event occurrence is monitored as needed (step S31).
  • a specific event occurs, for example, when there is a memory allocation setting operation by the user on the memory setting display / change area 61 (step S32, YES)
  • the processes of steps S33, S34, and S35 are executed.
  • the occurrence of the specific event is, for example, the presence / absence of a user operation on the memory setting display / change area 61 of the analysis setting display screen 60.
  • the contents set by the user are reflected in the external device memory data 52 (step S33).
  • the present invention is not limited to this example.
  • the external device memory data 52 may include a differential data storage field (not shown), and the differential data may be updated in step S33.
  • “ ⁇ 90”, which is the difference between “10” and “100” is stored in the difference data storage column. Then, when the screen data 32 is later updated based on the external device memory data 52, the difference data is used.
  • step S34 the processing of FIG. 13 is executed by the memory analysis processing unit 42 (step S34).
  • the processing of FIG. 13 has already been described, since the content of the external device memory data 52 is updated in step S33, the processing result according to the specific example changes.
  • the communication content editing processing unit 45 updates the display content of the analysis result display area 62 based on the analysis data 53 (step S35).
  • the analysis setting display screen 60 has display contents shown in FIG. 8, for example.
  • the time required for data reading is shorter in the example shown in FIG. That is, the memory allocation shown in FIG. 8 may be considered more appropriate than the memory allocation shown in FIG.
  • the screen data 32 is updated with the user setting contents at this time.
  • the address 84 of the record in which the device name 83 is “D” and the address 84 is “100” in the screen data 32 is updated to “10”.
  • FIG. 15 and FIG. 16 show detailed examples of processing relating to detection of a predetermined switch operation by such a user and accompanying screen data 32 update.
  • FIG. 15 is a detailed flowchart of step S15. This can also be said to be a process flowchart diagram of the switch monitoring processor 43.
  • the processing in FIG. 15 is cyclically executed, and the occurrence of a specific event is monitored as needed (step S41).
  • the specific event is an event related to each switch of the dialog box. For example, in the examples of FIGS. 7 and 8, the user operates the OK switch 63, the application switch 64, or the cancel switch 65.
  • step S42 When the specific event occurs (YES in step S42), the memory setting processing unit 44 is activated and a parameter indicating the generated event is passed (step S43). Thereby, the memory setting processing unit 44 executes the processing shown in FIG. 16, for example.
  • step S42 NO
  • the switch state is returned to the communication content display unit 41, and this process (the process of step S15) is terminated.
  • the communication content display unit 41 executes the process of step S16 according to the returned switch state.
  • the switch state is identification information of the operated switch, or some information indicating that there is no switch operation.
  • FIG. 16 is a processing flowchart of the memory setting processing unit 44.
  • the memory setting processing unit 44 first confirms whether the generated event is the OK switch 63 or the application switch 64 based on the passed parameters (step S51). At this time, if there is a difference such as when the cancel switch 65 is operated (step S51, NO), this processing is ended as it is.
  • step S51 when the operation is an operation of the OK switch 63 or the application switch 64 (step S51, YES), a process of updating the screen data 32 in a manner to reflect the current user setting contents in the screen data 32 is performed (step S52). ). That is, the screen data 32 is updated with the current external device memory data 52.
  • the screen data 32 further includes identification information of each record, and when copying some of the records to the external device memory data 52, This identification information is also copied. As a result, for each record of the external device memory data 52, the record of the screen data 32 (copy source) corresponding to the record can be determined by the identification information.
  • step S52 is performed by, for example, changing the device name 102 and address 103 of each record of the current external device memory data 52 to the device name 83 and address 84 of the corresponding record in the screen data 32.
  • Copy overwrite
  • the external memory setting contents relating to an arbitrary screen are displayed based on the screen data 32, and the external device corresponding to the content is displayed. Calculate and display memory access processing time. Then, the user arbitrarily changes the memory setting contents, and calculates and displays the external memory access processing time corresponding to the changed memory setting. As a result, the user can perform more appropriate allocation memory address setting.
  • the appropriate setting is a memory setting that makes the entire external memory access processing time shorter.
  • the screen data 32 (22) is updated by reflecting a setting change by the user by a predetermined user operation.
  • drawing editor device 5 of the present example it is possible to assist the user in setting the allocated memory address more appropriately.
  • the drawing editor device 5 of this example can be regarded as having, for example, each processing function unit (not shown).
  • the drawing editor device 5 of this example relates to the programmable display 1 that accesses the external memory of the external device (connected device 4) based on the screen data 22 including the external memory access information related to each item on the screen, for example. It has a support function that allows the user to arbitrarily create the screen data.
  • the drawing editor device 5 of this example includes a backup information generation unit (not shown) that generates default backup information from the external memory access information of arbitrary screen data 32, and a setting change unit that arbitrarily changes the backup information. (Not shown). Furthermore, a processing time calculation unit (not shown) that calculates and displays the memory access processing time related to the external memory access according to the backup information at that time based on the default or changed backup information.
  • the drawing editor device 5 of this example further includes a screen data updating unit (not shown) that updates the external memory access information of the screen data 32 using the backup information at that time in response to a predetermined instruction. It may be. Or you may further have the transfer part (not shown) which transfers the screen data 32 updated by the said screen data update part to the programmable display 1, and memorize
  • a screen data updating unit not shown
  • the backup information is, for example, the external device information 51 and the external device memory data 52, but the change target is the external device memory data 52. Further, the backup information includes, for example, an allocation address in the external memory of each item. Then, the setting change unit changes the backup information by, for example, displaying each assigned address and causing the user to change the assigned address of an arbitrary item.
  • FIG. 18 shows an example of the hardware configuration of the drawing editor device 5, for example, the configuration of the general-purpose computer (such as a personal computer). That is, the drawing editor device 5 includes, for example, an arithmetic processor such as a CPU 201, a memory 202, a storage device 203 such as a hard disk, an operation unit 204 such as a keyboard and a mouse, a display unit 205 such as a display, a communication unit 206, and a recording medium driving unit. 207 and the like. These are connected to the bus 208.
  • an arithmetic processor such as a CPU 201, a memory 202, a storage device 203 such as a hard disk, an operation unit 204 such as a keyboard and a mouse, a display unit 205 such as a display, a communication unit 206, and a recording medium driving unit. 207 and the like. These are connected to the bus 208.
  • an arithmetic processor such as a CPU 201, a memory 202
  • a predetermined application program is stored in the storage device 203 in advance, and various functions of the drawing editor device 5 are realized by an arithmetic processor such as the CPU 201 executing the application program.
  • an arithmetic processor such as the CPU 201 executing the application program.
  • each processing function unit (not shown) or each processing function unit shown in FIG. 4 is realized.
  • the recording medium driving unit 207 accesses (data read / write) a portable recording medium 209 such as a CD-ROM, DVD-ROM, or memory stick.
  • the application program may be recorded on a portable recording medium 209.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)
  • Information Transfer Between Computers (AREA)
  • Digital Computer Display Output (AREA)

Abstract

A communication content display unit (41) generates external device information (51) and initial external device memory data (52), on the basis of image data (32). A communication description editing processing unit (45) arbitrarily changes the external device memory data (52). A memory analysis processing unit (42) computes a processing time required for the external memory access on the basis of either the initial or the changed external device memory data (52). The result of the computation is displayed. The content of the external device memory data (52) is reflected in screen data (32) in response to a prescribed operation.

Description

プログラマブルコントローラシステム、その作画エディタ装置、そのプログラムProgrammable controller system, drawing editor device thereof, program thereof
 本発明は、プログラマブル表示器用の画面データ作成を支援する作画エディタ装置に関する。 The present invention relates to a drawing editor apparatus that supports creation of screen data for a programmable display.
 プログラマブル表示器は、一般的に、PLC(Programmable Logic Controller)本体や温調装置等の各種接続機器と接続して、これら接続機器の状態表示を行う数値表示やランプ等のアイテムや、ユーザが任意の指示を出す為のスイッチ等のアイテムの画像を表示する。尚、アイテムは、画面部品等とも呼ばれている。プログラマブル表示器の画面(操作表示画面と呼ぶものとする)には、通常、複数の画面部品(アイテム)の画像が表示される。この様な操作表示画面を表示する為のデータ等(画面データ等と呼ばれる)は、予め支援装置等において開発者等によって任意に作成されて、支援装置からプログラマブル表示器にダウンロードされている。 Programmable displays are generally connected to various connected devices such as PLC (Programmable Logic Controller) and temperature control devices, and numerical items, lamps, and other items for displaying the status of these connected devices, and user-specified An image of an item such as a switch for issuing an instruction is displayed. An item is also called a screen component or the like. Usually, images of a plurality of screen components (items) are displayed on the screen of the programmable display (referred to as an operation display screen). Data or the like for displaying such an operation display screen (referred to as screen data or the like) is arbitrarily created in advance by a developer or the like in a support device or the like and downloaded from the support device to a programmable display.
 上記画面データには、上記各アイテム毎に、そのアイテムの画像(スイッチの画像やランプの画像)や表示位置座標、更に後述する外部メモリの所定領域のアドレス(割当メモリアドレス)等のデータが含まれている。更に何らかのプログラム等が含まれている場合もある。上記支援装置は、例えば、上記画面データをユーザに任意に作成させる為の各種支援を行う機能を有する。これについては、よく知られた既存技術であるので、ここでは特に説明しない。 The screen data includes, for each item, data such as an image of the item (switch image or lamp image), display position coordinates, and an address (assigned memory address) of a predetermined area of the external memory described later. It is. In addition, some programs may be included. The support device has a function of performing various types of support for allowing the user to arbitrarily create the screen data, for example. This is a well-known existing technique and will not be described here.
 上記各アイテム(画面部品)は、例えば、それぞれが任意の接続機器の任意の構成要素に対応して、当該構成要素の状態表示を行ったり、当該構成要素のON/OFFの指示を受け付けるものである。例えば、温度調節装置の温度測定値を数値表示するアイテムの場合、随時、現在の温度を数値で表示することになる。あるいは、温度調節装置のON/OFF状態を示すランプのアイテムであれば、温度調節装置がON状態であればランプ点灯、OFF状態であればランプ消灯が、表示されることになる。 Each of the items (screen parts) is, for example, a status display of the component corresponding to an arbitrary component of an arbitrary connected device, or receiving an ON / OFF instruction for the component. is there. For example, in the case of an item that numerically displays the temperature measurement value of the temperature control device, the current temperature is displayed numerically as needed. Alternatively, in the case of a lamp item indicating the ON / OFF state of the temperature control device, the lamp is turned on if the temperature control device is ON, and the lamp is turned off if the temperature control device is OFF.
 尚、支援装置においては、予めアイテム画像としてランプ点灯画像とランプ消灯画像が登録されており、上記画面データには1つのランプアイテムについてランプ点灯画像とランプ消灯画像が含まれることになる。勿論、これは、ランプの場合に限るものではなく、例えばスイッチ等の他のアイテム種別についても同様である。 In the support device, a lamp-on image and a lamp-off image are registered in advance as item images, and the screen data includes a lamp-on image and a lamp-off image for one lamp item. Of course, this is not limited to the case of lamps, and the same applies to other item types such as switches.
 上記各種アイテムに係る表示制御は、上記各アイテム毎に、例えば定期的に所定の処理を実行することで実現される。所定の処理とは、例えば、そのアイテムに係わる所定の接続機器内の所定のメモリデバイス(外部メモリデバイスとする)の所定の記憶領域の格納データ(上記割当メモリアドレスが示す所定の割当メモリ領域の格納データ)を読出す処理である。更に、この格納データに基づいてアイテムの表示内容を決定・表示する処理(表示内容のリフレッシュ処理)等である。尚、上記所定の割当メモリ領域の格納データ)を読出す処理は、概略的には上記外部メモリデバイスにアクセスする処理であることから、外部メモリアクセス処理と呼ぶ場合もあるものとする。 The display control related to the various items is realized by, for example, periodically executing predetermined processing for each item. The predetermined process is, for example, data stored in a predetermined storage area of a predetermined memory device (referred to as an external memory device) in a predetermined connected device related to the item (in the predetermined allocation memory area indicated by the allocation memory address). Stored data). Furthermore, a process for determining and displaying the display content of an item based on the stored data (display content refresh process) and the like. Note that the process of reading the data stored in the predetermined allocation memory area) is generally a process of accessing the external memory device, and therefore may be referred to as an external memory access process.
 尚、接続機器は、随時、上記外部メモリデバイスの所定領域の格納データを更新している。例えば、接続機器が上記温度調節装置ならば、接続機器は、上記温度測定値を随時更新していることになる。 The connected device updates the stored data in a predetermined area of the external memory device as needed. For example, if the connected device is the temperature control device, the connected device updates the temperature measurement value as needed.
 ここで、上記支援装置は、画面データ作成の際に各アイテム毎に任意の上記割当メモリアドレスをユーザに設定させる機能も有している。上記の通り、画面データには、当該設定された割当メモリアドレスも含まれている。画面データは、支援装置からプログラマブル表示器にダウンロードされて記憶される。そして、運用中には、各アイテム毎に対応して、上記割当メモリアドレスに基づいて上記割当メモリ領域にアクセスすることになる。 Here, the support device also has a function of allowing the user to set an arbitrary allocated memory address for each item when creating screen data. As described above, the screen data also includes the set allocated memory address. The screen data is downloaded from the support device to the programmable display device and stored. During operation, the allocated memory area is accessed based on the allocated memory address corresponding to each item.
 これは、上記割当メモリ領域へのアクセスコマンドを生成して接続機器へ送信し、当該接続機器からの返信コマンドを受信することで、割当メモリ領域の格納データを取得するものである。これは、基本的には各アイテム毎に、つまり各割当メモリ領域毎にアクセスコマンドを生成して送信するものであるが、複数の割当メモリ領域を含むメモリ領域へのアクセスコマンドを生成して送信する場合もある。これによって、複数のアイテムのデータを一度にまとめて取得できる。これによってコマンド送受信回数を減らすことができ、以って外部メモリアクセス処理時間を短くすることができる。 This is to generate stored commands in the allocated memory area by generating an access command to the allocated memory area and transmitting it to the connected device and receiving a reply command from the connected device. Basically, an access command is generated and transmitted for each item, that is, for each allocated memory area, but an access command to a memory area including a plurality of allocated memory areas is generated and transmitted. There is also a case. Thereby, data of a plurality of items can be acquired at once. As a result, the number of times of command transmission / reception can be reduced, and the external memory access processing time can be shortened.
 また、例えば特許文献1,2,3に開示されている従来技術がある。
 特許文献1に記載の従来技術は、イーサキャット(登録商標)のFAシステムにおいて、異常解析を簡単・確実に行えるようにするものである。その為に、コントローラは、モニタシステムプログラムで動作するプロトコルモニタ機能を備え、リモート装置と通信するデータを常時モニタリングする。コントローラは、異常を検知する異常診断機能を備えるので、そこで異常が検出された際に、その直前にモニタしていたデータを保持する。プロトコルモニタ機能が組み込まれることで、異常発生後に新たにプロトコルモニタを外部装置としてネットワークに加入させる必要が無く、システムの稼働当初からモニタすることで、最初に発生した異常から、その原因となるデータを保持し、解析に利用できる。
Further, there are conventional techniques disclosed in Patent Documents 1, 2, and 3, for example.
The prior art described in Patent Document 1 is to enable anomaly analysis to be performed easily and reliably in an FA system of Ethercat (registered trademark). For this purpose, the controller has a protocol monitor function that operates according to the monitor system program, and constantly monitors data communicated with the remote device. Since the controller has an abnormality diagnosis function for detecting an abnormality, when an abnormality is detected there, the controller monitors the data monitored immediately before that. The built-in protocol monitor function eliminates the need for a new protocol monitor to join the network as an external device after an error occurs. By monitoring the system from the beginning of operation, the data that causes it can be detected from the first error that occurred. Can be used for analysis.
 また、特許文献2に記載の従来技術は、プログラマブル表示器に表示される画面上で部品などのオブジェクトをグループ化して動作させるために、同一グループの各オブジェクトへのアドレスを効率的に対応付けるものである。その為に、作画エディタ部は、グループ設定部によって、共通のグループアドレスでグループ化する。グループ化は、作画エディタ部によって表示される作画ウインドウに配置された複数のオブジェクトに対して行う。ユーザが、グループ化するオブジェクトを選択してグループアドレスを入力すると、グループ設定部は、そのグループアドレスを選択されたオブジェクトに共通に設定する。プログラマブル表示器は、グループ化されたオブジェクトを含む画面を表示するとき、PLCの内部メモリにおけるグループアドレスに該当するアドレスの内容(ビットやワード)が変化すると、それに応じて、グループ化された各オブジェクトの表示状態を一斉に変化させる。 The prior art described in Patent Document 2 efficiently associates addresses to objects in the same group in order to group and operate objects such as parts on a screen displayed on a programmable display. is there. For this purpose, the drawing editor unit is grouped by a common group address by the group setting unit. The grouping is performed on a plurality of objects arranged in the drawing window displayed by the drawing editor unit. When the user selects an object to be grouped and inputs a group address, the group setting unit sets the group address in common for the selected object. When the programmable display displays a screen including grouped objects, if the contents (bits or words) of the address corresponding to the group address in the PLC internal memory change, each grouped object will be changed accordingly. Change the display status of all at once.
 また、特許文献3に記載の従来技術は、通信プロトコルを解析して、該通信プロトコルに対応した通信プログラムを作成するものである。その為に、通信プログラム作成装置は、モニタ部でプログラマブル表示器とPLCとの間の通信を取得して、解析部でPLCのプロトコルを自動解析する。更に、記憶部でプロトコルフォーマットを記憶し、プログラム作成部で通信インタフェースである通信プログラムP1を作成する。これにより、通信プログラム作成装置は、通信プログラムP1から記憶部に記憶されたプロトコルフォーマットを利用して、プログラマブル表示器がPLCと通信しているように、PLCと通信できる。
特開2011-35664号公報 特開2007-65907号公報 特開2002-300226号公報
The prior art described in Patent Document 3 analyzes a communication protocol and creates a communication program corresponding to the communication protocol. For this purpose, the communication program creation device acquires communication between the programmable display and the PLC by the monitor unit, and automatically analyzes the PLC protocol by the analysis unit. Further, the protocol format is stored in the storage unit, and the communication program P1 which is a communication interface is generated in the program creation unit. Thereby, the communication program creation apparatus can communicate with the PLC using the protocol format stored in the storage unit from the communication program P1 as if the programmable display device is communicating with the PLC.
JP 2011-35664 A JP 2007-65907 A JP 2002-300226 A
 上記のように割当メモリアドレスは人間が設定するのであるから、設定ミスが生じる可能性は常にある。また、ミスではないにしても、より適切な設定がある場合もある。より適切な設定とは、上記外部メモリアクセス処理時間が、より短時間で済むようにするメモリアドレス設定である。これより、例えば画面データの作成等に伴って、ユーザがより適切な設定が行えるように支援する機能が要望されている。 As described above, since the allocated memory address is set by a human, there is always a possibility that a setting error will occur. Even if it is not a mistake, there may be a more appropriate setting. More appropriate settings are memory address settings that allow the external memory access processing time to be shorter. Thus, for example, with the creation of screen data, there is a demand for a function that assists the user in making more appropriate settings.
 上記特許文献1,2,3の従来技術は、何れも、この様な要望を解決できるものではない。
 本発明の課題は、プログラマブル表示器用の画面データ作成を支援する作画エディタ装置に係わり、ユーザがより適切な割当メモリアドレス設定を行えるように支援する作画エディタ装置等を提供することである。
None of the prior arts in Patent Documents 1, 2, and 3 can solve such a demand.
An object of the present invention relates to a drawing editor apparatus that supports creation of screen data for a programmable display, and provides a drawing editor apparatus and the like that supports a user to set an appropriate allocated memory address.
 本発明は、画面上の各アイテムに係る外部メモリアクセス情報が含まれる画面データに基づいて、外部機器の外部メモリにアクセスするプログラマブル表示器と、該画面データを任意に作成させる作画エディタ装置とを有するプログラマブルコントローラシステムであって、下記の構成を有する。 The present invention provides a programmable display that accesses an external memory of an external device based on screen data including external memory access information related to each item on the screen, and a drawing editor device that arbitrarily creates the screen data. A programmable controller system having the following configuration.
 前記作画エディタ装置は、下記の各構成を有する。
・任意の前記画面データの前記外部メモリアクセス情報から、デフォルトのバックアップ情報を生成するバックアップ情報生成手段;
・該バックアップ情報を任意に変更させる設定変更手段;
・前記デフォルトまたは変更後のバックアップ情報に基づいて、そのときのバックアップ情報に応じた外部メモリアクセスに係るメモリアクセス処理時間を算出して表示する処理時間算出手段;
The drawing editor device has the following configurations.
Backup information generation means for generating default backup information from the external memory access information of arbitrary screen data;
A setting changing means for arbitrarily changing the backup information;
Processing time calculation means for calculating and displaying a memory access processing time related to external memory access according to the backup information at that time based on the default or changed backup information;
本例のプログラマブルコントローラシステム全体の概略構成図である。It is a schematic block diagram of the whole programmable controller system of this example. プログラマブル表示器のハードウェア構成例である。It is a hardware structural example of a programmable display. 本システムのソフトウェア構成図である。It is a software block diagram of this system. 本例の作画エディタの機能ブロック図である。It is a functional block diagram of the drawing editor of this example. 本例の作画エディタの機能の一部を概略的に示す図である。It is a figure which shows roughly a part of function of the drawing editor of this example. 画面選択の例である。It is an example of screen selection. 初期状態の解析設定表示画面の一例である。It is an example of the analysis setting display screen of an initial state. 設定変更後の解析設定表示画面の一例である。It is an example of the analysis setting display screen after a setting change. (a)、(b)は、画面データの具体例である。(A), (b) is a specific example of screen data. (a)は外部機器情報、(b)は外部機器メモリデータの具体例である。(A) is external device information, (b) is a specific example of external device memory data. 解析データの具体例である。It is a specific example of analysis data. 通信内容表示部の処理フローチャート図である。It is a processing flowchart figure of a communication content display part. メモリ解析処理部の処理フローチャート図である。It is a process flowchart figure of a memory analysis process part. 通信内容編集処理部の処理フローチャート図である。It is a process flowchart figure of a communication content edit process part. スイッチ監視処理部の処理フローチャート図である。It is a process flowchart figure of a switch monitoring process part. メモリ設定処理部の処理フローチャート図である。It is a process flowchart figure of a memory setting process part. コマンドのデータ構成の一例を示す図である。It is a figure which shows an example of the data structure of a command. 作画エディタ装置のハードウェア構成例である。It is a hardware structural example of a drawing editor apparatus.
 以下、図面を参照して本発明の実施の形態について説明する。
 図1は、本例のプログラマブルコントローラシステム全体の概略構成図である。
 図示の例のプログラマブルコントローラシステムは、プログラマブル表示器1が通信ライン3を介して作画エディタ装置5に接続された構成となっている。尚、プログラマブル表示器1は、通信ライン6を介して1以上の接続機器4(外部機器)にも接続している。各接続機器4は、例えば各種PLC本体や上記温度調節装置等である。プログラマブル表示器1には、複数の通信インタフェース2(通信ポート)が備えられており、各通信インタフェース2に接続された通信ライン3/通信ライン6によって各種接続機器4や作画エディタ装置5と接続されている。
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a schematic configuration diagram of the entire programmable controller system of this example.
The programmable controller system in the illustrated example has a configuration in which a programmable display 1 is connected to a drawing editor device 5 via a communication line 3. The programmable display 1 is also connected to one or more connection devices 4 (external devices) via the communication line 6. Each connection device 4 is, for example, various PLC main bodies, the above-described temperature control device, or the like. The programmable display 1 is provided with a plurality of communication interfaces 2 (communication ports), and is connected to various connection devices 4 and the drawing editor device 5 by the communication line 3 / communication line 6 connected to each communication interface 2. ing.
 尚、図1に示す構成は、一例であり、この例に限らない。例えば、必ずしもプログラマブル表示器1が通信ライン3を介して作画エディタ装置5に接続された構成でなくてもよい。プログラマブル表示器1と作画エディタ装置5とが別々に存在していてもよい。但し、作画エディタ装置5で任意に作成された画面データが、何らかの方法でプログラマブル表示器1に渡されて記憶されるように構成することが望ましい。 The configuration shown in FIG. 1 is an example, and the present invention is not limited to this example. For example, the configuration in which the programmable display device 1 is not necessarily connected to the drawing editor device 5 via the communication line 3 may be used. The programmable display 1 and the drawing editor device 5 may exist separately. However, it is desirable that the screen data arbitrarily created by the drawing editor device 5 is transferred to the programmable display device 1 by some method and stored.
 作画エディタ装置5は、上記背景技術で説明した既存の支援装置の機能も有するものである。つまり、上記操作表示画面をプログラマブル表示器1で表示させる為のデータ等(画面データ等)を、開発者等が任意に作成できるように支援する既存機能等を有する。 The drawing editor device 5 also has the function of the existing support device described in the background art above. That is, it has an existing function or the like that supports a developer or the like to arbitrarily create data or the like (screen data or the like) for displaying the operation display screen on the programmable display 1.
 既存機能は、既に述べたように、例えば、予め各種アイテム画像が用意されており、ユーザは所望のアイテム画像を選択して所望の位置に配置させる作業を繰り返して、上記画面データ作成を行う。その際、各アイテム毎に、所望の割当メモリアドレス(割当メモリ領域)等の設定も、ユーザに任意に行わせる。つまり、画面データには、各アイテム毎の割当メモリアドレスの設定情報等も含まれている。この様にして作成された画面データは、作画エディタ装置5からプログラマブル表示器1にダウンロードされる。 As already described, for example, various item images are prepared in advance as the existing function, and the user repeats the operation of selecting a desired item image and placing it at a desired position, thereby creating the screen data. At this time, the user can arbitrarily set a desired allocated memory address (allocated memory area) for each item. That is, the screen data includes setting information for the allocated memory address for each item. The screen data created in this way is downloaded from the drawing editor device 5 to the programmable display device 1.
 但し、本例の作画エディタ装置5は、この既存機能による画面データ作成支援に関連して、更に、後述するユーザ支援機能)を有する。換言すれば、ユーザ支援機能はユーザが適切な割当メモリアドレスを設定できるように支援する機能であり、より適切な内容の画面データが作成されるように(特に適切な割当メモリアドレスが設定されるように)ユーザを支援する機能である。詳しくは後述する。 However, the drawing editor device 5 of this example further has a user support function (to be described later) in connection with the screen data creation support by this existing function. In other words, the user support function is a function for assisting the user to set an appropriate allocated memory address, so that screen data with more appropriate contents can be created (particularly, an appropriate allocated memory address is set). Like) is a function to support the user. Details will be described later.
 プログラマブル表示器1は、従来と同様に、画面データに基づいて上記操作表示画面を表示する。そして、表示中に例えば定期的に、上記表示内容のリフレッシュ処理を行う。その為に、操作表示画面上の各アイテムに係わる上記割当メモリ領域へのアクセスを行って、直近のデータを取得して、この直近のデータに応じた内容の操作表示画面を表示する。 The programmable display 1 displays the operation display screen based on the screen data as in the conventional case. During the display, for example, the display content is refreshed periodically. For this purpose, the above-mentioned allocation memory area related to each item on the operation display screen is accessed, the latest data is acquired, and the operation display screen having contents corresponding to the latest data is displayed.
 これは、本説明では基本的に、従来で説明したように、1または複数のアイテムの割当メモリ領域を含む1つの記憶領域へのアクセスを行う要求コマンド(リードコマンド等)を、1回または複数回、生成・送信する。基本的には、表示中の操作表示画面上の全アイテムの割当メモリ領域に、アクセスすることになる。そして、その為に掛かる時間(外部メモリアクセス処理時間)は、短い方が望ましい。外部メモリアクセス処理時間が短いほど、通信パフォーマンスが良好であると見做してよい。 In this description, basically, as described above, a request command (such as a read command) for accessing one storage area including an allocated memory area of one or a plurality of items is transmitted once or a plurality of times. Generate and send once. Basically, the allocated memory area of all items on the displayed operation display screen is accessed. And it is desirable that the time required for this (external memory access processing time) is short. It can be considered that the shorter the external memory access processing time, the better the communication performance.
 尚、逐一述べないが、上記外部メモリアクセスに係わる要求コマンド等の送信先は、接続機器4であり、各アイテムの割当メモリ領域は、接続機器4内のメモリ(外部メモリ)における任意の記憶領域である。 Although not described one by one, the transmission destination of the request command or the like related to the external memory access is the connected device 4, and the allocated memory area of each item is an arbitrary storage area in the memory (external memory) in the connected device 4 It is.
 何れにしても、プログラマブル表示器1の機能自体は従来と同じであってよく、本例では作画エディタ装置5において新機能を備えるものである。
 ここで、作画エディタ装置5は、例えば一般的な汎用コンピュータ(パーソナルコンピュータ等)で実現される。よって、特に図示等はしないが、一般的なパソコン等の構成を有する。すなわち、例えば、CPU等の演算プロセッサ、メモリ、ハードディスク等の記憶装置、キーボードやマウス等の操作部、ディスプレイ等の表示部、通信機能部等を有している。
In any case, the function itself of the programmable display 1 may be the same as the conventional one, and in this example, the drawing editor device 5 has a new function.
Here, the drawing editor device 5 is realized by, for example, a general general-purpose computer (such as a personal computer). Therefore, although not shown in the drawings, it has a configuration of a general personal computer or the like. That is, for example, it has an arithmetic processor such as a CPU, a storage device such as a memory and a hard disk, an operation unit such as a keyboard and a mouse, a display unit such as a display, a communication function unit, and the like.
 上記記憶装置には予め所定のアプリケーションプログラムが記憶されており、上記演算プロセッサがこのアプリケーションプログラムを実行することにより、作画エディタ装置5の各種機能が実現される。 A predetermined application program is stored in the storage device in advance, and various functions of the drawing editor device 5 are realized by the arithmetic processor executing the application program.
 また、プログラマブル表示器1も、ハードウェア構成自体は、一般的なものであってよい。よって、以下、図2を参照して簡単に説明する。
 図2は、プログラマブル表示器1のハードウェア構成例である。
The programmable display 1 may also have a general hardware configuration. Therefore, a brief description will be given below with reference to FIG.
FIG. 2 is a hardware configuration example of the programmable display device 1.
 プログラマブル表示器1は、上述した従来例と略同様に上述した画面データ等に基づく各スクリーン(操作表示画面)の表示等を行う機能を有する。この操作表示画面の表示処理には、上述した表示内容のリフレッシュ処理も含まれる。つまり、スクリーン上のアイテムに応じた上記外部メモリアクセス処理(割当メモリ領域からのデータ取得処理)も含まれる。 The programmable display device 1 has a function of displaying each screen (operation display screen) based on the above-described screen data and the like in substantially the same manner as the conventional example described above. The display process of the operation display screen includes the above-described display content refresh process. That is, the external memory access process (data acquisition process from the allocated memory area) corresponding to the item on the screen is also included.
 図示のプログラマブル表示器1は、表示操作制御装置10と、タッチパネル18、ディスプレイ19、上記通信インタフェース2等を有する。
 表示操作制御装置10は、CPU11、ROM12(フラッシュメモリ等)、RAM13、通信コントローラ14、グラフィックコントローラ15、タッチパネルコントローラ16等より成り、これらがバス17に接続されている。
The illustrated programmable display 1 includes a display operation control device 10, a touch panel 18, a display 19, the communication interface 2, and the like.
The display operation control device 10 includes a CPU 11, a ROM 12 (flash memory or the like), a RAM 13, a communication controller 14, a graphic controller 15, a touch panel controller 16, and the like, which are connected to a bus 17.
 CPU11は、表示操作制御装置10全体を制御する中央処理装置(演算プロセッサ)である。CPU11は、ROM12に予め格納されているアプリケーションプログラム(例えば後述する本体プログラム21等)を実行することで、プログラマブル表示器1の各種演算処理(特に後述する各フローチャートの処理や機能ブロック図の各種処理機能)を実現する。 The CPU 11 is a central processing unit (arithmetic processor) that controls the entire display operation control device 10. The CPU 11 executes application programs (for example, a main body program 21 described later) stored in the ROM 12 in advance, thereby performing various arithmetic processes of the programmable display device 1 (particularly, various flowchart processes and functional block diagram processes described later). Function).
 また、ROM12には、上記背景技術で説明した画面データ等が格納されている(後述の画面データ22)。上記のように、画面データ22は、操作表示画面上に配置されたスイッチ、ランプ等の各アイテムに関する各種データ等を有する(各種データとは画像や表示位置座標や大きさ等のデータや、上記割当メモリアドレス等)。 The ROM 12 stores screen data described in the background art (screen data 22 described later). As described above, the screen data 22 includes various data related to each item such as a switch and a lamp arranged on the operation display screen (the various data includes data such as an image, display position coordinates, size, and the like described above. Allocated memory address).
 上記CPU11の処理によって、例えば上記画面データ22や上記外部メモリアクセスによる取得データ等に基づく表示対象データが、例えばRAM13上に展開(描画)される。詳しくは後述する。なお、RAM13は不図示のビデオRAMなどで代用可能である。この描画に基づいてグラフィックコントローラ15が、ディスプレイ19上に上述した操作表示画面等を表示する。ディスプレイ19は、例えば液晶パネル等より成り、この液晶パネル上に重ねるようにしてタッチパネル18が設けられる。 By the processing of the CPU 11, for example, the display target data based on the screen data 22 and the acquired data by the external memory access is developed (drawn) on the RAM 13, for example. Details will be described later. The RAM 13 can be replaced with a video RAM (not shown). Based on this drawing, the graphic controller 15 displays the above-described operation display screen on the display 19. The display 19 is composed of, for example, a liquid crystal panel, and a touch panel 18 is provided so as to overlap the liquid crystal panel.
 オペレータ等によるタッチパネル18上での押圧操作位置(タッチ位置)の検知結果は、タッチパネルコントローラ16を介してCPU11等に取り込まれて解析される。例えば各アイテムの上記表示位置座標や大きさのデータ等に基づいて、解析することになる。例えば、スイッチの画像の表示位置をオペレータ等がタッチすると、CPU11等は、このスイッチに対する操作が行われたものと解析することになる。 The detection result of the pressing operation position (touch position) on the touch panel 18 by the operator or the like is taken into the CPU 11 or the like via the touch panel controller 16 and analyzed. For example, analysis is performed based on the display position coordinates and size data of each item. For example, when an operator or the like touches the display position of the switch image, the CPU 11 or the like analyzes that an operation on the switch has been performed.
 また、通信コントローラ14は、通信インタフェース2を介して、不図示のPLC本体等や温度調節装置等である接続機器4や作画エディタ装置5との通信を行う。
 図3に、上記本システムのソフトウェア構成図を示す。
Further, the communication controller 14 communicates with a connection device 4 and a drawing editor device 5 such as a PLC main body (not shown), a temperature control device, and the like via the communication interface 2.
FIG. 3 shows a software configuration diagram of the system.
 プログラマブル表示器1においては、本体プログラム21、画面データ22、通信プログラム23等の各種プログラム/データが、フラッシュメモリ等の上記ROM12に格納されている。これらのプログラム/データ等をCPU11が読出し・実行/参照等することで、プログラマブル表示器用の各操作表示画面の表示制御等が行なわれる。 In the programmable display 1, various programs / data such as a main body program 21, screen data 22, and a communication program 23 are stored in the ROM 12 such as a flash memory. The CPU 11 reads / executes / references these programs / data, etc., thereby performing display control of each operation display screen for the programmable display.
 この操作表示画面は、上述した数値表示、ランプ、スイッチ等の各種アイテムの画像表示から成り、各アイテムの表示内容は、例えば各接続機器4の外部メモリデバイスの所定の記憶領域から取得したデータを反映させる形で随時更新される。換言すれば、操作表示画面は割当メモリ領域からの取得データを反映させる形で随時更新される。 This operation display screen is composed of the above-described numerical display, image display of various items such as lamps and switches, and the display content of each item is, for example, data acquired from a predetermined storage area of an external memory device of each connected device 4 Updated as needed to reflect. In other words, the operation display screen is updated as needed to reflect the acquired data from the allocated memory area.
 つまり、CPU11は、本体プログラム21と画面データ22と上記取得データに基づいて、上記操作表示画面の表示制御を実行する。その際、この操作表示画面上の各アイテム(各画面部品)の表示内容は、上記取得データの内容を反映させたものとなる(温度等の数値表示やランプの点灯/消灯など)。尚、これ自体は、既存の機能であり、これ以上詳細には説明しない。 That is, the CPU 11 executes display control of the operation display screen based on the main body program 21, the screen data 22, and the acquired data. At that time, the display content of each item (each screen component) on the operation display screen reflects the content of the acquired data (numerical display such as temperature, lighting / extinguishing of the lamp, etc.). Note that this is an existing function and will not be described in further detail.
 但し、本例では基本的に、複数のアイテムの各割当メモリ領域に、1つずつ順次アクセスするようなことは想定していない。つまり、基本的に、ある程度まとめてアクセスする。可能であれば1回で全アイテムの割当メモリ領域(割当アドレス)にアクセスする。 However, in this example, basically, it is not assumed that each allocated memory area of a plurality of items is sequentially accessed one by one. In other words, access is generally made to some extent. If possible, the allocated memory area (allocated address) of all items is accessed once.
 すなわち、プログラマブル表示器1は、画面データ22(上記各アイテム毎の割当メモリ領域)等に基づいて、各アイテムの各割当アドレス全てを含む記憶領域にアクセスするための要求コマンドを、1回、接続機器4へ送信することによって、全てのアイテムの割当アドレスにアクセスする場合がある。その一例を後述する図8に示す。 That is, the programmable display 1 connects a request command for accessing the storage area including all the assigned addresses of each item once based on the screen data 22 (the assigned memory area for each item). By transmitting to the device 4, there are cases in which the allocated addresses of all items are accessed. An example thereof is shown in FIG.
 同様に、プログラマブル表示器1は、画面データ22等に基づいて、各アイテムの中の1以上のアイテムの割当アドレスを含む記憶領域にアクセスするための要求コマンドを、複数回、接続機器4へ送信することによって、全てのアイテムの割当アドレスにアクセスする場合がある。その一例を後述する図7に示す。 Similarly, the programmable display device 1 transmits a request command for accessing a storage area including an allocation address of one or more items in each item to the connection device 4 a plurality of times based on the screen data 22 or the like. By doing so, the allocated addresses of all items may be accessed. An example thereof is shown in FIG.
 上記画面データ22は、例えば予め作画エディタ装置5側で任意に作成された画面データファイル32が、プログラマブル表示器1にダウンロードされて格納されたものである。つまり、画面データ22と画面データファイル32とは実質的に同じものと見做して構わない。但し、この例に限らず、例えば画面データファイル32には複数の画面データが格納されており、そのうちの一部がプログラマブル表示器1にダウンロードされて記憶されたものが画面データ22であると見做してもよい。尚、以下、例えば画面データファイル32を、画面データ22または画面データ32等と記して説明する場合もあるものとする。 The screen data 22 is, for example, a screen data file 32 arbitrarily created in advance on the drawing editor device 5 side, downloaded to the programmable display device 1 and stored. That is, the screen data 22 and the screen data file 32 may be regarded as substantially the same. However, the present invention is not limited to this example. For example, the screen data file 32 stores a plurality of screen data, and a part of them is downloaded to the programmable display 1 and stored as the screen data 22. You may hesitate. In the following description, for example, the screen data file 32 may be described as the screen data 22 or the screen data 32.
 また、上記通信プログラム23は、例えば予め作画エディタ装置5側に格納されていた通信プログラムファイル33が、プログラマブル表示器1にダウンロードされて格納されたものである。ここで、通信プログラムファイル33は、通常、多数存在するものであり、通信プログラム群と言ってもよい。この各通信プログラムファイル33(通信プログラム群)のなかで任意の1種類以上の通信プログラムが、プログラマブル表示器1にダウンロードされて上記通信プログラム23として格納される。 In addition, the communication program 23 is a program in which, for example, a communication program file 33 stored in advance on the drawing editor device 5 side is downloaded and stored in the programmable display device 1. Here, there are usually a large number of communication program files 33, which may be called a communication program group. Any one or more types of communication programs in each communication program file 33 (communication program group) are downloaded to the programmable display 1 and stored as the communication program 23.
 ここで、上記各通信プログラムファイル33(各種通信プログラム群)は、各種接続機器4の通信プロトコル等に対応して予め作成されているものである。そして、各種通信プログラム群のなかで、ダウンロード先のプログラマブル表示器1に接続される接続機器4(その通信プロトコル等)に対応する通信プログラムファイル33が、当該プログラマブル表示器1にダウンロードされることになる。そして、上記通信プログラム23として格納されることになる。 Here, each communication program file 33 (various communication program group) is created in advance corresponding to the communication protocol of the various connected devices 4. And the communication program file 33 corresponding to the connection apparatus 4 (the communication protocol etc.) connected to the programmable display 1 of a download destination is downloaded to the said programmable display 1 among various communication program groups. Become. Then, the communication program 23 is stored.
 プログラマブル表示器1の通信プログラム23は、通信ライン6を介して接続機器4と通信を行うためのプログラムである。通常、接続機器4の機種毎等に固有の通信プロトコル(通信規定)を持ち、この通信規定に従って、プログラマブル表示器1-接続機器4間での通信を行う。そのため、通信プログラム23は、各接続機器4の機種毎等に開発が必要となる。尚、当然、CPU11などが通信プログラム23を実行することで、接続機器4との通信処理が実現される。 The communication program 23 of the programmable display 1 is a program for communicating with the connection device 4 via the communication line 6. Usually, each connected device 4 has a communication protocol (communication rule) unique to each model and performs communication between the programmable display 1 and the connected device 4 in accordance with this communication rule. Therefore, the communication program 23 needs to be developed for each model of each connected device 4. Of course, the CPU 11 and the like execute the communication program 23 to realize communication processing with the connected device 4.
 PLC本体等である接続機器4は、様々なメーカー・機種があり、各メーカー/機種毎に独自の通信プログラムがあり、上記通信プログラムは、接続機器4のメーカー/機種に応じて場合によっては多数種類作成されて、上記多数の通信プログラムファイル33として作画エディタ装置5に格納されることになる。 There are various manufacturers / models of the connection device 4 such as the PLC main body, and each manufacturer / model has its own communication program. Depending on the manufacturer / model of the connection device 4, there are many communication programs depending on the manufacturer / model. The types are created and stored in the drawing editor device 5 as the numerous communication program files 33.
 尚、プログラマブル表示器1-作画エディタ装置5間の通信は、例えば本体プログラム21と作画エディタ31とによって行う。例えば、通信機能が作画エディタ31に組み込まれている。これについては特に関係ないので、図示・説明しない。 Note that communication between the programmable display 1 and the drawing editor device 5 is performed by the main body program 21 and the drawing editor 31, for example. For example, a communication function is incorporated in the drawing editor 31. This is not particularly relevant and will not be shown or described.
 尚、上記割当メモリ領域へのアクセスや画面表示等の各種処理を実現させるプログラムは、例えば本体プログラム21に含まれていてもよいし、画面データ22に含まれていてもよい。何れにしても、この様なプログラムを例えば上記CPU11が実行することで、プログラマブル表示器1の各種動作が実現されることになる。 It should be noted that a program for realizing various processes such as access to the allocated memory area and screen display may be included in the main body program 21 or may be included in the screen data 22, for example. In any case, when the CPU 11 executes such a program, for example, various operations of the programmable display 1 are realized.
 また、作画エディタ装置5の作画エディタ31が、画面データ作成支援に係る上記既存機能や新規機能を有するものである。ユーザは、作画エディタ31による支援を受けながら、任意の画面データ(画面データ32)を作成する。 In addition, the drawing editor 31 of the drawing editor device 5 has the above existing function and new function related to screen data creation support. The user creates arbitrary screen data (screen data 32) while receiving support from the drawing editor 31.
 例えば、予め作成済みの各種アイテムが、作画エディタ装置5のハードディスク等に記憶されている。作画エディタ31による操作表示画面の作成支援機能によって、これら各種アイテムが一覧表示されて、ユーザは所望のアイテムを選択して所望の位置に配置する。更に、各アイテム毎に任意の割当メモリアドレスを設定する。ここまでは既存技術と見做して構わないが、本例の作画エディタ31は、更に、ユーザが適切な割当メモリアドレスを設定できるように支援する新機能も有する。詳しくは後述する。 For example, various items created in advance are stored in the hard disk of the drawing editor device 5 or the like. These various items are displayed in a list by the creation support function of the operation display screen by the drawing editor 31, and the user selects a desired item and arranges it at a desired position. Furthermore, an arbitrary allocated memory address is set for each item. Up to this point, although it may be regarded as an existing technology, the drawing editor 31 of this example further has a new function for assisting the user to set an appropriate allocated memory address. Details will be described later.
 尚、作画エディタ装置5は、例えばパソコン等であり、特に図示しないが一般的な汎用コンピュータの構成を有している。すなわち、例えば、CPU、記憶部(ハードディスク、メモリ等)、通信部、操作部(マウス等)、ディスプレイ等を有している。記憶部に予め記憶されているアプリケーションプログラムを、CPUが実行することにより、作画エディタ31の上述した既存機能や新機能が実現される。 The drawing editor device 5 is, for example, a personal computer or the like, and has a general general-purpose computer configuration (not shown). That is, for example, a CPU, a storage unit (hard disk, memory, etc.), a communication unit, an operation unit (mouse, etc.), a display, etc. When the CPU executes an application program stored in advance in the storage unit, the above-described existing function or new function of the drawing editor 31 is realized.
 図4は、上記作画エディタ装置5(その作画エディタ31)の機能ブロック図である。
 図示の例の作画エディタ装置5は、通信内容表示部41、メモリ解析処理部42、スイッチ監視処理部43、メモリ設定処理部44、通信内容編集処理部45、メモリ解析処理群46の各種処理機能部を有する。尚、上記の通り、これら各種処理機能は、不図示のCPUが不図示の記憶部に記憶されたアプリケーションプログラムを実行することにより実現される。また、尚、メモリ解析処理群46は、プログラマブル表示器1が有する既存機能を、作画エディタ装置5に搭載したものである。
FIG. 4 is a functional block diagram of the drawing editor device 5 (its drawing editor 31).
The drawing editor device 5 in the illustrated example includes a communication content display unit 41, a memory analysis processing unit 42, a switch monitoring processing unit 43, a memory setting processing unit 44, a communication content editing processing unit 45, and various processing functions of the memory analysis processing group 46. Part. As described above, these various processing functions are realized by a CPU (not shown) executing an application program stored in a storage unit (not shown). In addition, the memory analysis processing group 46 includes the existing functions of the programmable display device 1 mounted in the drawing editor device 5.
 通信内容表示部41は、画面データ32等に基づいて外部機器情報51とデフォルトの外部機器メモリデータ52を生成すると共に、メモリ解析処理部42、スイッチ監視処理部43、通信内容編集処理部45を適宜動作させる。これによって、ユーザに任意の外部メモリ設定を行わせると共に、設定内容に応じた通信パフォーマンス情報を算出・表示する。通信パフォーマンス情報とは外部メモリアクセス処理時間などを意味する。 The communication content display unit 41 generates external device information 51 and default external device memory data 52 based on the screen data 32 and the like, and includes a memory analysis processing unit 42, a switch monitoring processing unit 43, and a communication content editing processing unit 45. Operate appropriately. This allows the user to make arbitrary external memory settings, and calculates and displays communication performance information according to the settings. The communication performance information means an external memory access processing time.
 通信内容編集処理部45は、ユーザに、任意のアイテムの割当メモリアドレスの設定内容を任意に変更させる。そして、この変更内容を外部機器メモリデータ52に反映させる。 The communication content editing processing unit 45 causes the user to arbitrarily change the setting content of the allocated memory address of an arbitrary item. Then, the changed contents are reflected in the external device memory data 52.
 メモリ解析処理部42は、メモリ解析処理群46を動作させる。メモリ解析処理群46は、外部機器情報51と外部機器メモリデータ52に基づいて所定の解析処理を実行して処理結果として解析データ53を出力する。これは、外部機器情報51や外部機器メモリデータ52等に基づいて、上記所定の解析処理を実行させて解析データ53を生成する。つまり、メモリ解析処理部42は、外部機器情報51や外部機器メモリデータ52のデフォルト状態や割当メモリアドレス設定変更後の情報に基づいて、解析処理を実行させて解析データ53を生成する。尚、所定の解析処理は、上記の通り既存処理であり、後に説明するものとする。 The memory analysis processing unit 42 operates the memory analysis processing group 46. The memory analysis processing group 46 executes predetermined analysis processing based on the external device information 51 and the external device memory data 52, and outputs analysis data 53 as a processing result. This generates the analysis data 53 by executing the predetermined analysis process based on the external device information 51, the external device memory data 52, and the like. That is, the memory analysis processing unit 42 generates analysis data 53 by executing analysis processing based on the external device information 51, the default state of the external device memory data 52, and the information after the allocation memory address setting is changed. The predetermined analysis process is an existing process as described above, and will be described later.
 つまり、メモリ解析処理部42は、プログラマブル表示器1と接続機器4(外部機器)との間の通信パフォーマンスを示す情報(特にユーザ設定に応じたもの)を、算出するものと言える。これは、特に、任意の画面データに係わる外部メモリアクセスの為の処理時間(外部メモリアクセス処理時間)を、算出するものである。これは、例えば後述するように、外部メモリアクセスの為のコマンド送受信に係わる伝送時間を、算出するものであるが、この例に限らない。詳しくは後述する。 That is, it can be said that the memory analysis processing unit 42 calculates information indicating communication performance between the programmable display device 1 and the connection device 4 (external device) (particularly according to user settings). This particularly calculates the processing time (external memory access processing time) for external memory access related to arbitrary screen data. For example, as described later, the transmission time for command transmission / reception for external memory access is calculated, but the present invention is not limited to this example. Details will be described later.
 上記解析結果は、表示される。ユーザは、この表示内容を参照して、割当メモリアドレスが現在の状態で適切か否かを判断する。不適切と判断した場合には、上記割当メモリアドレスの設定内容を更に変更して、新たな解析結果を表示させる。一方、適切と判断した場合には。所定のスイッチ操作を行う。スイッチ監視処理部43は、このスイッチ操作の有無を監視しており、所定のスイッチ操作があった場合にはメモリ設定処理部44を動作させる。 The above analysis result is displayed. The user refers to this display content to determine whether or not the allocated memory address is appropriate in the current state. If it is determined as inappropriate, the setting contents of the allocated memory address are further changed, and a new analysis result is displayed. On the other hand, if it is deemed appropriate. A predetermined switch operation is performed. The switch monitoring processing unit 43 monitors the presence / absence of this switch operation, and operates the memory setting processing unit 44 when a predetermined switch operation is performed.
 メモリ設定処理部44は、そのときの外部機器メモリデータ52の内容を、画面データ32に反映させる(画面データ32を更新する)。これによって、画面データ32における既存の割当メモリアドレスが、ユーザが適切と判断したときの割当メモリアドレスに変更されることになる。 The memory setting processing unit 44 reflects the contents of the external device memory data 52 at that time in the screen data 32 (updates the screen data 32). As a result, the existing allocated memory address in the screen data 32 is changed to the allocated memory address when the user determines that it is appropriate.
 尚、画面データ32が複数の画面データより成る場合には、例えば図5や図6に示すように、最初に画面データ一覧を表示して、解析対象とする任意の画面データをユーザに選択させる。これより、解析対象の画面データに関して、上記デフォルト状態や任意のアドレス設定変更毎の外部機器メモリデータ52に応じた解析処理と処理結果(解析データ53)の表示等が、行われる。そして、上記所定のスイッチ操作があった場合には、解析対象の画面データを、そのときの外部機器メモリデータ52に基づいて更新する。解析対象の画面データは、例えば後述する画面No.101等によって識別できる。 When the screen data 32 is composed of a plurality of screen data, for example, as shown in FIGS. 5 and 6, for example, a screen data list is first displayed to allow the user to select arbitrary screen data to be analyzed. . Thus, with respect to the screen data to be analyzed, analysis processing and display of the processing result (analysis data 53) according to the external device memory data 52 for each default setting or any address setting change are performed. When the predetermined switch operation is performed, the screen data to be analyzed is updated based on the external device memory data 52 at that time. The screen data to be analyzed is, for example, a screen No. described later. 101 or the like.
 尚、図4には示していないが、メモリ設定処理部44によって画面データ32が更新された場合に、自動的に、当該更新後の画面データ32をプログラマブル表示器にダウンロード(転送)して、不図示ではあるが、その画面データ22を更新させる転送部が更に設けられていてもよい。これによって、プログラマブル表示器側の画面データ22を更新し忘れる事態を回避できる。 Although not shown in FIG. 4, when the screen data 32 is updated by the memory setting processing unit 44, the updated screen data 32 is automatically downloaded (transferred) to the programmable display device. Although not shown, a transfer unit for updating the screen data 22 may be further provided. As a result, it is possible to avoid a situation where the screen data 22 on the programmable display side is forgotten to be updated.
 図7、図8は、上記作画エディタ装置5による解析設定表示画面の具体例である。図7はデフォルト状態、図8は任意のアドレス設定変更に係るものである。
 図7、図8に示す解析設定表示画面60は、メモリ設定表示/変更領域61、解析結果表示領域62を有する。更に、OKスイッチ63、適用スイッチ64、キャンセルスイッチ65等の各種スイッチ(ボタン)等も有する。
7 and 8 are specific examples of the analysis setting display screen by the drawing editor device 5. FIG. 7 shows a default state, and FIG. 8 shows an arbitrary address setting change.
The analysis setting display screen 60 shown in FIGS. 7 and 8 has a memory setting display / change area 61 and an analysis result display area 62. Further, various switches (buttons) such as an OK switch 63, an application switch 64, and a cancel switch 65 are provided.
 メモリ設定表示/変更領域61には、外部機器メモリデータ52の現在の内容(各割当メモリアドレス)が表示される。上記の通り、外部機器メモリデータ52の各割当メモリアドレスは、デフォルト状態では画面データ32と同一である。また、外部機器メモリデータ52の各割当メモリアドレスは、画面データ32が複数の画面データより成る場合には、上記選択された解析対象の画面データと同一である。つまり、デフォルト状態では画面データ32の各割当メモリアドレスが表示されることになる。 In the memory setting display / change area 61, the current contents (each allocated memory address) of the external device memory data 52 are displayed. As described above, each allocated memory address of the external device memory data 52 is the same as the screen data 32 in the default state. Each allocated memory address of the external device memory data 52 is the same as the selected screen data to be analyzed when the screen data 32 is composed of a plurality of screen data. That is, in the default state, each allocated memory address of the screen data 32 is displayed.
 そして、ユーザが任意のアドレス設定を変更する毎に、変更後の各割当メモリアドレスが表示されることになる。
 ここで、このメモリ設定表示/変更領域61上の表示は、例えば、解析対象の画面データ上の全てのアイテムに係る割当メモリアドレスが、表示されることになる。例えば、図7に示す例では、アドレスD0~D9までの10ワードの領域及びアドレスD100の1ワードの領域が、解析対象の画面データに関して割り当てられていることになる。
Each time the user changes an arbitrary address setting, each allocated memory address after the change is displayed.
Here, the display on the memory setting display / change area 61 displays, for example, the allocated memory addresses related to all items on the screen data to be analyzed. For example, in the example shown in FIG. 7, a 10-word area from addresses D0 to D9 and a 1-word area at address D100 are allocated for the screen data to be analyzed.
 但し、この表示例では、解析対象の画面データ上のアイテム個々の割当メモリアドレスまでは分からない。よって、図示の例の場合、解析対象の画面データ上には11個のアイテムがあって各アイテムに1ワードずつメモリ領域が割り当てられているかもしれない。あるいは、解析対象の画面データ上には2個のアイテムがあって、一方にはアドレスD0~D9が割り当てられ、他方にはアドレスD100が割り当てられているかもしれない。しかし、本手法では、この点は関係ない。 However, in this display example, the allocated memory address of each item on the screen data to be analyzed is not known. Therefore, in the case of the illustrated example, there may be 11 items on the screen data to be analyzed, and a memory area may be assigned to each item by one word. Alternatively, there may be two items on the screen data to be analyzed, one of which is assigned addresses D0 to D9 and the other is assigned address D100. However, this point is not relevant in this method.
 尚、本例では各アドレスは1ワード単位であるものとして説明するが、勿論、この例に限るわけではない。
 図7において、そのメモリ設定表示/変更領域61の表示内容に応じた、すなわち現在の外部機器メモリデータ52に応じた解析処理結果が、解析結果表示領域62に表示されることになる。図示の例では、メモリ解析の結果、ブロックリードコマンド(要求コマンド)を2回使用している。
In this example, each address is described as being in units of one word. However, the present invention is not limited to this example.
In FIG. 7, the analysis processing result corresponding to the display content of the memory setting display / change area 61, that is, the current external device memory data 52 is displayed in the analysis result display area 62. In the illustrated example, the block read command (request command) is used twice as a result of the memory analysis.
 尚、既存の要求コマンドの例として、任意の1つのアドレス範囲(1ワード以上)にメモリアクセスするブロックリードコマンドや、任意の1または複数のアドレスにメモリアクセスするランダムリードコマンドや、ビット単位でメモリアクセスするビットリードコマンドがある。 As an example of an existing request command, a block read command for accessing a memory in an arbitrary address range (one word or more), a random read command for accessing a memory in any one or a plurality of addresses, or a memory in bit units There is a bit read command to access.
 特に、ブロックリードコマンドを用いる場合、1回の要求コマンドで1つのアドレス範囲しかアクセスできないので、アクセス先がD0~D9、D100の例の場合、1回の要求コマンドで全データを取得しようとすると、必要のない記憶領域(D10~D99の記憶領域)の大量のデータまでも一緒に取得することになる。この為、通信パフォーマンスが悪くなる。これに対して、要求コマンドを2回にすることで、通信パフォーマンスは改善するかもしれないが、未だ不十分である。しかし、これは、ユーザが割当メモリアドレスの設定を変更しない限り、改善しないものである。 In particular, when a block read command is used, only one address range can be accessed with one request command. Therefore, in the example where the access destination is D0 to D9 and D100, if all data is acquired with one request command, Therefore, even a large amount of data in unnecessary storage areas (storage areas D10 to D99) is acquired together. For this reason, communication performance deteriorates. On the other hand, the communication performance may be improved by making the request command twice, but it is still insufficient. However, this does not improve unless the user changes the setting of the allocated memory address.
 本手法は、主に、上記ブロックリードコマンドを用いる場合に対応するものである。従って、本説明において特に断らない限り、リードコマンドや要求コマンドと記した場合、ブロックリードコマンド等を意味するものとする。但し、リードコマンドに限らず、ライトコマンド等であっても構わない。これより、リードとライトとを区別することなく、アクセスと呼ぶ場合もあるものとする。 This method mainly corresponds to the case where the block read command is used. Therefore, unless otherwise specified in this description, a read command or a request command means a block read command or the like. However, the command is not limited to a read command, and may be a write command or the like. Thus, there is a case where it is called access without distinguishing between read and write.
 任意の要求コマンドを接続機器4へ送信し、これに応じた接続機器4からの応答コマンドを受信完了するまでの時間が、各コマンド毎の外部メモリデータ取得に掛かる主な時間であり、ここでは図示の「処理時間」と呼ぶものとする。換言すれば、「処理時間」は、“要求コマンドの伝送時間+応答コマンドの伝送時間”である。尚、上記応答コマンドには、割当メモリ領域の格納データ等が含まれる。 The time required to send an arbitrary request command to the connected device 4 and complete the reception of the response command from the connected device 4 in response to this is the main time taken to acquire external memory data for each command. It is assumed to be called “processing time” shown in the figure. In other words, the “processing time” is “request command transmission time + response command transmission time”. The response command includes data stored in the allocated memory area.
 この様な各要求コマンド毎の「処理時間」や、これら「処理時間」の合計(「処理時間」合計)が、メモリ解析処理群46によって算出されて、図示のように解析結果表示領域62に表示される。 The “processing time” for each request command and the total of these “processing times” (the “processing time” total) are calculated by the memory analysis processing group 46 and displayed in the analysis result display area 62 as shown in the figure. Is displayed.
 図示の解析結果表示領域62に示す例では、1回目の処理時間は28.646[ms][ms]であり、2回目の処理時間は9.896[ms]であり、合計38.542[ms]掛かっていることになる。これは、任意の画面データの全アイテムの割当メモリ領域のデータ取得に掛かる時間が、38.542[ms]であると見做して構わない。換言すれば、任意の画面データに係わる外部メモリアクセス処理時間が、38.542[ms]であると言うこともできる。 In the example shown in the illustrated analysis result display area 62, the first processing time is 28.646 [ms] [ms], the second processing time is 9.896 [ms], and it takes 38.542 [ms] in total. become. This may be regarded as 38.542 [ms] for the time taken to acquire the data in the allocated memory area of all items of arbitrary screen data. In other words, it can be said that the external memory access processing time relating to arbitrary screen data is 38.542 [ms].
 ここで、メモリ設定表示/変更領域61上では、上記のように現在のメモリ設定内容を表示するだけでなく、ユーザがメモリ設定内容を任意に変更できる。この変更操作方法は、様々であってよいが、図8に示す例では、マウス操作によって任意のメモリ領域をドラッグして移動させて任意の移動先でドロップ操作を行う。これによって図示の例では、任意のアイテムに関する割当メモリアドレスが、D100からD10に変更される。この変更内容は外部機器メモリデータ52に反映される。 Here, on the memory setting display / change area 61, not only the current memory setting contents are displayed as described above, but also the user can arbitrarily change the memory setting contents. Although this change operation method may be various, in the example shown in FIG. 8, an arbitrary memory area is dragged and moved by a mouse operation, and a drop operation is performed at an arbitrary destination. As a result, in the illustrated example, the allocated memory address for an arbitrary item is changed from D100 to D10. This changed content is reflected in the external device memory data 52.
 これより、上記変更後の外部機器メモリデータ52に基づいて、メモリ解析処理部42(メモリ解析処理群46)によって解析処理が行われることになり、その結果、図8の解析結果表示領域62に示す解析結果が得られることになる。図示の例では、メモリ解析の結果、リードコマンド(要求コマンド)を1回だけ使用している。そして、図示の例では、処理時間は30.729[ms]であり、1回だけなので全体の処理時間は30.729[ms]となる。 Thus, the analysis processing is performed by the memory analysis processing unit 42 (memory analysis processing group 46) based on the external device memory data 52 after the change, and as a result, the analysis result display area 62 in FIG. The analysis result shown is obtained. In the illustrated example, a read command (request command) is used only once as a result of memory analysis. In the illustrated example, the processing time is 30.729 [ms], which is only once, so the total processing time is 30.729 [ms].
 従って、全体の処理時間は、図8の場合の方が図7よりも短くて済むようになり、図8のメモリアドレス設定が図7よりも適切であることが分かる。
 これより、ユーザが図8の状態において図示のOKスイッチ63等を操作することで、図8におけるメモリ設定表示/変更領域61の割当メモリアドレスが、解析対象の画面データ32に反映されることになる。つまり、スイッチ監視処理部43によって上記のOKスイッチ63操作などが検出されると、メモリ設定処理部44が、現在の外部機器メモリデータ52の割当メモリアドレスによって、画面データ32の該当する割当メモリアドレスを更新する。
Therefore, the entire processing time is shorter in the case of FIG. 8 than in FIG. 7, and it can be seen that the memory address setting in FIG. 8 is more appropriate than in FIG.
Thus, when the user operates the illustrated OK switch 63 or the like in the state of FIG. 8, the allocated memory address of the memory setting display / change area 61 in FIG. 8 is reflected in the screen data 32 to be analyzed. Become. That is, when the switch monitor processing unit 43 detects the above-described OK switch 63 operation or the like, the memory setting processing unit 44 uses the currently allocated memory address of the external device memory data 52 to assign the corresponding allocated memory address of the screen data 32. Update.
 上記各処理時間の算出方法については、後に一例について説明する。ここでは、上記リードコマンドの使用回数の判定処理について説明する。尚、上記要求コマンドの使用回数は、本例では2回使用するか1回使用するか等となるが、この例に限らず、3回以上使用する場合も有り得る。 An example of the calculation method for each processing time will be described later. Here, a process for determining the number of times the read command is used will be described. In this example, the request command is used twice or once, but is not limited to this example, and may be used three or more times.
 但し、これは、上記の通り、従来よりプログラマブル表示器1が有する機能であり、簡単に説明するのみとする。尚、リードコマンドの使用回数は、1回のリフレッシュ処理に係わるプログラマブル表示器1-接続機器4間の通信回数を意味するものと見做しても構わない。 However, as described above, this is a function that the programmable display device 1 has so far, and will be briefly described. Note that the number of times of use of the read command may be regarded as meaning the number of times of communication between the programmable display 1 and the connected device 4 related to one refresh process.
 従来のプログラマブル表示器では、一例としては、上記リフレッシュ処理に係わり現在表示中の画面データ上の各アイテムに関する外部メモリアクセスを行う際に、要求コマンドの使用回数と、各要求コマンド毎のアクセス先(アドレス範囲)を決定する処理を行っていた。そして、本手法では、当該従来のプログラマブル表示器の機能を、作画エディタ装置5にも搭載させている。 In a conventional programmable display, for example, when performing external memory access related to each item on the screen data currently being displayed in relation to the refresh process, the number of use of the request command and the access destination for each request command ( (Address range) was determined. In this method, the function of the conventional programmable display device is also installed in the drawing editor device 5.
 上記のような要求コマンドの回数とアドレス範囲を決定する従来のプログラマブル表示器の機能は、何種類かあり、以下、簡単に説明する。
 一例としては、例えば、要求コマンドを1回だけとする場合と、割当メモリアドレスだけをアクセスする場合とで、どちらの伝送時間が短くて済むかを判定し、短くて済む方の要求コマンドの回数とアドレス範囲を採用する方法がある。尚、伝送時間の算出方法は後述する。
There are several types of functions of the conventional programmable display for determining the number of request commands and the address range as described above, which will be briefly described below.
As an example, for example, it is determined which transmission time is shorter when the request command is only once or when only the allocated memory address is accessed. And address range. A method for calculating the transmission time will be described later.
 図7の例の場合、要求コマンドを1回だけとする場合には、アドレス範囲はD0~D100となり、当然、割当メモリアドレス以外のアドレス(D10~D99)も含まれることになる。 In the case of the example of FIG. 7, when the request command is performed only once, the address range is D0 to D100, and naturally addresses other than the allocated memory address (D10 to D99) are included.
 一方、割当メモリアドレスだけをアクセスする場合には、割当メモリアドレスが連続する場合には一纏めでアクセスする。よって、図7の例では、D0~D9までは割当メモリアドレスが連続するので、これを一纏めでアクセスすると共に、別途、D100にもアクセスするものと決定する。つまり、要求コマンドは2回となる。 On the other hand, when accessing only the allocated memory addresses, if the allocated memory addresses are continuous, they are accessed together. Accordingly, in the example of FIG. 7, since the allocated memory addresses are continuous from D0 to D9, it is determined that the addresses are accessed together and also D100 is accessed separately. That is, the request command is twice.
 上記のことから、図7の例では、1回の要求コマンドでD0~D100にアクセスする場合の伝送時間と、2回の要求コマンドでそれぞれD0~D9とD100にアクセスする場合の伝送時間合計とを求めることになる、そして、伝送時間が相対的に短い方を採用する。図7の例では、2回の要求コマンドを用いる方が伝送時間が短かったものとする。この結果は、1回の要求コマンドの場合には割当メモリアドレス以外のアドレス(D10~D99)が多すぎることが、要因であると見做しても構わない。 From the above, in the example of FIG. 7, the transmission time when accessing D0 to D100 with one request command, and the total transmission time when accessing D0 to D9 and D100 with two request commands, respectively. The transmission time that is relatively short is adopted. In the example of FIG. 7, it is assumed that the transmission time is shorter when the request command is used twice. As a result, in the case of a single request command, it may be considered that there are too many addresses (D10 to D99) other than the allocated memory address.
 以上、要求コマンドの回数等の決定方法に関して、一例を説明したが、以下、他の例についても説明する。
 ここで、接続機器4の機種等によっては、データリード1回当たりのデータ読出し量に上限(制約)がある場合がある。例えば、1回当たりに30ワード分のデータまでしか読み出せない接続機器4等があるものとする。
In the above, an example has been described regarding a method for determining the number of request commands and the like, but other examples will be described below.
Here, depending on the model of the connected device 4 and the like, there may be an upper limit (restriction) on the data read amount per data read. For example, it is assumed that there is a connected device 4 that can read only 30 words of data at a time.
 そして、他の例では、プログラマブル表示器は、上記制約の元に上記要求コマンドの使用回数を出来るだけ少なくする制御を行うものとする。つまり、まず1回の要求コマンドで全データ読出し可能か否かを判定し、読出し不可の場合には続いて2回の要求コマンドで全データ読出し可能か否かを判定し、それでも読出し不可の場合には続いて3回の要求コマンドで全データ読出し可能か否かを判定する。これを、読出し可能と判定されるまで続ける。 In another example, it is assumed that the programmable display device performs control to reduce the number of times the request command is used as much as possible under the above-described restrictions. In other words, it is first determined whether or not all data can be read with a single request command. If it cannot be read, it is subsequently determined whether or not all data can be read with two request commands. Then, it is determined whether or not all data can be read out by three request commands. This is continued until it is determined that reading is possible.
 他の例では、図7に示す例の場合、1回の要求コマンドで全割当メモリアドレスのデータを取得しようとする場合、アドレスD0~D100の領域、つまり、101ワード分の領域が取得対象となるが、30ワードを超えるのでNG(読出し不可)と判定されることになる。この為、続いて、2回の要求コマンドで全割当メモリアドレスのデータを取得しようとすると、今度は、アドレスD0~D9の領域、つまり、10ワード分の領域と、アドレスD100の領域(1ワード分の領域)とが取得対象となり、どちらも30ワードを超えないので、OK(読出し可能)と判定されることになる。 In another example, in the case of the example shown in FIG. 7, when data of all allocated memory addresses is to be acquired with a single request command, the area of addresses D0 to D100, that is, the area of 101 words is the acquisition target. However, since it exceeds 30 words, it is determined as NG (unreadable). For this reason, if data of all allocated memory addresses is subsequently acquired with two request commands, the area of addresses D0 to D9, that is, the area of 10 words and the area of address D100 (one word) Min.), Both of which do not exceed 30 words, so that it is determined as OK (readable).
 尚、これに対して、図8に示す例の場合、1回の要求コマンドで全割当メモリアドレスのデータを取得しようとする場合、アドレスD0~D10の領域(11ワード分の領域)が取得対象となり、30ワードを超えないのでOKとなる。尚、その意味では、アドレスD100からの移動先は、D10に限るものではなく、D16やD20やD25等、D10~D29の範囲内であれば何でもよいことになるが、使用していないメモリアドレス(D10~移動先メモリアドレスの1つ前のメモリアドレスまで)のデータも取得してしまうことになり、解析結果表示領域62の処理時間は長くなる。 On the other hand, in the example shown in FIG. 8, when data of all allocated memory addresses is acquired by a single request command, the areas of addresses D0 to D10 (areas for 11 words) are acquired. Since it does not exceed 30 words, it is OK. In this sense, the destination from the address D100 is not limited to D10, and any address within the range of D10 to D29, such as D16, D20, D25, etc., can be used. Data (from D10 to the memory address immediately before the destination memory address) is also acquired, and the processing time of the analysis result display area 62 becomes long.
 本手法では、この様なプログラマブル表示器1の既存機能の一部を、作画エディタ装置5(その作画エディタ31)に搭載している。これが上記メモリ解析処理群46である。
 図9(a)、(b)は、上記画面データ32(22)の具体例である。
In this method, some of the existing functions of such a programmable display device 1 are installed in the drawing editor device 5 (the drawing editor 31). This is the memory analysis processing group 46.
FIGS. 9A and 9B are specific examples of the screen data 32 (22).
 図9(a)に示す例では、画面データ32(22)は、アイテムタイプ71、座標72、サイズ73、“アイテムタイプ毎のデータ”74、メモリアドレス情報75等の各データ項目より成る。尚、上記各アイテム毎に図示の各レコードの情報が格納されている。また、図9(b)には、上記メモリアドレス情報75の詳細例を示す。 In the example shown in FIG. 9A, the screen data 32 (22) includes data items such as an item type 71, coordinates 72, size 73, “data for each item type” 74, memory address information 75, and the like. Note that information of each record shown in the figure is stored for each item. FIG. 9B shows a detailed example of the memory address information 75.
 アイテムタイプ71には、スイッチ、ランプ、数値表示等のアイテムの種別(を示すアイテム種別識別情報が格納される。“アイテムタイプ毎のデータ”74には、例えばそのアイテムに係る画像等が格納される。アイテムに係る画像とは、例えばランプ・アイテムであればランプ点灯画像とランプ消灯画像、あるいはスイッチ・アイテムであればスイッチON画像とスイッチOFF画像等の各種アイテムの画像である。 The item type 71 stores item type identification information indicating the item type (switch, lamp, numerical display, etc.). “Data for each item type” 74 stores, for example, an image related to the item. The image relating to the item is, for example, an image of various items such as a lamp ON image and a lamp OFF image for a lamp item, or a switch ON image and a switch OFF image for a switch item.
 座標72とサイズ73には、上記操作表示画面上における上記アイテム画像の表示位置と大きさを示す情報が格納される。
 そして、メモリアドレス情報75が、上記外部メモリアクセス処理に係わる情報であり、上記割当メモリアドレス等の情報が含まれている。そして、本手法による設定データ修正・変更対象が、このメモリアドレス情報75(特にアドレス84)である。
Coordinate 72 and size 73 store information indicating the display position and size of the item image on the operation display screen.
The memory address information 75 is information related to the external memory access process, and includes information such as the allocated memory address. Then, the setting data correction / change target by this method is the memory address information 75 (particularly, the address 84).
 図9(b)に示す例では、メモリアドレス情報75は、メモリモデル81、メモリアクセス82、デバイス名83、アドレス84、データ数85等を有する。
 メモリモデル81は、アクセス先の接続機器4の識別情報である。
In the example shown in FIG. 9B, the memory address information 75 includes a memory model 81, a memory access 82, a device name 83, an address 84, a data number 85, and the like.
The memory model 81 is identification information of the connected device 4 to be accessed.
 メモリアクセス82は、デバイス名83が示す外部メモリデバイスへのアクセス形式を示す。その形式は、例えば、1bitアクセス、16bit(1ワード)アクセス等である。
 デバイス名83は、アクセス先の外部メモリデバイスの識別情報である。
The memory access 82 indicates an access format to the external memory device indicated by the device name 83. The format is, for example, 1-bit access, 16-bit (1 word) access, or the like.
The device name 83 is identification information of an external memory device to be accessed.
 アドレス84は、デバイス名83が示す外部メモリデバイスにおけるアクセス先の記憶領域の先頭アドレス等である。
 データ数85は、例えば上記アクセス先の記憶領域の容量等を示す。例えば、アドレス84が‘101番地’でデータ数85が‘3’であるならば、101番地~103番地が上記アクセス先の記憶領域となる。
The address 84 is the head address of the storage area to be accessed in the external memory device indicated by the device name 83.
The number of data 85 indicates, for example, the capacity of the storage area to be accessed. For example, if the address 84 is “101” and the number of data 85 is “3”, the addresses 101 to 103 are the storage areas of the access destination.
 上記メモリモデル81が示す接続機器4における上記デバイス名83が示すメモリデバイスの上記アドレス84等が示す記憶領域が、上記割当メモリ領域に相当するものである。本手法による変更対象は、主にこの割当メモリ領域となる。 The storage area indicated by the address 84 or the like of the memory device indicated by the device name 83 in the connected device 4 indicated by the memory model 81 corresponds to the allocated memory area. Changes to be made by this method are mainly allocated memory areas.
 上述したように、上記画面データ32等に基づいて、外部機器情報51、外部機器メモリデータ52が生成される。但し、図9(a)、(b)の例の場合には、画面データ22だけでは、以下に説明する図10(a)の例の外部機器情報51は、生成できない。これより、例えば、各種接続機器毎に、不図示の通信プロトコル情報等が、予め別途記憶されているものとしてもよい。これは、例えば、各種接続機器毎に、その識別情報に対応付けて、物理回線(シリアル、Ethernet(登録商標)等)、ボーレート、データ長、ストップビット、パリティ等が登録されているものである。 As described above, the external device information 51 and the external device memory data 52 are generated based on the screen data 32 and the like. However, in the case of the example of FIGS. 9A and 9B, the external device information 51 of the example of FIG. 10A described below cannot be generated only with the screen data 22. Thus, for example, communication protocol information (not shown) may be separately stored in advance for each of various connection devices. For example, a physical line (serial, Ethernet (registered trademark), etc.), baud rate, data length, stop bit, parity, etc. are registered in association with identification information for each of various connected devices. .
 但し、この例に限らず、例えば上記メモリアドレス情報75には図示していないが図10(a)に示す外部機器情報51に相当する情報も含まれているものであってもよい。本説明ではこの例を用いるものとする。従って、画面データ32等に基づいて、外部機器情報51、外部機器メモリデータ52が生成される。そして、これは、画面データ32の一部をコピーすることによって、外部機器情報51、外部機器メモリデータ52が生成されるものと見做してもよい。つまり、外部機器情報51、外部機器メモリデータ52は、画面データ32のバックアップ情報と見做してもよい。 However, the present invention is not limited to this example. For example, the memory address information 75 may include information corresponding to the external device information 51 shown in FIG. In this description, this example is used. Accordingly, the external device information 51 and the external device memory data 52 are generated based on the screen data 32 and the like. This may be regarded as the external device information 51 and the external device memory data 52 being generated by copying a part of the screen data 32. That is, the external device information 51 and the external device memory data 52 may be regarded as backup information for the screen data 32.
 そして、本手法に係わるユーザ設定作業に伴って、バックアップ情報(主に外部機器メモリデータ52)を更新する。そして、ユーザによる所定の指示操作に応じて、バックアップ情報の変更内容を画面データ32に反映させる。 Then, the backup information (mainly external device memory data 52) is updated with the user setting work related to this method. Then, the changed contents of the backup information are reflected in the screen data 32 in accordance with a predetermined instruction operation by the user.
 例えば、上記不図示の各種接続機器毎の通信プロトコル情報やメモリアドレス情報75等から、デバイス名83が示す接続機器に対応する通信プロトコル情報を抽出することで、外部機器情報51が生成される。 For example, the external device information 51 is generated by extracting the communication protocol information corresponding to the connected device indicated by the device name 83 from the communication protocol information and the memory address information 75 for each of the various connected devices (not shown).
 ここで、図10(a)、(b)に、外部機器情報51、外部機器メモリデータ52の具体例を示す。
 図10(a)に示す例では、外部機器情報51は、外部機器91、物理回線92、ボーレート93、データ長94、ストップビット95、パリティビット96、スタートビット97等のデータ項目から成る。
Here, specific examples of the external device information 51 and the external device memory data 52 are shown in FIGS.
In the example shown in FIG. 10A, the external device information 51 includes data items such as an external device 91, a physical line 92, a baud rate 93, a data length 94, a stop bit 95, a parity bit 96, and a start bit 97.
 外部機器91は、上記の通り、画面データ32に係わる任意の接続機器4の識別情報であり、この接続機器4に関する上記通信プロトコル情報が、物理回線92~パリティ96等である。外部機器情報51の上記各データは、例えば画面データ32(22)に含まれている。 As described above, the external device 91 is identification information of an arbitrary connected device 4 related to the screen data 32, and the communication protocol information related to the connected device 4 is a physical line 92 to a parity 96 and the like. Each data of the external device information 51 is included in the screen data 32 (22), for example.
 また、図10(b)に示す例では、外部機器メモリデータ52は、画面No.101、デバイス名102、アドレス103等のデータ項目から成る。画面No.101には、上記図5や図6で一覧表示された画面のなかからユーザが任意に選択した画面の画面No.が格納される。画面No.101の画面に係る画面データ32における上記デバイス名83、アドレス84が、デバイス名102、アドレス103に格納される。また、ダイアログボックス(例えば解析設定表示画面60等)上でのユーザ設定操作があった場合には、後述するステップS33によって、デバイス名102、アドレス103等が更新される。詳しくは後述する。 Further, in the example shown in FIG. 10B, the external device memory data 52 is stored in the screen No. 101, data items such as a device name 102 and an address 103. Screen No. 101 includes screen Nos. Of screens arbitrarily selected by the user from the screens displayed as a list in FIGS. Is stored. Screen No. The device name 83 and address 84 in the screen data 32 relating to the screen 101 are stored in the device name 102 and address 103. When a user setting operation is performed on a dialog box (for example, the analysis setting display screen 60), the device name 102, the address 103, and the like are updated in step S33 described later. Details will be described later.
 尚、画面No.は画面データの識別情報であり、特に図示しないが、各画面No.に対応付けて図9(a)に示す例の画面データ32等が格納されている。
 また、図11には、解析データ53の具体例を示す。
In addition, screen No. Is identification information of screen data, and although not particularly shown, each screen No. The screen data 32 of the example shown in FIG.
FIG. 11 shows a specific example of the analysis data 53.
 図示の例では、解析データ53は、通信コマンド種別111、No.112、処理時間113、外部メモリ114等の各データ項目より成る。概略的には、上記各要求コマンド毎に、アクセス先のアドレス範囲が外部メモリ114に格納され、解析処理結果としての上記外部メモリアクセス処理時間が、処理時間113に格納される。例えば上記図7の例では2つのコマンドに関する情報が格納される。つまり、レコード数は2となる。また、例えば上記図7の例では1つのコマンドに関する情報が格納される。つまり、レコード数は1となる。 In the illustrated example, the analysis data 53 includes the communication command type 111, No. 112, processing time 113, external memory 114, and other data items. In general, for each request command, the address range of the access destination is stored in the external memory 114, and the external memory access processing time as the analysis processing result is stored in the processing time 113. For example, in the example of FIG. 7, information regarding two commands is stored. That is, the number of records is 2. For example, in the example of FIG. 7 described above, information regarding one command is stored. That is, the number of records is 1.
 これら各コマンドの種別が、通信コマンド種別111に格納される。図7、図8の例では“ブロックリード”が格納されることになる。尚、上記の通り、他にも例えばビットリードなどのコマンドがあるが、本説明では関係ない。 The type of each command is stored in the communication command type 111. In the example of FIGS. 7 and 8, “block read” is stored. As described above, there are other commands such as bit read, but this is not relevant in this description.
 また、これら各コマンドを用いた外部メモリアクセスに係わる上記「処理時間」(要求コマンドの伝送時間+応答コマンドの伝送時間)の計算結果(シミュレーション結果)が、処理時間113に格納される。また、このコマンドによるアクセス先(デバイス名+アドレス範囲)が、外部メモリ114に格納される。尚、No.112は単なるシリアル番号である。 Also, a calculation result (simulation result) of the “processing time” (request command transmission time + response command transmission time) related to external memory access using these commands is stored in the processing time 113. Also, the access destination (device name + address range) by this command is stored in the external memory 114. No. 112 is a simple serial number.
 以下、上記各種処理機能部による処理例を、図12~図16の処理フローチャート図を参照して説明する。
 図12は、通信内容表示部41の処理フローチャート図である。尚、これは、本手法によるユーザ支援機能の全体フローチャート図と見做すこともできる。
Hereinafter, processing examples by the various processing function units will be described with reference to the processing flowcharts of FIGS.
FIG. 12 is a processing flowchart of the communication content display unit 41. This can also be regarded as an overall flowchart of the user support function according to the present method.
 例えば図6に示す画面一覧のなかからユーザが所望の画面を選択する操作を行うと、図12の処理が開始される。尚、その際、選択された画面の画面No.等が、パラメータとして渡される。 For example, when the user performs an operation of selecting a desired screen from the screen list shown in FIG. 6, the processing of FIG. 12 is started. At this time, the screen No. of the selected screen is displayed. Etc. are passed as parameters.
 通信内容表示部41は、まず、初期状態のダイアログボックスを生成・表示する処理であるステップS11、S12,S13の処理を実行する。初期状態のダイアログボックスとは、例えば、上記図7に示す初期状態の解析設定表示画面60等である。 The communication content display unit 41 first executes the processes of steps S11, S12, and S13, which are processes for generating and displaying an initial dialog box. The dialog box in the initial state is, for example, the analysis setting display screen 60 in the initial state shown in FIG.
 すなわち、まず、上記選択された画面の画面データ32に基づいて、外部機器情報51、外部機器メモリデータ52を生成する(ステップS11)。そして、メモリ解析処理部42を起動してメモリ解析処理を実行させる(ステップS12)。メモリ解析処理の処理フローチャート図を図13に示し後に説明する。そして、このメモリ解析処理結果を用いて初期状態のダイアログボックス(上記解析設定表示画面60等)を表示する(ステップS13)。これは、現在の画面データ32の外部メモリ設定内容とこれに応じた解析処理結果を、表示するものと言える。 That is, first, external device information 51 and external device memory data 52 are generated based on the screen data 32 of the selected screen (step S11). Then, the memory analysis processing unit 42 is activated to execute memory analysis processing (step S12). A flowchart of the memory analysis process is shown in FIG. 13 and will be described later. Then, an initial state dialog box (the analysis setting display screen 60 etc.) is displayed using the memory analysis processing result (step S13). This can be said to display the external memory setting contents of the current screen data 32 and the analysis processing result corresponding thereto.
 その後は、基本的に、通信内容編集処理部45によって、ユーザによるメモリ設定変更操作の監視と、この設定に応じてメモリ解析処理を実行させて処理結果をダイアログボックスに表示する処理を繰り返す(ステップS14)。この際のダイヤログボックスは、例えば、上記図8の解析設定表示画面60等である。なお、ステップS14の詳細処理フローチャートについては、図14に示し後に説明する。 After that, basically, the communication content editing processing unit 45 repeats the process of monitoring the memory setting changing operation by the user and executing the memory analysis process according to this setting and displaying the processing result in the dialog box (step S14). The dialog box at this time is, for example, the analysis setting display screen 60 of FIG. The detailed processing flowchart of step S14 is shown in FIG. 14 and will be described later.
 上記新たな解析処理結果等がダイアログボックスに表示される毎に、スイッチ監視処理部43によって、ユーザによる所定スイッチ操作の監視が行われると共に、この所定スイッチ操作があった場合にはメモリ設定処理部44を起動する処理が行われる(ステップS15)。ステップS15の詳細フローチャート図を図15に示し後に説明する。また、メモリ設定処理部44の処理フローチャート図を図16に示し後に説明する。メモリ設定処理部44によって画面データ32が更新される。これは、上記ユーザによるメモリ設定変更を反映させる形で画面データ32が更新される。 Each time the new analysis processing result or the like is displayed in the dialog box, the switch monitoring processing unit 43 monitors the predetermined switch operation by the user, and if there is a predetermined switch operation, the memory setting processing unit The process of starting 44 is performed (step S15). A detailed flowchart of step S15 is shown in FIG. 15 and will be described later. A processing flowchart of the memory setting processing unit 44 is shown in FIG. 16 and will be described later. The screen data 32 is updated by the memory setting processing unit 44. This is because the screen data 32 is updated in such a manner as to reflect the memory setting change by the user.
 上記所定のスイッチ操作は、例えば図7、図8に示すOKスイッチ63または適用スイッチ64である。そして、例えば、OKスイッチ63が操作された場合には、上記メモリ設定処理部44の処理が実行されると共に、ダイアログボックス表示終了と判定して(ステップS16,NO)、ダイアログボックスを非表示にして(ステップS17)、本処理を終了する。一方、例えば、適用スイッチ64が操作された場合には、上記メモリ設定処理部44の処理が実行されると共に、ダイアログボックス表示続行と判定して(ステップS16,YES)、ステップS14に戻る。 The predetermined switch operation is, for example, the OK switch 63 or the application switch 64 shown in FIGS. For example, when the OK switch 63 is operated, the processing of the memory setting processing unit 44 is executed and it is determined that the dialog box display is finished (NO in step S16), and the dialog box is hidden. (Step S17), and this process is terminated. On the other hand, for example, when the application switch 64 is operated, the process of the memory setting processing unit 44 is executed, and it is determined that the dialog box display is continued (step S16, YES), and the process returns to step S14.
 尚、キャンセルスイッチが操作された場合には、いつでも、ダイアログボックスを非表示にして(ステップS17)、本処理を終了する。
 以上、図12の処理について説明した。
When the cancel switch is operated, the dialog box is hidden at any time (step S17), and this process is terminated.
The processing in FIG. 12 has been described above.
 以下、上述した図13、図14、図15、図16の各処理について説明する。
 上記の通り、図13は、メモリ解析処理部42の処理フローチャート図である。
 図13の例では、まず、解析データ53をデータ消去等の初期化を行なう(ステップS21)。その後、外部機器情報51と外部機器メモリデータ52に基づいて、新たな解析データ53を生成する(ステップS22)。本処理が上記ステップS12の処理であるならば、外部機器メモリデータ52は元々の画面データ32の内容のまま、つまり、デフォルト状態となっている。一方、本処理が後述するステップS34の処理ならば、外部機器メモリデータ52はダイアログボックス(例えば解析設定表示画面60等)上でのユーザ設定に応じた内容となっている。
Hereinafter, each processing of FIG. 13, FIG. 14, FIG. 15, and FIG.
As described above, FIG. 13 is a process flowchart of the memory analysis processing unit 42.
In the example of FIG. 13, first, the analysis data 53 is initialized such as data deletion (step S21). Thereafter, new analysis data 53 is generated based on the external device information 51 and the external device memory data 52 (step S22). If this process is the process of step S12, the external device memory data 52 remains in the original screen data 32, that is, in the default state. On the other hand, if this processing is processing in step S34 described later, the external device memory data 52 has contents corresponding to user settings on a dialog box (for example, the analysis setting display screen 60).
 上記ステップS12の際の上記ステップS22の処理を、図7に示す具体例と図10(a)の図上下側に示す具体例を用いて説明するならば、下記のようになる。
 まず、図7に示すように、割当メモリアドレスは、D0~D9、D100となっている。また、図10(a)の図上下側に示す例では、物理回線92=“シリアル通信”、ボーレート93=“19200(bps)”、データ長94=“7[bit]”、ストップビット95=“1[bit]”、パリティビット96=“1[bit]”、スタートビット97=“1[bit]”となっている。
The process of step S22 in step S12 will be described below using the specific example shown in FIG. 7 and the specific example shown on the upper and lower sides of FIG. 10A.
First, as shown in FIG. 7, the allocated memory addresses are D0 to D9 and D100. In the example shown on the upper and lower sides of FIG. 10A, the physical line 92 = “serial communication”, the baud rate 93 = “19200 (bps)”, the data length 94 = “7 [bit]”, and the stop bit 95 = “1 [bit]”, parity bit 96 = “1 [bit]”, and start bit 97 = “1 [bit]”.
 この例の場合、まず、D0~D9のリードコマンド、D100のリードコマンドの2つの要求コマンドを生成するものと判定される。これら2つの要求コマンドの伝送時間は、同じである。一方、これら各要求コマンドに応じた接続機器4からの応答コマンドの伝送時間は、リードするデータの総データ量(上記の例では一方が10ワードで他方が1ワード)に応じたものとなる。 In this example, first, it is determined that two request commands, that is, a read command of D0 to D9 and a read command of D100 are generated. The transmission times of these two request commands are the same. On the other hand, the transmission time of the response command from the connection device 4 in response to each request command depends on the total amount of data to be read (in the above example, one is 10 words and the other is 1 word).
 尚、本説明では、要求コマンド生成に掛かる時間や、接続機器4側でのメモリからのデータリード処理や応答コマンド生成に掛かる時間は、考慮しないものとするが、この例に限らない。また、本説明では、上記の通りシリアル通信を例にする。 In this description, the time taken to generate a request command, the time taken to read data from the memory on the connected device 4 side, and the time taken to generate a response command are not considered, but the present invention is not limited to this example. In this description, serial communication is taken as an example as described above.
 上記のこと、及び図10(a)の図上下側に示す例によって、要求コマンドの伝送時間は下記のようになる。
 まず、ボーレートが“19200(bps)”であることは、1[ms]当り19.2[bit]を伝送可能であることを意味している。尚、これは、19200÷1000[ms]=19.2[bit/ms]によって算出できる。
Based on the above and the example shown on the upper and lower sides of FIG. 10A, the transmission time of the request command is as follows.
First, a baud rate of “19200 (bps)” means that 19.2 [bit] can be transmitted per 1 [ms]. This can be calculated by 19200 ÷ 1000 [ms] = 19.2 [bit / ms].
 また、上記の通り、データ長=“7[bit]”、ストップビット=“1[bit]”、パリティビット=“1[bit]”、スタートビット97=“1[bit]”であるので、1キャラクタ当たりのデータ量は、
 7[bit]+1[bit] +1[bit] +1[bit] +1[bit]=10[bit]
となる。
As described above, since the data length = “7 [bit]”, the stop bit = “1 [bit]”, the parity bit = “1 [bit]”, and the start bit 97 = “1 [bit]”, The amount of data per character is
7 [bit] +1 [bit] +1 [bit] +1 [bit] +1 [bit] = 10 [bit]
It becomes.
 ここで、本説明では、シリアル通信に係るコマンドのデータ構成については、図17に示すデータ構成例と表現を用いるものとする。図17に示す例では、複数の“キャラクタ”によって要求コマンドの1フレームが構成されている。図示の例では要求コマンドの1フレームは、12個の“キャラクタ”で構成されている。尚、図には示していないが、要求コマンドと同様に、複数の“キャラクタ”によって応答コマンドの1フレームが構成されている。勿論、この例に限るものではなく、例えば図17における“キャラクタ”に相当するものを“フレーム”と呼ぶケースもある。しかし、ここでは図17に示す定義に応じて説明するものとする。 Here, in this description, the data configuration example and expression shown in FIG. 17 are used for the data configuration of the command related to serial communication. In the example shown in FIG. 17, one frame of the request command is composed of a plurality of “characters”. In the example shown in the drawing, one frame of the request command is composed of 12 “characters”. Although not shown in the figure, one frame of a response command is composed of a plurality of “characters” as in the request command. Of course, the present invention is not limited to this example. For example, a case corresponding to a “character” in FIG. 17 may be called a “frame”. However, description will be made according to the definition shown in FIG.
 また、図17に示すように、各キャラクタは、上記ストップビット、パリティビット、スタートビット等とデータから構成されており、上記の通り本例では1キャラクタ当たり10[bit]となっている。 Also, as shown in FIG. 17, each character is composed of the stop bit, parity bit, start bit, and the like, and data, and as described above, 10 characters per character in this example.
 ここで、要求コマンドのキャラクタ数は、固定的に決まっており、ここでは図17に示す例を用いて12[キャラクタ]であるものとする。また、応答コマンドのキャラクタ数は、当然、外部メモリから読み出すデータ量に応じて変動する。ここでは仮に1ワード当たり4[キャラクタ]となるものとする。また、応答コマンドであることを示すコマンド識別情報として3[キャラクタ]必要になるものとする。よって。例えば10ワード分読み出す場合には、応答コマンドのキャラクタ数は、3+4×10=43[キャラクタ]となることになる。 Here, the number of characters in the request command is fixedly determined, and here, it is assumed that the number of characters is 12 [characters] using the example shown in FIG. Of course, the number of characters in the response command varies depending on the amount of data read from the external memory. Here, it is assumed that there are 4 [characters] per word. Also, it is assumed that 3 [characters] are required as command identification information indicating a response command. Therefore. For example, when reading 10 words, the number of characters in the response command is 3 + 4 × 10 = 43 [characters].
 上記のことから、要求コマンド(リードコマンド)の総データ量は、
  10[bit]×12[キャラクタ]=120[bit]
となる。
From the above, the total data amount of the request command (read command) is
10 [bit] x 12 [character] = 120 [bit]
It becomes.
 従って、要求コマンドの伝送時間は、
  120[bit]÷19.2=6.25[ms]
となる。
Therefore, the transmission time of the request command is
120 [bit] ÷ 19.2 = 6.25 [ms]
It becomes.
 同様にして、応答コマンドに関する伝送時間は、下記のように算出できる。
 まず、10ワードの応答コマンドの場合、その総データ量は上記の例の場合には
  {3[キャラクタ]+4[キャラクタ]×10[ワード]}×10[bit]=430[bit]
となる。
Similarly, the transmission time for the response command can be calculated as follows.
First, in the case of a response command of 10 words, the total data amount is {3 [character] +4 [character] × 10 [word]} × 10 [bit] = 430 [bit] in the above example.
It becomes.
 よって、当該応答コマンドの伝送時間は、
  430[bit]÷19.2=22.396[ms]
となる。
Therefore, the transmission time of the response command is
430 [bit] ÷ 19.2 = 22.396 [ms]
It becomes.
 同様にして、1ワードの応答コマンドの場合、その総データ量は
  {3[キャラクタ]+4[キャラクタ]×1[ワード]}×10[bit]=70[bit]
となる。
Similarly, in the case of a one-word response command, the total data amount is {3 [character] +4 [character] × 1 [word]} × 10 [bit] = 70 [bit]
It becomes.
 よって、当該応答コマンドの伝送時間は、
  70[bit]÷19.2=3.646[ms]
となる。
Therefore, the transmission time of the response command is
70 [bit] ÷ 19.2 = 3.646 [ms]
It becomes.
 上記のことから、1回目のデータ読出しに掛かる時間(メモリアクセス処理時間)は、
 6.25[ms]+22.396[ms]=28.646[ms]
となる。
From the above, the time required for the first data read (memory access processing time) is
6.25 [ms] +22.396 [ms] = 28.646 [ms]
It becomes.
 2回目のデータ読出しに掛かる時間(メモリアクセス処理時間)は、
 6.25[ms]+3.646[ms]=9.896[ms]
となる。
The time required for the second data read (memory access processing time) is
6.25 [ms] +3.646 [ms] = 9.896 [ms]
It becomes.
 従って、全体としてはデータ読出しに掛かる時間(全体のメモリアクセス処理時間)は、
  28.646[ms]+9.896[ms]=38.542[ms]
となることになる。
Therefore, as a whole, the time required for data reading (total memory access processing time) is
28.646 [ms] +9.896 [ms] = 38.542 [ms]
Will be.
 例えば上記のような処理によって得られた解析データ53に基づいて、デフォルト状態の外部機器メモリデータ52(元々の画面データ32)に応じたメモリ解析結果が、例えば図7に示すように解析設定表示画面60等に表示されることになる(ステップS13)。 For example, based on the analysis data 53 obtained by the above processing, the memory analysis result corresponding to the external device memory data 52 (original screen data 32) in the default state is displayed as an analysis setting as shown in FIG. It is displayed on the screen 60 or the like (step S13).
 尚、本説明では、上述したように、メモリアクセス処理時間を「要求コマンドの伝送時間+応答コマンドの伝送時間」としているが、実際には、各コマンド生成や、接続機器4側で外部メモリからデータを読み出す時間が、更に加わることになる。よって、これらの時間も加算することでメモリアクセス処理時間を算出するようにしてもよい。但し、本手法では、正確なメモリアクセス処理時間を知る必要はないので、上述した例のように「要求コマンドの伝送時間+応答コマンドの伝送時間」をメモリアクセス処理時間としてもよい。つまり、本手法では、設定変更に応じた増減等を確認できればよいので、「要求コマンドの伝送時間+応答コマンドの伝送時間」をメモリアクセス処理時間としてもよい。 In this description, as described above, the memory access processing time is “request command transmission time + response command transmission time”. However, in actuality, each command is generated and the connected device 4 side is connected from an external memory. Time to read data will be added. Therefore, the memory access processing time may be calculated by adding these times. However, in this method, since it is not necessary to know the accurate memory access processing time, “request command transmission time + response command transmission time” may be used as the memory access processing time as in the above-described example. That is, in this method, it is only necessary to confirm the increase / decrease according to the setting change, and therefore, “request command transmission time + response command transmission time” may be used as the memory access processing time.
 図14は、上記ステップS14の詳細フローチャート図である。これは、通信内容編集処理部45の処理フローチャート図とも言える。
 図14の処理は、サイクリックに実行されるものであり、随時、特定のイベント発生を監視している(ステップS31)。そして、特定のイベントが発生した場合、例えばメモリ設定表示/変更領域61上でユーザによるメモリ割当設定操作があった場合には(ステップS32,YES)、ステップS33、S34,S35の処理を実行する。上記特定のイベント発生とは、例えば、解析設定表示画面60のメモリ設定表示/変更領域61上でのユーザ操作の有無である。
FIG. 14 is a detailed flowchart of step S14. This can also be said to be a processing flowchart diagram of the communication content editing processing unit 45.
The process of FIG. 14 is cyclically executed, and a specific event occurrence is monitored as needed (step S31). When a specific event occurs, for example, when there is a memory allocation setting operation by the user on the memory setting display / change area 61 (step S32, YES), the processes of steps S33, S34, and S35 are executed. . The occurrence of the specific event is, for example, the presence / absence of a user operation on the memory setting display / change area 61 of the analysis setting display screen 60.
 まず、ユーザによる設定内容を外部機器メモリデータ52に反映させる(ステップS33)。図8の例の場合、例えば、外部機器メモリデータ52においてアドレス103=“100”であったレコードのアドレス103を‘10’に更新する。但し、この例に限らず、例えば外部機器メモリデータ52には不図示の差分データ格納欄が存在するものとし、ステップS33ではこの差分データを更新するようにしてもよい。この場合、上記一例では‘10’と‘100’との差分である‘-90’が、上記差分データ格納欄に格納されることになる。そして、後に外部機器メモリデータ52に基づいて画面データ32を更新する際には、上記差分データを用いることになる。 First, the contents set by the user are reflected in the external device memory data 52 (step S33). In the case of the example of FIG. 8, for example, the address 103 of the record whose address 103 = “100” in the external device memory data 52 is updated to “10”. However, the present invention is not limited to this example. For example, the external device memory data 52 may include a differential data storage field (not shown), and the differential data may be updated in step S33. In this case, in the above example, “−90”, which is the difference between “10” and “100”, is stored in the difference data storage column. Then, when the screen data 32 is later updated based on the external device memory data 52, the difference data is used.
 そして、メモリ解析処理部42によって上記図13の処理を実行させる(ステップS34)。図13の処理については既に説明したが、上記ステップS33によって外部機器メモリデータ52の内容が更新されているので、上記具体例に応じた処理結果は変わることになる。 Then, the processing of FIG. 13 is executed by the memory analysis processing unit 42 (step S34). Although the processing of FIG. 13 has already been described, since the content of the external device memory data 52 is updated in step S33, the processing result according to the specific example changes.
 例えば、ユーザが上記図8のようにメモリ設定した場合には、D0~D10のリードコマンドという1つの要求コマンドのみを生成するものと判定される。この場合、ここでは特に説明しないが上記と略同様の処理により、応答コマンドの伝送時間は、24.479[ms]となる。要求コマンドの伝送時間は、上記の通り、常に6.25[ms]となるので、データ読出しに掛かる時間(外部メモリアクセス処理時間)は、
  6.25[ms]と+24.479[ms]=30.729[ms]
となる。
For example, when the user sets the memory as shown in FIG. 8, it is determined that only one request command called a read command of D0 to D10 is generated. In this case, although not specifically described here, the transmission time of the response command is 24.479 [ms] by processing substantially similar to the above. Since the transmission time of the request command is always 6.25 [ms] as described above, the time required for data reading (external memory access processing time) is
6.25 [ms] and +24.479 [ms] = 30.729 [ms]
It becomes.
 この例では要求コマンドは1回だけ使用されるので、上記30.729[ms]が、そのまま、全体の外部メモリアクセス処理時間となる。
 上記解析処理によって新たな解析データ53が生成される。
In this example, since the request command is used only once, the above 30.729 [ms] becomes the entire external memory access processing time as it is.
New analysis data 53 is generated by the analysis processing.
 通信内容編集処理部45は、この解析データ53に基づいて、解析結果表示領域62の表示内容を更新する(ステップS35)。これによって解析設定表示画面60は例えば図8に示す表示内容となる。 The communication content editing processing unit 45 updates the display content of the analysis result display area 62 based on the analysis data 53 (step S35). As a result, the analysis setting display screen 60 has display contents shown in FIG. 8, for example.
 図7、図8の表示内容の場合、図8に示す例の方がデータ読出しに掛かる時間が短くなる。つまり、図8に示すメモリ割当は、図7に示すメモリ割当よりも適切であると見做してよいことになる。これより、ユーザが例えば図8の画面上でOKスイッチ63等を操作することで、このときのユーザ設定内容によって画面データ32が更新されることになる。この例では、画面データ32においてデバイス名83が‘D’でアドレス84が‘100’であったレコードのアドレス84が、‘10’に更新されることになる。 7 and 8, in the example shown in FIG. 8, the time required for data reading is shorter in the example shown in FIG. That is, the memory allocation shown in FIG. 8 may be considered more appropriate than the memory allocation shown in FIG. Thus, when the user operates the OK switch 63 or the like on the screen of FIG. 8, for example, the screen data 32 is updated with the user setting contents at this time. In this example, the address 84 of the record in which the device name 83 is “D” and the address 84 is “100” in the screen data 32 is updated to “10”.
 例えばこの様なユーザによる所定のスイッチ操作の検出とそれに伴う画面データ32の更新に係る処理の詳細例を、図15、図16に示す。
 図15は、上記ステップS15の詳細フローチャート図である。これは、スイッチ監視処理部43の処理フローチャート図とも言える。
For example, FIG. 15 and FIG. 16 show detailed examples of processing relating to detection of a predetermined switch operation by such a user and accompanying screen data 32 update.
FIG. 15 is a detailed flowchart of step S15. This can also be said to be a process flowchart diagram of the switch monitoring processor 43.
 図15の処理は、サイクリックに実行されるものであり、随時、特定のイベントの発生を監視している(ステップS41)。特定のイベントとは、ダイアログボックスの各スイッチに係るイベントであり、例えば図7、図8の例ではユーザによるOKスイッチ63または適用スイッチ64あるいはキャンセルスイッチ65の操作である。 The processing in FIG. 15 is cyclically executed, and the occurrence of a specific event is monitored as needed (step S41). The specific event is an event related to each switch of the dialog box. For example, in the examples of FIGS. 7 and 8, the user operates the OK switch 63, the application switch 64, or the cancel switch 65.
 そして、上記特定のイベントが発生した場合には(ステップS42,YES)、メモリ設定処理部44を起動すると共に上記発生したイベントを示すパラメータを渡す(ステップS43)。これより、メモリ設定処理部44が、例えば図16に示す処理を実行する。 When the specific event occurs (YES in step S42), the memory setting processing unit 44 is activated and a parameter indicating the generated event is passed (step S43). Thereby, the memory setting processing unit 44 executes the processing shown in FIG. 16, for example.
 そして、例えば、メモリ設定処理部44が処理完了したら、あるいは所定時間経過するまで何も操作されなかった場合には(ステップS42,NO)。スイッチ状態を通信内容表示部41に返して、本処理(ステップS15の処理)を終了する。これより、通信内容表示部41は、返されたスイッチ状態に応じて、上記ステップS16の処理を実行することになる。尚、スイッチ状態とは、操作されたスイッチの識別情報、あるいはスイッチ操作が無かったことを示す何らかの情報等である。 And, for example, when the memory setting processing unit 44 completes the processing or when nothing is operated until a predetermined time elapses (step S42, NO). The switch state is returned to the communication content display unit 41, and this process (the process of step S15) is terminated. Thus, the communication content display unit 41 executes the process of step S16 according to the returned switch state. The switch state is identification information of the operated switch, or some information indicating that there is no switch operation.
 続いて、以下、図16の処理について説明する。上記の通り、図16は、メモリ設定処理部44の処理フローチャート図である。
 図16において、メモリ設定処理部44は、まず、上記渡されたパラメータより、発生したイベントがOKスイッチ63か適用スイッチ64であるか否かを確認する(ステップS51)。このとき、キャンセルスイッチ65の操作であった場合など、違うのであれば(ステップS51,NO)、そのまま本処理が終了とする。
Subsequently, the process of FIG. 16 will be described below. As described above, FIG. 16 is a processing flowchart of the memory setting processing unit 44.
In FIG. 16, the memory setting processing unit 44 first confirms whether the generated event is the OK switch 63 or the application switch 64 based on the passed parameters (step S51). At this time, if there is a difference such as when the cancel switch 65 is operated (step S51, NO), this processing is ended as it is.
 一方、OKスイッチ63または適用スイッチ64の操作であった場合には(ステップS51,YES)、現在のユーザ設定内容を画面データ32に反映させる形で画面データ32を更新する処理を行う(ステップS52)。つまり、現在の外部機器メモリデータ52によって、画面データ32を更新する。 On the other hand, when the operation is an operation of the OK switch 63 or the application switch 64 (step S51, YES), a process of updating the screen data 32 in a manner to reflect the current user setting contents in the screen data 32 is performed (step S52). ). That is, the screen data 32 is updated with the current external device memory data 52.
 ここで、図9や図10では図示していないが、画面データ32には各レコードの識別情報が更に存在しており、そのうちの一部のレコードを外部機器メモリデータ52にコピーする際にはこの識別情報も一緒にコピーする。これより、外部機器メモリデータ52の各レコード毎に、そのレコードに対応する(コピー元の)画面データ32のレコードが、上記識別情報によって判別できるようになっている。 Here, although not shown in FIGS. 9 and 10, the screen data 32 further includes identification information of each record, and when copying some of the records to the external device memory data 52, This identification information is also copied. As a result, for each record of the external device memory data 52, the record of the screen data 32 (copy source) corresponding to the record can be determined by the identification information.
 たとえばこの様な例では、ステップS52の処理は、例えば、現在の外部機器メモリデータ52の各レコードのデバイス名102とアドレス103を、画面データ32において対応するレコードのデバイス名83とアドレス84に、コピー(上書き)する。勿論、これは一例であり、この様な例に限るものではない。 For example, in such an example, the processing of step S52 is performed by, for example, changing the device name 102 and address 103 of each record of the current external device memory data 52 to the device name 83 and address 84 of the corresponding record in the screen data 32. Copy (overwrite). Of course, this is an example, and the present invention is not limited to such an example.
 以上説明したように、本例の支援装置(作画エディタ装置5)によれば、画面データ32に基づいて任意の画面(その各アイテム)に係る外部メモリ設定内容を表示すると共に、それに応じた外部メモリアクセス処理時間を算出・表示する。そして、ユーザにメモリ設定内容を任意に変更させて、変更後のメモリ設定に応じた外部メモリアクセス処理時間を算出・表示する。これによって、ユーザは、より適切な割当メモリアドレス設定を行えるようになる。適切な設定とは、全体の上記外部メモリアクセス処理時間が、より短時間で済むようにするメモリ設定である。また、所定のユーザ操作によって、ユーザによる設定変更を反映させる形で画面データ32(22)が更新される。 As described above, according to the support device (drawing editor device 5) of this example, the external memory setting contents relating to an arbitrary screen (each item thereof) are displayed based on the screen data 32, and the external device corresponding to the content is displayed. Calculate and display memory access processing time. Then, the user arbitrarily changes the memory setting contents, and calculates and displays the external memory access processing time corresponding to the changed memory setting. As a result, the user can perform more appropriate allocation memory address setting. The appropriate setting is a memory setting that makes the entire external memory access processing time shorter. Further, the screen data 32 (22) is updated by reflecting a setting change by the user by a predetermined user operation.
 尚、画面データ32(22)を更新した場合、これに伴って接続機器4側のプログラムも更新する必要がある。例えば図7、図8の例では、既存の接続機器4側のプログラムにおいてD100にアクセスしていた処理を、D10にアクセスする処理に変更する必要が生じる。しかしながら、画面データ32とは異なり、このプログラム更新は自動化できない(プログラマ等が手作業で行うことになる)。 In addition, when the screen data 32 (22) is updated, the program on the connected device 4 side needs to be updated accordingly. For example, in the examples of FIGS. 7 and 8, it is necessary to change the process accessing D100 in the existing program on the connected device 4 side to the process accessing D10. However, unlike the screen data 32, this program update cannot be automated (manually performed by a programmer or the like).
 このように、本例の作画エディタ装置5によれば、ユーザがより適切な割当メモリアドレス設定を行えるように支援することができる。
 尚、本例の作画エディタ装置5は、例えば下記の不図示の各処理機能部を有するものと見做すこともできる。
Thus, according to the drawing editor device 5 of the present example, it is possible to assist the user in setting the allocated memory address more appropriately.
Note that the drawing editor device 5 of this example can be regarded as having, for example, each processing function unit (not shown).
 本例の作画エディタ装置5は、例えば、画面上の各アイテムに係る外部メモリアクセス情報が含まれる画面データ22に基づいて外部機器(接続機器4)の外部メモリにアクセスするプログラマブル表示器1に関して、その画面データをユーザに任意に作成させる支援機能を有する。 The drawing editor device 5 of this example relates to the programmable display 1 that accesses the external memory of the external device (connected device 4) based on the screen data 22 including the external memory access information related to each item on the screen, for example. It has a support function that allows the user to arbitrarily create the screen data.
 本例の作画エディタ装置5は、任意の画面データ32の上記外部メモリアクセス情報から、デフォルトのバックアップ情報を生成するバックアップ情報生成部(不図示)と、該バックアップ情報を任意に変更させる設定変更部(不図示)を有する。更に、上記デフォルトまたは変更後のバックアップ情報に基づいて、そのときのバックアップ情報に応じた外部メモリアクセスに係るメモリアクセス処理時間を算出して表示する処理時間算出部(不図示)を有する。 The drawing editor device 5 of this example includes a backup information generation unit (not shown) that generates default backup information from the external memory access information of arbitrary screen data 32, and a setting change unit that arbitrarily changes the backup information. (Not shown). Furthermore, a processing time calculation unit (not shown) that calculates and displays the memory access processing time related to the external memory access according to the backup information at that time based on the default or changed backup information.
 また、本例の作画エディタ装置5は、所定の指示に応じて、そのときのバックアップ情報を用いて上記画面データ32の外部メモリアクセス情報を更新する画面データ更新部(不図示)を更に有するものであってもよい。あるいは、上記画面データ更新部で更新された画面データ32を、プログラマブル表示器1に転送して、新たな画面データ22として記憶させる転送部(不図示)を更に有するものであってもよい。 The drawing editor device 5 of this example further includes a screen data updating unit (not shown) that updates the external memory access information of the screen data 32 using the backup information at that time in response to a predetermined instruction. It may be. Or you may further have the transfer part (not shown) which transfers the screen data 32 updated by the said screen data update part to the programmable display 1, and memorize | stores it as the new screen data 22. FIG.
 上記バックアップ情報は、例えば上記外部機器情報51と外部機器メモリデータ52であるが、変更対象は外部機器メモリデータ52である。
 また、上記バックアップ情報には、例えば、上記各アイテムの外部メモリにおける割当アドレスが含まれている。そして、上記設定変更部は、例えば、該各割当アドレスを表示すると共に任意のアイテムの割当アドレスをユーザに変更させることで、バックアップ情報を変更する。
The backup information is, for example, the external device information 51 and the external device memory data 52, but the change target is the external device memory data 52.
Further, the backup information includes, for example, an allocation address in the external memory of each item. Then, the setting change unit changes the backup information by, for example, displaying each assigned address and causing the user to change the assigned address of an arbitrary item.
 図18は、作画エディタ装置5のハードウェア構成例であり、例えば上記汎用コンピュータ(パソコン等)の構成を有する。
 すなわち、作画エディタ装置5は、例えば、CPU201等の演算プロセッサ、メモリ202、ハードディスク等の記憶装置203、キーボードやマウス等の操作部204、ディスプレイ等の表示部205、通信部206、記録媒体駆動部207等を有している。これらはバス208に接続されている。
FIG. 18 shows an example of the hardware configuration of the drawing editor device 5, for example, the configuration of the general-purpose computer (such as a personal computer).
That is, the drawing editor device 5 includes, for example, an arithmetic processor such as a CPU 201, a memory 202, a storage device 203 such as a hard disk, an operation unit 204 such as a keyboard and a mouse, a display unit 205 such as a display, a communication unit 206, and a recording medium driving unit. 207 and the like. These are connected to the bus 208.
 上記記憶装置203には予め所定のアプリケーションプログラムが記憶されており、上記CPU201等の演算プロセッサがこのアプリケーションプログラムを実行することにより、作画エディタ装置5の各種機能が実現される。例えば上記不図示の各処理機能部や、図4に示す各処理機能部を実現させる。 A predetermined application program is stored in the storage device 203 in advance, and various functions of the drawing editor device 5 are realized by an arithmetic processor such as the CPU 201 executing the application program. For example, each processing function unit (not shown) or each processing function unit shown in FIG. 4 is realized.
 また、記録媒体駆動部207は、例えばCD-ROM、DVD-ROM、メモリスティックなどの可搬型の記録媒体209へのアクセス(データリード・ライト)を行う。上記アプリケーションプログラムは、可搬型の記録媒体209に記録されているものであっても構わない。
 
 
 
The recording medium driving unit 207 accesses (data read / write) a portable recording medium 209 such as a CD-ROM, DVD-ROM, or memory stick. The application program may be recorded on a portable recording medium 209.


Claims (13)

  1.  画面上の各アイテムに係る外部メモリアクセス情報が含まれる画面データに基づいて、外部機器の外部メモリにアクセスするプログラマブル表示器と、該画面データを任意に作成させる作画エディタ装置とを有するプログラマブルコントローラシステムであって、
     前記作画エディタ装置は、
     任意の前記画面データの前記外部メモリアクセス情報から、デフォルトのバックアップ情報を生成するバックアップ情報生成手段と、
     該バックアップ情報を任意に変更させる設定変更手段と、
     前記デフォルトまたは変更後のバックアップ情報に基づいて、そのときのバックアップ情報に応じた外部メモリアクセスに係るメモリアクセス処理時間を算出して表示する処理時間算出手段と、
     を有することを特徴とするプログラマブルコントローラシステム。
    Programmable controller system having a programmable display for accessing external memory of an external device based on screen data including external memory access information related to each item on the screen, and a drawing editor device for arbitrarily creating the screen data Because
    The drawing editor device
    Backup information generating means for generating default backup information from the external memory access information of the arbitrary screen data;
    Setting changing means for arbitrarily changing the backup information;
    Based on the default or changed backup information, processing time calculation means for calculating and displaying a memory access processing time related to external memory access according to the backup information at that time, and
    A programmable controller system comprising:
  2.  前記作画エディタ装置は、
     所定の指示に応じて、そのときのバックアップ情報を用いて前記画面データの外部メモリアクセス情報を更新する画面データ更新手段を更に有することを特徴とする請求項1記載のプログラマブルコントローラシステム。
    The drawing editor device
    2. The programmable controller system according to claim 1, further comprising screen data updating means for updating external memory access information of the screen data using backup information at that time in response to a predetermined instruction.
  3.  前記バックアップ情報には、前記各アイテムの前記外部メモリにおける割当アドレスが含まれており、
     前記設定変更手段は、該各割当アドレスを表示すると共に任意のアイテムの割当アドレスを変更させることで、前記バックアップ情報を変更することを特徴とする請求項1または2記載のプログラマブルコントローラシステム。
    The backup information includes an allocation address in the external memory of each item,
    3. The programmable controller system according to claim 1, wherein the setting change unit changes the backup information by displaying each assigned address and changing an assigned address of an arbitrary item. 4.
  4.  前記画面データ更新手段で更新された画面データを、前記プログラマブル表示器に転送して記憶させる転送手段を更に有することを特徴とする請求項2記載のプログラマブルコントローラシステム。 3. The programmable controller system according to claim 2, further comprising transfer means for transferring and storing the screen data updated by the screen data update means to the programmable display.
  5.  前記処理時間算出手段は、デフォルトまたは変更後の前記バックアップ情報に基づいて、前記外部メモリアクセスの為のコマンドの送信回数を決定すると共に該各コマンド毎のアクセス領域を決定し、該決定した送信回数とアクセス領域とに応じた前記メモリアクセス処理時間を算出することを特徴とする請求項3または4記載のプログラマブルコントローラシステム。 The processing time calculation means determines a command transmission count for accessing the external memory based on the default or changed backup information, determines an access area for each command, and determines the determined transmission count. 5. The programmable controller system according to claim 3, wherein the memory access processing time corresponding to the access area is calculated.
  6.  前記バックアップ情報には、前記プログラマブル表示器と前記外部機器との間の通信プロトコル情報が含まれており、
     前記処理時間算出手段は、該通信プロトコル情報を用いて、前記メモリアクセス処理時間を算出することを特徴とする請求項5記載のプログラマブルコントローラシステム。
    The backup information includes communication protocol information between the programmable display and the external device,
    6. The programmable controller system according to claim 5, wherein the processing time calculation means calculates the memory access processing time using the communication protocol information.
  7.  前記プログラマブル表示器は、前記画面データの外部メモリアクセス情報に基づいて、前記各アイテムの各割当アドレス全てを含む記憶領域にアクセスするための要求コマンドを、1回、前記外部機器へ送信することによって、全てのアイテムの割当アドレスにアクセスする場合があることを特徴とする請求項1記載のプログラマブルコントローラシステム。 The programmable display unit transmits a request command for accessing a storage area including all the assigned addresses of each item to the external device once based on external memory access information of the screen data. 2. The programmable controller system according to claim 1, wherein there is a case where all items assigned addresses are accessed.
  8.  前記プログラマブル表示器は、前記画面データの外部メモリアクセス情報に基づいて、前記各アイテムの中の1以上のアイテムの割当アドレスを含む記憶領域にアクセスするための要求コマンドを、複数回、前記外部機器へ送信することによって、全てのアイテムの割当アドレスにアクセスする場合があることを特徴とする請求項1記載のプログラマブルコントローラシステム。 The programmable display device receives a request command for accessing a storage area including an allocation address of one or more items in each item based on external memory access information of the screen data, a plurality of times, the external device The programmable controller system according to claim 1, wherein an assignment address of all items may be accessed by transmitting to the item.
  9.  前記処理時間算出手段は、デフォルトまたは変更後の前記バックアップ情報に基づいて、前記要求コマンドの送信回数を決定すると共に該各要求コマンド毎の前記アクセスする記憶領域を決定し、該決定した送信回数と記憶領域とに応じた前記メモリアクセス処理時間を算出することを特徴とする請求項7または8記載のプログラマブルコントローラシステム。 The processing time calculation means determines the number of transmissions of the request command based on the default or changed backup information, determines the storage area to be accessed for each request command, and determines the number of transmissions thus determined. 9. The programmable controller system according to claim 7, wherein the memory access processing time corresponding to a storage area is calculated.
  10.  前記バックアップ情報には、前記プログラマブル表示器と前記外部機器との間の通信プロトコル情報が含まれており、
     前記処理時間算出手段は、該通信プロトコル情報を用いて、前記各要求コマンドの伝送時間と該要求コマンドに応じた前記外部機器からの応答コマンドの伝送時間を算出することで、前記メモリアクセス処理時間を算出することを特徴とする請求項9記載のプログラマブルコントローラシステム。
    The backup information includes communication protocol information between the programmable display and the external device,
    The processing time calculation means calculates the memory access processing time by calculating the transmission time of each request command and the transmission time of a response command from the external device according to the request command using the communication protocol information. The programmable controller system according to claim 9, wherein:
  11.  プログラマブル表示器の画面データを任意に作成させる作画エディタ装置であって、
     画面上の各アイテムに係る外部メモリアクセス情報が含まれる前記画面データを記憶する画面データ記憶手段と、
     前記画面データの前記外部メモリアクセス情報から、デフォルトのバックアップ情報を生成するバックアップ情報生成手段と、
     該バックアップ情報を任意に変更させる設定変更手段と、
     前記デフォルトまたは変更後のバックアップ情報に基づいて、そのときのバックアップ情報に応じた外部メモリアクセスに係るメモリアクセス処理時間を算出して表示する処理時間算出手段と、
     を有することを特徴とする作画エディタ装置。
    A drawing editor device for arbitrarily creating screen data of a programmable display,
    Screen data storage means for storing the screen data including external memory access information relating to each item on the screen;
    Backup information generating means for generating default backup information from the external memory access information of the screen data;
    Setting changing means for arbitrarily changing the backup information;
    Based on the default or changed backup information, processing time calculation means for calculating and displaying a memory access processing time related to external memory access according to the backup information at that time, and
    A drawing editor apparatus characterized by comprising:
  12.  所定の指示に応じて、そのときの前記バックアップ情報を用いて、前記画面データの外部メモリアクセス情報を更新する画面データ更新手段を更に有することを特徴とする請求項11記載の作画エディタ装置。 12. The drawing editor apparatus according to claim 11, further comprising screen data updating means for updating external memory access information of the screen data using the backup information at that time in response to a predetermined instruction.
  13.  プログラマブル表示器の画面データを任意に作成させる作画エディタ装置のコンピュータを、
     画面上の各アイテムに係る外部メモリアクセス情報が含まれる前記画面データを記憶する画面データ記憶手段と、
     前記画面データの前記外部メモリアクセス情報から、デフォルトのバックアップ情報を生成するバックアップ情報生成手段と、
     該バックアップ情報を任意に変更させる設定変更手段と、
     前記デフォルトまたは変更後のバックアップ情報に基づいて、そのときのバックアップ情報に応じた外部メモリアクセスに係るメモリアクセス処理時間を算出して表示する処理時間算出手段、
     として機能させるためのプログラム。
     
    A computer of a drawing editor device that arbitrarily creates screen data of a programmable display,
    Screen data storage means for storing the screen data including external memory access information relating to each item on the screen;
    Backup information generating means for generating default backup information from the external memory access information of the screen data;
    Setting changing means for arbitrarily changing the backup information;
    Based on the default or changed backup information, processing time calculation means for calculating and displaying the memory access processing time related to external memory access according to the backup information at that time,
    Program to function as.
PCT/JP2013/064532 2013-05-24 2013-05-24 Programmable controller system, motion video editor thereof, and program thereof WO2014188602A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
PCT/JP2013/064532 WO2014188602A1 (en) 2013-05-24 2013-05-24 Programmable controller system, motion video editor thereof, and program thereof
CN201380074337.0A CN105009007B (en) 2013-05-24 2013-05-24 Programable controller system and its mapping editing device
JP2015518035A JP6042980B2 (en) 2013-05-24 2013-05-24 Programmable controller system, drawing editor device thereof, program thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2013/064532 WO2014188602A1 (en) 2013-05-24 2013-05-24 Programmable controller system, motion video editor thereof, and program thereof

Publications (1)

Publication Number Publication Date
WO2014188602A1 true WO2014188602A1 (en) 2014-11-27

Family

ID=51933182

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2013/064532 WO2014188602A1 (en) 2013-05-24 2013-05-24 Programmable controller system, motion video editor thereof, and program thereof

Country Status (3)

Country Link
JP (1) JP6042980B2 (en)
CN (1) CN105009007B (en)
WO (1) WO2014188602A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861455A (en) * 2017-10-17 2018-03-30 福州耐特电子科技有限公司 The Visualized management system and method for a kind of programmable controller

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002300226A (en) * 2001-03-30 2002-10-11 Digital Electronics Corp Device and program for preparing communication program and computer readable recording medium with the same recorded thereon
JP2007065907A (en) * 2005-08-30 2007-03-15 Digital Electronics Corp Screen preparation device, screen preparation program, record medium recording its program, programmable display unit, control program, and record medium recording its program
JP2011035664A (en) * 2009-07-31 2011-02-17 Omron Corp Controller
JP2011090650A (en) * 2009-10-26 2011-05-06 Hakko Denki Kk Display/control system, programmable display device for the same, drawing editor device and program
JP2011107866A (en) * 2009-11-16 2011-06-02 Hakko Denki Kk Apparatus and method for sequence control of connected equipment simulator, and program therefor

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5492573B2 (en) * 2010-01-04 2014-05-14 発紘電機株式会社 Device / PLC simulator device, method, and program having trace function
EP2527938B1 (en) * 2010-01-20 2018-09-19 Mitsubishi Electric Corporation Programmable controller system and development system
US20120319944A1 (en) * 2010-03-04 2012-12-20 Mitsubishi Electric Corporation Control system equipped with programmable display, programmable display, and drawing data generation means
JP2012185616A (en) * 2011-03-04 2012-09-27 Mitsubishi Electric Corp Programmable display unit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002300226A (en) * 2001-03-30 2002-10-11 Digital Electronics Corp Device and program for preparing communication program and computer readable recording medium with the same recorded thereon
JP2007065907A (en) * 2005-08-30 2007-03-15 Digital Electronics Corp Screen preparation device, screen preparation program, record medium recording its program, programmable display unit, control program, and record medium recording its program
JP2011035664A (en) * 2009-07-31 2011-02-17 Omron Corp Controller
JP2011090650A (en) * 2009-10-26 2011-05-06 Hakko Denki Kk Display/control system, programmable display device for the same, drawing editor device and program
JP2011107866A (en) * 2009-11-16 2011-06-02 Hakko Denki Kk Apparatus and method for sequence control of connected equipment simulator, and program therefor

Also Published As

Publication number Publication date
JP6042980B2 (en) 2016-12-14
CN105009007A (en) 2015-10-28
JPWO2014188602A1 (en) 2017-02-23
CN105009007B (en) 2017-10-20

Similar Documents

Publication Publication Date Title
JP5875555B2 (en) Image creation system
CN109605367B (en) Robot programming method, device and equipment and storage medium
US20150058828A1 (en) Plc simulation system, plc simulator, recording medium, and simulation method
JP5934428B2 (en) Programmable display, programmable controller system, program
WO2015075790A1 (en) Device for assisting creation of sequence program
JP6501705B2 (en) Method and system for providing device description update information for field devices
JP6042980B2 (en) Programmable controller system, drawing editor device thereof, program thereof
JP2008142788A (en) Operation program preparation supporting method and operation program preparing device
JP2014085782A (en) Control system and control method
JP2007072518A (en) Human machine interface device of control unit
JP5469510B2 (en) Programmable controller, set value change system, calculation display device, and set value change unit
JP2006285496A (en) Programmable display unit, display control program and recording medium with the program recorded thereon
WO2015059816A1 (en) Programmable display device, and program
JP2008071033A (en) Programmable display and picture drawing device
JP2007094724A (en) Programmable display, control program, storage medium recording the program, screen generating device, screen generating program, and storage medium recording the program
JP6033394B2 (en) Programmable display, its program
JP2011175351A (en) Screen data preparation device, screen data preparation method, and screen data preparation program
JP5870214B2 (en) Programmable controller system, its programmable display, support device, program
JP5970080B2 (en) Programmable display, program
JP6051545B2 (en) PLC system, status display method, PLC, and programmable display
JP6230368B2 (en) Programmable controller system, its programmable display, support device
JP6333279B2 (en) Programmable display, program
JP2008033572A (en) Screen generating apparatus, screen generating program and recording medium for recording this program
JP2007122399A (en) Controller, its program, and recording medium
JP2015032160A (en) Setting device for traffic signal controller, program and recording medium

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: 13885177

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2015518035

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13885177

Country of ref document: EP

Kind code of ref document: A1