Counter unit and control method, control device and control system thereof

By introducing the timing adjustment value Ta into the counter unit, the problems of limited actuator output timing amplitude and low convenience in the prior art are solved, and high-precision and flexible output timing adjustment is achieved, independent of the pulse signal period.

CN113474734BActive Publication Date: 2024-09-20OMRON CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080014045.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-03-08
Filing Date
2020-02-03
Publication Date
2024-09-20
Estimated Expiration
2040-02-03

AI Technical Summary

Technical Problem

When the existing counter unit adjusts the actuator output timing, it cannot make the timing amplitude smaller than the period of the pulse signal, resulting in a large timing error. Furthermore, when the pulse signal period changes, user convenience is low and the output timing cannot be maintained consistent.

Method used

By introducing the timing adjustment value Ta in the counter unit, the output timing is independent of the period of the pulse signal and adjusted to the time point indicated by the timing adjustment value after the time point when the actual measured value coincides with the target value, ensuring the accuracy and accuracy of the output timing. flexibility.

Benefits of technology

It achieves high-precision adjustment of the actuator output timing, which is independent of the pulse signal period, reducing timing errors and improving user convenience. The output timing can be easily adjusted when the pulse signal period changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113474734B_ABST
    Figure CN113474734B_ABST
Patent Text Reader

Abstract

The present invention provides a counter unit and a control method, a control device and a control system thereof, which adjust the timing of output to an actuator independently of the cycle of a pulse signal. The counter unit (10) performs output to an actuator (40) at a time point when a measured value measured using a pulse signal is determined to be consistent with a target value and a waiting time indicated by a timing adjustment value (Ta) received from a PLC (20) has passed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a counter unit that outputs an action instruction to an actuator when it is determined that the position, cumulative amount, etc. of a workpiece meet prescribed conditions, and a control method, control device, and control system thereof. Background Art

[0002] In the past, it is known that a counter unit is used to adjust the timing of causing an actuator to perform a predetermined action at a production site such as a factory. For example, the following patent document 1 discloses a technology: a counter unit that uses a pulse signal from a flow sensor to quantitatively extract a liquid, and corrects a reference set pulse number corresponding to the quantitative extraction according to a change in the cycle length of the pulse signal.

[0003] Prior art literature

[0004] Patent Literature

[0005] Patent Document 1: Japanese Patent Publication No. 11-45374 Summary of the invention

[0006] Problems to be solved by the invention

[0007] However, in the conventional counter unit as described above, the timing of the output to the actuator is adjusted by increasing or decreasing the target value compared with the actual value measured by the number of pulses (i.e., the count value) of the pulse signal, and therefore there are the following problems. That is, the conventional counter unit that adjusts the output timing by increasing or decreasing the target value has the following problem: the amplitude of the adjustable timing cannot be made smaller than the period of the pulse signal, and thus if the period of the pulse signal is long, the timing error will become larger. Furthermore, the conventional counter unit has the following problem: in the case where the period of the pulse signal changes, if the output timing is to be maintained the same before and after the period change, the target value compared with the actual value must be increased or decreased, and thus user convenience is low. Below, with reference to the conventional counter unit, Fig.12 as well as Fig.13 , while explaining the details.

[0008] (Previous example related to mount application)

[0009] Fig.12 This is a diagram showing a process of mounting (assembling) a part (assembly component 70 ) on a workpiece 60 by the actuator 40 (hereinafter also referred to as “assembly application”), and a process executed by a counter unit 98 or the like as a conventional counter unit. Fig.12In (A), (B) and (C), the workpiece 60 is loaded by a conveyor and moves from the left side of the paper to the right side of the paper at a fixed speed.

[0010] like Fig.12 As shown in (A), the counter unit 98 uses the pulse signal from the encoder 30, that is, the count value to grasp the position (measured value) of the workpiece 60. When the counter unit 98 determines that "the workpiece 60 has reached the starting position (target value)", an output (comparison consistency output) is executed to the actuator 40 holding the assembly component 70.

[0011] like Fig.12 As shown in (B), the actuator 40 receiving the output from the counter unit 98 installs the assembly component 70 on the workpiece 60. The workpiece 60 to which the assembly component 70 is installed by the actuator 40 is shown in FIG. Fig.12 As shown in (C), it further moves from the left side of the paper to the right side of the paper at a fixed speed.

[0012] Here, if Fig.12 As shown in (D), the response time is required from the time point when the counter unit 98 determines that "the workpiece 60 has reached the starting position" until the time point when the assembly component 70 is installed on the workpiece 60 by the actuator 40. The so-called response time refers to the time including "the time required for the circuit response" and "the time required for the mechanical response", which can be regarded as fixed. That is, from the time when it is determined that "the position of the workpiece 60 has been consistent with the starting position" until the actuator 40 accepts the output executed by the counter unit 98 at the time point when it is determined that "they have been consistent", the time required for the circuit response is required. In addition, the time required for the mechanical response is required from the time when the actuator 40 receives the output from the counter unit 98 until the actuator 40 executes the processing corresponding to the output from the counter unit 98. That is, the time required for the mechanical response is required from the time when the counter unit 98 executes the output to the actuator 40 until the assembly component 70 is installed on the workpiece 60 by the actuator 40.

[0013] Fig.12 In (D), the so-called "assembly position" refers to the position of the workpiece 60 at the time point after the response time has passed since the time point when it is determined that "the workpiece 60 has reached the starting position", and is the position of the workpiece 60 at the time when the assembly component 70 is installed.

[0014] Here, if the actual position of the workpiece 60 at the time of installing the assembly component 70 is located on the right side of the paper surface compared to the ideal position of the workpiece 60 at the time of installing the assembly component 70, the counter unit 98 performs the following processing. That is, when the workpiece 60 reaches a position that is moved to the left side of the paper surface compared to the original starting position, the counter unit 98 performs output to the actuator 40, so that the actuator 40 performs installation of the assembly component 70 on the workpiece 60. By performing output based on the arrival of the workpiece 60 at the position that makes the original starting position move to the left side of the paper surface as an opportunity, the counter unit 98 can move the position of the workpiece 60 at the time of installing the assembly component 70 to the left side of the paper surface compared to the original assembly position.

[0015] If the position that is retreated from the original starting position by a distance of "one cycle of the pulse signal (i.e., one pulse period)" is set as the "corrected starting position (front)", the counter unit 98 can achieve the following state by using the corrected starting position (front). That is, by executing the output based on the arrival of the workpiece 60 at the corrected starting position (front), the counter unit 98 can change the position of the workpiece 60 at the time of mounting the assembly component 70 to the corrected assembly position (front). The "corrected assembly position (front)" is the position of the workpiece 60 at a time point after the response time has passed since the counter unit 98 determined that the "workpiece 60 has reached the corrected starting position (front)". When the period (pulse period) of the pulse signal is fixed, the "corrected assembly position (front)" is the position retreated from the original assembly position by a distance equivalent to "one pulse period".

[0016] Similarly, if the actual position of the workpiece 60 at the time of installing the assembly component 70 is located on the left side of the paper relative to the ideal position of the workpiece 60 at the time of installing the assembly component 70, the counter unit 98 performs the following processing. That is, when the workpiece 60 reaches a position that moves the original starting position to the right side of the paper, the counter unit 98 performs output to the actuator 40, so that the actuator 40 performs installation of the assembly component 70 on the workpiece 60. By performing output based on the arrival of the workpiece 60 at the position that moves the original starting position to the right side of the paper, the counter unit 98 can move the position of the workpiece 60 at the time of installing the assembly component 70 to the right side of the paper relative to the original assembly position.

[0017] If the position that has advanced from the original starting position by a distance equivalent to "one cycle of the pulse signal (i.e., one pulse period)" is set as the "corrected starting position (rear)", the counter unit 98 can achieve the following state by using the corrected starting position (rear). That is, by executing the output based on the arrival of the workpiece 60 at the corrected starting position (rear) as an opportunity, the counter unit 98 can change the position of the workpiece 60 at the time of mounting the assembly component 70 to the corrected assembly position (rear). The "corrected assembly position (rear)" is the position of the workpiece 60 at a time point after the response time has passed since the counter unit 98 determined that "the workpiece 60 has reached the corrected starting position (rear)". When the period (pulse period) of the pulse signal is fixed, the "corrected assembly position (rear)" is the position that has advanced from the original assembly position by a distance equivalent to "one pulse period".

[0018] Since the response time can be considered fixed, the position of the workpiece 60 at the time of mounting the assembly component 70 depends on the timing of the counter unit 98 performing a predetermined output to the actuator 40. Furthermore, the counter unit 98 adjusts the position of the workpiece 60 at the time of mounting the assembly component 70, that is, the output timing, by changing the starting position (target value) compared with the position of the workpiece (actual measurement value).

[0019] Here, the moving distance of the workpiece 60 corresponding to "one cycle of the pulse signal (i.e., one pulse cycle)" is fixed. Therefore, the counter unit 98 that adjusts the output timing (=the position of the workpiece 60 at the time of mounting the assembly component 70) according to the starting position can only adjust the position of the workpiece 60 by an integral multiple of the distance corresponding to "one pulse cycle".

[0020] That is, the counter unit 98 that adjusts the output timing by changing the target value cannot make the amplitude of the adjustable timing smaller than the period of the pulse signal. If the period of the pulse signal is long, the timing error will become larger. Moreover, if the counter unit 98 wants to maintain the output timing the same before and after the period change when the period of the pulse signal changes, it is necessary to change the target value compared with the measured value, so the user convenience is low.

[0021] (Previous example of liquid filling application)

[0022] Fig.13 FIG. 1 is a diagram showing the prior art regarding the process of filling a workpiece with liquid (hereinafter also referred to as "liquid filling application"). Fig.13 As shown in (A) of FIG. 1 , the counter unit 98 uses the pulse signal from the flow meter 31 (pulse signal generating device), that is, uses the count value to grasp the filling amount (actual measurement value) of the liquid filled into the workpiece.

[0023] When the counter unit 98 determines that "the amount of liquid filled into the workpiece (filling amount, measured value) has reached the valve closing action start amount (target value)", an output (comparison match output) to the valve 41 (actuator) is executed. That is, when the counter unit 98 determines that "the count value has matched the comparison count value set in association with the valve closing action start amount", an output to the valve 41 is executed, the valve 41 is closed, and the filling of the liquid into the workpiece is stopped.

[0024] Here, if Fig.13 As shown in (B), the response time is required from the time point when the counter unit 98 determines that "the filling amount has reached the starting amount of the valve closing action" until the valve 41 is closed and the filling is stopped. The so-called response time refers to the time including "the time required for the circuit response" and "the time required for the mechanical response", which can be regarded as fixed. That is, from the time when it is determined that "the count value and the comparison count value have been consistent" until the valve 41 accepts the output executed by the counter unit 98 at the time point when it is determined that "they have been consistent", the time required for the circuit response is required. Moreover, from the time when the valve 41 receives the output from the counter unit 98 until the valve 41 executes the processing corresponding to the output from the counter unit 98, the time required for the mechanical response is required. That is, from the time when the counter unit 98 executes the output to the valve 41 until the valve 41 is closed and the filling is stopped, the time required for the mechanical response is required.

[0025] Fig.13 In (B), the filling amount to the workpiece at the time point after the response time has passed since the time point when it is determined that the "count value has matched the comparison count value" is referred to as the "actual filling amount value" based on the meaning of the actual value of the filling amount. The actual filling amount value can also be understood as the actual filling amount at the time point when the valve 41 is closed and the filling is stopped. In addition, the "target filling amount value" represents the specified ideal filling amount to the workpiece at the time point when the valve 41 is closed and the filling is stopped.

[0026] like Fig.13 As shown in (B), if the actual filling amount value is greater than the target filling amount value, that is, the filling amount is excessive, the counter unit 98 decreases the value of the actual filling amount value by decreasing the value of the comparison count value.

