WO2020079730A1 - Engineering tool, computer system, system, method, and program - Google Patents

Engineering tool, computer system, system, method, and program Download PDF

Info

Publication number
WO2020079730A1
WO2020079730A1 PCT/JP2018/038314 JP2018038314W WO2020079730A1 WO 2020079730 A1 WO2020079730 A1 WO 2020079730A1 JP 2018038314 W JP2018038314 W JP 2018038314W WO 2020079730 A1 WO2020079730 A1 WO 2020079730A1
Authority
WO
WIPO (PCT)
Prior art keywords
unit
data
representative
slave
subordinate
Prior art date
Application number
PCT/JP2018/038314
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 JP2019519767A priority Critical patent/JPWO2020079730A1/en
Priority to PCT/JP2018/038314 priority patent/WO2020079730A1/en
Publication of WO2020079730A1 publication Critical patent/WO2020079730A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • GPHYSICS
    • 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/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • 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 an engineering tool, a computer system, a system, a method and a program.
  • a system using a programmable controller (Programmable Logic Controller: PLC) unit is often used to control the production line device.
  • PLC Programmable Logic Controller
  • input / output to / from a slave unit is performed in accordance with a control program executed by a CPU (Central Processing Unit) unit.
  • CPU Central Processing Unit
  • Input / output from the CPU unit to the slave unit controls equipment including a sensor or a motor of a production line device connected to each channel of the slave unit.
  • the distance from the production line device to the slave unit may change.
  • the distance from the production line device to the slave unit changes, for example, the equipment of the production line device connected to one slave unit before the production line is changed and the equipment of the production line device connected to the slave unit is changed to one after the production line is changed. It may not be possible to connect to all slave units. In such a case, one slave unit is replaced with a plurality of slave units, and some devices of the production line device are separately connected to each channel of the plurality of slave units.
  • Patent Document 1 discloses an invention of a program creation device that creates a sequence program for operating a plurality of slave units in cooperation to execute one function.
  • the program creation device described in Patent Document 1 allows a user to perform a setting operation by simulating a plurality of slave units as one virtual unit on the slave unit setting screen. Then, this program creating device creates a sequence program for causing the CPU unit to set each unit based on the set contents and the sequence program serving as the template.
  • the memory address of the buffer memory of each slave unit is set in this sequence program. This memory address is used as a setting value setting destination, an acquisition destination of a value to be stored in the internal memory of the CPU unit, and the like.
  • the present invention solves these problems, and an object thereof is to provide an engineering tool, a computer system, a system, a method, and a program that can replace one slave unit with a plurality of slave units by a simple operation.
  • the engineering tool includes a representative unit setting unit, a channel allocating unit, a transmission / reception setting unit, and a virtual unit setting unit.
  • the representative unit setting unit sets the first slave unit having a channel for connecting the controlled device as a representative unit that transmits / receives data for controlling the controlled device to / from an external unit, and connects the controlled device.
  • the second slave unit having a channel for setting is set as a subordinate unit that transmits / receives data for controlling the control target device to / from the external unit via the representative unit.
  • the channel allocating unit allocates a series of channels to the channel of the representative unit and the channel of the subordinate unit based on the channel allocation information that defines the series of channels in advance.
  • the transmission / reception setting unit sets the data reception information for distributing the reception data received by the representative unit from the external unit to itself and the subordinate unit, and the transmission data transmitted from the subordinate unit to the representative unit to the self and the subordinate unit. Together with the transmission data, the data transmission information for transmitting to the external unit is set.
  • the virtual unit setting unit sets the representative unit and the dependent units as virtual units that can be replaced with other slave units having the same number of channels as the series of channels.
  • the present invention it is possible to set a plurality of slave units to operate as one virtual unit by an engineering tool without rewriting the control program in the external unit. Therefore, one slave unit can be replaced with a plurality of slave units by a simple operation.
  • FIG. 3 is a block diagram showing an example of a hardware configuration of a virtual unit according to the first embodiment. The figure which shows the outline of the engineering tool in Embodiment 1.
  • Block diagram showing an example of the hardware configuration of the PC in the first embodiment is a diagram showing a setting screen of channel allocation information on the engineering tool in the first embodiment
  • FIG. 3 is a diagram showing a setting screen of data reception information on the engineering tool in the first embodiment
  • FIG. 3 is a diagram showing an example of a configuration of data of operation setting of a virtual unit according to the first embodiment
  • FIG. 5 is a diagram showing an example of a configuration of operation parameters of a representative unit according to the first embodiment.
  • FIG. 3 is a diagram showing an example of a configuration of operation parameters of a slave unit according to the first embodiment.
  • FIG. 3 is a diagram showing an example of a configuration of communication parameters of a representative unit according to the first embodiment.
  • FIG. 3 is a diagram showing an example of a configuration of communication parameters of a dependent unit according to the first embodiment.
  • FIG. 3 is a diagram showing a process setting unit that sets a program from an engineering tool according to the first embodiment. Flowchart of control processing at the time of malfunction occurrence and recovery of the subordinate unit in the first embodiment
  • System configuration diagram of a PLC unit according to the second embodiment Block diagram showing an example of a hardware configuration of a PLC unit in the second embodiment
  • FIG. 3 is a block diagram showing an example of a hardware configuration of a first subordinate unit in the second embodiment.
  • FIG. 3 is a block diagram showing an example of a hardware configuration of a second subordinate unit in the second embodiment.
  • FIG. 6 is a diagram showing an example of a channel allocation method for virtual units and actual units and a representative unit designation method according to the second embodiment Flowchart of representative unit change processing according to the second embodiment
  • FIG. 6 is a diagram showing a process setting unit that sets a program from an engineering tool according to the second embodiment.
  • FIG. 10 is a diagram showing an outline of a virtual unit when the representative unit is changed in the second embodiment.
  • FIG. 6 is a diagram showing an example of a channel allocation method for virtual units and actual units and a representative unit designation method when the representative unit according to the second embodiment is changed.
  • the engineering tool is a tool that can be set to operate a plurality of slave units as one virtual unit.
  • the system 1 is a diagram showing a configuration of a system 1 including a virtual unit set by an engineering tool.
  • the system 1 includes a CPU unit 2 that executes a control program, a master unit 3 that connects the CPU unit 2 to a network, and a virtual unit 4 that can exchange data with the CPU unit 2 via the master unit 3. There is.
  • the control program executed by the CPU unit 2 is a program for controlling the master unit 3 and the virtual unit 4, respectively.
  • the master unit 3 is a unit for connecting the CPU unit 2 to the network. This CPU unit 2 cannot directly communicate with the network. Therefore, the CPU unit 2 is connected to the network via the master unit 3.
  • a PC (Personal Computer) 6 is connected to the CPU unit 2. This PC 6 is equipped with an engineering tool. Details of the PC 6 and the engineering tool will be described later.
  • the virtual unit 4 includes a representative unit 40 connected to the master unit 3 via a communication path 131 for the network, and a dependent unit 41 connected to the representative unit 40 via a communication path 130.
  • the representative unit 40 and the subordinate unit 41 are slave units, respectively.
  • the virtual unit 4 is, for example, a virtual unit 4 for replacing one slave unit having eight channels with two slave units having four channels.
  • the representative unit 40 includes four representative channels 408a, 408b, 408c, 408d as shown in FIG.
  • the representative channels 408a, 408b, 408c, 408d are set by the engineering tool 600 described later so as to be regarded as the virtual channels 12a, 12b, 12c, 12d of the virtual unit 4.
  • the subordinate unit 41 includes four subordinate channels 418a, 418b, 418c, 418d.
  • the dependent channels 418a, 418b, 418c, 418d are set by the engineering tool 600, which will be described later, so as to be regarded as the virtual channels 12e, 12f, 12g, 12h of the virtual unit 4.
  • the virtual unit 4 is recognized as one slave unit having eight channels when viewed from the CPU unit 2 and the master unit 3.
  • the production line devices 5a, 5b, 5c, 5d, 5e, 5f, 5g, and 5h are connected to the virtual channels 12a to 12h of the virtual unit 4.
  • the production line devices 5a to 5h are equipped with various devices including a sensor or a motor.
  • the virtual unit 4 controls various devices of the production line devices 5a to 5h via the virtual channels 12a to 12h.
  • the various devices that the production line devices 5a to 5h have are examples of control target devices according to the present invention.
  • the representative channels 408a, 408b, 408c, 408d of the representative unit 40 are collectively referred to as the representative channel 408.
  • the subordinate channels 418a, 418b, 418c, 418d of the subordinate unit 41 are collectively referred to as subordinate channels 418.
  • the virtual channels 12a to 12h included in the virtual unit 4 are collectively referred to as a virtual channel 12.
  • the production line devices 5a to 5h are collectively referred to as the production line device 5.
  • the master unit 3 When controlling the production line device 5 via the virtual unit 4, the master unit 3 transmits data to the representative unit 40 via the communication path 131.
  • the representative unit 40 determines whether the data received from the master unit 3 is data which the representative unit 40 itself is in charge of or data which the subordinate unit 41 is in charge of.
  • the representative unit 40 determines the data determined to be in charge of itself, that is, the data to be used for controlling the production line device 5 via the virtual channels 12a, 12b, 12c, 12d, by the representative units 408a, 408b, 408c, It outputs from 408d to the virtual channels 12a, 12b, 12c, 12d.
  • the representative unit 40 transmits to the subordinate unit 41 the data determined to be in charge of the subordinate unit 41, that is, the data to be used for controlling the production line device 5 via the virtual channels 12e, 12f, 12g, 12h.
  • the subordinate unit 41 outputs the data transmitted from the representative unit 40 from its own subordinate channels 418a, 418b, 418c, 418d to the virtual channels 12e, 12f, 12g, 12h.
  • the virtual unit 4 receives the output data of the production line device 5 and transmits it from the virtual unit 4 to the master unit 3.
  • the subordinate unit 41 transmits the data transmitted from the production line device 5 via the virtual channels 12e, 12f, 12g, and 12h which it is in charge of, to its subordinate channels 418a, 418b, 418c, and 418d. And is transmitted to the representative unit 40.
  • the representative unit 40 acquires the data transmitted from the production line device 5 via the virtual channels 12a, 12b, 12c, and 12d via its own representative channels 408a, 408b, 408c, and 408d.
  • the representative unit 40 collects the data received via the virtual channels 12a, 12b, 12c, 12d and the data received from the subordinate unit 41, and transmits the data as input data of the virtual unit 4 to the master unit 3.
  • the CPU unit 2 When the CPU unit 2 voluntarily requests to acquire the output data of the production line device 5 via the virtual unit 4, the CPU unit 2 transmits a data acquisition request from the master unit 3 to the representative unit 40.
  • the representative unit 40 transmits the data acquisition request to the subordinate unit 41.
  • the subordinate unit 41 transmits the data received via the virtual channels 12e, 12f, 12g, 12h to the representative unit 40.
  • the representative unit 40 returns the data received via the virtual channels 12a, 12b, 12c, 12d and the data received from the subordinate unit 41 to the master unit 3 as a response to the data acquisition request.
  • the master unit 3 transmits the received data to the CPU unit 2.
  • the CPU unit 2 recognizes the virtual unit 4 as one slave unit. Therefore, the CPU unit 2 transmits one instruction data for control instruction to the virtual unit 4 via the master unit 3 not to the representative unit 40 and the dependent unit 41 individually.
  • the representative unit 40 operates according to the received instruction data. At the same time, the representative unit 40 transfers the received instruction data to the subordinate unit 41 as needed.
  • the subordinate unit 41 operates according to the instruction data.
  • this instruction data is, for example, a setting change request flag shown in FIG. 7.
  • the received instruction data is the setting change request flag
  • each of the representative unit 40 and the subordinate unit 41 changes its own setting according to the contents of the received setting change request flag.
  • the representative unit 40 and the subordinate unit 41 behave as one virtual unit 4, and the representative unit 40 and the dependent unit 41 do not individually transmit the status display data to the CPU unit 2.
  • the representative unit 40 collects the status display data of itself and the status display data transmitted from the subordinate unit 41 to itself, and generates one status display data.
  • the representative unit 40 transmits one piece of generated status display data to the master unit 3.
  • the details of the status display data will be described later, but are, for example, the setting change completion flag and the error occurrence flag shown in FIG.
  • the subordinate unit 41 transmits its own status display data to the representative unit 40.
  • the representative unit 40 performs logical operation such as AND and OR on the status display data of itself and the status display data received from the subordinate unit 41 to generate one status display data and transmits it to the CPU unit 2. To do.
  • FIG. 2 is a diagram showing an example of the hardware configuration of the CPU unit 2 and the master unit 3.
  • 3 is a diagram showing an example of the hardware configuration of the virtual unit 4.
  • the CPU unit 2 includes a processor 20, an external bus interface 21, a PC interface 22, a storage unit 23, a memory 24, and an internal bus 25.
  • the processor 20 executes the control program on the memory 24. This control program controls the processor 20 itself and the operations of the master unit 3 and the virtual unit 4.
  • the external bus interface 21 is connected to the external bus interface 31 of the master unit 3 described later via the communication path 132.
  • the CPU unit 2 transmits / receives data to / from the master unit 3 via the external bus interface 21.
  • the PC 6 is connected to the PC interface 22.
  • the PC 6 is provided with an engineering tool 600 described later.
  • an interface capable of transmitting / receiving data to / from the PC 6 such as a USB (Universal Serial Bus) interface can be used.
  • USB Universal Serial Bus
  • the storage unit 23 stores the control program executed by the processor 20 and various data required when the processor 20 executes the control program.
  • a nonvolatile semiconductor memory such as a ROM (Read Only Memory) or a storage medium can be used.
  • the memory 24 is a storage element that enables the processor 20 to read the control program stored in the storage unit 23 when the CPU unit 2 is activated.
  • a volatile or non-volatile semiconductor memory such as a RAM (Random Access Memory) can be used as the memory 24.
  • the internal bus 25 connects the processor 20, the external bus interface 21, the PC interface 22, the storage unit 23, and the memory 24.
  • the master unit 3 has a configuration similar to that of the CPU unit 2 except that it has a function specialized for data transmission.
  • the master unit 3 includes a processor 30, an external bus interface 31, a storage unit 32, a memory 33, a network interface 34, and an internal bus 35.
  • the processor 30, the storage unit 32, and the memory 33 have the same functions as the processor 20, the storage unit 23, and the memory 24, except that the data transmission function is realized.
  • the external bus interface 31 is connected to the external bus interface 21 of the CPU unit 2 via the communication path 132.
  • the external bus interface 31 and the external bus interface 21 send and receive data to and from each other.
  • the network interface 34 is connected to the first network interface 401 of the virtual unit 4 via the communication path 131.
  • the network interface 34 and the first network interface 401 can send and receive data to and from each other.
  • the representative unit 40 of the virtual unit 4 includes a processor 400, a first network interface 401, a second network interface 402, a storage unit 403, a memory 404, a channel selector 405, and an AD (Analog-to-Digital) converter. 406 and an internal bus 407.
  • the processor 400 executes various processing programs on the memory 404, which will be described later, based on the instruction data for control instruction received from the CPU unit 2.
  • the first network interface 401 is connected to the network interface 34 of the master unit 3 via the communication path 131. Therefore, the representative unit 40 receives the instruction data for control instruction transmitted from the CPU unit 2 via the network interface 34 of the master unit 3 at the first network interface 401.
  • the representative unit 40 also transmits various data from the first network interface 401 to the CPU unit 2 via the network interface 34 of the master unit 3.
  • the second network interface 402 of the representative unit 40 is connected to the first network interface 411 of the subordinate unit 41 via the communication path 130. Therefore, the representative unit 40 transmits data from the second network interface 402 to the subordinate unit 41. The representative unit 40 also receives the data from the subordinate unit 41 at the second network interface 402.
  • the storage unit 403 stores various processing programs executed by the processor 400 and various data required when the various processing programs are executed by the processor 400.
  • a ROM, a non-volatile semiconductor memory, a storage medium, or the like can be used as the storage unit 403.
  • the memory 404 is a storage element that allows the processor 400 to execute various processing programs stored in the storage unit 403 when the system 1 is started up.
  • a RAM, a volatile or non-volatile semiconductor memory, or the like can be used as the memory 404.
  • the channel selector 405 is connected to the representative channels 408a, 408b, 408c, 408d.
  • the channel selector 405 is a representative channel that transmits the instruction data received from the CPU unit 2 to the production line device 5 from among the representative channels 408a, 408b, 408c, 408d based on the instruction from the program executed by the processor 400. Select 408.
  • the channel selector 405 sends the instruction data received from the CPU unit 2 from among the representative channels 408a, 408b, 408c, 408d to the production line device 5 based on the instruction from the program executed by the CPU unit 2.
  • the representative channel 408 to be transmitted may be selected.
  • the AD converter 406 converts the received analog signal into digital data that can be transmitted to the CPU unit 2 when the output signal of the production line device 5 is an analog signal.
  • the AD converter 406 is an example of an input / output component that is appropriately changed according to the type of the virtual unit 4.
  • a DA Digital-to-Analog
  • IO ASIC Input / Output Application Specific Integrated Circuit
  • the internal bus 407 is a bus that connects the processor 400, the first network interface 401, the second network interface 402, the storage unit 403, the memory 404, the channel selector 405, and the AD converter 406.
  • the subordinate unit 41 of the virtual unit 4 includes a processor 410, a first network interface 411, a second network interface 412, a storage unit 413, a memory 414, a channel selector 415, and an AD converter. 416 and an internal bus 417.
  • the first network interface 411 is connected to the second network interface 402 of the representative unit 40 via the communication path 130. Therefore, the subordinate unit 41 transmits data from the first network interface 411 to the representative unit 40. Further, the subordinate unit 41 receives the data from the representative unit 40 at the first network interface 411.
  • Other configurations are the same as the hardware configuration of the representative unit 40, and therefore description thereof will be omitted.
  • FIG. 4 is a diagram showing an outline of the engineering tool 600.
  • the engineering tool 600 is included in the PC 6.
  • the PC 6 includes a control unit 61, a storage unit 62, a display unit 63, an input unit 64, and a CPU unit interface 65.
  • the control unit 61 operates the engineering tool 600.
  • the storage unit 62 stores, in advance, channel allocation information 200, 8-channel output unit holding data 201, slave unit A holding data 202, slave unit B holding data 203, data reception information 300, and data transmission information. And 302 are stored.
  • the channel allocation information 200, the 8-channel output unit holding data 201, the slave unit A holding data 202, and the slave unit B holding data 203 are information and data necessary for the processing of the engineering tool 600.
  • the data reception information 300 and the data transmission information 302 are information created by the engineering tool 600 described later.
  • the details of the channel allocation information 200, the 8-channel output unit holding data 201, the slave unit A holding data 202, the slave unit B holding data 203, the data reception information 300, and the data transmission information 302 will be described later.
  • the display unit 63 is a display interface device capable of displaying various setting screens and data of the engineering tool 600.
  • Various display interface devices including an LCD (Liquid Crystal Display) panel and an organic EL (Electro-Luminescence) panel can be used as the display unit 63.
  • the input unit 64 is an information input device that can input various settings and information on the engineering tool 600.
  • various information input devices including a keyboard and a mouse can be used.
  • the CPU unit interface 65 is connected to the PC interface 22 of the CPU unit 2 shown in FIG. The PC 6 can exchange various information and data with the CPU unit 2 via the CPU unit interface 65.
  • the engineering tool 600 includes a virtual unit setting unit 601, a representative unit setting unit 602, a channel allocation unit 603, a data transmission / reception information creation unit 604, and a transmission / reception setting unit 605.
  • the virtual unit setting unit 601 sets a plurality of slave units set in one group as one virtual unit 4 based on the channel allocation information 200 and the 8-channel output unit holding data 201.
  • the virtual unit setting unit 601 is an example of virtual unit setting means according to the present invention.
  • the representative unit setting unit 602 sets one of the plurality of slave units constituting the virtual unit 4 as the representative unit 40 and the rest as the dependent unit 41.
  • the representative unit 40 transmits / receives to / from the CPU unit 2 and the master unit 3, which are external units of the virtual unit 4, setting information for controlling the equipment of the production line device 5, various data, and the like.
  • the subordinate unit 41 transmits / receives setting information, various data, and the like for controlling the equipment of the production line device 5 to / from the CPU unit 2 and the master unit 3 via the representative unit 40.
  • the representative unit setting unit 602 is an example of a representative unit setting unit according to the present invention.
  • the channel allocating unit 603 allocates the channel, which is the transmission / reception part of the virtual unit 4, to the channel, which is the transmission / reception part of the slave unit forming the virtual unit 4, based on the channel allocation information 200 and the 8-channel output unit holding data 201. .
  • the channel allocating unit 603 is an example of the channel allocating means according to the present invention.
  • the data transmission / reception information creation unit 604 creates data reception information 300 and data transmission information 302 based on the channel allocation information 200, 8-channel output unit holding data 201, slave unit A holding data 202, and slave unit B holding data 203. To do.
  • the data reception information 300 indicates which data, out of the data received by the representative unit 40 from the master unit 3, is transmitted to the dependent unit 41 so that the representative unit 40 and the dependent unit 41 function as one virtual unit 4. Is the data that defines.
  • the data transmission information 302 is data that defines which data, out of the data received by the subordinate unit 41 from the production line device 5, is to be transmitted to the representative unit.
  • the data transmission / reception information creation unit 604 is an example of the data transmission / reception information creation means according to the present invention.
  • the transmission / reception setting unit 605 sets transmission / reception between the representative unit 40 and the dependent unit 41 of the virtual unit 4 and the virtual unit 4 based on the data reception information 300 and the data transmission information 302 created by the data transmission / reception information creation unit 604.
  • the transmission / reception setting with the CPU unit 2 and the master unit 3 is performed.
  • the transmission / reception setting unit 605 is an example of transmission / reception setting means according to the present invention.
  • the virtual unit setting unit 601, the representative unit setting unit 602, the channel allocating unit 603, the data transmission / reception information creating unit 604, and the transmission / reception setting unit 605 are processed into a program, and the control unit 61 serves as the engineering tool 600. It can be operated.
  • This program is stored in the storage unit 62.
  • the control unit 61 includes a processor 610, a memory 611, a display controller 612, an I / O port 613, and an internal bus 614.
  • the processor 610, the memory 611, the display controller 612, and the I / O port 613 are connected to each other via an internal bus 614.
  • the processor 610 can read various programs stored in the storage unit 62, expand them in the memory 611, and execute them. In particular, in the first embodiment and the second embodiment described later, the processor 610 can read the program for operating the engineering tool 600 from the storage unit 62, load the program in the memory 611, and execute the program.
  • the control unit 61 for example, an arithmetic device such as a CPU or an MPU (Micro processing unit) can be used.
  • a storage element such as a RAM or an IC (Integrated Circuit) memory can be used as the memory 611.
  • the display controller 612 is a controller that outputs a video signal for displaying characters and video on the display unit 63.
  • a video signal output device such as a video card, GPU (Graphics Processing Unit), or graphic board can be used.
  • the I / O port 613 is an interface for transmitting / receiving a signal input / output to / from the control unit 61.
  • the control unit 61 is connected to the input unit 64 and the CPU unit interface 65 via the I / O port 613.
  • FIG. 6 is a diagram showing a setting screen of the channel allocation information 200 on the engineering tool 600.
  • the channel allocation information 200 defines the setting information including the channel allocation necessary for operating the actual slave unit as the virtual unit 4, the slave unit address, and the designation of the representative unit 40. By setting the channel allocation information 200, the user can determine the actual slave units that make up the virtual unit 4.
  • the channel numbers CH1 to CH8 and the input / output types of each channel are set.
  • Input / output types include input and output.
  • the case where the information is input from the virtual unit 4 to the actual slave unit can be defined as “input”
  • the case where the information is output from the actual slave unit to the virtual unit 4 can be defined as “output”.
  • the model name is the model name of the actual slave unit.
  • slave unit A and slave unit B are set.
  • the channel is the channel of the actual slave unit assigned to the channel of the virtual unit 4.
  • the channels of the slave unit A and the slave unit B are assigned and set to the channels of the virtual unit 4, respectively.
  • the slave unit address is an address indicating each of the representative unit 40 and the subordinate unit 41.
  • the master unit 3 can determine the data transmission destination by the slave unit address. Further, the master unit 3 can specify the data receiving source by the slave unit address.
  • the designation of the representative unit 40 is to designate which of the actual slave units will be the representative unit 40.
  • the slave unit A is designated as the representative unit 40.
  • FIG. 7 shows a setting screen of the data reception information 300 on the engineering tool 600.
  • the data reception information 300 is information received from the master unit 3 to the virtual unit 4.
  • the data reception information 300 includes the content of data received from the master unit 3 to the virtual unit 4, the transfer destination of the received data in the virtual unit 4 and the content of the transferred data, and the data of the virtual unit 4. It is defined whether or not it can be used.
  • the slave unit address shown in FIG. 6 is used to specify the transfer destination in the virtual unit 4.
  • the contents of the data received from the master unit 3 to the virtual unit 4 include, for example, the setting change request flag, the voltage value output from the channel number CH1 of the virtual unit 4 to the production line device 5a, and the channel number CH5 of the virtual unit 4. It is a voltage value output to the production line device 5e.
  • the setting change request flag is a flag for changing the setting of the virtual unit 4. For example, when the virtual unit 4 receives the setting change request flag from the CPU unit 2, the virtual unit 4 changes the setting of the representative unit 40 or the subordinate unit 41 based on the content of the setting change request flag.
  • the availability of the virtual unit 4 as data is information that sets whether the virtual unit 4 can be used as data. OK or NG is set as the value of availability.
  • the usability value is OK, the virtual unit 4 uses the data received from the master unit 3 as its own data.
  • the usability value is NG, the virtual unit 4 does not use the data received from the master unit 3 as its own data.
  • FIG. 8 is a diagram showing a setting screen of the data transmission information 302 on the engineering tool 600.
  • the data transmission information 302 is information transmitted from the virtual unit 4 to the master unit 3.
  • the data transmission information 302 includes the content of data transmitted from the virtual unit 4 to the master unit 3, the acquisition source of the transmitted data in the virtual unit 4, the content of the acquired data and the calculation method, and the virtual unit. It is defined whether or not it can be used as data of No. 4.
  • the slave unit address shown in FIG. 6 is set as the acquisition source in the virtual unit 4.
  • Whether or not the virtual unit 4 can be used as data is information that sets whether or not the virtual unit 4 can be used as data, as in FIG. 7.
  • the usability value is OK
  • the virtual unit 4 transmits the data acquired within itself to the master unit 3 as the data of the virtual unit 4.
  • the usability value is NG
  • the virtual unit 4 cannot acquire the latest data within itself. Therefore, the virtual unit 4 transmits, for example, the previous input value data, default value, and the like held by itself to the master unit 3 as the data of the virtual unit 4.
  • the operator used when the representative unit 40 calculates the content of the data is set as the calculation method of the acquired data.
  • “AND” that performs an AND operation on the bit data of each bit position of the data acquired from the representative unit 40 and the dependent unit 41
  • “OR” that performs an OR operation, and the like are used.
  • the data acquired by the representative unit 40 is 0x55 in hexadecimal
  • the data acquired by the subordinate unit 41 is 0xAA in hexadecimal.
  • AND operation of these two data results in 0x00
  • OR operation results in 0xFF.
  • the representative unit 40 is not allowed to calculate the content of data, "unnecessary" is set instead of the operator.
  • the CPU unit 2 creates instruction data for control instruction according to the calculation result of the data acquired from the virtual unit 4.
  • the data reception information 300 shown in FIG. 7 and the data transmission information 302 shown in FIG. 8 can be automatically generated by the engineering tool 600.
  • a specific method of generating the data reception information 300 shown in FIG. 7 and the data transmission information 302 shown in FIG. 8 will be described below by taking the virtual unit 4 that outputs to the CPU unit 2 as an example.
  • FIG. 9A shows a reception information range 510 used to generate the data reception information 300 and a transmission information range 520 used to generate the data transmission information 302 among the information set in the channel allocation information 200. There is.
  • FIG. 9B shows the 8-channel output unit holding data 201.
  • the 8-channel output unit holding data 201 is data preset by the user on the engineering tool 600.
  • the 8-channel output unit retention data 201 is for setting the type of data retained when the virtual unit 4 is a 8-channel slave unit.
  • the reception data range 511 is used for generating the data reception information 300
  • the transmission data range 521 is used for generating the data transmission information 302.
  • the 8-channel output unit holding data 201 is an example of the output unit holding data according to the present invention.
  • FIG. 9C shows the slave unit A retained data 202.
  • the slave unit A is a model name indicating one of the actual slave units forming the virtual unit 4. Data associated with the actual slave unit is stored in advance in the storage unit 62 of the PC 6 illustrated in FIG. 4 in association with the model name.
  • the slave unit A holding data 202 is generated in the engineering tool 600.
  • the generated slave unit A holding data 202 is stored in the storage unit 62 of the PC 6 shown in FIG.
  • the reception data range 512 of the data set in the slave unit A held data 202 is used for generating the data reception information 300 shown in FIG. 7.
  • the transmission data range 522 of the data set in the slave unit A held data 202 is used to generate the data transmission information 302 shown in FIG.
  • the slave unit A retained data 202 is an example of the first slave unit retained data according to the present invention.
  • FIG. 9D shows the slave unit B held data 203.
  • the slave unit B is a model name indicating one of the actual slave units forming the virtual unit 4. Data associated with the actual slave unit is stored in advance in the storage unit 62 of the PC 6 illustrated in FIG. 4 in association with the model name.
  • the slave unit B holding data 203 is generated in the engineering tool 600.
  • the generated slave unit B holding data 203 is stored in the storage unit 62 of the PC 6 shown in FIG.
  • the reception data range 513 of the data set in the slave unit B held data 203 is used to generate the data reception information 300 shown in FIG. 7.
  • the transmission data range 523 of the data set in the slave unit B held data 203 is used to generate the data transmission information 302 shown in FIG.
  • the slave unit B held data 203 is an example of the second slave unit held data according to the present invention.
  • the operation of the engineering tool 600 will be described with reference to FIGS. 4 and 9A to 9D.
  • the data to be held in the virtual unit 4 becomes 8-channel output unit shown in FIG. 9B. It is defined like the held data 201.
  • the virtual unit setting unit 601 of the engineering tool 600 acquires the channel allocation information 200 and the 8-channel output unit holding data 201 stored in the storage unit 62.
  • the virtual unit setting unit 601 identifies the actual slave unit forming the virtual unit 4 from the model name of the actual slave unit set in the channel allocation information 200 shown in FIG. 9A.
  • This actual slave unit is, as shown in FIG. 1, a plurality of slave units connected to the master unit 3.
  • the virtual unit setting unit 601 acquires the data included in the actual slave unit associated with this model name from the storage unit 62 of the PC 6 shown in FIG.
  • the virtual unit setting unit 601 generates slave unit holding data based on the acquired data of the actual slave unit associated with this model name.
  • the virtual unit setting unit 601 generates the slave unit A held data 202 shown in FIG. 9C based on the data included in the slave unit A. Further, the virtual unit setting unit 601 generates the slave unit B holding data 203 shown in FIG. 9D based on the data included in the slave unit B.
  • the representative unit setting unit 602 sets one of the plurality of slave units to the representative unit 40 based on the information set in the item of the representative unit of the actual slave unit in the channel allocation information 200 shown in FIG. 9A. Set as. Here, as shown in FIG. 9A, the slave unit A is set as the representative unit 40.
  • the channel allocating unit 603 allocates the channel of the virtual unit 4 to the channels of the slave unit A and the slave unit B that configure the virtual unit 4. As a result, the channels of the slave unit A and the slave unit B can be treated as the channels of the virtual unit 4 as viewed from the CPU unit 2.
  • the data transmission / reception information creation unit 604 creates the data reception information 300 shown in FIG. 9E and the data transmission information 302 shown in FIG. 9F.
  • the data reception information 300 is set with the transfer destination within the virtual unit 4 of the output value from each channel of the virtual unit 4. Specifically, the information is within the transfer destination data range 514.
  • the information within the transfer destination data range 514 is created by the data transmission / reception information creation unit 604.
  • the data transmission / reception information creation unit 604 includes information within the reception information range 510 of the channel allocation information 200 shown in FIG. 9A, reception data range 511 of the 8-channel output unit holding data 201 shown in FIG. 9B, and FIG. 9C.
  • the transfer destination data range 514 based on the reception data range 512 of the slave unit A held data 202, the channel data shown in the reception data range 513 of the slave unit B held data 203 shown in FIG. 9D, and the availability value. Create information for. It should be noted that OK is set as a default value for the availability value.
  • the data transmission / reception information creation unit 604 sets the created information in the data reception information 300 shown in FIG. 9E.
  • the data transmission information 302 includes the content of the data to be transmitted to the master unit 3, the acquisition source of the data to be transmitted in the virtual unit 4, the content of the acquired data, and the availability value.
  • the calculation method is set. Specifically, the information is within the setting change data range 524.
  • the information within the setting change data range 524 is created by the data transmission / reception information creation unit 604.
  • the data transmission / reception information creation unit 604 includes information within the transmission information range 520 of the channel allocation information 200 shown in FIG. 9A, the transmission data range 521 of the 8-channel output unit holding data 201 shown in FIG. 9B, and the slave unit A shown in FIG. 9C.
  • the setting change is made based on the content of the setting change completion flag shown in the status display data of the transmission data range 522 of the holding data 202 and the transmission data range 523 of the slave unit B holding data 203 shown in FIG. Information on the data range 524 is created. It should be noted that OK is set as a default value for the availability value.
  • the data transmission / reception information creation unit 604 sets the created information in the data transmission information 302 shown in FIG. 9F.
  • the data transmission / reception information creation unit 604 stores the created data reception information 300 shown in FIG. 9E and the created data transmission information 302 shown in FIG. 9F in the storage unit 62.
  • the transmission / reception setting unit 605 sets transmission / reception of data between the representative unit 40 and the subordinate unit 41 of the virtual unit 4 based on the data reception information 300 and the data transmission information 302 created by the data transmission / reception information creation unit 604. I do.
  • the transmission / reception setting unit 605 transmits / receives data between the virtual unit 4 and the CPU unit 2 / master unit 3 based on the data reception information 300 and the data transmission information 302 created by the data transmission / reception information creation unit 604. Make settings.
  • the engineering tool 600 is used as a tool for setting the operation of the virtual unit 4 in the actual slave unit. Details of the engineering tool 600 will be described later.
  • FIG. 10 is a diagram showing a setting screen of the operation setting information 210 on the engineering tool 600.
  • the operation setting information 210 the content of the operation to be executed by each channel of the virtual unit 4 is set.
  • the content of this operation is arbitrarily determined by the user.
  • the contents of the operation include the input / output type of the channel, the input value average processing method from the production line device 5 connected to the channel, and the production line device 5 connected to the channel.
  • the abnormal signal detection function is set.
  • the operation setting information 210 is stored in the storage unit 62 of the PC 6 as shown in FIG.
  • the engineering tool 600 includes an operation parameter creation unit 621 and a communication parameter creation unit 622 shown in FIG. 11, in addition to the configurations of the virtual unit setting unit 601, the representative unit setting unit 602 and the like shown in FIG. Further prepare.
  • the configurations of the virtual unit setting unit 601 and the representative unit setting unit 602 shown in FIG. 4 are omitted.
  • the operation parameter creation unit 621 combines the channel allocation indicated by the channel allocation information 200 shown in FIG. 9A stored in the storage unit 62 and the operation content indicated by the operation setting information 210 shown in FIG. Then, the operation parameter creation unit 621 creates the operation parameter 211 for the slave unit address 1 shown in FIG. 12A and the operation parameter 212 for the slave unit address 2 shown in FIG. 12B. Further, the communication parameter creating unit 622 combines the information of the channel allocation information 200 shown in FIG. 9A and the operation content of the operation setting information 210 shown in FIG. The communication parameter 213 for the slave unit address 1 shown and the communication parameter 214 for the slave unit address 2 shown in FIG. 12D are generated.
  • the operation parameter 211 for the slave unit address 1 shown in FIG. 12A and the operation parameter 212 for the slave unit address 2 shown in FIG. 12B the operation of the channel of the actual slave unit operating as the channel of the virtual unit 4 is set. .
  • the operation parameter 211 for the slave unit address 1 shown in FIG. 12A is the parameter for the slave unit address 1, that is, the representative unit 40 as shown in FIG.
  • the operation parameter 212 for the slave unit address 2 shown in FIG. 12B is the parameter for the slave unit address 2, that is, the slave unit 41 as shown in FIG.
  • the communication parameter 213 of the slave unit address 1 shown in FIG. 12C is a parameter for making settings necessary for communication between the representative unit 40 and the master unit 3. For example, when the master unit 3 and the actual slave unit transmit / receive data, it is necessary to clarify the size of data to be transmitted and the size of data to be received. Therefore, the transmission data size and the reception data size are set in the communication parameter 213. The transmission data size and the reception data size set in the communication parameter 213 are reflected in the representative unit 40.
  • the communication parameter 213 of the slave unit address 1 is an example of the first communication parameter according to the present invention.
  • the transmission data size and the reception data size set in the communication parameter 213 are data sizes obtained by summing the transmission data size and the reception data size of each channel of the virtual unit 4 for all channels.
  • the transmission data sizes of the representative unit 40 and the subordinate unit 41 are 32 bytes, respectively, as shown in FIG. 12C
  • the transmission data size of the virtual unit 4 is the transmission data size of the representative unit 40 and the subordinate unit 41.
  • the total is 64 bytes.
  • the reception data size of the representative unit 40 and the subordinate unit 41 is 16 bytes, respectively
  • the reception data size of the virtual unit 4 is the reception data size of the representative unit 40 and the subordinate unit 41 as shown in FIG. 12C.
  • the total is 32 bytes.
  • FIG. 12D shows communication parameters 214 for slave unit address 2.
  • the transmission data size and the reception data size between the subordinate unit 41 and the representative unit 40 are set. For example, if the transmission data size of each of the representative unit 40 and the subordinate unit 41 is 32 bytes, 32 is set as the transmission data size as shown in FIG. 12D. If the reception data size of each of the representative unit 40 and the subordinate unit 41 is 16 bytes, 16 bytes are set as the reception data size, as shown in FIG. 12D.
  • the communication parameter 214 of the slave unit address 2 is an example of the second communication parameter according to the present invention.
  • the communication parameter 214 for the slave unit address 2 is stored in the storage unit 32 of the master unit 3. These parameters are read from the storage unit 32 of the master unit 3 when the system 1 shown in FIG. Further, when the system 1 is activated, the CPU unit 2 transmits these parameters expanded in the memory 33 of the master unit 3 to the virtual unit 4. The virtual unit 4 expands the received parameters in the memory 404 of the representative unit 40.
  • the master unit 3 and the virtual unit 4 periodically send and receive data of the transmission data size and the reception data size set in the communication parameter 213 shown in FIG. 12C.
  • the virtual unit 4 processes the reception data received from the master unit 3 by the representative unit 40, and transmits the reception data from the representative unit 40 to the subordinate unit 41 as needed.
  • the representative unit 40 also collects its own transmission data and the transmission data acquired from the subordinate unit 41 into one, and transmits it to the master unit 3 as the transmission data from the virtual unit 4.
  • one slave unit with 8 channels before replacement has channel numbers CH1 to CH8.
  • the channel number of this slave unit is stored in the storage unit 23 of the CPU unit 2 shown in FIG.
  • first slave unit two slave units each having four channels that replace the slave unit having eight channels are referred to as a first slave unit and a second slave unit, respectively.
  • the first slave unit has the same configuration as the representative unit 40 shown in FIG. 3
  • the second slave unit has the same configuration as the subordinate unit 41 shown in FIG.
  • the CPU unit 2 recognizes that the slave unit connected to itself is replaced with one virtual unit 4 from one slave unit having 8 channels.
  • the data “channel number CH1 to CH8” of the item of the channel number of the virtual unit 4 set in the channel allocation information 200 shown in FIG. 6 and the data “input” of the item of the input / output type are provided. Is set.
  • the virtual unit 4 is a slave unit having the channel numbers CH1 to CH8.
  • the 8-channel output unit holding data 201 shown in FIG. 9B is set in the CPU unit 2.
  • the contents set here are stored in the storage unit 23 of the CPU unit 2 shown in FIG.
  • the first slave unit among the slave units having two 4 channels is set as the representative unit 40 of the virtual unit 4.
  • the second slave unit of the slave units having two four channels will be described as the slave unit 41 of the virtual unit 4.
  • the first slave unit is the slave unit of the model name slave unit A
  • the second slave unit is the slave unit of the model name slave unit B.
  • the channel allocation of itself and the subordinate unit 41, the slave unit address, and the designation of the representative unit are set based on the channel allocation information 200 shown in FIG. Specifically, the channel numbers CH1 to CH4 of the virtual unit 4 shown in FIG. 6 are set in the first slave unit in association with their own channel numbers CH1 to CH4. Further, the first slave unit is also set to associate the channel numbers CH5 to CH8 of the virtual unit 4 shown in FIG. 6 with the channel numbers CH1 to CH4 of the second slave unit. Since the representative unit 40 distributes the received data received from the master unit 3 to itself and the subordinate unit 41, it is necessary to know the channel number of the virtual unit 4 assigned to the subordinate unit 41.
  • Information on the transfer destination of the received data received from the master unit 3 in the virtual unit 4 is set in the first slave unit from the data reception information 300 shown in FIG.
  • the information of the transfer destination in the virtual unit 4 includes, for example, the slave unit address and the reception data of the items of the transfer data in the virtual unit 4 shown in FIG. 7, and the availability of the reception data received from the master unit 3. is there. A specific example will be described below with reference to FIG. 7.
  • the received data received from the master unit 3 is the setting change request flag
  • the data “1” and “2” of the item of the slave unit address of the transfer data in the virtual unit 4 are set in the first slave unit.
  • the data “1” of the item of the slave unit address is a unit address indicating the representative unit 40, and the data “2” is a unit address indicating the subordinate unit 41. Further, in the first slave unit, the data “setting change request flag” of the item of received data and the value “OK” of the item of availability are set. Hereinafter, the information set in the data reception information 300 shown in FIG. 7 is sequentially set in the first slave unit.
  • Information for transmitting the acquired data in the virtual unit 4 to the master unit 3 is set in the first slave unit from the data transmission information 302 shown in FIG.
  • the information to be transmitted to the master unit 3 includes, for example, the slave unit address and the transmission data of the item of the acquired data in the virtual unit 4 shown in FIG. 8, the availability of the transmission data acquired from the virtual unit 1, and the transmission. And a method of calculating the value of the data.
  • the first slave unit includes the data “1” and “2” of the slave unit address item of the transmission data in the virtual unit 4. Is set. As described above, the data “1” of this slave unit address item is the unit address indicating the representative unit 40, and the data “2” is the unit address indicating the subordinate unit 41. In addition, the first slave unit includes data “setting change completion flag” of the transmission data item, value “OK” of the availability item, data “setting change completion flag” of the transmission data item, and calculation method data. "AND” is set.
  • the information defined in the data transmission information 302 shown in FIG. 8 is sequentially set in the first slave unit.
  • the operation parameter 211 defines the operation of the channel numbers CH1 to CH4 of the first slave unit, which are assigned to the channel numbers CH1 to CH4 of the virtual unit 4.
  • the channel processing method, the detection function, etc. defined in the left column of the operation parameters shown in FIG. 12A and the setting information defined in the right column are set for each channel of the first slave unit.
  • the setting information of the data “No averaging process” in the item of the CH1 averaging process method of the operation parameters shown in FIG. 12A is set to the channel number CH1 of the first slave unit. This setting process is repeated for the channel numbers CH2 to CH4 of the first slave unit.
  • the setting information of the data "OFF" of the item of the CH1 abnormal signal detection function of the operation parameter shown in FIG. 12A is set to the channel number CH1 of the first slave unit. This setting process is repeated for the channel numbers CH2 to CH4 of the first slave unit.
  • the communication parameter 213 of the slave unit address 1 shown in FIG. 12C is set in the first slave unit.
  • the communication parameter 213 is, for example, the transmission data size of the transmission data transmitted from the representative unit 40 of the virtual unit 4 to the master unit 3 shown in FIG. 3 shown in FIG. 12C, and the representative unit 40 receives from the master unit 3.
  • the data size for reception of the received data is used.
  • the various information and parameters that have been set are stored in the storage unit of the first slave unit. This allows the first slave unit to operate as the representative unit 40 shown in FIG.
  • the channel numbers CH5 to CH8 of the virtual unit 4 shown in FIG. 6 are set in association with their own channel numbers CH1 to CH4.
  • the slave unit address "2" assigned to the model name of the slave unit B is set from the data of the item of the slave unit address of the actual slave unit shown in FIG.
  • the operation parameter 212 of the slave unit address 2 shown in FIG. 12B is set in the second slave unit.
  • the operation parameter 212 defines the operation of the channel numbers CH1 to CH4 of the second slave unit assigned to the channel numbers CH5 to CH8 of the virtual unit 4.
  • the channel processing method, detection function, etc. defined in the left column of the operation parameters shown in FIG. 12B and the setting information defined in the right column are set for each channel of the second slave unit.
  • the setting information of the data "time average" of the item of the CH5 average processing method of the operation parameter shown in FIG. 12B is set to the channel number CH1 of the second slave unit. This setting process is repeated for the channel numbers CH2 to CH4 of the second slave unit.
  • the setting information of the data "ON" of the item of the CH5 abnormal signal detection function of the operation parameter shown in FIG. 12B is set to the channel number CH1 of the second slave unit. This setting process is repeated for the channel numbers CH2 to CH4 of the second slave unit.
  • the communication parameter 214 of the slave unit address 2 shown in FIG. 12D is set in the second slave unit.
  • the communication parameter 214 is, for example, as shown in FIG. 12D, the transmission data size of the transmission data transmitted from the subordinate unit 41 of the virtual unit 4 to the representative unit 40, the reception data of the reception data received from the representative unit 40 by the subordinate unit 41.
  • the data size and the like are examples of the transmission data size of the transmission data transmitted from the subordinate unit 41 of the virtual unit 4 to the representative unit 40, the reception data of the reception data received from the representative unit 40 by the subordinate unit 41.
  • the set parameters are stored in the storage unit of the first slave unit. This allows the second slave unit to operate as the slave unit 41 shown in FIG.
  • a configuration in which one representative unit 40 and a plurality of subordinate units 41 are connected in a star type can be adopted.
  • the priority order is set so that one of the plurality of dependent units 41 can be changed to a new representative unit when the representative unit 40 fails. Therefore, the subordinate unit 41 that can be the representative unit 40 needs to have the same settings as the representative unit 40.
  • the CPU unit 2 does not distinguish between the representative unit 40 and the dependent unit 41 based on various information and parameters set in the representative unit 40, and regards them as one virtual unit 4. As a result, the CPU unit 2 recognizes that the virtual unit 4 is connected to itself. Therefore, the CPU unit 2 recognizes that the CPU unit 2 does not transmit / receive data to / from the representative unit 40 and the subordinate unit 41, respectively, but only to / from the virtual unit 4.
  • the data transmitted from the CPU unit 2 to the virtual unit 4 is input to the representative unit 40 of the virtual unit 4 via the master unit 3 as shown in FIG.
  • the representative unit 40 appropriately distributes the data received from the CPU unit 2 to itself and the slave unit 41 according to various information and parameters set in the representative unit 40.
  • the representative unit 40 and the subordinate unit 41 execute processing based on the data distributed to each.
  • the representative unit 40 can send the data from the subordinate unit 41 together with its own data to the CPU unit 2.
  • the CPU unit 2 recognizes that the data is not transmitted from the representative unit 40 and the subordinate unit 41, respectively, but that the data is transmitted from the virtual unit 4.
  • the CPU unit 2 can cause the slave units to execute various processes without being aware of the actual number of slave units connected to the CPU unit 2.
  • FIG. 13A shows a setting screen of the placement setting 700 on the placement setting tool 710.
  • the arrangement setting tool 710 is installed in the PC 6 as shown in FIG.
  • the system integrator uses the arrangement setting tool 710 to set the sensors arranged in the production line device 5, the devices including the motor, and the input / output devices added to the production line device 5 for each factory.
  • 3D-CAD Three Dimensional-computer Aided Design
  • the system integrator arranges a plurality of production line devices 5a to 5h on the left and right of the first production line conveyor on the setting screen of the arrangement setting 700. That is, based on an instruction input by the system integrator from the input unit 64 of the PC 6 shown in FIG. Place it to the left and right of.
  • the system integrator collects the plurality of production line devices 5a to 5h as one segment. This one segment can be one virtual unit 4.
  • the system integrator uses the arrangement setting tool 710 to allocate input / output to / from each production line device 5 to each channel of the virtual unit 4.
  • the input / output assigning unit 721 of the arrangement setting tool 710 sends the respective channels of the virtual unit 4 to the respective production line devices 5 based on the instruction input from the input unit 64 of the PC 6 shown in FIG. 14 by the system integrator. Allocate the input and output of.
  • the system integrator inputs the channel allocation information from the arrangement setting tool 710 to the virtual unit 4 into the engineering tool 600.
  • the user is made to set the operation of each channel of the virtual unit 4 on the setting screen of the operation setting information 210 of the engineering tool 600. That is, based on the input to the input unit 64 shown in FIG. 14 by the user, the operation parameter creation unit 621 of the engineering tool 600 operates the information of the channel allocation information 200 and the operation of the operation setting information 210 stored in the storage unit 62.
  • 12A is combined with the operation parameters 211 for the slave unit address 1 shown in FIG. 12A and the operation parameters 212 for the slave unit address 2 shown in FIG. 12B.
  • the communication parameter creation unit 622 combines the information of the channel allocation information 200 stored in the storage unit 62 and the content of the operation of the operation setting information 210 to obtain the communication parameter 213 for the slave unit address 1 shown in FIG. 12C. , And the communication parameter 214 for slave unit address 2 shown in FIG. 12D.
  • the created operation parameters 211 and 212 and communication parameters 213 and 214 are set to the actual slave unit having the corresponding slave unit address 1 or slave unit address 2.
  • FIG. 13B shows a list of set actual slave units.
  • the engineering tool 600 combines the model name of the matching slave unit with the information of the held data of that unit. As a result, the engineering tool 600 causes the channel allocation information 200 shown in FIG. 6, the data reception information 300 shown in FIG. 7, the data transmission information 302 shown in FIG. 8, and the operations shown in FIGS. 12A and 12B.
  • the parameters 211 and 212 and the communication parameters 213 and 214 shown in FIGS. 12C and 12D can be automatically generated.
  • the engineering tool 600 further includes a process setting unit 623 shown in FIG. 15A in addition to the configurations shown in FIGS. 4 and 11.
  • the process setting unit 623 can store a program for causing the virtual unit 4 to perform various processes in the storage unit 23 of the CPU unit 2 illustrated in FIG. Note that, here, the respective configurations shown in FIGS. 4 and 11 are omitted.
  • a program for causing the virtual unit 4 to perform various processes is read from the storage unit 23 of the CPU unit 2 to the memory 24 and is executed by the processor 20 when the system 1 is started.
  • the program stored in the storage unit 23 of the CPU unit 2 by the process setting unit 623 will be described by taking as an example the case where a malfunction occurs in the dependent unit 41 and a case where the malfunction is recovered.
  • the representative unit 40 detects a malfunction of the subordinate unit 41, it stops only the control of the channel of the subordinate unit 41 among the channels of the virtual unit 4. Further, when the representative unit 40 recovers from the malfunction of the subordinate unit 41, the representative unit 40 restarts the control of the channel of the subordinate unit 41. This operation will be described below with reference to the flowchart of the control process at the time of malfunction occurrence and recovery of the subordinate unit 41 shown in FIG. 15B.
  • step S10 when the representative unit 40 detects a change in the operation of the subordinate unit 41 (step S10; YES), the change in the operation of the subordinate unit 41 is changed from normal operation to malfunction or from malfunction. It is determined whether the normal operation is restored (step S11). If the change in the operation of the subordinate unit 41 is not detected (step S10; NO), the CPU unit 2 waits until the change in the operation of the subordinate unit 41 is detected.
  • the representative unit 40 When the representative unit 40 detects that the subordinate unit 41 has changed from the normal operation to the operation failure, for example, by receiving the communication interruption or the abnormal operation notification (step S11; normal operation to operation failure), The representative unit 40 changes the value of the availability of data of the slave unit 41 from OK to NG in the slave unit address of the data transmission information 302 shown in FIG. For example, the setting change completion flag and the error occurrence flag of the subordinate unit 41 are changed from OK to NG. The representative unit 40 invalidates the data transmission / reception of the subordinate unit 41 whose usable / unusable value is changed to NG (step S12).
  • the representative unit 40 transmits the previous input value data from the subordinate unit 41 held by itself to the master unit 3 as the input value data of the subordinate unit 41. To do. This is because the representative unit 40 cannot acquire the input value data from the subordinate unit 41 when the subordinate unit 41 malfunctions and data transmission / reception is disabled.
  • the representative unit 40 may transmit the default value, 0, an arbitrary value, etc. to the master unit 3 as the input value data from the subordinate unit 41, instead of the previous input value data held by itself. .
  • the output value data of the virtual channels 12e to 12h which the representative unit 40 receives from the master unit 3 and which the subordinate unit 41 takes charge of is not transferred to the subordinate unit 41. It should be noted that other control methods such as intentionally transferring may be used.
  • the representative unit 40 selects the slave unit in the data transmission information 302 shown in FIG.
  • the address is 2, that is, the value of availability of the data of the subordinate unit 41 is changed from NG to OK.
  • the values of availability of the setting change completion flag and the error occurrence flag of the subordinate unit 41 are changed from NG to OK.
  • the representative unit 40 validates the data transmission / reception of the subordinate unit 41 whose usable / unusable value is changed to OK (step S13).
  • the transmission / reception of data from the subordinate unit 41 is enabled, for example, when the subordinate unit 41 is the input unit, the input of the virtual channels 12e to 12h of the virtual unit 4 in charge of the subordinate unit 41 shown in FIG.
  • the input value of this time is set in the value data.
  • the representative unit 40 acquires the input value data of the virtual channels 12e to 12h of the virtual unit 4 from the subordinate unit 41.
  • the representative unit 40 transmits to the master unit 3 the input value data of the virtual channels 12a to 12d and the input value data of the virtual channels 12e to 12h that the representative unit 40 is in charge of.
  • the representative unit 40 transfers the output value data of the virtual channels 12e to 12h, which the subordinate unit 41 is in charge of, received from the master unit 3, to the subordinate unit 41.
  • a plurality of slave units are virtual with respect to the CPU unit 2 and perform the same operation as one slave unit connected to the CPU unit 2. It can be set as the unit 4. This can simplify the work when replacing one slave unit with a plurality of slave units. Further, even if one slave unit connected to the CPU unit 2 is replaced with the virtual unit 4, the control program introduced into the CPU unit 2 can be continuously used without being changed. Therefore, there is an effect that the number of man-hours required for changing the control program introduced into the CPU unit 2 can be reduced.
  • FIG. 16 shows an outline of a system 1A configured with a star type network topology.
  • the master unit 3 is connected to the virtual unit 4A via the communication path 134.
  • the virtual unit 4A includes a representative unit 40, a first subordinate unit 42, and a second subordinate unit 43.
  • Each of the representative unit 40, the first subordinate unit 42, and the second subordinate unit 43 has four channels. Therefore, the virtual unit 4A can function as one slave unit having 12 channels.
  • the representative channels 408a, 408b, 408c, 408d of the representative unit 40 are set by the engineering tool 600 so as to be regarded as the virtual channels 12a, 12b, 12c, 12d of the virtual unit 4.
  • the slave unit address 1 and the first priority of the representative unit to be described later are set.
  • the first subordinate unit 42 includes four first subordinate channels 428a, 428b, 428c, 428d.
  • the first dependent channels 428a, 428b, 428c, 428d are set by the engineering tool 600 so as to be regarded as the virtual channels 12e, 12f, 12g, 12h of the virtual unit 4A. Further, in the first subordinate unit 42, a slave unit address 2 and a third unit of a representative unit priority order described later are set.
  • the second subordinate unit 43 also includes four second subordinate channels 438a, 438b, 438c, 438d.
  • the second dependent channels 438a, 438b, 438c, 423d are set by the engineering tool 600 so as to be regarded as the virtual channels 12i, 12j, 12k, 12l of the virtual unit 4A. Further, in the second subordinate unit 43, the slave unit address 3 and the second rank of the representative unit priority order described later are set.
  • the virtual unit 4A is recognized by the CPU unit 2 and the master unit 3 as one slave unit having 12 channels.
  • the virtual channels 12a to 12l of the virtual unit 4A are collectively referred to as the virtual channel 12.
  • the 2nd subordinate channels 438a, 438b, 438c, and 438d are generically called the 2nd subordinate channel 438.
  • FIG. 17A An outline of the hardware configuration of system 1A is shown in FIG. 17A.
  • the hardware configurations of the CPU unit 2 and the master unit 3 are the same as those shown in FIG.
  • the hardware configuration of the representative unit 40 of the virtual unit 4A is similar to that of the representative unit 40 of the virtual unit 4 shown in FIG.
  • the hardware configuration of the first subordinate unit 42 of the virtual unit 4A is shown in FIG. 17B.
  • the first subordinate unit 42 includes a processor 420, a first network interface 421, a second network interface 422, a storage unit 423, a memory 424, a channel selector 425, an AD converter 426, and an internal bus 427.
  • the hardware configuration of the second subordinate unit 43 is shown in FIG. 17C.
  • the second subordinate unit 43 includes a processor 430, a first network interface 431, a second network interface 432, a storage unit 433, a memory 434, a channel selector 435, an AD converter 426, and an internal bus 437.
  • the hardware configuration of the first subordinate unit 42 shown in FIG. 17B and the hardware configuration of the second subordinate unit 43 shown in FIG. 17C are similar to the configuration of the subordinate unit 41 shown in FIG. Therefore, detailed description of the hardware configuration of each unit is omitted.
  • the master unit 3 receives the first representative unit 40, the first dependent unit 42, and the second dependent unit 43 of the virtual unit 4A from the network interface 34 via the communication path 134 and the switching hub 15. It is connected to the network interfaces 401, 421, 431.
  • the switching hub 15 is a hub capable of switching the connection between the master unit 3, the representative unit 40, the first subordinate unit 42, and the second subordinate unit 43.
  • FIG. 18 shows the channel allocation information 220 in the virtual unit 4A.
  • a representative unit priority is set in the channel allocation information 220.
  • This representative unit priority is the order in which the actual slave unit having the highest representative unit priority is operated as the representative unit 40.
  • the representative unit priority is set not only for the representative unit 40 but also for the first dependent unit 42 or the second dependent unit 43.
  • the slave unit having the slave unit address 1 is set to the highest priority, that is, the first rank. Therefore, the slave unit having the slave unit address 1 shown in FIG. 16 is operated as the representative unit 40.
  • the actual slave unit set as the first subordinate unit 42 is an example of the third slave unit according to the present invention.
  • the actual slave unit set as the second subordinate unit 43 is an example of the fourth slave unit according to the present invention.
  • the dependent unit with the next highest representative unit priority is operated as a new representative unit.
  • the second highest representative unit priority is set. Therefore, when the representative unit 40 malfunctions, the second subordinate unit 43 having the slave unit address 3 shown in FIG. 16 is operated as a new representative unit. As a result, the representative unit 40 is treated as a new subordinate unit. Therefore, the virtual unit 4A can function as one slave unit including the second subordinate unit 43 that is a new representative unit, the first subordinate unit 42, and the representative unit 40 that is a new subordinate unit.
  • This channel allocation information 220 is set by the user on the setting screen of the engineering tool 600 shown in FIG. 4, like the channel allocation information 200 shown in FIG.
  • the channel allocation information 220 is stored in the storage unit 32 of the master unit 3 shown in FIG. 3 from the engineering tool 600. Then, when the system 1A shown in FIG. 16 is activated, the data is expanded from the storage unit 32 of the master unit 3 shown in FIG.
  • This representative unit changing process is performed by the process setting unit 623 of the engineering tool 600 shown in FIG. 19B as a program for causing the virtual unit 4A to operate the representative unit changing process. It is stored in the storage unit 423 and the storage unit 433 of the second subordinate unit 43 shown in FIG. 17C.
  • This program is read into the memory 424 from the storage unit 423 of the first subordinate unit 42 shown in FIG. 17B when the system 1A is activated, and is executed by the processor 420.
  • this program is read from the storage unit 433 of the second subordinate unit 43 shown in FIG. 17C to the memory 434 and executed by the processor 430.
  • step S20 When the first subordinate unit 42 and the second subordinate unit 43 detect the current malfunction of the representative unit 40 (step S20; YES), the first subordinate unit 42 and the second subordinate unit 43 operate the switching hub 15. The current priority order of the representative unit is acquired (step S21). When the first subordinate unit 42 and the second subordinate unit 43 have not detected the current malfunction of the representative unit 40 (step S20; NO), the first subordinate unit 42 and the second subordinate unit 43 are To continue the operation.
  • the first subordinate unit 42 and the second subordinate unit 43 compare their own priorities with the priorities of the current representative unit 40.
  • the dependent unit having the next highest priority of the current representative unit 40 becomes the new representative unit.
  • the priority of the representative unit 40 is first.
  • the second highest priority is the second, and the second subordinate unit 43 is set. Therefore, the second subordinate unit 43 is selected as a new representative unit (step S22).
  • the second subordinate unit 43 selected as the new representative unit invalidates the current operation of the representative unit 40 (step S23).
  • the second subordinate unit 43 changes the priority order of itself, the representative unit 40, and the representative units set in the first subordinate unit 42. For example, as shown in FIG. 20, the second subordinate unit 43 changes its priority to the first, the priority of the first subordinate unit 42 to the second, and the representative unit 40 to the third. To do.
  • the second subordinate unit 43 collects the changed priority information of the representative units as priority change information.
  • the second subordinate unit 43 transmits this priority order change information to the master unit 3.
  • the master unit 3 updates the channel allocation information 220 shown in FIG. 18, which is expanded in the memory 33 shown in FIG. 2, based on the content of the received priority change information (step S24).
  • FIG. 21 shows an example of the updated channel allocation information 220.
  • the master unit 3 recognizes the second subordinate unit 43 as a new representative unit. After that, the master unit 3 transmits the data received from the CPU unit 2 to the second subordinate unit 43.
  • the second dependent unit 43 since the representative unit 40, which has become a new dependent unit, is malfunctioning, the second dependent unit 43 cannot acquire the input value data from the representative unit 40. Therefore, the second subordinate unit 43 transmits a predetermined default value, 0, an arbitrary value, etc. to the master unit 3 as the input value data from the representative unit 40.
  • the dependent unit is operated as a new representative unit.
  • the virtual unit 4A can be configured with the subordinate unit as a new representative unit and the representative unit 40 as a new subordinate unit. Therefore, even if the representative unit 40 malfunctions, the virtual unit 4A can be operated. Further, the number of virtual channels 12 of the virtual unit 4A is not changed. Therefore, the control program installed in the CPU unit 2 can be continuously used without any change. Thereby, there is an effect that the number of steps for changing the control program introduced into the CPU unit 2 can be reduced.
  • the engineering tool 600 and the placement setting tool 710 are installed in the PC 6 shown in FIG. Not limited to this, the engineering tool 600 and the placement setting tool 710 may be installed in different PCs 6. Further, in the above-described first and second embodiments, the engineering tool 600 and the placement setting tool 710 are installed in the PC 6. The invention is not limited to this, and any computer, computer system, or device that can operate the engineering tool 600 and the placement setting tool 710 may be used.
  • the operation parameters 211 and 212 for setting the operation on the virtual channel 12 of the virtual unit 4 are created by the operation parameter creation unit 621 of the engineering tool 600 shown in FIG.
  • the communication parameters 213 and 214 are created by the communication parameter creating unit 622 shown in FIG.
  • the functions of the operation parameter creation unit 621 and the communication parameter creation unit 622 are not limited to this, and may be one operation setting parameter creation unit.
  • the virtual unit 4 is provided with one subordinate unit 41.
  • the virtual unit 4 may be provided with a plurality of subordinate units 41.
  • the first network interface 411 of each subordinate unit 41 is connected to the second network interface 402 of the representative unit 40 via the communication path.
  • each subordinate unit 41 can be controlled by pass-through from the representative unit 40.
  • each processing executed by the engineering tool 600, the placement setting tool 710, and the CPU unit 2 is a program, and for example, a computer-readable CD-ROM (Compact Disc Read Only Memory), DVD-ROM ( It may be stored in a recording medium such as Digital Versatile Disc Read Only Memory) so that it can be distributed.
  • a computer-readable CD-ROM Compact Disc Read Only Memory
  • DVD-ROM It may be stored in a recording medium such as Digital Versatile Disc Read Only Memory
  • the present invention can be suitably used for a PLC unit.
  • the application to the case where the slave unit is replaced is suitable.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Programmable Controllers (AREA)
  • General Factory Administration (AREA)

