Encoder
ENC1 Speed
Description Outputs the speed and direction of the encoder signal. Define the encoder PPR, Pulses Per Revolution, and Base Speed.

Status will display faults on encoder channels.
Availability
  • Available only in the dw2xx series products
  • Requires library: System & I/O
  • Requires: Single or Dual Encoder
  • Singleton function block
  • Firmware versions 0x2003 and later
savvy-SFD Graphic enc1s5
Graphic with Parameters enc1s5

Parameters

Status Internal Parameter, Read-only, Enumerated (signed 16-bit integer)
0 = OK
1 = Fault on A
2 = Fault on B
3 = Fault on A and B
4 = Comms Fault
Pulses Per Revolution Input, Read-write, Analog (signed 16-bit integer)
1 ppr to 30000 ppr
Speed Internal Parameter, Read-only, Analog (signed 16-bit integer)
-32767 RPM to 32767 RPM
Base Speed Input, Read-write, Analog (signed 16-bit integer)
-32767 RPM to 32767 RPM
Output Output, Read-only, Analog (signed 16-bit integer)
-327.67 % to 327.67 %
Comms Errors Internal Parameter, Read-only, Analog (unsigned 16-bit integer)
0 to 65535
Filter Size Internal Parameter, Read-write, Analog (signed 16-bit integer)
1 to 15

This is the sample size for the filter. A larger size provides more filtering and a slower response.
Channel A State Internal Parameter, Read-only, Boolean (signed 16-bit integer)
0 = Low
1 = High
Channel B State Internal Parameter, Read-only, Boolean (signed 16-bit integer)
0 = Low
1 = High
Direction Output, Read-only, Boolean (signed 16-bit integer)

This is the instantaneous direction of the encoder signal.
0 = Forward
1 = Reverse