[0027] However, the maximum "resolution of adjustable filling amount" of the counter unit 98 is the flow rate of one pulse cycle, that is, the counter unit 98 can only adjust the actual filling amount value by an integral multiple of the flow rate equivalent to "one pulse cycle". As a result, the following situation may occur, namely: Fig.13 As shown in (B), the counter unit 98 can only perform filling with a filling amount that does not satisfy the filling amount target value (the filling amount actual value is less than the filling amount target value) by reducing the value of the comparison count value.

[0028] Since the response time can be considered fixed, the filling amount to the workpiece at the time when the valve 41 is closed depends on the timing at which the counter unit 98 performs a predetermined output to the valve 41. In addition, the counter unit 98 adjusts the actual filling amount, that is, the output timing, by changing the valve closing operation start amount (target value) compared with the filling amount to the workpiece (actual measured value).

[0029] Here, the filling amount to the workpiece corresponding to "one cycle of the pulse signal (i.e., one pulse cycle)" is fixed. Therefore, the counter unit 98 that adjusts the output timing (= actual filling amount value) according to the valve closing operation start amount (target value) can only adjust the actual filling amount value by an integral multiple of the filling amount corresponding to "one pulse cycle".

[0030] That is, the counter unit 98 that adjusts the output timing by changing the target value cannot make the amplitude of the adjustable timing smaller than the period of the pulse signal. If the period of the pulse signal is long, the timing error will become larger. Moreover, if the counter unit 98 wants to maintain the output timing the same before and after the period change when the period of the pulse signal changes, it is necessary to change the target value compared with the measured value, so the user convenience is low.

[0031] One side reference Fig.12 as well as Fig.13 The conventional counter unit can be summarized as follows while explaining the details thereof. That is, generally speaking, when the counter unit determines that the actual value measured using the count value (the number of pulses of the pulse signal) is consistent with the target value, the actuator such as the valve is controlled, that is, the prescribed output to the actuator is executed.

[0032] Furthermore, response time is required from the time when the counter unit determines that the "measured value and the target value are consistent" to the time when the output from the counter unit to the actuator realizes the workpiece state corresponding to the output. That is, from the time when the "measured value and the target value are consistent" to the time when the workpiece reaches the desired state, a timing error occurs as the sum of the "time required for the circuit response" and the "time required for the mechanical response" (response time). "Response time" is sometimes expressed as "delay time".

[0033] Conventional counter units increase or decrease the target value compared with the actual value (i.e., determine whether it is consistent with the actual value) to eliminate the influence of the timing error. However, the target value can only be increased or decreased by an integer multiple of the moving distance / filling amount equivalent to "1 pulse cycle", that is, conventional counter units have the problem that the resolution related to the adjustment of the output timing is the pulse cycle. Therefore, especially in the case of a long pulse cycle, conventional counter units cannot make detailed adjustments to the output timing, resulting in larger timing errors. Moreover, regardless of the pulse cycle, the response time is fixed. Therefore, in the case of a change in the pulse cycle, if the conventional counter unit does not increase or decrease the target value in accordance with the changed pulse cycle, the output timing cannot be maintained, and thus there is a problem of low user convenience.

[0034] One embodiment of the present invention is completed in view of the above-mentioned problem, and its purpose is to realize a counter unit, etc., which can adjust the timing of the output to the actuator when the actual measured value measured using the number of pulses of the pulse signal is consistent with the target value without relying on the period of the pulse signal.

[0035] Technical means of solving problems

[0036] In order to solve the problem, a counter unit of one embodiment of the present invention includes: a measuring unit, which counts the number of pulses of a pulse signal to measure an actual value; a comparing unit, which determines whether the actual value measured by the measuring unit is consistent with a target value; and an output unit, which performs output to an actuator when the comparing unit determines that the actual value is consistent with the target value, and the output unit includes an output delay unit, which adjusts the timing of the output to a time point after a time point when the comparing unit determines that the actual value is consistent with the target value and a time independent of the period of the pulse signal has passed, as indicated by a timing adjustment value.

[0037] In order to solve the above problem, a control method for a counter unit according to an embodiment of the present invention includes: a measuring step of counting the number of pulses of a pulse signal to measure an actual value; a comparing step of determining whether the actual value measured in the measuring step is consistent with a target value; and an output step of executing output to an actuator when it is determined in the comparing step that the actual value is consistent with the target value, wherein the output step includes an output delay step, wherein the timing of the output is adjusted to a time point after a time point at which the actual value is determined in the comparing step to be consistent with the target value and which is independent of the period of the pulse signal and which has passed through a time point indicated by a timing adjustment value.

[0038] Effects of the Invention

[0039] According to an embodiment of the present invention, there is an effect that the counter unit can adjust the timing of the output to the actuator independently of the cycle of the pulse signal. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 This is a block diagram showing the configuration of main parts such as a counter unit according to the first embodiment of the present invention.

[0041] Figure 2 Yes means including Figure 1 Figure 2 is a diagram of an overall overview of the control system of a counter unit.

[0042] Figure 3 It means in Figure 2 A flowchart of an example of a process performed in the overall control system of FIG.

[0043] Figure 4 Yes Description Figure 1 A diagram of the timing adjustment values ​​set by the counter unit.

[0044] Figure 5 Yes means Figure 1 The counter unit and Figure 1 A diagram showing an example of a connection to a programmable logic controller (PLC).

[0045] Figure 6 Yes Description Figure 1 A diagram showing details of the timing adjustment value set by the counter unit.

[0046] Figure 7 Yes Description Figure 2 A diagram showing the performance of each device included in the control system.

[0047] Figure 8 Yes Description Figure 2 The control system contains Figure 7 A diagram showing the performance of various devices other than those shown.

[0048] Fig. 9 This is a diagram showing an overview of a method for updating a timing adjustment value in an assembly application.

[0049] Fig.10 This is a diagram showing a specific example of a method of detecting an actual mounting position in connection with an assembly application.

[0050] Fig.11 This is a diagram showing a specific example of a method of detecting an actual filling amount in a liquid filling application.

[0051] Fig.12This is a diagram showing a conventional technique for processing (assembly application) of assembling parts to a workpiece.

[0052] Fig.13 This is a diagram showing a conventional technique for a process of filling a workpiece with a liquid (liquid filling application).

[0053] [Explanation of Symbols]

[0054] 1: Control system

[0055] 10: Counter unit

[0056] 20: PLC (control device)

[0057] 40: Actuator

[0058] 50: Photographing device (status detection device)

[0059] 51: Displacement sensor (status detection device)

[0060] 52: Force sensor (status detection device)

[0061] 53: Distance measuring device (status detection device)

[0062] 60: Artifacts

[0063] 61: Artifacts

[0064] 110: Ministry of Communications

[0065] 130: Measurement Department

[0066] 140: Determination unit (comparison unit)

[0067] 150: Output

[0068] 160: Output delay unit

[0069] 220: Timing calculation unit (updating unit)

[0070] Ta: Timing adjustment value

[0071] Tp: Pulse period (period of pulse signal) DETAILED DESCRIPTION

[0072] [Implementation method 1]

[0073] The following is based on Figures 1 to 131 to illustrate an embodiment of one aspect of the present invention (hereinafter also referred to as "this embodiment"). In addition, the same symbols are marked for the same or corresponding parts in the figures, and their descriptions are not repeated. In this embodiment, for example, a counter unit 10 is used as a typical example of a counter unit for explanation. In order to facilitate understanding of the counter unit 10 of one embodiment of the present invention, first use Figure 2 The outline of the control system 1 including the counter unit 10 will be described.

[0074] §1. Application examples

[0075] (Overall overview of the control system)

[0076] Figure 2 1 is a diagram showing the overall overview of the control system 1 including the counter unit 10. Figure 2 As shown in (A), the control system 1 includes a counter unit 10 and a programmable logic controller (PLC) 20 as a control device (controller). Figure 2 As shown in (A) of FIG. 8 , the control system 1 may further include a sensor (pulse signal generating device) that generates a pulse signal, such as an encoder 30 , and an actuator 40 .

[0077] The counter unit 10 is communicatively connected to the PLC 20 via a field network, for example, and transmits and receives data to and from the PLC 20 at fixed communication cycles, specifically, at control cycles of the PLC 20. For example, the counter unit 10 receives a target value and a timing adjustment value Ta from the PLC 20 at each control cycle of the PLC 20, and transmits information indicating the position of the workpiece 60 grasped using the count value to the PLC 20 at each control cycle of the PLC 20.

[0078] Furthermore, the counter unit 10 is communicatively connected to the encoder 30 and the actuator 40, respectively. The counter unit 10 receives a pulse signal (pulse wave) generated by the encoder 30 as an input, and counts the number of pulses of the received pulse signal, that is, uses the count value to measure the state of the workpiece, etc. For example, the counter unit 10 calculates the moving distance of the conveyor based on the pulse signal from the encoder 30 installed on the conveyor, that is, grasps the position of the workpiece on the conveyor. In the following description, the "state of the workpiece, etc. (e.g., the position, size, weight, etc. of the workpiece, etc.)" measured by the counter unit 10 by counting the number of pulses of the pulse signal is also referred to as an "actually measured value".

[0079] When the moving distance of the conveyor, that is, the position of the workpiece 60, is consistent with the target value received from the PLC 20, the counter unit 10 performs the following processing. That is, the counter unit 10 outputs a specified signal to the actuator 40 after waiting for a time indicated by the timing adjustment value Ta received from the PLC 20 from the time point when the position of the workpiece 60 is determined to be consistent with the target value. In the following description, the output of the specified signal to the actuator 40 executed by the counter unit 10 when it is determined that the measured value is consistent with the target value is also referred to as "comparison consistency output". When the counter unit 10 determines that the measured value is consistent with the target value, for example, a signal indicating that the position of the workpiece 60 is consistent with the target value is output to the actuator 40.

[0080] The counter unit 10 causes the actuator 40 to perform a predetermined process (action), that is, a process corresponding to the predetermined signal, by outputting a predetermined signal to the actuator 40. In particular, the counter unit 10 adjusts the timing of the output to the actuator 40 to adjust the timing of the actuator 40 performing the predetermined process, that is, the state of the workpiece is set to a desired state at a desired timing.

[0081] The PLC 20 is a control device (controller) that controls the entire control system 1, and is communicatively connected to the counter unit 10. For example, a display unit and an operation unit (not shown) may also be connected to the PLC 20. The display unit includes a liquid crystal panel that can display images, and typically, the operation unit includes a touch panel, a keyboard, a mouse, and the like.

[0082] The PLC 20 transmits the target value and the timing adjustment value Ta to the counter unit 10 , and in particular transmits the target value and the timing adjustment value Ta to the counter unit 10 at every fixed communication cycle so that the actuator 40 performs a predetermined process at a predetermined timing.

[0083] The encoder 30 is attached to a conveyor, for example, and generates a pulse signal according to the amount of movement of the conveyor, that is, the amount of movement of the workpiece 60. The encoder 30 outputs a pulse wave to the counter unit 10 every time the conveyor (that is, the workpiece 60) moves a predetermined amount.

[0084] The actuator 40 is connected to the counter unit 10. When receiving the output from the counter unit 10, the actuator 40 performs a predetermined operation (for example, an operation of attaching a component held by the actuator 40 to the workpiece 60).

[0085] like Figure 2As shown in (B), that is, the time required for the circuit response is required from the time when the "measured value and the target value are consistent" is determined until the actuator 40 receives the output executed by the counter unit 10 at the time when the "consistency" is determined. That is, the time point at which the actuator 40 can receive the output from the counter unit 10 is a time point after the time point at which the counter unit 10 determines that the "measured value and the target value are consistent" has passed the time point required for the circuit response.

[0086] Furthermore, a time required for mechanical response is required between the time point at which the actuator 40 performs a process corresponding to the output from the counter unit 10 and the time point at which the actuator 40 receives the output from the counter unit 10. That is, the time point at which the actuator 40 can perform a process corresponding to the output from the counter unit 10 is a time point after the time point at which the actuator 40 receives the output from the counter unit 10 by the time point at which the time required for mechanical response has elapsed.

