Data transfer device
The data transfer apparatus addresses inefficiencies in FA systems by implementing a system with set intervals for data collection and transfer, ensuring rapid and efficient data transfer to high-order devices.
Patent Information
- Application Number
- DE112012000814
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2011-02-16
- Filing Date
- 2012-02-14
- Publication Date
- 2024-12-05
- Estimated Expiration
- 2032-02-14
AI Technical Summary
Existing data transfer devices in FA systems face inefficiencies in collecting and transferring large volumes of device data on a real-time basis due to high overheads in polling communication methods, leading to prolonged data transfer intervals and reduced efficiency.
A data transfer apparatus with a collection interval storage unit, data collection unit, temporary storage unit, and data transfer unit that collectively collects and transfers control data at intervals set by a high-order device, allowing for faster data transfer.
The apparatus enables the collection of control data with minimal cycle intervals and high-speed transfer to a high-order device, facilitating real-time data acquisition and reducing overheads.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Area
[0001] The present invention relates to a data transfer device that collects control data related to an FA (Factory Automation) system and transfers the control data to a high-order device. background
[0002] A configuration in which an FA system is caused to have a data transfer device to collect control data related to the FA system, such as device data of a programmable controller (hereinafter referred to simply as "PLC"), using the data transfer device has been widely adopted (see, for example, Patent Literature 1 and Patent Literature 2). The data transfer device transfers collected control data to a high-order device, such as a host computer. Users can use the control data transferred to the high-order device for applications such as confirming operating conditions of the FA system and fault monitoring.
[0003] Patent Literature 3 relates to a communication device having low-level controllers and sensors located in the production hall of an enterprise, wherein the communication is performed directly from the top level of the enterprise.
[0004] Patent Literature 4 relates to a control device that generates process data by collecting state detection signals output from each sensor arranged in a process in a preset fixed cycle, and generates a transmission text by collecting the transmission data transmitted in the past n times, including this time transmission data (data consisting of this time process data and this time control data), and transmits the transmission text to a server device and a human interface device.
[0005] Patent Literature 5 relates to a controller provided between a computer and a PLC. The computer is provided with a plurality of network-capable communication parts, a shared memory, and a control part for storing the same information in the shared memory and a memory within the PLC corresponding to the data transmitted via the communication parts. sent / received.
[0006] Patent Literature 6 relates to a controller in which each of the PLC is equipped with a processor having a user memory and an application program, and an Ethernet interface is provided with a physical layer, a data link layer, an IP, a UDP, and a data transmission / reception function part.
[0007] Patent Literature 7 relates to a controller that includes an I / O memory and uses a device discovery service to detect a device connected to it via a network and to obtain its device identification data. Citation listPatent literature Patent Literature 1: Japanese Patent Application Laid-Open No. 2003-114908 Patent Literature 2: Japanese Patent Application Laid-Open No. 2006-215999 Patent literature 3: CA 2 549 321 A1 Patent literature 4: JP 2002- 297 206 A Patent literature 5: JP 2001- 100 810 A Patent Literature 6: 2004-88 697 A Patent literature 7: US 6,725,288 B2 SummaryTechnical problem
[0008] In recent years, there has been a need to acquire device data in PLCs on a real-time basis. Furthermore, depending on the size of a user program, the control data expected to be acquired is enormous. Because device data in PLCs is updated at a very high speed (e.g., on the order of milliseconds), the data transfer device must collect device data that has been updated sequentially, with a cycle corresponding to an update interval, and transfer the collected device data as soon as possible after the completion of the collection, in order to acquire a large volume of device data for the host computer on a real-time basis.
[0009] Generally, in the data transfer device used in the FA system, a polling communication method is adopted as a data transfer method. However, according to this method, the overhead for transmitting a data transfer request is large, and as a result, a data transfer interval becomes long (for example, on the order of 100 milliseconds), the data transfer efficiency is low, and the host computer cannot acquire the device data on a real-time basis.
[0010] The present invention has been achieved in view of the above circumstances, and an object thereof is to provide a data transfer device that can collect control data related to an FA system with a cycle as short as possible and transfer the collected control data to a high-order device at a high speed. Solution to the problem
[0011] In order to solve the above-mentioned problems and to achieve the object, the present invention provides a data transfer device comprising: a collection interval storage unit that stores therein a collection interval set by a high-order device; a data collection unit that reads a collection interval stored in the collection interval storage unit and collects control data related to an FA system at the read collection interval; a transfer interval storage unit that stores therein a transfer interval set by the high-order device that is equal to or larger than the collection interval stored in the collection interval storage unit; a temporary storage unit that accumulates and stores the control data collected by the data collection unit;and a data transfer unit that reads a transfer interval stored in the transfer interval storage unit and transfers control data collectively collected by the data collection unit, which is accumulated and stored in the temporary storage unit, to the high-order device at the read transfer interval; Advantageous effects of the invention
[0012] The data transfer device according to the present invention can collect control data related to an FA system with as short a cycle as possible and transfer the collected control data to a high-order device at a high speed. Short description of the drawings Fig. 1 is an explanatory diagram of a configuration example of an FA system using a data transfer device according to a first embodiment. Fig. 2 is an explanatory diagram of a functional configuration of a data transfer unit according to the first embodiment. Fig. 3 is an explanatory diagram of an outline of a configuration of a packet related to transfer data transferred by a data transfer unit. Fig. 4 is a flowchart for explaining an operation of a data collection unit. Fig. 5 is a flowchart for explaining an operation of a data transfer unit. Fig. 6 is a timing chart for explaining a transmission and reception timing of a data transfer between a host computer and a data transfer unit. Fig. 7 is a timing chart for explaining a transmission and reception timing of a data transfer between a host computer and a data transfer unit. Fig. 8 is an explanatory diagram of an outline of a configuration of a packet related to transfer data transferred by the data transfer unit. Fig. 9 is an explanatory diagram of a functional configuration of a data transfer unit according to a second embodiment. Fig. 10 is an explanatory diagram of a configuration example of an FA system using a data transfer unit according to a third embodiment. Fig. 11 is an explanatory diagram of a functional configuration of the data transfer unit according to the third embodiment. Fig. 12 is a flowchart for explaining a transmission and reception timing of a data transfer between a host computer and a data transfer unit. Description of the embodiments
[0013] Exemplary embodiments of data transfer devices according to the present invention will be explained in detail below with reference to the drawings. The present invention is not limited to the embodiments. First embodiment
[0014] Fig. 1 is an explanatory diagram of a configuration example of an FA system using a data transfer device according to a first embodiment of the present invention. As shown in Fig. As shown in Figure 1, the FA system includes a PLC 1, a host computer 2, and a controlled device 3. The PLC 1 controls the controlled device 3 based on a previously created user program. The controlled device 3 can be of any type; however, for example, a robot or a servo amplifier corresponds thereto. A PLC other than the PLC 1 can be connected to the PLC 1 as the controlled device 3, and another controlled device can be further connected to it via the PLC as the controlled device 3.
[0015] The PLC 1 uses a state machine modeled after a relay circuit as an operation model, and the aforementioned user program is generally described using a programming language in which a relay circuit is encoded. The PLC 1 sequentially updates device data by which a contact point of an input / output relay or an internal relay is modeled by repeatedly executing the user program. The PLC 1 controls the controlled device 3 using the device data corresponding to the contact point of the input / output relay between the controlled device 3 and the PLC 1. As the PLC, there is a type capable of executing an advanced calculation, such as a trigonometric function, by executing the user program described using a high-level language such as C language.However, the embodiments of the present invention can be applied to any type of PLCs that sequentially update the device data.
[0016] The PLC 1 includes a CPU unit 11, a data transfer unit 12 as the data transfer device, and an input / output unit 13. The CPU unit 11, the data transfer unit 12, and the input / output unit 13 are connected to each other via a bus.
[0017] The CPU unit 11 has a device data storage unit 111 that stores device data therein, and sequentially updates the device data stored in the device data storage unit 111 by executing the user program.
[0018] The input / output unit 13 is a collective term for a unit that transmits the corresponding device data of the device data stored in the device data storage unit 111 to the controlled device 3, a unit that generates command data for controlling the controlled device 3 while processing the corresponding device data and transmits the command data to the controlled device 3, and a unit that updates the device data with output data output by the controlled device 3 or processed output data acquired by processing the output data. A suitable unit is selected and used depending on the type of the controlled device 3.For example, if a temperature sensor is provided for the controlled device 3 and it is desired to input temperature information from the temperature sensor, a temperature input unit is selected. If the controlled device 3 is a servo amplifier and it is desired to output a position command to the servo amplifier, a positioning unit is selected.
[0019] The data transfer unit 12 is connected to the host computer 2 via a communication line and collects the device data stored in the device data storage unit 111 and transfers the collected device data to the host computer 2 via the communication line. The communication line may be based on any protocol. However, it is assumed here that the communication line is Ethernet. ® and a communication system via this communication line follows TCP / IP.
[0020] Fig. 2 is an explanatory diagram of a functional configuration of the data transfer unit according to the first embodiment of the present invention. As shown in Fig. 2, the data transfer unit 12 includes a setting storage unit 121, a data transfer unit 125, a ring buffer 126, a data collection unit 127, and a timing unit 128. The host computer 2 includes a condition setting unit 21 that performs condition setting related to collection and transfer of device data for the data transfer unit 12, and a transfer data reception unit 22 that receives the transfer data transferred from the data transfer unit 12.
[0021] The setting storage unit 121 is constituted by a storage device such as a register or a memory, and stores therein various conditions set by the condition setting unit 21. Specifically, the setting storage unit 121 includes a collection interval storage unit 123 that stores therein a collection interval of the device data, a transfer interval storage unit 122 that stores therein a transfer interval of the collected device data, and a transfer data storage position storage unit 124 that stores therein a storage position (address) of the device data to be collected. The collection interval of the device data is expressed, for example, by the time period of the collection interval or the number of scans of the user program, each of which corresponds to the collection interval.The transfer interval of the data transfer is expressed, for example, by the time period of the transfer interval or the number of times the device data is collected corresponding to the transfer interval. The transfer interval with a value equal to or greater than the collection interval stored in the collection interval storage unit 123, when calculated in terms of time period, is stored in the transfer interval storage unit 122. It may be configured such that the storage location of the device data is addressed by the name of the device data stored in the corresponding storage location.
[0022] The timing unit 128 is a counter that outputs the current time.
[0023] The data collection unit 127 acquires the storage position and collection interval of the transfer data from the transfer data storage position storage unit 124 and the collection interval storage unit 123, respectively, and collects the device data at the collection interval set in the collection interval storage unit 123 from the storage position set in the transfer data storage position storage unit 124 in the device data storage unit 111. Because the data collection unit 127 regularly collects control data related to the FA system without any request each time from the host computer 2, this means that the device data can be collected with a shorter cycle than in a case of collecting the device data while waiting for a request from the host computer 2. The data collection unit 127 stores the collected device data in the ring buffer 126.
[0024] The data collection unit 127 acquires the current time from the timing unit 128 each time the device data is collected and adds the acquired current time to the collected device data. When a plurality of storage locations have been set in the transfer data storage location storage unit 124, the data collection unit 127 acquires the device data from the set storage locations. In this way, when a plurality of device data items are to be acquired in a collection, the data collection unit 127 gives a current time to the acquired device data items. A device data group acquired by a collection is referred to as "collection data."
[0025] The ring buffer 126 is constituted by a storage device such as a register or a memory, and functions as a temporary storage unit that accumulates and stores device data collected by the data collection unit 127 and not yet transferred to the transfer data receiving unit 22 by the data transfer unit 125 described later. The configuration of the storage device that realizes the function as the temporary storage part is not limited to the ring buffer configuration.
[0026] The data transfer unit 125 reads all of the collection data items accumulated and memorized in the ring buffer that have not yet been transferred at the transfer interval set in the transfer interval storage unit 122, and transmits the read collection data items to the transfer data receiving unit 22 in one packet in a clump (in other words, collectively).
[0027] Fig. 3 is an explanatory diagram of an outline of a configuration of a packet related to transfer data transmitted by the data transfer unit 125. As shown in Fig. 3, the packet is configured to include a sequence number, a response acknowledgment number (ACK number), a checksum, and transfer data.
[0028] The transfer data is composed of a header and a body consisting of device data (collection data) acquired from the ring buffer 126. The body of the transfer data contains four collection data items (collection data items 1 to 4), and each collection data item contains one or more device data items collected from the device data storage unit 111 through collection. The size per collection data item (e.g., the number of words), the number of collection data items included in the body, and the like are described in the header, and the header is generated by the data transfer unit 125.When the number of collection data items or the size of a collection data item is larger than a predetermined data size that can be transferred in one packet, the data transfer unit 125 divides the transfer data into a plurality of packets to transfer the respective packets.
[0029] The sequence number is a number that indicates the position of the header of the transfer data that has been added to it in the transfer data to be transferred in a series of packets. The response acknowledgment number is a sequence number expected in a next packet to be received, which is set for a packet (ACK packet) to be transmitted as a response to the previous packet by a receiving side of the previous packet.
[0030] For example, when the transfer data receiving unit 22 completes reception of a packet with a sequence number of 100 containing 300 bytes of transfer data, the transfer data receiving unit 22 returns a packet with a response acknowledgment number of 400. The data transferring unit 125 can recognize that a transfer of 300 bytes of transfer data has been successfully completed by confirming that the value obtained by subtracting the sequence number of 100 of the packet sent last minute from the response acknowledgment number matches 300, which is the number of bytes of transferred transfer data. The data transferring unit 125 can transmit a packet containing the next transfer data by adding a sequence number of 400 to the packet.
[0031] The checksum is a checksum value calculated for the packet containing the transferred data. The receiving end performs an error check on the transferred data by comparing the checksum calculated for the packet with the checksum value described in the packet.
[0032] An operation of the data transfer unit 12 according to the first embodiment will be described with reference to Fig. 4 to Fig. 7 explained. Fig. 4 is a flowchart for explaining an operation of the data collection unit 127.
[0033] As in Fig. As shown in Figure 4, when the data transfer unit 12 is to start a data transfer, the data collection unit 127 first acquires a collection interval from the collection interval storage unit 123 (step S1). Here, the collection interval is assumed to be set by time. Next, the data collection unit 127 acquires a storage location of the transfer data to be transferred from the transfer data storage location storage unit 124 (step S2). The execution order of the processes at steps S1 and S2 is not limited to this.
[0034] Subsequently, after starting the operation or after performing an operation in step S4 described later, the data collection unit 127 determines whether or not the time set as the collection interval in the collection interval storage unit 123 (collection interval time) has passed (step S3). If the collection interval time has not yet passed (NO in step S3), the data collection unit 127 performs a determination of step S3 again.
[0035] When the collection interval time has passed (YES at step S3), the data collection unit 127 acquires the device data to be transferred from a location corresponding to the storage location set in the transfer data storage location storage unit 124 in the device data storage unit 111 (step S4). If a plurality of storage locations have been set, the data collection unit 127 acquires the device data from locations corresponding to the set storage locations.
[0036] It is described here that the data collection unit 127 directly acquires the device data from the device data storage unit 111, but the data collection unit 127 and the CPU unit 11 may be configured such that the data collection unit 127 notifies the CPU unit 11 of a storage location of the device data, and the CPU unit 11 transmits the device data stored at the storage location obtained by the notification to the data collection unit 127. The data collection unit 127 and the CPU unit 11 may also be configured such that the data collection unit 127 notifies the CPU unit 11 of a storage location and a collection cycle, and the CPU unit 11 transmits the device data stored at the storage location obtained by the notification to the data collection unit 127 at the collection cycle obtained by the notification.
[0037] After performing the process of step S4, the data collection unit 127 acquires the current time from the timing unit 128 (step S5) and stores the device data acquired by the process of step S4 in the ring buffer 126 with the time acquired by the process of step S5 added to the device data (step S6). After performing the process of step S6, the data collection unit 127 proceeds to step S3 to perform the determination process of step S3.
[0038] Fig. 5 is a flowchart for explaining an operation of the data transfer unit 125. As shown in Fig. As shown in Figure 5, when the data transfer unit 12 is to start a data transfer, the data transfer unit 125 acquires a transfer interval from the transfer interval storage unit 122 (step S11). It is assumed here that the transfer interval is specified by the number of collection data items.
[0039] The data transfer unit 125 then determines whether or not the collection data items for the number set as the transfer interval in the transfer interval storage unit 122 that have not yet been transferred are accumulated in the ring buffer 126 (step S12). If the untransferred collection data items for the set number are not accumulated therein (NO in step S12), the data transfer unit 125 performs the determination process of step S12 again.
[0040] When the collection data items for the set number are accumulated in the ring buffer 126 (YES at step S12), the data transfer unit 125 acquires all the untransferred data of the collection data items accumulated in the ring buffer 126 (step S13) and adds a header to the acquired collection data to generate transfer data (step S14). Further, the data transfer unit 125 adds a sequence number and the like to the generated transfer data, thereby generating a packet related to the transfer data, and transmits the packet to the transfer data receiving unit 22 (step S15).
[0041] The data transfer unit 125 determines whether or not transmission of the packet has been successfully completed through the process of step S15 (step S16). Specifically, the data transfer unit 125 receives an ACK packet from the transfer data receiving unit 22 to confirm whether or not the transfer data has been successfully transmitted based on the response confirmation number described in the received ACK packet. If it is confirmed that the transfer data has been successfully transmitted, the data transfer unit 125 determines that the transmission completion can be confirmed (YES at step S16) and proceeds to step S12 to perform the determination process of step S12.
[0042] After step S15, if a timeout period has passed without receiving the ACK packet, or if it can be confirmed that the transfer data was not successfully transmitted based on the response confirmation number upon receipt of the ACK packet, the data transfer unit 125 determines that the transmission completion cannot be confirmed (NO in step S16) and confirms whether a connection with the transfer data receiving unit 22 has been established (step S17). If connection establishment cannot be confirmed due to a disconnection of the communication line or the like (NO in step S17), the data transfer unit 125 performs the determination process of step S17 until the connection establishment can be confirmed.
[0043] If the connection establishment can be confirmed (YES at step S17), the data transfer unit 125 retransmits the packet generated by the process of step S15 (step S18). The data transfer unit 125 then confirms transmission completion through a similar process to that of step S16 (step S19). If the transmission completion can be confirmed (YES at step S19), the data transfer unit 125 proceeds to step S13 to perform the process of step S13. If the transmission completion cannot be confirmed (NO at step S19), the data transfer unit 125 proceeds to step S17 to perform the determination process of step S17.
[0044] In the explanation for step S18, it was explained that the data transfer unit 125 simply retransmits the packet. However, if the transmission completion can be confirmed in the determination process at step S16 or S19, the data transfer unit 125 may delete the data acquired from the ring buffer 126 and reacquire the device data from the ring buffer 126 at step S18 to regenerate the packet from the acquired device data.
[0045] Fig. 6 is a timing chart for explaining a transmission and reception timing of a data transfer between the host computer 2 and the data transfer unit 12 when the number of collection data items is set to “1” as the transfer interval. Fig. Fig. 7 is a timing chart for explaining a transmission and reception timing of a data transfer when the number of collection data items is set to “4” as the transfer interval. Fig. 6 and Fig. 7, a transfer of the ACK packet is not shown.
[0046] If the collection interval is “1”, as in Fig. As shown in Figure 6, the host computer 2 transmits a list of storage positions of the transfer data, the collection interval, and the transfer interval "1" as a transfer start command. The command is transmitted through the condition setting unit 21. The data transfer unit 12 then stores the transmitted various conditions in the corresponding storage units 122 to 124 in the setting storage unit 121, respectively, and returns a response of "Transfer Start OK." Thereafter, the data transfer unit 12 performs data transfer whenever the device data is collected, in cooperation with the data collection unit 127 and the data transferring unit 125. When the host computer 2 transmits a transfer stop command, the data transfer unit 12 stops the data transfer and returns a response of "Transfer Stop OK." When the collection interval is "1," as shown in Figure 6, Fig. As shown in Figure 8, a packet including a collection data item is transmitted as a packet related to the transfer data.
[0047] If the collection interval is “4”, as in Fig. As shown in Figure 7, the host computer 2 first transmits a list of storage positions of the transfer data, the collection interval, and the transfer interval "4" as a transfer start command. The data transfer unit 12 then stores the transmitted various conditions in the corresponding storage units 122 to 124 in the setting storage unit 121, respectively, and returns a transfer start OK response. Thereafter, the data transfer unit 12 generates the Fig. 3 whenever four device data items are collected, and transmits the packet to the host computer 2 in cooperation with the data collecting unit 127 and the data transferring unit 125. When the host computer 2 transmits a transfer stop command, the data transferring unit 12 stops the data transfer and returns a transfer stop OK response.
[0048] The host computer 2 performs a checksum check and transmits the ACK packet whenever a packet related to the transfer data is received. Accordingly, as the number of collection data items included in a packet decreases, the overhead required for the checksum check and transmitting the ACK packet increases relatively, and as a result, the load imposed on the host computer 2 increases. At the time of setting the various conditions of the host computer 2, users can set the collection interval, taking into account the performance of the host computer 2.
[0049] The host computer 2 may be configured to automatically change the collection interval based on a predetermined rule, based on various conditions such as the load required for the transfer, and the received device data.
[0050] Fig. 12 is a flowchart for explaining a transmission and reception timing of a data transfer between the host computer 2 and the data transfer unit 12 when the number of collection data items is set to "1" as the transfer interval, and the collection interval is changed from a first collection interval to a second collection interval shorter than the first collection interval in the middle of the transfer. Fig. 12 the transfer of the ACK packet is not shown.
[0051] As in Fig. As shown in Figure 12, the host computer 2 first transmits a list of storage positions of the transfer data, the first collection interval, and the transfer interval "1" as a transfer start command. The data transfer unit 12 then stores the transmitted various conditions in the corresponding storage units 122 to 124 in the setting storage unit 121, respectively, and returns a "transfer start OK" response. Thereafter, the data collection unit 127 reads the first collection interval from the collection interval storage unit 123, or the respective storage position of the transfer data to be transferred from the transfer data storage position storage unit 124, and the data transfer unit 125 reads the transfer interval from the transfer interval storage unit 122. The data transfer unit 12 then generates the Fig. 8, whenever the device data is collected at the first collection interval, and transmits the packet to the host computer 2, in cooperation with the data collection unit 127 and the data transfer unit 125.
[0052] When the transfer data receiving unit 22 of the host computer 2 analyzes the device data in the transferred packet and determines that it is desirable to acquire the device data with a shorter cycle, the transfer data receiving unit 22 notifies the condition setting unit 21 to transfer the packet with a shorter cycle. The condition setting unit 21 transmits the list of storage positions of the same transfer data, the second collection interval, and the same transfer interval "1" as a transfer change command.
[0053] The data transfer unit 12 then stores the transmitted various conditions in the corresponding storage units 122 and 123 in the setting storage unit 121, respectively, and returns a transfer change OK response. Accordingly, various types of information are updated in the storage units 122 and 123. Thereafter, the data collection unit 127 reads the second collection interval from the collection interval storage unit 123, or the storage position of the transfer data to be transferred from the transfer data storage position storage unit 124, and the data transfer unit 125 reads the transfer interval from the transfer interval storage unit 122. Then, the data transfer unit 12 generates the Fig. 8 whenever the device data is collected at the second collection interval, and transmits the packet to the host computer 2 in cooperation with the data collection unit 127 and the data transfer unit 125.
[0054] In Fig. 12 describes the transfer command for changing the collection interval. However, the transfer command may be arranged to change the list of storage positions of the transfer data or the transfer interval. The transfer data receiving unit 22 analyzes the device data in the transferred packet and notifies the condition setting unit 21 to transfer the packet at a shorter cycle. However, the transfer data receiving unit 22 may notify the condition setting unit 21 to change the cycle based on the current time without analyzing the device data. Namely, the host computer 2 may update the transfer interval, the collection interval, or the storage position of the transfer data to be transferred according to any rule.In addition to the embodiment in which the host computer 2 automatically updates the transfer interval, the collection interval, or the storage position of the transfer data to be transferred, a user may further operate the host computer 2 to update the transfer interval, the collection interval, or the storage position of the transfer data to be transferred at a desired time.
[0055] As described above, according to the first embodiment of the present invention, the configuration includes the data collection unit 127 that regularly collects device data without any request each time from the host computer 2 as a high-order device, the data transfer unit 125 that transfers the device data collected by the data collection unit 127 to the host computer 2, the transfer interval storage unit 122 that stores therein the transfer interval set by the host computer 2, which is equal to or longer than the collection interval of the device data by the data collection unit 127, and the ring buffer 126 as the temporary storage unit that accumulates and stores therein the device data collected by the data collection unit 127 and has not yet been transferred to the host computer 2 by the data transfer unit 125.The data transfer unit 125 collectively transfers the device data accumulated and stored in the ring buffer 126 to the host computer 2 at the transfer interval set in the transfer interval storage unit 122. Accordingly, the device data can be collected with a cycle as short as possible, and the collected control data can be transferred to the host computer 2 at high speed. Therefore, the user can confirm the device data in real time using the host computer 2 by setting the collection interval equivalent to an update interval of the device data and setting the transfer interval equal to the collection interval. Furthermore, the user can reduce the overhead required for data transfer of the transferred data by setting the transfer interval longer than the collection interval.
[0056] After transferring the device data to the host computer 2, the data transfer unit 125 further determines whether or not the host computer 2 has received the transferred device data. If the host computer 2 has not received the device data, the data transfer unit 125 retransmits the device data after establishing a connection with the host computer 2. Accordingly, even if the network between the data transfer unit 12 and the host computer 2 is temporarily disconnected, the device data can be retransmitted.
[0057] The collection interval storage unit 123 storing the collection interval therein is further provided, and the data collection unit 127 collects the device data at the collection interval set in the collection interval storage unit 123. Accordingly, the user can collect the device data at a desired interval.
[0058] Furthermore, the transfer data storage position storage unit 124 is provided, which stores therein the storage position of the device data to be transferred in the device data storage unit 111, and the data collection unit 127 collects the device data stored at the storage position set in the transfer data storage position storage unit 124. Accordingly, the user can collect the desired device data.
[0059] Further, when the collection interval stored in the collection interval storage unit 123 is updated by the condition setting unit 21, the data collection unit 127 reads the updated collection interval and changes the interval at which the transfer data is collected to the read updated collection interval. Accordingly, the user can dynamically change the collection interval without stopping data transfer.
[0060] When the storage position stored in the transfer data storage position storage unit 124 is updated by the condition setting unit 21, the data collection unit 127 reads the updated storage position and changes the storage position of the transfer data to be transferred to the updated storage position. Accordingly, the user can dynamically change the device data to be transferred without stopping the data transfer.
[0061] When the transfer interval stored in the transfer interval storage unit 122 is updated by the condition setting unit 21, the data transfer unit 125 reads the updated transfer interval and changes the interval at which the transfer data is transferred to the read updated transfer interval. Accordingly, the user can dynamically change the transfer interval of the transfer data without stopping the data transfer.
[0062] The transfer data receiving unit 22 issues a notification to the condition setting unit 21 to change the collection interval, transfer interval, or storage location of the transfer data to be transferred based on a predetermined rule. The condition setting unit 21 then updates the setting of the collection interval, transfer interval, or storage location of the transfer data to be transferred based on the notification. Accordingly, the setting of the collection interval, transfer interval, or storage location of the transfer data to be transferred can be automatically changed without stopping the data transfer. Second embodiment
[0063] Fig. 9 is an explanatory diagram of a functional configuration of a data transfer unit according to a second embodiment of the present invention. Reference numeral 42 denotes the data transfer unit according to the second embodiment, and reference numeral 4 denotes the PLC including the data transfer unit 42 to distinguish these elements from those of the first embodiment. Constituent elements with functions identical to those of the first embodiment are denoted by the same reference numerals as in the first embodiment, and detailed explanations thereof are omitted.
[0064] As in Fig. 9, the PLC 4 includes the data transfer unit 42 and the CPU unit 11. Although not shown in Fig. 9, the PLC 4 also includes the input / output unit 13 as in the first embodiment to control the controlled device 3 via the input / output unit 13.
[0065] The data transfer unit 42 includes the setting storage unit 121, the data transfer unit 125, the ring buffer 126, the data collection unit 127, the timing unit 128, and a device data writing unit 421. The setting storage unit 121 further includes the transfer interval storage unit 122, the collection interval storage unit 123, and the transfer data storage position storage unit 124.
[0066] The host computer 2 includes the condition setting unit 21, the transfer data receiving unit 22, and a device data setting unit 23. A user can set the device data in the CPU unit 11 using the device data setting unit 23.
[0067] Upon receiving a device data set command from the device data setting unit 23, the device data writing unit 421 sets the device data in the device data storage unit 111 provided in the CPU unit 11 based on the received set command. The device data set command includes, for example, a storage location of the device data to be set and a set content. Specifically, the device data writing unit 421 performs an operation to rewrite the device data at the specified storage location with the specified set content.
[0068] For example, in a production line for performing an exposure process of a semiconductor integrated circuit, defect inspection is appropriately performed for wafers on the production line. During normal operation, a user causes the data collection unit 127 to collect respective device data from an address where a lot number, a defect inspection result, and measured values (a gas temperature and an exposure amount) related to a process condition are stored, and causes the data transfer unit 125 to sequentially transfer the collected device data to the host computer 2, thereby making it possible to monitor the defect inspection result and various measured values for each lot.Furthermore, according to the second embodiment of the present invention, when an abnormality on the production line is detected by monitoring the various types of data, the user can change the process condition as desired by transmitting a set command to the device data writing unit 421.
[0069] As described above, according to the second embodiment, the configuration is further provided with the device data writing unit 421, which receives a device data set command transmitted from the host computer 2 to update the device data stored in the device data storage unit 111 based on the received set command. Accordingly, the user can feed back the operating condition check result to the FA system based on the device data transferred to the host computer 2. Third embodiment
[0070] Fig. 10 is an explanatory diagram of a configuration example of an FA system using a data transfer unit according to a third embodiment of the present invention. As shown in Fig. As shown in Figure 10, the FA system includes a PLC 5, the host computer 2, and a plurality of controlled devices 3. The PLC 5 and the controlled devices 3 are each connected to each other through a network employing a token circulation type communication system, and the PLC 5 acts as a host device for the network. The token circulation type communication system refers to a communication system in which a shared memory for communication is provided in each device via the network, and a unique token is circulated on the network, and only the device holding the token can be authorized to write to the shared memory, which corresponds to, for example, CC-Link IE. In the present embodiment, transmission and reception of control data between each controlled device and the PLC 5 are performed via the shared memory.
[0071] The PLC 5 includes the CPU unit 11 having the device data storage unit 111, a data transfer unit 52 as the data transfer device according to the third embodiment, and a token circulation type network unit 53.
[0072] The token circulation type network unit 53 is an interface unit for connecting the controlled device 3 and the PLC 5 to each other through the above-described token circulation type network and circulates a token based on a command from the CPU unit 11. The token circulation type network unit 53 transmits control data in the shared memory to the data transfer unit 52 whenever the token is returned.
[0073] The data transfer unit 52 transfers the control data received from the token circulation type network unit 53 to the host computer 2.
[0074] Fig. 11 is an explanatory diagram of a functional configuration of the data transfer unit 52 according to the third embodiment. As shown in Fig. As shown in Figure 11, the data transfer unit 52 includes a setting storage unit 521, the data transfer unit 125, the ring buffer 126, a data collection unit 527, and the timing unit 128. The setting storage unit 521 further includes the transfer interval storage unit 122. The host computer 2 includes the condition setting unit 21 and the transfer data receiving unit 22.
[0075] The data collection unit 527 receives control data transmitted by the token circulation type network unit 53 and stores the received control data in the ring buffer 126. At the time of storing the control data in the ring buffer 126, the data collection unit 527 acquires the current time from the timing unit 128 and adds the acquired current time to the control data to store the control data in the ring buffer 126.
[0076] The data transfer unit 125 transfers the control data stored in the ring buffer 126 to the transfer data receiving unit 22. In the third embodiment, the transfer interval is set in the transfer interval storage unit 122 based on the time or the number of receptions of the control data, and the data transfer unit 125 acquires and transmits the control data accumulated in the ring buffer 126 at the set transfer interval.
[0077] As described above, according to the third embodiment of the present invention, the FA system includes the token circulation type network unit 53 as an FA device that establishes the token circulation type network in which transmission and reception of control data are performed via the shared memory, and outputs the control data in the shared memory while holding a token. The data collection unit 527 collects the control data output by the token circulation type network unit 53. Accordingly, the data transfer unit 52 can collect the control data in synchronization with a token circulation cycle. List of reference symbols 1, 4, 5 PLC 2 host computers 3 Controlled device 11 CPU unit 12 Data transfer unit 13 Input / output unit 21 Condition setting unit 22 Transfer data receiving unit 23 Device data setting unit 42 Data transfer unit 52 Data transfer unit 53 Token Circulation Type Network Unit 111 Device data storage unit 121 Setting storage unit 122 Transfer interval storage unit 123 Collection interval storage unit 124 Transfer data storage position storage unit 125 Data transfer unit 126 ring buffers 127 Data Collection Unit 128 Timing Unit 400 sequence number 521 Setting storage unit 527 Data Collection Unit
Claims
[1] Data transfer device (12) comprising: a collection interval storage unit (123) storing therein a collection interval set by a high-order device (2); a data specification storage unit that stores a type of control data related to an FA system set by the high-order device (2); a data collection unit (127) that reads a collection interval stored in the collection interval storage unit (123) and the type of control data stored in the data specification storage unit, and collects control data of the read type from the FA system at the read collection interval; a transfer interval storage unit (122) storing therein a transfer interval set by the high-order device (2) which is equal to or greater than the collection interval stored in the collection interval storage unit (123); a temporary storage unit (126) that accumulates and stores the control data collected by the data collection unit (127); and a data transfer unit (125) that reads a transfer interval stored in the transfer interval storage unit (122) and transfers control data collected collectively by the data collection unit (127), which is accumulated and stored in the temporary storage unit (126), to the high-order device (2) at the read transfer interval, wherein when a request to respecify a collection interval, a type of control data, or a transfer interval is received from the high-order device (2), a stored content of the collection interval storage unit (123), the data specification storage unit, or the transfer interval storage unit (122) is rewritten with a content respecified by the request without stopping the data collection unit (127) and the data transfer unit (125), and after a stored content of the collection interval storage unit (123), the data specification storage unit, or the transfer interval storage unit (122) has been rewritten, the data collection unit (127) reads again stored contents of the collection interval storage unit (123) and the data specification storage unit without stopping its collection operation, and the data transfer unit (125) reads again a stored content of the transfer interval storage unit (122) without stopping its transfer operation, and then the data collection unit (127) starts its collection operation based on the re-read stored content, and the data transfer unit (125) starts its transfer operation based on the re-read stored content. [2] The data transfer device (12) according to claim 1, wherein, after transferring the control data to the high-order device (2), the data transfer unit (125) determines whether or not the high-order device (2) has received the transferred control data, and, if the high-order device (2) has not received the control data, retransmits the control data after establishing a connection with the high-order device (2). [3] The data transfer device (12) according to claim 1 or 2, wherein the FA system includes a programmable controller (1) having a device data storage unit (111) storing sequentially updated device data therein, and control data to be collected by the data collection unit (127) is device data stored in the device data storage unit (111). [4] A data transfer device (12) according to claim 3, further comprising a collection interval storage unit (123) storing therein a collection interval set by the high-order device (2), wherein the data collection unit (127) collects the device data at the collection interval set in the collection interval storage unit (123). [5] The data transfer device (12) according to claim 3, wherein, using a storage position of device data to be transferred in the device data storage unit (111), the type set by the high-order device (2) is described, and the data collection unit (127) collects device data stored at a storage position set in the data specification storage unit. [6] The data transfer device (42) according to claim 3, further comprising a device data writing unit (421) that receives a set command of device data transmitted from the high-order device (2) and updates the device data stored in the device data storage unit (111) based on the received set command. [7] Data transfer device (52) according to claim 1 or 2, wherein the FA system comprises an FA device (53) establishing a token circulation type network in which transmission and reception of control data to each other are performed via a shared memory, and outputs control data in the shared memory at the time of holding a token, and the data collection unit (527) collects control data output by the FA device (53). [8] The data transfer device (12) of claim 1, wherein the high-order device (2) specifies a new stored collection interval based on a predetermined rule. [9] A data transfer device (12) according to claim 1, wherein the high-order device (2) specifies a new stored transfer interval based on a predetermined rule. [10] The data transfer device (12) according to claim 1, wherein the high-order device (2) specifies a new data type based on a predetermined rule.
Citation Information
Patent Citations
Production of crystal silicon
JP2001010810A
Data collecting device and data collecting system and program product
JP2003114908A
Data collection system
JP2006215999A
Model for communication between manufacturing and enterprise levels
CA2549321A1
controller
JP2001100810A