Abstract

This engineering tool is provided with: a representative unit setting section (602) which sets a first slave unit as a representative unit for transmitting and receiving control data for a device to be controlled to and from an external unit, and also sets a second slave unit as a subordinate unit for transmitting and receiving control data for the device to be controlled to and from the external unit via the representative unit; a channel allocation section (603) which allocates a series of channels to the channels of the representative unit and the subordinate unit; a transmission/reception setting section (605) which sets data reception information for distributing reception data received from the external unit to the representative unit and the subordinate unit, or sets data transmission information for the representative unit to transmit transmission data of both the subordinate unit and the representative unit to the external unit; and a virtual unit setting section (601) which sets the representative unit and the subordinate unit as virtual units that can be replaced with other slave units.

Description

エンジニアリングツール、コンピュータシステム、システム、方法及びプログラムEngineering tools, computer systems, systems, methods and programs
 本発明は、エンジニアリングツール、コンピュータシステム、システム、方法及びプログラムに関する。 The present invention relates to an engineering tool, a computer system, a system, a method and a program.
 工場の生産ラインでは、プログラマブルコントローラ(Programmable Logic Controller:以下、PLCという。)ユニットを使用したシステムにより、生産ライン装置の制御を行っていることが多い。PLCユニットを使用したシステムでは、CPU(Central Processing Unit)ユニットで実行される制御プログラムに従い、スレーブユニットへの入出力が行われる。このCPUユニットからスレーブユニットへの入出力により、スレーブユニットの各チャンネルに接続された生産ライン装置のセンサ又はモータを含む機器の制御が行われる。 In a factory production line, a system using a programmable controller (Programmable Logic Controller: PLC) unit is often used to control the production line device. In a system using a PLC unit, input / output to / from a slave unit is performed in accordance with a control program executed by a CPU (Central Processing Unit) unit. Input / output from the CPU unit to the slave unit controls equipment including a sensor or a motor of a production line device connected to each channel of the slave unit.
 生産ラインの変更時には、生産ライン装置からスレーブユニットまでの距離が変わる場合がある。生産ライン装置からスレーブユニットまでの距離が変わると、例えば、生産ラインの変更前には、1台のスレーブユニットに接続されている生産ライン装置の機器を、生産ラインの変更後には、1台のスレーブユニットに全て接続できない場合がある。このような場合には、1台のスレーブユニットを複数台のスレーブユニットに置き換え、複数台のスレーブユニットの各チャンネルに、生産ライン装置の一部の機器を分けて接続する。 When changing the production line, the distance from the production line device to the slave unit may change. When the distance from the production line device to the slave unit changes, for example, the equipment of the production line device connected to one slave unit before the production line is changed and the equipment of the production line device connected to the slave unit is changed to one after the production line is changed. It may not be possible to connect to all slave units. In such a case, one slave unit is replaced with a plurality of slave units, and some devices of the production line device are separately connected to each channel of the plurality of slave units.
 複数台のスレーブユニットの各チャンネルに、生産ライン装置の一部の機器を分けて接続した場合、複数台のスレーブユニットを連携動作させて、1つの機能を実現することとなる。例えば、特許文献1には、複数台のスレーブユニットを連携動作させて1つの機能を実行するための、シーケンスプログラムを作成するプログラム作成装置の発明が記載されている。 If a part of the production line equipment is connected to each channel of multiple slave units separately, multiple slave units will operate in cooperation to realize one function. For example, Patent Document 1 discloses an invention of a program creation device that creates a sequence program for operating a plurality of slave units in cooperation to execute one function.
