WO2019043811A1 - Local number setting device for network device - Google Patents

Local number setting device for network device Download PDF

Info

Publication number
WO2019043811A1
WO2019043811A1 PCT/JP2017/031063 JP2017031063W WO2019043811A1 WO 2019043811 A1 WO2019043811 A1 WO 2019043811A1 JP 2017031063 W JP2017031063 W JP 2017031063W WO 2019043811 A1 WO2019043811 A1 WO 2019043811A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
network
unit
configuration
station number
Prior art date
Application number
PCT/JP2017/031063
Other languages
French (fr)
Japanese (ja)
Inventor
智仁 梶本
Original Assignee
三菱電機株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 三菱電機株式会社 filed Critical 三菱電機株式会社
Priority to PCT/JP2017/031063 priority Critical patent/WO2019043811A1/en
Priority to JP2018552023A priority patent/JP6512377B1/en
Priority to CN201780094242.3A priority patent/CN111034126B/en
Publication of WO2019043811A1 publication Critical patent/WO2019043811A1/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]

Definitions

  • the present invention relates to a station number setting device for setting a station number of a device connected to a network.
  • a network system composed of a plurality of devices connected via a network, such as an FA system consisting of a master device and a slave device
  • the transmission source device when transmitting and receiving information between devices, the transmission source device first transmits A frame containing information to be stored is constructed and sent out to the network, and a device receiving the information receives the frame flowing through the network.
  • a plurality of slave devices are connected to one master device via a network as in the FA system and it is required to transmit and receive information in a short update cycle, information can be efficiently exchanged by exchanging one frame.
  • One frame sent from the master device may include data for a plurality of slave devices.
  • the storage order of data in the frame is associated with the number assigned to each device (hereinafter referred to as a station number), and each slave device It is possible to take in information addressed to the own station by selecting data stored at a location corresponding to the station number assigned to the own station from the frame. At this time, it is necessary to set a station number before starting communication in each device, and this station number setting can be performed manually, but when configuring a system by connecting a large number of devices via a network, When replacing the connected device, the work of setting the station number becomes complicated, so there is a technique for automatically setting the station number.
  • identification information and station number information of slave devices connected to the master device from the management device are notified in advance, and from the slave devices to which the master device is actually connected via the network
  • the identification information is collected, the identification information notified in advance from the management device is compared with the identification information collected from the slave device through the network, and the corresponding station information is transmitted to the slave device which has been confirmed that the identification information matches.
  • the master device matches the identification information collected from the slave device actually connected via the network with the identification information of the slave device notified from the management device Based on the identification information and the corresponding station number information, it is assumed that the slave devices are connected in the order indicated by the station number information, and frames to be transmitted to each slave device are configured. However, for example, if the order of the station number information of slave devices notified from the management device to the master device is different from the connection position of the slave devices actually connected, or if the connection is actually made for reasons such as maintenance etc.
  • connection positions of a plurality of slave devices are exchanged, even if the identification information matches, the connection positions do not match, and the order and actuality of the information addressed to each slave device in the frame configured by the master device
  • the connection order of the slave devices is inconsistent, and the slave devices can not acquire appropriate information. In order to prevent this inconsistency, it is necessary to manually correct identification information and station number information held by the master device.
  • the present invention has been made to solve the above-mentioned problems, and it is an object of the present invention to obtain a station number setting device of a network device capable of setting a station number consistent with the assumed connection relationship between network devices. Do.
  • station number setting device of a network device In the station number setting device of a network device according to the present invention, device unique information of each network device connected to a preset network, connection relation information indicating a connection position between devices, and device unique information collected from the network device Information and connection relation information are collated, and a station number is set in a network device in which device specific information and connection relation information are consistent.
  • connection relationship information is used to specify the network device when setting the station number of the network device, the matching of the connection relationship between the network devices can be confirmed by the connection relationship information. It is possible to set the station number consistent with the connection between devices.
  • FIG. 5 (a) is a network block diagram showing the network connection of the FA system shown in FIG. 1 in detail
  • FIG. 5 (b) is a data block diagram showing setting information used in the station number setting apparatus of the first embodiment.
  • FIG. 6 (a) is an explanatory view showing each device connected via a network and an example of a configuration collection frame transmitted from each device, and FIG.
  • FIG. 6 (b) shows configuration information collected by the master device according to the first embodiment. It is a data block diagram. It is a data block diagram which shows the state where setting information and structure information of Embodiment 1 of this invention are collated. It is a data block diagram which shows the state where setting information and structure information of Embodiment 1 of this invention are collated. It is a sequence diagram which shows the operation
  • FIG. 1 is a block diagram of a FA system having a star network configuration to which the present invention is applied. It is a block diagram of FA system which comprised the network configuration which made the star type wiring and line type wiring which applied this invention mixed.
  • FIG. 6 is a data configuration diagram showing configuration information collected by a master device in the case of a FA system having a star network configuration.
  • an FA system including a master device and a slave device is taken as an example of a system to which the station number setting device of the network device of the present invention is applied, that is, a network system including a plurality of devices connected by a network.
  • this FA system one will be described which automatically sets, in each slave device, a station number that is consistent with the connection relationship between each slave device.
  • the master device is provided with the station number setting device of the network device of the present invention, and the management device sets in advance the configuration information of the FA system consisting of the master device and the slave device. Send information to the master device.
  • the station number setting device provided in the master device that has received this configuration information collects the respective configuration information from the slave devices that are network devices, collates the configuration information preset by the management device, and is consistent By transmitting the station numbers to the slave devices, the station numbers are automatically set in the procedure of setting the station numbers in each slave device. Details will be described below.
  • FIG. 1 is a block diagram of an FA system to which the present invention is applied.
  • This FA system is a system in which a master device and a slave device are connected by an industrial network (hereinafter referred to as FA network), and has a line type network configuration in which each device is connected in a daisy chain. Data transfer in this FA network is performed in a bucket brigade manner.
  • FA network industrial network
  • 1 is a master device for controlling slave devices connected by a FA network installed in a factory or the like
  • 2A to 2D are slave devices for transmitting and receiving control information to and from the master device 1 via the FA network
  • 3 is a master device 1
  • it is a management device that performs parameter setting of the slave devices 2A to 2D, displays error information of the FA system, downloads a sequencer program to be operated in the FA system, etc., and is configured of a personal computer or the like.
  • setting information of each device connected to the FA network is preset by the user.
  • the setting information is device-specific information on the master device and the slave device connected to the FA network and connection relationship information indicating what connection relationship each device has, that is, position information indicating a connection position.
  • This setting information is visually displayed in the management device 3 by a graphical user interface (GUI), and the management device 3 is provided with means for prompting the setting of the station number of each connected device using the GUI.
  • GUI graphical user interface
  • the setting information set by the management device 3 is transmitted to the master device 1.
  • the management device 4 is a master device 1, slave devices 2A to 2D, a management device such as an edge device for interconnecting the FA network connecting the management device 3 and the external network 5, 6 is connected to the external network 5, master
  • the management device exists on a cloud environment for remotely managing the states of the device 1 and the slave devices 2A to 2D.
  • the management apparatus 4 and the management apparatus 6 may be implemented with the same functions as the management apparatus 3, that is, the functions such as the parameter setting, the display of information, and the download of the sequencer program described above.
  • FIG. 2 is a block diagram of the master device 1 of the first embodiment.
  • the input / output port 10 inputs data from the network or outputs data to the network.
  • the selection unit 20 selects the input / output port 10 to be used by the input / output port selection unit 201, and the port information addition unit 202 adds information indicating which port the data is to be output as a result of selection by the input / output port selection unit 201.
  • the communication unit 30 includes a data reception unit 301 that receives data input from the input / output port selected by the input / output port selection unit 201, and a data transmission unit 302 that transmits data from the selected input / output port.
  • the internal bus 40 interconnects the functional blocks that make up the master device 1.
  • the arithmetic processing unit 70 performs various operations.
  • the general-purpose storage unit 80 stores data to be held in the various operations.
  • data transmission / reception is performed via the FA network using the input / output port 10, the selection unit 20, and the communication unit 30, and at the same time, the arithmetic processing unit 70 and the general-purpose storage unit 80 A program etc. operate.
  • the station number setting device 90 includes a configuration collection unit 50 and a station number reference unit 60.
  • the configuration collection unit 50 includes the slave devices 2A to 2D, device unique information of each slave device 2A to 2D, and position information in the network via the network via the input / output port 10, the selection unit 20, and the communication unit 30. It collects information.
  • the configuration collection unit 50 includes a configuration collection frame generation unit 501A, a configuration data generation unit 502A, and a storage unit 503A.
  • the storage unit 503A stores configuration information of each slave device 2A to 2D collected by the configuration collection unit 50.
  • the station number reference unit 60 includes a check unit 601A, a station number setting unit 602A, an error notification unit 603A, and a storage unit 604A.
  • the storage unit 604A setting information set in advance in the management device 3 and transmitted to the master device 1, that is, device-specific information and position information of each device connected to the FA network, and the station number of each device linked with them The setting information including the information of is stored.
  • the collating unit 601A collates the device unique information and the position information stored in the storage unit 604A with the device unique information and the position information collected by the configuration collecting unit 50 and stored in the storage unit 503A.
  • the station number setting unit 602A performs the station number setting by reading from the storage unit 604A the station number corresponding to the slave device whose device-specific information and position information match in the collation unit 601A and notifying the corresponding slave device.
  • the input / output port selection unit 201 performs selection processing of which input / output port 10 the transmission data is to be output to the network from the transmission data input from the data transmission unit 302 of the communication unit 30.
  • the port information adding unit 202 adds information as to which port the data is to be output to the transmission data.
  • the reception data input from the input / output port 10 is output from the selection unit 20 to the data reception unit 301 of the communication unit 30.
  • the port information adding unit 202 adds information as to which input / output port 10 the data is received from to the received data.
  • the communication unit 30 generates and analyzes frame data used in FA network communication.
  • the data receiving unit 301 analyzes header information etc. of the received data input from the selecting unit 20. After analysis, the received data is processed into application data, and output is performed via the internal bus 40 to the functional block where the next processing is executed.
  • the data transmission unit 302 adds header information and the like to application data input via the internal bus 40 to generate frame data. The generated frame data is output to the selection unit 20.
  • the configuration collection frame generation unit 501A In the configuration collection unit 50, the configuration collection frame generation unit 501A generates a configuration collection frame used when the master device 1 performs configuration collection of the slave devices 2A to 2D present on the network, and passes via the internal bus 40, It is output to the data transmission unit 302 of the communication unit 30. Also, the configuration collection result received from the slave devices 2A to 2D is received via the data receiving unit 301 of the communication unit 30, and the configuration data generation unit 502A generates network configuration information from the configuration collection result. The generated network configuration information is temporarily stored in the storage unit 503A.
  • the storage unit 604A temporarily stores the setting information including the "device unique information" and the "position information" of the slave devices 2A to 2D that constitute the network received from the management device 3 and the corresponding "station number". Do.
  • the setting information and the network configuration information generated by the configuration data generation unit 502A of the configuration collection unit 50 are collated by the collation unit 601A. If the collation result is correct, the setting information of the corresponding slave device is generated by the station number setting unit 602A and transmitted to the communication unit 30 via the internal bus 40. When transmitting, it transmits to the corresponding slave device by unicast communication based on the device specific information.
  • the setting information and the network configuration information are collated, and if the network configuration information does not match all the setting information, an error notification frame 603A is generated by the error notification unit 603A, and communication is performed via the internal bus 40. Output to the unit 30.
  • the generated error notification frame is transmitted to the management device 3 by unicast communication.
  • FIG. 3 is a configuration diagram showing a configuration of slave devices 2A to 2D in the first embodiment.
  • the slave devices 2A to 2D each include an input / output port 10, a selection unit 20, a communication unit 30, an internal bus 40, a configuration collection unit 50, a station number reference unit 60, an arithmetic processing unit 70, and a general storage unit 80.
  • the selection unit 20 includes an input / output port selection unit 201 and a port information assignment unit 202.
  • the communication unit 30 includes a data reception unit 301 and a data transmission unit 302.
  • the configuration collection unit 50 includes a configuration collection frame update unit 501B.
  • a collection frame transfer setting unit 502B and a configuration data generation unit 503B are provided, and the station number reference unit 60 is provided with a check unit 601B, a station number setting unit 602B, an error notification unit 603B, and a storage unit 604B.
  • the input / output port 10, the selection unit 20, the communication unit 30, the arithmetic processing unit 70, and the general-purpose storage unit 80 of the slave devices 2A to 2D in FIG. 3 are the input / output port 10 of the master device 1 shown in FIG.
  • the communication unit 30, the arithmetic processing unit 70, and the general-purpose storage unit 80 have the same configuration.
  • the slave devices 2A to 2D having such a configuration when the FA system is operated, data transmission / reception via the FA network is performed using the input / output port 10, the selection unit 20, and the communication unit 30. Processing is performed in the arithmetic processing unit 70 and the general-purpose storage unit 80 according to control by a sequencer program or the like from the master device 1 and operates as a part of the FA system.
  • the station number setting device 90 includes a configuration collection unit 50 and a station number reference unit 60.
  • Configuration collecting unit 50 in the first embodiment operates configuration collecting frame generating unit 501A, configuration data generating unit 502A, storage unit 503A of master device 1, and configuration collecting frame updating unit 501B of slave devices 2A to 2D. .
  • the slave apparatus 2A to 2D updates the configuration collection frame transferred and received from the master apparatus 1 or other slave apparatuses 2A to 2D, the apparatus unique information of the own apparatus, the apparatus unique information of the transmission source apparatus, and the transmission unique apparatus Information on which input / output port 10 received the frame is added to the configuration collection frame.
  • the updated configuration collection frame is set by the configuration collection frame transfer setting unit 502B for transfer to the master device 1 and other slave devices, and is output to the data transmission unit of the communication unit 30 via the internal bus Ru.
  • the station number reference unit 60 and the configuration data generation unit 503B of the slave devices 2A to 2D do not operate.
  • the station number reference unit 60 and the configuration data The configuration without the generation unit 503B may be employed.
  • FIG. 4 is a sequence diagram showing an operation of setting the station numbers of the slave devices 2A to 2D by the station number setting device 90 of the present invention.
  • the slave devices 2C and 2D are omitted in FIG.
  • the user first sets the network setting information on the screen of the management apparatus 3 in step S1.
  • FIG. 5 (a) is a network configuration diagram showing in more detail the master device 1 and each slave device 2A to 2D when setting the setting information of the FA system shown in FIG. 1, and FIG. It is a data configuration diagram showing an example of setting information in which a proper network configuration is set.
  • a model name is used as device-specific information of a network device connected to the network.
  • information unique to the device such as model name information and MAC address as the device unique information.
  • the position information in the format example of the setting information includes “input / output port 1” and “input / output port 2” provided in the master unit 1 and the slave units 2A to 2D, and connection destinations connected to the respective ports. And device-specific information of the device.
  • the device setting information of the network is configured by associating the device specific information and the position information corresponding to each device with the station numbers for identifying each device on the network. Although the numbers 1 to 5 are used as the station numbers in the example of FIG. 5, the numbers may not be numbers as long as the numbers are unique to each device in the network.
  • step S2 the management device 3 sends the network to the master device 1 the setting information including the “device specific information” and “position information” set in step S1 by the user and the “station number” corresponding to them. Send via.
  • the setting information transmitted to the master device 1 is stored in the storage unit 604A of the master device 1.
  • step S3 the master device 1 generates a configuration collection frame for collecting configuration information including device unique information and position information in the network from the slave devices 2A to 2D by the configuration collection frame generation unit 504A, and inputs and outputs It transmits to the adjacent slave device 2A via the port 10.
  • FIG. 6A shows an example of each device actually connected to the network and a configuration collection frame transmitted from each device.
  • “device type information” which is device unique information of the master device 1 itself is stored in “device unique information of own device”, and device unique information of “preceding device” There is nothing stored in the "port connected to the previous device”.
  • step S4 the slave device 2A that receives the configuration collection frame from the master device 1 updates the content of the configuration collection frame by the configuration collection frame updating unit 501B.
  • the content of "device-specific information of its own” in the configuration collection frame is updated to "type B", which is device-specific information of the slave device 2A itself, and "device-specific information of the previous device”
  • the contents of the above are updated to "Model A” that is the device unique information of the master device 1 that has sent this configuration collection frame, and the content of "port connected to the previous device” is the model unique information of the own device. Update to “Model B; Port 1” consisting of “Port 1” to which “Model B” and the master device 1 are connected.
  • the updated configuration collection frame is transferred to the master device 1 and the adjacent slave device 2B (step S5).
  • the master device 1 having received the configuration collection frame from the slave device 2A holds the configuration collection frame sent from the slave device 2A in the storage unit 503A (step S6).
  • the fact that the configuration collection frame is sent to the next connected slave device 2B triggers the slave device 2B to provide the configuration information, and the configuration collection frame is sent to the master device 1 at the same time. 1 is to collect information indicating the positional relationship between the slave device 2A and the peripheral device.
  • the slave device 2B similarly to the operation of the slave device 2A described above, the slave device 2B also updates the contents of the configuration collection frame (step S7), and transfers the updated configuration collection frame to the master device 1 and the adjacent slave device 2C. (Step S8).
  • Similar operations are performed in the slave devices 2C and 2D.
  • four configuration acquisition frames as shown in FIG. 6A are sent to the master device 1 from the slave devices 2A to 2D.
  • the slave device 2D is an end slave device without a slave device to be connected next, and in the end slave device 2D, the operation of transmitting the configuration collection frame to the master device 1 but transferring it to another slave device is Not performed.
  • the master device 1 receives the configuration collection frames updated in the slave devices 2A to 2D, respectively, and holds them in the storage unit 503A.
  • the master device 1 monitors whether the configuration collection frame has been received from the slave device at the end, which has only one connection port information of the updated configuration collection frame.
  • step S10 If, in step S10, it is detected that the configuration collection frame has been received from the slave device at the end, the master device 1 collects the configuration collection frames from each slave device 2A to 2D and integrates them, as shown in FIG. Collection configuration information is generated.
  • the generated collection configuration information includes “device unique information” and “position information” of the slave devices 2A to 2D, and the collection configuration information is stored in the storage unit 503A.
  • step S11 the master device 1 obtains the configuration information collected from the slave devices 2A to 2D shown in FIG. 6B and stored in the storage unit 503A, and the management device shown in FIG. 5B.
  • the collation unit 601A collates the "device-specific information" and the "position information" of the setting information received from 3 and stored in the storage unit 604A.
  • FIGS. 7 and 8 are data configuration diagrams showing a state where setting information and configuration information are collated in the first embodiment, and FIG. 7 is received from configuration information stored in storage unit 503A and management apparatus 3.
  • FIG. 8 shows a case where the setting information stored in the storage unit 604A is matched, that is, matched.
  • step S11 For a slave device in which both “device-specific information” and “position information” match, “station number corresponding to“ device-specific information ”and“ position information ”of the slave device Is read from the storage unit 604A by the station number setting unit 602A, and the read station number is set as the station number of the slave device in which "device specific information" and "position information” match (step S12). Then, the set station numbers are transmitted to the corresponding slave devices 2A to 2D (steps S13 and S14).
  • Step S15, step S16 the station number sent is held as the station number of the own device by being held in the storage unit 604B, and this station number is the other device in the subsequent operation.
  • the station number setting is performed by the operation of the station number setting device 90 as described above, and after the station number setting, the arithmetic processing unit 70 of the master device 1 performs processing based on the user's program stored in the general-purpose storage unit 80 of the master device 1.
  • the slave devices are controlled via the input / output port 10 to control the slave devices 2A to 2D.
  • the station number since the station number is set after collating the set position information and the collected position information, the connection relationship between the network devices assumed by the user and the actual state It is possible to set the station number which is consistent with the connection relationship between the network devices of the above.
  • the station number setting device of the present invention is the one provided in the master device 1, but if the station number setting device of the present invention is connected by FA network and can transmit and receive information, the management device 3.
  • the master unit 1, the slave units 2A to 2D, etc. are connected to the FA network regardless of whether they are provided or independent of each other, and the elements constituting the station number setting unit are the management unit 3 , And may be distributed to the master device 1 and the slave devices 2A to 2D.
  • each unit constituting the station number setting device operates in the master device 1 is shown, but in the second embodiment, each portion constituting the station number setting device is distributed to the master device 1 and slave devices 2A to 2D. The case where it is provided will be described.
  • the configurations of the master device 1 and the slave devices 2A to 2D of the second embodiment are the same as those shown in FIGS. 2 and 3 shown in the first embodiment.
  • the storage unit of the station number setting apparatus according to the present invention uses the storage unit 604B provided in the slave devices 2A to 2D, and the configuration collection unit includes the configuration collection unit 50 of the master device 1 and the configuration collection unit 50 of the slave device.
  • Used as the collating unit is 601B of the slave devices 2A to 2D
  • the station number setting unit is 602B of the slave devices 2A to 2D.
  • the station number reference unit 60 and the configuration data generation unit 502A of the master device 1 may not operate, and may not be provided.
  • the setting information including “device unique information” and “location information” of slave devices 2A to 2D that constitute a network received by the master device 1 from the management device 3 is multicast communication Are transmitted to all slave devices 2A to 2D.
  • the processes of the above-mentioned check unit 601A, station number setting unit 602A, and error notification unit 603A are not performed.
  • the processing relating to the collation is executed by the station number reference unit 60 of the slave devices 2A to 2D.
  • the updated configuration collection frame is a configuration collection frame
  • the transfer setting unit 502 B performs setting for transferring to an adjacent device, and outputs the setting to the data transmission unit 302 of the communication unit 30 via the internal bus 40.
  • the configuration data generation unit 503B generates network configuration information including “device unique information” and “location information” of the adjacent device. The generated information is temporarily stored in the storage unit 504B.
  • the station number reference unit 60 temporarily stores the setting information in the storage unit 604B.
  • the setting information and the network configuration information generated by the configuration data generation unit 503B of the configuration collection unit 50 are collated by the collation unit 601B. If the collation result is correct, the setting information of the own apparatus is generated by the station number setting unit 602B, and stored in the general-purpose storage unit 80 via the internal bus 40.
  • the slave device executes the station number setting of its own device based on the stored information. Also, the setting information and the network configuration information are collated, and if the network configuration information does not match all the setting information, an error notification frame 603B is generated by the error notification unit 603B, and communication is performed via the internal bus 40. Output to the unit 30.
  • the generated error notification frame is transmitted to the management device 3 by unicast communication.
  • FIG. 9 is a sequence diagram showing an operation of setting a slave station number by the station number setting device according to the second embodiment.
  • the user sets network setting information on the management device 3 (step S17).
  • the management device 3 transmits setting information including “device specific information” and “position information” obtained by the user's setting to the connected master device 1 via the network (step S18).
  • the master device 1 transmits setting information to all slave devices 2A to 2D existing on the network by multicast communication (step S19). After that, the master device 1 generates a configuration collection frame and transmits it to the adjacent device (step S20).
  • One of the slave devices 2A to 2D that has received the configuration collection frame updates the contents of the frame (steps S21 and S23), and transfers the updated frame to the master device 1 and all slave devices 2A to 2D by multicast communication (steps S22, S24). This processing is performed until the processing of all slave devices 2A to 2D existing on the network is completed.
  • the slave device holds the updated configuration collection frame, and when the update process of all the adjacent devices is completed, the collection configuration information is generated in each slave (S25, S26). If the generated configuration information matches the "device-specific information" and "position information" of the setting information received from the master device 1, and if they match, "device-specific information" and "position information” of the own device correspond to them.
  • the station number setting of the own device is performed based on the station number information (steps S29 and S30).
  • the network apparatus assumed by the user It is possible to set a station number in which the connection relationship between the two and the actual connection relationship between the network devices match. Further, in the case of the second embodiment, it is not necessary for the master device 1 to transmit the station number information in unicast to all the slave devices 2A to 2D, and the station number setting in each slave device can be made in each slave device at the same time. The time from the user setting the station number to the end of the station number setting can be shortened.
  • the network configuration in which the master device 1 and the slave devices 2A to 2D are wired in a line configuration has been described as a configuration in which each device is daisy chained and data transfer is performed in a bucket brigade configuration.
  • the present invention is also applicable to an FA system with a star-type wire network configuration as shown in FIG. 10, or to a network configuration with a combination of star-type and line-type wires as shown in FIG.
  • reference numeral 8 denotes a switch device for transferring data flowing on the network to a destination device. Each device is wired through the switch device 8, and data transfer is transferred to each device by the switch device 8.
  • FIG. 10 denotes a switch device for transferring data flowing on the network to a destination device. Each device is wired through the switch device 8, and data transfer is transferred to each device by the switch device 8.
  • FIG. 12 is a data configuration diagram showing configuration information transmitted to the master device 1 by the slave devices 2A to 2D in the case of the FA system of the network configuration of FIG.
  • FIG. 14 is a data configuration diagram showing configuration information collected by the master device 1. Even in the FA system of the star type network configuration, the same operation as in the first and second embodiments is performed.
  • the above-described station setting device for a network device according to the present invention is useful for an industrial network system, and is particularly suitable for a system that needs to build a large number of slave devices.
  • Management Device 1 Master Device 2A to 2F Slave Device 3 Management Device 4 Management Device 5 external network 6 management device 7 connection cable 8 switch device 10 input / output port 20 selection unit 30 communication unit 40 internal bus 50 configuration collection unit 60 station number reference unit 70 operation processing unit 80 general storage unit 90 station number setting device 201 input / output port selection Section 202 Port information appending section 301 Data receiving section 302 Data transmitting section 501A Configuration collection frame generation section 502A Storage section 601A Storage section 601A Verification section 602A Station number setting section 603A Error notification section 604A Storage section 501B Configuration collection frame updating section 502B Configuration Collection frame transfer setting unit 503B Configuration data generation unit 504B Storage unit 601B Verification unit 602B Station number setting unit 603B Error notification unit 604B storage unit

