WO2012056539A1 - Logging setup device, logging setup method and recordable medium - Google Patents

Logging setup device, logging setup method and recordable medium Download PDF

Info

Publication number
WO2012056539A1
WO2012056539A1 PCT/JP2010/069113 JP2010069113W WO2012056539A1 WO 2012056539 A1 WO2012056539 A1 WO 2012056539A1 JP 2010069113 W JP2010069113 W JP 2010069113W WO 2012056539 A1 WO2012056539 A1 WO 2012056539A1
Authority
WO
WIPO (PCT)
Prior art keywords
unit
logging
input
logging setting
start address
Prior art date
Application number
PCT/JP2010/069113
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 KR1020137012316A priority Critical patent/KR101472697B1/en
Priority to DE112010005963.2T priority patent/DE112010005963B4/en
Priority to JP2012540579A priority patent/JP5312695B2/en
Priority to PCT/JP2010/069113 priority patent/WO2012056539A1/en
Priority to CN201080069816.XA priority patent/CN103180789B/en
Priority to TW100112169A priority patent/TWI448858B/en
Publication of WO2012056539A1 publication Critical patent/WO2012056539A1/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
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • 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/058Safety, monitoring
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • the present invention relates to a logging setting device that performs logging setting of a programmable controller (PLC), a logging setting method, and a recording medium that records a program that causes a computer to execute the logging setting method.
  • PLC programmable controller
  • PLCs have a function for logging device values. Which device is targeted for logging is set in the PLC using a programming device (logging setting device).
  • logging setting device a programming device
  • a user creates a user program with reference to an example in an instruction manual (hereinafter simply referred to as a manual), it is described as an operation example of the referenced part for comparison with the operation example described in the manual. You may want to log the same device value as the current device.
  • Patent Document 1 As a technique for assisting the user in setting a device, for example, in Patent Document 1, when a device such as a solenoid or a coil that the user wants to monitor is specified, a device related to the specified device is searched from the user program, and all related A technique related to an apparatus that monitors a state including a device is disclosed.
  • the present invention has been made in view of the above, and is a logging setting device capable of performing logging setting as easily as possible, a logging setting method, and a recording in which a program for causing a computer to execute the logging setting method is recorded
  • the purpose is to obtain a medium.
  • the present invention accepts an input specifying a device, and forms a model name of a unit constituting a programmable controller (PLC) to be set for logging and a device used by the unit.
  • PLC programmable controller
  • a unit information acquisition unit that acquires the model name of the unit that uses the specified device and the start address of the unit from the unit information list that describes the correspondence with the start address of the address space.
  • the correspondence between the name of the typical example of the control operation and the related device group related to the control operation is stored together with the start address dependency indicating the relationship between the device address and the start address for each device constituting the related device group.
  • Logging setting item group database and the user acquired by the unit information acquisition unit A related item group extraction unit that searches the logging setting item group database using a model name as a search key and extracts a list of typical examples of control operations related to the unit, and the control operation extracted from the user
  • the logging setting item database stores the address of each device constituting the related device group associated with the selected control operation in response to an input for selecting one of the list of names.
  • a device change unit that changes based on the start address dependency and the acquired start address, and a logging setting output unit that sets each device constituting the changed related device group as a logging target. It is characterized by that.
  • the logging setting device can perform logging setting as easily as possible since the user can collectively set logging related devices to the selected device.
  • FIG. 1 is a diagram illustrating a configuration example of a PLC that is a target of logging setting.
  • FIG. 2 is a diagram illustrating an example of a user program related to control of an intelligent unit (positioning unit) described in a manual.
  • FIG. 3 is a timing chart showing an operation example of the intelligent unit according to the program example shown in FIG.
  • FIG. 4 is a diagram illustrating an example of a program in the case where the head XY is 20 and the axis 3 is a driving target.
  • FIG. 5 is a diagram illustrating a configuration example of a programming device as a logging setting device according to the present embodiment.
  • FIG. 6 is a diagram illustrating a functional configuration of the programming device according to the present embodiment.
  • FIG. 1 is a diagram illustrating a configuration example of a PLC that is a target of logging setting.
  • FIG. 2 is a diagram illustrating an example of a user program related to control of an intelligent unit (positioning unit) described in a manual
  • FIG. 7 is a diagram for explaining an example of the data structure of the logging setting item group DB.
  • FIG. 8 is a flowchart illustrating a logging setting method according to the embodiment of this invention.
  • FIG. 9 is a diagram illustrating an example of a user program editing screen.
  • FIG. 10 is a diagram illustrating an example of the logging setting screen.
  • FIG. 11 is a diagram illustrating an example of a list display screen of a logging setting item group.
  • FIG. 12 is a diagram illustrating an example of a related device list display screen after changing the device address.
  • FIG. 13 is a diagram illustrating an operation example of the intelligent unit when the changed device is set as a logging target.
  • FIG. 1 is a diagram illustrating a configuration example of a programmable controller (PLC) that is a target of logging setting. As shown in the figure, the PLC 1 is configured by connecting a CPU unit 2 and an intelligent unit 3 as one of the subunits to a bus unit 4.
  • PLC programmable controller
  • the CPU unit 2 is a unit that comprehensively controls the entire PLC 1 based on the user program 25.
  • the intelligent unit 3 includes a separate CPU 31 different from the CPU unit 2 and operates as a slave of the CPU unit 2 based on a unique program (unit program 33). Examples of the intelligent unit 3 include a positioning unit that calculates a drive command for a servo amplifier that drives a motor attached to a drive shaft or the like based on a command from the user program 25.
  • the CPU unit 2 can be further added to the bus unit 4 so that the CPU unit 2 can be duplicated, or another sub unit other than the intelligent unit 3 can be mounted. Yes.
  • the CPU unit 2 includes a CPU 21, a storage device 22, and a communication interface 23. Each of these elements is connected to each other by an internal bus.
  • the storage device 22 includes a ROM (Read Only Memory), a RAM (Random Access Memory), and the like, and stores a unit information list 24, a user program 25, and logging setting data 26.
  • a device address is assigned to the storage device 22, and a device memory area 27 in which device values are stored and a log data storage area 28 in which log data is stored are secured.
  • the unit information list 24 is a list of unit information in which the model name of the sub unit mounted on the bus unit 4 and the head XY that is the offset address of the device to which the sub unit is assigned are described. The leading XY changes depending on the mounting position of the subunit.
  • the logging setting data 26 is setting information describing a device to be logged.
  • the unit information list 24 and the logging setting data 26 are set by the user together with the user program 25 using a programming device. Note that there may be a case where the mounting position and model name are automatically acquired from the unit in which the CPU unit 2 is mounted, and the unit information list 24 is automatically created based on the acquired information. In some cases, the user may arbitrarily set the top XY for each subunit by editing the unit information list 24 using a programming device.
  • the CPU21 performs control of the subunit with which the same PLC1 is provided by running the user program 25.
  • FIG. the CPU 21 acquires an input value written in an input device assigned to the device memory area 27 from the subunit to the subunit, and uses the acquired input value for the subunit. Calculate the output value. Further, the CPU 21 stores the calculated output value in a predetermined output device assigned to the device memory area 27 for the subunit.
  • the CPU 21 not only inputs / outputs data to / from the subunit via a device, but also stores intermediate data in a device different from the input device or the output device in the device memory area 27.
  • the device address is also assigned to a buffer memory area 34 provided in the intelligent unit 3 to be described later, and the CPU 21 designates the device address assigned to the buffer memory area 34 so as to Direct access is also possible.
  • the CPU 21 sequentially acquires the device address value set in the logging setting data 26 and accumulates and stores the acquired device value in the log data storage area 28 as log data.
  • the user acquires the log data sequentially input to the log data storage area 28 from the programmable display in substantially real time to monitor the control operation of the PLC 1 or program the log data stored and stored in the log data storage area 28 It can be acquired from the device or programmable display at a predetermined timing and used for subsequent analysis.
  • the communication I / F 23 is a communication interface for connecting an external device, and the user connects the programming device of the present embodiment to the communication I / F 23 to set the user program 25 and the logging setting data 26. Be able to.
  • the intelligent unit 3 includes a CPU 31 and a storage device 32.
  • the CPU 31 and the storage device 32 are connected to each other by a bus.
  • the storage device 32 is configured by a ROM, a RAM, or the like, and stores a unit program 33.
  • a buffer memory area 34 is secured in the storage device 32.
  • the unit program 33 is a program that operates in response to a command from the user program 25, and implements a function required for the intelligent unit 3 when executed by the CPU 31. For example, when the intelligent unit 3 is a positioning unit, when a position command is input from the user program 25, the CPU 31 calculates a drive command with a finer granularity than the input position command based on the unit program 33.
  • the CPU 31 stores intermediate data generated when the unit program 33 is executed in a predetermined area in the buffer memory area 34.
  • Input / output between the CPU unit 2 and the intelligent unit 3 is executed using a device allocated to the device memory area 27 or the buffer memory area 34. Further, the CPU unit 2 can acquire the above-described intermediate data stored in the buffer memory area 34 by using a device assigned to the buffer memory area 34.
  • the intelligent unit 3 is a positioning unit capable of driving control of a plurality of axes, and the plurality of axes are assigned an axis number in ascending order from 1 so that they can be distinguished from each other.
  • FIG. 2 is a diagram for explaining an example of a user program related to the control of the intelligent unit (positioning unit) 3 described in the manual.
  • the manual is created so that the head XY of the allocation address of the intelligent unit 3 has a zero value and the drive control of the axis 1 is performed.
  • a positioning start signal Y10, a start completion signal X10, and a positioning start command pulse M104 are used in the user program.
  • FIG. 3 is a timing chart showing an operation example of the intelligent unit 3 according to the program example shown in FIG. Normally, the manual stores not only the devices used in the program example but also intermediate data when the program example is executed so that the user can check whether the user program has been created correctly. An example of the operation of a device closely related to the example program is described.
  • the sequencer ready signal Y0, the unit preparation completion signal X0, the BUSY signal XC, and the positioning completion signal X14, error detection signal X8 and feed rate U0 ⁇ G804 are shown to perform closely related operations.
  • the intelligent unit 3 turns on the unit preparation completion signal X0. Thereafter, when the CPU unit 2 turns on the positioning start signal Y10, the intelligent unit 3 starts driving control of the shaft 1 and turns on the start completion signal X10 and the BUSY signal XC. The intelligent unit 3 turns on the positioning completion signal X14 in a pulse manner every time the shaft 1 reaches the position commanded by the position command.
  • the intelligent unit 3 completes a series of operations determined by the unit program 33, it turns off the BUSY signal, confirms that the BUSY signal is turned off, and the CPU unit 2 turns off the positioning start signal.
  • the intelligent unit 3 turns off the start completion signal X10 after confirming that the positioning start signal is turned off.
  • the intelligent unit 3 sequentially outputs the current feed speed as intermediate data to a position to which the device U0 ⁇ G804 is assigned.
  • the device U0 ⁇ G804 is a device for storing intermediate data allocated to the buffer memory area 34, and is normally not used in the user program 25.
  • the intelligent unit 3 turns on the error detection signal X8 when an error is detected during operation.
  • Y10, Y0, X0, X10, XC, X14, X8, U0 ⁇ G804 are taken up as devices closely related to the program example of FIG. 2, and an operation example is described for each device.
  • the user sets Y10, Y0, X0, X10, XC, X14, X8, U0 ⁇ G804 as the logging target. It is good to set.
  • a plurality of devices whose operation examples are described in a manual setting example, such as X10, Y0, X0, X10, XC, X14, X8, U0 ⁇ G804, are related device groups, Individual devices constituting the related device group are referred to as related devices.
  • FIG. 4 shows a program example in the case where the head XY is 20 and the axis 3 is the driving target.
  • the positioning start signal for which Y10 was used has been changed to Y32.
  • “32” of Y32 has an offset “22” obtained by adding the value “2” obtained by subtracting 1 from the head XY value “20” and the axis number to “10” of the manual address Y10. It is an added value.
  • the start completion signal in which X10 was manually used is changed to X32 by adding the offset “22”.
  • the numeric part of the device address depends on the head XY and whether it depends on the axis number differs depending on the device, so it is difficult for the user to change the address for each related device and set it as a logging target. It is a complicated task.
  • the related device is registered in advance for each related device group so that the user can easily set the device address to be logged, and the address of each related device is automatically set.
  • the main feature is that it can be changed.
  • FIG. 5 is a diagram illustrating a configuration example of a programming device as a logging setting device according to the present embodiment.
  • the logging setting device is described as being implemented as a function of the programming device.
  • the logging setting device may be configured as a device different from the programming device.
  • the programming device 5 has a configuration of a normal computer including a CPU 51, a RAM 52, a ROM 53, a communication I / F 54, an external storage device 55, a CD-ROM drive 56, an input device 57, and an output device 58.
  • the CPU 51, RAM 52, ROM 53, communication I / F 54, external storage device 55, CD-ROM drive 56, input device 57, and output device 58 are connected to each other via a bus.
  • the CPU 51 executes a logging setting program 62 that is a computer program for executing logging settings.
  • the output device 58 is a display device such as a liquid crystal monitor, and displays output information for the user such as an operation screen based on an instruction from the CPU 51.
  • the input device 57 includes a mouse and a keyboard, and an operation on the programming device 5 from a user is input. The operation information input to the input device 57 is sent to the CPU 51.
  • the communication I / F 54 is a connection interface for performing communication with the CPU unit 2.
  • a user program 25 and logging setting data 26 are set in the CPU unit 2 via the communication I / F 54.
  • the ROM 53 stores boot information for starting the programming device 5.
  • the CPU 51 stores a system program (not shown) stored in an external storage device 55 configured by, for example, a hard disk drive based on the boot information. And the programming device 5 is activated.
  • the logging setting program 62 is stored in the external storage device 55.
  • the logging setting program 62 is loaded into the RAM 52 via the bus line.
  • the CPU 51 executes a logging setting program 62 loaded in the RAM 52.
  • the external storage device 55 stores a unit information list 60 and a user program 61 in advance.
  • the user program 61 is created using, for example, the programming device 5, and the unit information list 60 is obtained from the PLC 1, for example.
  • the CPU 51 executes various steps described later by executing the logging setting program loaded in the RAM 52, and outputs logging setting data.
  • the logging setting program 62 may be stored on a computer connected to a network such as the Internet and provided or distributed by being downloaded via the network.
  • the logging setting program 62 may be provided or distributed via a network such as the Internet.
  • the logging setting program 62 may be configured to be incorporated in the ROM 53 or the like and provided to the programming device 5.
  • the CD-ROM drive 56 is a device for reading information recorded on the CD-ROM 59.
  • the logging setting program 62 may be provided or distributed by being stored in a computer-readable recording medium such as the CD-ROM 59.
  • the logging setting program 62 recorded on the CD-ROM 59 may be read via the CD-ROM 59 and installed in the external storage device 55 or may be loaded directly into the RAM 52. .
  • FIG. 6 is a diagram illustrating a functional configuration of the programming device 5 realized by executing the logging setting program 62 loaded in the RAM 52.
  • the programming device 5 includes a unit information acquisition unit 70, a related item group extraction unit 71, a logging setting item group database (DB) 72, a related item group display / selection unit 73, an offset reflection unit 74, and a logging setting.
  • An output unit 75 is provided.
  • Each of these functional components is generated in the RAM 52, for example.
  • the unit information acquisition unit 70 searches the unit information list 60 based on input from the user via the input device 57, and acquires unit information (unit model name and head XY) related to the logging target unit.
  • the unit information is acquired from the unit information list 60 stored in advance in the external storage device 55.
  • the programming device 5 is connected to the PLC 1, the unit set in the CPU unit 2 is used. You may make it acquire from the information list 24.
  • FIG. 1 is based on input from the user via the input device 57, and acquires unit information (unit model name and head XY) related to the logging target unit.
  • the unit information is acquired from the unit information list 60 stored in advance in the external storage device 55.
  • the programming device 5 is connected to the PLC 1, the unit set in the CPU unit 2 is used. You may make it acquire from the information list 24.
  • the logging setting item group DB 72 is a database that manages the association between the logging setting item and the related device list related to the logging setting item for each unit.
  • FIG. 7 is a diagram for explaining an example of the data structure of the logging setting item group DB 72.
  • the logging setting item group DB 72 has a table-type data structure having fields that describe a model name, a logging setting item name, and a related device.
  • the logging setting item name is a name for identifying a related device group.
  • the related device group is defined for each program example described in the manual, it is recommended to use a name that makes it easy to identify the program examples described in the manual as the logging setting item name.
  • the related device group according to the program example of FIG. 2 is given the logging setting item name “block start control”.
  • the number of logging setting item names registered per unit type name is not particularly limited.
  • the same device address may be registered in related devices of a plurality of logging setting items.
  • the head XY dependency and the axis number dependency are registered as attribute information of each device for each related device.
  • values to be added to the numeric part of the device address when the head XY is ⁇ and the axis number is ⁇ + 1 are registered.
  • “Y10” becomes “Y (10 + ⁇ + ⁇ )” after the device address is changed when the head XY is changed to ⁇ and the axis number is changed to ⁇ + 1.
  • “Y0”, “X0”, and “U0 ⁇ G804” do not depend on the axis number for the device address.
  • U0 ⁇ G804 is added with a value obtained by dividing the value ⁇ of the head XY by the value “10” in hexadecimal notation as an offset.
  • the related item group extraction unit 71 searches the logging setting item group DB 72 using the unit type name acquired by the unit information acquisition unit 70 as a search key, and extracts the logging setting item belonging to the unit type name.
  • the related item group display / selection unit 73 displays the items extracted by the related item group extraction unit 71 on the output device 58, and receives selection input of items desired by the user among the displayed items.
  • the offset reflection unit 74 displays the attribute information of each related device, the head XY acquired by the unit information acquisition unit 70, and the axis number of the logging target for each related device belonging to the logging setting item selected by using the offset reflection unit 74. By reflecting, the device address after the change of each related device is calculated.
  • the logging setting output unit 75 outputs logging setting data D1 in which the device address after the change of each related device calculated by the offset reflection unit 74 is set as a logging target.
  • the logging setting data D1 is set to the CPU unit 2 after being output to the RAM 52 or the external storage device 55, for example.
  • FIG. 8 is a flowchart for explaining the logging setting method according to the embodiment of the present invention realized by using the programming device 5.
  • step S1 the user performs input for designating a device (step S1).
  • the device can be specified from the editing screen of the user program 61.
  • a pull-down menu including “Add to logging setting item” and “Add related item to logging setting item” when the cursor is moved to “SET Y32” and a predetermined click operation is performed. Appears.
  • the programming device 5 recognizes the designation input of the device “Y32”.
  • “add to logging setting item” is selected, “Y32” is independently designated and input as a logging target without performing the steps described below.
  • FIG. 10 is a diagram illustrating an example of the logging setting screen when “Y32” is designated as a logging target alone. As shown in the figure, only “Y32” is listed as a logging target.
  • the unit information acquisition unit 70 acquires unit information in which the unit type name of the subunit that uses the selected device and the head XY are described (step S2).
  • the related item group extraction unit 71 searches the logging setting item group DB 72 using the acquired unit type name as a search key, and acquires a list of logging setting item groups (step S3). Further, the related item group extraction unit 71 calculates an axis number based on the attribute information of the related device registered in the logging setting item group DB 72, the input device, and the acquired head XY (step S4).
  • the related item group display / selection unit 73 displays the acquired logging setting item group as a list, and prompts the selection input of the logging setting item (step S5).
  • FIG. 11 is a diagram illustrating an example of a list display screen of a logging setting item group. In this figure, in addition to the logging setting item group, the acquired unit model name and the acquired head XY are displayed. In addition, “block start control” in the logging setting item group is actively displayed.
  • the offset reflecting unit 74 reflects the offset relating to the calculated head number XY and the axis number calculated on the related device constituting the related device group of the selected logging setting item.
  • the address is changed (step S7).
  • the logging setting output unit 75 outputs logging setting data targeting each related device after changing the device address (step S8), and the logging setting is completed.
  • FIG. 12 is an example of a related device list display screen after the device address is changed.
  • the addresses Y10, Y0, X0, X10, XC, X14, X8, U0 ⁇ G804 of the related devices related to “block start control” are Y32, Y20, X20, X32, X2E, X36, X2A, respectively.
  • the list is changed to U2 ⁇ G804.
  • logging setting data for Y32, Y20, X20, X32, X2E, X36, X2A, U2 ⁇ G804 is output.
  • FIG. 13 is a diagram for explaining an operation example of the intelligent unit 3 when the changed device (Y32, Y20, X20, X32, X2E, X36, X2A, U2 ⁇ G804) is set as a logging target.
  • the addresses of the related devices in the program example related to “block start control” were appropriately converted according to the head XY and the axis number, respectively. Therefore, the operation example described in the manual shown in FIG. This makes it possible to examine whether there is an error in the user program.
  • the programming device 5 automatically calculates the axis number.
  • the user may input the axis number.
  • Y0 and X0 shown in FIG. 7 do not depend on the axis number. Therefore, when “Y20” is selected and input, the axis number cannot be specified. In such a case, it is necessary to specify an axis number by the user.
  • the positioning unit that performs drive control of a plurality of axes has been described as an example of the intelligent unit 3, but a unit including a plurality of input / output systems (for example, A / D conversion of one or more input systems (channels) is performed.
  • the embodiment of the present invention can be applied to any unit as long as it is an A / D conversion unit.
  • the axis number may be interpreted as the input / output system identification number.
  • the related device group has been described as being defined for each program example described in the manual, the related device group is not limited to the program description example, but is defined for each typical example of the control operation. Also good. Thereby, it is possible to reduce the labor for the user to individually set the related devices related to the operation registered in the logging setting item group database 72, not only when comparing the operation with the manual.
  • the logging setting item group database 72 may be configured to be editable by the user.
  • the programming device 5 70 is configured to automatically correct the logging setting data D1 by detecting the editing or changing of the unit information list, reacquiring unit information for each device, and executing the operation in step S3 and subsequent steps in the programming device 5. May be. With this configuration, it is possible to reduce the trouble of changing the logging target device address every time the subunit mounting position is changed.
  • the correspondence between the name of the typical example of the control operation and the related device group related to the control operation for each unit is set for each device constituting the related device group.
  • a logging setting item group database 72 stored together with the head XY dependency; a list of typical names of control operations relating to units using the logging target device is extracted from the logging setting item group database 72; Since the address of each related device constituting the related device group associated with one selected by the user from the extracted list of names is changed based on the top XY dependency, the user Allows you to configure logging settings for all devices related to the selected device. So it is possible to perform.
  • the intelligent unit 3 not described in the user program 25 can be set as a logging target even for a device used as an intermediate data storage area.
  • the logging setting device and the logging setting method according to the present invention are suitable for application to a logging setting device and a logging setting method for performing PLC logging settings.

Abstract

In order to be capable of making logging setup as easy as possible, a logging setup device of the present invention is provided with a logging setup items group database (72) which stores a mapping for each unit to a name of a typical example of a control operation and a related devices group related to the control operation, along with a leading XY dependency for each device that makes up the related devices group. A list of names of typical examples of control operations related to a unit using a device to be logged is extracted from the logging setup items group database (72), and an address for each related device making up the related devices group mapped to one name selected by a user from among the extracted list of names is modified on the basis of the leading XY dependency.

Description

ロギング設定装置、ロギング設定方法および記録媒体Logging setting device, logging setting method, and recording medium
 本発明は、プログラマブルコントローラ(PLC)のロギング設定を行うロギング設定装置、ロギング設定方法および当該ロギング設定方法をコンピュータに実行させるプログラムを記録した記録媒体に関する。 The present invention relates to a logging setting device that performs logging setting of a programmable controller (PLC), a logging setting method, and a recording medium that records a program that causes a computer to execute the logging setting method.
 従来、PLCには、デバイス値をロギングする機能を備えたものがある。どのデバイスをロギング対象とするかは、プログラミング装置(ロギング設定装置)を用いてPLCに設定される。ユーザは、取り扱い説明書(以下、単にマニュアル)の記載例を参考にしてユーザプログラムを作成したとき、マニュアルに記載されている動作例と比較するために、参考にした部分の動作例として記載されているデバイスと同一のデバイスの値をロギングしたい場合がある。 Conventionally, some PLCs have a function for logging device values. Which device is targeted for logging is set in the PLC using a programming device (logging setting device). When a user creates a user program with reference to an example in an instruction manual (hereinafter simply referred to as a manual), it is described as an operation example of the referenced part for comparison with the operation example described in the manual. You may want to log the same device value as the current device.
 一方、PLCには、PLC全体の動作を統括的に制御するCPUユニットと、目的に合わせて適宜選択されるサブユニットとがベースユニットに装着されて構成されるタイプのものがある。このようなタイプのPLCの場合、デバイスの割り付けアドレスは、サブユニットの装着位置に応じて変化する。したがって、ユーザは、ロギング設定の際、マニュアルに記載されているデバイスに対応するデバイスを求める作業を行う必要が生じる。特に、マニュアルに1つのプログラム例に対して複数の関連するデバイスの動作例が記載されている場合、当該複数のデバイスに夫々対応するデバイスをいちいち求める必要があり、ユーザにとってロギング設定の作業が非常に煩雑であった。 On the other hand, there is a type of PLC in which a CPU unit that comprehensively controls the operation of the entire PLC and a subunit that is appropriately selected according to the purpose are mounted on the base unit. In the case of such a type of PLC, the device allocation address changes according to the mounting position of the subunit. Therefore, the user needs to perform an operation for obtaining a device corresponding to the device described in the manual when logging is set. In particular, when an example of operation of a plurality of related devices is described for one program example in the manual, it is necessary to find a device corresponding to each of the plurality of devices one by one. It was complicated.
 ユーザによるデバイスの設定を支援する技術としては、例えば特許文献1には、ユーザがモニタしたいソレノイドやコイルなどのデバイスを指定すると、ユーザプログラムから指定したデバイスに関係するデバイスを検索し、全ての関連デバイスを含めて状態をモニタする装置にかかる技術が開示されている。 As a technique for assisting the user in setting a device, for example, in Patent Document 1, when a device such as a solenoid or a coil that the user wants to monitor is specified, a device related to the specified device is searched from the user program, and all related A technique related to an apparatus that monitors a state including a device is disclosed.
特開2007-11936号公報JP 2007-11936 A
 しかしながら、上記従来の技術によれば、ユーザプログラムを検査することによって関連各要素を抽出するようになっているので、例えばインテリジェントユニットのようにユーザプログラムとは異なるプログラムに基づいて動作するユニットを使用する場合、当該ユニットが中間データの格納領域として使用するデバイスを抽出することができないという問題があった。 However, according to the above-described conventional technology, since each related element is extracted by examining the user program, a unit that operates based on a program different from the user program, such as an intelligent unit, is used. In such a case, there is a problem that a device used by the unit as an intermediate data storage area cannot be extracted.
 本発明は、上記に鑑みてなされたものであって、可及的に簡単にロギング設定を行うことができるロギング設定装置、ロギング設定方法および当該ロギング設定方法をコンピュータに実行させるプログラムを記録した記録媒体を得ることを目的とする。 The present invention has been made in view of the above, and is a logging setting device capable of performing logging setting as easily as possible, a logging setting method, and a recording in which a program for causing a computer to execute the logging setting method is recorded The purpose is to obtain a medium.
 上述した課題を解決し、目的を達成するために、本発明は、デバイスを指定する入力を受け付けて、ロギング設定対象のプログラマブルコントローラ(PLC)を構成するユニットの形名と当該ユニットが使用するデバイスアドレス空間の先頭アドレスとの対応を記述した予め作成されたユニット情報リストから、前記指定されたデバイスを使用するユニットの形名および当該ユニットの先頭アドレスを取得するユニット情報取得部と、ユニット毎に制御動作の典型例の名称と当該制御動作にかかる関連デバイス群との対応付けを、関連デバイス群を構成するデバイス毎にデバイスアドレスと先頭アドレスとの関係を示す先頭アドレス依存性とともに記憶しているロギング設定項目群データベースと、前記ユニット情報取得部が取得したユニットの形名を検索キーとして前記ロギング設定項目群データベースを検索して、当該ユニットにかかる制御動作の典型例の名称の一覧を抽出する関連項目群抽出部と、ユーザから前記抽出した制御動作の名称の一覧のうちの一つを選択する入力を受け付けて、前記選択された制御動作に対応づけられている関連デバイス群を構成する夫々のデバイスのアドレスを前記ロギング設定項目群データベースが記憶している先頭アドレス依存性と前記取得した先頭アドレスとに基づいて変更するデバイス変更部と、前記変更された関連デバイス群を構成する夫々のデバイスをロギング対象に設定するロギング設定出力部と、を備えることを特徴とする。 In order to solve the above-described problems and achieve the object, the present invention accepts an input specifying a device, and forms a model name of a unit constituting a programmable controller (PLC) to be set for logging and a device used by the unit. For each unit, a unit information acquisition unit that acquires the model name of the unit that uses the specified device and the start address of the unit from the unit information list that describes the correspondence with the start address of the address space. The correspondence between the name of the typical example of the control operation and the related device group related to the control operation is stored together with the start address dependency indicating the relationship between the device address and the start address for each device constituting the related device group. Logging setting item group database and the user acquired by the unit information acquisition unit A related item group extraction unit that searches the logging setting item group database using a model name as a search key and extracts a list of typical examples of control operations related to the unit, and the control operation extracted from the user The logging setting item database stores the address of each device constituting the related device group associated with the selected control operation in response to an input for selecting one of the list of names. A device change unit that changes based on the start address dependency and the acquired start address, and a logging setting output unit that sets each device constituting the changed related device group as a logging target. It is characterized by that.
 本発明にかかるロギング設定装置は、ユーザは選択したデバイスに関連するデバイスを一括してロギング設定することができるので、可及的に簡単にロギング設定を行うことができるという効果を奏する。 The logging setting device according to the present invention can perform logging setting as easily as possible since the user can collectively set logging related devices to the selected device.
図1は、ロギング設定の対象となるPLCの構成例を説明する図である。FIG. 1 is a diagram illustrating a configuration example of a PLC that is a target of logging setting. 図2は、マニュアルに記載されているインテリジェントユニット(位置決めユニット)の制御にかかるユーザプログラムの一例を説明する図である。FIG. 2 is a diagram illustrating an example of a user program related to control of an intelligent unit (positioning unit) described in a manual. 図3は、図2に示すプログラム例にかかるインテリジェントユニットの動作例を示すタイミングチャートである。FIG. 3 is a timing chart showing an operation example of the intelligent unit according to the program example shown in FIG. 図4は、先頭XYが20であって、軸3を駆動対象とする場合のプログラム例を示す図である。FIG. 4 is a diagram illustrating an example of a program in the case where the head XY is 20 and the axis 3 is a driving target. 図5は、本実施の形態のロギング設定装置としてのプログラミング装置の構成例を説明する図である。FIG. 5 is a diagram illustrating a configuration example of a programming device as a logging setting device according to the present embodiment. 図6は、本実施の形態のプログラミング装置の機能構成を説明する図である。FIG. 6 is a diagram illustrating a functional configuration of the programming device according to the present embodiment. 図7は、ロギング設定項目群DBのデータ構造例を説明する図である。FIG. 7 is a diagram for explaining an example of the data structure of the logging setting item group DB. 図8は、本発明の実施の形態のロギング設定方法を説明するフローチャートである。FIG. 8 is a flowchart illustrating a logging setting method according to the embodiment of this invention. 図9は、ユーザプログラム編集画面の例を示す図である。FIG. 9 is a diagram illustrating an example of a user program editing screen. 図10は、ロギング設定画面の例を示す図である。FIG. 10 is a diagram illustrating an example of the logging setting screen. 図11は、ロギング設定項目群の一覧表示画面の例を示す図である。FIG. 11 is a diagram illustrating an example of a list display screen of a logging setting item group. 図12は、デバイスアドレス変更後の関連デバイスの一覧表示画面の例を示す図である。FIG. 12 is a diagram illustrating an example of a related device list display screen after changing the device address. 図13は、変更後のデバイスをロギング対象とした場合のインテリジェントユニットの動作例を示す図である。FIG. 13 is a diagram illustrating an operation example of the intelligent unit when the changed device is set as a logging target.
 以下に、本発明にかかるロギング設定装置、ロギング設定方法および記録媒体の実施の形態を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。 Hereinafter, embodiments of a logging setting device, a logging setting method, and a recording medium according to the present invention will be described in detail with reference to the drawings. Note that the present invention is not limited to the embodiments.
実施の形態.
 図1は、ロギング設定の対象となるプログラマブルコントローラ(PLC)の構成例を説明する図である。図示するように、PLC1は、CPUユニット2と、サブユニットのうちの1つとしてのインテリジェントユニット3とがバスユニット4に接続されて構成されている。
Embodiment.
FIG. 1 is a diagram illustrating a configuration example of a programmable controller (PLC) that is a target of logging setting. As shown in the figure, the PLC 1 is configured by connecting a CPU unit 2 and an intelligent unit 3 as one of the subunits to a bus unit 4.
 CPUユニット2は、ユーザプログラム25に基づいてPLC1全体を統括的に制御するユニットである。インテリジェントユニット3は、CPUユニット2とは異なる別個のCPU31を備え、独自のプログラム(ユニットプログラム33)に基づいてCPUユニット2のスレーブとして動作するユニットである。インテリジェントユニット3の例としては、例えば、ユーザプログラム25からの指令に基づいて、駆動軸などに取り付けられたモータを駆動するサーボアンプに対する駆動指令を算出する位置決めユニットなどがある。なお、バスユニット4には、目的に応じて、CPUユニット2をさらに増設してCPUユニット2を二重化したり、インテリジェントユニット3の他にさらに別のサブユニットを装着することができるようになっている。 The CPU unit 2 is a unit that comprehensively controls the entire PLC 1 based on the user program 25. The intelligent unit 3 includes a separate CPU 31 different from the CPU unit 2 and operates as a slave of the CPU unit 2 based on a unique program (unit program 33). Examples of the intelligent unit 3 include a positioning unit that calculates a drive command for a servo amplifier that drives a motor attached to a drive shaft or the like based on a command from the user program 25. Depending on the purpose, the CPU unit 2 can be further added to the bus unit 4 so that the CPU unit 2 can be duplicated, or another sub unit other than the intelligent unit 3 can be mounted. Yes.
 CPUユニット2は、CPU21、記憶装置22、および通信インタフェース23を備えている。これらの各要素は内部バスで互いに接続されている。 The CPU unit 2 includes a CPU 21, a storage device 22, and a communication interface 23. Each of these elements is connected to each other by an internal bus.
 記憶装置22は、ROM(Read Only Memory)やRAM(Random Access Memory)などにより構成されており、ユニット情報リスト24、ユーザプログラム25、およびロギング設定データ26を記憶している。また、記憶装置22には、デバイスアドレスが割り当てられ、デバイス値が格納されるデバイスメモリ領域27と、ログデータが格納されるログデータ格納領域28とが確保されている。ユニット情報リスト24は、バスユニット4に装着されているサブユニットの形名と当該サブユニットが使用するデバイスの割り当て先のオフセットアドレスである先頭XYとが記述されたユニット情報のリストである。先頭XYは、当該サブユニットの装着位置に依存して変化する。ロギング設定データ26は、ロギングの対象となるデバイスを記述した設定情報である。ユニット情報リスト24およびロギング設定データ26は、ユーザプログラム25とともにユーザによりプログラミング装置を用いて設定される。なお、CPUユニット2が装着されているユニットから自動的に装着位置や形名を取得して、取得した情報に基づいてユニット情報リスト24を自動で作成するように構成されている場合もある。また、ユーザがプログラミング装置を用いてユニット情報リスト24を編集することによってサブユニット毎の先頭XYがユーザの任意に設定される場合もある。 The storage device 22 includes a ROM (Read Only Memory), a RAM (Random Access Memory), and the like, and stores a unit information list 24, a user program 25, and logging setting data 26. In addition, a device address is assigned to the storage device 22, and a device memory area 27 in which device values are stored and a log data storage area 28 in which log data is stored are secured. The unit information list 24 is a list of unit information in which the model name of the sub unit mounted on the bus unit 4 and the head XY that is the offset address of the device to which the sub unit is assigned are described. The leading XY changes depending on the mounting position of the subunit. The logging setting data 26 is setting information describing a device to be logged. The unit information list 24 and the logging setting data 26 are set by the user together with the user program 25 using a programming device. Note that there may be a case where the mounting position and model name are automatically acquired from the unit in which the CPU unit 2 is mounted, and the unit information list 24 is automatically created based on the acquired information. In some cases, the user may arbitrarily set the top XY for each subunit by editing the unit information list 24 using a programming device.
 CPU21は、ユーザプログラム25を実行することによって同一のPLC1が備えるサブユニットの制御を実行する。具体的には、CPU21は、サブユニットから当該サブユニットに対してデバイスメモリ領域27に割り当てられている入力デバイスに書き込まれた入力値を取得して、取得した入力値を用いて当該サブユニットに対する出力値を算出する。また、CPU21は、当該算出した出力値を当該サブユニットに対してデバイスメモリ領域27に割り当てられている所定の出力デバイスに格納する。また、CPU21は、サブユニットとの間でデバイスを介して入出力するだけでなく、デバイスメモリ領域27における入力デバイスまたは出力デバイスと異なるデバイスに中間データを格納することもある。なお、デバイスアドレスは、後述のインテリジェントユニット3が備えるバッファメモリ領域34にも割り当てられており、CPU21は、バッファメモリ領域34に割り当てられているデバイスアドレスを指定することにより当該バッファメモリ34に対して直接アクセスを行うこともできる。 CPU21 performs control of the subunit with which the same PLC1 is provided by running the user program 25. FIG. Specifically, the CPU 21 acquires an input value written in an input device assigned to the device memory area 27 from the subunit to the subunit, and uses the acquired input value for the subunit. Calculate the output value. Further, the CPU 21 stores the calculated output value in a predetermined output device assigned to the device memory area 27 for the subunit. The CPU 21 not only inputs / outputs data to / from the subunit via a device, but also stores intermediate data in a device different from the input device or the output device in the device memory area 27. The device address is also assigned to a buffer memory area 34 provided in the intelligent unit 3 to be described later, and the CPU 21 designates the device address assigned to the buffer memory area 34 so as to Direct access is also possible.
 さらに、CPU21は、ロギング設定データ26に設定されているデバイスアドレスの値を逐次取得して、取得したデバイス値をログデータとしてログデータ格納領域28に蓄積記憶させる。ユーザは、ログデータ格納領域28に逐次入力されるログデータをプログラマブル表示器から略リアルタイムで取得してPLC1の制御動作をモニタリングしたり、ログデータ格納領域28に蓄積記憶されているログデータをプログラミング装置やプログラマブル表示器から所定のタイミングで一括取得して、事後の解析に供したりすることができる。 Further, the CPU 21 sequentially acquires the device address value set in the logging setting data 26 and accumulates and stores the acquired device value in the log data storage area 28 as log data. The user acquires the log data sequentially input to the log data storage area 28 from the programmable display in substantially real time to monitor the control operation of the PLC 1 or program the log data stored and stored in the log data storage area 28 It can be acquired from the device or programmable display at a predetermined timing and used for subsequent analysis.
 通信I/F23は、外部機器を接続するための通信インタフェースであって、ユーザは当該通信I/F23に本実施の形態のプログラミング装置を接続してユーザプログラム25やロギング設定データ26の設定を行うことができるようになっている。 The communication I / F 23 is a communication interface for connecting an external device, and the user connects the programming device of the present embodiment to the communication I / F 23 to set the user program 25 and the logging setting data 26. Be able to.
 インテリジェントユニット3は、CPU31と記憶装置32とを備えている。CPU31および記憶装置32はバスで互いに接続されている。 The intelligent unit 3 includes a CPU 31 and a storage device 32. The CPU 31 and the storage device 32 are connected to each other by a bus.
 記憶装置32は、ROMやRAMなどにより構成されており、ユニットプログラム33を記憶している。また、記憶装置32にはバッファメモリ領域34が確保されている。ユニットプログラム33は、ユーザプログラム25からの指令により動作するプログラムであって、CPU31により実行されることによってインテリジェントユニット3に求められる機能を実現するものである。例えばインテリジェントユニット3が位置決めユニットであった場合、ユーザプログラム25から位置指令が入力されると、CPU31は、ユニットプログラム33に基づいて、入力された位置指令よりも粒度が細かい駆動指令を算出する。CPU31は、ユニットプログラム33を実行する際に生成される中間データをバッファメモリ領域34における所定の領域に格納する。CPUユニット2とインテリジェントユニット3との間の入出力は、デバイスメモリ領域27またはバッファメモリ領域34に割り当てられているデバイスを用いて実行される。また、CPUユニット2はバッファメモリ領域34に割り当てられているデバイスを用いてバッファメモリ領域34に格納されている前述の中間データを取得することができる。なお、以降、インテリジェントユニット3は複数軸の駆動制御が可能な位置決めユニットであり、当該複数軸は1から順番に昇順に軸番号が付されて互いに識別できるようになっているものとする。 The storage device 32 is configured by a ROM, a RAM, or the like, and stores a unit program 33. In addition, a buffer memory area 34 is secured in the storage device 32. The unit program 33 is a program that operates in response to a command from the user program 25, and implements a function required for the intelligent unit 3 when executed by the CPU 31. For example, when the intelligent unit 3 is a positioning unit, when a position command is input from the user program 25, the CPU 31 calculates a drive command with a finer granularity than the input position command based on the unit program 33. The CPU 31 stores intermediate data generated when the unit program 33 is executed in a predetermined area in the buffer memory area 34. Input / output between the CPU unit 2 and the intelligent unit 3 is executed using a device allocated to the device memory area 27 or the buffer memory area 34. Further, the CPU unit 2 can acquire the above-described intermediate data stored in the buffer memory area 34 by using a device assigned to the buffer memory area 34. Hereinafter, it is assumed that the intelligent unit 3 is a positioning unit capable of driving control of a plurality of axes, and the plurality of axes are assigned an axis number in ascending order from 1 so that they can be distinguished from each other.
 図2は、マニュアルに記載されているインテリジェントユニット(位置決めユニット)3の制御にかかるユーザプログラムの一例を説明する図である。当該マニュアルは、インテリジェントユニット3の割り当てアドレスの先頭XYがゼロ値であり、軸1の駆動制御を行うものとして作成されている。このマニュアルにおいては、位置決め始動信号Y10、始動完了信号X10および位置決め始動指令パルスM104がユーザプログラム中で使用されている。 FIG. 2 is a diagram for explaining an example of a user program related to the control of the intelligent unit (positioning unit) 3 described in the manual. The manual is created so that the head XY of the allocation address of the intelligent unit 3 has a zero value and the drive control of the axis 1 is performed. In this manual, a positioning start signal Y10, a start completion signal X10, and a positioning start command pulse M104 are used in the user program.
 図3は、図2に示すプログラム例にかかるインテリジェントユニット3の動作例を示すタイミングチャートである。通常、マニュアルには、ユーザが正しくユーザプログラムを作成できているか否かをチェックできるように、プログラム例の中で用いられているデバイスだけでなく、当該プログラム例を実行したときの中間データが格納されるデバイスなど、当該プログラム例に密接に関連するデバイスの動作例が記載される。図3のタイミングチャートによれば、図2のプログラムによって、ユーザプログラム中で使用されているY10、X10、M104の他に、シーケンサレディ信号Y0、ユニット準備完了信号X0、BUSY信号XC、位置決め完了信号X14、エラー検出信号X8および送り速度U0¥G804が夫々密接に関連する動作を行うことが示されている。 FIG. 3 is a timing chart showing an operation example of the intelligent unit 3 according to the program example shown in FIG. Normally, the manual stores not only the devices used in the program example but also intermediate data when the program example is executed so that the user can check whether the user program has been created correctly. An example of the operation of a device closely related to the example program is described. According to the timing chart of FIG. 3, according to the program of FIG. 2, in addition to Y10, X10, and M104 used in the user program, the sequencer ready signal Y0, the unit preparation completion signal X0, the BUSY signal XC, and the positioning completion signal X14, error detection signal X8 and feed rate U0 \ G804 are shown to perform closely related operations.
 具体的に説明すると、CPUユニット2がシーケンサレディ信号Y0をオンすると、インテリジェントユニット3はユニット準備完了信号X0をオンする。その後、CPUユニット2が位置決め始動信号Y10をオンすると、インテリジェントユニット3は軸1の駆動制御を開始して始動完了信号X10およびBUSY信号XCをオンする。そして、インテリジェントユニット3は、位置指令により指令された位置に軸1が到達する毎に位置決め完了信号X14をパルス的にオンする。インテリジェントユニット3は、ユニットプログラム33により定められた一連の動作を完了すると、BUSY信号をオフし、BUSY信号のオフを確認してCPUユニット2が位置決め始動信号をオフする。インテリジェントユニット3は位置決め始動信号のオフを確認してから始動完了信号X10をオフする。 More specifically, when the CPU unit 2 turns on the sequencer ready signal Y0, the intelligent unit 3 turns on the unit preparation completion signal X0. Thereafter, when the CPU unit 2 turns on the positioning start signal Y10, the intelligent unit 3 starts driving control of the shaft 1 and turns on the start completion signal X10 and the BUSY signal XC. The intelligent unit 3 turns on the positioning completion signal X14 in a pulse manner every time the shaft 1 reaches the position commanded by the position command. When the intelligent unit 3 completes a series of operations determined by the unit program 33, it turns off the BUSY signal, confirms that the BUSY signal is turned off, and the CPU unit 2 turns off the positioning start signal. The intelligent unit 3 turns off the start completion signal X10 after confirming that the positioning start signal is turned off.
 なお、インテリジェントユニット3は、動作中、現在の送り速度を中間データとしてデバイスU0¥G804が割り当てられた位置に逐次出力する。デバイスU0¥G804は、バッファメモリ領域34に割り当てられた中間データを格納するためのデバイスであって、通常、ユーザプログラム25中には使用されないものである。また、インテリジェントユニット3は、動作中にエラーを検出した場合、エラー検出信号X8をオンする。 In addition, during operation, the intelligent unit 3 sequentially outputs the current feed speed as intermediate data to a position to which the device U0 \ G804 is assigned. The device U0 \ G804 is a device for storing intermediate data allocated to the buffer memory area 34, and is normally not used in the user program 25. The intelligent unit 3 turns on the error detection signal X8 when an error is detected during operation.
 このように、図2のプログラム例に密接に関連するデバイスとしてY10、Y0、X0、X10、XC、X14、X8、U0¥G804が取り上げられ、各デバイスについて動作例が記載されている。図2のプログラム例を用いて作成したユーザプログラムにおける前記プログラム例部分の動作を確認するためには、ユーザは、Y10、Y0、X0、X10、XC、X14、X8、U0¥G804をロギング対象に設定するとよいこととなる。以降、X10、Y0、X0、X10、XC、X14、X8、U0¥G804のように、マニュアルにおいて1つのプログラムの設定例に対して動作例が記載されている複数のデバイスを関連デバイス群、当該関連デバイス群を構成する個々のデバイスを関連デバイスということとする。 Thus, Y10, Y0, X0, X10, XC, X14, X8, U0 \ G804 are taken up as devices closely related to the program example of FIG. 2, and an operation example is described for each device. In order to confirm the operation of the program example portion in the user program created using the program example of FIG. 2, the user sets Y10, Y0, X0, X10, XC, X14, X8, U0 \ G804 as the logging target. It is good to set. Thereafter, a plurality of devices whose operation examples are described in a manual setting example, such as X10, Y0, X0, X10, XC, X14, X8, U0 \ G804, are related device groups, Individual devices constituting the related device group are referred to as related devices.
 ここで、インテリジェントユニット3の装着位置によって先頭XYが0ではない場合や、軸1以外を制御対象とする場合、関連デバイスのアドレスを変更して使用する必要が生じる。図4は、先頭XYが20であって、軸3を駆動対象とする場合のプログラム例である。 Here, when the leading XY is not 0 depending on the mounting position of the intelligent unit 3 or when the control target is other than the axis 1, it is necessary to change the address of the related device. FIG. 4 shows a program example in the case where the head XY is 20 and the axis 3 is the driving target.
 図4に示すように、マニュアルではY10が使用されていた位置決め始動信号がY32に変更されている。これは、Y32の「32」は、マニュアルでのアドレスY10の「10」に先頭XYの値「20」と軸番号から1減算して得られる値「2」とを加算したオフセット「22」が加えられた値となっている。Y32の場合と同様に、マニュアルでX10が使用されていた始動完了信号が、オフセット「22」が加算されてX32に変更されている。このように変更されている場合、ロギング対象の関連デバイスを構成する各デバイスのアドレスも変更する必要がある。また、デバイスアドレスの数字部分が先頭XYに依存するか否かおよび軸番号に依存するか否かはデバイス毎に異なるため、関連デバイス毎にアドレスを変更してロギング対象に設定する作業はユーザにとって煩雑な作業である。本発明の実施の形態のロギング設定装置は、ユーザがロギング対象のデバイスアドレスを簡単に設定することができるように、関連デバイス群毎に予め関連デバイスが登録され、各関連デバイスのアドレスを自動で変更できるようにしたことが主たる特徴となっている。 As shown in FIG. 4, in the manual, the positioning start signal for which Y10 was used has been changed to Y32. This is because “32” of Y32 has an offset “22” obtained by adding the value “2” obtained by subtracting 1 from the head XY value “20” and the axis number to “10” of the manual address Y10. It is an added value. As in the case of Y32, the start completion signal in which X10 was manually used is changed to X32 by adding the offset “22”. When the change is made in this way, it is necessary to change the address of each device constituting the related device to be logged. Also, whether the numeric part of the device address depends on the head XY and whether it depends on the axis number differs depending on the device, so it is difficult for the user to change the address for each related device and set it as a logging target. It is a complicated task. In the logging setting device according to the embodiment of the present invention, the related device is registered in advance for each related device group so that the user can easily set the device address to be logged, and the address of each related device is automatically set. The main feature is that it can be changed.
 図5は、本実施の形態のロギング設定装置としてのプログラミング装置の構成例を説明する図である。本実施の形態では、ロギング設定装置はプログラミング装置の一機能として実装されるものとして説明するが、ロギング設定装置はプログラミング装置とは別の装置として構成するようにしてもよい。図示するように、プログラミング装置5は、CPU51、RAM52、ROM53、通信I/F54、外部記憶装置55、CD-ROMドライブ56、入力装置57、および出力装置58を備えた通常のコンピュータの構成を備えている。CPU51、RAM52、ROM53、通信I/F54、外部記憶装置55、CD-ROMドライブ56、入力装置57、および出力装置58は夫々バスを介して接続されている。 FIG. 5 is a diagram illustrating a configuration example of a programming device as a logging setting device according to the present embodiment. In this embodiment, the logging setting device is described as being implemented as a function of the programming device. However, the logging setting device may be configured as a device different from the programming device. As shown in the figure, the programming device 5 has a configuration of a normal computer including a CPU 51, a RAM 52, a ROM 53, a communication I / F 54, an external storage device 55, a CD-ROM drive 56, an input device 57, and an output device 58. ing. The CPU 51, RAM 52, ROM 53, communication I / F 54, external storage device 55, CD-ROM drive 56, input device 57, and output device 58 are connected to each other via a bus.
 CPU51は、ロギング設定を実行するためのコンピュータプログラムであるロギング設定プログラム62を実行する。出力装置58は、液晶モニタなどの表示装置であり、CPU51からの指示に基づいて、操作画面などのユーザに対する出力情報を表示する。入力装置57は、マウスやキーボードを備えて構成され、ユーザからのプログラミング装置5に対する操作が入力される。入力装置57へ入力された操作情報は、CPU51へ送られる。通信I/F54は、CPUユニット2との間で通信を行うための接続インタフェースである。当該通信I/F54を介してCPUユニット2にユーザプログラム25、ロギング設定データ26が設定される。ROM53は、プログラミング装置5が起動するためのブート情報を記憶しており、ブート時にはCPU51が当該ブート情報に基づいて例えばハードディスクドライブにより構成される外部記憶装置55に格納されているシステムプログラム(図示せず)を起動してプログラミング装置5が起動する。 The CPU 51 executes a logging setting program 62 that is a computer program for executing logging settings. The output device 58 is a display device such as a liquid crystal monitor, and displays output information for the user such as an operation screen based on an instruction from the CPU 51. The input device 57 includes a mouse and a keyboard, and an operation on the programming device 5 from a user is input. The operation information input to the input device 57 is sent to the CPU 51. The communication I / F 54 is a connection interface for performing communication with the CPU unit 2. A user program 25 and logging setting data 26 are set in the CPU unit 2 via the communication I / F 54. The ROM 53 stores boot information for starting the programming device 5. At the time of booting, the CPU 51 stores a system program (not shown) stored in an external storage device 55 configured by, for example, a hard disk drive based on the boot information. And the programming device 5 is activated.
 ロギング設定プログラム62は、外部記憶装置55内に格納されている。入力装置57からの入力によりロギング設定プログラム62の起動が指示されると、ロギング設定プログラム62はバスラインを介してRAM52へロードされる。CPU51はRAM52内にロードされたロギング設定プログラム62を実行する。外部記憶装置55は、ユニット情報リスト60およびユーザプログラム61が予め格納されている。ユーザプログラム61は、例えばプログラミング装置5を用いて作成されたものであり、ユニット情報リスト60は、例えばPLC1から取得したものである。CPU51は、RAM52にロードされたロギング設定プログラムを実行することによって、後述する種々のステップを実行し、ロギング設定データを出力する。 The logging setting program 62 is stored in the external storage device 55. When the activation of the logging setting program 62 is instructed by an input from the input device 57, the logging setting program 62 is loaded into the RAM 52 via the bus line. The CPU 51 executes a logging setting program 62 loaded in the RAM 52. The external storage device 55 stores a unit information list 60 and a user program 61 in advance. The user program 61 is created using, for example, the programming device 5, and the unit information list 60 is obtained from the PLC 1, for example. The CPU 51 executes various steps described later by executing the logging setting program loaded in the RAM 52, and outputs logging setting data.
 なお、ロギング設定プログラム62を、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供または配布するように構成しても良い。また、ロギング設定プログラム62をインターネット等のネットワーク経由で提供または配布するように構成してもよい。また、ロギング設定プログラム62を、ROM53等に予め組み込んでプログラミング装置5に提供するように構成してもよい。 Note that the logging setting program 62 may be stored on a computer connected to a network such as the Internet and provided or distributed by being downloaded via the network. The logging setting program 62 may be provided or distributed via a network such as the Internet. Further, the logging setting program 62 may be configured to be incorporated in the ROM 53 or the like and provided to the programming device 5.
 CD-ROMドライブ56は、CD-ROM59に記録されている情報を読み出すための装置である。ロギング設定プログラム62を、CD-ROM59などコンピュータで読み取り可能な記録媒体に格納して提供または配布するようにしてもよい。CD-ROM59に記録されているロギング設定プログラム62は、CD-ROM59を介して読み出されて外部記憶装置55にインストールされるようにしてもよいし、直接RAM52にロードされるようにしてもよい。 The CD-ROM drive 56 is a device for reading information recorded on the CD-ROM 59. The logging setting program 62 may be provided or distributed by being stored in a computer-readable recording medium such as the CD-ROM 59. The logging setting program 62 recorded on the CD-ROM 59 may be read via the CD-ROM 59 and installed in the external storage device 55 or may be loaded directly into the RAM 52. .
 図6は、RAM52にロードされたロギング設定プログラム62が実行されることにより実現するプログラミング装置5の機能構成を説明する図である。図示するように、プログラミング装置5は、ユニット情報取得部70、関連項目群抽出部71、ロギング設定項目群データベース(DB)72、関連項目群表示/選択部73、オフセット反映部74、およびロギング設定出力部75を備える。これらの機能構成要素はそれぞれ例えばRAM52内に生成される。 FIG. 6 is a diagram illustrating a functional configuration of the programming device 5 realized by executing the logging setting program 62 loaded in the RAM 52. As illustrated, the programming device 5 includes a unit information acquisition unit 70, a related item group extraction unit 71, a logging setting item group database (DB) 72, a related item group display / selection unit 73, an offset reflection unit 74, and a logging setting. An output unit 75 is provided. Each of these functional components is generated in the RAM 52, for example.
 ユニット情報取得部70は、ユーザからの入力装置57を介した入力に基づいてユニット情報リスト60を検索して、ロギング対象のユニットにかかるユニット情報(ユニット形名および先頭XY)を取得する。なお、ここでは外部記憶装置55に予め格納されているユニット情報リスト60からユニット情報を取得するとしているが、当該プログラミング装置5がPLC1に接続されている場合、CPUユニット2に設定されているユニット情報リスト24から取得するようにしてもよい。 The unit information acquisition unit 70 searches the unit information list 60 based on input from the user via the input device 57, and acquires unit information (unit model name and head XY) related to the logging target unit. Here, the unit information is acquired from the unit information list 60 stored in advance in the external storage device 55. However, when the programming device 5 is connected to the PLC 1, the unit set in the CPU unit 2 is used. You may make it acquire from the information list 24. FIG.
 ロギング設定項目群DB72は、ロギング設定項目と当該ロギング設定項目に関連する関連デバイス一覧との対応付けをユニット毎に管理するデータベースである。図7は、ロギング設定項目群DB72のデータ構造例を説明する図である。 The logging setting item group DB 72 is a database that manages the association between the logging setting item and the related device list related to the logging setting item for each unit. FIG. 7 is a diagram for explaining an example of the data structure of the logging setting item group DB 72.
 図7の上部に示すように、ロギング設定項目群DB72は、形名、ロギング設定項目名、および関連デバイスを記述するフィールドを有するテーブル形式のデータ構造を備えている。ロギング設定項目名は関連デバイス群を識別するための名称である。ここでは、関連デバイス群はマニュアルに記載されているプログラム例毎に規定されているとしているので、ロギング設定項目名には、マニュアルに記載されているプログラム例を互いに識別しやすい名称を用いるとよい。例えば図2のプログラム例にかかる関連デバイス群は、ロギング設定項目名「ブロック始動制御」が付されている。ユニット形名1つあたりに登録されるロギング設定項目名の数は特に限定されない。また、複数のロギング設定項目の関連デバイスに同一のデバイスアドレスが登録される場合もある。 As shown in the upper part of FIG. 7, the logging setting item group DB 72 has a table-type data structure having fields that describe a model name, a logging setting item name, and a related device. The logging setting item name is a name for identifying a related device group. Here, since the related device group is defined for each program example described in the manual, it is recommended to use a name that makes it easy to identify the program examples described in the manual as the logging setting item name. . For example, the related device group according to the program example of FIG. 2 is given the logging setting item name “block start control”. The number of logging setting item names registered per unit type name is not particularly limited. In addition, the same device address may be registered in related devices of a plurality of logging setting items.
 ロギング設定項目群DB72には、さらに、関連デバイスの夫々について、先頭XY依存性と軸番号依存性とが個々のデバイスの属性情報として登録されている。図7の下部に示すデータ構造例によれば、先頭XYをα、軸番号をβ+1とした場合のデバイスアドレスの数字部分に加算される値が夫々登録されている。例えば「Y10」は、先頭XYがα、軸番号がβ+1に変更されたとき、デバイスアドレス変更後は「Y(10+α+β)」となることが分かる。また、「Y0」、「X0」および「U0¥G804」は、デバイスアドレスは軸番号に依存しないことが分かる。また、「U0¥G804」は、オフセットとして先頭XYの値αが16進法表記の値「10」で除した値が加算されることが分かる。 Further, in the logging setting item group DB 72, the head XY dependency and the axis number dependency are registered as attribute information of each device for each related device. According to the data structure example shown in the lower part of FIG. 7, values to be added to the numeric part of the device address when the head XY is α and the axis number is β + 1 are registered. For example, “Y10” becomes “Y (10 + α + β)” after the device address is changed when the head XY is changed to α and the axis number is changed to β + 1. It can also be seen that “Y0”, “X0”, and “U0 ¥ G804” do not depend on the axis number for the device address. In addition, it is understood that “U0 ¥ G804” is added with a value obtained by dividing the value α of the head XY by the value “10” in hexadecimal notation as an offset.
 関連項目群抽出部71は、ユニット情報取得部70が取得したユニット形名を検索キーとしてロギング設定項目群DB72を検索して、当該ユニット形名に属するロギング設定項目を抽出する。 The related item group extraction unit 71 searches the logging setting item group DB 72 using the unit type name acquired by the unit information acquisition unit 70 as a search key, and extracts the logging setting item belonging to the unit type name.
 関連項目群表示/選択部73は、関連項目群抽出部71が抽出した項目を出力装置58に表示して、表示した項目のうちユーザが希望する項目の選択入力を受け付ける。 The related item group display / selection unit 73 displays the items extracted by the related item group extraction unit 71 on the output device 58, and receives selection input of items desired by the user among the displayed items.
 オフセット反映部74は、用いて選択されたロギング設定項目に属する関連デバイスの夫々に対して当該関連デバイスの夫々の属性情報とユニット情報取得部70が取得した先頭XYとロギング対象の軸番号とを反映させることによって、個々の関連デバイスの変更後のデバイスアドレスを算出する。 The offset reflection unit 74 displays the attribute information of each related device, the head XY acquired by the unit information acquisition unit 70, and the axis number of the logging target for each related device belonging to the logging setting item selected by using the offset reflection unit 74. By reflecting, the device address after the change of each related device is calculated.
 ロギング設定出力部75は、オフセット反映部74が算出した個々の関連デバイスの変更後のデバイスアドレスをロギング対象に設定したロギング設定データD1を出力する。ロギング設定データD1は、例えばRAM52や外部記憶装置55に出力された後、CPUユニット2へ設定される。 The logging setting output unit 75 outputs logging setting data D1 in which the device address after the change of each related device calculated by the offset reflection unit 74 is set as a logging target. The logging setting data D1 is set to the CPU unit 2 after being output to the RAM 52 or the external storage device 55, for example.
 図8は、プログラミング装置5を使用して実現する本発明の実施の形態のロギング設定方法を説明するフローチャートである。 FIG. 8 is a flowchart for explaining the logging setting method according to the embodiment of the present invention realized by using the programming device 5.
 図8に示すように、まず、ユーザがデバイスを指定する入力を行なう(ステップS1)。デバイスの指定は、例えば図9に示すようにユーザプログラム61の編集画面から選択できるようになっていると便利である。図9に示すユーザプログラム編集画面の例では、「SET Y32」にカーソルを合わせて所定のクリック動作を行うと、「ロギング設定項目に追加」、「ロギング設定項目に関連項目追加」を含むプルダウンメニューが現われる。そして、「ロギング設定項目に関連項目追加」を選択すると、プログラミング装置5はデバイス「Y32」の指定入力を認識する。なお、「ロギング設定項目に追加」を選択すると、後述のステップが実行されることなく「Y32」が単独でロギング対象として指定入力される。図10は、「Y32」が単独でロギング対象として指定された場合のロギング設定画面の例を示す図である。図示するように、ロギング対象として「Y32」のみがリストされている。 As shown in FIG. 8, first, the user performs input for designating a device (step S1). For example, as shown in FIG. 9, it is convenient that the device can be specified from the editing screen of the user program 61. In the example of the user program editing screen shown in FIG. 9, a pull-down menu including “Add to logging setting item” and “Add related item to logging setting item” when the cursor is moved to “SET Y32” and a predetermined click operation is performed. Appears. When “Add related item to logging setting item” is selected, the programming device 5 recognizes the designation input of the device “Y32”. When “add to logging setting item” is selected, “Y32” is independently designated and input as a logging target without performing the steps described below. FIG. 10 is a diagram illustrating an example of the logging setting screen when “Y32” is designated as a logging target alone. As shown in the figure, only “Y32” is listed as a logging target.
 ステップS1でデバイスの選択入力がなされると、ユニット情報取得部70は、選択されたデバイスを使用するサブユニットのユニット形名および先頭XYが記述されたユニット情報を取得する(ステップS2)。関連項目群抽出部71は、取得したユニット形名を検索キーとしてロギング設定項目群DB72を検索して、ロギング設定項目群の一覧を取得する(ステップS3)。また、関連項目群抽出部71は、ロギング設定項目群DB72に登録されている関連デバイスの属性情報と、入力されたデバイスおよび取得した先頭XYとに基づいて軸番号を算出する(ステップS4)。 When a device selection input is made in step S1, the unit information acquisition unit 70 acquires unit information in which the unit type name of the subunit that uses the selected device and the head XY are described (step S2). The related item group extraction unit 71 searches the logging setting item group DB 72 using the acquired unit type name as a search key, and acquires a list of logging setting item groups (step S3). Further, the related item group extraction unit 71 calculates an axis number based on the attribute information of the related device registered in the logging setting item group DB 72, the input device, and the acquired head XY (step S4).
 関連項目群表示/選択部73は、取得したロギング設定項目群を一覧表示して、ロギング設定項目の選択入力を促す(ステップS5)。図11は、ロギング設定項目群の一覧表示画面の例を示す図である。この図では、ロギング設定項目群のほか、取得したユニット形名、および取得した先頭XYが表示されている。また、ロギング設定項目群のうちの「ブロック始動制御」がアクティブ表示されている。 The related item group display / selection unit 73 displays the acquired logging setting item group as a list, and prompts the selection input of the logging setting item (step S5). FIG. 11 is a diagram illustrating an example of a list display screen of a logging setting item group. In this figure, in addition to the logging setting item group, the acquired unit model name and the acquired head XY are displayed. In addition, “block start control” in the logging setting item group is actively displayed.
 ユーザがロギング設定項目を選択すると(ステップS6)、オフセット反映部74は、選択されたロギング設定項目の関連デバイス群を構成する関連デバイスに先頭XYと算出した軸番号にかかるオフセットを反映してデバイスアドレスを変更する(ステップS7)。ロギング設定出力部75は、デバイスアドレス変更後の各関連デバイスをロギング対象としたロギング設定データを出力し(ステップS8)、ロギング設定が完了する。図12は、デバイスアドレス変更後の関連デバイスの一覧表示画面の例である。図示するように、「ブロック始動制御」にかかる関連デバイスのアドレスY10、Y0、X0、X10、XC、X14、X8、U0¥G804が夫々、Y32、Y20、X20、X32、X2E、X36、X2A、U2¥G804に変更されて一覧表示されている。ユーザがこれでロギング対象を確定すると、Y32、Y20、X20、X32、X2E、X36、X2A、U2¥G804をロギング対象とするロギング設定データが出力される。なお、当該一覧表示からユーザがさらにロギング対象を取捨選択できるように構成してもよい。 When the user selects a logging setting item (step S6), the offset reflecting unit 74 reflects the offset relating to the calculated head number XY and the axis number calculated on the related device constituting the related device group of the selected logging setting item. The address is changed (step S7). The logging setting output unit 75 outputs logging setting data targeting each related device after changing the device address (step S8), and the logging setting is completed. FIG. 12 is an example of a related device list display screen after the device address is changed. As shown in the figure, the addresses Y10, Y0, X0, X10, XC, X14, X8, U0 ¥ G804 of the related devices related to “block start control” are Y32, Y20, X20, X32, X2E, X36, X2A, respectively. The list is changed to U2 \ G804. When the user determines the logging target, logging setting data for Y32, Y20, X20, X32, X2E, X36, X2A, U2 \ G804 is output. In addition, you may comprise so that a user can further select logging object from the said list display.
 図13は、変更後のデバイス(Y32、Y20、X20、X32、X2E、X36、X2A、U2¥G804)をロギング対象とした場合のインテリジェントユニット3の動作例を説明する図である。図示するように、「ブロック始動制御」にかかるプログラム例の関連デバイスのアドレスが夫々先頭XYと軸番号に応じて適切に変換されたので、図3に示したマニュアル記載の動作例と比較検討してユーザプログラムに誤りがあるか否かを検討することができるようになる。 FIG. 13 is a diagram for explaining an operation example of the intelligent unit 3 when the changed device (Y32, Y20, X20, X32, X2E, X36, X2A, U2 \ G804) is set as a logging target. As shown in the figure, the addresses of the related devices in the program example related to “block start control” were appropriately converted according to the head XY and the axis number, respectively. Therefore, the operation example described in the manual shown in FIG. This makes it possible to examine whether there is an error in the user program.
 なお、以上の説明においては、プログラミング装置5が自動的に軸番号を算出することとしたが、ユーザが軸番号を入力するようにしてもよい。例えば、図7に示したY0やX0は軸番号に依存しない。従って「Y20」が選択入力されると、軸番号を特定することができない。このような場合、ユーザによる軸番号の指定が必要となる。 In the above description, the programming device 5 automatically calculates the axis number. However, the user may input the axis number. For example, Y0 and X0 shown in FIG. 7 do not depend on the axis number. Therefore, when “Y20” is selected and input, the axis number cannot be specified. In such a case, it is necessary to specify an axis number by the user.
 また、インテリジェントユニット3の例として複数軸の駆動制御を行う位置決めユニットを取り上げて説明したが、複数の入出力系統を備えるユニット(例えば1つ以上の入力系統(チャネル)のA/D変換を行うA/D変換ユニット)であれば、どのようなユニットであっても本発明の実施の形態を適用することができる。その際、軸番号を入出力系統の識別番号で読み替えて解釈するとよい。 In addition, the positioning unit that performs drive control of a plurality of axes has been described as an example of the intelligent unit 3, but a unit including a plurality of input / output systems (for example, A / D conversion of one or more input systems (channels) is performed. The embodiment of the present invention can be applied to any unit as long as it is an A / D conversion unit. At that time, the axis number may be interpreted as the input / output system identification number.
 また、関連デバイス群はマニュアルに記載されているプログラム例毎に規定されているとして説明したが、関連デバイス群を、プログラムの記載例に限らず、制御動作の典型例毎に規定するようにしてもよい。これによって、マニュアルと動作を比較する場合に限らずユーザがロギング設定項目群データベース72に登録されている動作にかかる関連デバイスを個々に設定する労力を軽減することができる。 In addition, although the related device group has been described as being defined for each program example described in the manual, the related device group is not limited to the program description example, but is defined for each typical example of the control operation. Also good. Thereby, it is possible to reduce the labor for the user to individually set the related devices related to the operation registered in the logging setting item group database 72, not only when comparing the operation with the manual.
 また、ロギング設定項目群データベース72は、ユーザによる編集が可能に構成されてもよい。 Also, the logging setting item group database 72 may be configured to be editable by the user.
 また、プログラミング装置5は、ユニット情報リスト60が編集されたり、サブユニットの装着位置が変更されたことによりCPUユニット2に格納されているユニット情報リスト24が自動変更されたとき、ユニット情報取得部70がユニット情報リストの編集または変更を検知して各デバイスについてユニット情報を取得しなおし、プログラミング装置5においてステップS3以下の動作を実行することにより、ロギング設定データD1を自動で修正するように構成してもよい。このように構成することによって、サブユニットの装着位置を変更する毎にロギング対象のデバイスアドレスを変更する手間を軽減することができる。 Further, when the unit information list 60 stored in the CPU unit 2 is automatically changed by editing the unit information list 60 or changing the mounting position of the subunit, the programming device 5 70 is configured to automatically correct the logging setting data D1 by detecting the editing or changing of the unit information list, reacquiring unit information for each device, and executing the operation in step S3 and subsequent steps in the programming device 5. May be. With this configuration, it is possible to reduce the trouble of changing the logging target device address every time the subunit mounting position is changed.
 以上述べたように、本発明の実施の形態によれば、ユニット毎に制御動作の典型例の名称と当該制御動作にかかる関連デバイス群との対応付けを、関連デバイス群を構成するデバイス毎の先頭XY依存性とともに記憶しているロギング設定項目群データベース72を備え、ロギング対象のデバイスを使用するユニットにかかる制御動作の典型例の名称の一覧を前記ロギング設定項目群データベース72から抽出し、前記抽出した名称の一覧のうちのユーザにより選択された一つに対応づけられている関連デバイス群を構成する夫々の関連デバイスのアドレスを先頭XY依存性に基づいて変更するように構成したので、ユーザは選択したデバイスに関連するデバイスを一括してロギング設定することができるので、可及的に簡単にロギング設定を行うことができるようになる。また、ユーザプログラム25中では記述されていないインテリジェントユニット3が中間データ格納領域として使用するデバイスまでロギング対象に設定することができる。 As described above, according to the embodiment of the present invention, the correspondence between the name of the typical example of the control operation and the related device group related to the control operation for each unit is set for each device constituting the related device group. A logging setting item group database 72 stored together with the head XY dependency; a list of typical names of control operations relating to units using the logging target device is extracted from the logging setting item group database 72; Since the address of each related device constituting the related device group associated with one selected by the user from the extracted list of names is changed based on the top XY dependency, the user Allows you to configure logging settings for all devices related to the selected device. So it is possible to perform. In addition, the intelligent unit 3 not described in the user program 25 can be set as a logging target even for a device used as an intermediate data storage area.
 以上のように、本発明にかかるロギング設定装置およびロギング設定方法は、PLCのロギング設定を行うロギング設定装置およびロギング設定方法に適用して好適である。 As described above, the logging setting device and the logging setting method according to the present invention are suitable for application to a logging setting device and a logging setting method for performing PLC logging settings.
 1 PLC
 2 CPUユニット
 3 インテリジェントユニット
 4 バスユニット
 5 プログラミング装置
 21 CPU
 22 記憶装置
 23 通信インタフェース
 24 ユニット情報リスト
 25 ユーザプログラム
 26 ロギング設定データ
 27 デバイスメモリ領域
 28 ログデータ格納領域
 31 CPU
 32 記憶装置
 33 ユニットプログラム
 34 バッファメモリ領域
 51 CPU
 52 RAM
 53 ROM
 54 通信インタフェース
 55 外部記憶装置
 56 CD-ROMドライブ
 57 入力装置
 58 出力装置
 60 ユニット情報リスト
 61 ユーザプログラム
 62 ロギング設定プログラム
 70 ユニット情報取得部
 71 関連項目群抽出部
 72 ロギング設定項目群データベース
 73 関連項目群表示/選択部
 74 オフセット反映部
 75 ロギング設定出力部
1 PLC
2 CPU unit 3 Intelligent unit 4 Bus unit 5 Programming device 21 CPU
22 Storage Device 23 Communication Interface 24 Unit Information List 25 User Program 26 Logging Setting Data 27 Device Memory Area 28 Log Data Storage Area 31 CPU
32 Storage device 33 Unit program 34 Buffer memory area 51 CPU
52 RAM
53 ROM
54 Communication Interface 55 External Storage Device 56 CD-ROM Drive 57 Input Device 58 Output Device 60 Unit Information List 61 User Program 62 Logging Setting Program 70 Unit Information Acquisition Unit 71 Related Item Group Extraction Unit 72 Logging Setting Item Group Database 73 Related Item Group Display / selection part 74 Offset reflection part 75 Logging setting output part

Claims (7)

  1.  デバイスを指定する入力を受け付けて、ロギング設定対象のプログラマブルコントローラ(PLC)を構成するユニットの形名と当該ユニットが使用するデバイスアドレス空間の先頭アドレスとの対応を記述した予め作成されたユニット情報リストから、前記指定されたデバイスを使用するユニットの形名および当該ユニットの先頭アドレスを取得するユニット情報取得部と、
     ユニット毎に制御動作の典型例の名称と当該制御動作にかかる関連デバイス群との対応付けを、関連デバイス群を構成するデバイス毎にデバイスアドレスと先頭アドレスとの関係を示す先頭アドレス依存性とともに記憶しているロギング設定項目群データベースと、
     前記ユニット情報取得部が取得したユニットの形名を検索キーとして前記ロギング設定項目群データベースを検索して、当該ユニットにかかる制御動作の典型例の名称の一覧を抽出する関連項目群抽出部と、
     ユーザから前記抽出した制御動作の名称の一覧のうちの一つを選択する入力を受け付けて、前記選択された制御動作に対応づけられている関連デバイス群を構成する夫々のデバイスのアドレスを前記ロギング設定項目群データベースが記憶している先頭アドレス依存性と前記取得した先頭アドレスとに基づいて変更するデバイス変更部と、
     前記変更された関連デバイス群を構成する夫々のデバイスをロギング対象に設定するロギング設定出力部と、
     を備えることを特徴とするロギング設定装置。
    Pre-created unit information list that accepts input specifying a device and describes the correspondence between the model names of the units constituting the programmable controller (PLC) to be set for logging and the start address of the device address space used by the unit From the unit information acquisition unit that acquires the model name of the unit that uses the specified device and the start address of the unit,
    Stores the correspondence between the name of a typical control operation for each unit and the related device group related to the control operation, along with the start address dependency indicating the relationship between the device address and the start address for each device constituting the related device group. Logging setting item group database,
    A related item group extraction unit that searches the logging setting item group database using the unit model name acquired by the unit information acquisition unit as a search key, and extracts a list of typical examples of control operations related to the unit;
    Accepting an input for selecting one of the extracted list of control operation names from the user, and logging the addresses of the respective devices constituting the related device group associated with the selected control operation A device changing unit that changes based on the start address dependency stored in the setting item group database and the acquired start address;
    A logging setting output unit for setting each device constituting the changed related device group as a logging target; and
    A logging setting device comprising:
  2.  前記ユニット情報リストは、前記ロギング設定対象のPLCまたは当該PLCのユーザプログラムを作成するプログラミング装置に予め格納されている、ことを特徴とする請求項1に記載のロギング設定装置。 2. The logging setting device according to claim 1, wherein the unit information list is stored in advance in a programming device for creating the PLC for logging setting or a user program of the PLC.
  3.  PLCを構成するユニットは、複数系統の入出力を実行する複数系統入出力ユニットを含み、
     前記ロギング設定項目群データベースは、前記複数系統入出力ユニットが使用するデバイス毎にデバイスアドレスと入出力系統との関係を示す入出力系統依存性を記憶し、
     前記デバイス変更部は、前記選択された制御動作に対応づけられている関連デバイス群を構成する夫々のデバイスのうち前記複数系統入出力ユニットが使用するデバイスのアドレスを前記ロギング設定項目群データベースに記憶されている先頭アドレス依存性および入出力系統依存性に基づいて変更する、
     ことを特徴とする請求項1に記載のロギング設定装置。
    The units constituting the PLC include a plurality of input / output units that execute input / output of a plurality of systems,
    The logging setting item group database stores input / output system dependency indicating a relationship between a device address and an input / output system for each device used by the multiple system input / output unit.
    The device changing unit stores, in the logging setting item group database, addresses of devices used by the multiple-system input / output units among the respective devices constituting the related device group associated with the selected control operation. Change based on the start address dependency and input / output dependency
    The logging setting device according to claim 1.
  4.  前記ユニット情報取得部は、前記ユニット情報リストの変更を検知したとき、前記指定されたデバイスを使用するユニットの形名および当該ユニットの先頭アドレスを再取得する、
     ことを特徴とする請求項1に記載のロギング設定装置。
    When the unit information acquisition unit detects a change in the unit information list, the unit information acquisition unit re-acquires the model name of the unit that uses the specified device and the start address of the unit.
    The logging setting device according to claim 1.
  5.  デバイスを指定する入力を受け付けるデバイス指定入力受け付けステップと、
     ロギング設定対象のプログラマブルコントローラ(PLC)を構成するユニットの形名と当該ユニットが使用するデバイスアドレス空間の先頭アドレスとの対応を記述した予め作成されたユニット情報リストから、前記指定されたデバイスを使用するユニットの形名および当該ユニットの先頭アドレスを取得するユニット情報取得ステップと、
     ユニット毎に制御動作の典型例の名称と当該制御動作にかかる関連デバイス群との対応付けを、関連デバイス群を構成するデバイス毎にデバイスアドレスと先頭アドレスとの関係を示す先頭アドレス依存性とともに記憶しているロギング設定項目群データベースを前記ユニット情報取得部が取得したユニットの形名を検索キーとして検索して、当該ユニットにかかる制御動作の典型例の名称の一覧を抽出する関連項目群抽出ステップと、
     ユーザから前記抽出した制御動作の名称の一覧のうちの一つを選択する入力を受け付ける制御動作入力受け付けステップと、
     前記選択された制御動作に対応づけられている関連デバイス群を構成する夫々のデバイスのアドレスを前記ロギング設定項目群データベースが記憶している先頭アドレス依存性と前記取得した先頭アドレスとに基づいて変更するデバイス変更ステップと、
     前記変更された関連デバイス群を構成する夫々のデバイスをロギング対象に設定するロギング設定出力ステップと、
     を備えることを特徴とするロギング設定方法。
    A device specification input reception step for receiving an input for specifying a device;
    Use the specified device from the unit information list created in advance that describes the correspondence between the model name of the unit that configures the programmable controller (PLC) for logging setting and the start address of the device address space used by the unit. A unit information acquisition step for acquiring the model name of the unit to be performed and the start address of the unit;
    Stores the correspondence between the name of a typical control operation for each unit and the related device group related to the control operation, along with the start address dependency indicating the relationship between the device address and the start address for each device constituting the related device group. A related item group extraction step of searching the logging setting item group database that is used by the unit information acquisition unit as a search key and extracting a list of typical names of control operations related to the unit When,
    A control operation input receiving step for receiving an input for selecting one of the extracted list of names of the control operations from the user;
    The address of each device constituting the related device group associated with the selected control operation is changed based on the start address dependency stored in the logging setting item group database and the acquired start address. A device change step to
    A logging setting output step of setting each device constituting the changed related device group as a logging target; and
    A logging setting method comprising:
  6.  PLCを構成するユニットは、複数系統の入出力を実行する複数系統入出力ユニットを含み、
     前記ロギング設定項目群データベースは、前記複数系統入出力ユニットが使用するデバイス毎にデバイスアドレスと入出力系統との関係を示す入出力系統依存性を記憶し、
     前記デバイス変更ステップにおいて、前記選択された制御動作に対応づけられている関連デバイス群を構成する夫々のデバイスのうち前記複数系統入出力ユニットが使用するデバイスのアドレスを前記ロギング設定項目群データベースに記憶されている先頭アドレス依存性および入出力系統依存性に基づいて変更する、
     ことを特徴とする請求項5に記載のロギング設定方法。
    The units constituting the PLC include a plurality of input / output units that execute input / output of a plurality of systems,
    The logging setting item group database stores input / output system dependency indicating a relationship between a device address and an input / output system for each device used by the multiple system input / output unit.
    In the device changing step, the address of the device used by the multiple-system input / output unit among the devices constituting the related device group associated with the selected control operation is stored in the logging setting item group database. Change based on the start address dependency and input / output dependency
    The logging setting method according to claim 5, wherein:
  7.  デバイスを指定する入力を受け付けるデバイス指定入力受け付けステップと、
     ロギング設定対象のプログラマブルコントローラ(PLC)を構成するユニットの形名と当該ユニットが使用するデバイスアドレス空間の先頭アドレスとの対応を記述した予め作成されたユニット情報リストから、前記指定されたデバイスを使用するユニットの形名および当該ユニットの先頭アドレスを取得するユニット情報取得ステップと、
     ユニット毎に制御動作の典型例の名称と当該制御動作にかかる関連デバイス群との対応付けを、関連デバイス群を構成するデバイス毎にデバイスアドレスと先頭アドレスとの関係を示す先頭アドレス依存性とともに記憶しているロギング設定項目群データベースを前記ユニット情報取得部が取得したユニットの形名を検索キーとして検索して、当該ユニットにかかる制御動作の典型例の名称の一覧を抽出する関連項目群抽出ステップと、
     ユーザから前記抽出した制御動作の名称の一覧のうちの一つを選択する入力を受け付ける制御動作入力受け付けステップと、
     前記選択された制御動作に対応づけられている関連デバイス群を構成する夫々のデバイスのアドレスを前記ロギング設定項目群データベースが記憶している先頭アドレス依存性と前記取得した先頭アドレスとに基づいて変更するデバイス変更ステップと、
     前記変更された関連デバイス群を構成する夫々のデバイスをロギング対象に設定するロギング設定出力ステップと、
     をコンピュータに実行させるプログラムを記録したコンピュータに読み取り可能な記録媒体。
    A device specification input reception step for receiving an input for specifying a device;
    Use the specified device from the unit information list created in advance that describes the correspondence between the model name of the unit that configures the programmable controller (PLC) for logging setting and the start address of the device address space used by the unit. A unit information acquisition step for acquiring the model name of the unit to be performed and the start address of the unit;
    Stores the correspondence between the name of a typical control operation for each unit and the related device group related to the control operation, along with the start address dependency indicating the relationship between the device address and the start address for each device constituting the related device group. A related item group extraction step of searching the logging setting item group database that is used by the unit information acquisition unit as a search key and extracting a list of typical names of control operations related to the unit When,
    A control operation input receiving step for receiving an input for selecting one of the extracted list of names of the control operations from the user;
    The address of each device constituting the related device group associated with the selected control operation is changed based on the start address dependency stored in the logging setting item group database and the acquired start address. A device change step to
    A logging setting output step of setting each device constituting the changed related device group as a logging target; and
    The computer-readable recording medium which recorded the program which makes a computer perform.
PCT/JP2010/069113 2010-10-27 2010-10-27 Logging setup device, logging setup method and recordable medium WO2012056539A1 (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
KR1020137012316A KR101472697B1 (en) 2010-10-27 2010-10-27 Logging setup device, logging setup method and recordable medium
DE112010005963.2T DE112010005963B4 (en) 2010-10-27 2010-10-27 Log setting device, logging setting method and recording medium
JP2012540579A JP5312695B2 (en) 2010-10-27 2010-10-27 Logging setting device, logging setting method, and recording medium
PCT/JP2010/069113 WO2012056539A1 (en) 2010-10-27 2010-10-27 Logging setup device, logging setup method and recordable medium
CN201080069816.XA CN103180789B (en) 2010-10-27 2010-10-27 Daily record setting device, daily record establishing method
TW100112169A TWI448858B (en) 2010-10-27 2011-04-08 Logging setting device, method for setting logging, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2010/069113 WO2012056539A1 (en) 2010-10-27 2010-10-27 Logging setup device, logging setup method and recordable medium

Publications (1)

Publication Number Publication Date
WO2012056539A1 true WO2012056539A1 (en) 2012-05-03

Family

ID=45993294

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2010/069113 WO2012056539A1 (en) 2010-10-27 2010-10-27 Logging setup device, logging setup method and recordable medium

Country Status (6)

Country Link
JP (1) JP5312695B2 (en)
KR (1) KR101472697B1 (en)
CN (1) CN103180789B (en)
DE (1) DE112010005963B4 (en)
TW (1) TWI448858B (en)
WO (1) WO2012056539A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI499877B (en) * 2013-04-04 2015-09-11 Mitsubishi Electric Corp Engineering tool and programmable logic controller
JP2020013528A (en) * 2018-10-23 2020-01-23 株式会社キーエンス Engineering tool for programmable logic controller
JP2020067751A (en) * 2018-10-23 2020-04-30 株式会社キーエンス Programmable logic controller system, program creation assisting device, and computer program
JP2020067752A (en) * 2018-10-23 2020-04-30 株式会社キーエンス Programmable logic controller system, program creation assisting device, and computer program
JP2020177712A (en) * 2020-08-07 2020-10-29 株式会社キーエンス External setting device
JP2020190945A (en) * 2019-05-22 2020-11-26 オムロン株式会社 Information providing system, server, and information providing method
US11188048B2 (en) 2018-10-23 2021-11-30 Keyence Corporation Programmable logic controller and main unit
JP7021401B1 (en) * 2021-01-21 2022-02-16 三菱電機株式会社 Logging support device, logging system, logging support method and program

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016012172A (en) * 2014-06-27 2016-01-21 オムロン株式会社 Communication system, programmable display, information processing device, operation control method, information processing method, and program
CN107615191B (en) * 2015-06-01 2019-03-15 三菱电机株式会社 Debugging apparatus and adjustment method
WO2017212592A1 (en) * 2016-06-08 2017-12-14 三菱電機株式会社 Programmable display device
CN115427901B (en) * 2020-04-14 2023-10-03 三菱电机株式会社 Storage medium, debug supporting device, and debug supporting method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000172314A (en) * 1998-12-04 2000-06-23 Mitsubishi Electric Corp Program peripheral device for programmable controller
JP2004310592A (en) * 2003-04-09 2004-11-04 Mitsubishi Electric Corp Logging processor

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4831582A (en) 1986-11-07 1989-05-16 Allen-Bradley Company, Inc. Database access machine for factory automation network
EP1752843B1 (en) 2000-03-17 2011-07-27 Digital Electronics Corporation Control server, control terminal, control system, and recording medium storing control communication program
EP1739512B1 (en) * 2004-04-15 2010-10-06 Mitsubishi Denki Kabushiki Kaisha Programmable logic controller peripheral device and program creation method thereof
JP4278580B2 (en) * 2004-07-16 2009-06-17 三菱電機株式会社 Program change method, programmable controller, and program editing apparatus.
JP2007011936A (en) * 2005-07-04 2007-01-18 Mitsubishi Electric Corp Programmable display unit
US7835806B2 (en) 2007-01-29 2010-11-16 Rockwell Automation Technologies, Inc. Method for indirect access to controller data using name stored in string tag
CN101365994B (en) * 2007-02-19 2013-08-21 三菱电机株式会社 Peripheral device of programmable controller, replacing method and program
US7974828B2 (en) * 2007-04-27 2011-07-05 Omron Corporation Simulation device for programmable controller
US8688258B2 (en) * 2008-09-11 2014-04-01 Rockwell Automation Technologies, Inc. Method of controlling a machine tool

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000172314A (en) * 1998-12-04 2000-06-23 Mitsubishi Electric Corp Program peripheral device for programmable controller
JP2004310592A (en) * 2003-04-09 2004-11-04 Mitsubishi Electric Corp Logging processor

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI499877B (en) * 2013-04-04 2015-09-11 Mitsubishi Electric Corp Engineering tool and programmable logic controller
JP2020013528A (en) * 2018-10-23 2020-01-23 株式会社キーエンス Engineering tool for programmable logic controller
JP2020067751A (en) * 2018-10-23 2020-04-30 株式会社キーエンス Programmable logic controller system, program creation assisting device, and computer program
JP2020067752A (en) * 2018-10-23 2020-04-30 株式会社キーエンス Programmable logic controller system, program creation assisting device, and computer program
JP7412076B2 (en) 2018-10-23 2024-01-12 株式会社キーエンス Engineering tools for programmable logic controllers
JP7212496B2 (en) 2018-10-23 2023-01-25 株式会社キーエンス Programmable logic controller system, programming support device and computer program
JP7173826B2 (en) 2018-10-23 2022-11-16 株式会社キーエンス Programmable logic controller system, programming support device and computer program
US11188048B2 (en) 2018-10-23 2021-11-30 Keyence Corporation Programmable logic controller and main unit
CN113785268A (en) * 2019-05-22 2021-12-10 欧姆龙株式会社 Information providing system, server, and information providing method
WO2020235183A1 (en) * 2019-05-22 2020-11-26 オムロン株式会社 Information providing system, server, and information providing method
JP2020190945A (en) * 2019-05-22 2020-11-26 オムロン株式会社 Information providing system, server, and information providing method
JP7303424B2 (en) 2019-05-22 2023-07-05 オムロン株式会社 Information provision system, server and information provision method
CN113785268B (en) * 2019-05-22 2023-12-15 欧姆龙株式会社 Information providing system, server, and information providing method
JP2020177712A (en) * 2020-08-07 2020-10-29 株式会社キーエンス External setting device
JP7021401B1 (en) * 2021-01-21 2022-02-16 三菱電機株式会社 Logging support device, logging system, logging support method and program
WO2022157891A1 (en) * 2021-01-21 2022-07-28 三菱電機株式会社 Logging assistance device, logging system, logging assistance method, and program

Also Published As

Publication number Publication date
JP5312695B2 (en) 2013-10-09
DE112010005963T5 (en) 2013-07-25
KR101472697B1 (en) 2014-12-12
TW201217925A (en) 2012-05-01
KR20130103549A (en) 2013-09-23
CN103180789B (en) 2016-03-02
CN103180789A (en) 2013-06-26
TWI448858B (en) 2014-08-11
DE112010005963B4 (en) 2018-05-03
JPWO2012056539A1 (en) 2014-03-20

Similar Documents

Publication Publication Date Title
JP5312695B2 (en) Logging setting device, logging setting method, and recording medium
JP4462449B2 (en) Control system setting device
US8255799B2 (en) Dynamic action recorder
JP2005327263A (en) Control system setting device
US8676359B2 (en) Field device management apparatus and computer program
JP7043782B2 (en) Servo motor adjustment device and servo motor adjustment method
KR20160119168A (en) Plotting device and control system
JP6372308B2 (en) Information processing apparatus, information processing method, information processing program, and recording medium
TWI541622B (en) Apparatus for supporting the compilation of a sequence program
US11402819B2 (en) Screen creation device and screen creation system
JP3251423B2 (en) Programming equipment for programmable controllers and functional units for programmable controllers
JP4842541B2 (en) Display device for control, screen data generation device, and program and recording medium thereof
JPWO2005114344A1 (en) How to select engineering tool and engineering tool startup program and add new program
EP3104236B1 (en) Control device, control system, support apparatus, and control-device maintenance management method
EP3101537A1 (en) Control device, control system, control method for control device, and control method for control system
JP2008052738A (en) Automation system and method for clock time, process and/or machine optimization
JP2006243841A (en) Plc tool device
JP2011175351A (en) Screen data preparation device, screen data preparation method, and screen data preparation program
KR101896081B1 (en) Apparatus for displaying menu of HMI program
JP2003295910A (en) Unit, tool equipment, and program product
JP2007011728A (en) Device, method, and program for preparation of operating procedure of general-purpose computer
WO2018096675A1 (en) Processing program conversion device and numeric value control device
US20230004146A1 (en) Machining system, machine tool, information processing system, setting data inheritance method, and setting data inheritance program
JP3932751B2 (en) Production program creation device
JP6413990B2 (en) Servo controller parameter adjusting device, servo system and computer program

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

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2012540579

Country of ref document: JP

WWE Wipo information: entry into national phase

Ref document number: 1120100059632

Country of ref document: DE

Ref document number: 112010005963

Country of ref document: DE

ENP Entry into the national phase

Ref document number: 20137012316

Country of ref document: KR

Kind code of ref document: A

122 Ep: pct application non-entry in european phase

Ref document number: 10858928

Country of ref document: EP

Kind code of ref document: A1