Encoder and measurement system
The encoder allows users to change one-rotation reset settings from a controller, addressing misalignment issues by enabling permission control without a dedicated device, ensuring accurate alignment.
Patent Information
- Application Number
- JP2024030988
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-03-01
- Publication Date
- 2025-09-11
- Estimated Expiration
- 2044-03-01
AI Technical Summary
Existing encoders do not allow users to arbitrarily change the setting in non-volatile memory regarding whether or not to permit a one-rotation reset, leading to potential misalignment of motor magnetic poles and encoder reference positions.
The encoder includes a control unit, non-volatile memory, sensing unit, signal processing unit, and communication unit, enabling the setting for one-rotation reset execution permission to be changed from a controller without using a dedicated setting device, with the control unit controlling the execution based on received signals.
Enables users to change the one-rotation reset execution permission setting from a controller, preventing accidental resets and ensuring proper alignment between motor magnetic poles and encoder reference positions.
Smart Images

Figure 2025133196000001_ABST
Abstract
Description
[Technical Field]
[0001] The present invention relates to an encoder and a measurement system, and more particularly to an improvement in one-turn reset in an encoder. [Background technology]
[0002] After the user attaches the encoder to the device to be measured, such as a motor, and mechanically aligns the motor's magnetic pole position with the encoder's reference position, they perform an electrical alignment called a "one-rotation reset" to synchronize the motor's magnetic pole position with the encoder's reference position. In this case, when the encoder receives a one-rotation reset request signal from the controller, it resets itself, setting the one-rotation position at the time of reception as the origin position of 0.
[0003] The technology relating to this one-rotation reset is disclosed in Patent Document 1 below. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Japanese Patent Application Publication No. 08-189826 Summary of the Invention [Problem to be solved by the invention]
[0005] Although the above-mentioned Patent Document 1 does not disclose details, a setting value for whether or not to permit execution of one-rotation reset is stored in a non-volatile memory within the encoder.
[0006] If a user accidentally performs a one-rotation reset, the alignment between the motor's magnetic poles and the encoder may be disrupted, resulting in problems with normal position detection. To prevent this from happening, it is recommended that after a user has successfully performed a one-rotation reset, the non-volatile memory settings be changed so that a one-rotation reset cannot be performed again.
[0007] However, the setting in the non-volatile memory as to whether or not to execute a one-rotation reset is done by connecting a setting device to a dedicated port before the encoder is shipped, which means that users cannot arbitrarily change the setting to allow or disallow execution of a one-rotation reset. For this reason, it is desirable to enable a user to change the setting in the nonvolatile memory regarding whether or not to permit the one-rotation reset to be performed, without using a setting device.
[0008] An object of the present invention is to provide an encoder and a measurement system that enable the setting in a non-volatile memory regarding whether or not to allow one-rotation reset to be executed to be changed from a controller without using a setting device. [Means for solving the problem]
[0009] The encoder according to the present invention comprises a control unit, a non-volatile memory, a sensing unit that detects the state of the device to be measured, a signal processing unit that generates state detection information from the detection results of the sensing unit, and a communication unit that communicates with a controller, wherein the memory stores a one-rotation reset execution permission setting value whose content is a reset execution permission setting or a reset execution non-permission setting, and when the control unit receives a transmission request signal from the controller via the communication unit, it controls the state detection information generated by the signal processing unit to be sent to the controller via the communication unit, and when it receives a setting request signal from the controller via the communication unit that includes a new one-rotation reset execution permission setting value, it stores the new one-rotation reset execution permission setting value in the memory, and when it receives a one-rotation reset request signal from the controller via the communication unit, it controls the encoder not to execute a one-rotation reset if the one-rotation reset execution permission setting value stored in the memory is a reset execution non-permission setting, and to execute a one-rotation reset if the one-rotation reset execution permission setting value stored in the memory is a reset execution permission setting.
[0010] In the encoder of the present invention, the one-rotation reset execution permission setting value includes a reset execution permission setting or a reset execution non-permission setting, and the reset execution non-permission setting may further include a changeable reset execution non-permission setting or an unchangeable reset execution non-permission setting.
[0011] In the encoder of the present invention, when the one-rotation reset execution permission setting value included in the one-rotation reset request signal is a changeable reset execution not permitted setting, if the one-rotation reset execution permission setting value stored in the memory is a non-changeable reset execution not permitted setting, the control unit may not rewrite the one-rotation reset execution permission setting value stored in the memory, but if the one-rotation reset execution permission setting value stored in the memory is a reset execution permission setting, the control unit may rewrite the one-rotation reset execution permission setting value stored in the memory to a changeable reset execution not permitted setting.
[0012] In the encoder of the present invention, when the one-rotation reset execution permission setting value included in the one-rotation reset request signal is a reset execution permission setting, if the one-rotation reset execution permission setting value stored in the memory is an unchangeable reset execution permission setting, the control unit may not rewrite the one-rotation reset execution permission setting value stored in the memory, but if the one-rotation reset execution permission setting value stored in the memory is an changeable reset execution permission setting, the control unit may rewrite the one-rotation reset execution permission setting value stored in the memory to a reset execution permission setting.
[0013] In the encoder of the present invention, when the one-rotation reset execution permission setting value included in the one-rotation reset request signal is an unchangeable reset execution permission setting, and if the one-rotation reset execution permission setting value stored in the memory is a reset execution permission setting or a changeable reset execution permission setting, the control unit may rewrite the one-rotation reset execution permission setting value stored in the memory to an unchangeable reset execution permission setting.
[0014] In the encoder according to the present invention, the control unit has a function of responding to memory access from the controller and writing data to a specified address in the memory, and when it receives a one-rotation reset request signal in the form of a memory access command from the controller via the communication unit, the request signal includes a new one-rotation reset execution possibility setting value and an address in memory of the new one-rotation reset execution possibility setting value, the control unit may write the new one-rotation reset execution possibility setting value to the address in the memory.
[0015] In the encoder of the present invention, the control unit may read the one-rotation reset execution possibility setting value stored in the memory when the power is turned on, and determine whether or not to execute the one-rotation reset based on the read one-rotation reset execution possibility setting value.
[0016] The measurement system of the present invention comprises a controller that communicates with an encoder, and any of the encoders described above that communicates with the controller; when the controller sends a request signal for transmission to the encoder, the encoder sends status detection information to the controller in response to the request signal for transmission; when the controller sends a request signal for setting to the encoder including a one-rotation reset execution permission / prohibition setting value whose content is a reset execution permission setting or a reset execution prohibition setting, the encoder stores the one-rotation reset execution permission / prohibition setting value in memory in response to the request signal for setting; when the controller sends a request signal for one-rotation reset to the encoder, the encoder does not perform a one-rotation reset if the one-rotation reset execution permission / prohibition setting value stored in memory is a reset execution prohibition setting, and performs a one-rotation reset if the one-rotation reset execution permission / prohibition setting value stored in memory is a reset execution permission setting. [Effects of the Invention]
[0017] According to the encoder of the present invention, it is possible to change the setting in the nonvolatile memory regarding whether or not to permit execution of the one-rotation reset from the controller. According to the measurement system of the present invention, it is possible to change the setting in the nonvolatile memory regarding whether or not to permit one-rotation reset of the encoder from the controller. [Brief explanation of the drawings]
[0018] [Figure 1] FIG. 1 is a configuration diagram showing the configuration of a measurement system including a controller and an encoder according to a first embodiment. [Figure 2] FIG. 2 is a configuration diagram showing an encoder according to the first embodiment together with a signal flow. [Figure 3] FIG. 10 is an explanatory diagram showing a rewritten state of a one-rotation reset execution permission / prohibition setting value in the first embodiment. [Figure 4] FIG. 2 is an explanatory diagram showing an example of a format of a memory access instruction used in the first embodiment; [Figure 5] FIG. 10 is a configuration diagram showing the configuration of a measurement system including a controller and an encoder in a comparative example. [Figure 6] FIG. 10 is a configuration diagram showing an encoder according to a comparative example together with a signal flow. DETAILED DESCRIPTION OF THE INVENTION
[0019] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An encoder and a measurement system according to an embodiment of the present invention will now be described with reference to the accompanying drawings. In the drawings, the same parts are designated by the same reference numerals.
[0020] Embodiment 1 First, the configuration of a measurement system 1 in the first embodiment will be described with reference to Fig. 1. Fig. 1 is a configuration diagram showing the configuration of the measurement system 1 including a controller 10 and an encoder 100 in the first embodiment. Here, the controller 10 functions as a host computer, and the encoder 100 functions as a terminal device.
[0021] [Configuration of the Encoder 100 of the First Embodiment] 1, an encoder 100 is configured to be able to communicate with a 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.
[0022] The control unit 110 includes a request determination unit 111, a signal processing controller 112, a memory controller 113, a one-rotation reset determination unit 114, and a one-rotation reset execution unit 115.
[0023] The request determination unit 111 determines and distributes each of the transmission request signal, the setting request signal, and the one-rotation reset request signal from the controller 10. That is, the request determination unit 111 provides a request signal for transmission request to the signal processing controller 112 (see b in Figure 1), a request signal for setting to the memory controller 113 (see d in Figure 1), and a request signal for one rotation reset to the one rotation reset determination unit 114 (see e in Figure 1). Here, the request signal for transmission request is a general request signal known as RTS (Request To Send), which is a signal that requests the controller 10 to transmit the status detection information generated by the signal processing unit 160 based on the detection results of the sensing unit 150. The one-rotation reset request signal is a signal sent from the controller 10 to the encoder 100 requesting that the encoder 100 execute a one-rotation reset. The setting request signal is a signal that includes a new one-rotation reset execution permission / prohibition setting value, and is used by the controller 10 to request the encoder 100 to update the one-rotation reset execution permission / prohibition setting value. The one-rotation reset request signal and the setting request signal are signals that are realized by partially modifying or expanding the bits that make up a general transmission request signal.
[0024] When the signal processing controller 112 receives a request signal for a transmission request from the controller 10 via the request determination unit 111, it controls the signal processing unit 160 to transmit the status detection information (see k in Figure 1) generated by the signal processing unit 160 to the controller 10 via the communication unit 130.
[0025] When the encoder 100 is powered on, the memory controller 113 reads the one-rotation reset execution possibility setting value stored in the memory 120 (see f in Figure 1), and supplies the read one-rotation reset execution possibility setting value to the one-rotation reset determination unit 114 (see g in Figure 1). When the memory controller 113 receives a setting request signal including a new one-rotation reset execution permission / prohibition setting value from the controller 10 via the request determination unit 111 (see d in FIG. 1), if the contents stored in the memory 120 can be changed, it stores the new one-rotation reset execution permission / prohibition setting value in the memory 120 (see f in FIG. 1). On the other hand, when the memory controller 113 receives a setting request signal including a new one-rotation reset execution permission / prohibition setting value from the controller 10 and the contents stored in the memory 120 cannot be changed, it does not store the new one-rotation reset execution permission / prohibition setting value in the memory 120.
[0026] When the one-rotation reset determination unit 114 receives a one-rotation reset request signal from the controller 10 via the request determination unit 111 (see e in Figure 1), if the one-rotation reset execution permission setting value (see g in Figure 1) from the memory controller 113 is set to allow reset execution, it commands the one-rotation reset execution unit 115 to execute a one-rotation reset (see h in Figure 1). On the other hand, the one-rotation reset determination unit 114 receives a one-rotation reset request signal from the controller 10 via the request determination unit 111 (see e in Figure 1), and if the one-rotation reset execution permission setting value from the memory controller 113 (see g in Figure 1) is set to not allow reset execution, it does not command the one-rotation reset execution unit 115 to execute a one-rotation reset.
[0027] The one-rotation reset execution unit 115 receives a command to execute one-rotation reset from the one-rotation reset determination unit 114 (see h in FIG. 1), and instructs the signal processing unit 160 to execute one-rotation reset (see i in FIG. 1).
[0028] The memory 120 stores a one-rotation reset execution permission / prohibition setting value having a reset execution permission setting or a reset execution prohibition setting in response to control from the memory controller 113 (see f in FIG. 1). The memory 120 stores a one-rotation reset execution permission / prohibition setting value having a changeable reset execution prohibition setting or an unchangeable reset execution prohibition setting as the reset execution prohibition setting in response to control from the memory controller 113. Furthermore, the memory 120 may rewrite a one-rotation reset execution permission / prohibition setting value other than the one-rotation reset execution permission / prohibition setting value having an unchangeable reset execution prohibition setting in response to control from the memory controller 113.
[0029] The communication unit 130 includes a receiving unit 131 and a transmitting unit 132 for communicating with the controller 10. The receiving unit 131 receives a transmission request signal, a setting request signal, and a one-rotation reset request signal from the controller 10 (see rx in FIG. 1). The transmitting unit 132 transmits the state detection information (see k in FIG. 1) generated by the signal processing unit 160 to the controller 10 (see tx in FIG. 1).
[0030] The sensing unit 150 magnetically or optically detects the state of the measurement target device, for example, the rotation angle of a rotating body such as a motor or a wheel. The sensing unit 150 supplies the detection result regarding the state of the measurement target device to the signal processing unit 160 (see j in FIG. 1).
[0031] The signal processing unit 160 processes the detection result of the sensing unit 150 and generates state detection information including the position, angle, or speed. The state detection information generated by the signal processing unit 160 is sent to the communication unit 130 under the control of the signal processing controller 112 in response to a transmission request signal from the controller 10 (see k in FIG. 1). The signal processing unit 160 receives an instruction to execute a one-rotation reset from the one-rotation reset execution unit 115 (see i in FIG. 1), and synchronizes the position of the measurement target device with the reference position of the encoder 100 as a position initialization process.
[0032] Comparative example. Here, the configuration of a measurement system 1x as a comparative example to the measurement system 1 in the first embodiment will be described with reference to Fig. 5. Fig. 5 is a configuration diagram showing the configuration of a measurement system 1x including a controller 10x and an encoder 100x in the comparative example. In Fig. 5, in the configuration of the measurement system 1x, the same components as those in Fig. 1 are given the same reference numerals, and components different from those in Fig. 1 are given an "x" at the end of the reference numeral. Therefore, redundant explanations will be omitted, and the explanation will focus on the parts different from Fig. 1.
[0033] [Configuration of Encoder 100x in Comparative Example] 5, an encoder 100x is configured to be able to communicate with a controller 10x. The 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.
[0034] The control unit 110x includes a request determination unit 111, a signal processing controller 112, a memory controller 113, and a one-rotation reset execution unit 115. The control unit 110x does not include the one-rotation reset determination unit 114 in the control unit 110 of the first embodiment.
[0035] Before shipping the encoder 100x, the memory 120x stores a one-rotation reset execution permission / prohibition setting value having a reset execution permission setting or a reset execution prohibition setting via a dedicated port or the like, as shown by the dashed line [0] in Fig. 5. Generally, in order to enable a user to execute a one-rotation reset, the memory 120x stores a one-rotation reset execution permission / prohibition setting value having a reset execution permission setting. The memory 120x supplies the stored one-rotation reset execution setting value to the memory controller 113 in response to read control from the memory controller 113 (see f in FIG. 5).
[0036] [Operation of Encoder 100x in Comparative Example] The operation of the encoder 100x in the comparative example will be described with reference to Fig. 6. Fig. 6 is a configuration diagram showing the encoder 100x in the comparative example together with the signal flow. Below, the operation of the encoder 100x will be described separately for when it is manufactured, when it is installed, when it is powered on, when it receives a one-rotation reset request signal, and when it receives a transmission request signal.
[0037] - At the time of manufacturing (storing the setting value for whether or not to execute one rotation reset): Before shipping the encoder 100x, the manufacturer of the encoder 100x stores a one-rotation reset execution permission / prohibition setting value, which contains a reset execution permission setting or a reset execution prohibition setting, in the memory 120x via a dedicated port or the like. When a user executes a one-rotation reset, the one-rotation reset execution permission / prohibition setting value, which contains the reset execution permission setting, is stored in the memory 120x. The above-described flow of storing the one-rotation reset execution permission / prohibition setting value is shown by the dashed line [0] in Figure 6.
[0038] When installing Encoder 100x: The shipped encoder 100x is attached to a measurement target device such as a motor, and is set in a state in which it can communicate with the controller 10x.
[0039] ·When powering on: When the power supply to the encoder 100 is turned on, the control unit 110x initializes each unit and controls each unit to perform various initial operations. As an example of an initial operation, the memory controller 113 reads out the one-rotation reset execution permission setting value stored in the memory 120x (see f in FIG. 6). The memory controller 113 supplies the read one-rotation reset execution permission setting value to the request determination unit 111 (see d in FIG. 6). The flow of the one-rotation reset execution permission setting value described above is shown by the dashed line [1] in FIG. 6. Note that the following description will be given assuming that the one-rotation reset execution permission setting value includes a reset execution permission setting as its content.
[0040] When a request signal for one rotation reset is received: When the encoder 100x receives a one-rotation reset request signal from the controller 10x while the magnetic pole position of the motor and the reference position of the encoder 100x are aligned, the encoder 100x executes a one-rotation reset so as to synchronize the magnetic pole position of the motor with the reference position of the encoder 100x at the time of receiving the signal. The execution of the one-rotation reset will be described in detail below. The request determination unit 111 receives a one-rotation reset request signal from the controller 10x via the receiving unit 131 (see a in FIG. 6). If the content of the one-rotation reset execution setting value indicates that the reset is permitted, the request determination unit 111 commands the one-rotation reset execution unit 115 to execute a one-rotation reset in response to the one-rotation reset request signal from the controller 10x (e in FIG. 6). The one-rotation reset execution unit 115 receives a command to execute a one-rotation reset from the request determination unit 111 (see e in FIG. 6), and instructs the signal processing unit 160 to execute a one-rotation reset (see i in FIG. 6). The signal processing unit 160 receives the command to execute a one-rotation reset from the one-rotation reset execution unit 115 (see i in FIG. 6), and synchronizes the position of the measurement target device at that time with the reference position of the encoder 100x as a position initialization process. The flow of one-rotation reset execution according to the one-rotation reset request signal and the reset execution permission setting is shown by dashed lines [1] and [2] in FIG.
[0041] When a request signal for transmission is received: The transmission request signal from the controller 10x is received by the receiving unit 131 and supplied to the request determining unit 111 (see a in FIG. 6). The request determining unit 111 provides the transmission request signal to the signal processing controller 112 (see b in FIG. 6). Upon receiving the transmission request signal from the controller 10 via the request determining unit 111, the signal processing controller 112 controls the communication unit 130 to transmit the state detection information (see k in FIG. 6) generated by the signal processing unit 160 to the controller 10. The flow of the status detection information in response to the above-mentioned transmission request signal is shown by the dashed line [3] in FIG.
[0042] -1 rotation reset mistake: If the user mistakenly performs a one-rotation reset operation, the encoder 100x receives a one-rotation reset request signal from the controller 10x and executes the one-rotation reset. If a one-rotation reset is performed when the magnetic pole position of the motor does not match the reference position of the encoder 100x, the alignment between the magnetic pole of the motor and the encoder 100x will be misaligned, causing a problem in which normal position detection will no longer be possible. The setting in the memory 120x as to whether or not to execute a one-rotation reset is performed by connecting a setting device to a dedicated port before shipping the encoder 100x. Therefore, if the setting in the memory 120x is such that one-rotation reset execution is permitted, it is not possible to prevent the one-rotation reset from being executed erroneously.
[0043] [Operation of the Encoder 100 of the First Embodiment] The operation of the encoder 100 according to the first embodiment will be described with reference to Fig. 2. Fig. 2 is a configuration diagram showing the encoder 100 according to the first embodiment together with the signal flow. Below, the operation of the encoder 100 will be described separately for when the power is turned on, when a one-rotation reset request signal is received, when a setting request signal is received, and when a transmission request signal is received.
[0044] ·When powering on: When the power supply to the encoder 100 is turned on, the control unit 110 initializes each unit and executes the following initial operations. As an example of the initial operation, the memory controller 113 reads out the one-rotation reset execution permission setting value stored in the memory 120 (see f in FIG. 2). The memory controller 113 supplies the read one-rotation reset execution permission setting value to the one-rotation reset determination unit 114 (see g in FIG. 2). The one-rotation reset execution possibility setting value stored in memory 120 may be either one stored by the manufacturer of encoder 100 before shipping, or one stored as a new one-rotation reset execution possibility setting value updated by a setting request signal from controller 10. The content of the one-rotation reset execution permission setting value stored in memory 120 is either a "reset execution permission setting" or a "reset execution non-permission setting." Furthermore, the "reset execution non-permission setting" may be either a "changeable reset execution non-permission setting" or an "unchangeable reset execution non-permission setting." Here, the explanation will continue assuming that the one-rotation reset execution permission setting value stored in memory 120 includes the reset execution permission setting as an initial value.
[0045] When receiving a request signal for one rotation reset (1): The user transmits a one-rotation reset request signal from the controller 10 to the encoder 100 with the reference position of the encoder 100 and the magnetic pole position of the motor aligned. When the encoder 100 receives the one-rotation reset request signal from the controller 10, it executes a one-rotation reset at the time of reception so as to synchronize the magnetic pole position of the motor with the reference position of the encoder 100. The execution of the one-rotation reset will be described in detail below. The one-rotation reset determination unit 114 receives the one-rotation reset request signal from the controller 10 via the receiving unit 131 and the request determination unit 111 (see a and e in FIG. 2). If the content of the one rotation reset execution permission setting value (g in Figure 2) is a reset execution permission setting, the one rotation reset determination unit 114 commands the one rotation reset execution unit 115 to execute a one rotation reset in response to a one rotation reset request signal from the controller 10 (h in Figure 2). The one-rotation reset execution unit 115 receives a command to execute one-rotation reset from the one-rotation reset determination unit 114 (see h in FIG. 2), and instructs the signal processing unit 160 to execute one-rotation reset (see i in FIG. 2). The signal processing unit 160 receives an instruction to execute a one-rotation reset from the one-rotation reset execution unit 115 (see i in FIG. 2), and synchronizes the position of the measurement target device at that time with the reference position in the encoder 100 as a position initialization process. The flow of the one-rotation reset execution according to the one-rotation reset request signal and the reset execution permission setting is shown by the dashed lines [1a] and [2] in FIG.
[0046] When receiving a setting request signal: The controller 10 transmits a setting request signal to the encoder 100 to request that the one-rotation reset execution setting value be updated as necessary. The encoder 100 receives a setting request signal including a new one-rotation reset execution permission setting value from the controller 10 via the receiving unit 131 (see FIG. 2A). The one-rotation reset execution permission setting value from the controller 10 received by the receiving unit 131 is supplied from the request determining unit 111 to the memory controller 113 (see FIG. 2D). When the memory controller 113 receives a setting request signal including a new one-rotation reset execution setting value (see d in Figure 2), if the contents stored in the memory 120 can be changed, the memory controller 113 stores the new one-rotation reset execution setting value in the memory 120 (see f in Figure 2). The flow of signals for storing the new one-rotation reset execution setting value in the memory 120 is shown by the dashed line [3a] in FIG. On the other hand, if the memory controller 113 receives a setting request signal including a new one-rotation reset execution possibility setting value from the controller 10 but is unable to change the contents stored in the memory 120, it does not store the new one-rotation reset execution possibility setting value in the memory 120. The signal flow when the new one-rotation reset execution setting value is not stored in the memory 120 is shown by the dashed line [3b] in FIG.
[0047] The manner in which the memory controller 113 stores or does not store a new one-rotation reset execution permission setting value in the memory 120 will be described below with reference to Fig. 3. Fig. 3 is an explanatory diagram showing a rewritten state of the one-rotation reset execution permission setting value in the first embodiment. The one-rotation reset execution possibility setting value already stored in memory 120 will be referred to as the "stored one-rotation reset execution possibility setting value," and the new one-rotation reset execution possibility setting value sent from controller 10 will be referred to as the "new one-rotation reset execution possibility setting value." In addition, "storing a new one-rotation reset execution possibility setting value in memory 120" is referred to as "rewriting the stored one-rotation reset execution possibility setting value to the new one-rotation reset execution possibility setting value," and "not storing the new one-rotation reset execution possibility setting value in memory 120" is referred to as "not rewriting the stored one-rotation reset execution possibility setting value."
[0048] In Fig. 3, for the new one-rotation reset execution permission setting values, (a) changeable reset execution permission setting, (b) reset execution permission setting, and (c) unchangeable reset execution permission setting are shown in order horizontally in the table. In Fig. 3, for the memorized one-rotation reset execution permission setting values, (d) changeable reset execution permission setting, (e) reset execution permission setting, and (f) unchangeable reset execution permission setting are shown in order vertically in the table. The results of rewriting or not rewriting the memorized one-rotation reset execution permission setting value by combining the new one-rotation reset execution permission setting values (a) to (c) and the memorized one-rotation reset execution permission setting values (d) to (f) are shown in a list format in (g) to (m). Note that if the new one-rotation reset execution permission setting value and the unchangeable reset execution permission setting are the same, there is no need to rewrite the memorized one-rotation reset execution permission setting value, and this is indicated by "-" in Figure 3.
[0049] If the new one-rotation reset execution permission setting value is a changeable reset execution permission setting ((a) in Figure 3) and the stored one-rotation reset execution permission setting value is an unchangeable reset execution permission setting ((d) in Figure 3), the memory controller 113 does not rewrite the stored one-rotation reset execution permission setting value ((g) in Figure 3). If the new one-rotation reset execution permission setting value is a changeable reset execution permission setting ((a) in Figure 3) and the stored one-rotation reset execution permission setting value is a reset execution permission setting ((e) in Figure 3), the memory controller 113 rewrites the stored one-rotation reset execution permission setting value to a changeable reset execution permission setting ((h) in Figure 3).
[0050] If the new one-rotation reset execution permission setting value is a reset execution permission setting ((b) in Figure 3) and the stored one-rotation reset execution permission setting value is an unchangeable reset execution permission setting ((d) in Figure 3), the memory controller 113 does not rewrite the stored one-rotation reset execution permission setting value ((i) in Figure 3). If the new one-rotation reset execution permission setting value is the reset execution permission setting ((b) in Figure 3) and the stored one-rotation reset execution permission setting value is the changeable reset execution non-permission setting ((f) in Figure 3), the memory controller 113 rewrites the stored one-rotation reset execution permission setting value to the reset execution permission setting ((j) in Figure 3).
[0051] If the new one-rotation reset execution permission setting value is an unchangeable reset execution permission setting ((c) in Figure 3) and the stored one-rotation reset execution permission setting value is a reset execution permission setting ((e) in Figure 3), the memory controller 113 rewrites the stored one-rotation reset execution permission setting value to an unchangeable reset execution permission setting ((k) in Figure 3). If the new one-rotation reset execution permission setting value is an unchangeable reset execution permission setting ((c) in Figure 3) and the stored one-rotation reset execution permission setting value is an changeable reset execution permission setting ((f) in Figure 3), the memory controller 113 rewrites the stored one-rotation reset execution permission setting value to an unchangeable reset execution permission setting ((m) in Figure 3).
[0052] In the first embodiment, in order to prevent a one-rotation reset from being executed again by mistake after the one-rotation reset has been executed normally, it is desirable that, based on an instruction from the controller 10, the memory controller 113 rewrites the stored one-rotation reset execution permission setting value, which contains the reset execution permission setting ((e) in Figure 3), to a changeable reset execution prohibition setting ((h) in Figure 3), or to an unchangeable reset execution prohibition setting ((k) in Figure 3). Alternatively, in order to perform a one-rotation reset, it is desirable that the memory controller 113 rewrites the stored one-rotation reset execution permission setting value, which contains a reset execution non-permission setting ((f) in Figure 3), to a reset execution permission setting ((j) in Figure 3). Furthermore, by changing the memorized one-rotation reset execution permission setting value ((e) or (f) in Figure 3) to an unchangeable reset execution permission setting ((k) or (m) in Figure 3), the memorized one-rotation reset execution permission setting value cannot be rewritten in the future, thereby preventing permanent erroneous execution of one-rotation reset. The memory controller 113 reads the one-rotation reset execution permission / prohibition setting value rewritten in the memory 120, and supplies the read one-rotation reset execution permission / prohibition setting value to the one-rotation reset determination unit 114 (see f and g in FIG. 2).
[0053] When a request signal for transmission is received: The controller 10 transmits, at regular time intervals, to the encoder 100 a transmission request signal requesting status detection information indicating the status of the device to be measured. The transmission request signal from the controller 10 is received by the receiving unit 131 and supplied to the request determining unit 111 (see a in FIG. 2). The request determining unit 111 provides the transmission request signal to the signal processing controller 112 (see b in FIG. 2). Upon receiving the transmission request signal from the controller 10 via the request determining unit 111, the signal processing controller 112 controls the communication unit 130 to transmit the state detection information (see k in FIG. 6) generated by the signal processing unit 160 to the controller 10. The flow of transmitting the state detection information from the encoder 100 to the controller 10 in response to the transmission request signal from the controller 10 is shown by the dashed line [4] in FIG.
[0054] When receiving a request signal for one rotation reset (2): Due to an erroneous operation by the user, the controller 10 may send a one-rotation reset request signal to the encoder 100. Because the user unintentionally commands a one-rotation reset due to an erroneous operation, at this point in time, the magnetic pole position of the motor and the reference position of the encoder 100 do not match. The stored one-rotation reset execution permission setting value in memory 120 is rewritten to a changeable reset execution permission setting or an unchangeable reset execution permission setting to prevent accidental re-execution of a one-rotation reset after it has been successfully executed. In the encoder 100, the one-rotation reset request signal from the controller 10 is received by the receiving unit 131 and supplied from the receiving unit 131 to the request determining unit 111 (see a in FIG. 2). The request determining unit 111 supplies the one-rotation reset request signal from the controller 10 to the one-rotation reset determining unit 114 (see e in FIG. 2). If the stored one-rotation reset execution permission setting value indicates that reset execution is not permitted, the one-rotation reset determination unit 114 does not command the one-rotation reset execution unit 115 to execute a one-rotation reset regardless of the one-rotation reset request signal from the controller 10. By doing so, it is possible to prevent the one-rotation reset from being erroneously executed when the magnetic pole position of the motor and the reference position of the encoder 100 do not match. The flow of information when one rotation reset is not executed due to a one rotation reset request signal and a reset execution disallowance setting is shown by dashed lines [1b] and [5] in FIG.
[0055] - Use of memory access The setting request signal includes a new one-rotation reset execution permission setting value. The new one-rotation reset execution permission setting value includes any one of a reset execution permission setting, a changeable reset execution permission setting, and an unchangeable reset execution permission setting. For this reason, it may be difficult to generate a setting request signal by partially modifying or expanding the bits that make up a general transmission request request signal. Therefore, in response to a one-rotation reset memory access command from the controller 10, the encoder 100 stores a new one-rotation reset execution enable / disable setting value at the address of the memory 120 specified by the one-rotation reset memory access command. The memory access command for one rotation reset is a command that includes a new one rotation reset execution possibility setting value and the address in memory 120 of the new one rotation reset execution possibility setting value, and commands the new one rotation reset execution possibility setting value to be stored in memory 120. For this reason, the memory controller 113 has a function of writing a new one-rotation reset execution permission / prohibition setting value to a specified address in the memory 120 in response to a one-rotation reset memory access command from the controller 10 .
[0056] The above memory access instruction for resetting one rotation can be realized using the communication format of a general direct memory access instruction shown in Fig. 4. Fig. 4 is an explanatory diagram showing an example of the format of a memory access instruction used in the first embodiment. For example, the fields in the format shown in Figure 4 are as follows: The control field CF is command information related to the type of command. The address field ADF is information about the address when writing to memory 120. The data field EDF is information about the new one-rotation reset execution permission setting value, which should be written to memory 120 and includes one of the following as its content: reset execution permission setting, changeable reset execution prohibition setting, or unchangeable reset execution prohibition setting. The check field CRC is error check information using CRC (Cyclic Redundancy Check) for all bits excluding the start bit and delimiter of all fields other than the CRC field. As a result, by using a request signal in the memory access command format, more information can be transmitted from the controller 10 to the encoder 100 than when a general request signal is used.
[0057] [Effects obtained by the first embodiment] The encoder 100 of the first embodiment includes a control unit 110, a nonvolatile memory 120, a sensing unit 150 that detects the state of the device to be measured, a signal processing unit 160 that generates state detection information from the detection result of the sensing unit 150, and a communication unit 130 that communicates with the controller 10. The memory 120 stores a one-rotation reset execution permission / prohibition setting value whose content is a reset execution permission setting or a reset execution prohibition setting. When the control unit 110 receives a transmission request signal from the controller 10 via the communication unit 130, it controls the state detection information generated by the signal processing unit 160 to be transmitted to the controller 10 via the communication unit 130. When the control unit 110 receives a setting request signal including a new one-rotation reset execution permission / prohibition setting value from the controller 10 via the communication unit 130, it controls the memory 120 to store the new one-rotation reset execution permission / prohibition setting value. When the control unit 110 receives a one-rotation reset request signal from the controller 10 via the communication unit 130, it controls the memory 120 not to execute a one-rotation reset if the stored one-rotation reset execution permission / prohibition setting value is set to not permit reset execution, and to execute a one-rotation reset if the stored one-rotation reset execution permission / prohibition setting value is set to permit reset execution. According to the encoder 100 described above, it is possible to change the settings in the non-volatile memory regarding whether or not to allow one rotation reset to be performed from the controller 10 without using any setting device, and it is possible to properly perform one rotation reset.
[0058] In the encoder 100 of the first embodiment, the one-rotation reset execution permission setting value includes a reset execution permission setting or a reset execution non-permission setting. The reset execution non-permission setting further includes a changeable reset execution non-permission setting or an unchangeable reset execution non-permission setting. With this setting, you can select a state depending on the application, such as properly executing a one-rotation reset, preventing erroneous execution of a one-rotation reset, performing a one-rotation reset again after preventing erroneous execution of a one-rotation reset, or permanently preventing erroneous execution of a one-rotation reset.
[0059] In the encoder 100 of embodiment 1, if the new one-rotation reset execution permission setting value is a changeable reset execution permission setting, and if the stored one-rotation reset execution permission setting value is an unchangeable reset execution permission setting, the control unit 110 does not rewrite the stored one-rotation reset execution permission setting value. When the new one-rotation reset execution permission setting value is a changeable reset execution not permitted setting, if the stored one-rotation reset execution permission setting value is a reset execution permission setting, the control unit 110 rewrites the stored one-rotation reset execution permission setting value to a changeable reset execution not permitted setting. By such control, it becomes possible to appropriately rewrite the stored one-rotation reset execution possibility setting value to the new one-rotation reset execution possibility setting value depending on the stored one-rotation reset execution possibility setting value, or not to rewrite it.
[0060] In the encoder 100 of embodiment 1, if the new one-rotation reset execution permission setting value is a reset execution permission setting, and if the stored one-rotation reset execution permission setting value is an unchangeable reset execution non-permission setting, the control unit 110 does not rewrite the one-rotation reset execution permission setting value. If the new one-rotation reset execution permission setting value is a reset execution permission setting and the stored one-rotation reset execution permission setting value is a changeable reset execution non-permission setting, the control unit 110 rewrites the stored one-rotation reset execution permission setting value to a reset execution permission setting. By such control, it becomes possible to appropriately rewrite the stored one-rotation reset execution possibility setting value to the new one-rotation reset execution possibility setting value, or not to rewrite it, depending on the stored one-rotation reset execution possibility setting value.
[0061] In the encoder 100 of embodiment 1, if the new one-rotation reset execution permission setting value is an unchangeable reset execution permission setting and the stored one-rotation reset execution permission setting value is a reset execution permission setting or a changeable reset execution permission setting, the control unit 110 rewrites the stored one-rotation reset execution permission setting value to an unchangeable reset execution permission setting. By such control, it becomes possible to appropriately rewrite the stored one-rotation reset execution possibility setting value to a new one-rotation reset execution possibility setting value according to the stored one-rotation reset execution possibility setting value.
[0062] In the encoder 100 of the first embodiment, the control unit 110 has a function of responding to memory access from the controller 10 and writing data to a specified address in the memory 120. When the encoder 100 receives a one-rotation reset request signal in the form of a memory access command, which includes a new one-rotation reset execution enable / disable setting value and an address in the memory 120 of the new one-rotation reset execution enable / disable setting value, from the controller 10 via the communication unit 130, the encoder 100 writes the new one-rotation reset execution enable / disable setting value to the address in the memory 120. As a result, by using a request signal in the memory access command format, more information can be transmitted from the controller 10 to the encoder 100 than when a general request signal is used.
[0063] In the encoder 100 of the first embodiment, when power is turned on, the stored one-rotation reset execution permission setting value is read, and it is determined whether or not to execute one-rotation reset based on the read one-rotation reset execution permission setting value. This allows the encoder 100 to appropriately and reliably permit / prohibit the execution of one rotation reset based on the stored one rotation reset execution permission / prohibition setting value.
[0064] The measurement system 1 of the first embodiment includes a controller 10 that communicates with an encoder 100, and the encoder 100 that communicates with the controller 10. When the controller 10 transmits a transmission request signal to the encoder 100, the encoder 100 transmits state detection information to the controller 10 in response to the transmission request signal, and when the controller 10 transmits a setting request signal to the encoder 100 including a one-rotation reset execution permission / prohibition setting value whose content is a reset execution permission setting or a reset execution prohibition setting, the encoder 100 stores the one-rotation reset execution permission / prohibition setting value in a memory 120 in response to the setting request signal, and when the controller 10 transmits the one-rotation reset request signal to the encoder 100, the encoder 100 does not perform a one-rotation reset if the one-rotation reset execution permission / prohibition setting value stored in the memory 120 is a reset execution prohibition setting, and performs a one-rotation reset if the one-rotation reset execution permission / prohibition setting value stored in the memory 120 is a reset execution permission setting. According to the measurement system 1 described above, it is possible to change the settings in the non-volatile memory regarding whether or not to allow one-rotation reset to be performed from the controller 10 without using any setting equipment, and it is possible to properly perform one-rotation reset. [Explanation of symbols]
[0065] 1 Measurement system, 10 Controller, 100 Encoder, 110 Control unit, 111 Request determination unit, 112 Signal processing controller, 113 Memory controller, 114 One-rotation reset determination unit, 115 One-rotation reset execution unit, 120 Memory, 130 Communication unit, 131 Receiving unit, 132 Transmitting unit, 150 Sensing unit, 160 Signal processing unit.
Claims
1. A control unit (110); a non-volatile memory (120); a sensing unit (150) for detecting the state of a measurement target device; a signal processing unit (160) that generates state detection information from the detection result of the sensing unit (150); a communication unit (130) that communicates with the controller (10); Equipped with The memory (120) stores a one-rotation reset execution permission / prohibition setting value having a reset execution permission setting or a reset execution prohibition setting as its content, The control unit (110) When a transmission request signal is received from the controller (10) via the communication unit (130), the signal processing unit (160) controls the state detection information generated by the signal processing unit (160) to be transmitted to the controller (10) via the communication unit (130); When a setting request signal including a new one-rotation reset execution permission / prohibition setting value is received from the controller (10) via the communication unit (130), the new one-rotation reset execution permission / prohibition setting value is stored in the memory (120), When a one-rotation reset request signal is received from the controller (10) via the communication unit (130), if the one-rotation reset execution permission setting value stored in the memory (120) is set to not permit the reset execution, the one-rotation reset is not executed, and if the one-rotation reset execution permission setting value stored in the memory (120) is set to permit the reset execution, the one-rotation reset is executed. Encoder.
2. the one-rotation reset execution permission setting value includes the reset execution permission setting or the reset execution non-permission setting, The reset execution disallowance setting further includes a changeable reset execution disallowance setting or an unchangeable reset execution disallowance setting. The encoder of claim 1 .
3. The control unit (110) When the one-rotation reset execution permission setting value included in the one-rotation reset request signal is set to the changeable reset execution permission setting, If the one-rotation reset execution permission setting value stored in the memory (120) is the unchangeable reset execution permission setting, the one-rotation reset execution permission setting value stored in the memory (120) is not rewritten, If the one-rotation reset execution permission setting value stored in the memory (120) is the reset execution permission setting, the one-rotation reset execution permission setting value stored in the memory (120) is rewritten to the changeable reset execution non-permission setting. The encoder of claim 2 .
4. The control unit (110) When the one-rotation reset execution permission setting value included in the one-rotation reset request signal is set to the reset execution permission setting, If the one-rotation reset execution permission setting value stored in the memory (120) is the unchangeable reset execution permission setting, the one-rotation reset execution permission setting value stored in the memory (120) is not rewritten, If the one-rotation reset execution permission setting value stored in the memory (120) is a changeable reset execution prohibition setting, the one-rotation reset execution permission setting value stored in the memory (120) is rewritten to the reset execution permission setting. The encoder of claim 2 .
5. The control unit (110) When the one-rotation reset execution permission / prohibition setting value included in the one-rotation reset request signal is the unchangeable reset execution prohibition setting, if the one-rotation reset execution permission / prohibition setting value stored in the memory (120) is the reset execution permission setting or the changeable reset execution prohibition setting, the one-rotation reset execution permission / prohibition setting value stored in the memory (120) is rewritten to the unchangeable reset execution prohibition setting. The encoder of claim 2 .
6. The control unit (110) The memory controller (10) has a function of writing data to a specified address in the memory (120) in response to a memory access from the controller (10), When the one-rotation reset request signal in the form of a memory access command is received from the controller (10) via the communication unit (130), the one-rotation reset request signal includes the new one-rotation reset execution permission / prohibition setting value and the address of the new one-rotation reset execution permission / prohibition setting value in the memory (120), the new one-rotation reset execution permission / prohibition setting value is written to the address in the memory (120). The encoder of claim 1 .
7. When power is turned on, the control unit (110) reads the one-rotation reset execution permission / prohibition setting value stored in the memory (120) and determines whether or not to execute the one-rotation reset based on the read one-rotation reset execution permission / prohibition setting value. The encoder of claim 1 .
8. a controller (10) in communication with the encoder (100); the encoder (100) according to any one of claims 1 to 7 in communication with the controller (10); When the controller (10) transmits a transmission request signal to the encoder (100), the encoder (100) transmits status detection information to the controller (10) in response to the transmission request signal; When the controller (10) transmits a setting request signal including a one-rotation reset execution permission / prohibition setting value, which is a reset execution permission setting or a reset execution prohibition setting, to the encoder (100), the encoder (100) stores the one-rotation reset execution permission / prohibition setting value in the memory (120) in response to the setting request signal, When the controller (10) transmits a one-rotation reset request signal to the encoder (100), the encoder (100) does not execute the one-rotation reset if the one-rotation reset execution permission setting value stored in the memory (120) is set to not permit the reset execution, and executes the one-rotation reset if the one-rotation reset execution permission setting value stored in the memory (120) is set to permit the reset execution. Measurement system.
Citation Information
Patent Citations
Position measuring apparatus, rotary encoder, clinometer, and inclination measuring method and apparatus
JP1996189826A