Landscapes

  • Engineering & Computer Science (AREA)
  • Small-Scale Networks (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)

Abstract

The present invention compares a local number, connection relationship information indicating a connection position between devices, and device unique information set in advance in a network device, with connection relationship information and device unique information at present collected from the network device, and automatically sets a local number to a matching network device. According to the present invention, since a network device is identified by using the connection relationship information when the local number of the device is to be set, matching in the connection relationship between network devices can be confirmed on the basis of the connection relationship information. Thus, a local number matching the expected inter-network device connection relationship can be set.

Description

ネットワーク装置の局番設定装置Station setting device for network device
 この発明は、ネットワークに接続される装置の局番を設定する局番設定装置に関する。 The present invention relates to a station number setting device for setting a station number of a device connected to a network.
 例えば、マスタ装置とスレーブ装置からなるFAシステムのように、ネットワークで接続された複数の装置で構成されるネットワークシステムにおいて、装置間で情報を送受信する際には、まず送信元となる装置で送信する情報を格納したフレームを構成してネットワークに送出し、情報を受け取る装置はネットワークを流れるフレームを受信する。FAシステムのようにネットワークを介して一つのマスタ装置に複数のスレーブ装置が接続され、かつ情報を短い更新周期で送受信することが求められるような場合には、1フレームのやりとりで効率的に情報のやりとりをするために、マスタ装置から送る一つのフレームに複数のスレーブ装置宛てのデータが含まれる場合がある。このように一つのフレーム中に複数の装置宛てのデータが含まれる場合は、フレーム中のデータの格納順と、各装置に割り振られる番号(以下、局番という)を対応させており、各スレーブ装置はフレームの中から、自局に割り振られた局番に対応した箇所に格納されたデータを選択することで自局宛ての情報を取り込むことが可能である。
 このとき、各装置には通信を開始する前に局番を設定しておくことが必要であり、この局番設定は手動でも可能だが、多数の装置をネットワークで接続してシステムを構成する場合や、接続する装置を交換するような場合には局番設定の作業が煩雑となるため、局番の設定を自動的に行う技術がある。例えば特許文献1には、管理装置からマスタ装置に対して接続されるスレーブ装置の識別情報と局番情報を予め通知しておくとともに、マスタ装置がネットワークを介して実際に接続されているスレーブ装置から識別情報を収集し、予め管理装置から通知された識別情報とネットワークを介してスレーブ装置から収集した識別情報を照合し、識別情報が整合することを確認できたスレーブ装置へ対応する局番情報を送信することで、各スレーブ装置に自動で局番を設定するという技術が開示されている。
