Incremental Shaft Encoder
An encoder model that converts the angular position of the shaft into electrical impulses.
blockType: AcausalElectricPowerSystems.Sensors.IncrementalShaftEncoder
Path in the library:
|
Description
Block Incremental Shaft Encoder It is a device that converts information about the angular position of the shaft into electrical impulses. The unit produces N pulses at ports A and B per revolution of the shaft, where N — the value that is set by the parameter Pulses per Revolution . Pulses A and B are phase shifted by 90 degrees. If the shaft rotates in the positive direction, then A is ahead of B. The block produces one index pulse on port Z once per revolution. The front of the pulse Z always coincides with the pulse front A, and the length is equal to the length of the pulses A and B. The voltages on the ports A, B and Z are determined relative to the port Ref.
Use this block if you need to simulate encoder signals, either to support the development of a decoding algorithm or to enable quantization effects. Otherwise, use the block Absolute Rotational Motion Sensor.
Assumptions and limitations
Block Incremental Shaft Encoder is not linearizable. For management project studies that require linearization of the model, use the block Absolute Rotational Motion Sensor.
Ports
Undirected
R — shaft
scalar
A mechanical rotary port corresponding to the sensor shaft.
C — case
scalar
A mechanical rotary port corresponding to the sensor housing.
A — pass voltage:Q[<br>] scalar
Electrical port corresponding to pulses Ah encoder.
B — pass voltage:Q[<br>] scalar
Electrical port corresponding to pulses In encoder.
Z — index or sync
scalar
Electrical port corresponding to pulses Z encoder (index or synchronizing).
REF — electrical reference terminal
scalar
An electrical port common to signals A, B and Z.
Parameters
Pulses per revolution — number of pulses per revolution
2 (by default)
The number of pulses generated at each of the phases A and B for one revolution of the shaft.
Output voltage amplitude — amplitude of the output voltage
5V (by default)
The amplitude of the output voltage of the encoder at a high level of the output signal.
Index pulse offset relative to shaft initial angle — offset of the index pulse
0 (by default)
Offset of the index pulse Z relative to the angle of rotation of the shaft at the beginning of the simulation. This parameter allows you to set the initial location of the index pulse.