特開2008-146385号公報JP 2008-146385A
 特許文献1に記載されたプログラム作成装置は、スレーブユニットの設定画面において複数台のスレーブユニットを1台の仮想ユニットに見立て、ユーザに設定操作を行わせる。そして、このプログラム作成装置は、設定された内容とテンプレートとなるシーケンスプログラムとを元に、CPUユニットに各ユニットへの設定を行わせるためのシーケンスプログラムを作成する。 The program creation device described in Patent Document 1 allows a user to perform a setting operation by simulating a plurality of slave units as one virtual unit on the slave unit setting screen. Then, this program creating device creates a sequence program for causing the CPU unit to set each unit based on the set contents and the sequence program serving as the template.
 このシーケンスプログラムには、各スレーブユニットのバッファメモリのメモリアドレスが設定されている。このメモリアドレスは、設定値の設定先、CPUユニットの内部メモリへ格納する値の取得先等として用いられている。 -The memory address of the buffer memory of each slave unit is set in this sequence program. This memory address is used as a setting value setting destination, an acquisition destination of a value to be stored in the internal memory of the CPU unit, and the like.
 このため、複数台のスレーブユニットの何れか、または全てを他のスレーブユニットに置き換える場合には、シーケンスプログラムに設定されたバッファメモリのメモリアドレスを、置き換える他のスレーブユニットのバッファメモリのメモリアドレスに変更する必要がある。このため、スレーブユニットを置き換える際の作業に手間と時間がかかるという問題がある。 Therefore, when replacing any or all of the multiple slave units with another slave unit, the memory address of the buffer memory set in the sequence program is replaced with the memory address of the buffer memory of the other slave unit to be replaced. Need to change. For this reason, there is a problem that the work for replacing the slave unit takes time and effort.
 本発明はこれらの課題を解決するものであり、簡易な作業で1台のスレーブユニットを複数台のスレーブユニットに置き換えることができるエンジニアリングツール、コンピュータシステム、システム、方法及びプログラムを提供することを目的とする。 The present invention solves these problems, and an object thereof is to provide an engineering tool, a computer system, a system, a method, and a program that can replace one slave unit with a plurality of slave units by a simple operation. And
 上記目的を達するために、本発明に係るエンジニアリングツールは、代表ユニット設定部と、チャンネル割り付け部と、送受信設定部と、仮想ユニット設定部とを備える。代表ユニット設定部は、制御対象機器を接続するためのチャンネルを備える第1スレーブユニットを、制御対象機器を制御するためのデータを外部ユニットと送受信する代表ユニットとして設定し、制御対象機器を接続するためのチャンネルを備える第2スレーブユニットを、代表ユニットを介して制御対象機器を制御するためのデータを外部ユニットと送受信する従属ユニットとして設定する。チャンネル割り付け部は、一連するチャンネルを予め定めたチャンネル割り付け情報に基づいて、代表ユニットのチャンネルと、従属ユニットのチャンネルとに、一連するチャンネルを割り付ける。送受信設定部は、外部ユニットから代表ユニットが受信した受信データを、自身と従属ユニットとに振り分けるためのデータ受信情報の設定、また、代表ユニットが従属ユニットから自身へ送信された送信データと自身の送信データとを共に、外部ユニットへ送信するためのデータ送信情報を設定する。仮想ユニット設定部は、代表ユニットと従属ユニットとを、一連のチャンネルの数と同一なチャンネルの数を備える他のスレーブユニットと置き換えることが可能な仮想ユニットとして設定する。 In order to achieve the above object, the engineering tool according to the present invention includes a representative unit setting unit, a channel allocating unit, a transmission / reception setting unit, and a virtual unit setting unit. The representative unit setting unit sets the first slave unit having a channel for connecting the controlled device as a representative unit that transmits / receives data for controlling the controlled device to / from an external unit, and connects the controlled device. The second slave unit having a channel for setting is set as a subordinate unit that transmits / receives data for controlling the control target device to / from the external unit via the representative unit. The channel allocating unit allocates a series of channels to the channel of the representative unit and the channel of the subordinate unit based on the channel allocation information that defines the series of channels in advance. The transmission / reception setting unit sets the data reception information for distributing the reception data received by the representative unit from the external unit to itself and the subordinate unit, and the transmission data transmitted from the subordinate unit to the representative unit to the self and the subordinate unit. Together with the transmission data, the data transmission information for transmitting to the external unit is set. The virtual unit setting unit sets the representative unit and the dependent units as virtual units that can be replaced with other slave units having the same number of channels as the series of channels.
 この発明によれば、外部ユニット中の制御プログラムを書き換えることなく、エンジニアリングツールにより、複数台のスレーブユニットを1台の仮想ユニットとして動作させる設定ができる。このため、簡易な作業で1台のスレーブユニットを複数台のスレーブユニットに置き換えることができる。 According to the present invention, it is possible to set a plurality of slave units to operate as one virtual unit by an engineering tool without rewriting the control program in the external unit. Therefore, one slave unit can be replaced with a plurality of slave units by a simple operation.
実施の形態1におけるPLCユニットシステムの構成図Configuration diagram of a PLC unit system according to the first embodiment 実施の形態1におけるCPUユニットとマスタユニットのハードウエア構成の一例を示すブロック図Block diagram showing an example of the hardware configuration of the CPU unit and the master unit in the first embodiment 実施の形態1における仮想ユニットのハードウエア構成の一例を示すブロック図FIG. 3 is a block diagram showing an example of a hardware configuration of a virtual unit according to the first embodiment. 実施の形態1におけるエンジニアリングツールの概要を示す図The figure which shows the outline of the engineering tool in Embodiment 1. 実施の形態1におけるPCのハードウエア構成の一例を示すブロック図Block diagram showing an example of the hardware configuration of the PC in the first embodiment 実施の形態1におけるエンジニアリングツール上でのチャンネル割り付け情報の設定画面を示す図FIG. 3 is a diagram showing a setting screen of channel allocation information on the engineering tool in the first embodiment 実施の形態1におけるエンジニアリングツール上でのデータ受信情報の設定画面を示す図FIG. 3 is a diagram showing a setting screen of data reception information on the engineering tool in the first embodiment 実施の形態1におけるエンジニアリングツール上でのデータ送信情報の設定画面を示す図The figure which shows the setting screen of the data transmission information on the engineering tool in Embodiment 1. 実施の形態1におけるデータ受信情報とデータ送信情報を自動生成するためのデータの構成の一例を示す図The figure which shows an example of the structure of the data for automatically generating the data reception information and the data transmission information in Embodiment 1. 実施の形態1におけるデータ受信情報とデータ送信情報を自動生成するためのデータの構成の一例を示す図The figure which shows an example of the structure of the data for automatically generating the data reception information and the data transmission information in Embodiment 1. 実施の形態1におけるデータ受信情報とデータ送信情報を自動生成するためのスレーブユニットAのデータの構成の一例を示す図The figure which shows an example of the data structure of the slave unit A for automatically generating the data reception information and the data transmission information in the first embodiment. 実施の形態1におけるデータ受信情報とデータ送信情報を自動生成するためのスレーブユニットBのデータの構成の一例を示す図The figure which shows an example of the data structure of the slave unit B for automatically generating the data reception information and the data transmission information in the first embodiment. 実施の形態1における自動生成されたデータ受信情報のデータの構成の一例を示す図The figure which shows an example of the data structure of the data reception information automatically produced | generated in Embodiment 1. 実施の形態1における自動生成されたデータ送信情報のデータの構成の一例を示す図The figure which shows an example of the data structure of the data transmission information automatically produced | generated in Embodiment 1. 実施の形態1における仮想ユニットの動作設定のデータの構成の一例を示す図FIG. 3 is a diagram showing an example of a configuration of data of operation setting of a virtual unit according to the first embodiment 実施の形態1における動作パラメータと通信パラメータを作成するエンジニアリングツールの概要を示す図The figure which shows the outline of the engineering tool which creates the operation parameter and the communication parameter in Embodiment 1. 実施の形態1における代表ユニットの動作パラメータの構成の一例を示す図FIG. 5 is a diagram showing an example of a configuration of operation parameters of a representative unit according to the first embodiment. 実施の形態1における従属ユニットの動作パラメータの構成の一例を示す図FIG. 3 is a diagram showing an example of a configuration of operation parameters of a slave unit according to the first embodiment. 実施の形態1における代表ユニットの通信パラメータの構成の一例を示す図FIG. 3 is a diagram showing an example of a configuration of communication parameters of a representative unit according to the first embodiment. 実施の形態1における従属ユニットの通信パラメータの構成の一例を示す図FIG. 3 is a diagram showing an example of a configuration of communication parameters of a dependent unit according to the first embodiment. 実施の形態1における配置設定ツールの画面の構成例を示す図The figure which shows the structural example of the screen of the arrangement | positioning setting tool in Embodiment 1. 実施の形態1における所有するスレーブユニットの情報の一例を示す図The figure which shows an example of the information of the slave unit which it has in Embodiment 1. 実施の形態1における配置設定ツールの概要を示す図The figure which shows the outline of the arrangement setting tool in Embodiment 1. 実施の形態1におけるエンジニアリングツールからのプログラムの設定を行う処理設定部を示す図FIG. 3 is a diagram showing a process setting unit that sets a program from an engineering tool according to the first embodiment. 実施の形態1における従属ユニットの動作不良発生時及び回復時の制御処理のフローチャートFlowchart of control processing at the time of malfunction occurrence and recovery of the subordinate unit in the first embodiment 実施の形態2におけるPLCユニットのシステム構成図System configuration diagram of a PLC unit according to the second embodiment 実施の形態2におけるPLCユニットのハードウエア構成の一例を示すブロック図Block diagram showing an example of a hardware configuration of a PLC unit in the second embodiment 実施の形態2における第1従属ユニットのハードウエア構成の一例を示すブロック図FIG. 3 is a block diagram showing an example of a hardware configuration of a first subordinate unit in the second embodiment. 実施の形態2における第2従属ユニットのハードウエア構成の一例を示すブロック図FIG. 3 is a block diagram showing an example of a hardware configuration of a second subordinate unit in the second embodiment. 実施の形態2における仮想ユニットと実際のユニットのチャンネル割り付け方法及び代表ユニットの指定方法の一例を示す図FIG. 6 is a diagram showing an example of a channel allocation method for virtual units and actual units and a representative unit designation method according to the second embodiment 実施の形態2における代表ユニット変更処理のフローチャートFlowchart of representative unit change processing according to the second embodiment 実施の形態2におけるエンジニアリングツールからのプログラムの設定を行う処理設定部を示す図FIG. 6 is a diagram showing a process setting unit that sets a program from an engineering tool according to the second embodiment. 実施の形態2における代表ユニットを変更した場合の仮想ユニットの概要を示す図FIG. 10 is a diagram showing an outline of a virtual unit when the representative unit is changed in the second embodiment. 実施の形態2における代表ユニットを変更した場合の、仮想ユニットと実際のユニットのチャンネル割り付け方法及び代表ユニットの指定方法の一例を示す図FIG. 6 is a diagram showing an example of a channel allocation method for virtual units and actual units and a representative unit designation method when the representative unit according to the second embodiment is changed.
(実施の形態1)
 以下に、実施の形態1に係るエンジニアリングツールについて説明する。エンジニアリングツールは、複数台のスレーブユニットを1台の仮想ユニットとして動作させる設定をすることができるツールである。