For example, in a network system composed of a plurality of devices connected via a network, such as an FA system consisting of a master device and a slave device, when transmitting and receiving information between devices, the transmission source device first transmits A frame containing information to be stored is constructed and sent out to the network, and a device receiving the information receives the frame flowing through the network. When a plurality of slave devices are connected to one master device via a network as in the FA system and it is required to transmit and receive information in a short update cycle, information can be efficiently exchanged by exchanging one frame. , One frame sent from the master device may include data for a plurality of slave devices. As described above, when data addressed to a plurality of devices is included in one frame, the storage order of data in the frame is associated with the number assigned to each device (hereinafter referred to as a station number), and each slave device It is possible to take in information addressed to the own station by selecting data stored at a location corresponding to the station number assigned to the own station from the frame.
At this time, it is necessary to set a station number before starting communication in each device, and this station number setting can be performed manually, but when configuring a system by connecting a large number of devices via a network, When replacing the connected device, the work of setting the station number becomes complicated, so there is a technique for automatically setting the station number. For example, in Patent Document 1, identification information and station number information of slave devices connected to the master device from the management device are notified in advance, and from the slave devices to which the master device is actually connected via the network The identification information is collected, the identification information notified in advance from the management device is compared with the identification information collected from the slave device through the network, and the corresponding station information is transmitted to the slave device which has been confirmed that the identification information matches. By doing this, there is disclosed a technique of automatically setting the station numbers in each slave device.
特開2014-119912号公報JP, 2014-119912 A
 特許文献1に示された局番設定方法では、マスタ装置は、ネットワークを介して実際に接続されているスレーブ装置から収集した識別情報が、管理装置から通知されたスレーブ装置の識別情報と整合すれば、その識別情報と対応する局番情報に基づいて、局番情報で示される順番で各スレーブ装置が接続されていることを前提として、各スレーブ装置に送信するフレームを構成することになる。しかし、例えば、管理装置からマスタ装置に通知されたスレーブ装置の局番情報の順番と実際に接続されているスレーブ装置の接続位置が異なっている場合、あるいは保守等の理由で実際に接続されている複数のスレーブ装置の接続位置を交換した場合には、識別情報は整合していても接続位置が整合していないことになり、マスタ装置が構成するフレームにおける各スレーブ装置宛ての情報の順番と実際のスレーブ装置の接続順とが不整合になってしまい、スレーブ装置が適正な情報を取り込むことができない。この不整合を防ぐためには、マスタ装置が持つ識別情報と局番情報を手動で修正する必要があった。 In the station number setting method disclosed in Patent Document 1, if the master device matches the identification information collected from the slave device actually connected via the network with the identification information of the slave device notified from the management device Based on the identification information and the corresponding station number information, it is assumed that the slave devices are connected in the order indicated by the station number information, and frames to be transmitted to each slave device are configured. However, for example, if the order of the station number information of slave devices notified from the management device to the master device is different from the connection position of the slave devices actually connected, or if the connection is actually made for reasons such as maintenance etc. When the connection positions of a plurality of slave devices are exchanged, even if the identification information matches, the connection positions do not match, and the order and actuality of the information addressed to each slave device in the frame configured by the master device The connection order of the slave devices is inconsistent, and the slave devices can not acquire appropriate information. In order to prevent this inconsistency, it is necessary to manually correct identification information and station number information held by the master device.
 本発明は上記した問題点を解決するためになされたものであり、想定されるネットワーク装置間の接続関係と整合した局番の設定を行うことができるネットワーク装置の局番設定装置を得ることを目的とする。 The present invention has been made to solve the above-mentioned problems, and it is an object of the present invention to obtain a station number setting device of a network device capable of setting a station number consistent with the assumed connection relationship between network devices. Do.
 本発明に係るネットワーク装置の局番設定装置においては、予め設定されたネットワークに接続されるそれぞれのネットワーク装置の装置固有情報、装置間の接続位置を示す接続関係情報と、ネットワーク装置から収集した装置固有情報、接続関係情報とを照合し、装置固有情報および接続関係情報が整合したネットワーク装置に局番を設定するようにしたものである。 In the station number setting device of a network device according to the present invention, device unique information of each network device connected to a preset network, connection relation information indicating a connection position between devices, and device unique information collected from the network device Information and connection relation information are collated, and a station number is set in a network device in which device specific information and connection relation information are consistent.
 本発明によれば、ネットワーク装置の局番の設定に際して接続関係情報を用いてその装置を特定するようにしたので、接続関係情報によってネットワーク装置間の接続関係の整合が確認できるため、想定されるネットワーク装置間の接続関係と整合した局番の設定を行うことができる。 According to the present invention, since the connection relationship information is used to specify the network device when setting the station number of the network device, the matching of the connection relationship between the network devices can be confirmed by the connection relationship information. It is possible to set the station number consistent with the connection between devices.
