Rotation determination device
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-13
- Publication Date
- 2026-08-14
AI Technical Summary
[0011]然而,根据专利文献1所记载的技术,判定拨盘的旋转操作需要检测双相脉冲信号双方的沿,因此存在以下问题:在向判定拨盘的旋转操作的装置供给了电源并从中间位置对拨盘进行了旋转操作的情况下,无法在应当判定出旋转的位置作出判定
[0025]根据本发明的一个或多个的实施方式,具有即使旋转体的操作开始位置为中间位置也能准确地判定旋转体的旋转操作的效果。
Smart Images

Figure CN116829909B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a rotation determination device. Background Technology
[0002] Previously, one approach involved using a dial to set the temperature and airflow of a vehicle's air conditioning system, and using an encoder to determine the dial's rotation.
[0003] A method is proposed to prevent misjudgment and accurately determine rotation operations when using such an encoder.
[0004] For example, a rotation determination method is disclosed that detects the rising and falling edges of a biphase pulse signal output from an encoder, and determines whether to count up or down based on the edge state of the pulse signal whose edge was detected and the signal level of the other pulse signal, thereby preventing misjudgments caused by electrical fretting (for example, see Patent Document 1).
[0005] Furthermore, in cases where rotational operation is determined by the edge of a pulse signal, as in the prior art described above, it is generally set to detect the edge of any one of the two-phase pulse signals near the stop position of the dial.
[0006] Here, when the dial operation starts at the middle position between two adjacent dial stop positions, and a rotation operation is performed from this middle position to either dial stop position, only the rising or falling edge of one of the two-phase pulse signals will be detected.
[0007] Existing technical documents
[0008] Patent documents
[0009] Patent Document 1: Japanese Utility Model Application Publication No. 02-118822 Summary of the Invention
[0010] The problem that the invention aims to solve
[0011] However, according to the technology described in Patent Document 1, determining the rotation operation of the dial requires detecting the edges of both sides of the biphase pulse signal, which has the following problem: when power is supplied to the device for determining the rotation operation of the dial and the dial is rotated from the middle position, it is impossible to make a determination at the position where the rotation should be determined.
[0012] Therefore, the present invention was made in view of the above-mentioned problems, and its object is to provide a rotation determination device that can determine rotation operation even when the starting position of the dial operation is in the middle position.
[0013] Solution for solving the problem
[0014] In Method 1, one or more embodiments of the present invention provide a rotation determination device, characterized by comprising: an encoder connected to a rotating body, which generates two pulse signals that are out of phase with each other by rotating the rotating body; a detection unit that detects the rising and falling edges of the two pulse signals as signal changes; an acquisition unit that acquires the levels of the two pulse signals input from the encoder as input signal levels; an edge mode determination unit that, when the detection unit detects a signal change in one of the two pulse signals, determines an edge mode based on the input signal levels of the pulse signal in which the signal change was detected and the other pulse signal; a setting unit that sets a reference signal level with the input signal level as an initial value; and a rotation determination unit that, when a specific edge mode in the edge mode changes according to the reference signal level and the edge mode determined by the edge mode determination unit is the specific edge mode, determines that the rotating body has rotated.
[0015] A rotation determination device according to one or more embodiments of the present invention includes: an encoder that generates two pulse signals; an acquisition unit that acquires the levels of the two pulse signals; a detection unit that detects changes in the two pulse signals; a setting unit that sets a reference signal level; an edge pattern determination unit that, when a change in either of the two pulses is detected, acquires the signal level and determines an edge pattern; and a rotation determination unit that determines whether a rotating body has been rotated. Furthermore, when a specific edge pattern determined based on the reference signal level matches the edge pattern determined by the edge pattern determination unit, the rotation determination unit determines that the rotating body has rotated.
[0016] That is, in the rotation determination device, when the reference signal level is set at the operation start position of the rotating body and the edge pattern determined based on the signal level change detected by one of the two pulse signals is consistent with the specific edge pattern set based on the reference signal level, it is determined that the rotating body has been rotated.
[0017] Therefore, even if the starting position of the rotating body is the middle position, the rotation operation of the rotating body can be determined because the reference signal level is set to the middle position.
[0018] In Method 2, one or more embodiments of the present invention provide a rotation determination device, characterized in that the specific edge mode is divided into a first edge mode and a second edge mode. When the edge mode is the first edge mode, the rotation determination device determines that the rotating body has been rotated clockwise. When the edge mode is the second edge mode, the rotation determination device determines that the rotating body has been rotated counterclockwise.
[0019] That is, in the rotation determination device, the specific edge mode determined based on the reference signal level is divided into two types: the first edge mode and the second edge mode.
[0020] Therefore, since the specific edge mode that determines that the rotating body has been rotated is divided into the first edge mode that determines that the rotating body has been rotated clockwise and the second edge mode that determines that the rotating body has been rotated counterclockwise, the direction of the rotation operation can be determined.
[0021] In Method 3, one or more embodiments of the present invention provide a rotation determination device, characterized in that, when the edge mode is the specific edge mode, the reference signal level is updated to the input signal level when the specific edge mode is determined.
[0022] That is, in the rotation determination device, when the along-mode is consistent with a specific along-mode, the reference signal level is updated to the input signal level when the along-mode is consistent with the specific along-mode.
[0023] Therefore, it is possible to accurately determine the continuous rotational operation of a rotating body.
[0024] Invention Effects
[0025] According to one or more embodiments of the present invention, the rotation operation of the rotating body can be accurately determined even if the starting position of the operation of the rotating body is the middle position. Attached Figure Description
[0026] Figure 1 This is a diagram showing the structure of the rotation determination device according to an embodiment of the present invention.
[0027] Figure 2 This is a diagram illustrating the operation of the encoder in the rotation determination device according to an embodiment of the present invention.
[0028] Figure 3 This is a diagram illustrating the operation of the encoder in the rotation determination device according to an embodiment of the present invention.
[0029] Figure 4 This is a flowchart of the rotation determination device according to an embodiment of the present invention.
[0030] Figure 5 This figure illustrates the along-pattern determination process of the rotation determination device according to an embodiment of the present invention.
[0031] Figure 6 This is a flowchart of the along-pattern determination process of the rotation determination device according to an embodiment of the present invention.
[0032] Figure 7 This is a flowchart of the rotation determination process of the rotation determination device according to an embodiment of the present invention.
[0033] Figure 8 This diagram illustrates the setting of the edge pattern according to each reference signal level in the rotation determination process of the rotation determination device according to an embodiment of the present invention.
[0034] Figure 9 This is a time diagram showing the execution of the rotation determination process of the rotation determination device according to an embodiment of the present invention.
[0035] Figure 10 This is a time diagram showing the execution of the rotation determination process of the rotation determination device according to an embodiment of the present invention.
[0036] Figure 11 This is a time diagram showing the execution of the rotation determination process of the rotation determination device according to an embodiment of the present invention.
[0037] Figure 12 This is a time diagram showing the execution of the rotation determination process of the rotation determination device according to an embodiment of the present invention.
[0038] Figure 13 This is a time diagram showing the execution of the rotation determination process of the rotation determination device according to an embodiment of the present invention. Detailed Implementation
[0039] <Implementation Method>
[0040] use Figures 1 to 13 The rotation determination device 1 of this embodiment will be described.
[0041] <Structure of Rotation Determination Device 1>
[0042] The rotation determination device 1 in this embodiment is, for example, a rotation determination device for a temperature adjustment dial of a vehicle air conditioner, such as... Figure 1 As shown, the rotation determination device 1 is configured to include an encoder unit 100 and a CPU (central processing unit) 200.
[0043] <Structure of encoder section 100>
[0044] like Figure 1 As shown, the encoder section 100 is configured to include an encoder 110, a resistor 120, and a resistor 121.
[0045] Furthermore, the encoder section 100 is configured to produce a clicking sound when the rotating body 111 is rotated. Figure 2 and Figure 3 The clicking sound stopped at the location indicated by the black dot.
[0046] like Figure 1As shown, encoder 110 is configured to include a rotator 111, a switch 112, and a switch 113.
[0047] Rotating body 111 is a dial that is rotated when setting the temperature of the vehicle's air conditioning system.
[0048] Switches 112 and 113 are, for example, composed of mechanical sliding contacts, and are switched on / off in conjunction with the rotation of the rotating body 111.
[0049] For example, such as Figure 2 As shown, the phase difference between the on / off states of switches 112 and 113 is 90°. When the rotating body 111 is rotated clockwise from the position where the click stopped, the on / off state of switch 113 changes before that of switch 112.
[0050] In addition, such as Figure 3 As shown, when the rotating body 111 is rotated counterclockwise from the position where the click stopped, the on / off state of switch 112 changes before that of switch 113.
[0051] One end of switch 112 is connected to one end of switch 113, and is connected to the grounding point of rotation determination device 1.
[0052] The other end of switch 112 is connected to one end of resistor 120 and CPU 200.
[0053] The signal input to the CPU200 from the other end of switch 112 is a signal indicating the state of switch 112 (A-phase input signal).
[0054] The other end of switch 113 is connected to one end of resistor 121 and CPU 200.
[0055] The signal input to the CPU200 from the other end of switch 113 is a signal indicating the state of switch 113 (B-phase input signal).
[0056] Furthermore, the other end of resistor 120 is connected to the other end of resistor 121, and is connected to the encoder power supply (5V).
[0057] Here, when the rotation determination device is the rotation determination device 1 mounted on the vehicle, after supplying CPU power (5V) to CPU 200, CPU 200 supplies encoder power (5V) to encoder section 100 by controlling a switching element (not shown).
[0058] It should be noted that the CPU200 is supplied with CPU power (5V) in conjunction with the ACC (accessory) switch or IG (ignition) switch.
[0059] <Structure of CPU200>
[0060] like Figure 1 As shown, the CPU 200 is configured to include an acquisition unit 210, a detection unit 220, an edge pattern determination unit 230, a setting unit 240, and a rotation determination unit 250.
[0061] It should be noted that the acquisition unit 210, the detection unit 220, the edge pattern determination unit 230, the setting unit 240, and the rotation determination unit 250 are some of the functions of a CPU 200 that has well-known RAM (random access memory), ROM (read-only memory), and I / O (input / output) bus (not shown).
[0062] Furthermore, the CPU200 executes overall control of the rotation determination device 1 according to the control program stored in the ROM.
[0063] For example, when CPU power (5V) is supplied to CPU200, the processing of rotation determination device 1 begins, and when CPU power (5V) is cut off, the processing of rotation determination device 1 ends.
[0064] In the acquisition unit 210, the signal levels of the A-phase input signal and the B-phase input signal input from the encoder unit 100 are acquired.
[0065] In the detection unit 220, the rising and falling edges of the A-phase input signal and the B-phase input signal input from the encoder unit 100 are detected.
[0066] Specifically, the A-phase input signal and the B-phase input signal are connected to the edge-detectable input terminal of the CPU200, and the rising and falling edges of the A-phase input signal and the B-phase input signal are detected based on the A-phase input signal and the B-phase input signal input to the detection unit 220 via the input terminal.
[0067] In the edge mode determination unit 230, the edge mode is determined based on the signal level acquired by the acquisition unit 210 and the input signal that is detected by the detection unit 220 as a rising edge or falling edge.
[0068] It should be noted that the determination and processing of the pattern will be described later.
[0069] In the setting unit 240, a reference signal level is set based on the signal level acquired in the acquisition unit 210.
[0070] It should be noted that the setting of the reference signal level will be described later.
[0071] In the rotation determination unit 250, based on the along-mode determined in the along-mode determination unit 230 and the reference signal level set in the setting unit 240, it is determined whether the rotating body 111 has been rotated.
[0072] It should be noted that the rotation determination process will be described later.
[0073] <Processing of Rotation Detection Device 1>
[0074] use Figures 4 to 8 The processing of the rotation determination device 1 in this embodiment will be explained.
[0075] use Figure 4 The processing of determining the rotation operation of rotating body 111 is explained.
[0076] In CPU200, it is determined whether the rotation determination state is valid (step S110).
[0077] When the CPU200 determines that the rotation determination state is valid ("Yes" in step S110), the process is transferred to step S120.
[0078] On the other hand, when the CPU200 determines that the rotation determination state is invalid (No in step S110), the process returns to step S110 and waits.
[0079] It should be noted that the rotation determination state is set to be valid when the CPU power is supplied to the CPU200, or it is set to be valid by the user through the operation of a working switch (not shown) after the CPU power is supplied to the CPU200.
[0080] In the acquisition unit 210, the A-phase input signal level a and the B-phase input signal level b are acquired (step S120).
[0081] In other words, the acquisition unit 210 acquires the A-phase input signal level a and the B-phase input signal level b before the rotating body 111 is rotated.
[0082] It should be noted that the signal level acquired in the acquisition unit 210 is either a high level (hereinafter referred to as H) or a low level (hereinafter referred to as L).
[0083] Next, in the setting unit 240, a reference signal level (α, β) is set based on the signal level acquired in the acquisition unit 210 (step S130).
[0084] In other words, in the setting unit 240, the A-phase input signal level a and the B-phase input signal level b obtained in step S120 before the rotating body 111 is rotated are set as reference signal levels (α, β) = (a, b).
[0085] Next, in the detection unit 220, it is determined whether there is a change in the A-phase input signal or the B-phase input signal (step S140).
[0086] In other words, the rising or falling edge of the A-phase input signal and the B-phase input signal is detected in the detection unit 220.
[0087] Furthermore, when a signal change is detected in the detection unit 220 ("Yes" in step S140), the processing is transferred to step S150.
[0088] On the other hand, when no signal change is detected in the detection unit 220 (No in step S140), the process is transferred to step S160.
[0089] Next, in the acquisition unit 210, the A-phase input signal level a and the B-phase input signal level b are acquired (step S150).
[0090] Then, based on the input signal of rising edge or falling edge detected by detection unit 220 in step S140 and the signal level acquired by acquisition unit 210 in step S150, the edge mode determination process performed by edge mode determination unit 230 is executed (step S200).
[0091] It should be noted that the pattern determination process (step S200) will be described later.
[0092] Next, in the rotation determination unit 250, the rotation determination process of the rotating body 111 is performed based on the along pattern determined in step S200 (step S300).
[0093] It should be noted that the rotation determination process (step S300) processed in the rotation determination unit 250 will be described later.
[0094] Then, in CPU200, it is determined whether the rotation determination state is valid (step S160).
[0095] When the CPU200 determines that the rotation determination state is valid ("Yes" in step S160), the process returns to step S140 and continues.
[0096] On the other hand, when the CPU200 determines that the rotation determination state is invalid (No in step S160), the process ends.
[0097] <Pattern determination processing (step S200)>
[0098] use Figure 5 and Figure 6 The along-pattern determination process performed in the along-pattern determination unit 230 when the rotating body 111 is rotated will be explained.
[0099] It should be noted that, as Figure 5As shown, in the along-pattern determination process (step S200), based on the information of signal changes detected by the detection unit 220 in step S140 and the input signal level acquired by the acquisition unit 210 in step S150, the along-pattern is classified into four types, E1 to E4. Examples will be given below. Figure 5 The data table shown is stored in the along-mode determination unit 230 or a storage unit not shown. The along-mode determination process in the along-mode determination unit 230 will be described in detail.
[0100] like Figure 6 As shown, in the mode determination unit 230, it determines whether the signal change detected by the detection unit 220 in step S140 is a change in the A-phase input signal (step S210).
[0101] If it is determined that there is a change in the A-phase input signal ("Yes" in step S210), the process is transferred to step S220.
[0102] On the other hand, if it is determined that the change is not a change in the A-phase input signal ("No" in step S210), the process is transferred to step S250.
[0103] Next, in the mode determination unit 230, it is determined whether the B-phase input signal level b obtained in step S150 is L (step S220).
[0104] If the B-phase input signal level b obtained in step S150 is determined to be L ("Yes" in step S220), the edge mode is determined to be E1 in the edge mode determination unit 230 (step S230).
[0105] On the other hand, if it is determined that the B-phase input signal level b obtained in step S150 is not L (No in step S220), the edge mode is determined to be E2 in the edge mode determination unit 230 (step S240).
[0106] Furthermore, in the mode determination unit 230, it is determined whether the A-phase input signal level a obtained in step S150 is L (step S250).
[0107] If the A-phase input signal level a obtained in step S150 is determined to be L ("Yes" in step S250), the edge mode is determined to be E3 in the edge mode determination unit 230 (step S260).
[0108] On the other hand, if it is determined that the A-phase input signal level a obtained in step S150 is not L (No in step S250), the edge mode is determined to be E4 in the edge mode determination unit 230 (step S270).
[0109] Then, when an edge mode is determined in steps S230, S240, S260, and S270, the edge mode determination process ends.
[0110] <Rotation determination process (step S300)>
[0111] use Figure 7 and Figure 8 The rotation determination process (step S300) will be explained.
[0112] Steps S301 to S312 described below are all processes performed in the rotation determination unit 250.
[0113] In the rotation determination process (step S300), based on the along-mode determination process (step S200) and the reference signal level (α, β) set in the setting unit 240, it is determined whether the rotating body 111 has been rotated. Hereinafter, an example will be shown... Figure 8 The rotation determination process in the rotation determination unit 250 will be described in detail, depending on whether the data table shown is stored in the rotation determination unit 250 or a storage unit not shown.
[0114] like Figure 7 As shown, in the rotation determination unit 250, it is determined whether the reference signal level set in the setting unit 240 is the reference signal level (α, β) = (H, L) (step S301).
[0115] When the rotation determination unit 250 determines that the reference signal level (α, β) = (H, L) is true ("Yes" in step S301), the process is transferred to step S304.
[0116] On the other hand, when the rotation determination unit 250 determines that it is not the reference signal level (α, β) = (H, L) (No in step S301), the process is transferred to step S302.
[0117] Next, in the rotation determination unit 250, it is determined whether the reference signal level set in the setting unit 240 is the reference signal level (α, β) = (L, H) (step S302).
[0118] When the rotation determination unit 250 determines that the reference signal level (α, β) = (L, H) is true ("Yes" in step S302), the process is transferred to step S305.
[0119] On the other hand, when the rotation determination unit 250 determines that it is not the reference signal level (α, β) = (L, H) (No in step S303), the process is transferred to step S303.
[0120] Then, in the rotation determination unit 250, it is determined whether the reference signal level set in the setting unit 240 is the reference signal level (α, β) = (L, L) (step S303).
[0121] When the rotation determination unit 250 determines that the reference signal level (α, β) = (L, L) ("Yes" in step S303), the process is transferred to step S306.
[0122] On the other hand, when the rotation determination unit 250 determines that it is not the reference signal level (α, β) = (L, L) (No in step S303), the process is transferred to step S307.
[0123] Next, in the rotation determination unit 250, a specific edge mode (first edge mode and second edge mode) is set based on the reference signal level determined in steps S301 to S303. Specifically, in the rotation determination unit 250, by referring to... Figure 8 The data table shown is used to set a specific edge mode (first edge mode and second edge mode).
[0124] Here, a specific edge pattern is assumed to be the edge pattern first detected in the edge pattern determination unit 230 when the rotation operation begins from the position of the rotating body 111 represented by the value of the reference signal level (α, β).
[0125] At this time, in the rotation determination unit 250, since the clockwise rotation operation and the counterclockwise rotation operation of the rotating body 111 need to be considered, a first edge mode and a second edge mode are set.
[0126] In other words, when the reference signal level (α, β) = (H, L) ("Yes" in step S301), E2 = first edge mode and E3 = second edge mode are set (step S304), and the processing is transferred to step S308.
[0127] Furthermore, when the reference signal level (α, β) = (L, H) ("Yes" in step S302), E1 = first edge mode and E4 = second edge mode are set (step S305), and the processing is transferred to step S308.
[0128] Furthermore, when the reference signal level (α, β) = (L, L) ("Yes" in step S303), E1 = first edge mode and E3 = second edge mode are set (step S306), and the processing is transferred to step S308.
[0129] Furthermore, when the reference signal level (α, β) = (H, H) (No in step S303), E2 is set to the first edge mode and E4 to the second edge mode (step S307), and the processing is transferred to step S308.
[0130] Then, in the rotation determination unit 250, it is determined whether the edge pattern determined in the edge pattern determination process (step S200) is consistent with the first edge pattern set in any one of the processes in steps S304 to S307 (step S308).
[0131] If the along-mode determined in the along-mode determination process (step S200) is consistent with the first along-mode set in any one of the processes S304 to S307 ("Yes" in step S308), the rotation determination unit 250 determines that the rotating body 111 has been rotated clockwise by a clicking sound (step S309), and the process is transferred to step S312.
[0132] On the other hand, if the edge mode determined in the edge mode determination process (step S200) is inconsistent with the first edge mode set in any of the processes in steps S304 to S307 ("No" in step S308), the process is transferred to step S310.
[0133] Then, in the rotation determination unit 250, it is determined whether the edge pattern determined in the edge pattern determination process (step S200) is consistent with the second edge pattern set in any one of the processes in steps S304 to S307 (step S310).
[0134] If the along-mode determined in the along-mode determination process (step S200) is consistent with the second along-mode set in any one of the processes S304 to S307 ("Yes" in step S310), the rotation determination unit 250 determines that the rotating body 111 has been rotated counterclockwise by a clicking sound (step S311), and the process is transferred to step S312.
[0135] On the other hand, if the edge mode determined in the edge mode determination process (step S200) is inconsistent with the second edge mode set in any of the processes in steps S304 to S307 ("No" in step S310), the rotation determination process ends (step S300).
[0136] Then, in the rotation determination unit 250, the reference signal level (α, β) is updated to the A-phase input signal level a and B-phase input signal level b obtained in step S150 (step S312), and the rotation determination process ends (step S300).
[0137] <Time diagram of the rotation operation of rotating body 111>
[0138] use Figures 9-13The timing diagram of the rotating body 111 during rotation is explained. It should be noted that the timing diagram is illustrated by example when the rotating body 111 is rotated in a clockwise direction.
[0139] (The case where the rotating body 111 is rotated from the state of reference signal level = (H, L))
[0140] use Figure 9 The time diagram of the time taken for the rotating body 111 to be rotated clockwise by one click is explained.
[0141] When CPU power (5V) is supplied to CPU 200 at time t1 and the rotation determination state is set to be valid, the input signal level (a, b) = (H, L) is acquired in the acquisition unit 210.
[0142] Then, the acquired input signal level (a, b) is set as the reference signal level (α, β) in the setting unit 240.
[0143] In other words, the reference signal level (α, β) = (H, L) is set in the setting unit 240.
[0144] When the rotating body 111 is rotated in a clockwise direction and the rising edge of the B-phase input signal is detected by the detection unit 220 at time t2, the input signal level (a, b) is acquired in the acquisition unit 210, and then the edge mode determination process is performed in the edge mode determination unit 230.
[0145] In other words, the input signal level (a, b) = (H, H) is acquired in the acquisition unit 210, and the edge mode is determined to be E4 in the edge mode determination unit 230.
[0146] Next, in the rotation determination unit 250, a specific edge mode is set based on the reference signal level (α, β). When the reference signal level (α, β) = (H, L), E2 is set to the first edge mode and E3 to the second edge mode.
[0147] Then, since the along mode (=E4) determined in the along mode determination unit 230 is inconsistent with the first along mode (=E2) and the second along mode (=E3) set in the rotation determination unit 250, the rotation determination unit 250 does not determine that a rotation operation has been performed, and the rotation determination process ends.
[0148] When the rotating body 111 is further rotated in a clockwise direction and the falling edge of the A-phase input signal is detected by the detection unit 220 at t3, the input signal level (a, b) is acquired in the acquisition unit 210, and then the edge mode determination process is performed in the edge mode determination unit 230.
[0149] In other words, the input signal level (a, b) = (L, H) is acquired in the acquisition unit 210, and the edge mode is determined to be E2 in the edge mode determination unit 230.
[0150] Next, in the rotation determination unit 250, a specific edge mode is set based on the reference signal level (α, β). When the reference signal level (α, β) = (H, L), E2 is set to the first edge mode and E3 to the second edge mode.
[0151] Then, since the along mode (=E2) determined in the along mode determination unit 230 is consistent with the first along mode (=E2) set in the rotation determination unit 250, the rotation determination unit 250 determines that the rotating body 111 was rotated clockwise by a clicking sound.
[0152] Then, the reference signal level (α, β) = (L, H) is updated in the setting unit 240, and the rotation determination process ends.
[0153] (The case where the rotating body 111 is rotated from the state of reference signal level = (L, H))
[0154] use Figure 10 The time diagram is explained for the time it takes for the rotating body 111 to be rotated clockwise by one click sound.
[0155] When CPU power (5V) is supplied to CPU200 at time t1 and the rotation determination state is set to valid, the input signal level (a, b) = (L, H) is acquired in the acquisition unit 210.
[0156] Then, the acquired input signal level (a, b) is set as the reference signal level (α, β) in the setting unit 240.
[0157] In other words, the reference signal level (α, β) = (L, H) is set in the setting unit 240.
[0158] When the rotating body 111 is rotated clockwise and the falling edge of the B-phase input signal is detected by the detection unit 220 at time t2, the input signal level (a, b) is acquired in the acquisition unit 210, and then the edge mode determination process is performed in the edge mode determination unit 230.
[0159] In other words, the input signal level (a, b) = (L, L) is acquired in the acquisition unit 210, and the edge mode is determined to be E3 in the edge mode determination unit 230.
[0160] Next, in the rotation determination unit 250, a specific edge mode is set based on the reference signal level (α, β). When the reference signal level (α, β) = (L, H), E1 = first edge mode and E4 = second edge mode are set.
[0161] Then, since the along mode (=E3) determined in the along mode determination unit 230 is inconsistent with the first along mode (=E1) and the second along mode (=E4) set in the rotation determination unit 250, the rotation determination unit 250 does not determine that a rotation operation has been performed, and the rotation determination process ends.
[0162] When the rotating body 111 is rotated in a clockwise direction and the rising edge of the A-phase input signal is detected by the detection unit 220 at t3, the input signal level (a, b) is acquired in the acquisition unit 210, and then the edge mode determination process is performed in the edge mode determination unit 230.
[0163] In other words, the input signal level (a, b) = (H, L) is acquired in the acquisition unit 210, and the edge mode is determined as E1 in the edge mode determination unit 230.
[0164] Next, in the rotation determination unit 250, a specific edge mode is set based on the reference signal level (α, β). When the reference signal level (α, β) = (L, H), E1 = first edge mode and E4 = second edge mode are set.
[0165] Then, since the along mode (=E1) determined in the along mode determination unit 230 is consistent with the first along mode (=E1) set in the rotation determination unit 250, the rotation determination unit 250 determines that the rotating body 111 was rotated clockwise by a clicking sound.
[0166] Then, the reference signal level (α, β) = (H, L) is updated in the setting unit 240, and the rotation determination process ends.
[0167] (The case where the rotating body 111 is rotated from the state of reference signal level = (L, L))
[0168] like Figure 2 As shown, the input signal level (a, b) = (L, L) indicates that the rotating body 111 stops at the midpoint between two adjacent click-stop positions.
[0169] In other words, even if the encoder part is designed to produce a clicking sound, depending on the operator's operation, the rotating body 111 may sometimes stop at the middle position between two adjacent clicking stop positions. Therefore, the rotation determination device 1 needs to accurately detect the rotation operation performed from that position.
[0170] Therefore, the following uses Figure 11 The processing of the rotation determination device 1 when the rotating body 111, which is stopped at the middle position, is rotated in the clockwise direction will be explained.
[0171] When CPU power (5V) is supplied to CPU200 at time t1 and the rotation determination state is set to be valid, the input signal level (a, b) = (L, L) is acquired in the acquisition unit 210.
[0172] Then, the acquired input signal level (a, b) is set as the reference signal level (α, β) in the setting unit 240.
[0173] In other words, the reference signal level (α, β) is set to (L, L) in the setting unit 240.
[0174] When the rotating body 111 is rotated clockwise and the rising edge of the A-phase input signal is detected by the detection unit 220 at t2, the input signal level (a, b) is acquired in the acquisition unit 210, and then the edge mode determination process is performed in the edge mode determination unit 230.
[0175] In other words, the input signal level (a, b) = (H, L) is acquired in the acquisition unit 210, and the edge mode is determined as E1 in the edge mode determination unit 230.
[0176] Next, in the rotation determination unit 250, a specific edge mode is set based on the reference signal level (α, β). When the reference signal level (α, β) = (L, L), E1 = first edge mode and E3 = second edge mode are set.
[0177] Then, since the along mode (=E1) determined in the along mode determination unit 230 is consistent with the first along mode (=E1) set in the rotation determination unit 250, the rotation determination unit 250 determines that the rotating body 111 was rotated clockwise by a clicking sound.
[0178] It should be noted that in the above time diagram, the rotation operation of the rotating body 111 starts from the middle position between two adjacent click stop positions. Therefore, the rotation operation can be determined in the rotation determination unit 250 when the rotating body 111 has been rotated by half a click.
[0179] Then, the reference signal level (α, β) = (H, L) is updated in the setting unit 240, and the rotation determination process ends.
[0180] (The case where the rotating body 111 is rotated from the state of reference signal level = (H, H))
[0181] like Figure 2 As shown, the input signal level (a, b) = (H, H) indicates that the rotating body 111 stops at the midpoint between two adjacent click-stop positions.
[0182] Therefore, the following uses Figure 12 The processing of the rotation determination device 1 when the rotating body 111, which is stopped at the intermediate position between two adjacent click-stop positions, is rotated in the clockwise direction will be explained.
[0183] When CPU power (5V) is supplied to CPU 200 at time t1 and the rotation determination state is set to be valid, the input signal level (a, b) = (H, H) is acquired in the acquisition unit 210.
[0184] Then, the acquired input signal level (a, b) is set as the reference signal level (α, β) in the setting unit 240.
[0185] In other words, the reference signal level (α, β) is set to (H, H) in the setting unit 240.
[0186] When the rotating body 111 is rotated clockwise and the falling edge of the A-phase input signal is detected by the detection unit 220 at t2, the input signal level (a, b) is acquired in the acquisition unit 210, and then the edge mode determination process is performed in the edge mode determination unit 230.
[0187] In other words, the input signal level (a, b) = (L, H) is acquired in the acquisition unit 210, and the edge mode is determined to be E2 in the edge mode determination unit 230.
[0188] Next, in the rotation determination unit 250, a specific edge mode is set based on the reference signal level (α, β). When the reference signal level (α, β) = (H, H), E2 is set to the first edge mode and E4 to the second edge mode.
[0189] Then, since the along mode (=E2) determined in the along mode determination unit 230 is consistent with the first along mode (=E2) set in the rotation determination unit 250, the rotation determination unit 250 determines that the rotating body 111 was rotated clockwise by a clicking sound.
[0190] It should be noted that in the above time diagram, the rotation operation of the rotating body 111 starts from the middle position between two adjacent click stop positions. Therefore, the rotation operation can be determined in the rotation determination unit 250 when the rotating body 111 has been rotated by half a click.
[0191] Then, the reference signal level (α, β) = (L, H) is updated in the setting unit 240, and the rotation determination process ends.
[0192] (To prevent misjudgment caused by electrical fluctuations in the A-phase and B-phase input signals)
[0193] like Figure 13As shown, sometimes, when the rotating body 111 is rotated, electrical oscillations occur in the waveforms of the A-phase input signal and the B-phase input signal during the rising and falling phases.
[0194] Therefore, the electrical vibration waveforms generated when the rotating body 111 is rotated clockwise are classified into four types: electrical vibration A to electrical vibration D, and the processing performed in the rotation determination device 1 when each electrical vibration waveform is generated is explained.
[0195] (Management in cases of electrical fibrillation A)
[0196] like Figure 13 As shown, electrical tremor A is the electrical tremor generated when the input signal of phase B rises.
[0197] When CPU power (5V) is supplied to CPU 200 at time t1 and the rotation determination state is set to be valid, the input signal level (a, b) = (H, L) is acquired in the acquisition unit 210.
[0198] Then, the acquired input signal level (a, b) is set as the reference signal level (α, β) in the setting unit 240.
[0199] In other words, the reference signal level (α, β) is set to (H, L) in the setting unit 240.
[0200] When the rotating body 111 is rotated in a clockwise direction and the rising edge of the B-phase input signal is detected by the detection unit 220 at time t2, the input signal level (a, b) is acquired in the acquisition unit 210, and then the edge mode determination process is performed in the edge mode determination unit 230.
[0201] In other words, the input signal level (a, b) = (H, H) is acquired in the acquisition unit 210, and the edge mode is determined to be E4 in the edge mode determination unit 230.
[0202] Next, in the rotation determination unit 250, a specific edge mode is set based on the reference signal level (α, β). Specifically, when the reference signal level (α, β) = (H, L), E2 is set to the first edge mode and E3 to the second edge mode.
[0203] Then, since the along mode (=E4) determined in the along mode determination unit 230 is inconsistent with the first along mode (=E2) and the second along mode (=E3) set in the rotation determination unit 250, the rotation determination unit 250 does not determine that a rotation operation has been performed, and the rotation determination process ends.
[0204] Furthermore, when the falling edge of the B-phase input signal is detected by the detection unit 220 at the timing t3 when the electrical oscillation occurs, the input signal level (a, b) is acquired in the acquisition unit 210, and then the edge mode determination process is performed in the edge mode determination unit 230.
[0205] In other words, the input signal level (a, b) = (H, L) is acquired in the acquisition unit 210, and the edge mode is determined to be E4 in the edge mode determination unit 230.
[0206] Next, in the rotation determination unit 250, a specific edge mode is set based on the reference signal level (α, β). When the reference signal level (α, β) = (H, L), E2 is set to the first edge mode and E3 to the second edge mode.
[0207] Then, since the along mode (=E4) determined in the along mode determination unit 230 is inconsistent with the first along mode (=E2) and the second along mode (=E3) set in the rotation determination unit 250, the rotation determination unit 250 does not determine that a rotation operation has been performed, and the rotation determination process ends.
[0208] Then, further, at the timing of the electrical tremor, i.e. t4, the same processing as the electrical tremor generated at t2 is performed, and the rotation determination unit 250 does not determine that the rotating body 111 has been rotated, and the rotation determination process ends.
[0209] In other words, no matter how many times electrical tremors A are detected when the input signal of phase B rises, the rotation determination unit 250 will not misjudge the rotation operation.
[0210] (Management in cases of electrical fibrillation B)
[0211] like Figure 13 As shown, electrical freak B is the electrical freak generated when the input signal of phase A decreases.
[0212] When the falling edge of the A-phase input signal is detected by the detection unit 220 at t5, the input signal level (a, b) is acquired in the acquisition unit 210, and then the edge mode determination process is performed in the edge mode determination unit 230.
[0213] In other words, the input signal level (a, b) = (L, H) is acquired in the acquisition unit 210, and the edge mode is determined to be E2 in the edge mode determination unit 230.
[0214] Next, in the rotation determination unit 250, a specific edge mode is set based on the reference signal level (α, β). When the reference signal level (α, β) = (H, L), E2 is set to the first edge mode and E3 to the second edge mode.
[0215] Then, since the along mode (=E2) determined in the along mode determination unit 230 is consistent with the first along mode (=E2) set in the rotation determination unit 250, the rotation determination unit 250 determines that the rotating body 111 was rotated clockwise by a clicking sound.
[0216] Then, the reference signal level (α, β) = (L, H) is updated in the setting unit 240, and the rotation determination process ends.
[0217] Furthermore, when the rising edge of the A-phase input signal is detected by the detection unit 220 at the timing of generating electrical tremor, i.e. t6, the input signal level (a, b) is acquired in the acquisition unit 210, and then the edge mode determination process is performed in the edge mode determination unit 230.
[0218] In other words, the input signal level (a, b) = (H, H) is acquired in the acquisition unit 210, and the edge mode is determined to be E2 in the edge mode determination unit 230.
[0219] Next, in the rotation determination unit 250, a specific edge mode is set based on the reference signal level (α, β). When the reference signal level (α, β) = (L, H), E1 = first edge mode and E4 = second edge mode are set.
[0220] Then, since the along mode (=E2) determined in the along mode determination unit 230 is inconsistent with the first along mode (=E1) and the second along mode (=E4) set in the rotation determination unit 250, the rotation determination unit 250 does not determine that a rotation operation has been performed, and the rotation determination process ends.
[0221] Then, further, when the falling edge of the A-phase input signal is detected by the detection unit 220 at the timing t7 when the electrical oscillation is generated, the input signal level (a, b) is acquired in the acquisition unit 210, and then the edge mode determination process is performed in the edge mode determination unit 230.
[0222] In other words, the input signal level (a, b) = (L, H) is acquired in the acquisition unit 210, and the edge mode is determined to be E2 in the edge mode determination unit 230.
[0223] Next, in the rotation determination unit 250, a specific edge mode is set based on the reference signal level (α, β). When the reference signal level (α, β) = (L, H), E1 = first edge mode and E4 = second edge mode are set.
[0224] Then, since the along mode (=E2) determined in the along mode determination unit 230 is inconsistent with the first along mode (=E1) and the second along mode (=E4) set in the rotation determination unit 250, the rotation determination unit 250 does not determine that a rotation operation has been performed, and the rotation determination process ends.
[0225] In other words, after t5, no matter how many times the A-phase input signal changes due to electrical tremor occurs, the rotation determination unit 250 will not misjudge the rotation operation.
[0226] (Management in cases of electrical fibrillation C)
[0227] like Figure 13 As shown, the electrical tremor C is the electrical tremor generated when the input signal of phase B decreases.
[0228] When the falling edge of the B-phase input signal is detected by the detection unit 220 at t8, the input signal level (a, b) is acquired in the acquisition unit 210, and then the edge mode determination process is performed in the edge mode determination unit 230.
[0229] In other words, the input signal level (a, b) = (L, L) is acquired in the acquisition unit 210, and the edge mode is determined to be E3 in the edge mode determination unit 230.
[0230] Next, in the rotation determination unit 250, a specific edge mode is set based on the reference signal level (α, β). When the reference signal level (α, β) = (L, H), E1 = first edge mode and E4 = second edge mode are set.
[0231] Then, since the along mode (=E3) determined in the along mode determination unit 230 is inconsistent with the first along mode (=E1) and the second along mode (=E4) set in the rotation determination unit 250, the rotation determination unit 250 does not determine that a rotation operation has been performed, and the rotation determination process ends.
[0232] Furthermore, when the rising edge of the B-phase input signal is detected by the detection unit 220 at the timing t9 when the electrical oscillation occurs, the input signal level (a, b) is acquired in the acquisition unit 210, and then the edge mode determination process is performed in the edge mode determination unit 230.
[0233] In other words, the input signal level (a, b) = (L, H) is acquired in the acquisition unit 210, and the edge mode is determined to be E3 in the edge mode determination unit 230.
[0234] Next, in the rotation determination unit 250, a specific edge mode is set based on the reference signal level (α, β). When the reference signal level (α, β) = (L, H), E1 = first edge mode and E4 = second edge mode are set.
[0235] Then, since the along mode (=E2) determined in the along mode determination unit 230 is inconsistent with the first along mode (=E1) and the second along mode (=E3) set in the rotation determination unit 250, the rotation determination unit 250 does not determine that a rotation operation has been performed, and the rotation determination process ends.
[0236] Then, further, at the timing of the electrical tremor, i.e. t10, the same processing as the electrical tremor generated at t8 is performed, and the rotation determination unit 250 does not determine that the rotating body 111 has been rotated, and the rotation determination process ends.
[0237] In other words, after t8, no matter how many times the B-phase input signal changes due to electrical tremors, the rotation determination unit 250 will not misjudge the rotation operation.
[0238] (Management in cases of electrical fibrillation D)
[0239] like Figure 13 As shown, the electrical tremor D is the electrical tremor generated when the input signal of phase A rises.
[0240] When the rising edge of the A-phase input signal is detected by the detection unit 220 at t11, the input signal level (a, b) is acquired in the acquisition unit 210, and then the edge mode determination process is performed in the edge mode determination unit 230.
[0241] In other words, the input signal level (a, b) = (H, L) is acquired in the acquisition unit 210, and the edge mode is determined as E1 in the edge mode determination unit 230.
[0242] Next, in the rotation determination unit 250, a specific edge mode is set based on the reference signal level (α, β). When the reference signal level (α, β) = (L, H), E1 = first edge mode and E4 = second edge mode are set.
[0243] Then, since the along mode (=E1) determined in the along mode determination unit 230 is consistent with the first along mode (=E1) set in the rotation determination unit 250, the rotation determination unit 250 determines that the rotating body 111 was rotated clockwise by a clicking sound.
[0244] Then, the reference signal level (α, β) = (H, L) is updated in the setting unit 240, and the rotation determination process ends.
[0245] Furthermore, when the falling edge of the A-phase input signal is detected by the detection unit 220 at the timing of generating electrical tremor, i.e. t12, the input signal level (a, b) is acquired in the acquisition unit 210, and then the edge mode determination process is performed in the edge mode determination unit 230.
[0246] In other words, the input signal level (a, b) = (L, L) is acquired in the acquisition unit 210, and the edge mode is determined as E1 in the edge mode determination unit 230.
[0247] Next, in the rotation determination unit 250, a specific edge mode is set based on the reference signal level (α, β). When the reference signal level (α, β) = (H, L), E2 is set to the first edge mode and E3 to the second edge mode.
[0248] Then, since the along mode (=E1) determined in the along mode determination unit 230 is inconsistent with the first along mode (=E2) and the second along mode (=E3) set in the rotation determination unit 250, the rotation determination unit 250 does not determine that a rotation operation has been performed, and the rotation determination process ends.
[0249] Then, further, when the rising edge of the A-phase input signal is detected by the detection unit 220 at the timing of generating electrical tremor, i.e. t13, the input signal level (a, b) is acquired in the acquisition unit 210, and then the edge mode determination process is performed in the edge mode determination unit 230.
[0250] In other words, the input signal level (a, b) = (H, L) is acquired in the acquisition unit 210, and the edge mode is determined as E1 in the edge mode determination unit 230.
[0251] Next, in the rotation determination unit 250, a specific edge mode is set based on the reference signal level (α, β). When the reference signal level (α, β) = (H, L), E2 is set to the first edge mode and E3 to the second edge mode.
[0252] Then, since the along mode (=E1) determined in the along mode determination unit 230 is inconsistent with the first along mode (=E2) and the second along mode (=E3) set in the rotation determination unit 250, the rotation determination unit 250 does not determine that the rotating body 111 has been rotated, and the rotation determination process ends.
[0253] In other words, after t11, no matter how many times the A-phase input signal changes due to electrical tremor occurs, the rotation determination unit 250 will not misjudge the rotation operation.
[0254] The above example illustrates the processing of the rotation determination device 1 when the rotating body 111 is rotated in a clockwise direction. However, when the rotating body 111 is rotated in a counterclockwise direction, the processing performed is the same as described above.
[0255] <Function / Effect>
[0256] As described above, the rotation determination device 1 of this embodiment includes: an encoder unit 100 that generates two pulse signals (phase A input signal and phase B input signal) that are out of phase with each other by rotating the rotating body 111; an acquisition unit 210 that acquires the levels of the two pulse signals; a detection unit 220 that detects the rise and fall of the two pulse signals; an edge mode determination unit 230 that determines the edge mode based on the input signal levels of the pulse signal whose signal change was detected and the other pulse signal when a signal change is detected in the detection unit 220; a setting unit 240 that sets a reference signal level with the input signal level as the initial value; and a rotation determination unit 250 that determines rotation based on a specific edge mode that changes according to the reference signal level and the edge mode determined by the edge mode determination unit 230.
[0257] The rotation determination device 1 of this embodiment includes: an encoder unit 100 that generates two pulse signals (A-phase input signal and B-phase input signal); an acquisition unit 210 that acquires the levels of the two pulse signals; a detection unit 220 that detects signal changes in the two pulse signals; an edge pattern determination unit 230 that, when a change in either of the two pulses is detected, acquires the signal level and determines the edge pattern; a setting unit 240 that sets a reference signal level; and a rotation determination unit 250 that determines whether the rotating body 111 has been rotated. When a specific edge pattern determined based on the reference signal level matches the edge pattern determined by the edge pattern determination unit 230, the rotation determination unit 250 determines that the rotating body 111 has been rotated.
[0258] That is, in the rotation determination device 1, the reference signal level is set at the operation start position of the rotating body 111, and then, when the edge pattern determined based on the signal change detected by one of the two pulse signals is consistent with the specific edge pattern set based on the reference signal level, it is determined that the rotating body 111 has been rotated.
[0259] Therefore, even if the starting position of the rotating body 111 is the middle position, the rotation operation of the rotating body 111 can be determined because the reference signal level is set to the middle position.
[0260] Furthermore, since the reference signal level is set based on the input signal level, rotation can be determined without misjudgment even if two pulse signals produce electrical oscillations.
[0261] In the rotation determination device 1 of this embodiment, the specific edge mode is divided into a first edge mode and a second edge mode. When the edge mode is the first edge mode, it is determined that the rotating body 111 has been rotated clockwise. When the edge mode is the second edge mode, it is determined that the rotating body 111 has been rotated counterclockwise.
[0262] That is, in the rotation determination device 1, the specific edge mode determined based on the reference signal level is divided into two types: the first edge mode and the second edge mode.
[0263] Therefore, since the specific edge mode that determines that the rotating body 111 has been rotated is divided into a first edge mode that determines that the rotating body 111 has been rotated clockwise and a second edge mode that determines that the rotating body 111 has been rotated counterclockwise, the direction of rotation operation can be determined.
[0264] In the rotation determination device 1 of this embodiment, when the edge mode is a specific edge mode, the reference signal level is updated to the input signal level when the specific edge mode is determined.
[0265] That is, in the rotation determination device 1, when the along-mode is consistent with a specific along-mode, the reference signal level is updated to the input signal level when the along-mode is consistent with a specific along-mode, so that the continuous rotation operation of the rotating body 111 can be accurately determined.
[0266] Furthermore, when the edge pattern coincides with a specific edge pattern, the reference signal level is updated to the input signal level when the edge pattern coincides with the specific edge pattern. Therefore, even if the two pulse signals generate electrical oscillations, rotation determination can be performed without misjudgment.
[0267] In the rotation determination device 1 of this embodiment, the acquisition unit 210 acquires the A-phase input signal level and the B-phase input signal level when the rotation determination state is set to active due to the power supply to the CPU, and the setting unit 240 sets the reference signal level based on the acquired input signal levels. Thus, the start position of operation of the rotating body 111 can be determined.
[0268] Furthermore, when a change in the input signal is detected due to the rotation operation of the rotating body 111, the along-mode determination unit 230 classifies the along-mode generated by the rotation operation of the rotating body 111 into four types (E1 to E4) based on the change in the input signal and the level of another input signal that is different from the input signal that caused the change.
[0269] In other words, the edge mode determination unit 230 determines which of the four edge modes (E1 to E4) is detected based on the combination of the change of the two pulse signals and the signal level (H or L).
[0270] Furthermore, in the rotation determination unit 250, the along-mode (specific along-mode) that is first determined by the along-mode determination unit 230 when the rotation operation is assumed to have been performed from the operation start position of the rotating body 111 is set.
[0271] In other words, the rotation determination unit 250 can determine the start position of the operation of the rotating body 111 based on the reference signal level, and thus can uniquely set the first edge mode generated when the rotating body 111 is rotated.
[0272] At this time, there are two edge modes: the edge mode determined by the edge mode determination unit 230 when the rotating body 111 is rotated clockwise and the edge mode determined by the edge mode determination unit 230 when the rotating body 111 is rotated counterclockwise. Therefore, the first edge mode and the second edge mode are set in the rotation determination unit 250.
[0273] Then, in the rotation determination unit 250, the two edge patterns (specific edge patterns) set in the rotation determination unit 250 and the edge patterns determined by the edge pattern determination unit 230 are compared. When the two are consistent, it is determined that the rotating body 111 has been rotated.
[0274] That is, in the rotation determination device 1 of this embodiment, the rotation operation of the rotating body 111 is determined based on the signal levels of the A-phase input signal and the B-phase input signal before the rotation operation and the edge pattern detected based on the rotation operation of the rotating body 111.
[0275] Therefore, even if the starting position of the rotating body 111 is in the middle position, it is possible to determine which direction the rotating body 111 was rotated in.
[0276] <Variation Example>
[0277] The rotation determination device 1 described above is illustrated with an encoder section that produces a clicking sound, but an encoder section that does not produce a clicking sound may also be used.
[0278] Since the A-phase input signal level a and the B-phase input signal level b are set to reference levels (α, β) before the rotating body 111 is rotated, the rotation of the rotating body 111 can be determined by the above-described rotation determination process even in the case of an encoder section that does not produce a clicking sound.
[0279] It should be noted that the processing of the acquisition unit 210, detection unit 220, along-pattern determination unit 230, setting unit 240, and rotation determination unit 250 can be recorded on a computer-readable recording medium. The rotation determination device of the present invention is realized by having the acquisition unit 210, detection unit 220, along-pattern determination unit 230, setting unit 240, and rotation determination unit 250 read and execute the program recorded on the recording medium. The computer system mentioned here includes hardware such as OS (operating system) and peripheral devices.
[0280] Furthermore, when using a WWW (World Wide Web) system, the "computer system" is also defined to include a homepage providing environment (or display environment). Additionally, the aforementioned program can be transmitted from a computer system storing the program on a storage device or similar device to other computer systems via a transmission medium or through transmission waves within the transmission medium. Here, the "transmission medium" for transmitting the program refers to a medium capable of transmitting information, such as a network (communication network) like the Internet, or a communication line (communication line) like a telephone line.
[0281] Furthermore, the above-described program can also be used to implement a portion of the aforementioned functions. Moreover, the above-described program can also be used in combination with programs recorded in the computer system to achieve the aforementioned functions—so-called patch software (patches).
[0282] The embodiments of the present invention have been described in detail above with reference to the accompanying drawings, but the specific structure is not limited to these embodiments, and also includes designs that do not depart from the spirit of the present invention.
[0283] Explanation of reference numerals in the attached figures
[0284] 1: Rotation determination device;
[0285] 100: Encoder section;
[0286] 110: Encoder;
[0287] 111: Solid of revolution;
[0288] 112: Switch;
[0289] 113: Switch;
[0290] 200: CPU;
[0291] 210: Acquisition Department;
[0292] 220: Testing Department;
[0293] 230: Along the pattern determination section;
[0294] 240: Setting Department;
[0295] 250: Rotation determination section.
Claims
1. A rotation determination device, characterized in that, have: An encoder, connected to a rotating body, generates two pulse signals that are out of phase with each other by the rotation of the rotating body; The detection unit detects the rising and falling edges of the two pulse signals as signal changes; The acquisition unit acquires the levels of the two pulse signals input from the encoder as the input signal level; The along-mode determination unit determines the along-mode based on information related to the change in the pulse signal in which the change was detected and the input signal level of the other pulse signal in which the change was not detected when the detection unit detects a change in the signal in one of the two pulse signals. The setting unit sets a reference signal level with the input signal level as the initial value when power is supplied to the encoder; The storage unit stores specific edge patterns, which are set to correspond to the reference signal level when the input signal levels of the two pulse signals are the same (i.e., "H, H" or "L, L") and the reference signal level when the input signal levels of the two pulse signals are different (i.e., "H, L" or "L, H"). as well as The rotation determination unit compares the edge pattern determined by the edge pattern determination unit with the specific edge pattern stored in the storage unit, and determines that the rotating body has rotated if the edge pattern determined by the edge pattern determination unit is consistent with the specific edge pattern.
2. The rotation determination device according to claim 1, characterized in that, The specific edge modes are distinguished and set as a first edge mode and a second edge mode according to the state of the rotating body at the reference signal level. The first edge mode is the edge mode detected assuming that the rotating body has rotated clockwise, and the second edge mode is the edge mode detected assuming that the rotating body has rotated counterclockwise. When the edge pattern is consistent with the first edge pattern, the rotation determination device determines that the rotating body has been rotated clockwise; when the edge pattern is consistent with the second edge pattern, the rotation determination device determines that the rotating body has been rotated counterclockwise.
3. The rotation determination device according to claim 1 or 2, characterized in that, When the edge pattern matches the specific edge pattern, the reference signal level is updated to the input signal level when the specific edge pattern is determined.
Citation Information
Patent Citations
Magnetic disk device
JP1990118822A
Apparatus monitoring rotating step of rotary encoder
JP1997243403A