(Embodiment 1)
The engineering tool according to the first embodiment will be described below. The engineering tool is a tool that can be set to operate a plurality of slave units as one virtual unit.
 図1は、エンジニアリングツールにより設定される仮想ユニットを備えるシステム1の構成を示す図である。システム1は、制御プログラムを実行するCPUユニット2と、CPUユニット2をネットワークに接続させるマスタユニット3と、マスタユニット3を介してCPUユニット2とデータのやりとりを実行できる仮想ユニット4とを備えている。 1 is a diagram showing a configuration of a system 1 including a virtual unit set by an engineering tool. The system 1 includes a CPU unit 2 that executes a control program, a master unit 3 that connects the CPU unit 2 to a network, and a virtual unit 4 that can exchange data with the CPU unit 2 via the master unit 3. There is.
 CPUユニット2が実行する制御プロプログラムは、マスタユニット3と仮想ユニット4とをそれぞれ制御するプログラムである。マスタユニット3は、CPUユニット2をネットワークに接続させるためのユニットである。このCPUユニット2は、直接ネットワークとのやりとりをすることができない。このため、CPUユニット2は、マスタユニット3を介してネットワークに接続される。また、CPUユニット2には、PC(Personal Computer)6が接続される。このPC6には、エンジニアリングツールが備えられている。PC6及びエンジニアリングツールについては、詳細は後述する。 The control program executed by the CPU unit 2 is a program for controlling the master unit 3 and the virtual unit 4, respectively. The master unit 3 is a unit for connecting the CPU unit 2 to the network. This CPU unit 2 cannot directly communicate with the network. Therefore, the CPU unit 2 is connected to the network via the master unit 3. A PC (Personal Computer) 6 is connected to the CPU unit 2. This PC 6 is equipped with an engineering tool. Details of the PC 6 and the engineering tool will be described later.
 仮想ユニット4は、ネットワーク用の通信経路131を介してマスタユニット3に接続される代表ユニット40と、代表ユニット40に通信経路130を介して接続される従属ユニット41を備える。代表ユニット40と従属ユニット41は、それぞれスレーブユニットである。ここで、仮想ユニット4は、例えば、1台の8チャンネルを備えるスレーブユニットを、2台の4チャンネルを持つスレーブユニットに置き換えるための仮想ユニット4である。 The virtual unit 4 includes a representative unit 40 connected to the master unit 3 via a communication path 131 for the network, and a dependent unit 41 connected to the representative unit 40 via a communication path 130. The representative unit 40 and the subordinate unit 41 are slave units, respectively. Here, the virtual unit 4 is, for example, a virtual unit 4 for replacing one slave unit having eight channels with two slave units having four channels.
 代表ユニット40は、図1に示すように、4つの代表チャンネル408a、408b、408c、408dを備えている。代表チャンネル408a、408b、408c、408dは、後述するエンジニアリングツール600によって、仮想ユニット4の持つ仮想チャンネル12a、12b、12c、12dと見なされるように設定される。 The representative unit 40 includes four representative channels 408a, 408b, 408c, 408d as shown in FIG. The representative channels 408a, 408b, 408c, 408d are set by the engineering tool 600 described later so as to be regarded as the virtual channels 12a, 12b, 12c, 12d of the virtual unit 4.
 従属ユニット41は、4つの従属チャンネル418a、418b、418c、418dを備えている。従属チャンネル418a、418b、418c、418dは、後述するエンジニアリングツール600によって、仮想ユニット4の持つ仮想チャンネル12e、12f、12g、12hと見なされるように設定される。エンジニアリングツール600による設定により、仮想ユニット4は、CPUユニット2とマスタユニット3から見て、8つのチャンネルを備える1台のスレーブユニットとして認識される。 The subordinate unit 41 includes four subordinate channels 418a, 418b, 418c, 418d. The dependent channels 418a, 418b, 418c, 418d are set by the engineering tool 600, which will be described later, so as to be regarded as the virtual channels 12e, 12f, 12g, 12h of the virtual unit 4. By the setting by the engineering tool 600, the virtual unit 4 is recognized as one slave unit having eight channels when viewed from the CPU unit 2 and the master unit 3.
 仮想ユニット4の持つ仮想チャンネル12a~12hには、生産ライン装置5a、5b、5c、5d、5e、5f、5g、5hが接続されている。この生産ライン装置5a~5hには、センサ又はモータを含む各種機器が備えられている。仮想ユニット4は、仮想チャンネル12a~12hを経由して、生産ライン装置5a~5hの持つ各種機器を制御する。なお、生産ライン装置5a~5hの持つ各種機器は、本発明に係る制御対象機器の一例である。 The production line devices 5a, 5b, 5c, 5d, 5e, 5f, 5g, and 5h are connected to the virtual channels 12a to 12h of the virtual unit 4. The production line devices 5a to 5h are equipped with various devices including a sensor or a motor. The virtual unit 4 controls various devices of the production line devices 5a to 5h via the virtual channels 12a to 12h. The various devices that the production line devices 5a to 5h have are examples of control target devices according to the present invention.
 以下、代表ユニット40が持つ代表チャンネル408a、408b、408c、408dを総称して、代表チャンネル408と呼ぶ。また、従属ユニット41が持つ従属チャンネル418a、418b、418c、418dを総称して、従属チャンネル418と呼ぶ。仮想ユニット4の持つ仮想チャンネル12a~12hを総称して、仮想チャンネル12と呼ぶ。また、生産ライン装置5a~5hを総称して、生産ライン装置5と呼ぶ。 Hereinafter, the representative channels 408a, 408b, 408c, 408d of the representative unit 40 are collectively referred to as the representative channel 408. Further, the subordinate channels 418a, 418b, 418c, 418d of the subordinate unit 41 are collectively referred to as subordinate channels 418. The virtual channels 12a to 12h included in the virtual unit 4 are collectively referred to as a virtual channel 12. The production line devices 5a to 5h are collectively referred to as the production line device 5.
 マスタユニット3は、仮想ユニット4を介して生産ライン装置5を制御する場合、通信経路131を介して代表ユニット40にデータを送信する。 When controlling the production line device 5 via the virtual unit 4, the master unit 3 transmits data to the representative unit 40 via the communication path 131.
 代表ユニット40は、マスタユニット3から受信したデータを、代表ユニット40自身が担当するデータであるか、従属ユニット41が担当するデータであるかを判別する。代表ユニット40は、自身が担当すると判別したデータ、即ち、仮想チャンネル12a、12b、12c、12dを介して生産ライン装置5の制御に使用すべきデータを、自身の代表チャンネル408a、408b、408c、408dから仮想チャンネル12a、12b、12c、12dへ出力する。 The representative unit 40 determines whether the data received from the master unit 3 is data which the representative unit 40 itself is in charge of or data which the subordinate unit 41 is in charge of. The representative unit 40 determines the data determined to be in charge of itself, that is, the data to be used for controlling the production line device 5 via the virtual channels 12a, 12b, 12c, 12d, by the representative units 408a, 408b, 408c, It outputs from 408d to the virtual channels 12a, 12b, 12c, 12d.
 代表ユニット40は、従属ユニット41が担当すると判別したデータ、即ち、仮想チャンネル12e、12f、12g、12hを介して生産ライン装置5の制御に使用すべきデータを従属ユニット41に送信する。従属ユニット41は、代表ユニット40から送信されてきたデータを、自身の従属チャンネル418a、418b、418c、418dから仮想チャンネル12e、12f、12g、12hへ出力する。 The representative unit 40 transmits to the subordinate unit 41 the data determined to be in charge of the subordinate unit 41, that is, the data to be used for controlling the production line device 5 via the virtual channels 12e, 12f, 12g, 12h. The subordinate unit 41 outputs the data transmitted from the representative unit 40 from its own subordinate channels 418a, 418b, 418c, 418d to the virtual channels 12e, 12f, 12g, 12h.
 生産ライン装置5の出力データを仮想ユニット4が受信し、仮想ユニット4からマスタユニット3へ送信する場合も同様である。 The same applies when the virtual unit 4 receives the output data of the production line device 5 and transmits it from the virtual unit 4 to the master unit 3.
 具体的には、従属ユニット41は、自身が担当する仮想チャンネル12e、12f、12g、12hを介して、生産ライン装置5から送信されてきたデータを、自身の従属チャンネル418a、418b、418c、418dを介して取得し、代表ユニット40に送信する。代表ユニット40は、仮想チャンネル12a、12b、12c、12dを介して、生産ライン装置5から送信されてきたデータを、自身の代表チャンネル408a、408b、408c、408dを介して取得する。代表ユニット40は、仮想チャンネル12a、12b、12c、12dを介して受信したデータと、従属ユニット41から受信したデータとをまとめ、仮想ユニット4の入力データとしてマスタユニット3に送信する。 Specifically, the subordinate unit 41 transmits the data transmitted from the production line device 5 via the virtual channels 12e, 12f, 12g, and 12h which it is in charge of, to its subordinate channels 418a, 418b, 418c, and 418d. And is transmitted to the representative unit 40. The representative unit 40 acquires the data transmitted from the production line device 5 via the virtual channels 12a, 12b, 12c, and 12d via its own representative channels 408a, 408b, 408c, and 408d. The representative unit 40 collects the data received via the virtual channels 12a, 12b, 12c, 12d and the data received from the subordinate unit 41, and transmits the data as input data of the virtual unit 4 to the master unit 3.
 CPUユニット2は、自発的に、仮想ユニット4を介して、生産ライン装置5の出力データを取得することを要求する場合、データ取得要求を、マスタユニット3から代表ユニット40に送信する。代表ユニット40は、データ取得要求を従属ユニット41に送信する。このデータ取得要求に従い、従属ユニット41は、仮想チャンネル12e、12f、12g、12hを介して受信したデータを代表ユニット40に送信する。代表ユニット40は、仮想チャンネル12a、12b、12c、12dを介して受信したデータと従属ユニット41から受信したデータとを、データ取得要求に対する応答として、マスタユニット3に返送する。マスタユニット3は、受信したデータをCPUユニット2に送信する。 When the CPU unit 2 voluntarily requests to acquire the output data of the production line device 5 via the virtual unit 4, the CPU unit 2 transmits a data acquisition request from the master unit 3 to the representative unit 40. The representative unit 40 transmits the data acquisition request to the subordinate unit 41. According to this data acquisition request, the subordinate unit 41 transmits the data received via the virtual channels 12e, 12f, 12g, 12h to the representative unit 40. The representative unit 40 returns the data received via the virtual channels 12a, 12b, 12c, 12d and the data received from the subordinate unit 41 to the master unit 3 as a response to the data acquisition request. The master unit 3 transmits the received data to the CPU unit 2.
 CPUユニット2は、仮想ユニット4を1台のスレーブユニットとして認識している。このため、CPUユニット2は、マスタユニット3を経由して、代表ユニット40と従属ユニット41のそれぞれに個別にではなく、仮想ユニット4に対して1つの制御指示用の指示データを送信する。代表ユニット40は、受信した指示データに従って動作を行う。それと共に、代表ユニット40は、受信した指示データを、必要に応じて従属ユニット41に転送する。従属ユニット41は、指示データを代表ユニット40から受信すると、指示データに従って動作を行う。この指示データは、詳細は後述するが、例えば、図7に示す設定変更要求フラグである。受信した指示データが設定変更要求フラグの場合、代表ユニット40と従属ユニット41はそれぞれ、受信した設定変更要求フラグの内容に従って、自身の設定を変更する。 -The CPU unit 2 recognizes the virtual unit 4 as one slave unit. Therefore, the CPU unit 2 transmits one instruction data for control instruction to the virtual unit 4 via the master unit 3 not to the representative unit 40 and the dependent unit 41 individually. The representative unit 40 operates according to the received instruction data. At the same time, the representative unit 40 transfers the received instruction data to the subordinate unit 41 as needed. Upon receiving the instruction data from the representative unit 40, the subordinate unit 41 operates according to the instruction data. Although details will be described later, this instruction data is, for example, a setting change request flag shown in FIG. 7. When the received instruction data is the setting change request flag, each of the representative unit 40 and the subordinate unit 41 changes its own setting according to the contents of the received setting change request flag.
 代表ユニット40と従属ユニット41が、マスタユニット3を経由してCPUユニット2に状態表示用データを送信する動作も同様である。代表ユニット40と従属ユニット41とは、1台の仮想ユニット4として振舞い、代表ユニット40と従属ユニット41それぞれが個別に、CPUユニット2に状態表示用データを送信することはない。代表ユニット40が、自身の状態表示用データと従属ユニット41から自身に送信された状態表示用データとを纏め、1つの状態表示用データを生成する。代表ユニット40は、生成した1つの状態表示用データをマスタユニット3に送信する。なお、状態表示用データは、詳細は後述するが、例えば、図8に示す設定変更完了フラグ、エラー発生フラグ等である。具体的には、従属ユニット41は、自身の状態表示用データを代表ユニット40に送信する。代表ユニット40は、自身の状態表示用データと従属ユニット41から受信した状態表示用データとを、AND、ORといった論理演算を行って、1つの状態表示用データを生成し、CPUユニット2に送信する。 The same applies to the operation in which the representative unit 40 and the subordinate unit 41 transmit the status display data to the CPU unit 2 via the master unit 3. The representative unit 40 and the dependent unit 41 behave as one virtual unit 4, and the representative unit 40 and the dependent unit 41 do not individually transmit the status display data to the CPU unit 2. The representative unit 40 collects the status display data of itself and the status display data transmitted from the subordinate unit 41 to itself, and generates one status display data. The representative unit 40 transmits one piece of generated status display data to the master unit 3. The details of the status display data will be described later, but are, for example, the setting change completion flag and the error occurrence flag shown in FIG. Specifically, the subordinate unit 41 transmits its own status display data to the representative unit 40. The representative unit 40 performs logical operation such as AND and OR on the status display data of itself and the status display data received from the subordinate unit 41 to generate one status display data and transmits it to the CPU unit 2. To do.
 図2は、CPUユニット2とマスタユニット3のハードウエア構成の一例を示す図である。また、図3は、仮想ユニット4のハードウエア構成の一例を示す図である。まず、図2を参照して、CPUユニット2とマスタユニット3のハードウエアの一例を説明する。CPUユニット2は、プロセッサ20と、外部バスインターフェース21と、PCインターフェース22と、記憶部23と、メモリ24と、内部バス25とを備える。 FIG. 2 is a diagram showing an example of the hardware configuration of the CPU unit 2 and the master unit 3. 3 is a diagram showing an example of the hardware configuration of the virtual unit 4. First, an example of hardware of the CPU unit 2 and the master unit 3 will be described with reference to FIG. The CPU unit 2 includes a processor 20, an external bus interface 21, a PC interface 22, a storage unit 23, a memory 24, and an internal bus 25.
 プロセッサ20は、メモリ24上の制御プログラムを実行する。この制御プログラムは、プロセッサ20自身を制御すると共に、マスタユニット3及び仮想ユニット4の動作を制御する。外部バスインターフェース21は、通信経路132を介して、後述するマスタユニット3の外部バスインターフェース31に接続される。CPUユニット2は、外部バスインターフェース21を経由してマスタユニット3とデータを送受信する。 The processor 20 executes the control program on the memory 24. This control program controls the processor 20 itself and the operations of the master unit 3 and the virtual unit 4. The external bus interface 21 is connected to the external bus interface 31 of the master unit 3 described later via the communication path 132. The CPU unit 2 transmits / receives data to / from the master unit 3 via the external bus interface 21.
 PCインターフェース22には、PC6が接続される。このPC6には、後述するエンジニアリングツール600が備えられている。PCインターフェース22には、例えば、USB(Universal Serial Bus)インターフェースといったPC6とデータの送受信が可能なインターフェースを用いることができる。 The PC 6 is connected to the PC interface 22. The PC 6 is provided with an engineering tool 600 described later. As the PC interface 22, for example, an interface capable of transmitting / receiving data to / from the PC 6 such as a USB (Universal Serial Bus) interface can be used.
 記憶部23は、プロセッサ20が実行する制御プログラムとプロセッサ20が制御プログラムを実行する際に必要な各種データとを記憶している。記憶部23には、ROM(Read Only Memory)といった不揮発性の半導体メモリ、記憶媒体を用いることができる。 The storage unit 23 stores the control program executed by the processor 20 and various data required when the processor 20 executes the control program. For the storage unit 23, a nonvolatile semiconductor memory such as a ROM (Read Only Memory) or a storage medium can be used.
 メモリ24は、CPUユニット2の起動時に、記憶部23に記憶されている制御プログラムを読み込み、プロセッサ20に実行させることができるようにする記憶素子である。メモリ24には、RAM(Random Access Memory)といった揮発性または不揮発性の半導体メモリを用いることができる。内部バス25は、プロセッサ20と、外部バスインターフェース21と、PCインターフェース22と、記憶部23と、メモリ24とを接続する。 The memory 24 is a storage element that enables the processor 20 to read the control program stored in the storage unit 23 when the CPU unit 2 is activated. A volatile or non-volatile semiconductor memory such as a RAM (Random Access Memory) can be used as the memory 24. The internal bus 25 connects the processor 20, the external bus interface 21, the PC interface 22, the storage unit 23, and the memory 24.
 マスタユニット3は、データの伝送に特化した機能を有する点を除けば、CPUユニット2と類似の構成を有している。マスタユニット3は、プロセッサ30と、外部バスインターフェース31と、記憶部32と、メモリ33と、ネットワークインターフェース34と、内部バス35とを備える。 The master unit 3 has a configuration similar to that of the CPU unit 2 except that it has a function specialized for data transmission. The master unit 3 includes a processor 30, an external bus interface 31, a storage unit 32, a memory 33, a network interface 34, and an internal bus 35.
 プロセッサ30、記憶部32、メモリ33は、データ伝送の機能を実現する点を除けば、プロセッサ20、記憶部23、メモリ24と同様の機能を備える。外部バスインターフェース31は、通信経路132を介して、CPUユニット2の外部バスインターフェース21に接続される。外部バスインターフェース31と外部バスインターフェース21は、互いにデータを送受信する。ネットワークインターフェース34は、通信経路131を介して仮想ユニット4の第1ネットワークインターフェース401に接続される。ネットワークインターフェース34と第1ネットワークインターフェース401は、互いにデータを送受信することができる。 The processor 30, the storage unit 32, and the memory 33 have the same functions as the processor 20, the storage unit 23, and the memory 24, except that the data transmission function is realized. The external bus interface 31 is connected to the external bus interface 21 of the CPU unit 2 via the communication path 132. The external bus interface 31 and the external bus interface 21 send and receive data to and from each other. The network interface 34 is connected to the first network interface 401 of the virtual unit 4 via the communication path 131. The network interface 34 and the first network interface 401 can send and receive data to and from each other.
 次に、仮想ユニット4のハードウエア構成の一例を、図3を参照して説明する。仮想ユニット4の代表ユニット40は、プロセッサ400と、第1ネットワークインターフェース401と、第2ネットワークインターフェース402と、記憶部403と、メモリ404と、チャンネルセレクタ405と、AD(Analog-to-Digital)コンバータ406と、内部バス407とを備える。 Next, an example of the hardware configuration of the virtual unit 4 will be described with reference to FIG. The representative unit 40 of the virtual unit 4 includes a processor 400, a first network interface 401, a second network interface 402, a storage unit 403, a memory 404, a channel selector 405, and an AD (Analog-to-Digital) converter. 406 and an internal bus 407.
 プロセッサ400は、CPUユニット2から受信した制御指示用の指示データに基づいて、後述するメモリ404上の各種処理のプログラムを実行する。第1ネットワークインターフェース401は、図2に示すように、通信経路131を介して、マスタユニット3のネットワークインターフェース34と接続されている。このため、代表ユニット40は、マスタユニット3のネットワークインターフェース34を介して、CPUユニット2から送信される制御指示用の指示データを、第1ネットワークインターフェース401で受信する。また、代表ユニット40は、第1ネットワークインターフェース401から、マスタユニット3のネットワークインターフェース34を介して、CPUユニット2へ各種データを送信する。 The processor 400 executes various processing programs on the memory 404, which will be described later, based on the instruction data for control instruction received from the CPU unit 2. As shown in FIG. 2, the first network interface 401 is connected to the network interface 34 of the master unit 3 via the communication path 131. Therefore, the representative unit 40 receives the instruction data for control instruction transmitted from the CPU unit 2 via the network interface 34 of the master unit 3 at the first network interface 401. The representative unit 40 also transmits various data from the first network interface 401 to the CPU unit 2 via the network interface 34 of the master unit 3.
 図3に示すように、代表ユニット40の第2ネットワークインターフェース402は、通信経路130を介して、従属ユニット41の第1ネットワークインターフェース411に接続されている。このため、代表ユニット40は、第2ネットワークインターフェース402から従属ユニット41へデータを送信する。また、代表ユニット40は、従属ユニット41からのデータを、第2ネットワークインターフェース402で受信する。 As shown in FIG. 3, the second network interface 402 of the representative unit 40 is connected to the first network interface 411 of the subordinate unit 41 via the communication path 130. Therefore, the representative unit 40 transmits data from the second network interface 402 to the subordinate unit 41. The representative unit 40 also receives the data from the subordinate unit 41 at the second network interface 402.
 記憶部403には、プロセッサ400で実行される各種処理のプログラムと、プロセッサ400で各種処理のプログラムが実行される際に必要な各種データとが記憶されている。記憶部403には、ROM、不揮発性の半導体メモリ、記憶媒体等を用いることができる。メモリ404は、システム1の起動時に、記憶部403に記憶されている各種処理のプログラムを読み込み、プロセッサ400に実行させることができるようにする記憶素子である。メモリ404には、RAM、揮発性または不揮発性の半導体メモリ等を用いることができる。 The storage unit 403 stores various processing programs executed by the processor 400 and various data required when the various processing programs are executed by the processor 400. A ROM, a non-volatile semiconductor memory, a storage medium, or the like can be used as the storage unit 403. The memory 404 is a storage element that allows the processor 400 to execute various processing programs stored in the storage unit 403 when the system 1 is started up. A RAM, a volatile or non-volatile semiconductor memory, or the like can be used as the memory 404.
 チャンネルセレクタ405は、代表チャンネル408a、408b、408c、408dに接続されている。チャンネルセレクタ405は、プロセッサ400により実行されるプログラムからの指示に基づいて、代表チャンネル408a、408b、408c、408dの中から、CPUユニット2から受信した指示データを生産ライン装置5に送信する代表チャンネル408を選択する。なお、チャンネルセレクタ405には、CPUユニット2により実行されるプログラムからの指示に基づいて、代表チャンネル408a、408b、408c、408dの中から、CPUユニット2から受信した指示データを生産ライン装置5に送信する代表チャンネル408を選択させてもよい。 The channel selector 405 is connected to the representative channels 408a, 408b, 408c, 408d. The channel selector 405 is a representative channel that transmits the instruction data received from the CPU unit 2 to the production line device 5 from among the representative channels 408a, 408b, 408c, 408d based on the instruction from the program executed by the processor 400. Select 408. The channel selector 405 sends the instruction data received from the CPU unit 2 from among the representative channels 408a, 408b, 408c, 408d to the production line device 5 based on the instruction from the program executed by the CPU unit 2. The representative channel 408 to be transmitted may be selected.
 ADコンバータ406は、生産ライン装置5の出力信号がアナログ信号の場合に、受信したアナログ信号をCPUユニット2へ送信できるデジタルデータに変換する。なお、ADコンバータ406は、仮想ユニット4の種類に応じて適宜変更される入出力部品の一例である。ADコンバータ406の代わりに、例えば、DA(Digital-to-Analog)コンバータ、IO ASIC(Input/Output Application Specific Integrated Circuit)を用いることができる。 The AD converter 406 converts the received analog signal into digital data that can be transmitted to the CPU unit 2 when the output signal of the production line device 5 is an analog signal. The AD converter 406 is an example of an input / output component that is appropriately changed according to the type of the virtual unit 4. Instead of the AD converter 406, for example, a DA (Digital-to-Analog) converter or an IO ASIC (Input / Output Application Specific Integrated Circuit) can be used.
 内部バス407は、プロセッサ400と、第1ネットワークインターフェース401と、第2ネットワークインターフェース402と、記憶部403と、メモリ404と、チャンネルセレクタ405と、ADコンバータ406とを接続するバスである。 The internal bus 407 is a bus that connects the processor 400, the first network interface 401, the second network interface 402, the storage unit 403, the memory 404, the channel selector 405, and the AD converter 406.
 仮想ユニット4の従属ユニット41は、図3に示すように、プロセッサ410と、第1ネットワークインターフェース411と、第2ネットワークインターフェース412と、記憶部413と、メモリ414と、チャンネルセレクタ415と、ADコンバータ416と、内部バス417とを備える。 As shown in FIG. 3, the subordinate unit 41 of the virtual unit 4 includes a processor 410, a first network interface 411, a second network interface 412, a storage unit 413, a memory 414, a channel selector 415, and an AD converter. 416 and an internal bus 417.
 第1ネットワークインターフェース411は、通信経路130を介して代表ユニット40の第2ネットワークインターフェース402と接続されている。このため、従属ユニット41は、第1ネットワークインターフェース411から代表ユニット40へデータを送信する。また、従属ユニット41は、代表ユニット40からのデータを、第1ネットワークインターフェース411で受信する。この他の構成については、代表ユニット40のハードウエア構成と同様であるため説明は省略する。 The first network interface 411 is connected to the second network interface 402 of the representative unit 40 via the communication path 130. Therefore, the subordinate unit 41 transmits data from the first network interface 411 to the representative unit 40. Further, the subordinate unit 41 receives the data from the representative unit 40 at the first network interface 411. Other configurations are the same as the hardware configuration of the representative unit 40, and therefore description thereof will be omitted.
 次に、エンジニアリングツール600を用いて各種情報を設定する設定方法について説明する。図4は、エンジニアリングツール600の概要を示す図である。エンジニアリングツール600は、PC6に備えられている。PC6は、制御部61と、記憶部62と、表示部63と、入力部64と、CPUユニットインターフェース65とを備えている。 Next, a setting method for setting various information using the engineering tool 600 will be described. FIG. 4 is a diagram showing an outline of the engineering tool 600. The engineering tool 600 is included in the PC 6. The PC 6 includes a control unit 61, a storage unit 62, a display unit 63, an input unit 64, and a CPU unit interface 65.
 制御部61は、エンジニアリングツール600を動作させる。記憶部62は、予め作成された、チャンネル割り付け情報200と、8チャンネル出力ユニット保持データ201と、スレーブユニットA保持データ202と、スレーブユニットB保持データ203と、データ受信情報300と、データ送信情報302とを記憶している。このチャンネル割り付け情報200と、8チャンネル出力ユニット保持データ201と、スレーブユニットA保持データ202と、スレーブユニットB保持データ203は、エンジニアリングツール600の処理に必要な情報及びデータである。また、データ受信情報300と、データ送信情報302は、後述するエンジニアリングツール600により作成される情報である。チャンネル割り付け情報200と、8チャンネル出力ユニット保持データ201と、スレーブユニットA保持データ202と、スレーブユニットB保持データ203と、データ受信情報300と、データ送信情報302について、詳細は後述する。 The control unit 61 operates the engineering tool 600. The storage unit 62 stores, in advance, channel allocation information 200, 8-channel output unit holding data 201, slave unit A holding data 202, slave unit B holding data 203, data reception information 300, and data transmission information. And 302 are stored. The channel allocation information 200, the 8-channel output unit holding data 201, the slave unit A holding data 202, and the slave unit B holding data 203 are information and data necessary for the processing of the engineering tool 600. The data reception information 300 and the data transmission information 302 are information created by the engineering tool 600 described later. The details of the channel allocation information 200, the 8-channel output unit holding data 201, the slave unit A holding data 202, the slave unit B holding data 203, the data reception information 300, and the data transmission information 302 will be described later.
 表示部63は、エンジニアリングツール600の各種設定画面、データを表示することができる表示インターフェース装置である。表示部63には、LCD(Liquid Crystal Display)パネル、有機EL(Electro-Luminescence)パネルを含む各種表示インターフェース装置を用いることができる。入力部64は、エンジニアリングツール600上での各種設定、情報を入力することができる情報入力装置である。入力部64には、キーボード、マウスを含む各種の情報入力装置を用いることができる。CPUユニットインターフェース65は、図2に示したCPUユニット2のPCインターフェース22に接続されている。PC6は、CPUユニットインターフェース65を介してCPUユニット2と各種情報及びデータの送受信を行うことができる。 The display unit 63 is a display interface device capable of displaying various setting screens and data of the engineering tool 600. Various display interface devices including an LCD (Liquid Crystal Display) panel and an organic EL (Electro-Luminescence) panel can be used as the display unit 63. The input unit 64 is an information input device that can input various settings and information on the engineering tool 600. As the input unit 64, various information input devices including a keyboard and a mouse can be used. The CPU unit interface 65 is connected to the PC interface 22 of the CPU unit 2 shown in FIG. The PC 6 can exchange various information and data with the CPU unit 2 via the CPU unit interface 65.
 ここで、エンジニアリングツール600の動作の概要を説明する。エンジニアリングツール600は、図4に示すように、仮想ユニット設定部601と、代表ユニット設定部602と、チャンネル割り付け部603と、データ送受信情報作成部604と、送受信設定部605とを備えている。 Here, an outline of the operation of the engineering tool 600 will be described. As shown in FIG. 4, the engineering tool 600 includes a virtual unit setting unit 601, a representative unit setting unit 602, a channel allocation unit 603, a data transmission / reception information creation unit 604, and a transmission / reception setting unit 605.
 仮想ユニット設定部601は、チャンネル割り付け情報200と、8チャンネル出力ユニット保持データ201とに基づいて、1つのグループに設定された複数のスレーブユニットを、1台の仮想ユニット4として設定する。なお、仮想ユニット設定部601は、本発明に係る仮想ユニット設定手段の一例である。 The virtual unit setting unit 601 sets a plurality of slave units set in one group as one virtual unit 4 based on the channel allocation information 200 and the 8-channel output unit holding data 201. The virtual unit setting unit 601 is an example of virtual unit setting means according to the present invention.
 代表ユニット設定部602は、仮想ユニット4を構成する複数のスレーブユニットのうち、1台を代表ユニット40として設定し、残りを従属ユニット41として設定する。代表ユニット40は、仮想ユニット4の外部ユニットであるCPUユニット2及びマスタユニット3と、生産ライン装置5の機器を制御するための設定情報、各種データ等を送受信する。従属ユニット41は、代表ユニット40を介して、CPUユニット2及びマスタユニット3と、生産ライン装置5の機器を制御するための設定情報、各種データ等を送受信する。なお、代表ユニット設定部602は、本発明に係る代表ユニット設定手段の一例である。 The representative unit setting unit 602 sets one of the plurality of slave units constituting the virtual unit 4 as the representative unit 40 and the rest as the dependent unit 41. The representative unit 40 transmits / receives to / from the CPU unit 2 and the master unit 3, which are external units of the virtual unit 4, setting information for controlling the equipment of the production line device 5, various data, and the like. The subordinate unit 41 transmits / receives setting information, various data, and the like for controlling the equipment of the production line device 5 to / from the CPU unit 2 and the master unit 3 via the representative unit 40. The representative unit setting unit 602 is an example of a representative unit setting unit according to the present invention.
 チャンネル割り付け部603は、チャンネル割り付け情報200と、8チャンネル出力ユニット保持データ201とに基づいて仮想ユニット4の送受信部位であるチャンネルを、仮想ユニット4を構成するスレーブユニットの送受信部位であるチャンネルに割り付ける。なお、チャンネル割り付け部603は、本発明に係るチャンネル割り付け手段の一例である。 The channel allocating unit 603 allocates the channel, which is the transmission / reception part of the virtual unit 4, to the channel, which is the transmission / reception part of the slave unit forming the virtual unit 4, based on the channel allocation information 200 and the 8-channel output unit holding data 201. . The channel allocating unit 603 is an example of the channel allocating means according to the present invention.
 データ送受信情報作成部604は、チャンネル割り付け情報200と8チャンネル出力ユニット保持データ201とスレーブユニットA保持データ202とスレーブユニットB保持データ203とに基づいて、データ受信情報300及びデータ送信情報302を作成する。データ受信情報300は、代表ユニット40と従属ユニット41とを1つの仮想ユニット4として機能させるために、代表ユニット40がマスタユニット3から受信したデータのうち、どのデータを従属ユニット41に送信するかを定義したデータである。データ送信情報302は、従属ユニット41が生産ライン装置5から受信したデータのうち、どのデータを代表ユニットに送信するかを定義したデータである。なお、データ送受信情報作成部604は、本発明に係るデータ送受信情報作成手段の一例である。 The data transmission / reception information creation unit 604 creates data reception information 300 and data transmission information 302 based on the channel allocation information 200, 8-channel output unit holding data 201, slave unit A holding data 202, and slave unit B holding data 203. To do. The data reception information 300 indicates which data, out of the data received by the representative unit 40 from the master unit 3, is transmitted to the dependent unit 41 so that the representative unit 40 and the dependent unit 41 function as one virtual unit 4. Is the data that defines. The data transmission information 302 is data that defines which data, out of the data received by the subordinate unit 41 from the production line device 5, is to be transmitted to the representative unit. The data transmission / reception information creation unit 604 is an example of the data transmission / reception information creation means according to the present invention.
 送受信設定部605は、データ送受信情報作成部604により作成されたデータ受信情報300及びデータ送信情報302に基づいて、仮想ユニット4の代表ユニット40と従属ユニット41との送受信設定と、仮想ユニット4とCPUユニット2及びマスタユニット3との送受信設定とを行う。なお、送受信設定部605は、本発明に係る送受信設定手段の一例である。 The transmission / reception setting unit 605 sets transmission / reception between the representative unit 40 and the dependent unit 41 of the virtual unit 4 and the virtual unit 4 based on the data reception information 300 and the data transmission information 302 created by the data transmission / reception information creation unit 604. The transmission / reception setting with the CPU unit 2 and the master unit 3 is performed. The transmission / reception setting unit 605 is an example of transmission / reception setting means according to the present invention.
 上述の仮想ユニット設定部601と、代表ユニット設定部602と、チャンネル割り付け部603と、データ送受信情報作成部604と、送受信設定部605の処理の手順をプログラムにし、エンジニアリングツール600として制御部61で動作させることができる。このプログラムは、記憶部62に記憶される。 The virtual unit setting unit 601, the representative unit setting unit 602, the channel allocating unit 603, the data transmission / reception information creating unit 604, and the transmission / reception setting unit 605 are processed into a program, and the control unit 61 serves as the engineering tool 600. It can be operated. This program is stored in the storage unit 62.
 ここで、制御部61のハードウエア構成の一例を、図5を参照しつつ説明する。制御部61は、プロセッサ610と、メモリ611と、表示コントローラ612と、I/Oポート613と、内部バス614とを備える。このプロセッサ610と、メモリ611と、表示コントローラ612と、I/Oポート613は、内部バス614を介して相互に接続されている。 Here, an example of the hardware configuration of the control unit 61 will be described with reference to FIG. The control unit 61 includes a processor 610, a memory 611, a display controller 612, an I / O port 613, and an internal bus 614. The processor 610, the memory 611, the display controller 612, and the I / O port 613 are connected to each other via an internal bus 614.
 プロセッサ610は、記憶部62に記憶されている各種プログラムを読み出してメモリ611に展開し、実行することができる。特に、実施の形態1及び後述する実施の形態2においては、プロセッサ610は、エンジニアリングツール600を動作させるプログラムを記憶部62から読み出してメモリ611に展開し、実行することができる。制御部61には、例えば、CPU、MPU(Micro processing unit)といった演算装置を用いることができる。 The processor 610 can read various programs stored in the storage unit 62, expand them in the memory 611, and execute them. In particular, in the first embodiment and the second embodiment described later, the processor 610 can read the program for operating the engineering tool 600 from the storage unit 62, load the program in the memory 611, and execute the program. As the control unit 61, for example, an arithmetic device such as a CPU or an MPU (Micro processing unit) can be used.
 メモリ611には、例えば、RAM、IC(Integrated circuit)メモリといった記憶素子を用いることができる。表示コントローラ612は、表示部63に文字と映像とを表示させるための映像信号を出力するコントローラである。表示コントローラ612には、ビデオカード、GPU(Graphics Processing Unit)、グラフィックボード等の映像信号出力装置を用いることができる。 A storage element such as a RAM or an IC (Integrated Circuit) memory can be used as the memory 611. The display controller 612 is a controller that outputs a video signal for displaying characters and video on the display unit 63. As the display controller 612, a video signal output device such as a video card, GPU (Graphics Processing Unit), or graphic board can be used.
 I/Oポート613は、制御部61に入出力される信号を送受信するためのインターフェースである。制御部61は、I/Oポート613を介して入力部64と、CPUユニットインターフェース65とに接続される。 The I / O port 613 is an interface for transmitting / receiving a signal input / output to / from the control unit 61. The control unit 61 is connected to the input unit 64 and the CPU unit interface 65 via the I / O port 613.
 ユーザは、表示部63に表示されたエンジニアリングツール600の設定画面上で、各種情報及びデータを設定することができる。以下に、エンジニアリングツール600における各種情報及びデータの設定画面の一例を示す。図6は、エンジニアリングツール600上でのチャンネル割り付け情報200の設定画面を示す図である。チャンネル割り付け情報200には、実際のスレーブユニットを、仮想ユニット4として動作させるために必要なチャンネル割り付け、スレーブユニットアドレス、代表ユニット40の指定を含む設定情報が定義されている。ユーザが、チャンネル割り付け情報200を設定することにより、仮想ユニット4を構成する実際のスレーブユニットを定めることができる。 The user can set various information and data on the setting screen of the engineering tool 600 displayed on the display unit 63. Below, an example of a setting screen of various information and data in the engineering tool 600 is shown. FIG. 6 is a diagram showing a setting screen of the channel allocation information 200 on the engineering tool 600. The channel allocation information 200 defines the setting information including the channel allocation necessary for operating the actual slave unit as the virtual unit 4, the slave unit address, and the designation of the representative unit 40. By setting the channel allocation information 200, the user can determine the actual slave units that make up the virtual unit 4.
 まず、仮想ユニット4としては、図6に示すように、チャンネル番号CH1からチャンネル番号CH8と、各チャンネルの入出力種類が設定されている。入出力種類には、入力と出力がある。例えば、情報が仮想ユニット4から実際のスレーブユニットへ入力される場合を「入力」とし、情報が実際のスレーブユニットから仮想ユニット4へ出力される場合を「出力」とすることができる。 First, for the virtual unit 4, as shown in FIG. 6, the channel numbers CH1 to CH8 and the input / output types of each channel are set. Input / output types include input and output. For example, the case where the information is input from the virtual unit 4 to the actual slave unit can be defined as “input”, and the case where the information is output from the actual slave unit to the virtual unit 4 can be defined as “output”.
 次に、実際のスレーブユニットとしては、図6に示すように、型名と、チャンネルと、スレーブユニットアドレスと、代表ユニットの指定とが定められている。型名は、実際のスレーブユニットの型名である。ここでは、スレーブユニットAとスレーブユニットBとが設定されている。チャンネルは、仮想ユニット4のチャンネルに割り付けられた実際のスレーブユニットのチャンネルである。ここでは、スレーブユニットAとスレーブユニットBのチャンネルがそれぞれ、仮想ユニット4のチャンネルに割り付けられて設定されている。スレーブユニットアドレスは、代表ユニット40と従属ユニット41のそれぞれを示すアドレスである。マスタユニット3は、このスレーブユニットアドレスによって、データの送信先を定めることができる。また、マスタユニット3は、このスレーブユニットアドレスによって、データの受信元を特定することができる。代表ユニット40の指定は、実際のスレーブユニットのいずれが代表ユニット40となるかを指定するものである。ここでは、スレーブユニットAが、代表ユニット40として指定されている。 Next, as the actual slave unit, as shown in FIG. 6, a model name, a channel, a slave unit address, and designation of a representative unit are defined. The model name is the model name of the actual slave unit. Here, slave unit A and slave unit B are set. The channel is the channel of the actual slave unit assigned to the channel of the virtual unit 4. Here, the channels of the slave unit A and the slave unit B are assigned and set to the channels of the virtual unit 4, respectively. The slave unit address is an address indicating each of the representative unit 40 and the subordinate unit 41. The master unit 3 can determine the data transmission destination by the slave unit address. Further, the master unit 3 can specify the data receiving source by the slave unit address. The designation of the representative unit 40 is to designate which of the actual slave units will be the representative unit 40. Here, the slave unit A is designated as the representative unit 40.
 図7に、エンジニアリングツール600上でのデータ受信情報300の設定画面を示す。データ受信情報300は、マスタユニット3から仮想ユニット4へ受信される情報である。このデータ受信情報300には、マスタユニット3から仮想ユニット4へ受信されるデータの内容と、受信されたデータの仮想ユニット4内の転送先及び転送されるデータの内容と、仮想ユニット4のデータとしての使用可否とが定義されている。 FIG. 7 shows a setting screen of the data reception information 300 on the engineering tool 600. The data reception information 300 is information received from the master unit 3 to the virtual unit 4. The data reception information 300 includes the content of data received from the master unit 3 to the virtual unit 4, the transfer destination of the received data in the virtual unit 4 and the content of the transferred data, and the data of the virtual unit 4. It is defined whether or not it can be used.
 仮想ユニット4内の転送先の指定には、図6に示したスレーブユニットアドレスを用いる。図7に戻る。マスタユニット3から仮想ユニット4に受信されるデータの内容は、例えば、設定変更要求フラグ、仮想ユニット4のチャンネル番号CH1から生産ライン装置5aに出力される電圧値、仮想ユニット4のチャンネル番号CH5から生産ライン装置5eに出力される電圧値である。この設定変更要求フラグは、仮想ユニット4の設定を変更させるフラグである。例えば、仮想ユニット4は、CPUユニット2から設定変更要求フラグを受信すると、設定変更要求フラグの内容に基づいて、代表ユニット40または従属ユニット41の設定を変更させる。 The slave unit address shown in FIG. 6 is used to specify the transfer destination in the virtual unit 4. Returning to FIG. The contents of the data received from the master unit 3 to the virtual unit 4 include, for example, the setting change request flag, the voltage value output from the channel number CH1 of the virtual unit 4 to the production line device 5a, and the channel number CH5 of the virtual unit 4. It is a voltage value output to the production line device 5e. The setting change request flag is a flag for changing the setting of the virtual unit 4. For example, when the virtual unit 4 receives the setting change request flag from the CPU unit 2, the virtual unit 4 changes the setting of the representative unit 40 or the subordinate unit 41 based on the content of the setting change request flag.
 仮想ユニット4のデータとしての使用可否は、仮想ユニット4のデータとして使用可能か否かを設定した情報である。この使用可否の値には、OKまたはNGが設定される。使用可否の値がOKの場合には、仮想ユニット4は、マスタユニット3から受信するデータを、自らのデータとして使用する。また、使用可否の値がNGの場合には、仮想ユニット4は、マスタユニット3から受信するデータを、自らのデータとして使用しない。 The availability of the virtual unit 4 as data is information that sets whether the virtual unit 4 can be used as data. OK or NG is set as the value of availability. When the usability value is OK, the virtual unit 4 uses the data received from the master unit 3 as its own data. When the usability value is NG, the virtual unit 4 does not use the data received from the master unit 3 as its own data.
 図8は、エンジニアリングツール600上でのデータ送信情報302の設定画面を示す図である。データ送信情報302は、仮想ユニット4からマスタユニット3へ送信される情報である。データ送信情報302には、仮想ユニット4からマスタユニット3へ送信されるデータの内容と、送信されるデータの仮想ユニット4内での取得元、取得されるデータの内容及び演算方法と、仮想ユニット4のデータとしての使用可否とが定義されている。 FIG. 8 is a diagram showing a setting screen of the data transmission information 302 on the engineering tool 600. The data transmission information 302 is information transmitted from the virtual unit 4 to the master unit 3. The data transmission information 302 includes the content of data transmitted from the virtual unit 4 to the master unit 3, the acquisition source of the transmitted data in the virtual unit 4, the content of the acquired data and the calculation method, and the virtual unit. It is defined whether or not it can be used as data of No. 4.
 仮想ユニット4内での取得元には、図6に示したスレーブユニットアドレスが設定される。図8に戻る。仮想ユニット4のデータとしての使用可否は、図7と同様に、仮想ユニット4のデータとして使用可能か否かを設定した情報である。使用可否の値がOKの場合、仮想ユニット4は、自身の内で取得したデータを、仮想ユニット4のデータとしてマスタユニット3へ送信する。また、使用可否の値がNGの場合、仮想ユニット4は、自身の内で最新のデータを取得することができない。このため、仮想ユニット4は、例えば、自身の保持している前回の入力値データ、デフォルト値等を仮想ユニット4のデータとしてマスタユニット3へ送信する。 The slave unit address shown in FIG. 6 is set as the acquisition source in the virtual unit 4. Returning to FIG. Whether or not the virtual unit 4 can be used as data is information that sets whether or not the virtual unit 4 can be used as data, as in FIG. 7. When the usability value is OK, the virtual unit 4 transmits the data acquired within itself to the master unit 3 as the data of the virtual unit 4. If the usability value is NG, the virtual unit 4 cannot acquire the latest data within itself. Therefore, the virtual unit 4 transmits, for example, the previous input value data, default value, and the like held by itself to the master unit 3 as the data of the virtual unit 4.
 取得されるデータの演算方法には、代表ユニット40がデータの内容を演算する際に用いる演算子が設定される。この演算子には、代表ユニット40及び従属ユニット41から取得されるデータの各bit位置のbitデータを、AND演算する「AND」、OR演算する「OR」等が用いられる。例えば、代表ユニット40の取得したデータが16進数で0x55、従属ユニット41の取得したデータが16進数で0xAAとする。この場合、この二つのデータをAND演算すると0x00、OR演算すると0xFFとなる。なお、代表ユニット40にデータの内容を演算させない場合には、演算子の代わりに「不要」が設定される。また、CPUユニット2は、仮想ユニット4から取得したデータの演算結果に応じて、制御指示用の指示データを作成する。 The operator used when the representative unit 40 calculates the content of the data is set as the calculation method of the acquired data. For this operator, “AND” that performs an AND operation on the bit data of each bit position of the data acquired from the representative unit 40 and the dependent unit 41, “OR” that performs an OR operation, and the like are used. For example, the data acquired by the representative unit 40 is 0x55 in hexadecimal, and the data acquired by the subordinate unit 41 is 0xAA in hexadecimal. In this case, AND operation of these two data results in 0x00, and OR operation results in 0xFF. When the representative unit 40 is not allowed to calculate the content of data, "unnecessary" is set instead of the operator. Further, the CPU unit 2 creates instruction data for control instruction according to the calculation result of the data acquired from the virtual unit 4.
 図7に示したデータ受信情報300と図8に示したデータ送信情報302とは、エンジニアリングツール600により、自動で生成することが可能である。ここでは、CPUユニット2への出力を行う仮想ユニット4を例として、図7に示したデータ受信情報300と図8に示したデータ送信情報302の具体的な生成方法を以下に説明する。 The data reception information 300 shown in FIG. 7 and the data transmission information 302 shown in FIG. 8 can be automatically generated by the engineering tool 600. Here, a specific method of generating the data reception information 300 shown in FIG. 7 and the data transmission information 302 shown in FIG. 8 will be described below by taking the virtual unit 4 that outputs to the CPU unit 2 as an example.
 まず、データ受信情報300とデータ送信情報302の生成のために、エンジニアリングツール600で使用される情報を、図9Aから図9Fを参照しつつ説明する。図9Aには、チャンネル割り付け情報200に設定された情報のうち、データ受信情報300の生成に用いられる受信情報範囲510と、データ送信情報302の生成に用いられる送信情報範囲520とが示されている。 First, the information used by the engineering tool 600 to generate the data reception information 300 and the data transmission information 302 will be described with reference to FIGS. 9A to 9F. FIG. 9A shows a reception information range 510 used to generate the data reception information 300 and a transmission information range 520 used to generate the data transmission information 302 among the information set in the channel allocation information 200. There is.
 図9Bには、8チャンネル出力ユニット保持データ201が示されている。8チャンネル出力ユニット保持データ201は、エンジニアリングツール600上で、ユーザにより予め設定されたデータである。8チャンネル出力ユニット保持データ201は、仮想ユニット4を8チャンネルのスレーブユニットとした場合に保持されるデータの種類を設定したものである。8チャンネル出力ユニット保持データ201に設定されたデータのうち、受信データ範囲511はデータ受信情報300の生成に用いられ、送信データ範囲521は、データ送信情報302の生成に用いられる。なお、8チャンネル出力ユニット保持データ201は、本発明に係る出力ユニット保持データの一例である。 FIG. 9B shows the 8-channel output unit holding data 201. The 8-channel output unit holding data 201 is data preset by the user on the engineering tool 600. The 8-channel output unit retention data 201 is for setting the type of data retained when the virtual unit 4 is a 8-channel slave unit. Of the data set in the 8-channel output unit holding data 201, the reception data range 511 is used for generating the data reception information 300, and the transmission data range 521 is used for generating the data transmission information 302. The 8-channel output unit holding data 201 is an example of the output unit holding data according to the present invention.
 図9Cに、スレーブユニットA保持データ202を示す。スレーブユニットAは、図9Aに示したように、仮想ユニット4を構成する実際のスレーブユニットの1つを示す型名である。この型名と関連付けて、実際のスレーブユニットの備えるデータが、図4に示したPC6の記憶部62に予め記憶されている。ユーザが、エンジニアリングツール600上でスレーブユニットAの使用を選択すると、エンジニアリングツール600内で、スレーブユニットA保持データ202が生成される。生成されたスレーブユニットA保持データ202は、図4に示したPC6の記憶部62に記憶される。スレーブユニットA保持データ202に設定されたデータのうち受信データ範囲512は、図7に示したデータ受信情報300の生成に用いられる。また、スレーブユニットA保持データ202に設定されたデータのうち送信データ範囲522は、図8に示したデータ送信情報302の生成に用いられる。なお、スレーブユニットA保持データ202は、本発明に係る第1スレーブユニット保持データの一例である。 FIG. 9C shows the slave unit A retained data 202. As shown in FIG. 9A, the slave unit A is a model name indicating one of the actual slave units forming the virtual unit 4. Data associated with the actual slave unit is stored in advance in the storage unit 62 of the PC 6 illustrated in FIG. 4 in association with the model name. When the user selects to use the slave unit A on the engineering tool 600, the slave unit A holding data 202 is generated in the engineering tool 600. The generated slave unit A holding data 202 is stored in the storage unit 62 of the PC 6 shown in FIG. The reception data range 512 of the data set in the slave unit A held data 202 is used for generating the data reception information 300 shown in FIG. 7. Further, the transmission data range 522 of the data set in the slave unit A held data 202 is used to generate the data transmission information 302 shown in FIG. The slave unit A retained data 202 is an example of the first slave unit retained data according to the present invention.
 図9Dに、スレーブユニットB保持データ203を示す。スレーブユニットBは、図9Aに示したように、仮想ユニット4を構成する実際のスレーブユニットの1つを示す型名である。この型名と関連付けて、実際のスレーブユニットの備えるデータが、図4に示したPC6の記憶部62に予め記憶されている。ユーザが、エンジニアリングツール600上でスレーブユニットBの使用を選択すると、エンジニアリングツール600内で、スレーブユニットB保持データ203が生成される。生成されたスレーブユニットB保持データ203は、図4に示したPC6の記憶部62に記憶される。スレーブユニットB保持データ203に設定されたデータのうち受信データ範囲513は、図7に示したデータ受信情報300の生成に用いられる。また、スレーブユニットB保持データ203に設定されたデータのうち送信データ範囲523は、図8に示したデータ送信情報302の生成に用いられる。なお、スレーブユニットB保持データ203は、本発明に係る第2スレーブユニット保持データの一例である。 FIG. 9D shows the slave unit B held data 203. As shown in FIG. 9A, the slave unit B is a model name indicating one of the actual slave units forming the virtual unit 4. Data associated with the actual slave unit is stored in advance in the storage unit 62 of the PC 6 illustrated in FIG. 4 in association with the model name. When the user selects to use the slave unit B on the engineering tool 600, the slave unit B holding data 203 is generated in the engineering tool 600. The generated slave unit B holding data 203 is stored in the storage unit 62 of the PC 6 shown in FIG. The reception data range 513 of the data set in the slave unit B held data 203 is used to generate the data reception information 300 shown in FIG. 7. Further, the transmission data range 523 of the data set in the slave unit B held data 203 is used to generate the data transmission information 302 shown in FIG. The slave unit B held data 203 is an example of the second slave unit held data according to the present invention.
 次に、エンジニアリングツール600の動作を、図4、図9Aから図9Dを参照しつつ説明する。ユーザから、図4に示したPC6の入力部64より仮想ユニット4を8チャンネルの出力ユニットとする指示が入力されると、仮想ユニット4の保持すべきデータが、図9Bに示す8チャンネル出力ユニット保持データ201のように定められる。 Next, the operation of the engineering tool 600 will be described with reference to FIGS. 4 and 9A to 9D. When the user inputs an instruction to set the virtual unit 4 as an 8-channel output unit from the input unit 64 of the PC 6 shown in FIG. 4, the data to be held in the virtual unit 4 becomes 8-channel output unit shown in FIG. 9B. It is defined like the held data 201.
 エンジニアリングツール600の仮想ユニット設定部601は、記憶部62に記憶されているチャンネル割り付け情報200、8チャンネル出力ユニット保持データ201を取得する。仮想ユニット設定部601は、図9Aに示したチャンネル割り付け情報200に設定された実際のスレーブユニットの型名から、仮想ユニット4を構成する実際のスレーブユニットを特定する。この実際のスレーブユニットは、図1に示すように、マスタユニット3に接続されている複数のスレーブユニットである。また、仮想ユニット設定部601は、この型名に関連付けられた実際のスレーブユニットの備えるデータを、図4に示したPC6の記憶部62から取得する。仮想ユニット設定部601は、取得したこの型名に関連付けられた実際のスレーブユニットの備えるデータに基づいて、スレーブユニット保持データを生成する。ここでは、仮想ユニット設定部601は、スレーブユニットAの備えるデータに基づいて図9Cに示すスレーブユニットA保持データ202を生成する。また、仮想ユニット設定部601は、スレーブユニットBの備えるデータに基づいて図9Dに示すスレーブユニットB保持データ203を生成する。 The virtual unit setting unit 601 of the engineering tool 600 acquires the channel allocation information 200 and the 8-channel output unit holding data 201 stored in the storage unit 62. The virtual unit setting unit 601 identifies the actual slave unit forming the virtual unit 4 from the model name of the actual slave unit set in the channel allocation information 200 shown in FIG. 9A. This actual slave unit is, as shown in FIG. 1, a plurality of slave units connected to the master unit 3. Further, the virtual unit setting unit 601 acquires the data included in the actual slave unit associated with this model name from the storage unit 62 of the PC 6 shown in FIG. The virtual unit setting unit 601 generates slave unit holding data based on the acquired data of the actual slave unit associated with this model name. Here, the virtual unit setting unit 601 generates the slave unit A held data 202 shown in FIG. 9C based on the data included in the slave unit A. Further, the virtual unit setting unit 601 generates the slave unit B holding data 203 shown in FIG. 9D based on the data included in the slave unit B.
 代表ユニット設定部602は、図9Aに示したチャンネル割り付け情報200のうち、実際のスレーブユニットの代表ユニットの項目に設定された情報に基づいて、複数のスレーブユニットのうちの1台を代表ユニット40として設定する。ここでは、図9Aに示したように、スレーブユニットAが代表ユニット40に設定されている。 The representative unit setting unit 602 sets one of the plurality of slave units to the representative unit 40 based on the information set in the item of the representative unit of the actual slave unit in the channel allocation information 200 shown in FIG. 9A. Set as. Here, as shown in FIG. 9A, the slave unit A is set as the representative unit 40.
 チャンネル割り付け部603は、仮想ユニット4のチャンネルを、仮想ユニット4を構成するスレーブユニットAおよびスレーブユニットBのチャンネルに割り付ける。これにより、CPUユニット2からみて、スレーブユニットAおよびスレーブユニットBのチャンネルを、仮想ユニット4のチャンネルとして扱うことができる。 The channel allocating unit 603 allocates the channel of the virtual unit 4 to the channels of the slave unit A and the slave unit B that configure the virtual unit 4. As a result, the channels of the slave unit A and the slave unit B can be treated as the channels of the virtual unit 4 as viewed from the CPU unit 2.
 データ送受信情報作成部604は、図9Eに示すデータ受信情報300及び図9Fに示すデータ送信情報302を作成する。データ受信情報300は、図9Eに示すように、仮想ユニット4の各チャンネルからの出力値の仮想ユニット4内での転送先が設定されている。具体的には、転送先データ範囲514内の情報である。転送先データ範囲514内の情報は、データ送受信情報作成部604により作成される。データ送受信情報作成部604は、図9Aに示したチャンネル割り付け情報200の受信情報範囲510内の情報と、図9Bに示した8チャンネル出力ユニット保持データ201の受信データ範囲511、図9Cに示したスレーブユニットA保持データ202の受信データ範囲512、図9Dに示したスレーブユニットB保持データ203の受信データ範囲513に示されたチャンネルデータ、及び使用可否の値に基づいて、転送先データ範囲514内の情報を作成する。なお、使用可否の値には、デフォルト値としてOKが設定されるものとする。データ送受信情報作成部604は、作成された情報を図9Eに示したデータ受信情報300に設定する。 The data transmission / reception information creation unit 604 creates the data reception information 300 shown in FIG. 9E and the data transmission information 302 shown in FIG. 9F. As shown in FIG. 9E, the data reception information 300 is set with the transfer destination within the virtual unit 4 of the output value from each channel of the virtual unit 4. Specifically, the information is within the transfer destination data range 514. The information within the transfer destination data range 514 is created by the data transmission / reception information creation unit 604. The data transmission / reception information creation unit 604 includes information within the reception information range 510 of the channel allocation information 200 shown in FIG. 9A, reception data range 511 of the 8-channel output unit holding data 201 shown in FIG. 9B, and FIG. 9C. Within the transfer destination data range 514 based on the reception data range 512 of the slave unit A held data 202, the channel data shown in the reception data range 513 of the slave unit B held data 203 shown in FIG. 9D, and the availability value. Create information for. It should be noted that OK is set as a default value for the availability value. The data transmission / reception information creation unit 604 sets the created information in the data reception information 300 shown in FIG. 9E.
 また、データ送信情報302は、図9Fに示すように、マスタユニット3へ送信するデータの内容と、送信するデータの仮想ユニット4内での取得元、取得されるデータの内容、使用可否の値、演算方法が設定されている。具体的には、設定変更データ範囲524内の情報である。この設定変更データ範囲524内の情報は、データ送受信情報作成部604により作成される。データ送受信情報作成部604は、図9Aに示すチャンネル割り付け情報200の送信情報範囲520内の情報と、図9Bに示す8チャンネル出力ユニット保持データ201の送信データ範囲521、図9Cに示すスレーブユニットA保持データ202の送信データ範囲522、図9Dに示すスレーブユニットB保持データ203の送信データ範囲523の状態表示データに示された設定変更完了フラグの内容、及び使用可否の値に基づいて、設定変更データ範囲524の情報を作成する。なお、使用可否の値には、デフォルト値としてOKが設定されるものとする。データ送受信情報作成部604は、作成された情報を図9Fに示したデータ送信情報302に設定する。 Further, as shown in FIG. 9F, the data transmission information 302 includes the content of the data to be transmitted to the master unit 3, the acquisition source of the data to be transmitted in the virtual unit 4, the content of the acquired data, and the availability value. , The calculation method is set. Specifically, the information is within the setting change data range 524. The information within the setting change data range 524 is created by the data transmission / reception information creation unit 604. The data transmission / reception information creation unit 604 includes information within the transmission information range 520 of the channel allocation information 200 shown in FIG. 9A, the transmission data range 521 of the 8-channel output unit holding data 201 shown in FIG. 9B, and the slave unit A shown in FIG. 9C. The setting change is made based on the content of the setting change completion flag shown in the status display data of the transmission data range 522 of the holding data 202 and the transmission data range 523 of the slave unit B holding data 203 shown in FIG. Information on the data range 524 is created. It should be noted that OK is set as a default value for the availability value. The data transmission / reception information creation unit 604 sets the created information in the data transmission information 302 shown in FIG. 9F.
 データ送受信情報作成部604は、作成した図9Eに示したデータ受信情報300と図9Fに示したデータ送信情報302とを、記憶部62に記憶する。送受信設定部605は、データ送受信情報作成部604により作成されたデータ受信情報300及びデータ送信情報302に基づいて、仮想ユニット4の代表ユニット40と従属ユニット41との間でのデータの送受信の設定を行う。また、送受信設定部605は、データ送受信情報作成部604により作成されたデータ受信情報300及びデータ送信情報302に基づいて、仮想ユニット4とCPUユニット2及びマスタユニット3との間のデータの送受信の設定を行う。 The data transmission / reception information creation unit 604 stores the created data reception information 300 shown in FIG. 9E and the created data transmission information 302 shown in FIG. 9F in the storage unit 62. The transmission / reception setting unit 605 sets transmission / reception of data between the representative unit 40 and the subordinate unit 41 of the virtual unit 4 based on the data reception information 300 and the data transmission information 302 created by the data transmission / reception information creation unit 604. I do. The transmission / reception setting unit 605 transmits / receives data between the virtual unit 4 and the CPU unit 2 / master unit 3 based on the data reception information 300 and the data transmission information 302 created by the data transmission / reception information creation unit 604. Make settings.
 なお、上述では、CPUユニット2への出力を行う仮想ユニット4を例として、データ受信情報300とデータ送信情報302の具体的な生成方法を説明したが、CPUユニット2から入力が行われる仮想ユニット4の場合も同様である。 In the above description, the specific method of generating the data reception information 300 and the data transmission information 302 has been described by taking the virtual unit 4 that outputs to the CPU unit 2 as an example. However, the virtual unit that receives input from the CPU unit 2 is described. The same applies to the case of 4.
 また、実際のスレーブユニットを、仮想ユニット4として動作させるためには、各チャンネルに対して動作設定をする必要がある。実際のスレーブユニットに仮想ユニット4としての動作設定をするツールとしては、エンジニアリングツール600が用いられる。エンジニアリングツール600について、詳細は後述する。 Also, in order to operate the actual slave unit as the virtual unit 4, it is necessary to set the operation for each channel. The engineering tool 600 is used as a tool for setting the operation of the virtual unit 4 in the actual slave unit. Details of the engineering tool 600 will be described later.
 図10は、エンジニアリングツール600上での動作設定情報210の設定画面を示す図である。動作設定情報210には、仮想ユニット4の各チャンネルに実行させる動作の内容が設定されている。この動作の内容は、ユーザが任意に定めるものである。例えば、図10に示す動作設定情報210には、その動作の内容として、チャンネルの入出力種類、チャンネル接続された生産ライン装置5からの入力値平均処理方法、チャンネル接続された生産ライン装置5の異常信号検出機能が設定されている。この動作設定情報210は、図11に示すように、PC6の記憶部62に記憶されている。 FIG. 10 is a diagram showing a setting screen of the operation setting information 210 on the engineering tool 600. In the operation setting information 210, the content of the operation to be executed by each channel of the virtual unit 4 is set. The content of this operation is arbitrarily determined by the user. For example, in the operation setting information 210 shown in FIG. 10, the contents of the operation include the input / output type of the channel, the input value average processing method from the production line device 5 connected to the channel, and the production line device 5 connected to the channel. The abnormal signal detection function is set. The operation setting information 210 is stored in the storage unit 62 of the PC 6 as shown in FIG.
 また、このエンジニアリングツール600は、図4に示した仮想ユニット設定部601と、代表ユニット設定部602等の構成に加え、図11に示す、動作パラメータ作成部621と、通信パラメータ作成部622とをさらに備える。なお、ここでは、図4に示した仮想ユニット設定部601と、代表ユニット設定部602等の構成は省略する。 Further, the engineering tool 600 includes an operation parameter creation unit 621 and a communication parameter creation unit 622 shown in FIG. 11, in addition to the configurations of the virtual unit setting unit 601, the representative unit setting unit 602 and the like shown in FIG. Further prepare. Here, the configurations of the virtual unit setting unit 601 and the representative unit setting unit 602 shown in FIG. 4 are omitted.
 図11に戻る。動作パラメータ作成部621は、記憶部62に記憶された、図9Aに示したチャンネル割り付け情報200が示すチャンネル割り付けと、図10に示した動作設定情報210が示す動作の内容とを組み合わせる。そして、動作パラメータ作成部621は、図12Aに示すスレーブユニットアドレス1用の動作パラメータ211及び図12Bに示すスレーブユニットアドレス2用の動作パラメータ212を作成する。また、通信パラメータ作成部622は、記憶部62に記憶された、図9Aに示したチャンネル割り付け情報200の情報と図10に示した動作設定情報210の動作の内容とを組み合わせて、図12Cに示すスレーブユニットアドレス1用の通信パラメータ213と、図12Dに示すスレーブユニットアドレス2用の通信パラメータ214を生成する。 Return to FIG. The operation parameter creation unit 621 combines the channel allocation indicated by the channel allocation information 200 shown in FIG. 9A stored in the storage unit 62 and the operation content indicated by the operation setting information 210 shown in FIG. Then, the operation parameter creation unit 621 creates the operation parameter 211 for the slave unit address 1 shown in FIG. 12A and the operation parameter 212 for the slave unit address 2 shown in FIG. 12B. Further, the communication parameter creating unit 622 combines the information of the channel allocation information 200 shown in FIG. 9A and the operation content of the operation setting information 210 shown in FIG. The communication parameter 213 for the slave unit address 1 shown and the communication parameter 214 for the slave unit address 2 shown in FIG. 12D are generated.
 図12Aに示すスレーブユニットアドレス1用の動作パラメータ211及び図12Bに示すスレーブユニットアドレス2用の動作パラメータ212には、仮想ユニット4のチャンネルとして動作する実際のスレーブユニットのチャンネルの動作が設定される。図12Aに示すスレーブユニットアドレス1用の動作パラメータ211は、スレーブユニットアドレス1、すなわち、図6に示すように代表ユニット40用のパラメータである。また、図12Bに示すスレーブユニットアドレス2用の動作パラメータ212は、スレーブユニットアドレス2、すなわち、図6に示すように従属ユニット41用のパラメータである。 In the operation parameter 211 for the slave unit address 1 shown in FIG. 12A and the operation parameter 212 for the slave unit address 2 shown in FIG. 12B, the operation of the channel of the actual slave unit operating as the channel of the virtual unit 4 is set. . The operation parameter 211 for the slave unit address 1 shown in FIG. 12A is the parameter for the slave unit address 1, that is, the representative unit 40 as shown in FIG. Further, the operation parameter 212 for the slave unit address 2 shown in FIG. 12B is the parameter for the slave unit address 2, that is, the slave unit 41 as shown in FIG.
 図12Cに示すスレーブユニットアドレス1の通信パラメータ213は、代表ユニット40とマスタユニット3との間の通信に必要な設定を行うためのパラメータである。例えば、マスタユニット3と実際のスレーブユニットとがデータを送受信する場合には、送信するデータのサイズと受信するデータのサイズを明確にする必要がある。このため、通信パラメータ213には、送信用データサイズと受信用データサイズとが設定される。通信パラメータ213に設定された送信用データサイズと受信用データサイズは、代表ユニット40に反映される。なお、スレーブユニットアドレス1の通信パラメータ213は、本発明に係る第1通信パラメータの一例である。 The communication parameter 213 of the slave unit address 1 shown in FIG. 12C is a parameter for making settings necessary for communication between the representative unit 40 and the master unit 3. For example, when the master unit 3 and the actual slave unit transmit / receive data, it is necessary to clarify the size of data to be transmitted and the size of data to be received. Therefore, the transmission data size and the reception data size are set in the communication parameter 213. The transmission data size and the reception data size set in the communication parameter 213 are reflected in the representative unit 40. The communication parameter 213 of the slave unit address 1 is an example of the first communication parameter according to the present invention.
 通信パラメータ213に設定されている送信用データサイズ及び受信用データサイズは、仮想ユニット4の各チャンネルの送信用データサイズ及び受信用データサイズを、全チャンネル分それぞれ合計したデータサイズである。例えば、代表ユニット40及び従属ユニット41の送信用データサイズがそれぞれ32バイトとすると、図12Cに示すように、仮想ユニット4の送信用データサイズは、代表ユニット40及び従属ユニット41の送信用データサイズの合計である64バイトとなる。また、代表ユニット40及び従属ユニット41の受信用データサイズがそれぞれ16バイトとすると、図12Cに示すように、仮想ユニット4の受信用データサイズは、代表ユニット40及び従属ユニット41の受信用データサイズの合計である32バイトとなる。 The transmission data size and the reception data size set in the communication parameter 213 are data sizes obtained by summing the transmission data size and the reception data size of each channel of the virtual unit 4 for all channels. For example, assuming that the transmission data sizes of the representative unit 40 and the subordinate unit 41 are 32 bytes, respectively, as shown in FIG. 12C, the transmission data size of the virtual unit 4 is the transmission data size of the representative unit 40 and the subordinate unit 41. The total is 64 bytes. Further, assuming that the reception data size of the representative unit 40 and the subordinate unit 41 is 16 bytes, respectively, the reception data size of the virtual unit 4 is the reception data size of the representative unit 40 and the subordinate unit 41 as shown in FIG. 12C. The total is 32 bytes.
 また、図12Dに、スレーブユニットアドレス2用の通信パラメータ214を示す。通信パラメータ214には、従属ユニット41と代表ユニット40との間の送信用データサイズと受信用データサイズとが設定される。例えば、代表ユニット40及び従属ユニット41の送信用データサイズがそれぞれ32バイトとすると、図12Dに示すように、送信用データサイズには32が設定される。また、代表ユニット40及び従属ユニット41の受信用データサイズがそれぞれ16バイトとすると、図12Dに示すように、受信用データサイズには16バイトが設定される。なお、スレーブユニットアドレス2の通信パラメータ214は、本発明に係る第2通信パラメータの一例である。 Further, FIG. 12D shows communication parameters 214 for slave unit address 2. In the communication parameter 214, the transmission data size and the reception data size between the subordinate unit 41 and the representative unit 40 are set. For example, if the transmission data size of each of the representative unit 40 and the subordinate unit 41 is 32 bytes, 32 is set as the transmission data size as shown in FIG. 12D. If the reception data size of each of the representative unit 40 and the subordinate unit 41 is 16 bytes, 16 bytes are set as the reception data size, as shown in FIG. 12D. The communication parameter 214 of the slave unit address 2 is an example of the second communication parameter according to the present invention.
 図12Aに示したスレーブユニットアドレス1用の動作パラメータ211及び図12Bに示したスレーブユニットアドレス2用の動作パラメータ212と、図12Cに示したスレーブユニットアドレス1用の通信パラメータ213と図12Dに示したスレーブユニットアドレス2用の通信パラメータ214は、マスタユニット3の記憶部32に記憶されている。これらのパラメータは、図1に示したシステム1の起動時にマスタユニット3の記憶部32から読み出され、メモリ33に展開される。また、システム1の起動時に、CPUユニット2は、マスタユニット3のメモリ33に展開されたこれらのパラメータを、仮想ユニット4へ送信する。仮想ユニット4は、受信したこられのパラメータを、代表ユニット40のメモリ404に展開する。 The operation parameter 211 for the slave unit address 1 shown in FIG. 12A, the operation parameter 212 for the slave unit address 2 shown in FIG. 12B, the communication parameter 213 for the slave unit address 1 shown in FIG. 12C, and the communication parameter 213 shown in FIG. 12D. The communication parameter 214 for the slave unit address 2 is stored in the storage unit 32 of the master unit 3. These parameters are read from the storage unit 32 of the master unit 3 when the system 1 shown in FIG. Further, when the system 1 is activated, the CPU unit 2 transmits these parameters expanded in the memory 33 of the master unit 3 to the virtual unit 4. The virtual unit 4 expands the received parameters in the memory 404 of the representative unit 40.
 また、マスタユニット3と仮想ユニット4は、図12Cに示す通信パラメータ213に設定された送信用データサイズ及び受信用データサイズのデータを定期的に送受信する。具体的には、仮想ユニット4は、マスタユニット3から受信した受信用データを代表ユニット40で処理し、必要に応じて受信用データを代表ユニット40から従属ユニット41へ送信する。また、代表ユニット40は、自身の送信用データと従属ユニット41から取得した送信用データとを1つにまとめ、仮想ユニット4からの送信用データとしてマスタユニット3へ送信する。 Also, the master unit 3 and the virtual unit 4 periodically send and receive data of the transmission data size and the reception data size set in the communication parameter 213 shown in FIG. 12C. Specifically, the virtual unit 4 processes the reception data received from the master unit 3 by the representative unit 40, and transmits the reception data from the representative unit 40 to the subordinate unit 41 as needed. The representative unit 40 also collects its own transmission data and the transmission data acquired from the subordinate unit 41 into one, and transmits it to the master unit 3 as the transmission data from the virtual unit 4.
 次に、1台のスレーブユニットから複数台のスレーブユニットに置き換える手順を説明する。ここでは、1台の8チャンネルを備えるスレーブユニットから、2台の4チャンネルを備えるスレーブユニットに置き換える場合を例にとって説明する。このスレーブユニットの置き換えは、図6から図12Dに設定された内容を、CPUユニット2と、仮想ユニット4の代表ユニット40及び従属ユニット41とに、それぞれ設定することにより行う。 Next, the procedure for replacing one slave unit with multiple slave units will be explained. Here, a case will be described as an example in which one slave unit having 8 channels is replaced with two slave units having 4 channels. The replacement of the slave unit is performed by setting the contents set in FIGS. 6 to 12D in the CPU unit 2, the representative unit 40 and the subordinate unit 41 of the virtual unit 4, respectively.
 まず、置き換える前の1台の8チャンネルを備えるスレーブユニットは、チャンネル番号CH1からCH8を有するものとする。このスレーブユニットのチャンネル番号は、図2に示したCPUユニット2の記憶部23に記憶されている。 First, one slave unit with 8 channels before replacement has channel numbers CH1 to CH8. The channel number of this slave unit is stored in the storage unit 23 of the CPU unit 2 shown in FIG.
 ここで、この8チャンネルを備えるスレーブユニットと置き換える2台の4チャンネルを備えるスレーブユニットをそれぞれ、第1スレーブユニット、第2スレーブユニットと称する。第1スレーブユニットは、図3に示した代表ユニット40と同じ構成を備え、第2スレーブユニットは、図3に示した従属ユニット41と同様の構成を備えるものする。 Here, two slave units each having four channels that replace the slave unit having eight channels are referred to as a first slave unit and a second slave unit, respectively. The first slave unit has the same configuration as the representative unit 40 shown in FIG. 3, and the second slave unit has the same configuration as the subordinate unit 41 shown in FIG.
 まず、CPUユニット2に、自身に接続されるスレーブユニットが、1台の8チャンネルを備えるスレーブユニットから、1台の仮想ユニット4に置き換わることを認識させる。CPUユニット2に、図6に示したチャンネル割り付け情報200に設定されている仮想ユニット4のチャンネル番号の項目のデータ「チャンネル番号CH1からCH8」と、入出力種類の項目のデータ「入力」とが設定される。これにより、仮想ユニット4がチャンネル番号CH1からCH8を有するスレーブユニットであることが、CPUユニット2に設定される。また、CPUユニット2に、図9Bに示した8チャンネル出力ユニット保持データ201を設定する。これにより、仮想ユニット4を8チャンネルのスレーブユニットとした場合に保持されるデータの種類を設定することができる。ここで設定された内容は、図2に示すCPUユニット2の記憶部23に記憶される。 First, let the CPU unit 2 recognize that the slave unit connected to itself is replaced with one virtual unit 4 from one slave unit having 8 channels. In the CPU unit 2, the data “channel number CH1 to CH8” of the item of the channel number of the virtual unit 4 set in the channel allocation information 200 shown in FIG. 6 and the data “input” of the item of the input / output type are provided. Is set. As a result, it is set in the CPU unit 2 that the virtual unit 4 is a slave unit having the channel numbers CH1 to CH8. Further, the 8-channel output unit holding data 201 shown in FIG. 9B is set in the CPU unit 2. As a result, it is possible to set the type of data held when the virtual unit 4 is a slave unit of 8 channels. The contents set here are stored in the storage unit 23 of the CPU unit 2 shown in FIG.
 ここで以下では、2台の4チャンネルを備えるスレーブユニットのうち第1スレーブユニットを、仮想ユニット4の代表ユニット40として設定するものとして説明する。また、2台の4チャンネルを備えるスレーブユニットのうち第2スレーブユニットを、仮想ユニット4の従属ユニット41として設定するものとして説明する。また、第1スレーブユニットを型名スレーブユニットAのスレーブユニットとし、第2スレーブユニットを型名スレーブユニットBのスレーブユニットとする。 In the following description, the first slave unit among the slave units having two 4 channels is set as the representative unit 40 of the virtual unit 4. In addition, the second slave unit of the slave units having two four channels will be described as the slave unit 41 of the virtual unit 4. Further, the first slave unit is the slave unit of the model name slave unit A, and the second slave unit is the slave unit of the model name slave unit B.
 第1スレーブユニットには、図6に示したチャンネル割り付け情報200より、自身及び従属ユニット41のチャンネル割り付けと、スレーブユニットアドレスと、代表ユニットの指定とが設定される。具体的には、第1スレーブユニットに、図6に示した仮想ユニット4のチャンネル番号CH1からCH4を、自身のチャンネル番号CH1からCH4と対応づけて設定する。また、第1スレーブユニットに、図6に示した仮想ユニット4のチャンネル番号CH5からCH8を、第2スレーブユニットのチャンネル番号CH1からCH4と対応づけることも設定する。代表ユニット40は、マスタユニット3から受信した受信データを、自身と従属ユニット41とに振り分けるため、従属ユニット41に割り付けられた仮想ユニット4のチャンネル番号を知っておく必要がある。 In the first slave unit, the channel allocation of itself and the subordinate unit 41, the slave unit address, and the designation of the representative unit are set based on the channel allocation information 200 shown in FIG. Specifically, the channel numbers CH1 to CH4 of the virtual unit 4 shown in FIG. 6 are set in the first slave unit in association with their own channel numbers CH1 to CH4. Further, the first slave unit is also set to associate the channel numbers CH5 to CH8 of the virtual unit 4 shown in FIG. 6 with the channel numbers CH1 to CH4 of the second slave unit. Since the representative unit 40 distributes the received data received from the master unit 3 to itself and the subordinate unit 41, it is necessary to know the channel number of the virtual unit 4 assigned to the subordinate unit 41.
 次に、第1スレーブユニットに、図6に示した実際のスレーブユニットのスレーブユニットアドレスの項目のデータから、スレーブユニットAの型名に割り付けられているスレーブユニットアドレス「1」を設定する。第1スレーブユニットに、図6に示した実際のスレーブユニットの代表ユニットの項目のデータから、代表ユニットの指定を設定する。 Next, set the slave unit address “1” assigned to the model name of slave unit A from the data of the slave unit address item of the actual slave unit shown in FIG. 6 in the first slave unit. The designation of the representative unit is set in the first slave unit from the data of the item of the representative unit of the actual slave unit shown in FIG.
 第1スレーブユニットに、図7に示すデータ受信情報300より、マスタユニット3から受信する受信データの仮想ユニット4内での転送先の情報が設定される。この仮想ユニット4内での転送先の情報は、例えば、図7に示す仮想ユニット4内の転送データの項目のスレーブユニットアドレス及び受信データと、マスタユニット3から受信した受信データの使用可否とである。以下に、図7を参照しつつ、具体例を示す。マスタユニット3から受信する受信データが設定変更要求フラグの場合、第1スレーブユニットには、仮想ユニット4内の転送データのスレーブユニットアドレスの項目のデータ「1」及び「2」が設定される。このスレーブユニットアドレスの項目のデータ「1」は代表ユニット40を示すユニットアドレスであり、データ「2」は、従属ユニット41を示すユニットアドレスである。また、第1スレーブユニットには、受信データの項目のデータ「設定変更要求フラグ」、及び使用可否の項目の値「OK」が設定される。以下、図7に示すデータ受信情報300に設定された情報を順番に、第1スレーブユニットに設定する。 Information on the transfer destination of the received data received from the master unit 3 in the virtual unit 4 is set in the first slave unit from the data reception information 300 shown in FIG. The information of the transfer destination in the virtual unit 4 includes, for example, the slave unit address and the reception data of the items of the transfer data in the virtual unit 4 shown in FIG. 7, and the availability of the reception data received from the master unit 3. is there. A specific example will be described below with reference to FIG. 7. When the received data received from the master unit 3 is the setting change request flag, the data “1” and “2” of the item of the slave unit address of the transfer data in the virtual unit 4 are set in the first slave unit. The data “1” of the item of the slave unit address is a unit address indicating the representative unit 40, and the data “2” is a unit address indicating the subordinate unit 41. Further, in the first slave unit, the data “setting change request flag” of the item of received data and the value “OK” of the item of availability are set. Hereinafter, the information set in the data reception information 300 shown in FIG. 7 is sequentially set in the first slave unit.
 第1スレーブユニットに、図8に示すデータ送信情報302より、仮想ユニット4内の取得データをマスタユニット3へ送信するための情報が設定される。このマスタユニット3へ送信するための情報は、例えば、図8に示す仮想ユニット4内の取得データの項目のスレーブユニットアドレス及び送信データと、仮想ユニット1から取得した送信データの使用可否と、送信データの値の演算方法とである。 Information for transmitting the acquired data in the virtual unit 4 to the master unit 3 is set in the first slave unit from the data transmission information 302 shown in FIG. The information to be transmitted to the master unit 3 includes, for example, the slave unit address and the transmission data of the item of the acquired data in the virtual unit 4 shown in FIG. 8, the availability of the transmission data acquired from the virtual unit 1, and the transmission. And a method of calculating the value of the data.
 上述の仮想ユニット4内の取得データをマスタユニット3へ送信するための情報について、図8を参照しつつ、以下に具体例を示す。仮想ユニット4からマスタユニット3へ送信する送信データが設定変更完了フラグの場合には、第1スレーブユニットには、仮想ユニット4内の送信データのスレーブユニットアドレスの項目のデータ「1」及び「2」が設定される。上述の通り、このスレーブユニットアドレスの項目のデータ「1」は代表ユニット40を示すユニットアドレスであり、データ「2」は、従属ユニット41を示すユニットアドレスである。また、第1スレーブユニットには、送信データの項目のデータ「設定変更完了フラグ」、使用可否の項目の値「OK」、送信データの項目のデータ「設定変更完了フラグ」、及び演算方法のデータ「AND」が設定される。以下、図8に示すデータ送信情報302に定められた情報を、順番に第1スレーブユニットに設定する。 Regarding the information for transmitting the acquired data in the virtual unit 4 to the master unit 3, a specific example will be shown below with reference to FIG. 8. When the transmission data to be transmitted from the virtual unit 4 to the master unit 3 is the setting change completion flag, the first slave unit includes the data “1” and “2” of the slave unit address item of the transmission data in the virtual unit 4. Is set. As described above, the data “1” of this slave unit address item is the unit address indicating the representative unit 40, and the data “2” is the unit address indicating the subordinate unit 41. In addition, the first slave unit includes data “setting change completion flag” of the transmission data item, value “OK” of the availability item, data “setting change completion flag” of the transmission data item, and calculation method data. "AND" is set. Hereinafter, the information defined in the data transmission information 302 shown in FIG. 8 is sequentially set in the first slave unit.
 第1スレーブユニットに、図12Aに示すスレーブユニットアドレス1の動作パラメータ211を設定する。動作パラメータ211は、仮想ユニット4のチャンネル番号CH1からCH4に割り付けられた、第1スレーブユニットのチャンネル番号CH1からCH4の動作を定めたものである。具体的には、図12Aに示す動作パラメータの左欄に定められたチャンネルの処理方法、検出機能等と、右欄に定められた設定情報とを、第1スレーブユニットの各チャンネルに設定する。例えば、図12Aに示す動作パラメータのCH1平均処理方法の項目のデータ「平均処理なし」の設定情報を、第1スレーブユニットのチャンネル番号CH1に設定する。第1スレーブユニットのチャンネル番号CH2からCH4まで、この設定処理を繰り返す。次に、図12Aに示す動作パラメータのCH1異常信号検出機能の項目のデータ「OFF」の設定情報を、第1スレーブユニットのチャンネル番号CH1に設定する。第1スレーブユニットのチャンネル番号CH2からCH4まで、この設定処理を繰り返す。 Set the operation parameter 211 of the slave unit address 1 shown in FIG. 12A in the first slave unit. The operation parameter 211 defines the operation of the channel numbers CH1 to CH4 of the first slave unit, which are assigned to the channel numbers CH1 to CH4 of the virtual unit 4. Specifically, the channel processing method, the detection function, etc. defined in the left column of the operation parameters shown in FIG. 12A and the setting information defined in the right column are set for each channel of the first slave unit. For example, the setting information of the data “No averaging process” in the item of the CH1 averaging process method of the operation parameters shown in FIG. 12A is set to the channel number CH1 of the first slave unit. This setting process is repeated for the channel numbers CH2 to CH4 of the first slave unit. Next, the setting information of the data "OFF" of the item of the CH1 abnormal signal detection function of the operation parameter shown in FIG. 12A is set to the channel number CH1 of the first slave unit. This setting process is repeated for the channel numbers CH2 to CH4 of the first slave unit.
 また、第1スレーブユニットに、図12Cに示すスレーブユニットアドレス1の通信パラメータ213を設定する。通信パラメータ213は、例えば、図12Cに示す、仮想ユニット4の代表ユニット40から図3に示したマスタユニット3へ送信される送信データの送信用データサイズ、マスタユニット3から代表ユニット40が受信する受信データの受信用データサイズ等である。 Further, the communication parameter 213 of the slave unit address 1 shown in FIG. 12C is set in the first slave unit. The communication parameter 213 is, for example, the transmission data size of the transmission data transmitted from the representative unit 40 of the virtual unit 4 to the master unit 3 shown in FIG. 3 shown in FIG. 12C, and the representative unit 40 receives from the master unit 3. For example, the data size for reception of the received data is used.
 以上の設定が終わると、設定された各種情報及びパラメータを、第1スレーブユニットの記憶部に記憶する。これにより、第1スレーブユニットを図3に示す代表ユニット40として動作させることが可能となる。 After completing the above settings, the various information and parameters that have been set are stored in the storage unit of the first slave unit. This allows the first slave unit to operate as the representative unit 40 shown in FIG.
 次に、第2スレーブユニットに対して、第1スレーブユニットと同様に各種情報及びパラメータを設定する。第2スレーブユニットに、図6に示した仮想ユニット4のチャンネル番号CH5からCH8を、自身のチャンネル番号CH1からCH4に対応づけて設定する。第2スレーブユニットに、図6に示した実際のスレーブユニットのスレーブユニットアドレスの項目のデータから、スレーブユニットBの型名に割り付けられているスレーブユニットアドレス「2」を設定する。 Next, set various information and parameters for the second slave unit, as with the first slave unit. In the second slave unit, the channel numbers CH5 to CH8 of the virtual unit 4 shown in FIG. 6 are set in association with their own channel numbers CH1 to CH4. In the second slave unit, the slave unit address "2" assigned to the model name of the slave unit B is set from the data of the item of the slave unit address of the actual slave unit shown in FIG.
 次に、第2スレーブユニットに、図12Bに示すスレーブユニットアドレス2の動作パラメータ212を設定する。動作パラメータ212は、仮想ユニット4のチャンネル番号CH5からCH8に割り付けられた、第2スレーブユニットのチャンネル番号CH1からCH4の動作を定めたものである。具体的には、図12Bに示す動作パラメータの左欄に定められたチャンネルの処理方法、検出機能等と、右欄に定められた設定情報とを、第2スレーブユニットの各チャンネルに設定する。例えば、図12Bに示す動作パラメータのCH5平均処理方法の項目のデータ「時間平均」の設定情報を、第2スレーブユニットのチャンネル番号CH1に設定する。第2スレーブユニットのチャンネル番号CH2からCH4まで、この設定処理を繰り返す。次に、図12Bに示す動作パラメータのCH5異常信号検出機能の項目のデータ「ON」の設定情報を、第2スレーブユニットのチャンネル番号CH1に設定する。第2スレーブユニットのチャンネル番号CH2からCH4まで、この設定処理を繰り返す。 Next, the operation parameter 212 of the slave unit address 2 shown in FIG. 12B is set in the second slave unit. The operation parameter 212 defines the operation of the channel numbers CH1 to CH4 of the second slave unit assigned to the channel numbers CH5 to CH8 of the virtual unit 4. Specifically, the channel processing method, detection function, etc. defined in the left column of the operation parameters shown in FIG. 12B and the setting information defined in the right column are set for each channel of the second slave unit. For example, the setting information of the data "time average" of the item of the CH5 average processing method of the operation parameter shown in FIG. 12B is set to the channel number CH1 of the second slave unit. This setting process is repeated for the channel numbers CH2 to CH4 of the second slave unit. Next, the setting information of the data "ON" of the item of the CH5 abnormal signal detection function of the operation parameter shown in FIG. 12B is set to the channel number CH1 of the second slave unit. This setting process is repeated for the channel numbers CH2 to CH4 of the second slave unit.
 第2スレーブユニットに、図12Dに示すスレーブユニットアドレス2の通信パラメータ214を設定する。通信パラメータ214は、例えば、図12Dに示す、仮想ユニット4の従属ユニット41から代表ユニット40へ送信される送信データの送信用データサイズ、代表ユニット40から従属ユニット41が受信する受信データの受信用データサイズ等である。 The communication parameter 214 of the slave unit address 2 shown in FIG. 12D is set in the second slave unit. The communication parameter 214 is, for example, as shown in FIG. 12D, the transmission data size of the transmission data transmitted from the subordinate unit 41 of the virtual unit 4 to the representative unit 40, the reception data of the reception data received from the representative unit 40 by the subordinate unit 41. The data size and the like.
 以上の設定が終わると、設定されたパラメータを第1スレーブユニットの記憶部に記憶する。これにより、第2スレーブユニットを図3に示す従属ユニット41として動作させることが可能となる。 After the above settings are completed, the set parameters are stored in the storage unit of the first slave unit. This allows the second slave unit to operate as the slave unit 41 shown in FIG.
 なお、後述の実施の形態2で詳細に説明するが、本実施の形態とは異なり、1台の代表ユニット40と複数の従属ユニット41とをスター型に接続する構成を採用することも可能である。この場合、代表ユニット40の故障時に複数の従属ユニット41のうちの1つを、新たな代表ユニットへ変更できるように優先順位を設定する。このため、代表ユニット40になりうる従属ユニット41には、代表ユニット40と同じ設定をしておく必要がある。 In addition, as will be described in detail in a second embodiment to be described later, unlike the present embodiment, a configuration in which one representative unit 40 and a plurality of subordinate units 41 are connected in a star type can be adopted. is there. In this case, the priority order is set so that one of the plurality of dependent units 41 can be changed to a new representative unit when the representative unit 40 fails. Therefore, the subordinate unit 41 that can be the representative unit 40 needs to have the same settings as the representative unit 40.
 CPUユニット2は、代表ユニット40に設定された各種情報及びパラメータにより、代表ユニット40と従属ユニット41の2台を区別せず、1台の仮想ユニット4とみなす。これにより、CPUユニット2は、自身に接続されているのは仮想ユニット4と認識する。したがって、CPUユニット2は、代表ユニット40と従属ユニット41とそれぞれデータの送受信をするのではなく、仮想ユニット4とだけデータの送受信を行うものと認識する。 The CPU unit 2 does not distinguish between the representative unit 40 and the dependent unit 41 based on various information and parameters set in the representative unit 40, and regards them as one virtual unit 4. As a result, the CPU unit 2 recognizes that the virtual unit 4 is connected to itself. Therefore, the CPU unit 2 recognizes that the CPU unit 2 does not transmit / receive data to / from the representative unit 40 and the subordinate unit 41, respectively, but only to / from the virtual unit 4.
 CPUユニット2から仮想ユニット4へ送信されるデータは、図1に示したようにマスタユニット3を介して、仮想ユニット4の代表ユニット40へ入力される。代表ユニット40は、代表ユニット40に設定された各種情報及びパラメータにより、CPUユニット2から受信したデータを適切に自身と従属ユニット41へ振り分ける。代表ユニット40と従属ユニット41は、それぞれに振り分けられたデータに基づいて処理を実行する。また、代表ユニット40は、従属ユニット41からのデータを、自身のデータとまとめてCPUユニット2へ送信することができる。これにより、CPUユニット2は、代表ユニット40と従属ユニット41のそれぞれからデータを送信されたのではなく、仮想ユニット4からデータを送信されたものと認識する。以上により、CPUユニット2は、自身に接続されている実際のスレーブユニットの台数を意識せずに、スレーブユニットに各種処理を実行させることが可能となる。 The data transmitted from the CPU unit 2 to the virtual unit 4 is input to the representative unit 40 of the virtual unit 4 via the master unit 3 as shown in FIG. The representative unit 40 appropriately distributes the data received from the CPU unit 2 to itself and the slave unit 41 according to various information and parameters set in the representative unit 40. The representative unit 40 and the subordinate unit 41 execute processing based on the data distributed to each. Further, the representative unit 40 can send the data from the subordinate unit 41 together with its own data to the CPU unit 2. As a result, the CPU unit 2 recognizes that the data is not transmitted from the representative unit 40 and the subordinate unit 41, respectively, but that the data is transmitted from the virtual unit 4. As described above, the CPU unit 2 can cause the slave units to execute various processes without being aware of the actual number of slave units connected to the CPU unit 2.
 図13Aに、配置設定ツール710上での配置設定700の設定画面を示す。配置設定ツール710は、図14に示すように、PC6にインストールされている。システムインテグレータは、配置設定ツール710を用いて、生産ライン装置5に配置されるセンサ、モータを含む機器、生産ライン装置5に付加される入出力機器を、工場ごとに設定する。配置設定ツール710には、例えば、3D-CAD(Three Dimensional-computer Aided Design)を用いることができる。 FIG. 13A shows a setting screen of the placement setting 700 on the placement setting tool 710. The arrangement setting tool 710 is installed in the PC 6 as shown in FIG. The system integrator uses the arrangement setting tool 710 to set the sensors arranged in the production line device 5, the devices including the motor, and the input / output devices added to the production line device 5 for each factory. For the placement setting tool 710, for example, 3D-CAD (Three Dimensional-computer Aided Design) can be used.
 システムインテグレータは、図13Aに示すように、配置設定700の設定画面上で、複数の生産ライン装置5a~5hを第1生産ラインコンベアの左右に配置する。すなわち、システムインテグレータにより、図14に示したPC6の入力部64から入力される指示に基づいて、配置設定ツール710の配置設定部720は、複数の生産ライン装置5a~5hを第1生産ラインコンベアの左右に配置させる。システムインテグレータは、この複数の生産ライン装置5a~5hを1つのセグメントとしてまとめる。この1つのセグメントを、1つの仮想ユニット4とすることができる。システムインテグレータは、配置設定ツール710を用いて、仮想ユニット4の各チャンネルに各生産ライン装置5への入出力を割り当てる。すなわち、配置設定ツール710の入出力割当部721は、システムインテグレータにより、図14に示したPC6の入力部64から入力される指示に基づいて、仮想ユニット4の各チャンネルに各生産ライン装置5への入出力を割り当てる。 As shown in FIG. 13A, the system integrator arranges a plurality of production line devices 5a to 5h on the left and right of the first production line conveyor on the setting screen of the arrangement setting 700. That is, based on an instruction input by the system integrator from the input unit 64 of the PC 6 shown in FIG. Place it to the left and right of. The system integrator collects the plurality of production line devices 5a to 5h as one segment. This one segment can be one virtual unit 4. The system integrator uses the arrangement setting tool 710 to allocate input / output to / from each production line device 5 to each channel of the virtual unit 4. That is, the input / output assigning unit 721 of the arrangement setting tool 710 sends the respective channels of the virtual unit 4 to the respective production line devices 5 based on the instruction input from the input unit 64 of the PC 6 shown in FIG. 14 by the system integrator. Allocate the input and output of.
 システムインテグレータは、配置設定ツール710から仮想ユニット4へのチャンネル割り当て情報を、エンジニアリングツール600に入力する。ユーザに、エンジニアリングツール600の動作設定情報210の設定画面上で、仮想ユニット4の各チャンネルの動作を設定させる。すなわち、ユーザにより、図14に示した入力部64への入力に基づき、エンジニアリングツール600の動作パラメータ作成部621は、記憶部62に記憶されたチャンネル割り付け情報200の情報と動作設定情報210の動作の内容とを組み合わせて、図12Aに示すスレーブユニットアドレス1用の動作パラメータ211及び図12Bに示すスレーブユニットアドレス2用の動作パラメータ212を作成する。 The system integrator inputs the channel allocation information from the arrangement setting tool 710 to the virtual unit 4 into the engineering tool 600. The user is made to set the operation of each channel of the virtual unit 4 on the setting screen of the operation setting information 210 of the engineering tool 600. That is, based on the input to the input unit 64 shown in FIG. 14 by the user, the operation parameter creation unit 621 of the engineering tool 600 operates the information of the channel allocation information 200 and the operation of the operation setting information 210 stored in the storage unit 62. 12A is combined with the operation parameters 211 for the slave unit address 1 shown in FIG. 12A and the operation parameters 212 for the slave unit address 2 shown in FIG. 12B.
 また、通信パラメータ作成部622は、記憶部62に記憶されたチャンネル割り付け情報200の情報と動作設定情報210の動作の内容とを組み合わせて、図12Cに示すスレーブユニットアドレス1用の通信パラメータ213と、図12Dに示すスレーブユニットアドレス2用の通信パラメータ214とを生成する。作成した動作パラメータ211、212、通信パラメータ213、214が、該当するスレーブユニットアドレス1またはスレーブユニットアドレス2を持つ実際のスレーブユニットに設定される。設定された実際のスレーブユニットの一覧を、図13Bに示す。 In addition, the communication parameter creation unit 622 combines the information of the channel allocation information 200 stored in the storage unit 62 and the content of the operation of the operation setting information 210 to obtain the communication parameter 213 for the slave unit address 1 shown in FIG. 12C. , And the communication parameter 214 for slave unit address 2 shown in FIG. 12D. The created operation parameters 211 and 212 and communication parameters 213 and 214 are set to the actual slave unit having the corresponding slave unit address 1 or slave unit address 2. FIG. 13B shows a list of set actual slave units.
 ユーザが所有しているスレーブユニットの情報702から検索する。図13Bには、例えば、ユーザが所有しているスレーブユニットとして、スレーブユニットA及びスレーブユニットBの情報が設定されている。所有しているスレーブユニットの情報702に合致する実際のスレーブユニットがある場合、エンジニアリングツール600は、合致しているスレーブユニットの型名を、そのユニットの保持データの情報と組み合わせる。これにより、エンジニアリングツール600は、図6に示したチャンネル割り付け情報200と、図7に示したデータ受信情報300と、図8に示したデータ送信情報302と、図12A、図12Bに示した動作パラメータ211、212と、図12C、図12Dに示した通信パラメータ213、214とを自動生成することができる。 Search from the information 702 of the slave unit owned by the user. In FIG. 13B, for example, the information of the slave unit A and the slave unit B is set as the slave unit owned by the user. If there is an actual slave unit that matches the information 702 of the owning slave unit, the engineering tool 600 combines the model name of the matching slave unit with the information of the held data of that unit. As a result, the engineering tool 600 causes the channel allocation information 200 shown in FIG. 6, the data reception information 300 shown in FIG. 7, the data transmission information 302 shown in FIG. 8, and the operations shown in FIGS. 12A and 12B. The parameters 211 and 212 and the communication parameters 213 and 214 shown in FIGS. 12C and 12D can be automatically generated.
 また、エンジニアリングツール600には、図4及び図11に示した構成に加え、図15Aに示す処理設定部623を、さらに備える。処理設定部623は、仮想ユニット4に各種処理を行わせるためのプログラムを、図2に示したCPUユニット2の記憶部23に記憶させることができる。なお、ここでは、図4及び図11に示した各構成については省略する。この仮想ユニット4に各種処理を行わせるためのプログラムは、システム1の起動時に、CPUユニット2の記憶部23からメモリ24に読み出され、プロセッサ20により実行される。 The engineering tool 600 further includes a process setting unit 623 shown in FIG. 15A in addition to the configurations shown in FIGS. 4 and 11. The process setting unit 623 can store a program for causing the virtual unit 4 to perform various processes in the storage unit 23 of the CPU unit 2 illustrated in FIG. Note that, here, the respective configurations shown in FIGS. 4 and 11 are omitted. A program for causing the virtual unit 4 to perform various processes is read from the storage unit 23 of the CPU unit 2 to the memory 24 and is executed by the processor 20 when the system 1 is started.
 処理設定部623がCPUユニット2の記憶部23に記憶させるプログラムについて、従属ユニット41での動作不良の発生及び動作不良から回復した場合を例に説明する。代表ユニット40は、従属ユニット41の動作不良を検出した場合、仮想ユニット4のチャンネルのうち従属ユニット41のチャンネルの制御だけを停止させる。また、代表ユニット40は、従属ユニット41の動作不良からの回復を出した場合、従属ユニット41のチャンネルの制御を再開する。この動作について、図15Bに示す、従属ユニット41の動作不良発生時及び回復時の制御処理のフローチャートを参照しつつ、以下に説明する。 The program stored in the storage unit 23 of the CPU unit 2 by the process setting unit 623 will be described by taking as an example the case where a malfunction occurs in the dependent unit 41 and a case where the malfunction is recovered. When the representative unit 40 detects a malfunction of the subordinate unit 41, it stops only the control of the channel of the subordinate unit 41 among the channels of the virtual unit 4. Further, when the representative unit 40 recovers from the malfunction of the subordinate unit 41, the representative unit 40 restarts the control of the channel of the subordinate unit 41. This operation will be described below with reference to the flowchart of the control process at the time of malfunction occurrence and recovery of the subordinate unit 41 shown in FIG. 15B.
 図15Bに示すように、代表ユニット40は、従属ユニット41の動作の変化を検出すると(ステップS10;YES)、従属ユニット41の動作の変化が正常動作から動作不良になったのか、動作不良から正常動作に復帰したのかを判定する(ステップS11)。なお、CPUユニット2が、従属ユニット41の動作の変化が検出していない場合には(ステップS10;NO)、従属ユニット41の動作の変化が検出されるまで待機する。 As shown in FIG. 15B, when the representative unit 40 detects a change in the operation of the subordinate unit 41 (step S10; YES), the change in the operation of the subordinate unit 41 is changed from normal operation to malfunction or from malfunction. It is determined whether the normal operation is restored (step S11). If the change in the operation of the subordinate unit 41 is not detected (step S10; NO), the CPU unit 2 waits until the change in the operation of the subordinate unit 41 is detected.
 代表ユニット40は、例えば、通信の途絶や異常動作通知を受信することにより、従属ユニット41が正常動作から動作不良になったことを検知した場合には(ステップS11;正常動作から動作不良)、代表ユニット40は、図8に示したデータ送信情報302のうち、スレーブユニットアドレスが2、すなわち、従属ユニット41のデータの使用可否の値をOKからNGに変更する。例えば、従属ユニット41の設定変更完了フラグ、エラー発生フラグの使用可否の値をOKからNGに変更する。代表ユニット40は、使用可否の値がNGに変更された従属ユニット41のデータの送受信を無効化する(ステップS12)。 When the representative unit 40 detects that the subordinate unit 41 has changed from the normal operation to the operation failure, for example, by receiving the communication interruption or the abnormal operation notification (step S11; normal operation to operation failure), The representative unit 40 changes the value of the availability of data of the slave unit 41 from OK to NG in the slave unit address of the data transmission information 302 shown in FIG. For example, the setting change completion flag and the error occurrence flag of the subordinate unit 41 are changed from OK to NG. The representative unit 40 invalidates the data transmission / reception of the subordinate unit 41 whose usable / unusable value is changed to NG (step S12).
 従属ユニット41のデータの送受信が無効化されると、代表ユニット40は、自身が保持している前回の従属ユニット41からの入力値データを、従属ユニット41の入力値データとしてマスタユニット3に送信する。これは、従属ユニット41が動作不良になりデータの送受信が無効化されている場合には、代表ユニット40は従属ユニット41から入力値データを取得できないためである。なお、代表ユニット40は、従属ユニット41からの入力値データとして、自身の保持している前回の入力値データではなく、デフォルト値、0、任意の値等をマスタユニット3に送信してもよい。 When the transmission / reception of the data of the subordinate unit 41 is invalidated, the representative unit 40 transmits the previous input value data from the subordinate unit 41 held by itself to the master unit 3 as the input value data of the subordinate unit 41. To do. This is because the representative unit 40 cannot acquire the input value data from the subordinate unit 41 when the subordinate unit 41 malfunctions and data transmission / reception is disabled. The representative unit 40 may transmit the default value, 0, an arbitrary value, etc. to the master unit 3 as the input value data from the subordinate unit 41, instead of the previous input value data held by itself. .
 また、例えば、従属ユニットが出力ユニットであった場合、代表ユニット40がマスタユニット3から受信した従属ユニット41の担当する仮想チャンネル12e~12hの出力値データは、従属ユニット41には転送しない。なお、あえて転送するといった、他の制御方法をしても良い。 Further, for example, when the subordinate unit is the output unit, the output value data of the virtual channels 12e to 12h which the representative unit 40 receives from the master unit 3 and which the subordinate unit 41 takes charge of is not transferred to the subordinate unit 41. It should be noted that other control methods such as intentionally transferring may be used.
 従属ユニット41の動作の変化が動作不良から正常動作への復帰の場合には(ステップS11;動作不良から正常動作)、代表ユニット40は、図8に示したデータ送信情報302のうち、スレーブユニットアドレスが2、すなわち、従属ユニット41のデータの使用可否の値をNGからOKに変更する。例えば、従属ユニット41の設定変更完了フラグ、エラー発生フラグの使用可否の値をNGからOKに変更する。代表ユニット40は、使用可否の値がOKに変更された従属ユニット41のデータの送受信を有効化する(ステップS13)。 When the change in the operation of the subordinate unit 41 is the return from the malfunction to the normal operation (step S11; malfunction to normal operation), the representative unit 40 selects the slave unit in the data transmission information 302 shown in FIG. The address is 2, that is, the value of availability of the data of the subordinate unit 41 is changed from NG to OK. For example, the values of availability of the setting change completion flag and the error occurrence flag of the subordinate unit 41 are changed from NG to OK. The representative unit 40 validates the data transmission / reception of the subordinate unit 41 whose usable / unusable value is changed to OK (step S13).
 従属ユニット41からのデータの送受信が有効化されると、例えば、従属ユニット41が入力ユニットであった場合、図1に示した従属ユニット41の担当する仮想ユニット4の仮想チャンネル12e~12hの入力値データには、今回の入力値が設定される。代表ユニット40は、従属ユニット41から仮想ユニット4の仮想チャンネル12e~12hの入力値データを取得する。代表ユニット40は、自身が担当する仮想チャンネル12a~12dの入力値データと、仮想チャンネル12e~12hの入力値データとをマスタユニット3へ送信する。また、例えば、従属ユニット41が出力ユニットであった場合、代表ユニット40がマスタユニット3から受信した従属ユニット41の担当する仮想チャンネル12e~12hの出力値データを、従属ユニット41に転送する。以上のような制御処理を行うことにより、従属ユニット41が動作不良をおこしても、仮想ユニット4全体を停止しないフェールソフト動作を可能にすることができる。 When the transmission / reception of data from the subordinate unit 41 is enabled, for example, when the subordinate unit 41 is the input unit, the input of the virtual channels 12e to 12h of the virtual unit 4 in charge of the subordinate unit 41 shown in FIG. The input value of this time is set in the value data. The representative unit 40 acquires the input value data of the virtual channels 12e to 12h of the virtual unit 4 from the subordinate unit 41. The representative unit 40 transmits to the master unit 3 the input value data of the virtual channels 12a to 12d and the input value data of the virtual channels 12e to 12h that the representative unit 40 is in charge of. Further, for example, when the subordinate unit 41 is the output unit, the representative unit 40 transfers the output value data of the virtual channels 12e to 12h, which the subordinate unit 41 is in charge of, received from the master unit 3, to the subordinate unit 41. By performing the control process as described above, even if the subordinate unit 41 malfunctions, it is possible to perform the fail soft operation without stopping the entire virtual unit 4.
 以上のように、実施の形態1に係るエンジニアリングツール600によれば、複数台のスレーブユニットを、CPUユニット2に対し、CPUユニット2に接続されている1台のスレーブユニットと同じ動作をとる仮想ユニット4として設定することができる。これにより、1台のスレーブユニットを複数台のスレーブユニットに置き換える際の作業を簡易にすることができる。また、CPUユニット2に接続されている1台のスレーブユニットと仮想ユニット4とを置き換えても、CPUユニット2に導入される制御プログラムを変更せず、そのまま継続して使用することができる。このため、CPUユニット2に導入される制御プログラムの変更に伴う工数を、削減することができるという効果がある。 As described above, according to the engineering tool 600 according to the first embodiment, a plurality of slave units are virtual with respect to the CPU unit 2 and perform the same operation as one slave unit connected to the CPU unit 2. It can be set as the unit 4. This can simplify the work when replacing one slave unit with a plurality of slave units. Further, even if one slave unit connected to the CPU unit 2 is replaced with the virtual unit 4, the control program introduced into the CPU unit 2 can be continuously used without being changed. Therefore, there is an effect that the number of man-hours required for changing the control program introduced into the CPU unit 2 can be reduced.
