WO2018109949A1 - Simulation device, simulation method and simulation program - Google Patents
Simulation device, simulation method and simulation program Download PDFInfo
- Publication number
- WO2018109949A1 WO2018109949A1 PCT/JP2016/087684 JP2016087684W WO2018109949A1 WO 2018109949 A1 WO2018109949 A1 WO 2018109949A1 JP 2016087684 W JP2016087684 W JP 2016087684W WO 2018109949 A1 WO2018109949 A1 WO 2018109949A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- token
- unit
- simulation
- slave device
- communication device
- Prior art date
Links
- 238000004088 simulation Methods 0.000 title claims abstract description 77
- 238000000034 method Methods 0.000 title claims description 31
- 238000004891 communication Methods 0.000 claims abstract description 73
- 238000012360 testing method Methods 0.000 claims description 21
- 230000005540 biological transmission Effects 0.000 description 78
- 230000006870 function Effects 0.000 description 16
- 238000010586 diagram Methods 0.000 description 12
- 238000004519 manufacturing process Methods 0.000 description 9
- 238000012545 processing Methods 0.000 description 8
- 238000004364 calculation method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/42—Loop networks
- H04L12/427—Loop networks with decentralised control
- H04L12/433—Loop networks with decentralised control with asynchronous transmission, e.g. token ring, register insertion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/44—Star or tree networks
Definitions
- the present invention relates to a token passing system.
- a plurality of Programmable Logic Controllers (hereinafter referred to as FA system) are connected to the network. Devices such as robots and sensors are connected to each PLC. Each PLC controls these devices.
- a token passing system may be used as a communication system.
- a token passing system a data transmission right called a token circulates between a plurality of nodes connected to a network. The node holding the token can transmit data.
- each PLC can transmit data at a constant cycle.
- Patent Document 1 There is a technique described in Patent Document 1 as a technique for testing the FA system.
- a virtual PLC and a virtual communication unit that transmits and receives data are provided on a virtual environment. And in the technique of patent document 1, it tests by delaying the communication timing of a virtual communication unit according to the delay time designated by the user.
- a token token passing system is not physically configured, but a virtual token passing system is constructed. And in the technique of patent document 1, it tests by delaying the communication timing of a virtual communication unit by the delay time designated by the user. However, the delay time specified by the user does not always match the delay time generated in the actual PLC. If the delay time specified by the user does not match the delay time generated in the actual PLC, the delay occurring in the FA system production environment cannot be accurately reproduced in the test. On the other hand, it is difficult to prepare all the PLCs used in the production environment at the time of the test, and it is desired to perform the test with a configuration of PLCs smaller than that in the production environment.
- the delay that occurs in the FA system is proportional to the number of PLCs, if the number of PLCs is small during the test, the period at which each PLC transmits data (the period at which each PLC acquires a token) is shorter than in the production environment. . For this reason, the time until the data of the control command is transmitted to the devices connected to each PLC will be different between the test and the production environment. In the test, the device was successfully controlled. A situation of failure can occur.
- the main object of the present invention is to obtain a configuration capable of performing a test with high accuracy in a token passing system configured with fewer communication devices than a production environment.
- the simulation apparatus is A simulation device included in the token passing system, A token receiver for receiving a token communicated by the token passing system; It is determined whether or not the destination of the token received by the token receiving unit is a communication device included in the token passing system. When the destination of the token is not the communication device, the communication is performed as a virtual communication device. A simulation unit that simulates the operation of the device.
- the simulation device included in the token passing system simulates the operation of the communication device as a virtual communication device. Therefore, according to the present invention, the operation of a communication device that is not included in the token passing system can be reflected in the test during the test, and the token passing system is configured with fewer communication devices than the production environment. The test can be performed with high accuracy.
- FIG. 1 is a diagram illustrating a system configuration example of a token topology token passing system according to Embodiment 1.
- FIG. 1 is a diagram illustrating a system configuration example of a line topology token passing system according to Embodiment 1.
- FIG. 1 is a diagram showing a system configuration example of a ring topology token passing system according to Embodiment 1.
- FIG. 3 is a diagram illustrating a hardware configuration example of a master device according to the first embodiment.
- FIG. 3 is a diagram illustrating a functional configuration example of a master device according to the first embodiment.
- FIG. 3 is a diagram illustrating a hardware configuration example of a slave device according to the first embodiment.
- FIG. 3 is a diagram illustrating a functional configuration example of a slave device according to the first embodiment.
- FIG. 1 is a diagram illustrating a system configuration example of a token passing system including a virtual slave device according to Embodiment 1.
- FIG. 6 is a flowchart showing a procedure A according to the first embodiment.
- 5 is a flowchart showing a procedure B according to the first embodiment.
- FIG. 4 is a diagram showing a system configuration example of a star topology token passing system according to a second embodiment.
- FIG. 4 is a diagram illustrating a hardware configuration example of a simulation apparatus according to a second embodiment.
- FIG. 4 is a diagram illustrating a functional configuration example of a simulation apparatus according to a second embodiment.
- FIG. 6 is a diagram illustrating a functional configuration example of a master device according to a second embodiment.
- FIG. 10 is a flowchart showing a procedure B according to the second embodiment.
- FIG. 10 The figure which shows the example of the apparatus management table after the update which concerns on Embodiment 1.
- FIG. 10 The figure which shows the example of the apparatus management table after the update which concerns on Embodiment 1.
- FIG. *** Explanation of configuration *** FIG. 1 shows a system configuration example of the token passing system according to the first embodiment.
- the network topology of the token passing system in FIG. 1 is a star type, the network topology of the token passing system according to the first embodiment is not limited to the star type.
- FIG. 2 shows a system configuration example of a token-passing system having a line topology.
- FIG. 3 shows an example of the system configuration of a ring topology token passing system. 1 and 2 can be combined to construct a token passing system having a network topology in which a line type and a star type are mixed.
- the token passing system having the network topology of FIG. 1 will be mainly described.
- a master device 100, a slave device 200, and a slave device 300 are PLCs. Each of the slave device 200 and the slave device 300 corresponds to a communication device.
- master device 100 corresponds to a simulation device. Operations performed by the master device 100 correspond to a simulation method and a simulation program.
- the master device 100 manages the slave device 200 and the slave device 300. More specifically, the master device 100 manages the transmission destination of the token packet and the data length of the data. In addition, the master device 100 sets management information for notifying the transmission destination and data length of the token packet in the slave device 200 and the slave device 300.
- the token packet is a packet for delivering a token.
- sending a token packet is also called sending a token.
- receiving a token packet is also referred to as receiving a token.
- the slave device 200 and the slave device 300 are connected to a robot, a sensor, and the like, respectively.
- the slave device 200 and the slave device 300 perform token transmission and data transmission based on the management information set by the master device 100, respectively.
- the master device 100, the slave device 200, and the slave device 300 are each connected to the switching hub 400.
- the switching hub 400 relays communication among the master device 100, the slave device 200, and the slave device 300.
- FIG. 4 shows a hardware configuration example of the master device 100.
- the master device 100 includes a processor 151, a storage device 152, a communication interface 153, and a device control interface 154.
- the master device 100 is a computer.
- the processor 151 transmits data. Further, the processor 151 determines whether or not to hold a token.
- the processor 151 performs a calculation for operating a device management table described later. Further, the processor 151 executes a program for realizing the functions shown in FIG.
- the storage device 152 stores a device management table. In addition, the storage device 152 stores a program that implements the functions shown in FIG. Further, the storage device 152 stores data received from the slave device 200 and the slave device 300.
- the storage device 152 stores data to be transmitted to the slave device 200 and the slave device 300.
- the communication interface 153 is an interface for communicating with the slave device 200 and the slave device 300 via the switching hub 400.
- the device control interface 154 is an interface for controlling devices such as robots and sensors. Although only one communication interface 153 is shown in FIG. 4, the master device 100 may include a plurality of communication interfaces 153. Similarly, in FIG. 4, only one device control interface 154 is shown, but the master device 100 may include a plurality of device control interfaces 154.
- FIG. 6 shows a hardware configuration example of the slave device 200.
- the slave device 200 includes a processor 251, a storage device 252, a communication interface 253, and a device control interface 254.
- the slave device 200 is a computer.
- the processor 251 transmits data. Further, the processor 251 determines whether or not to hold a token. Furthermore, the processor 251 executes a program that implements the functions shown in FIG.
- the storage device 252 stores a program that implements the functions shown in FIG.
- the storage device 252 stores data received from the master device 100 and the slave device 300.
- the storage device 252 stores data to be transmitted to the master device 100 and the slave device 300.
- the communication interface 253 is an interface for communicating with the master device 100 and the slave device 300 via the switching hub 400.
- the device control interface 254 is an interface for controlling devices such as robots and sensors. Although only one communication interface 253 is shown in FIG. 6, the slave device 200 may include a plurality of communication interfaces 253. Similarly, in FIG. 6, only one device control interface 254 is shown, but the slave device 200 may include a plurality of device control interfaces 254.
- the hardware configuration of the slave device 300 is also as shown in FIG.
- FIG. 5 shows a functional configuration example of the master device 100.
- the master device 100 includes an initial setting unit 111, a token reception unit 112, a data transmission unit 113, a token transmission unit 114, a data reception unit 115, and a simulation unit 120.
- the initial setting unit 111, the token reception unit 112, the data transmission unit 113, the token transmission unit 114, and the data reception unit 115 are functional blocks that realize the function of the master device 100 as a PLC.
- the simulation unit 120 is a functional block for the master device 100 to simulate the operation of the slave device.
- the simulation unit 120 includes a device management table operation unit 121, a token destination setting unit 122, a virtual device token reception unit 123, a virtual device data transmission unit 124, and a virtual device token transmission unit 125.
- the initial setting unit 111, the token receiving unit 112, the data transmitting unit 113, the token transmitting unit 114, the data receiving unit 115, and the simulation unit 120 are realized by a program.
- the processor 151 executes these programs, the functions of the initial setting unit 111, the token reception unit 112, the data transmission unit 113, the token transmission unit 114, the data reception unit 115, and the simulation unit 120 are realized.
- the device management table storage unit 116 stores a device management table.
- the device management table is, for example, a table shown in FIG. In the device management table, a MAC (Media Access Control) address, a token destination MAC address, and a transmission data length are described for each communication device. Details of the device management table will be described later.
- the device management table storage unit 116 is realized by the storage device 152.
- the initial setting unit 111 sets information such as the token destination MAC address of the device management table in the slave device 200 and the slave device 300.
- the token receiving unit 112 receives a token packet. Then, the token reception unit 112 compares the token destination MAC address described in the received token packet with the MAC address of the master device 100. If the token destination MAC address matches the MAC address of the master device 100, the token receiving unit 112 holds the token. The token receiving unit 112 instructs the data transmitting unit 113 to transmit data. On the other hand, when the token destination MAC address does not match the MAC address of the master device 100, the token reception unit 112 transfers the token packet to the simulation unit 120. Note that the token receiving unit 112 receiving a token packet is also referred to as the token receiving unit 112 receiving a token. The operation of the token reception unit 112 corresponds to token reception processing.
- the data transmission unit 113 transmits data to the slave device 200 and the slave device 300 when receiving an instruction from the token reception unit 112.
- the data transmitted by the data transmission unit 113 includes control information for controlling the slave device 200 and the robot, sensor, and the like connected to the slave device 300.
- the token transmission unit 114 After the data transmission by the data transmission unit 113 is completed, the token transmission unit 114 refers to the device management table and broadcasts a token packet in which the token destination MAC address of the master device 100 is described. Note that the token transmission unit 114 transmitting a token packet is also referred to as the token transmission unit 114 transmitting a token.
- the data receiving unit 115 receives the data transmitted from the slave device 200 and the data transmitted from the slave device 300.
- the device management table storage unit 116 stores a device management table.
- the MAC address, token destination MAC address, and transmission data length are described for each communication device.
- FIG. 16 shows a device management table when the token circuit is master device 100 ⁇ slave device 200 ⁇ slave device 300 ⁇ master device 100.
- the token circuit is a token passing path.
- the MAC address column describes the MAC address assigned to each communication device.
- the MAC address assigned to the destination communication device of the token packet is described. For example, “BB: BB: BB: BB: BB: BB: BB” is described in the token destination MAC address column of the master device 100.
- the master device 100 transmits a token packet with the slave device 200 as a destination.
- the data length of data transmitted by each communication device is described. For example, “10 bytes” is described in the transmission data length column of the master device 100. That is, the master device 100 transmits 10-byte data to the slave device 200 and the slave device 300.
- the simulation unit 120 changes the setting of the selected communication device so that a token destined for the virtual communication device is transmitted from the selected communication device selected from the plurality of communication devices included in the token passing system.
- the virtual communication device is a virtual slave device that is simulated by the master device.
- the virtual communication device is referred to as a slave device 500.
- the slave device 500 is virtually added to the token passing system at the position shown in FIG.
- the token circulation circuit is master device 100 ⁇ slave device 200 ⁇ slave device 300 ⁇ master device 100.
- the simulation unit 120 selects the slave device 200 as the selected communication device, and changes the setting of the slave device 200 so that a token is transmitted from the slave device 200 to the slave device 500.
- the simulation unit 120 determines whether the destination of the token packet transferred from the token reception unit 112 is any of a plurality of communication devices included in the token passing system. That is, the simulation unit 120 determines whether the token destination is the slave device 200 or the slave device 300.
- the simulation unit 120 operates the slave device 200 or the slave device 300 as a virtual communication device when the token destination is neither the slave device 200 nor the slave device 300, that is, when the token destination is the slave device 500. Simulate.
- the operation of the simulation unit 120 corresponds to simulation processing.
- the device management table operation unit 121 changes the device management table. As described above, when the token is transmitted from the slave device 200 to the slave device 500 as the destination, the device management table operation unit 121 updates the device management table of FIG. 16 as illustrated in FIG. In the device management table of FIG. 17, a real identifier column is added. In addition, a record of the slave device 500 that is a virtual communication device is added. In FIG. 17, the part surrounded by the broken line is an additional part from FIG. In the real identifier column, “True” is described for a communication device included in the token passing system. On the other hand, if the communication device (virtual communication device) is not included in the token passing system, “False” is described. In the example of FIG. 17, “True” is described for the master device 100, the slave device 200, and the slave device 300, but “False” is described for the slave device 500.
- the token destination setting unit 122 sets a token destination MAC address described in the device management table for all communication devices included in the token passing system. That is, the token destination setting unit 122 sets the token destination MAC address “CC: CC: CC: CC: CC” for the slave device 200 if the device management table is in the state shown in FIG. Further, the token destination setting unit 122 sets the token destination MAC address “AA: AA: AA: AA: AA” for the slave device 300.
- the token destination setting unit 122 sends the token destination MAC address “DD: DD: DD: DD: DD” to the slave device 200. Set. That is, the token destination setting unit 122 changes the setting of the slave device 200 so that the slave device 200 transmits a token destined for the slave device 500.
- the virtual device token receiving unit 123 collates the token destination MAC address described in the token packet with the MAC address of the device management table. .
- the virtual device token reception unit 123 holds the token as the slave device 500.
- the virtual device token receiving unit 123 instructs the virtual device data transmitting unit 124 to transmit data as the slave device 500. That is, the virtual device token reception unit 123 instructs the virtual device data transmission unit 124 to behave as the slave device 500 that is a virtual communication device.
- the token reception unit 211 discards the token packet.
- the virtual device data transmission unit 124 When there is an instruction from the virtual device token receiving unit 123, the virtual device data transmission unit 124 generates data having a data length that matches the data length of the slave device 500 in the device management table, and broadcasts the generated data.
- the virtual device token transmission unit 125 After the data transmission by the virtual device data transmission unit 124 is completed, the virtual device token transmission unit 125 refers to the device management table and broadcasts a token packet in which the token destination MAC address of the slave device 500 is described. Note that the virtual device token transmission unit 125 transmitting the token packet is also referred to as the virtual device token transmission unit 125 transmitting the token.
- the token reception unit 112 receives a token packet, the data transmission unit 113 transmits data, the token transmission unit 114 transmits a token, the data reception unit 115 receives data, the virtual device data transmission unit 124 transmits data,
- the token transmission by the virtual device token transmission unit 125 is performed by the communication interface 153 of FIG.
- FIG. 7 shows a functional configuration example of the slave device 200.
- the token receiving unit 211 receives a token packet. Then, the token receiving unit 211 compares the token destination MAC address described in the received token packet with the MAC address of the slave device 200. If the token destination MAC address matches the MAC address of the slave device 200, the token receiving unit 211 holds the token. The token reception unit 211 instructs the data transmission unit 212 to transmit data. On the other hand, when the token destination MAC address does not match the MAC address of the slave device 200, the token receiving unit 211 discards the token packet. Note that the token receiving unit 211 receiving a token packet is also referred to as the token receiving unit 211 receiving a token.
- the data transmission unit 212 transmits data to the master device 100, the slave device 300, and the slave device 500 when instructed by the token reception unit 211.
- the token transmission unit 213 broadcasts a token packet in which the token destination MAC address is described after the data transmission by the data transmission unit 212 is completed. Note that the token transmission unit 213 transmits a token packet, and the token transmission unit 213 also transmits a token.
- the data receiving unit 214 receives data transmitted from the master device 100 and the slave device 300.
- the token reception unit 211 receives a token packet
- the data transmission unit 212 transmits data
- the token transmission unit 213 transmits a token
- the data reception unit 214 receives data.
- the communication interface 253 in FIG. The functional configuration of the slave device 300 is also as shown in FIG.
- step S1 the device management table operation unit 121 updates the device management table. More specifically, the operator of the master device 100 inputs information surrounded by a broken line in FIG. Then, the device management table operation unit 121 updates the device management table as shown in FIG. 17 based on the information input from the operator. That is, the device management table operation unit 121 adds a record of the slave device 500 that is a virtual slave device, adds a real identifier column, and changes the token destination MAC address of the slave device 200.
- step S2 the token destination setting unit 122 sets the token destination MAC address of the device management table to the corresponding slave device.
- the token destination setting unit 122 sets a new token destination MAC address “DD: DD: DD: DD: DD” in the slave device 200.
- the token destination setting unit 122 sets a new token destination MAC address only to the slave device 200 whose token destination MAC address is changed, but the token destination setting unit 122
- the token destination MAC address “AA: AA: AA: AA: AA: AA” may be set also in the slave device 300 whose MAC address is not changed.
- the token receiving unit 112 determines whether or not the token destination is the master device 100. Specifically, the token receiving unit 112 compares the token destination MAC address included in the token packet with the MAC address of the master device 100 in the device management table.
- the token reception unit 112 In step S4 , Hold the token.
- the token reception unit 112 instructs the data transmission unit 113 to transmit data.
- step S5 the data transmission unit 113 broadcasts the data of the master device 100.
- the token transmission unit 114 transmits the token packet to the token destination of the master device 100 in step S6. More specifically, the token transmission unit 114 broadcasts a token packet in which “BB: BB: BB: BB: BB: BB”, which is the token destination MAC address of the master device 100 in the device management table, is described.
- the token receiving unit 112 transfers the token packet to the simulation unit 120.
- the virtual device token receiving unit 123 determines whether or not the communication device that is the destination of the token actually exists. More specifically, the virtual device token receiving unit 123 searches the device management table for a MAC address that matches the token destination MAC address. Then, the virtual device token receiving unit 123 determines whether the real identifier described in the MAC address record that matches the token destination MAC address is “True” or “False”.
- the virtual device token receiving unit 123 discards the received token packet in step S8.
- the virtual device token receiving unit 123 holds the token as the slave device 500 in step S9. That is, when the MAC address that matches the token destination MAC address is “DD: DD: DD: DD: DD”, the virtual device token receiving unit 123 holds the token as the slave device 500. Further, the virtual device token receiving unit 123 instructs the virtual device data transmitting unit 124 to transmit data.
- step S10 the virtual device data transmission unit 124 broadcasts data of the slave device 500.
- the virtual device token transmission unit 125 transmits the token packet to the token destination of the slave device 500 in step S11. More specifically, the virtual device token transmission unit 125 broadcasts a token packet in which “CC: CC: CC: CC: CC: CC”, which is the token destination MAC address of the slave device 500 in the device management table, is described. .
- the master device 100 behaves as the slave device 500 that does not exist during the test. Therefore, according to the present embodiment, the slave device 500 and the devices connected to the slave device 500 are not prepared without preparing the slave device 500 and the devices (robots, sensors, etc.) connected to the slave device 500. The operation can be reflected in the test. That is, according to the present embodiment, the test can be performed under the same conditions as in the production environment.
- Embodiment 2 the master device 100 behaves as a slave device 500 that is a virtual slave device.
- the master device 100 behaves as a slave device 500 that is a virtual slave device.
- the slave device 200 behaves as the slave device 500.
- differences from the first embodiment will be mainly described. Matters not described below are the same as those in the first embodiment.
- FIG. 11 shows a system configuration example of the token passing system according to the second embodiment.
- the network topology of the token passing system in FIG. 11 is a star type, but the network topology is not limited to the star type.
- the network topology of the token passing system may be any of a ring type, a line type, and a combination of a line type and a star type.
- a simulation apparatus 600 is added as compared to the configuration shown in FIG.
- the slave device 200 and the slave device 300 are the same as those described in the first embodiment.
- the simulation apparatus 600 performs the operation of the simulation unit 120 described in the first embodiment. That is, the simulation apparatus 600 simulates the operation of a slave device as a virtual communication device.
- the simulation device 600 behaves as the slave device 500 by simulating the operation of the slave device 200 or the slave device 300.
- the master device 100 does not perform the operation of the simulation unit 120 described in the first embodiment in the present embodiment. That is, the master device 100 functions as a communication device in the present embodiment.
- the switching hub 400 relays communication among the master device 100, the slave device 200, the slave device 300, and the simulation apparatus 600.
- FIG. 12 shows a hardware configuration example of the simulation apparatus 600.
- the simulation apparatus 600 includes a processor 651, a storage device 652, and a communication interface 653.
- the simulation apparatus 600 is a computer.
- the processor 651 transmits data. Further, the processor 651 determines whether or not to hold a token.
- the processor 651 performs a calculation for operating a device management table described later. Further, the processor 651 executes a program for realizing the functions shown in FIG.
- the storage device 652 stores a device management table.
- the storage device 652 stores a program that implements the functions illustrated in FIG.
- the storage device 652 stores data to be transmitted to the master device 100, the slave device 200, and the slave device 300.
- the communication interface 653 is an interface for communicating with the slave device 200 and the slave device 300 via the switching hub 400. Although only one communication interface 653 is shown in FIG. 12, the master device 100 may include a plurality of communication interfaces 653.
- FIG. 13 shows a functional configuration example of the simulation apparatus 600.
- the simulation device 600 includes a token reception unit 112 and a simulation unit 120.
- the token receiving unit 112 and the simulation unit 120 are the same as those shown in the first embodiment.
- the simulation unit 120 is a functional block for the simulation apparatus 600 to simulate a slave device.
- the token receiving unit 112 and the simulation unit 120 are realized by a program.
- the functions of the token receiving unit 112 and the simulation unit 120 are realized by the processor 651 executing the program.
- FIG. 13 schematically illustrates a state in which the processor 651 is executing a program that realizes the functions of the token reception unit 112 and the simulation unit 120.
- the simulation unit 120 includes a device management table operation unit 121, a token destination setting unit 122, a virtual device token reception unit 123, a virtual device data transmission unit 124, and a virtual device token transmission unit 125.
- the device management table operation unit 121, token destination setting unit 122, virtual device token reception unit 123, virtual device data transmission unit 124, and virtual device token transmission unit 125 in FIG. 13 are the same as those described in the first embodiment. Therefore, these descriptions are omitted.
- the device management table storage unit 615 stores a device management table. Since the device management table is the same as that described in the first embodiment, description of the device management table is omitted.
- the device management table storage unit 615 is realized by the storage device 652.
- FIG. 14 shows a functional configuration example of the master device 100.
- the master device 100 includes only an initial setting unit 111, a token reception unit 112, a data transmission unit 113, a token transmission unit 114, a data reception unit 115, and a device management table storage unit 116. That is, master device 100 according to the present embodiment does not include simulation unit 120. Since the initial setting unit 111, token reception unit 112, data transmission unit 113, token transmission unit 114, data reception unit 115, and device management table storage unit 116 in FIG. 14 are the same as those described in the first embodiment, These descriptions are omitted.
- the hardware configuration of the master device 100 of the second embodiment is as shown in FIG.
- the hardware configurations of the slave device 200 and the slave device 300 of the second embodiment are as shown in FIG.
- the functional configurations of the slave device 200 and the slave device 300 of the second embodiment are as shown in FIG.
- the operation of the simulation apparatus 600 is divided into a procedure A and a procedure B.
- procedure A the device management table is updated and the communication device is set based on the updated device management table.
- procedure B the token is received, the original operation of the master device 100 and the operation of the slave device 500 are performed.
- the simulation unit 120 of the simulation apparatus 600 performs the procedure A according to FIG. Since the details of FIG. 9 have been described in the first embodiment, the details of FIG. 9 are not described. If the token destination MAC address of the master device 100 has been updated, the token destination setting unit 122 sets the updated token destination MAC address in the master device 100 in step S2.
- the token receiving unit 112 transfers the token packet to the virtual device token receiving unit 123.
- the virtual device token receiving unit 123 determines whether or not the token destination node actually exists. More specifically, the virtual device token receiving unit 123 searches the device management table for a MAC address that matches the token destination MAC address. Then, the virtual device token receiving unit 123 determines whether the real identifier described in the MAC address record that matches the token destination MAC address is “True” or “False”.
- the MAC address that matches the token destination MAC address is “AA: AA: AA: AA: AA: AA”, “BB: BB: BB: BB: BB” or “CC: CC: CC: CC: CC: CC” ",
- the real identifier is" True ".
- the virtual device token receiving unit 123 discards the received token packet in step S13.
- the virtual device token receiving unit 123 holds the token as the slave device 500 in step S14. That is, when the MAC address that matches the token destination MAC address is “DD: DD: DD: DD: DD”, the virtual device token receiving unit 123 holds the token as the slave device 500. Further, the virtual device token receiving unit 123 instructs the virtual device data transmitting unit 124 to transmit data.
- step S15 the virtual device data transmitting unit 124 broadcasts data of the slave device 500.
- the virtual device token transmission unit 125 transmits a token packet to the token destination of the slave device 500 in step S16. More specifically, the virtual device token transmission unit 125 broadcasts a token packet in which “CC: CC: CC: CC: CC: CC”, which is the token destination MAC address of the slave device 500 in the device management table, is described. .
- the simulation device 600 simulates the operation of the slave device 500 that does not exist during the test. Therefore, according to the present embodiment, the slave device 500 and the devices connected to the slave device 500 are not prepared without preparing the slave device 500 and the devices (robots, sensors, etc.) connected to the slave device 500. The operation can be reflected in the test. That is, according to the present embodiment, the test can be performed under the same conditions as in the production environment. Also, by simulating the slave device 500 by the simulation device 600 instead of the master device 100, the load on the master device 100 can be reduced.
- the processor 151 and the processor 651 are integrated circuits (ICs) that perform processing.
- the processor 151 and the processor 651 are a CPU (Central Processing Unit) and a DSP (Digital Signal Processor), respectively.
- the storage device 152 and the storage device 652 are a RAM (Random Access Memory), a ROM (Read Only Memory), a flash memory, a HDD (Hard Disk Drive), and the like.
- the communication interface 153 and the communication interface 653 each include a receiver that receives data and a transmitter that transmits data.
- Each of the communication interface 153 and the communication interface 653 is, for example, a communication chip or a NIC (Network Interface Card).
- the storage device 152 also stores an OS (Operating System). At least a part of the OS is executed by the processor 151.
- the processor 151 executes the functions of the initial setting unit 111, the token reception unit 112, the data transmission unit 113, the token transmission unit 114, the data reception unit 115, and the simulation unit 120 while executing at least a part of the OS. Execute the program to be realized.
- the processor 151 executes the OS, task management, memory management, file management, communication control, and the like are performed.
- information, data, signal values, and variable values indicating the processing results of the initial setting unit 111, token receiving unit 112, data transmitting unit 113, token transmitting unit 114, data receiving unit 115, and simulation unit 120 are stored in the storage device 152. And stored in at least one of a register and a cache memory in the processor 151.
- the programs for realizing the functions of the initial setting unit 111, the token receiving unit 112, the data transmitting unit 113, the token transmitting unit 114, the data receiving unit 115, and the simulation unit 120 are a magnetic disk, a flexible disk, an optical disk, a compact disk, a Blu-ray disc. It may be stored in a portable storage medium such as a (registered trademark) disk or DVD.
- the storage device 652 also stores an OS. Then, at least a part of the OS is executed by the processor 651.
- the processor 651 executes a program that realizes the functions of the token receiving unit 112 and the simulation unit 120 while executing at least a part of the OS.
- the processor 651 executes the OS, task management, memory management, file management, communication control, and the like are performed. Further, information, data, signal values, and variable values indicating the processing results of the token receiving unit 112 and the simulation unit 120 are stored in at least one of the storage device 652, the register in the processor 651, and the cache memory.
- programs that realize the functions of the token receiving unit 112 and the simulation unit 120 may be stored in a portable storage medium such as a magnetic disk, a flexible disk, an optical disk, a compact disk, a Blu-ray (registered trademark) disk, and a DVD.
- a portable storage medium such as a magnetic disk, a flexible disk, an optical disk, a compact disk, a Blu-ray (registered trademark) disk, and a DVD.
- the “setting” of the initial setting unit 111, the token receiving unit 112, the data transmitting unit 113, the token transmitting unit 114, the data receiving unit 115, and the simulating unit 120 is referred to as “circuit” or “process” or “procedure” or “processing”. May be read as ".”
- the master device 100 and the simulation apparatus 600 may be implemented by an electronic circuit such as a logic IC (Integrated Circuit), a GA (Gate Array), an ASIC (Application Specific Integrated Circuit), or an FPGA (Field-Programmable Gate Array).
- the processor and the electronic circuit are also collectively referred to as a processing circuit.
- 100 master device 111 initial setting unit, 112 token reception unit, 113 data transmission unit, 114 token transmission unit, 115 data reception unit, 116 device management table storage unit, 120 simulation unit, 121 device management table operation unit, 122 token destination Setting unit, 123 Virtual device token receiving unit, 124 Virtual device data transmitting unit, 125 Virtual device token transmitting unit, 151 Processor, 152 Storage device, 153 Communication interface, 154 Device control interface, 200 Slave device, 211 Token receiving unit, 212 Data transmission unit, 213 token transmission unit, 214 data reception unit, 251 processor, 252 storage device, 253 communication interface, 254 device control interface, 300 slave device 400 switching hub 500 slave device 600 simulator, 615 device management table storage unit, 651 a processor, 652 a storage device, 653 communication interface.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
According to the present invention, a token receiving unit (112) receives a token communicated in a token passing system. A simulation unit (120) determines whether a receiver of a token received by the token receiving unit (112) is a communication device included in the token passing system, and simulates, with a virtual communication device, an operation of the communication device, when the receiver of the token is not the communication device.
Description
本発明は、トークンパッシングシステムに関する。
The present invention relates to a token passing system.
Factory Automationシステム(以下、FAシステムという)では、複数台のProgrammable Logic Controller(以下、PLCという)がネットワークに接続する。各PLCにはロボット、センサ等の機器が接続される。各PLCは、これらの機器を制御する。FAシステムでは、通信システムとして、トークンパッシングシステムが用いられることがある。トークンパッシングシステムでは、トークンと呼ばれるデータの送信権が、ネットワークに接続する複数のノードの間で巡回する。そして、トークンを保持するノードがデータを送信することができる。FAシステムにおいてトークンパッシングシステムを利用することにより、各PLCが一定周期にてデータを送信することができる。
In the Factory Automation system (hereinafter referred to as FA system), a plurality of Programmable Logic Controllers (hereinafter referred to as PLC) are connected to the network. Devices such as robots and sensors are connected to each PLC. Each PLC controls these devices. In the FA system, a token passing system may be used as a communication system. In a token passing system, a data transmission right called a token circulates between a plurality of nodes connected to a network. The node holding the token can transmit data. By using the token passing system in the FA system, each PLC can transmit data at a constant cycle.
FAシステムを試験する技術として、特許文献1に記載の技術がある。特許文献1の技術では、仮想環境上に仮想PLC及びデータの送受信を行う仮想通信ユニットが設けられる。そして、特許文献1の技術では、ユーザが指定した遅延時間に従って仮想通信ユニットの通信タイミングを遅延させて試験を行っている。
There is a technique described in Patent Document 1 as a technique for testing the FA system. In the technique disclosed in Patent Document 1, a virtual PLC and a virtual communication unit that transmits and receives data are provided on a virtual environment. And in the technique of patent document 1, it tests by delaying the communication timing of a virtual communication unit according to the delay time designated by the user.
特許文献1の技術では、物理的にトークンパッシングシステムを構成するのではなく、仮想的なトークンパッシングシステムを構築している。そして、特許文献1の技術では、ユーザが指定した遅延時間だけ仮想通信ユニットの通信タイミングを遅延させて試験を行っている。しかしながら、ユーザにより指定される遅延時間が、実機のPLCで発生する遅延時間に一致しているとは限らない。ユーザにより指定される遅延時間が、実機のPLCで発生する遅延時間に一致していない場合は、FAシステムの本番環境で生じる遅延を試験において正確に再現することができない。
一方で、試験の際に、本番環境で用いられる全てのPLCを揃えることは難しく、本番環境よりも少ないPLCの構成で試験を実施することが望まれている。FAシステムで発生する遅延はPLCの数に比例するため、試験時にPLCの数が少ないと、各PLCがデータを送信する周期(各PLCがトークンを取得する周期)が本番環境に比べて短くなる。このため、各PLCに接続される機器に制御命令のデータが伝達するまでの時間が試験と本番環境とで異なることになり、試験では機器の制御に成功したが、本番環境では機器の制御に失敗するという事態が発生し得る。 In the technique ofPatent Document 1, a token token passing system is not physically configured, but a virtual token passing system is constructed. And in the technique of patent document 1, it tests by delaying the communication timing of a virtual communication unit by the delay time designated by the user. However, the delay time specified by the user does not always match the delay time generated in the actual PLC. If the delay time specified by the user does not match the delay time generated in the actual PLC, the delay occurring in the FA system production environment cannot be accurately reproduced in the test.
On the other hand, it is difficult to prepare all the PLCs used in the production environment at the time of the test, and it is desired to perform the test with a configuration of PLCs smaller than that in the production environment. Since the delay that occurs in the FA system is proportional to the number of PLCs, if the number of PLCs is small during the test, the period at which each PLC transmits data (the period at which each PLC acquires a token) is shorter than in the production environment. . For this reason, the time until the data of the control command is transmitted to the devices connected to each PLC will be different between the test and the production environment. In the test, the device was successfully controlled. A situation of failure can occur.
一方で、試験の際に、本番環境で用いられる全てのPLCを揃えることは難しく、本番環境よりも少ないPLCの構成で試験を実施することが望まれている。FAシステムで発生する遅延はPLCの数に比例するため、試験時にPLCの数が少ないと、各PLCがデータを送信する周期(各PLCがトークンを取得する周期)が本番環境に比べて短くなる。このため、各PLCに接続される機器に制御命令のデータが伝達するまでの時間が試験と本番環境とで異なることになり、試験では機器の制御に成功したが、本番環境では機器の制御に失敗するという事態が発生し得る。 In the technique of
On the other hand, it is difficult to prepare all the PLCs used in the production environment at the time of the test, and it is desired to perform the test with a configuration of PLCs smaller than that in the production environment. Since the delay that occurs in the FA system is proportional to the number of PLCs, if the number of PLCs is small during the test, the period at which each PLC transmits data (the period at which each PLC acquires a token) is shorter than in the production environment. . For this reason, the time until the data of the control command is transmitted to the devices connected to each PLC will be different between the test and the production environment. In the test, the device was successfully controlled. A situation of failure can occur.
本発明は、このような事情に鑑み、本番環境よりも少ない通信機器で構成されたトークンパッシングシステムにおいて精度よく試験を行うことが可能な構成を得ることを主な目的とする。
In view of such circumstances, the main object of the present invention is to obtain a configuration capable of performing a test with high accuracy in a token passing system configured with fewer communication devices than a production environment.
本発明に係る模擬装置は、
トークンパッシングシステムに含まれる模擬装置であって、
前記トークンパッシングシステムで通信されるトークンを受信するトークン受信部と、
前記トークン受信部により受信された前記トークンの宛先が前記トークンパッシングシステムに含まれる通信機器であるか否かを判定し、前記トークンの宛先が前記通信機器でない場合に、仮想通信機器として、前記通信機器の動作を模擬する模擬部とを有する。 The simulation apparatus according to the present invention is
A simulation device included in the token passing system,
A token receiver for receiving a token communicated by the token passing system;
It is determined whether or not the destination of the token received by the token receiving unit is a communication device included in the token passing system. When the destination of the token is not the communication device, the communication is performed as a virtual communication device. A simulation unit that simulates the operation of the device.
トークンパッシングシステムに含まれる模擬装置であって、
前記トークンパッシングシステムで通信されるトークンを受信するトークン受信部と、
前記トークン受信部により受信された前記トークンの宛先が前記トークンパッシングシステムに含まれる通信機器であるか否かを判定し、前記トークンの宛先が前記通信機器でない場合に、仮想通信機器として、前記通信機器の動作を模擬する模擬部とを有する。 The simulation apparatus according to the present invention is
A simulation device included in the token passing system,
A token receiver for receiving a token communicated by the token passing system;
It is determined whether or not the destination of the token received by the token receiving unit is a communication device included in the token passing system. When the destination of the token is not the communication device, the communication is performed as a virtual communication device. A simulation unit that simulates the operation of the device.
本発明では、トークンパッシングシステムに含まれている模擬装置が、仮想通信機器として、通信機器の動作を模擬する。このため、本発明によれば、試験の際にトークンパッシングシステムに含まれていない通信機器の動作を試験に反映させることが可能であり、本番環境よりも少ない通信機器で構成されたトークンパッシングシステムにおいて精度よく試験を行うことができる。
In the present invention, the simulation device included in the token passing system simulates the operation of the communication device as a virtual communication device. Therefore, according to the present invention, the operation of a communication device that is not included in the token passing system can be reflected in the test during the test, and the token passing system is configured with fewer communication devices than the production environment. The test can be performed with high accuracy.
以下、本発明の実施の形態について、図を用いて説明する。以下の実施の形態の説明及び図面において、同一の符号を付したものは、同一の部分又は相当する部分を示す。
Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following description of the embodiments and drawings, the same reference numerals denote the same or corresponding parts.
実施の形態1.
***構成の説明***
図1は、実施の形態1に係るトークンパッシングシステムのシステム構成例を示す。図1のトークンパッシングシステムのネットワークトポロジはスター型であるが、実施の形態1に係るトークンパッシングシステムのネットワークトポロジはスター型に限定されない。
図2は、ライン型トポロジのトークンパッシングシステムのシステム構成例を示す。また、図3は、リング型トポロジのトークンパッシングシステムのシステム構成例を示す。
また、図1と図2とを組み合わせて、ライン型とスター型の混在したネットワークトポロジのトークンパッシングシステムを構築することも可能である。
以下では、主に、図1のネットワークトポロジのトークンパッシングシステムを説明する。Embodiment 1 FIG.
*** Explanation of configuration ***
FIG. 1 shows a system configuration example of the token passing system according to the first embodiment. Although the network topology of the token passing system in FIG. 1 is a star type, the network topology of the token passing system according to the first embodiment is not limited to the star type.
FIG. 2 shows a system configuration example of a token-passing system having a line topology. FIG. 3 shows an example of the system configuration of a ring topology token passing system.
1 and 2 can be combined to construct a token passing system having a network topology in which a line type and a star type are mixed.
In the following, the token passing system having the network topology of FIG. 1 will be mainly described.
***構成の説明***
図1は、実施の形態1に係るトークンパッシングシステムのシステム構成例を示す。図1のトークンパッシングシステムのネットワークトポロジはスター型であるが、実施の形態1に係るトークンパッシングシステムのネットワークトポロジはスター型に限定されない。
図2は、ライン型トポロジのトークンパッシングシステムのシステム構成例を示す。また、図3は、リング型トポロジのトークンパッシングシステムのシステム構成例を示す。
また、図1と図2とを組み合わせて、ライン型とスター型の混在したネットワークトポロジのトークンパッシングシステムを構築することも可能である。
以下では、主に、図1のネットワークトポロジのトークンパッシングシステムを説明する。
*** Explanation of configuration ***
FIG. 1 shows a system configuration example of the token passing system according to the first embodiment. Although the network topology of the token passing system in FIG. 1 is a star type, the network topology of the token passing system according to the first embodiment is not limited to the star type.
FIG. 2 shows a system configuration example of a token-passing system having a line topology. FIG. 3 shows an example of the system configuration of a ring topology token passing system.
1 and 2 can be combined to construct a token passing system having a network topology in which a line type and a star type are mixed.
In the following, the token passing system having the network topology of FIG. 1 will be mainly described.
図1において、マスタ機器100、スレーブ機器200及びスレーブ機器300は、それぞれPLCである。
スレーブ機器200及びスレーブ機器300は、それぞれ通信機器に相当する。
また、本実施の形態では、マスタ機器100は模擬装置に相当する。マスタ機器100が行う動作は、模擬方法及び模擬プログラムに相当する。
マスタ機器100はスレーブ機器200及びスレーブ機器300を管理する。より具体的には、マスタ機器100は、トークンパケットの送信先及びデータのデータ長の管理を行う。また、マスタ機器100は、トークンパケットの送信先及びデータ長を通知する管理情報をスレーブ機器200及びスレーブ機器300に設定する。トークンパケットは、トークンを受け渡しするためのパケットである。以下、トークンパケットを送信することを、トークンを送信するともいう。また、トークンパケットを受信することを、トークンを受信するともいう。
スレーブ機器200及びスレーブ機器300は、それぞれ、ロボット、センサ等に接続されている。スレーブ機器200及びスレーブ機器300は、それぞれ、マスタ機器100により設定された管理情報に基づきトークンの送信及びデータの送信を行う。
マスタ機器100、スレーブ機器200及びスレーブ機器300は、それぞれ、スイッチングハブ400に接続されている。
スイッチングハブ400は、マスタ機器100、スレーブ機器200及びスレーブ機器300の間の通信を中継する。 In FIG. 1, amaster device 100, a slave device 200, and a slave device 300 are PLCs.
Each of theslave device 200 and the slave device 300 corresponds to a communication device.
In the present embodiment,master device 100 corresponds to a simulation device. Operations performed by the master device 100 correspond to a simulation method and a simulation program.
Themaster device 100 manages the slave device 200 and the slave device 300. More specifically, the master device 100 manages the transmission destination of the token packet and the data length of the data. In addition, the master device 100 sets management information for notifying the transmission destination and data length of the token packet in the slave device 200 and the slave device 300. The token packet is a packet for delivering a token. Hereinafter, sending a token packet is also called sending a token. In addition, receiving a token packet is also referred to as receiving a token.
Theslave device 200 and the slave device 300 are connected to a robot, a sensor, and the like, respectively. The slave device 200 and the slave device 300 perform token transmission and data transmission based on the management information set by the master device 100, respectively.
Themaster device 100, the slave device 200, and the slave device 300 are each connected to the switching hub 400.
Theswitching hub 400 relays communication among the master device 100, the slave device 200, and the slave device 300.
スレーブ機器200及びスレーブ機器300は、それぞれ通信機器に相当する。
また、本実施の形態では、マスタ機器100は模擬装置に相当する。マスタ機器100が行う動作は、模擬方法及び模擬プログラムに相当する。
マスタ機器100はスレーブ機器200及びスレーブ機器300を管理する。より具体的には、マスタ機器100は、トークンパケットの送信先及びデータのデータ長の管理を行う。また、マスタ機器100は、トークンパケットの送信先及びデータ長を通知する管理情報をスレーブ機器200及びスレーブ機器300に設定する。トークンパケットは、トークンを受け渡しするためのパケットである。以下、トークンパケットを送信することを、トークンを送信するともいう。また、トークンパケットを受信することを、トークンを受信するともいう。
スレーブ機器200及びスレーブ機器300は、それぞれ、ロボット、センサ等に接続されている。スレーブ機器200及びスレーブ機器300は、それぞれ、マスタ機器100により設定された管理情報に基づきトークンの送信及びデータの送信を行う。
マスタ機器100、スレーブ機器200及びスレーブ機器300は、それぞれ、スイッチングハブ400に接続されている。
スイッチングハブ400は、マスタ機器100、スレーブ機器200及びスレーブ機器300の間の通信を中継する。 In FIG. 1, a
Each of the
In the present embodiment,
The
The
The
The
図4は、マスタ機器100のハードウェア構成例を示す。
図4に示すように、マスタ機器100は、プロセッサ151、記憶装置152、通信インタフェース153及び機器制御インタフェース154を備える。
マスタ機器100は、コンピュータである。
プロセッサ151は、データの送信を行う。また、プロセッサ151は、トークンを保持するか否か判定を行う。また、プロセッサ151は、後述する機器管理テーブルを操作するための演算を行う。更に、プロセッサ151は、図5に示す機能を実現するプログラムを実行する。
記憶装置152は、機器管理テーブルを記憶する。また、記憶装置152は、図5に示す機能を実現するプログラムを記憶する。また、記憶装置152は、スレーブ機器200及びスレーブ機器300から受信したデータを記憶する。また、記憶装置152は、スレーブ機器200及びスレーブ機器300に送信するデータを記憶する。
通信インタフェース153は、スイッチングハブ400を介してスレーブ機器200及びスレーブ機器300と通信するためのインタフェースである。
機器制御インタフェース154は、ロボット、センサ等の機器を制御するためインタフェースである。
図4では、1つの通信インタフェース153のみが示されているが、マスタ機器100は複数の通信インタフェース153を備えていてもよい。同様に、図4では、1つの機器制御インタフェース154のみが示されているが、マスタ機器100は複数の機器制御インタフェース154を備えていてもよい。 FIG. 4 shows a hardware configuration example of themaster device 100.
As illustrated in FIG. 4, themaster device 100 includes a processor 151, a storage device 152, a communication interface 153, and a device control interface 154.
Themaster device 100 is a computer.
Theprocessor 151 transmits data. Further, the processor 151 determines whether or not to hold a token. The processor 151 performs a calculation for operating a device management table described later. Further, the processor 151 executes a program for realizing the functions shown in FIG.
Thestorage device 152 stores a device management table. In addition, the storage device 152 stores a program that implements the functions shown in FIG. Further, the storage device 152 stores data received from the slave device 200 and the slave device 300. The storage device 152 stores data to be transmitted to the slave device 200 and the slave device 300.
Thecommunication interface 153 is an interface for communicating with the slave device 200 and the slave device 300 via the switching hub 400.
Thedevice control interface 154 is an interface for controlling devices such as robots and sensors.
Although only onecommunication interface 153 is shown in FIG. 4, the master device 100 may include a plurality of communication interfaces 153. Similarly, in FIG. 4, only one device control interface 154 is shown, but the master device 100 may include a plurality of device control interfaces 154.
図4に示すように、マスタ機器100は、プロセッサ151、記憶装置152、通信インタフェース153及び機器制御インタフェース154を備える。
マスタ機器100は、コンピュータである。
プロセッサ151は、データの送信を行う。また、プロセッサ151は、トークンを保持するか否か判定を行う。また、プロセッサ151は、後述する機器管理テーブルを操作するための演算を行う。更に、プロセッサ151は、図5に示す機能を実現するプログラムを実行する。
記憶装置152は、機器管理テーブルを記憶する。また、記憶装置152は、図5に示す機能を実現するプログラムを記憶する。また、記憶装置152は、スレーブ機器200及びスレーブ機器300から受信したデータを記憶する。また、記憶装置152は、スレーブ機器200及びスレーブ機器300に送信するデータを記憶する。
通信インタフェース153は、スイッチングハブ400を介してスレーブ機器200及びスレーブ機器300と通信するためのインタフェースである。
機器制御インタフェース154は、ロボット、センサ等の機器を制御するためインタフェースである。
図4では、1つの通信インタフェース153のみが示されているが、マスタ機器100は複数の通信インタフェース153を備えていてもよい。同様に、図4では、1つの機器制御インタフェース154のみが示されているが、マスタ機器100は複数の機器制御インタフェース154を備えていてもよい。 FIG. 4 shows a hardware configuration example of the
As illustrated in FIG. 4, the
The
The
The
The
The
Although only one
図6は、スレーブ機器200のハードウェア構成例を示す。
図6に示すように、スレーブ機器200は、プロセッサ251、記憶装置252、通信インタフェース253及び機器制御インタフェース254を備える。
スレーブ機器200は、コンピュータである。
プロセッサ251は、データの送信を行う。また、プロセッサ251は、トークンを保持するか否か判定を行う。更に、プロセッサ251は、図7に示す機能を実現するプログラムを実行する。
記憶装置252は、図7に示す機能を実現するプログラムを記憶する。また、記憶装置252は、マスタ機器100及びスレーブ機器300から受信したデータを記憶する。また、記憶装置252は、マスタ機器100及びスレーブ機器300に送信するデータを記憶する。
通信インタフェース253は、スイッチングハブ400を介してマスタ機器100及びスレーブ機器300と通信するためのインタフェースである。
機器制御インタフェース254は、ロボット、センサ等の機器を制御するためインタフェースである。
図6では、1つの通信インタフェース253のみが示されているが、スレーブ機器200は複数の通信インタフェース253を備えていてもよい。同様に、図6では、1つの機器制御インタフェース254のみが示されているが、スレーブ機器200は複数の機器制御インタフェース254を備えていてもよい。
なお、スレーブ機器300のハードウェア構成も図6に示すとおりである。 FIG. 6 shows a hardware configuration example of theslave device 200.
As illustrated in FIG. 6, theslave device 200 includes a processor 251, a storage device 252, a communication interface 253, and a device control interface 254.
Theslave device 200 is a computer.
Theprocessor 251 transmits data. Further, the processor 251 determines whether or not to hold a token. Furthermore, the processor 251 executes a program that implements the functions shown in FIG.
Thestorage device 252 stores a program that implements the functions shown in FIG. The storage device 252 stores data received from the master device 100 and the slave device 300. The storage device 252 stores data to be transmitted to the master device 100 and the slave device 300.
Thecommunication interface 253 is an interface for communicating with the master device 100 and the slave device 300 via the switching hub 400.
Thedevice control interface 254 is an interface for controlling devices such as robots and sensors.
Although only onecommunication interface 253 is shown in FIG. 6, the slave device 200 may include a plurality of communication interfaces 253. Similarly, in FIG. 6, only one device control interface 254 is shown, but the slave device 200 may include a plurality of device control interfaces 254.
The hardware configuration of theslave device 300 is also as shown in FIG.
図6に示すように、スレーブ機器200は、プロセッサ251、記憶装置252、通信インタフェース253及び機器制御インタフェース254を備える。
スレーブ機器200は、コンピュータである。
プロセッサ251は、データの送信を行う。また、プロセッサ251は、トークンを保持するか否か判定を行う。更に、プロセッサ251は、図7に示す機能を実現するプログラムを実行する。
記憶装置252は、図7に示す機能を実現するプログラムを記憶する。また、記憶装置252は、マスタ機器100及びスレーブ機器300から受信したデータを記憶する。また、記憶装置252は、マスタ機器100及びスレーブ機器300に送信するデータを記憶する。
通信インタフェース253は、スイッチングハブ400を介してマスタ機器100及びスレーブ機器300と通信するためのインタフェースである。
機器制御インタフェース254は、ロボット、センサ等の機器を制御するためインタフェースである。
図6では、1つの通信インタフェース253のみが示されているが、スレーブ機器200は複数の通信インタフェース253を備えていてもよい。同様に、図6では、1つの機器制御インタフェース254のみが示されているが、スレーブ機器200は複数の機器制御インタフェース254を備えていてもよい。
なお、スレーブ機器300のハードウェア構成も図6に示すとおりである。 FIG. 6 shows a hardware configuration example of the
As illustrated in FIG. 6, the
The
The
The
The
The
Although only one
The hardware configuration of the
図5は、マスタ機器100の機能構成例を示す。
マスタ機器100は、初期設定部111、トークン受信部112、データ送信部113、トークン送信部114、データ受信部115及び模擬部120により構成される。
初期設定部111、トークン受信部112、データ送信部113、トークン送信部114、データ受信部115は、マスタ機器100のPLCとしての機能を実現する機能ブロックである。
模擬部120は、マスタ機器100がスレーブ機器の動作を模擬するための機能ブロックである。
模擬部120は、機器管理テーブル操作部121、トークン宛先設定部122、仮想機器トークン受信部123、仮想機器データ送信部124及び仮想機器トークン送信部125で構成される。
なお、初期設定部111、トークン受信部112、データ送信部113、トークン送信部114、データ受信部115及び模擬部120は、プログラムにより実現される。プロセッサ151が、これらプログラムを実行することで、初期設定部111、トークン受信部112、データ送信部113、トークン送信部114、データ受信部115及び模擬部120の機能が実現される。
図5では、プロセッサ151が初期設定部111、トークン受信部112、データ送信部113、トークン送信部114、データ受信部115及び模擬部120の機能を実現するプログラムを実行している状態を模式的に表している。
機器管理テーブル記憶部116は、機器管理テーブルを記憶する。機器管理テーブルは、例えば、図16に示すテーブルである。機器管理テーブルには、通信機器ごとに、MAC(Media Access Control)アドレス、トークン宛先MACアドレス、送信データ長が記述されている。機器管理テーブルの詳細は後述する。なお、機器管理テーブル記憶部116は、記憶装置152により実現される。 FIG. 5 shows a functional configuration example of themaster device 100.
Themaster device 100 includes an initial setting unit 111, a token reception unit 112, a data transmission unit 113, a token transmission unit 114, a data reception unit 115, and a simulation unit 120.
Theinitial setting unit 111, the token reception unit 112, the data transmission unit 113, the token transmission unit 114, and the data reception unit 115 are functional blocks that realize the function of the master device 100 as a PLC.
Thesimulation unit 120 is a functional block for the master device 100 to simulate the operation of the slave device.
Thesimulation unit 120 includes a device management table operation unit 121, a token destination setting unit 122, a virtual device token reception unit 123, a virtual device data transmission unit 124, and a virtual device token transmission unit 125.
Theinitial setting unit 111, the token receiving unit 112, the data transmitting unit 113, the token transmitting unit 114, the data receiving unit 115, and the simulation unit 120 are realized by a program. When the processor 151 executes these programs, the functions of the initial setting unit 111, the token reception unit 112, the data transmission unit 113, the token transmission unit 114, the data reception unit 115, and the simulation unit 120 are realized.
5 schematically illustrates a state in which theprocessor 151 is executing a program that realizes the functions of the initial setting unit 111, the token reception unit 112, the data transmission unit 113, the token transmission unit 114, the data reception unit 115, and the simulation unit 120. It represents.
The device managementtable storage unit 116 stores a device management table. The device management table is, for example, a table shown in FIG. In the device management table, a MAC (Media Access Control) address, a token destination MAC address, and a transmission data length are described for each communication device. Details of the device management table will be described later. The device management table storage unit 116 is realized by the storage device 152.
マスタ機器100は、初期設定部111、トークン受信部112、データ送信部113、トークン送信部114、データ受信部115及び模擬部120により構成される。
初期設定部111、トークン受信部112、データ送信部113、トークン送信部114、データ受信部115は、マスタ機器100のPLCとしての機能を実現する機能ブロックである。
模擬部120は、マスタ機器100がスレーブ機器の動作を模擬するための機能ブロックである。
模擬部120は、機器管理テーブル操作部121、トークン宛先設定部122、仮想機器トークン受信部123、仮想機器データ送信部124及び仮想機器トークン送信部125で構成される。
なお、初期設定部111、トークン受信部112、データ送信部113、トークン送信部114、データ受信部115及び模擬部120は、プログラムにより実現される。プロセッサ151が、これらプログラムを実行することで、初期設定部111、トークン受信部112、データ送信部113、トークン送信部114、データ受信部115及び模擬部120の機能が実現される。
図5では、プロセッサ151が初期設定部111、トークン受信部112、データ送信部113、トークン送信部114、データ受信部115及び模擬部120の機能を実現するプログラムを実行している状態を模式的に表している。
機器管理テーブル記憶部116は、機器管理テーブルを記憶する。機器管理テーブルは、例えば、図16に示すテーブルである。機器管理テーブルには、通信機器ごとに、MAC(Media Access Control)アドレス、トークン宛先MACアドレス、送信データ長が記述されている。機器管理テーブルの詳細は後述する。なお、機器管理テーブル記憶部116は、記憶装置152により実現される。 FIG. 5 shows a functional configuration example of the
The
The
The
The
The
5 schematically illustrates a state in which the
The device management
次に、初期設定部111、トークン受信部112、データ送信部113、トークン送信部114、データ受信部115及び機器管理テーブル記憶部116の詳細を説明する。
Next, details of the initial setting unit 111, the token reception unit 112, the data transmission unit 113, the token transmission unit 114, the data reception unit 115, and the device management table storage unit 116 will be described.
初期設定部111は、スレーブ機器200及びスレーブ機器300に、機器管理テーブルのトークン宛先MACアドレス等の情報を設定する。
The initial setting unit 111 sets information such as the token destination MAC address of the device management table in the slave device 200 and the slave device 300.
トークン受信部112は、トークンパケットを受信する。そして、トークン受信部112は、受信したトークンパケットに記載されているトークン宛先MACアドレスを、マスタ機器100のMACアドレスと比較する。トークン宛先MACアドレスがマスタ機器100のMACアドレスと一致すれば、トークン受信部112は、トークンを保持する。また、トークン受信部112は、データ送信部113にデータを送信するよう指示する。
一方、トークン宛先MACアドレスがマスタ機器100のMACアドレスと一致しない場合は、トークン受信部112は、模擬部120にトークンパケットを転送する。
なお、トークン受信部112がトークンパケットを受信することを、トークン受信部112がトークンを受信するともいう。
なお、トークン受信部112の動作は、トークン受信処理に相当する。 Thetoken receiving unit 112 receives a token packet. Then, the token reception unit 112 compares the token destination MAC address described in the received token packet with the MAC address of the master device 100. If the token destination MAC address matches the MAC address of the master device 100, the token receiving unit 112 holds the token. The token receiving unit 112 instructs the data transmitting unit 113 to transmit data.
On the other hand, when the token destination MAC address does not match the MAC address of themaster device 100, the token reception unit 112 transfers the token packet to the simulation unit 120.
Note that thetoken receiving unit 112 receiving a token packet is also referred to as the token receiving unit 112 receiving a token.
The operation of thetoken reception unit 112 corresponds to token reception processing.
一方、トークン宛先MACアドレスがマスタ機器100のMACアドレスと一致しない場合は、トークン受信部112は、模擬部120にトークンパケットを転送する。
なお、トークン受信部112がトークンパケットを受信することを、トークン受信部112がトークンを受信するともいう。
なお、トークン受信部112の動作は、トークン受信処理に相当する。 The
On the other hand, when the token destination MAC address does not match the MAC address of the
Note that the
The operation of the
データ送信部113は、トークン受信部112から指示があった場合に、スレーブ機器200及びスレーブ機器300にデータを送信する。データ送信部113が送信するデータには、スレーブ機器200及びスレーブ機器300に接続されているロボット、センサ等を制御するための制御情報が含まれる。
The data transmission unit 113 transmits data to the slave device 200 and the slave device 300 when receiving an instruction from the token reception unit 112. The data transmitted by the data transmission unit 113 includes control information for controlling the slave device 200 and the robot, sensor, and the like connected to the slave device 300.
トークン送信部114は、データ送信部113によるデータの送信が完了した後に、機器管理テーブルを参照し、マスタ機器100のトークン宛先MACアドレスが記述されたトークンパケットをブロードキャストする。なお、トークン送信部114がトークンパケットを送信することを、トークン送信部114がトークンを送信するともいう。
After the data transmission by the data transmission unit 113 is completed, the token transmission unit 114 refers to the device management table and broadcasts a token packet in which the token destination MAC address of the master device 100 is described. Note that the token transmission unit 114 transmitting a token packet is also referred to as the token transmission unit 114 transmitting a token.
データ受信部115は、スレーブ機器200から送信されたデータ及びスレーブ機器300から送信されたデータを受信する。
The data receiving unit 115 receives the data transmitted from the slave device 200 and the data transmitted from the slave device 300.
前述したように、機器管理テーブル記憶部116は、機器管理テーブルを記憶する。
機器管理テーブルには、図16に示すように、通信機器ごとに、MACアドレス、トークン宛先MACアドレス、送信データ長が記述される。なお、図16は、トークン巡回路が、マスタ機器100→スレーブ機器200→スレーブ機器300→マスタ機器100である場合の機器管理テーブルを示す。なお、トークン巡回路とは、トークンパッシングの経路である。
MACアドレスの欄には、各通信機器に割り当てられているMACアドレスが記述される。
トークン宛先MACアドレスの欄には、トークンパケットの宛先の通信機器に割り当てられているMACアドレスが記述される。例えば、マスタ機器100のトークン宛先MACアドレスの欄には「BB:BB:BB:BB:BB:BB」が記述されている。つまり、マスタ機器100は、スレーブ機器200を宛先としてトークンパケットを送信する。
送信データ長の欄には、各通信機器が送信するデータのデータ長が記述されている。例えば、マスタ機器100の送信データ長の欄には「10byte」が記述されている。つまり、マスタ機器100は、10byteのデータをスレーブ機器200及びスレーブ機器300に送信する。 As described above, the device managementtable storage unit 116 stores a device management table.
In the device management table, as shown in FIG. 16, the MAC address, token destination MAC address, and transmission data length are described for each communication device. FIG. 16 shows a device management table when the token circuit ismaster device 100 → slave device 200 → slave device 300 → master device 100. The token circuit is a token passing path.
The MAC address column describes the MAC address assigned to each communication device.
In the column of the token destination MAC address, the MAC address assigned to the destination communication device of the token packet is described. For example, “BB: BB: BB: BB: BB: BB” is described in the token destination MAC address column of themaster device 100. That is, the master device 100 transmits a token packet with the slave device 200 as a destination.
In the column of transmission data length, the data length of data transmitted by each communication device is described. For example, “10 bytes” is described in the transmission data length column of themaster device 100. That is, the master device 100 transmits 10-byte data to the slave device 200 and the slave device 300.
機器管理テーブルには、図16に示すように、通信機器ごとに、MACアドレス、トークン宛先MACアドレス、送信データ長が記述される。なお、図16は、トークン巡回路が、マスタ機器100→スレーブ機器200→スレーブ機器300→マスタ機器100である場合の機器管理テーブルを示す。なお、トークン巡回路とは、トークンパッシングの経路である。
MACアドレスの欄には、各通信機器に割り当てられているMACアドレスが記述される。
トークン宛先MACアドレスの欄には、トークンパケットの宛先の通信機器に割り当てられているMACアドレスが記述される。例えば、マスタ機器100のトークン宛先MACアドレスの欄には「BB:BB:BB:BB:BB:BB」が記述されている。つまり、マスタ機器100は、スレーブ機器200を宛先としてトークンパケットを送信する。
送信データ長の欄には、各通信機器が送信するデータのデータ長が記述されている。例えば、マスタ機器100の送信データ長の欄には「10byte」が記述されている。つまり、マスタ機器100は、10byteのデータをスレーブ機器200及びスレーブ機器300に送信する。 As described above, the device management
In the device management table, as shown in FIG. 16, the MAC address, token destination MAC address, and transmission data length are described for each communication device. FIG. 16 shows a device management table when the token circuit is
The MAC address column describes the MAC address assigned to each communication device.
In the column of the token destination MAC address, the MAC address assigned to the destination communication device of the token packet is described. For example, “BB: BB: BB: BB: BB: BB” is described in the token destination MAC address column of the
In the column of transmission data length, the data length of data transmitted by each communication device is described. For example, “10 bytes” is described in the transmission data length column of the
次に、模擬部120の詳細を説明する。
Next, details of the simulation unit 120 will be described.
模擬部120は、トークンパッシングシステムに含まれる複数の通信機器の中から選択された選択通信機器から仮想通信機器を宛先とするトークンが送信されるように選択通信機器の設定を変更する。仮想通信機器は、マスタ機器により模擬される仮想的なスレーブ機器である。以下では、仮想通信機器をスレーブ機器500と表記する。スレーブ機器500は、図8に示す位置にて仮想的にトークンパッシングシステムに追加される。
ここでは、図1のトークンパッシングシステムにおいて、トークンの巡回路が、マスタ機器100→スレーブ機器200→スレーブ機器300→マスタ機器100であるものとする。
模擬部120は、例えば、スレーブ機器200を選択通信機器として選択し、スレーブ機器200からスレーブ機器500にトークンが送信されるようにスレーブ機器200の設定を変更する。
また、模擬部120は、トークン受信部112から転送されたトークンパケットの宛先がトークンパッシングシステムに含まれる複数の通信機器のうちのいずれかであるか否かを判定する。つまり、模擬部120は、トークンの宛先がスレーブ機器200又はスレーブ機器300であるかを判定する。模擬部120は、トークンの宛先がスレーブ機器200及びスレーブ機器300のいずれでもない場合、つまり、トークンの宛先がスレーブ機器500である場合に、仮想通信機器として、スレーブ機器200又はスレーブ機器300の動作を模擬する。
なお、模擬部120の動作は、模擬処理に相当する。 Thesimulation unit 120 changes the setting of the selected communication device so that a token destined for the virtual communication device is transmitted from the selected communication device selected from the plurality of communication devices included in the token passing system. The virtual communication device is a virtual slave device that is simulated by the master device. Hereinafter, the virtual communication device is referred to as a slave device 500. The slave device 500 is virtually added to the token passing system at the position shown in FIG.
Here, in the token passing system of FIG. 1, it is assumed that the token circulation circuit ismaster device 100 → slave device 200 → slave device 300 → master device 100.
For example, thesimulation unit 120 selects the slave device 200 as the selected communication device, and changes the setting of the slave device 200 so that a token is transmitted from the slave device 200 to the slave device 500.
In addition, thesimulation unit 120 determines whether the destination of the token packet transferred from the token reception unit 112 is any of a plurality of communication devices included in the token passing system. That is, the simulation unit 120 determines whether the token destination is the slave device 200 or the slave device 300. The simulation unit 120 operates the slave device 200 or the slave device 300 as a virtual communication device when the token destination is neither the slave device 200 nor the slave device 300, that is, when the token destination is the slave device 500. Simulate.
The operation of thesimulation unit 120 corresponds to simulation processing.
ここでは、図1のトークンパッシングシステムにおいて、トークンの巡回路が、マスタ機器100→スレーブ機器200→スレーブ機器300→マスタ機器100であるものとする。
模擬部120は、例えば、スレーブ機器200を選択通信機器として選択し、スレーブ機器200からスレーブ機器500にトークンが送信されるようにスレーブ機器200の設定を変更する。
また、模擬部120は、トークン受信部112から転送されたトークンパケットの宛先がトークンパッシングシステムに含まれる複数の通信機器のうちのいずれかであるか否かを判定する。つまり、模擬部120は、トークンの宛先がスレーブ機器200又はスレーブ機器300であるかを判定する。模擬部120は、トークンの宛先がスレーブ機器200及びスレーブ機器300のいずれでもない場合、つまり、トークンの宛先がスレーブ機器500である場合に、仮想通信機器として、スレーブ機器200又はスレーブ機器300の動作を模擬する。
なお、模擬部120の動作は、模擬処理に相当する。 The
Here, in the token passing system of FIG. 1, it is assumed that the token circulation circuit is
For example, the
In addition, the
The operation of the
模擬部120において、機器管理テーブル操作部121は、機器管理テーブルを変更する。
前述のように、スレーブ機器200からスレーブ機器500を宛先としてトークンを送信させる場合は、機器管理テーブル操作部121は、図16の機器管理テーブルを図17のように更新する。
図17の機器管理テーブルでは、実在識別子の欄が追加されている。
また、仮想通信機器であるスレーブ機器500のレコードが追加されている。
図17において破線で囲んでいる部分が、図16からの追加部分である。
実在識別子の欄には、トークンパッシングシステムに含まれている通信機器であれば、「True」が記述される。一方、トークンパッシングシステムに含まれていない通信機器(仮想通信機器)であれば、「False」が記述される。
図17の例では、マスタ機器100、スレーブ機器200、スレーブ機器300に対しては「True」が記述されるが、スレーブ機器500に対しては「False」が記述される。 In thesimulation unit 120, the device management table operation unit 121 changes the device management table.
As described above, when the token is transmitted from theslave device 200 to the slave device 500 as the destination, the device management table operation unit 121 updates the device management table of FIG. 16 as illustrated in FIG.
In the device management table of FIG. 17, a real identifier column is added.
In addition, a record of theslave device 500 that is a virtual communication device is added.
In FIG. 17, the part surrounded by the broken line is an additional part from FIG.
In the real identifier column, “True” is described for a communication device included in the token passing system. On the other hand, if the communication device (virtual communication device) is not included in the token passing system, “False” is described.
In the example of FIG. 17, “True” is described for themaster device 100, the slave device 200, and the slave device 300, but “False” is described for the slave device 500.
前述のように、スレーブ機器200からスレーブ機器500を宛先としてトークンを送信させる場合は、機器管理テーブル操作部121は、図16の機器管理テーブルを図17のように更新する。
図17の機器管理テーブルでは、実在識別子の欄が追加されている。
また、仮想通信機器であるスレーブ機器500のレコードが追加されている。
図17において破線で囲んでいる部分が、図16からの追加部分である。
実在識別子の欄には、トークンパッシングシステムに含まれている通信機器であれば、「True」が記述される。一方、トークンパッシングシステムに含まれていない通信機器(仮想通信機器)であれば、「False」が記述される。
図17の例では、マスタ機器100、スレーブ機器200、スレーブ機器300に対しては「True」が記述されるが、スレーブ機器500に対しては「False」が記述される。 In the
As described above, when the token is transmitted from the
In the device management table of FIG. 17, a real identifier column is added.
In addition, a record of the
In FIG. 17, the part surrounded by the broken line is an additional part from FIG.
In the real identifier column, “True” is described for a communication device included in the token passing system. On the other hand, if the communication device (virtual communication device) is not included in the token passing system, “False” is described.
In the example of FIG. 17, “True” is described for the
トークン宛先設定部122は、トークンパッシングシステムに含まれる全ての通信機器に対して機器管理テーブルに記述されるトークン宛先MACアドレスを設定する。
つまり、トークン宛先設定部122は、機器管理テーブルが図16の状態であれば、スレーブ機器200に対してトークン宛先MACアドレス「CC:CC:CC:CC:CC」を設定する。また、トークン宛先設定部122は、スレーブ機器300に対してトークン宛先MACアドレス「AA:AA:AA:AA:AA」を設定する。
機器管理テーブル操作部121により機器管理テーブルが図17の状態に更新された場合は、トークン宛先設定部122は、スレーブ機器200に対してトークン宛先MACアドレス「DD:DD:DD:DD:DD」を設定する。つまり、トークン宛先設定部122は、スレーブ機器200がスレーブ機器500を宛先とするトークンを送信するように、スレーブ機器200の設定を変更する。 The tokendestination setting unit 122 sets a token destination MAC address described in the device management table for all communication devices included in the token passing system.
That is, the tokendestination setting unit 122 sets the token destination MAC address “CC: CC: CC: CC: CC” for the slave device 200 if the device management table is in the state shown in FIG. Further, the token destination setting unit 122 sets the token destination MAC address “AA: AA: AA: AA: AA” for the slave device 300.
When the device management table is updated to the state shown in FIG. 17 by the device managementtable operation unit 121, the token destination setting unit 122 sends the token destination MAC address “DD: DD: DD: DD: DD” to the slave device 200. Set. That is, the token destination setting unit 122 changes the setting of the slave device 200 so that the slave device 200 transmits a token destined for the slave device 500.
つまり、トークン宛先設定部122は、機器管理テーブルが図16の状態であれば、スレーブ機器200に対してトークン宛先MACアドレス「CC:CC:CC:CC:CC」を設定する。また、トークン宛先設定部122は、スレーブ機器300に対してトークン宛先MACアドレス「AA:AA:AA:AA:AA」を設定する。
機器管理テーブル操作部121により機器管理テーブルが図17の状態に更新された場合は、トークン宛先設定部122は、スレーブ機器200に対してトークン宛先MACアドレス「DD:DD:DD:DD:DD」を設定する。つまり、トークン宛先設定部122は、スレーブ機器200がスレーブ機器500を宛先とするトークンを送信するように、スレーブ機器200の設定を変更する。 The token
That is, the token
When the device management table is updated to the state shown in FIG. 17 by the device management
仮想機器トークン受信部123は、トークン受信部112が受信したトークンパケットがトークン受信部112から転送された場合に、トークンパケットに記述されるトークン宛先MACアドレスと機器管理テーブルのMACアドレスとを照合する。トークン宛先MACアドレスがスレーブ機器500のMACアドレスと一致する場合に、仮想機器トークン受信部123は、スレーブ機器500としてトークンを保持する。
そして、仮想機器トークン受信部123は、仮想機器データ送信部124に、スレーブ機器500としてデータを送信するよう指示する。つまり、仮想機器トークン受信部123は、仮想機器データ送信部124に仮想通信機器であるスレーブ機器500として振る舞うよう指示する。
一方、トークン宛先MACアドレスがスレーブ機器500のMACアドレスと一致しない場合は、トークン受信部211は、トークンパケットを破棄する。 When the token packet received by thetoken receiving unit 112 is transferred from the token receiving unit 112, the virtual device token receiving unit 123 collates the token destination MAC address described in the token packet with the MAC address of the device management table. . When the token destination MAC address matches the MAC address of the slave device 500, the virtual device token reception unit 123 holds the token as the slave device 500.
Then, the virtual devicetoken receiving unit 123 instructs the virtual device data transmitting unit 124 to transmit data as the slave device 500. That is, the virtual device token reception unit 123 instructs the virtual device data transmission unit 124 to behave as the slave device 500 that is a virtual communication device.
On the other hand, when the token destination MAC address does not match the MAC address of theslave device 500, the token reception unit 211 discards the token packet.
そして、仮想機器トークン受信部123は、仮想機器データ送信部124に、スレーブ機器500としてデータを送信するよう指示する。つまり、仮想機器トークン受信部123は、仮想機器データ送信部124に仮想通信機器であるスレーブ機器500として振る舞うよう指示する。
一方、トークン宛先MACアドレスがスレーブ機器500のMACアドレスと一致しない場合は、トークン受信部211は、トークンパケットを破棄する。 When the token packet received by the
Then, the virtual device
On the other hand, when the token destination MAC address does not match the MAC address of the
仮想機器データ送信部124は、仮想機器トークン受信部123から指示があった場合に、機器管理テーブルのスレーブ機器500のデータ長に一致するデータ長のデータを生成し、生成したデータをブロードキャストする。
When there is an instruction from the virtual device token receiving unit 123, the virtual device data transmission unit 124 generates data having a data length that matches the data length of the slave device 500 in the device management table, and broadcasts the generated data.
仮想機器トークン送信部125は、仮想機器データ送信部124によるデータの送信が完了した後に、機器管理テーブルを参照し、スレーブ機器500のトークン宛先MACアドレスが記述されたトークンパケットをブロードキャストする。
なお、仮想機器トークン送信部125がトークンパケットを送信することを、仮想機器トークン送信部125がトークンを送信するともいう。 After the data transmission by the virtual devicedata transmission unit 124 is completed, the virtual device token transmission unit 125 refers to the device management table and broadcasts a token packet in which the token destination MAC address of the slave device 500 is described.
Note that the virtual devicetoken transmission unit 125 transmitting the token packet is also referred to as the virtual device token transmission unit 125 transmitting the token.
なお、仮想機器トークン送信部125がトークンパケットを送信することを、仮想機器トークン送信部125がトークンを送信するともいう。 After the data transmission by the virtual device
Note that the virtual device
なお、トークン受信部112によるトークンパケットの受信、データ送信部113によるデータの送信、トークン送信部114によるトークンの送信、データ受信部115によるデータの受信、仮想機器データ送信部124によるデータの送信、仮想機器トークン送信部125によるトークンの送信は、図4の通信インタフェース153により行われる。
The token reception unit 112 receives a token packet, the data transmission unit 113 transmits data, the token transmission unit 114 transmits a token, the data reception unit 115 receives data, the virtual device data transmission unit 124 transmits data, The token transmission by the virtual device token transmission unit 125 is performed by the communication interface 153 of FIG.
図7は、スレーブ機器200の機能構成例を示す。
FIG. 7 shows a functional configuration example of the slave device 200.
トークン受信部211は、トークンパケットを受信する。そして、トークン受信部211は、受信したトークンパケットに記載されているトークン宛先MACアドレスを、スレーブ機器200のMACアドレスと比較する。
トークン宛先MACアドレスがスレーブ機器200のMACアドレスと一致すれば、トークン受信部211は、トークンを保持する。また、トークン受信部211は、データ送信部212にデータを送信するよう指示する。
一方、トークン宛先MACアドレスがスレーブ機器200のMACアドレスと一致しない場合は、トークン受信部211は、トークンパケットを破棄する。なお、トークン受信部211がトークンパケットを受信することを、トークン受信部211がトークンを受信するともいう。 Thetoken receiving unit 211 receives a token packet. Then, the token receiving unit 211 compares the token destination MAC address described in the received token packet with the MAC address of the slave device 200.
If the token destination MAC address matches the MAC address of theslave device 200, the token receiving unit 211 holds the token. The token reception unit 211 instructs the data transmission unit 212 to transmit data.
On the other hand, when the token destination MAC address does not match the MAC address of theslave device 200, the token receiving unit 211 discards the token packet. Note that the token receiving unit 211 receiving a token packet is also referred to as the token receiving unit 211 receiving a token.
トークン宛先MACアドレスがスレーブ機器200のMACアドレスと一致すれば、トークン受信部211は、トークンを保持する。また、トークン受信部211は、データ送信部212にデータを送信するよう指示する。
一方、トークン宛先MACアドレスがスレーブ機器200のMACアドレスと一致しない場合は、トークン受信部211は、トークンパケットを破棄する。なお、トークン受信部211がトークンパケットを受信することを、トークン受信部211がトークンを受信するともいう。 The
If the token destination MAC address matches the MAC address of the
On the other hand, when the token destination MAC address does not match the MAC address of the
データ送信部212は、トークン受信部211から指示があった場合に、マスタ機器100、スレーブ機器300及びスレーブ機器500にデータを送信する。
The data transmission unit 212 transmits data to the master device 100, the slave device 300, and the slave device 500 when instructed by the token reception unit 211.
トークン送信部213は、データ送信部212によるデータの送信が完了した後に、トークン宛先MACアドレスが記述されたトークンパケットをブロードキャストする。
なお、トークン送信部213がトークンパケットを送信することを、トークン送信部213がトークンを送信するともいう。 Thetoken transmission unit 213 broadcasts a token packet in which the token destination MAC address is described after the data transmission by the data transmission unit 212 is completed.
Note that thetoken transmission unit 213 transmits a token packet, and the token transmission unit 213 also transmits a token.
なお、トークン送信部213がトークンパケットを送信することを、トークン送信部213がトークンを送信するともいう。 The
Note that the
データ受信部214は、マスタ機器100及びスレーブ機器300から送信されたデータを受信する。
The data receiving unit 214 receives data transmitted from the master device 100 and the slave device 300.
なお、トークン受信部211によるトークンパケットの受信、データ送信部212によるデータの送信、トークン送信部213によるトークンの送信、データ受信部214によるデータの受信は、図6の通信インタフェース253により行われる。
また、スレーブ機器300の機能構成も図7に示すとおりである。 Note that thetoken reception unit 211 receives a token packet, the data transmission unit 212 transmits data, the token transmission unit 213 transmits a token, and the data reception unit 214 receives data. The communication interface 253 in FIG.
The functional configuration of theslave device 300 is also as shown in FIG.
また、スレーブ機器300の機能構成も図7に示すとおりである。 Note that the
The functional configuration of the
***動作の説明***
次に、マスタ機器100の動作例を説明する。以下では、マスタ機器100が、スレーブ機器200又はスレーブ機器300の動作を模擬して、図8のスレーブ機器500として振る舞う例を説明する。
マスタ機器100の動作は、手続きAと手続きBに分けられる。手続きAでは、機器管理テーブルの更新及び更新後の機器管理テーブルを基にした通信機器への設定が行われる。手続きBでは、トークンの受信、マスタ機器100の本来の動作及びスレーブ機器500の動作が行われる。
図9は、手続きAを示すフローチャートであり、図10は、手続きBを示すフローチャートである。 *** Explanation of operation ***
Next, an operation example of themaster device 100 will be described. Hereinafter, an example in which the master device 100 behaves as the slave device 500 in FIG. 8 by simulating the operation of the slave device 200 or the slave device 300 will be described.
The operation of themaster device 100 is divided into procedure A and procedure B. In procedure A, the device management table is updated and the communication device is set based on the updated device management table. In the procedure B, the token is received, the original operation of the master device 100 and the operation of the slave device 500 are performed.
FIG. 9 is a flowchart showing the procedure A, and FIG. 10 is a flowchart showing the procedure B.
次に、マスタ機器100の動作例を説明する。以下では、マスタ機器100が、スレーブ機器200又はスレーブ機器300の動作を模擬して、図8のスレーブ機器500として振る舞う例を説明する。
マスタ機器100の動作は、手続きAと手続きBに分けられる。手続きAでは、機器管理テーブルの更新及び更新後の機器管理テーブルを基にした通信機器への設定が行われる。手続きBでは、トークンの受信、マスタ機器100の本来の動作及びスレーブ機器500の動作が行われる。
図9は、手続きAを示すフローチャートであり、図10は、手続きBを示すフローチャートである。 *** Explanation of operation ***
Next, an operation example of the
The operation of the
FIG. 9 is a flowchart showing the procedure A, and FIG. 10 is a flowchart showing the procedure B.
まず、図9を参照して、手続きAを説明する。
First, the procedure A will be described with reference to FIG.
ステップS1において、機器管理テーブル操作部121が、機器管理テーブルを更新する。
より具体的には、マスタ機器100のオペレータが、図17において破線で囲んでいる情報をマスタ機器100に入力する。そして、機器管理テーブル操作部121が、オペレータから入力された情報に基づき、機器管理テーブルを図17に示すように更新する。つまり、機器管理テーブル操作部121は、仮想的なスレーブ機器であるスレーブ機器500のレコードを追加し、実在識別子の欄を追加し、また、スレーブ機器200のトークン宛先MACアドレスを変更する。 In step S1, the device managementtable operation unit 121 updates the device management table.
More specifically, the operator of themaster device 100 inputs information surrounded by a broken line in FIG. Then, the device management table operation unit 121 updates the device management table as shown in FIG. 17 based on the information input from the operator. That is, the device management table operation unit 121 adds a record of the slave device 500 that is a virtual slave device, adds a real identifier column, and changes the token destination MAC address of the slave device 200.
より具体的には、マスタ機器100のオペレータが、図17において破線で囲んでいる情報をマスタ機器100に入力する。そして、機器管理テーブル操作部121が、オペレータから入力された情報に基づき、機器管理テーブルを図17に示すように更新する。つまり、機器管理テーブル操作部121は、仮想的なスレーブ機器であるスレーブ機器500のレコードを追加し、実在識別子の欄を追加し、また、スレーブ機器200のトークン宛先MACアドレスを変更する。 In step S1, the device management
More specifically, the operator of the
次に、ステップS2において、トークン宛先設定部122が、機器管理テーブルのトークン宛先MACアドレスを、該当するスレーブ機器に設定する。
図17の例では、トークン宛先設定部122は、スレーブ機器200に、新たなトークン宛先MACアドレス「DD:DD:DD:DD:DD」を設定する。
なお、ここでは、トークン宛先設定部122は、トークン宛先MACアドレスが変更になるスレーブ機器200にのみ、新たなトークン宛先MACアドレスを設定することにしているが、トークン宛先設定部122は、トークン宛先MACアドレスが変更にならないスレーブ機器300にも、トークン宛先MACアドレス「AA:AA:AA:AA:AA」を設定してもよい。 Next, in step S2, the tokendestination setting unit 122 sets the token destination MAC address of the device management table to the corresponding slave device.
In the example of FIG. 17, the tokendestination setting unit 122 sets a new token destination MAC address “DD: DD: DD: DD: DD” in the slave device 200.
Here, the tokendestination setting unit 122 sets a new token destination MAC address only to the slave device 200 whose token destination MAC address is changed, but the token destination setting unit 122 The token destination MAC address “AA: AA: AA: AA: AA” may be set also in the slave device 300 whose MAC address is not changed.
図17の例では、トークン宛先設定部122は、スレーブ機器200に、新たなトークン宛先MACアドレス「DD:DD:DD:DD:DD」を設定する。
なお、ここでは、トークン宛先設定部122は、トークン宛先MACアドレスが変更になるスレーブ機器200にのみ、新たなトークン宛先MACアドレスを設定することにしているが、トークン宛先設定部122は、トークン宛先MACアドレスが変更にならないスレーブ機器300にも、トークン宛先MACアドレス「AA:AA:AA:AA:AA」を設定してもよい。 Next, in step S2, the token
In the example of FIG. 17, the token
Here, the token
次に、図10を参照して、手続きBを説明する。
Next, the procedure B will be described with reference to FIG.
トークン受信部112がトークンパケットを受信すると、ステップS3において、トークン受信部112は、トークンの宛先がマスタ機器100であるか否かを判定する。
具体的には、トークン受信部112は、トークンパケットに含まれるトークン宛先MACアドレスと、機器管理テーブルのマスタ機器100のMACアドレスとを比較する。 When thetoken receiving unit 112 receives the token packet, in step S3, the token receiving unit 112 determines whether or not the token destination is the master device 100.
Specifically, thetoken receiving unit 112 compares the token destination MAC address included in the token packet with the MAC address of the master device 100 in the device management table.
具体的には、トークン受信部112は、トークンパケットに含まれるトークン宛先MACアドレスと、機器管理テーブルのマスタ機器100のMACアドレスとを比較する。 When the
Specifically, the
トークン宛先MACアドレスがマスタ機器100のMACアドレスと一致する場合、つまり、トークン宛先MACアドレスが「AA:AA:AA:AA:AA:AA」である場合は、ステップS4において、トークン受信部112は、トークンを保持する。また、トークン受信部112は、データ送信部113にデータの送信を指示する。
When the token destination MAC address matches the MAC address of the master device 100, that is, when the token destination MAC address is “AA: AA: AA: AA: AA: AA”, the token reception unit 112 in step S4 , Hold the token. The token reception unit 112 instructs the data transmission unit 113 to transmit data.
次に、ステップS5において、データ送信部113は、マスタ機器100のデータをブロードキャストする。
Next, in step S5, the data transmission unit 113 broadcasts the data of the master device 100.
また、データ送信部113によるデータ送信が完了すると、ステップS6において、トークン送信部114が、マスタ機器100のトークンの宛先にトークンパケットを送信する。
より具体的には、トークン送信部114は、機器管理テーブルのマスタ機器100のトークン宛先MACアドレスである「BB:BB:BB:BB:BB:BB」が記述されたトークンパケットをブロードキャストする。 When the data transmission by thedata transmission unit 113 is completed, the token transmission unit 114 transmits the token packet to the token destination of the master device 100 in step S6.
More specifically, thetoken transmission unit 114 broadcasts a token packet in which “BB: BB: BB: BB: BB: BB”, which is the token destination MAC address of the master device 100 in the device management table, is described.
より具体的には、トークン送信部114は、機器管理テーブルのマスタ機器100のトークン宛先MACアドレスである「BB:BB:BB:BB:BB:BB」が記述されたトークンパケットをブロードキャストする。 When the data transmission by the
More specifically, the
ステップS3においてトークン宛先MACアドレスがマスタ機器100のMACアドレスと一致しない場合は、トークン受信部112がトークンパケットを模擬部120に転送する。そして、ステップS7において、仮想機器トークン受信部123が、トークンの宛先の通信機器が実在するか否かを判定する。
より具体的には、仮想機器トークン受信部123は、トークン宛先MACアドレスと一致するMACアドレスを機器管理テーブルにおいて検索する。そして、仮想機器トークン受信部123は、トークン宛先MACアドレスと一致するMACアドレスのレコードに記述されている実在識別子が「True」であるか「False」であるかを判定する。
トークン宛先MACアドレスと一致するMACアドレスが「BB:BB:BB:BB:BB:BB」又は「CC:CC:CC:CC:CC:CC」である場合は、実在識別子が「True」である。
この場合は、仮想機器トークン受信部123は、ステップS8において、受信したトークンパケットを破棄する。 If the token destination MAC address does not match the MAC address of themaster device 100 in step S3, the token receiving unit 112 transfers the token packet to the simulation unit 120. In step S7, the virtual device token receiving unit 123 determines whether or not the communication device that is the destination of the token actually exists.
More specifically, the virtual devicetoken receiving unit 123 searches the device management table for a MAC address that matches the token destination MAC address. Then, the virtual device token receiving unit 123 determines whether the real identifier described in the MAC address record that matches the token destination MAC address is “True” or “False”.
When the MAC address that matches the token destination MAC address is “BB: BB: BB: BB: BB: BB” or “CC: CC: CC: CC: CC: CC”, the real identifier is “True”. .
In this case, the virtual devicetoken receiving unit 123 discards the received token packet in step S8.
より具体的には、仮想機器トークン受信部123は、トークン宛先MACアドレスと一致するMACアドレスを機器管理テーブルにおいて検索する。そして、仮想機器トークン受信部123は、トークン宛先MACアドレスと一致するMACアドレスのレコードに記述されている実在識別子が「True」であるか「False」であるかを判定する。
トークン宛先MACアドレスと一致するMACアドレスが「BB:BB:BB:BB:BB:BB」又は「CC:CC:CC:CC:CC:CC」である場合は、実在識別子が「True」である。
この場合は、仮想機器トークン受信部123は、ステップS8において、受信したトークンパケットを破棄する。 If the token destination MAC address does not match the MAC address of the
More specifically, the virtual device
When the MAC address that matches the token destination MAC address is “BB: BB: BB: BB: BB: BB” or “CC: CC: CC: CC: CC: CC”, the real identifier is “True”. .
In this case, the virtual device
一方、トークン宛先MACアドレスと一致するMACアドレスのレコードに記述されている実在識別子が「False」である場合は、仮想機器トークン受信部123は、ステップS9において、スレーブ機器500としてトークンを保持する。つまり、トークン宛先MACアドレスと一致するMACアドレスが「DD:DD:DD:DD:DD:DD」である場合に、仮想機器トークン受信部123は、スレーブ機器500としてトークンを保持する。
また、仮想機器トークン受信部123は、仮想機器データ送信部124にデータの送信を指示する。 On the other hand, when the real identifier described in the MAC address record that matches the token destination MAC address is “False”, the virtual devicetoken receiving unit 123 holds the token as the slave device 500 in step S9. That is, when the MAC address that matches the token destination MAC address is “DD: DD: DD: DD: DD: DD”, the virtual device token receiving unit 123 holds the token as the slave device 500.
Further, the virtual devicetoken receiving unit 123 instructs the virtual device data transmitting unit 124 to transmit data.
また、仮想機器トークン受信部123は、仮想機器データ送信部124にデータの送信を指示する。 On the other hand, when the real identifier described in the MAC address record that matches the token destination MAC address is “False”, the virtual device
Further, the virtual device
次に、ステップS10において、仮想機器データ送信部124は、スレーブ機器500のデータをブロードキャストする。
Next, in step S10, the virtual device data transmission unit 124 broadcasts data of the slave device 500.
また、仮想機器データ送信部124によるデータの送信が完了すると、ステップS11において、仮想機器トークン送信部125が、スレーブ機器500のトークンの宛先にトークンパケットを送信する。
より具体的には、仮想機器トークン送信部125は、機器管理テーブルのスレーブ機器500のトークン宛先MACアドレスである「CC:CC:CC:CC:CC:CC」が記述されたトークンパケットをブロードキャストする。 When the data transmission by the virtual devicedata transmission unit 124 is completed, the virtual device token transmission unit 125 transmits the token packet to the token destination of the slave device 500 in step S11.
More specifically, the virtual devicetoken transmission unit 125 broadcasts a token packet in which “CC: CC: CC: CC: CC: CC”, which is the token destination MAC address of the slave device 500 in the device management table, is described. .
より具体的には、仮想機器トークン送信部125は、機器管理テーブルのスレーブ機器500のトークン宛先MACアドレスである「CC:CC:CC:CC:CC:CC」が記述されたトークンパケットをブロードキャストする。 When the data transmission by the virtual device
More specifically, the virtual device
***実施の形態の効果の説明***
以上のように、本実施の形態では、マスタ機器100が、試験時には存在しないスレーブ機器500として振る舞う。
このため、本実施の形態によれば、スレーブ機器500と、スレーブ機器500に接続される機器(ロボット、センサ等)を用意することなく、スレーブ機器500と、スレーブ機器500に接続される機器の動作を試験に反映させることができる。つまり、本実施の形態によれば、本番環境と同様の条件で試験を行うことができる。 *** Explanation of the effect of the embodiment ***
As described above, in the present embodiment, themaster device 100 behaves as the slave device 500 that does not exist during the test.
Therefore, according to the present embodiment, theslave device 500 and the devices connected to the slave device 500 are not prepared without preparing the slave device 500 and the devices (robots, sensors, etc.) connected to the slave device 500. The operation can be reflected in the test. That is, according to the present embodiment, the test can be performed under the same conditions as in the production environment.
以上のように、本実施の形態では、マスタ機器100が、試験時には存在しないスレーブ機器500として振る舞う。
このため、本実施の形態によれば、スレーブ機器500と、スレーブ機器500に接続される機器(ロボット、センサ等)を用意することなく、スレーブ機器500と、スレーブ機器500に接続される機器の動作を試験に反映させることができる。つまり、本実施の形態によれば、本番環境と同様の条件で試験を行うことができる。 *** Explanation of the effect of the embodiment ***
As described above, in the present embodiment, the
Therefore, according to the present embodiment, the
実施の形態2.
実施の形態1では、マスタ機器100が仮想的なスレーブ機器であるスレーブ機器500として振る舞っている。本実施の形態では、マスタ機器100、スレーブ機器200及びスレーブ機器300以外の機器がスレーブ機器500として振る舞う例を説明する。
以下では、主に実施の形態1との差異を説明する。
以下で説明していない事項は、実施の形態1と同じである。 Embodiment 2. FIG.
In the first embodiment, themaster device 100 behaves as a slave device 500 that is a virtual slave device. In the present embodiment, an example in which devices other than the master device 100, the slave device 200, and the slave device 300 behave as the slave device 500 will be described.
Hereinafter, differences from the first embodiment will be mainly described.
Matters not described below are the same as those in the first embodiment.
実施の形態1では、マスタ機器100が仮想的なスレーブ機器であるスレーブ機器500として振る舞っている。本実施の形態では、マスタ機器100、スレーブ機器200及びスレーブ機器300以外の機器がスレーブ機器500として振る舞う例を説明する。
以下では、主に実施の形態1との差異を説明する。
以下で説明していない事項は、実施の形態1と同じである。 Embodiment 2. FIG.
In the first embodiment, the
Hereinafter, differences from the first embodiment will be mainly described.
Matters not described below are the same as those in the first embodiment.
***構成の説明***
図11は、実施の形態2に係るトークンパッシングシステムのシステム構成例を示す。図11のトークンパッシングシステムのネットワークトポロジはスター型であるが、ネットワークトポロジはスター型に限定されない。実施の形態1と同様に、トークンパッシングシステムのネットワークトポロジは、リング型、ライン型、ライン型とスター型を組み合わせたもののいずれであってもよい。 *** Explanation of configuration ***
FIG. 11 shows a system configuration example of the token passing system according to the second embodiment. The network topology of the token passing system in FIG. 11 is a star type, but the network topology is not limited to the star type. As in the first embodiment, the network topology of the token passing system may be any of a ring type, a line type, and a combination of a line type and a star type.
図11は、実施の形態2に係るトークンパッシングシステムのシステム構成例を示す。図11のトークンパッシングシステムのネットワークトポロジはスター型であるが、ネットワークトポロジはスター型に限定されない。実施の形態1と同様に、トークンパッシングシステムのネットワークトポロジは、リング型、ライン型、ライン型とスター型を組み合わせたもののいずれであってもよい。 *** Explanation of configuration ***
FIG. 11 shows a system configuration example of the token passing system according to the second embodiment. The network topology of the token passing system in FIG. 11 is a star type, but the network topology is not limited to the star type. As in the first embodiment, the network topology of the token passing system may be any of a ring type, a line type, and a combination of a line type and a star type.
図11の構成では、図1に示す構成と比較して、模擬装置600が追加されている。
スレーブ機器200及びスレーブ機器300は、実施の形態1で説明したものと同じである。
模擬装置600は、実施の形態1で説明した模擬部120の動作を行う。つまり、模擬装置600は、仮想通信機器として、スレーブ機器の動作を模擬する。以下では、模擬装置600は、スレーブ機器200又はスレーブ機器300の動作を模擬して、スレーブ機器500として振る舞う。
一方、マスタ機器100は、本実施の形態では、実施の形態1で説明した模擬部120の動作を行わない。つまり、マスタ機器100は、本実施の形態では、通信機器として機能する。
スイッチングハブ400は、マスタ機器100、スレーブ機器200、スレーブ機器300及び模擬装置600の間の通信を中継する。 In the configuration of FIG. 11, asimulation apparatus 600 is added as compared to the configuration shown in FIG.
Theslave device 200 and the slave device 300 are the same as those described in the first embodiment.
Thesimulation apparatus 600 performs the operation of the simulation unit 120 described in the first embodiment. That is, the simulation apparatus 600 simulates the operation of a slave device as a virtual communication device. Hereinafter, the simulation device 600 behaves as the slave device 500 by simulating the operation of the slave device 200 or the slave device 300.
On the other hand, themaster device 100 does not perform the operation of the simulation unit 120 described in the first embodiment in the present embodiment. That is, the master device 100 functions as a communication device in the present embodiment.
Theswitching hub 400 relays communication among the master device 100, the slave device 200, the slave device 300, and the simulation apparatus 600.
スレーブ機器200及びスレーブ機器300は、実施の形態1で説明したものと同じである。
模擬装置600は、実施の形態1で説明した模擬部120の動作を行う。つまり、模擬装置600は、仮想通信機器として、スレーブ機器の動作を模擬する。以下では、模擬装置600は、スレーブ機器200又はスレーブ機器300の動作を模擬して、スレーブ機器500として振る舞う。
一方、マスタ機器100は、本実施の形態では、実施の形態1で説明した模擬部120の動作を行わない。つまり、マスタ機器100は、本実施の形態では、通信機器として機能する。
スイッチングハブ400は、マスタ機器100、スレーブ機器200、スレーブ機器300及び模擬装置600の間の通信を中継する。 In the configuration of FIG. 11, a
The
The
On the other hand, the
The
図12は、模擬装置600のハードウェア構成例を示す。
図12に示すように、模擬装置600は、プロセッサ651、記憶装置652及び通信インタフェース653を備える。
模擬装置600は、コンピュータである。
プロセッサ651は、データの送信を行う。また、プロセッサ651は、トークンを保持するか否か判定を行う。また、プロセッサ651は、後述する機器管理テーブルを操作するための演算を行う。更に、プロセッサ651は、図13に示す機能を実現するプログラムを実行する。
記憶装置652は、機器管理テーブルを記憶する。また、記憶装置652は、図13に示す機能を実現するプログラムを記憶する。また、記憶装置652は、マスタ機器100、スレーブ機器200及びスレーブ機器300に送信するデータを記憶する。
通信インタフェース653は、スイッチングハブ400を介してスレーブ機器200及びスレーブ機器300と通信するためのインタフェースである。
図12では、1つの通信インタフェース653のみが示されているが、マスタ機器100は複数の通信インタフェース653を備えていてもよい。 FIG. 12 shows a hardware configuration example of thesimulation apparatus 600.
As illustrated in FIG. 12, thesimulation apparatus 600 includes a processor 651, a storage device 652, and a communication interface 653.
Thesimulation apparatus 600 is a computer.
Theprocessor 651 transmits data. Further, the processor 651 determines whether or not to hold a token. The processor 651 performs a calculation for operating a device management table described later. Further, the processor 651 executes a program for realizing the functions shown in FIG.
Thestorage device 652 stores a device management table. In addition, the storage device 652 stores a program that implements the functions illustrated in FIG. The storage device 652 stores data to be transmitted to the master device 100, the slave device 200, and the slave device 300.
Thecommunication interface 653 is an interface for communicating with the slave device 200 and the slave device 300 via the switching hub 400.
Although only onecommunication interface 653 is shown in FIG. 12, the master device 100 may include a plurality of communication interfaces 653.
図12に示すように、模擬装置600は、プロセッサ651、記憶装置652及び通信インタフェース653を備える。
模擬装置600は、コンピュータである。
プロセッサ651は、データの送信を行う。また、プロセッサ651は、トークンを保持するか否か判定を行う。また、プロセッサ651は、後述する機器管理テーブルを操作するための演算を行う。更に、プロセッサ651は、図13に示す機能を実現するプログラムを実行する。
記憶装置652は、機器管理テーブルを記憶する。また、記憶装置652は、図13に示す機能を実現するプログラムを記憶する。また、記憶装置652は、マスタ機器100、スレーブ機器200及びスレーブ機器300に送信するデータを記憶する。
通信インタフェース653は、スイッチングハブ400を介してスレーブ機器200及びスレーブ機器300と通信するためのインタフェースである。
図12では、1つの通信インタフェース653のみが示されているが、マスタ機器100は複数の通信インタフェース653を備えていてもよい。 FIG. 12 shows a hardware configuration example of the
As illustrated in FIG. 12, the
The
The
The
The
Although only one
図13は、模擬装置600の機能構成例を示す。
模擬装置600は、トークン受信部112及び模擬部120により構成される。
トークン受信部112及び模擬部120は、それぞれ、実施の形態1に示したものと同様である。模擬部120は、模擬装置600がスレーブ機器を模擬するための機能ブロックである。
トークン受信部112及び模擬部120は、プログラムにより実現される。プロセッサ651が、プログラムを実行することで、トークン受信部112及び模擬部120の機能が実現される。
図13では、プロセッサ651がトークン受信部112及び模擬部120の機能を実現するプログラムを実行している状態を模式的に表している。
模擬部120は、機器管理テーブル操作部121、トークン宛先設定部122、仮想機器トークン受信部123、仮想機器データ送信部124及び仮想機器トークン送信部125で構成される。
図13の機器管理テーブル操作部121、トークン宛先設定部122、仮想機器トークン受信部123、仮想機器データ送信部124及び仮想機器トークン送信部125は、実施の形態1で説明したものと同様であるため、これらの説明は省略する。
機器管理テーブル記憶部615は、機器管理テーブルを記憶する。機器管理テーブルは実施の形態1で説明したものと同じであるため、機器管理テーブルの説明を省略する。機器管理テーブル記憶部615は記憶装置652により実現される。 FIG. 13 shows a functional configuration example of thesimulation apparatus 600.
Thesimulation device 600 includes a token reception unit 112 and a simulation unit 120.
Thetoken receiving unit 112 and the simulation unit 120 are the same as those shown in the first embodiment. The simulation unit 120 is a functional block for the simulation apparatus 600 to simulate a slave device.
Thetoken receiving unit 112 and the simulation unit 120 are realized by a program. The functions of the token receiving unit 112 and the simulation unit 120 are realized by the processor 651 executing the program.
FIG. 13 schematically illustrates a state in which theprocessor 651 is executing a program that realizes the functions of the token reception unit 112 and the simulation unit 120.
Thesimulation unit 120 includes a device management table operation unit 121, a token destination setting unit 122, a virtual device token reception unit 123, a virtual device data transmission unit 124, and a virtual device token transmission unit 125.
The device managementtable operation unit 121, token destination setting unit 122, virtual device token reception unit 123, virtual device data transmission unit 124, and virtual device token transmission unit 125 in FIG. 13 are the same as those described in the first embodiment. Therefore, these descriptions are omitted.
The device managementtable storage unit 615 stores a device management table. Since the device management table is the same as that described in the first embodiment, description of the device management table is omitted. The device management table storage unit 615 is realized by the storage device 652.
模擬装置600は、トークン受信部112及び模擬部120により構成される。
トークン受信部112及び模擬部120は、それぞれ、実施の形態1に示したものと同様である。模擬部120は、模擬装置600がスレーブ機器を模擬するための機能ブロックである。
トークン受信部112及び模擬部120は、プログラムにより実現される。プロセッサ651が、プログラムを実行することで、トークン受信部112及び模擬部120の機能が実現される。
図13では、プロセッサ651がトークン受信部112及び模擬部120の機能を実現するプログラムを実行している状態を模式的に表している。
模擬部120は、機器管理テーブル操作部121、トークン宛先設定部122、仮想機器トークン受信部123、仮想機器データ送信部124及び仮想機器トークン送信部125で構成される。
図13の機器管理テーブル操作部121、トークン宛先設定部122、仮想機器トークン受信部123、仮想機器データ送信部124及び仮想機器トークン送信部125は、実施の形態1で説明したものと同様であるため、これらの説明は省略する。
機器管理テーブル記憶部615は、機器管理テーブルを記憶する。機器管理テーブルは実施の形態1で説明したものと同じであるため、機器管理テーブルの説明を省略する。機器管理テーブル記憶部615は記憶装置652により実現される。 FIG. 13 shows a functional configuration example of the
The
The
The
FIG. 13 schematically illustrates a state in which the
The
The device management
The device management
図14は、マスタ機器100の機能構成例を示す。
本実施の形態では、マスタ機器100は、初期設定部111、トークン受信部112、データ送信部113、トークン送信部114、データ受信部115及び機器管理テーブル記憶部116のみで構成される。つまり、本実施の形態に係るマスタ機器100は、模擬部120を備えていない。
図14の初期設定部111、トークン受信部112、データ送信部113、トークン送信部114、データ受信部115及び機器管理テーブル記憶部116は、実施の形態1で説明したものと同様であるため、これらの説明は省略する。 FIG. 14 shows a functional configuration example of themaster device 100.
In the present embodiment, themaster device 100 includes only an initial setting unit 111, a token reception unit 112, a data transmission unit 113, a token transmission unit 114, a data reception unit 115, and a device management table storage unit 116. That is, master device 100 according to the present embodiment does not include simulation unit 120.
Since theinitial setting unit 111, token reception unit 112, data transmission unit 113, token transmission unit 114, data reception unit 115, and device management table storage unit 116 in FIG. 14 are the same as those described in the first embodiment, These descriptions are omitted.
本実施の形態では、マスタ機器100は、初期設定部111、トークン受信部112、データ送信部113、トークン送信部114、データ受信部115及び機器管理テーブル記憶部116のみで構成される。つまり、本実施の形態に係るマスタ機器100は、模擬部120を備えていない。
図14の初期設定部111、トークン受信部112、データ送信部113、トークン送信部114、データ受信部115及び機器管理テーブル記憶部116は、実施の形態1で説明したものと同様であるため、これらの説明は省略する。 FIG. 14 shows a functional configuration example of the
In the present embodiment, the
Since the
なお、実施の形態2のマスタ機器100のハードウェア構成は、図4に示すとおりである。また、実施の形態2のスレーブ機器200及びスレーブ機器300のハードウェア構成は、図6に示すとおりである。また、実施の形態2のスレーブ機器200及びスレーブ機器300の機能構成は、図7に示すとおりである。
Note that the hardware configuration of the master device 100 of the second embodiment is as shown in FIG. The hardware configurations of the slave device 200 and the slave device 300 of the second embodiment are as shown in FIG. The functional configurations of the slave device 200 and the slave device 300 of the second embodiment are as shown in FIG.
***動作の説明***
次に、模擬装置600の動作例を説明する。
模擬装置600の動作は、手続きAと手続きBに分けられる。手続きAでは、機器管理テーブルの更新及び更新後の機器管理テーブルを基にした通信機器への設定が行われる。手続きBでは、トークンの受信、マスタ機器100の本来の動作及びスレーブ機器500の動作が行われる。
模擬装置600の模擬部120は、図9に従って手続きAを行う。図9の詳細は実施の形態1で説明したので、図9の詳細は説明を省略する。なお、マスタ機器100のトークン宛先MACアドレスが更新されている場合は、トークン宛先設定部122は、ステップS2において、マスタ機器100にも、更新後のトークン宛先MACアドレスを設定する。 *** Explanation of operation ***
Next, an operation example of thesimulation apparatus 600 will be described.
The operation of thesimulation apparatus 600 is divided into a procedure A and a procedure B. In procedure A, the device management table is updated and the communication device is set based on the updated device management table. In the procedure B, the token is received, the original operation of the master device 100 and the operation of the slave device 500 are performed.
Thesimulation unit 120 of the simulation apparatus 600 performs the procedure A according to FIG. Since the details of FIG. 9 have been described in the first embodiment, the details of FIG. 9 are not described. If the token destination MAC address of the master device 100 has been updated, the token destination setting unit 122 sets the updated token destination MAC address in the master device 100 in step S2.
次に、模擬装置600の動作例を説明する。
模擬装置600の動作は、手続きAと手続きBに分けられる。手続きAでは、機器管理テーブルの更新及び更新後の機器管理テーブルを基にした通信機器への設定が行われる。手続きBでは、トークンの受信、マスタ機器100の本来の動作及びスレーブ機器500の動作が行われる。
模擬装置600の模擬部120は、図9に従って手続きAを行う。図9の詳細は実施の形態1で説明したので、図9の詳細は説明を省略する。なお、マスタ機器100のトークン宛先MACアドレスが更新されている場合は、トークン宛先設定部122は、ステップS2において、マスタ機器100にも、更新後のトークン宛先MACアドレスを設定する。 *** Explanation of operation ***
Next, an operation example of the
The operation of the
The
次に、図15を参照して、手続きBを説明する。
Next, the procedure B will be described with reference to FIG.
トークン受信部112がトークンパケットを受信すると、トークン受信部112は仮想機器トークン受信部123にトークンパケットを転送する。
仮想機器トークン受信部123は、ステップS12において、トークンの宛先のノードが実在するか否かを判定する。
より具体的には、仮想機器トークン受信部123は、トークン宛先MACアドレスと一致するMACアドレスを機器管理テーブルにおいて検索する。そして、仮想機器トークン受信部123は、トークン宛先MACアドレスと一致するMACアドレスのレコードに記述されている実在識別子が「True」であるか「False」であるかを判定する。
トークン宛先MACアドレスと一致するMACアドレスが「AA:AA:AA:AA:AA:AA」、「BB:BB:BB:BB:BB:BB」又は「CC:CC:CC:CC:CC:CC」である場合は、実在識別子が「True」である。
この場合は、仮想機器トークン受信部123は、ステップS13において、受信したトークンパケットを破棄する。 When thetoken receiving unit 112 receives the token packet, the token receiving unit 112 transfers the token packet to the virtual device token receiving unit 123.
In step S12, the virtual devicetoken receiving unit 123 determines whether or not the token destination node actually exists.
More specifically, the virtual devicetoken receiving unit 123 searches the device management table for a MAC address that matches the token destination MAC address. Then, the virtual device token receiving unit 123 determines whether the real identifier described in the MAC address record that matches the token destination MAC address is “True” or “False”.
The MAC address that matches the token destination MAC address is “AA: AA: AA: AA: AA: AA”, “BB: BB: BB: BB: BB: BB” or “CC: CC: CC: CC: CC: CC” ", The real identifier is" True ".
In this case, the virtual devicetoken receiving unit 123 discards the received token packet in step S13.
仮想機器トークン受信部123は、ステップS12において、トークンの宛先のノードが実在するか否かを判定する。
より具体的には、仮想機器トークン受信部123は、トークン宛先MACアドレスと一致するMACアドレスを機器管理テーブルにおいて検索する。そして、仮想機器トークン受信部123は、トークン宛先MACアドレスと一致するMACアドレスのレコードに記述されている実在識別子が「True」であるか「False」であるかを判定する。
トークン宛先MACアドレスと一致するMACアドレスが「AA:AA:AA:AA:AA:AA」、「BB:BB:BB:BB:BB:BB」又は「CC:CC:CC:CC:CC:CC」である場合は、実在識別子が「True」である。
この場合は、仮想機器トークン受信部123は、ステップS13において、受信したトークンパケットを破棄する。 When the
In step S12, the virtual device
More specifically, the virtual device
The MAC address that matches the token destination MAC address is “AA: AA: AA: AA: AA: AA”, “BB: BB: BB: BB: BB: BB” or “CC: CC: CC: CC: CC: CC” ", The real identifier is" True ".
In this case, the virtual device
一方、トークン宛先MACアドレスと一致するMACアドレスのレコードに記述されている実在識別子が「False」である場合は、仮想機器トークン受信部123は、ステップS14において、スレーブ機器500としてトークンを保持する。つまり、トークン宛先MACアドレスと一致するMACアドレスが「DD:DD:DD:DD:DD:DD」である場合に、仮想機器トークン受信部123は、スレーブ機器500としてトークンを保持する。
また、仮想機器トークン受信部123は、仮想機器データ送信部124にデータの送信を指示する。 On the other hand, when the real identifier described in the MAC address record that matches the token destination MAC address is “False”, the virtual devicetoken receiving unit 123 holds the token as the slave device 500 in step S14. That is, when the MAC address that matches the token destination MAC address is “DD: DD: DD: DD: DD: DD”, the virtual device token receiving unit 123 holds the token as the slave device 500.
Further, the virtual devicetoken receiving unit 123 instructs the virtual device data transmitting unit 124 to transmit data.
また、仮想機器トークン受信部123は、仮想機器データ送信部124にデータの送信を指示する。 On the other hand, when the real identifier described in the MAC address record that matches the token destination MAC address is “False”, the virtual device
Further, the virtual device
次に、ステップS15において、仮想機器データ送信部124は、スレーブ機器500のデータをブロードキャストする。
Next, in step S15, the virtual device data transmitting unit 124 broadcasts data of the slave device 500.
また、仮想機器データ送信部124によるデータ送信が完了すると、ステップS16において、仮想機器トークン送信部125が、スレーブ機器500のトークンの宛先にトークンパケットを送信する。
より具体的には、仮想機器トークン送信部125は、機器管理テーブルのスレーブ機器500のトークン宛先MACアドレスである「CC:CC:CC:CC:CC:CC」が記述されたトークンパケットをブロードキャストする。 When the data transmission by the virtual devicedata transmission unit 124 is completed, the virtual device token transmission unit 125 transmits a token packet to the token destination of the slave device 500 in step S16.
More specifically, the virtual devicetoken transmission unit 125 broadcasts a token packet in which “CC: CC: CC: CC: CC: CC”, which is the token destination MAC address of the slave device 500 in the device management table, is described. .
より具体的には、仮想機器トークン送信部125は、機器管理テーブルのスレーブ機器500のトークン宛先MACアドレスである「CC:CC:CC:CC:CC:CC」が記述されたトークンパケットをブロードキャストする。 When the data transmission by the virtual device
More specifically, the virtual device
***実施の形態の効果の説明***
以上のように、本実施の形態では、模擬装置600が、試験時には存在しないスレーブ機器500の動作を模擬する。
このため、本実施の形態によれば、スレーブ機器500と、スレーブ機器500に接続される機器(ロボット、センサ等)を用意することなく、スレーブ機器500と、スレーブ機器500に接続される機器の動作を試験に反映させることができる。つまり、本実施の形態によれば、本番環境と同様の条件で試験を行うことができる。
また、スレーブ機器500の模擬をマスタ機器100ではなく模擬装置600で行うことにより、マスタ機器100の負荷を軽減することができる。 *** Explanation of the effect of the embodiment ***
As described above, in the present embodiment, thesimulation device 600 simulates the operation of the slave device 500 that does not exist during the test.
Therefore, according to the present embodiment, theslave device 500 and the devices connected to the slave device 500 are not prepared without preparing the slave device 500 and the devices (robots, sensors, etc.) connected to the slave device 500. The operation can be reflected in the test. That is, according to the present embodiment, the test can be performed under the same conditions as in the production environment.
Also, by simulating theslave device 500 by the simulation device 600 instead of the master device 100, the load on the master device 100 can be reduced.
以上のように、本実施の形態では、模擬装置600が、試験時には存在しないスレーブ機器500の動作を模擬する。
このため、本実施の形態によれば、スレーブ機器500と、スレーブ機器500に接続される機器(ロボット、センサ等)を用意することなく、スレーブ機器500と、スレーブ機器500に接続される機器の動作を試験に反映させることができる。つまり、本実施の形態によれば、本番環境と同様の条件で試験を行うことができる。
また、スレーブ機器500の模擬をマスタ機器100ではなく模擬装置600で行うことにより、マスタ機器100の負荷を軽減することができる。 *** Explanation of the effect of the embodiment ***
As described above, in the present embodiment, the
Therefore, according to the present embodiment, the
Also, by simulating the
以上、本発明の実施の形態について説明したが、これら2つの実施の形態を組み合わせて実施しても構わない。
あるいは、これら2つの実施の形態のうち、1つを部分的に実施しても構わない。
あるいは、これら2つの実施の形態を部分的に組み合わせて実施しても構わない。
なお、本発明は、これらの実施の形態に限定されるものではなく、必要に応じて種々の変更が可能である。 Although the embodiments of the present invention have been described above, these two embodiments may be combined and implemented.
Alternatively, one of these two embodiments may be partially implemented.
Alternatively, these two embodiments may be partially combined.
In addition, this invention is not limited to these embodiment, A various change is possible as needed.
あるいは、これら2つの実施の形態のうち、1つを部分的に実施しても構わない。
あるいは、これら2つの実施の形態を部分的に組み合わせて実施しても構わない。
なお、本発明は、これらの実施の形態に限定されるものではなく、必要に応じて種々の変更が可能である。 Although the embodiments of the present invention have been described above, these two embodiments may be combined and implemented.
Alternatively, one of these two embodiments may be partially implemented.
Alternatively, these two embodiments may be partially combined.
In addition, this invention is not limited to these embodiment, A various change is possible as needed.
***ハードウェア構成の説明***
最後に、マスタ機器100、模擬装置600のハードウェア構成の補足説明を行う。
プロセッサ151及びプロセッサ651は、プロセッシングを行うIC(Integrated Circuit)である。
プロセッサ151及びプロセッサ651は、それぞれ、CPU(Central Processing Unit)、DSP(Digital Signal Processor)等である。
記憶装置152及び記憶装置652は、それぞれ、RAM(Random Access Memory)、ROM(Read Only Memory)、フラッシュメモリ、HDD(Hard Disk Drive)等である。
通信インタフェース153及び通信インタフェース653は、それぞれ、データを受信するレシーバー及びデータを送信するトランスミッターを含む。
通信インタフェース153及び通信インタフェース653は、それぞれ、例えば、通信チップ又はNIC(Network Interface Card)である。 *** Explanation of hardware configuration ***
Finally, a supplementary explanation of the hardware configuration of themaster device 100 and the simulation apparatus 600 will be given.
Theprocessor 151 and the processor 651 are integrated circuits (ICs) that perform processing.
Theprocessor 151 and the processor 651 are a CPU (Central Processing Unit) and a DSP (Digital Signal Processor), respectively.
Thestorage device 152 and the storage device 652 are a RAM (Random Access Memory), a ROM (Read Only Memory), a flash memory, a HDD (Hard Disk Drive), and the like.
Thecommunication interface 153 and the communication interface 653 each include a receiver that receives data and a transmitter that transmits data.
Each of thecommunication interface 153 and the communication interface 653 is, for example, a communication chip or a NIC (Network Interface Card).
最後に、マスタ機器100、模擬装置600のハードウェア構成の補足説明を行う。
プロセッサ151及びプロセッサ651は、プロセッシングを行うIC(Integrated Circuit)である。
プロセッサ151及びプロセッサ651は、それぞれ、CPU(Central Processing Unit)、DSP(Digital Signal Processor)等である。
記憶装置152及び記憶装置652は、それぞれ、RAM(Random Access Memory)、ROM(Read Only Memory)、フラッシュメモリ、HDD(Hard Disk Drive)等である。
通信インタフェース153及び通信インタフェース653は、それぞれ、データを受信するレシーバー及びデータを送信するトランスミッターを含む。
通信インタフェース153及び通信インタフェース653は、それぞれ、例えば、通信チップ又はNIC(Network Interface Card)である。 *** Explanation of hardware configuration ***
Finally, a supplementary explanation of the hardware configuration of the
The
The
The
The
Each of the
また、記憶装置152には、OS(Operating System)も記憶されている。
そして、OSの少なくとも一部がプロセッサ151により実行される。
プロセッサ151はOSの少なくとも一部を実行しながら、実施の形態1では、初期設定部111、トークン受信部112、データ送信部113、トークン送信部114、データ受信部115及び模擬部120の機能を実現するプログラムを実行する。
プロセッサ151がOSを実行することで、タスク管理、メモリ管理、ファイル管理、通信制御等が行われる。
また、初期設定部111、トークン受信部112、データ送信部113、トークン送信部114、データ受信部115及び模擬部120の処理の結果を示す情報やデータや信号値や変数値が、記憶装置152、プロセッサ151内のレジスタ及びキャッシュメモリの少なくともいずれかに記憶される。
また、初期設定部111、トークン受信部112、データ送信部113、トークン送信部114、データ受信部115及び模擬部120の機能を実現するプログラムは、磁気ディスク、フレキシブルディスク、光ディスク、コンパクトディスク、ブルーレイ(登録商標)ディスク、DVD等の可搬記憶媒体に記憶されてもよい。 Thestorage device 152 also stores an OS (Operating System).
At least a part of the OS is executed by theprocessor 151.
In the first embodiment, theprocessor 151 executes the functions of the initial setting unit 111, the token reception unit 112, the data transmission unit 113, the token transmission unit 114, the data reception unit 115, and the simulation unit 120 while executing at least a part of the OS. Execute the program to be realized.
When theprocessor 151 executes the OS, task management, memory management, file management, communication control, and the like are performed.
In addition, information, data, signal values, and variable values indicating the processing results of theinitial setting unit 111, token receiving unit 112, data transmitting unit 113, token transmitting unit 114, data receiving unit 115, and simulation unit 120 are stored in the storage device 152. And stored in at least one of a register and a cache memory in the processor 151.
The programs for realizing the functions of theinitial setting unit 111, the token receiving unit 112, the data transmitting unit 113, the token transmitting unit 114, the data receiving unit 115, and the simulation unit 120 are a magnetic disk, a flexible disk, an optical disk, a compact disk, a Blu-ray disc. It may be stored in a portable storage medium such as a (registered trademark) disk or DVD.
そして、OSの少なくとも一部がプロセッサ151により実行される。
プロセッサ151はOSの少なくとも一部を実行しながら、実施の形態1では、初期設定部111、トークン受信部112、データ送信部113、トークン送信部114、データ受信部115及び模擬部120の機能を実現するプログラムを実行する。
プロセッサ151がOSを実行することで、タスク管理、メモリ管理、ファイル管理、通信制御等が行われる。
また、初期設定部111、トークン受信部112、データ送信部113、トークン送信部114、データ受信部115及び模擬部120の処理の結果を示す情報やデータや信号値や変数値が、記憶装置152、プロセッサ151内のレジスタ及びキャッシュメモリの少なくともいずれかに記憶される。
また、初期設定部111、トークン受信部112、データ送信部113、トークン送信部114、データ受信部115及び模擬部120の機能を実現するプログラムは、磁気ディスク、フレキシブルディスク、光ディスク、コンパクトディスク、ブルーレイ(登録商標)ディスク、DVD等の可搬記憶媒体に記憶されてもよい。 The
At least a part of the OS is executed by the
In the first embodiment, the
When the
In addition, information, data, signal values, and variable values indicating the processing results of the
The programs for realizing the functions of the
また、記憶装置652には、OSも記憶されている。
そして、OSの少なくとも一部がプロセッサ651により実行される。
プロセッサ651はOSの少なくとも一部を実行しながら、トークン受信部112、模擬部120の機能を実現するプログラムを実行する。
プロセッサ651がOSを実行することで、タスク管理、メモリ管理、ファイル管理、通信制御等が行われる。
また、トークン受信部112、模擬部120の処理の結果を示す情報やデータや信号値や変数値が、記憶装置652、プロセッサ651内のレジスタ及びキャッシュメモリの少なくともいずれかに記憶される。
また、トークン受信部112、模擬部120の機能を実現するプログラムは、磁気ディスク、フレキシブルディスク、光ディスク、コンパクトディスク、ブルーレイ(登録商標)ディスク、DVD等の可搬記憶媒体に記憶されてもよい。 Thestorage device 652 also stores an OS.
Then, at least a part of the OS is executed by theprocessor 651.
Theprocessor 651 executes a program that realizes the functions of the token receiving unit 112 and the simulation unit 120 while executing at least a part of the OS.
When theprocessor 651 executes the OS, task management, memory management, file management, communication control, and the like are performed.
Further, information, data, signal values, and variable values indicating the processing results of thetoken receiving unit 112 and the simulation unit 120 are stored in at least one of the storage device 652, the register in the processor 651, and the cache memory.
In addition, programs that realize the functions of thetoken receiving unit 112 and the simulation unit 120 may be stored in a portable storage medium such as a magnetic disk, a flexible disk, an optical disk, a compact disk, a Blu-ray (registered trademark) disk, and a DVD.
そして、OSの少なくとも一部がプロセッサ651により実行される。
プロセッサ651はOSの少なくとも一部を実行しながら、トークン受信部112、模擬部120の機能を実現するプログラムを実行する。
プロセッサ651がOSを実行することで、タスク管理、メモリ管理、ファイル管理、通信制御等が行われる。
また、トークン受信部112、模擬部120の処理の結果を示す情報やデータや信号値や変数値が、記憶装置652、プロセッサ651内のレジスタ及びキャッシュメモリの少なくともいずれかに記憶される。
また、トークン受信部112、模擬部120の機能を実現するプログラムは、磁気ディスク、フレキシブルディスク、光ディスク、コンパクトディスク、ブルーレイ(登録商標)ディスク、DVD等の可搬記憶媒体に記憶されてもよい。 The
Then, at least a part of the OS is executed by the
The
When the
Further, information, data, signal values, and variable values indicating the processing results of the
In addition, programs that realize the functions of the
また、初期設定部111、トークン受信部112、データ送信部113、トークン送信部114、データ受信部115及び模擬部120の「部」を、「回路」又は「工程」又は「手順」又は「処理」に読み替えてもよい。
また、マスタ機器100及び模擬装置600は、ロジックIC(Integrated Circuit)、GA(Gate Array)、ASIC(Application Specific Integrated Circuit)、FPGA(Field-Programmable Gate Array)といった電子回路により実現されてもよい。
なお、プロセッサ及び上記の電子回路を総称してプロセッシングサーキットリーともいう。 In addition, the “setting” of theinitial setting unit 111, the token receiving unit 112, the data transmitting unit 113, the token transmitting unit 114, the data receiving unit 115, and the simulating unit 120 is referred to as “circuit” or “process” or “procedure” or “processing”. May be read as "."
Themaster device 100 and the simulation apparatus 600 may be implemented by an electronic circuit such as a logic IC (Integrated Circuit), a GA (Gate Array), an ASIC (Application Specific Integrated Circuit), or an FPGA (Field-Programmable Gate Array).
The processor and the electronic circuit are also collectively referred to as a processing circuit.
また、マスタ機器100及び模擬装置600は、ロジックIC(Integrated Circuit)、GA(Gate Array)、ASIC(Application Specific Integrated Circuit)、FPGA(Field-Programmable Gate Array)といった電子回路により実現されてもよい。
なお、プロセッサ及び上記の電子回路を総称してプロセッシングサーキットリーともいう。 In addition, the “setting” of the
The
The processor and the electronic circuit are also collectively referred to as a processing circuit.
100 マスタ機器、111 初期設定部、112 トークン受信部、113 データ送信部、114 トークン送信部、115 データ受信部、116 機器管理テーブル記憶部、120 模擬部、121 機器管理テーブル操作部、122 トークン宛先設定部、123 仮想機器トークン受信部、124 仮想機器データ送信部、125 仮想機器トークン送信部、151 プロセッサ、152 記憶装置、153 通信インタフェース、154 機器制御インタフェース、200 スレーブ機器、211 トークン受信部、212 データ送信部、213 トークン送信部、214 データ受信部、251 プロセッサ、252 記憶装置、253 通信インタフェース、254 機器制御インタフェース、300 スレーブ機器、400 スイッチングハブ、500 スレーブ機器、600 模擬装置、615 機器管理テーブル記憶部、651 プロセッサ、652 記憶装置、653 通信インタフェース。
100 master device, 111 initial setting unit, 112 token reception unit, 113 data transmission unit, 114 token transmission unit, 115 data reception unit, 116 device management table storage unit, 120 simulation unit, 121 device management table operation unit, 122 token destination Setting unit, 123 Virtual device token receiving unit, 124 Virtual device data transmitting unit, 125 Virtual device token transmitting unit, 151 Processor, 152 Storage device, 153 Communication interface, 154 Device control interface, 200 Slave device, 211 Token receiving unit, 212 Data transmission unit, 213 token transmission unit, 214 data reception unit, 251 processor, 252 storage device, 253 communication interface, 254 device control interface, 300 slave device 400 switching hub 500 slave device 600 simulator, 615 device management table storage unit, 651 a processor, 652 a storage device, 653 communication interface.
Claims (7)
- トークンパッシングシステムに含まれる模擬装置であって、
前記トークンパッシングシステムで通信されるトークンを受信するトークン受信部と、
前記トークン受信部により受信された前記トークンの宛先が前記トークンパッシングシステムに含まれる通信機器であるか否かを判定し、前記トークンの宛先が前記通信機器でない場合に、仮想通信機器として、前記通信機器の動作を模擬する模擬部とを有する模擬装置。 A simulation device included in the token passing system,
A token receiver for receiving a token communicated by the token passing system;
It is determined whether or not the destination of the token received by the token receiving unit is a communication device included in the token passing system. When the destination of the token is not the communication device, the communication is performed as a virtual communication device. A simulation apparatus having a simulation unit that simulates the operation of the device. - 前記模擬部は、
前記通信機器から前記仮想通信機器を宛先とするトークンが送信されるように前記通信機器の設定を変更する請求項1に記載の模擬装置。 The simulation unit
The simulation apparatus according to claim 1, wherein the setting of the communication device is changed so that a token destined for the virtual communication device is transmitted from the communication device. - 前記トークンパッシングシステムには、前記通信機器として、スレーブ機器が含まれており、
前記模擬装置が、前記スレーブ機器を管理するマスタ機器である請求項1に記載の模擬装置。 The token passing system includes a slave device as the communication device,
The simulation device according to claim 1, wherein the simulation device is a master device that manages the slave device. - 前記トークンパッシングシステムには、複数の通信機器として、マスタ機器とスレーブ機器とが含まれており、
前記模擬装置が、前記マスタ機器及び前記スレーブ機器とは異なる機器である請求項1に記載の模擬装置。 The token passing system includes a master device and a slave device as a plurality of communication devices,
The simulation device according to claim 1, wherein the simulation device is a device different from the master device and the slave device. - 前記トークン受信部は、
前記トークンパッシングシステムに対する試験において、前記トークンを受信し、
前記模擬部は、
前記トークンパッシングシステムに対する試験において、前記トークン受信部により受信された前記トークンの宛先が前記通信機器であるか否かを判定し、前記トークンの宛先が前記通信機器でない場合に、前記仮想通信機器として、前記通信機器の動作を模擬する請求項1に記載の模擬装置。 The token receiver
Receiving the token in a test against the token passing system;
The simulation unit
In the test for the token passing system, it is determined whether the destination of the token received by the token receiving unit is the communication device, and when the destination of the token is not the communication device, the virtual communication device The simulation apparatus according to claim 1, which simulates the operation of the communication device. - トークンパッシングシステムに含まれるコンピュータが、前記トークンパッシングシステムで通信されるトークンを受信し、
前記コンピュータが、受信された前記トークンの宛先が前記トークンパッシングシステムに含まれる通信機器であるか否かを判定し、前記トークンの宛先が前記通信機器でない場合に、仮想通信機器として、前記通信機器の動作を模擬する模擬方法。 A computer included in the token passing system receives a token communicated in the token passing system;
When the computer determines whether the received token destination is a communication device included in the token passing system, and the token destination is not the communication device, the communication device is used as a virtual communication device. A simulation method for simulating the operation of a computer. - トークンパッシングシステムに含まれるコンピュータに、
前記トークンパッシングシステムで通信されるトークンを受信するトークン受信処理と、
前記トークン受信処理により受信された前記トークンの宛先が前記トークンパッシングシステムに含まれる通信機器であるか否かを判定し、前記トークンの宛先が前記通信機器でない場合に、仮想通信機器として、前記通信機器の動作を模擬する模擬処理とを実行させる模擬プログラム。
To the computer included in the token passing system,
A token reception process for receiving a token communicated by the token passing system;
It is determined whether the destination of the token received by the token reception process is a communication device included in the token passing system. When the destination of the token is not the communication device, the communication is performed as a virtual communication device. A simulation program that executes a simulation process that simulates the operation of a device.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017528589A JPWO2018109949A1 (en) | 2016-12-16 | 2016-12-16 | Simulation device, simulation method, and simulation program |
PCT/JP2016/087684 WO2018109949A1 (en) | 2016-12-16 | 2016-12-16 | Simulation device, simulation method and simulation program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/JP2016/087684 WO2018109949A1 (en) | 2016-12-16 | 2016-12-16 | Simulation device, simulation method and simulation program |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018109949A1 true WO2018109949A1 (en) | 2018-06-21 |
Family
ID=62558261
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/JP2016/087684 WO2018109949A1 (en) | 2016-12-16 | 2016-12-16 | Simulation device, simulation method and simulation program |
Country Status (2)
Country | Link |
---|---|
JP (1) | JPWO2018109949A1 (en) |
WO (1) | WO2018109949A1 (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040193396A1 (en) * | 2002-12-23 | 2004-09-30 | Jones John David | Systems, devices, and methods for acceptance testing a fieldbus component configuration program |
JP2012104081A (en) * | 2010-11-05 | 2012-05-31 | Virtual Mechanics Corp | Separate-type real-time vehicle motion simulation system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0248841A (en) * | 1988-08-10 | 1990-02-19 | Omron Tateisi Electron Co | Transmission right control system in bus type lan |
JPH0851737A (en) * | 1994-08-08 | 1996-02-20 | Mitsubishi Electric Corp | Coupling method of fault location system for transforming station system |
US7006963B1 (en) * | 2000-03-02 | 2006-02-28 | International Business Machines Corporation | Intelligent workstation simulation-simulation at protocol stack level 2 |
US6922663B1 (en) * | 2000-03-02 | 2005-07-26 | International Business Machines Corporation | Intelligent workstation simulation-client virtualization |
-
2016
- 2016-12-16 WO PCT/JP2016/087684 patent/WO2018109949A1/en active Application Filing
- 2016-12-16 JP JP2017528589A patent/JPWO2018109949A1/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040193396A1 (en) * | 2002-12-23 | 2004-09-30 | Jones John David | Systems, devices, and methods for acceptance testing a fieldbus component configuration program |
JP2012104081A (en) * | 2010-11-05 | 2012-05-31 | Virtual Mechanics Corp | Separate-type real-time vehicle motion simulation system |
Non-Patent Citations (1)
Title |
---|
MELLIOS, T ET AL.: "Evaluation of Industrial Networked Control Systems Using Hardware-In- The-Loop Simulation", PROC. OF 5TH INTERNATIONAL CONFERENCE ON TECHNOLOGY AND AUTOMATION - ICTA'05, 2005, pages 235 - 241, XP055493332 * |
Also Published As
Publication number | Publication date |
---|---|
JPWO2018109949A1 (en) | 2018-12-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7189383B1 (en) | Verification system and verification method | |
CN109923483B (en) | Simulation device and simulation method | |
US20140343915A1 (en) | Test environment configuration apparatus and method of operating network simulation apparatus using same | |
US20120232869A1 (en) | Industrial simulation using redirected i/o module configurations | |
CN106445800A (en) | Chip verification method and device | |
US20190369585A1 (en) | Method for determining a physical connectivity topology of a controlling development set up for a real-time test apparatus | |
WO2017113848A1 (en) | Testing method, testing platform and simulated testing device for test case | |
JP2001209407A (en) | Simulator for executing plc program | |
AU2015256526A1 (en) | Gateway offering logical model mapped to independent underlying networks | |
CN110677829A (en) | LTE-V2X test system and test method for long term evolution vehicle-to-everything | |
CN116306474A (en) | Method, device, equipment and storage medium for verifying access of network on chip | |
US10715396B2 (en) | Support apparatus, non-transitory computer readable recording medium and setting method | |
JP2015156548A (en) | network simulator and network simulation method | |
WO2018109949A1 (en) | Simulation device, simulation method and simulation program | |
CN110109372B (en) | Apparatus and method for simulating a machine or installation to be controlled | |
WO2020000949A1 (en) | Driving system for pcie link and driving debugging system | |
CN116028426A (en) | Multi-PCIe access network card and single-port network card driving method for uploading messages | |
CN114221873A (en) | Data processing method, device and system based on Linux system | |
US20140180662A1 (en) | Radio frequency communication simulation | |
CN112445187A (en) | System and method for simulating field devices in an industrial plant | |
JP2003140711A (en) | Simulator for process controller and its program and program recording medium | |
JP2019180019A (en) | Control device | |
WO2019021898A1 (en) | Development support device | |
US9081743B2 (en) | Communication system and communicaton method | |
JP2019117482A (en) | Data equivalence method, programmable controller and duplexing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
ENP | Entry into the national phase |
Ref document number: 2017528589 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: 16923889 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: 16923889 Country of ref document: EP Kind code of ref document: A1 |