[0087] Therefore, the time point at which the actuator 40 can execute the processing corresponding to the output from the counter unit 10 must be at least 10 seconds from the time point at which the counter unit 10 determines that the "actual measured value is consistent with the target value". Figure 2 (B) The “response time” time point. Figure 2 The “response time” in (B) is the total value of the “time required for circuit response” and the “time required for mechanical response” and is also called “delay”.

[0088] That is, if output to the actuator 40 is performed after determining that "the measured value matches the target value", the counter unit 10 cannot cause the actuator 40 to perform a predetermined process at the time of the target value (= the time when the measured value matches the target value).

[0089] Therefore, the control system 1 changes the value determined to be consistent with the actual measurement value to the "corrected target value" in order to make the actuator 40 execute a predetermined process at the time of the target value, and makes the counter unit 10 execute a standby process using the "timing adjustment value Ta".

[0090] That is, when it is determined that "the actual measured value and the corrected target value are consistent", the counter unit 10 waits for the time indicated by the timing adjustment value Ta, and then performs output to the actuator 40. That is, the counter unit 10 performs output to the actuator 40 at the time point when the time indicated by the timing adjustment value Ta has passed since the time point when it is determined that "the actual measured value and the corrected target value are consistent".

[0091] Thus, the time point when the actuator 40 receives the output from the counter unit 10 is the time point when the total time of the time indicated by the timing adjustment value Ta and the time required for the circuit response has passed since the time point when it was determined that the "actual measurement value and the correction target value coincide with each other". Furthermore, the time point when the actuator 40 performs the processing corresponding to the output from the counter unit 10 is the time point when the time required for the mechanical response has passed since the time point when the actuator 40 receives the output from the counter unit 10.

[0092] Therefore, the actuator 40 performs a predetermined process at a time point when the total time indicated by the timing adjustment value Ta and the response time has passed since the time point when the counter unit 10 determines that the "actual measurement value and the correction target value are consistent". Figure 2 As shown in (B), the actuator 40 performs a predetermined process at the time point of the target value.

[0093] As described above, the control system 1 can adjust the execution timing of the comparison consistency output of the counter unit 10 through the fixed period communication (cyclic communication) between the counter unit 10 and the PLC 20. That is, the counter unit 10 uses the target value (corrected target value) and the timing adjustment value Ta periodically received from the PLC 20 to adjust the execution timing of the comparison consistency output to the actuator 40. Specifically, the counter unit 10 sets the time point indicated by the timing adjustment value Ta from the time point when the measured value measured using the pulse signal is determined to be consistent with the target value (corrected target value) as the execution timing of the comparison consistency output.

[0094] Here, Fig.12 as well as Fig.13 The conventional counter unit shown here only adjusts the timing of the execution of the comparison consistency output based on the target value compared with the actual value (i.e., determines the consistency with the actual value), without using the timing adjustment value Ta. In addition, the target value can only be increased or decreased by an integer multiple of the actual value (movement distance / filling amount) equivalent to "1 pulse period Tp (1 period of the pulse signal)". Therefore, in the conventional counter unit, the resolution related to the adjustment of the execution timing of the comparison consistency output is the pulse period Tp.

[0095] In contrast, the counter unit 10 uses the timing adjustment value Ta received from the PLC 20 in addition to the target value to adjust the execution timing of the comparison consistent output. Moreover, the timing adjustment value Ta has nothing to do with the period Tp of the pulse signal. Therefore, the counter unit 10 can adjust the timing of the comparison consistent output independently of the period Tp of the pulse signal, so the timing of the comparison consistent output can be controlled with high precision.

[0096] Here, using Figure 2In the control system 1 described above, when the counter unit 10 determines that the position (actual measurement value) of the workpiece measured using the pulse signal from the encoder 30 matches the predetermined position (target value), the output to the actuator 40 is performed.

[0097] However, the state of the workpiece measured by the counter unit 10 using the pulse signal is not limited to the position of the workpiece. For example, the counter unit 10 may also use the pulse signal from the flow meter as the pulse signal generating device to measure the filling amount (measured value) of the liquid filled into the workpiece. When the counter unit 10 determines that the filling amount into the workpiece measured using the pulse signal is consistent with the prescribed filling amount (filling amount corresponding to the target value), the output of the prescribed signal may be executed to the actuator 40 such as the valve that fills the liquid into the workpiece.

[0098] For example, a flow meter that outputs a pulse output signal proportional to the flow rate of the liquid in the pipeline is arranged between a flow path for liquid flow, i.e., a pipe, and a valve (actuator) connected to the pipe and capable of controlling the filling speed of the filling liquid. The counter unit 10 counts the number of pulses of the pulse signal from the flow meter to measure the filling amount (measured value) of the liquid controlled by the opening and closing of the valve into the filled container, i.e., the workpiece. When it is determined that the filling amount into the workpiece is consistent with the prescribed filling amount (the filling amount corresponding to the target value), the counter unit 10 outputs a prescribed signal to the valve to close the valve to stop the filling of the liquid into the workpiece. In particular, when the counter unit determines that the filling amount into the workpiece is consistent with the prescribed filling amount, the time point after the time indicated by the timing adjustment value Ta from this time point is set as the execution timing of the comparison consistency output to the valve.

[0099] §2.Structure example

[0100] For use so far Figure 2 The control system 1 has been described in general terms, and its details are described below. Figure 1 The control system 1 (particularly the counter unit 10 and the PLC 20 ) described in detail above will first be summarized as follows.

[0101] That is, the counter unit 10 includes: a measuring section 130 that counts the number of pulses of the pulse signal to measure the actual value; a determination section 140 (comparison section) that determines whether the actual value measured by the measuring section 130 is consistent with the target value; and an output section 150 that performs output (comparison consistency output) to the actuator 40 when the determination section 140 determines that the actual value is consistent with the target value. The output section 150 includes an output delay section 160 that adjusts the timing of the output to a time point that has passed from the time point when the determination section 140 determines that the actual value is consistent with the target value by a time indicated by a timing adjustment value Ta that is independent of the period Tp of the pulse signal.

[0102] According to the above configuration, the counter unit 10 receives the pulse signal as input from a pulse signal generating device such as an encoder 30 or a flow meter that generates the pulse signal in accordance with the detected amount, and measures the actual value based on the received pulse signal. When the counter unit 10 determines that the actual value is consistent with the target value, the output is performed at a time point when the time indicated by the timing adjustment value Ta, which is independent of the period Tp of the pulse signal, has passed since the time point when the determination is consistent.

[0103] Conventionally, there is known a technique for adjusting the timing of the output by increasing or decreasing the target value for a counter unit that performs the output when it is determined that the actual value measured by counting the number of pulses of the pulse signal matches the target value.

[0104] Here, the target value can only be increased or decreased by an integer multiple of the actual measured value equivalent to the "period of the pulse signal (pulse period Tp)". Therefore, in the conventional counter unit that adjusts the output timing only according to the target value, the resolution related to the adjustment of the output timing is limited to the pulse period Tp. Especially when the pulse period Tp is long, the conventional counter unit cannot make detailed adjustments to the output timing, resulting in a larger timing error. Moreover, regardless of the pulse period Tp, the response time is fixed. Therefore, when the pulse period Tp changes, if the conventional counter unit does not increase or decrease the target value in accordance with the changed pulse period Tp, the output timing cannot be maintained, and thus the user convenience is low.

[0105] Compared with such conventional counter units, the counter unit 10 uses the timing adjustment value Ta indicating a time (standby time) independent of the period Tp of the pulse signal in addition to the target value to adjust the timing of the output. That is, the counter unit 10 adjusts the timing of the output to a time point at which the time indicated by the timing adjustment value Ta, which is independent of the period Tp of the pulse signal, has passed since the time point at which the actual measured value is determined to be consistent with the target value.

[0106] Therefore, the counter unit 10 has the following effect: it is not dependent on the period Tp of the pulse signal, that is, it is possible to use the timing adjustment value Ta to adjust the timing of the output independently of the period Tp of the pulse signal. In particular, the time indicated by the timing adjustment value Ta is independent of the period Tp of the pulse signal, so even when the pulse period Tp is long, the counter unit 10 can finely adjust the timing of the output. Moreover, even when the pulse period Tp changes, the counter unit 10 can easily adjust the timing of the output by changing the value of the timing adjustment value Ta by the amount of change in the pulse period Tp, so that user convenience is high.

[0107] In the counter unit 10 , the output unit 150 includes a logic circuit based on hardware, and the time indicated by the timing adjustment value Ta is an integral multiple of a clock of the logic circuit.

[0108] According to the structure, in the counter unit 10, the output unit 150 includes a hardware-based logic circuit. For example, the output unit 150 can also be implemented using at least one of a field programmable gate array (FPGA), a complex programmable logic device (CPLD), and an application specific integrated circuit (ASIC). In addition, in the counter unit 10, the time indicated by the timing adjustment value Ta is an integer multiple of the clock of the logic circuit.

[0109] Here, by implementing the output unit 150 using a hardware-based logic circuit, the delay amount can be made smaller than when the output unit 150 is implemented using software. That is, by implementing the output unit 150 using a hardware-based logic circuit, a smaller value can be set for the time (standby time) indicated by the timing adjustment value Ta than when the output unit 150 is implemented using software. Furthermore, by implementing the output unit 150 using a hardware-based logic circuit, the variation of the delay can be suppressed compared to when the output unit 150 is implemented using software.

[0110] Therefore, the counter unit 10 has the effect that, when it is determined that the actual measurement value is consistent with the target value, the output to the actuator 40 can be performed with a shorter standby time than when the output unit 150 is implemented by software. In addition, the counter unit 10 has the effect that the variation of delay can be suppressed compared to when the output unit 150 is implemented by software.

[0111] The counter unit 10 further includes a communication unit 110 that receives the target value and the timing adjustment value Ta from a PLC 20 (control device) that performs input / output processing of ON / OFF data in a predetermined control cycle.

[0112] According to the above configuration, the counter unit 10 receives the target value and the timing adjustment value Ta from the PLC 20 , and adjusts the timing of the output (comparison matching output) using the received target value and the timing adjustment value Ta.

[0113] Here, the communication method between the counter unit 10 and the PLC 20 is not particularly limited. The counter unit 10 and the PLC 20 may be connected to each other via a field network, for example, and the counter unit 10 receives the target value and the timing adjustment value Ta from the PLC 20 via the field network. Moreover, the counter unit 10 may be formed integrally with the PLC 20, that is, it may be connected to the PLC 20 via an internal bus. In this case, the counter unit 10 may also receive the target value and the timing adjustment value Ta from the PLC 20 via the internal bus.

[0114] For example, the counter unit 10 repeatedly receives the target value and the timing adjustment value Ta from the PLC 20 every control period, and adjusts the timing of the output using the received target value and the timing adjustment value Ta.

[0115] Therefore, the counter unit 10 has the following effect: the actual value measured by the device itself is compared with the target value received from the PLC 20, and the timing of the output can be adjusted using the timing adjustment value Ta received from the PLC 20. That is, the user can adjust the timing of the output using the target value and the timing adjustment value Ta sent by the PLC 20 to the counter unit 10 (for example, periodically).

[0116] The timing adjustment value Ta is a value updated using “a feedback value indicating an actual state of the workpiece 60 or the like realized by the actuator 40 receiving the output (comparison match output) from the counter unit 10 ”.

[0117] According to the above configuration, the counter unit 10 has an effect of being able to adjust the timing of the output with high accuracy using the timing adjustment value Ta updated to an appropriate value using the feedback value related to the output to the actuator 40 .

[0118] The timing adjustment value Ta is a value updated using a difference between a reference value indicating a predetermined ideal state of the workpiece 60 or the like to be achieved by the actuator 40 receiving the output and a value calculated by statistically processing the plurality of feedback values.

[0119] According to the above configuration, the counter unit 10 adjusts the timing of the output using the timing adjustment value Ta updated to an appropriate value using the difference between the reference value and a value calculated by statistically processing the plurality of feedback values.