(実施の形態2)
 実施の形態1では、図1に示したように、マスタユニット3と、仮想ユニット4の代表ユニット40及び従属ユニット41が、一直線につながるライン型のネットワークトポロジの場合について説明した。マスタユニット3と、仮想ユニット4の代表ユニット40及び従属ユニット41は、ライン型に限らず、他のネットワークトポロジで構成することも可能である。例えば、スター型のネットワークトポロジで構成したシステム1Aの概要を図16に示す。
(Embodiment 2)
In the first embodiment, as shown in FIG. 1, the case where the master unit 3, the representative unit 40 and the subordinate unit 41 of the virtual unit 4 are in a line type network topology in which they are connected in a straight line has been described. The master unit 3, the representative unit 40 and the subordinate unit 41 of the virtual unit 4 are not limited to the line type, and can be configured with other network topologies. For example, FIG. 16 shows an outline of a system 1A configured with a star type network topology.
 図16に示すように、マスタユニット3は、通信経路134を介して、仮想ユニット4Aと接続されている。仮想ユニット4Aは、代表ユニット40と、第1従属ユニット42と、第2従属ユニット43とを備えている。代表ユニット40と、第1従属ユニット42と、第2従属ユニット43とは、それぞれ4つのチャンネルを備えている。このため、仮想ユニット4Aは、12チャンネルを備える1台のスレーブユニットとして機能することができる。 As shown in FIG. 16, the master unit 3 is connected to the virtual unit 4A via the communication path 134. The virtual unit 4A includes a representative unit 40, a first subordinate unit 42, and a second subordinate unit 43. Each of the representative unit 40, the first subordinate unit 42, and the second subordinate unit 43 has four channels. Therefore, the virtual unit 4A can function as one slave unit having 12 channels.
 代表ユニット40の持つ代表チャンネル408a、408b、408c、408dは、エンジニアリングツール600によって、仮想ユニット4の持つ仮想チャンネル12a、12b、12c、12dと見なされるように設定される。また、代表ユニット40には、スレーブユニットアドレス1と、後述する代表ユニット優先順位の第1位が設定されている。 The representative channels 408a, 408b, 408c, 408d of the representative unit 40 are set by the engineering tool 600 so as to be regarded as the virtual channels 12a, 12b, 12c, 12d of the virtual unit 4. In the representative unit 40, the slave unit address 1 and the first priority of the representative unit to be described later are set.
 第1従属ユニット42は、4つの第1従属チャンネル428a、428b、428c、428dを備えている。この第1従属チャンネル428a、428b、428c、428dは、エンジニアリングツール600によって、仮想ユニット4Aの持つ仮想チャンネル12e、12f、12g、12hと見なされるように設定される。また、第1従属ユニット42には、スレーブユニットアドレス2と、後述する代表ユニット優先順位の第3位が設定されている。 The first subordinate unit 42 includes four first subordinate channels 428a, 428b, 428c, 428d. The first dependent channels 428a, 428b, 428c, 428d are set by the engineering tool 600 so as to be regarded as the virtual channels 12e, 12f, 12g, 12h of the virtual unit 4A. Further, in the first subordinate unit 42, a slave unit address 2 and a third unit of a representative unit priority order described later are set.
 また、第2従属ユニット43は、4つの第2従属チャンネル438a、438b、438c、438dを備えている。この第2従属チャンネル438a、438b、438c、423dは、エンジニアリングツール600によって、仮想ユニット4Aの持つ仮想チャンネル12i、12j、12k、12lと見なされるように設定される。また、第2従属ユニット43には、スレーブユニットアドレス3と、後述する代表ユニット優先順位の第2位が設定されている。 The second subordinate unit 43 also includes four second subordinate channels 438a, 438b, 438c, 438d. The second dependent channels 438a, 438b, 438c, 423d are set by the engineering tool 600 so as to be regarded as the virtual channels 12i, 12j, 12k, 12l of the virtual unit 4A. Further, in the second subordinate unit 43, the slave unit address 3 and the second rank of the representative unit priority order described later are set.
 エンジニアリングツール600による設定により、仮想ユニット4Aは、CPUユニット2とマスタユニット3から見て、12個のチャンネルを備える1台のスレーブユニットとして認識される。なお、以下では、仮想ユニット4Aの持つ仮想チャンネル12a~12lを、総称して仮想チャンネル12という。また、以下では、第2従属チャンネル438a、438b、438c、438dを、総称して、第2従属チャンネル438という。 By the setting by the engineering tool 600, the virtual unit 4A is recognized by the CPU unit 2 and the master unit 3 as one slave unit having 12 channels. In the following, the virtual channels 12a to 12l of the virtual unit 4A are collectively referred to as the virtual channel 12. Moreover, below, the 2nd subordinate channels 438a, 438b, 438c, and 438d are generically called the 2nd subordinate channel 438.
 システム1Aのハードウエア構成の概要を、図17Aに示す。CPUユニット2と、マスタユニット3のハードウエア構成は、図2に示した構成と同様である。また、仮想ユニット4Aの代表ユニット40のハードウエア構成は、図3に示した仮想ユニット4の代表ユニット40の構成と同様である。 An outline of the hardware configuration of system 1A is shown in FIG. 17A. The hardware configurations of the CPU unit 2 and the master unit 3 are the same as those shown in FIG. The hardware configuration of the representative unit 40 of the virtual unit 4A is similar to that of the representative unit 40 of the virtual unit 4 shown in FIG.
 仮想ユニット4Aの第1従属ユニット42のハードウエア構成を、図17Bに示す。第1従属ユニット42は、プロセッサ420と、第1ネットワークインターフェース421と、第2ネットワークインターフェース422と、記憶部423と、メモリ424と、チャンネルセレクタ425と、ADコンバータ426と、内部バス427とを備える。また、第2従属ユニット43のハードウエア構成を、図17Cに示す。第2従属ユニット43は、プロセッサ430と、第1ネットワークインターフェース431と、第2ネットワークインターフェース432と、記憶部433と、メモリ434と、チャンネルセレクタ435と、ADコンバータ426と、内部バス437とを備える。図17Bに示した第1従属ユニット42のハードウエア構成と図17Cに示した第2従属ユニット43のハードウエア構成は、図3に示した従属ユニット41の構成と同様である。このため、各ユニットのハードウエア構成の詳細な説明は省略する。 The hardware configuration of the first subordinate unit 42 of the virtual unit 4A is shown in FIG. 17B. The first subordinate unit 42 includes a processor 420, a first network interface 421, a second network interface 422, a storage unit 423, a memory 424, a channel selector 425, an AD converter 426, and an internal bus 427. . The hardware configuration of the second subordinate unit 43 is shown in FIG. 17C. The second subordinate unit 43 includes a processor 430, a first network interface 431, a second network interface 432, a storage unit 433, a memory 434, a channel selector 435, an AD converter 426, and an internal bus 437. . The hardware configuration of the first subordinate unit 42 shown in FIG. 17B and the hardware configuration of the second subordinate unit 43 shown in FIG. 17C are similar to the configuration of the subordinate unit 41 shown in FIG. Therefore, detailed description of the hardware configuration of each unit is omitted.
 図17Aに示すように、マスタユニット3は、ネットワークインターフェース34から通信経路134とスイッチングハブ15とを介して、仮想ユニット4Aの代表ユニット40と第1従属ユニット42と第2従属ユニット43の第1ネットワークインターフェース401、421、431に接続されている。スイッチングハブ15は、マスタユニット3と、代表ユニット40及び第1従属ユニット42及び第2従属ユニット43の接続を切り替えることができるハブである。 As shown in FIG. 17A, the master unit 3 receives the first representative unit 40, the first dependent unit 42, and the second dependent unit 43 of the virtual unit 4A from the network interface 34 via the communication path 134 and the switching hub 15. It is connected to the network interfaces 401, 421, 431. The switching hub 15 is a hub capable of switching the connection between the master unit 3, the representative unit 40, the first subordinate unit 42, and the second subordinate unit 43.
 仮想ユニット4Aでは、代表ユニット40が動作不良になった場合には、第1従属ユニット42または第2従属ユニット43の何れかを新たな代表ユニットとして動作させるように設定することができる。仮想ユニット4Aにおけるチャンネル割り付け情報220を、図18に示す。チャンネル割り付け情報220には、代表ユニット優先順位が設定されている。この代表ユニット優先順位は、最も高い代表ユニット優先順位を設定された実際のスレーブユニットを、代表ユニット40として動作させる順位である。代表ユニット優先順位は、代表ユニット40だけではなく、第1従属ユニット42または第2従属ユニット43に対しても設定されている。例えば、図18においては、スレーブユニットアドレス1を持つスレーブユニットに、最も高い優先順位である第1位が設定されている。このため、図16に示す、スレーブユニットアドレス1を持つスレーブユニットを、代表ユニット40として動作させる。なお、第1従属ユニット42として設定された実際のスレーブユニットは、本発明に係る第3スレーブユニットの一例である。または第2従属ユニット43として設定された実際のスレーブユニットは、本発明に係る第4スレーブユニットの一例である。 In the virtual unit 4A, when the representative unit 40 malfunctions, either the first subordinate unit 42 or the second subordinate unit 43 can be set to operate as a new representative unit. FIG. 18 shows the channel allocation information 220 in the virtual unit 4A. A representative unit priority is set in the channel allocation information 220. This representative unit priority is the order in which the actual slave unit having the highest representative unit priority is operated as the representative unit 40. The representative unit priority is set not only for the representative unit 40 but also for the first dependent unit 42 or the second dependent unit 43. For example, in FIG. 18, the slave unit having the slave unit address 1 is set to the highest priority, that is, the first rank. Therefore, the slave unit having the slave unit address 1 shown in FIG. 16 is operated as the representative unit 40. The actual slave unit set as the first subordinate unit 42 is an example of the third slave unit according to the present invention. Alternatively, the actual slave unit set as the second subordinate unit 43 is an example of the fourth slave unit according to the present invention.
 代表ユニット40が動作不良になった場合には、次に高い代表ユニット優先順位が設定された従属ユニットを、新たな代表ユニットとして動作させる。例えば、図18に示された、スレーブユニットアドレス3を持つスレーブユニットには、次に高い代表ユニット優先順位である第2位が設定されている。このため、代表ユニット40が動作不良になった場合には、図16に示す、スレーブユニットアドレス3を持つ第2従属ユニット43を、新たな代表ユニットとして動作させる。これにより、代表ユニット40は、新たな従属ユニットとして扱われる。したがって、仮想ユニット4Aは、新たな代表ユニットである第2従属ユニット43と、第1従属ユニット42と、新たな従属ユニットである代表ユニット40を備える1台のスレーブユニットとして機能することができる。 When the representative unit 40 malfunctions, the dependent unit with the next highest representative unit priority is operated as a new representative unit. For example, in the slave unit having the slave unit address 3 shown in FIG. 18, the second highest representative unit priority is set. Therefore, when the representative unit 40 malfunctions, the second subordinate unit 43 having the slave unit address 3 shown in FIG. 16 is operated as a new representative unit. As a result, the representative unit 40 is treated as a new subordinate unit. Therefore, the virtual unit 4A can function as one slave unit including the second subordinate unit 43 that is a new representative unit, the first subordinate unit 42, and the representative unit 40 that is a new subordinate unit.
 このチャンネル割り付け情報220は、図4に示したチャンネル割り付け情報200と同様に、図4に示したエンジニアリングツール600の設定画面上で、ユーザに設定される。チャンネル割り付け情報220は、エンジニアリングツール600から、図3に示すマスタユニット3の記憶部32に記憶される。そして、図16に示すシステム1Aの起動時に、図3に示すマスタユニット3の記憶部32からメモリ33に展開される。 This channel allocation information 220 is set by the user on the setting screen of the engineering tool 600 shown in FIG. 4, like the channel allocation information 200 shown in FIG. The channel allocation information 220 is stored in the storage unit 32 of the master unit 3 shown in FIG. 3 from the engineering tool 600. Then, when the system 1A shown in FIG. 16 is activated, the data is expanded from the storage unit 32 of the master unit 3 shown in FIG.
 次に、代表ユニットを変更させる代表ユニット変更処理を、図19Aに示すフローチャートを参照しつつ説明する。この代表ユニット変更処理は、仮想ユニット4Aに代表ユニット変更処理を動作させるプログラムとして、図19Bに示すエンジニアリングツール600の処理設定部623より、図17Bに示した仮想ユニット4Aの第1従属ユニット42の記憶部423及び図17Cに示した第2従属ユニット43の記憶部433に記憶されている。このプログラムは、システム1Aの起動時に、図17Bに示した第1従属ユニット42の記憶部423からメモリ424に読み出され、プロセッサ420にて実行される。同様に、このプログラムは、図17Cに示した第2従属ユニット43の記憶部433からメモリ434に読み出され、プロセッサ430にて実行される。 Next, the representative unit changing process for changing the representative unit will be described with reference to the flowchart shown in FIG. 19A. This representative unit changing process is performed by the process setting unit 623 of the engineering tool 600 shown in FIG. 19B as a program for causing the virtual unit 4A to operate the representative unit changing process. It is stored in the storage unit 423 and the storage unit 433 of the second subordinate unit 43 shown in FIG. 17C. This program is read into the memory 424 from the storage unit 423 of the first subordinate unit 42 shown in FIG. 17B when the system 1A is activated, and is executed by the processor 420. Similarly, this program is read from the storage unit 433 of the second subordinate unit 43 shown in FIG. 17C to the memory 434 and executed by the processor 430.
 図19Aに戻る。第1従属ユニット42及び第2従属ユニット43が現在の代表ユニット40の動作不良を検知した場合には(ステップS20;YES)、第1従属ユニット42及び第2従属ユニット43は、スイッチングハブ15を介して、現在の代表ユニットの優先順位を取得する(ステップS21)。また第1従属ユニット42及び第2従属ユニット43が現在の代表ユニット40の動作不良を検知してない場合には(ステップS20;NO)、第1従属ユニット42及び第2従属ユニット43は、今までの動作を継続する。 Return to FIG. 19A. When the first subordinate unit 42 and the second subordinate unit 43 detect the current malfunction of the representative unit 40 (step S20; YES), the first subordinate unit 42 and the second subordinate unit 43 operate the switching hub 15. The current priority order of the representative unit is acquired (step S21). When the first subordinate unit 42 and the second subordinate unit 43 have not detected the current malfunction of the representative unit 40 (step S20; NO), the first subordinate unit 42 and the second subordinate unit 43 are To continue the operation.
 第1従属ユニット42及び第2従属ユニット43は、自身の優先順位と現在の代表ユニット40の優先順位とを比較する。現在の代表ユニット40の優先順位の次に高い優先順位を持つ従属ユニットが、新たな代表ユニットになる。ここでは、図16に示すように、代表ユニット40の優先順位は第1位である。次に高い優先順位は第2位であり、第2従属ユニット43に設定されている。このため、第2従属ユニット43が、新たな代表ユニットとして選出される(ステップS22)。新たな代表ユニットとして選出された第2従属ユニット43は、現在の代表ユニット40の動作を無効化させる(ステップS23)。 The first subordinate unit 42 and the second subordinate unit 43 compare their own priorities with the priorities of the current representative unit 40. The dependent unit having the next highest priority of the current representative unit 40 becomes the new representative unit. Here, as shown in FIG. 16, the priority of the representative unit 40 is first. The second highest priority is the second, and the second subordinate unit 43 is set. Therefore, the second subordinate unit 43 is selected as a new representative unit (step S22). The second subordinate unit 43 selected as the new representative unit invalidates the current operation of the representative unit 40 (step S23).
 第2従属ユニット43は、自身と、代表ユニット40と、第1従属ユニット42に設定されている代表ユニットの優先順位を変更する。例えば、図20に示すように、第2従属ユニット43は、自身の優先順位を第1位、第1従属ユニット42の優先順位を第2位、代表ユニット40の優先順位を第3位に変更する。第2従属ユニット43は、変更した代表ユニットの優先順位の情報を優先順位変更情報としてまとめる。第2従属ユニット43は、この優先順位変更情報をマスタユニット3へ送信する。 The second subordinate unit 43 changes the priority order of itself, the representative unit 40, and the representative units set in the first subordinate unit 42. For example, as shown in FIG. 20, the second subordinate unit 43 changes its priority to the first, the priority of the first subordinate unit 42 to the second, and the representative unit 40 to the third. To do. The second subordinate unit 43 collects the changed priority information of the representative units as priority change information. The second subordinate unit 43 transmits this priority order change information to the master unit 3.
 マスタユニット3は、受信した優先順位変更情報の内容をもとに、図2に示したメモリ33上に展開されている、図18に示したチャンネル割り付け情報220を更新する(ステップS24)。更新したチャンネル割り付け情報220の一例を、図21に示す。これにより、マスタユニット3は、第2従属ユニット43を新たな代表ユニットとして認識する。以後、マスタユニット3は、CPUユニット2から受信したデータを、第2従属ユニット43に送信する。 The master unit 3 updates the channel allocation information 220 shown in FIG. 18, which is expanded in the memory 33 shown in FIG. 2, based on the content of the received priority change information (step S24). FIG. 21 shows an example of the updated channel allocation information 220. As a result, the master unit 3 recognizes the second subordinate unit 43 as a new representative unit. After that, the master unit 3 transmits the data received from the CPU unit 2 to the second subordinate unit 43.
 また、新たな従属ユニットとなった代表ユニット40は動作不良であるため、第2従属ユニット43は、代表ユニット40から入力値データを取得できない。このため、第2従属ユニット43は、代表ユニット40からの入力値データとして、予め定められたデフォルト値、0、任意の値等をマスタユニット3に送信する。 Also, since the representative unit 40, which has become a new dependent unit, is malfunctioning, the second dependent unit 43 cannot acquire the input value data from the representative unit 40. Therefore, the second subordinate unit 43 transmits a predetermined default value, 0, an arbitrary value, etc. to the master unit 3 as the input value data from the representative unit 40.
 以上のように、実施の形態2におけるエンジニアリングツール600によれば、実施の形態1の効果に加え、代表ユニット40が動作不良になった場合には、従属ユニットを新たな代表ユニットして動作させるように設定をすることができる。これにより、従属ユニットを新たな代表ユニットとし、代表ユニット40を新たな従属ユニットとして、仮想ユニット4Aを構成することができる。したがって、代表ユニット40が動作不良になった場合でも、仮想ユニット4Aを動作させることができる。また、仮想ユニット4Aの仮想チャンネル12の数は変更されない。このため、CPUユニット2に導入されている制御プログラムを、変更せず、そのまま継続して使用することができる。これにより、CPUユニット2に導入された制御プログラムを変更するための工数を、削減することができるという効果がある。 As described above, according to the engineering tool 600 of the second embodiment, in addition to the effect of the first embodiment, when the representative unit 40 malfunctions, the dependent unit is operated as a new representative unit. Can be set as follows. As a result, the virtual unit 4A can be configured with the subordinate unit as a new representative unit and the representative unit 40 as a new subordinate unit. Therefore, even if the representative unit 40 malfunctions, the virtual unit 4A can be operated. Further, the number of virtual channels 12 of the virtual unit 4A is not changed. Therefore, the control program installed in the CPU unit 2 can be continuously used without any change. Thereby, there is an effect that the number of steps for changing the control program introduced into the CPU unit 2 can be reduced.