本発明を適用するFAシステムの構成図である。It is a block diagram of FA system which applies the present invention. 本発明の実施の形態1におけるマスタ装置の構成図である。It is a block diagram of the master device in Embodiment 1 of this invention. 本発明の実施の形態1におけるスレーブ装置の構成図である。It is a block diagram of the slave apparatus in Embodiment 1 of this invention. 本発明の実施の形態1の局番設定装置によりスレーブの局番を設定する動作を示すシーケンス図である。It is a sequence diagram which shows the operation | movement which sets the station number of a slave by the station number setting apparatus of Embodiment 1 of this invention. 図5(a)は図1に示すFAシステムのネットワーク接続を詳細に示すネットワーク構成図、図5(b)は実施の形態1の局番設定装置において用いられる設定情報を示すデータ構成図である。FIG. 5 (a) is a network block diagram showing the network connection of the FA system shown in FIG. 1 in detail, and FIG. 5 (b) is a data block diagram showing setting information used in the station number setting apparatus of the first embodiment. 図6(a)はネットワーク接続された各装置と、各装置から送信される構成収集フレームの例を示す説明図、図6(b)は実施の形態1のマスタ装置が収集する構成情報を示すデータ構成図である。FIG. 6 (a) is an explanatory view showing each device connected via a network and an example of a configuration collection frame transmitted from each device, and FIG. 6 (b) shows configuration information collected by the master device according to the first embodiment. It is a data block diagram. 本発明の実施の形態1の設定情報と構成情報が照合される状態を示すデータ構成図である。It is a data block diagram which shows the state where setting information and structure information of Embodiment 1 of this invention are collated. 本発明の実施の形態1の設定情報と構成情報が照合される状態を示すデータ構成図である。It is a data block diagram which shows the state where setting information and structure information of Embodiment 1 of this invention are collated. 本発明の実施の形態2の局番設定装置によりスレーブの局番を設定する動作を示すシーケンス図である。It is a sequence diagram which shows the operation | movement which sets the station number of a slave by the station number setting apparatus of Embodiment 2 of this invention. 本発明を適用するスター型のネットワーク構成をしたFAシステムの構成図である。FIG. 1 is a block diagram of a FA system having a star network configuration to which the present invention is applied. 本発明を適用するスター型の配線とライン型配線を混在させたネットワーク構成をしたFAシステムの構成図である。It is a block diagram of FA system which comprised the network configuration which made the star type wiring and line type wiring which applied this invention mixed. スター型のネットワーク構成をしたFAシステムの場合のスレーブ装置がマスタ装置へ送信する構成情報を示すデータ構成図である。It is a data block diagram showing composition information which a slave device in the case of FA system which carried out star type network composition transmits to a master device. スター型のネットワーク構成をしたFAシステムの場合の管理装置がマスタ装置に対して送信する設定情報を示すデータ構成図である。It is a data block diagram which shows the setting information which the management apparatus in the case of the FA system which comprised the star type network structure transmits with respect to a master apparatus. スター型のネットワーク構成をしたFAシステムの場合のマスタ装置が収集する構成情報を示すデータ構成図である。FIG. 6 is a data configuration diagram showing configuration information collected by a master device in the case of a FA system having a star network configuration.
実施の形態1.
 以下、本発明の実施の形態について、図面を参照して説明する。本実施の形態1では、本発明のネットワーク装置の局番設定装置を適用するシステム、すなわちネットワークで接続された複数の装置で構成されるネットワークシステムとして、マスタ装置とスレーブ装置からなるFAシステムを例として、このFAシステムにおいて各スレーブ装置間の接続関係と整合した局番を各スレーブ装置に自動的に設定するものを説明する。
Embodiment 1
Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the first embodiment, an FA system including a master device and a slave device is taken as an example of a system to which the station number setting device of the network device of the present invention is applied, that is, a network system including a plurality of devices connected by a network. In this FA system, one will be described which automatically sets, in each slave device, a station number that is consistent with the connection relationship between each slave device.
 この実施の形態1においては、マスタ装置に本発明のネットワーク装置の局番設定装置が設けられており、管理装置で予めマスタ装置、スレーブ装置からなるFAシステムの構成情報を設定しておき、その構成情報をマスタ装置へ送信する。この構成情報を受け取ったマスタ装置に設けられている局番設定装置が、ネットワーク装置であるスレーブ装置から、それぞれの構成情報を収集して、管理装置で予め設定された構成情報と照合し、整合したスレーブ装置へ局番を送信することで、各スレーブ装置に局番が設定されるという手順で自動的に局番が設定される。
以下、詳細を説明する。
In the first embodiment, the master device is provided with the station number setting device of the network device of the present invention, and the management device sets in advance the configuration information of the FA system consisting of the master device and the slave device. Send information to the master device. The station number setting device provided in the master device that has received this configuration information collects the respective configuration information from the slave devices that are network devices, collates the configuration information preset by the management device, and is consistent By transmitting the station numbers to the slave devices, the station numbers are automatically set in the procedure of setting the station numbers in each slave device.
Details will be described below.
 図1は、本発明を適用するFAシステムの構成図である。このFAシステムは、マスタ装置とスレーブ装置を産業用ネットワーク(以下、FAネットワークという)で接続したものであり、各装置をデイジーチェーン接続したライン型のネットワーク構成となっている。このFAネットワークにおいてデータ転送はバケツリレー式に行われる。
 1は工場内等に敷設されたFAネットワークで接続されたスレーブ装置を制御するマスタ装置、2A~2Dは制御情報をFAネットワークを介してマスタ装置1と送受信するスレーブ装置、3はマスタ装置1、及びスレーブ装置2A~2Dのパラメータ設定、FAシステムのエラー情報の表示、FAシステムで稼働させるシーケンサプログラムのダウンロード等を行う管理装置でありパソコン等で構成される。
 この管理装置3には、FAネットワークに接続される各装置の設定情報が、ユーザによって予め設定される。設定情報とは、FAネットワークに接続されるマスタ装置、スレーブ装置に関する装置固有情報と各装置がどのような接続関係にあるかという接続関係情報、すなわち接続位置を示す位置情報である。以下接続関係情報として位置情報を用いることとして説明する。この設定情報は管理装置3においてグラフィカルユーザインタフェース(GUI)によって視覚的に表示され、管理装置3には、GUIを用いて、接続される各装置の局番の設定を促す手段を備えており、ユーザがこの手段を用いて、FAネットワークに接続される各装置の装置固有情報、位置情報、それらと紐付けられる各装置の局番の情報を含んだ設定情報を設定するものである。管理装置3で設定された設定情報はマスタ装置1へ送信される。
 4はマスタ装置1、スレーブ装置2A~2D、管理装置3を接続するFAネットワークと外部のネットワーク5とを相互接続するためのエッジ装置などの管理装置、6は外部のネットワーク5に接続され、マスタ装置1、スレーブ装置2A~2Dの状態を遠隔で管理するためのクラウド環境上に存在する管理装置である。なお、管理装置4と管理装置6に管理装置3と同様の機能、すなわち、前記したパラメータ設定、情報の表示、シーケンサプログラムのダウンロード等の機能を備えて、実行するようにしてもよい。
FIG. 1 is a block diagram of an FA system to which the present invention is applied. This FA system is a system in which a master device and a slave device are connected by an industrial network (hereinafter referred to as FA network), and has a line type network configuration in which each device is connected in a daisy chain. Data transfer in this FA network is performed in a bucket brigade manner.
1 is a master device for controlling slave devices connected by a FA network installed in a factory or the like, 2A to 2D are slave devices for transmitting and receiving control information to and from the master device 1 via the FA network, 3 is a master device 1, And it is a management device that performs parameter setting of the slave devices 2A to 2D, displays error information of the FA system, downloads a sequencer program to be operated in the FA system, etc., and is configured of a personal computer or the like.
In the management device 3, setting information of each device connected to the FA network is preset by the user. The setting information is device-specific information on the master device and the slave device connected to the FA network and connection relationship information indicating what connection relationship each device has, that is, position information indicating a connection position. Hereinafter, description will be made as using position information as connection relation information. This setting information is visually displayed in the management device 3 by a graphical user interface (GUI), and the management device 3 is provided with means for prompting the setting of the station number of each connected device using the GUI. Sets the setting information including the device specific information of each device connected to the FA network, the position information, and the information of the station number of each device linked to them using this means. The setting information set by the management device 3 is transmitted to the master device 1.
4 is a master device 1, slave devices 2A to 2D, a management device such as an edge device for interconnecting the FA network connecting the management device 3 and the external network 5, 6 is connected to the external network 5, master The management device exists on a cloud environment for remotely managing the states of the device 1 and the slave devices 2A to 2D. The management apparatus 4 and the management apparatus 6 may be implemented with the same functions as the management apparatus 3, that is, the functions such as the parameter setting, the display of information, and the download of the sequencer program described above.
 図2は実施の形態1のマスタ装置1の構成図である。図2において入出力ポート10はネットワークからデータを入力、もしくはネットワークへデータを出力する。選択部20は、使用する入出力ポート10を選択する入出力ポート選択部201、入出力ポート選択部201が選択した結果どちらのポートからデータを出力するかという情報を付与するポート情報付与部202を備える。通信部30は入出力ポート選択部201で選択された入出力ポートから入力されたデータを受信するデータ受信部301、および選択された入出力ポートからデータを送信するデータ送信部302を備える。内部バス40は、マスタ装置1を構成する各機能ブロックを相互接続するものである。
 演算処理部70は、各種演算を行う。汎用記憶部80は、前記各種演算の際に保持すべきデータを記憶する。
 このFAシステムが稼働される際には、入出力ポート10、選択部20、通信部30を用いて、FAネットワークを介したデータ送受信を行うとともに、演算処理部70および汎用記憶部80にてシーケンサプログラム等が動作するものである。
FIG. 2 is a block diagram of the master device 1 of the first embodiment. In FIG. 2, the input / output port 10 inputs data from the network or outputs data to the network. The selection unit 20 selects the input / output port 10 to be used by the input / output port selection unit 201, and the port information addition unit 202 adds information indicating which port the data is to be output as a result of selection by the input / output port selection unit 201. Equipped with The communication unit 30 includes a data reception unit 301 that receives data input from the input / output port selected by the input / output port selection unit 201, and a data transmission unit 302 that transmits data from the selected input / output port. The internal bus 40 interconnects the functional blocks that make up the master device 1.
The arithmetic processing unit 70 performs various operations. The general-purpose storage unit 80 stores data to be held in the various operations.
When the FA system is operated, data transmission / reception is performed via the FA network using the input / output port 10, the selection unit 20, and the communication unit 30, and at the same time, the arithmetic processing unit 70 and the general-purpose storage unit 80 A program etc. operate.
 FAシステムが稼働される前に、各装置には通信を開始する前に局番を設定しておく必要があり、局番設定装置90はこの局番設定を行うものである。局番設定装置90は構成収集部50と局番参照部60を備えている。
 構成収集部50は、入出力ポート10、選択部20、通信部30を介してネットワーク経由で、スレーブ装置2A~2Dから、各スレーブ装置2A~2Dの装置固有情報、ネットワークにおける位置情報を含む構成情報を収集するものである。この構成収集部50は、構成収集フレーム生成部501A、構成データ生成部502A、記憶部503Aを備えている。この記憶部503Aには、構成収集部50が収集した各スレーブ装置2A~2Dの構成情報が記憶される。
 局番参照部60は、照合部601A、局番設定部602A、エラー通知部603A、記憶部604Aを備える。記憶部604Aには、予め管理装置3に設定され、マスタ装置1へ送信された設定情報、すなわちFAネットワークに接続される各装置の装置固有情報、位置情報、それらと紐付けられる各装置の局番の情報を含んだ設定情報が記憶される。照合部601Aは、この記憶部604Aに記憶された装置固有情報及び位置情報と、前記構成収集部50で収集し記憶部503Aに記憶された装置固有情報及び位置情報とを照合するものである。局番設定部602Aは、照合部601Aにおいて装置固有情報及び位置情報が整合したスレーブ装置に対応する前記局番を記憶部604Aから読出し、対応するスレーブ装置に通知することで局番設定を行う。