[0120] Here, by updating the timing adjustment value Ta using a value calculated by statistically processing a plurality of the feedback values, even when the feedback value temporarily exhibits an abnormal value, the influence of the abnormal value on the timing adjustment value Ta can be suppressed.

[0121] Therefore, the counter unit 10 has an effect of being able to adjust the timing of the output with high accuracy using the timing adjustment value Ta updated to an appropriate value while suppressing the influence of such an abnormal value even when the feedback value temporarily exhibits an abnormal value.

[0122] Next, referring to the counter unit 10 and the like which have been described above in general terms, Figure 1 The details of the structure will be described below. Next, the processing performed by the counter unit 10 and the like will be described with reference to FIG. Figure 3 While explaining.

[0123] (Details of counter unit)

[0124] Figure 1 1 is a block diagram showing the configuration of the main parts of the counter unit 10 and the like included in the control system 1. Figure 1 As shown, the counter unit 10 is a device for adjusting the execution timing of a predetermined action to be executed by an actuator, and includes a communication unit 110, a setting unit 120, a measurement unit 130, a determination unit 140, and an output unit 150 as functional blocks.

[0125] The communication unit 110 receives the target value and the timing adjustment value Ta from the PLC 20 , and in particular, repeatedly receives the target value and the timing adjustment value Ta from the PLC 20 every control cycle of the PLC 20 . The communication unit 110 notifies the setting unit 120 of the target value and the timing adjustment value Ta received from the PLC 20 .

[0126] The communication unit 110 is implemented, for example, using an integrated circuit such as a communication integrated circuit (IC). Specifically, the communication unit 110 can also be implemented using at least one of a field programmable gate array (FPGA), a complex programmable logic device (CPLD), and an application specific integrated circuit (ASIC).

[0127] The setting unit 120 notifies the determination unit 140 and the output unit 150 of the target value and the timing adjustment value Ta received by the communication unit 110 from the PLC 20. Specifically, the setting unit 120 notifies the determination unit 140 of the target value received by the communication unit 110 from the PLC 20, and notifies the output unit 150 of the timing adjustment value Ta received by the communication unit 110 from the PLC 20.

[0128] The measuring unit 130 receives a pulse signal generated by a pulse signal generating device such as the encoder 30, and counts the number of pulses (count value) of the received pulse signal to measure the actual value of the position of the workpiece, the filling amount, etc. The measuring unit 130 notifies the determination unit 140 of the actual value measured using the pulse signal.

[0129] The determination unit 140 determines whether the actual value measured by the measuring unit 130 using the pulse signal is consistent with the target value notified from the setting unit 120 (i.e., the target value obtained from the PLC 20). When the determination unit 140 determines that "the actual value is consistent with the target value", the determination result of "the actual value is consistent with the target value" is notified to the output unit 150.

[0130] The setting unit 120 is implemented by software using, for example, a central processing unit (CPU) or a microprocessor (MPU). The measuring unit 130 and the determining unit 140 are implemented by hardware, for example, by using a counter function inside an MPU, or by using an IC such as an FPGA or an ASIC.

[0131] When the output unit 150 receives the notification of the determination result that "the measured value is consistent with the target value" from the determination unit 140, it outputs a predetermined signal (for example, a signal indicating that "the measured value is consistent with the target value") to the actuator 40, that is, performs a predetermined output (comparison consistency output). By performing the comparison consistency output, the output unit 150 causes the actuator 40 to perform a predetermined process (action) corresponding to the comparison consistency output.

[0132] In particular, the output unit 150 adjusts the timing of the actuator 40 executing the prescribed processing (action) by adjusting the execution timing of the comparative consistency output. Specifically, the comparative consistency output is executed at the following timing. That is, the output unit 150 waits from the time point when the determination unit 140 receives the notification of the determination result "the measured value is consistent with the target value" until the time (standby time) set by the output delay unit 160 has passed, and executes the comparative consistency output at the time point when the standby time has passed. The output unit 150 includes the output delay unit 160 for setting the standby time.

[0133] The output delay unit 160 sets a "standby time" which is a time interval from the time when the output unit 150 receives a notification of the judgment result that "the measured value is consistent with the target value" until the time when the output unit 150 performs a comparison consistency output (output of a predetermined signal to the actuator 40). The output delay unit 160 sets the time indicated by the timing adjustment value Ta notified from the setting unit 120 (i.e., the timing adjustment value Ta obtained from the PLC 20) as the standby time, for example, sets the timing adjustment value Ta as the standby time.

[0134] As described above, the timing adjustment value Ta is a signal (data) received from the PLC 20, and is a signal indicating a time that is independent of the cycle of the pulse signal received by the measuring unit 130 from the pulse signal generating device such as the encoder 30, that is, a time that is independent of the cycle of the pulse signal. Therefore, the output delay unit 160 can use the timing adjustment value Ta to set the standby time to a time that is independent of the cycle of the pulse signal.

[0135] The output unit 150 may be formed as hardware by, for example, a logic circuit formed on an integrated circuit (IC chip), and may be implemented using at least one of an FPGA, a CPLD, and an ASIC. The output delay unit 160 may be implemented using a function within the MPU (or within the CPLD) that constitutes the output unit 150, or may include hardware such as an FPGA or an ASIC.

[0136] Furthermore, the hardware constituting the output unit 150 may be hardware different from the hardware constituting the communication unit 110, and may also be hardware different from the CPU (or MPU) realizing the setting unit 120, the measuring unit 130, and the determining unit 140. That is, the counter unit 10 may include three hardwares: the communication IC (communication unit 110), the CPU (or MPU) realizing the setting unit 120, the measuring unit 130, and the determining unit 140, and the hardware constituting the output unit 150.

[0137] (PLC details)

[0138] The PLC 20 is a control device that performs input / output processing of enable / disable data at a predetermined control cycle, and for example, sends a target value and a timing adjustment value Ta to the counter unit 10 at a predetermined control cycle.

[0139] Figure 1 In the embodiment, PLC20 is connected to the photographing device 50 (state detection device), that is, Figure 1 The control system 1 shown includes a counter unit 10 , a PLC 20 , and a camera 50 .

[0140] The PLC 20 obtains data (captured image data) representing the actual state of the workpiece 60 realized by the actuator 40 receiving the comparison consistency output from the counter unit 10 from the imaging device 50 as a feedback value related to the comparison consistency output. In particular, the PLC 20 repeatedly obtains the captured image data as a feedback value from the imaging device 50 every control cycle of the PLC 20.

[0141] like Figure 1 As shown, PLC20 includes a storage unit 210 and a timing calculation unit 220 (update unit) as functional blocks. In addition to the above-mentioned functional blocks, PLC20 may also include an acquisition unit (not shown) for acquiring captured image data from the camera 50, but in order to ensure the simplicity of the description, the structure that is not directly related to the present embodiment is omitted from the description and the block diagram. However, based on the actual implementation, PLC20 may also include the omitted structure. The timing calculation unit 220 can be realized by, for example, a central processing unit (CPU) or the like reading out a program stored in a storage device (storage unit 210) implemented by a read-only memory (ROM), a non-volatile random access memory (NVRAM), etc., into a random access memory (RAM) not shown in the figure, etc. for execution. Below, the timing calculation unit 220 in PLC20 is described.

[0142] The timing calculation unit 220 determines the "actual position (feedback value) of the workpiece 60 achieved by the actuator 40 receiving the comparison match output from the counter unit 10" based on the captured image data obtained as the feedback value from the imaging device 50. The timing calculation unit 220 uses the information (feedback value) indicating the determined actual position of the workpiece 60 to update the timing adjustment value Ta.

[0143] For example, the timing calculation unit 220 determines a plurality of feedback values ​​based on a plurality of captured image data acquired from the imaging device 50, and calculates an average value of the determined plurality of feedback values. The timing calculation unit 220 updates the timing adjustment value Ta using the calculated average value and the difference between the reference value indicating "the predetermined ideal position (state) of the workpiece 60 to be achieved by the actuator 40 receiving the relatively consistent output". The timing adjustment value Ta is updated by the timing calculation unit 220 using the feedback value. Fig. 9 Details will be given later.

[0144] PLC20 sends the timing adjustment value Ta and the target value updated by the timing calculation unit 220 to the counter unit 10. The counter unit 10 compares and outputs the latest timing adjustment value Ta (the timing adjustment value Ta updated by the timing calculation unit 220) and the target value received from PLC20.

[0145] The storage unit 210 is a storage device for storing various data used by the PLC 20. In addition, the storage unit 210 may also non-temporarily store (1) control programs executed by the PLC 20, (2) operating system (OS) programs, (3) application programs for executing various functions of the PLC 20, and (4) various data read out when executing the application programs. The data of (1) to (4) are stored in non-volatile storage devices such as read-only memory (ROM), flash memory, erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM (registered trademark)), and hard disk drive (HDD). The PLC 20 may also include a temporary storage unit not shown. The temporary storage unit is a so-called working memory that temporarily stores data and operation results used for calculations during various processing performed by the PLC 20, including volatile storage devices such as random access memory (RAM). Which data is stored in which storage device is appropriately determined according to the purpose of use of the PLC 20 , convenience, cost, physical restrictions, etc. The storage unit 210 further stores reference values ​​and target values.

[0146] The reference value is data indicating "a predetermined ideal state of the workpiece 60 or the like to be achieved by the actuator 40 receiving the comparative agreement output from the counter unit 10". For example, the reference value is a set assembly position indicating "an ideal position of the workpiece 60 at the time when the assembly component 70 is mounted by the actuator 40" in an assembly application. In addition, "an ideal weight / accumulated amount of the workpiece (i.e., an ideal filling amount) at the time when the valve is closed and filling is stopped" in a liquid filling application can also be cited as an example of a reference value.