(変形例1)
 上述の実施の形態1及び実施の形態2では、エンジニアリングツール600と配置設定ツール710とを、図2に示したPC6にインストールするものとした。これに限らず、エンジニアリングツール600と配置設定ツール710は別々のPC6にインストールされてもよい。また、上述の実施の形態1及び実施の形態2では、エンジニアリングツール600と配置設定ツール710は、PC6にインストールされるものとした。これに限らず、エンジニアリングツール600と配置設定ツール710を動作させることができるコンピュータ、コンピュータシステム、装置であれば、いずれのものであってもよい。
(Modification 1)
In the first and second embodiments described above, the engineering tool 600 and the placement setting tool 710 are installed in the PC 6 shown in FIG. Not limited to this, the engineering tool 600 and the placement setting tool 710 may be installed in different PCs 6. Further, in the above-described first and second embodiments, the engineering tool 600 and the placement setting tool 710 are installed in the PC 6. The invention is not limited to this, and any computer, computer system, or device that can operate the engineering tool 600 and the placement setting tool 710 may be used.
(変形例2)
 上述の実施の形態1及び実施の形態2では、仮想ユニット4の仮想チャンネル12に動作設定を行うための動作パラメータ211、212を、図11に示したエンジニアリングツール600の動作パラメータ作成部621により作成させた。また、通信パラメータ213、214を、図11に示した通信パラメータ作成部622により作成させた。これに限らず、動作パラメータ作成部621と通信パラメータ作成部622の機能を、1つの動作設定パラメータ作成部としてもよい。
