Encoder and measurement system
Patent Information
- Application Number
- CN202480088811.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-03-01
- Filing Date
- 2024-11-15
- Publication Date
- 2026-09-22
AI Technical Summary
根据本发明的编码器,能从外部的控制器变更与单圈复位的执行许可/禁止相关的非易失性存储器中的设定。
Smart Images

Figure CN122804134A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to encoders and measurement systems, and particularly to improvements in 1-rotation reset in encoders. Background Technology
[0002] After assembling the encoder onto a measuring device such as a motor and mechanically aligning the motor's magnetic pole position with the encoder's reference position, the user performs an electrical alignment process called "single-turn reset" to synchronize the motor's magnetic pole position with the encoder's reference position. In this case, when the encoder receives a single-turn reset request signal from an external controller, it sets its received one-turn position to 0 (the origin position) to perform the reset.
[0003] The technology for single-turn reset is disclosed in the following Patent Document 1.
[0004] Existing technical documents Patent documents Patent Document 1: Japanese Patent Application Publication No. 08-189826 Summary of the Invention
[0005] The problem that the invention aims to solve Although not detailed in the aforementioned Patent Document 1, the setting value for the permission / prohibition of single-turn reset is stored in the non-volatile memory within the encoder.
[0006] When a user unintentionally performs a single-turn reset, misalignment of the motor's magnetic poles and the encoder can occur, preventing proper position detection. To prevent this, ideally, the settings of the non-volatile memory should be changed in a way that prevents further single-turn resets after a normal user operation.
[0007] However, the setting in the non-volatile memory for whether to perform a single-turn reset is executed is done by connecting the device to a dedicated port before the encoder leaves the factory. Therefore, the user cannot arbitrarily change the setting for enabling / disabling single-turn reset.
[0008] Therefore, a technique is desired that allows users to change settings in non-volatile memory related to single-turn reset execution enable / disable without using a setting device.
[0009] The object of the present invention is to provide an encoder and measurement system that can change the settings in a non-volatile memory related to the permission / prohibition of single-turn reset from an external controller without using a setting device.
[0010] Solution for solving the problem The encoder of the present invention includes: a control unit; a non-volatile memory; a sensing unit for detecting the state of the device being measured; a signal processing unit for generating state detection information based on the detection results of the sensing unit; and a communication unit for communicating with an external controller. The memory stores a single-turn reset execution enable / disable setting value, which includes a reset execution permission setting or a reset execution prohibition setting. The control unit controls the encoder by sending the state detection information generated by the signal processing unit to the controller via the communication unit when it receives a transmission request signal from the controller via the communication unit. When the control unit receives a setting request signal from the controller via the communication unit that includes a new single-turn reset execution enable / disable setting value, it stores the new single-turn reset execution enable / disable setting value in the memory. The control unit controls the encoder in the following manner: when it receives a single-turn reset request signal from the controller via the communication unit, if the single-turn reset execution enable / disable setting value stored in the memory is a reset execution prohibition setting, then a single-turn reset is not performed; if the single-turn reset execution enable / disable setting value stored in the memory is a reset execution permission setting, then a single-turn reset is performed.
[0011] In the encoder of the present invention, the single-turn reset execution setting may include a reset execution permission setting or a reset execution prohibition setting. The reset execution prohibition setting may also include a changeable reset execution prohibition setting or an unchangeable reset execution prohibition setting.
[0012] In the encoder of the present invention, if the single-turn reset execution enable / disable setting value included in the single-turn reset request signal is a changeable reset execution disable setting, and if the single-turn reset execution enable / disable setting value stored in the memory is an unchangeable reset execution disable setting, then the control unit does not rewrite the single-turn reset execution enable / disable setting value stored in the memory; and if the single-turn reset execution enable / disable setting value stored in the memory is a reset execution permit setting, then the control unit rewrites the single-turn reset execution enable / disable setting value stored in the memory to a changeable reset execution disable setting.
[0013] In the encoder of the present invention, if the single-turn reset execution enable / disable setting value included in the single-turn reset request signal is a reset execution permission setting, and if the single-turn reset execution enable / disable setting value stored in the memory is an unchangeable reset execution prohibition setting, then the control unit does not rewrite the single-turn reset execution enable / disable setting value stored in the memory; and if the single-turn reset execution enable / disable setting value stored in the memory is a changeable reset execution prohibition setting, then the control unit rewrites the single-turn reset execution enable / disable setting value stored in the memory to a reset execution permission setting.
[0014] In the encoder of the present invention, if the single-turn reset execution enable / disable setting value included in the single-turn reset request signal is an unchangeable reset execution prohibition setting, and if the single-turn reset execution enable / disable setting value stored in the memory is a reset execution permission setting or a changeable reset execution prohibition setting, then the control unit rewrites the single-turn reset execution enable / disable setting value stored in the memory to an unchangeable reset execution prohibition setting.
[0015] In the encoder of the present invention, the control unit may also have the function of writing data to a specified address of the memory in accordance with the memory access from the controller. When the control unit receives a single-turn reset request signal in the form of a memory access instruction, which includes a new single-turn reset execution enable / disable value and the address of the new single-turn reset execution enable / disable value in the memory, via the communication unit from the controller, the control unit writes the new single-turn reset execution enable / disable value to the address of the memory.
[0016] In the encoder of the present invention, the control unit may read the single-turn reset execution enable / disable setting value stored in the memory when the power is turned on, and determine whether to execute the single-turn reset based on the read single-turn reset execution enable / disable setting value.
[0017] The measurement system of the present invention includes: a controller that communicates with an encoder; and an encoder as described in any of the above claims that communicates with the controller. When the controller sends a request signal to the encoder, the encoder sends state detection information to the controller according to the request signal. When the controller sends a setting request signal to the encoder, including a single-turn reset execution enable / disable setting value containing either a reset execution enable / disable setting or a reset execution disable setting, the encoder stores the single-turn reset execution enable / disable setting value in a memory according to the setting request signal. When the controller sends a single-turn reset request signal to the encoder, if the single-turn reset execution enable / disable setting value stored in the memory is a reset execution disable setting, the encoder does not perform a single-turn reset; if the single-turn reset execution enable / disable setting value stored in the memory is a reset execution enable setting, the encoder performs a single-turn reset.
[0018] Invention Effects According to the encoder of the present invention, the settings in the non-volatile memory related to the permission / disallowment of single-turn reset can be changed from an external controller.
[0019] According to the measurement system of the present invention, settings in a non-volatile memory related to the permission / disallowment of single-turn reset of the encoder can be changed from the controller. Attached Figure Description
[0020] Figure 1 This is a configuration diagram showing the structure of the measurement system including the controller and the encoder according to Embodiment 1.
[0021] Figure 2 This is a configuration diagram showing the encoder and signal flow of Embodiment 1.
[0022] Figure 3 This is an explanatory diagram showing whether the rewrite state of the set value can be performed during the single-turn reset execution in Implementation Method 1.
[0023] Figure 4 This is an explanatory diagram showing an example of the format of the memory access instructions used in Implementation Method 1.
[0024] Figure 5 This is a configuration diagram showing the configuration of a measurement system including a controller and an encoder, which is a comparative example.
[0025] Figure 6 This is a diagram showing the configuration of the encoder and signal flow of the comparative example. Detailed Implementation
[0026] Hereinafter, embodiments of the encoder and measurement system of the present invention will be described using the accompanying drawings. It should be noted that in each figure, the same reference numerals are used to label the same parts.
[0027] Implementation method one. First, refer to Figure 1 The configuration of the measurement system 1 according to Embodiment 1 will be described. Figure 1 This is a configuration diagram showing the structure of the measurement system 1, which includes a controller 10 and an encoder 100, according to Embodiment 1. Here, the controller 10 functions as a host device, and the encoder 100 functions as a terminal device.
[0028] [Configuration of encoder 100 in Embodiment 1] exist Figure 1 In this design, the encoder 100 is configured to communicate with an external controller 10. The encoder 100 mainly includes a control unit 110, a memory 120, a communication unit 130, a sensing unit 150, and a signal processing unit 160.
[0029] The control unit 110 includes a request determination unit 111, a signal processing controller 112, a memory controller 113, a single-cycle reset determination unit 114, and a single-cycle reset execution unit 115.
[0030] The request determination unit 111 determines and assigns each of the transmission request signal, setting request signal, and single-cycle reset request signal from the controller 10.
[0031] That is, the request determination unit 111 provides the request signal to the signal processing controller 112 (see reference). Figure 1(b) The setting request signal is provided to the memory controller 113 (see reference). Figure 1 (d) The single-turn reset request signal is provided to the single-turn reset determination unit 114 (refer to d). Figure 1 (e).
[0032] Here, the request signal for sending a request refers to a general request signal known as RTS (Request To Send), which is a signal that requests the state detection information generated by the signal processing unit 160 based on the detection result of the sensing unit 150 to be sent to the controller 10.
[0033] The single-turn reset request signal refers to the signal from the controller 10 to the encoder 100 requesting a single-turn reset.
[0034] The setting request signal refers to a signal that requests the encoder 100 from the controller 10 to update the single-turn reset execution setting value, including a new single-turn reset execution enable / disable setting value.
[0035] It should be noted that the single-turn reset request signal and the setting request signal are signals implemented by partially changing or expanding the bits that constitute the general transmit request signal.
[0036] When the signal processing controller 112 receives a transmission request signal from the external controller 10 via the request determination unit 111, it will process the status detection information generated by the signal processing unit 160 (see reference 160). Figure 1 The control is performed by transmitting k) to the controller 10 via the communication unit 130.
[0037] When the encoder 100 is powered on, the memory controller 113 reads the single-turn reset execution enable / disable setting value stored in the memory 120 (refer to...). Figure 1 f), and supplies the read single-turn reset execution enable / disable setting value to the single-turn reset determination unit 114 (refer to f). Figure 1 g).
[0038] When the memory controller 113 receives a setting request signal from the controller 10 via the request determination unit 111, including a setting value for whether a new single-cycle reset can be performed (see reference...), Figure 1 (d) If the contents of memory 120 can be changed, the new single-cycle reset execution setting value is stored in memory 120 (refer to d). Figure 1 (f). On the other hand, if the memory controller 113 receives a setting request signal from the controller 10 that includes a new single-turn reset execution setting value, and cannot change the stored contents of the memory 120, it will not store the new single-turn reset execution setting value in the memory 120.
[0039] When the single-turn reset determination unit 114 receives a single-turn reset request signal from the controller 10 via the request determination unit 111 (refer to...), Figure 1 (e), if a single-turn reset from memory controller 113 is executed, can the set value be (refer to)? Figure 1 If g) is the reset execution permission setting, then the single-turn reset execution unit 115 is commanded to perform a single-turn reset (see reference). Figure 1 h).
[0040] On the other hand, the single-turn reset determination unit 114 receives a single-turn reset request signal from the controller 10 via the request determination unit 111 (see reference). Figure 1 (e), if a single-turn reset from memory controller 113 is executed, can the set value be (refer to)? Figure 1 If g) is the reset execution prohibition setting, then the single-turn reset execution unit 115 will not be commanded to perform a single-turn reset.
[0041] The single-turn reset execution unit 115 responds to the single-turn reset execution command from the single-turn reset determination unit 114 (see reference). Figure 1 h), to the signal processing unit 160 to execute the single-turn reset (refer to h), Figure 1 (i).
[0042] Memory 120 stores, according to control from memory controller 113, single-cycle reset execution enable / disable setting values, which include reset execution enable / disable setting (see reference). Figure 1 f). The memory 120, under control from the memory controller 113, stores single-turn reset execution enable / disable settings, which are either set as reset execution disable settings, changeable reset execution disable settings, or non-changeable reset execution disable settings. Furthermore, the memory 120 can also, under control from the memory controller 113, rewrite single-turn reset execution enable / disable settings other than those with non-changeable reset execution disable settings.
[0043] In order to communicate with the external controller 10, the communication unit 130 includes a receiving unit 131 and a transmitting unit 132. The receiving unit 131 receives a transmission request signal, a setting request signal, and a single-cycle reset request signal from the controller 10 (see reference). Figure 1 (rx). The transmitting unit 132 transmits the status detection information generated by the signal processing unit 160 (refer to rx). Figure 1 (k) is sent to controller 10 (refer to) Figure 1 (tx).
[0044] The sensing unit 150 performs magnetic or optical detection on the state of the target device, such as the rotation angle of a rotating body like a motor or wheel. The sensing unit 150 then supplies the detection results regarding the state of the target device to the signal processing unit 160 (see reference). Figure 1 (j).
[0045] The signal processing unit 160 processes the detection results from the sensing unit 150 and generates state detection information including position, angle, or velocity. The state detection information generated by the signal processing unit 160 is transmitted to the communication unit 130 (see reference 112) under the control of the signal processing controller 112, based on a transmission request signal from the controller 10. Figure 1 (k).
[0046] The signal processing unit 160 receives an instruction to execute a single-turn reset from the single-turn reset execution unit 115 (see reference). Figure 1 (i), to synchronize the position of the measuring object device with the reference position of the encoder 100 as a position initialization process.
[0047] Comparative example. Here, refer to Figure 5 The configuration of the measurement system 1x, a comparative example of the measurement system 1 in Embodiment 1, will be described. Figure 5 This is a configuration diagram showing the structure of a measurement system 1x, including a controller 10x and an encoder 100x, as in a comparative example. Figure 5 In the context of the configuration of the measurement system 1x, regarding its relationship with... Figure 1 The same parts are labeled with the same reference numerals, and for the same parts... Figure 1 Different parts are marked with an "x" at the end of the reference numerals. Therefore, repeated descriptions are omitted to distinguish them from the original text. Figure 1 The explanation will focus on the different parts.
[0048] [The configuration of the encoder 100x in the comparative example] exist Figure 5 In this design, encoder 100x is configured to communicate with an external controller 10x. Encoder 100x mainly includes a control unit 110x, a memory 120x, a communication unit 130, a sensing unit 150, and a signal processing unit 160.
[0049] The control unit 110x includes a request determination unit 111, a signal processing controller 112, a memory controller 113, and a single-cycle reset execution unit 115. The control unit 110x does not include the single-cycle reset determination unit 114 found in the control unit 110 of Embodiment 1.
[0050] The memory 120x is included before the encoder 100x leaves the factory, such as... Figure 5As shown by the dashed line [0], a single-cycle reset execution enable / disable setting value, including reset execution permission setting or reset execution disable setting, is stored via a dedicated port or the like. Generally, the memory 120x stores the single-cycle reset execution enable / disable setting value, including reset execution permission setting, so that the user can perform a single-cycle reset.
[0051] Memory 120x supplies the stored single-cycle reset execution enable / disable setpoint value to memory controller 113 according to the read control from memory controller 113 (see reference). Figure 5 f).
[0052] [Operation of the encoder 100x in the comparative example] Reference Figure 6 The operation of the encoder 100x in the comparative example will be explained. Figure 6 This is a configuration diagram showing the encoder 100x of the comparative example along with the signal flow. The operation of the encoder 100x will be described below in three stages: manufacturing, setup, power-on, receiving a single-turn reset request signal, and receiving a transmission request request signal.
[0053] • During manufacturing (single-turn reset execution setting value storage): Before the encoder 100x leaves the factory, the manufacturer stores a single-turn reset execution enable / disable setting value, containing either a reset execution permission setting or a reset execution disable setting, in the memory 120x via a dedicated port. When a user is required to perform a single-turn reset, the single-turn reset execution enable / disable setting value, containing the reset execution permission setting, is stored in the memory 120x. The storage process for the above single-turn reset execution enable / disable setting value is as follows: Figure 6 The dashed line [0] is shown.
[0054] • When setting up the encoder 100x: After leaving the factory, the encoder 100x is installed on measuring devices such as motors and is set to communicate with an external controller 10x.
[0055] • When the power is on: When the encoder 100 is powered on, the control unit 110x initializes each component and controls each component to perform various initial actions.
[0056] As an example of the initial action, the memory controller 113 reads the single-turn reset execution enable / disable setting value stored in the memory 120x (see reference). Figure 6 f). The memory controller 113 supplies the read single-cycle reset execution yes / no set value to the request determination unit 111 (see f). Figure 6 (d). The above single-turn reset execution can be set to a value as follows: Figure 6The dashed line [1] is shown. It should be noted that, here, the setting of whether single-cycle reset execution can be performed includes the reset execution permission setting as the content to be explained further.
[0057] • When receiving a request signal for single-turn reset: When the motor's magnetic pole position is aligned with the encoder 100x's reference position, upon receiving a single-turn reset request signal from the controller 10x, the encoder 100x performs a single-turn reset at the received time to synchronize the motor's magnetic pole position with the encoder 100x's reference position. The execution of the single-turn reset will be explained in detail below.
[0058] The request determination unit 111 receives a single-turn reset request signal from the controller 10x via the receiving unit 131 (see reference). Figure 6 (a) If the setting value for single-turn reset execution is a reset execution permission setting, then the request determination unit 111 commands the single-turn reset execution unit 115 to execute a single-turn reset, thereby executing a single-turn reset based on the single-turn reset request signal from the controller 10x. Figure 6 (e in the text).
[0059] The single-turn reset execution unit 115 responds to the single-turn reset execution command from the request determination unit 111 (see reference). Figure 6 (e), the signal processing unit 160 is instructed to perform a single-turn reset (see reference). Figure 6 (i). The signal processing unit 160 receives an instruction to execute a single-turn reset from the single-turn reset execution unit 115 (see i). Figure 6 (i), to synchronize the position of the measuring object device at that time point with the reference position in the encoder 100x as a position initialization process.
[0060] The above-described single-cycle reset execution process, corresponding to the single-cycle reset request signal and reset execution permission settings, is as follows: Figure 6 The dashed lines [1] and [2] are shown.
[0061] • When sending a request and receiving a request signal: The transmission request signal from the controller 10x is received by the receiving unit 131 and supplied to the request determination unit 111 (see reference). Figure 6 (a) The request determination unit 111 provides the request signal to the signal processing controller 112 (see reference 112). Figure 6 (b) When the signal processing controller 112 receives a transmission request signal from the controller 10 via the request determination unit 111, it transmits the status detection information generated by the signal processing unit 160 (see reference 1) via the communication unit 130. Figure 6 Control is achieved by sending k) to controller 10.
[0062] The above process for obtaining status detection information corresponding to the request signal is as follows: Figure 6 The dashed line [3] is shown.
[0063] • Incorrect execution of single-turn reset: If the user mistakenly performs a single-turn reset, the encoder 100x, upon receiving a single-turn reset request signal from the controller 10x, will perform a single-turn reset.
[0064] If a single-turn reset is performed when the motor's magnetic pole position is inconsistent with the encoder 100x's reference position, the motor's magnetic poles and the encoder 100x will be misaligned. Therefore, this will result in a failure to perform normal position detection.
[0065] The setting in memory 120x for whether to perform a single-turn reset is made by connecting the device to a dedicated port before the encoder 100x is shipped. Therefore, if the single-turn reset is enabled in memory 120x, it is not possible to prevent accidental execution of the single-turn reset.
[0066] [Operation of encoder 100 in Embodiment 1] Reference Figure 2 The operation of the encoder 100 in Embodiment 1 will be explained. Figure 2 This is a configuration diagram showing the encoder 100 of Embodiment 1 together with the signal stream. Hereinafter, the operation of the encoder 100 will be described in three stages: when the power is turned on, when a single-turn reset request signal is received, when a setting request signal is received, and when a transmission request request signal is received.
[0067] • When the power is on: When the encoder 100 is powered on, the control unit 110 initializes each component and performs the following initial actions.
[0068] As an example of the initial action, the memory controller 113 reads the single-cycle reset execution enable / disable setting value stored in the memory 120 (see reference). Figure 2 f). The memory controller 113 supplies the read single-cycle reset execution enable / disable setting value to the single-cycle reset determination unit 114 (see f). Figure 2 g).
[0069] It should be noted that the single-turn reset execution enable / disable setting value stored in memory 120 can be any of the following values: a value stored by the manufacturer of encoder 100 before leaving the factory, or a value stored as a new single-turn reset execution enable / disable setting value updated by a request signal based on a setting from external controller 10.
[0070] The content of the single-turn reset execution enable / disable setting value stored in memory 120 is either a "reset execution permitted setting" or a "reset execution prohibited setting". Furthermore, as a "reset execution prohibited setting", there is a possibility that it is either a "changeable reset execution prohibited setting" or a "non-changeable reset execution prohibited setting". Here, we will continue the explanation assuming that the single-turn reset execution enable / disable setting value stored in memory 120 includes the reset execution permitted setting as the initial value.
[0071] • When receiving the request signal for single-turn reset (1): When the reference position of the encoder 100 is aligned with the magnetic pole position of the motor, the user sends a single-turn reset request signal from the controller 10 to the encoder 100.
[0072] When encoder 100 receives a single-turn reset request signal from controller 10, it performs a single-turn reset to synchronize the magnetic pole position of the motor with the reference position of encoder 100 at the time of receipt. The execution of single-turn reset will be described in detail below.
[0073] Single-cycle reset determination unit 114 receives a single-cycle reset request signal from controller 10 via receiving unit 131 and request determination unit 111 (see reference). Figure 2 a and Figure 2 (e).
[0074] If a single-cycle reset is executed, can a value be set ( )? Figure 2 If the content of g) is the reset execution permission setting, then the single-cycle reset determination unit 114 commands the single-cycle reset execution unit 115 to execute the single-cycle reset, so as to execute the single-cycle reset according to the single-cycle reset request signal from the controller 10. Figure 2 h).
[0075] The single-turn reset execution unit 115 responds to the single-turn reset execution command from the single-turn reset determination unit 114 (see reference). Figure 2 h), to the signal processing unit 160 to execute the single-turn reset (refer to h), Figure 2 (i).
[0076] The signal processing unit 160 receives an instruction to execute a single-turn reset from the single-turn reset execution unit 115 (see reference). Figure 2 (i), to synchronize the position of the measuring object device at that time point with the reference position in the encoder 100 as a position initialization process.
[0077] The above-described single-cycle reset execution process, corresponding to the single-cycle reset request signal and reset execution permission settings, is as follows: Figure 2 The dashed lines [1a] and [2] are shown.
[0078] • When setting up to receive a request signal: The controller 10 sends a setting request signal to the encoder 100 as needed, requesting whether the set value can be updated for single-turn reset.
[0079] Encoder 100 receives a setting request signal from controller 10 via receiver 131, including a setting value for whether a new single-turn reset can be performed (see reference). Figure 2 (a). The single-cycle reset execution enable / disable setting value received from the controller 10 via the receiving unit 131 is supplied from the request determination unit 111 to the memory controller 113 (see reference). Figure 2 d).
[0080] When the memory controller 113 receives a setting request signal including whether a new single-cycle reset can be set (see reference...), Figure 2 (d) If the contents of memory 120 can be changed, the new single-cycle reset execution setting value is stored in memory 120 (refer to d). Figure 2 f).
[0081] The above signal stream, such as whether the new single-turn reset execution setting value is stored in memory 120, is as follows: Figure 2 The dashed line [3a] is shown.
[0082] On the other hand, if the memory controller 113 receives a setting request signal from the controller 10 that includes a new single-turn reset execution setting value, but cannot change the stored contents of the memory 120, it will not store the new single-turn reset execution setting value in the memory 120.
[0083] The signal flow in the case where the new single-turn reset execution setting value is not stored in memory 120 is as follows: Figure 2 The dashed line [3b] is shown.
[0084] The following uses Figure 3 The solution for whether the memory controller 113 stores the new single-cycle reset execution setting value in the memory 120 or not will be explained. Figure 3 This is an explanatory diagram showing whether the rewrite state of the set value can be performed during the single-turn reset execution in Implementation Method 1.
[0085] It should be noted that the single-cycle reset execution enable / disable setting value already stored in memory 120 is referred to as the "stored single-cycle reset execution enable / disable setting value", and the new single-cycle reset execution enable / disable setting value sent from controller 10 is referred to as the "new single-cycle reset execution enable / disable setting value".
[0086] Furthermore, "store the new single-turn reset execution enable / disable setting value in memory 120" is referred to as "rewrite the stored single-turn reset execution enable / disable setting value to the new single-turn reset execution enable / disable setting value", and "do not store the new single-turn reset execution enable / disable setting value in memory 120" is referred to as "do not rewrite the stored single-turn reset execution enable / disable setting value".
[0087] exist Figure 3 In the table, the options for whether a new single-cycle reset can be set are shown horizontally in sequence as (a) reset execution prohibition setting (changeable), (b) reset execution permission setting (allowed), and (c) reset execution prohibition setting (unchangeable). Figure 3 In the table, the stored single-cycle reset execution settings are shown in the vertical direction as follows: (d) reset execution prohibition setting can be changed, (e) reset execution permission setting can be changed, and (f) reset execution prohibition setting cannot be changed.
[0088] Then, the results of rewriting / not rewriting the stored single-turn reset execution setting values based on the combination of the new single-turn reset execution setting values (a) to (c) and the stored single-turn reset execution setting values (d) to (f) are shown in summary form in (g) to (m). It should be noted that if the new single-turn reset execution setting value is the same as the non-changeable reset execution prohibition setting, it is not necessary to rewrite the stored single-turn reset execution setting value. Therefore, in Figure 3 The Chinese character "-" is used to represent this.
[0089] Memory controller 113 can be set to enable reset execution in a new single-cycle state. The reset execution can be disabled. Figure 3 In (a) of the text, is the stored single-cycle reset execution settable value unchangeable and reset execution disabled? Figure 3 In case (d) of the above, can the set value be set without rewriting the stored single-turn reset execution value? Figure 3 (g) in the middle.
[0090] Memory controller 113 can be set to enable reset execution in a new single-cycle state. The reset execution can be disabled. Figure 3 (a) In the context of the stored single-cycle reset execution setting, is the reset execution permission setting (?) Figure 3 In case (e) of the above, the stored single-cycle reset execution enable / disable setting is rewritten to allow reset execution disable setting. Figure 3 (h) in the middle.
[0091] The memory controller 113 is set to whether a reset execution is allowed in a new single-cycle state. Figure 3 (b) In the context of the stored single-cycle reset execution setting, is the value set to be unchangeable and reset execution is prohibited? Figure 3In case (d) of the above, can the set value be set without rewriting the stored single-turn reset execution value? Figure 3 (i) in the middle.
[0092] The memory controller 113 is set to whether a reset execution is allowed in a new single-cycle state. Figure 3 (b) The stored single-cycle reset execution setting is set to whether the reset execution is disabled. Figure 3 In case (f) of the above, the stored single-cycle reset execution enable / disable setting value is rewritten to the reset execution enable setting. Figure 3 (j) in the middle.
[0093] Memory controller 113 can be set to a new single-cycle reset execution value. The reset execution value is not changeable and setting is prohibited. Figure 3 (c) In the context of the reset execution permission setting, the stored single-cycle reset execution permission setting is enabled. Figure 3 In case (e) of the above, the stored single-cycle reset execution enable / disable setting value is rewritten to an unchangeable reset execution disable setting. Figure 3 (k) in the middle.
[0094] Memory controller 113 can be set to a new single-cycle reset execution value. The reset execution value is not changeable and setting is prohibited. Figure 3 (c) The stored single-cycle reset execution setting is set to whether it is changeable or disabled. Figure 3 In case (f) of the above, the stored single-cycle reset execution enable / disable setting value is rewritten to an unchangeable reset execution disable setting. Figure 3 (m) in the middle.
[0095] In implementation one, ideally, to prevent a single-cycle reset from being incorrectly executed again after a normal single-cycle reset, the memory controller 113 will set a reset execution permission based on the instruction of the controller 10. Figure 3 (e) indicates whether the stored single-cycle reset execution setting can be rewritten as a changeable reset execution setting. Figure 3 (h) in the middle), or rewritten as non-changeable reset execution prohibition setting ( Figure 3 (k) in the middle.
[0096] Alternatively, ideally, in order to perform a single-cycle reset, the memory controller 113 will disable the reset execution setting (...). Figure 3 (f) represents the stored single-cycle reset execution permission setting that can be rewritten as the reset execution permission setting. Figure 3 (j) in the middle.
[0097] Furthermore, the settable value can be executed by resetting the stored single-turn interval. Figure 3(e) or Figure 3 (f) is set to unchangeable reset execution disable setting ( Figure 3 (k) or Figure 3 The stored single-cycle reset execution setting value cannot be rewritten in the future, thus enabling permanent prevention of false single-cycle reset.
[0098] The memory controller 113 reads the modified single-cycle reset execution settable value from the memory 120 and supplies the read single-cycle reset execution settable value to the single-cycle reset determination unit 114 (see reference). Figure 2 f, Figure 2 g).
[0099] • When sending a request and receiving a request signal: The controller 10 sends a request signal to the encoder 100 at regular intervals to indicate the status detection information of the measured object device.
[0100] The transmission request signal from the controller 10 is received by the receiving unit 131 and supplied to the request determination unit 111 (see reference). Figure 2 (a) The request determination unit 111 provides the request signal to the signal processing controller 112 (see reference 112). Figure 2 (b) When the signal processing controller 112 receives a transmission request signal from the controller 10 via the request determination unit 111, it will process the status detection information generated by the signal processing unit 160 (see reference 160). Figure 6 The control is performed by transmitting k) to the controller 10 via the communication unit 130.
[0101] The above process describes how the status detection information is sent from the encoder 100 to the controller 10 using a request signal based on the transmission request from the controller 10. Figure 2 The dashed line [4] is shown.
[0102] • When receiving the request signal for single-turn reset (2): Sometimes, the controller 10 may send a single-turn reset request signal to the encoder 100 due to user error. Since the user unintentionally commands a single-turn reset, the motor's magnetic pole position is inconsistent with the encoder 100's reference position.
[0103] To prevent a single-cycle reset from being executed incorrectly again after a normal single-cycle reset, the stored single-cycle reset execution enable / disable setting value in memory 120 is modified to either a changeable reset execution disable setting or an unchangeable reset execution disable setting.
[0104] In encoder 100, a single-turn reset request signal from controller 10 is received by receiver 131 and supplied from receiver 131 to request determination unit 111 (see reference). Figure 2 (a) In this context, the request determination unit 111 supplies a single-turn reset request signal from the controller 10 to the single-turn reset determination unit 114 (see reference 114). Figure 2 (e in the text).
[0105] If the stored single-cycle reset execution enable / disable setting value is reset execution disabled, then regardless of the single-cycle reset request signal from the controller 10, the single-cycle reset determination unit 114 will not command the single-cycle reset execution unit 115 to perform a single-cycle reset.
[0106] By using the above method, it is possible to prevent erroneous single-turn reset when the position of the motor's magnetic poles is inconsistent with the reference position of the encoder 100.
[0107] The process is as follows: Based on the single-turn reset request signal and the information regarding the reset execution disable setting, a single-turn reset is not performed. Figure 2 The dashed lines [1b] and [5] are shown.
[0108] • Utilization of memory access The setting request signal includes a setting value indicating whether a new single-turn reset execution is allowed. Furthermore, this setting value includes any one of the following: a reset execution permission setting, a changeable reset execution prohibition setting, and an unchangeable reset execution prohibition setting. Therefore, it is sometimes difficult to generate a setting request signal by partially changing or expanding the bits constituting a general transmission request signal.
[0109] Therefore, in accordance with the memory access instruction for single-turn reset from controller 10, the new single-turn reset execution enable / disable setting value is stored on the encoder 100 side at the address of memory 120 specified by the memory access instruction for single-turn reset.
[0110] The single-turn reset memory access instruction refers to a command that includes a new single-turn reset execution enable / disable setting value and the address of the new single-turn reset execution enable / disable setting value in memory 120, indicating that the new single-turn reset execution enable / disable setting value is stored in memory 120.
[0111] Therefore, the memory controller 113 is equipped with the function of writing a new single-turn reset execution enable / disable setting value into the memory 120 in accordance with the single-turn reset memory access instruction from the controller 10.
[0112] The above single-turn reset memory access instructions can be used Figure 4 The communication format of the general direct memory access instruction is shown. Figure 4This is an explanatory diagram showing an example of the format of the memory access instructions used in Implementation Method 1.
[0113] For example, Figure 4 The fields in the format shown are as follows: The Control field (CF) contains command information related to the type of instruction. The Address field (ADF) contains information about the address to be written to memory 120. The Data field (EDF) contains information about whether a new single-cycle reset execution is set to be written to memory 120, including any one of the following: reset execution permission setting, changeable reset execution prohibition setting, and non-changeable reset execution prohibition setting. The Check field (CRC) contains error check information generated by a CRC (Cyclic Redundancy Check) performed on all bits except the start bit and delimiter of all fields other than the CRC field itself.
[0114] Therefore, by using a request signal in the form of a memory access instruction, more information can be transmitted from the controller 10 to the encoder 100 compared to using a general request signal.
[0115] [Effects obtained through implementation method one] The encoder 100 in Embodiment 1 includes: a control unit 110; a non-volatile memory 120; a sensing unit 150 for detecting the state of the device being measured; a signal processing unit 160 for generating state detection information based on the detection results of the sensing unit 150; and a communication unit 130 for communicating with an external controller 10. The memory 120 stores single-turn reset execution enable / disable settings, including reset execution permission settings or reset execution disable settings.
[0116] The control unit 110 controls the system by sending status detection information generated by the signal processing unit 160 to the controller 10 via the communication unit 130 when it receives a transmission request signal from the controller 10 via the communication unit 130. The control unit 110 also controls the system by storing a new single-turn reset execution enable / disable value in the memory 120 when it receives a setting request signal, including a new single-turn reset execution enable / disable value, from the controller 10 via the communication unit 130. Specifically, when the control unit 110 receives a single-turn reset request signal from the controller 10 via the communication unit 130, if the stored single-turn reset execution enable / disable value is a reset execution prohibition setting, then a single-turn reset is not performed; if the stored single-turn reset execution enable / disable value is a reset execution allow setting, then a single-turn reset is performed.
[0117] The encoder 100 described above can change the settings in the non-volatile memory related to the permission / prohibition of single-turn reset from the controller 10 without using a setting device, and can perform single-turn reset appropriately.
[0118] In the encoder 100 of Embodiment 1, the single-turn reset execution enable / disable setting includes a reset execution permit setting or a reset execution disable setting. The reset execution disable setting also includes a changeable reset execution disable setting or a non-changeable reset execution disable setting.
[0119] With this setting, you can select appropriate execution of single-turn reset, prevention of erroneous execution of single-turn reset, re-execution of single-turn reset after erroneous execution prevention of single-turn reset, or permanent erroneous execution prevention of single-turn reset, depending on the purpose.
[0120] In the encoder 100 of Embodiment 1, if the control unit 110 has a new single-turn reset execution enable / disable setting value that is changeable reset execution disable setting, and the stored single-turn reset execution enable / disable setting value is not changeable reset execution disable setting, then the control unit 110 will not rewrite the stored single-turn reset execution enable / disable setting value.
[0121] If the control unit 110 sets the new single-cycle reset execution enable / disable setting to a changeable reset execution disable setting, and if the stored single-cycle reset execution enable / disable setting is a reset execution permit setting, then the stored single-cycle reset execution enable / disable setting will be rewritten to a changeable reset execution disable setting.
[0122] Through such control, the stored single-turn reset execution enable / disable value can be appropriately rewritten to a new single-turn reset execution enable / disable value, or no rewriting can be performed, based on the stored single-turn reset execution enable / disable value.
[0123] In the encoder 100 of Embodiment 1, if the control unit 110 has a reset execution permission setting value of 'new single-turn reset execution permission setting' and the stored reset execution permission setting value is an unchangeable reset execution prohibition setting, then the single-turn reset execution permission setting value will not be rewritten.
[0124] If the control unit 110 sets the new single-cycle reset execution permission setting to a reset execution permission setting, and if the stored single-cycle reset execution permission setting is a changeable reset execution prohibition setting, then the control unit 110 will rewrite the stored single-cycle reset execution permission setting to a reset execution permission setting.
[0125] Through such control, the stored single-turn reset execution enable / disable setting value can be appropriately rewritten to a new single-turn reset execution enable / disable setting value, or no rewriting can be performed, based on the stored single-turn reset execution enable / disable setting value.
[0126] In the encoder 100 of Embodiment 1, if the new single-turn reset execution enable / disable setting value is an unchangeable reset execution prohibition setting, and if the stored single-turn reset execution enable / disable setting value is a reset execution permission setting or a changeable reset execution prohibition setting, the control unit 110 rewrites the stored single-turn reset execution enable / disable setting value to an unchangeable reset execution prohibition setting.
[0127] Through such control, the stored single-turn reset execution enable / disable setting value can be appropriately rewritten to a new single-turn reset execution enable / disable setting value based on the stored single-turn reset execution enable / disable setting value.
[0128] In the encoder 100 of Embodiment 1, the control unit 110 has the function of writing data to a specified address in the memory 120 in accordance with a memory access from the controller 10. When the encoder 100 receives a single-turn reset request signal in the form of a memory access instruction from the controller 10 via the communication unit 130, which includes a new single-turn reset execution enable / disable setting value and the address of the new single-turn reset execution enable / disable setting value in the memory 120, the encoder 100 writes the new single-turn reset execution enable / disable setting value to the address in the memory 120.
[0129] Therefore, by using a request signal in the form of a memory access instruction, more information can be transmitted from the controller 10 to the encoder 100 compared to using a general request signal.
[0130] In the encoder 100 of Embodiment 1, when the power is turned on, the stored single-turn reset execution enable / disable setting value is read in, and a single-turn reset is determined based on the read single-turn reset execution enable / disable setting value.
[0131] Therefore, encoder 100 can appropriately and reliably enable / disable the execution of single-turn reset based on the stored single-turn reset execution permission setting value.
[0132] In the measurement system 1 of Embodiment 1, there is a controller 10 that communicates with the encoder 100 and the encoder 100 that communicates with the controller 10. Then, when the controller 10 sends a transmission request signal to the encoder 100, the encoder 100 sends status detection information to the controller 10 according to the transmission request signal. When the controller 10 sends a setting request signal to the encoder 100, which includes a single-turn reset execution enable / disable setting value including a reset execution enable / disable setting, the encoder 100 stores the single-turn reset execution enable / disable setting value in the memory 120 according to the setting request signal. When the controller 10 sends a single-turn reset request signal to the encoder 100, if the single-turn reset execution enable / disable setting value stored in the memory 120 is a reset execution disable setting, the encoder 100 does not perform a single-turn reset. If the single-turn reset execution enable / disable setting value stored in the memory 120 is a reset execution enable setting, the encoder 100 performs a single-turn reset.
[0133] The measurement system 1 described above can change the settings in the non-volatile memory related to the permission / prohibition of single-turn reset from the controller 10 without using a setting device, and can perform single-turn reset appropriately.
[0134] Explanation of reference numerals in the attached figures: 1: Measurement system; 10: Controller; 100: Encoder; 110: Control unit; 111: Request determination unit; 112: Signal processing controller; 113: Memory controller; 114: Single-turn reset determination unit; 115: Single-turn reset execution unit; 120: Memory; 130: Communication unit; 131: Receiving unit; 132: Transmitting unit; 150: Sensing unit; 160: Signal processing unit.
Claims
1. An encoder, comprising: Control unit; Non-volatile memory; The sensing unit detects the status of the device being measured; The signal processing unit generates state detection information based on the detection result of the sensing unit; and The communications department communicates with external controllers. The memory stores a single-cycle reset execution enable / disable setting value, which includes a reset execution enable setting or a reset execution disable setting. The control unit controls the system by sending the status detection information generated by the signal processing unit to the controller via the communication unit when it receives a transmission request signal from the controller via the communication unit. When the control unit receives a setting request signal, including a new single-cycle reset execution setting value, from the controller via the communication unit, the control unit stores the new single-cycle reset execution setting value in the memory. The control unit controls the system in the following manner: when it receives a single-cycle reset request signal from the controller via the communication unit, if the single-cycle reset execution enable / disable setting value stored in the memory is the reset execution prohibit setting, then the single-cycle reset is not executed; if the single-cycle reset execution enable / disable setting value stored in the memory is the reset execution allow setting, then the single-cycle reset is executed.
2. The encoder according to claim 1, wherein, The single-cycle reset execution enable / disable setting includes either the reset execution permission setting or the reset execution disable setting. The reset execution prohibition setting also includes a changeable reset execution prohibition setting or a non-changeable reset execution prohibition setting.
3. The encoder according to claim 2, wherein, If the single-turn reset execution enable / disable setting value included in the single-turn reset request signal is the changeable reset execution disable setting, then... If the single-cycle reset execution enable / disable setting value stored in the memory is the unchangeable reset execution disable setting, then the control unit will not rewrite the single-cycle reset execution enable / disable setting value stored in the memory. If the single-cycle reset execution enable / disable setting value stored in the memory is the reset execution permission setting, then the control unit rewrites the single-cycle reset execution enable / disable setting stored in the memory to the changeable reset execution disable setting.
4. The encoder according to claim 2, wherein, If the single-turn reset execution enable / disable setting value included in the single-turn reset request signal is the reset execution permission setting... If the single-cycle reset execution enable / disable setting value stored in the memory is the unchangeable reset execution disable setting, then the control unit will not rewrite the single-cycle reset execution enable / disable setting value stored in the memory. If the single-cycle reset execution enable / disable setting stored in the memory is a changeable reset execution disable setting, then the control unit will rewrite the single-cycle reset execution enable / disable setting stored in the memory to the reset execution enable setting.
5. The encoder according to claim 2, wherein, If the single-cycle reset execution enable / disable setting value included in the single-cycle reset request signal is the unchangeable reset execution disable setting, and if the single-cycle reset execution enable / disable setting value stored in the memory is the reset execution permit setting or the changeable reset execution disable setting, then the control unit will rewrite the single-cycle reset execution enable / disable setting value stored in the memory to the unchangeable reset execution disable setting.
6. The encoder according to claim 1, wherein, The control unit has the function of writing data to a specified address in the memory in accordance with memory access from the controller. When the control unit receives a single-cycle reset request signal in the form of a memory access instruction, which includes the new single-cycle reset execution enable / disable setting value and the address of the new single-cycle reset execution enable / disable setting value in the memory, via the communication unit from the controller, the control unit writes the new single-cycle reset execution enable / disable setting value into the address of the memory.
7. The encoder according to claim 1, wherein, When the power is turned on, the control unit reads the single-turn reset execution enable / disable setting value stored in the memory, and determines whether to execute the single-turn reset based on the read single-turn reset execution enable / disable setting value.
8. A measurement system comprising: The controller communicates with the encoder; and The encoder as described in any one of claims 1 to 7 communicates with the controller. When the controller sends a request signal to the encoder, the encoder sends status detection information to the controller according to the request signal. When the controller sends a setting request signal to the encoder, including a setting value indicating whether a single-turn reset execution can be set (either a reset execution permission setting or a reset execution prohibition setting), the encoder stores the single-turn reset execution setting value in the memory according to the setting request signal. When the controller sends a single-turn reset request signal to the encoder, if the single-turn reset execution enable / disable setting value stored in the memory is the reset execution disable setting, the encoder does not execute the single-turn reset; if the single-turn reset execution enable / disable setting value stored in the memory is the reset execution enable setting, the encoder executes the single-turn reset.
Citation Information
Patent Citations
Position measuring apparatus, rotary encoder, clinometer, and inclination measuring method and apparatus
JP1996189826A