[0147] The target value is a value sent to the counter unit 10 in order to achieve the "predetermined ideal state of the workpiece 60, etc." corresponding to the reference value, and is determined by the counter unit 10 to be consistent with the actual measured value. Here, the time point at which the total time of the standby time and the response time indicated by the timing adjustment value Ta has passed since the time point at which the target value is determined to be consistent with the actual measured value is the time point at which the workpiece 60, etc. reaches the predetermined ideal state corresponding to the reference value. That is, the actual measured value (for example, Figure 2 The corrected target value in (B) is set as the target value.

[0148] The target value is, for example, the action start position in an assembly application, and the counter unit 10 performs a comparison and output after waiting for the time indicated by the timing adjustment value Ta from the time point when it is determined that "the position of the workpiece 60 (actually measured value) has reached the action start position". In addition, the target value is, for example, the valve closing action start amount in a liquid filling application, and the counter unit 10 performs a comparison and output after waiting for the time indicated by the timing adjustment value Ta from the time point when it is determined that "the filling amount (actually measured value) is consistent with the valve closing action start amount".

[0149] That is, the PLC 20 (control device) includes a timing calculation unit 220 (updating unit), and sends the timing adjustment value Ta and the target value updated by the timing calculation unit 220 to the counter unit 10. The timing calculation unit 220 uses "a value representing an actual state of the workpiece 60, etc., realized by the actuator 40 receiving the output from the counter unit 10" as a feedback value related to the output to update the timing adjustment value Ta.

[0150] According to the configuration, the PLC 20 updates the timing adjustment value Ta to an appropriate value using the feedback value, and sends the updated timing adjustment value Ta and the target value to the counter unit 10 .

[0151] Therefore, the PLC 20 has an effect of being able to adjust the timing of the output to an appropriate time point independent of the cycle Tp of the pulse signal by transmitting the timing adjustment value Ta and the target value updated to appropriate values.

[0152] Here, the PLC 20 may also obtain the feedback value from a state detection device implemented by, for example, a camera 50, various sensors (specifically, a displacement sensor, a force sensor, and a distance measuring device using a laser, etc.), etc. Moreover, the PLC 20 may also be formed integrally with the counter unit 10.

[0153] The timing calculation unit 220 updates the timing adjustment value Ta using a difference between a reference value indicating a predetermined ideal state of the workpiece 60 or the like to be achieved by the actuator 40 receiving the output and a value calculated by statistically processing the plurality of feedback values.

[0154] According to the above configuration, the PLC 20 updates the timing adjustment value Ta for adjusting the timing of the output to an appropriate value using the difference between the reference value and the value calculated by statistically processing the plurality of feedback values.

[0155] Here, by updating the timing adjustment value Ta using a value calculated by statistically processing a plurality of the feedback values, even when the feedback value temporarily exhibits an abnormal value, the influence of the abnormal value on the timing adjustment value Ta can be suppressed.

[0156] Therefore, the PLC 20 has an effect of being able to update the timing adjustment value Ta to an appropriate value in which the influence of the abnormal value is suppressed even when the feedback value temporarily takes on an abnormal value.

[0157] (Details of the camera)

[0158] The photographing device 50 (state detection device) photographs the actual state of the workpiece 60 realized by the actuator 40 receiving the comparative consistency output from the counter unit 10, and sends the photographed image data to the PLC 20 as a feedback value related to the comparative consistency output. In particular, the photographing device 50 sends the photographed image data to the PLC 20 every time it photographs the actual state of the workpiece 60.

[0159] For example, the imaging device 50 captures (detects) the state of the workpiece 60 (specifically, the position of the workpiece 60 at the time when the assembly component 70 is installed) at the time when the actuator 40 that receives the comparative consistency output is installed. The imaging device 50 sends the captured image data generated by the imaging to the PLC 20 as a feedback value related to the comparative consistency output.

[0160] (Overall control system)

[0161] like Figure 1 As illustrated, the control system 1 includes a counter unit 10, a PLC 20, and a state detection device such as a camera 50. The state detection device detects the actual state of the workpiece 60 etc. realized by the actuator 40 receiving the output from the counter unit 10, and sends a value representing the detected actual state of the workpiece 60 to the PLC 20 as the feedback value.

[0162] According to the above configuration, the control system 1 includes the counter unit 10 , the PLC 20 , and the state detection device. In the control system 1 , the counter unit 10 uses the timing adjustment value Ta updated by the timing calculation unit 220 of the PLC 20 to adjust the timing of the output.

[0163] The control system 1 has the following effects: the feedback value detected by the state detection device can be used to update the timing adjustment value Ta to an appropriate value. Moreover, the control system 1 has the following effects: the timing of the output can be adjusted to a timing independent of the period Tp of the pulse signal using the timing adjustment value Ta updated to an appropriate value.

[0164] In particular, the time indicated by the timing adjustment value Ta is independent of the period Tp of the pulse signal, so even when the pulse period Tp is long, the control system 1 can finely adjust the timing of the output. Moreover, even when the pulse period Tp changes, the control system 1 can easily adjust the timing of the output by simply changing the value of the timing adjustment value Ta by the amount of change in the pulse period Tp, thereby providing high user convenience.

[0165] Here, the state detection device can be realized by using, for example, a camera 50 , various sensors (specifically, a displacement sensor, a force sensor, and a distance measuring device using a laser, etc.) etc. Furthermore, the counter unit 10 and the PLC 20 may be formed integrally.

[0166] In the control system 1 , the PLC 20 updates the timing adjustment value Ta using a difference between a reference value indicating a predetermined ideal state of the workpiece 60 to be achieved by the actuator 40 receiving the output and a value calculated by statistically processing the plurality of feedback values.

[0167] According to the above configuration, the control system 1 adjusts the timing of the output using the timing adjustment value Ta updated using the difference between the reference value and the value calculated by statistically processing the plurality of feedback values.

[0168] Here, by updating the timing adjustment value Ta using a value calculated by statistically processing a plurality of the feedback values, even when the feedback value temporarily exhibits an abnormal value, the influence of the abnormal value on the timing adjustment value Ta can be suppressed.

[0169] Therefore, the control system 1 has an effect of being able to adjust the timing of the output with high accuracy using the timing adjustment value Ta updated to an appropriate value while suppressing the influence of such an abnormal value even when the feedback value temporarily exhibits an abnormal value.

[0170] §3. Action Examples

[0171] Figure 3 1 is a flowchart showing an example of processing performed in the entire control system 1. Figure 3 As shown, the timing calculation unit 220 of the PLC 20 obtains the feedback amount (ie, the feedback value related to the comparison agreement output) from the state detection device such as the imaging device 50 as a timing adjustment value update process (S210).

[0172] The feedback amount obtained by PLC20 from the state detection device is data indicating the actual state of the workpiece 60, etc., realized by the actuator 40 receiving the relatively consistent output in each application. For example, if it is an assembly application (the control system 1 causes the actuator 40 to perform the process of installing the assembly component 70 on the workpiece 60), the feedback amount is data indicating the actual assembly position, which will be described in detail using Fig.10 And, for example, if it is a liquid filling application (the control system 1 stops the valve as an actuator from filling the workpiece with liquid), the feedback amount is data indicating the actual filling amount, and the details will be used Fig.11 And so on and so forth.

[0173] The timing calculation unit 220 calculates (updates) the timing adjustment value Ta using the feedback amount acquired in S210 ( S220 ). Next, the PLC 20 transmits the timing adjustment value Ta calculated (updated) by the timing calculation unit 220 in S220 to the counter unit 10 ( S230 ).

[0174] As a timing adjustment value setting process, the communication unit 110 of the counter unit 10 obtains the timing adjustment value Ta sent by the PLC 20 in S230 (S110), for example, repeatedly obtains the target value and the latest timing adjustment value Ta every control cycle of the PLC 20. Next, the output delay unit 160 of the counter unit 10 sets the timing adjustment value Ta obtained in S110 as the standby time, that is, as the output delay (S120, output delay step).

[0175] In the counter unit 10, the measuring unit 130 uses the pulse signal from the pulse signal generating device such as the encoder 30 to measure the measured value of the position of the workpiece, the filling amount, etc. (measurement step). The determination unit 140 determines whether the measured value measured in the measurement step is consistent with the target value (determination step), and if it is determined in the determination step that the measured value is consistent with the target value, the output unit 150 performs a comparative consistency output to the actuator 40 (output step). In particular, the output unit 150 performs a comparative consistency output at a time point when the time point when the measured value is determined to be consistent with the target value in the determination step has passed the standby time set by the output delay unit 160 in the output delay step (S120).

[0176] So far, I have referred to Figure 3 The processing performed by the counter unit 10 described above (in other words, the control method performed by the counter unit 10) can be summarized as follows. That is, the processing (control method) performed by the counter unit 10 includes: a measurement step of counting the number of pulses of the pulse signal to measure the measured value; a comparison step of determining whether the measured value measured in the measurement step is consistent with the target value; and an output step of performing output to the actuator when it is determined in the comparison step that the measured value is consistent with the target value, the output step includes an output delay step (S120), and the output delay step (S120) is to adjust the timing of the output to a time point that has passed the time point determined in the comparison step that the measured value is consistent with the target value and is independent of the period of the pulse signal.

[0177] According to the above configuration, in the above control method, the above pulse signal is received as input from a pulse signal generating device that generates the above pulse signal in accordance with the detection amount, such as an encoder 30 or a flow meter, and the above measured value is measured based on the above received pulse signal. Furthermore, in the above control method, when it is determined that the above measured value is consistent with the above target value, the above output is performed at a time point that has passed since the time point when the above determination is consistent, when the above time point has passed, and the above time point is independent of the period Tp of the above pulse signal.

[0178] Conventionally, there is known a technique for adjusting the timing of the output by increasing or decreasing the target value for a counter unit that performs the output when it is determined that the actual value measured by counting the number of pulses of the pulse signal matches the target value.

[0179] Here, the target value can only be increased or decreased by an integer multiple of the actual measured value equivalent to the "period of the pulse signal (pulse period Tp)". Therefore, in the conventional counter unit that adjusts the output timing only according to the target value, the resolution related to the adjustment of the output timing is limited to the pulse period Tp. Especially when the pulse period Tp is long, the conventional counter unit cannot make detailed adjustments to the output timing, resulting in a larger timing error. Moreover, regardless of the pulse period Tp, the response time is fixed. Therefore, when the pulse period Tp changes, if the conventional counter unit does not increase or decrease the target value in accordance with the changed pulse period Tp, the output timing cannot be maintained, and thus the user convenience is low.

[0180] Compared with such conventional counter units, in the control method, in addition to the target value, the timing of the output is adjusted using the timing adjustment value Ta indicating a time (standby time) independent of the period Tp of the pulse signal. That is, in the control method, the timing of the output is adjusted to a time point at which the time indicated by the timing adjustment value Ta, which is independent of the period Tp of the pulse signal, has passed since the time point at which the actual measured value is determined to be consistent with the target value.

[0181] Therefore, the control method has the following effects: it is not dependent on the period Tp of the pulse signal, that is, the timing of the output can be adjusted using the timing adjustment value Ta independently of the period Tp of the pulse signal. In particular, the time indicated by the timing adjustment value Ta is independent of the period Tp of the pulse signal, so even when the pulse period Tp is long, the control method can finely adjust the timing of the output. Moreover, in the control method, even when the pulse period Tp changes, the timing of the output can be easily adjusted by changing the value of the timing adjustment value Ta by the amount of change in the pulse period Tp, so that user convenience is high.

[0182] (Summary of Timing Adjustment Values)

[0183] Figure 4 This is a diagram illustrating the timing adjustment value Ta set by the counter unit 10. The counter unit 10 adjusts the timing of the "output to the actuator 40 (comparison consistent output)" executed when it is determined that the actual value measured using the pulse signal is consistent with the target value without relying on the period Tp of the pulse signal, thereby achieving high-precision control.

[0184] Figure 4 (A) is about assembling parts of workpiece 60 ( Figure 1 The example shown is a diagram illustrating a process (assembly application) of assembling a component 70 , and a timing adjustment value Ta set by the counter unit 10 .

[0185] The counter unit 10 counts the number of pulses of the pulse signal from the encoder 30, that is, calculates the movement amount of the workpiece 60 (in other words, the conveyor) based on the count value, thereby grasping the position (actual measurement value) of the workpiece 60. The counter unit 10 performs output to the actuator 40 at the time point when the timing adjustment value Ta (standby time) has passed from the time point when it is determined that "the workpiece 60 has reached the starting position (target value)". And at the moment when the "total time of the response time and the timing adjustment value Ta" has passed from the time point when it is determined that "the workpiece 60 has reached the starting position", the actuator 40 installs (assembles) the assembly component 70 to the workpiece 60.

[0186] After the counter unit 10 waits for the time amount of the timing adjustment value Ta, it performs output to the actuator 40, thereby enabling the actuator 40 to install the assembly component 70 at the ideal position on the workpiece 60. That is, the counter unit 10 makes the actual assembly position of the assembly component 70 coincide with the ideal assembly position of the assembly component 70 by making the output to the actuator 40 wait for the time amount of the timing adjustment value Ta.

[0187] Figure 4 (B) is a diagram for explaining the timing adjustment value Ta set by the counter unit 10 in relation to the process of filling the workpiece 60 with liquid (liquid filling application).

[0188] The counter unit 10 counts the number of pulses of the pulse signal from the flow meter as the pulse signal generating device, that is, calculates the filling amount of the liquid into the workpiece 60 based on the count value, thereby grasping the filling amount of the liquid that has been filled into the workpiece 60. The counter unit 10 performs output to the valve (that is, the actuator) at the time point when the timing adjustment value Ta (standby time) has passed since the time point when it is determined that the "count value (that is, the number of pulses of the pulse signal) is consistent with the comparative count value (target value)". And at the moment when the "total time of the response time and the timing adjustment value Ta" has passed since the time point when it is determined that the "count value is consistent with the comparative count value", the valve stops filling the liquid into the workpiece 60.

[0189] The counter unit 10 performs output to the valve after waiting for the time amount of the timing adjustment value Ta, thereby the valve can make the actual filling amount to the workpiece 60 consistent with the target value (ideal filling amount) of the filling amount to the workpiece 60. That is, the counter unit 10 makes the actual value of the filling amount to the workpiece 60 consistent with the target value of the filling amount to the workpiece 60 by making the output to the valve wait for the time amount of the timing adjustment value Ta.

[0190] (Example of connection between counter unit and PLC)

[0191] The counter unit 10 and the PLC 20 only need to be connected to each other so as to be communicable so as to be able to transmit and receive signals (data) to each other at regular communication cycles, and the connection method between the counter unit 10 and the PLC 20 is not particularly limited.

[0192] Figure 5 1 is a diagram showing an example of connection between the counter unit 10 and the PLC 20. The counter unit 10 and the PLC 20 are connected to each other so as to be communicable, and in particular, repeatedly transmit and receive data to each other in a predetermined communication cycle (for example, a control cycle of the PLC 20). As long as the counter unit 10 can communicate with the PLC 20 periodically, the bus / network structure between the counter unit 10 and the PLC 20 is not particularly limited.

[0193] That is, it can also be Figure 5 As shown in (A), the counter unit 10 and the PLC 20 are connected to each other via the PLC direct bus so as to be able to communicate with each other. That is, the counter unit 10 can also be integrally formed with the PLC 20 (in other words, as a functional unit of the PLC 20), and the counter unit 10 and the PLC 20 (especially the CPU unit of the PLC 20) are connected via an internal bus.

[0194] Moreover, it is also possible to Figure 5 As shown in (B), the counter unit 10 and the PLC 20 are connected to each other via a field network so as to be communicable with each other. As a field network connecting the counter unit 10 and the PLC 20, various industrial Ethernets (registered trademarks) can typically be used. As industrial Ethernet (registered trademark), for example, EtherCAT (registered trademark), Profinet IRT, MECHATROLINK (registered trademark)-III, Powerlink, SERCOS (registered trademark)-III, CIP Motion, etc. are known, and any one of these may also be used. Furthermore, field networks other than the industrial Ethernet (registered trademark) may also be used. For example, if motion control is not performed, DeviceNet, CompoNet / IP (registered trademark), etc. may also be used. Figure 5 In the example shown in (B) of FIG. 1 , in a master-slave control system in which the PLC 20 is a master device, the counter unit 10 as a slave device is connected to the PLC 20 via a field network.

[0195] Furthermore, it is also possible to Figure 5As shown in (C), the counter unit 10 and the PLC 20 are connected to each other via the input / output (IO) terminal internal bus. More precisely, the counter unit 10 and the coupler unit (communication coupler) can also be connected to each other via the IO terminal internal bus (internal bus), thereby forming an IO unit as a whole. In addition, in a master-slave control system using the PLC 20 as a host device, the IO unit including the counter unit 10 and the coupler unit can also be connected to the PLC 20 as a slave device via a field network.

[0196] (Details of the timing adjustment value)

[0197] Figure 6 1 is a diagram for explaining the details of the timing adjustment value Ta set by the counter unit 10. When the output unit 150 is implemented by hardware, the timing adjustment value Ta depends on the clock frequency of the hardware that implements the output unit 150, that is, the timing adjustment value Ta is an integer multiple of 1 clock. Therefore, for example, when the output unit 150 is implemented by hardware that runs at a clock frequency of 40 MHz, the counter unit 10 can adjust the timing of the output to the actuator 40 with a resolution of 1 clock (i.e., 25 ns). That is, when the output unit 150 controls the timing of the output to the actuator 40 with a clock of 40 MHz, the timing adjustment value Ta can be set as an integer multiple of 1 clock (i.e., 25 ns), and the resolution related to the output timing of the counter unit 10 is 25 ns.

[0198] For example, as the fastest output, the timing adjustment value Ta can be set to "25 ns", in which case the counter unit 10 performs output to the actuator 40 25 ns after the time when it is determined that "the actual value measured using the pulse signal matches the target value".

[0199] When “a value delayed by 1 clock from the fastest output” is set for the timing adjustment value Ta, the counter unit 10 performs output to the actuator 40 50 ns after the time when “the actual value measured using the pulse signal matches the target value”.

[0200] Similarly, when “a value delayed by 2 clocks from the fastest output” is set for the timing adjustment value Ta, the counter unit 10 performs output to the actuator 40 75 ns after the time point when “coincidence” is determined.

[0201] (Performance examples of each device included in the control system)

[0202] Figure 7 1 is a diagram for explaining the performance of the PLC 20 and the counter unit 10 included in the control system 1. Figure 7As shown in (A), the control cycle (task cycle) of PLC20 is, for example, "0.5ms" to "4ms", and the default is "1ms". Here, the so-called "control cycle" refers to the cycle of reading the enable / disable data.

[0203] In order to count the number of pulses of the pulse signal by PLC20, the task cycle must be less than half of the period Tp of the pulse signal. Therefore, when the task cycle of PLC20 is "1ms", the limit of the period of the pulse signal that PLC20 can count the number of pulses is "2ms (i.e., 500Hz)".

[0204] like Figure 7 As shown in (B), the maximum response frequency of the counter unit 10 is, for example, "500000 Hz" or "4000000 Hz", which is very large compared to the read cycle (control cycle) of the PLC 20. Compared to the pulse signals that the PLC 20 can count, the counter unit 10 can count pulse signals with a very high period.

[0205] Figure 8 1 is a diagram for explaining the performance of the pulse signal generating device such as the encoder 30 and the flow meter included in the control system 1. Figure 8 As shown in (A), for example, the encoder 30 with a resolution of 720 and a rotation speed of 300 rpm (5 revolutions per second) has "720*5=3600 pulses" per second, that is, 3600 Hz, so the pulse period is "1 / 3600=278 μs".

[0206] Therefore, if the output timing is to be adjusted only according to the target value without using the timing adjustment value Ta, the resolution related to the output timing (in other words, the timing adjustment) is "278 μs". If the resolution related to the timing adjustment is to be increased to a higher level without using the timing adjustment value Ta at the same speed, an encoder with a high resolution (i.e., a faster pulse cycle) must be used, but this means that the purchase cost of the encoder 30 increases.

[0207] like Figure 8 As shown in (B), for example, in the case of a flow meter that outputs a pulse signal of 3000 Hz, which is half of the maximum 6000 Hz, the pulse period is “1 / 3000=333 μs.” A flow meter is generally a pulse signal generating device that generates pulses at a lower speed than an encoder.

[0208] If the timing adjustment is to be performed with high accuracy based only on the target value without using the timing adjustment value Ta, a flow meter with the same high resolution as the encoder is required, which means an increase in the purchase cost of the flow meter.

[0209] (Update of Timing Adjustment Value Ta)

[0210] Fig. 9 1 is a diagram showing an overview of a method for updating the timing adjustment value Ta in an assembly application. The timing calculation unit 220 of the PLC 20 performs statistical processing of feedback values ​​related to the comparison and consistency output performed by the counter unit 10, for example, calculating the average value of multiple feedback values. The feedback value related to the comparison and consistency output performed by the counter unit 10 refers to a value indicating the "actual state of the workpiece 60, etc." realized by the actuator 40 that receives the comparison and consistency output from the counter unit 10, and an example thereof is the assembly position described later.

[0211] When determining that the statistic (e.g., average value) related to the feedback value has changed, the timing calculation unit 220 adjusts the timing adjustment value Ta, that is, updates the timing adjustment value Ta so as to eliminate the difference between the statistic related to the feedback value and the reference value. The so-called reference value is a value indicating a "predetermined ideal state of the workpiece 60, etc." that should be achieved by the actuator 40 receiving the comparative consistency output from the counter unit 10, and an example thereof is a predetermined ideal assembly position.

[0212] The timing calculation unit 220, for example, always records position data (data indicating the assembly position) as a feedback value, and performs a statistical test such as a t-test on the average value of the feedback value using a reference value at fixed intervals. When it is determined by the statistical test that "the average value of the feedback value has significantly changed from the normal time", the timing calculation unit 220 updates the timing adjustment value Ta so as to eliminate the change in the average value of the feedback value (the difference from the reference value).

[0213] Fig. 9 (A) is a diagram for explaining "assembly position x of workpiece 60" as a feedback value in assembly application. Assembly position x indicates Fig. 9 The position of the workpiece 60 to which the assembly component 70 is attached in the local coordinate system of (A), in other words, indicates the attachment position of the assembly component 70 in the workpiece 60 . Fig. 9 In FIG. 1 , if the workpiece 60 is loaded by a conveyor and moves at a constant speed from the left side of the drawing to the right side of the drawing, the assembly position x represents the following position. That is, the assembly position x represents the installation position of the assembly component 70 in the workpiece 60 relative to the moving direction of the conveyor.

[0214] Fig. 9 (B) shows the statistical distribution related to the reference value. If the feedback value (=assembly position x) "whose average value is consistent with the reference value" is expressed as "normal feedback value", it shows the statistical distribution related to the normal feedback value. Fig. 9In the “statistical distribution related to the feedback value (i.e., the reference value) in normal state” shown in (B), the horizontal axis represents the average value of the assembly position x, and the vertical axis represents the probability density. The timing calculation unit 220 obtains the timing value in advance by, for example, teaching (teach) or the like. Fig. 9 The “statistical distribution related to the feedback value in normal state” illustrated in (B). Fig. 9 The "statistical distribution related to the feedback value (i.e., the reference value) in normal state" shown in (B) is Fig. 9 In (C), it is represented by a dotted line.

[0215] like Fig. 9 As shown in (C), the timing calculation unit 220 determines whether the feedback value deviates from the reference value (i.e., "normal feedback value") by a predetermined magnitude or more through a statistical test such as a t-test. Furthermore, when the timing calculation unit 220 determines that the feedback value deviates from the reference value by a predetermined magnitude or more, it changes (updates) the timing adjustment value Ta to eliminate the deviation between the two.

[0216] For example, when the deviation (difference) between the average value of the feedback value and the reference value reaches a predetermined value or more, the timing calculation unit 220 determines that an abnormality has occurred. Then, the timing calculation unit 220 that has determined that an abnormality has occurred adjusts the timing adjustment value Ta to correct the deviation.

[0217] Fig. 9 In the example shown in (C), the average value of the feedback value shown by the solid line deviates from the reference value shown by the dotted line (the average value of the feedback value in normal state) to the right side of the drawing by more than a predetermined amount, that is, the assembly position deviates to the right side of the drawing relative to the ideal assembly position. This means that at the assembly time point (the time point of installing the assembly component 70), the workpiece 60 is relatively Fig. 9 The "position of the workpiece 60 during assembly" in a normal state illustrated in (B) is deviated to the left side of the paper.

[0218] Therefore, the timing calculation unit 220 increases the value of the timing adjustment value Ta in order to move the average value of the feedback value to the right side of the paper, that is, to move the average value of the position of the workpiece 60 at the time of mounting the assembly component 70 to the right side of the paper. Since the workpiece 60 moves from the left side of the paper to the right side of the paper at a constant speed, the time when the assembly component 70 is mounted on the workpiece 60 is delayed by the increase in the value of the timing adjustment value Ta, and the position of the workpiece 60 at the time of mounting moves to the right side of the paper.

[0219] The control system 1 can reflect the difference between the reference value and the feedback value on the timing adjustment value Ta to update the timing adjustment value Ta to an appropriate value, and thus can realize high-precision control using the updated timing adjustment value Ta.

[0220] (Example of obtaining feedback value (1) Regarding the assembly position)

[0221] Fig.10 This is a diagram showing a specific example of a method for detecting an assembly position x in relation to an assembly application. The state detection device detects the actual state (e.g., assembly position x) of a workpiece 60 or the like realized by an actuator 40 receiving a comparison consistency output from a counter unit 10, and sends the detection result to a PLC 20 as a feedback value associated with the comparison consistency output.

[0222] Fig.10 (A) shows the following example, that is, using the photographing device 50 (camera) as the state detection device to detect the actual state of the workpiece 60 (especially the assembly position x) at the time when the assembly component 70 is installed, as a feedback value related to the comparison consistency output. Fig.10 As shown in (A) of FIG. 1 , in the captured image captured by the imaging device 50 , the position (mounting position x) of the workpiece 60 at the time when the mounting component 70 is mounted by the actuator 40 that receives the comparative matching output is identified.

[0223] In the captured image, "assembly position x" indicates Fig.10 The position of the workpiece 60 to which the assembly component 70 is attached in the local coordinate system of (A), in other words, indicates the attachment position of the assembly component 70 in the workpiece 60 . Fig.10 In the figure, if the workpiece 60 is loaded by a conveyor and moves at a fixed speed from the left side of the paper to the right side of the paper, the assembly position x represents the following position. That is, the assembly position x represents the installation position of the assembly component 70 in the workpiece 60 related to the moving direction of the conveyor. The timing calculation unit 220 of the PLC 20 uses the captured images obtained from the imaging device 50 every control cycle to determine the state of the workpiece 60, etc. (for example, the assembly position x) at the time point when the assembly component 70 is installed, as a feedback value related to the comparison consistency output.

[0224] Fig.10 (B) shows an example in which a displacement sensor 51 is used as a state detection device to detect the actual state of the workpiece 60 (especially the assembly position x) at the time when the assembly component 70 is installed as a feedback value related to the comparison consistency output. Fig.10 In (B), “the position of the part (assembly component 70)” indicates the measurement distance, that is, “the position of the workpiece 60 (=assembly position x) at the time when the assembly component 70 is mounted”.

[0225] like Fig.10As shown in (B), the displacement sensor 51 detects the measured distance at the time when the assembly component 70 is installed by the actuator 40 that receives the relatively consistent output, and sends the detected measured distance as a feedback value to the PLC 20. The timing calculation unit 220 of the PLC 20 uses the measured distance obtained from the displacement sensor 51 every control cycle to determine the state of the workpiece 60, etc. (for example, the assembly position x) at the time when the assembly component 70 is installed, as a feedback value related to the relatively consistent output.

[0226] (Example of obtaining feedback value (1) Regarding filling amount)

[0227] Fig.11 This is a diagram showing a specific example of a method for detecting an actual filling amount in a liquid filling application. The state detection device detects the actual state (e.g., weight / accumulated amount) of a workpiece 60, etc., which is realized by an actuator 40 receiving a comparatively consistent output from a counter unit 10, and sends the detection result to a PLC 20 as a feedback value related to the comparatively consistent output.

[0228] Fig.11 (A) represents the following example, that is, using a force sensor 52 as a state detection device to detect the actual weight / accumulated amount of liquid that has been filled into the workpiece 61 at the time point when the valve (actuator) stops filling, as a feedback value related to the comparison consistency output.

[0229] like Fig.11 As shown in (A), the load cell 52 detects the weight / cumulative amount of the workpiece 61 at the time when the valve receiving the relatively consistent output stops the liquid filling, and sends the voltage value representing the detected weight / cumulative amount as a feedback value to the PLC 20. The timing calculation unit 220 of the PLC 20 uses the voltage value obtained from the load cell 52 every control cycle as a feedback value related to the relatively consistent output to determine the state (e.g., weight / cumulative amount) of the workpiece 61 at the time when the liquid filling is stopped.

[0230] Fig.11 (B) shows an example in which a distance measuring device 53 is used as a state detection device to detect the distance from the point in time when the valve (actuator) stops filling to the liquid level of the liquid filled into the workpiece 61 as a feedback value related to the comparison consistent output. Fig.11 In (B), “the distance to the liquid surface” indicates “the amount of liquid filled into the workpiece 61 at the time when the valve stops filling”.

[0231] like Fig.11As shown in (B), the distance measuring device 53 uses a laser or the like to detect the distance from the time point when the valve receiving the comparative consistent output stops filling to the liquid level of the liquid filled into the workpiece 61. The distance measuring device 53 sends the detected measured distance as a feedback value to the PLC 20. The timing calculation unit 220 of the PLC 20 uses the measured distance obtained from the distance measuring device 53 every control cycle as a feedback value related to the comparative consistent output to determine the state of the workpiece 61, etc. (for example, the filling amount into the workpiece 61) at the time point when the valve stops filling.

[0232] §4. Variations

[0233] (About control device)

[0234] So far, an example has been described in which the control device that sends the target value and the timing adjustment value Ta to the counter unit 10 at every fixed communication cycle is the PLC 20. However, the control device that sends the target value and the timing adjustment value Ta to the counter unit 10 does not necessarily have to be a PLC. The control device that sends the target value and the timing adjustment value Ta to the counter unit 10 may also be an industrial personal computer (IPC) or the like.

[0235] (About pulse signal)

[0236] Furthermore, the description so far has been given of an example in which the period Tp of the pulse signal is fixed in principle. For example, the movement amount (movement speed) of the workpiece (conveyor) per unit time is fixed, and the filling amount (filling speed) of the liquid filled into the workpiece per unit time is fixed.

[0237] However, the period Tp of the pulse signal only needs to be predictable for the counter unit 10, and it is not necessary for the counter unit 10 to have the period Tp of the pulse signal fixed. As long as the counter unit 10 can predict the period Tp of the pulse signal, the target value and the timing adjustment value Ta can be set, so that the target value coincides (the actual measured value coincides with the target value) at a timing that is more than the response time before the actuator action completion timing.

[0238] In the control system 1, the timing adjustment value Ta can be set to a value that is not dependent on the period Tp of the pulse signal (independent of the period Tp of the pulse signal). The counter unit 10 uses the timing adjustment value Ta, takes the time that is not dependent on the period Tp of the pulse signal as the standby time, and performs a predetermined output to the actuator at a time point when the standby time has passed since the time point when the measured value is determined to be consistent with the target value.

[0239] 〔Example of implementation using software〕

[0240] The functional blocks of the counter unit 10 and the PLC 20 (specifically, the communication unit 110, the setting unit 120, the measuring unit 130, the determination unit 140, the output unit 150 and the timing calculation unit 220) can be implemented by a logic circuit (hardware) formed on an integrated circuit (IC chip), etc., or can be implemented by software using a central processing unit (CPU).

[0241] In the latter case, the counter unit 10 and the PLC 20 each include a CPU that executes commands of the software, i.e., the program, that realizes each function, a read-only memory (ROM) or a storage device (these are referred to as "recording medium") that records the program and various data readable by a computer (or CPU), and a random access memory (RAM) that expands the program. In addition, the program is read and executed from the recording medium by a computer (or CPU), thereby achieving the purpose of the present invention. As the recording medium, a "non-temporary tangible medium" can be used, for example, a tape, a disk, a card, a semiconductor memory, a programmable logic circuit, etc. can be used. In addition, the program can also be provided to the computer via any transmission medium (communication network or broadcast wave, etc.) that can transmit the program. In addition, the present invention can also be implemented in the form of a data signal embedded in a carrier wave that materializes the program through electronic transmission.

[0242] (Notes)

[0243] A counter unit according to one embodiment of the present invention includes: a measuring unit, which counts the number of pulses of a pulse signal to measure an actual value; a comparing unit, which determines whether the actual value measured by the measuring unit is consistent with a target value; and an output unit, which performs output to an actuator when the comparing unit determines that the actual value is consistent with the target value, wherein the output unit includes an output delay unit, which adjusts the timing of the output to a time point after a time point at which the comparing unit determines that the actual value is consistent with the target value and a time independent of the period of the pulse signal has passed, as indicated by a timing adjustment value.

[0244] According to the structure, the counter unit receives the pulse signal as input from a pulse signal generating device such as an encoder or a flow meter that generates the pulse signal in accordance with the detected amount, and measures the measured value based on the received pulse signal. Furthermore, when the counter unit determines that the measured value is consistent with the target value, the output is performed at a time point when the time indicated by the timing adjustment value, which is independent of the period Tp of the pulse signal, has passed since the time point when the consistency is determined. Hereinafter, the timing adjustment value is also referred to as "timing adjustment value Ta".

[0245] Conventionally, there is known a technique for adjusting the timing of the output by increasing or decreasing the target value for a counter unit that performs the output when it is determined that the actual value measured by counting the number of pulses of the pulse signal matches the target value.

[0246] Here, the target value can only be increased or decreased by an integer multiple of the actual measured value equivalent to the "period of the pulse signal (pulse period Tp)". Therefore, in the conventional counter unit that adjusts the output timing only according to the target value, the resolution related to the adjustment of the output timing is limited to the pulse period Tp. Especially when the pulse period Tp is long, the conventional counter unit cannot make detailed adjustments to the output timing, resulting in a larger timing error. Moreover, regardless of the pulse period Tp, the response time is fixed. Therefore, when the pulse period Tp changes, if the conventional counter unit does not increase or decrease the target value in accordance with the changed pulse period Tp, the output timing cannot be maintained, and thus the user convenience is low.

[0247] Compared with such conventional counter units, the counter unit uses the timing adjustment value Ta indicating a time (standby time) independent of the period Tp of the pulse signal in addition to the target value to adjust the timing of the output. That is, the counter unit adjusts the timing of the output to a time point at which the time indicated by the timing adjustment value Ta, which is independent of the period Tp of the pulse signal, has passed since the time point at which the actual measured value is determined to be consistent with the target value.

[0248] Therefore, the counter unit has the following effect: it is not dependent on the period Tp of the pulse signal, that is, it is possible to use the timing adjustment value Ta to adjust the timing of the output independently of the period Tp of the pulse signal. In particular, the time indicated by the timing adjustment value Ta is independent of the period Tp of the pulse signal, so even when the pulse period Tp is long, the counter unit can finely adjust the timing of the output. Moreover, even when the pulse period Tp changes, the counter unit can easily adjust the timing of the output by changing the value of the timing adjustment value Ta by the amount of change in the pulse period Tp, so that user convenience is high.

[0249] In the counter unit of an embodiment of the present invention, the output section may include a logic circuit based on hardware, and the time indicated by the timing adjustment value may be an integral multiple of a clock of the logic circuit.

[0250] According to the structure, in the counter unit, the output part includes a hardware-based logic circuit. For example, the output part can also be implemented using at least one of a field programmable gate array (FPGA), a complex programmable logic device (CPLD), and an application specific integrated circuit (ASIC). In addition, in the counter unit, the time indicated by the timing adjustment value Ta is an integer multiple of the clock of the logic circuit.

[0251] Here, by implementing the output unit using a hardware-based logic circuit, the delay amount can be made smaller than when the output unit is implemented using software. That is, by implementing the output unit using a hardware-based logic circuit, a smaller value can be set for the time (standby time) indicated by the timing adjustment value Ta than when the output unit is implemented using software. Furthermore, by implementing the output unit using a hardware-based logic circuit, the delay variation can be suppressed compared to when the output unit is implemented using software.

[0252] Therefore, the counter unit has the following effect: when it is determined that the actual measured value is consistent with the target value, the output to the actuator can be performed with a shorter standby time than when the output unit is implemented by software. In addition, the counter unit has the following effect: compared with the case where the output unit is implemented by software, the deviation of the delay can be suppressed.

[0253] The counter unit of one embodiment of the present invention may further include a communication unit that receives the target value and the timing adjustment value from a control device that performs input / output processing of enable / disable data in a predetermined control cycle.

[0254] According to the above configuration, the counter unit receives the target value and the timing adjustment value Ta from the control device, and adjusts the timing of the output using the received target value and the timing adjustment value Ta.

[0255] Here, the communication method between the counter unit and the control device is not particularly limited. The counter unit and the control device may be connected to each other via a field network, for example, and the counter unit receives the target value and the timing adjustment value Ta from the control device via the field network. Moreover, the counter unit may be formed integrally with the control device, that is, may be connected to the control device via an internal bus. In this case, the counter unit may also receive the target value and the timing adjustment value Ta from the control device via the internal bus.

[0256] For example, the counter unit repeatedly receives the target value and the timing adjustment value Ta from the control device every control period, and adjusts the timing of the output using the received target value and the timing adjustment value Ta.

[0257] Therefore, the counter unit has the following effect: the actual value measured by the device itself is compared with the target value received from the control device, and the timing of the output can be adjusted using the timing adjustment value Ta received from the control device. That is, the user can adjust the timing of the output using the target value and the timing adjustment value Ta sent by the control device to the counter unit (for example, periodically).

[0258] In the counter unit according to an embodiment of the present invention, the timing adjustment value may be updated using a feedback value indicating an actual state of a workpiece achieved by the actuator receiving the output from the counter unit.

[0259] According to the above configuration, the counter unit has an effect of being able to adjust the timing of the output with high accuracy using the timing adjustment value Ta updated to an appropriate value using a feedback value related to the output to the actuator.

[0260] In the counter unit of one embodiment of the present invention, the timing adjustment value may be updated using a difference between a reference value indicating a predetermined ideal state of the workpiece to be achieved by the actuator receiving the output and a value calculated by statistically processing the plurality of feedback values.

[0261] According to the above configuration, the counter unit adjusts the timing of the output using the timing adjustment value Ta updated to an appropriate value using the difference between the reference value and a value calculated by statistically processing the plurality of feedback values.

[0262] Here, by updating the timing adjustment value Ta using a value calculated by statistically processing a plurality of the feedback values, even when the feedback value temporarily exhibits an abnormal value, the influence of the abnormal value on the timing adjustment value Ta can be suppressed.

[0263] Therefore, the counter unit has an effect of being able to adjust the timing of the output with high accuracy using the timing adjustment value Ta updated to an appropriate value while suppressing the influence of such an abnormal value even when the feedback value temporarily exhibits an abnormal value.

[0264] A control device according to an embodiment of the present invention can also perform input / output processing of enable / disable data in a prescribed control cycle, and the control device includes: an updating unit, which uses a value representing an actual state of a workpiece realized by the actuator that receives the output from the counter unit as a feedback value related to the output to update the timing adjustment value, and sends the timing adjustment value and the target value updated by the updating unit to the counter unit.

[0265] According to the configuration, the control device updates the timing adjustment value Ta to an appropriate value using the feedback value, and sends the updated timing adjustment value Ta and the target value to the counter unit.

[0266] Therefore, the control device has an effect of being able to adjust the timing of the output to an appropriate time point independent of the period Tp of the pulse signal by transmitting the timing adjustment value Ta and the target value updated to appropriate values.

[0267] Here, the control device may also obtain the feedback value from a state detection device implemented by, for example, a photographing device (camera), various sensors (specifically, a displacement sensor, a force sensor, and a distance measuring device using a laser, etc.), etc. Furthermore, the control device may also be formed integrally with the counter unit.

[0268] In the control device of one embodiment of the present invention, the updating unit may update the timing adjustment value using a difference between a reference value representing a predetermined ideal state of the workpiece to be achieved by the actuator receiving the output and a value calculated by statistically processing the plurality of feedback values.

[0269] According to the above configuration, the control device updates the timing adjustment value Ta for adjusting the timing of the output to an appropriate value using the difference between the reference value and the value calculated by statistically processing the plurality of feedback values.

[0270] Here, by updating the timing adjustment value Ta using a value calculated by statistically processing a plurality of the feedback values, even when the feedback value temporarily exhibits an abnormal value, the influence of the abnormal value on the timing adjustment value Ta can be suppressed.

[0271] Therefore, the control device has an effect of being able to update the timing adjustment value Ta to an appropriate value that suppresses the influence of the abnormal value even when the feedback value temporarily takes on an abnormal value.

[0272] The control system of one embodiment of the present invention may also include: the counter unit; the control device; and a state detection device, which detects the actual state of the workpiece realized by the actuator that receives the output from the counter unit, and sends the value representing the detected actual state of the workpiece to the control device as the feedback value.

[0273] According to the above configuration, the control system includes the counter unit, the control device, and the state detection device, and the counter unit adjusts the timing of the output using the timing adjustment value updated by the update unit.

[0274] The control system has the following effects: the feedback value detected by the state detection device can be used to update the timing adjustment value Ta to an appropriate value. Moreover, the control system has the following effects: the timing of the output can be adjusted to a timing independent of the period Tp of the pulse signal using the timing adjustment value Ta that has been updated to an appropriate value.

[0275] In particular, the time indicated by the timing adjustment value Ta is independent of the period Tp of the pulse signal, so the control system can finely adjust the timing of the output even when the pulse period Tp is long. Moreover, even when the pulse period Tp changes, the control system can easily adjust the timing of the output by simply changing the value of the timing adjustment value Ta by the amount of change in the pulse period Tp, thereby providing high user convenience.

[0276] Here, the state detection device may be implemented by using, for example, a camera, various sensors (specifically, a displacement sensor, a force sensor, and a distance measuring device using a laser, etc.) etc. Furthermore, the counter unit and the control device may be formed integrally.

[0277] In a control system according to an embodiment of the present invention, the control device may update the timing adjustment value using a difference between a reference value representing a predetermined ideal state of the workpiece to be achieved by the actuator receiving the output and a value calculated by statistically processing a plurality of the feedback values.

[0278] According to the above configuration, the control system adjusts the timing of the output using the timing adjustment value Ta updated using the difference between the reference value and the value calculated by statistically processing the plurality of feedback values.

[0279] Here, by updating the timing adjustment value Ta using a value calculated by statistically processing a plurality of the feedback values, even when the feedback value temporarily exhibits an abnormal value, the influence of the abnormal value on the timing adjustment value Ta can be suppressed.

[0280] Therefore, the control system has an effect that, even when the feedback value temporarily exhibits an abnormal value, the timing of the output can be adjusted with high accuracy using the timing adjustment value Ta updated to an appropriate value while suppressing the influence of such an abnormal value.

[0281] A control method for a counter unit according to an embodiment of the present invention includes: a measuring step of counting the number of pulses of a pulse signal to measure an actual value; a comparing step of determining whether the actual value measured in the measuring step is consistent with a target value; and an output step of executing output to an actuator when it is determined in the comparing step that the actual value is consistent with the target value, wherein the output step includes an output delay step, wherein the timing of the output is adjusted to a time point after a time point at which the actual value is determined in the comparing step to be consistent with the target value and which is independent of the period of the pulse signal and which has passed through a time point indicated by a timing adjustment value.

[0282] According to the structure, in the control method, the pulse signal is received as input from a pulse signal generating device such as an encoder or a flow meter that generates the pulse signal in accordance with the detected amount, and the measured value is measured based on the received pulse signal. Furthermore, in the control method, when it is determined that the measured value is consistent with the target value, the output is performed at a time point after a time independent of the period Tp of the pulse signal indicated by the timing adjustment value has passed since the time point when the consistency is determined. Hereinafter, the timing adjustment value is also referred to as "timing adjustment value Ta".

[0283] Conventionally, there is known a technique for adjusting the timing of the output by increasing or decreasing the target value for a counter unit that performs the output when it is determined that the actual value measured by counting the number of pulses of the pulse signal matches the target value.

[0284] Here, the target value can only be increased or decreased by an integer multiple of the actual measured value equivalent to the "period of the pulse signal (pulse period Tp)". Therefore, in the conventional counter unit that adjusts the output timing only according to the target value, the resolution related to the adjustment of the output timing is limited to the pulse period Tp. Especially when the pulse period Tp is long, the conventional counter unit cannot make detailed adjustments to the output timing, resulting in a larger timing error. Moreover, regardless of the pulse period Tp, the response time is fixed. Therefore, when the pulse period Tp changes, if the conventional counter unit does not increase or decrease the target value in accordance with the changed pulse period Tp, the output timing cannot be maintained, and thus the user convenience is low.

[0285] Compared with such conventional counter units, in the control method, in addition to the target value, the timing of the output is adjusted using the timing adjustment value Ta indicating a time (standby time) independent of the period Tp of the pulse signal. That is, in the control method, the timing of the output is adjusted to a time point at which the time indicated by the timing adjustment value Ta, which is independent of the period Tp of the pulse signal, has passed since the time point at which the actual measured value is determined to be consistent with the target value.

[0286] Therefore, the control method has the following effects: it is not dependent on the period Tp of the pulse signal, that is, the timing of the output can be adjusted using the timing adjustment value Ta independently of the period Tp of the pulse signal. In particular, the time indicated by the timing adjustment value Ta is independent of the period Tp of the pulse signal, so even when the pulse period Tp is long, the control method can finely adjust the timing of the output. Moreover, in the control method, even when the pulse period Tp changes, the timing of the output can be easily adjusted by changing the value of the timing adjustment value Ta by the amount of change in the pulse period Tp, so that user convenience is high.

[0287] The present invention is not limited to the above-described embodiments, and various modifications can be made within the scope of the claims. Embodiments obtained by appropriately combining technical components disclosed in different embodiments are also included in the technical scope of the present invention.

Claims

1. A counter unit, comprising: A measuring unit that counts the number of pulses of the pulse signal to measure an actual value; a comparing unit for determining whether the actual value measured by the measuring unit is consistent with a target value; as well as an output unit that performs output to an actuator when the comparison unit determines that the actual measurement value is consistent with the target value, The output unit includes an output delay unit, which adjusts the timing of the output to a time point that has passed a time independent of the period of the pulse signal and indicated by a timing adjustment value from a time point when the comparison unit determines that the measured value is consistent with the target value. The timing adjustment value is updated using a feedback value indicating an actual state of the workpiece achieved by receiving the output from the output unit to the actuator. The timing adjustment value is updated using a difference between a reference value indicating a predetermined ideal state of the workpiece to be achieved by the actuator receiving the output and a value calculated by statistically processing the plurality of feedback values.

2. The counter unit according to claim 1, wherein The output section includes a hardware-based logic circuit, The time indicated by the timing adjustment value is an integer multiple of the clock of the logic circuit.

3. The counter unit according to claim 1 or 2, further comprising: The communication unit receives the target value and the timing adjustment value from a control device that performs input / output processing of enable / disable data in a predetermined control cycle.

4. A control device for executing input / output processing of enable / disable data at a prescribed control cycle, the control device comprising: an updating unit that updates the timing adjustment value using a value indicating an actual state of a workpiece realized by the actuator receiving the output from the counter unit as a feedback value related to the output, The timing adjustment value and the target value updated by the updating section are sent to the counter unit according to claim 3 .

5. The control device according to claim 4, wherein The updating unit updates the timing adjustment value using a difference between a reference value indicating a predetermined ideal state of the workpiece to be achieved by the actuator receiving the output and a value calculated by statistically processing the plurality of feedback values.

6. A control system comprising: The counter unit as claimed in claim 3; A control device as claimed in claim 4 or 5; as well as The state detection device detects an actual state of the workpiece realized by the actuator receiving the output from the counter unit, and sends a value indicating the detected actual state of the workpiece to the control device as a feedback value.

7. The control system according to claim 6, wherein The control device updates the timing adjustment value using a difference between a reference value indicating a predetermined ideal state of the workpiece to be achieved by the actuator receiving the output and a value calculated by statistically processing the plurality of feedback values.

8. A method for controlling a counter unit, comprising: A measuring step, counting the number of pulses of the pulse signal to measure an actual value; A comparison step, determining whether the actual value measured in the measuring step is consistent with the target value; as well as an output step of executing output to an actuator when it is determined in the comparison step that the measured value is consistent with the target value, The output step includes an output delay step, wherein the output timing is adjusted to a time point after a time point when the measured value is determined to be consistent with the target value in the comparison step by a time independent of the period of the pulse signal and indicated by a timing adjustment value. The timing adjustment value is updated using a feedback value indicating an actual state of the workpiece achieved by receiving the output to the actuator from the output step, The timing adjustment value is updated using a difference between a reference value indicating a predetermined ideal state of the workpiece to be achieved by the actuator receiving the output and a value calculated by statistically processing the plurality of feedback values.