Before the FA system is operated, it is necessary to set a station number in each device before starting communication, and the station number setting device 90 performs this station number setting. The station number setting device 90 includes a configuration collection unit 50 and a station number reference unit 60.
The configuration collection unit 50 includes the slave devices 2A to 2D, device unique information of each slave device 2A to 2D, and position information in the network via the network via the input / output port 10, the selection unit 20, and the communication unit 30. It collects information. The configuration collection unit 50 includes a configuration collection frame generation unit 501A, a configuration data generation unit 502A, and a storage unit 503A. The storage unit 503A stores configuration information of each slave device 2A to 2D collected by the configuration collection unit 50.
The station number reference unit 60 includes a check unit 601A, a station number setting unit 602A, an error notification unit 603A, and a storage unit 604A. In the storage unit 604A, setting information set in advance in the management device 3 and transmitted to the master device 1, that is, device-specific information and position information of each device connected to the FA network, and the station number of each device linked with them The setting information including the information of is stored. The collating unit 601A collates the device unique information and the position information stored in the storage unit 604A with the device unique information and the position information collected by the configuration collecting unit 50 and stored in the storage unit 503A. The station number setting unit 602A performs the station number setting by reading from the storage unit 604A the station number corresponding to the slave device whose device-specific information and position information match in the collation unit 601A and notifying the corresponding slave device.
 以下に各部をより詳細に説明する。
 選択部20では通信部30のデータ送信部302より入力された送信データを入出力ポート選択部201により、どちらの入出力ポート10からネットワークへ送信データを出力するかの選択処理を行う。その際、ポート情報付与部202にて、どちらのポートからデータを出力するかという情報を送信データに付与する。
 また入出力ポート10から入力される受信データは選択部20から通信部30のデータ受信部301へ出力される。その際、ポート情報付与部202にてどちらの入出力ポート10から受信したデータであるかという情報を受信データに付与する。
Each part will be described in more detail below.
In the selection unit 20, the input / output port selection unit 201 performs selection processing of which input / output port 10 the transmission data is to be output to the network from the transmission data input from the data transmission unit 302 of the communication unit 30. At this time, the port information adding unit 202 adds information as to which port the data is to be output to the transmission data.
The reception data input from the input / output port 10 is output from the selection unit 20 to the data reception unit 301 of the communication unit 30. At this time, the port information adding unit 202 adds information as to which input / output port 10 the data is received from to the received data.
 通信部30ではFAネットワーク通信で使用されるフレームデータの生成解析を行う。データ受信部301では選択部20から入力された受信データのヘッダ情報等を解析する。解析後、受信データをアプリケーションデータへ加工し、内部バス40経由で、次の処理が実行される機能ブロックへ出力を行う。データ送信部302では内部バス40経由で入力されるアプリケーションデータにヘッダ情報等を付与しフレームデータを生成する。生成したフレームデータは選択部20へ出力される。 The communication unit 30 generates and analyzes frame data used in FA network communication. The data receiving unit 301 analyzes header information etc. of the received data input from the selecting unit 20. After analysis, the received data is processed into application data, and output is performed via the internal bus 40 to the functional block where the next processing is executed. The data transmission unit 302 adds header information and the like to application data input via the internal bus 40 to generate frame data. The generated frame data is output to the selection unit 20.
 構成収集部50ではマスタ装置1がネットワーク上に存在するスレーブ装置2A~2Dの構成収集を行う際に使用する構成収集フレームを構成収集フレーム生成部501Aにて生成し、内部バス40を経由し、通信部30のデータ送信部302へ出力する。
 また、スレーブ装置2A~2Dから受信する構成収集結果を通信部30のデータ受信部301経由で受信し、構成データ生成部502Aで構成収集結果からネットワークの構成情報を生成する。生成したネットワークの構成情報は記憶部503Aにて一時保存する。
In the configuration collection unit 50, the configuration collection frame generation unit 501A generates a configuration collection frame used when the master device 1 performs configuration collection of the slave devices 2A to 2D present on the network, and passes via the internal bus 40, It is output to the data transmission unit 302 of the communication unit 30.
Also, the configuration collection result received from the slave devices 2A to 2D is received via the data receiving unit 301 of the communication unit 30, and the configuration data generation unit 502A generates network configuration information from the configuration collection result. The generated network configuration information is temporarily stored in the storage unit 503A.
 局番参照部60では管理装置3から受信したネットワークを構成するスレーブ装置2A~2Dの「装置固有情報」と「位置情報」それに対応する「局番」とを含む設定情報を記憶部604Aにて一時保存する。その設定情報と構成収集部50の構成データ生成部502Aで生成したネットワークの構成情報を照合部601Aにて照合する。照合結果が正しい場合は、該当スレーブ装置の設定情報を、局番設定部602Aにより生成し、内部バス40を経由し、通信部30へ送信する。送信する際は、装置固有情報を元にユニキャスト通信で該当スレーブ装置へ送信する。また、設定情報とネットワークの構成情報を照合し、ネットワークの構成情報が全ての設定情報と合致しない場合は、エラー通知部603Aにてエラー通知フレームを生成し、内部バス40を経由して、通信部30へ出力する。生成されたエラー通知フレームは、ユニキャスト通信で管理装置3へ送信される。 In the station number reference unit 60, the storage unit 604A temporarily stores the setting information including the "device unique information" and the "position information" of the slave devices 2A to 2D that constitute the network received from the management device 3 and the corresponding "station number". Do. The setting information and the network configuration information generated by the configuration data generation unit 502A of the configuration collection unit 50 are collated by the collation unit 601A. If the collation result is correct, the setting information of the corresponding slave device is generated by the station number setting unit 602A and transmitted to the communication unit 30 via the internal bus 40. When transmitting, it transmits to the corresponding slave device by unicast communication based on the device specific information. Also, the setting information and the network configuration information are collated, and if the network configuration information does not match all the setting information, an error notification frame 603A is generated by the error notification unit 603A, and communication is performed via the internal bus 40. Output to the unit 30. The generated error notification frame is transmitted to the management device 3 by unicast communication.
 次にスレーブ装置2A~2Dの構成を説明する。図3は実施の形態1におけるスレーブ装置2A~2Dの構成を示す構成図である。スレーブ装置2A~2Dは、入出力ポート10、選択部20、通信部30、内部バス40、構成収集部50、局番参照部60、演算処理部70、汎用記憶部80を備える。また、選択部20は入出力ポート選択部201、ポート情報付与部202を備え、通信部30はデータ受信部301、データ送信部302を備え、構成収集部50は構成収集フレーム更新部501B、構成収集フレーム転送設定部502B、構成データ生成部503Bを備え、局番参照部60は照合部601B、局番設定部602B、エラー通知部603B、記憶部604Bを備える。 Next, the configuration of slave devices 2A to 2D will be described. FIG. 3 is a configuration diagram showing a configuration of slave devices 2A to 2D in the first embodiment. The slave devices 2A to 2D each include an input / output port 10, a selection unit 20, a communication unit 30, an internal bus 40, a configuration collection unit 50, a station number reference unit 60, an arithmetic processing unit 70, and a general storage unit 80. The selection unit 20 includes an input / output port selection unit 201 and a port information assignment unit 202. The communication unit 30 includes a data reception unit 301 and a data transmission unit 302. The configuration collection unit 50 includes a configuration collection frame update unit 501B. A collection frame transfer setting unit 502B and a configuration data generation unit 503B are provided, and the station number reference unit 60 is provided with a check unit 601B, a station number setting unit 602B, an error notification unit 603B, and a storage unit 604B.
 図3のスレーブ装置2A~2Dの入出力ポート10、選択部20、通信部30、演算処理部70、汎用記憶部80は、図2に示したマスタ装置1の入出力ポート10、選択部20、通信部30、演算処理部70、汎用記憶部80とそれぞれ同様の構成である。
 このような構成のスレーブ装置2A~2Dにおいて、このFAシステムが稼働される際には、入出力ポート10、選択部20、通信部30を用いて、FAネットワークを介したデータ送受信を行うとともに、マスタ装置1からのシーケンサプログラム等による制御に従って演算処理部70および汎用記憶部80にて処理が行われ、FAシステムの一部として動作する。
The input / output port 10, the selection unit 20, the communication unit 30, the arithmetic processing unit 70, and the general-purpose storage unit 80 of the slave devices 2A to 2D in FIG. 3 are the input / output port 10 of the master device 1 shown in FIG. The communication unit 30, the arithmetic processing unit 70, and the general-purpose storage unit 80 have the same configuration.
In the slave devices 2A to 2D having such a configuration, when the FA system is operated, data transmission / reception via the FA network is performed using the input / output port 10, the selection unit 20, and the communication unit 30. Processing is performed in the arithmetic processing unit 70 and the general-purpose storage unit 80 according to control by a sequencer program or the like from the master device 1 and operates as a part of the FA system.
 FAシステムが稼働される前に、各スレーブ装置に局番を設定しておく必要があり、局番設定装置90はこの局番設定を行う際に動作するものである。局番設定装置90は構成収集部50と局番参照部60を備えている。この実施の形態1での構成収集部50は、マスタ装置1の構成収集フレーム生成部501A、構成データ生成部502A、記憶部503Aと、スレーブ装置2A~2Dの構成収集フレーム更新部501Bが動作する。スレーブ装置2A~2Dがマスタ装置1または他のスレーブ装置2A~2Dから転送され受信する構成収集フレームを更新する際は、自装置の装置固有情報、送信元装置の装置固有情報及び送信元装置からフレームを受信した入出力ポート10がどちらであるかの情報を構成収集フレームへ付与する。更新した構成収集フレームは構成収集フレーム転送設定部502Bによって、マスタ装置1及び、他のスレーブ装置へ転送するための設定を行い、内部バス40を経由し、通信部30のデータ送信部へ出力される。なお本実施の形態1ではスレーブ装置2A~2Dの局番参照部60と構成データ生成部503Bは動作しないものであり、この実施の形態1のスレーブ装置2A~2Dにおいては局番参照部60と構成データ生成部503Bが無い構成でもよい。 Before the FA system is operated, it is necessary to set a station number for each slave device, and the station number setting device 90 operates when performing this station number setting. The station number setting device 90 includes a configuration collection unit 50 and a station number reference unit 60. Configuration collecting unit 50 in the first embodiment operates configuration collecting frame generating unit 501A, configuration data generating unit 502A, storage unit 503A of master device 1, and configuration collecting frame updating unit 501B of slave devices 2A to 2D. . When the slave apparatus 2A to 2D updates the configuration collection frame transferred and received from the master apparatus 1 or other slave apparatuses 2A to 2D, the apparatus unique information of the own apparatus, the apparatus unique information of the transmission source apparatus, and the transmission unique apparatus Information on which input / output port 10 received the frame is added to the configuration collection frame. The updated configuration collection frame is set by the configuration collection frame transfer setting unit 502B for transfer to the master device 1 and other slave devices, and is output to the data transmission unit of the communication unit 30 via the internal bus Ru. In the first embodiment, the station number reference unit 60 and the configuration data generation unit 503B of the slave devices 2A to 2D do not operate. In the slave devices 2A to 2D of the first embodiment, the station number reference unit 60 and the configuration data The configuration without the generation unit 503B may be employed.
 次に、以上のような構成のFAシステムにおいて、局番設定装置90が局番を設定する動作について説明する。図4は本発明の局番設定装置90により各スレーブ装置2A~2Dの局番を設定する動作を示すシーケンス図である。なお、図4ではスレーブ装置2C,2Dを省略している。
 本発明の実施の形態1ではまずステップS1においてユーザが管理装置3の画面上でネットワークの設定情報を設定する。図5(a)は図1に示すFAシステムの設定情報を設定する際の、マスタ装置1、各スレーブ装置2A~2Dをより詳細に示すネットワーク構成図であり、図5(b)はこのようなネットワーク構成を設定した設定情報の例を示すデータ構成図である。
 この設定情報の形式例では、ネットワークに接続されるネットワーク装置の装置固有情報として機種名を用いている。なお、装置固有情報としては、この他に、型名情報、MACアドレス等の装置にユニークな情報を使用することが可能である。
