blockEncoderEvaluation
Partial evaluation of an incremental encoder
Information
Evaluates the input signals from an IncrementalEncoder:
- 0-track
y[1]= 1 pulse per revolution with a length of2*pi/(4*pRev) - A-track
y[2]=pRevpulses per revolution - B-track
y[3]=pRevpulses per revolution, displaced by2*pi/(4*pRev)
and determines mechanical angular velocity w and mechanical angle phi:
- w = angular velocity
- phi = angle = integral of w
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | pRev | Pulses per revolution | |
| Modelica.Units.SI.Angle | phi0 | 0 | Initial mechanical angle (zero position) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.BooleanInput[3] | u | Encoder signals | |
| Modelica.Blocks.Interfaces.RealOutput | w | Mechanical angular velocity | |
| Modelica.Blocks.Interfaces.RealOutput | phi | Mechanical angle |