(Modification 2)
In the first and second embodiments described above, the operation parameters 211 and 212 for setting the operation on the virtual channel 12 of the virtual unit 4 are created by the operation parameter creation unit 621 of the engineering tool 600 shown in FIG. Let Further, the communication parameters 213 and 214 are created by the communication parameter creating unit 622 shown in FIG. The functions of the operation parameter creation unit 621 and the communication parameter creation unit 622 are not limited to this, and may be one operation setting parameter creation unit.
(変形例3)
 上述の実施の形態1では、仮想ユニット4に1台の従属ユニット41を備えるものとした。これに限らず、仮想ユニット4に複数台の従属ユニット41を備えるようにしてもよい。この場合、各従属ユニット41の第1ネットワークインターフェース411を、通信経路を介して、代表ユニット40の第2ネットワークインターフェース402と接続させる。これにより、各従属ユニット41を、代表ユニット40からパススルーで制御することが可能となる。
(Modification 3)
In the above-described first embodiment, the virtual unit 4 is provided with one subordinate unit 41. Not limited to this, the virtual unit 4 may be provided with a plurality of subordinate units 41. In this case, the first network interface 411 of each subordinate unit 41 is connected to the second network interface 402 of the representative unit 40 via the communication path. As a result, each subordinate unit 41 can be controlled by pass-through from the representative unit 40.
 本発明では、エンジニアリングツール600、配置設定ツール710、および、CPUユニット2で実行される各処理をプログラムとし、例えば、コンピュータが読み取り可能なCD-ROM(Compact Disc Read Only Memory)、DVD-ROM(Digital Versatile Disc Read Only Memory)などの記録媒体に格納して配布できるようにしてもよい。このプログラムをコンピュータにインストールすることにより、上述の各処理を実現することができるコンピュータを構成してもよい。そして、各処理をOS(Operating System)とアプリケーションとの分担、またはOSとアプリケーションとの協同により実現する場合等には、アプリケーションのみを記録媒体に格納してもよい。 In the present invention, each processing executed by the engineering tool 600, the placement setting tool 710, and the CPU unit 2 is a program, and for example, a computer-readable CD-ROM (Compact Disc Read Only Memory), DVD-ROM ( It may be stored in a recording medium such as Digital Versatile Disc Read Only Memory) so that it can be distributed. By installing this program in a computer, a computer that can implement each of the above processes may be configured. Then, in the case where each process is realized by the sharing of the OS (Operating System) and the application or the cooperation of the OS and the application, only the application may be stored in the recording medium.
 本発明は、本発明の広義の精神と範囲を逸脱することなく、様々な実施の形態及び変形が可能とされるものである。また、上述した実施の形態は、この発明を説明するためのものであり、本発明の範囲を限定するものではない。すなわち、本発明の範囲は、実施の形態ではなく、請求の範囲によって示される。そして、請求の範囲内及びそれと同等の発明の意義の範囲内で施される様々な変形が、この発明の範囲内とみなされる。 The present invention allows various embodiments and modifications without departing from the broad spirit and scope of the present invention. Further, the above-described embodiments are for explaining the present invention and do not limit the scope of the present invention. That is, the scope of the present invention is shown not by the embodiments but by the scope of the claims. Various modifications made within the scope of the claims and the scope of the invention equivalent thereto are considered to be within the scope of the present invention.
 本発明は、PLCユニットに好適に利用することができる。特に、スレーブユニットの置き換えを行う場合への適用は好適である。 The present invention can be suitably used for a PLC unit. In particular, the application to the case where the slave unit is replaced is suitable.
 1 システム、2 CPUユニット、3 マスタユニット、4 仮想ユニット、5 生産ライン装置、6 PC、12 仮想チャンネル、20、30、400、410、610 プロセッサ、21、31 外部バスインターフェース、22 PCインターフェース、23、32、62、423、433 記憶部、24、33、424、434、611 メモリ、34 ネットワークインターフェース、40 代表ユニット、41 従属ユニット、42 第1従属ユニット、43 第2従属ユニット、401、411 第一ネットワークインターフェース、402、412 第2ネットワークインターフェース、405、415 チャンネルセレクタ、406、416 ADコンバータ、408 代表ユニットチャンネル、418 従属ユニットチャンネル、428 第1従属ユニットチャンネル、438 第2従属ユニットチャンネル、600 エンジニアリングツール、710 配置設定ツール。 1 system, 2 CPU unit, 3 master unit, 4 virtual unit, 5 production line device, 6 PC, 12 virtual channels, 20, 30, 400, 410, 610 processor, 21, 31 external bus interface, 22 PC interface, 23 , 32, 62, 423, 433 storage unit, 24, 33, 424, 434, 611 memory, 34 network interface, 40 representative unit, 41 dependent unit, 42 first dependent unit, 43 second dependent unit, 401, 411st One network interface, 402, 412 second network interface, 405, 415 channel selector, 406, 416 AD converter, 408 representative unit channel, 418 subordinate unit DOO channel 428 first subordinate unit channel, 438 second subordinate unit channels 600 engineering tool, 710 disposed configuration tool.