Next, in the FA system configured as described above, an operation in which the station number setting device 90 sets a station number will be described. FIG. 4 is a sequence diagram showing an operation of setting the station numbers of the slave devices 2A to 2D by the station number setting device 90 of the present invention. The slave devices 2C and 2D are omitted in FIG.
In the first embodiment of the present invention, the user first sets the network setting information on the screen of the management apparatus 3 in step S1. FIG. 5 (a) is a network configuration diagram showing in more detail the master device 1 and each slave device 2A to 2D when setting the setting information of the FA system shown in FIG. 1, and FIG. It is a data configuration diagram showing an example of setting information in which a proper network configuration is set.
In the format example of the setting information, a model name is used as device-specific information of a network device connected to the network. In addition to this, it is possible to use information unique to the device such as model name information and MAC address as the device unique information.
 また、この設定情報の形式例における位置情報は、マスタ装置1と各スレーブ装置2A~2Dが備える「入出力ポート1」、「入出力ポート2」と、それぞれのポートに接続される接続先の装置の装置固有情報とで構成されている。
 そして、各装置に対応したこれら装置固有情報、位置情報に、各装置をネットワーク上で識別するための局番を対応させ、ネットワークの設定情報が構成されている。なお、図5の例では局番として1~5までの数字を用いているが、ネットワーク内で各装置にユニークな番号であれば数字でなくてもよい。
 次に、ステップS2で管理装置3は、ユーザよってステップS1で設定された「装置固有情報」と「位置情報」及びそれらに対応する「局番」とを含む設定情報を、マスタ装置1へネットワークを介して送信する。マスタ装置1に送信された設定情報はマスタ装置1の記憶部604Aに記憶される。
The position information in the format example of the setting information includes “input / output port 1” and “input / output port 2” provided in the master unit 1 and the slave units 2A to 2D, and connection destinations connected to the respective ports. And device-specific information of the device.
The device setting information of the network is configured by associating the device specific information and the position information corresponding to each device with the station numbers for identifying each device on the network. Although the numbers 1 to 5 are used as the station numbers in the example of FIG. 5, the numbers may not be numbers as long as the numbers are unique to each device in the network.
Next, in step S2, the management device 3 sends the network to the master device 1 the setting information including the “device specific information” and “position information” set in step S1 by the user and the “station number” corresponding to them. Send via. The setting information transmitted to the master device 1 is stored in the storage unit 604A of the master device 1.
 次にステップS3で、マスタ装置1はスレーブ装置2A~2Dから装置固有情報、およびネットワークにおける位置情報を含む構成情報を収集するための構成収集フレームを構成収集フレーム生成部504Aで生成し、入出力ポート10を介して隣接するスレーブ装置2Aへ送信する。図6(a)に、実際にネットワーク接続された各装置と、各装置から送信される構成収集フレームの例を示す。マスタ装置1から送信される構成収集フレームには、「自身の装置固有情報」にはマスタ装置1自身の装置固有情報である「機種A」が格納され、「1つ前の装置の装置固有情報」、「1つ前の装置に繋がるポート」にはなにも格納されていない。 Next, in step S3, the master device 1 generates a configuration collection frame for collecting configuration information including device unique information and position information in the network from the slave devices 2A to 2D by the configuration collection frame generation unit 504A, and inputs and outputs It transmits to the adjacent slave device 2A via the port 10. FIG. 6A shows an example of each device actually connected to the network and a configuration collection frame transmitted from each device. In the configuration collection frame transmitted from the master device 1, “device type information” which is device unique information of the master device 1 itself is stored in “device unique information of own device”, and device unique information of “preceding device” There is nothing stored in the "port connected to the previous device".
 次にステップS4において、マスタ装置1から構成収集フレームを受信したスレーブ装置2Aは、構成収集フレームの内容を構成収集フレーム更新部501Bで更新する。このスレーブ装置2Aにおいては、構成収集フレームの「自身の装置固有情報」の内容をスレーブ装置2A自身の装置固有情報である「機種B」に更新し、「1つ前の装置の装置固有情報」の内容をこの構成収集フレームを送ってきたマスタ装置1の装置固有情報である「機種A」に更新し、「1つ前の装置に繋がるポート」の内容を自装置の機種固有情報である「機種B」とマスタ装置1が接続された「ポート1」からなる「機種B;ポート1」に更新する。 Next, in step S4, the slave device 2A that receives the configuration collection frame from the master device 1 updates the content of the configuration collection frame by the configuration collection frame updating unit 501B. In the slave device 2A, the content of "device-specific information of its own" in the configuration collection frame is updated to "type B", which is device-specific information of the slave device 2A itself, and "device-specific information of the previous device" The contents of the above are updated to "Model A" that is the device unique information of the master device 1 that has sent this configuration collection frame, and the content of "port connected to the previous device" is the model unique information of the own device. Update to “Model B; Port 1” consisting of “Port 1” to which “Model B” and the master device 1 are connected.
 そして、更新した構成収集フレームを、マスタ装置1、及び、隣接するスレーブ装置2Bへ転送する(ステップS5)。
 スレーブ装置2Aからの構成収集フレームを受信したマスタ装置1は、スレーブ装置2Aから送られた構成収集フレームを記憶部503Aに保持する(ステップS6)。
 以上のようにして構成収集フレームが次に接続されたスレーブ装置2Bに送られることがスレーブ装置2Bに構成情報を提供させるきっかけになり、同時に構成収集フレームがマスタ装置1に送られることでマスタ装置1はスレーブ装置2Aの周辺装置との位置関係を示す情報を収集することになる。
 次に、上述したスレーブ装置2Aの動作と同様に、スレーブ装置2Bも構成収集フレームの内容を更新し(ステップS7)、更新した構成収集フレームをマスタ装置1、及び隣接するスレーブ装置2Cへ転送する(ステップS8)。
Then, the updated configuration collection frame is transferred to the master device 1 and the adjacent slave device 2B (step S5).
The master device 1 having received the configuration collection frame from the slave device 2A holds the configuration collection frame sent from the slave device 2A in the storage unit 503A (step S6).
As described above, the fact that the configuration collection frame is sent to the next connected slave device 2B triggers the slave device 2B to provide the configuration information, and the configuration collection frame is sent to the master device 1 at the same time. 1 is to collect information indicating the positional relationship between the slave device 2A and the peripheral device.
Next, similarly to the operation of the slave device 2A described above, the slave device 2B also updates the contents of the configuration collection frame (step S7), and transfers the updated configuration collection frame to the master device 1 and the adjacent slave device 2C. (Step S8).
 同様の動作がスレーブ装置2C、2Dで行われる。その結果、マスタ装置1には、各スレーブ装置2A~2Dから図6(a)に示したような4つの構成収集フレームが送られる。ただし、スレーブ装置2Dは次に接続されるスレーブ装置がない末端のスレーブ装置であり、末端のスレーブ装置2Dにおいては、構成収集フレームをマスタ装置1に送るものの、他のスレーブ装置に転送する動作は行わない。
以上の動作により、マスタ装置1は、スレーブ装置2A~2Dにおいてそれぞれ更新された構成収集フレームを受信し、記憶部503Aに保持することになる。
マスタ装置1は、ステップS3で構成収集フレームを送信して以降、更新された構成収集フレームの接続ポート情報が1つしかない、末端のスレーブ装置から構成収集フレームを受信したかを監視しており、ステップS10で末端のスレーブ装置から構成収集フレーム受信したことを検出した場合、マスタ装置1においては、各スレーブ装置2A~2Dから収集し構成収集フレームが統合され、図6(b)に示すような収集構成情報が生成される。この生成された収集構成情報には、スレーブ装置2A~2Dの「装置固有情報」と「位置情報」とが含まれており、収集構成情報は記憶部503Aに記憶される。
Similar operations are performed in the slave devices 2C and 2D. As a result, four configuration acquisition frames as shown in FIG. 6A are sent to the master device 1 from the slave devices 2A to 2D. However, the slave device 2D is an end slave device without a slave device to be connected next, and in the end slave device 2D, the operation of transmitting the configuration collection frame to the master device 1 but transferring it to another slave device is Not performed.
By the above operation, the master device 1 receives the configuration collection frames updated in the slave devices 2A to 2D, respectively, and holds them in the storage unit 503A.
After transmitting the configuration collection frame in step S3, the master device 1 monitors whether the configuration collection frame has been received from the slave device at the end, which has only one connection port information of the updated configuration collection frame. If, in step S10, it is detected that the configuration collection frame has been received from the slave device at the end, the master device 1 collects the configuration collection frames from each slave device 2A to 2D and integrates them, as shown in FIG. Collection configuration information is generated. The generated collection configuration information includes “device unique information” and “position information” of the slave devices 2A to 2D, and the collection configuration information is stored in the storage unit 503A.
そして、ステップS11において、マスタ装置1は、図6(b)に示した各スレーブ装置2A~2Dから収集して記憶部503Aに記憶された構成情報と、図5(b)に示した管理装置3より受信して記憶部604Aに記憶された設定情報のそれぞれの「装置固有情報」と「位置情報」とを、照合部601Aで照合する。
 図7、図8は、この実施の形態1において設定情報と構成情報が照合される状態を示すデータ構成図であり、図7は、記憶部503Aに記憶された構成情報と管理装置3より受信し記憶部604Aで記憶された設定情報が整合、すなわち合致した場合の様子を、図8は合致しない場合を示している。
Then, in step S11, the master device 1 obtains the configuration information collected from the slave devices 2A to 2D shown in FIG. 6B and stored in the storage unit 503A, and the management device shown in FIG. 5B. The collation unit 601A collates the "device-specific information" and the "position information" of the setting information received from 3 and stored in the storage unit 604A.
FIGS. 7 and 8 are data configuration diagrams showing a state where setting information and configuration information are collated in the first embodiment, and FIG. 7 is received from configuration information stored in storage unit 503A and management apparatus 3. FIG. 8 shows a case where the setting information stored in the storage unit 604A is matched, that is, matched.
ステップS11の照合部601Aによる照合の結果、「装置固有情報」と「位置情報」との両方が合致したスレーブ装置について、そのスレーブ装置の「装置固有情報」と「位置情報」に対応する「局番」が局番設定部602Aにより記憶部604Aから読み出され、読み出された局番が「装置固有情報」と「位置情報」とが整合するスレーブ装置の局番として設定される(ステップS12)。そして、設定された局番は、対応するスレーブ装置2A~2Dに送信される(ステップS13、ステップS14)。 As a result of the collation by the collation unit 601A in step S11, for a slave device in which both “device-specific information” and “position information” match, “station number corresponding to“ device-specific information ”and“ position information ”of the slave device Is read from the storage unit 604A by the station number setting unit 602A, and the read station number is set as the station number of the slave device in which "device specific information" and "position information" match (step S12). Then, the set station numbers are transmitted to the corresponding slave devices 2A to 2D (steps S13 and S14).
なお、図8に示すように、各スレーブ装置2A~2Dについて他の全てのスレーブ装置との「装置固有情報」と「位置情報」の照合を行っても両方合致するものが無い場合は、マスタ装置1のエラー通知部603Aにより管理装置3に対してエラー通知が行われる。
設定された局番がマスタ装置1から送られてきたスレーブ装置においては、送られてきた局番が記憶部604Bに保持されることで自装置の局番として設定され、この局番が以降の動作における他装置との通信に用いられる(ステップS15、ステップS16)。
Note that as shown in FIG. 8, if there is nothing that matches both “device-specific information” and “position information” with all other slave devices for each slave device 2A to 2D, the master does not match. The error notification unit 603A of the device 1 sends an error notification to the management device 3.
In the slave device where the set station number is sent from the master device 1, the station number sent is held as the station number of the own device by being held in the storage unit 604B, and this station number is the other device in the subsequent operation. (Step S15, step S16).
以上のような局番設定装置90の動作により局番設定が行われ、局番設定後はマスタ装置1の汎用記憶部80に格納されたユーザのプログラムに基づき、マスタ装置1の演算処理部70が処理をしてスレーブ装置は入出力ポート10を介して制御されることでスレーブ装置2A~2Dが制御される。 The station number setting is performed by the operation of the station number setting device 90 as described above, and after the station number setting, the arithmetic processing unit 70 of the master device 1 performs processing based on the user's program stored in the general-purpose storage unit 80 of the master device 1. The slave devices are controlled via the input / output port 10 to control the slave devices 2A to 2D.
 以上のような実施の形態1によれば、設定された位置情報と収集した位置情報を照合した上で、局番が設定されるので、ユーザが想定しているネットワーク装置間の接続関係と、実際のネットワーク装置間の接続関係とが整合した局番の設定を行うことができる。 According to the first embodiment as described above, since the station number is set after collating the set position information and the collected position information, the connection relationship between the network devices assumed by the user and the actual state It is possible to set the station number which is consistent with the connection relationship between the network devices of the above.
実施の形態2
 実施の形態1ではこの発明の局番設定装置はマスタ装置1に設けられたものを示したが、この発明の局番設定装置はFAネットワークで接続されて情報の送受信ができるものであれば、管理装置3、マスタ装置1、スレーブ装置2A~2D等のいずれの装置に設けられていても、あるいは独立した構成でFAネットワークに接続されていても、さらには局番設定装置を構成する要素が管理装置3、マスタ装置1、スレーブ装置2A~2Dに分散して存在していてもよい。
 実施の形態1では、局番設定装置を構成する各部がマスタ装置1で動作する場合を示したが、実施の形態2では局番設定装置を構成する各部がマスタ装置1、スレーブ装置2A~2Dに分散して設けられる場合を説明する。本実施の形態2のマスタ装置1、およびスレーブ装置2A~2Dの構成は実施の形態1で示した図2、図3と同様である。ただし、この発明の局番設定装置の記憶部としてはスレーブ装置2A~2Dに設けられた記憶部604Bを用い、構成収集部としてはマスタ装置1の構成収集部50とスレーブ装置の構成収集部50を用い、照合部としてはスレーブ装置2A~2Dの601Bを用い、局番設定部としてはスレーブ装置2A~2Dの602Bを用いている。この実施の形態2においてはマスタ装置1の局番参照部60と構成データ生成部502Aは動作せず、これらが無い構成でもよい。
Embodiment 2
In the first embodiment, the station number setting device of the present invention is the one provided in the master device 1, but if the station number setting device of the present invention is connected by FA network and can transmit and receive information, the management device 3. The master unit 1, the slave units 2A to 2D, etc. are connected to the FA network regardless of whether they are provided or independent of each other, and the elements constituting the station number setting unit are the management unit 3 , And may be distributed to the master device 1 and the slave devices 2A to 2D.
In the first embodiment, the case where each unit constituting the station number setting device operates in the master device 1 is shown, but in the second embodiment, each portion constituting the station number setting device is distributed to the master device 1 and slave devices 2A to 2D. The case where it is provided will be described. The configurations of the master device 1 and the slave devices 2A to 2D of the second embodiment are the same as those shown in FIGS. 2 and 3 shown in the first embodiment. However, the storage unit of the station number setting apparatus according to the present invention uses the storage unit 604B provided in the slave devices 2A to 2D, and the configuration collection unit includes the configuration collection unit 50 of the master device 1 and the configuration collection unit 50 of the slave device. Used as the collating unit is 601B of the slave devices 2A to 2D, and the station number setting unit is 602B of the slave devices 2A to 2D. In the second embodiment, the station number reference unit 60 and the configuration data generation unit 502A of the master device 1 may not operate, and may not be provided.
 実施の形態2ではマスタ装置1が管理装置3から受信したネットワークを構成するスレーブ装置2A~2Dの「装置固有情報」と「位置情報」それに対応する「局番」とを含む設定情報は、マルチキャスト通信で全てのスレーブ装置2A~2Dに送信される。マスタ装置の局番参照部60では、前述の照合部601A、局番設定部602A、エラー通知部603Aの処理は実施しない。照合に係る処理はスレーブ装置2A~2Dの局番参照部60にて実行される。 In the second embodiment, the setting information including “device unique information” and “location information” of slave devices 2A to 2D that constitute a network received by the master device 1 from the management device 3 is multicast communication Are transmitted to all slave devices 2A to 2D. In the station number reference unit 60 of the master device, the processes of the above-mentioned check unit 601A, station number setting unit 602A, and error notification unit 603A are not performed. The processing relating to the collation is executed by the station number reference unit 60 of the slave devices 2A to 2D.
 スレーブ装置2A~2Dがマスタ装置1からマルチキャスト通信にて「装置固有情報」と「位置情報」それに対応する「局番」とを含む設定情報を受信した場合は、更新した構成収集フレームは構成収集フレーム転送設定部502Bによって、隣接する装置へ転送するための設定を行い、内部バス40を経由し、通信部30のデータ送信部302へ出力される。また、隣接する装置から更新された更新収集フレームを受信した場合は、構成データ生成部503Bによって、隣接する装置の「装置固有情報」と「位置情報」を含むネットワークの構成情報を生成する。生成した情報は記憶部504Bにて一時的に保存する。 When slave devices 2A to 2D receive setting information including “device specific information” and “location information” corresponding thereto from the master device 1 by multicast communication, the updated configuration collection frame is a configuration collection frame The transfer setting unit 502 B performs setting for transferring to an adjacent device, and outputs the setting to the data transmission unit 302 of the communication unit 30 via the internal bus 40. When the updated collection frame is received from the adjacent device, the configuration data generation unit 503B generates network configuration information including “device unique information” and “location information” of the adjacent device. The generated information is temporarily stored in the storage unit 504B.
 局番参照部60では設定情報を記憶部604Bにて一時保存する。その設定情報と構成収集部50の構成データ生成部503Bで生成したネットワークの構成情報を照合部601Bにて照合する。照合結果が正しい場合は、自装置の設定情報を局番設定部602Bにより生成し、内部バス40を経由し、汎用記憶部80へ格納する。格納された情報を元にスレーブ装置は自装置の局番設定を実行する。また、設定情報とネットワークの構成情報を照合し、ネットワークの構成情報が全ての設定情報と合致しない場合は、エラー通知部603Bにてエラー通知フレームを生成し、内部バス40を経由して、通信部30へ出力する。生成されたエラー通知フレームは、ユニキャスト通信で管理装置3へ送信される。 The station number reference unit 60 temporarily stores the setting information in the storage unit 604B. The setting information and the network configuration information generated by the configuration data generation unit 503B of the configuration collection unit 50 are collated by the collation unit 601B. If the collation result is correct, the setting information of the own apparatus is generated by the station number setting unit 602B, and stored in the general-purpose storage unit 80 via the internal bus 40. The slave device executes the station number setting of its own device based on the stored information. Also, the setting information and the network configuration information are collated, and if the network configuration information does not match all the setting information, an error notification frame 603B is generated by the error notification unit 603B, and communication is performed via the internal bus 40. Output to the unit 30. The generated error notification frame is transmitted to the management device 3 by unicast communication.
 図9は、実施の形態2の局番設定装置によりスレーブの局番を設定する動作を示すシーケンス図である。まずユーザが管理装置3上でネットワークの設定情報を設定する(ステップS17)。管理装置3はユーザの設定によって得た「装置固有情報」と「位置情報」それらに対応する「局番」とを含む設定情報を接続されるマスタ装置1へネットワークを介して送信する(ステップS18)。マスタ装置1はマルチキャスト通信により、ネットワーク上に存在する全てのスレーブ装置2A~2Dへ設定情報を送信する(ステップS19)。その後、マスタ装置1は構成収集フレームを生成し、隣接する装置へそれを送信する(ステップS20)。構成収集フレームを受信したいずれかのスレーブ装置2A~2Dはフレームの内容を更新し(ステップS21、S23)、更新したフレームをマルチキャスト通信でマスタ装置1及び全スレーブ装置2A~2Dへ転送する(ステップS22、S24)。この処理をネットワーク上に存在する全てのスレーブ装置2A~2Dの処理が完了するまで実施する。スレーブ装置は更新された構成収集フレームを保持し、全ての隣接する装置の更新処理が完了すると、各スレーブで収集構成情報を生成する(S25、S26)。生成した構成情報とマスタ装置1より受信した設定情報の「装置固有情報」と「位置情報」を照合し、合致した場合、自装置の「装置固有情報」と「位置情報」それらに対応する「局番」情報を元に自装置の局番設定を行う(ステップS29、S30)。 FIG. 9 is a sequence diagram showing an operation of setting a slave station number by the station number setting device according to the second embodiment. First, the user sets network setting information on the management device 3 (step S17). The management device 3 transmits setting information including “device specific information” and “position information” obtained by the user's setting to the connected master device 1 via the network (step S18). . The master device 1 transmits setting information to all slave devices 2A to 2D existing on the network by multicast communication (step S19). After that, the master device 1 generates a configuration collection frame and transmits it to the adjacent device (step S20). One of the slave devices 2A to 2D that has received the configuration collection frame updates the contents of the frame (steps S21 and S23), and transfers the updated frame to the master device 1 and all slave devices 2A to 2D by multicast communication (steps S22, S24). This processing is performed until the processing of all slave devices 2A to 2D existing on the network is completed. The slave device holds the updated configuration collection frame, and when the update process of all the adjacent devices is completed, the collection configuration information is generated in each slave (S25, S26). If the generated configuration information matches the "device-specific information" and "position information" of the setting information received from the master device 1, and if they match, "device-specific information" and "position information" of the own device correspond to them. The station number setting of the own device is performed based on the station number information (steps S29 and S30).
 以上のような実施の形態2によれば、実施の形態1と同様に設定された位置情報と収集した位置情報を照合した上で、局番が設定されるので、ユーザが想定しているネットワーク装置間の接続関係と、実際のネットワーク装置間の接続関係とが整合した局番の設定を行うことができる。また、実施の形態2の場合マスタ装置1が全てのスレーブ装置2A~2D各々にユニキャストで局番情報を送信する必要がなくなり、各々のスレーブ装置における局番設定を各スレーブ装置で同時期にできるので、局番をユーザが設定してから局番設定が終了するまでの時間を短くできる。 According to the second embodiment as described above, since the station number is set after comparing the collected location information with the location information set in the same manner as in the first embodiment, the network apparatus assumed by the user It is possible to set a station number in which the connection relationship between the two and the actual connection relationship between the network devices match. Further, in the case of the second embodiment, it is not necessary for the master device 1 to transmit the station number information in unicast to all the slave devices 2A to 2D, and the station number setting in each slave device can be made in each slave device at the same time. The time from the user setting the station number to the end of the station number setting can be shortened.
 なお、実施の形態1、2ではマスタ装置1とスレーブ装置2A~2Dをライン型で配線したネットワーク構成で各装置をデイジーチェーン接続し、データ転送をバケツリレー式に行う構成のものを説明したが、本発明は、図10のようなスター型の配線のネットワーク構成のFAシステム、あるいは図11のようなスター型とライン型の配線を混在させたネットワーク構成のFAシステムでも適用可能である。図10において、8はネットワーク上を流れるデータを送信先の装置へ転送するスイッチ装置である。各装置はスイッチ装置8を介して配線され、データ転送はスイッチ装置8により、各装置へ転送される。図12は、図10のネットワーク構成のFAシステムの場合のスレーブ装置2A~2Dがマスタ装置1へ送信する構成情報を示すデータ構成図であり、図13は、管理装置3がマスタ装置1に対して送信する設定情報を示すデータ構成図、図14はマスタ装置1が収集する構成情報を示すデータ構成図である。これらスター型のネットワーク構成のFAシステムであっても実施の形態1、2と同様の動作が行われるものである。 In the first and second embodiments, the network configuration in which the master device 1 and the slave devices 2A to 2D are wired in a line configuration has been described as a configuration in which each device is daisy chained and data transfer is performed in a bucket brigade configuration. The present invention is also applicable to an FA system with a star-type wire network configuration as shown in FIG. 10, or to a network configuration with a combination of star-type and line-type wires as shown in FIG. In FIG. 10, reference numeral 8 denotes a switch device for transferring data flowing on the network to a destination device. Each device is wired through the switch device 8, and data transfer is transferred to each device by the switch device 8. FIG. 12 is a data configuration diagram showing configuration information transmitted to the master device 1 by the slave devices 2A to 2D in the case of the FA system of the network configuration of FIG. FIG. 14 is a data configuration diagram showing configuration information collected by the master device 1. Even in the FA system of the star type network configuration, the same operation as in the first and second embodiments is performed.
 以上のような、本発明にかかるネットワーク装置の局番設定装置は、産業用ネットワークシステムに有用であり、特に、大量のスレーブ装置を構築する必要のあるシステムに好適である。 The above-described station setting device for a network device according to the present invention is useful for an industrial network system, and is particularly suitable for a system that needs to build a large number of slave devices.
 1 マスタ装置
 2A~2F スレーブ装置
 3 管理装置
 4 管理装置 
 5 外部ネットワーク
 6 管理装置
 7 接続ケーブル
 8 スイッチ装置
 10 入出力ポート
 20 選択部
 30 通信部
 40 内部バス
 50 構成収集部
 60 局番参照部
 70 演算処理部
 80 汎用記憶部
 90 局番設定装置
 201 入出力ポート選択部
 202 ポート情報付与部
 301 データ受信部
 302 データ送信部
 501A 構成収集フレーム生成部
 502A 構成データ生成部
 503A 記憶部
 601A 照合部
 602A 局番設定部
 603A エラー通知部
 604A 記憶部
 501B 構成収集フレーム更新部
 502B 構成収集フレーム転送設定部
 503B 構成データ生成部
 504B 記憶部
 601B 照合部
 602B 局番設定部
 603B エラー通知部

 604B 記憶部