Claims (10)

  1.  制御対象機器を接続するためのチャンネルを備える第1スレーブユニットを、前記制御対象機器を制御するためのデータを外部ユニットと送受信する代表ユニットとして設定し、前記制御対象機器を接続するためのチャンネルを備える第2スレーブユニットを、前記代表ユニットを介して前記制御対象機器を制御するためのデータを外部ユニットと送受信する従属ユニットとして設定する代表ユニット設定部と、
     一連するチャンネルを予め定めたチャンネル割り付け情報に基づいて、前記代表ユニットのチャンネルと、前記従属ユニットのチャンネルとに、前記一連するチャンネルを割り付けるチャンネル割り付け部と、
     前記外部ユニットから前記代表ユニットが受信した受信データを、自身と前記従属ユニットとに振り分けるためのデータ受信情報の設定、または、前記代表ユニットが前記従属ユニットから自身へ送信された送信データと自身の送信データとを共に、前記外部ユニットへ送信するためのデータ送信情報を設定する送受信設定部と、
     前記代表ユニットと前記従属ユニットとを、前記一連するチャンネルの数と同一なチャンネルの数を備える他のスレーブユニットと置き換えることが可能な仮想ユニットとして設定する仮想ユニット設定部と、
     を備えるエンジニアリングツール。
    A first slave unit having a channel for connecting a control target device is set as a representative unit that transmits and receives data for controlling the control target device to and from an external unit, and a channel for connecting the control target device is set. A representative unit setting unit that sets the second slave unit that is provided as a subordinate unit that transmits and receives data for controlling the controlled device via the representative unit to and from an external unit;
    A channel allocating unit that allocates the series of channels to the representative unit channel and the subordinate unit channel based on predetermined channel allocation information of the series of channels;
    The reception data received by the representative unit from the external unit is set in the data reception information for distributing the data to itself and the subordinate unit, or the representative unit transmits the transmission data from the subordinate unit to itself and the transmission data of itself. A transmission / reception setting unit that sets data transmission information for transmitting the transmission data together with the external unit,
    A virtual unit setting unit that sets the representative unit and the subordinate unit as a virtual unit that can be replaced with another slave unit having the same number of channels as the number of the series of channels,
    An engineering tool equipped with.
  2.  前記チャンネル割り付け情報と、前記仮想ユニットの保持するデータの種類を設定した出力ユニット保持データと、前記代表ユニットとして設定した第1スレーブユニットの保持する第1スレーブユニット保持データと、前記従属ユニットとして設定した第2スレーブユニットの保持する第2スレーブユニット保持データとに基づいて、前記データ受信情報と前記データ送信情報とを作成するデータ送受信情報作成部をさらに備える、
     請求項1に記載のエンジニアリングツール。
    The channel allocation information, the output unit holding data in which the type of data held in the virtual unit is set, the first slave unit holding data in the first slave unit set as the representative unit, and the subordinate unit are set. And a data transmission / reception information creation unit that creates the data reception information and the data transmission information based on the second slave unit holding data held by the second slave unit.
    The engineering tool according to claim 1.
  3.  前記仮想ユニットの各チャンネルに実行させる動作を設定するための動作設定情報に基づいて、前記代表ユニットとして設定された第1スレーブユニットと、前記従属ユニットとして設定された第2スレーブユニットとに実行させる動作を設定するための動作パラメータを作成する動作設定パラメータ作成部をさらに備える、
     請求項1または2に記載のエンジニアリングツール。
    The first slave unit set as the representative unit and the second slave unit set as the subordinate unit are made to execute based on the operation setting information for setting the operation to be executed in each channel of the virtual unit. An operation setting parameter creating unit that creates an operation parameter for setting an operation is further provided.
    The engineering tool according to claim 1.
  4.  前記代表ユニットと前記外部ユニットとの間の通信に必要な送信用データサイズ及び受信用データサイズが設定された第1通信パラメータと、前記代表ユニットと前記従属ユニットとの間の通信に必要な送信用データサイズ及び受信用データサイズが設定された第2通信パラメータとを作成する通信パラメータ作成部をさらに備える、
     請求項1から3のいずれか一項に記載のエンジニアリングツール。
    A first communication parameter in which a transmission data size and a reception data size required for communication between the representative unit and the external unit are set, and a transmission required for communication between the representative unit and the slave unit. A communication parameter creating unit for creating a second communication parameter in which the credit data size and the reception data size are set,
    The engineering tool according to any one of claims 1 to 3.
  5.  前記代表ユニットが、前記従属ユニットとして設定された第2スレーブユニットの動作不良を検出した場合に、前記従属ユニットとして設定された第2スレーブユニットのチャンネルへの制御を前記代表ユニットに停止させるように設定する処理設定部をさらに備える、
     請求項1から4のいずれか一項に記載のエンジニアリングツール。
    When the representative unit detects a malfunction of the second slave unit set as the subordinate unit, the representative unit stops controlling the channel of the second slave unit set as the subordinate unit. Further comprising a processing setting unit for setting,
    The engineering tool according to any one of claims 1 to 4.
  6.  前記制御対象機器を接続するためのチャンネルを備える第3スレーブユニット及び第4スレーブユニットを、前記代表ユニットを介して前記制御対象機器を制御するためのデータを外部ユニットと送受信する第1従属ユニット及び第2従属ユニットとして設定し、
     前記代表ユニットとして設定された第1スレーブユニットが動作不良となった場合に、前記第1従属ユニットまたは前記第2従属ユニットを新たな代表ユニットとして動作させるように設定する処理設定部をさらに備える、
     請求項1から4のいずれか一項に記載のエンジニアリングツール。
    A first slave unit that transmits and receives data for controlling the controlled device to and from an external unit via a third slave unit and a fourth slave unit having channels for connecting the controlled device, and Set as a second dependent unit,
    And a processing setting unit configured to set the first slave unit or the second slave unit to operate as a new representative unit when the first slave unit set as the representative unit malfunctions.
    The engineering tool according to any one of claims 1 to 4.
  7.  請求項1から6のいずれか一項に記載のエンジニアリングツールと、
     前記制御対象機器を備える生産ライン装置の配置を設定できる配置設定部、及び、前記生産ライン装置に対して前記仮想ユニットが持つチャンネルを割り当てる入出力割当部を含む配置設定ツールと、
     を備えるコンピュータシステム。
    An engineering tool according to any one of claims 1 to 6,
    A placement setting unit that can set a placement of a production line device including the controlled device, and a placement setting tool that includes an input / output assigning unit that assigns channels of the virtual unit to the production line device,
    A computer system including.
  8.  制御対象機器を接続するためのチャンネルを備える代表ユニットと、
     前記制御対象機器を接続するためのチャンネルを備え、前記代表ユニットに接続された従属ユニットと、
     前記制御対象機器を制御するためのデータを、前記代表ユニットと送受信する外部ユニットと、
     を含み、
     前記代表ユニットは、前記外部ユニットから受信した受信データを、自身と前記従属ユニットとに振り分け、または、前記従属ユニットから自身へ送信された送信データと自身の送信データとを共に、前記外部ユニットへ送信するように設定されている、
     システム。
    A representative unit having a channel for connecting a controlled device,
    A subordinate unit that is provided with a channel for connecting the control target device and is connected to the representative unit;
    An external unit that transmits and receives data for controlling the controlled device to and from the representative unit,
    Including,
    The representative unit distributes the received data received from the external unit to itself and the dependent unit, or sends both the transmitted data transmitted from the dependent unit to itself and the own transmitted data to the external unit. Is set to send,
    system.
  9.  制御対象機器を接続するためのチャンネルを備える第1スレーブユニットを、前記制御対象機器を制御するためのデータを外部ユニットと送受信する代表ユニットとして設定し、前記制御対象機器を接続するためのチャンネルを備える第2スレーブユニットを、前記代表ユニットを介して前記制御対象機器を制御するためのデータを外部ユニットと送受信する従属ユニットとして設定し、
     一連するチャンネルを予め定めたチャンネル割り付け情報に基づいて、前記代表ユニットのチャンネルと、前記従属ユニットのチャンネルとに、前記一連するチャンネルを割り付け、
     前記外部ユニットから前記代表ユニットが受信した受信データを、自身と前記従属ユニットとに振り分けるためのデータ受信情報の設定、または、前記代表ユニットが前記従属ユニットから自身へ送信された送信データと自身の送信データとを共に、前記外部ユニットへ送信するためのデータ送信情報を設定し、
     前記代表ユニットと前記従属ユニットとを、前記一連するチャンネルの数と同一なチャンネルの数を備える他のスレーブユニットと置き換えることが可能な仮想ユニットとして設定する、
     方法。
    A first slave unit having a channel for connecting a control target device is set as a representative unit that transmits and receives data for controlling the control target device to and from an external unit, and a channel for connecting the control target device is set. The second slave unit provided is set as a subordinate unit that transmits and receives data for controlling the controlled device via the representative unit to and from an external unit,
    Assigning the series of channels to a channel of the representative unit and a channel of the subordinate unit based on channel assignment information that defines a series of channels in advance,
    The reception data received by the representative unit from the external unit is set in the data reception information for distributing the data to itself and the subordinate unit, or the representative unit transmits the transmission data from the subordinate unit to itself and the transmission data of itself. With the transmission data, set the data transmission information for transmitting to the external unit,
    The representative unit and the subordinate unit are set as virtual units that can be replaced with other slave units having the same number of channels as the number of the series of channels,
    Method.
  10.  コンピュータを、
     制御対象機器を接続するためのチャンネルを備える第1スレーブユニットを、前記制御対象機器を制御するためのデータを外部ユニットと送受信する代表ユニットとして設定し、前記制御対象機器を接続するためのチャンネルを備える第2スレーブユニットを、前記代表ユニットを介して前記制御対象機器を制御するためのデータを外部ユニットと送受信する従属ユニットとして設定する代表ユニット設定手段、
     一連するチャンネルを予め定めたチャンネル割り付け情報に基づいて、前記代表ユニットのチャンネルと、前記従属ユニットのチャンネルとに、前記一連するチャンネルを割り付けるチャンネル割り付け手段、
     前記外部ユニットから前記代表ユニットが受信した受信データを、自身と前記従属ユニットとに振り分けるためのデータ受信情報の設定、または、前記代表ユニットが前記従属ユニットから自身へ送信された送信データと自身の送信データとを共に、前記外部ユニットへ送信するためのデータ送信情報を設定する送受信設定手段、
     前記代表ユニットと前記従属ユニットとを、前記一連するチャンネルの数と同一なチャンネルの数を備える他のスレーブユニットと置き換えることが可能な仮想ユニットとして設定する仮想ユニット設定手段、
     として機能させるためのプログラム。
    Computer,
    A first slave unit having a channel for connecting a control target device is set as a representative unit that transmits and receives data for controlling the control target device to and from an external unit, and a channel for connecting the control target device is set. Representative unit setting means for setting the second slave unit provided as a subordinate unit that transmits and receives data for controlling the controlled device via the representative unit to and from an external unit,
    Channel allocating means for allocating the series of channels to the channel of the representative unit and the channel of the subordinate unit based on channel allocation information that defines a series of channels in advance;
    The reception data received by the representative unit from the external unit is set in the data reception information for distributing the data to itself and the subordinate unit, or the representative unit transmits the transmission data transmitted from the subordinate unit to itself and the subordinate unit. Transmission / reception setting means for setting data transmission information for transmitting to the external unit together with transmission data,
    Virtual unit setting means for setting the representative unit and the subordinate unit as a virtual unit that can be replaced with another slave unit having the same number of channels as the series of channels,
    Program to function as.
PCT/JP2018/038314 2018-10-15 2018-10-15 Engineering tool, computer system, system, method, and program WO2020079730A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2019519767A JPWO2020079730A1 (en) 2018-10-15 2018-10-15 Engineering tools, computer systems, systems and programs
PCT/JP2018/038314 WO2020079730A1 (en) 2018-10-15 2018-10-15 Engineering tool, computer system, system, method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2018/038314 WO2020079730A1 (en) 2018-10-15 2018-10-15 Engineering tool, computer system, system, method, and program

Publications (1)

Publication Number Publication Date
WO2020079730A1 true WO2020079730A1 (en) 2020-04-23

Family

ID=70283796

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2018/038314 WO2020079730A1 (en) 2018-10-15 2018-10-15 Engineering tool, computer system, system, method, and program

Country Status (2)

Country Link
JP (1) JPWO2020079730A1 (en)
WO (1) WO2020079730A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7462848B1 (en) 2023-04-14 2024-04-05 三菱電機株式会社 PLC system, remote unit, master station, remote unit control method, master station control method, remote unit control program, and master station control program

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06124103A (en) * 1992-10-12 1994-05-06 Omron Corp Programmable controller
JP2007095107A (en) * 2005-02-28 2007-04-12 Omron Corp Parameter setting device
JP2008146385A (en) * 2006-12-11 2008-06-26 Mitsubishi Electric Corp Program generating device, program generation method and program for making computer execute the program
WO2013136913A1 (en) * 2012-03-15 2013-09-19 オムロン株式会社 Control device, and control method
JP2015133002A (en) * 2014-01-14 2015-07-23 横河電機株式会社 Instrument system and maintenance method therefor
JP2016092544A (en) * 2014-10-31 2016-05-23 ヤマハ発動機株式会社 Control system, control method, and extension board
JP2017192301A (en) * 2016-02-29 2017-10-19 株式会社安川電機 Motor control system, robot system, and communication method for motor control system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005269879A (en) * 2004-02-19 2005-09-29 Toshiba Corp Control system
JP6721992B2 (en) * 2016-02-04 2020-07-15 株式会社Kmc Production information collection system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06124103A (en) * 1992-10-12 1994-05-06 Omron Corp Programmable controller
JP2007095107A (en) * 2005-02-28 2007-04-12 Omron Corp Parameter setting device
JP2008146385A (en) * 2006-12-11 2008-06-26 Mitsubishi Electric Corp Program generating device, program generation method and program for making computer execute the program
WO2013136913A1 (en) * 2012-03-15 2013-09-19 オムロン株式会社 Control device, and control method
JP2015133002A (en) * 2014-01-14 2015-07-23 横河電機株式会社 Instrument system and maintenance method therefor
JP2016092544A (en) * 2014-10-31 2016-05-23 ヤマハ発動機株式会社 Control system, control method, and extension board
JP2017192301A (en) * 2016-02-29 2017-10-19 株式会社安川電機 Motor control system, robot system, and communication method for motor control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7462848B1 (en) 2023-04-14 2024-04-05 三菱電機株式会社 PLC system, remote unit, master station, remote unit control method, master station control method, remote unit control program, and master station control program

Also Published As

Publication number Publication date
JPWO2020079730A1 (en) 2021-02-15

Similar Documents

Publication Publication Date Title
EP2793093B1 (en) Methods and apparatus to upgrade and provide control redundancy in process plants
US11303852B2 (en) Sensor information processing system using container orchestration technique
JP4319105B2 (en) Manufacturing system, gateway device, gateway program, and control method of controlled device
US7519968B2 (en) Decentralized control system for network connection
JP2018073414A5 (en)
JP6563187B2 (en) Distributed control system, control device, and control method
CN101609421A (en) The multi-control system of arithmetic processing apparatus and multiple control method
WO2020079730A1 (en) Engineering tool, computer system, system, method, and program
JP2017191373A (en) Multi-agent system, task assignment device, task assignment method, and program
US9935784B2 (en) Networked air-conditioning system, repeater and program
JP4404493B2 (en) Computer system
WO2015162754A1 (en) Control system, master station, and remote station
WO2015045004A1 (en) Programmable controller and control method for programmable controller
KR102129465B1 (en) Plc system and method for increasing the unit of the same
JP3896076B2 (en) Numerical controller
JP2001310281A (en) Method of configuration acquisition and method of detecting condition
CN111758089A (en) Engineering tool, controller and control system
JPH1139018A (en) Control system
WO2022124153A1 (en) Robot control device, robot control system, and robot control method
JP5672225B2 (en) HARDWARE MANAGEMENT DEVICE, INFORMATION PROCESSING DEVICE, HARDWARE MANAGEMENT METHOD, AND COMPUTER PROGRAM
JP2019134219A (en) Network system, control method, and control device
JP7462848B1 (en) PLC system, remote unit, master station, remote unit control method, master station control method, remote unit control program, and master station control program
JP4121987B2 (en) Equipment control system
JP7229749B2 (en) Information processing device, information processing method, program, recording medium, and information processing system
JP6888204B2 (en) Temperature controller and communication converter

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2019519767

Country of ref document: JP

Kind code of ref document: A

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

Ref document number: 18937401

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18937401

Country of ref document: EP

Kind code of ref document: A1