1 Master Device 2A to 2F Slave Device 3 Management Device 4 Management Device
5 external network 6 management device 7 connection cable 8 switch device 10 input / output port 20 selection unit 30 communication unit 40 internal bus 50 configuration collection unit 60 station number reference unit 70 operation processing unit 80 general storage unit 90 station number setting device 201 input / output port selection Section 202 Port information appending section 301 Data receiving section 302 Data transmitting section 501A Configuration collection frame generation section 502A Storage section 601A Storage section 601A Verification section 602A Station number setting section 603A Error notification section 604A Storage section 501B Configuration collection frame updating section 502B Configuration Collection frame transfer setting unit 503B Configuration data generation unit 504B Storage unit 601B Verification unit 602B Station number setting unit 603B Error notification unit

604B storage unit

Claims (5)

  1. ネットワークに接続されるネットワーク装置の装置固有情報と接続位置を示す接続関係情報と局番が設定された設定情報を記憶する記憶部と、
    前記ネットワークを介して、前記ネットワーク装置から、現在の各ネットワーク装置の装置固有情報、現在の接続された前記ネットワークにおける接続関係情報を含む構成情報を収集する構成収集部と、
    前記記憶部に記憶された装置固有情報と前記構成収集部で収集した現在の装置固有情報、及び前記記憶部に記憶された接続関係情報と前記構成収集部で収集した現在の接続関係情報を照合する照合部と、
    前記照合部において装置固有情報及び接続関係情報が整合したネットワーク装置に対応する前記局番を前記ネットワーク装置に設定する局番設定部と、
    を備えるネットワーク装置の局番設定装置。
    A storage unit that stores device-specific information of a network device connected to a network, connection relationship information indicating a connection position, and setting information in which a station number is set;
    A configuration collection unit that collects, from the network device, configuration information including device unique information of each current network device and connection relationship information in the currently connected network via the network;
    The device unique information stored in the storage unit, the current device unique information collected by the configuration collection unit, and the connection relationship information stored in the storage unit with the current connection relationship information collected by the configuration collection unit The matching unit to
    A station number setting unit configured to set, in the network device, the station number corresponding to the network device whose device unique information and connection relationship information match in the collation unit;
    Station setting device for a network device comprising:
  2. 前記接続関係情報は前記ネットワーク装置が前記ネットワークと接続する入出力ポートの番号と、前記入出力ポートに接続されるネットワーク装置の装置固有情報とで構成されることを特徴とする請求項1記載のネットワーク装置の局番設定装置。 The connection relation information according to claim 1, wherein the connection relation information includes the number of an input / output port connected to the network by the network apparatus, and apparatus specific information of the network apparatus connected to the input / output port. Station setting device for network devices.
  3. 前記記憶部は前記ネットワーク経由で管理装置から通知される前記設定情報を記憶することを特徴とする請求項1または2に記載のネットワーク装置の局番設定装置。 3. The apparatus according to claim 1, wherein the storage unit stores the setting information notified from a management apparatus via the network.
  4. 前記ネットワーク装置は、管理装置とマスタ装置と、マスタ装置に制御されるスレーブ装置とからなり、前記構成収集部はマスタ装置に設けられることを特徴とする請求項3記載のネットワーク装置の局番設定装置。 The apparatus according to claim 3, wherein the network device comprises a management device, a master device, and a slave device controlled by the master device, and the configuration collection unit is provided in the master device. .
  5. 前記装置固有情報は前記ネットワーク装置の型名情報またはMACアドレスであることを特徴とする請求項1または2に記載のネットワーク装置の局番設定装置。 The apparatus according to claim 1 or 2, wherein the device specific information is type name information or MAC address of the network device.
PCT/JP2017/031063 2017-08-30 2017-08-30 Local number setting device for network device WO2019043811A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
PCT/JP2017/031063 WO2019043811A1 (en) 2017-08-30 2017-08-30 Local number setting device for network device
JP2018552023A JP6512377B1 (en) 2017-08-30 2017-08-30 Station setting device for network device
CN201780094242.3A CN111034126B (en) 2017-08-30 2017-08-30 Station number setting device for network device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2017/031063 WO2019043811A1 (en) 2017-08-30 2017-08-30 Local number setting device for network device

Publications (1)

Publication Number Publication Date
WO2019043811A1 true WO2019043811A1 (en) 2019-03-07

Family

ID=65525216

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2017/031063 WO2019043811A1 (en) 2017-08-30 2017-08-30 Local number setting device for network device

Country Status (3)

Country Link
JP (1) JP6512377B1 (en)
CN (1) CN111034126B (en)
WO (1) WO2019043811A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020161965A (en) * 2019-03-26 2020-10-01 オムロン株式会社 Management device, support device, management method, management program, and recording medium
JP6798649B1 (en) * 2020-03-13 2020-12-09 三菱電機株式会社 Master device and communication method
JP2021145248A (en) * 2020-03-12 2021-09-24 オムロン株式会社 Information processing device, information processing system, notification method, and information processing program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5996621U (en) * 1983-11-24 1984-06-30 富士電機株式会社 Connection check device for remote input/output section
JPS61141001A (en) * 1984-12-14 1986-06-28 Fuji Electric Co Ltd Structure diagnosis system of process control system
JP2014119912A (en) * 2012-12-14 2014-06-30 Omron Corp Control apparatus and control program
WO2016030968A1 (en) * 2014-08-26 2016-03-03 三菱電機株式会社 Equipment management device, equipment management method, and program
WO2017068996A1 (en) * 2015-10-19 2017-04-27 株式会社ノーリツ Communication adapter

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4019616B2 (en) * 2000-09-08 2007-12-12 オムロン株式会社 Network configuration management tool and recording medium
JP2005260853A (en) * 2004-03-15 2005-09-22 Omron Corp Radio communication apparatus
JP5484427B2 (en) * 2011-10-27 2014-05-07 株式会社日立製作所 Network system management method, network system, and management server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5996621U (en) * 1983-11-24 1984-06-30 富士電機株式会社 Connection check device for remote input/output section
JPS61141001A (en) * 1984-12-14 1986-06-28 Fuji Electric Co Ltd Structure diagnosis system of process control system
JP2014119912A (en) * 2012-12-14 2014-06-30 Omron Corp Control apparatus and control program
WO2016030968A1 (en) * 2014-08-26 2016-03-03 三菱電機株式会社 Equipment management device, equipment management method, and program
WO2017068996A1 (en) * 2015-10-19 2017-04-27 株式会社ノーリツ Communication adapter

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MELS OFT IQ WORKS, 20 April 2015 (2015-04-20), pages 19 - 20 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020161965A (en) * 2019-03-26 2020-10-01 オムロン株式会社 Management device, support device, management method, management program, and recording medium
JP7226008B2 (en) 2019-03-26 2023-02-21 オムロン株式会社 Management device, support device, management method, management program and recording medium
US11627058B2 (en) 2019-03-26 2023-04-11 Omron Corporation Management device, assistance device, management method, and recording medium for converting data into viewable format
JP2021145248A (en) * 2020-03-12 2021-09-24 オムロン株式会社 Information processing device, information processing system, notification method, and information processing program
JP7528477B2 (en) 2020-03-12 2024-08-06 オムロン株式会社 Information processing device, information processing system, notification method, and information processing program
JP6798649B1 (en) * 2020-03-13 2020-12-09 三菱電機株式会社 Master device and communication method
WO2021181682A1 (en) * 2020-03-13 2021-09-16 三菱電機株式会社 Master device and communication method

Also Published As

Publication number Publication date
CN111034126A (en) 2020-04-17
JPWO2019043811A1 (en) 2019-11-07
CN111034126B (en) 2021-10-22
JP6512377B1 (en) 2019-05-15

Similar Documents

Publication Publication Date Title
JP6512377B1 (en) Station setting device for network device
CN112068497A (en) Easy node switching in a process control system
CN108769165A (en) Data processing method, Internet of Things access system in a kind of Internet of Things
US8767564B2 (en) Field communication system and field communication method
JP2016111646A (en) Remote collection system for vehicle data
CN104898654A (en) Unmanned plane remote control system and method
JP2002268707A (en) Controller and tool, and system constituted of the same
CN108989382A (en) Method for replacing and/or cloning at least some equipment of machine
CN105323330A (en) Internet protocol addressing of industrial control devices employing the network ring topology
CN107453954A (en) A kind of Networked E-Journals method, system and equipment
CN112988914B (en) Block chain-based textile detection method and device and network side server
CN113259112A (en) Managing certificates in a building management system
CN111130833A (en) Train network automatic configuration method and computer readable storage medium
WO2010097674A1 (en) Wireless network system
JP2009140110A (en) Communication system
CN104380668A (en) Switch device, vlan configuration and management method, and program
CN108121221A (en) A kind of robotic command interface control system and method
JP2014060636A (en) Communication interface conversion device
JP2003249891A (en) Digital broadcast radio system
JP2007026122A (en) Plant monitoring control system
JP2005284468A (en) Facility management system, setting information management device, controller and program
CN118095786B (en) Reconstruction method and system for digital assembly production line of airplane
CN110285529A (en) Automatic configuration method, equipment, terminal and system for central air conditioner terminal equipment
CN111130832A (en) Train network device configuration method and computer readable storage medium
CN114070714B (en) Method and device for determining solution information of network equipment configuration problem

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2018552023

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

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

Country of ref document: EP

Kind code of ref document: A1